diff --git a/README.md b/README.md index 067a78c..14badc6 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,15 @@ navigate to that directory and start a simple Python server: python -m http.server ``` +## Building and adding chattutor + +Check out the README.md file in chattutor_setup folder, +or simply run + +```sh +./build.sh +``` + ## Development The majority of this book is written as Jupyter notebooks. Learn more about diff --git a/book/chattutor_setup/README.md b/book/chattutor_setup/README.md new file mode 100644 index 0000000..a47b4de --- /dev/null +++ b/book/chattutor_setup/README.md @@ -0,0 +1,23 @@ +# Building + +From the root folder of the app run: +```sh +jupyter-book build --all book +python3 ./book/chattutor_setup/install.py # adding the chattutor script to all the html files +``` + +CORS needs to allow the url to make requests!! +For now this can only be tested locally. + +# Testing locally + +Checkout chattutor.config.js + +- Start an instance of the main branch of the chattutor repo at port `5000` at `localhost` +- Go to config and set **TEST_MODE** to true and **SERVER_PORT** to `5000` +- Run the following commands to build the notebook and to add chattutor +one in venv (checkout main README for info on that) +```sh +jupyter-book build --all book +python3 ./book/chattutor_setup/install.py # adding the chattutor script to all the html files +``` \ No newline at end of file diff --git a/book/chattutor_setup/chattutor.config.js b/book/chattutor_setup/chattutor.config.js new file mode 100644 index 0000000..0d80c26 --- /dev/null +++ b/book/chattutor_setup/chattutor.config.js @@ -0,0 +1,83 @@ +/** + * --------------- ChatTutor.org ---------------- + * Configuration file for chattutor.min.js which + * should not be modified. This file consists of + * the necesary configurations for running chat- + * tutor in a course. + * Currently the ChatTutor needs be added by hand + * or using the install.py script in each page of + * the application, weather build with jupyter or + * other frameworks. + * The style necesary for ChatTutor is provided in + * chattutor.style.css, and can be adjusted for + * every course's needs. + * + * The following configuration variables have the + * following meaning: + * + * EMBEDDING_COLLECTION_NAME: the name of the + * database that is [[either provided on + * ChatTutor.org when an account is created and + * a new course added - this will be added soon]] + * or provided by the contributors to ChatTutor. + * + * TEST_MODE: should be false for prodction and + * either true or false for testing. When true, + * requests to the chattutor server are actually + * done to https://localhost:. + * This option is added because currently ChatTutor + * has a CORS wall that only allows certain domains + * to make requests to its APIs, and the CORS needs + * to be manually updated when a course is ready + * to use Chattutor. For testing purposes on should + * run the ChatTutor server on the port SERVER_PORT + * and request to it. This will be deprecated in + * the latter phases of the project, when the CORS + * will be updated automatically, and it is currently + * used by our team for manually adding and testing + * ChatTutor to new courses. + * + * COURSE_URL: the base url for the course + * + * + * RUN_LOCALLY: true if and only if course is tested + * locally. For production it should be false, + * for testing it should be true. + * + * IS_STATIC: true if ran statically on a index.html + * file, false if ran on a server, either local or online + * Usually true for jupyter books + */ +const RUN_LOCALLY = true; +const TEST_MODE = false; +const IS_STATIC = true; + +const EMBEDDING_COLLECTION_NAME = "photonicsbootcamp2811"; +const COURSE_URL = "https://byucamacholab.github.io/Photonics-Bootcamp" +/** + * --------------- TESTING CONFIGS ---------------- + * ChatTutor can be embedded on default applications + * that run on servers, or in static pages such as + * Jupyter Notebooks. + * + * For the purpose of testing, the build method needs + * to be specified so the server knows how to parse + * the current url name. + * + * BUILT_WITH: "JUPYTER-NOTEBOOK"|"SERVER" + * + * This configuration is ONLY used for testing and + * will have no weight in production mode + * (RUN_LOCALLY = false) + * + * SERVER_PORT: the port listen to Chattutor + * server if ran locally. Used ONLY for testing + * purposes (TEST_MODE = false) + */ +const BUILT_WITH = "JUPYTER-NOTEBOOK" +const SERVER_PORT = 5000 + +/** + * JUPYTER-NOTEBOOK Specific configurations. + */ +const BUILD_HTML_JUPYTER_NOTEBOOK_FOLDER = "_build/html" \ No newline at end of file diff --git a/book/chattutor_setup/chattutor.min.js b/book/chattutor_setup/chattutor.min.js new file mode 100644 index 0000000..3dd52c4 --- /dev/null +++ b/book/chattutor_setup/chattutor.min.js @@ -0,0 +1,1645 @@ +// Configures UI +const embed_mode = true; + +let headers = new Headers(); + +headers.append('Content-Type', 'application/json'); +headers.append('Accept', 'application/json'); +headers.append('Access-Control-Allow-Origin', `http://127.0.0.1:${SERVER_PORT}`); +headers.append('Access-Control-Allow-Credentials', 'true'); +headers.append('GET', 'POST', 'OPTIONS'); + + +// Constants for bot and person details +const BOT_IMG = "https://static.thenounproject.com/png/2216285-200.png"; +const PERSON_IMG = "https://upload.wikimedia.org/wikipedia/commons/thumb/2/2c/Default_pfp.svg/1024px-Default_pfp.svg.png"; +const BOT_NAME = "ChatTutor"; +const PERSON_NAME = "Student"; + +const LOCAL_STORAGE_CONVO = EMBEDDING_COLLECTION_NAME + "-conversation" + + +var testmode = false +if (typeof TEST_MODE !== 'undefined') { + // the variable is defined + testmode = TEST_MODE +} +const BASE_URL = testmode ? `http://127.0.0.1:${SERVER_PORT}` : "https://chattutor.org" + + // URLs for production and debugging +const prodAskURL = new URL("https:/chattutor.org/ask"); +const debugAskURL = new URL(`http://127.0.0.1:${SERVER_PORT}/ask`); + +// Variables to hold conversation and message details +var conversation = []; +var original_file = ""; +let lastMessageId = null; +var stopGeneration = false +let selectedModel = "gpt-3.5-turbo" + +function setupEmbedMode_URL() { + + var reader = new FileReader(); + document.addEventListener('DOMContentLoaded', (e)=>{ + document.querySelector('body').innerHTML += ` +
+ ${chattutor_embed} +
+ ` + }) + + path = window.location.pathname + if (BUILT_WITH == "JUPYTER-NOTEBOOK" && RUN_LOCALLY == true && IS_STATIC == true) { + const BUILD_HTML_JUPYTER_NOTEBOOK_FOLDER = "_build/html" + ind = path.indexOf(BUILD_HTML_JUPYTER_NOTEBOOK_FOLDER); + end = ind + BUILD_HTML_JUPYTER_NOTEBOOK_FOLDER.length; + + path = path.substr(end); + } + original_file = COURSE_URL + path + original_file = original_file.replaceAll(/[^A-Za-z0-9\-_]/g, '_') + console.log("Pulling from", original_file); + } +function setupEmbedMode() { + // Setup minimize and expand buttons to toggle 'minimized' class on mainArea + const minimize = get('.msger-minimize'); + const expand = get('.msger-expand'); + minimize.addEventListener('click', () => mainArea.classList.toggle('minimized')); + expand.addEventListener('click', () => mainArea.classList.toggle('minimized')); + + // Extract and store the name of the original file from the 'Download source file' link + const download_original = document.querySelectorAll('[title="Download source file"]')[0]; + original_file = download_original.getAttribute("href").slice(download_original.getAttribute("href").lastIndexOf("/") + 1); + } +let chattutor_embed = ` +
+
+ + + + + +
+
+
+ +
+ +
+
+
+ +
+ ChatTutor + Add URL +
+
+ +
+ + + + +
+
+ +
+ +
+
+
+ +
+
+
ChatTutor
+
+ +
+ Welcome to ChatTutor, feel free to ask any questions about this lesson. +
+
+
+
+
+ +
+
+ +
+ +
+
+ +
+ + + + +
+
+ +
+ +
+
+

Select collection

+ +
+
+ +
+
+

Select Model

+ +
+
+ +
+ +
+ +
+ --> + + + + +
+ + + +` +if (embed_mode) { + // setupEmbedMode(); + setupEmbedMode_URL(); + +} +setTimeout(() => { + + + +// Themes +const lightMode = { + body_bg: "white", //'linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%)', + msger_bg: '#fff', + border: '1px solid #ddd', + left_msg_bg: '#FCFCFD', + left_msg_txt: 'black', + right_msg_bg: 'rgb(140, 0, 255)', + msg_header_bg: '#FCFCFD', + msg_header_txt: '#666', + clear_btn_txt: '#999', + msg_chat_bg_scrollbar: '#ddd', + msg_chat_bg_thumb: '#bdbdbd', + msg_chat_bg: '#fcfcfe', + msg_input_bg: '#ddd', + msg_input_area_bg: '#eee', + msg_invert_image: 'invert(0%)', + msg_input_color: "black", + right_msg_txt: 'white', + // legacy, not used + imessageInterface_: { + display_images: 'block', + border_radius_all: '15px', + msg_bubble_max_width: '450px', + msg_bubble_width: 'unset', + msg_margin: '5px', + msg_chat_padding: '10px', + right_msg_txt: 'white', + msg_padding: '0', + right_msg_bg_bgd: 'transparent', + }, + // this is the interface + normalInterface_: { + display_images: 'none', + border_radius_all: '4px', + msg_bubble_max_width: 'unset', + msg_bubble_width: '100%', + msg_margin: '0', + msg_chat_padding: '0', + msg_chat_bg: '#f1f1f1', + right_msg_bg: 'white', + right_msg_txt: 'black', + left_msg_bg: 'transparent', + msg_padding: '5px 20px', + right_msg_bg_bgd: 'white', + } + +} + +function JSONparse(exp, or = '') { + try { + let a = JSON.parse(exp) + return a; + } catch (e) { + return or; + } +} + +const darkMode = { + body_bg: 'linear-gradient(135deg, #3e3c46 0%, #17232c 100%)', + msger_bg: '#2d2d2d', + border: '1px solid #2d2d2d', + + left_msg_txt: 'white', + right_msg_bg: 'rgb(140, 0, 255)', + msg_header_bg: 'rgba(41,41,41,0.75)', + msg_header_txt: '#d5d5d5', + clear_btn_txt: '#e5e5e5', + msg_chat_bg_scrollbar: 'transparent', + msg_chat_bg_thumb: '#656172', + msg_input_bg: '#2f2f2f', + msg_input_area_bg: '#252525', + msg_invert_image: 'invert(100%)', + msg_input_color: "white", + right_msg_txt: 'white', + msg_chat_bg: '#3e3c46', + // legacy, not used + imessageInterface_: { + display_images: 'block', + border_radius_all: '15px', + msg_bubble_max_width: '450px', + msg_bubble_width: 'unset', + msg_margin: '5px', + msg_chat_padding: '10px', + right_msg_txt: 'white', + right_msg_bg: 'rgb(140, 0, 255)', + msg_header_bg: 'rgba(48,48,59,0.75)', + msg_input_area_bg: '#3e3c46', + msg_input_bg: '#2e2e33', + left_msg_bg: '#302f36', + msg_padding: '0', + right_msg_bg_bgd: 'transparent', + }, + // this is the interface + normalInterface_: { + msg_chat_bg_scrollbar: '#52505b', + display_images: 'none', + border_radius_all: '4px', + msg_bubble_max_width: 'unset', + msg_bubble_width: '100%', + msg_margin: '0', + msg_chat_padding: '0', + right_msg_bg: '#302f36', + right_msg_txt: 'white', + msg_header_bg: 'rgba(48,48,59,0.75)', + msg_input_area_bg: '#3e3c46', + left_msg_bg: 'transparent', + msg_input_bg: '#2e2e33', + msg_padding: '5px 20px', + right_msg_bg_bgd: '#302f36', + } +} + +function setProperties() { + const theme = localStorage.getItem('theme') + const interfaceTheme = 'normal' + const object = theme === 'dark' ? darkMode : lightMode + const interfaceObject = interfaceTheme === 'normal' ? object.normalInterface_ : object.imessageInterface_ + setPropertiesHelper(object) + setPropertiesHelper(interfaceObject) +} + +function setPropertiesHelper(themeObject) { + + for (let key in themeObject) { + if (key.endsWith('_')) { + + } else { + const property_replaced = key.replace(/_/g, '-') + const property_name = `--${property_replaced}` + const value = themeObject[key] + + document.documentElement.style.setProperty(property_name, value) + } + } +} + +document.querySelectorAll(".no-enter").forEach(el => { + el.addEventListener("keypress", function(event) { + if (event.which == '13') { + event.preventDefault(); + } + }) +}) + + +var nicealert = document.getElementById("nice-alert") + + +function alert(message, success = 0) { + nicealert.querySelector("span").innerHTML = message + let classes = ["fail", "default", "success"] + classes.forEach(el => { + nicealert.querySelector(".type").classList.remove(classes) + }) + nicealert.querySelector(".type").classList.add = classes[success + 1] + nicealert.classList.add("show") + document.querySelector("#body-overlay").classList.add("show") + + nicealert.querySelector(".close").addEventListener("click", (e) => { + nicealert.classList.remove("show") + document.querySelector("#body-overlay").classList.remove("show") + + }) + +} + + +const upload_files = document.querySelectorAll('.multiple-upload'); + +function onFile() { + console.log(upload.files) + var me = this, + file = upload.files[0], + name = file.name; + + upload.parentNode.querySelector("span").innerHTML = "" + Array.from(upload.files).forEach(f => { + var nm = f.name + if (nm.length > 20) { + nm = nm.substr(0, 16) + "..." + } + + upload.parentNode.querySelector("span").innerHTML += nm + ", " + }) +} + +upload_files.forEach(upload => { + upload.addEventListener('dragenter', function(e) { + upload.parentNode.className = 'area dragging'; + }, false); + + upload.addEventListener('dragleave', function(e) { + upload.parentNode.className = 'area'; + }, false); + + upload.addEventListener('dragdrop', function(e) { + onFile(); + }, false); + + upload.addEventListener('change', function(e) { + onFile(); + }, false); +}) + +function clearFileInput(ctrl) { + try { + ctrl.value = null; + } catch (ex) {} + if (ctrl.value) { + ctrl.parentNode.replaceChild(ctrl.cloneNode(true), ctrl); + } + + try { + ctrl.parentNode.querySelector("span").innerHTML = `Upload File` + } catch (ex) {} +} + +{ + /*
+ +
*/ +} + + +// function JSONparse(exp, or='') { +// try { +// var a = JSON.parse(exp) +// return a; +// } catch (e) { +// return or; +// } +// } + + + +// await new Promise(resolve => setTimeout(resolve, 100)); + +setTheme('normal') + +const clear = document.getElementById('clearBtnId'); +const clearContainer = get('.clear-btn-container'); +const mainArea = get('.msger'); +const msgerForm = get(".msger-inputarea"); +const msgerInput = get(".msger-input"); +const msgerChat = get(".msger-chat"); +// Get the send button +const sendBtn = document.getElementById('sendBtn'); +const messageInput = document.getElementById('msgInput') +const scrollHelper = document.getElementById('scrollHelper') +const stopGenButton = document.getElementById('stopBtnId') +const uploadZipButton = document.getElementById('uploadBtnId') +const sendUploadedZipButton = document.getElementById('sendformupload') +const uploadZipPapersForm = document.getElementById('uploadFileForm') +const selectUploadedCollection = document.getElementById('selectUploadedCollection') +const clearformupload = document.getElementById("clearformupload") +const modelDropdown = document.getElementById('modelDropdown') +const messageDIVInput = document.getElementById('msgInputDiv') +const embedToggler = document.getElementById("chattutor-toggler") +let uploadedCollections = [] +messageInput.addEventListener('input', (event) => { + console.log(messageInput.value.length) + sendBtn.disabled = messageInput.value.length === 0; + clear.disabled = !(messageInput.value.length === 0); +}) + + + +stopGenButton.style.display = 'none' + // Listen for windoe resize to move the 'theme toggle button +window.addEventListener('resize', windowIsResizing) + +function windowIsResizing() { + console.log("resize") + // the button for choosing themes snaps in place when the window is too small + if (window.innerWidth < 1200) { + // themeBtnDiv.style.position = 'inherit' + // themeBtnDiv.style.top = '25px' + // themeBtnDiv.style.left = '25px' + + const arr = document.querySelectorAll('.theme-button') + console.log(arr) + arr.forEach(btn => { + btn.style.backgroundColor = 'transparent' + btn.style.color = 'var(--msg-header-txt)' + btn.style.textDecoration = 'underline' + btn.style.padding = '0' + btn.style.boxShadow = 'none' + btn.style.border = 'none' + btn.style.borderRadius = '0px' + btn.style.margin = '0' + + btn.style.height = 'unset' + btn.style.width = 'unset' + }) + + } else { + // themeBtnDiv.style.position = 'fixed' + // themeBtnDiv.style.top = '25px' + // themeBtnDiv.style.left = '25px' + const arr = document.querySelectorAll('.theme-button') + console.log(arr) + arr.forEach(btn => { + btn.style.backgroundColor = 'rgb(140, 0, 255)' + btn.style.color = 'white' + btn.style.textDecoration = 'none' + btn.style.padding = '10px' + btn.style.boxShadow = '0 5px 5px -5px rgba(0, 0, 0, 0.2)' + btn.style.border = 'var(--border)' + btn.style.borderRadius = '50%' + btn.style.margin = '0' + btn.style.height = '40px' + btn.style.width = '40px' + }) + } +} + +function getFormattedIntegerFromDate() { + let d = Date.now() + +} + +const smallCard = { + card_max_width: '867px' +} + +const bigCard = { + card_max_width: 'unset' +} + +let theme = null +let interfaceTheme = null + + +function uploadMessageToDB(msg, chat_k) { + if (msg.content === "") { + return + } + const data_ = { + content: msg.content, + role: msg.role, + chat_k: chat_k, + time_created: `${Date.now()}`, + clear_number: getClearNumber() + } + console.log(`DATA: ${JSON.stringify(data_)} `) + // fetch(BASE_URL + '/addtodb', {method: 'POST', headers: headers, body: JSON.stringify(data_)}) + // .then(() =>{ + // console.log('Andu') + // }) +} + +// Event listener to clear conversation +clear.addEventListener('click', clearConversation); + +// Event listener to handle form submission +msgerForm.addEventListener("submit", handleFormSubmit); + +// Event listener to load conversation from local storage on DOM load +document.addEventListener("DOMContentLoaded", loadConversationFromLocalStorage); +// REMVE ALL from collections saved in local storage + clean up local storage +document.addEventListener("DOMContentLoaded", clearCollectionsFromLocalStorage) + +document.addEventListener('DOMContentLoaded', setThemeOnRefresh) + +document.addEventListener('DOMContentLoaded', windowIsResizing) + +// Event listener for toggling the theme +// themeBtn.addEventListener('click', toggleDarkMode) + +stopGenButton.addEventListener('click', stopGenerating) + +modelDropdown.addEventListener('change', handleModelDropdownChange); + +function handleModelDropdownChange(event) { + selectedModel = event.target.value; + console.log("Selected model:", selectedModel); +} + + + +// I dodn't know if i should install uuidv4 using npm or what should i use +function uuidv4() { + return "10000000-1000-4000-8000-100000000000".replace(/[018]/g, c => + (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16) + ); +} + +function setChatId() { + localStorage.setItem('conversation_id', uuidv4()) +} + +function getChatId() { + return localStorage.getItem('conversation_id') +} + +function increaseClearNumber() { + let clnr = getClearNumber() + let clear_number = parseInt(clnr) + localStorage.setItem('clear_number', `${clear_number+1}`) +} + +function resetClearNumber() { + localStorage.setItem('clear_number', '0') +} + +function getClearNumber() { + return localStorage.getItem('clear_number') +} + +function reinstantiateChatId() { + increaseClearNumber() +} + +// function for keeping the theme whn the page refreshes +function setThemeOnRefresh() { + // disable send button + sendBtn.disabled = messageInput.value.length === 0; + if (getChatId() == null) { + setChatId() + } + + if (getClearNumber() == null) { + resetClearNumber() + } + + theme = localStorage.getItem('theme') + if (theme == null) { + setTheme('dark') + } else { + setTheme(theme) + } + + interfaceTheme = 'normal' + setTheme('normal') + +} +// helper function +function setTheme(th) { + setProperties() + const _style = "\"font-size: 15px !important; padding: 0 !important; margin: 0 !important; vertical-align: middle\"" + // themeBtn.innerHTML = theme === "dark" ? ` light_mode ` : + // ` dark_mode\n ` +} + +// function that toggles theme +function toggleDarkMode() { + if (theme === 'light') { + theme = 'dark' + } else if (theme === 'dark') { + theme = 'light' + } else { + theme = 'dark' + } + localStorage.setItem('theme', theme) + setTheme(theme) +} + +function toggleInterfaceMode() { + interfaceTheme = 'normal' + localStorage.setItem('interfacetheme', interfaceTheme) + setTheme(interfaceTheme) + +} + +function clearConversation() { + conversation = []; + localStorage.setItem(LOCAL_STORAGE_CONVO, JSON.stringify([])); + reinstantiateChatId() + var childNodes = msgerChat.childNodes; + for (var i = childNodes.length - 3; i >= 2; i--) { + var childNode = childNodes[i]; + if (childNode.id !== 'clearContId' && childNode.id !== 'clearBtnId') { + childNode.parentNode.removeChild(childNode); + } + } +} + +function stopGenerating() { + stopGeneration = true + sendBtn.disabled = messageInput.value.length == 0; + clear.disabled = !(messageInput.value.length == 0); +} + + +function loadConversationFromLocalStorage() { + let conversation = JSON.parse(localStorage.getItem(LOCAL_STORAGE_CONVO)) + if (conversation) { + conversation.forEach(message => { + lastMessageId = null + addMessage(message["role"], message["content"], false, message["context_documents"]) + if (message["context_documents"]) { + //setLatMessageHeader(message["context_documents"]) + } + }) + } else conversation = [] + MathJax.typesetPromise(); +} + +function loadCollectionsFromLocalStorage() { + const collections = JSON.parse(localStorage.getItem("uploaded-collections")) //TODO + if (collections) { + collections.forEach(collname => { + addCollectionToFrontEnd(collname) + }) + } +} + +function clearCollectionsFromLocalStorage() { + let collections = JSON.parse(localStorage.getItem("uploaded-collections")) + if (collections) { + collections.forEach(collname => { + fetchClearCollection(collname) + }) + } +} + +function fetchClearCollection(collname) { + console.log("clearing ", collname) + let args = { + "collection": collname + } + fetch("/delete_uploaded_data", { + method: 'POST', + headers: headers, + body: JSON.stringify(args) + }).then(response => response.json()).then(data => { + console.log("deleted " + data["deleted"]) + }) +} + + + + +function queryGPT(fromuploaded = false, uploaded_collection_name = EMBEDDING_COLLECTION_NAME) { + let collection_name = EMBEDDING_COLLECTION_NAME + let selected_collection_name = EMBEDDING_COLLECTION_NAME + // if (selectUploadedCollection && !selectUploadedCollection.options[ selectUploadedCollection.selectedIndex ]) { + // alert("Please upload some files for the tutor to learn from! Click on menu!") + // return + // } + if (selectUploadedCollection.options.length > 0) { + selected_collection_name = selectUploadedCollection.options[selectUploadedCollection.selectedIndex].value + } + const args = { + "conversation": conversation, + "collection": EMBEDDING_COLLECTION_NAME + } + if (embed_mode) { + console.log("REQUESTIND DOCUMENT: " + original_file) + args.from_doc = original_file + } + + args.selectedModel = selectedModel + console.log("POSTING ", args, "to ", BASE_URL + '/ask') + document.querySelector(".loading-message").style = "display: flex;" + fetch(BASE_URL + '/ask', { + method: 'POST', + headers: headers, + body: JSON.stringify(args) + }).then(response => { + const reader = response.body.getReader(); + let accumulatedContent = ""; + let isFirstMessage = true; + let context_documents = null; + + function read() { + reader.read().then(({ + done, + value + }) => { + if (done) { + // Enable the send button when streaming is done + sendBtn.disabled = messageInput.value.length === 0; + clear.style.display = 'block' + stopGenButton.style.display = 'none' + stopGeneration = false + uploadMessageToDB({ + content: accumulatedContent, + role: 'assistant' + }, getChatId()) + return; + } + const strValue = new TextDecoder().decode(value); + const messages = strValue.split('\n\n').filter(Boolean).map(chunk => JSONparse(chunk.split('data: ')[1])); + let message; + for (var messageIndex in messages) { + message = messages[messageIndex] + if (stopGeneration === false) { + if (message.message.valid_docs) { + context_documents = message.message.valid_docs + console.log("CONTEXT DOCS: ", context_documents) + } + const contentToAppend = message.message.content ? message.message.content : ""; + accumulatedContent += contentToAppend; + } + if (isFirstMessage) { + // console.log("added", accumulatedContent) + addMessage("assistant", accumulatedContent, false); + setLatMessageHeader(context_documents) + isFirstMessage = false; + } else { + // console.log('message', message.message) + if (typeof(message.message.content) == 'undefined') { + conversation.push({ + "role": 'assistant', + "content": accumulatedContent, + "context_documents": context_documents + }) + localStorage.setItem(LOCAL_STORAGE_CONVO, JSON.stringify(conversation)) + } + // console.log("updated", accumulatedContent) + + scrollHelper.scrollIntoView() + updateLastMessage(accumulatedContent); + + if (message.message.error) { + conversation.push({ + "role": 'assistant', + "content": accumulatedContent + }) + localStorage.setItem(LOCAL_STORAGE_CONVO, JSON.stringify(conversation)) + } + } + if (stopGeneration === true) { + accumulatedContent += " ...Stopped generating"; + conversation.push({ + "role": 'assistant', + "content": accumulatedContent, + "context_documents": context_documents + }) + localStorage.setItem(LOCAL_STORAGE_CONVO, JSON.stringify(conversation)) + + sendBtn.disabled = messageInput.value.length == 0; + clear.disabled = !(messageInput.value.length == 0); + clear.style.display = 'block' + stopGenButton.style.display = 'none' + uploadMessageToDB({ + content: accumulatedContent, + role: 'assistant' + }, getChatId()) + scrollHelper.scrollIntoView() + updateLastMessage(accumulatedContent); + + break + } + } + if (stopGeneration === false) { + read(); + } else { + stopGeneration = false + + } + document.querySelector(".loading-message").style = "display: none;" + }).catch(err => { + console.error('Stream error:', err); + sendBtn.disabled = false; + clear.style.display = 'block' + stopGenButton.style.display = 'none' + stopGeneration = false + document.querySelector(".loading-message").style = "display: none;" + + }); + MathJax.typesetPromise(); + } + read(); + // MathJax.typesetPromise(); + document.querySelector(".loading-message").style = "display: none;" + + }).catch(err => { + console.error('Fetch error:', err); + // Enable the send button in case of an error + sendBtn.disabled = false; + clear.style.display = 'block' + stopGenButton.style.display = 'none' + stopGeneration = false + document.querySelector(".loading-message").style = "display: none;" + + }); +} + +function formatMessage(message, makeLists = true) { + const messageArr = message.split("\n") + + let messageStr = "" + let listSwitch = 0 + for (let messageArrIndex in messageArr) { + const paragraph = messageArr[messageArrIndex] + if (paragraph.startsWith('- ') && makeLists) { + if (listSwitch === 0) { + messageStr += "" + messageStr += `

${paragraph}

` + listSwitch = 0 + } else { + messageStr += `

${paragraph}

` + listSwitch = 0 + } + + } + return messageStr +} + + +function setLatMessageHeader(context_documents, lastMessageIdParam, add = true) { + + if (context_documents == false) + return '' + if (!lastMessageIdParam) { + lastMessageIdParam = lastMessageId + } + if (add == false) { + var docs = '' + context_documents.forEach(doc => { + // TO not break HTML + doc.metadata["summary"] = 0 + + var data = `${JSON.stringify(doc.metadata).replace(""", '"')}` + docs += `
+
+ ${doc.metadata.doc} +
+ +
+
+
Ask about
+
Info
+
+
+
` + }) + return docs; + } + + + if (lastMessageIdParam) { + const lastMessageElement = document.querySelector(`#${lastMessageIdParam} .msg-text`); + if (lastMessageElement) { + var docs = '' + context_documents.forEach(doc => { + docs += `
+
+ ${doc.metadata.doc} +
+ +
+
+
Ask about
+
Info
+
+
+
` + }) + if (add) + document.querySelector(`#${lastMessageIdParam}`).innerHTML = ` +
${docs}
+ ${document.querySelector(`#${lastMessageIdParam}`).innerHTML} + `; + + return docs + } else { + console.error('Cannot find the .msg-text element to update.'); + } + } else { + console.error('No message has been added yet.'); + } + + return '' +} + +function updateLastMessage(newContent) { + if (lastMessageId) { + const lastMessageElement = document.querySelector(`#${lastMessageId} .msg-text`); + if (lastMessageElement) { + const newContentFormatted = formatMessage(newContent) + document.querySelector(`#${lastMessageId} .msg-text`).innerHTML = newContentFormatted; + } else { + console.error('Cannot find the .msg-text element to update.'); + } + } else { + console.error('No message has been added yet.'); + } + // MathJax.typesetPromise(); + +} + +if (clearformupload) +clearformupload.addEventListener("click", ()=>{ + clearFileInput(document.querySelector("#upload")) +}) + + + +function addMessage(role, message, updateConversation, lastmessageheader=false) { + let role_name + let img + let side + + if(role === "assistant") { + role_name = BOT_NAME; + img = BOT_IMG; + side = "left"; + + } + else { + role_name = PERSON_NAME; + img = PERSON_IMG; + side = "right"; + } + + const messageId = 'msg-' + new Date().getTime(); + lastMessageId = messageId; + + // if you want to make the robot white ( of course it doesn't work well in safari ), so -- not in use right now + var invertImage = 'invert(0%)' + if (side === "left") { + invertImage = 'var(--msg-invert-image)' + } + + const messageStr = formatMessage(message, role === "assistant") + + const msgHTML = ` +
+
${setLatMessageHeader(lastmessageheader, messageId, false)}
+ +
+
+ +
+
+
${role_name}
+
${formatDate(new Date())}
+
+ +
${messageStr}
+
+
+
+ `; + + clearContainer.insertAdjacentHTML("beforebegin", msgHTML); + + // Find the newly added message and animate it + const newMessage = document.getElementById(messageId); + newMessage.style.opacity = "0"; + newMessage.style.transform = "translateY(1rem)"; + + // MathJax.typesetPromise([newMessage]); + + // Trigger reflow to make the transition work + void newMessage.offsetWidth; + + // Start the animation + newMessage.style.opacity = "1"; + newMessage.style.transform = "translateY(0)"; + msgerChat.scrollTop += 500; + if(updateConversation){ + conversation.push({"role": role, "content": message}) + localStorage.setItem(LOCAL_STORAGE_CONVO, JSON.stringify(conversation)) + } + +} + + + + +function setupEmbedMode_URL() { + + var reader = new FileReader(); + document.addEventListener('DOMContentLoaded', (e)=>{ + document.querySelector('body').innerHTML += ` +
+ ${chattutor_embed} +
+ ` + }) + + original_file = COURSE_URL + window.location.pathname + original_file = original_file.replaceAll(/[^A-Za-z0-9\-_]/g, '_') + console.log(original_file) + // get riginal file + // original file = .... +} + + +// Utility functions +function get(selector, root = document) { + return root.querySelector(selector); +} + +function formatDate(date) { + const h = "0" + date.getHours(); + const m = "0" + date.getMinutes(); + + return `${h.slice(-2)}:${m.slice(-2)}`; +} + + + function uploadFile() { + let myFormData = new FormData(uploadZipPapersForm) + const formDataObj = {}; + myFormData.forEach((value, key) => (formDataObj[key] = value)); + console.log(formDataObj) + + sendUploadedZipButton.querySelector("span").innerHTML = `` + + console.log(formDataObj["file"]) + if (formDataObj["file"]["name"] == '') { + alert("Please upload a file!") + sendUploadedZipButton.querySelector("span").innerHTML = "upload" + + return + } + + fetch(BASE_URL + '/upload_data_to_process', { + method: 'POST', + body: new FormData(uploadZipPapersForm) + }).then(response => response.json()).then(data => { + let created_collection_name = data['collection_name'] + console.log("Created collection " + created_collection_name) + if (created_collection_name == false || created_collection_name == "false") { + alert("Select file") + } else { + addCollectionToFrontEnd(created_collection_name) + + } + + + + sendUploadedZipButton.querySelector("span").innerHTML = "upload" + clearFileInput(document.querySelector("#upload")) + }) +} + +function addCollectionToFrontEnd(created_collection_name) { + uploadedCollections.push(created_collection_name) + console.log(uploadedCollections) + selectUploadedCollection.innerHTML += ` + + ` + localStorage.setItem("uploaded-collections", JSON.stringify(uploadedCollections)) + alert(`Created collection ${created_collection_name}`) +} + +if (sendUploadedZipButton) +sendUploadedZipButton.addEventListener("click", uploadFile) + + +function hasClass(ele, cls) { + return !!ele.className.match(new RegExp('(\\s|^)' + cls + '(\\s|$)')); +} + +function addClass(ele, cls) { + if (!hasClass(ele, cls)) ele.className += " " + cls; +} + +function removeClass(ele, cls) { + if (hasClass(ele, cls)) { + var reg = new RegExp('(\\s|^)' + cls + '(\\s|$)'); + ele.className = ele.className.replace(reg, ' '); + } +} + +//Add event from js the keep the marup clean +function init() { + document.getElementById("open-menu").addEventListener("click", toggleMenu); + document.getElementById("body-overlay").addEventListener("click", toggleMenu); +} + +//The actual fuction +function toggleMenu() { + var ele = document.getElementsByTagName('body')[0]; + if (!hasClass(ele, "menu-open")) { + addClass(ele, "menu-open"); + } else { + removeClass(ele, "menu-open"); + } +} + +//Prevent the function to run before the document is loaded +document.addEventListener('readystatechange', function() { + if (document.readyState === "complete") { + init(); + } +}); + + +if (!embed_mode) +document.querySelector(".close-notif").addEventListener('click', e => { + clearFromDoc(); +}) + + +if (!embed_mode) +document.querySelector(".close-arxiv").addEventListener('click', e => { + clearDocInfo(); +}) + +// -------- inchat + +const addUrlButton = document.getElementById('addUrl') +let file_array_to_send = undefined +let collectionName = undefined +const msgerDiv = document.getElementById('msgInputDiv') +function setNewCollection() { + collectionName = `${uuidv4()}`.substring(0,10) +} + +setNewCollection() + +async function uploadSiteUrl() { + let str = validateUrls() + addUrlButton.innerText = 'Adding urls...' + if (str === undefined) { + return; + } + + let data_ = {url: str, name: collectionName} + let response = await fetch(BASE_URL + '/upload_site_url', {method: 'POST', headers: headers, body: JSON.stringify(data_)}) + let res_json = await response.json() + console.log('Created collection', res_json) + let created_collection_name = res_json['collection_name'] + console.log("Created collection " + created_collection_name) + addUrlButton.innerText = 'Done adding urls' + return res_json + +} + + +let the_file_arr = undefined + +msgerDiv.addEventListener('drop', e => { + e.preventDefault() + const transfer = e.dataTransfer + const files = transfer.files + if (the_file_arr === undefined) { + the_file_arr = [...files] + } else { + the_file_arr = [...the_file_arr, ...files] + } + + const the_files = [...files] + for (const ind in the_files) { + const file = the_files[ind] + msgerDiv.innerHTML += ` :file: ${file.name} ` + } + updateEditor() +}) + +function validateUrls() { + let arr = [] + if (msgerInput.value.includes(':url:') || msgerInput.value.includes(':file:')) { + + } else { + return undefined + } + console.log(msgerInput.value) + var inputval = msgerInput.value + console.log(inputval) + + let strs = inputval.split(' ') + console.log(strs) + let sw = 0 + var index = 0 + while (index < strs.length) { + const _str = strs[index] + + if (_str === ":url:" && index + 1 < strs.length) { + arr = [...arr, strs[index + 1]] + } else if (_str.includes(":url:")) { + var aux = _str.split(":url:") + console.log(aux) + arr = [...arr, aux[1].split('').splice(1).join('')] + } + index ++; + // if(sw == 1 && _str !== ':file:' && _str != ':url:' && _str.length > 3) { + // arr = [...arr, _str] + // } + // if (_str === ':url:') { + // sw = 1 + // } else if(_str === ':file:') { + // sw = 0 + // } + } + console.log("URL/FILES",arr) + return arr; + + +} + +function validateMsgInputAndDisable() { + let str = validateUrls() + + if(str !== undefined) { + addUrlButton.style.display = 'block' + addUrlButton.innerText = 'Press enter to add' + sendBtn.disabled = true + + + } else { + + addUrlButton.style.display = 'none' + sendBtn.disabled = false + } + sendBtn.disabled = messageInput.value.length === 0 ; + clear.disabled = !(messageInput.value.length === 0 ); + + +} + +function inputTextDidChange() { + let inner = msgerInput.innerHTML + validateMsgInputAndDisable() + console.log('val:', msgerInput.value) +} + +msgerInput.addEventListener('input', inputTextDidChange) + + + +// EO New code + + +function getTextSegments(element) { + const textSegments = []; + Array.from(element.childNodes).forEach((node) => { + switch(node.nodeType) { + case Node.TEXT_NODE: + textSegments.push({text: node.nodeValue, node}); + break; + + case Node.ELEMENT_NODE: + textSegments.splice(textSegments.length, 0, ...(getTextSegments(node))); + break; + + default: + throw new Error(`Unexpected node type: ${node.nodeType}`); + } + }); + return textSegments; +} + +function updateEditor() { + + const sel = window.getSelection(); + const textSegments = getTextSegments(msgerDiv); + const textContent = textSegments.map(({text}) => text).join(''); + let anchorIndex = null; + let focusIndex = null; + let currentIndex = 0; + textSegments.forEach(({text, node}) => { + if (node === sel.anchorNode) { + anchorIndex = currentIndex + sel.anchorOffset; + } + if (node === sel.focusNode) { + focusIndex = currentIndex + sel.focusOffset; + } + currentIndex += text.length; + }); + + msgerDiv.innerHTML = renderText(textContent); + msgerInput.value = msgerDiv.innerText.replaceAll(' ', ' ') + + sendBtn.disabled = messageInput.value.length === 0 ; + clear.disabled = !(messageInput.value.length === 0 ); + restoreSelection(anchorIndex, focusIndex); + + validateMsgInputAndDisable() + if(the_file_arr !== undefined) { + file_array_to_send = the_file_arr.filter((elem) => { + return msgerInput.value.includes(elem.name) + }) + console.log(file_array_to_send) + } +} + +function restoreSelection(absoluteAnchorIndex, absoluteFocusIndex) { + const sel = window.getSelection(); + const textSegments = getTextSegments(msgerDiv); + let anchorNode = msgerDiv; + let anchorIndex = 0; + let focusNode = msgerDiv; + let focusIndex = 0; + let currentIndex = 0; + textSegments.forEach(({text, node}) => { + const startIndexOfNode = currentIndex; + const endIndexOfNode = startIndexOfNode + text.length; + if (startIndexOfNode <= absoluteAnchorIndex && absoluteAnchorIndex <= endIndexOfNode) { + anchorNode = node; + anchorIndex = absoluteAnchorIndex - startIndexOfNode; + } + if (startIndexOfNode <= absoluteFocusIndex && absoluteFocusIndex <= endIndexOfNode) { + focusNode = node; + focusIndex = absoluteFocusIndex - startIndexOfNode; + } + currentIndex += text.length; + }); + + sel.setBaseAndExtent(anchorNode,anchorIndex,focusNode,focusIndex); +} + + +const highlights = [{word: ":url:", col: "#00000043"}, {word: ":file:", col: "#00000040"}] +function renderText(text) { + var words = text.split(/(\s+)/); + var arr = new Array() + var lastf = undefined + var el = undefined + var windex = 0 + words.forEach( f=> { + if (f == ":url:" || f == ":file:" || windex == words.length - 1) { + if (el !== undefined && lastf !== undefined) + arr.push(el) + if (f != undefined) + arr.push(f) + } else if (lastf == ":url:" || lastf == ":file:"){ + el = f + } else { + el = el + f + } + + lastf = f + windex ++ + }) + for (var i = 0; i < arr.length; ++i) { + arr[i] = arr[i].trim() + } + arr = arr.filter(a => a.length > 0) + console.log("ARRRRRR, ", words, arr, messageInput.value) + + // @Andu, arr does not work :( help + const output = words.map((word, ind, vec) => { + for (const ihighlight in highlights) { + const high = highlights[ihighlight] + if (word === high.word) { + if (ihighlight == 0) + return `${word}` + + return `${word}` + } + + + + if(ind >= 2) { + if (words[ind - 2] === ":file:" && file_array_to_send !== undefined) { + console.log(words[ind-1], file_array_to_send) + if(file_array_to_send.some((elem) => {return elem.name === word})) { + return `${word}` + } + } + } + } + return word + }) + return output.join(''); +} + +msgerDiv.addEventListener('input', updateEditor) + +updateEditor() + +msgerDiv.onkeydown = function(e) { + if (e.key === "Enter") { + e.preventDefault() + handleFormSubmit_noEvent() + msgerDiv.innerText = "" + msgerInput.value = "" + + } +} + +async function handleFormSubmit(event) { + event.preventDefault(); + await handleFormSubmit_noEvent(); +} + +const COLLECTION_NAME = undefined + +async function handleFileUpload() { + addUrlButton.style.display = 'block' + addUrlButton.innerText = 'Uploading files...' + const body = file_array_to_send + let form_data = new FormData() + form_data.append('collection_name', collectionName) + for (const ind in file_array_to_send) { + form_data.append('file', file_array_to_send[ind]) + } + const response = await fetch(BASE_URL + '/upload_data_from_drop', {method: 'POST', headers: {'Accept': 'multipart/form-data'}, body: form_data}) + + const coll = await response.json() + + addUrlButton.innerText = 'Done uploading files' + return coll +} +async function handleFormSubmit_noEvent() { + const msgText = msgerInput.value; + if (msgText.startsWith(':url:') || msgText.startsWith(':file:')) { + let url_array = undefined + let fil_array = undefined + if(msgText.includes(':url:')) { + const s_json = await uploadSiteUrl() + url_array = s_json['urls'] + } + if(msgText.includes(':file:') && file_array_to_send !== undefined) { + const f_json = await handleFileUpload() + fil_array = f_json['files_uploaded_name'] + } + + + if (url_array !== undefined) { + for (const i in url_array) { + msgerDiv.innerHTML += `uploaded_urls: ${url_array[i]} ` + } + } + + + if (fil_array !== undefined) { + for (const i in fil_array) { + msgerDiv.innerHTML += `uploaded_files: ${fil_array[i]} ` + } + } + + + addCollectionToFrontEnd(collectionName) + return; + } + if (!msgText) return; + // if (selectUploadedCollection && !selectUploadedCollection.options[ selectUploadedCollection.selectedIndex ]) { + // alert("Please upload some files for the tutor to learn from!") + // return + // } + + // Disable the send button + sendBtn.disabled = true; + clear.style.display = 'none' + stopGenButton.style.display = 'block' + + addMessage("user", msgText, true); + uploadMessageToDB({role: 'user', content: msgText}, getChatId()) + msgerInput.value = ""; + queryGPT(); +} +// EO new code + +if (!embed_mode) { + embedToggler.style.display="none"; +} else { + let embedCHATTUTOR = document.querySelector(".embed") + embedToggler.addEventListener("click", (e) => { + embedCHATTUTOR.classList.add("embed-open"); + }) + + document.querySelector(".close-embed").addEventListener("click", () => { + embedCHATTUTOR.classList.remove("embed-open"); + + }) +} +}, 100); \ No newline at end of file diff --git a/book/chattutor_setup/chattutor.style.css b/book/chattutor_setup/chattutor.style.css new file mode 100644 index 0000000..b06f2e8 --- /dev/null +++ b/book/chattutor_setup/chattutor.style.css @@ -0,0 +1,1033 @@ +/*the variables are now set using index.js, making it possible to switch the colors via theme picking*/ +:root { + --body-bg: 0; + --msger-bg: 0; + --border: 0; + --left-msg-bg: 0; + --left-msg-txt: 0; + --right-msg-bg: 0; + --right-msg-txt: 0; + --msg-header-bg: 0; + --msg-header-txt: 0; + --clear-btn-txt: 0; + --msg-chat-bg-scrollbar: 0; + --msg-chat-bg-thumb: 0; + --msg-chat-bg: 0; + --msg-input-bg: 0; + --msg-input-area-bg: 0; + --msg-invert-image: 0; + --msg-input-color: 0; + + + --display-images: 0; + --border-radius-all: 0; + --msg-bubble-max-width: 0; + --msg-bubble-width: 0; + + --msg-margin: 0; + --msg-chat-padding: 0; + --msg-padding: 0; + + --right-msg-bg-bgd: 0; + + } + + +.msg { + display: flex; + flex-direction: column !important; + } + +.msg .msg-header-context { + max-height: 100px; + display: flex; + flex-direction: row; + background-image: var(--right-msg-bg); + width: 100%; + max-width: 867px; + cursor: pointer; + + } + +.msg-header-context { + display: flex; + flex-direction: row; + justify-content: space-around; + /* justify-content: start; */ + align-items: center; + white-space: nowrap; /* Prevents the text from wrapping */ + overflow-x: auto; + /* width: 260px; */ + width: 100%; +} + +.msg-context-doc{ + border: 1px solid rgba(245, 222, 179, 0); + border-radius: 4px; + background-color: rgba(183, 130, 242, 1) !important; +} +.msg-context-doc:hover{ + border: 1px solid var(--msg-input-color); + +} + +.msg-context-text { + flex-grow: 1; + /* overflow-x: auto; */ + /* white-space: nowrap; */ + /* align-self: self-start; */ + color: #220029; /* Slightly dark grey for contrast */ + font-family: Arial, sans-serif; /* A simple and readable font */ + font-size: 14px; /* Adjust as per your design */ + line-height: 1; /* Space between lines */ + padding: 5px; /* Space around text */ + max-width: 250px; + overflow: hidden; + text-overflow: ellipsis; +} + +.msg-context-text:hover { + /* background-color: #f5f5f5; */ + /* content: attr(data-fulltext); + position: absolute; + width: max-content; + white-space: normal; + word-wrap: break-word; */ + /* background-color: rgba(255,255,255,0.9); */ + /* z-index: 1; */ +} + +.small { + font-size: 12px; + margin-top: 5px; + opacity: 0.5; +} + +.notification { + transition: all 0.2s ease; + display: flex; + flex-direction: row; + flex-wrap: wrap; + right: 15px; + top: 15px; + background-color: var(--right-msg-bg); + position: absolute; + box-shadow: 0 15px 15px -5px rgba(0, 0, 0, 0.2); + z-index: 6000; + padding: 15px; + max-width: 400px; + width: 100vw; + text-wrap: wrap; + opacity: 1; + border-radius: 4px; + color: var(--msg-input-color); + } + + a { + color: var(--msg-input-color); + + } + + .arxiv-info { + border-radius: 4px; + color: var(--msg-input-color); + + transition: all 0.2s ease; + display: flex; + flex-direction: row; + flex-wrap: wrap; + right: 15px; + bottom: 15px; + background-color: var(--right-msg-bg); + position: absolute; + box-shadow: 0 15px 15px -5px rgba(0, 0, 0, 0.2); + z-index: 6000; + padding: 15px; + max-width: 400px; + width: 100vw; + text-wrap: wrap; + opacity: 1; + } +.arxiv-docinfo > div { + margin-bottom: 5px !important; +} + +.arxiv-info.hiddenop { + transition: all 0.2s ease; + opacity: 0; + pointer-events: none +} +.notification.hiddenop { + transition: all 0.2s ease; + + opacity: 0; + pointer-events: none +} + +.msg-context-doc .info { + display: none; + position: absolute; + transform: translateY(-40px); + background-color: var(--right-msg-bg); + color: var(--msg-input-color); + border: 1px solid var(--msg-input-color); + border-radius: 4px; + border-bottom-left-radius: 0px; + overflow: hidden; +} + + +.msg-context-doc .info >{ + background-image: #00000044; +} + + +.msg-context-doc .context-info{ + width: 100px; + padding: 5px; + +} + +.msg-context-doc .info div >:hover{ + background-color: #00000073; +} + +.msg-context-doc:hover .info { + display: flex; +} + +.info:hover .info { + display: flex; +} + + +.notification #from-doc, .notification span { + margin-left: 5px; +} +.msg-context-doc { + width: 30%; + max-width: 400px; + overflow:hidden; + white-space:nowrap; + text-overflow: ellipsis; + color:var(--msg-input-color); + padding: 5px; + margin: 10px; + background-color: #00000044; +} + html { + box-sizing: border-box; + } + + *, + *:before, + *:after { + box-sizing: inherit; + } +/* + body { + display: flex; + justify-content: center; + align-items: center; + height: 100vh; + background-image: var(--body-bg); + font-family: Helvetica, sans-serif; + } */ + + .msg { + transition: opacity 0.3s ease-out, transform 0.3s ease-out; + margin: var(--msg-margin) !important; + } + + + .msger { + display: flex; + flex-flow: column wrap; + justify-content: space-between; + width: 100%; + max-width: 867px; + margin: 25px 10px; + height: calc(100% - 50px); + /*background: var(--msger-bg);*/ + + border-radius: 4px; + position: relative; + } + + .pswder { + display: flex; + flex-flow: column wrap; + justify-content: space-between; + width: 100%; + max-width: 1200px; + margin: 25px 10px; + height: calc(100% - 50px); + /*background: var(--msger-bg);*/ + border-radius: 4px; + position: relative; + } + + .msger-header { + display: flex; + justify-content: space-between; + flex-direction: row !important; + padding: 10px; + border-bottom: var(--border); + background: transparent; + /*background: rgba(59, 102, 107, 0.5);*/ + color: var(--msg-header-txt); + border-top-left-radius: 20px; + border-top-right-radius: 20px; + width: 100%; + z-index: 999; + } + + .msger-chat { + flex: 1; + overflow-y: scroll; + padding: var(--msg-chat-padding); + border-radius: 4px; + margin-bottom: 20px; + background-color: #FCFCFD; + box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,rgba(45, 35, 66, 0.3) 0 7px 13px -3px,#D6D6E7 0 -3px 0 inset; + border: var(--border) + + } + .msger-chat::-webkit-scrollbar { + width: 6px; + + } + .msger-chat::-webkit-scrollbar-track { + background: var(--msg-chat-bg-scrollbar); + margin-top: 20px; + margin-bottom: 20px; + } + .msger-chat::-webkit-scrollbar-thumb { + margin-top: 20px; + background: var(--msg-chat-bg-thumb); + margin-bottom: 20px; + } + + .msg { + display: flex; + align-items: flex-end; + margin-bottom: 10px; + + } + .msg:last-of-type { + margin: 0; + } + .msg-text { + line-height: 1.5; + } + .msg-coding { + font-weight: 600; + display: inline-block; + } + + .msg-img { + width: 50px; + height: 50px; + margin-right: 10px; + background-repeat: no-repeat; + background-position: center; + background-size: cover; + border-radius: 50%; + background-color: white; + display: var(--display-images); + } + .msg-bubble { + max-width: var(--msg-bubble-max-width); + width: var(--msg-bubble-width); + padding: 15px; + border-radius: var(--border-radius-all); + background: var(--left-msg-bg); + } + .msg-info { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 10px; + } + .msg-info-name { + margin-right: 10px; + font-weight: bold; + } + .msg-info-time { + font-size: 0.85em; + } + + .left-msg .msg-bubble { + border-bottom-left-radius: 0; + } + + .left-msg { + color: var(--left-msg-txt) + } + + .clear-btn-container { + display: flex; + padding-top: 15px; + flex-direction: row; + justify-content: center; + } + .clear-btn{ + border: none; + color: var(--clear-btn-txt);; + } + + .right-msg { + flex-direction: row-reverse; + } + .right-msg .msg-bubble { + background: var(--right-msg-bg); + color: var(--right-msg-txt); + border-bottom-right-radius: 10px; + } + .right-msg .msg-img { + margin: 0 0 0 10px; + } + + .codeSegment { + background-color: #f4f4f4; + padding: 10px; + border-radius: 5px; + overflow-x: auto; +} + + .msger-inputarea { + display: flex; + padding: 10px; + border-top: var(--border); + background: var(--msg-input-area-bg); + border-radius: 4px; + box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,rgba(45, 35, 66, 0.3) 0 7px 13px -3px,#D6D6E7 0 -3px 0 inset; + border: var(--border) + } + .msger-inputarea * { + padding: 10px; + border: none; + font-size: 1em; + border-radius: 10px; + } +.no-box-shadow{ + box-shadow: none !important; +} +.pswd-inputarea * { + padding: 10px; + border: none; + font-size: 1em; + border-radius: 10px; +} + .pswd-label { + color: var(--left-msg-txt) + } + .pswd-inputarea { + display: flex; + padding: 10px; + border-top: var(--border); + background: var(--msg-input-area-bg); + border-radius: 4px; + box-shadow: 0 15px 15px -5px rgba(0, 0, 0, 0.2); + border: var(--border); + flex-direction: column; + width: 400px; + max-width: 100%; + margin: 10px; + } + + .sql-pswd-inputarea * { + padding: 10px; + border: none; + font-size: 1em; + border-radius: 10px; + } + .sql-pswd-label { + color: var(--left-msg-txt) + } + .sql-pswd-inputarea { + + display: none; + padding: 10px; + border-top: var(--border); + background: var(--msg-input-area-bg); + border-radius: 4px; + box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,rgba(45, 35, 66, 0.3) 0 7px 13px -3px,#D6D6E7 0 -3px 0 inset; + border: var(--border); + flex-direction: column; + width: 400px; + max-width: 100%; + margin: 10px; + + } + .msger-input { + display: none; + flex: 1; + background: var(--msg-input-bg); + color: var(--msg-input-color) + } + + .msger-input-div { + flex: 1; + background: var(--msg-input-bg); + color: var(--msg-input-color) + } + .pswd-input { + background: var(--msg-input-bg); + color: var(--msg-input-color); + } + .msger-send-btn { + margin-left: 10px; + background: rgb(140, 0, 255); + color: #fff; + font-weight: bold; + cursor: pointer; + transition: filter 0.23s; + padding: 10px; + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + width: 40px; + height: 40px; + } + .msger-send-btn:hover { + filter: saturate(180%); + } + .msger-send-btn:disabled { + cursor: not-allowed; + opacity: 0.5; + } + + + .msger-chat { + background-color: var(--msg-chat-bg); + + } + + .button-div { + position: fixed; + } + + .msg-header-helper { + position: absolute; + width: inherit; + z-index: 999; + + } + + .msg-header-helper::before { + content: ""; + position: absolute; + backdrop-filter: blur(20px); + -webkit-backdrop-filter: blur(20px); + background-color: var(--msg-header-bg); + top: 0; + left: 0; + width: 100%; + height: 100%; + z-index: -1; + border-top-left-radius: 20px; + border-top-right-radius: 20px; + } + + .msger-header-title { + display: flex; + flex-direction: row; + margin-top: 3px; + } + + .msger-header-title * { + margin-right: 10px; + } + + +.clear-btn { + margin-left: 10px; + background: var(--msg-input-bg); + color: var(--left-msg-txt); + font-weight: bold; + cursor: pointer; + transition: background-color 0.23s; + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + width: 40px; + height: 40px; + +} +.clear-btn:hover { + background-color: var(--left-msg-txt); + color: var(--msg-input-bg) +} +.clear-btn:disabled { + cursor: not-allowed; + opacity: 0.5; +} + +.stop-gen-btn { + margin-left: 10px; + background: var(--msg-input-bg); + color: var(--left-msg-txt); + font-weight: bold; + cursor: pointer; + transition: background-color 0.23s; + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + width: 40px; + height: 40px; +} +.stop-gen-btn:hover { + background-color: var(--left-msg-txt); + color: var(--msg-input-bg) +} +.stop-gen-btn:disabled { + cursor: not-allowed; + opacity: 0.5; +} + + +.left-msg .msg-bgd { + display: flex; + flex-direction: row; + align-items: flex-end; + width: var(--msg-bubble-width); + padding: var(--msg-padding); +} + +.right-msg .msg-bgd { + display: flex; + flex-direction: row-reverse; + align-items: flex-end; + width: var(--msg-bubble-width); + padding: var(--msg-padding); + background-color: var(--right-msg-bg-bgd); +} + +#interfaceBtn:hover { + filter: saturate(180%); + cursor: pointer; +} + +#interfaceBtn { + transition: filter 0.2s ease-in; +} + +.hidden { + display: none; +} + +.theme-button:hover { + filter: saturate(180%); + cursor: pointer; +} +.theme-button.disabled{ + background-color: gray !important; +} +.theme-button.disabled:hover{ + background-color: gray !important; +} +.theme-button { + transition: filter 0.2s ease-in; +} + +#consoleID { + background-color: black; + color: green; + max-width: 100%; + border-radius: 5px; + padding: 10px; + height: 200px; + overflow-y: scroll; + margin: 5px; + padding: 5px; +} +#showBtn { + border: none; + background-color: rgb(140, 0, 255); + color: white; + padding: 15px; + position: fixed; + bottom: 10px; + right: 10px; + border-radius: 4px; + +} + + +#uploadBtnId.active{ + background-color: red; +} + + +#body-overlay { + width: 100vw; + height: 100vh; + display: none; + position: fixed; + z-index: 1000; + top: 0; + overflow: hidden; + background: var(--msg-header-bg); +} + +#body-overlay .loading-lay{ + display: none; +} + +#body-overlay.loading .loading-lay{ + display: none; +} + +.real-menu { + position: fixed; + top: 0; + left: -300px; + z-index: 1400; + width: 300px; + height: 100%; + padding: .5rem 1rem; + box-shadow: 0 6px 12px rgba(107, 82, 82, 0.3); + background-color: white; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + transition: ease 0.2s all; +} + + +body.menu-open #body-overlay{ + + display: block; + +} + +#body-overlay.show{ + + display: block !important; + +} +body.menu-open .real-menu { + left: 0; + } + +.nice-btn { + margin-left: 10px; + font-weight: bold; + cursor: pointer; + transition: background-color 0.23s; + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + padding: 15px; + border: none !important; +} + +.col{ + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; +} + +select { + -webkit-appearance: button; + -moz-appearance: button; + -webkit-user-select: none; + -moz-user-select: none; + -webkit-padding-end: 20px; + -moz-padding-end: 20px; + -webkit-padding-start: 2px; + -moz-padding-start: 2px; + background-color: #F07575; /* Fallback color if gradients are not supported */ + background-image: url(../images/select-arrow.png), -webkit-linear-gradient(top, #E5E5E5, #F4F4F4); /* For Chrome and Safari */ + background-image: url(../images/select-arrow.png), -moz-linear-gradient(top, #E5E5E5, #F4F4F4); /* For old Firefox (3.6 to 15) */ + background-image: url(../images/select-arrow.png), -ms-linear-gradient(top, #E5E5E5, #F4F4F4); /* For pre-releases of Internet Explorer 10*/ + background-image: url(../images/select-arrow.png), -o-linear-gradient(top, #E5E5E5, #F4F4F4); /* For old Opera (11.1 to 12.0) */ + background-image: url(../images/select-arrow.png), linear-gradient(to bottom, #E5E5E5, #F4F4F4); /* Standard syntax; must be last */ + background-position: center right; + background-repeat: no-repeat; + border: 1px solid #AAA; + border-radius: 2px; + box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1); + color: #555; + font-size: inherit; + margin: 0; + overflow: hidden; + padding-top: 2px; + padding-bottom: 2px; + text-overflow: ellipsis; + white-space: nowrap; +} + +.real-menu section { + border-bottom: 1px solid gray; + padding-bottom: 10px; + margin-bottom: 20px; +} + +.real-menu p { + margin-bottom: 10px; +} + +.real-menu { + background-image: var(--body-bg) !important; + background-size: 100vw 100vh; + color: var(--left-msg-txt); +} + +.link-button { + height: 40px; + background-color: white; + color: var(--left-msg-txt) !important; + padding-right: 10px; + padding-left: 10px; + margin: 10px; + border-radius: 4px; + border: none !important; + transition: all 0.2s ease; +} + +.link-button:hover{ + box-shadow: rgb(38, 57, 77) 5px 15px 25px -10px; + transform: scale(1.1); + background-color: #eaedee; +} + +.link-button a{ + color: black; +} + +.row{ + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; +} + +.mainpage img { + margin-right: 10px; +} + +.loading-gif { + display: inline-block; + vertical-align: middle; + width: 18px; + height: 18px; +} + +.area { + width: 100%; + height: 100%; + border: 4px solid #000; + /* background-image: url("http://kmtlondon.com/img/upload.png"); */ + background-position: center; + background-repeat: no-repeat; + background-size: 64px 64px; + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + filter: alpha(opacity=50); + -khtml-opacity: 0.5; + -moz-opacity: 0.5; + opacity: 0.5; + text-align: center; +} + +.area:hover, +.area.dragging, +.area.uploading { + filter: alpha(opacity=100); + -khtml-opacity: 1; + -moz-opacity: 1; + opacity: 1; +} + +.area input { + width: 400%; + height: 100%; + margin-left: -300%; + border: none; + cursor: pointer; +} + +.area input:focus { + outline: none; +} + +#nice-alert { + z-index: 4000; + max-width: 0px !important ; + max-height: 0px !important; + position: absolute; + overflow: hidden; + top: 50vh; + left: 50vw; + background-color: var(--msg-chat-bg); + box-shadow: 0 3px 10px rgb(0 0 0 / 0.2); + transition: all 0.05s ease; + border-radius: 4px; + color: var(--msg-input-color); + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + padding: 0px; +} + +#nice-alert.show { + z-index: 4000; + max-width: 2200px !important ; + max-height: 3100px !important; + padding: 20px; + + position: absolute; + overflow: hidden; + top: calc(50vh - 50px); + left: 40vw; + right: 4ovw; +} + +#nice-alert button { + margin-top: 20px !important; +} + +.msger-header-title { + display: flex; + flex-direction: row; +margin-top: 3px; +} + +.msger-header-title * { + margin-right: 10px; +} + +.fileurl { + background-color: #00000097; + border-left: 1px solid #515151; + padding: 0px !important; + +} + +.loading-message { + width: 100%; + flex-direction: row; + justify-content: center; + align-items: center; +} + +.embed { + bottom: 0 !important; + right: 0 !important; + position: fixed !important; + width: 500px !important; + margin-right: 50px !important; +} + +/* CSS */ +.button-30 { + align-items: center; + appearance: none; + background-color: #FCFCFD; + border-radius: 4px; + border-width: 0; + box-shadow: rgba(45, 35, 66, 0.4) 0 2px 4px,rgba(45, 35, 66, 0.3) 0 7px 13px -3px,#D6D6E7 0 -3px 0 inset; + box-sizing: border-box; + color: #36395A; + cursor: pointer; + display: inline-flex; + font-family: "JetBrains Mono",monospace; + height: 48px; + justify-content: center; + line-height: 1; + list-style: none; + overflow: hidden; + padding-left: 16px; + padding-right: 16px; + position: relative; + text-align: left; + text-decoration: none; + transition: box-shadow .15s,transform .15s; + user-select: none; + -webkit-user-select: none; + touch-action: manipulation; + white-space: nowrap; + will-change: box-shadow,transform; + font-size: 18px; + } + + .button-30:focus { + box-shadow: #D6D6E7 0 0 0 1.5px inset, rgba(45, 35, 66, 0.4) 0 2px 4px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset; + } + + .button-30:hover { + box-shadow: rgba(45, 35, 66, 0.4) 0 4px 8px, rgba(45, 35, 66, 0.3) 0 7px 13px -3px, #D6D6E7 0 -3px 0 inset; + transform: translateY(-2px); + } + + .button-30:active { + box-shadow: #D6D6E7 0 3px 7px inset; + transform: translateY(2px); + } + + .embed .embed-chattutor-window{ + transition: all 0.2s ease; + transform: translateY(1200px); + } + .embed.embed-open .embed-chattutor-window{ + transform: translateY(0px); + } + + .embed .embed-chattutor-window{ + transition: all 0.2s ease; + transform: translateY(1200px); + } + + .embed.embed-open #chattutor-toggler{ + display: none !important; + } + + #chattutor-toggler { + position: fixed; + bottom: 20px; + right: 20px; + } + + .btn { + background-color: white !important; + color: #282828; + float: right; + padding-top: 0 !important; + padding-bottom: 0 !important; + } + + .message-header-title { + display: flex; + flex-direction: row; + justify-content: space-between; + } + + .msger-chat { + max-height: 700px; + } + + .msger-header { + background-color: var(--body-bg); + /* transform: translateX(10px); */ + border-radius: 4px !important; + } + + .msger-chat{ + width: 500px; + } + + .msger-header-title{ + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + } \ No newline at end of file diff --git a/book/chattutor_setup/install.py b/book/chattutor_setup/install.py new file mode 100644 index 0000000..833a825 --- /dev/null +++ b/book/chattutor_setup/install.py @@ -0,0 +1,49 @@ +from bs4 import BeautifulSoup +import shutil +import os +import argparse + +parser = argparse.ArgumentParser(description='A test program.') + +parser.add_argument("--local", help="true | false(default): \t Makes requests for chattutor either to chattutor.org if false,\n or to localhost:5000 if true\n\tExamples:\n\t\t$ python3 ./book/chattutor_setup/install.py --local true\n\t\t$ python3 ./book/chattutor_setup/install.py", default="false") + +args = parser.parse_args() + +print(args.local) + +content_path = "book/_build/html" +css_path = "book/_build/html/_static/styles/chattutor.style.css" +js_path = "book/_build/html/_static/scripts/chattutor.min.js" +config_path = "book/_build/html/_static/scripts/chattutor.config.js" + +shutil.copyfile("book/chattutor_setup/chattutor.style.css", css_path) +shutil.copyfile("book/chattutor_setup/chattutor.config.js", config_path) +shutil.copyfile("book/chattutor_setup/chattutor.min.js", js_path) + + +def add_chattutor(dirpath, filename): + file = os.path.join(dirpath, filename) + with open(file, "r") as f: + page_html = f.read() + parsed_page_html = BeautifulSoup(page_html) + main = parsed_page_html.find("main", {"id": "main-content"}) + if main == None: return + + + parsed_page_html.html.body.append(parsed_page_html.new_tag("script", src=os.path.relpath(config_path, dirpath))) + + parsed_page_html.html.body.append(parsed_page_html.new_tag("script", src=os.path.relpath(js_path, dirpath))) + + parsed_page_html.html.head.append(parsed_page_html.new_tag("link", + rel="stylesheet", + type="text/css", + href=os.path.relpath(css_path, dirpath) + )) + + with open(file, "w") as f: + f.write(str(parsed_page_html)) + +for dirpath, dirnames, filenames in os.walk(content_path): + for file in filenames: + if file.endswith(".html"): add_chattutor(dirpath, file) + diff --git a/bootcamp/bin/Activate.ps1 b/bootcamp/bin/Activate.ps1 new file mode 100644 index 0000000..b49d77b --- /dev/null +++ b/bootcamp/bin/Activate.ps1 @@ -0,0 +1,247 @@ +<# +.Synopsis +Activate a Python virtual environment for the current PowerShell session. + +.Description +Pushes the python executable for a virtual environment to the front of the +$Env:PATH environment variable and sets the prompt to signify that you are +in a Python virtual environment. Makes use of the command line switches as +well as the `pyvenv.cfg` file values present in the virtual environment. + +.Parameter VenvDir +Path to the directory that contains the virtual environment to activate. The +default value for this is the parent of the directory that the Activate.ps1 +script is located within. + +.Parameter Prompt +The prompt prefix to display when this virtual environment is activated. By +default, this prompt is the name of the virtual environment folder (VenvDir) +surrounded by parentheses and followed by a single space (ie. '(.venv) '). + +.Example +Activate.ps1 +Activates the Python virtual environment that contains the Activate.ps1 script. + +.Example +Activate.ps1 -Verbose +Activates the Python virtual environment that contains the Activate.ps1 script, +and shows extra information about the activation as it executes. + +.Example +Activate.ps1 -VenvDir C:\Users\MyUser\Common\.venv +Activates the Python virtual environment located in the specified location. + +.Example +Activate.ps1 -Prompt "MyPython" +Activates the Python virtual environment that contains the Activate.ps1 script, +and prefixes the current prompt with the specified string (surrounded in +parentheses) while the virtual environment is active. + +.Notes +On Windows, it may be required to enable this Activate.ps1 script by setting the +execution policy for the user. You can do this by issuing the following PowerShell +command: + +PS C:\> Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser + +For more information on Execution Policies: +https://go.microsoft.com/fwlink/?LinkID=135170 + +#> +Param( + [Parameter(Mandatory = $false)] + [String] + $VenvDir, + [Parameter(Mandatory = $false)] + [String] + $Prompt +) + +<# Function declarations --------------------------------------------------- #> + +<# +.Synopsis +Remove all shell session elements added by the Activate script, including the +addition of the virtual environment's Python executable from the beginning of +the PATH variable. + +.Parameter NonDestructive +If present, do not remove this function from the global namespace for the +session. + +#> +function global:deactivate ([switch]$NonDestructive) { + # Revert to original values + + # The prior prompt: + if (Test-Path -Path Function:_OLD_VIRTUAL_PROMPT) { + Copy-Item -Path Function:_OLD_VIRTUAL_PROMPT -Destination Function:prompt + Remove-Item -Path Function:_OLD_VIRTUAL_PROMPT + } + + # The prior PYTHONHOME: + if (Test-Path -Path Env:_OLD_VIRTUAL_PYTHONHOME) { + Copy-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME -Destination Env:PYTHONHOME + Remove-Item -Path Env:_OLD_VIRTUAL_PYTHONHOME + } + + # The prior PATH: + if (Test-Path -Path Env:_OLD_VIRTUAL_PATH) { + Copy-Item -Path Env:_OLD_VIRTUAL_PATH -Destination Env:PATH + Remove-Item -Path Env:_OLD_VIRTUAL_PATH + } + + # Just remove the VIRTUAL_ENV altogether: + if (Test-Path -Path Env:VIRTUAL_ENV) { + Remove-Item -Path env:VIRTUAL_ENV + } + + # Just remove VIRTUAL_ENV_PROMPT altogether. + if (Test-Path -Path Env:VIRTUAL_ENV_PROMPT) { + Remove-Item -Path env:VIRTUAL_ENV_PROMPT + } + + # Just remove the _PYTHON_VENV_PROMPT_PREFIX altogether: + if (Get-Variable -Name "_PYTHON_VENV_PROMPT_PREFIX" -ErrorAction SilentlyContinue) { + Remove-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Scope Global -Force + } + + # Leave deactivate function in the global namespace if requested: + if (-not $NonDestructive) { + Remove-Item -Path function:deactivate + } +} + +<# +.Description +Get-PyVenvConfig parses the values from the pyvenv.cfg file located in the +given folder, and returns them in a map. + +For each line in the pyvenv.cfg file, if that line can be parsed into exactly +two strings separated by `=` (with any amount of whitespace surrounding the =) +then it is considered a `key = value` line. The left hand string is the key, +the right hand is the value. + +If the value starts with a `'` or a `"` then the first and last character is +stripped from the value before being captured. + +.Parameter ConfigDir +Path to the directory that contains the `pyvenv.cfg` file. +#> +function Get-PyVenvConfig( + [String] + $ConfigDir +) { + Write-Verbose "Given ConfigDir=$ConfigDir, obtain values in pyvenv.cfg" + + # Ensure the file exists, and issue a warning if it doesn't (but still allow the function to continue). + $pyvenvConfigPath = Join-Path -Resolve -Path $ConfigDir -ChildPath 'pyvenv.cfg' -ErrorAction Continue + + # An empty map will be returned if no config file is found. + $pyvenvConfig = @{ } + + if ($pyvenvConfigPath) { + + Write-Verbose "File exists, parse `key = value` lines" + $pyvenvConfigContent = Get-Content -Path $pyvenvConfigPath + + $pyvenvConfigContent | ForEach-Object { + $keyval = $PSItem -split "\s*=\s*", 2 + if ($keyval[0] -and $keyval[1]) { + $val = $keyval[1] + + # Remove extraneous quotations around a string value. + if ("'""".Contains($val.Substring(0, 1))) { + $val = $val.Substring(1, $val.Length - 2) + } + + $pyvenvConfig[$keyval[0]] = $val + Write-Verbose "Adding Key: '$($keyval[0])'='$val'" + } + } + } + return $pyvenvConfig +} + + +<# Begin Activate script --------------------------------------------------- #> + +# Determine the containing directory of this script +$VenvExecPath = Split-Path -Parent $MyInvocation.MyCommand.Definition +$VenvExecDir = Get-Item -Path $VenvExecPath + +Write-Verbose "Activation script is located in path: '$VenvExecPath'" +Write-Verbose "VenvExecDir Fullname: '$($VenvExecDir.FullName)" +Write-Verbose "VenvExecDir Name: '$($VenvExecDir.Name)" + +# Set values required in priority: CmdLine, ConfigFile, Default +# First, get the location of the virtual environment, it might not be +# VenvExecDir if specified on the command line. +if ($VenvDir) { + Write-Verbose "VenvDir given as parameter, using '$VenvDir' to determine values" +} +else { + Write-Verbose "VenvDir not given as a parameter, using parent directory name as VenvDir." + $VenvDir = $VenvExecDir.Parent.FullName.TrimEnd("\\/") + Write-Verbose "VenvDir=$VenvDir" +} + +# Next, read the `pyvenv.cfg` file to determine any required value such +# as `prompt`. +$pyvenvCfg = Get-PyVenvConfig -ConfigDir $VenvDir + +# Next, set the prompt from the command line, or the config file, or +# just use the name of the virtual environment folder. +if ($Prompt) { + Write-Verbose "Prompt specified as argument, using '$Prompt'" +} +else { + Write-Verbose "Prompt not specified as argument to script, checking pyvenv.cfg value" + if ($pyvenvCfg -and $pyvenvCfg['prompt']) { + Write-Verbose " Setting based on value in pyvenv.cfg='$($pyvenvCfg['prompt'])'" + $Prompt = $pyvenvCfg['prompt']; + } + else { + Write-Verbose " Setting prompt based on parent's directory's name. (Is the directory name passed to venv module when creating the virtual environment)" + Write-Verbose " Got leaf-name of $VenvDir='$(Split-Path -Path $venvDir -Leaf)'" + $Prompt = Split-Path -Path $venvDir -Leaf + } +} + +Write-Verbose "Prompt = '$Prompt'" +Write-Verbose "VenvDir='$VenvDir'" + +# Deactivate any currently active virtual environment, but leave the +# deactivate function in place. +deactivate -nondestructive + +# Now set the environment variable VIRTUAL_ENV, used by many tools to determine +# that there is an activated venv. +$env:VIRTUAL_ENV = $VenvDir + +if (-not $Env:VIRTUAL_ENV_DISABLE_PROMPT) { + + Write-Verbose "Setting prompt to '$Prompt'" + + # Set the prompt to include the env name + # Make sure _OLD_VIRTUAL_PROMPT is global + function global:_OLD_VIRTUAL_PROMPT { "" } + Copy-Item -Path function:prompt -Destination function:_OLD_VIRTUAL_PROMPT + New-Variable -Name _PYTHON_VENV_PROMPT_PREFIX -Description "Python virtual environment prompt prefix" -Scope Global -Option ReadOnly -Visibility Public -Value $Prompt + + function global:prompt { + Write-Host -NoNewline -ForegroundColor Green "($_PYTHON_VENV_PROMPT_PREFIX) " + _OLD_VIRTUAL_PROMPT + } + $env:VIRTUAL_ENV_PROMPT = $Prompt +} + +# Clear PYTHONHOME +if (Test-Path -Path Env:PYTHONHOME) { + Copy-Item -Path Env:PYTHONHOME -Destination Env:_OLD_VIRTUAL_PYTHONHOME + Remove-Item -Path Env:PYTHONHOME +} + +# Add the venv to the PATH +Copy-Item -Path Env:PATH -Destination Env:_OLD_VIRTUAL_PATH +$Env:PATH = "$VenvExecDir$([System.IO.Path]::PathSeparator)$Env:PATH" diff --git a/bootcamp/bin/activate b/bootcamp/bin/activate new file mode 100644 index 0000000..d7bffc2 --- /dev/null +++ b/bootcamp/bin/activate @@ -0,0 +1,69 @@ +# This file must be used with "source bin/activate" *from bash* +# you cannot run it directly + +deactivate () { + # reset old environment variables + if [ -n "${_OLD_VIRTUAL_PATH:-}" ] ; then + PATH="${_OLD_VIRTUAL_PATH:-}" + export PATH + unset _OLD_VIRTUAL_PATH + fi + if [ -n "${_OLD_VIRTUAL_PYTHONHOME:-}" ] ; then + PYTHONHOME="${_OLD_VIRTUAL_PYTHONHOME:-}" + export PYTHONHOME + unset _OLD_VIRTUAL_PYTHONHOME + fi + + # This should detect bash and zsh, which have a hash command that must + # be called to get it to forget past commands. Without forgetting + # past commands the $PATH changes we made may not be respected + if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then + hash -r 2> /dev/null + fi + + if [ -n "${_OLD_VIRTUAL_PS1:-}" ] ; then + PS1="${_OLD_VIRTUAL_PS1:-}" + export PS1 + unset _OLD_VIRTUAL_PS1 + fi + + unset VIRTUAL_ENV + unset VIRTUAL_ENV_PROMPT + if [ ! "${1:-}" = "nondestructive" ] ; then + # Self destruct! + unset -f deactivate + fi +} + +# unset irrelevant variables +deactivate nondestructive + +VIRTUAL_ENV="/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp" +export VIRTUAL_ENV + +_OLD_VIRTUAL_PATH="$PATH" +PATH="$VIRTUAL_ENV/bin:$PATH" +export PATH + +# unset PYTHONHOME if set +# this will fail if PYTHONHOME is set to the empty string (which is bad anyway) +# could use `if (set -u; : $PYTHONHOME) ;` in bash +if [ -n "${PYTHONHOME:-}" ] ; then + _OLD_VIRTUAL_PYTHONHOME="${PYTHONHOME:-}" + unset PYTHONHOME +fi + +if [ -z "${VIRTUAL_ENV_DISABLE_PROMPT:-}" ] ; then + _OLD_VIRTUAL_PS1="${PS1:-}" + PS1="(bootcamp) ${PS1:-}" + export PS1 + VIRTUAL_ENV_PROMPT="(bootcamp) " + export VIRTUAL_ENV_PROMPT +fi + +# This should detect bash and zsh, which have a hash command that must +# be called to get it to forget past commands. Without forgetting +# past commands the $PATH changes we made may not be respected +if [ -n "${BASH:-}" -o -n "${ZSH_VERSION:-}" ] ; then + hash -r 2> /dev/null +fi diff --git a/bootcamp/bin/activate.csh b/bootcamp/bin/activate.csh new file mode 100644 index 0000000..7a411fb --- /dev/null +++ b/bootcamp/bin/activate.csh @@ -0,0 +1,26 @@ +# This file must be used with "source bin/activate.csh" *from csh*. +# You cannot run it directly. +# Created by Davide Di Blasi . +# Ported to Python 3.3 venv by Andrew Svetlov + +alias deactivate 'test $?_OLD_VIRTUAL_PATH != 0 && setenv PATH "$_OLD_VIRTUAL_PATH" && unset _OLD_VIRTUAL_PATH; rehash; test $?_OLD_VIRTUAL_PROMPT != 0 && set prompt="$_OLD_VIRTUAL_PROMPT" && unset _OLD_VIRTUAL_PROMPT; unsetenv VIRTUAL_ENV; unsetenv VIRTUAL_ENV_PROMPT; test "\!:*" != "nondestructive" && unalias deactivate' + +# Unset irrelevant variables. +deactivate nondestructive + +setenv VIRTUAL_ENV "/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp" + +set _OLD_VIRTUAL_PATH="$PATH" +setenv PATH "$VIRTUAL_ENV/bin:$PATH" + + +set _OLD_VIRTUAL_PROMPT="$prompt" + +if (! "$?VIRTUAL_ENV_DISABLE_PROMPT") then + set prompt = "(bootcamp) $prompt" + setenv VIRTUAL_ENV_PROMPT "(bootcamp) " +endif + +alias pydoc python -m pydoc + +rehash diff --git a/bootcamp/bin/activate.fish b/bootcamp/bin/activate.fish new file mode 100644 index 0000000..b3aafc8 --- /dev/null +++ b/bootcamp/bin/activate.fish @@ -0,0 +1,69 @@ +# This file must be used with "source /bin/activate.fish" *from fish* +# (https://fishshell.com/); you cannot run it directly. + +function deactivate -d "Exit virtual environment and return to normal shell environment" + # reset old environment variables + if test -n "$_OLD_VIRTUAL_PATH" + set -gx PATH $_OLD_VIRTUAL_PATH + set -e _OLD_VIRTUAL_PATH + end + if test -n "$_OLD_VIRTUAL_PYTHONHOME" + set -gx PYTHONHOME $_OLD_VIRTUAL_PYTHONHOME + set -e _OLD_VIRTUAL_PYTHONHOME + end + + if test -n "$_OLD_FISH_PROMPT_OVERRIDE" + set -e _OLD_FISH_PROMPT_OVERRIDE + # prevents error when using nested fish instances (Issue #93858) + if functions -q _old_fish_prompt + functions -e fish_prompt + functions -c _old_fish_prompt fish_prompt + functions -e _old_fish_prompt + end + end + + set -e VIRTUAL_ENV + set -e VIRTUAL_ENV_PROMPT + if test "$argv[1]" != "nondestructive" + # Self-destruct! + functions -e deactivate + end +end + +# Unset irrelevant variables. +deactivate nondestructive + +set -gx VIRTUAL_ENV "/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp" + +set -gx _OLD_VIRTUAL_PATH $PATH +set -gx PATH "$VIRTUAL_ENV/bin" $PATH + +# Unset PYTHONHOME if set. +if set -q PYTHONHOME + set -gx _OLD_VIRTUAL_PYTHONHOME $PYTHONHOME + set -e PYTHONHOME +end + +if test -z "$VIRTUAL_ENV_DISABLE_PROMPT" + # fish uses a function instead of an env var to generate the prompt. + + # Save the current fish_prompt function as the function _old_fish_prompt. + functions -c fish_prompt _old_fish_prompt + + # With the original prompt function renamed, we can override with our own. + function fish_prompt + # Save the return status of the last command. + set -l old_status $status + + # Output the venv prompt; color taken from the blue of the Python logo. + printf "%s%s%s" (set_color 4B8BBE) "(bootcamp) " (set_color normal) + + # Restore the return status of the previous command. + echo "exit $old_status" | . + # Output the original/"old" prompt. + _old_fish_prompt + end + + set -gx _OLD_FISH_PROMPT_OVERRIDE "$VIRTUAL_ENV" + set -gx VIRTUAL_ENV_PROMPT "(bootcamp) " +end diff --git a/bootcamp/bin/ipython b/bootcamp/bin/ipython new file mode 100755 index 0000000..019eea0 --- /dev/null +++ b/bootcamp/bin/ipython @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from IPython import start_ipython +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(start_ipython()) diff --git a/bootcamp/bin/ipython3 b/bootcamp/bin/ipython3 new file mode 100755 index 0000000..019eea0 --- /dev/null +++ b/bootcamp/bin/ipython3 @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from IPython import start_ipython +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(start_ipython()) diff --git a/bootcamp/bin/jb b/bootcamp/bin/jb new file mode 100755 index 0000000..09e7be6 --- /dev/null +++ b/bootcamp/bin/jb @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from jupyter_book.cli.main import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/jcache b/bootcamp/bin/jcache new file mode 100755 index 0000000..bf6c226 --- /dev/null +++ b/bootcamp/bin/jcache @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from jupyter_cache.cli.commands.cmd_main import jcache +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(jcache()) diff --git a/bootcamp/bin/jlpm b/bootcamp/bin/jlpm new file mode 100755 index 0000000..065d2a3 --- /dev/null +++ b/bootcamp/bin/jlpm @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from jupyterlab.jlpmapp import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/jsonpointer b/bootcamp/bin/jsonpointer new file mode 100755 index 0000000..f40eb0a --- /dev/null +++ b/bootcamp/bin/jsonpointer @@ -0,0 +1,69 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- + +from __future__ import print_function + +import sys +import os.path +import json +import jsonpointer +import argparse + + +parser = argparse.ArgumentParser( + description='Resolve a JSON pointer on JSON files') + +# Accept pointer as argument or as file +ptr_group = parser.add_mutually_exclusive_group(required=True) + +ptr_group.add_argument('-f', '--pointer-file', type=argparse.FileType('r'), + nargs='?', + help='File containing a JSON pointer expression') + +ptr_group.add_argument('POINTER', type=str, nargs='?', + help='A JSON pointer expression') + +parser.add_argument('FILE', type=argparse.FileType('r'), nargs='+', + help='Files for which the pointer should be resolved') +parser.add_argument('--indent', type=int, default=None, + help='Indent output by n spaces') +parser.add_argument('-v', '--version', action='version', + version='%(prog)s ' + jsonpointer.__version__) + + +def main(): + try: + resolve_files() + except KeyboardInterrupt: + sys.exit(1) + + +def parse_pointer(args): + if args.POINTER: + ptr = args.POINTER + elif args.pointer_file: + ptr = args.pointer_file.read().strip() + else: + parser.print_usage() + sys.exit(1) + + return ptr + + +def resolve_files(): + """ Resolve a JSON pointer on JSON files """ + args = parser.parse_args() + + ptr = parse_pointer(args) + + for f in args.FILE: + doc = json.load(f) + try: + result = jsonpointer.resolve_pointer(doc, ptr) + print(json.dumps(result, indent=args.indent)) + except jsonpointer.JsonPointerException as e: + print('Could not resolve pointer: %s' % str(e), file=sys.stderr) + + +if __name__ == "__main__": + main() diff --git a/bootcamp/bin/jsonschema b/bootcamp/bin/jsonschema new file mode 100755 index 0000000..caf8fbe --- /dev/null +++ b/bootcamp/bin/jsonschema @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from jsonschema.cli import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/jupyter b/bootcamp/bin/jupyter new file mode 100755 index 0000000..88a0fb9 --- /dev/null +++ b/bootcamp/bin/jupyter @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from jupyter_core.command import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/jupyter-book b/bootcamp/bin/jupyter-book new file mode 100755 index 0000000..09e7be6 --- /dev/null +++ b/bootcamp/bin/jupyter-book @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from jupyter_book.cli.main import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/jupyter-dejavu b/bootcamp/bin/jupyter-dejavu new file mode 100755 index 0000000..5d4d050 --- /dev/null +++ b/bootcamp/bin/jupyter-dejavu @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from nbconvert.nbconvertapp import dejavu_main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(dejavu_main()) diff --git a/bootcamp/bin/jupyter-events b/bootcamp/bin/jupyter-events new file mode 100755 index 0000000..b5f2080 --- /dev/null +++ b/bootcamp/bin/jupyter-events @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from jupyter_events.cli import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/jupyter-execute b/bootcamp/bin/jupyter-execute new file mode 100755 index 0000000..36e7aab --- /dev/null +++ b/bootcamp/bin/jupyter-execute @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from nbclient.cli import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/jupyter-kernel b/bootcamp/bin/jupyter-kernel new file mode 100755 index 0000000..8719542 --- /dev/null +++ b/bootcamp/bin/jupyter-kernel @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from jupyter_client.kernelapp import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/jupyter-kernelspec b/bootcamp/bin/jupyter-kernelspec new file mode 100755 index 0000000..16ed426 --- /dev/null +++ b/bootcamp/bin/jupyter-kernelspec @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from jupyter_client.kernelspecapp import KernelSpecApp +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(KernelSpecApp.launch_instance()) diff --git a/bootcamp/bin/jupyter-lab b/bootcamp/bin/jupyter-lab new file mode 100755 index 0000000..308b506 --- /dev/null +++ b/bootcamp/bin/jupyter-lab @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from jupyterlab.labapp import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/jupyter-labextension b/bootcamp/bin/jupyter-labextension new file mode 100755 index 0000000..dea8e45 --- /dev/null +++ b/bootcamp/bin/jupyter-labextension @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from jupyterlab.labextensions import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/jupyter-labhub b/bootcamp/bin/jupyter-labhub new file mode 100755 index 0000000..5bc4096 --- /dev/null +++ b/bootcamp/bin/jupyter-labhub @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from jupyterlab.labhubapp import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/jupyter-migrate b/bootcamp/bin/jupyter-migrate new file mode 100755 index 0000000..6fc25e7 --- /dev/null +++ b/bootcamp/bin/jupyter-migrate @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from jupyter_core.migrate import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/jupyter-nbconvert b/bootcamp/bin/jupyter-nbconvert new file mode 100755 index 0000000..b260020 --- /dev/null +++ b/bootcamp/bin/jupyter-nbconvert @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from nbconvert.nbconvertapp import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/jupyter-notebook b/bootcamp/bin/jupyter-notebook new file mode 100755 index 0000000..e5a700a --- /dev/null +++ b/bootcamp/bin/jupyter-notebook @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from notebook.app import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/jupyter-run b/bootcamp/bin/jupyter-run new file mode 100755 index 0000000..d8bd103 --- /dev/null +++ b/bootcamp/bin/jupyter-run @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from jupyter_client.runapp import RunApp +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(RunApp.launch_instance()) diff --git a/bootcamp/bin/jupyter-server b/bootcamp/bin/jupyter-server new file mode 100755 index 0000000..71ab5bf --- /dev/null +++ b/bootcamp/bin/jupyter-server @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from jupyter_server.serverapp import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/jupyter-troubleshoot b/bootcamp/bin/jupyter-troubleshoot new file mode 100755 index 0000000..b9322ff --- /dev/null +++ b/bootcamp/bin/jupyter-troubleshoot @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from jupyter_core.troubleshoot import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/jupyter-trust b/bootcamp/bin/jupyter-trust new file mode 100755 index 0000000..b862853 --- /dev/null +++ b/bootcamp/bin/jupyter-trust @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from nbformat.sign import TrustNotebookApp +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(TrustNotebookApp.launch_instance()) diff --git a/bootcamp/bin/markdown-it b/bootcamp/bin/markdown-it new file mode 100755 index 0000000..2078ce7 --- /dev/null +++ b/bootcamp/bin/markdown-it @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from markdown_it.cli.parse import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/myst-anchors b/bootcamp/bin/myst-anchors new file mode 100755 index 0000000..0b80898 --- /dev/null +++ b/bootcamp/bin/myst-anchors @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from myst_parser.cli import print_anchors +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(print_anchors()) diff --git a/bootcamp/bin/myst-docutils-html b/bootcamp/bin/myst-docutils-html new file mode 100755 index 0000000..7aa8b77 --- /dev/null +++ b/bootcamp/bin/myst-docutils-html @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from myst_parser.parsers.docutils_ import cli_html +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cli_html()) diff --git a/bootcamp/bin/myst-docutils-html5 b/bootcamp/bin/myst-docutils-html5 new file mode 100755 index 0000000..d720d76 --- /dev/null +++ b/bootcamp/bin/myst-docutils-html5 @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from myst_parser.parsers.docutils_ import cli_html5 +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cli_html5()) diff --git a/bootcamp/bin/myst-docutils-latex b/bootcamp/bin/myst-docutils-latex new file mode 100755 index 0000000..48ddd3f --- /dev/null +++ b/bootcamp/bin/myst-docutils-latex @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from myst_parser.parsers.docutils_ import cli_latex +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cli_latex()) diff --git a/bootcamp/bin/myst-docutils-pseudoxml b/bootcamp/bin/myst-docutils-pseudoxml new file mode 100755 index 0000000..af6be1f --- /dev/null +++ b/bootcamp/bin/myst-docutils-pseudoxml @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from myst_parser.parsers.docutils_ import cli_pseudoxml +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cli_pseudoxml()) diff --git a/bootcamp/bin/myst-docutils-xml b/bootcamp/bin/myst-docutils-xml new file mode 100755 index 0000000..3b23afe --- /dev/null +++ b/bootcamp/bin/myst-docutils-xml @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from myst_parser.parsers.docutils_ import cli_xml +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cli_xml()) diff --git a/bootcamp/bin/mystnb-docutils-html b/bootcamp/bin/mystnb-docutils-html new file mode 100755 index 0000000..c1737d2 --- /dev/null +++ b/bootcamp/bin/mystnb-docutils-html @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from myst_nb.docutils_ import cli_html +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cli_html()) diff --git a/bootcamp/bin/mystnb-docutils-html5 b/bootcamp/bin/mystnb-docutils-html5 new file mode 100755 index 0000000..22ac0ef --- /dev/null +++ b/bootcamp/bin/mystnb-docutils-html5 @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from myst_nb.docutils_ import cli_html5 +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cli_html5()) diff --git a/bootcamp/bin/mystnb-docutils-latex b/bootcamp/bin/mystnb-docutils-latex new file mode 100755 index 0000000..91d1fd7 --- /dev/null +++ b/bootcamp/bin/mystnb-docutils-latex @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from myst_nb.docutils_ import cli_latex +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cli_latex()) diff --git a/bootcamp/bin/mystnb-docutils-pseudoxml b/bootcamp/bin/mystnb-docutils-pseudoxml new file mode 100755 index 0000000..eee5170 --- /dev/null +++ b/bootcamp/bin/mystnb-docutils-pseudoxml @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from myst_nb.docutils_ import cli_pseudoxml +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cli_pseudoxml()) diff --git a/bootcamp/bin/mystnb-docutils-xml b/bootcamp/bin/mystnb-docutils-xml new file mode 100755 index 0000000..d19e815 --- /dev/null +++ b/bootcamp/bin/mystnb-docutils-xml @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from myst_nb.docutils_ import cli_xml +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cli_xml()) diff --git a/bootcamp/bin/mystnb-quickstart b/bootcamp/bin/mystnb-quickstart new file mode 100755 index 0000000..c4a7933 --- /dev/null +++ b/bootcamp/bin/mystnb-quickstart @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from myst_nb.cli import quickstart +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(quickstart()) diff --git a/bootcamp/bin/mystnb-to-jupyter b/bootcamp/bin/mystnb-to-jupyter new file mode 100755 index 0000000..dc5a2d9 --- /dev/null +++ b/bootcamp/bin/mystnb-to-jupyter @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from myst_nb.cli import md_to_nb +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(md_to_nb()) diff --git a/bootcamp/bin/normalizer b/bootcamp/bin/normalizer new file mode 100755 index 0000000..7aab9cf --- /dev/null +++ b/bootcamp/bin/normalizer @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from charset_normalizer.cli import cli_detect +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(cli_detect()) diff --git a/bootcamp/bin/pip b/bootcamp/bin/pip new file mode 100755 index 0000000..f057918 --- /dev/null +++ b/bootcamp/bin/pip @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from pip._internal.cli.main import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/pip3 b/bootcamp/bin/pip3 new file mode 100755 index 0000000..f057918 --- /dev/null +++ b/bootcamp/bin/pip3 @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from pip._internal.cli.main import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/pip3.11 b/bootcamp/bin/pip3.11 new file mode 100755 index 0000000..f057918 --- /dev/null +++ b/bootcamp/bin/pip3.11 @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from pip._internal.cli.main import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/pybabel b/bootcamp/bin/pybabel new file mode 100755 index 0000000..b1024fc --- /dev/null +++ b/bootcamp/bin/pybabel @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from babel.messages.frontend import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/pybtex b/bootcamp/bin/pybtex new file mode 100755 index 0000000..7d87ab5 --- /dev/null +++ b/bootcamp/bin/pybtex @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from pybtex.__main__ import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/pybtex-convert b/bootcamp/bin/pybtex-convert new file mode 100755 index 0000000..a9cabac --- /dev/null +++ b/bootcamp/bin/pybtex-convert @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from pybtex.database.convert.__main__ import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/pybtex-format b/bootcamp/bin/pybtex-format new file mode 100755 index 0000000..afd6148 --- /dev/null +++ b/bootcamp/bin/pybtex-format @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from pybtex.database.format.__main__ import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/pygmentize b/bootcamp/bin/pygmentize new file mode 100755 index 0000000..c67318c --- /dev/null +++ b/bootcamp/bin/pygmentize @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from pygments.cmdline import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/pyjson5 b/bootcamp/bin/pyjson5 new file mode 100755 index 0000000..6d95ebb --- /dev/null +++ b/bootcamp/bin/pyjson5 @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from json5.tool import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/python b/bootcamp/bin/python new file mode 120000 index 0000000..6e7f3c7 --- /dev/null +++ b/bootcamp/bin/python @@ -0,0 +1 @@ +python3.11 \ No newline at end of file diff --git a/bootcamp/bin/python3 b/bootcamp/bin/python3 new file mode 120000 index 0000000..6e7f3c7 --- /dev/null +++ b/bootcamp/bin/python3 @@ -0,0 +1 @@ +python3.11 \ No newline at end of file diff --git a/bootcamp/bin/python3.11 b/bootcamp/bin/python3.11 new file mode 120000 index 0000000..d4dd23c --- /dev/null +++ b/bootcamp/bin/python3.11 @@ -0,0 +1 @@ +/opt/homebrew/Cellar/python@3.11/3.11.3/Frameworks/Python.framework/Versions/3.11/bin/python3.11 \ No newline at end of file diff --git a/bootcamp/bin/rst2html.py b/bootcamp/bin/rst2html.py new file mode 100755 index 0000000..816b2cb --- /dev/null +++ b/bootcamp/bin/rst2html.py @@ -0,0 +1,23 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 + +# $Id: rst2html.py 4564 2006-05-21 20:44:42Z wiemann $ +# Author: David Goodger +# Copyright: This module has been placed in the public domain. + +""" +A minimal front end to the Docutils Publisher, producing HTML. +""" + +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline, default_description + + +description = ('Generates (X)HTML documents from standalone reStructuredText ' + 'sources. ' + default_description) + +publish_cmdline(writer_name='html', description=description) diff --git a/bootcamp/bin/rst2html4.py b/bootcamp/bin/rst2html4.py new file mode 100755 index 0000000..a44e03e --- /dev/null +++ b/bootcamp/bin/rst2html4.py @@ -0,0 +1,26 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 + +# $Id: rst2html4.py 7994 2016-12-10 17:41:45Z milde $ +# Author: David Goodger +# Copyright: This module has been placed in the public domain. + +""" +A minimal front end to the Docutils Publisher, producing (X)HTML. + +The output conforms to XHTML 1.0 transitional +and almost to HTML 4.01 transitional (except for closing empty tags). +""" + +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline, default_description + + +description = ('Generates (X)HTML documents from standalone reStructuredText ' + 'sources. ' + default_description) + +publish_cmdline(writer_name='html4', description=description) diff --git a/bootcamp/bin/rst2html5.py b/bootcamp/bin/rst2html5.py new file mode 100755 index 0000000..c9c9a43 --- /dev/null +++ b/bootcamp/bin/rst2html5.py @@ -0,0 +1,34 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf8 -*- +# :Copyright: © 2015 Günter Milde. +# :License: Released under the terms of the `2-Clause BSD license`_, in short: +# +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. +# This file is offered as-is, without any warranty. +# +# .. _2-Clause BSD license: https://opensource.org/licenses/BSD-2-Clause +# +# Revision: $Revision: 8567 $ +# Date: $Date: 2020-09-30 13:57:21 +0200 (Mi, 30. Sep 2020) $ + +""" +A minimal front end to the Docutils Publisher, producing HTML 5 documents. + +The output is also valid XML. +""" + +try: + import locale # module missing in Jython + locale.setlocale(locale.LC_ALL, '') +except locale.Error: + pass + +from docutils.core import publish_cmdline, default_description + +description = (u'Generates HTML5 documents from standalone ' + u'reStructuredText sources.\n' + + default_description) + +publish_cmdline(writer_name='html5', description=description) diff --git a/bootcamp/bin/rst2latex.py b/bootcamp/bin/rst2latex.py new file mode 100755 index 0000000..74c7f86 --- /dev/null +++ b/bootcamp/bin/rst2latex.py @@ -0,0 +1,26 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 + +# $Id: rst2latex.py 5905 2009-04-16 12:04:49Z milde $ +# Author: David Goodger +# Copyright: This module has been placed in the public domain. + +""" +A minimal front end to the Docutils Publisher, producing LaTeX. +""" + +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline + +description = ('Generates LaTeX documents from standalone reStructuredText ' + 'sources. ' + 'Reads from (default is stdin) and writes to ' + ' (default is stdout). See ' + ' for ' + 'the full reference.') + +publish_cmdline(writer_name='latex', description=description) diff --git a/bootcamp/bin/rst2man.py b/bootcamp/bin/rst2man.py new file mode 100755 index 0000000..552defe --- /dev/null +++ b/bootcamp/bin/rst2man.py @@ -0,0 +1,26 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 + +# Author: +# Contact: grubert@users.sf.net +# Copyright: This module has been placed in the public domain. + +""" +man.py +====== + +This module provides a simple command line interface that uses the +man page writer to output from ReStructuredText source. +""" + +import locale +try: + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline, default_description +from docutils.writers import manpage + +description = ("Generates plain unix manual documents. " + default_description) + +publish_cmdline(writer=manpage.Writer(), description=description) diff --git a/bootcamp/bin/rst2odt.py b/bootcamp/bin/rst2odt.py new file mode 100755 index 0000000..de280ef --- /dev/null +++ b/bootcamp/bin/rst2odt.py @@ -0,0 +1,30 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 + +# $Id: rst2odt.py 5839 2009-01-07 19:09:28Z dkuhlman $ +# Author: Dave Kuhlman +# Copyright: This module has been placed in the public domain. + +""" +A front end to the Docutils Publisher, producing OpenOffice documents. +""" + +import sys +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline_to_binary, default_description +from docutils.writers.odf_odt import Writer, Reader + + +description = ('Generates OpenDocument/OpenOffice/ODF documents from ' + 'standalone reStructuredText sources. ' + default_description) + + +writer = Writer() +reader = Reader() +output = publish_cmdline_to_binary(reader=reader, writer=writer, + description=description) + diff --git a/bootcamp/bin/rst2odt_prepstyles.py b/bootcamp/bin/rst2odt_prepstyles.py new file mode 100755 index 0000000..537ed75 --- /dev/null +++ b/bootcamp/bin/rst2odt_prepstyles.py @@ -0,0 +1,67 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 + +# $Id: rst2odt_prepstyles.py 8346 2019-08-26 12:11:32Z milde $ +# Author: Dave Kuhlman +# Copyright: This module has been placed in the public domain. + +""" +Fix a word-processor-generated styles.odt for odtwriter use: Drop page size +specifications from styles.xml in STYLE_FILE.odt. +""" + +# Author: Michael Schutte + +from __future__ import print_function + +from lxml import etree +import sys +import zipfile +from tempfile import mkstemp +import shutil +import os + +NAMESPACES = { + "style": "urn:oasis:names:tc:opendocument:xmlns:style:1.0", + "fo": "urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" +} + + +def prepstyle(filename): + + zin = zipfile.ZipFile(filename) + styles = zin.read("styles.xml") + + root = etree.fromstring(styles) + for el in root.xpath("//style:page-layout-properties", + namespaces=NAMESPACES): + for attr in el.attrib: + if attr.startswith("{%s}" % NAMESPACES["fo"]): + del el.attrib[attr] + + tempname = mkstemp() + zout = zipfile.ZipFile(os.fdopen(tempname[0], "w"), "w", + zipfile.ZIP_DEFLATED) + + for item in zin.infolist(): + if item.filename == "styles.xml": + zout.writestr(item, etree.tostring(root)) + else: + zout.writestr(item, zin.read(item.filename)) + + zout.close() + zin.close() + shutil.move(tempname[1], filename) + + +def main(): + args = sys.argv[1:] + if len(args) != 1: + print(__doc__, file=sys.stderr) + print("Usage: %s STYLE_FILE.odt\n" % sys.argv[0], file=sys.stderr) + sys.exit(1) + filename = args[0] + prepstyle(filename) + + +if __name__ == '__main__': + main() diff --git a/bootcamp/bin/rst2pseudoxml.py b/bootcamp/bin/rst2pseudoxml.py new file mode 100755 index 0000000..4a5328e --- /dev/null +++ b/bootcamp/bin/rst2pseudoxml.py @@ -0,0 +1,23 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 + +# $Id: rst2pseudoxml.py 4564 2006-05-21 20:44:42Z wiemann $ +# Author: David Goodger +# Copyright: This module has been placed in the public domain. + +""" +A minimal front end to the Docutils Publisher, producing pseudo-XML. +""" + +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline, default_description + + +description = ('Generates pseudo-XML from standalone reStructuredText ' + 'sources (for testing purposes). ' + default_description) + +publish_cmdline(description=description) diff --git a/bootcamp/bin/rst2s5.py b/bootcamp/bin/rst2s5.py new file mode 100755 index 0000000..8be2ebf --- /dev/null +++ b/bootcamp/bin/rst2s5.py @@ -0,0 +1,24 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 + +# $Id: rst2s5.py 4564 2006-05-21 20:44:42Z wiemann $ +# Author: Chris Liechti +# Copyright: This module has been placed in the public domain. + +""" +A minimal front end to the Docutils Publisher, producing HTML slides using +the S5 template system. +""" + +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline, default_description + + +description = ('Generates S5 (X)HTML slideshow documents from standalone ' + 'reStructuredText sources. ' + default_description) + +publish_cmdline(writer_name='s5', description=description) diff --git a/bootcamp/bin/rst2xetex.py b/bootcamp/bin/rst2xetex.py new file mode 100755 index 0000000..16caab5 --- /dev/null +++ b/bootcamp/bin/rst2xetex.py @@ -0,0 +1,27 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 + +# $Id: rst2xetex.py 7847 2015-03-17 17:30:47Z milde $ +# Author: Guenter Milde +# Copyright: This module has been placed in the public domain. + +""" +A minimal front end to the Docutils Publisher, producing Lua/XeLaTeX code. +""" + +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline + +description = ('Generates LaTeX documents from standalone reStructuredText ' + 'sources for compilation with the Unicode-aware TeX variants ' + 'XeLaTeX or LuaLaTeX. ' + 'Reads from (default is stdin) and writes to ' + ' (default is stdout). See ' + ' for ' + 'the full reference.') + +publish_cmdline(writer_name='xetex', description=description) diff --git a/bootcamp/bin/rst2xml.py b/bootcamp/bin/rst2xml.py new file mode 100755 index 0000000..8c84d2c --- /dev/null +++ b/bootcamp/bin/rst2xml.py @@ -0,0 +1,23 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 + +# $Id: rst2xml.py 4564 2006-05-21 20:44:42Z wiemann $ +# Author: David Goodger +# Copyright: This module has been placed in the public domain. + +""" +A minimal front end to the Docutils Publisher, producing Docutils XML. +""" + +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline, default_description + + +description = ('Generates Docutils-native XML from standalone ' + 'reStructuredText sources. ' + default_description) + +publish_cmdline(writer_name='xml', description=description) diff --git a/bootcamp/bin/rstpep2html.py b/bootcamp/bin/rstpep2html.py new file mode 100755 index 0000000..924370f --- /dev/null +++ b/bootcamp/bin/rstpep2html.py @@ -0,0 +1,25 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 + +# $Id: rstpep2html.py 4564 2006-05-21 20:44:42Z wiemann $ +# Author: David Goodger +# Copyright: This module has been placed in the public domain. + +""" +A minimal front end to the Docutils Publisher, producing HTML from PEP +(Python Enhancement Proposal) documents. +""" + +try: + import locale + locale.setlocale(locale.LC_ALL, '') +except: + pass + +from docutils.core import publish_cmdline, default_description + + +description = ('Generates (X)HTML from reStructuredText-format PEP files. ' + + default_description) + +publish_cmdline(reader_name='pep', writer_name='pep_html', + description=description) diff --git a/bootcamp/bin/send2trash b/bootcamp/bin/send2trash new file mode 100755 index 0000000..1842320 --- /dev/null +++ b/bootcamp/bin/send2trash @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from send2trash.__main__ import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/sphinx-apidoc b/bootcamp/bin/sphinx-apidoc new file mode 100755 index 0000000..afd542c --- /dev/null +++ b/bootcamp/bin/sphinx-apidoc @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from sphinx.ext.apidoc import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/sphinx-autogen b/bootcamp/bin/sphinx-autogen new file mode 100755 index 0000000..82e0b9c --- /dev/null +++ b/bootcamp/bin/sphinx-autogen @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from sphinx.ext.autosummary.generate import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/sphinx-build b/bootcamp/bin/sphinx-build new file mode 100755 index 0000000..c2b87d8 --- /dev/null +++ b/bootcamp/bin/sphinx-build @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from sphinx.cmd.build import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/sphinx-etoc b/bootcamp/bin/sphinx-etoc new file mode 100755 index 0000000..aa737f5 --- /dev/null +++ b/bootcamp/bin/sphinx-etoc @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from sphinx_external_toc.cli import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/sphinx-quickstart b/bootcamp/bin/sphinx-quickstart new file mode 100755 index 0000000..951be97 --- /dev/null +++ b/bootcamp/bin/sphinx-quickstart @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from sphinx.cmd.quickstart import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/tabulate b/bootcamp/bin/tabulate new file mode 100755 index 0000000..d3c39cb --- /dev/null +++ b/bootcamp/bin/tabulate @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from tabulate import _main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(_main()) diff --git a/bootcamp/bin/wheel b/bootcamp/bin/wheel new file mode 100755 index 0000000..4122582 --- /dev/null +++ b/bootcamp/bin/wheel @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from wheel.cli import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/bin/wsdump b/bootcamp/bin/wsdump new file mode 100755 index 0000000..00364ca --- /dev/null +++ b/bootcamp/bin/wsdump @@ -0,0 +1,8 @@ +#!/Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp/bin/python3.11 +# -*- coding: utf-8 -*- +import re +import sys +from websocket._wsdump import main +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/bootcamp/etc/jupyter/jupyter_notebook_config.d/jupyter-lsp-notebook.json b/bootcamp/etc/jupyter/jupyter_notebook_config.d/jupyter-lsp-notebook.json new file mode 100644 index 0000000..dc490b6 --- /dev/null +++ b/bootcamp/etc/jupyter/jupyter_notebook_config.d/jupyter-lsp-notebook.json @@ -0,0 +1,7 @@ +{ + "NotebookApp": { + "nbserver_extensions": { + "jupyter_lsp": true + } + } +} diff --git a/bootcamp/etc/jupyter/jupyter_notebook_config.d/jupyterlab.json b/bootcamp/etc/jupyter/jupyter_notebook_config.d/jupyterlab.json new file mode 100644 index 0000000..5b5dcda --- /dev/null +++ b/bootcamp/etc/jupyter/jupyter_notebook_config.d/jupyterlab.json @@ -0,0 +1,7 @@ +{ + "NotebookApp": { + "nbserver_extensions": { + "jupyterlab": true + } + } +} diff --git a/bootcamp/etc/jupyter/jupyter_server_config.d/jupyter-lsp-jupyter-server.json b/bootcamp/etc/jupyter/jupyter_server_config.d/jupyter-lsp-jupyter-server.json new file mode 100644 index 0000000..9e37d4e --- /dev/null +++ b/bootcamp/etc/jupyter/jupyter_server_config.d/jupyter-lsp-jupyter-server.json @@ -0,0 +1,7 @@ +{ + "ServerApp": { + "jpserver_extensions": { + "jupyter_lsp": true + } + } +} diff --git a/bootcamp/etc/jupyter/jupyter_server_config.d/jupyter_server_terminals.json b/bootcamp/etc/jupyter/jupyter_server_config.d/jupyter_server_terminals.json new file mode 100644 index 0000000..97c80c2 --- /dev/null +++ b/bootcamp/etc/jupyter/jupyter_server_config.d/jupyter_server_terminals.json @@ -0,0 +1,7 @@ +{ + "ServerApp": { + "jpserver_extensions": { + "jupyter_server_terminals": true + } + } +} diff --git a/bootcamp/etc/jupyter/jupyter_server_config.d/jupyterlab.json b/bootcamp/etc/jupyter/jupyter_server_config.d/jupyterlab.json new file mode 100644 index 0000000..99cc084 --- /dev/null +++ b/bootcamp/etc/jupyter/jupyter_server_config.d/jupyterlab.json @@ -0,0 +1,7 @@ +{ + "ServerApp": { + "jpserver_extensions": { + "jupyterlab": true + } + } +} diff --git a/bootcamp/etc/jupyter/jupyter_server_config.d/notebook.json b/bootcamp/etc/jupyter/jupyter_server_config.d/notebook.json new file mode 100644 index 0000000..0911391 --- /dev/null +++ b/bootcamp/etc/jupyter/jupyter_server_config.d/notebook.json @@ -0,0 +1,7 @@ +{ + "ServerApp": { + "jpserver_extensions": { + "notebook": true + } + } +} diff --git a/bootcamp/etc/jupyter/jupyter_server_config.d/notebook_shim.json b/bootcamp/etc/jupyter/jupyter_server_config.d/notebook_shim.json new file mode 100644 index 0000000..1e789c3 --- /dev/null +++ b/bootcamp/etc/jupyter/jupyter_server_config.d/notebook_shim.json @@ -0,0 +1,7 @@ +{ + "ServerApp": { + "jpserver_extensions": { + "notebook_shim": true + } + } +} diff --git a/bootcamp/pyvenv.cfg b/bootcamp/pyvenv.cfg new file mode 100644 index 0000000..4e287cd --- /dev/null +++ b/bootcamp/pyvenv.cfg @@ -0,0 +1,5 @@ +home = /opt/homebrew/opt/python@3.11/bin +include-system-site-packages = false +version = 3.11.3 +executable = /opt/homebrew/Cellar/python@3.11/3.11.3/Frameworks/Python.framework/Versions/3.11/bin/python3.11 +command = /opt/homebrew/opt/python@3.11/bin/python3.11 -m venv /Users/adrianariton/Desktop/Adi/Summer/2023-An2/photonics-bootcamp/bootcamp diff --git a/bootcamp/share/applications/jupyter-notebook.desktop b/bootcamp/share/applications/jupyter-notebook.desktop new file mode 100644 index 0000000..095d5ac --- /dev/null +++ b/bootcamp/share/applications/jupyter-notebook.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=Jupyter Notebook +Comment=Run Jupyter Notebook +Exec=jupyter-notebook %f +Terminal=true +Type=Application +Icon=notebook +StartupNotify=true +MimeType=application/x-ipynb+json; +Categories=Development;Education; +Keywords=python; diff --git a/bootcamp/share/applications/jupyterlab.desktop b/bootcamp/share/applications/jupyterlab.desktop new file mode 100644 index 0000000..93fe940 --- /dev/null +++ b/bootcamp/share/applications/jupyterlab.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=JupyterLab +Comment=Run JupyterLab +Exec=jupyter-lab %f +Terminal=true +Type=Application +Icon=jupyterlab +StartupNotify=true +MimeType=application/x-ipynb+json; +Categories=Development;Education; +Keywords=python; diff --git a/bootcamp/share/icons/hicolor/scalable/apps/jupyterlab.svg b/bootcamp/share/icons/hicolor/scalable/apps/jupyterlab.svg new file mode 100644 index 0000000..3e25e74 --- /dev/null +++ b/bootcamp/share/icons/hicolor/scalable/apps/jupyterlab.svg @@ -0,0 +1,164 @@ + + + + logo-5.svg + Created using Figma 0.90 + + + + + + + + + + + + + + logo-5.svg + + + + diff --git a/bootcamp/share/icons/hicolor/scalable/apps/notebook.svg b/bootcamp/share/icons/hicolor/scalable/apps/notebook.svg new file mode 100644 index 0000000..52e713c --- /dev/null +++ b/bootcamp/share/icons/hicolor/scalable/apps/notebook.svg @@ -0,0 +1,335 @@ + + + + + + image/svg+xml + + logo.svg + + + + logo.svg + Created using Figma 0.90 + + + + + + + + + + + + + + + + + + diff --git a/bootcamp/share/jupyter/kernels/python3/kernel.json b/bootcamp/share/jupyter/kernels/python3/kernel.json new file mode 100644 index 0000000..cca38a4 --- /dev/null +++ b/bootcamp/share/jupyter/kernels/python3/kernel.json @@ -0,0 +1,14 @@ +{ + "argv": [ + "python", + "-m", + "ipykernel_launcher", + "-f", + "{connection_file}" + ], + "display_name": "Python 3 (ipykernel)", + "language": "python", + "metadata": { + "debugger": true + } +} \ No newline at end of file diff --git a/bootcamp/share/jupyter/kernels/python3/logo-32x32.png b/bootcamp/share/jupyter/kernels/python3/logo-32x32.png new file mode 100644 index 0000000..be81330 Binary files /dev/null and b/bootcamp/share/jupyter/kernels/python3/logo-32x32.png differ diff --git a/bootcamp/share/jupyter/kernels/python3/logo-64x64.png b/bootcamp/share/jupyter/kernels/python3/logo-64x64.png new file mode 100644 index 0000000..eebbff6 Binary files /dev/null and b/bootcamp/share/jupyter/kernels/python3/logo-64x64.png differ diff --git a/bootcamp/share/jupyter/kernels/python3/logo-svg.svg b/bootcamp/share/jupyter/kernels/python3/logo-svg.svg new file mode 100644 index 0000000..467b07b --- /dev/null +++ b/bootcamp/share/jupyter/kernels/python3/logo-svg.svg @@ -0,0 +1,265 @@ + + + + + + + + image/svg+xml + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/menus.json b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/menus.json new file mode 100644 index 0000000..2ad34ed --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/menus.json @@ -0,0 +1,79 @@ +{ + "title": "Jupyter Notebook Menu Entries", + "description": "Jupyter Notebook Menu Entries", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-file", + "items": [ + { + "command": "application:rename", + "rank": 4.5 + }, + { + "command": "notebook:trust", + "rank": 20 + }, + { + "type": "separator", + "rank": 30 + }, + { + "command": "filemenu:close-and-cleanup", + "rank": 40 + }, + { + "command": "application:close", + "disabled": true + } + ] + }, + { + "id": "jp-mainmenu-view", + "items": [ + { + "type": "submenu", + "disabled": true, + "submenu": { + "id": "jp-mainmenu-view-appearance" + } + } + ] + }, + { + "id": "jp-mainmenu-run", + "items": [ + { + "type": "separator", + "rank": 1000 + }, + { + "type": "submenu", + "rank": 1010, + "submenu": { + "id": "jp-runmenu-change-cell-type", + "label": "Cell Type", + "items": [ + { + "command": "notebook:change-cell-to-code", + "rank": 0 + }, + { + "command": "notebook:change-cell-to-markdown", + "rank": 0 + }, + { + "command": "notebook:change-cell-to-raw", + "rank": 0 + } + ] + } + } + ] + } + ] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/package.json.orig new file mode 100644 index 0000000..8459227 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/package.json.orig @@ -0,0 +1,70 @@ +{ + "name": "@jupyter-notebook/application-extension", + "version": "7.0.6", + "description": "Jupyter Notebook - Application Extension", + "homepage": "https://github.com/jupyter/notebook", + "bugs": { + "url": "https://github.com/jupyter/notebook/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyter/notebook.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "schema/*.json", + "style/**/*.css", + "style/index.js" + ], + "scripts": { + "build": "tsc -b", + "build:prod": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyter-notebook/application": "^7.0.6", + "@jupyter-notebook/ui-components": "^7.0.6", + "@jupyterlab/application": "^4.0.7", + "@jupyterlab/apputils": "^4.1.7", + "@jupyterlab/codeeditor": "^4.0.7", + "@jupyterlab/console": "^4.0.7", + "@jupyterlab/coreutils": "^6.0.7", + "@jupyterlab/docmanager": "^4.0.7", + "@jupyterlab/docregistry": "^4.0.7", + "@jupyterlab/mainmenu": "^4.0.7", + "@jupyterlab/rendermime": "^4.0.7", + "@jupyterlab/settingregistry": "^4.0.7", + "@jupyterlab/translation": "^4.0.7", + "@lumino/coreutils": "^2.1.2", + "@lumino/disposable": "^2.1.2", + "@lumino/widgets": "^2.3.0" + }, + "devDependencies": { + "rimraf": "^3.0.2", + "typescript": "~5.0.2" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/pages.json b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/pages.json new file mode 100644 index 0000000..86de48b --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/pages.json @@ -0,0 +1,24 @@ +{ + "title": "Jupyter Notebook Pages", + "description": "Jupyter Notebook Pages", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-view", + "items": [ + { + "command": "application:open-lab", + "rank": 2 + }, + { + "command": "application:open-tree", + "rank": 2 + } + ] + } + ] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json new file mode 100644 index 0000000..7e0e44f --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/shell.json @@ -0,0 +1,34 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "title": "Notebook Shell", + "description": "Notebook Shell layout settings.", + "properties": { + "layout": { + "$ref": "#/definitions/layout", + "type": "object", + "title": "Customize shell widget positioning", + "description": "Overrides default widget position in the application layout", + "default": { + "Markdown Preview": { "area": "right" } + } + } + }, + "additionalProperties": false, + "type": "object", + "definitions": { + "layout": { + "type": "object", + "properties": { + "[\\w-]+": { + "type": "object", + "properties": { + "area": { + "enum": ["left", "right"] + } + }, + "additionalProperties": false + } + } + } + } +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/title.json b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/title.json new file mode 100644 index 0000000..10649e3 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/title.json @@ -0,0 +1,10 @@ +{ + "title": "Title widget", + "description": "Title widget", + "jupyter.lab.toolbars": { + "TopBar": [{ "name": "widgetTitle", "rank": 10 }] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/top.json b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/top.json new file mode 100644 index 0000000..dafe4b7 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/top.json @@ -0,0 +1,30 @@ +{ + "jupyter.lab.setting-icon": "notebook-ui-components:jupyter", + "jupyter.lab.setting-icon-label": "Jupyter Notebook Top Area", + "title": "Jupyter Notebook Top Area", + "description": "Jupyter Notebook Top Area settings", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-view", + "items": [ + { + "command": "application:toggle-top", + "rank": 2 + } + ] + } + ] + }, + "properties": { + "visible": { + "type": "string", + "enum": ["yes", "no", "automatic"], + "title": "Top Bar Visibility", + "description": "Whether to show the top bar or not, yes for always showing, no for always not showing, automatic for adjusting to screen size", + "default": "automatic" + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/zen.json b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/zen.json new file mode 100644 index 0000000..1f1dafc --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/application-extension/zen.json @@ -0,0 +1,20 @@ +{ + "title": "Jupyter Notebook Zen Mode", + "description": "Jupyter Notebook Zen Mode", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-view", + "items": [ + { + "command": "application:toggle-zen", + "rank": 3 + } + ] + } + ] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/documentsearch-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/documentsearch-extension/package.json.orig new file mode 100644 index 0000000..700d552 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/documentsearch-extension/package.json.orig @@ -0,0 +1,58 @@ +{ + "name": "@jupyter-notebook/documentsearch-extension", + "version": "7.0.6", + "description": "Jupyter Notebook - Document Search Extension", + "homepage": "https://github.com/jupyter/notebook", + "bugs": { + "url": "https://github.com/jupyter/notebook/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyter/notebook.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "schema/*.json", + "style/**/*.css", + "style/index.js" + ], + "scripts": { + "build": "tsc -b", + "build:prod": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyter-notebook/application": "^7.0.6", + "@jupyterlab/application": "^4.0.7", + "@jupyterlab/documentsearch": "^4.0.7", + "@lumino/widgets": "^2.3.0" + }, + "devDependencies": { + "rimraf": "^3.0.2", + "typescript": "~5.0.2" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/open.json b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/open.json new file mode 100644 index 0000000..2f683ab --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/open.json @@ -0,0 +1,24 @@ +{ + "title": "Jupyter Notebook Help Menu Entries", + "description": "Jupyter Notebook Help Menu Entries", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-help", + "items": [ + { + "command": "help:about", + "rank": 0 + }, + { + "type": "separator", + "rank": 1 + } + ] + } + ] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/package.json.orig new file mode 100644 index 0000000..83340ae --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/help-extension/package.json.orig @@ -0,0 +1,61 @@ +{ + "name": "@jupyter-notebook/help-extension", + "version": "7.0.6", + "description": "Jupyter Notebook - Help Extension", + "homepage": "https://github.com/jupyter/notebook", + "bugs": { + "url": "https://github.com/jupyter/notebook/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyter/notebook.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "schema/*.json", + "style/**/*.css", + "style/index.js" + ], + "scripts": { + "build": "tsc -b", + "build:prod": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyter-notebook/ui-components": "^7.0.6", + "@jupyterlab/application": "^4.0.7", + "@jupyterlab/apputils": "^4.1.7", + "@jupyterlab/mainmenu": "^4.0.7", + "@jupyterlab/translation": "^4.0.7", + "react": "^18.2.0", + "react-dom": "^18.2.0" + }, + "devDependencies": { + "rimraf": "^3.0.2", + "typescript": "~5.0.2" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/checkpoints.json b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/checkpoints.json new file mode 100644 index 0000000..7232782 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/checkpoints.json @@ -0,0 +1,10 @@ +{ + "title": "Notebook checkpoint indicator", + "description": "Notebook checkpoint indicator", + "jupyter.lab.toolbars": { + "TopBar": [{ "name": "checkpoint", "rank": 20 }] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/kernel-logo.json b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/kernel-logo.json new file mode 100644 index 0000000..934e8c1 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/kernel-logo.json @@ -0,0 +1,10 @@ +{ + "title": "Kernel logo", + "description": "Kernel logo in the top area", + "jupyter.lab.toolbars": { + "TopBar": [{ "name": "kernelLogo", "rank": 110 }] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/package.json.orig new file mode 100644 index 0000000..37ef2a9 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/package.json.orig @@ -0,0 +1,66 @@ +{ + "name": "@jupyter-notebook/notebook-extension", + "version": "7.0.6", + "description": "Jupyter Notebook - Notebook Extension", + "homepage": "https://github.com/jupyter/notebook", + "bugs": { + "url": "https://github.com/jupyter/notebook/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyter/notebook.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "schema/*.json", + "style/**/*.css", + "style/index.js" + ], + "scripts": { + "build": "tsc -b", + "build:prod": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyter-notebook/application": "^7.0.6", + "@jupyterlab/application": "^4.0.7", + "@jupyterlab/apputils": "^4.1.7", + "@jupyterlab/cells": "^4.0.7", + "@jupyterlab/docmanager": "^4.0.7", + "@jupyterlab/notebook": "^4.0.7", + "@jupyterlab/settingregistry": "^4.0.7", + "@jupyterlab/translation": "^4.0.7", + "@lumino/polling": "^2.1.2", + "@lumino/widgets": "^2.3.0", + "react": "^18.2.0", + "react-dom": "^18.2.0" + }, + "devDependencies": { + "rimraf": "^3.0.2", + "typescript": "~5.0.2" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/scroll-output.json b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/scroll-output.json new file mode 100644 index 0000000..abb241a --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/notebook-extension/scroll-output.json @@ -0,0 +1,16 @@ +{ + "jupyter.lab.setting-icon": "notebook-ui-components:jupyter", + "jupyter.lab.setting-icon-label": "Jupyter Notebook Notebook", + "title": "Jupyter Notebook Notebook", + "description": "Jupyter Notebook Notebook settings", + "properties": { + "autoScrollOutputs": { + "type": "boolean", + "title": "Auto Scroll Outputs", + "description": "Whether to auto scroll the output area when the outputs become too long", + "default": true + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/file-actions.json b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/file-actions.json new file mode 100644 index 0000000..06fb441 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/file-actions.json @@ -0,0 +1,10 @@ +{ + "title": "File Browser Widget - File Actions", + "description": "File Browser widget - File Actions settings.", + "jupyter.lab.toolbars": { + "FileBrowser": [{ "name": "fileActions", "rank": 0 }] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/package.json.orig new file mode 100644 index 0000000..e170da0 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/package.json.orig @@ -0,0 +1,71 @@ +{ + "name": "@jupyter-notebook/tree-extension", + "version": "7.0.6", + "description": "Jupyter Notebook - Tree Extension", + "homepage": "https://github.com/jupyter/notebook", + "bugs": { + "url": "https://github.com/jupyter/notebook/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyter/notebook.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "schema/*.json", + "style/**/*.css", + "style/index.js" + ], + "scripts": { + "build": "tsc -b", + "build:prod": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyter-notebook/application": "^7.0.6", + "@jupyter-notebook/tree": "^7.0.6", + "@jupyterlab/application": "^4.0.7", + "@jupyterlab/apputils": "^4.1.7", + "@jupyterlab/coreutils": "^6.0.7", + "@jupyterlab/docmanager": "^4.0.7", + "@jupyterlab/filebrowser": "^4.0.7", + "@jupyterlab/mainmenu": "^4.0.7", + "@jupyterlab/services": "^7.0.7", + "@jupyterlab/settingeditor": "^4.0.7", + "@jupyterlab/settingregistry": "^4.0.7", + "@jupyterlab/statedb": "^4.0.7", + "@jupyterlab/translation": "^4.0.7", + "@jupyterlab/ui-components": "^4.0.7", + "@lumino/algorithm": "^2.0.1", + "@lumino/commands": "^2.1.3", + "@lumino/widgets": "^2.3.0" + }, + "devDependencies": { + "rimraf": "^3.0.2", + "typescript": "~5.0.2" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/widget.json b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/widget.json new file mode 100644 index 0000000..53e57c6 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyter-notebook/tree-extension/widget.json @@ -0,0 +1,75 @@ +{ + "title": "File Browser Widget", + "description": "File Browser widget settings.", + "jupyter.lab.toolbars": { + "FileBrowser": [ + { "name": "spacer", "type": "spacer", "rank": 900 }, + { "name": "fileNameSearcher", "rank": 950, "disabled": true }, + { "name": "new-dropdown", "rank": 1000 }, + { "name": "uploader", "rank": 1010 }, + { "name": "refresh", "command": "filebrowser:refresh", "rank": 1020 } + ] + }, + "jupyter.lab.transform": true, + "properties": { + "toolbar": { + "title": "File browser toolbar items", + "description": "Note: To disable a toolbar item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable the uploader button:\n{\n \"toolbar\": [\n {\n \"name\": \"uploader\",\n \"disabled\": true\n }\n ]\n}\n\nToolbar description:", + "items": { + "$ref": "#/definitions/toolbarItem" + }, + "type": "array", + "default": [] + } + }, + "additionalProperties": false, + "type": "object", + "definitions": { + "toolbarItem": { + "properties": { + "name": { + "title": "Unique name", + "type": "string" + }, + "args": { + "title": "Command arguments", + "type": "object" + }, + "command": { + "title": "Command id", + "type": "string", + "default": "" + }, + "disabled": { + "title": "Whether the item is ignored or not", + "type": "boolean", + "default": false + }, + "icon": { + "title": "Item icon id", + "description": "If defined, it will override the command icon", + "type": "string" + }, + "label": { + "title": "Item label", + "description": "If defined, it will override the command label", + "type": "string" + }, + "type": { + "title": "Item type", + "type": "string", + "enum": ["command", "spacer"] + }, + "rank": { + "title": "Item rank", + "type": "number", + "minimum": 0, + "default": 50 + } + }, + "required": ["name"], + "additionalProperties": false, + "type": "object" + } + } +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/application-extension/commands.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/application-extension/commands.json new file mode 100644 index 0000000..cc39ccb --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/application-extension/commands.json @@ -0,0 +1,167 @@ +{ + "title": "Application Commands", + "description": "Application commands settings.", + "jupyter.lab.shortcuts": [ + { + "command": "application:activate-next-tab", + "keys": ["Ctrl Shift ]"], + "selector": "body" + }, + { + "command": "application:activate-previous-tab", + "keys": ["Ctrl Shift ["], + "selector": "body" + }, + { + "command": "application:activate-next-tab-bar", + "keys": ["Ctrl Shift ."], + "selector": "body" + }, + { + "command": "application:activate-previous-tab-bar", + "keys": ["Ctrl Shift ,"], + "selector": "body" + }, + { + "command": "application:close", + "keys": ["Alt W"], + "selector": ".jp-Activity" + }, + { + "command": "application:toggle-mode", + "keys": ["Accel Shift D"], + "selector": "body" + }, + { + "command": "application:toggle-left-area", + "keys": ["Accel B"], + "selector": "body" + }, + { + "command": "application:toggle-right-area", + "keys": [""], + "selector": "body" + }, + { + "command": "application:toggle-presentation-mode", + "keys": [""], + "selector": "body" + } + ], + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-file", + "items": [ + { + "type": "separator", + "rank": 3 + }, + { + "command": "application:close", + "rank": 3 + }, + { + "command": "application:close-all", + "rank": 3.2 + } + ] + }, + { + "id": "jp-mainmenu-view", + "items": [ + { + "type": "submenu", + "rank": 1, + "submenu": { + "id": "jp-mainmenu-view-appearance", + "label": "Appearance", + "items": [ + { + "command": "application:toggle-mode", + "rank": 0 + }, + { + "command": "application:toggle-presentation-mode", + "rank": 0 + }, + { + "type": "separator", + "rank": 10 + }, + { + "command": "application:toggle-left-area", + "rank": 11 + }, + { + "command": "application:toggle-side-tabbar", + "rank": 12, + "args": { + "side": "left" + } + }, + { + "command": "application:toggle-right-area", + "rank": 13 + }, + { + "command": "application:toggle-side-tabbar", + "rank": 14, + "args": { + "side": "right" + } + }, + { + "command": "application:toggle-header", + "rank": 15 + }, + { + "type": "separator", + "rank": 50 + }, + { + "command": "application:reset-layout", + "rank": 51 + } + ] + } + }, + { + "type": "separator", + "rank": 1 + } + ] + } + ], + "context": [ + { + "command": "application:close", + "selector": "#jp-main-dock-panel .lm-DockPanel-tabBar .lm-TabBar-tab", + "rank": 4 + }, + { + "command": "application:close-other-tabs", + "selector": "#jp-main-dock-panel .lm-DockPanel-tabBar .lm-TabBar-tab", + "rank": 4 + }, + { + "command": "application:close-all", + "selector": "#jp-main-dock-panel .lm-DockPanel-tabBar .lm-TabBar-tab", + "rank": 4 + }, + { + "command": "application:close-right-tabs", + "selector": "#jp-main-dock-panel .lm-DockPanel-tabBar .lm-TabBar-tab", + "rank": 5 + }, + { + "command": "__internal:context-menu-info", + "selector": "body", + "rank": 9007199254740991 + } + ] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/application-extension/context-menu.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/application-extension/context-menu.json new file mode 100644 index 0000000..aa3d85e --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/application-extension/context-menu.json @@ -0,0 +1,115 @@ +{ + "title": "Application Context Menu", + "description": "JupyterLab context menu settings.", + "jupyter.lab.setting-icon-label": "Application Context Menu", + "jupyter.lab.shortcuts": [], + "jupyter.lab.transform": true, + "properties": { + "contextMenu": { + "title": "The application context menu.", + "description": "Note: To disable a context menu item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable Download item on files:\n{\n \"contextMenu\": [\n {\n \"command\": \"filebrowser:download\",\n \"selector\": \".jp-DirListing-item[data-isdir=\\\"false\\\"]\",\n \"disabled\": true\n }\n ]\n}\n\nContext menu description:", + "items": { + "allOf": [ + { "$ref": "#/definitions/menuItem" }, + { + "properties": { + "selector": { + "description": "The CSS selector for the context menu item.", + "type": "string" + } + } + } + ] + }, + "type": "array", + "default": [] + } + }, + "additionalProperties": false, + "definitions": { + "menu": { + "properties": { + "disabled": { + "description": "Whether the menu is disabled or not", + "type": "boolean", + "default": false + }, + "icon": { + "description": "Menu icon id", + "type": "string" + }, + "id": { + "description": "Menu unique id", + "type": "string", + "pattern": "[a-z][a-z0-9\\-_]+" + }, + "items": { + "description": "Menu items", + "type": "array", + "items": { + "$ref": "#/definitions/menuItem" + } + }, + "label": { + "description": "Menu label", + "type": "string" + }, + "mnemonic": { + "description": "Mnemonic index for the label", + "type": "number", + "minimum": -1, + "default": -1 + }, + "rank": { + "description": "Menu rank", + "type": "number", + "minimum": 0 + } + }, + "required": ["id"], + "additionalProperties": false, + "type": "object" + }, + "menuItem": { + "properties": { + "args": { + "description": "Command arguments", + "type": "object" + }, + "command": { + "description": "Command id", + "type": "string" + }, + "disabled": { + "description": "Whether the item is disabled or not", + "type": "boolean", + "default": false + }, + "type": { + "description": "Item type", + "type": "string", + "enum": ["command", "submenu", "separator"], + "default": "command" + }, + "rank": { + "description": "Item rank", + "type": "number", + "minimum": 0 + }, + "submenu": { + "description": "Submenu definition", + "oneOf": [ + { + "$ref": "#/definitions/menu" + }, + { + "type": "null" + } + ] + } + }, + "type": "object" + } + }, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/application-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/application-extension/package.json.orig new file mode 100644 index 0000000..699c501 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/application-extension/package.json.orig @@ -0,0 +1,70 @@ +{ + "name": "@jupyterlab/application-extension", + "version": "4.0.8", + "description": "JupyterLab - Application Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "schema/*.json", + "style/**/*.css", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/apputils": "^4.1.8", + "@jupyterlab/coreutils": "^6.0.8", + "@jupyterlab/property-inspector": "^4.0.8", + "@jupyterlab/settingregistry": "^4.0.8", + "@jupyterlab/statedb": "^4.0.8", + "@jupyterlab/statusbar": "^4.0.8", + "@jupyterlab/translation": "^4.0.8", + "@jupyterlab/ui-components": "^4.0.8", + "@lumino/algorithm": "^2.0.1", + "@lumino/commands": "^2.1.3", + "@lumino/coreutils": "^2.1.2", + "@lumino/disposable": "^2.1.2", + "@lumino/widgets": "^2.3.0", + "react": "^18.2.0" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typedoc": "~0.24.7", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/application-extension/property-inspector.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/application-extension/property-inspector.json new file mode 100644 index 0000000..cb1367a --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/application-extension/property-inspector.json @@ -0,0 +1,27 @@ +{ + "title": "Property Inspector", + "description": "Property Inspector Settings.", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-view", + "items": [ + { + "command": "property-inspector:show-panel", + "rank": 2 + } + ] + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "property-inspector:show-panel", + "keys": ["Accel Shift U"], + "selector": "body" + } + ], + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/application-extension/shell.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/application-extension/shell.json new file mode 100644 index 0000000..0bab5cb --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/application-extension/shell.json @@ -0,0 +1,96 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "title": "JupyterLab Shell", + "description": "JupyterLab Shell layout settings.", + "jupyter.lab.menus": { + "context": [ + { + "command": "sidebar:switch", + "selector": ".jp-SideBar .lm-TabBar-tab", + "rank": 500 + } + ] + }, + "properties": { + "hiddenMode": { + "type": "string", + "title": "Hidden mode of main panel widgets", + "description": "The method for hiding widgets in the main dock panel. Using `scale` will increase performance on Firefox but don't use it with Chrome, Chromium or Edge. Similar performance gains are seen with `contentVisibility` which is only available in Chromium-based browsers.", + "enum": ["display", "scale", "contentVisibility"], + "default": "display" + }, + "startMode": { + "enum": ["", "single", "multiple"], + "title": "Start mode: ``, `single` or `multiple`", + "description": "The mode under which JupyterLab should start. If empty, the mode will be imposed by the URL", + "default": "" + }, + "layout": { + "type": "object", + "title": "Customize shell widget positioning", + "description": "Overrides default widget position in the application layout\ne.g. to position terminals in the right sidebar in multiple documents mode and in the down are in single document mode, {\n \"single\": { \"Terminal\": { \"area\": \"down\" } },\n \"multiple\": { \"Terminal\": { \"area\": \"right\" } }\n}.", + "properties": { + "single": { + "$ref": "#/definitions/layout", + "default": { + "Linked Console": { "area": "down" }, + "Inspector": { "area": "down" }, + "Cloned Output": { "area": "down" } + } + }, + "multiple": { "$ref": "#/definitions/layout", "default": {} } + }, + "default": { + "single": { + "Linked Console": { "area": "down" }, + "Inspector": { "area": "down" }, + "Cloned Output": { "area": "down" } + }, + "multiple": {} + }, + "additionalProperties": false + } + }, + "additionalProperties": false, + "type": "object", + "definitions": { + "layout": { + "type": "object", + "properties": { + "[\\w-]+": { + "type": "object", + "properties": { + "area": { + "enum": ["main", "left", "right", "down"] + }, + "options": { + "$ref": "#/definitions/options" + } + }, + "additionalProperties": false + } + } + }, + "options": { + "type": "object", + "properties": { + "mode": { + "type": "string", + "enum": [ + "split-top", + "split-left", + "split-right", + "split-bottom", + "tab-before", + "tab-after" + ] + }, + "rank": { "type": "number", "minimum": 0 }, + "ref": { + "type": "string", + "minLength": 1 + } + } + } + } +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/application-extension/top-bar.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/application-extension/top-bar.json new file mode 100644 index 0000000..036ca9d --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/application-extension/top-bar.json @@ -0,0 +1,80 @@ +{ + "title": "Top Bar", + "description": "Top Bar settings.", + "jupyter.lab.toolbars": { + "TopBar": [ + { + "name": "spacer", + "type": "spacer", + "rank": 50 + } + ] + }, + "jupyter.lab.transform": true, + "properties": { + "toolbar": { + "title": "Top bar items", + "description": "Note: To disable a item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable the user menu:\n{\n \"toolbar\": [\n {\n \"name\": \"user-menu\",\n \"disabled\": true\n }\n ]\n}\n\nTop bar description:", + "items": { + "$ref": "#/definitions/toolbarItem" + }, + "type": "array", + "default": [] + } + }, + "additionalProperties": false, + "type": "object", + "definitions": { + "toolbarItem": { + "properties": { + "name": { + "title": "Unique name", + "type": "string" + }, + "args": { + "title": "Command arguments", + "type": "object" + }, + "command": { + "title": "Command id", + "type": "string", + "default": "" + }, + "disabled": { + "title": "Whether the item is ignored or not", + "type": "boolean", + "default": false + }, + "icon": { + "title": "Item icon id", + "description": "If defined, it will override the command icon", + "type": "string" + }, + "label": { + "title": "Item label", + "description": "If defined, it will override the command label", + "type": "string" + }, + "caption": { + "title": "Item caption", + "description": "If defined, it will override the command caption", + "type": "string" + }, + "type": { + "title": "Item type", + "type": "string", + "enum": ["command", "spacer"] + }, + "rank": { + "title": "Item rank", + "type": "number", + "minimum": 0, + "default": 50 + } + }, + "required": ["name"], + "additionalProperties": false, + "type": "object" + } + } +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/notification.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/notification.json new file mode 100644 index 0000000..c2248b4 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/notification.json @@ -0,0 +1,48 @@ +{ + "title": "Notifications", + "description": "Notifications settings.", + "jupyter.lab.setting-icon": "ui-components:bell", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-view", + "items": [ + { + "type": "separator", + "rank": 9.9 + }, + { + "command": "apputils:display-notifications", + "rank": 9.92 + }, + { + "type": "separator", + "rank": 9.99 + } + ] + } + ] + }, + "additionalProperties": false, + "properties": { + "checkForUpdates": { + "title": "Check for JupyterLab updates", + "description": "Whether to check for newer version of JupyterLab or not. It requires `fetchNews` to be `true` to be active. If `true`, it will make a request to a website.", + "type": "boolean", + "default": true + }, + "doNotDisturbMode": { + "title": "Silence all notifications", + "description": "If `true`, no toast notifications will be automatically displayed.", + "type": "boolean", + "default": false + }, + "fetchNews": { + "title": "Fetch official Jupyter news", + "description": "Whether to fetch news from Jupyter news feed. If `true`, it will make a request to a website.", + "enum": ["true", "false", "none"], + "default": "none" + } + }, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/package.json.orig new file mode 100644 index 0000000..8b5e5f8 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/package.json.orig @@ -0,0 +1,78 @@ +{ + "name": "@jupyterlab/apputils-extension", + "version": "4.0.8", + "description": "JupyterLab - Application Utilities Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "style/*.css", + "style/images/*.svg", + "schema/*.json", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/apputils": "^4.1.8", + "@jupyterlab/coreutils": "^6.0.8", + "@jupyterlab/docregistry": "^4.0.8", + "@jupyterlab/filebrowser": "^4.0.8", + "@jupyterlab/mainmenu": "^4.0.8", + "@jupyterlab/rendermime-interfaces": "^3.8.8", + "@jupyterlab/services": "^7.0.8", + "@jupyterlab/settingregistry": "^4.0.8", + "@jupyterlab/statedb": "^4.0.8", + "@jupyterlab/statusbar": "^4.0.8", + "@jupyterlab/translation": "^4.0.8", + "@jupyterlab/ui-components": "^4.0.8", + "@lumino/algorithm": "^2.0.1", + "@lumino/commands": "^2.1.3", + "@lumino/coreutils": "^2.1.2", + "@lumino/disposable": "^2.1.2", + "@lumino/domutils": "^2.0.1", + "@lumino/polling": "^2.1.2", + "@lumino/widgets": "^2.3.0", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "react-toastify": "^9.0.8" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typedoc": "~0.24.7", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/palette.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/palette.json new file mode 100644 index 0000000..17c341e --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/palette.json @@ -0,0 +1,40 @@ +{ + "title": "Command Palette", + "description": "Command palette settings.", + "jupyter.lab.setting-icon": "ui-components:palette", + "jupyter.lab.setting-icon-label": "Command Palette", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-view", + "items": [ + { + "command": "apputils:activate-command-palette", + "rank": 0 + }, + { + "type": "separator", + "rank": 0 + } + ] + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "apputils:activate-command-palette", + "keys": ["Accel Shift C"], + "selector": "body" + } + ], + "properties": { + "modal": { + "title": "Modal Command Palette", + "description": "Whether the command palette should be modal or in the left panel.", + "type": "boolean", + "default": true + } + }, + "type": "object", + "additionalProperties": false +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/print.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/print.json new file mode 100644 index 0000000..7490b45 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/print.json @@ -0,0 +1,31 @@ +{ + "title": "Print", + "description": "Print settings.", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-file", + "items": [ + { + "type": "separator", + "rank": 98 + }, + { + "command": "apputils:print", + "rank": 98 + } + ] + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "apputils:print", + "keys": ["Accel P"], + "selector": "body" + } + ], + "additionalProperties": false, + "properties": {}, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/sanitizer.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/sanitizer.json new file mode 100644 index 0000000..39a212c --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/sanitizer.json @@ -0,0 +1,25 @@ +{ + "title": "HTML Sanitizer", + "description": "HTML Sanitizer settings.", + "jupyter.lab.setting-icon": "ui-components:html5", + "additionalProperties": false, + "properties": { + "allowedSchemes": { + "title": "Allowed URL Scheme", + "description": "Scheme allowed by the HTML sanitizer.", + "type": "array", + "uniqueItems": true, + "items": { + "type": "string" + }, + "default": ["http", "https", "ftp", "mailto", "tel"] + }, + "autolink": { + "type": "boolean", + "title": "Autolink URL replacement", + "description": "Whether to replace URLs with links or not.", + "default": true + } + }, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/themes.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/themes.json new file mode 100644 index 0000000..eddcf89 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/themes.json @@ -0,0 +1,133 @@ +{ + "title": "Theme", + "jupyter.lab.setting-icon-label": "Theme Manager", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-settings", + "items": [ + { + "type": "submenu", + "submenu": { + "id": "jp-mainmenu-settings-apputilstheme", + "label": "Theme", + "items": [ + { "type": "separator" }, + { + "command": "apputils:theme-scrollbars" + }, + { "type": "separator" }, + { + "command": "apputils:incr-font-size", + "args": { + "key": "code-font-size" + } + }, + { + "command": "apputils:decr-font-size", + "args": { + "key": "code-font-size" + } + }, + { "type": "separator" }, + { + "command": "apputils:incr-font-size", + "args": { + "key": "content-font-size1" + } + }, + { + "command": "apputils:decr-font-size", + "args": { + "key": "content-font-size1" + } + }, + { "type": "separator" }, + { + "command": "apputils:incr-font-size", + "args": { + "key": "ui-font-size1" + } + }, + { + "command": "apputils:decr-font-size", + "args": { + "key": "ui-font-size1" + } + } + ] + }, + "rank": 0 + } + ] + } + ] + }, + "description": "Theme manager settings.", + "type": "object", + "additionalProperties": false, + "definitions": { + "cssOverrides": { + "type": "object", + "additionalProperties": false, + "description": "The description field of each item is the CSS property that will be used to validate an override's value", + "properties": { + "code-font-family": { + "type": ["string", "null"], + "description": "font-family" + }, + "code-font-size": { + "type": ["string", "null"], + "description": "font-size" + }, + + "content-font-family": { + "type": ["string", "null"], + "description": "font-family" + }, + "content-font-size1": { + "type": ["string", "null"], + "description": "font-size" + }, + + "ui-font-family": { + "type": ["string", "null"], + "description": "font-family" + }, + "ui-font-size1": { + "type": ["string", "null"], + "description": "font-size" + } + } + } + }, + "properties": { + "theme": { + "type": "string", + "title": "Selected Theme", + "description": "Application-level visual styling theme", + "default": "JupyterLab Light" + }, + "theme-scrollbars": { + "type": "boolean", + "title": "Scrollbar Theming", + "description": "Enable/disable styling of the application scrollbars", + "default": false + }, + "overrides": { + "title": "Theme CSS Overrides", + "description": "Override theme CSS variables by setting key-value pairs here", + "$ref": "#/definitions/cssOverrides", + "default": { + "code-font-family": null, + "code-font-size": null, + + "content-font-family": null, + "content-font-size1": null, + + "ui-font-family": null, + "ui-font-size1": null + } + } + } +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/utilityCommands.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/utilityCommands.json new file mode 100644 index 0000000..b6ce4f5 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/utilityCommands.json @@ -0,0 +1,35 @@ +{ + "title": "Shortcuts Help", + "description": "Shortcut help settings.", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-help", + "items": [ + { + "type": "separator", + "rank": 0.1 + }, + { + "command": "apputils:display-shortcuts", + "rank": 0.1 + }, + { + "type": "separator", + "rank": 0.1 + } + ] + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "apputils:display-shortcuts", + "keys": ["Accel Shift H"], + "selector": "body" + } + ], + "properties": {}, + "type": "object", + "additionalProperties": false +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/workspaces.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/workspaces.json new file mode 100644 index 0000000..8cf37a5 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/apputils-extension/workspaces.json @@ -0,0 +1,24 @@ +{ + "title": "Workspaces", + "description": "Workspaces settings.", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-file", + "items": [ + { + "command": "workspace-ui:save-as", + "rank": 40 + }, + { + "command": "workspace-ui:save", + "rank": 40 + } + ] + } + ] + }, + "additionalProperties": false, + "properties": {}, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/cell-toolbar-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/cell-toolbar-extension/package.json.orig new file mode 100644 index 0000000..b79cf2b --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/cell-toolbar-extension/package.json.orig @@ -0,0 +1,55 @@ +{ + "name": "@jupyterlab/cell-toolbar-extension", + "version": "4.0.8", + "description": "Extension for cell toolbar adapted from jlab-enhanced-cell-toolbar", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}", + "schema/*.json", + "style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/apputils": "^4.1.8", + "@jupyterlab/cell-toolbar": "^4.0.8", + "@jupyterlab/settingregistry": "^4.0.8", + "@jupyterlab/translation": "^4.0.8" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/cell-toolbar-extension/plugin.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/cell-toolbar-extension/plugin.json new file mode 100644 index 0000000..e42bdd3 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/cell-toolbar-extension/plugin.json @@ -0,0 +1,95 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "title": "Cell Toolbar", + "description": "Cell Toolbar Settings.", + "jupyter.lab.toolbars": { + "Cell": [ + { + "name": "duplicate-cell", + "command": "notebook:duplicate-below" + }, + { "name": "move-cell-up", "command": "notebook:move-cell-up" }, + { "name": "move-cell-down", "command": "notebook:move-cell-down" }, + { + "name": "insert-cell-above", + "command": "notebook:insert-cell-above" + }, + { + "name": "insert-cell-below", + "command": "notebook:insert-cell-below" + }, + { + "command": "notebook:delete-cell", + "icon": "ui-components:delete", + "name": "delete-cell" + } + ] + }, + "jupyter.lab.transform": true, + "properties": { + "toolbar": { + "title": "List of toolbar items", + "description": "An item is defined by a 'name', a 'command' name, and an 'icon' name", + "type": "array", + "items": { + "$ref": "#/definitions/toolbarItem" + }, + "default": [] + } + }, + "additionalProperties": false, + "type": "object", + "definitions": { + "toolbarItem": { + "properties": { + "name": { + "title": "Unique name", + "type": "string" + }, + "args": { + "title": "Command arguments", + "type": "object" + }, + "command": { + "title": "Command id", + "type": "string", + "default": "" + }, + "disabled": { + "title": "Whether the item is ignored or not", + "type": "boolean", + "default": false + }, + "icon": { + "title": "Item icon id", + "description": "If defined, it will override the command icon", + "type": "string" + }, + "label": { + "title": "Item label", + "description": "If defined, it will override the command label", + "type": "string" + }, + "caption": { + "title": "Item caption", + "description": "If defined, it will override the command caption", + "type": "string" + }, + "type": { + "title": "Item type", + "type": "string", + "enum": ["command", "spacer"] + }, + "rank": { + "title": "Item rank", + "type": "number", + "minimum": 0, + "default": 50 + } + }, + "required": ["name"], + "additionalProperties": false, + "type": "object" + } + } +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/celltags-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/celltags-extension/package.json.orig new file mode 100644 index 0000000..0498768 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/celltags-extension/package.json.orig @@ -0,0 +1,63 @@ +{ + "name": "@jupyterlab/celltags-extension", + "version": "4.0.8", + "description": "An extension for manipulating tags in cell metadata", + "keywords": [ + "jupyter", + "jupyterlab", + "jupyterlab-extension" + ], + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.{d.ts,js,js.map}", + "style/*.css", + "style/index.js", + "src/**/*.{ts,tsx}", + "schema/*.json" + ], + "scripts": { + "build": "tsc", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/notebook": "^4.0.8", + "@jupyterlab/translation": "^4.0.8", + "@jupyterlab/ui-components": "^4.0.8", + "@lumino/algorithm": "^2.0.1", + "@rjsf/utils": "^5.1.0", + "react": "^18.2.0" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/celltags-extension/plugin.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/celltags-extension/plugin.json new file mode 100644 index 0000000..09acd9c --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/celltags-extension/plugin.json @@ -0,0 +1,33 @@ +{ + "type": "object", + "title": "Common tools", + "description": "Setting for the common tools", + "jupyter.lab.metadataforms": [ + { + "id": "commonToolsSection", + "label": "Common tools", + "metadataSchema": { + "type": "object", + "properties": { + "/tags": { + "title": "Cell tag", + "type": "array", + "default": [], + "items": { + "type": "string" + } + } + } + }, + "uiSchema": { + "ui:order": ["_CELL-TOOL", "/tags", "*"] + }, + "metadataOptions": { + "/tags": { + "customRenderer": "@jupyterlab/celltags-extension:plugin.renderer" + } + } + } + ], + "additionalProperties": false +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/codemirror-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/codemirror-extension/package.json.orig new file mode 100644 index 0000000..2a0ee1d --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/codemirror-extension/package.json.orig @@ -0,0 +1,72 @@ +{ + "name": "@jupyterlab/codemirror-extension", + "version": "4.0.8", + "description": "JupyterLab - CodeMirror Provider Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "schema/*.json", + "style/**/*.css", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@codemirror/lang-markdown": "^6.1.1", + "@codemirror/language": "^6.6.0", + "@codemirror/legacy-modes": "^6.3.2", + "@jupyter/ydoc": "^1.0.2", + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/codeeditor": "^4.0.8", + "@jupyterlab/codemirror": "^4.0.8", + "@jupyterlab/settingregistry": "^4.0.8", + "@jupyterlab/statusbar": "^4.0.8", + "@jupyterlab/translation": "^4.0.8", + "@jupyterlab/ui-components": "^4.0.8", + "@lumino/coreutils": "^2.1.2", + "@lumino/widgets": "^2.3.0", + "@rjsf/utils": "^5.1.0", + "@rjsf/validator-ajv8": "^5.1.0", + "react": "^18.2.0" + }, + "devDependencies": { + "@types/react": "^18.0.26", + "rimraf": "~3.0.0", + "typedoc": "~0.24.7", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/codemirror-extension/plugin.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/codemirror-extension/plugin.json new file mode 100644 index 0000000..8f0a6d0 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/codemirror-extension/plugin.json @@ -0,0 +1,14 @@ +{ + "jupyter.lab.setting-icon": "ui-components:text-editor", + "jupyter.lab.setting-icon-label": "CodeMirror", + "title": "CodeMirror", + "description": "Text editor settings for all CodeMirror editors.", + "properties": { + "defaultConfig": { + "title": "Default editor configuration", + "description": "Base configuration used by all CodeMirror editors.", + "type": "object" + } + }, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/completer-extension/manager.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/completer-extension/manager.json new file mode 100644 index 0000000..672a2c5 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/completer-extension/manager.json @@ -0,0 +1,43 @@ +{ + "title": "Code Completion", + "description": "Code Completion settings.", + "jupyter.lab.setting-icon-label": "Code Completion settings", + "jupyter.lab.transform": true, + "properties": { + "availableProviders": { + "title": "Completion providers rank setting.", + "description": "Providers with higher rank will be shown before the ones with lower rank, providers with negative rank are disabled.", + "type": "object", + "patternProperties": { + "^.*$": { + "type": "integer" + } + }, + "additionalProperties": false, + "default": { + "CompletionProvider:context": 500, + "CompletionProvider:kernel": 550 + } + }, + "providerTimeout": { + "title": "Default timeout for a provider.", + "description": "If a provider can not return the response for a completer request before timeout, the result of this provider will be ignored. Value is in millisecond", + "type": "number", + "default": 1000 + }, + "showDocumentationPanel": { + "title": "Show the documentation panel.", + "description": "Documentation panel setting.", + "type": "boolean", + "default": false + }, + "autoCompletion": { + "title": "Enable autocompletion.", + "description": "Autocompletion setting.", + "type": "boolean", + "default": false + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/completer-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/completer-extension/package.json.orig new file mode 100644 index 0000000..55cc251 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/completer-extension/package.json.orig @@ -0,0 +1,62 @@ +{ + "name": "@jupyterlab/completer-extension", + "version": "4.0.8", + "description": "JupyterLab - Completer Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "schema/*.json", + "style/**/*.css", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/completer": "^4.0.8", + "@jupyterlab/settingregistry": "^4.0.8", + "@jupyterlab/ui-components": "^4.0.8", + "@lumino/coreutils": "^2.1.2", + "@rjsf/utils": "^5.1.0", + "react": "^18.2.0" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typedoc": "~0.24.7", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/console-extension/completer.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/console-extension/completer.json new file mode 100644 index 0000000..5ed9cae --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/console-extension/completer.json @@ -0,0 +1,14 @@ +{ + "title": "Console Completer", + "description": "Console completer settings.", + "jupyter.lab.shortcuts": [ + { + "command": "completer:invoke-console", + "keys": ["Tab"], + "selector": ".jp-CodeConsole-promptCell .jp-mod-completer-enabled" + } + ], + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/console-extension/foreign.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/console-extension/foreign.json new file mode 100644 index 0000000..6357e08 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/console-extension/foreign.json @@ -0,0 +1,16 @@ +{ + "title": "Code Console Foreign plugin", + "description": "Code Console Foreign plugin settings.", + "jupyter.lab.menus": { + "context": [ + { + "command": "console:toggle-show-all-kernel-activity", + "selector": ".jp-CodeConsole", + "rank": 20 + } + ] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/console-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/console-extension/package.json.orig new file mode 100644 index 0000000..a817b34 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/console-extension/package.json.orig @@ -0,0 +1,72 @@ +{ + "name": "@jupyterlab/console-extension", + "version": "4.0.8", + "description": "JupyterLab - Code Console Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "schema/*.json", + "style/**/*.css", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/apputils": "^4.1.8", + "@jupyterlab/codeeditor": "^4.0.8", + "@jupyterlab/completer": "^4.0.8", + "@jupyterlab/console": "^4.0.8", + "@jupyterlab/filebrowser": "^4.0.8", + "@jupyterlab/launcher": "^4.0.8", + "@jupyterlab/mainmenu": "^4.0.8", + "@jupyterlab/rendermime": "^4.0.8", + "@jupyterlab/settingregistry": "^4.0.8", + "@jupyterlab/translation": "^4.0.8", + "@jupyterlab/ui-components": "^4.0.8", + "@lumino/algorithm": "^2.0.1", + "@lumino/coreutils": "^2.1.2", + "@lumino/disposable": "^2.1.2", + "@lumino/properties": "^2.0.1", + "@lumino/widgets": "^2.3.0" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typedoc": "~0.24.7", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/console-extension/tracker.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/console-extension/tracker.json new file mode 100644 index 0000000..6775b5b --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/console-extension/tracker.json @@ -0,0 +1,127 @@ +{ + "title": "Code Console", + "description": "Code Console settings.", + "jupyter.lab.setting-icon": "ui-components:console", + "jupyter.lab.setting-icon-label": "Code Console Settings", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-file", + "items": [ + { + "type": "submenu", + "submenu": { + "id": "jp-mainmenu-file-new", + "items": [ + { + "command": "console:create", + "rank": 1 + } + ] + } + } + ] + }, + { + "id": "jp-mainmenu-settings", + "items": [ + { + "type": "separator", + "rank": 9 + }, + { + "type": "submenu", + "submenu": { + "id": "jp-mainmenu-settings-consoleexecute", + "label": "Console Run Keystroke", + "items": [ + { + "command": "console:interaction-mode", + "args": { + "interactionMode": "terminal" + } + }, + { + "command": "console:interaction-mode", + "args": { + "interactionMode": "notebook" + } + } + ] + }, + "rank": 9 + }, + { + "type": "separator", + "rank": 9 + } + ] + } + ], + "context": [ + { + "command": "console:clear", + "selector": ".jp-CodeConsole-content", + "rank": 10 + }, + { + "command": "console:restart-kernel", + "selector": ".jp-CodeConsole", + "rank": 30 + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "console:linebreak", + "keys": ["Enter"], + "selector": ".jp-CodeConsole[data-jp-interaction-mode='notebook'] .jp-CodeConsole-promptCell" + }, + { + "command": "console:run-forced", + "keys": ["Shift Enter"], + "selector": ".jp-CodeConsole[data-jp-interaction-mode='notebook'] .jp-CodeConsole-promptCell" + }, + { + "command": "console:linebreak", + "keys": ["Accel Enter"], + "selector": ".jp-CodeConsole[data-jp-interaction-mode='terminal'] .jp-CodeConsole-promptCell" + }, + { + "command": "console:run-forced", + "keys": ["Shift Enter"], + "selector": ".jp-CodeConsole[data-jp-interaction-mode='terminal'] .jp-CodeConsole-promptCell" + }, + { + "command": "console:run-unforced", + "keys": ["Enter"], + "selector": ".jp-CodeConsole[data-jp-interaction-mode='terminal'] .jp-CodeConsole-promptCell" + } + ], + "properties": { + "interactionMode": { + "title": "Interaction mode", + "description": "Whether the console interaction mimics the notebook\nor terminal keyboard shortcuts.", + "type": "string", + "enum": ["notebook", "terminal"], + "default": "notebook" + }, + "showAllKernelActivity": { + "title": "Show All Kernel Activity", + "description": "Whether the console defaults to showing all\nkernel activity or just kernel activity originating from itself.", + "type": "boolean", + "default": false + }, + "promptCellConfig": { + "title": "Prompt Cell Configuration", + "description": "The configuration for all prompt cells; it will override the CodeMirror default configuration.", + "type": "object", + "default": { + "codeFolding": false, + "lineNumbers": false + } + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/csvviewer-extension/csv.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/csvviewer-extension/csv.json new file mode 100644 index 0000000..a6e32f0 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/csvviewer-extension/csv.json @@ -0,0 +1,76 @@ +{ + "title": "CSV Viewer", + "description": "CSV Viewer settings.", + "jupyter.lab.setting-icon": "ui-components:spreadsheet", + "jupyter.lab.setting-icon-label": "CSV Viewer", + "jupyter.lab.toolbars": { + "CSVTable": [{ "name": "delimiter", "rank": 10 }] + }, + "jupyter.lab.transform": true, + "properties": { + "toolbar": { + "title": "CSV viewer toolbar items", + "description": "Note: To disable a toolbar item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable the delimiter selector item:\n{\n \"toolbar\": [\n {\n \"name\": \"delimiter\",\n \"disabled\": true\n }\n ]\n}\n\nToolbar description:", + "items": { + "$ref": "#/definitions/toolbarItem" + }, + "type": "array", + "default": [] + } + }, + "additionalProperties": false, + "type": "object", + "definitions": { + "toolbarItem": { + "properties": { + "name": { + "title": "Unique name", + "type": "string" + }, + "args": { + "title": "Command arguments", + "type": "object" + }, + "command": { + "title": "Command id", + "type": "string", + "default": "" + }, + "disabled": { + "title": "Whether the item is ignored or not", + "type": "boolean", + "default": false + }, + "icon": { + "title": "Item icon id", + "description": "If defined, it will override the command icon", + "type": "string" + }, + "label": { + "title": "Item label", + "description": "If defined, it will override the command label", + "type": "string" + }, + "caption": { + "title": "Item caption", + "description": "If defined, it will override the command caption", + "type": "string" + }, + "type": { + "title": "Item type", + "type": "string", + "enum": ["command", "spacer"] + }, + "rank": { + "title": "Item rank", + "type": "number", + "minimum": 0, + "default": 50 + } + }, + "required": ["name"], + "additionalProperties": false, + "type": "object" + } + } +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/csvviewer-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/csvviewer-extension/package.json.orig new file mode 100644 index 0000000..5b90851 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/csvviewer-extension/package.json.orig @@ -0,0 +1,66 @@ +{ + "name": "@jupyterlab/csvviewer-extension", + "version": "4.0.8", + "description": "JupyterLab - CSV Widget Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "schema/*.json", + "style/**/*.css", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/apputils": "^4.1.8", + "@jupyterlab/csvviewer": "^4.0.8", + "@jupyterlab/docregistry": "^4.0.8", + "@jupyterlab/documentsearch": "^4.0.8", + "@jupyterlab/mainmenu": "^4.0.8", + "@jupyterlab/observables": "^5.0.8", + "@jupyterlab/settingregistry": "^4.0.8", + "@jupyterlab/translation": "^4.0.8", + "@lumino/datagrid": "^2.2.0", + "@lumino/widgets": "^2.3.0" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typedoc": "~0.24.7", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/csvviewer-extension/tsv.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/csvviewer-extension/tsv.json new file mode 100644 index 0000000..0df9260 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/csvviewer-extension/tsv.json @@ -0,0 +1,76 @@ +{ + "title": "TSV Viewer", + "description": "TSV Viewer settings.", + "jupyter.lab.setting-icon": "ui-components:spreadsheet", + "jupyter.lab.setting-icon-label": "TSV Viewer", + "jupyter.lab.toolbars": { + "TSVTable": [{ "name": "delimiter", "rank": 10 }] + }, + "jupyter.lab.transform": true, + "properties": { + "toolbar": { + "title": "TSV viewer toolbar items", + "description": "Note: To disable a toolbar item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable the delimiter selector item:\n{\n \"toolbar\": [\n {\n \"name\": \"delimiter\",\n \"disabled\": true\n }\n ]\n}\n\nToolbar description:", + "items": { + "$ref": "#/definitions/toolbarItem" + }, + "type": "array", + "default": [] + } + }, + "additionalProperties": false, + "type": "object", + "definitions": { + "toolbarItem": { + "properties": { + "name": { + "title": "Unique name", + "type": "string" + }, + "args": { + "title": "Command arguments", + "type": "object" + }, + "command": { + "title": "Command id", + "type": "string", + "default": "" + }, + "disabled": { + "title": "Whether the item is ignored or not", + "type": "boolean", + "default": false + }, + "icon": { + "title": "Item icon id", + "description": "If defined, it will override the command icon", + "type": "string" + }, + "label": { + "title": "Item label", + "description": "If defined, it will override the command label", + "type": "string" + }, + "caption": { + "title": "Item caption", + "description": "If defined, it will override the command caption", + "type": "string" + }, + "type": { + "title": "Item type", + "type": "string", + "enum": ["command", "spacer"] + }, + "rank": { + "title": "Item rank", + "type": "number", + "minimum": 0, + "default": 50 + } + }, + "required": ["name"], + "additionalProperties": false, + "type": "object" + } + } +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/debugger-extension/main.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/debugger-extension/main.json new file mode 100644 index 0000000..0ae257f --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/debugger-extension/main.json @@ -0,0 +1,127 @@ +{ + "title": "Debugger", + "description": "Debugger settings", + "jupyter.lab.setting-icon": "ui-components:bug", + "jupyter.lab.setting-icon-label": "Debugger", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-kernel", + "items": [ + { "type": "separator", "rank": 1.2 }, + { "command": "debugger:restart-debug", "rank": 1.2 } + ] + }, + { + "id": "jp-mainmenu-view", + "items": [ + { + "command": "debugger:show-panel", + "rank": 5 + } + ] + } + ], + "context": [ + { + "command": "debugger:inspect-variable", + "selector": ".jp-DebuggerVariables-body .jp-DebuggerVariables-grid" + }, + { + "command": "debugger:render-mime-variable", + "selector": ".jp-DebuggerVariables-body" + }, + { + "command": "debugger:copy-to-clipboard", + "selector": ".jp-DebuggerVariables-body" + }, + { + "command": "debugger:copy-to-globals", + "selector": ".jp-DebuggerVariables-body.jp-debuggerVariables-local" + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "debugger:show-panel", + "keys": ["Accel Shift E"], + "selector": "body" + }, + { + "command": "debugger:continue", + "keys": ["F9"], + "selector": "body" + }, + { + "command": "debugger:terminate", + "keys": ["Shift F9"], + "selector": "body" + }, + { + "command": "debugger:next", + "keys": ["F10"], + "selector": "body" + }, + { + "command": "debugger:stepIn", + "keys": ["F11"], + "selector": "body" + }, + { + "command": "debugger:stepOut", + "keys": ["Shift F11"], + "selector": "body" + } + ], + "definitions": { + "variableFilters": { + "properties": { + "xpython": { + "type": "array", + "items": { + "type": "string" + } + } + } + } + }, + "properties": { + "variableFilters": { + "title": "Variable filter", + "description": "Variables to filter out in the tree and table viewers", + "$ref": "#/definitions/variableFilters", + "default": { + "xpython": [ + "debugpy", + "display", + "get_ipython", + "ptvsd", + "_xpython_get_connection_filename", + "_xpython_launch", + "_pydev_stop_at_break", + "__annotations__", + "__builtins__", + "__doc__", + "__loader__", + "__name__", + "__package__", + "__spec__" + ] + } + }, + "defaultKernelSourcesFilter": { + "title": "Default kernel sources regexp filter", + "description": "A regular expression filter to apply by default when showing the kernel sources", + "type": "string", + "default": "" + }, + "autoCollapseDebuggerSidebar": { + "title": "Auto Collapse Debugger Sidebar", + "description": "Collapse the debugger sidebar when disabling the debugger on a document.", + "type": "boolean", + "default": false + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/debugger-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/debugger-extension/package.json.orig new file mode 100644 index 0000000..8a0c112 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/debugger-extension/package.json.orig @@ -0,0 +1,79 @@ +{ + "name": "@jupyterlab/debugger-extension", + "version": "4.0.8", + "description": "JupyterLab - Debugger Extension", + "keywords": [ + "jupyter", + "jupyterlab", + "jupyterlab-extension" + ], + "homepage": "https://github.com/jupyterlab/debugger", + "bugs": { + "url": "https://github.com/jupyterlab/debugger/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/debugger.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/**/*.d.ts", + "lib/**/*.js.map", + "lib/**/*.js", + "schema/*.json", + "style/**/*.css", + "style/**/*.svg", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo && rimraf tsconfig.test.tsbuildinfo && rimraf tests/build", + "docs": "typedoc --options tdoptions.json --theme ../../typedoc-theme src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/apputils": "^4.1.8", + "@jupyterlab/cells": "^4.0.8", + "@jupyterlab/codeeditor": "^4.0.8", + "@jupyterlab/console": "^4.0.8", + "@jupyterlab/coreutils": "^6.0.8", + "@jupyterlab/debugger": "^4.0.8", + "@jupyterlab/docregistry": "^4.0.8", + "@jupyterlab/fileeditor": "^4.0.8", + "@jupyterlab/logconsole": "^4.0.8", + "@jupyterlab/notebook": "^4.0.8", + "@jupyterlab/rendermime": "^4.0.8", + "@jupyterlab/services": "^7.0.8", + "@jupyterlab/settingregistry": "^4.0.8", + "@jupyterlab/translation": "^4.0.8" + }, + "devDependencies": { + "@jupyterlab/testing": "^4.0.8", + "@types/jest": "^29.2.0", + "@types/react-dom": "^18.0.9", + "rimraf": "~3.0.0", + "typedoc": "~0.24.7", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/docmanager-extension/download.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/docmanager-extension/download.json new file mode 100644 index 0000000..8218638 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/docmanager-extension/download.json @@ -0,0 +1,21 @@ +{ + "title": "Document Manager Download", + "description": "Document Manager Download settings.", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-file", + "items": [ + { "type": "separator", "rank": 6 }, + { + "command": "docmanager:download", + "rank": 6 + }, + { "type": "separator", "rank": 6 } + ] + } + ] + }, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/docmanager-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/docmanager-extension/package.json.orig new file mode 100644 index 0000000..f514b2c --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/docmanager-extension/package.json.orig @@ -0,0 +1,72 @@ +{ + "name": "@jupyterlab/docmanager-extension", + "version": "4.0.8", + "description": "JupyterLab - Document Manager Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "schema/*.json", + "style/**/*.css", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/apputils": "^4.1.8", + "@jupyterlab/coreutils": "^6.0.8", + "@jupyterlab/docmanager": "^4.0.8", + "@jupyterlab/docregistry": "^4.0.8", + "@jupyterlab/services": "^7.0.8", + "@jupyterlab/settingregistry": "^4.0.8", + "@jupyterlab/statusbar": "^4.0.8", + "@jupyterlab/translation": "^4.0.8", + "@jupyterlab/ui-components": "^4.0.8", + "@lumino/algorithm": "^2.0.1", + "@lumino/commands": "^2.1.3", + "@lumino/coreutils": "^2.1.2", + "@lumino/disposable": "^2.1.2", + "@lumino/signaling": "^2.1.2", + "@lumino/widgets": "^2.3.0", + "react": "^18.2.0" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typedoc": "~0.24.7", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/docmanager-extension/plugin.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/docmanager-extension/plugin.json new file mode 100644 index 0000000..eb80613 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/docmanager-extension/plugin.json @@ -0,0 +1,156 @@ +{ + "title": "Document Manager", + "description": "Document Manager settings.", + "jupyter.lab.setting-icon": "ui-components:file", + "jupyter.lab.setting-icon-label": "Document Manager", + "jupyter.lab.transform": true, + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-file", + "items": [ + { + "command": "docmanager:clone", + "rank": 2 + }, + { + "type": "separator", + "rank": 4 + }, + { + "command": "docmanager:save", + "rank": 4 + }, + { + "command": "docmanager:save-as", + "rank": 4 + }, + { + "command": "docmanager:save-all", + "rank": 4 + }, + { + "type": "separator", + "rank": 5 + }, + { + "command": "docmanager:reload", + "rank": 5 + }, + { + "command": "docmanager:restore-checkpoint", + "rank": 5 + }, + { + "command": "docmanager:rename", + "rank": 5 + }, + { + "command": "docmanager:duplicate", + "rank": 5 + } + ] + }, + { + "id": "jp-mainmenu-settings", + "items": [ + { + "type": "separator", + "rank": 4 + }, + { + "command": "docmanager:toggle-autosave", + "rank": 4 + }, + { + "type": "separator", + "rank": 4 + } + ] + } + ], + "context": [ + { + "command": "docmanager:rename", + "selector": "[data-type=\"document-title\"]", + "rank": 20 + }, + { + "command": "docmanager:duplicate", + "selector": "[data-type=\"document-title\"]", + "rank": 21 + }, + { + "command": "docmanager:delete", + "selector": "[data-type=\"document-title\"]", + "rank": 22 + }, + { + "command": "docmanager:clone", + "selector": "[data-type=\"document-title\"]", + "rank": 23 + }, + { + "command": "docmanager:show-in-file-browser", + "selector": "[data-type=\"document-title\"]", + "rank": 24 + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "docmanager:save", + "keys": ["Accel S"], + "selector": "body" + }, + { + "command": "docmanager:save-as", + "keys": ["Accel Shift S"], + "selector": "body" + } + ], + "properties": { + "autosave": { + "type": "boolean", + "title": "Autosave Documents", + "description": "Whether to autosave documents", + "default": true + }, + "autosaveInterval": { + "type": "number", + "title": "Autosave Interval", + "description": "Length of save interval in seconds", + "default": 120 + }, + "confirmClosingDocument": { + "type": "boolean", + "title": "Ask for confirmation to close a document", + "description": "Whether to ask for confirmation to close a document or not.", + "default": false + }, + "lastModifiedCheckMargin": { + "type": "number", + "title": "Margin for last modified timestamp check", + "description": "Max acceptable difference, in milliseconds, between last modified timestamps on disk and client", + "default": 500 + }, + "defaultViewers": { + "type": "object", + "title": "Default Viewers", + "default": {}, + "description": "Overrides for the default viewers for file types", + "properties": {}, + "additionalProperties": { + "type": "string" + } + }, + "renameUntitledFileOnSave": { + "type": "boolean", + "title": "Rename Untitled File On First Save", + "description": "Whether to prompt to rename untitled file on first manual save.", + "default": true + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/documentsearch-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/documentsearch-extension/package.json.orig new file mode 100644 index 0000000..d4a9bec --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/documentsearch-extension/package.json.orig @@ -0,0 +1,56 @@ +{ + "name": "@jupyterlab/documentsearch-extension", + "version": "4.0.8", + "description": "JupyterLab - Document Search Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}", + "schema/*.json", + "style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "watch": "tsc -w --listEmittedFiles" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/apputils": "^4.1.8", + "@jupyterlab/documentsearch": "^4.0.8", + "@jupyterlab/settingregistry": "^4.0.8", + "@jupyterlab/translation": "^4.0.8", + "@lumino/widgets": "^2.3.0" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/documentsearch-extension/plugin.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/documentsearch-extension/plugin.json new file mode 100644 index 0000000..1c90b50 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/documentsearch-extension/plugin.json @@ -0,0 +1,68 @@ +{ + "title": "Document Search", + "description": "Document search plugin.", + "jupyter.lab.setting-icon": "ui-components:search", + "jupyter.lab.setting-icon-label": "Document Search", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-edit", + "items": [ + { + "type": "separator", + "rank": 10 + }, + { + "command": "documentsearch:start", + "rank": 10 + }, + { + "command": "documentsearch:highlightNext", + "rank": 10 + }, + { + "command": "documentsearch:highlightPrevious", + "rank": 10 + }, + { + "type": "separator", + "rank": 10 + } + ] + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "documentsearch:start", + "keys": ["Accel F"], + "selector": ".jp-mod-searchable" + }, + { + "command": "documentsearch:highlightNext", + "keys": ["Accel G"], + "selector": ".jp-mod-searchable" + }, + { + "command": "documentsearch:highlightPrevious", + "keys": ["Accel Shift G"], + "selector": ".jp-mod-searchable" + }, + { + "command": "documentsearch:end", + "keys": ["Escape"], + "selector": ".jp-mod-searchable" + } + ], + "properties": { + "searchDebounceTime": { + "title": "Search debounce time (ms)", + "description": "The debounce time in milliseconds applied to the search input field. The already opened input files will not be updated if you change that value", + "type": "number", + "default": 500, + "minimum": 0 + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/extensionmanager-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/extensionmanager-extension/package.json.orig new file mode 100644 index 0000000..ca845bc --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/extensionmanager-extension/package.json.orig @@ -0,0 +1,62 @@ +{ + "name": "@jupyterlab/extensionmanager-extension", + "version": "4.0.8", + "description": "JupyterLab - Extension Manager Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "schema/*.json", + "listing/*.json", + "style/*.css", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/apputils": "^4.1.8", + "@jupyterlab/extensionmanager": "^4.0.8", + "@jupyterlab/settingregistry": "^4.0.8", + "@jupyterlab/translation": "^4.0.8", + "@jupyterlab/ui-components": "^4.0.8" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typedoc": "~0.24.7", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/extensionmanager-extension/plugin.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/extensionmanager-extension/plugin.json new file mode 100644 index 0000000..670b9af --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/extensionmanager-extension/plugin.json @@ -0,0 +1,59 @@ +{ + "title": "Extension Manager", + "description": "Extension manager settings.", + "jupyter.lab.setting-icon": "ui-components:extension", + "jupyter.lab.setting-icon-label": "Extension Manager", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-view", + "items": [ + { + "command": "extensionmanager:show-panel", + "rank": 9 + } + ] + }, + { + "id": "jp-mainmenu-settings", + "items": [ + { + "type": "separator", + "rank": 100 + }, + { + "command": "extensionmanager:toggle", + "rank": 100 + }, + { + "type": "separator", + "rank": 100 + } + ] + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "extensionmanager:show-panel", + "keys": ["Accel Shift X"], + "selector": "body" + } + ], + "properties": { + "enabled": { + "title": "Enabled Status", + "description": "Enables extension manager.\nWARNING: installing untrusted extensions may be unsafe.", + "default": true, + "type": "boolean" + }, + "disclaimed": { + "title": "Disclaimed Status", + "description": "Whether the user agrees the access to external web services and understands extensions may introduce security risks or contain malicious code that runs on his machine.", + "default": false, + "type": "boolean" + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/browser.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/browser.json new file mode 100644 index 0000000..17e2154 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/browser.json @@ -0,0 +1,237 @@ +{ + "jupyter.lab.setting-icon": "ui-components:folder", + "jupyter.lab.setting-icon-label": "File Browser", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-file", + "items": [ + { + "type": "separator", + "rank": 1 + }, + { + "command": "filebrowser:open-path", + "rank": 1 + }, + { + "command": "filebrowser:open-url", + "rank": 1 + } + ] + }, + { + "id": "jp-mainmenu-view", + "items": [ + { + "command": "filebrowser:toggle-hidden-files", + "rank": 9.95 + } + ] + } + ], + "context": [ + { + "type": "separator", + "selector": ".jp-DirListing-content", + "rank": 0 + }, + { + "command": "filebrowser:open", + "selector": ".jp-DirListing-item[data-isdir]", + "rank": 1 + }, + { + "type": "separator", + "selector": ".jp-DirListing-item[data-isdir]", + "rank": 4 + }, + { + "command": "filebrowser:rename", + "selector": ".jp-DirListing-item[data-isdir]", + "rank": 5 + }, + { + "command": "filebrowser:delete", + "selector": ".jp-DirListing-item[data-isdir]", + "rank": 6 + }, + { + "command": "filebrowser:cut", + "selector": ".jp-DirListing-item[data-isdir]", + "rank": 7 + }, + { + "command": "filebrowser:copy", + "selector": ".jp-DirListing-item[data-isdir]", + "rank": 8 + }, + { + "command": "filebrowser:paste", + "selector": ".jp-DirListing-content", + "rank": 8.5 + }, + { + "command": "filebrowser:duplicate", + "selector": ".jp-DirListing-item[data-isdir=\"false\"]", + "rank": 9 + }, + { + "type": "separator", + "selector": ".jp-DirListing-item[data-isdir]", + "rank": 10 + }, + { + "command": "filebrowser:shutdown", + "selector": ".jp-DirListing-item[data-isdir=\"false\"].jp-mod-running", + "rank": 11 + }, + { + "type": "separator", + "selector": ".jp-DirListing-item[data-isdir]", + "rank": 12 + }, + { + "command": "filebrowser:copy-path", + "selector": ".jp-DirListing-item[data-isdir]", + "rank": 14 + }, + { + "command": "filebrowser:toggle-last-modified", + "selector": ".jp-DirListing-header", + "rank": 14 + }, + { + "command": "filebrowser:toggle-file-size", + "selector": ".jp-DirListing-header", + "rank": 15 + }, + { + "command": "filebrowser:toggle-file-checkboxes", + "selector": ".jp-DirListing-header", + "rank": 16 + }, + { + "command": "filebrowser:toggle-sort-notebooks-first", + "selector": ".jp-DirListing-header", + "rank": 17 + }, + { + "command": "filebrowser:share-main", + "selector": ".jp-DirListing-item[data-isdir]", + "rank": 17 + }, + { + "type": "separator", + "selector": ".jp-DirListing-item[data-isdir]", + "rank": 50 + }, + { + "command": "filebrowser:create-new-file", + "selector": ".jp-DirListing-content", + "rank": 51 + }, + { + "command": "filebrowser:create-new-directory", + "selector": ".jp-DirListing-content", + "rank": 55 + } + ] + }, + "title": "File Browser", + "description": "File Browser settings.", + "jupyter.lab.shortcuts": [ + { + "command": "filebrowser:go-up", + "keys": ["Backspace"], + "selector": ".jp-DirListing:focus" + }, + { + "command": "filebrowser:go-up", + "keys": ["Backspace"], + "selector": ".jp-DirListing-content .jp-DirListing-itemText" + }, + { + "command": "filebrowser:delete", + "keys": ["Delete"], + "selector": ".jp-DirListing-content .jp-DirListing-itemText" + }, + { + "command": "filebrowser:cut", + "keys": ["Accel X"], + "selector": ".jp-DirListing-content .jp-DirListing-itemText" + }, + { + "command": "filebrowser:copy", + "keys": ["Accel C"], + "selector": ".jp-DirListing-content .jp-DirListing-itemText" + }, + { + "command": "filebrowser:paste", + "keys": ["Accel V"], + "selector": ".jp-DirListing-content .jp-DirListing-itemText" + }, + { + "command": "filebrowser:rename", + "keys": ["F2"], + "selector": ".jp-DirListing-content .jp-DirListing-itemText" + }, + { + "command": "filebrowser:duplicate", + "keys": ["Accel D"], + "selector": ".jp-DirListing-content .jp-DirListing-itemText" + } + ], + "properties": { + "navigateToCurrentDirectory": { + "type": "boolean", + "title": "Navigate to current directory", + "description": "Whether to automatically navigate to a document's current directory", + "default": false + }, + "useFuzzyFilter": { + "type": "boolean", + "title": "Filter on file name with a fuzzy search", + "description": "Whether to apply fuzzy algorithm while filtering on file names", + "default": true + }, + "filterDirectories": { + "type": "boolean", + "title": "Filter directories", + "description": "Whether to apply the search on directories", + "default": true + }, + "showLastModifiedColumn": { + "type": "boolean", + "title": "Show last modified column", + "description": "Whether to show the last modified column", + "default": true + }, + "showFileSizeColumn": { + "type": "boolean", + "title": "Show file size column", + "description": "Whether to show the file size column", + "default": false + }, + "showHiddenFiles": { + "type": "boolean", + "title": "Show hidden files", + "description": "Whether to show hidden files. The server parameter `ContentsManager.allow_hidden` must be set to `True` to display hidden files.", + "default": false + }, + "showFileCheckboxes": { + "type": "boolean", + "title": "Use checkboxes to select items", + "description": "Whether to show checkboxes next to files and folders", + "default": false + }, + "sortNotebooksFirst": { + "type": "boolean", + "title": "When sorting by name, group notebooks before other files", + "description": "Whether to group the notebooks away from files", + "default": false + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/download.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/download.json new file mode 100644 index 0000000..804fbf2 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/download.json @@ -0,0 +1,21 @@ +{ + "title": "File Browser Download", + "description": "File Browser Download settings.", + "jupyter.lab.menus": { + "context": [ + { + "command": "filebrowser:download", + "selector": ".jp-DirListing-item[data-isdir=\"false\"]", + "rank": 9 + }, + { + "command": "filebrowser:copy-download-link", + "selector": ".jp-DirListing-item[data-isdir=\"false\"]", + "rank": 13 + } + ] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/open-browser-tab.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/open-browser-tab.json new file mode 100644 index 0000000..bc03429 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/open-browser-tab.json @@ -0,0 +1,16 @@ +{ + "title": "File Browser Open Browser Tab", + "description": "File Browser Open Browser Tab settings.", + "jupyter.lab.menus": { + "context": [ + { + "command": "filebrowser:open-browser-tab", + "selector": ".jp-DirListing-item[data-isdir=\"false\"]", + "rank": 1.6 + } + ] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/open-with.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/open-with.json new file mode 100644 index 0000000..8038dd4 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/open-with.json @@ -0,0 +1,21 @@ +{ + "title": "File Browser Open With", + "description": "File Browser Open With settings.", + "jupyter.lab.menus": { + "context": [ + { + "type": "submenu", + "selector": ".jp-DirListing-item[data-isdir=\"false\"]", + "rank": 1.3, + "submenu": { + "id": "jp-contextmenu-open-with", + "label": "Open With", + "items": [] + } + } + ] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/package.json.orig new file mode 100644 index 0000000..17f9d00 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/package.json.orig @@ -0,0 +1,70 @@ +{ + "name": "@jupyterlab/filebrowser-extension", + "version": "4.0.8", + "description": "JupyterLab - Filebrowser Widget Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "schema/*.json", + "style/**/*.css", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/apputils": "^4.1.8", + "@jupyterlab/coreutils": "^6.0.8", + "@jupyterlab/docmanager": "^4.0.8", + "@jupyterlab/docregistry": "^4.0.8", + "@jupyterlab/filebrowser": "^4.0.8", + "@jupyterlab/services": "^7.0.8", + "@jupyterlab/settingregistry": "^4.0.8", + "@jupyterlab/statedb": "^4.0.8", + "@jupyterlab/statusbar": "^4.0.8", + "@jupyterlab/translation": "^4.0.8", + "@jupyterlab/ui-components": "^4.0.8", + "@lumino/algorithm": "^2.0.1", + "@lumino/commands": "^2.1.3", + "@lumino/widgets": "^2.3.0" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typedoc": "~0.24.7", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/widget.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/widget.json new file mode 100644 index 0000000..e331aa2 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/filebrowser-extension/widget.json @@ -0,0 +1,120 @@ +{ + "title": "File Browser Widget", + "description": "File Browser widget settings.", + "jupyter.lab.toolbars": { + "FileBrowser": [ + { + "name": "new-directory", + "command": "filebrowser:create-new-directory", + "rank": 10 + }, + { "name": "uploader", "rank": 20 }, + { "name": "refresh", "command": "filebrowser:refresh", "rank": 30 }, + { "name": "fileNameSearcher", "rank": 40 } + ] + }, + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-view", + "items": [ + { + "command": "filebrowser:toggle-main", + "rank": 1 + } + ] + }, + { + "id": "jp-mainmenu-settings", + "items": [ + { + "type": "separator", + "rank": 5 + }, + { + "command": "filebrowser:toggle-navigate-to-current-directory", + "rank": 5 + }, + { + "type": "separator", + "rank": 5 + } + ] + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "filebrowser:toggle-main", + "keys": ["Accel Shift F"], + "selector": "body" + } + ], + "jupyter.lab.transform": true, + "properties": { + "toolbar": { + "title": "File browser toolbar items", + "description": "Note: To disable a toolbar item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable the uploader button:\n{\n \"toolbar\": [\n {\n \"name\": \"uploader\",\n \"disabled\": true\n }\n ]\n}\n\nToolbar description:", + "items": { + "$ref": "#/definitions/toolbarItem" + }, + "type": "array", + "default": [] + } + }, + "additionalProperties": false, + "type": "object", + "definitions": { + "toolbarItem": { + "properties": { + "name": { + "title": "Unique name", + "type": "string" + }, + "args": { + "title": "Command arguments", + "type": "object" + }, + "command": { + "title": "Command id", + "type": "string", + "default": "" + }, + "disabled": { + "title": "Whether the item is ignored or not", + "type": "boolean", + "default": false + }, + "icon": { + "title": "Item icon id", + "description": "If defined, it will override the command icon", + "type": "string" + }, + "label": { + "title": "Item label", + "description": "If defined, it will override the command label", + "type": "string" + }, + "caption": { + "title": "Item caption", + "description": "If defined, it will override the command caption", + "type": "string" + }, + "type": { + "title": "Item type", + "type": "string", + "enum": ["command", "spacer"] + }, + "rank": { + "title": "Item rank", + "type": "number", + "minimum": 0, + "default": 50 + } + }, + "required": ["name"], + "additionalProperties": false, + "type": "object" + } + } +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/fileeditor-extension/completer.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/fileeditor-extension/completer.json new file mode 100644 index 0000000..a4cf227 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/fileeditor-extension/completer.json @@ -0,0 +1,14 @@ +{ + "title": "File Editor Completer", + "description": "File editor completer settings.", + "jupyter.lab.shortcuts": [ + { + "command": "completer:invoke-file", + "keys": ["Tab"], + "selector": ".jp-FileEditor .jp-mod-completer-enabled" + } + ], + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/fileeditor-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/fileeditor-extension/package.json.orig new file mode 100644 index 0000000..0b921bb --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/fileeditor-extension/package.json.orig @@ -0,0 +1,83 @@ +{ + "name": "@jupyterlab/fileeditor-extension", + "version": "4.0.8", + "description": "JupyterLab - Editor Widget Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "schema/*.json", + "style/**/*.css", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@codemirror/commands": "^6.2.3", + "@codemirror/search": "^6.3.0", + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/apputils": "^4.1.8", + "@jupyterlab/codeeditor": "^4.0.8", + "@jupyterlab/codemirror": "^4.0.8", + "@jupyterlab/completer": "^4.0.8", + "@jupyterlab/console": "^4.0.8", + "@jupyterlab/coreutils": "^6.0.8", + "@jupyterlab/docregistry": "^4.0.8", + "@jupyterlab/documentsearch": "^4.0.8", + "@jupyterlab/filebrowser": "^4.0.8", + "@jupyterlab/fileeditor": "^4.0.8", + "@jupyterlab/launcher": "^4.0.8", + "@jupyterlab/lsp": "^4.0.8", + "@jupyterlab/mainmenu": "^4.0.8", + "@jupyterlab/observables": "^5.0.8", + "@jupyterlab/rendermime-interfaces": "^3.8.8", + "@jupyterlab/services": "^7.0.8", + "@jupyterlab/settingregistry": "^4.0.8", + "@jupyterlab/statusbar": "^4.0.8", + "@jupyterlab/toc": "^6.0.8", + "@jupyterlab/translation": "^4.0.8", + "@jupyterlab/ui-components": "^4.0.8", + "@lumino/algorithm": "^2.0.1", + "@lumino/commands": "^2.1.3", + "@lumino/coreutils": "^2.1.2", + "@lumino/widgets": "^2.3.0" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typedoc": "~0.24.7", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/fileeditor-extension/plugin.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/fileeditor-extension/plugin.json new file mode 100644 index 0000000..4ad2168 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/fileeditor-extension/plugin.json @@ -0,0 +1,257 @@ +{ + "title": "Text Editor", + "description": "Text editor settings.", + "jupyter.lab.setting-icon": "ui-components:text-editor", + "jupyter.lab.setting-icon-label": "Editor", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-file", + "items": [ + { + "type": "submenu", + "submenu": { + "id": "jp-mainmenu-file-new", + "items": [ + { + "command": "fileeditor:create-new", + "rank": 30 + }, + { + "command": "fileeditor:create-new-markdown-file", + "rank": 30 + } + ] + } + } + ] + }, + { + "id": "jp-mainmenu-view", + "items": [ + { + "type": "separator", + "rank": 40 + }, + { + "type": "submenu", + "submenu": { + "id": "jp-mainmenu-view-codemirror-language", + "label": "Text Editor Syntax Highlighting" + }, + "rank": 40 + }, + { + "type": "separator", + "rank": 40 + } + ] + }, + { + "id": "jp-mainmenu-settings", + "items": [ + { + "type": "separator", + "rank": 30 + }, + { + "type": "submenu", + "submenu": { + "id": "jp-mainmenu-settings-fileeditorindent", + "label": "Text Editor Indentation", + "items": [ + { + "command": "fileeditor:change-tabs" + }, + { + "command": "fileeditor:change-tabs", + "args": { + "size": "1" + } + }, + { + "command": "fileeditor:change-tabs", + "args": { + "size": "2" + } + }, + { + "command": "fileeditor:change-tabs", + "args": { + "size": "4" + } + }, + { + "command": "fileeditor:change-tabs", + "args": { + "size": "8" + } + } + ] + }, + "rank": 30 + }, + { + "command": "fileeditor:toggle-autoclosing-brackets-universal", + "rank": 30 + }, + { + "command": "fileeditor:change-font-size", + "rank": 30, + "args": { + "delta": 1, + "isMenu": true + } + }, + { + "command": "fileeditor:change-font-size", + "rank": 30, + "args": { + "delta": -1, + "isMenu": true + } + }, + { + "type": "submenu", + "submenu": { + "id": "jp-mainmenu-settings-codemirror-theme", + "label": "Text Editor Theme", + "items": [] + }, + "rank": 31 + }, + { + "type": "separator", + "rank": 39 + } + ] + } + ], + "context": [ + { + "command": "fileeditor:undo", + "selector": ".jp-FileEditor", + "rank": 1 + }, + { + "command": "fileeditor:redo", + "selector": ".jp-FileEditor", + "rank": 2 + }, + { + "command": "fileeditor:cut", + "selector": ".jp-FileEditor", + "rank": 3 + }, + { + "command": "fileeditor:copy", + "selector": ".jp-FileEditor", + "rank": 4 + }, + { + "command": "fileeditor:paste", + "selector": ".jp-FileEditor", + "rank": 5 + }, + { + "command": "fileeditor:select-all", + "selector": ".jp-FileEditor", + "rank": 6 + }, + { + "command": "fileeditor:create-console", + "selector": ".jp-FileEditor", + "rank": 10 + }, + { + "command": "fileeditor:markdown-preview", + "selector": ".jp-FileEditor", + "rank": 11 + } + ] + }, + "jupyter.lab.toolbars": { + "Editor": [] + }, + "jupyter.lab.transform": true, + "properties": { + "editorConfig": { + "title": "Editor Configuration", + "description": "The configuration for all text editors; it will override the CodeMirror default configuration.\nIf `fontFamily`, `fontSize` or `lineHeight` are `null`,\nvalues from current theme are used.", + "type": "object", + "default": { + "lineNumbers": true + } + }, + "scrollPastEnd": { + "title": "Scroll behavior", + "description": "Whether to scroll past the end of text document.", + "type": "boolean", + "default": true + }, + "toolbar": { + "title": "Text editor toolbar items", + "description": "Note: To disable a toolbar item,\ncopy it to User Preferences and add the\n\"disabled\" key. Toolbar description:", + "items": { + "$ref": "#/definitions/toolbarItem" + }, + "type": "array", + "default": [] + } + }, + "additionalProperties": false, + "type": "object", + "definitions": { + "toolbarItem": { + "properties": { + "name": { + "title": "Unique name", + "type": "string" + }, + "args": { + "title": "Command arguments", + "type": "object" + }, + "command": { + "title": "Command id", + "type": "string", + "default": "" + }, + "disabled": { + "title": "Whether the item is ignored or not", + "type": "boolean", + "default": false + }, + "icon": { + "title": "Item icon id", + "description": "If defined, it will override the command icon", + "type": "string" + }, + "label": { + "title": "Item label", + "description": "If defined, it will override the command label", + "type": "string" + }, + "caption": { + "title": "Item caption", + "description": "If defined, it will override the command caption", + "type": "string" + }, + "type": { + "title": "Item type", + "type": "string", + "enum": ["command", "spacer"] + }, + "rank": { + "title": "Item rank", + "type": "number", + "minimum": 0, + "default": 50 + } + }, + "required": ["name"], + "additionalProperties": false, + "type": "object" + } + } +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/help-extension/about.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/help-extension/about.json new file mode 100644 index 0000000..a7bd397 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/help-extension/about.json @@ -0,0 +1,24 @@ +{ + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-help", + "items": [ + { + "command": "help:about", + "rank": 0 + }, + { + "type": "separator", + "rank": 0 + } + ] + } + ] + }, + "title": "Help", + "description": "Help settings.", + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/help-extension/jupyter-forum.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/help-extension/jupyter-forum.json new file mode 100644 index 0000000..69a44d1 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/help-extension/jupyter-forum.json @@ -0,0 +1,26 @@ +{ + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-help", + "items": [ + { + "type": "separator", + "rank": 2 + }, + { + "command": "help:jupyter-forum", + "rank": 2 + }, + { + "type": "separator", + "rank": 2 + } + ] + } + ] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/help-extension/launch-classic.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/help-extension/launch-classic.json new file mode 100644 index 0000000..5765281 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/help-extension/launch-classic.json @@ -0,0 +1,22 @@ +{ + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-help", + "items": [ + { + "type": "separator", + "rank": 1 + }, + { + "type": "separator", + "rank": 1 + } + ] + } + ] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/help-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/help-extension/package.json.orig new file mode 100644 index 0000000..ea1b2e4 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/help-extension/package.json.orig @@ -0,0 +1,67 @@ +{ + "name": "@jupyterlab/help-extension", + "version": "4.0.8", + "description": "JupyterLab - Help Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "schema/*.json", + "style/*.css", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/apputils": "^4.1.8", + "@jupyterlab/coreutils": "^6.0.8", + "@jupyterlab/mainmenu": "^4.0.8", + "@jupyterlab/services": "^7.0.8", + "@jupyterlab/translation": "^4.0.8", + "@jupyterlab/ui-components": "^4.0.8", + "@lumino/coreutils": "^2.1.2", + "@lumino/signaling": "^2.1.2", + "@lumino/virtualdom": "^2.0.1", + "@lumino/widgets": "^2.3.0", + "react": "^18.2.0" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typedoc": "~0.24.7", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/htmlviewer-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/htmlviewer-extension/package.json.orig new file mode 100644 index 0000000..f17208f --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/htmlviewer-extension/package.json.orig @@ -0,0 +1,59 @@ +{ + "name": "@jupyterlab/htmlviewer-extension", + "version": "4.0.8", + "description": "JupyterLab extension to render HTML files", + "keywords": [ + "jupyter", + "jupyterlab" + ], + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter Contributors", + "sideEffects": [ + "style/**/*" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "files": [ + "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}", + "schema/*.json", + "style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "watch": "tsc -w" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/apputils": "^4.1.8", + "@jupyterlab/docregistry": "^4.0.8", + "@jupyterlab/htmlviewer": "^4.0.8", + "@jupyterlab/observables": "^5.0.8", + "@jupyterlab/settingregistry": "^4.0.8", + "@jupyterlab/translation": "^4.0.8", + "@jupyterlab/ui-components": "^4.0.8" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/htmlviewer-extension/plugin.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/htmlviewer-extension/plugin.json new file mode 100644 index 0000000..da61797 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/htmlviewer-extension/plugin.json @@ -0,0 +1,85 @@ +{ + "title": "HTML Viewer", + "description": "HTML Viewer settings.", + "jupyter.lab.setting-icon": "ui-components:html5", + "jupyter.lab.setting-icon-label": "HTML Viewer", + "jupyter.lab.toolbars": { + "HTML Viewer": [ + { "name": "refresh", "rank": 10 }, + { "name": "trust", "rank": 20 } + ] + }, + "jupyter.lab.transform": true, + "properties": { + "toolbar": { + "title": "HTML viewer toolbar items", + "description": "Note: To disable a toolbar item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable the refresh item:\n{\n \"toolbar\": [\n {\n \"name\": \"refresh\",\n \"disabled\": true\n }\n ]\n}\n\nToolbar description:", + "items": { + "$ref": "#/definitions/toolbarItem" + }, + "type": "array", + "default": [] + }, + "trustByDefault": { + "type": "boolean", + "title": "Trust HTML by default", + "description": "Whether to trust HTML files upon opening", + "default": false + } + }, + "additionalProperties": false, + "type": "object", + "definitions": { + "toolbarItem": { + "properties": { + "name": { + "title": "Unique name", + "type": "string" + }, + "args": { + "title": "Command arguments", + "type": "object" + }, + "command": { + "title": "Command id", + "type": "string", + "default": "" + }, + "disabled": { + "title": "Whether the item is ignored or not", + "type": "boolean", + "default": false + }, + "icon": { + "title": "Item icon id", + "description": "If defined, it will override the command icon", + "type": "string" + }, + "label": { + "title": "Item label", + "description": "If defined, it will override the command label", + "type": "string" + }, + "caption": { + "title": "Item caption", + "description": "If defined, it will override the command caption", + "type": "string" + }, + "type": { + "title": "Item type", + "type": "string", + "enum": ["command", "spacer"] + }, + "rank": { + "title": "Item rank", + "type": "number", + "minimum": 0, + "default": 50 + } + }, + "required": ["name"], + "additionalProperties": false, + "type": "object" + } + } +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/hub-extension/menu.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/hub-extension/menu.json new file mode 100644 index 0000000..4e4620e --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/hub-extension/menu.json @@ -0,0 +1,32 @@ +{ + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-file", + "items": [ + { + "type": "separator", + "rank": 100 + }, + { + "command": "hub:control-panel", + "rank": 100 + }, + { + "command": "hub:logout", + "rank": 100 + }, + { + "type": "separator", + "rank": 100 + } + ] + } + ] + }, + "title": "JupyterHub", + "description": "JupyterHub settings.", + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/hub-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/hub-extension/package.json.orig new file mode 100644 index 0000000..5479ae8 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/hub-extension/package.json.orig @@ -0,0 +1,55 @@ +{ + "name": "@jupyterlab/hub-extension", + "version": "4.0.8", + "description": "JupyterLab integration for JupyterHub", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}", + "schema/*.json", + "style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "watch": "tsc -w --listEmittedFiles" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/apputils": "^4.1.8", + "@jupyterlab/coreutils": "^6.0.8", + "@jupyterlab/services": "^7.0.8", + "@jupyterlab/translation": "^4.0.8" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/imageviewer-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/imageviewer-extension/package.json.orig new file mode 100644 index 0000000..b166d92 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/imageviewer-extension/package.json.orig @@ -0,0 +1,60 @@ +{ + "name": "@jupyterlab/imageviewer-extension", + "version": "4.0.8", + "description": "JupyterLab - Image Widget Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "schema/*.json", + "style/**/*.css", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/apputils": "^4.1.8", + "@jupyterlab/docregistry": "^4.0.8", + "@jupyterlab/imageviewer": "^4.0.8", + "@jupyterlab/translation": "^4.0.8" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typedoc": "~0.24.7", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/imageviewer-extension/plugin.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/imageviewer-extension/plugin.json new file mode 100644 index 0000000..bb4da91 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/imageviewer-extension/plugin.json @@ -0,0 +1,49 @@ +{ + "title": "Image Viewer", + "description": "Image viewer settings.", + "jupyter.lab.shortcuts": [ + { + "command": "imageviewer:flip-horizontal", + "keys": ["H"], + "selector": ".jp-ImageViewer" + }, + { + "command": "imageviewer:flip-vertical", + "keys": ["V"], + "selector": ".jp-ImageViewer" + }, + { + "command": "imageviewer:invert-colors", + "keys": ["I"], + "selector": ".jp-ImageViewer" + }, + { + "command": "imageviewer:reset-image", + "keys": ["0"], + "selector": ".jp-ImageViewer" + }, + { + "command": "imageviewer:rotate-clockwise", + "keys": ["]"], + "selector": ".jp-ImageViewer" + }, + { + "command": "imageviewer:rotate-counterclockwise", + "keys": ["["], + "selector": ".jp-ImageViewer" + }, + { + "command": "imageviewer:zoom-in", + "keys": ["="], + "selector": ".jp-ImageViewer" + }, + { + "command": "imageviewer:zoom-out", + "keys": ["-"], + "selector": ".jp-ImageViewer" + } + ], + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/consoles.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/consoles.json new file mode 100644 index 0000000..006fbd5 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/consoles.json @@ -0,0 +1,16 @@ +{ + "title": "Inspector Notebook", + "description": "Inspector Notebook settings.", + "jupyter.lab.menus": { + "context": [ + { + "command": "inspector:open", + "selector": ".jp-CodeConsole-promptCell", + "rank": 5 + } + ] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/inspector.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/inspector.json new file mode 100644 index 0000000..f79a60d --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/inspector.json @@ -0,0 +1,40 @@ +{ + "title": "Inspector", + "description": "Inspector settings.", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-help", + "items": [ + { + "type": "separator", + "rank": 0.1 + }, + { + "command": "inspector:open", + "rank": 0.1 + }, + { + "type": "separator", + "rank": 0.1 + } + ] + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "inspector:open", + "keys": ["Accel I"], + "selector": "body" + }, + { + "command": "inspector:close", + "keys": ["Accel I"], + "selector": "body[data-jp-inspector='open']" + } + ], + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/notebooks.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/notebooks.json new file mode 100644 index 0000000..75b3747 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/notebooks.json @@ -0,0 +1,16 @@ +{ + "title": "Inspector Notebook", + "description": "Inspector Notebook settings.", + "jupyter.lab.menus": { + "context": [ + { + "command": "inspector:open", + "selector": ".jp-Notebook", + "rank": 50 + } + ] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/package.json.orig new file mode 100644 index 0000000..479357c --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/inspector-extension/package.json.orig @@ -0,0 +1,64 @@ +{ + "name": "@jupyterlab/inspector-extension", + "version": "4.0.8", + "description": "JupyterLab - Code Inspector Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "schema/*.json", + "style/**/*.css", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/apputils": "^4.1.8", + "@jupyterlab/console": "^4.0.8", + "@jupyterlab/inspector": "^4.0.8", + "@jupyterlab/launcher": "^4.0.8", + "@jupyterlab/notebook": "^4.0.8", + "@jupyterlab/translation": "^4.0.8", + "@jupyterlab/ui-components": "^4.0.8", + "@lumino/widgets": "^2.3.0" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typedoc": "~0.24.7", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/launcher-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/launcher-extension/package.json.orig new file mode 100644 index 0000000..39e083c --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/launcher-extension/package.json.orig @@ -0,0 +1,64 @@ +{ + "name": "@jupyterlab/launcher-extension", + "version": "4.0.8", + "description": "JupyterLab - Launcher Page Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "schema/*.json", + "style/*.css", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/apputils": "^4.1.8", + "@jupyterlab/filebrowser": "^4.0.8", + "@jupyterlab/launcher": "^4.0.8", + "@jupyterlab/translation": "^4.0.8", + "@jupyterlab/ui-components": "^4.0.8", + "@lumino/algorithm": "^2.0.1", + "@lumino/coreutils": "^2.1.2", + "@lumino/widgets": "^2.3.0" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typedoc": "~0.24.7", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/launcher-extension/plugin.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/launcher-extension/plugin.json new file mode 100644 index 0000000..748cdb3 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/launcher-extension/plugin.json @@ -0,0 +1,36 @@ +{ + "title": "Launcher", + "description": "Launcher settings.", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-file", + "items": [ + { + "command": "launcher:create", + "rank": 0.99 + } + ] + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "launcher:create", + "keys": ["Accel Shift L"], + "selector": "body" + } + ], + "jupyter.lab.toolbars": { + "FileBrowser": [ + { + "name": "new-launcher", + "command": "launcher:create", + "rank": 1 + } + ] + }, + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/logconsole-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/logconsole-extension/package.json.orig new file mode 100644 index 0000000..259e93f --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/logconsole-extension/package.json.orig @@ -0,0 +1,63 @@ +{ + "name": "@jupyterlab/logconsole-extension", + "version": "4.0.8", + "description": "JupyterLab - Log Console Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}", + "style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}", + "schema/*.json", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "watch": "tsc -w --listEmittedFiles" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/apputils": "^4.1.8", + "@jupyterlab/coreutils": "^6.0.8", + "@jupyterlab/logconsole": "^4.0.8", + "@jupyterlab/rendermime": "^4.0.8", + "@jupyterlab/settingregistry": "^4.0.8", + "@jupyterlab/statusbar": "^4.0.8", + "@jupyterlab/translation": "^4.0.8", + "@jupyterlab/ui-components": "^4.0.8", + "@lumino/coreutils": "^2.1.2", + "@lumino/signaling": "^2.1.2", + "@lumino/widgets": "^2.3.0", + "react": "^18.2.0" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/logconsole-extension/plugin.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/logconsole-extension/plugin.json new file mode 100644 index 0000000..f73c1c7 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/logconsole-extension/plugin.json @@ -0,0 +1,46 @@ +{ + "jupyter.lab.setting-icon": "ui-components:list", + "jupyter.lab.setting-icon-label": "Log Console", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-view", + "items": [ + { + "type": "separator", + "rank": 9.9 + }, + { + "command": "logconsole:open", + "rank": 9.95 + }, + { + "type": "separator", + "rank": 9.99 + } + ] + } + ], + "context": [ + { "command": "logconsole:open", "selector": ".jp-Notebook", "rank": 60 } + ] + }, + "title": "Log Console", + "description": "Log Console settings.", + "properties": { + "maxLogEntries": { + "type": "number", + "title": "Log entry count limit", + "description": "Maximum number of log entries to store in memory", + "default": 1000 + }, + "flash": { + "type": "boolean", + "title": "Status Bar Item flash", + "description": "Whether to flash on new log message or not", + "default": true + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/lsp-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/lsp-extension/package.json.orig new file mode 100644 index 0000000..c916ae1 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/lsp-extension/package.json.orig @@ -0,0 +1,63 @@ +{ + "name": "@jupyterlab/lsp-extension", + "version": "4.0.8", + "description": "", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}", + "schema/*.json", + "style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "build:all": "npm run build", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/lsp": "^4.0.8", + "@jupyterlab/running": "^4.0.8", + "@jupyterlab/settingregistry": "^4.0.8", + "@jupyterlab/translation": "^4.0.8", + "@jupyterlab/ui-components": "^4.0.8", + "@lumino/coreutils": "^2.1.2", + "@lumino/polling": "^2.1.2", + "@lumino/signaling": "^2.1.2", + "@rjsf/utils": "^5.1.0", + "react": "^18.2.0" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/lsp-extension/plugin.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/lsp-extension/plugin.json new file mode 100644 index 0000000..b6c2282 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/lsp-extension/plugin.json @@ -0,0 +1,69 @@ +{ + "jupyter.lab.setting-icon": "ui-components:code-check", + "jupyter.lab.setting-icon-label": "Language integration", + "jupyter.lab.transform": true, + "title": "Language Servers (Experimental)", + "description": "Language Server Protocol settings.", + "type": "object", + "definitions": { + "languageServer": { + "type": "object", + "default": { + "configuration": {}, + "rank": 50 + }, + "properties": { + "configuration": { + "title": "Language Server Configurations", + "description": "Configuration to be sent to language server over LSP when initialized: see the specific language server's documentation for more", + "type": "object", + "default": {}, + "patternProperties": { + ".*": { + "type": ["number", "string", "boolean", "object", "array"] + } + }, + "additionalProperties": true + }, + "rank": { + "title": "Rank of the server", + "description": "When multiple servers match specific document/language, the server with the highest rank will be used", + "type": "number", + "default": 50, + "minimum": 1 + } + } + } + }, + "properties": { + "activate": { + "title": "Activate", + "description": "Enable or disable the language server services.", + "enum": ["off", "on"], + "default": "off" + }, + "languageServers": { + "title": "Language Server", + "description": "Language-server specific configuration, keyed by implementation", + "type": "object", + "default": {}, + "patternProperties": { + ".*": { + "$ref": "#/definitions/languageServer" + } + } + }, + "setTrace": { + "title": "Ask servers to send trace notifications", + "enum": ["off", "messages", "verbose"], + "default": "off", + "description": "Whether to ask server to send logs with execution trace (for debugging). Accepted values are: \"off\", \"messages\", \"verbose\". Servers are allowed to ignore this request." + }, + "logAllCommunication": { + "title": "Log communication", + "type": "boolean", + "default": false, + "description": "Enable or disable the logging feature of the language servers." + } + } +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/mainmenu-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/mainmenu-extension/package.json.orig new file mode 100644 index 0000000..e78fb4d --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/mainmenu-extension/package.json.orig @@ -0,0 +1,67 @@ +{ + "name": "@jupyterlab/mainmenu-extension", + "version": "4.0.8", + "description": "JupyterLab - Main Menu Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "schema/*.json", + "style/**/*.css", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/apputils": "^4.1.8", + "@jupyterlab/coreutils": "^6.0.8", + "@jupyterlab/mainmenu": "^4.0.8", + "@jupyterlab/services": "^7.0.8", + "@jupyterlab/settingregistry": "^4.0.8", + "@jupyterlab/translation": "^4.0.8", + "@jupyterlab/ui-components": "^4.0.8", + "@lumino/algorithm": "^2.0.1", + "@lumino/coreutils": "^2.1.2", + "@lumino/disposable": "^2.1.2", + "@lumino/widgets": "^2.3.0" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typedoc": "~0.24.7", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/mainmenu-extension/plugin.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/mainmenu-extension/plugin.json new file mode 100644 index 0000000..4b33542 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/mainmenu-extension/plugin.json @@ -0,0 +1,411 @@ +{ + "title": "Main Menu", + "description": "Main JupyterLab menu settings.", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-file", + "label": "File", + "items": [ + { + "type": "submenu", + "submenu": { + "id": "jp-mainmenu-file-new", + "label": "New", + "items": [] + }, + "rank": 0 + }, + { + "type": "separator", + "rank": 2 + }, + { + "command": "filemenu:create-console", + "rank": 2.1 + }, + { + "command": "filemenu:close-and-cleanup", + "rank": 3.1 + }, + { + "type": "separator", + "rank": 99 + }, + { + "command": "filemenu:logout", + "rank": 99 + }, + { + "command": "filemenu:shutdown", + "rank": 99 + } + ], + "rank": 1 + }, + { + "id": "jp-mainmenu-edit", + "label": "Edit", + "items": [ + { + "command": "editmenu:undo", + "rank": 0 + }, + { + "command": "editmenu:redo", + "rank": 0 + }, + { + "type": "separator", + "rank": 10 + }, + { + "command": "editmenu:clear-current", + "rank": 10 + }, + { + "command": "editmenu:clear-all", + "rank": 10 + }, + { + "type": "separator", + "rank": 200 + }, + { + "command": "editmenu:go-to-line", + "rank": 200 + } + ], + "rank": 2 + }, + { + "id": "jp-mainmenu-view", + "label": "View", + "items": [ + { + "type": "separator", + "rank": 10 + }, + { + "command": "viewmenu:line-numbering", + "rank": 10 + }, + { + "command": "viewmenu:match-brackets", + "rank": 10 + }, + { + "command": "viewmenu:word-wrap", + "rank": 10 + } + ], + "rank": 3 + }, + { + "id": "jp-mainmenu-run", + "label": "Run", + "items": [ + { + "command": "runmenu:run", + "rank": 0 + }, + { + "type": "separator" + }, + { + "command": "runmenu:run-all", + "rank": 999 + }, + { + "command": "runmenu:restart-and-run-all", + "rank": 999 + } + ], + "rank": 4 + }, + { + "id": "jp-mainmenu-kernel", + "label": "Kernel", + "items": [ + { + "command": "kernelmenu:interrupt", + "rank": 0 + }, + { + "type": "separator", + "rank": 1 + }, + { + "command": "kernelmenu:restart", + "rank": 1 + }, + { + "command": "kernelmenu:restart-and-clear", + "rank": 1 + }, + { + "command": "runmenu:restart-and-run-all", + "rank": 1.1 + }, + { + "type": "separator", + "rank": 1.5 + }, + { + "command": "kernelmenu:reconnect-to-kernel", + "rank": 1.5 + }, + { + "type": "separator", + "rank": 2 + }, + { + "command": "kernelmenu:shutdown", + "rank": 2 + }, + { + "command": "kernelmenu:shutdownAll", + "rank": 2 + }, + { + "type": "separator", + "rank": 3 + }, + { + "command": "kernelmenu:change", + "rank": 3 + } + ], + "rank": 5 + }, + { + "id": "jp-mainmenu-tabs", + "label": "Tabs", + "items": [ + { + "command": "application:activate-next-tab", + "rank": 0 + }, + { + "command": "application:activate-previous-tab", + "rank": 0 + }, + { + "command": "application:activate-next-tab-bar", + "rank": 0 + }, + { + "command": "application:activate-previous-tab-bar", + "rank": 0 + }, + { + "command": "tabsmenu:activate-previously-used-tab", + "rank": 0 + } + ], + "rank": 500 + }, + { + "id": "jp-mainmenu-settings", + "label": "Settings", + "items": [ + { + "command": "settingeditor:open", + "rank": 1000 + } + ], + "rank": 999 + }, + { + "id": "jp-mainmenu-help", + "label": "Help", + "items": [], + "rank": 1000 + } + ], + "context": [ + { + "command": "filemenu:create-console", + "selector": "[data-type=\"document-title\"].jp-mod-current", + "rank": 10 + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "editmenu:clear-all", + "keys": [""], + "selector": "[data-jp-undoer]" + }, + { + "command": "editmenu:clear-current", + "keys": [""], + "selector": "[data-jp-undoer]" + }, + { + "command": "editmenu:find", + "keys": [""], + "selector": "[data-jp-undoer]" + }, + { + "command": "editmenu:find-and-replace", + "keys": [""], + "selector": "[data-jp-undoer]" + }, + { + "command": "editmenu:redo", + "keys": ["Accel Shift Z"], + "selector": "[data-jp-undoer]" + }, + { + "command": "editmenu:undo", + "keys": ["Accel Z"], + "selector": "[data-jp-undoer]" + }, + { + "command": "filemenu:close-and-cleanup", + "keys": ["Ctrl Shift Q"], + "selector": ".jp-Activity" + }, + { + "command": "kernelmenu:interrupt", + "keys": ["I", "I"], + "selector": "[data-jp-kernel-user]:focus" + }, + { + "command": "kernelmenu:restart", + "keys": ["0", "0"], + "selector": "[data-jp-kernel-user]:focus" + }, + { + "command": "kernelmenu:restart-and-clear", + "keys": [""], + "selector": "[data-jp-kernel-user]:focus" + }, + { + "command": "kernelmenu:shutdown", + "keys": [""], + "selector": "[data-jp-kernel-user]:focus" + }, + { + "command": "runmenu:restart-and-run-all", + "keys": [""], + "selector": "[data-jp-code-runner]" + }, + { + "command": "runmenu:run", + "keys": ["Shift Enter"], + "selector": "[data-jp-code-runner]" + }, + { + "command": "runmenu:run-all", + "keys": [""], + "selector": "[data-jp-code-runner]" + }, + { + "command": "tabsmenu:activate-previously-used-tab", + "keys": ["Accel Shift '"], + "selector": "body" + } + ], + "jupyter.lab.transform": true, + "properties": { + "menus": { + "title": "The application menu description.", + "description": "Note: To disable a menu or a menu item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable\nthe \"Tabs\" menu and \"Restart Kernel and Run up to Selected Cell\"\nitem:\n{\n \"menus\": [\n {\n \"id\": \"jp-mainmenu-tabs\",\n \"disabled\": true\n },\n {\n \"id\": \"jp-mainmenu-kernel\",\n \"items\": [\n {\n \"command\": \"notebook:restart-and-run-to-selected\",\n \"disabled\": true\n }\n ]\n }\n ]\n}\n\nMenu description:", + "items": { + "$ref": "#/definitions/menu" + }, + "type": "array", + "default": [] + } + }, + "additionalProperties": false, + "definitions": { + "menu": { + "properties": { + "disabled": { + "description": "Whether the menu is disabled or not", + "type": "boolean", + "default": false + }, + "icon": { + "description": "Menu icon id", + "type": "string" + }, + "id": { + "description": "Menu unique id", + "type": "string", + "pattern": "[a-z][a-z0-9\\-_]+" + }, + "items": { + "description": "Menu items", + "type": "array", + "items": { + "$ref": "#/definitions/menuItem" + } + }, + "label": { + "description": "Menu label", + "type": "string" + }, + "mnemonic": { + "description": "Mnemonic index for the label", + "type": "number", + "minimum": -1, + "default": -1 + }, + "rank": { + "description": "Menu rank", + "type": "number", + "minimum": 0 + } + }, + "required": ["id"], + "additionalProperties": false, + "type": "object" + }, + "menuItem": { + "properties": { + "args": { + "description": "Command arguments", + "type": "object" + }, + "command": { + "description": "Command id", + "type": "string" + }, + "disabled": { + "description": "Whether the item is disabled or not", + "type": "boolean", + "default": false + }, + "type": { + "description": "Item type", + "type": "string", + "enum": ["command", "submenu", "separator"], + "default": "command" + }, + "rank": { + "description": "Item rank", + "type": "number", + "minimum": 0 + }, + "submenu": { + "description": "Submenu definition", + "oneOf": [ + { + "$ref": "#/definitions/menu" + }, + { + "type": "null" + } + ] + } + }, + "additionalProperties": false, + "type": "object" + } + }, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/markdownviewer-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/markdownviewer-extension/package.json.orig new file mode 100644 index 0000000..af2d305 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/markdownviewer-extension/package.json.orig @@ -0,0 +1,63 @@ +{ + "name": "@jupyterlab/markdownviewer-extension", + "version": "4.0.8", + "description": "JupyterLab - Markdown Renderer Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "schema/*.json", + "style/**/*.css", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/apputils": "^4.1.8", + "@jupyterlab/coreutils": "^6.0.8", + "@jupyterlab/markdownviewer": "^4.0.8", + "@jupyterlab/rendermime": "^4.0.8", + "@jupyterlab/settingregistry": "^4.0.8", + "@jupyterlab/toc": "^6.0.8", + "@jupyterlab/translation": "^4.0.8" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typedoc": "~0.24.7", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/markdownviewer-extension/plugin.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/markdownviewer-extension/plugin.json new file mode 100644 index 0000000..2239d73 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/markdownviewer-extension/plugin.json @@ -0,0 +1,76 @@ +{ + "jupyter.lab.setting-icon": "ui-components:markdown", + "jupyter.lab.setting-icon-label": "Markdown Viewer", + "title": "Markdown Viewer", + "description": "Markdown viewer settings.", + "jupyter.lab.menus": { + "context": [ + { + "command": "markdownviewer:edit", + "selector": ".jp-RenderedMarkdown" + } + ] + }, + "definitions": { + "fontFamily": { + "type": ["string", "null"] + }, + "fontSize": { + "type": ["integer", "null"], + "minimum": 1, + "maximum": 100 + }, + "lineHeight": { + "type": ["number", "null"] + }, + "lineWidth": { + "type": ["number", "null"] + }, + "hideFrontMatter": { + "type": "boolean" + }, + "renderTimeout": { + "type": "number" + } + }, + "properties": { + "fontFamily": { + "title": "Font Family", + "description": "The font family used to render markdown.\nIf `null`, value from current theme is used.", + "$ref": "#/definitions/fontFamily", + "default": null + }, + "fontSize": { + "title": "Font Size", + "description": "The size in pixel of the font used to render markdown.\nIf `null`, value from current theme is used.", + "$ref": "#/definitions/fontSize", + "default": null + }, + "lineHeight": { + "title": "Line Height", + "description": "The line height used to render markdown.\nIf `null`, value from current theme is used.", + "$ref": "#/definitions/lineHeight", + "default": null + }, + "lineWidth": { + "title": "Line Width", + "description": "The text line width expressed in CSS ch units.\nIf `null`, lines fit the viewport width.", + "$ref": "#/definitions/lineWidth", + "default": null + }, + "hideFrontMatter": { + "title": "Hide Front Matter", + "description": "Whether to hide YAML front matter.\nThe YAML front matter must be placed at the top of the document,\nstarted by a line of three dashes (---) and ended by a line of\nthree dashes (---) or three points (...).", + "$ref": "#/definitions/hideFrontMatter", + "default": true + }, + "renderTimeout": { + "title": "Render Timeout", + "description": "The render timeout in milliseconds.", + "$ref": "#/definitions/renderTimeout", + "default": 1000 + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/mathjax-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/mathjax-extension/package.json.orig new file mode 100644 index 0000000..49c8fd5 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/mathjax-extension/package.json.orig @@ -0,0 +1,64 @@ +{ + "name": "@jupyterlab/mathjax-extension", + "version": "4.0.8", + "description": "A JupyterLab extension providing MathJax Typesetting", + "keywords": [ + "jupyter", + "jupyterlab", + "mathjax" + ], + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": { + "name": "Project Jupyter", + "email": "jupyter@googlegroups.com" + }, + "sideEffects": [ + "style/**/*" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}", + "style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}", + "schema/*.json", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "eslint": "eslint . --ext .ts,.tsx --fix", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/rendermime": "^4.0.8", + "@lumino/coreutils": "^2.1.2", + "mathjax-full": "^3.2.2" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typedoc": "~0.24.7", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/mathjax-extension/plugin.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/mathjax-extension/plugin.json new file mode 100644 index 0000000..e3218a1 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/mathjax-extension/plugin.json @@ -0,0 +1,38 @@ +{ + "title": "MathJax Plugin", + "description": "MathJax math renderer for JupyterLab", + "jupyter.lab.menus": { + "context": [ + { + "type": "separator", + "selector": ".MathJax", + "rank": 12 + }, + { + "command": "mathjax:clipboard", + "selector": ".MathJax", + "rank": 13 + }, + { + "command": "mathjax:scale", + "selector": ".MathJax", + "rank": 13 + }, + { + "command": "mathjax:scale", + "selector": ".MathJax", + "rank": 13, + "args": { + "scale": 1.5 + } + }, + { + "type": "separator", + "selector": ".MathJax", + "rank": 13 + } + ] + }, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/metadataform-extension/metadataforms.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/metadataform-extension/metadataforms.json new file mode 100644 index 0000000..f4b12b1 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/metadataform-extension/metadataforms.json @@ -0,0 +1,100 @@ +{ + "type": "object", + "title": "Metadata Form", + "description": "Settings of the metadata form extension.", + "jupyter.lab.metadataforms": [], + "jupyter.lab.transform": true, + "additionalProperties": false, + "properties": { + "metadataforms": { + "items": { + "$ref": "#/definitions/metadataForm" + }, + "type": "array", + "default": [] + } + }, + "definitions": { + "metadataForm": { + "type": "object", + "properties": { + "id": { + "type": "string", + "description": "The section ID" + }, + "metadataSchema": { + "type": "object", + "items": { + "$ref": "#/definitions/metadataSchema" + } + }, + "uiSchema": { + "type": "object" + }, + "metadataOptions": { + "type": "object", + "items": { + "$ref": "#/definitions/metadataOptions" + } + }, + "label": { + "type": "string", + "description": "The section label" + }, + "rank": { + "type": "integer", + "description": "The rank of the section in the right panel" + }, + "showModified": { + "type": "boolean", + "description": "Whether to show that values have been modified from defaults" + } + }, + "required": ["id", "metadataSchema"] + }, + "metadataSchema": { + "properties": { + "properties": { + "type": "object", + "description": "The property set up by extension", + "properties": { + "title": { + "type": "string" + }, + "description": { + "type": "string" + }, + "type": { + "type": "string" + } + } + } + }, + "type": "object", + "required": ["properties"] + }, + "metadataOptions": { + "properties": { + "customRenderer": { + "type": "string" + }, + "metadataLevel": { + "type": "string", + "enum": ["cell", "notebook"], + "default": "cell" + }, + "cellTypes": { + "type": "array", + "items": { + "type": "string", + "enum": ["code", "markdown", "raw"] + } + }, + "writeDefault": { + "type": "boolean" + } + }, + "type": "object" + } + } +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/metadataform-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/metadataform-extension/package.json.orig new file mode 100644 index 0000000..b7d1f88 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/metadataform-extension/package.json.orig @@ -0,0 +1,62 @@ +{ + "name": "@jupyterlab/metadataform-extension", + "version": "4.0.8", + "description": "A helper to build form for metadata", + "keywords": [ + "jupyter", + "jupyterlab", + "jupyterlab-extension" + ], + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}", + "schema/*.json", + "style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "watch": "tsc -w --listEmittedFiles" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/metadataform": "^4.0.8", + "@jupyterlab/notebook": "^4.0.8", + "@jupyterlab/settingregistry": "^4.0.8", + "@jupyterlab/translation": "^4.0.8", + "@jupyterlab/ui-components": "^4.0.8", + "@lumino/coreutils": "^2.1.2" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/completer.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/completer.json new file mode 100644 index 0000000..eeff155 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/completer.json @@ -0,0 +1,14 @@ +{ + "title": "Notebook Completer", + "description": "Notebook completer settings.", + "jupyter.lab.shortcuts": [ + { + "command": "completer:invoke-notebook", + "keys": ["Tab"], + "selector": ".jp-Notebook.jp-mod-editMode .jp-mod-completer-enabled" + } + ], + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/export.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/export.json new file mode 100644 index 0000000..156f68d --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/export.json @@ -0,0 +1,32 @@ +{ + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-file", + "items": [ + { + "type": "separator", + "rank": 10 + }, + { + "type": "submenu", + "rank": 10, + "submenu": { + "id": "jp-mainmenu-file-notebookexport", + "label": "Save and Export Notebook As…" + } + }, + { + "type": "separator", + "rank": 10 + } + ] + } + ] + }, + "title": "Notebook Export", + "description": "Notebook Export settings.", + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/package.json.orig new file mode 100644 index 0000000..fca2cb7 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/package.json.orig @@ -0,0 +1,93 @@ +{ + "name": "@jupyterlab/notebook-extension", + "version": "4.0.8", + "description": "JupyterLab - Notebook Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/**/*.d.ts", + "lib/**/*.js.map", + "lib/**/*.js", + "schema/*.json", + "style/*.css", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyter/ydoc": "^1.0.2", + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/apputils": "^4.1.8", + "@jupyterlab/cells": "^4.0.8", + "@jupyterlab/codeeditor": "^4.0.8", + "@jupyterlab/codemirror": "^4.0.8", + "@jupyterlab/completer": "^4.0.8", + "@jupyterlab/coreutils": "^6.0.8", + "@jupyterlab/docmanager": "^4.0.8", + "@jupyterlab/docmanager-extension": "^4.0.8", + "@jupyterlab/docregistry": "^4.0.8", + "@jupyterlab/documentsearch": "^4.0.8", + "@jupyterlab/filebrowser": "^4.0.8", + "@jupyterlab/launcher": "^4.0.8", + "@jupyterlab/logconsole": "^4.0.8", + "@jupyterlab/lsp": "^4.0.8", + "@jupyterlab/mainmenu": "^4.0.8", + "@jupyterlab/metadataform": "^4.0.8", + "@jupyterlab/nbformat": "^4.0.8", + "@jupyterlab/notebook": "^4.0.8", + "@jupyterlab/observables": "^5.0.8", + "@jupyterlab/property-inspector": "^4.0.8", + "@jupyterlab/rendermime": "^4.0.8", + "@jupyterlab/services": "^7.0.8", + "@jupyterlab/settingregistry": "^4.0.8", + "@jupyterlab/statedb": "^4.0.8", + "@jupyterlab/statusbar": "^4.0.8", + "@jupyterlab/toc": "^6.0.8", + "@jupyterlab/translation": "^4.0.8", + "@jupyterlab/ui-components": "^4.0.8", + "@lumino/algorithm": "^2.0.1", + "@lumino/commands": "^2.1.3", + "@lumino/coreutils": "^2.1.2", + "@lumino/disposable": "^2.1.2", + "@lumino/messaging": "^2.0.1", + "@lumino/polling": "^2.1.2", + "@lumino/widgets": "^2.3.0", + "@rjsf/utils": "^5.1.0", + "react": "^18.2.0" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typedoc": "~0.24.7", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/panel.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/panel.json new file mode 100644 index 0000000..88c5800 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/panel.json @@ -0,0 +1,105 @@ +{ + "title": "Notebook Panel", + "description": "Notebook Panel settings.", + "jupyter.lab.toolbars": { + "Notebook": [ + { "name": "save", "rank": 10 }, + { + "name": "insert", + "command": "notebook:insert-cell-below", + "icon": "ui-components:add", + "rank": 20 + }, + { "name": "cut", "command": "notebook:cut-cell", "rank": 21 }, + { "name": "copy", "command": "notebook:copy-cell", "rank": 22 }, + { "name": "paste", "command": "notebook:paste-cell-below", "rank": 23 }, + { + "name": "run", + "command": "notebook:run-cell-and-select-next", + "rank": 30 + }, + { + "name": "interrupt", + "command": "notebook:interrupt-kernel", + "rank": 31 + }, + { "name": "restart", "command": "notebook:restart-kernel", "rank": 32 }, + { + "name": "restart-and-run", + "command": "notebook:restart-run-all", + "rank": 33 + }, + { "name": "cellType", "rank": 40 }, + { "name": "spacer", "type": "spacer", "rank": 100 }, + { "name": "kernelName", "rank": 1000 }, + { "name": "executionProgress", "rank": 1002 } + ] + }, + "jupyter.lab.transform": true, + "properties": { + "toolbar": { + "title": "Notebook panel toolbar items", + "description": "Note: To disable a toolbar item,\ncopy it to User Preferences and add the\n\"disabled\" key. The following example will disable the Interrupt button item:\n{\n \"toolbar\": [\n {\n \"name\": \"interrupt\",\n \"disabled\": true\n }\n ]\n}\n\nToolbar description:", + "items": { + "$ref": "#/definitions/toolbarItem" + }, + "type": "array", + "default": [] + } + }, + "additionalProperties": false, + "type": "object", + "definitions": { + "toolbarItem": { + "properties": { + "name": { + "title": "Unique name", + "type": "string" + }, + "args": { + "title": "Command arguments", + "type": "object" + }, + "command": { + "title": "Command id", + "type": "string", + "default": "" + }, + "disabled": { + "title": "Whether the item is ignored or not", + "type": "boolean", + "default": false + }, + "icon": { + "title": "Item icon id", + "description": "If defined, it will override the command icon", + "type": "string" + }, + "label": { + "title": "Item label", + "description": "If defined, it will override the command label", + "type": "string" + }, + "caption": { + "title": "Item caption", + "description": "If defined, it will override the command caption", + "type": "string" + }, + "type": { + "title": "Item type", + "type": "string", + "enum": ["command", "spacer"] + }, + "rank": { + "title": "Item rank", + "type": "number", + "minimum": 0, + "default": 50 + } + }, + "required": ["name"], + "additionalProperties": false, + "type": "object" + } + } +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/tools.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/tools.json new file mode 100644 index 0000000..1b35ff6 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/tools.json @@ -0,0 +1,143 @@ +{ + "type": "object", + "title": "Common tools", + "description": "Setting for the common tools", + "jupyter.lab.metadataforms": [ + { + "id": "commonToolsSection", + "label": "Common Tools", + "metadataSchema": { + "type": "object", + "properties": { + "_CELL-TOOL": { + "title": "Cell tool", + "type": "null" + }, + "/editable": { + "title": "Editable", + "type": "boolean", + "default": true, + "oneOf": [ + { + "const": true, + "title": "Editable" + }, + { + "const": false, + "title": "Read-Only" + } + ] + }, + "/slideshow/slide_type": { + "title": "Slide Type", + "type": "string", + "default": "", + "oneOf": [ + { + "const": "", + "title": "-" + }, + { + "const": "slide", + "title": "Slide" + }, + { + "const": "subslide", + "title": "Sub-Slide" + }, + { + "const": "fragment", + "title": "Fragment" + }, + { + "const": "skip", + "title": "Skip" + }, + { + "const": "notes", + "title": "Notes" + } + ] + }, + "/raw_mimetype": { + "title": "Raw NBConvert Format", + "type": "string", + "default": "", + "oneOf": [ + { + "const": "", + "title": "-" + }, + { + "const": "pdf", + "title": "PDF" + }, + { + "const": "slides", + "title": "Slides" + }, + { + "const": "script", + "title": "Script" + }, + { + "const": "notebook", + "title": "Notebook" + }, + { + "const": "custom", + "title": "Custom" + } + ] + }, + "/toc/base_numbering": { + "title": "Table of content - Base number", + "type": "integer" + } + } + }, + "uiSchema": { + "/editable": { + "ui:widget": "select" + } + }, + "metadataOptions": { + "_CELL-TOOL": { + "customRenderer": "@jupyterlab/notebook-extension:active-cell-tool.renderer" + }, + "/raw_mimetype": { + "cellTypes": ["raw"] + }, + "/toc/base_numbering": { + "metadataLevel": "notebook" + } + } + }, + { + "id": "advancedToolsSection", + "label": "Advanced Tools", + "metadataSchema": { + "type": "object", + "properties": { + "_CELL-METADATA": { + "title": "Cell metadata", + "type": "null" + }, + "_NOTEBOOK-METADATA": { + "title": "Notebook metadata", + "type": "null" + } + } + }, + "metadataOptions": { + "_CELL-METADATA": { + "customRenderer": "@jupyterlab/notebook-extension:metadata-editor.cell-metadata" + }, + "_NOTEBOOK-METADATA": { + "customRenderer": "@jupyterlab/notebook-extension:metadata-editor.notebook-metadata" + } + } + } + ], + "additionalProperties": false +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/tracker.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/tracker.json new file mode 100644 index 0000000..c2a5891 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/notebook-extension/tracker.json @@ -0,0 +1,808 @@ +{ + "jupyter.lab.setting-icon": "ui-components:notebook", + "jupyter.lab.setting-icon-label": "Notebook", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-file", + "items": [ + { + "type": "submenu", + "submenu": { + "id": "jp-mainmenu-file-new", + "items": [ + { + "command": "notebook:create-new", + "rank": 10 + } + ] + } + } + ] + }, + { + "id": "jp-mainmenu-edit", + "items": [ + { + "type": "separator", + "rank": 4 + }, + { + "command": "notebook:undo-cell-action", + "rank": 4 + }, + { + "command": "notebook:redo-cell-action", + "rank": 4 + }, + { + "type": "separator", + "rank": 5 + }, + { + "command": "notebook:cut-cell", + "rank": 5 + }, + { + "command": "notebook:copy-cell", + "rank": 5 + }, + { + "command": "notebook:paste-cell-below", + "rank": 5 + }, + { + "command": "notebook:paste-cell-above", + "rank": 5 + }, + { + "command": "notebook:paste-and-replace-cell", + "rank": 5 + }, + { + "type": "separator", + "rank": 6 + }, + { + "command": "notebook:delete-cell", + "rank": 6 + }, + { + "type": "separator", + "rank": 7 + }, + { + "command": "notebook:select-all", + "rank": 7 + }, + { + "command": "notebook:deselect-all", + "rank": 7 + }, + { + "type": "separator", + "rank": 8 + }, + { + "command": "notebook:move-cell-up", + "rank": 8 + }, + { + "command": "notebook:move-cell-down", + "rank": 8 + }, + { + "type": "separator", + "rank": 9 + }, + { + "command": "notebook:split-cell-at-cursor", + "rank": 9 + }, + { + "command": "notebook:merge-cells", + "rank": 9 + }, + { + "command": "notebook:merge-cell-above", + "rank": 9 + }, + { + "command": "notebook:merge-cell-below", + "rank": 9 + }, + { + "type": "separator", + "rank": 9 + } + ] + }, + { + "id": "jp-mainmenu-view", + "items": [ + { + "type": "separator", + "rank": 10 + }, + { + "command": "notebook:hide-cell-code", + "rank": 10 + }, + { + "command": "notebook:hide-cell-outputs", + "rank": 10 + }, + { + "command": "notebook:hide-all-cell-code", + "rank": 10 + }, + { + "command": "notebook:hide-all-cell-outputs", + "rank": 10 + }, + { + "type": "separator", + "rank": 10 + }, + { + "command": "notebook:show-cell-code", + "rank": 11 + }, + { + "command": "notebook:show-cell-outputs", + "rank": 11 + }, + { + "command": "notebook:show-all-cell-code", + "rank": 11 + }, + { + "command": "notebook:show-all-cell-outputs", + "rank": 11 + }, + { + "type": "separator", + "rank": 11 + }, + { + "command": "notebook:toggle-render-side-by-side-current", + "rank": 12 + }, + { + "type": "separator", + "rank": 12 + } + ] + }, + { + "id": "jp-mainmenu-run", + "items": [ + { + "type": "separator", + "rank": 10 + }, + { + "command": "notebook:run-cell-and-insert-below", + "rank": 10 + }, + { + "command": "notebook:run-cell", + "rank": 10 + }, + { + "command": "notebook:run-in-console", + "rank": 10 + }, + { + "type": "separator", + "rank": 11 + }, + { + "command": "notebook:run-all-above", + "rank": 11 + }, + { + "command": "notebook:run-all-below", + "rank": 11 + }, + { + "type": "separator", + "rank": 12 + }, + { + "command": "notebook:render-all-markdown", + "rank": 12 + }, + { + "type": "separator", + "rank": 12 + } + ] + }, + { + "id": "jp-mainmenu-kernel", + "items": [ + { + "command": "notebook:restart-and-run-to-selected", + "rank": 1 + } + ] + } + ], + "context": [ + { + "type": "separator", + "selector": ".jp-Notebook .jp-Cell", + "rank": 0 + }, + { + "command": "notebook:cut-cell", + "selector": ".jp-Notebook .jp-Cell", + "rank": 1 + }, + { + "command": "notebook:copy-cell", + "selector": ".jp-Notebook .jp-Cell", + "rank": 2 + }, + { + "command": "notebook:paste-cell-below", + "selector": ".jp-Notebook .jp-Cell", + "rank": 3 + }, + { + "type": "separator", + "selector": ".jp-Notebook .jp-Cell", + "rank": 4 + }, + { + "command": "notebook:delete-cell", + "selector": ".jp-Notebook .jp-Cell", + "rank": 5 + }, + { + "type": "separator", + "selector": ".jp-Notebook .jp-Cell", + "rank": 6 + }, + { + "command": "notebook:split-cell-at-cursor", + "selector": ".jp-Notebook .jp-Cell", + "rank": 7 + }, + { + "command": "notebook:merge-cells", + "selector": ".jp-Notebook .jp-Cell", + "rank": 8 + }, + { + "command": "notebook:merge-cell-above", + "selector": ".jp-Notebook .jp-Cell", + "rank": 8 + }, + { + "command": "notebook:merge-cell-below", + "selector": ".jp-Notebook .jp-Cell", + "rank": 8 + }, + { + "type": "separator", + "selector": ".jp-Notebook .jp-Cell", + "rank": 9 + }, + { + "command": "notebook:create-output-view", + "selector": ".jp-Notebook .jp-CodeCell", + "rank": 10 + }, + { + "type": "separator", + "selector": ".jp-Notebook .jp-CodeCell", + "rank": 11 + }, + { + "command": "notebook:clear-cell-output", + "selector": ".jp-Notebook .jp-CodeCell", + "rank": 12 + }, + { + "command": "notebook:clear-all-cell-outputs", + "selector": ".jp-Notebook", + "rank": 13 + }, + { + "type": "separator", + "selector": ".jp-Notebook", + "rank": 20 + }, + { + "command": "notebook:enable-output-scrolling", + "selector": ".jp-Notebook", + "rank": 21 + }, + { + "command": "notebook:disable-output-scrolling", + "selector": ".jp-Notebook", + "rank": 22 + }, + { + "type": "separator", + "selector": ".jp-Notebook", + "rank": 30 + }, + { + "command": "notebook:undo-cell-action", + "selector": ".jp-Notebook", + "rank": 31 + }, + { + "command": "notebook:redo-cell-action", + "selector": ".jp-Notebook", + "rank": 32 + }, + { + "command": "notebook:restart-kernel", + "selector": ".jp-Notebook", + "rank": 33 + }, + { + "type": "separator", + "selector": ".jp-Notebook", + "rank": 40 + }, + { + "command": "notebook:create-console", + "selector": ".jp-Notebook", + "rank": 41 + }, + { + "command": "notebook:create-new", + "selector": ".jp-DirListing-content", + "rank": 52, + "args": { + "isContextMenu": true + } + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "notebook:change-cell-to-code", + "keys": ["Y"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:change-cell-to-heading-1", + "keys": ["1"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:change-cell-to-heading-2", + "keys": ["2"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:change-cell-to-heading-3", + "keys": ["3"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:change-cell-to-heading-4", + "keys": ["4"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:change-cell-to-heading-5", + "keys": ["5"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:change-cell-to-heading-6", + "keys": ["6"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:change-cell-to-markdown", + "keys": ["M"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:change-cell-to-raw", + "keys": ["R"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:copy-cell", + "keys": ["C"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:cut-cell", + "keys": ["X"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:delete-cell", + "keys": ["D", "D"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:enter-command-mode", + "keys": ["Escape"], + "selector": ".jp-Notebook.jp-mod-editMode" + }, + { + "command": "notebook:enter-command-mode", + "keys": ["Ctrl M"], + "selector": ".jp-Notebook.jp-mod-editMode" + }, + { + "command": "notebook:enter-edit-mode", + "keys": ["Enter"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:extend-marked-cells-above", + "keys": ["Shift ArrowUp"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:extend-marked-cells-above", + "keys": ["Shift K"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:extend-marked-cells-top", + "keys": ["Shift Home"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:extend-marked-cells-below", + "keys": ["Shift ArrowDown"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:extend-marked-cells-bottom", + "keys": ["Shift End"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:extend-marked-cells-below", + "keys": ["Shift J"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:insert-cell-above", + "keys": ["A"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:insert-cell-below", + "keys": ["B"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:merge-cells", + "keys": ["Shift M"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:merge-cell-above", + "keys": ["Ctrl Backspace"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:merge-cell-below", + "keys": ["Ctrl Shift M"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:move-cursor-down", + "keys": ["ArrowDown"], + "selector": "[data-jp-traversable]:focus" + }, + { + "command": "notebook:move-cursor-down", + "keys": ["J"], + "selector": "[data-jp-traversable]:focus" + }, + { + "command": "notebook:move-cursor-up", + "keys": ["ArrowUp"], + "selector": "[data-jp-traversable]:focus" + }, + { + "command": "notebook:move-cursor-up", + "keys": ["K"], + "selector": "[data-jp-traversable]:focus" + }, + { + "command": "notebook:move-cursor-heading-above-or-collapse", + "keys": ["ArrowLeft"], + "selector": ".jp-Notebook:focus.jp-mod-commandMode" + }, + { + "command": "notebook:move-cursor-heading-below-or-expand", + "keys": ["ArrowRight"], + "selector": ".jp-Notebook:focus.jp-mod-commandMode" + }, + { + "command": "notebook:insert-heading-above", + "keys": ["Shift A"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:insert-heading-below", + "keys": ["Shift B"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:collapse-all-headings", + "keys": ["Ctrl Shift ArrowLeft"], + "selector": ".jp-Notebook.jp-mod-commandMode" + }, + { + "command": "notebook:expand-all-headings", + "keys": ["Ctrl Shift ArrowRight"], + "selector": ".jp-Notebook.jp-mod-commandMode" + }, + { + "command": "notebook:paste-cell-below", + "keys": ["V"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:redo-cell-action", + "keys": ["Shift Z"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:run-cell", + "macKeys": ["Ctrl Enter"], + "keys": [], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:run-cell", + "macKeys": ["Ctrl Enter"], + "keys": [], + "selector": ".jp-Notebook.jp-mod-editMode" + }, + { + "command": "notebook:run-cell", + "keys": ["Accel Enter"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:run-cell", + "keys": ["Accel Enter"], + "selector": ".jp-Notebook.jp-mod-editMode" + }, + { + "command": "notebook:run-cell-and-insert-below", + "keys": ["Alt Enter"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:run-cell-and-insert-below", + "keys": ["Alt Enter"], + "selector": ".jp-Notebook.jp-mod-editMode" + }, + { + "command": "notebook:run-in-console", + "keys": [""], + "selector": ".jp-Notebook.jp-mod-editMode" + }, + { + "command": "notebook:run-cell-and-select-next", + "keys": ["Shift Enter"], + "selector": ".jp-Notebook.jp-mod-editMode" + }, + { + "command": "viewmenu:line-numbering", + "keys": ["Shift L"], + "selector": ".jp-Notebook.jp-mod-commandMode" + }, + { + "command": "viewmenu:match-brackets", + "keys": [""], + "selector": ".jp-Notebook.jp-mod-commandMode" + }, + { + "command": "notebook:select-all", + "keys": ["Accel A"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:split-cell-at-cursor", + "keys": ["Ctrl Shift -"], + "selector": ".jp-Notebook.jp-mod-editMode" + }, + { + "command": "notebook:toggle-all-cell-line-numbers", + "keys": ["Shift L"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:undo-cell-action", + "keys": ["Z"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:toggle-render-side-by-side-current", + "keys": ["Shift R"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:move-cell-up", + "keys": ["Ctrl Shift ArrowUp"], + "selector": ".jp-Notebook:focus" + }, + { + "command": "notebook:move-cell-down", + "keys": ["Ctrl Shift ArrowDown"], + "selector": ".jp-Notebook:focus" + } + ], + "title": "Notebook", + "description": "Notebook settings.", + "definitions": { + "kernelStatusConfig": { + "type": "object", + "additionalProperties": false, + "properties": { + "showOnStatusBar": { + "type": "boolean", + "title": "Show kernel status on toolbar or status bar.", + "description": "If `true`, the kernel status progression will be displayed in the status bar otherwise it will be in the toolbar.", + "default": false + }, + "showProgress": { + "type": "boolean", + "title": "Show execution progress.", + "default": true + } + } + } + }, + "properties": { + "codeCellConfig": { + "title": "Code Cell Configuration", + "description": "The configuration for all code cells; it will override the CodeMirror default configuration.", + "type": "object", + "default": { + "lineNumbers": false, + "lineWrap": false + } + }, + "defaultCell": { + "title": "Default cell type", + "description": "The default type (markdown, code, or raw) for new cells", + "type": "string", + "enum": ["code", "markdown", "raw"], + "default": "code" + }, + "autoStartDefaultKernel": { + "title": "Automatically Start Preferred Kernel", + "description": "Whether to automatically start the preferred kernel.", + "type": "boolean", + "default": false + }, + "inputHistoryScope": { + "type": "string", + "default": "global", + "enum": ["global", "session"], + "title": "Input History Scope", + "description": "Whether the line history for standard input (e.g. the ipdb prompt) should kept separately for different kernel sessions (`session`) or combined (`global`)." + }, + "kernelShutdown": { + "title": "Shut down kernel", + "description": "Whether to shut down or not the kernel when closing a notebook.", + "type": "boolean", + "default": false + }, + "markdownCellConfig": { + "title": "Markdown Cell Configuration", + "description": "The configuration for all markdown cells; it will override the CodeMirror default configuration.", + "type": "object", + "default": { + "lineNumbers": false, + "matchBrackets": false + } + }, + "rawCellConfig": { + "title": "Raw Cell Configuration", + "description": "The configuration for all raw cells; it will override the CodeMirror default configuration.", + "type": "object", + "default": { + "lineNumbers": false, + "matchBrackets": false + } + }, + "scrollPastEnd": { + "title": "Scroll past last cell", + "description": "Whether to be able to scroll so the last cell is at the top of the panel", + "type": "boolean", + "default": true + }, + "recordTiming": { + "title": "Recording timing", + "description": "Should timing data be recorded in cell metadata", + "type": "boolean", + "default": false + }, + "overscanCount": { + "title": "Number of cells to render outside de the viewport", + "description": "In 'full' windowing mode, this is the number of cells above and below the viewport.", + "type": "number", + "default": 1, + "minimum": 1 + }, + "maxNumberOutputs": { + "title": "The maximum number of output cells to be rendered in the output area.", + "description": "Defines the maximum number of output cells to be rendered in the output area for cells with many outputs. The output area will have a head and the remaining outputs will be trimmed and not displayed unless the user clicks on the information message. Set to 0 to have the complete display.", + "type": "number", + "default": 50 + }, + "showEditorForReadOnlyMarkdown": { + "title": "Show editor for read-only Markdown cells", + "description": "Should an editor be shown for read-only markdown", + "type": "boolean", + "default": true + }, + "kernelStatus": { + "title": "Kernel status icon configuration", + "description": "Defines the position and components of execution progress indicator.", + "$ref": "#/definitions/kernelStatusConfig", + "default": { + "showOnStatusBar": false, + "showProgress": true + } + }, + "documentWideUndoRedo": { + "title": "Enable undo/redo actions at the notebook document level.", + "description": "Enables the undo/redo actions at the notebook document level; aka undoing within a cell may undo the latest notebook change that happen in another cell. This is deprecated and will be removed in 5.0.0.", + "type": "boolean", + "default": false + }, + "showHiddenCellsButton": { + "type": "boolean", + "title": "Show hidden cells button if collapsed", + "description": "If set to true, a button is shown below collapsed headings, indicating how many cells are hidden beneath the collapsed heading.", + "default": true + }, + "renderingLayout": { + "title": "Rendering Layout", + "description": "Global setting to define the rendering layout in notebooks. 'default' or 'side-by-side' are supported.", + "enum": ["default", "side-by-side"], + "default": "default" + }, + "sideBySideLeftMarginOverride": { + "title": "Side-by-side left margin override", + "description": "Side-by-side left margin override.", + "type": "string", + "default": "10px" + }, + "sideBySideRightMarginOverride": { + "title": "Side-by-side right margin override", + "description": "Side-by-side right margin override.", + "type": "string", + "default": "10px" + }, + "sideBySideOutputRatio": { + "title": "Side-by-side output ratio", + "description": "For the side-by-side rendering, the side-by-side output ratio defines the width of the output vs the input. Set 1 for same size, > 1 for larger output, < 1 for smaller output.", + "type": "number", + "default": 1, + "minimum": 0 + }, + "windowingMode": { + "title": "Windowing mode", + "description": "'defer': Improve loading time - Wait for idle CPU cycles to attach out of viewport cells - 'full': Best performance with side effects - Attach to the DOM only cells in viewport - 'none': Worst performance without side effects - Attach all cells to the viewport", + "enum": ["defer", "full", "none"], + "default": "defer" + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/running-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/running-extension/package.json.orig new file mode 100644 index 0000000..ee4d779 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/running-extension/package.json.orig @@ -0,0 +1,67 @@ +{ + "name": "@jupyterlab/running-extension", + "version": "4.0.8", + "description": "JupyterLab - Running Sessions Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "schema/*.json", + "style/**/*.css", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/coreutils": "^6.0.8", + "@jupyterlab/docregistry": "^4.0.8", + "@jupyterlab/rendermime-interfaces": "^3.8.8", + "@jupyterlab/running": "^4.0.8", + "@jupyterlab/services": "^7.0.8", + "@jupyterlab/translation": "^4.0.8", + "@jupyterlab/ui-components": "^4.0.8", + "@lumino/commands": "^2.1.3", + "@lumino/polling": "^2.1.2", + "@lumino/signaling": "^2.1.2", + "@lumino/widgets": "^2.3.0" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typedoc": "~0.24.7", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/running-extension/plugin.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/running-extension/plugin.json new file mode 100644 index 0000000..3ef0e54 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/running-extension/plugin.json @@ -0,0 +1,64 @@ +{ + "title": "Sessions", + "description": "Sessions Settings", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-view", + "items": [ + { + "command": "running:show-panel", + "rank": 3 + } + ] + } + ], + "context": [ + { + "command": "running:kernel-new-console", + "selector": ".jp-RunningSessions-item.jp-mod-kernel", + "rank": 0 + }, + { + "command": "running:kernel-new-notebook", + "selector": ".jp-RunningSessions-item.jp-mod-kernel", + "rank": 1 + }, + { + "type": "separator", + "selector": ".jp-RunningSessions-item.jp-mod-kernel", + "rank": 2 + }, + { + "type": "submenu", + "selector": ".jp-RunningSessions-item.jp-mod-kernel", + "rank": 3, + "submenu": { + "id": "jp-contextmenu-connected-sessions", + "label": "Connected Sessions…", + "items": [] + } + }, + { + "type": "separator", + "selector": ".jp-RunningSessions-item.jp-mod-kernel", + "rank": 4 + }, + { + "command": "running:kernel-shut-down", + "selector": ".jp-RunningSessions-item.jp-mod-kernel", + "rank": 5 + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "running:show-panel", + "keys": ["Accel Shift B"], + "selector": "body" + } + ], + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/settingeditor-extension/form-ui.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/settingeditor-extension/form-ui.json new file mode 100644 index 0000000..d65e870 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/settingeditor-extension/form-ui.json @@ -0,0 +1,14 @@ +{ + "title": "Settings Editor Form UI", + "description": "Settings editor form ui settings.", + "properties": { + "settingEditorType": { + "title": "Type of editor for the setting.", + "description": "Set the type of editor to use while editing your settings.", + "enum": ["json", "ui"], + "default": "ui" + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/settingeditor-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/settingeditor-extension/package.json.orig new file mode 100644 index 0000000..b88f23b --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/settingeditor-extension/package.json.orig @@ -0,0 +1,65 @@ +{ + "name": "@jupyterlab/settingeditor-extension", + "version": "4.0.8", + "description": "JupyterLab - Setting Editor Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "schema/*.json", + "style/**/*.css", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/apputils": "^4.1.8", + "@jupyterlab/codeeditor": "^4.0.8", + "@jupyterlab/rendermime": "^4.0.8", + "@jupyterlab/settingeditor": "^4.0.8", + "@jupyterlab/settingregistry": "^4.0.8", + "@jupyterlab/statedb": "^4.0.8", + "@jupyterlab/translation": "^4.0.8", + "@jupyterlab/ui-components": "^4.0.8", + "@lumino/disposable": "^2.1.2" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typedoc": "~0.24.7", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/settingeditor-extension/plugin.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/settingeditor-extension/plugin.json new file mode 100644 index 0000000..1bc50cb --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/settingeditor-extension/plugin.json @@ -0,0 +1,21 @@ +{ + "title": "Setting Editor", + "description": "Setting editor settings.", + "jupyter.lab.shortcuts": [ + { + "command": "settingeditor:open", + "args": {}, + "keys": ["Accel ,"], + "selector": "body" + }, + { + "command": "settingeditor:save", + "args": {}, + "keys": ["Accel S"], + "selector": ".jp-SettingEditor" + } + ], + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/shortcuts-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/shortcuts-extension/package.json.orig new file mode 100644 index 0000000..d3ccb2e --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/shortcuts-extension/package.json.orig @@ -0,0 +1,72 @@ +{ + "name": "@jupyterlab/shortcuts-extension", + "version": "4.0.8", + "description": "JupyterLab - Shortcuts Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}", + "style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}", + "style/index.js", + "schema/*.json", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "build:test": "tsc --build tsconfig.test.json", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "test": "jest", + "test:cov": "jest --collect-coverage", + "test:debug": "node --inspect-brk ../../node_modules/.bin/jest --runInBand", + "test:debug:watch": "node --inspect-brk ../../node_modules/.bin/jest --runInBand --watch", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/settingregistry": "^4.0.8", + "@jupyterlab/translation": "^4.0.8", + "@jupyterlab/ui-components": "^4.0.8", + "@lumino/algorithm": "^2.0.1", + "@lumino/commands": "^2.1.3", + "@lumino/coreutils": "^2.1.2", + "@lumino/disposable": "^2.1.2", + "@lumino/domutils": "^2.0.1", + "@lumino/keyboard": "^2.0.1", + "@lumino/widgets": "^2.3.0", + "react": "^18.2.0" + }, + "devDependencies": { + "@jupyterlab/testing": "^4.0.8", + "@types/jest": "^29.2.0", + "rimraf": "~3.0.0", + "typedoc": "~0.24.7", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/shortcuts-extension/shortcuts.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/shortcuts-extension/shortcuts.json new file mode 100644 index 0000000..fff7838 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/shortcuts-extension/shortcuts.json @@ -0,0 +1,44 @@ +{ + "jupyter.lab.setting-icon": "ui-components:keyboard", + "jupyter.lab.setting-icon-label": "Keyboard Shortcuts", + "jupyter.lab.transform": true, + "title": "Keyboard Shortcuts", + "description": "Keyboard shortcut settings.", + "type": "object", + "additionalProperties": false, + "properties": { + "shortcuts": { + "description": "The list of keyboard shortcuts.", + "items": { "$ref": "#/definitions/shortcut" }, + "type": "array", + "default": [] + } + }, + "definitions": { + "shortcut": { + "properties": { + "args": { "type": "object" }, + "command": { "type": "string" }, + "keys": { + "items": { "type": "string" }, + "type": "array" + }, + "winKeys": { + "items": { "type": "string" }, + "type": "array" + }, + "macKeys": { + "items": { "type": "string" }, + "type": "array" + }, + "linuxKeys": { + "items": { "type": "string" }, + "type": "array" + }, + "selector": { "type": "string" } + }, + "required": ["command", "keys", "selector"], + "type": "object" + } + } +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/statusbar-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/statusbar-extension/package.json.orig new file mode 100644 index 0000000..0740b01 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/statusbar-extension/package.json.orig @@ -0,0 +1,61 @@ +{ + "name": "@jupyterlab/statusbar-extension", + "version": "4.0.8", + "description": "JupyterLab - Statusbar Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter, Richa Gadgil, Takahiro Shimokobe, Declan Kelly", + "sideEffects": [ + "style/**/*" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/**/*.d.ts", + "lib/**/*.js.map", + "lib/**/*.js", + "style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}", + "schema/*.json", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/apputils": "^4.1.8", + "@jupyterlab/settingregistry": "^4.0.8", + "@jupyterlab/statusbar": "^4.0.8", + "@jupyterlab/translation": "^4.0.8" + }, + "devDependencies": { + "@types/react": "^18.0.26", + "@types/react-dom": "^18.0.9", + "rimraf": "~3.0.0", + "typedoc": "~0.24.7", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/statusbar-extension/plugin.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/statusbar-extension/plugin.json new file mode 100644 index 0000000..3fb9234 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/statusbar-extension/plugin.json @@ -0,0 +1,37 @@ +{ + "jupyter.lab.setting-icon": "ui-components:settings", + "jupyter.lab.setting-icon-label": "Status Bar", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-view", + "items": [ + { + "type": "submenu", + "submenu": { + "id": "jp-mainmenu-view-appearance", + "items": [ + { + "command": "statusbar:toggle", + "rank": 15 + } + ] + } + } + ] + } + ] + }, + "title": "Status Bar", + "description": "Status Bar settings.", + "properties": { + "visible": { + "type": "boolean", + "title": "Status Bar Visibility", + "description": "Whether to show status bar or not", + "default": true + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/terminal-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/terminal-extension/package.json.orig new file mode 100644 index 0000000..cdb3281 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/terminal-extension/package.json.orig @@ -0,0 +1,67 @@ +{ + "name": "@jupyterlab/terminal-extension", + "version": "4.0.8", + "description": "JupyterLab - Terminal Emulator Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "schema/*.json", + "style/**/*.css", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/apputils": "^4.1.8", + "@jupyterlab/launcher": "^4.0.8", + "@jupyterlab/mainmenu": "^4.0.8", + "@jupyterlab/running": "^4.0.8", + "@jupyterlab/services": "^7.0.8", + "@jupyterlab/settingregistry": "^4.0.8", + "@jupyterlab/terminal": "^4.0.8", + "@jupyterlab/translation": "^4.0.8", + "@jupyterlab/ui-components": "^4.0.8", + "@lumino/widgets": "^2.3.0" + }, + "devDependencies": { + "@types/webpack-env": "^1.18.0", + "rimraf": "~3.0.0", + "typedoc": "~0.24.7", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/terminal-extension/plugin.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/terminal-extension/plugin.json new file mode 100644 index 0000000..c50ad49 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/terminal-extension/plugin.json @@ -0,0 +1,115 @@ +{ + "jupyter.lab.setting-icon": "ui-components:terminal", + "jupyter.lab.setting-icon-label": "Terminal", + "jupyter.lab.menus": { + "context": [ + { + "command": "terminal:copy", + "selector": ".jp-Terminal", + "rank": 1 + }, + { + "command": "terminal:paste", + "selector": ".jp-Terminal", + "rank": 2 + }, + { + "command": "terminal:refresh", + "selector": ".jp-Terminal", + "rank": 3 + } + ] + }, + "title": "Terminal", + "description": "Terminal settings.", + "definitions": { + "fontFamily": { + "type": "string" + }, + "fontSize": { + "type": "integer", + "minimum": 9, + "maximum": 72 + }, + "lineHeight": { + "type": "number", + "minimum": 1.0 + }, + "theme": { + "enum": ["dark", "light", "inherit"] + }, + "scrollback": { + "type": "number" + }, + "pasteWithCtrlV": { + "type": "boolean" + }, + "macOptionIsMeta": { + "type": "boolean" + } + }, + "properties": { + "fontFamily": { + "title": "Font family", + "description": "The font family used to render text.", + "$ref": "#/definitions/fontFamily", + "default": "monospace" + }, + "fontSize": { + "title": "Font size", + "description": "The font size used to render text.", + "$ref": "#/definitions/fontSize", + "default": 13 + }, + "lineHeight": { + "title": "Line height", + "description": "The line height used to render text.", + "$ref": "#/definitions/lineHeight", + "default": 1.0 + }, + "theme": { + "title": "Theme", + "description": "The theme for the terminal.", + "$ref": "#/definitions/theme", + "default": "inherit" + }, + "screenReaderMode": { + "title": "Screen Reader Mode", + "description": "Add accessibility elements for use with screen readers.", + "type": "boolean", + "default": false + }, + "scrollback": { + "title": "Scrollback Buffer", + "description": "The amount of scrollback beyond initial viewport", + "$ref": "#/definitions/lineHeight", + "default": 1000 + }, + "shutdownOnClose": { + "title": "Shut down on close", + "description": "Shut down the session when closing the terminal.", + "type": "boolean", + "default": false + }, + "closeOnExit": { + "title": "Close on exit", + "description": "Close the widget when exiting the terminal.", + "type": "boolean", + "default": true + }, + "pasteWithCtrlV": { + "title": "Paste with Ctrl+V", + "description": "Enable pasting with Ctrl+V. This can be disabled to use Ctrl+V in the vi editor, for instance. This setting has no effect on macOS, where Cmd+V is available", + "type": "boolean", + "default": true + }, + "macOptionIsMeta": { + "title": "Treat option as meta key on macOS", + "description": "Option key on macOS can be used as meta key. This enables to use shortcuts such as option + f to move cursor forward one word", + "type": "boolean", + "default": false + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/toc-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/toc-extension/package.json.orig new file mode 100644 index 0000000..c8a49b3 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/toc-extension/package.json.orig @@ -0,0 +1,63 @@ +{ + "name": "@jupyterlab/toc-extension", + "version": "6.0.8", + "description": "JupyterLab - Table of Contents widget extension", + "keywords": [ + "jupyter", + "jupyterlab", + "jupyterlab-extension" + ], + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}", + "schema/*.json", + "style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/settingregistry": "^4.0.8", + "@jupyterlab/toc": "^6.0.8", + "@jupyterlab/translation": "^4.0.8", + "@jupyterlab/ui-components": "^4.0.8" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typedoc": "~0.24.7", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/toc-extension/registry.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/toc-extension/registry.json new file mode 100644 index 0000000..aeb56c4 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/toc-extension/registry.json @@ -0,0 +1,72 @@ +{ + "jupyter.lab.setting-icon": "ui-components:toc", + "jupyter.lab.setting-icon-label": "Table of Contents", + "title": "Table of Contents", + "description": "Default table of contents settings.", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-view", + "items": [ + { + "command": "toc:show-panel", + "rank": 4 + } + ] + } + ], + "context": [ + { + "command": "toc:run-cells", + "selector": ".jp-TableOfContents-content[data-document-type=\"notebook\"] .jp-tocItem" + } + ] + }, + "jupyter.lab.shortcuts": [ + { + "command": "toc:show-panel", + "keys": ["Accel Shift K"], + "selector": "body" + } + ], + "properties": { + "maximalDepth": { + "title": "Maximal headings depth", + "type": "integer", + "minimum": 1, + "default": 4 + }, + "numberingH1": { + "title": "Enable 1st headings numbering", + "description": "Whether to number first-level headings or not.", + "type": "boolean", + "default": true + }, + "numberHeaders": { + "title": "Enable headings numbering", + "description": "Whether to automatically number the headings or not.", + "type": "boolean", + "default": false + }, + "includeOutput": { + "title": "Include cell output in headings", + "description": "Whether to include cell output in headings or not.", + "type": "boolean", + "default": true + }, + "syncCollapseState": { + "type": "boolean", + "title": "Synchronize collapse state", + "description": "If set to true, when a heading is collapsed in the table of contents the corresponding section in the document is collapsed as well and vice versa. This inhibits the cell output headings.", + "default": false + }, + "baseNumbering": { + "title": "Base level for the highest headings", + "type": "integer", + "description": "The number headings start at.", + "default": 1 + } + }, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/consoles.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/consoles.json new file mode 100644 index 0000000..e75d468 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/consoles.json @@ -0,0 +1,19 @@ +{ + "title": "Console Tooltips", + "description": "Console tooltip settings.", + "jupyter.lab.shortcuts": [ + { + "command": "tooltip:dismiss", + "keys": ["Escape"], + "selector": "body.jp-mod-tooltip .jp-CodeConsole-promptCell" + }, + { + "command": "tooltip:launch-console", + "keys": ["Shift Tab"], + "selector": ".jp-CodeConsole-promptCell .jp-InputArea-editor:not(.jp-mod-has-primary-selection):not(.jp-mod-in-leading-whitespace)" + } + ], + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/files.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/files.json new file mode 100644 index 0000000..d0d8449 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/files.json @@ -0,0 +1,14 @@ +{ + "title": "File Editor Tooltips", + "description": "File editor tooltip settings.", + "jupyter.lab.shortcuts": [ + { + "command": "tooltip:launch-file", + "keys": ["Shift Tab"], + "selector": ".jp-FileEditor .jp-CodeMirrorEditor:not(.jp-mod-has-primary-selection):not(.jp-mod-in-leading-whitespace)" + } + ], + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/notebooks.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/notebooks.json new file mode 100644 index 0000000..137a137 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/notebooks.json @@ -0,0 +1,19 @@ +{ + "title": "Notebook Tooltips", + "description": "Notebook tooltip settings.", + "jupyter.lab.shortcuts": [ + { + "command": "tooltip:dismiss", + "keys": ["Escape"], + "selector": "body.jp-mod-tooltip .jp-Notebook" + }, + { + "command": "tooltip:launch-notebook", + "keys": ["Shift Tab"], + "selector": ".jp-Notebook.jp-mod-editMode .jp-InputArea-editor:not(.jp-mod-has-primary-selection):not(.jp-mod-in-leading-whitespace):not(.jp-mod-completer-active)" + } + ], + "properties": {}, + "additionalProperties": false, + "type": "object" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/package.json.orig new file mode 100644 index 0000000..d4ae878 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/tooltip-extension/package.json.orig @@ -0,0 +1,68 @@ +{ + "name": "@jupyterlab/tooltip-extension", + "version": "4.0.8", + "description": "JupyterLab - Tooltip Extension", + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/**/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "directories": { + "lib": "lib/" + }, + "files": [ + "lib/*.d.ts", + "lib/*.js.map", + "lib/*.js", + "schema/*.json", + "style/**/*.css", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc -b", + "clean": "rimraf lib && rimraf tsconfig.tsbuildinfo", + "docs": "typedoc src", + "watch": "tsc -b --watch" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/codeeditor": "^4.0.8", + "@jupyterlab/console": "^4.0.8", + "@jupyterlab/coreutils": "^6.0.8", + "@jupyterlab/fileeditor": "^4.0.8", + "@jupyterlab/notebook": "^4.0.8", + "@jupyterlab/rendermime": "^4.0.8", + "@jupyterlab/services": "^7.0.8", + "@jupyterlab/tooltip": "^4.0.8", + "@jupyterlab/translation": "^4.0.8", + "@lumino/algorithm": "^2.0.1", + "@lumino/coreutils": "^2.1.2", + "@lumino/widgets": "^2.3.0" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typedoc": "~0.24.7", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/translation-extension/package.json.orig b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/translation-extension/package.json.orig new file mode 100644 index 0000000..899ecb7 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/translation-extension/package.json.orig @@ -0,0 +1,60 @@ +{ + "name": "@jupyterlab/translation-extension", + "version": "4.0.8", + "description": "JupyterLab - Translation services", + "keywords": [ + "jupyter", + "jupyterlab", + "jupyterlab-extension" + ], + "homepage": "https://github.com/jupyterlab/jupyterlab", + "bugs": { + "url": "https://github.com/jupyterlab/jupyterlab/issues" + }, + "repository": { + "type": "git", + "url": "https://github.com/jupyterlab/jupyterlab.git" + }, + "license": "BSD-3-Clause", + "author": "Project Jupyter", + "sideEffects": [ + "style/*.css", + "style/index.js" + ], + "main": "lib/index.js", + "types": "lib/index.d.ts", + "style": "style/index.css", + "files": [ + "lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}", + "schema/**/*.{json,}", + "style/**/*.{css,eot,gif,html,jpg,json,png,svg,woff2,ttf}", + "style/index.js", + "src/**/*.{ts,tsx}" + ], + "scripts": { + "build": "tsc", + "clean": "rimraf lib tsconfig.tsbuildinfo", + "eslint": "eslint . --ext .ts,.tsx --fix", + "eslint:check": "eslint . --ext .ts,.tsx", + "watch": "tsc -w" + }, + "dependencies": { + "@jupyterlab/application": "^4.0.8", + "@jupyterlab/apputils": "^4.1.8", + "@jupyterlab/mainmenu": "^4.0.8", + "@jupyterlab/settingregistry": "^4.0.8", + "@jupyterlab/translation": "^4.0.8" + }, + "devDependencies": { + "rimraf": "~3.0.0", + "typescript": "~5.0.4" + }, + "publishConfig": { + "access": "public" + }, + "jupyterlab": { + "extension": true, + "schemaDir": "schema" + }, + "styleModule": "style/index.js" +} diff --git a/bootcamp/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json new file mode 100644 index 0000000..15d3f58 --- /dev/null +++ b/bootcamp/share/jupyter/lab/schemas/@jupyterlab/translation-extension/plugin.json @@ -0,0 +1,52 @@ +{ + "jupyter.lab.setting-icon": "ui-components:settings", + "jupyter.lab.setting-icon-label": "Language", + "jupyter.lab.menus": { + "main": [ + { + "id": "jp-mainmenu-settings", + "items": [ + { + "type": "separator", + "rank": 1 + }, + { + "type": "submenu", + "rank": 1, + "submenu": { + "id": "jp-mainmenu-settings-language", + "label": "Language" + } + }, + { + "type": "separator", + "rank": 1 + } + ] + } + ] + }, + "title": "Language", + "description": "Language settings.", + "type": "object", + "properties": { + "locale": { + "type": "string", + "title": "Language locale", + "description": "Set the interface display language. Examples: 'es_CO', 'fr_FR'. Set 'default' to use the server default locale. Requires corresponding language pack to be installed.", + "default": "default" + }, + "stringsPrefix": { + "type": "string", + "title": "Localized strings prefix", + "description": "Add a prefix to localized strings.", + "default": "!!" + }, + "displayStringsPrefix": { + "type": "boolean", + "title": "Display localized strings prefix", + "description": "Display the `stringsPrefix` on localized strings.", + "default": false + } + } +} diff --git a/bootcamp/share/jupyter/lab/static/1036.0d1f109c3d842497fd51.js b/bootcamp/share/jupyter/lab/static/1036.0d1f109c3d842497fd51.js new file mode 100644 index 0000000..8f3807f --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/1036.0d1f109c3d842497fd51.js @@ -0,0 +1,2 @@ +/*! For license information please see 1036.0d1f109c3d842497fd51.js.LICENSE.txt */ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1036,4155],{9996:e=>{"use strict";var t=function e(t){return r(t)&&!i(t)};function r(e){return!!e&&typeof e==="object"}function i(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||o(e)}var s=typeof Symbol==="function"&&Symbol.for;var n=s?Symbol.for("react.element"):60103;function o(e){return e.$$typeof===n}function a(e){return Array.isArray(e)?[]:{}}function l(e,t){return t.clone!==false&&t.isMergeableObject(e)?g(a(e),e,t):e}function u(e,t,r){return e.concat(t).map((function(e){return l(e,r)}))}function c(e,t){if(!t.customMerge){return g}var r=t.customMerge(e);return typeof r==="function"?r:g}function f(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}function h(e){return Object.keys(e).concat(f(e))}function p(e,t){try{return t in e}catch(r){return false}}function d(e,t){return p(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function m(e,t,r){var i={};if(r.isMergeableObject(e)){h(e).forEach((function(t){i[t]=l(e[t],r)}))}h(t).forEach((function(s){if(d(e,s)){return}if(p(e,s)&&r.isMergeableObject(t[s])){i[s]=c(s,r)(e[s],t[s],r)}else{i[s]=l(t[s],r)}}));return i}function g(e,r,i){i=i||{};i.arrayMerge=i.arrayMerge||u;i.isMergeableObject=i.isMergeableObject||t;i.cloneUnlessOtherwiseSpecified=l;var s=Array.isArray(r);var n=Array.isArray(e);var o=s===n;if(!o){return l(r,i)}else if(s){return i.arrayMerge(e,r,i)}else{return m(e,r,i)}}g.all=function e(t,r){if(!Array.isArray(t)){throw new Error("first argument should be an array")}return t.reduce((function(e,t){return g(e,t,r)}),{})};var b=g;e.exports=b},17837:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.attributeNames=t.elementNames=void 0;t.elementNames=new Map([["altglyph","altGlyph"],["altglyphdef","altGlyphDef"],["altglyphitem","altGlyphItem"],["animatecolor","animateColor"],["animatemotion","animateMotion"],["animatetransform","animateTransform"],["clippath","clipPath"],["feblend","feBlend"],["fecolormatrix","feColorMatrix"],["fecomponenttransfer","feComponentTransfer"],["fecomposite","feComposite"],["feconvolvematrix","feConvolveMatrix"],["fediffuselighting","feDiffuseLighting"],["fedisplacementmap","feDisplacementMap"],["fedistantlight","feDistantLight"],["fedropshadow","feDropShadow"],["feflood","feFlood"],["fefunca","feFuncA"],["fefuncb","feFuncB"],["fefuncg","feFuncG"],["fefuncr","feFuncR"],["fegaussianblur","feGaussianBlur"],["feimage","feImage"],["femerge","feMerge"],["femergenode","feMergeNode"],["femorphology","feMorphology"],["feoffset","feOffset"],["fepointlight","fePointLight"],["fespecularlighting","feSpecularLighting"],["fespotlight","feSpotLight"],["fetile","feTile"],["feturbulence","feTurbulence"],["foreignobject","foreignObject"],["glyphref","glyphRef"],["lineargradient","linearGradient"],["radialgradient","radialGradient"],["textpath","textPath"]]);t.attributeNames=new Map([["definitionurl","definitionURL"],["attributename","attributeName"],["attributetype","attributeType"],["basefrequency","baseFrequency"],["baseprofile","baseProfile"],["calcmode","calcMode"],["clippathunits","clipPathUnits"],["diffuseconstant","diffuseConstant"],["edgemode","edgeMode"],["filterunits","filterUnits"],["glyphref","glyphRef"],["gradienttransform","gradientTransform"],["gradientunits","gradientUnits"],["kernelmatrix","kernelMatrix"],["kernelunitlength","kernelUnitLength"],["keypoints","keyPoints"],["keysplines","keySplines"],["keytimes","keyTimes"],["lengthadjust","lengthAdjust"],["limitingconeangle","limitingConeAngle"],["markerheight","markerHeight"],["markerunits","markerUnits"],["markerwidth","markerWidth"],["maskcontentunits","maskContentUnits"],["maskunits","maskUnits"],["numoctaves","numOctaves"],["pathlength","pathLength"],["patterncontentunits","patternContentUnits"],["patterntransform","patternTransform"],["patternunits","patternUnits"],["pointsatx","pointsAtX"],["pointsaty","pointsAtY"],["pointsatz","pointsAtZ"],["preservealpha","preserveAlpha"],["preserveaspectratio","preserveAspectRatio"],["primitiveunits","primitiveUnits"],["refx","refX"],["refy","refY"],["repeatcount","repeatCount"],["repeatdur","repeatDur"],["requiredextensions","requiredExtensions"],["requiredfeatures","requiredFeatures"],["specularconstant","specularConstant"],["specularexponent","specularExponent"],["spreadmethod","spreadMethod"],["startoffset","startOffset"],["stddeviation","stdDeviation"],["stitchtiles","stitchTiles"],["surfacescale","surfaceScale"],["systemlanguage","systemLanguage"],["tablevalues","tableValues"],["targetx","targetX"],["targety","targetY"],["textlength","textLength"],["viewbox","viewBox"],["viewtarget","viewTarget"],["xchannelselector","xChannelSelector"],["ychannelselector","yChannelSelector"],["zoomandpan","zoomAndPan"]])},97220:function(e,t,r){"use strict";var i=this&&this.__assign||function(){i=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0){s+=p(e.children,t)}if(t.xmlMode||!h.has(e.name)){s+=""}}return s}function y(e){return"<"+e.data+">"}function v(e,t){var r=e.data||"";if(t.decodeEntities!==false&&!(!t.xmlMode&&e.parent&&c.has(e.parent.name))){r=l.encodeXML(r)}return r}function w(e){return""}function x(e){return"\x3c!--"+e.data+"--\x3e"}},99960:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0;var r;(function(e){e["Root"]="root";e["Text"]="text";e["Directive"]="directive";e["Comment"]="comment";e["Script"]="script";e["Style"]="style";e["Tag"]="tag";e["CDATA"]="cdata";e["Doctype"]="doctype"})(r=t.ElementType||(t.ElementType={}));function i(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style}t.isTag=i;t.Root=r.Root;t.Text=r.Text;t.Directive=r.Directive;t.Comment=r.Comment;t.Script=r.Script;t.Style=r.Style;t.Tag=r.Tag;t.CDATA=r.CDATA;t.Doctype=r.Doctype},47915:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,i,s)}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))i(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.DomHandler=void 0;var n=r(99960);var o=r(97790);s(r(97790),t);var a=/\s+/g;var l={normalizeWhitespace:false,withStartIndices:false,withEndIndices:false,xmlMode:false};var u=function(){function e(e,t,r){this.dom=[];this.root=new o.Document(this.dom);this.done=false;this.tagStack=[this.root];this.lastNode=null;this.parser=null;if(typeof t==="function"){r=t;t=l}if(typeof e==="object"){t=e;e=undefined}this.callback=e!==null&&e!==void 0?e:null;this.options=t!==null&&t!==void 0?t:l;this.elementCB=r!==null&&r!==void 0?r:null}e.prototype.onparserinit=function(e){this.parser=e};e.prototype.onreset=function(){this.dom=[];this.root=new o.Document(this.dom);this.done=false;this.tagStack=[this.root];this.lastNode=null;this.parser=null};e.prototype.onend=function(){if(this.done)return;this.done=true;this.parser=null;this.handleCallback(null)};e.prototype.onerror=function(e){this.handleCallback(e)};e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();if(this.options.withEndIndices){e.endIndex=this.parser.endIndex}if(this.elementCB)this.elementCB(e)};e.prototype.onopentag=function(e,t){var r=this.options.xmlMode?n.ElementType.Tag:undefined;var i=new o.Element(e,t,undefined,r);this.addNode(i);this.tagStack.push(i)};e.prototype.ontext=function(e){var t=this.options.normalizeWhitespace;var r=this.lastNode;if(r&&r.type===n.ElementType.Text){if(t){r.data=(r.data+e).replace(a," ")}else{r.data+=e}if(this.options.withEndIndices){r.endIndex=this.parser.endIndex}}else{if(t){e=e.replace(a," ")}var i=new o.Text(e);this.addNode(i);this.lastNode=i}};e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=e;return}var t=new o.Comment(e);this.addNode(t);this.lastNode=t};e.prototype.oncommentend=function(){this.lastNode=null};e.prototype.oncdatastart=function(){var e=new o.Text("");var t=new o.NodeWithChildren(n.ElementType.CDATA,[e]);this.addNode(t);e.parent=t;this.lastNode=e};e.prototype.oncdataend=function(){this.lastNode=null};e.prototype.onprocessinginstruction=function(e,t){var r=new o.ProcessingInstruction(e,t);this.addNode(r)};e.prototype.handleCallback=function(e){if(typeof this.callback==="function"){this.callback(e,this.dom)}else if(e){throw e}};e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1];var r=t.children[t.children.length-1];if(this.options.withStartIndices){e.startIndex=this.parser.startIndex}if(this.options.withEndIndices){e.endIndex=this.parser.endIndex}t.children.push(e);if(r){e.prev=r;r.next=e}e.parent=t;this.lastNode=null};return e}();t.DomHandler=u;t["default"]=u},97790:function(e,t,r){"use strict";var i=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var s=this&&this.__assign||function(){s=Object.assign||function(e){for(var t,r=1,i=arguments.length;r0?this.children[this.children.length-1]:null},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:false,configurable:true});return t}(a);t.NodeWithChildren=h;var p=function(e){i(t,e);function t(t){return e.call(this,n.ElementType.Root,t)||this}return t}(h);t.Document=p;var d=function(e){i(t,e);function t(t,r,i,s){if(i===void 0){i=[]}if(s===void 0){s=t==="script"?n.ElementType.Script:t==="style"?n.ElementType.Style:n.ElementType.Tag}var o=e.call(this,s,i)||this;o.name=t;o.attribs=r;return o}Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var r,i;return{name:t,value:e.attribs[t],namespace:(r=e["x-attribsNamespace"])===null||r===void 0?void 0:r[t],prefix:(i=e["x-attribsPrefix"])===null||i===void 0?void 0:i[t]}}))},enumerable:false,configurable:true});return t}(h);t.Element=d;function m(e){return(0,n.isTag)(e)}t.isTag=m;function g(e){return e.type===n.ElementType.CDATA}t.isCDATA=g;function b(e){return e.type===n.ElementType.Text}t.isText=b;function y(e){return e.type===n.ElementType.Comment}t.isComment=y;function v(e){return e.type===n.ElementType.Directive}t.isDirective=v;function w(e){return e.type===n.ElementType.Root}t.isDocument=w;function x(e){return Object.prototype.hasOwnProperty.call(e,"children")}t.hasChildren=x;function S(e,t){if(t===void 0){t=false}var r;if(b(e)){r=new u(e.data)}else if(y(e)){r=new c(e.data)}else if(m(e)){var i=t?_(e.children):[];var o=new d(e.name,s({},e.attribs),i);i.forEach((function(e){return e.parent=o}));if(e.namespace!=null){o.namespace=e.namespace}if(e["x-attribsNamespace"]){o["x-attribsNamespace"]=s({},e["x-attribsNamespace"])}if(e["x-attribsPrefix"]){o["x-attribsPrefix"]=s({},e["x-attribsPrefix"])}r=o}else if(g(e)){var i=t?_(e.children):[];var a=new h(n.ElementType.CDATA,i);i.forEach((function(e){return e.parent=a}));r=a}else if(w(e)){var i=t?_(e.children):[];var l=new p(i);i.forEach((function(e){return e.parent=l}));if(e["x-mode"]){l["x-mode"]=e["x-mode"]}r=l}else if(v(e)){var x=new f(e.name,e.data);if(e["x-name"]!=null){x["x-name"]=e["x-name"];x["x-publicId"]=e["x-publicId"];x["x-systemId"]=e["x-systemId"]}r=x}else{throw new Error("Not implemented yet: ".concat(e.type))}r.startIndex=e.startIndex;r.endIndex=e.endIndex;if(e.sourceCodeLocation!=null){r.sourceCodeLocation=e.sourceCodeLocation}return r}t.cloneNode=S;function _(e){var t=e.map((function(e){return S(e,true)}));for(var r=1;r{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getFeed=void 0;var i=r(43346);var s=r(23905);function n(e){var t=f(d,e);return!t?null:t.name==="feed"?o(t):a(t)}t.getFeed=n;function o(e){var t;var r=e.children;var i={type:"atom",items:(0,s.getElementsByTagName)("entry",r).map((function(e){var t;var r=e.children;var i={media:c(r)};p(i,"id","id",r);p(i,"title","title",r);var s=(t=f("link",r))===null||t===void 0?void 0:t.attribs.href;if(s){i.link=s}var n=h("summary",r)||h("content",r);if(n){i.description=n}var o=h("updated",r);if(o){i.pubDate=new Date(o)}return i}))};p(i,"id","id",r);p(i,"title","title",r);var n=(t=f("link",r))===null||t===void 0?void 0:t.attribs.href;if(n){i.link=n}p(i,"description","subtitle",r);var o=h("updated",r);if(o){i.updated=new Date(o)}p(i,"author","email",r,true);return i}function a(e){var t,r;var i=(r=(t=f("channel",e.children))===null||t===void 0?void 0:t.children)!==null&&r!==void 0?r:[];var n={type:e.name.substr(0,3),id:"",items:(0,s.getElementsByTagName)("item",e.children).map((function(e){var t=e.children;var r={media:c(t)};p(r,"id","guid",t);p(r,"title","title",t);p(r,"link","link",t);p(r,"description","description",t);var i=h("pubDate",t);if(i)r.pubDate=new Date(i);return r}))};p(n,"title","title",i);p(n,"link","link",i);p(n,"description","description",i);var o=h("lastBuildDate",i);if(o){n.updated=new Date(o)}p(n,"author","managingEditor",i,true);return n}var l=["url","type","lang"];var u=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function c(e){return(0,s.getElementsByTagName)("media:content",e).map((function(e){var t=e.attribs;var r={medium:t.medium,isDefault:!!t.isDefault};for(var i=0,s=l;i{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.uniqueSort=t.compareDocumentPosition=t.removeSubsets=void 0;var i=r(47915);function s(e){var t=e.length;while(--t>=0){var r=e[t];if(t>0&&e.lastIndexOf(r,t-1)>=0){e.splice(t,1);continue}for(var i=r.parent;i;i=i.parent){if(e.includes(i)){e.splice(t,1);break}}}return e}t.removeSubsets=s;function n(e,t){var r=[];var s=[];if(e===t){return 0}var n=(0,i.hasChildren)(e)?e:e.parent;while(n){r.unshift(n);n=n.parent}n=(0,i.hasChildren)(t)?t:t.parent;while(n){s.unshift(n);n=n.parent}var o=Math.min(r.length,s.length);var a=0;while(au.indexOf(f)){if(l===t){return 4|16}return 4}if(l===e){return 2|8}return 2}t.compareDocumentPosition=n;function o(e){e=e.filter((function(e,t,r){return!r.includes(e,t+1)}));e.sort((function(e,t){var r=n(e,t);if(r&2){return-1}else if(r&4){return 1}return 0}));return e}t.uniqueSort=o},89432:function(e,t,r){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))i(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0;s(r(43346),t);s(r(85010),t);s(r(26765),t);s(r(98043),t);s(r(23905),t);s(r(74975),t);s(r(16996),t);var n=r(47915);Object.defineProperty(t,"isTag",{enumerable:true,get:function(){return n.isTag}});Object.defineProperty(t,"isCDATA",{enumerable:true,get:function(){return n.isCDATA}});Object.defineProperty(t,"isText",{enumerable:true,get:function(){return n.isText}});Object.defineProperty(t,"isComment",{enumerable:true,get:function(){return n.isComment}});Object.defineProperty(t,"isDocument",{enumerable:true,get:function(){return n.isDocument}});Object.defineProperty(t,"hasChildren",{enumerable:true,get:function(){return n.hasChildren}})},23905:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getElementsByTagType=t.getElementsByTagName=t.getElementById=t.getElements=t.testElement=void 0;var i=r(47915);var s=r(98043);var n={tag_name:function(e){if(typeof e==="function"){return function(t){return(0,i.isTag)(t)&&e(t.name)}}else if(e==="*"){return i.isTag}return function(t){return(0,i.isTag)(t)&&t.name===e}},tag_type:function(e){if(typeof e==="function"){return function(t){return e(t.type)}}return function(t){return t.type===e}},tag_contains:function(e){if(typeof e==="function"){return function(t){return(0,i.isText)(t)&&e(t.data)}}return function(t){return(0,i.isText)(t)&&t.data===e}}};function o(e,t){if(typeof t==="function"){return function(r){return(0,i.isTag)(r)&&t(r.attribs[e])}}return function(r){return(0,i.isTag)(r)&&r.attribs[e]===t}}function a(e,t){return function(r){return e(r)||t(r)}}function l(e){var t=Object.keys(e).map((function(t){var r=e[t];return Object.prototype.hasOwnProperty.call(n,t)?n[t](r):o(t,r)}));return t.length===0?null:t.reduce(a)}function u(e,t){var r=l(e);return r?r(t):true}t.testElement=u;function c(e,t,r,i){if(i===void 0){i=Infinity}var n=l(e);return n?(0,s.filter)(n,t,r,i):[]}t.getElements=c;function f(e,t,r){if(r===void 0){r=true}if(!Array.isArray(t))t=[t];return(0,s.findOne)(o("id",e),t,r)}t.getElementById=f;function h(e,t,r,i){if(r===void 0){r=true}if(i===void 0){i=Infinity}return(0,s.filter)(n.tag_name(e),t,r,i)}t.getElementsByTagName=h;function p(e,t,r,i){if(r===void 0){r=true}if(i===void 0){i=Infinity}return(0,s.filter)(n.tag_type(e),t,r,i)}t.getElementsByTagType=p},26765:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.prepend=t.prependChild=t.append=t.appendChild=t.replaceElement=t.removeElement=void 0;function r(e){if(e.prev)e.prev.next=e.next;if(e.next)e.next.prev=e.prev;if(e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}}t.removeElement=r;function i(e,t){var r=t.prev=e.prev;if(r){r.next=t}var i=t.next=e.next;if(i){i.prev=t}var s=t.parent=e.parent;if(s){var n=s.children;n[n.lastIndexOf(e)]=t}}t.replaceElement=i;function s(e,t){r(t);t.next=null;t.parent=e;if(e.children.push(t)>1){var i=e.children[e.children.length-2];i.next=t;t.prev=i}else{t.prev=null}}t.appendChild=s;function n(e,t){r(t);var i=e.parent;var s=e.next;t.next=s;t.prev=e;e.next=t;t.parent=i;if(s){s.prev=t;if(i){var n=i.children;n.splice(n.lastIndexOf(s),0,t)}}else if(i){i.children.push(t)}}t.append=n;function o(e,t){r(t);t.parent=e;t.prev=null;if(e.children.unshift(t)!==1){var i=e.children[1];i.prev=t;t.next=i}else{t.next=null}}t.prependChild=o;function a(e,t){r(t);var i=e.parent;if(i){var s=i.children;s.splice(s.indexOf(e),0,t)}if(e.prev){e.prev.next=t}t.parent=i;t.prev=e.prev;t.next=e;e.prev=t}t.prepend=a},98043:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.findAll=t.existsOne=t.findOne=t.findOneChild=t.find=t.filter=void 0;var i=r(47915);function s(e,t,r,i){if(r===void 0){r=true}if(i===void 0){i=Infinity}if(!Array.isArray(t))t=[t];return n(e,t,r,i)}t.filter=s;function n(e,t,r,s){var o=[];for(var a=0,l=t;a0){var c=n(e,u.children,r,s);o.push.apply(o,c);s-=c.length;if(s<=0)break}}return o}t.find=n;function o(e,t){return t.find(e)}t.findOneChild=o;function a(e,t,r){if(r===void 0){r=true}var s=null;for(var n=0;n0){s=a(e,o.children)}}return s}t.findOne=a;function l(e,t){return t.some((function(t){return(0,i.isTag)(t)&&(e(t)||t.children.length>0&&l(e,t.children))}))}t.existsOne=l;function u(e,t){var r;var s=[];var n=t.filter(i.isTag);var o;while(o=n.shift()){var a=(r=o.children)===null||r===void 0?void 0:r.filter(i.isTag);if(a&&a.length>0){n.unshift.apply(n,a)}if(e(o))s.push(o)}return s}t.findAll=u},43346:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.innerText=t.textContent=t.getText=t.getInnerHTML=t.getOuterHTML=void 0;var s=r(47915);var n=i(r(97220));var o=r(99960);function a(e,t){return(0,n.default)(e,t)}t.getOuterHTML=a;function l(e,t){return(0,s.hasChildren)(e)?e.children.map((function(e){return a(e,t)})).join(""):""}t.getInnerHTML=l;function u(e){if(Array.isArray(e))return e.map(u).join("");if((0,s.isTag)(e))return e.name==="br"?"\n":u(e.children);if((0,s.isCDATA)(e))return u(e.children);if((0,s.isText)(e))return e.data;return""}t.getText=u;function c(e){if(Array.isArray(e))return e.map(c).join("");if((0,s.hasChildren)(e)&&!(0,s.isComment)(e)){return c(e.children)}if((0,s.isText)(e))return e.data;return""}t.textContent=c;function f(e){if(Array.isArray(e))return e.map(f).join("");if((0,s.hasChildren)(e)&&(e.type===o.ElementType.Tag||(0,s.isCDATA)(e))){return f(e.children)}if((0,s.isText)(e))return e.data;return""}t.innerText=f},85010:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.prevElementSibling=t.nextElementSibling=t.getName=t.hasAttrib=t.getAttributeValue=t.getSiblings=t.getParent=t.getChildren=void 0;var i=r(47915);var s=[];function n(e){var t;return(t=e.children)!==null&&t!==void 0?t:s}t.getChildren=n;function o(e){return e.parent||null}t.getParent=o;function a(e){var t,r;var i=o(e);if(i!=null)return n(i);var s=[e];var a=e.prev,l=e.next;while(a!=null){s.unshift(a);t=a,a=t.prev}while(l!=null){s.push(l);r=l,l=r.next}return s}t.getSiblings=a;function l(e,t){var r;return(r=e.attribs)===null||r===void 0?void 0:r[t]}t.getAttributeValue=l;function u(e,t){return e.attribs!=null&&Object.prototype.hasOwnProperty.call(e.attribs,t)&&e.attribs[t]!=null}t.hasAttrib=u;function c(e){return e.name}t.getName=c;function f(e){var t;var r=e.next;while(r!==null&&!(0,i.isTag)(r))t=r,r=t.next;return r}t.nextElementSibling=f;function h(e){var t;var r=e.prev;while(r!==null&&!(0,i.isTag)(r))t=r,r=t.prev;return r}t.prevElementSibling=h},44076:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.decodeHTML=t.decodeHTMLStrict=t.decodeXML=void 0;var s=i(r(59323));var n=i(r(29591));var o=i(r(2586));var a=i(r(26));var l=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;t.decodeXML=u(o.default);t.decodeHTMLStrict=u(s.default);function u(e){var t=f(e);return function(e){return String(e).replace(l,t)}}var c=function(e,t){return e65535){e-=65536;t+=String.fromCharCode(e>>>10&1023|55296);e=56320|e&1023}t+=String.fromCharCode(e);return t};function o(e){if(e>=55296&&e<=57343||e>1114111){return"�"}if(e in s.default){e=s.default[e]}return n(e)}t["default"]=o},87322:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=void 0;var s=i(r(2586));var n=c(s.default);var o=f(n);t.encodeXML=v(n);var a=i(r(59323));var l=c(a.default);var u=f(l);t.encodeHTML=m(l,u);t.encodeNonAsciiHTML=v(l);function c(e){return Object.keys(e).sort().reduce((function(t,r){t[e[r]]="&"+r+";";return t}),{})}function f(e){var t=[];var r=[];for(var i=0,s=Object.keys(e);i1?p(e):e.charCodeAt(0)).toString(16).toUpperCase()+";"}function m(e,t){return function(r){return r.replace(t,(function(t){return e[t]})).replace(h,d)}}var g=new RegExp(o.source+"|"+h.source,"g");function b(e){return e.replace(g,d)}t.escape=b;function y(e){return e.replace(o,d)}t.escapeUTF8=y;function v(e){return function(t){return t.replace(g,(function(t){return e[t]||d(t)}))}}},45863:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.encodeHTML5=t.encodeHTML4=t.escapeUTF8=t.escape=t.encodeNonAsciiHTML=t.encodeHTML=t.encodeXML=t.encode=t.decodeStrict=t.decode=void 0;var i=r(44076);var s=r(87322);function n(e,t){return(!t||t<=0?i.decodeXML:i.decodeHTML)(e)}t.decode=n;function o(e,t){return(!t||t<=0?i.decodeXML:i.decodeHTMLStrict)(e)}t.decodeStrict=o;function a(e,t){return(!t||t<=0?s.encodeXML:s.encodeHTML)(e)}t.encode=a;var l=r(87322);Object.defineProperty(t,"encodeXML",{enumerable:true,get:function(){return l.encodeXML}});Object.defineProperty(t,"encodeHTML",{enumerable:true,get:function(){return l.encodeHTML}});Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:true,get:function(){return l.encodeNonAsciiHTML}});Object.defineProperty(t,"escape",{enumerable:true,get:function(){return l.escape}});Object.defineProperty(t,"escapeUTF8",{enumerable:true,get:function(){return l.escapeUTF8}});Object.defineProperty(t,"encodeHTML4",{enumerable:true,get:function(){return l.encodeHTML}});Object.defineProperty(t,"encodeHTML5",{enumerable:true,get:function(){return l.encodeHTML}});var u=r(44076);Object.defineProperty(t,"decodeXML",{enumerable:true,get:function(){return u.decodeXML}});Object.defineProperty(t,"decodeHTML",{enumerable:true,get:function(){return u.decodeHTML}});Object.defineProperty(t,"decodeHTMLStrict",{enumerable:true,get:function(){return u.decodeHTMLStrict}});Object.defineProperty(t,"decodeHTML4",{enumerable:true,get:function(){return u.decodeHTML}});Object.defineProperty(t,"decodeHTML5",{enumerable:true,get:function(){return u.decodeHTML}});Object.defineProperty(t,"decodeHTML4Strict",{enumerable:true,get:function(){return u.decodeHTMLStrict}});Object.defineProperty(t,"decodeHTML5Strict",{enumerable:true,get:function(){return u.decodeHTMLStrict}});Object.defineProperty(t,"decodeXMLStrict",{enumerable:true,get:function(){return u.decodeXML}})},63150:e=>{"use strict";e.exports=e=>{if(typeof e!=="string"){throw new TypeError("Expected a string")}return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}},63870:function(e,t,r){"use strict";var i=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var s=this&&this.__createBinding||(Object.create?function(e,t,r,i){if(i===undefined)i=r;Object.defineProperty(e,i,{enumerable:true,get:function(){return t[r]}})}:function(e,t,r,i){if(i===undefined)i=r;e[i]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))s(t,e,r);n(t,e);return t};var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.parseFeed=t.FeedHandler=void 0;var l=a(r(47915));var u=o(r(89432));var c=r(50763);var f;(function(e){e[e["image"]=0]="image";e[e["audio"]=1]="audio";e[e["video"]=2]="video";e[e["document"]=3]="document";e[e["executable"]=4]="executable"})(f||(f={}));var h;(function(e){e[e["sample"]=0]="sample";e[e["full"]=1]="full";e[e["nonstop"]=2]="nonstop"})(h||(h={}));var p=function(e){i(t,e);function t(t,r){var i=this;if(typeof t==="object"){t=undefined;r=t}i=e.call(this,t,r)||this;return i}t.prototype.onend=function(){var e,t;var r=g(w,this.dom);if(!r){this.handleCallback(new Error("couldn't find root of feed"));return}var i={};if(r.name==="feed"){var s=r.children;i.type="atom";v(i,"id","id",s);v(i,"title","title",s);var n=y("href",g("link",s));if(n){i.link=n}v(i,"description","subtitle",s);var o=b("updated",s);if(o){i.updated=new Date(o)}v(i,"author","email",s,true);i.items=m("entry",s).map((function(e){var t={};var r=e.children;v(t,"id","id",r);v(t,"title","title",r);var i=y("href",g("link",r));if(i){t.link=i}var s=b("summary",r)||b("content",r);if(s){t.description=s}var n=b("updated",r);if(n){t.pubDate=new Date(n)}t.media=d(r);return t}))}else{var s=(t=(e=g("channel",r.children))===null||e===void 0?void 0:e.children)!==null&&t!==void 0?t:[];i.type=r.name.substr(0,3);i.id="";v(i,"title","title",s);v(i,"link","link",s);v(i,"description","description",s);var o=b("lastBuildDate",s);if(o){i.updated=new Date(o)}v(i,"author","managingEditor",s,true);i.items=m("item",r.children).map((function(e){var t={};var r=e.children;v(t,"id","guid",r);v(t,"title","title",r);v(t,"link","link",r);v(t,"description","description",r);var i=b("pubDate",r);if(i)t.pubDate=new Date(i);t.media=d(r);return t}))}this.feed=i;this.handleCallback(null)};return t}(l.default);t.FeedHandler=p;function d(e){return m("media:content",e).map((function(e){var t={medium:e.attribs.medium,isDefault:!!e.attribs.isDefault};if(e.attribs.url){t.url=e.attribs.url}if(e.attribs.fileSize){t.fileSize=parseInt(e.attribs.fileSize,10)}if(e.attribs.type){t.type=e.attribs.type}if(e.attribs.expression){t.expression=e.attribs.expression}if(e.attribs.bitrate){t.bitrate=parseInt(e.attribs.bitrate,10)}if(e.attribs.framerate){t.framerate=parseInt(e.attribs.framerate,10)}if(e.attribs.samplingrate){t.samplingrate=parseInt(e.attribs.samplingrate,10)}if(e.attribs.channels){t.channels=parseInt(e.attribs.channels,10)}if(e.attribs.duration){t.duration=parseInt(e.attribs.duration,10)}if(e.attribs.height){t.height=parseInt(e.attribs.height,10)}if(e.attribs.width){t.width=parseInt(e.attribs.width,10)}if(e.attribs.lang){t.lang=e.attribs.lang}return t}))}function m(e,t){return u.getElementsByTagName(e,t,true)}function g(e,t){return u.getElementsByTagName(e,t,true,1)[0]}function b(e,t,r){if(r===void 0){r=false}return u.getText(u.getElementsByTagName(e,t,r,1)).trim()}function y(e,t){if(!t){return null}var r=t.attribs;return r[e]}function v(e,t,r,i,s){if(s===void 0){s=false}var n=b(r,i,s);if(n)e[t]=n}function w(e){return e==="rss"||e==="feed"||e==="rdf:RDF"}function x(e,t){if(t===void 0){t={xmlMode:true}}var r=new p(t);new c.Parser(r,t).end(e);return r.feed}t.parseFeed=x},50763:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.Parser=void 0;var s=i(r(39889));var n=new Set(["input","option","optgroup","select","button","datalist","textarea"]);var o=new Set(["p"]);var a={tr:new Set(["tr","th","td"]),th:new Set(["th"]),td:new Set(["thead","th","td"]),body:new Set(["head","link","script"]),li:new Set(["li"]),p:o,h1:o,h2:o,h3:o,h4:o,h5:o,h6:o,select:n,input:n,output:n,button:n,datalist:n,textarea:n,option:new Set(["option"]),optgroup:new Set(["optgroup","option"]),dd:new Set(["dt","dd"]),dt:new Set(["dt","dd"]),address:o,article:o,aside:o,blockquote:o,details:o,div:o,dl:o,fieldset:o,figcaption:o,figure:o,footer:o,form:o,header:o,hr:o,main:o,nav:o,ol:o,pre:o,section:o,table:o,ul:o,rt:new Set(["rt","rp"]),rp:new Set(["rt","rp"]),tbody:new Set(["thead","tbody"]),tfoot:new Set(["thead","tbody"])};var l=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);var u=new Set(["math","svg"]);var c=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]);var f=/\s|\//;var h=function(){function e(e,t){if(t===void 0){t={}}var r,i,n,o,a;this.startIndex=0;this.endIndex=null;this.tagname="";this.attribname="";this.attribvalue="";this.attribs=null;this.stack=[];this.foreignContext=[];this.options=t;this.cbs=e!==null&&e!==void 0?e:{};this.lowerCaseTagNames=(r=t.lowerCaseTags)!==null&&r!==void 0?r:!t.xmlMode;this.lowerCaseAttributeNames=(i=t.lowerCaseAttributeNames)!==null&&i!==void 0?i:!t.xmlMode;this.tokenizer=new((n=t.Tokenizer)!==null&&n!==void 0?n:s.default)(this.options,this);(a=(o=this.cbs).onparserinit)===null||a===void 0?void 0:a.call(o,this)}e.prototype.updatePosition=function(e){if(this.endIndex===null){if(this.tokenizer.sectionStart<=e){this.startIndex=0}else{this.startIndex=this.tokenizer.sectionStart-e}}else{this.startIndex=this.endIndex+1}this.endIndex=this.tokenizer.getAbsoluteIndex()};e.prototype.ontext=function(e){var t,r;this.updatePosition(1);this.endIndex--;(r=(t=this.cbs).ontext)===null||r===void 0?void 0:r.call(t,e)};e.prototype.onopentagname=function(e){var t,r;if(this.lowerCaseTagNames){e=e.toLowerCase()}this.tagname=e;if(!this.options.xmlMode&&Object.prototype.hasOwnProperty.call(a,e)){var i=void 0;while(this.stack.length>0&&a[e].has(i=this.stack[this.stack.length-1])){this.onclosetag(i)}}if(this.options.xmlMode||!l.has(e)){this.stack.push(e);if(u.has(e)){this.foreignContext.push(true)}else if(c.has(e)){this.foreignContext.push(false)}}(r=(t=this.cbs).onopentagname)===null||r===void 0?void 0:r.call(t,e);if(this.cbs.onopentag)this.attribs={}};e.prototype.onopentagend=function(){var e,t;this.updatePosition(1);if(this.attribs){(t=(e=this.cbs).onopentag)===null||t===void 0?void 0:t.call(e,this.tagname,this.attribs);this.attribs=null}if(!this.options.xmlMode&&this.cbs.onclosetag&&l.has(this.tagname)){this.cbs.onclosetag(this.tagname)}this.tagname=""};e.prototype.onclosetag=function(e){this.updatePosition(1);if(this.lowerCaseTagNames){e=e.toLowerCase()}if(u.has(e)||c.has(e)){this.foreignContext.pop()}if(this.stack.length&&(this.options.xmlMode||!l.has(e))){var t=this.stack.lastIndexOf(e);if(t!==-1){if(this.cbs.onclosetag){t=this.stack.length-t;while(t--){this.cbs.onclosetag(this.stack.pop())}}else this.stack.length=t}else if(e==="p"&&!this.options.xmlMode){this.onopentagname(e);this.closeCurrentTag()}}else if(!this.options.xmlMode&&(e==="br"||e==="p")){this.onopentagname(e);this.closeCurrentTag()}};e.prototype.onselfclosingtag=function(){if(this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]){this.closeCurrentTag()}else{this.onopentagend()}};e.prototype.closeCurrentTag=function(){var e,t;var r=this.tagname;this.onopentagend();if(this.stack[this.stack.length-1]===r){(t=(e=this.cbs).onclosetag)===null||t===void 0?void 0:t.call(e,r);this.stack.pop()}};e.prototype.onattribname=function(e){if(this.lowerCaseAttributeNames){e=e.toLowerCase()}this.attribname=e};e.prototype.onattribdata=function(e){this.attribvalue+=e};e.prototype.onattribend=function(e){var t,r;(r=(t=this.cbs).onattribute)===null||r===void 0?void 0:r.call(t,this.attribname,this.attribvalue,e);if(this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)){this.attribs[this.attribname]=this.attribvalue}this.attribname="";this.attribvalue=""};e.prototype.getInstructionName=function(e){var t=e.search(f);var r=t<0?e:e.substr(0,t);if(this.lowerCaseTagNames){r=r.toLowerCase()}return r};e.prototype.ondeclaration=function(e){if(this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("!"+t,"!"+e)}};e.prototype.onprocessinginstruction=function(e){if(this.cbs.onprocessinginstruction){var t=this.getInstructionName(e);this.cbs.onprocessinginstruction("?"+t,"?"+e)}};e.prototype.oncomment=function(e){var t,r,i,s;this.updatePosition(4);(r=(t=this.cbs).oncomment)===null||r===void 0?void 0:r.call(t,e);(s=(i=this.cbs).oncommentend)===null||s===void 0?void 0:s.call(i)};e.prototype.oncdata=function(e){var t,r,i,s,n,o;this.updatePosition(1);if(this.options.xmlMode||this.options.recognizeCDATA){(r=(t=this.cbs).oncdatastart)===null||r===void 0?void 0:r.call(t);(s=(i=this.cbs).ontext)===null||s===void 0?void 0:s.call(i,e);(o=(n=this.cbs).oncdataend)===null||o===void 0?void 0:o.call(n)}else{this.oncomment("[CDATA["+e+"]]")}};e.prototype.onerror=function(e){var t,r;(r=(t=this.cbs).onerror)===null||r===void 0?void 0:r.call(t,e)};e.prototype.onend=function(){var e,t;if(this.cbs.onclosetag){for(var r=this.stack.length;r>0;this.cbs.onclosetag(this.stack[--r]));}(t=(e=this.cbs).onend)===null||t===void 0?void 0:t.call(e)};e.prototype.reset=function(){var e,t,r,i;(t=(e=this.cbs).onreset)===null||t===void 0?void 0:t.call(e);this.tokenizer.reset();this.tagname="";this.attribname="";this.attribs=null;this.stack=[];(i=(r=this.cbs).onparserinit)===null||i===void 0?void 0:i.call(r,this)};e.prototype.parseComplete=function(e){this.reset();this.end(e)};e.prototype.write=function(e){this.tokenizer.write(e)};e.prototype.end=function(e){this.tokenizer.end(e)};e.prototype.pause=function(){this.tokenizer.pause()};e.prototype.resume=function(){this.tokenizer.resume()};e.prototype.parseChunk=function(e){this.write(e)};e.prototype.done=function(e){this.end(e)};return e}();t.Parser=h},39889:function(e,t,r){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var s=i(r(26));var n=i(r(59323));var o=i(r(29591));var a=i(r(2586));function l(e){return e===" "||e==="\n"||e==="\t"||e==="\f"||e==="\r"}function u(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"}function c(e,t,r){var i=e.toLowerCase();if(e===i){return function(e,s){if(s===i){e._state=t}else{e._state=r;e._index--}}}return function(s,n){if(n===i||n===e){s._state=t}else{s._state=r;s._index--}}}function f(e,t){var r=e.toLowerCase();return function(i,s){if(s===r||s===e){i._state=t}else{i._state=3;i._index--}}}var h=c("C",24,16);var p=c("D",25,16);var d=c("A",26,16);var m=c("T",27,16);var g=c("A",28,16);var b=f("R",35);var y=f("I",36);var v=f("P",37);var w=f("T",38);var x=c("R",40,1);var S=c("I",41,1);var _=c("P",42,1);var T=c("T",43,1);var O=f("Y",45);var C=f("L",46);var k=f("E",47);var A=c("Y",49,1);var E=c("L",50,1);var D=c("E",51,1);var P=f("I",54);var L=f("T",55);var M=f("L",56);var q=f("E",57);var N=c("I",58,1);var j=c("T",59,1);var I=c("L",60,1);var R=c("E",61,1);var B=c("#",63,64);var U=c("X",66,65);var F=function(){function e(e,t){var r;this._state=1;this.buffer="";this.sectionStart=0;this._index=0;this.bufferOffset=0;this.baseState=1;this.special=1;this.running=true;this.ended=false;this.cbs=t;this.xmlMode=!!(e===null||e===void 0?void 0:e.xmlMode);this.decodeEntities=(r=e===null||e===void 0?void 0:e.decodeEntities)!==null&&r!==void 0?r:true}e.prototype.reset=function(){this._state=1;this.buffer="";this.sectionStart=0;this._index=0;this.bufferOffset=0;this.baseState=1;this.special=1;this.running=true;this.ended=false};e.prototype.write=function(e){if(this.ended)this.cbs.onerror(Error(".write() after done!"));this.buffer+=e;this.parse()};e.prototype.end=function(e){if(this.ended)this.cbs.onerror(Error(".end() after done!"));if(e)this.write(e);this.ended=true;if(this.running)this.finish()};e.prototype.pause=function(){this.running=false};e.prototype.resume=function(){this.running=true;if(this._indexthis.sectionStart){this.cbs.ontext(this.getSection())}this._state=2;this.sectionStart=this._index}else if(this.decodeEntities&&e==="&"&&(this.special===1||this.special===4)){if(this._index>this.sectionStart){this.cbs.ontext(this.getSection())}this.baseState=1;this._state=62;this.sectionStart=this._index}};e.prototype.isTagStartChar=function(e){return u(e)||this.xmlMode&&!l(e)&&e!=="/"&&e!==">"};e.prototype.stateBeforeTagName=function(e){if(e==="/"){this._state=5}else if(e==="<"){this.cbs.ontext(this.getSection());this.sectionStart=this._index}else if(e===">"||this.special!==1||l(e)){this._state=1}else if(e==="!"){this._state=15;this.sectionStart=this._index+1}else if(e==="?"){this._state=17;this.sectionStart=this._index+1}else if(!this.isTagStartChar(e)){this._state=1}else{this._state=!this.xmlMode&&(e==="s"||e==="S")?32:!this.xmlMode&&(e==="t"||e==="T")?52:3;this.sectionStart=this._index}};e.prototype.stateInTagName=function(e){if(e==="/"||e===">"||l(e)){this.emitToken("onopentagname");this._state=8;this._index--}};e.prototype.stateBeforeClosingTagName=function(e){if(l(e)){}else if(e===">"){this._state=1}else if(this.special!==1){if(this.special!==4&&(e==="s"||e==="S")){this._state=33}else if(this.special===4&&(e==="t"||e==="T")){this._state=53}else{this._state=1;this._index--}}else if(!this.isTagStartChar(e)){this._state=20;this.sectionStart=this._index}else{this._state=6;this.sectionStart=this._index}};e.prototype.stateInClosingTagName=function(e){if(e===">"||l(e)){this.emitToken("onclosetag");this._state=7;this._index--}};e.prototype.stateAfterClosingTagName=function(e){if(e===">"){this._state=1;this.sectionStart=this._index+1}};e.prototype.stateBeforeAttributeName=function(e){if(e===">"){this.cbs.onopentagend();this._state=1;this.sectionStart=this._index+1}else if(e==="/"){this._state=4}else if(!l(e)){this._state=9;this.sectionStart=this._index}};e.prototype.stateInSelfClosingTag=function(e){if(e===">"){this.cbs.onselfclosingtag();this._state=1;this.sectionStart=this._index+1;this.special=1}else if(!l(e)){this._state=8;this._index--}};e.prototype.stateInAttributeName=function(e){if(e==="="||e==="/"||e===">"||l(e)){this.cbs.onattribname(this.getSection());this.sectionStart=-1;this._state=10;this._index--}};e.prototype.stateAfterAttributeName=function(e){if(e==="="){this._state=11}else if(e==="/"||e===">"){this.cbs.onattribend(undefined);this._state=8;this._index--}else if(!l(e)){this.cbs.onattribend(undefined);this._state=9;this.sectionStart=this._index}};e.prototype.stateBeforeAttributeValue=function(e){if(e==='"'){this._state=12;this.sectionStart=this._index+1}else if(e==="'"){this._state=13;this.sectionStart=this._index+1}else if(!l(e)){this._state=14;this.sectionStart=this._index;this._index--}};e.prototype.handleInAttributeValue=function(e,t){if(e===t){this.emitToken("onattribdata");this.cbs.onattribend(t);this._state=8}else if(this.decodeEntities&&e==="&"){this.emitToken("onattribdata");this.baseState=this._state;this._state=62;this.sectionStart=this._index}};e.prototype.stateInAttributeValueDoubleQuotes=function(e){this.handleInAttributeValue(e,'"')};e.prototype.stateInAttributeValueSingleQuotes=function(e){this.handleInAttributeValue(e,"'")};e.prototype.stateInAttributeValueNoQuotes=function(e){if(l(e)||e===">"){this.emitToken("onattribdata");this.cbs.onattribend(null);this._state=8;this._index--}else if(this.decodeEntities&&e==="&"){this.emitToken("onattribdata");this.baseState=this._state;this._state=62;this.sectionStart=this._index}};e.prototype.stateBeforeDeclaration=function(e){this._state=e==="["?23:e==="-"?18:16};e.prototype.stateInDeclaration=function(e){if(e===">"){this.cbs.ondeclaration(this.getSection());this._state=1;this.sectionStart=this._index+1}};e.prototype.stateInProcessingInstruction=function(e){if(e===">"){this.cbs.onprocessinginstruction(this.getSection());this._state=1;this.sectionStart=this._index+1}};e.prototype.stateBeforeComment=function(e){if(e==="-"){this._state=19;this.sectionStart=this._index+1}else{this._state=16}};e.prototype.stateInComment=function(e){if(e==="-")this._state=21};e.prototype.stateInSpecialComment=function(e){if(e===">"){this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index));this._state=1;this.sectionStart=this._index+1}};e.prototype.stateAfterComment1=function(e){if(e==="-"){this._state=22}else{this._state=19}};e.prototype.stateAfterComment2=function(e){if(e===">"){this.cbs.oncomment(this.buffer.substring(this.sectionStart,this._index-2));this._state=1;this.sectionStart=this._index+1}else if(e!=="-"){this._state=19}};e.prototype.stateBeforeCdata6=function(e){if(e==="["){this._state=29;this.sectionStart=this._index+1}else{this._state=16;this._index--}};e.prototype.stateInCdata=function(e){if(e==="]")this._state=30};e.prototype.stateAfterCdata1=function(e){if(e==="]")this._state=31;else this._state=29};e.prototype.stateAfterCdata2=function(e){if(e===">"){this.cbs.oncdata(this.buffer.substring(this.sectionStart,this._index-2));this._state=1;this.sectionStart=this._index+1}else if(e!=="]"){this._state=29}};e.prototype.stateBeforeSpecialS=function(e){if(e==="c"||e==="C"){this._state=34}else if(e==="t"||e==="T"){this._state=44}else{this._state=3;this._index--}};e.prototype.stateBeforeSpecialSEnd=function(e){if(this.special===2&&(e==="c"||e==="C")){this._state=39}else if(this.special===3&&(e==="t"||e==="T")){this._state=48}else this._state=1};e.prototype.stateBeforeSpecialLast=function(e,t){if(e==="/"||e===">"||l(e)){this.special=t}this._state=3;this._index--};e.prototype.stateAfterSpecialLast=function(e,t){if(e===">"||l(e)){this.special=1;this._state=6;this.sectionStart=this._index-t;this._index--}else this._state=1};e.prototype.parseFixedEntity=function(e){if(e===void 0){e=this.xmlMode?a.default:n.default}if(this.sectionStart+1=2){var r=this.buffer.substr(e,t);if(Object.prototype.hasOwnProperty.call(o.default,r)){this.emitPartial(o.default[r]);this.sectionStart+=t+1;return}t--}};e.prototype.stateInNamedEntity=function(e){if(e===";"){this.parseFixedEntity();if(this.baseState===1&&this.sectionStart+1"9")&&!u(e)){if(this.xmlMode||this.sectionStart+1===this._index){}else if(this.baseState!==1){if(e!=="="){this.parseFixedEntity(o.default)}}else{this.parseLegacyEntity()}this._state=this.baseState;this._index--}};e.prototype.decodeNumericEntity=function(e,t,r){var i=this.sectionStart+e;if(i!==this._index){var n=this.buffer.substring(i,this._index);var o=parseInt(n,t);this.emitPartial(s.default(o));this.sectionStart=r?this._index+1:this._index}this._state=this.baseState};e.prototype.stateInNumericEntity=function(e){if(e===";"){this.decodeNumericEntity(2,10,true)}else if(e<"0"||e>"9"){if(!this.xmlMode){this.decodeNumericEntity(2,10,false)}else{this._state=this.baseState}this._index--}};e.prototype.stateInHexEntity=function(e){if(e===";"){this.decodeNumericEntity(3,16,true)}else if((e<"a"||e>"f")&&(e<"A"||e>"F")&&(e<"0"||e>"9")){if(!this.xmlMode){this.decodeNumericEntity(3,16,false)}else{this._state=this.baseState}this._index--}};e.prototype.cleanup=function(){if(this.sectionStart<0){this.buffer="";this.bufferOffset+=this._index;this._index=0}else if(this.running){if(this._state===1){if(this.sectionStart!==this._index){this.cbs.ontext(this.buffer.substr(this.sectionStart))}this.buffer="";this.bufferOffset+=this._index;this._index=0}else if(this.sectionStart===this._index){this.buffer="";this.bufferOffset+=this._index;this._index=0}else{this.buffer=this.buffer.substr(this.sectionStart);this._index-=this.sectionStart;this.bufferOffset+=this.sectionStart}this.sectionStart=0}};e.prototype.parse=function(){while(this._index{"use strict";Object.defineProperty(t,"__esModule",{value:true});function r(e){return Object.prototype.toString.call(e)==="[object Object]"}function i(e){var t,i;if(r(e)===false)return false;t=e.constructor;if(t===undefined)return true;i=t.prototype;if(r(i)===false)return false;if(i.hasOwnProperty("isPrototypeOf")===false){return false}return true}t.isPlainObject=i},79430:function(e,t){var r,i,s;(function(n,o){if(true){!(i=[],r=o,s=typeof r==="function"?r.apply(t,i):r,s!==undefined&&(e.exports=s))}else{}})(this,(function(){return function(e){function t(e){return e===" "||e==="\t"||e==="\n"||e==="\f"||e==="\r"}function r(t){var r,i=t.exec(e.substring(m));if(i){r=i[0];m+=r.length;return r}}var i=e.length,s=/^[ \t\n\r\u000c]+/,n=/^[, \t\n\r\u000c]+/,o=/^[^ \t\n\r\u000c]+/,a=/[,]+$/,l=/^\d+$/,u=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,c,f,h,p,d,m=0,g=[];while(true){r(n);if(m>=i){return g}c=r(o);f=[];if(c.slice(-1)===","){c=c.replace(a,"");y()}else{b()}}function b(){r(s);h="";p="in descriptor";while(true){d=e.charAt(m);if(p==="in descriptor"){if(t(d)){if(h){f.push(h);h="";p="after descriptor"}}else if(d===","){m+=1;if(h){f.push(h)}y();return}else if(d==="("){h=h+d;p="in parens"}else if(d===""){if(h){f.push(h)}y();return}else{h=h+d}}else if(p==="in parens"){if(d===")"){h=h+d;p="in descriptor"}else if(d===""){f.push(h);y();return}else{h=h+d}}else if(p==="after descriptor"){if(t(d)){}else if(d===""){y();return}else{p="in descriptor";m-=1}}m+=1}}function y(){var t=false,r,i,s,n,o={},a,h,p,d,m;for(n=0;n{var t=String;var r=function(){return{isColorSupported:false,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t}};e.exports=r();e.exports.createColors=r},41353:(e,t,r)=>{"use strict";let i=r(21019);class s extends i{constructor(e){super(e);this.type="atrule"}append(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.append(...e)}prepend(...e){if(!this.proxyOf.nodes)this.nodes=[];return super.prepend(...e)}}e.exports=s;s.default=s;i.registerAtRule(s)},69932:(e,t,r)=>{"use strict";let i=r(65631);class s extends i{constructor(e){super(e);this.type="comment"}}e.exports=s;s.default=s},21019:(e,t,r)=>{"use strict";let{isClean:i,my:s}=r(65513);let n=r(94258);let o=r(69932);let a=r(65631);let l,u,c,f;function h(e){return e.map((e=>{if(e.nodes)e.nodes=h(e.nodes);delete e.source;return e}))}function p(e){e[i]=false;if(e.proxyOf.nodes){for(let t of e.proxyOf.nodes){p(t)}}}class d extends a{append(...e){for(let t of e){let e=this.normalize(t,this.last);for(let t of e)this.proxyOf.nodes.push(t)}this.markDirty();return this}cleanRaws(e){super.cleanRaws(e);if(this.nodes){for(let t of this.nodes)t.cleanRaws(e)}}each(e){if(!this.proxyOf.nodes)return undefined;let t=this.getIterator();let r,i;while(this.indexes[t]e[t](...r.map((e=>{if(typeof e==="function"){return(t,r)=>e(t.toProxy(),r)}else{return e}})))}else if(t==="every"||t==="some"){return r=>e[t](((e,...t)=>r(e.toProxy(),...t)))}else if(t==="root"){return()=>e.root().toProxy()}else if(t==="nodes"){return e.nodes.map((e=>e.toProxy()))}else if(t==="first"||t==="last"){return e[t].toProxy()}else{return e[t]}},set(e,t,r){if(e[t]===r)return true;e[t]=r;if(t==="name"||t==="params"||t==="selector"){e.markDirty()}return true}}}index(e){if(typeof e==="number")return e;if(e.proxyOf)e=e.proxyOf;return this.proxyOf.nodes.indexOf(e)}insertAfter(e,t){let r=this.index(e);let i=this.normalize(t,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let n of i)this.proxyOf.nodes.splice(r+1,0,n);let s;for(let n in this.indexes){s=this.indexes[n];if(r{if(!e[s])d.rebuild(e);e=e.proxyOf;if(e.parent)e.parent.removeChild(e);if(e[i])p(e);if(typeof e.raws.before==="undefined"){if(t&&typeof t.raws.before!=="undefined"){e.raws.before=t.raws.before.replace(/\S/g,"")}}e.parent=this.proxyOf;return e}));return r}prepend(...e){e=e.reverse();for(let t of e){let e=this.normalize(t,this.first,"prepend").reverse();for(let t of e)this.proxyOf.nodes.unshift(t);for(let t in this.indexes){this.indexes[t]=this.indexes[t]+e.length}}this.markDirty();return this}push(e){e.parent=this;this.proxyOf.nodes.push(e);return this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=undefined;this.proxyOf.nodes=[];this.markDirty();return this}removeChild(e){e=this.index(e);this.proxyOf.nodes[e].parent=undefined;this.proxyOf.nodes.splice(e,1);let t;for(let r in this.indexes){t=this.indexes[r];if(t>=e){this.indexes[r]=t-1}}this.markDirty();return this}replaceValues(e,t,r){if(!r){r=t;t={}}this.walkDecls((i=>{if(t.props&&!t.props.includes(i.prop))return;if(t.fast&&!i.value.includes(t.fast))return;i.value=i.value.replace(e,r)}));this.markDirty();return this}some(e){return this.nodes.some(e)}walk(e){return this.each(((t,r)=>{let i;try{i=e(t,r)}catch(s){throw t.addToError(s)}if(i!==false&&t.walk){i=t.walk(e)}return i}))}walkAtRules(e,t){if(!t){t=e;return this.walk(((e,r)=>{if(e.type==="atrule"){return t(e,r)}}))}if(e instanceof RegExp){return this.walk(((r,i)=>{if(r.type==="atrule"&&e.test(r.name)){return t(r,i)}}))}return this.walk(((r,i)=>{if(r.type==="atrule"&&r.name===e){return t(r,i)}}))}walkComments(e){return this.walk(((t,r)=>{if(t.type==="comment"){return e(t,r)}}))}walkDecls(e,t){if(!t){t=e;return this.walk(((e,r)=>{if(e.type==="decl"){return t(e,r)}}))}if(e instanceof RegExp){return this.walk(((r,i)=>{if(r.type==="decl"&&e.test(r.prop)){return t(r,i)}}))}return this.walk(((r,i)=>{if(r.type==="decl"&&r.prop===e){return t(r,i)}}))}walkRules(e,t){if(!t){t=e;return this.walk(((e,r)=>{if(e.type==="rule"){return t(e,r)}}))}if(e instanceof RegExp){return this.walk(((r,i)=>{if(r.type==="rule"&&e.test(r.selector)){return t(r,i)}}))}return this.walk(((r,i)=>{if(r.type==="rule"&&r.selector===e){return t(r,i)}}))}get first(){if(!this.proxyOf.nodes)return undefined;return this.proxyOf.nodes[0]}get last(){if(!this.proxyOf.nodes)return undefined;return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}}d.registerParse=e=>{l=e};d.registerRule=e=>{u=e};d.registerAtRule=e=>{c=e};d.registerRoot=e=>{f=e};e.exports=d;d.default=d;d.rebuild=e=>{if(e.type==="atrule"){Object.setPrototypeOf(e,c.prototype)}else if(e.type==="rule"){Object.setPrototypeOf(e,u.prototype)}else if(e.type==="decl"){Object.setPrototypeOf(e,n.prototype)}else if(e.type==="comment"){Object.setPrototypeOf(e,o.prototype)}else if(e.type==="root"){Object.setPrototypeOf(e,f.prototype)}e[s]=true;if(e.nodes){e.nodes.forEach((e=>{d.rebuild(e)}))}}},42671:(e,t,r)=>{"use strict";let i=r(74241);let s=r(22868);class n extends Error{constructor(e,t,r,i,s,o){super(e);this.name="CssSyntaxError";this.reason=e;if(s){this.file=s}if(i){this.source=i}if(o){this.plugin=o}if(typeof t!=="undefined"&&typeof r!=="undefined"){if(typeof t==="number"){this.line=t;this.column=r}else{this.line=t.line;this.column=t.column;this.endLine=r.line;this.endColumn=r.column}}this.setMessage();if(Error.captureStackTrace){Error.captureStackTrace(this,n)}}setMessage(){this.message=this.plugin?this.plugin+": ":"";this.message+=this.file?this.file:"";if(typeof this.line!=="undefined"){this.message+=":"+this.line+":"+this.column}this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let t=this.source;if(e==null)e=i.isColorSupported;if(s){if(e)t=s(t)}let r=t.split(/\r?\n/);let n=Math.max(this.line-3,0);let o=Math.min(this.line+2,r.length);let a=String(o).length;let l,u;if(e){let{bold:e,gray:t,red:r}=i.createColors(true);l=t=>e(r(t));u=e=>t(e)}else{l=u=e=>e}return r.slice(n,o).map(((e,t)=>{let r=n+1+t;let i=" "+(" "+r).slice(-a)+" | ";if(r===this.line){let t=u(i.replace(/\d/g," "))+e.slice(0,this.column-1).replace(/[^\t]/g," ");return l(">")+u(i)+e+"\n "+t+l("^")}return" "+u(i)+e})).join("\n")}toString(){let e=this.showSourceCode();if(e){e="\n\n"+e+"\n"}return this.name+": "+this.message+e}}e.exports=n;n.default=n},94258:(e,t,r)=>{"use strict";let i=r(65631);class s extends i{constructor(e){if(e&&typeof e.value!=="undefined"&&typeof e.value!=="string"){e={...e,value:String(e.value)}}super(e);this.type="decl"}get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}}e.exports=s;s.default=s},26461:(e,t,r)=>{"use strict";let i=r(21019);let s,n;class o extends i{constructor(e){super({type:"document",...e});if(!this.nodes){this.nodes=[]}}toResult(e={}){let t=new s(new n,this,e);return t.stringify()}}o.registerLazyResult=e=>{s=e};o.registerProcessor=e=>{n=e};e.exports=o;o.default=o},50250:(e,t,r)=>{"use strict";let i=r(94258);let s=r(47981);let n=r(69932);let o=r(41353);let a=r(5995);let l=r(41025);let u=r(31675);function c(e,t){if(Array.isArray(e))return e.map((e=>c(e)));let{inputs:r,...f}=e;if(r){t=[];for(let e of r){let r={...e,__proto__:a.prototype};if(r.map){r.map={...r.map,__proto__:s.prototype}}t.push(r)}}if(f.nodes){f.nodes=e.nodes.map((e=>c(e,t)))}if(f.source){let{inputId:e,...r}=f.source;f.source=r;if(e!=null){f.source.input=t[e]}}if(f.type==="root"){return new l(f)}else if(f.type==="decl"){return new i(f)}else if(f.type==="rule"){return new u(f)}else if(f.type==="comment"){return new n(f)}else if(f.type==="atrule"){return new o(f)}else{throw new Error("Unknown node type: "+e.type)}}e.exports=c;c.default=c},5995:(e,t,r)=>{"use strict";let{SourceMapConsumer:i,SourceMapGenerator:s}=r(70209);let{fileURLToPath:n,pathToFileURL:o}=r(87414);let{isAbsolute:a,resolve:l}=r(99830);let{nanoid:u}=r(62961);let c=r(22868);let f=r(42671);let h=r(47981);let p=Symbol("fromOffsetCache");let d=Boolean(i&&s);let m=Boolean(l&&a);class g{constructor(e,t={}){if(e===null||typeof e==="undefined"||typeof e==="object"&&!e.toString){throw new Error(`PostCSS received ${e} instead of CSS string`)}this.css=e.toString();if(this.css[0]==="\ufeff"||this.css[0]==="￾"){this.hasBOM=true;this.css=this.css.slice(1)}else{this.hasBOM=false}if(t.from){if(!m||/^\w+:\/\//.test(t.from)||a(t.from)){this.file=t.from}else{this.file=l(t.from)}}if(m&&d){let e=new h(this.css,t);if(e.text){this.map=e;let t=e.consumer().file;if(!this.file&&t)this.file=this.mapResolve(t)}}if(!this.file){this.id=""}if(this.map)this.map.file=this.from}error(e,t,r,i={}){let s,n,a;if(t&&typeof t==="object"){let e=t;let i=r;if(typeof e.offset==="number"){let i=this.fromOffset(e.offset);t=i.line;r=i.col}else{t=e.line;r=e.column}if(typeof i.offset==="number"){let e=this.fromOffset(i.offset);n=e.line;a=e.col}else{n=i.line;a=i.column}}else if(!r){let e=this.fromOffset(t);t=e.line;r=e.col}let l=this.origin(t,r,n,a);if(l){s=new f(e,l.endLine===undefined?l.line:{column:l.column,line:l.line},l.endLine===undefined?l.column:{column:l.endColumn,line:l.endLine},l.source,l.file,i.plugin)}else{s=new f(e,n===undefined?t:{column:r,line:t},n===undefined?r:{column:a,line:n},this.css,this.file,i.plugin)}s.input={column:r,endColumn:a,endLine:n,line:t,source:this.css};if(this.file){if(o){s.input.url=o(this.file).toString()}s.input.file=this.file}return s}fromOffset(e){let t,r;if(!this[p]){let e=this.css.split("\n");r=new Array(e.length);let t=0;for(let i=0,s=e.length;i=t){i=r.length-1}else{let t=r.length-2;let s;while(i>1);if(e=r[s+1]){i=s+1}else{i=s;break}}}return{col:e-r[i]+1,line:i+1}}mapResolve(e){if(/^\w+:\/\//.test(e)){return e}return l(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,t,r,i){if(!this.map)return false;let s=this.map.consumer();let l=s.originalPositionFor({column:t,line:e});if(!l.source)return false;let u;if(typeof r==="number"){u=s.originalPositionFor({column:i,line:r})}let c;if(a(l.source)){c=o(l.source)}else{c=new URL(l.source,this.map.consumer().sourceRoot||o(this.map.mapFile))}let f={column:l.column,endColumn:u&&u.column,endLine:u&&u.line,line:l.line,url:c.toString()};if(c.protocol==="file:"){if(n){f.file=n(c)}else{throw new Error(`file: protocol is not available in this PostCSS build`)}}let h=s.sourceContentFor(l.source);if(h)f.source=h;return f}toJSON(){let e={};for(let t of["hasBOM","css","file","id"]){if(this[t]!=null){e[t]=this[t]}}if(this.map){e.map={...this.map};if(e.map.consumerCache){e.map.consumerCache=undefined}}return e}get from(){return this.file||this.id}}e.exports=g;g.default=g;if(c&&c.registerInput){c.registerInput(g)}},21939:(e,t,r)=>{"use strict";let{isClean:i,my:s}=r(65513);let n=r(48505);let o=r(67088);let a=r(21019);let l=r(26461);let u=r(72448);let c=r(83632);let f=r(66939);let h=r(41025);const p={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"};const d={AtRule:true,AtRuleExit:true,Comment:true,CommentExit:true,Declaration:true,DeclarationExit:true,Document:true,DocumentExit:true,Once:true,OnceExit:true,postcssPlugin:true,prepare:true,Root:true,RootExit:true,Rule:true,RuleExit:true};const m={Once:true,postcssPlugin:true,prepare:true};const g=0;function b(e){return typeof e==="object"&&typeof e.then==="function"}function y(e){let t=false;let r=p[e.type];if(e.type==="decl"){t=e.prop.toLowerCase()}else if(e.type==="atrule"){t=e.name.toLowerCase()}if(t&&e.append){return[r,r+"-"+t,g,r+"Exit",r+"Exit-"+t]}else if(t){return[r,r+"-"+t,r+"Exit",r+"Exit-"+t]}else if(e.append){return[r,g,r+"Exit"]}else{return[r,r+"Exit"]}}function v(e){let t;if(e.type==="document"){t=["Document",g,"DocumentExit"]}else if(e.type==="root"){t=["Root",g,"RootExit"]}else{t=y(e)}return{eventIndex:0,events:t,iterator:0,node:e,visitorIndex:0,visitors:[]}}function w(e){e[i]=false;if(e.nodes)e.nodes.forEach((e=>w(e)));return e}let x={};class S{constructor(e,t,r){this.stringified=false;this.processed=false;let i;if(typeof t==="object"&&t!==null&&(t.type==="root"||t.type==="document")){i=w(t)}else if(t instanceof S||t instanceof c){i=w(t.root);if(t.map){if(typeof r.map==="undefined")r.map={};if(!r.map.inline)r.map.inline=false;r.map.prev=t.map}}else{let e=f;if(r.syntax)e=r.syntax.parse;if(r.parser)e=r.parser;if(e.parse)e=e.parse;try{i=e(t,r)}catch(n){this.processed=true;this.error=n}if(i&&!i[s]){a.rebuild(i)}}this.result=new c(e,i,r);this.helpers={...x,postcss:x,result:this.result};this.plugins=this.processor.plugins.map((e=>{if(typeof e==="object"&&e.prepare){return{...e,...e.prepare(this.result)}}else{return e}}))}async(){if(this.error)return Promise.reject(this.error);if(this.processed)return Promise.resolve(this.result);if(!this.processing){this.processing=this.runAsync()}return this.processing}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,t){let r=this.result.lastPlugin;try{if(t)t.addToError(e);this.error=e;if(e.name==="CssSyntaxError"&&!e.plugin){e.plugin=r.postcssPlugin;e.setMessage()}else if(r.postcssVersion){if(false){}}}catch(i){if(console&&console.error)console.error(i)}return e}prepareVisitors(){this.listeners={};let e=(e,t,r)=>{if(!this.listeners[t])this.listeners[t]=[];this.listeners[t].push([e,r])};for(let t of this.plugins){if(typeof t==="object"){for(let r in t){if(!d[r]&&/^[A-Z]/.test(r)){throw new Error(`Unknown event ${r} in ${t.postcssPlugin}. `+`Try to update PostCSS (${this.processor.version} now).`)}if(!m[r]){if(typeof t[r]==="object"){for(let i in t[r]){if(i==="*"){e(t,r,t[r][i])}else{e(t,r+"-"+i.toLowerCase(),t[r][i])}}}else if(typeof t[r]==="function"){e(t,r,t[r])}}}}}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let r=0;r0){let e=this.visitTick(r);if(b(e)){try{await e}catch(t){let e=r[r.length-1].node;throw this.handleError(t,e)}}}}if(this.listeners.OnceExit){for(let[r,i]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let t=e.nodes.map((e=>i(e,this.helpers)));await Promise.all(t)}else{await i(e,this.helpers)}}catch(t){throw this.handleError(t)}}}}this.processed=true;return this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e==="object"&&e.Once){if(this.result.root.type==="document"){let t=this.result.root.nodes.map((t=>e.Once(t,this.helpers)));if(b(t[0])){return Promise.all(t)}return t}return e.Once(this.result.root,this.helpers)}else if(typeof e==="function"){return e(this.result.root,this.result)}}catch(t){throw this.handleError(t)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=true;this.sync();let e=this.result.opts;let t=o;if(e.syntax)t=e.syntax.stringify;if(e.stringifier)t=e.stringifier;if(t.stringify)t=t.stringify;let r=new n(t,this.result.root,this.result.opts);let i=r.generate();this.result.css=i[0];this.result.map=i[1];return this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;this.processed=true;if(this.processing){throw this.getAsyncError()}for(let e of this.plugins){let t=this.runOnRoot(e);if(b(t)){throw this.getAsyncError()}}this.prepareVisitors();if(this.hasListener){let e=this.result.root;while(!e[i]){e[i]=true;this.walkSync(e)}if(this.listeners.OnceExit){if(e.type==="document"){for(let t of e.nodes){this.visitSync(this.listeners.OnceExit,t)}}else{this.visitSync(this.listeners.OnceExit,e)}}}return this.result}then(e,t){if(false){}return this.async().then(e,t)}toString(){return this.css}visitSync(e,t){for(let[i,s]of e){this.result.lastPlugin=i;let e;try{e=s(t,this.helpers)}catch(r){throw this.handleError(r,t.proxyOf)}if(t.type!=="root"&&t.type!=="document"&&!t.parent){return true}if(b(e)){throw this.getAsyncError()}}}visitTick(e){let t=e[e.length-1];let{node:r,visitors:s}=t;if(r.type!=="root"&&r.type!=="document"&&!r.parent){e.pop();return}if(s.length>0&&t.visitorIndex{if(!e[i])this.walkSync(e)}))}}else{let t=this.listeners[r];if(t){if(this.visitSync(t,e.toProxy()))return}}}}warnings(){return this.sync().warnings()}get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}}S.registerPostcss=e=>{x=e};e.exports=S;S.default=S;h.registerLazyResult(S);l.registerLazyResult(S)},54715:e=>{"use strict";let t={comma(e){return t.split(e,[","],true)},space(e){let r=[" ","\n","\t"];return t.split(e,r)},split(e,t,r){let i=[];let s="";let n=false;let o=0;let a=false;let l="";let u=false;for(let c of e){if(u){u=false}else if(c==="\\"){u=true}else if(a){if(c===l){a=false}}else if(c==='"'||c==="'"){a=true;l=c}else if(c==="("){o+=1}else if(c===")"){if(o>0)o-=1}else if(o===0){if(t.includes(c))n=true}if(n){if(s!=="")i.push(s.trim());s="";n=false}else{s+=c}}if(r||s!=="")i.push(s.trim());return i}};e.exports=t;t.default=t},48505:(e,t,r)=>{"use strict";let{SourceMapConsumer:i,SourceMapGenerator:s}=r(70209);let{dirname:n,relative:o,resolve:a,sep:l}=r(99830);let{pathToFileURL:u}=r(87414);let c=r(5995);let f=Boolean(i&&s);let h=Boolean(n&&a&&o&&l);class p{constructor(e,t,r,i){this.stringify=e;this.mapOpts=r.map||{};this.root=t;this.opts=r;this.css=i;this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute;this.memoizedFileURLs=new Map;this.memoizedPaths=new Map;this.memoizedURLs=new Map}addAnnotation(){let e;if(this.isInline()){e="data:application/json;base64,"+this.toBase64(this.map.toString())}else if(typeof this.mapOpts.annotation==="string"){e=this.mapOpts.annotation}else if(typeof this.mapOpts.annotation==="function"){e=this.mapOpts.annotation(this.opts.to,this.root)}else{e=this.outputFile()+".map"}let t="\n";if(this.css.includes("\r\n"))t="\r\n";this.css+=t+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let t=this.toUrl(this.path(e.file));let r=e.root||n(e.file);let s;if(this.mapOpts.sourcesContent===false){s=new i(e.text);if(s.sourcesContent){s.sourcesContent=s.sourcesContent.map((()=>null))}}else{s=e.consumer()}this.map.applySourceMap(s,t,this.toUrl(this.path(r)))}}clearAnnotation(){if(this.mapOpts.annotation===false)return;if(this.root){let e;for(let t=this.root.nodes.length-1;t>=0;t--){e=this.root.nodes[t];if(e.type!=="comment")continue;if(e.text.indexOf("# sourceMappingURL=")===0){this.root.removeChild(t)}}}else if(this.css){this.css=this.css.replace(/(\n)?\/\*#[\S\s]*?\*\/$/gm,"")}}generate(){this.clearAnnotation();if(h&&f&&this.isMap()){return this.generateMap()}else{let e="";this.stringify(this.root,(t=>{e+=t}));return[e]}}generateMap(){if(this.root){this.generateString()}else if(this.previous().length===1){let e=this.previous()[0].consumer();e.file=this.outputFile();this.map=s.fromSourceMap(e)}else{this.map=new s({file:this.outputFile()});this.map.addMapping({generated:{column:0,line:1},original:{column:0,line:1},source:this.opts.from?this.toUrl(this.path(this.opts.from)):""})}if(this.isSourcesContent())this.setSourcesContent();if(this.root&&this.previous().length>0)this.applyPrevMaps();if(this.isAnnotation())this.addAnnotation();if(this.isInline()){return[this.css]}else{return[this.css,this.map]}}generateString(){this.css="";this.map=new s({file:this.outputFile()});let e=1;let t=1;let r="";let i={generated:{column:0,line:0},original:{column:0,line:0},source:""};let n,o;this.stringify(this.root,((s,a,l)=>{this.css+=s;if(a&&l!=="end"){i.generated.line=e;i.generated.column=t-1;if(a.source&&a.source.start){i.source=this.sourcePath(a);i.original.line=a.source.start.line;i.original.column=a.source.start.column-1;this.map.addMapping(i)}else{i.source=r;i.original.line=1;i.original.column=0;this.map.addMapping(i)}}n=s.match(/\n/g);if(n){e+=n.length;o=s.lastIndexOf("\n");t=s.length-o}else{t+=s.length}if(a&&l!=="start"){let s=a.parent||{raws:{}};let n=a.type==="decl"||a.type==="atrule"&&!a.nodes;if(!n||a!==s.last||s.raws.semicolon){if(a.source&&a.source.end){i.source=this.sourcePath(a);i.original.line=a.source.end.line;i.original.column=a.source.end.column-1;i.generated.line=e;i.generated.column=t-2;this.map.addMapping(i)}else{i.source=r;i.original.line=1;i.original.column=0;i.generated.line=e;i.generated.column=t-1;this.map.addMapping(i)}}}}))}isAnnotation(){if(this.isInline()){return true}if(typeof this.mapOpts.annotation!=="undefined"){return this.mapOpts.annotation}if(this.previous().length){return this.previous().some((e=>e.annotation))}return true}isInline(){if(typeof this.mapOpts.inline!=="undefined"){return this.mapOpts.inline}let e=this.mapOpts.annotation;if(typeof e!=="undefined"&&e!==true){return false}if(this.previous().length){return this.previous().some((e=>e.inline))}return true}isMap(){if(typeof this.opts.map!=="undefined"){return!!this.opts.map}return this.previous().length>0}isSourcesContent(){if(typeof this.mapOpts.sourcesContent!=="undefined"){return this.mapOpts.sourcesContent}if(this.previous().length){return this.previous().some((e=>e.withContent()))}return true}outputFile(){if(this.opts.to){return this.path(this.opts.to)}else if(this.opts.from){return this.path(this.opts.from)}else{return"to.css"}}path(e){if(this.mapOpts.absolute)return e;if(e.charCodeAt(0)===60)return e;if(/^\w+:\/\//.test(e))return e;let t=this.memoizedPaths.get(e);if(t)return t;let r=this.opts.to?n(this.opts.to):".";if(typeof this.mapOpts.annotation==="string"){r=n(a(r,this.mapOpts.annotation))}let i=o(r,e);this.memoizedPaths.set(e,i);return i}previous(){if(!this.previousMaps){this.previousMaps=[];if(this.root){this.root.walk((e=>{if(e.source&&e.source.input.map){let t=e.source.input.map;if(!this.previousMaps.includes(t)){this.previousMaps.push(t)}}}))}else{let e=new c(this.css,this.opts);if(e.map)this.previousMaps.push(e.map)}}return this.previousMaps}setSourcesContent(){let e={};if(this.root){this.root.walk((t=>{if(t.source){let r=t.source.input.from;if(r&&!e[r]){e[r]=true;let i=this.usesFileUrls?this.toFileUrl(r):this.toUrl(this.path(r));this.map.setSourceContent(i,t.source.input.css)}}}))}else if(this.css){let e=this.opts.from?this.toUrl(this.path(this.opts.from)):"";this.map.setSourceContent(e,this.css)}}sourcePath(e){if(this.mapOpts.from){return this.toUrl(this.mapOpts.from)}else if(this.usesFileUrls){return this.toFileUrl(e.source.input.from)}else{return this.toUrl(this.path(e.source.input.from))}}toBase64(e){if(Buffer){return Buffer.from(e).toString("base64")}else{return window.btoa(unescape(encodeURIComponent(e)))}}toFileUrl(e){let t=this.memoizedFileURLs.get(e);if(t)return t;if(u){let t=u(e).toString();this.memoizedFileURLs.set(e,t);return t}else{throw new Error("`map.absolute` option is not available in this PostCSS build")}}toUrl(e){let t=this.memoizedURLs.get(e);if(t)return t;if(l==="\\"){e=e.replace(/\\/g,"/")}let r=encodeURI(e).replace(/[#?]/g,encodeURIComponent);this.memoizedURLs.set(e,r);return r}}e.exports=p},47647:(e,t,r)=>{"use strict";let i=r(48505);let s=r(67088);let n=r(72448);let o=r(66939);const a=r(83632);class l{constructor(e,t,r){t=t.toString();this.stringified=false;this._processor=e;this._css=t;this._opts=r;this._map=undefined;let n;let o=s;this.result=new a(this._processor,n,this._opts);this.result.css=t;let l=this;Object.defineProperty(this.result,"root",{get(){return l.root}});let u=new i(o,n,this._opts,t);if(u.isMap()){let[e,t]=u.generate();if(e){this.result.css=e}if(t){this.result.map=t}}}async(){if(this.error)return Promise.reject(this.error);return Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,t){if(false){}return this.async().then(e,t)}toString(){return this._css}warnings(){return[]}get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root){return this._root}let e;let t=o;try{e=t(this._css,this._opts)}catch(r){this.error=r}if(this.error){throw this.error}else{this._root=e;return e}}get[Symbol.toStringTag](){return"NoWorkResult"}}e.exports=l;l.default=l},65631:(e,t,r)=>{"use strict";let{isClean:i,my:s}=r(65513);let n=r(42671);let o=r(1062);let a=r(67088);function l(e,t){let r=new e.constructor;for(let i in e){if(!Object.prototype.hasOwnProperty.call(e,i)){continue}if(i==="proxyCache")continue;let s=e[i];let n=typeof s;if(i==="parent"&&n==="object"){if(t)r[i]=t}else if(i==="source"){r[i]=s}else if(Array.isArray(s)){r[i]=s.map((e=>l(e,r)))}else{if(n==="object"&&s!==null)s=l(s);r[i]=s}}return r}class u{constructor(e={}){this.raws={};this[i]=false;this[s]=true;for(let t in e){if(t==="nodes"){this.nodes=[];for(let r of e[t]){if(typeof r.clone==="function"){this.append(r.clone())}else{this.append(r)}}}else{this[t]=e[t]}}}addToError(e){e.postcssNode=this;if(e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let t=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${t.input.from}:${t.start.line}:${t.start.column}$&`)}return e}after(e){this.parent.insertAfter(this,e);return this}assign(e={}){for(let t in e){this[t]=e[t]}return this}before(e){this.parent.insertBefore(this,e);return this}cleanRaws(e){delete this.raws.before;delete this.raws.after;if(!e)delete this.raws.between}clone(e={}){let t=l(this);for(let r in e){t[r]=e[r]}return t}cloneAfter(e={}){let t=this.clone(e);this.parent.insertAfter(this,t);return t}cloneBefore(e={}){let t=this.clone(e);this.parent.insertBefore(this,t);return t}error(e,t={}){if(this.source){let{end:r,start:i}=this.rangeBy(t);return this.source.input.error(e,{column:i.column,line:i.line},{column:r.column,line:r.line},t)}return new n(e)}getProxyProcessor(){return{get(e,t){if(t==="proxyOf"){return e}else if(t==="root"){return()=>e.root().toProxy()}else{return e[t]}},set(e,t,r){if(e[t]===r)return true;e[t]=r;if(t==="prop"||t==="value"||t==="name"||t==="params"||t==="important"||t==="text"){e.markDirty()}return true}}}markDirty(){if(this[i]){this[i]=false;let e=this;while(e=e.parent){e[i]=false}}}next(){if(!this.parent)return undefined;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e,t){let r=this.source.start;if(e.index){r=this.positionInside(e.index,t)}else if(e.word){t=this.toString();let i=t.indexOf(e.word);if(i!==-1)r=this.positionInside(i,t)}return r}positionInside(e,t){let r=t||this.toString();let i=this.source.start.column;let s=this.source.start.line;for(let n=0;n{if(typeof e==="object"&&e.toJSON){return e.toJSON(null,t)}else{return e}}))}else if(typeof e==="object"&&e.toJSON){r[n]=e.toJSON(null,t)}else if(n==="source"){let i=t.get(e.input);if(i==null){i=s;t.set(e.input,s);s++}r[n]={end:e.end,inputId:i,start:e.start}}else{r[n]=e}}if(i){r.inputs=[...t.keys()].map((e=>e.toJSON()))}return r}toProxy(){if(!this.proxyCache){this.proxyCache=new Proxy(this,this.getProxyProcessor())}return this.proxyCache}toString(e=a){if(e.stringify)e=e.stringify;let t="";e(this,(e=>{t+=e}));return t}warn(e,t,r){let i={node:this};for(let s in r)i[s]=r[s];return e.warn(t,i)}get proxyOf(){return this}}e.exports=u;u.default=u},66939:(e,t,r)=>{"use strict";let i=r(21019);let s=r(68867);let n=r(5995);function o(e,t){let r=new n(e,t);let i=new s(r);try{i.parse()}catch(o){if(false){}throw o}return i.root}e.exports=o;o.default=o;i.registerParse(o)},68867:(e,t,r)=>{"use strict";let i=r(94258);let s=r(83852);let n=r(69932);let o=r(41353);let a=r(41025);let l=r(31675);const u={empty:true,space:true};function c(e){for(let t=e.length-1;t>=0;t--){let r=e[t];let i=r[3]||r[2];if(i)return i}}class f{constructor(e){this.input=e;this.root=new a;this.current=this.root;this.spaces="";this.semicolon=false;this.customProperty=false;this.createTokenizer();this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let t=new o;t.name=e[1].slice(1);if(t.name===""){this.unnamedAtrule(t,e)}this.init(t,e[2]);let r;let i;let s;let n=false;let a=false;let l=[];let u=[];while(!this.tokenizer.endOfFile()){e=this.tokenizer.nextToken();r=e[0];if(r==="("||r==="["){u.push(r==="("?")":"]")}else if(r==="{"&&u.length>0){u.push("}")}else if(r===u[u.length-1]){u.pop()}if(u.length===0){if(r===";"){t.source.end=this.getPosition(e[2]);t.source.end.offset++;this.semicolon=true;break}else if(r==="{"){a=true;break}else if(r==="}"){if(l.length>0){s=l.length-1;i=l[s];while(i&&i[0]==="space"){i=l[--s]}if(i){t.source.end=this.getPosition(i[3]||i[2]);t.source.end.offset++}}this.end(e);break}else{l.push(e)}}else{l.push(e)}if(this.tokenizer.endOfFile()){n=true;break}}t.raws.between=this.spacesAndCommentsFromEnd(l);if(l.length){t.raws.afterName=this.spacesAndCommentsFromStart(l);this.raw(t,"params",l);if(n){e=l[l.length-1];t.source.end=this.getPosition(e[3]||e[2]);t.source.end.offset++;this.spaces=t.raws.between;t.raws.between=""}}else{t.raws.afterName="";t.params=""}if(a){t.nodes=[];this.current=t}}checkMissedSemicolon(e){let t=this.colon(e);if(t===false)return;let r=0;let i;for(let s=t-1;s>=0;s--){i=e[s];if(i[0]!=="space"){r+=1;if(r===2)break}}throw this.input.error("Missed semicolon",i[0]==="word"?i[3]+1:i[2])}colon(e){let t=0;let r,i,s;for(let[n,o]of e.entries()){r=o;i=r[0];if(i==="("){t+=1}if(i===")"){t-=1}if(t===0&&i===":"){if(!s){this.doubleColon(r)}else if(s[0]==="word"&&s[1]==="progid"){continue}else{return n}}s=r}return false}comment(e){let t=new n;this.init(t,e[2]);t.source.end=this.getPosition(e[3]||e[2]);t.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r)){t.text="";t.raws.left=r;t.raws.right=""}else{let e=r.match(/^(\s*)([^]*\S)(\s*)$/);t.text=e[2];t.raws.left=e[1];t.raws.right=e[3]}}createTokenizer(){this.tokenizer=s(this.input)}decl(e,t){let r=new i;this.init(r,e[0][2]);let s=e[e.length-1];if(s[0]===";"){this.semicolon=true;e.pop()}r.source.end=this.getPosition(s[3]||s[2]||c(e));r.source.end.offset++;while(e[0][0]!=="word"){if(e.length===1)this.unknownWord(e);r.raws.before+=e.shift()[1]}r.source.start=this.getPosition(e[0][2]);r.prop="";while(e.length){let t=e[0][0];if(t===":"||t==="space"||t==="comment"){break}r.prop+=e.shift()[1]}r.raws.between="";let n;while(e.length){n=e.shift();if(n[0]===":"){r.raws.between+=n[1];break}else{if(n[0]==="word"&&/\w/.test(n[1])){this.unknownWord([n])}r.raws.between+=n[1]}}if(r.prop[0]==="_"||r.prop[0]==="*"){r.raws.before+=r.prop[0];r.prop=r.prop.slice(1)}let o=[];let a;while(e.length){a=e[0][0];if(a!=="space"&&a!=="comment")break;o.push(e.shift())}this.precheckMissedSemicolon(e);for(let i=e.length-1;i>=0;i--){n=e[i];if(n[1].toLowerCase()==="!important"){r.important=true;let t=this.stringFrom(e,i);t=this.spacesFromEnd(e)+t;if(t!==" !important")r.raws.important=t;break}else if(n[1].toLowerCase()==="important"){let t=e.slice(0);let s="";for(let e=i;e>0;e--){let r=t[e][0];if(s.trim().indexOf("!")===0&&r!=="space"){break}s=t.pop()[1]+s}if(s.trim().indexOf("!")===0){r.important=true;r.raws.important=s;e=t}}if(n[0]!=="space"&&n[0]!=="comment"){break}}let l=e.some((e=>e[0]!=="space"&&e[0]!=="comment"));if(l){r.raws.between+=o.map((e=>e[1])).join("");o=[]}this.raw(r,"value",o.concat(e),t);if(r.value.includes(":")&&!t){this.checkMissedSemicolon(e)}}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let t=new l;this.init(t,e[2]);t.selector="";t.raws.between="";this.current=t}end(e){if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.semicolon=false;this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.spaces="";if(this.current.parent){this.current.source.end=this.getPosition(e[2]);this.current.source.end.offset++;this.current=this.current.parent}else{this.unexpectedClose(e)}}endFile(){if(this.current.parent)this.unclosedBlock();if(this.current.nodes&&this.current.nodes.length){this.current.raws.semicolon=this.semicolon}this.current.raws.after=(this.current.raws.after||"")+this.spaces;this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){this.spaces+=e[1];if(this.current.nodes){let e=this.current.nodes[this.current.nodes.length-1];if(e&&e.type==="rule"&&!e.raws.ownSemicolon){e.raws.ownSemicolon=this.spaces;this.spaces=""}}}getPosition(e){let t=this.input.fromOffset(e);return{column:t.col,line:t.line,offset:e}}init(e,t){this.current.push(e);e.source={input:this.input,start:this.getPosition(t)};e.raws.before=this.spaces;this.spaces="";if(e.type!=="comment")this.semicolon=false}other(e){let t=false;let r=null;let i=false;let s=null;let n=[];let o=e[1].startsWith("--");let a=[];let l=e;while(l){r=l[0];a.push(l);if(r==="("||r==="["){if(!s)s=l;n.push(r==="("?")":"]")}else if(o&&i&&r==="{"){if(!s)s=l;n.push("}")}else if(n.length===0){if(r===";"){if(i){this.decl(a,o);return}else{break}}else if(r==="{"){this.rule(a);return}else if(r==="}"){this.tokenizer.back(a.pop());t=true;break}else if(r===":"){i=true}}else if(r===n[n.length-1]){n.pop();if(n.length===0)s=null}l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile())t=true;if(n.length>0)this.unclosedBracket(s);if(t&&i){if(!o){while(a.length){l=a[a.length-1][0];if(l!=="space"&&l!=="comment")break;this.tokenizer.back(a.pop())}}this.decl(a,o)}else{this.unknownWord(a)}}parse(){let e;while(!this.tokenizer.endOfFile()){e=this.tokenizer.nextToken();switch(e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}}this.endFile()}precheckMissedSemicolon(){}raw(e,t,r,i){let s,n;let o=r.length;let a="";let l=true;let c,f;for(let h=0;he+t[1]),"");e.raws[t]={raw:i,value:a}}e[t]=a}rule(e){e.pop();let t=new l;this.init(t,e[0][2]);t.raws.between=this.spacesAndCommentsFromEnd(e);this.raw(t,"selector",e);this.current=t}spacesAndCommentsFromEnd(e){let t;let r="";while(e.length){t=e[e.length-1][0];if(t!=="space"&&t!=="comment")break;r=e.pop()[1]+r}return r}spacesAndCommentsFromStart(e){let t;let r="";while(e.length){t=e[0][0];if(t!=="space"&&t!=="comment")break;r+=e.shift()[1]}return r}spacesFromEnd(e){let t;let r="";while(e.length){t=e[e.length-1][0];if(t!=="space")break;r=e.pop()[1]+r}return r}stringFrom(e,t){let r="";for(let i=t;i{"use strict";var i=r(34155);let s=r(42671);let n=r(94258);let o=r(21939);let a=r(21019);let l=r(71723);let u=r(67088);let c=r(50250);let f=r(26461);let h=r(11728);let p=r(69932);let d=r(41353);let m=r(83632);let g=r(5995);let b=r(66939);let y=r(54715);let v=r(31675);let w=r(41025);let x=r(65631);function S(...e){if(e.length===1&&Array.isArray(e[0])){e=e[0]}return new l(e)}S.plugin=function e(t,r){let s=false;function n(...e){if(console&&console.warn&&!s){s=true;console.warn(t+": postcss.plugin was deprecated. Migration guide:\n"+"https://evilmartians.com/chronicles/postcss-8-plugin-migration");if(i.env.LANG&&i.env.LANG.startsWith("cn")){console.warn(t+": 里面 postcss.plugin 被弃用. 迁移指南:\n"+"https://www.w3ctech.com/topic/2226")}}let n=r(...e);n.postcssPlugin=t;n.postcssVersion=(new l).version;return n}let o;Object.defineProperty(n,"postcss",{get(){if(!o)o=n();return o}});n.process=function(e,t,r){return S([n(r)]).process(e,t)};return n};S.stringify=u;S.parse=b;S.fromJSON=c;S.list=y;S.comment=e=>new p(e);S.atRule=e=>new d(e);S.decl=e=>new n(e);S.rule=e=>new v(e);S.root=e=>new w(e);S.document=e=>new f(e);S.CssSyntaxError=s;S.Declaration=n;S.Container=a;S.Processor=l;S.Document=f;S.Comment=p;S.Warning=h;S.AtRule=d;S.Result=m;S.Input=g;S.Rule=v;S.Root=w;S.Node=x;o.registerPostcss(S);e.exports=S;S.default=S},47981:(e,t,r)=>{"use strict";let{SourceMapConsumer:i,SourceMapGenerator:s}=r(70209);let{existsSync:n,readFileSync:o}=r(14777);let{dirname:a,join:l}=r(99830);function u(e){if(Buffer){return Buffer.from(e,"base64").toString()}else{return window.atob(e)}}class c{constructor(e,t){if(t.map===false)return;this.loadAnnotation(e);this.inline=this.startWith(this.annotation,"data:");let r=t.map?t.map.prev:undefined;let i=this.loadMap(t.from,r);if(!this.mapFile&&t.from){this.mapFile=t.from}if(this.mapFile)this.root=a(this.mapFile);if(i)this.text=i}consumer(){if(!this.consumerCache){this.consumerCache=new i(this.text)}return this.consumerCache}decodeInline(e){let t=/^data:application\/json;charset=utf-?8;base64,/;let r=/^data:application\/json;base64,/;let i=/^data:application\/json;charset=utf-?8,/;let s=/^data:application\/json,/;if(i.test(e)||s.test(e)){return decodeURIComponent(e.substr(RegExp.lastMatch.length))}if(t.test(e)||r.test(e)){return u(e.substr(RegExp.lastMatch.length))}let n=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+n)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){if(typeof e!=="object")return false;return typeof e.mappings==="string"||typeof e._mappings==="string"||Array.isArray(e.sections)}loadAnnotation(e){let t=e.match(/\/\*\s*# sourceMappingURL=/gm);if(!t)return;let r=e.lastIndexOf(t.pop());let i=e.indexOf("*/",r);if(r>-1&&i>-1){this.annotation=this.getAnnotationURL(e.substring(r,i))}}loadFile(e){this.root=a(e);if(n(e)){this.mapFile=e;return o(e,"utf-8").toString().trim()}}loadMap(e,t){if(t===false)return false;if(t){if(typeof t==="string"){return t}else if(typeof t==="function"){let r=t(e);if(r){let e=this.loadFile(r);if(!e){throw new Error("Unable to load previous source map: "+r.toString())}return e}}else if(t instanceof i){return s.fromSourceMap(t).toString()}else if(t instanceof s){return t.toString()}else if(this.isMap(t)){return JSON.stringify(t)}else{throw new Error("Unsupported previous source map format: "+t.toString())}}else if(this.inline){return this.decodeInline(this.annotation)}else if(this.annotation){let t=this.annotation;if(e)t=l(a(e),t);return this.loadFile(t)}}startWith(e,t){if(!e)return false;return e.substr(0,t.length)===t}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}}e.exports=c;c.default=c},71723:(e,t,r)=>{"use strict";let i=r(47647);let s=r(21939);let n=r(26461);let o=r(41025);class a{constructor(e=[]){this.version="8.4.31";this.plugins=this.normalize(e)}normalize(e){let t=[];for(let r of e){if(r.postcss===true){r=r()}else if(r.postcss){r=r.postcss}if(typeof r==="object"&&Array.isArray(r.plugins)){t=t.concat(r.plugins)}else if(typeof r==="object"&&r.postcssPlugin){t.push(r)}else if(typeof r==="function"){t.push(r)}else if(typeof r==="object"&&(r.parse||r.stringify)){if(false){}}else{throw new Error(r+" is not a PostCSS plugin")}}return t}process(e,t={}){if(this.plugins.length===0&&typeof t.parser==="undefined"&&typeof t.stringifier==="undefined"&&typeof t.syntax==="undefined"){return new i(this,e,t)}else{return new s(this,e,t)}}use(e){this.plugins=this.plugins.concat(this.normalize([e]));return this}}e.exports=a;a.default=a;o.registerProcessor(a);n.registerProcessor(a)},83632:(e,t,r)=>{"use strict";let i=r(11728);class s{constructor(e,t,r){this.processor=e;this.messages=[];this.root=t;this.opts=r;this.css=undefined;this.map=undefined}toString(){return this.css}warn(e,t={}){if(!t.plugin){if(this.lastPlugin&&this.lastPlugin.postcssPlugin){t.plugin=this.lastPlugin.postcssPlugin}}let r=new i(e,t);this.messages.push(r);return r}warnings(){return this.messages.filter((e=>e.type==="warning"))}get content(){return this.css}}e.exports=s;s.default=s},41025:(e,t,r)=>{"use strict";let i=r(21019);let s,n;class o extends i{constructor(e){super(e);this.type="root";if(!this.nodes)this.nodes=[]}normalize(e,t,r){let i=super.normalize(e);if(t){if(r==="prepend"){if(this.nodes.length>1){t.raws.before=this.nodes[1].raws.before}else{delete t.raws.before}}else if(this.first!==t){for(let e of i){e.raws.before=t.raws.before}}}return i}removeChild(e,t){let r=this.index(e);if(!t&&r===0&&this.nodes.length>1){this.nodes[1].raws.before=this.nodes[r].raws.before}return super.removeChild(e)}toResult(e={}){let t=new s(new n,this,e);return t.stringify()}}o.registerLazyResult=e=>{s=e};o.registerProcessor=e=>{n=e};e.exports=o;o.default=o;i.registerRoot(o)},31675:(e,t,r)=>{"use strict";let i=r(21019);let s=r(54715);class n extends i{constructor(e){super(e);this.type="rule";if(!this.nodes)this.nodes=[]}get selectors(){return s.comma(this.selector)}set selectors(e){let t=this.selector?this.selector.match(/,\s*/):null;let r=t?t[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}}e.exports=n;n.default=n;i.registerRule(n)},1062:e=>{"use strict";const t={after:"\n",beforeClose:"\n",beforeComment:"\n",beforeDecl:"\n",beforeOpen:" ",beforeRule:"\n",colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:false};function r(e){return e[0].toUpperCase()+e.slice(1)}class i{constructor(e){this.builder=e}atrule(e,t){let r="@"+e.name;let i=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName!=="undefined"){r+=e.raws.afterName}else if(i){r+=" "}if(e.nodes){this.block(e,r+i)}else{let s=(e.raws.between||"")+(t?";":"");this.builder(r+i+s,e)}}beforeAfter(e,t){let r;if(e.type==="decl"){r=this.raw(e,null,"beforeDecl")}else if(e.type==="comment"){r=this.raw(e,null,"beforeComment")}else if(t==="before"){r=this.raw(e,null,"beforeRule")}else{r=this.raw(e,null,"beforeClose")}let i=e.parent;let s=0;while(i&&i.type!=="root"){s+=1;i=i.parent}if(r.includes("\n")){let t=this.raw(e,null,"indent");if(t.length){for(let e=0;e0){if(e.nodes[t].type!=="comment")break;t-=1}let r=this.raw(e,"semicolon");for(let i=0;i{n=e.raws[i];if(typeof n!=="undefined")return false}))}}if(typeof n==="undefined")n=t[s];a.rawCache[s]=n;return n}rawBeforeClose(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length>0){if(typeof e.raws.after!=="undefined"){t=e.raws.after;if(t.includes("\n")){t=t.replace(/[^\n]+$/,"")}return false}}}));if(t)t=t.replace(/\S/g,"");return t}rawBeforeComment(e,t){let r;e.walkComments((e=>{if(typeof e.raws.before!=="undefined"){r=e.raws.before;if(r.includes("\n")){r=r.replace(/[^\n]+$/,"")}return false}}));if(typeof r==="undefined"){r=this.raw(t,null,"beforeDecl")}else if(r){r=r.replace(/\S/g,"")}return r}rawBeforeDecl(e,t){let r;e.walkDecls((e=>{if(typeof e.raws.before!=="undefined"){r=e.raws.before;if(r.includes("\n")){r=r.replace(/[^\n]+$/,"")}return false}}));if(typeof r==="undefined"){r=this.raw(t,null,"beforeRule")}else if(r){r=r.replace(/\S/g,"")}return r}rawBeforeOpen(e){let t;e.walk((e=>{if(e.type!=="decl"){t=e.raws.between;if(typeof t!=="undefined")return false}}));return t}rawBeforeRule(e){let t;e.walk((r=>{if(r.nodes&&(r.parent!==e||e.first!==r)){if(typeof r.raws.before!=="undefined"){t=r.raws.before;if(t.includes("\n")){t=t.replace(/[^\n]+$/,"")}return false}}}));if(t)t=t.replace(/\S/g,"");return t}rawColon(e){let t;e.walkDecls((e=>{if(typeof e.raws.between!=="undefined"){t=e.raws.between.replace(/[^\s:]/g,"");return false}}));return t}rawEmptyBody(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length===0){t=e.raws.after;if(typeof t!=="undefined")return false}}));return t}rawIndent(e){if(e.raws.indent)return e.raws.indent;let t;e.walk((r=>{let i=r.parent;if(i&&i!==e&&i.parent&&i.parent===e){if(typeof r.raws.before!=="undefined"){let e=r.raws.before.split("\n");t=e[e.length-1];t=t.replace(/\S/g,"");return false}}}));return t}rawSemicolon(e){let t;e.walk((e=>{if(e.nodes&&e.nodes.length&&e.last.type==="decl"){t=e.raws.semicolon;if(typeof t!=="undefined")return false}}));return t}rawValue(e,t){let r=e[t];let i=e.raws[t];if(i&&i.value===r){return i.raw}return r}root(e){this.body(e);if(e.raws.after)this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector"));if(e.raws.ownSemicolon){this.builder(e.raws.ownSemicolon,e,"end")}}stringify(e,t){if(!this[e.type]){throw new Error("Unknown AST node type "+e.type+". "+"Maybe you need to change PostCSS stringifier.")}this[e.type](e,t)}}e.exports=i;i.default=i},67088:(e,t,r)=>{"use strict";let i=r(1062);function s(e,t){let r=new i(t);r.stringify(e)}e.exports=s;s.default=s},65513:e=>{"use strict";e.exports.isClean=Symbol("isClean");e.exports.my=Symbol("my")},83852:e=>{"use strict";const t="'".charCodeAt(0);const r='"'.charCodeAt(0);const i="\\".charCodeAt(0);const s="/".charCodeAt(0);const n="\n".charCodeAt(0);const o=" ".charCodeAt(0);const a="\f".charCodeAt(0);const l="\t".charCodeAt(0);const u="\r".charCodeAt(0);const c="[".charCodeAt(0);const f="]".charCodeAt(0);const h="(".charCodeAt(0);const p=")".charCodeAt(0);const d="{".charCodeAt(0);const m="}".charCodeAt(0);const g=";".charCodeAt(0);const b="*".charCodeAt(0);const y=":".charCodeAt(0);const v="@".charCodeAt(0);const w=/[\t\n\f\r "#'()/;[\\\]{}]/g;const x=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g;const S=/.[\r\n"'(/\\]/;const _=/[\da-f]/i;e.exports=function e(T,O={}){let C=T.css.valueOf();let k=O.ignoreErrors;let A,E,D,P,L;let M,q,N,j,I;let R=C.length;let B=0;let U=[];let F=[];function H(){return B}function z(e){throw T.error("Unclosed "+e,B)}function V(){return F.length===0&&B>=R}function G(e){if(F.length)return F.pop();if(B>=R)return;let T=e?e.ignoreUnclosed:false;A=C.charCodeAt(B);switch(A){case n:case o:case l:case u:case a:{E=B;do{E+=1;A=C.charCodeAt(E)}while(A===o||A===n||A===l||A===u||A===a);I=["space",C.slice(B,E)];B=E-1;break}case c:case f:case d:case m:case y:case g:case p:{let e=String.fromCharCode(A);I=[e,e,B];break}case h:{N=U.length?U.pop()[1]:"";j=C.charCodeAt(B+1);if(N==="url"&&j!==t&&j!==r&&j!==o&&j!==n&&j!==l&&j!==a&&j!==u){E=B;do{M=false;E=C.indexOf(")",E+1);if(E===-1){if(k||T){E=B;break}else{z("bracket")}}q=E;while(C.charCodeAt(q-1)===i){q-=1;M=!M}}while(M);I=["brackets",C.slice(B,E+1),B,E];B=E}else{E=C.indexOf(")",B+1);P=C.slice(B,E+1);if(E===-1||S.test(P)){I=["(","(",B]}else{I=["brackets",P,B,E];B=E}}break}case t:case r:{D=A===t?"'":'"';E=B;do{M=false;E=C.indexOf(D,E+1);if(E===-1){if(k||T){E=B+1;break}else{z("string")}}q=E;while(C.charCodeAt(q-1)===i){q-=1;M=!M}}while(M);I=["string",C.slice(B,E+1),B,E];B=E;break}case v:{w.lastIndex=B+1;w.test(C);if(w.lastIndex===0){E=C.length-1}else{E=w.lastIndex-2}I=["at-word",C.slice(B,E+1),B,E];B=E;break}case i:{E=B;L=true;while(C.charCodeAt(E+1)===i){E+=1;L=!L}A=C.charCodeAt(E+1);if(L&&A!==s&&A!==o&&A!==n&&A!==l&&A!==u&&A!==a){E+=1;if(_.test(C.charAt(E))){while(_.test(C.charAt(E+1))){E+=1}if(C.charCodeAt(E+1)===o){E+=1}}}I=["word",C.slice(B,E+1),B,E];B=E;break}default:{if(A===s&&C.charCodeAt(B+1)===b){E=C.indexOf("*/",B+2)+1;if(E===0){if(k||T){E=C.length}else{z("comment")}}I=["comment",C.slice(B,E+1),B,E];B=E}else{x.lastIndex=B+1;x.test(C);if(x.lastIndex===0){E=C.length-1}else{E=x.lastIndex-2}I=["word",C.slice(B,E+1),B,E];U.push(I);B=E}break}}B++;return I}function $(e){F.push(e)}return{back:$,endOfFile:V,nextToken:G,position:H}}},72448:e=>{"use strict";let t={};e.exports=function e(r){if(t[r])return;t[r]=true;if(typeof console!=="undefined"&&console.warn){console.warn(r)}}},11728:e=>{"use strict";class t{constructor(e,t={}){this.type="warning";this.text=e;if(t.node&&t.node.source){let e=t.node.rangeBy(t);this.line=e.start.line;this.column=e.start.column;this.endLine=e.end.line;this.endColumn=e.end.column}for(let r in t)this[r]=t[r]}toString(){if(this.node){return this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message}if(this.plugin){return this.plugin+": "+this.text}return this.text}}e.exports=t;t.default=t},34155:e=>{var t=e.exports={};var r;var i;function s(){throw new Error("setTimeout has not been defined")}function n(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){r=setTimeout}else{r=s}}catch(e){r=s}try{if(typeof clearTimeout==="function"){i=clearTimeout}else{i=n}}catch(e){i=n}})();function o(e){if(r===setTimeout){return setTimeout(e,0)}if((r===s||!r)&&setTimeout){r=setTimeout;return setTimeout(e,0)}try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function a(e){if(i===clearTimeout){return clearTimeout(e)}if((i===n||!i)&&clearTimeout){i=clearTimeout;return clearTimeout(e)}try{return i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}var l=[];var u=false;var c;var f=-1;function h(){if(!u||!c){return}u=false;if(c.length){l=c.concat(l)}else{f=-1}if(l.length){p()}}function p(){if(u){return}var e=o(h);u=true;var t=l.length;while(t){c=l;l=[];while(++f1){for(var r=1;r{const i=r(23719);const s=r(63150);const{isPlainObject:n}=r(26057);const o=r(9996);const a=r(79430);const{parse:l}=r(50020);const u=["img","audio","video","picture","svg","object","map","iframe","embed"];const c=["script","style"];function f(e,t){if(e){Object.keys(e).forEach((function(r){t(e[r],r)}))}}function h(e,t){return{}.hasOwnProperty.call(e,t)}function p(e,t){const r=[];f(e,(function(e){if(t(e)){r.push(e)}}));return r}function d(e){for(const t in e){if(h(e,t)){return false}}return true}function m(e){return e.map((function(e){if(!e.url){throw new Error("URL missing")}return e.url+(e.w?` ${e.w}w`:"")+(e.h?` ${e.h}h`:"")+(e.d?` ${e.d}x`:"")})).join(", ")}e.exports=b;const g=/^[^\0\t\n\f\r /<=>]+$/;function b(e,t,r){if(e==null){return""}let v="";let w="";function x(e,t){const r=this;this.tag=e;this.attribs=t||{};this.tagPosition=v.length;this.text="";this.mediaChildren=[];this.updateParentNodeText=function(){if(P.length){const e=P[P.length-1];e.text+=r.text}};this.updateParentNodeMediaChildren=function(){if(P.length&&u.includes(this.tag)){const e=P[P.length-1];e.mediaChildren.push(this.tag)}}}t=Object.assign({},b.defaults,t);t.parser=Object.assign({},y,t.parser);c.forEach((function(e){if(t.allowedTags!==false&&(t.allowedTags||[]).indexOf(e)>-1&&!t.allowVulnerableTags){console.warn(`\n\n⚠️ Your \`allowedTags\` option includes, \`${e}\`, which is inherently\nvulnerable to XSS attacks. Please remove it from \`allowedTags\`.\nOr, to disable this warning, add the \`allowVulnerableTags\` option\nand ensure you are accounting for this risk.\n\n`)}}));const S=t.nonTextTags||["script","style","textarea","option"];let _;let T;if(t.allowedAttributes){_={};T={};f(t.allowedAttributes,(function(e,t){_[t]=[];const r=[];e.forEach((function(e){if(typeof e==="string"&&e.indexOf("*")>=0){r.push(s(e).replace(/\\\*/g,".*"))}else{_[t].push(e)}}));if(r.length){T[t]=new RegExp("^("+r.join("|")+")$")}}))}const O={};const C={};const k={};f(t.allowedClasses,(function(e,t){if(_){if(!h(_,t)){_[t]=[]}_[t].push("class")}O[t]=[];k[t]=[];const r=[];e.forEach((function(e){if(typeof e==="string"&&e.indexOf("*")>=0){r.push(s(e).replace(/\\\*/g,".*"))}else if(e instanceof RegExp){k[t].push(e)}else{O[t].push(e)}}));if(r.length){C[t]=new RegExp("^("+r.join("|")+")$")}}));const A={};let E;f(t.transformTags,(function(e,t){let r;if(typeof e==="function"){r=e}else if(typeof e==="string"){r=b.simpleTransform(e)}if(t==="*"){E=r}else{A[t]=r}}));let D;let P;let L;let M;let q;let N;let j=false;R();const I=new i.Parser({onopentag:function(e,r){if(t.enforceHtmlBoundary&&e==="html"){R()}if(q){N++;return}const i=new x(e,r);P.push(i);let s=false;const u=!!i.text;let c;if(h(A,e)){c=A[e](e,r);i.attribs=r=c.attribs;if(c.text!==undefined){i.innerText=c.text}if(e!==c.tagName){i.name=e=c.tagName;M[D]=c.tagName}}if(E){c=E(e,r);i.attribs=r=c.attribs;if(e!==c.tagName){i.name=e=c.tagName;M[D]=c.tagName}}if(t.allowedTags!==false&&(t.allowedTags||[]).indexOf(e)===-1||t.disallowedTagsMode==="recursiveEscape"&&!d(L)||t.nestingLimit!=null&&D>=t.nestingLimit){s=true;L[D]=true;if(t.disallowedTagsMode==="discard"){if(S.indexOf(e)!==-1){q=true;N=1}}L[D]=true}D++;if(s){if(t.disallowedTagsMode==="discard"){return}w=v;v=""}v+="<"+e;if(e==="script"){if(t.allowedScriptHostnames||t.allowedScriptDomains){i.innerText=""}}if(!_||h(_,e)||_["*"]){f(r,(function(r,s){if(!g.test(s)){delete i.attribs[s];return}let u=false;if(!_||h(_,e)&&_[e].indexOf(s)!==-1||_["*"]&&_["*"].indexOf(s)!==-1||h(T,e)&&T[e].test(s)||T["*"]&&T["*"].test(s)){u=true}else if(_&&_[e]){for(const t of _[e]){if(n(t)&&t.name&&t.name===s){u=true;let e="";if(t.multiple===true){const i=r.split(" ");for(const r of i){if(t.values.indexOf(r)!==-1){if(e===""){e=r}else{e+=" "+r}}}}else if(t.values.indexOf(r)>=0){e=r}r=e}}}if(u){if(t.allowedSchemesAppliedToAttributes.indexOf(s)!==-1){if(U(e,r)){delete i.attribs[s];return}}if(e==="script"&&s==="src"){let e=true;try{const i=F(r);if(t.allowedScriptHostnames||t.allowedScriptDomains){const r=(t.allowedScriptHostnames||[]).find((function(e){return e===i.url.hostname}));const s=(t.allowedScriptDomains||[]).find((function(e){return i.url.hostname===e||i.url.hostname.endsWith(`.${e}`)}));e=r||s}}catch(c){e=false}if(!e){delete i.attribs[s];return}}if(e==="iframe"&&s==="src"){let e=true;try{const i=F(r);if(i.isRelativeUrl){e=h(t,"allowIframeRelativeUrls")?t.allowIframeRelativeUrls:!t.allowedIframeHostnames&&!t.allowedIframeDomains}else if(t.allowedIframeHostnames||t.allowedIframeDomains){const r=(t.allowedIframeHostnames||[]).find((function(e){return e===i.url.hostname}));const s=(t.allowedIframeDomains||[]).find((function(e){return i.url.hostname===e||i.url.hostname.endsWith(`.${e}`)}));e=r||s}}catch(c){e=false}if(!e){delete i.attribs[s];return}}if(s==="srcset"){try{let e=a(r);e.forEach((function(e){if(U("srcset",e.url)){e.evil=true}}));e=p(e,(function(e){return!e.evil}));if(!e.length){delete i.attribs[s];return}else{r=m(p(e,(function(e){return!e.evil})));i.attribs[s]=r}}catch(c){delete i.attribs[s];return}}if(s==="class"){const t=O[e];const n=O["*"];const a=C[e];const l=k[e];const u=C["*"];const c=[a,u].concat(l).filter((function(e){return e}));if(t&&n){r=G(r,o(t,n),c)}else{r=G(r,t||n,c)}if(!r.length){delete i.attribs[s];return}}if(s==="style"){try{const n=l(e+" {"+r+"}");const o=H(n,t.allowedStyles);r=z(o);if(r.length===0){delete i.attribs[s];return}}catch(c){delete i.attribs[s];return}}v+=" "+s;if(r&&r.length){v+='="'+B(r,true)+'"'}}else{delete i.attribs[s]}}))}if(t.selfClosing.indexOf(e)!==-1){v+=" />"}else{v+=">";if(i.innerText&&!u&&!t.textFilter){v+=B(i.innerText);j=true}}if(s){v=w+B(v);w=""}},ontext:function(e){if(q){return}const r=P[P.length-1];let i;if(r){i=r.tag;e=r.innerText!==undefined?r.innerText:e}if(t.disallowedTagsMode==="discard"&&(i==="script"||i==="style")){v+=e}else{const r=B(e,false);if(t.textFilter&&!j){v+=t.textFilter(r,i)}else if(!j){v+=r}}if(P.length){const t=P[P.length-1];t.text+=e}},onclosetag:function(e){if(q){N--;if(!N){q=false}else{return}}const r=P.pop();if(!r){return}if(r.tag!==e){P.push(r);return}q=t.enforceHtmlBoundary?e==="html":false;D--;const i=L[D];if(i){delete L[D];if(t.disallowedTagsMode==="discard"){r.updateParentNodeText();return}w=v;v=""}if(M[D]){e=M[D];delete M[D]}if(t.exclusiveFilter&&t.exclusiveFilter(r)){v=v.substr(0,r.tagPosition);return}r.updateParentNodeMediaChildren();r.updateParentNodeText();if(t.selfClosing.indexOf(e)!==-1){if(i){v=w;w=""}return}v+="";if(i){v=w+B(v);w=""}j=false}},t.parser);I.write(e);I.end();return v;function R(){v="";D=0;P=[];L={};M={};q=false;N=0}function B(e,r){if(typeof e!=="string"){e=e+""}if(t.parser.decodeEntities){e=e.replace(/&/g,"&").replace(//g,">");if(r){e=e.replace(/"/g,""")}}e=e.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(//g,">");if(r){e=e.replace(/"/g,""")}return e}function U(e,r){r=r.replace(/[\x00-\x20]+/g,"");while(true){const e=r.indexOf("\x3c!--");if(e===-1){break}const t=r.indexOf("--\x3e",e+4);if(t===-1){break}r=r.substring(0,e)+r.substring(t+3)}const i=r.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!i){if(r.match(/^[/\\]{2}/)){return!t.allowProtocolRelative}return false}const s=i[1].toLowerCase();if(h(t.allowedSchemesByTag,e)){return t.allowedSchemesByTag[e].indexOf(s)===-1}return!t.allowedSchemes||t.allowedSchemes.indexOf(s)===-1}function F(e){e=e.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//");if(e.startsWith("relative:")){throw new Error("relative: exploit attempt")}let t="relative://relative-site";for(let s=0;s<100;s++){t+=`/${s}`}const r=new URL(e,t);const i=r&&r.hostname==="relative-site"&&r.protocol==="relative:";return{isRelativeUrl:i,url:r}}function H(e,t){if(!t){return e}const r=e.nodes[0];let i;if(t[r.selector]&&t["*"]){i=o(t[r.selector],t["*"])}else{i=t[r.selector]||t["*"]}if(i){e.nodes[0].nodes=r.nodes.reduce(V(i),[])}return e}function z(e){return e.nodes[0].nodes.reduce((function(e,t){e.push(`${t.prop}:${t.value}${t.important?" !important":""}`);return e}),[]).join(";")}function V(e){return function(t,r){if(h(e,r.prop)){const i=e[r.prop].some((function(e){return e.test(r.value)}));if(i){t.push(r)}}return t}}function G(e,t,r){if(!t){return e}e=e.split(/\s+/);return e.filter((function(e){return t.indexOf(e)!==-1||r.some((function(t){return t.test(e)}))})).join(" ")}}const y={decodeEntities:true};b.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","main","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:true,enforceHtmlBoundary:false};b.simpleTransform=function(e,t,r){r=r===undefined?true:r;t=t||{};return function(i,s){let n;if(r){for(n in t){s[n]=t[n]}}else{s=t}return{tagName:e,attribs:s}}}},62961:e=>{let t="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";let r=(e,t=21)=>(r=t)=>{let i="";let s=r;while(s--){i+=e[Math.random()*e.length|0]}return i};let i=(e=21)=>{let r="";let i=e;while(i--){r+=t[Math.random()*64|0]}return r};e.exports={nanoid:i,customAlphabet:r}},33600:e=>{"use strict";e.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},59323:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')},29591:e=>{"use strict";e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},2586:e=>{"use strict";e.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/1036.0d1f109c3d842497fd51.js.LICENSE.txt b/bootcamp/share/jupyter/lab/static/1036.0d1f109c3d842497fd51.js.LICENSE.txt new file mode 100644 index 0000000..fe4c1fe --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/1036.0d1f109c3d842497fd51.js.LICENSE.txt @@ -0,0 +1,6 @@ +/*! + * is-plain-object + * + * Copyright (c) 2014-2017, Jon Schlinkert. + * Released under the MIT License. + */ diff --git a/bootcamp/share/jupyter/lab/static/1085.0b67f0736d85ec41fdd4.js b/bootcamp/share/jupyter/lab/static/1085.0b67f0736d85ec41fdd4.js new file mode 100644 index 0000000..9ae0050 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/1085.0b67f0736d85ec41fdd4.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1085],{41085:(e,t,n)=>{n.r(t);n.d(t,{groovy:()=>v});function r(e){var t={},n=e.split(" ");for(var r=0;r")){s="->";return null}if(/[+\-*&%=<>!?|\/~]/.test(n)){e.eatWhile(/[+\-*&%=<>|~]/);return"operator"}e.eatWhile(/[\w\$_]/);if(n=="@"){e.eatWhile(/[\w\$_\.]/);return"meta"}if(t.lastToken==".")return"property";if(e.eat(":")){s="proplabel";return"property"}var r=e.current();if(o.propertyIsEnumerable(r)){return"atom"}if(i.propertyIsEnumerable(r)){if(a.propertyIsEnumerable(r))s="newstatement";else if(l.propertyIsEnumerable(r))s="standalone";return"keyword"}return"variable"}u.isBase=true;function f(e,t,n){var r=false;if(e!="/"&&t.eat(e)){if(t.eat(e))r=true;else return"string"}function i(t,n){var i=false,a,l=!r;while((a=t.next())!=null){if(a==e&&!i){if(!r){break}if(t.match(e+e)){l=true;break}}if(e=='"'&&a=="$"&&!i){if(t.eat("{")){n.tokenize.push(p());return"string"}else if(t.match(/^\w/,false)){n.tokenize.push(c);return"string"}}i=!i&&a=="\\"}if(l)n.tokenize.pop();return"string"}n.tokenize.push(i);return i(t,n)}function p(){var e=1;function t(t,n){if(t.peek()=="}"){e--;if(e==0){n.tokenize.pop();return n.tokenize[n.tokenize.length-1](t,n)}}else if(t.peek()=="{"){e++}return u(t,n)}t.isBase=true;return t}function c(e,t){var n=e.match(/^(\.|[\w\$_]+)/);if(!n){t.tokenize.pop();return t.tokenize[t.tokenize.length-1](e,t)}return n[0]=="."?null:"variable"}function h(e,t){var n=false,r;while(r=e.next()){if(r=="/"&&n){t.tokenize.pop();break}n=r=="*"}return"comment"}function k(e,t){return!e||e=="operator"||e=="->"||/[\.\[\{\(,;:]/.test(e)||e=="newstatement"||e=="keyword"||e=="proplabel"||e=="standalone"&&!t}function m(e,t,n,r,i){this.indented=e;this.column=t;this.type=n;this.align=r;this.prev=i}function d(e,t,n){return e.context=new m(e.indented,t,n,null,e.context)}function y(e){var t=e.context.type;if(t==")"||t=="]"||t=="}")e.indented=e.context.indented;return e.context=e.context.prev}const v={name:"groovy",startState:function(e){return{tokenize:[u],context:new m(-e,0,"top",false),indented:0,startOfLine:true,lastToken:null}},token:function(e,t){var n=t.context;if(e.sol()){if(n.align==null)n.align=false;t.indented=e.indentation();t.startOfLine=true;if(n.type=="statement"&&!k(t.lastToken,true)){y(t);n=t.context}}if(e.eatSpace())return null;s=null;var r=t.tokenize[t.tokenize.length-1](e,t);if(r=="comment")return r;if(n.align==null)n.align=true;if((s==";"||s==":")&&n.type=="statement")y(t);else if(s=="->"&&n.type=="statement"&&n.prev.type=="}"){y(t);t.context.align=false}else if(s=="{")d(t,e.column(),"}");else if(s=="[")d(t,e.column(),"]");else if(s=="(")d(t,e.column(),")");else if(s=="}"){while(n.type=="statement")n=y(t);if(n.type=="}")n=y(t);while(n.type=="statement")n=y(t)}else if(s==n.type)y(t);else if(n.type=="}"||n.type=="top"||n.type=="statement"&&s=="newstatement")d(t,e.column(),"statement");t.startOfLine=false;t.lastToken=s||r;return r},indent:function(e,t,n){if(!e.tokenize[e.tokenize.length-1].isBase)return null;var r=t&&t.charAt(0),i=e.context;if(i.type=="statement"&&!k(e.lastToken,true))i=i.prev;var a=r==i.type;if(i.type=="statement")return i.indented+(r=="{"?0:n.unit);else if(i.align)return i.column+(a?0:1);else return i.indented+(a?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""']}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/1142.d5442a459b18907c1f91.js b/bootcamp/share/jupyter/lab/static/1142.d5442a459b18907c1f91.js new file mode 100644 index 0000000..2a62718 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/1142.d5442a459b18907c1f91.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1142],{11142:function(u){(function(D,e){true?u.exports=e():0})(this,(function(){"use strict";function u(u,D){return D={exports:{}},u(D,D.exports),D.exports}var D=u((function(u){var D=u.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();if(typeof __g=="number"){__g=D}}));var e=u((function(u){var D=u.exports={version:"2.6.5"};if(typeof __e=="number"){__e=D}}));var r=e.version;var t=function(u){return typeof u==="object"?u!==null:typeof u==="function"};var n=function(u){if(!t(u)){throw TypeError(u+" is not an object!")}return u};var F=function(u){try{return!!u()}catch(D){return true}};var C=!F((function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7}));var A=D.document;var i=t(A)&&t(A.createElement);var a=function(u){return i?A.createElement(u):{}};var E=!C&&!F((function(){return Object.defineProperty(a("div"),"a",{get:function(){return 7}}).a!=7}));var o=function(u,D){if(!t(u)){return u}var e,r;if(D&&typeof(e=u.toString)=="function"&&!t(r=e.call(u))){return r}if(typeof(e=u.valueOf)=="function"&&!t(r=e.call(u))){return r}if(!D&&typeof(e=u.toString)=="function"&&!t(r=e.call(u))){return r}throw TypeError("Can't convert object to primitive value")};var c=Object.defineProperty;var f=C?Object.defineProperty:function u(D,e,r){n(D);e=o(e,true);n(r);if(E){try{return c(D,e,r)}catch(t){}}if("get"in r||"set"in r){throw TypeError("Accessors not supported!")}if("value"in r){D[e]=r.value}return D};var B={f};var s=function(u,D){return{enumerable:!(u&1),configurable:!(u&2),writable:!(u&4),value:D}};var l=C?function(u,D,e){return B.f(u,D,s(1,e))}:function(u,D,e){u[D]=e;return u};var v={}.hasOwnProperty;var d=function(u,D){return v.call(u,D)};var p=0;var h=Math.random();var g=function(u){return"Symbol(".concat(u===undefined?"":u,")_",(++p+h).toString(36))};var m=false;var y=u((function(u){var r="__core-js_shared__";var t=D[r]||(D[r]={});(u.exports=function(u,D){return t[u]||(t[u]=D!==undefined?D:{})})("versions",[]).push({version:e.version,mode:m?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}));var w=y("native-function-to-string",Function.toString);var b=u((function(u){var r=g("src");var t="toString";var n=(""+w).split(t);e.inspectSource=function(u){return w.call(u)};(u.exports=function(u,e,t,F){var C=typeof t=="function";if(C){d(t,"name")||l(t,"name",e)}if(u[e]===t){return}if(C){d(t,r)||l(t,r,u[e]?""+u[e]:n.join(String(e)))}if(u===D){u[e]=t}else if(!F){delete u[e];l(u,e,t)}else if(u[e]){u[e]=t}else{l(u,e,t)}})(Function.prototype,t,(function u(){return typeof this=="function"&&this[r]||w.call(this)}))}));var S=function(u){if(typeof u!="function"){throw TypeError(u+" is not a function!")}return u};var x=function(u,D,e){S(u);if(D===undefined){return u}switch(e){case 1:return function(e){return u.call(D,e)};case 2:return function(e,r){return u.call(D,e,r)};case 3:return function(e,r,t){return u.call(D,e,r,t)}}return function(){return u.apply(D,arguments)}};var N="prototype";var P=function(u,r,t){var n=u&P.F;var F=u&P.G;var C=u&P.S;var A=u&P.P;var i=u&P.B;var a=F?D:C?D[r]||(D[r]={}):(D[r]||{})[N];var E=F?e:e[r]||(e[r]={});var o=E[N]||(E[N]={});var c,f,B,s;if(F){t=r}for(c in t){f=!n&&a&&a[c]!==undefined;B=(f?a:t)[c];s=i&&f?x(B,D):A&&typeof B=="function"?x(Function.call,B):B;if(a){b(a,c,B,u&P.U)}if(E[c]!=B){l(E,c,s)}if(A&&o[c]!=B){o[c]=B}}};D.core=e;P.F=1;P.G=2;P.S=4;P.P=8;P.B=16;P.W=32;P.U=64;P.R=128;var _=P;var I=Math.ceil;var O=Math.floor;var j=function(u){return isNaN(u=+u)?0:(u>0?O:I)(u)};var k=function(u){if(u==undefined){throw TypeError("Can't call method on "+u)}return u};var V=function(u){return function(D,e){var r=String(k(D));var t=j(e);var n=r.length;var F,C;if(t<0||t>=n){return u?"":undefined}F=r.charCodeAt(t);return F<55296||F>56319||t+1===n||(C=r.charCodeAt(t+1))<56320||C>57343?u?r.charAt(t):F:u?r.slice(t,t+2):(F-55296<<10)+(C-56320)+65536}};var M=V(false);_(_.P,"String",{codePointAt:function u(D){return M(this,D)}});var J=e.String.codePointAt;var L=Math.max;var T=Math.min;var z=function(u,D){u=j(u);return u<0?L(u+D,0):T(u,D)};var H=String.fromCharCode;var $=String.fromCodePoint;_(_.S+_.F*(!!$&&$.length!=1),"String",{fromCodePoint:function u(D){var e=arguments;var r=[];var t=arguments.length;var n=0;var F;while(t>n){F=+e[n++];if(z(F,1114111)!==F){throw RangeError(F+" is not a valid code point")}r.push(F<65536?H(F):H(((F-=65536)>>10)+55296,F%1024+56320))}return r.join("")}});var R=e.String.fromCodePoint;var G=/[\u1680\u2000-\u200A\u202F\u205F\u3000]/;var U=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;var Z=/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/;var q={Space_Separator:G,ID_Start:U,ID_Continue:Z};var W={isSpaceSeparator:function u(D){return typeof D==="string"&&q.Space_Separator.test(D)},isIdStartChar:function u(D){return typeof D==="string"&&(D>="a"&&D<="z"||D>="A"&&D<="Z"||D==="$"||D==="_"||q.ID_Start.test(D))},isIdContinueChar:function u(D){return typeof D==="string"&&(D>="a"&&D<="z"||D>="A"&&D<="Z"||D>="0"&&D<="9"||D==="$"||D==="_"||D==="‌"||D==="‍"||q.ID_Continue.test(D))},isDigit:function u(D){return typeof D==="string"&&/[0-9]/.test(D)},isHexDigit:function u(D){return typeof D==="string"&&/[0-9A-Fa-f]/.test(D)}};var X;var K;var Q;var Y;var uu;var Du;var eu;var ru;var tu;var nu=function u(D,e){X=String(D);K="start";Q=[];Y=0;uu=1;Du=0;eu=undefined;ru=undefined;tu=undefined;do{eu=ou();hu[K]()}while(eu.type!=="eof");if(typeof e==="function"){return Fu({"":tu},"",e)}return tu};function Fu(u,D,e){var r=u[D];if(r!=null&&typeof r==="object"){if(Array.isArray(r)){for(var t=0;t0){var e=cu();if(!W.isHexDigit(e)){throw yu(fu())}u+=fu()}return String.fromCodePoint(parseInt(u,16))}var hu={start:function u(){if(eu.type==="eof"){throw wu()}gu()},beforePropertyName:function u(){switch(eu.type){case"identifier":case"string":ru=eu.value;K="afterPropertyName";return;case"punctuator":mu();return;case"eof":throw wu()}},afterPropertyName:function u(){if(eu.type==="eof"){throw wu()}K="beforePropertyValue"},beforePropertyValue:function u(){if(eu.type==="eof"){throw wu()}gu()},beforeArrayValue:function u(){if(eu.type==="eof"){throw wu()}if(eu.type==="punctuator"&&eu.value==="]"){mu();return}gu()},afterPropertyValue:function u(){if(eu.type==="eof"){throw wu()}switch(eu.value){case",":K="beforePropertyName";return;case"}":mu()}},afterArrayValue:function u(){if(eu.type==="eof"){throw wu()}switch(eu.value){case",":K="beforeArrayValue";return;case"]":mu()}},end:function u(){}};function gu(){var u;switch(eu.type){case"punctuator":switch(eu.value){case"{":u={};break;case"[":u=[];break}break;case"null":case"boolean":case"numeric":case"string":u=eu.value;break}if(tu===undefined){tu=u}else{var D=Q[Q.length-1];if(Array.isArray(D)){D.push(u)}else{Object.defineProperty(D,ru,{value:u,writable:true,enumerable:true,configurable:true})}}if(u!==null&&typeof u==="object"){Q.push(u);if(Array.isArray(u)){K="beforeArrayValue"}else{K="beforePropertyName"}}else{var e=Q[Q.length-1];if(e==null){K="end"}else if(Array.isArray(e)){K="afterArrayValue"}else{K="afterPropertyValue"}}}function mu(){Q.pop();var u=Q[Q.length-1];if(u==null){K="end"}else if(Array.isArray(u)){K="afterArrayValue"}else{K="afterPropertyValue"}}function yu(u){if(u===undefined){return Nu("JSON5: invalid end of input at "+uu+":"+Du)}return Nu("JSON5: invalid character '"+xu(u)+"' at "+uu+":"+Du)}function wu(){return Nu("JSON5: invalid end of input at "+uu+":"+Du)}function bu(){Du-=5;return Nu("JSON5: invalid identifier character at "+uu+":"+Du)}function Su(u){console.warn("JSON5: '"+xu(u)+"' in strings is not valid ECMAScript; consider escaping")}function xu(u){var D={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};if(D[u]){return D[u]}if(u<" "){var e=u.charCodeAt(0).toString(16);return"\\x"+("00"+e).substring(e.length)}return u}function Nu(u){var D=new SyntaxError(u);D.lineNumber=uu;D.columnNumber=Du;return D}var Pu=function u(D,e,r){var t=[];var n="";var F;var C;var A="";var i;if(e!=null&&typeof e==="object"&&!Array.isArray(e)){r=e.space;i=e.quote;e=e.replacer}if(typeof e==="function"){C=e}else if(Array.isArray(e)){F=[];for(var a=0,E=e;a0){r=Math.min(10,Math.floor(r));A=" ".substr(0,r)}}else if(typeof r==="string"){A=r.substr(0,10)}return f("",{"":D});function f(u,D){var e=D[u];if(e!=null){if(typeof e.toJSON5==="function"){e=e.toJSON5(u)}else if(typeof e.toJSON==="function"){e=e.toJSON(u)}}if(C){e=C.call(D,u,e)}if(e instanceof Number){e=Number(e)}else if(e instanceof String){e=String(e)}else if(e instanceof Boolean){e=e.valueOf()}switch(e){case null:return"null";case true:return"true";case false:return"false"}if(typeof e==="string"){return B(e,false)}if(typeof e==="number"){return String(e)}if(typeof e==="object"){return Array.isArray(e)?v(e):s(e)}return undefined}function B(u){var D={"'":.1,'"':.2};var e={"'":"\\'",'"':'\\"',"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\v","\0":"\\0","\u2028":"\\u2028","\u2029":"\\u2029"};var r="";for(var t=0;t=0){throw TypeError("Converting circular structure to JSON5")}t.push(u);var D=n;n=n+A;var e=F||Object.keys(u);var r=[];for(var C=0,i=e;C=0){throw TypeError("Converting circular structure to JSON5")}t.push(u);var D=n;n=n+A;var e=[];for(var r=0;r{s.r(e);s.d(e,{YBaseCell:()=>S,YCodeCell:()=>C,YDocument:()=>b,YFile:()=>v,YMarkdownCell:()=>U,YNotebook:()=>D,YRawCell:()=>V,convertYMapEventToMapChange:()=>n,createMutex:()=>a,createStandaloneCell:()=>k});function n(t){let e=new Map;t.changes.keys.forEach(((t,s)=>{e.set(s,{action:t.action,oldValue:t.oldValue,newValue:this.ymeta.get(s)})}));return e}const a=()=>{let t=true;return e=>{if(t){t=false;try{e()}finally{t=true}}}};var o=s(5596);var i=s(71372);var r=s(20817);var d=s(14247);var l=s(58290);var c=s(97027);var h=s(66350);const u=3e4;class g extends l.y{constructor(t){super();this.doc=t;this.clientID=t.clientID;this.states=new Map;this.meta=new Map;this._checkInterval=setInterval((()=>{const t=r.ZG();if(this.getLocalState()!==null&&u/2<=t-this.meta.get(this.clientID).lastUpdated){this.setLocalState(this.getLocalState())}const e=[];this.meta.forEach(((s,n)=>{if(n!==this.clientID&&u<=t-s.lastUpdated&&this.states.has(n)){e.push(n)}}));if(e.length>0){p(this,e,"timeout")}}),d.GW(u/10));t.on("destroy",(()=>{this.destroy()}));this.setLocalState({})}destroy(){this.emit("destroy",[this]);this.setLocalState(null);super.destroy();clearInterval(this._checkInterval)}getLocalState(){return this.states.get(this.clientID)||null}setLocalState(t){const e=this.clientID;const s=this.meta.get(e);const n=s===undefined?0:s.clock+1;const a=this.states.get(e);if(t===null){this.states.delete(e)}else{this.states.set(e,t)}this.meta.set(e,{clock:n,lastUpdated:r.ZG()});const o=[];const i=[];const d=[];const l=[];if(t===null){l.push(e)}else if(a==null){if(t!=null){o.push(e)}}else{i.push(e);if(!c.Hi(a,t)){d.push(e)}}if(o.length>0||d.length>0||l.length>0){this.emit("change",[{added:o,updated:d,removed:l},"local"])}this.emit("update",[{added:o,updated:i,removed:l},"local"])}setLocalStateField(t,e){const s=this.getLocalState();if(s!==null){this.setLocalState({...s,[t]:e})}}getStates(){return this.states}}const p=(t,e,s)=>{const n=[];for(let a=0;a0){t.emit("change",[{added:[],updated:[],removed:n},s]);t.emit("update",[{added:[],updated:[],removed:n},s])}};const m=(t,e,s=t.states)=>{const n=e.length;const a=encoding.createEncoder();encoding.writeVarUint(a,n);for(let o=0;o{const s=decoding.createDecoder(t);const n=encoding.createEncoder();const a=decoding.readVarUint(s);encoding.writeVarUint(n,a);for(let o=0;o{const n=decoding.createDecoder(e);const a=time.getUnixTime();const o=[];const i=[];const r=[];const d=[];const l=decoding.readVarUint(n);for(let c=0;c0||r.length>0||d.length>0){t.emit("change",[{added:o,updated:r,removed:d},s])}if(o.length>0||i.length>0||d.length>0){t.emit("update",[{added:o,updated:i,removed:d},s])}};class b{constructor(t){var e;this.onStateChanged=t=>{const e=new Array;t.keysChanged.forEach((s=>{const n=t.changes.keys.get(s);if(n){e.push({name:s,oldValue:n.oldValue,newValue:this.ystate.get(s)})}}));this._changed.emit({stateChange:e})};this._changed=new i.Signal(this);this._isDisposed=false;this._disposed=new i.Signal(this);this._ydoc=(e=t===null||t===void 0?void 0:t.ydoc)!==null&&e!==void 0?e:new h.Doc;this._ystate=this._ydoc.getMap("state");this._undoManager=new h.UndoManager([],{trackedOrigins:new Set([this]),doc:this._ydoc});this._awareness=new g(this._ydoc);this._ystate.observe(this.onStateChanged)}get ydoc(){return this._ydoc}get ystate(){return this._ystate}get undoManager(){return this._undoManager}get awareness(){return this._awareness}get changed(){return this._changed}get disposed(){return this._disposed}get isDisposed(){return this._isDisposed}get state(){return o.JSONExt.deepCopy(this.ystate.toJSON())}canUndo(){return this.undoManager.undoStack.length>0}canRedo(){return this.undoManager.redoStack.length>0}dispose(){if(this._isDisposed){return}this._isDisposed=true;this.ystate.unobserve(this.onStateChanged);this.awareness.destroy();this.undoManager.destroy();this.ydoc.destroy();this._disposed.emit();i.Signal.clearData(this)}getState(t){const e=this.ystate.get(t);return typeof e==="undefined"?e:o.JSONExt.deepCopy(e)}setState(t,e){if(!o.JSONExt.deepEqual(this.ystate.get(t),e)){this.ystate.set(t,e)}}undo(){this.undoManager.undo()}redo(){this.undoManager.redo()}clearUndoHistory(){this.undoManager.clear()}transact(t,e=true){this.ydoc.transact(t,e?this:null)}}class v extends b{constructor(){super();this.version="1.0.0";this.ysource=this.ydoc.getText("source");this._modelObserver=t=>{this._changed.emit({sourceChange:t.changes.delta})};this.undoManager.addToScope(this.ysource);this.ysource.observe(this._modelObserver)}static create(){return new v}get source(){return this.getSource()}set source(t){this.setSource(t)}dispose(){if(this.isDisposed){return}this.ysource.unobserve(this._modelObserver);super.dispose()}getSource(){return this.ysource.toString()}setSource(t){this.transact((()=>{const e=this.ysource;e.delete(0,e.length);e.insert(0,t)}))}updateSource(t,e,s=""){this.transact((()=>{const n=this.ysource;n.insert(t,s);n.delete(t+s.length,e-t)}))}}const M=(t,e={})=>{switch(t.get("cell_type")){case"code":return new C(t,t.get("source"),t.get("outputs"),e);case"markdown":return new U(t,t.get("source"),e);case"raw":return new V(t,t.get("source"),e);default:throw new Error("Found unknown cell type")}};const w=(t,e)=>{var s,n;const a=new h.Map;const i=new h.Text;const r=new h.Map;a.set("source",i);a.set("metadata",r);a.set("cell_type",t.cell_type);a.set("id",(s=t.id)!==null&&s!==void 0?s:o.UUID.uuid4());let d;switch(t.cell_type){case"markdown":{d=new U(a,i,{notebook:e},r);if(t.attachments!=null){d.setAttachments(t.attachments)}break}case"code":{const s=new h.Array;a.set("outputs",s);d=new C(a,i,s,{notebook:e},r);const o=t;d.execution_count=(n=o.execution_count)!==null&&n!==void 0?n:null;if(o.outputs){d.setOutputs(o.outputs)}break}default:{d=new V(a,i,{notebook:e},r);if(t.attachments){d.setAttachments(t.attachments)}break}}if(t.metadata!=null){d.setMetadata(t.metadata)}if(t.source!=null){d.setSource(typeof t.source==="string"?t.source:t.source.join("\n"))}return d};const k=t=>w(t);class S{static create(t){return w({id:t,cell_type:this.prototype.cell_type})}constructor(t,e,s={},n){this._modelObserver=t=>{this._changed.emit(this.getChanges(t))};this._metadataChanged=new i.Signal(this);this._notebook=null;this._changed=new i.Signal(this);this._disposed=new i.Signal(this);this._isDisposed=false;this._undoManager=null;this.ymodel=t;this._ysource=e;this._ymetadata=n!==null&&n!==void 0?n:this.ymodel.get("metadata");this._prevSourceLength=e?e.length:0;this._notebook=null;this._awareness=null;this._undoManager=null;if(s.notebook){this._notebook=s.notebook}else{const t=new h.Doc;t.getArray().insert(0,[this.ymodel]);this._awareness=new g(t);this._undoManager=new h.UndoManager([this.ymodel],{trackedOrigins:new Set([this])})}this.ymodel.observeDeep(this._modelObserver)}get awareness(){var t,e,s;return(s=(t=this._awareness)!==null&&t!==void 0?t:(e=this.notebook)===null||e===void 0?void 0:e.awareness)!==null&&s!==void 0?s:null}get cell_type(){throw new Error("A YBaseCell must not be constructed")}get changed(){return this._changed}get disposed(){return this._disposed}get id(){return this.getId()}get isDisposed(){return this._isDisposed}get isStandalone(){return this._notebook!==null}get metadata(){return this.getMetadata()}set metadata(t){this.setMetadata(t)}get metadataChanged(){return this._metadataChanged}get notebook(){return this._notebook}get source(){return this.getSource()}set source(t){this.setSource(t)}get undoManager(){var t;if(!this.notebook){return this._undoManager}return((t=this.notebook)===null||t===void 0?void 0:t.disableDocumentWideUndoRedo)?this._undoManager:this.notebook.undoManager}setUndoManager(){if(this._undoManager){throw new Error("The cell undo manager is already set.")}if(this._notebook&&this._notebook.disableDocumentWideUndoRedo){this._undoManager=new h.UndoManager([this.ymodel],{trackedOrigins:new Set([this])})}}get ysource(){return this._ysource}canUndo(){return!!this.undoManager&&this.undoManager.undoStack.length>0}canRedo(){return!!this.undoManager&&this.undoManager.redoStack.length>0}clearUndoHistory(){var t;(t=this.undoManager)===null||t===void 0?void 0:t.clear()}undo(){var t;(t=this.undoManager)===null||t===void 0?void 0:t.undo()}redo(){var t;(t=this.undoManager)===null||t===void 0?void 0:t.redo()}dispose(){var t;if(this._isDisposed)return;this._isDisposed=true;this.ymodel.unobserveDeep(this._modelObserver);if(this._awareness){const t=this._awareness.doc;this._awareness.destroy();t.destroy()}if(this._undoManager){if(this._undoManager===((t=this.notebook)===null||t===void 0?void 0:t.undoManager)){this._undoManager=null}else{this._undoManager.destroy()}}this._disposed.emit();i.Signal.clearData(this)}getId(){return this.ymodel.get("id")}getSource(){return this.ysource.toString()}setSource(t){this.transact((()=>{this.ysource.delete(0,this.ysource.length);this.ysource.insert(0,t)}))}updateSource(t,e,s=""){this.transact((()=>{const n=this.ysource;n.insert(t,s);n.delete(t+s.length,e-t)}))}deleteMetadata(t){if(typeof this.getMetadata(t)==="undefined"){return}this.transact((()=>{this._ymetadata.delete(t);const e=this.getMetadata("jupyter");if(t==="collapsed"&&e){const{outputs_hidden:t,...s}=e;if(Object.keys(s).length===0){this._ymetadata.delete("jupyter")}else{this._ymetadata.set("jupyter",s)}}else if(t==="jupyter"){this._ymetadata.delete("collapsed")}}),false)}getMetadata(t){const e=this._ymetadata;if(e===undefined){return undefined}if(typeof t==="string"){const s=e.get(t);return typeof s==="undefined"?undefined:o.JSONExt.deepCopy(e.get(t))}else{return o.JSONExt.deepCopy(e.toJSON())}}setMetadata(t,e){var s,n;if(typeof t==="string"){if(typeof e==="undefined"){throw new TypeError(`Metadata value for ${t} cannot be 'undefined'; use deleteMetadata.`)}const n=t;if(o.JSONExt.deepEqual((s=this.getMetadata(n))!==null&&s!==void 0?s:null,e)){return}this.transact((()=>{var t;this._ymetadata.set(n,e);if(n==="collapsed"){const s=(t=this.getMetadata("jupyter"))!==null&&t!==void 0?t:{};if(s.outputs_hidden!==e){this.setMetadata("jupyter",{...s,outputs_hidden:e})}}else if(n==="jupyter"){const t=e["outputs_hidden"];if(typeof t!=="undefined"){if(this.getMetadata("collapsed")!==t){this.setMetadata("collapsed",t)}}else{this.deleteMetadata("collapsed")}}}),false)}else{const e=o.JSONExt.deepCopy(t);if(e.collapsed!=null){e.jupyter=e.jupyter||{};e.jupyter.outputs_hidden=e.collapsed}else if(((n=e===null||e===void 0?void 0:e.jupyter)===null||n===void 0?void 0:n.outputs_hidden)!=null){e.collapsed=e.jupyter.outputs_hidden}if(!o.JSONExt.deepEqual(e,this.getMetadata())){this.transact((()=>{for(const[t,s]of Object.entries(e)){this._ymetadata.set(t,s)}}),false)}}}toJSON(){return{id:this.getId(),cell_type:this.cell_type,source:this.getSource(),metadata:this.getMetadata()}}transact(t,e=true){!this.notebook||this.notebook.disableDocumentWideUndoRedo?this.ymodel.doc==null?t():this.ymodel.doc.transact(t,e?this:null):this.notebook.transact(t,e)}getChanges(t){const e={};const s=t.find((t=>t.target===this.ymodel.get("source")));if(s){e.sourceChange=s.changes.delta}const n=t.find((t=>t.target===this._ymetadata));if(n){e.metadataChange=n.changes.keys;n.changes.keys.forEach(((t,e)=>{switch(t.action){case"add":this._metadataChanged.emit({key:e,newValue:this._ymetadata.get(e),type:"add"});break;case"delete":this._metadataChanged.emit({key:e,oldValue:t.oldValue,type:"remove"});break;case"update":{const s=this._ymetadata.get(e);const n=t.oldValue;let a=true;if(typeof n=="object"&&typeof s=="object"){a=o.JSONExt.deepEqual(n,s)}else{a=n===s}if(!a){this._metadataChanged.emit({key:e,type:"change",oldValue:n,newValue:s})}}break}}))}const a=t.find((t=>t.target===this.ymodel));const i=this.ymodel.get("source");if(a&&a.keysChanged.has("source")){e.sourceChange=[{delete:this._prevSourceLength},{insert:i.toString()}]}this._prevSourceLength=i.length;return e}}class C extends S{static create(t){return super.create(t)}constructor(t,e,s,n={},a){super(t,e,n,a);this._youtputs=s}get cell_type(){return"code"}get execution_count(){return this.ymodel.get("execution_count")||null}set execution_count(t){if(this.ymodel.get("execution_count")!==t){this.transact((()=>{this.ymodel.set("execution_count",t)}),false)}}get outputs(){return this.getOutputs()}set outputs(t){this.setOutputs(t)}getOutputs(){return o.JSONExt.deepCopy(this._youtputs.toArray())}setOutputs(t){this.transact((()=>{this._youtputs.delete(0,this._youtputs.length);this._youtputs.insert(0,t)}),false)}updateOutputs(t,e,s=[]){const n=e{this._youtputs.delete(t,n);this._youtputs.insert(t,s)}),false)}toJSON(){return{...super.toJSON(),outputs:this.getOutputs(),execution_count:this.execution_count}}getChanges(t){const e=super.getChanges(t);const s=t.find((t=>t.target===this.ymodel.get("outputs")));if(s){e.outputsChange=s.changes.delta}const n=t.find((t=>t.target===this.ymodel));if(n&&n.keysChanged.has("execution_count")){const t=n.changes.keys.get("execution_count");e.executionCountChange={oldValue:t.oldValue,newValue:this.ymodel.get("execution_count")}}return e}}class O extends S{get attachments(){return this.getAttachments()}set attachments(t){this.setAttachments(t)}getAttachments(){return this.ymodel.get("attachments")}setAttachments(t){this.transact((()=>{if(t==null){this.ymodel.delete("attachments")}else{this.ymodel.set("attachments",t)}}),false)}getChanges(t){const e=super.getChanges(t);const s=t.find((t=>t.target===this.ymodel));if(s&&s.keysChanged.has("attachments")){const t=s.changes.keys.get("attachments");e.executionCountChange={oldValue:t.oldValue,newValue:this.ymodel.get("attachments")}}return e}}class V extends O{static create(t){return super.create(t)}get cell_type(){return"raw"}toJSON(){return{id:this.getId(),cell_type:"raw",source:this.getSource(),metadata:this.getMetadata(),attachments:this.getAttachments()}}}class U extends O{static create(t){return super.create(t)}get cell_type(){return"markdown"}toJSON(){return{id:this.getId(),cell_type:"markdown",source:this.getSource(),metadata:this.getMetadata(),attachments:this.getAttachments()}}}class D extends b{constructor(t={}){var e;super();this.version="1.0.0";this.ymeta=this.ydoc.getMap("meta");this._onMetaChanged=t=>{const e=t.find((t=>t.target===this.ymeta.get("metadata")));if(e){const t=e.changes.keys;const s=this.ymeta.get("metadata");e.changes.keys.forEach(((t,e)=>{switch(t.action){case"add":this._metadataChanged.emit({key:e,type:"add",newValue:s.get(e)});break;case"delete":this._metadataChanged.emit({key:e,type:"remove",oldValue:t.oldValue});break;case"update":{const n=s.get(e);const a=t.oldValue;let i=true;if(typeof a=="object"&&typeof n=="object"){i=o.JSONExt.deepEqual(a,n)}else{i=a===n}if(!i){this._metadataChanged.emit({key:e,type:"change",oldValue:a,newValue:n})}}break}}));this._changed.emit({metadataChange:t})}const s=t.find((t=>t.target===this.ymeta));if(!s){return}if(s.keysChanged.has("metadata")){const t=s.changes.keys.get("metadata");if((t===null||t===void 0?void 0:t.action)==="add"&&!t.oldValue){const t=new Map;for(const e of Object.keys(this.metadata)){t.set(e,{action:"add",oldValue:undefined});this._metadataChanged.emit({key:e,type:"add",newValue:this.getMetadata(e)})}this._changed.emit({metadataChange:t})}}if(s.keysChanged.has("nbformat")){const t=s.changes.keys.get("nbformat");const e={key:"nbformat",oldValue:(t===null||t===void 0?void 0:t.oldValue)?t.oldValue:undefined,newValue:this.nbformat};this._changed.emit({nbformatChanged:e})}if(s.keysChanged.has("nbformat_minor")){const t=s.changes.keys.get("nbformat_minor");const e={key:"nbformat_minor",oldValue:(t===null||t===void 0?void 0:t.oldValue)?t.oldValue:undefined,newValue:this.nbformat_minor};this._changed.emit({nbformatChanged:e})}};this._onYCellsChanged=t=>{t.changes.added.forEach((t=>{const e=t.content.type;if(!this._ycellMapping.has(e)){const t=M(e,{notebook:this});t.setUndoManager();this._ycellMapping.set(e,t)}}));t.changes.deleted.forEach((t=>{const e=t.content.type;const s=this._ycellMapping.get(e);if(s){s.dispose();this._ycellMapping.delete(e)}}));let e=0;const s=[];t.changes.delta.forEach((t=>{if(t.insert!=null){const n=t.insert.map((t=>this._ycellMapping.get(t)));s.push({insert:n});this.cells.splice(e,0,...n);e+=t.insert.length}else if(t.delete!=null){s.push(t);this.cells.splice(e,t.delete)}else if(t.retain!=null){s.push(t);e+=t.retain}}));this._changed.emit({cellsChange:s})};this._metadataChanged=new i.Signal(this);this._ycells=this.ydoc.getArray("cells");this._ycellMapping=new WeakMap;this._disableDocumentWideUndoRedo=(e=t.disableDocumentWideUndoRedo)!==null&&e!==void 0?e:false;this.cells=this._ycells.toArray().map((t=>{if(!this._ycellMapping.has(t)){this._ycellMapping.set(t,M(t,{notebook:this}))}return this._ycellMapping.get(t)}));this.undoManager.addToScope(this._ycells);this._ycells.observe(this._onYCellsChanged);this.ymeta.observeDeep(this._onMetaChanged)}static create(t={}){var e,s,n,a,o,i,r,d,l;const c=new D({disableDocumentWideUndoRedo:(e=t.disableDocumentWideUndoRedo)!==null&&e!==void 0?e:false});const h={cells:(n=(s=t.data)===null||s===void 0?void 0:s.cells)!==null&&n!==void 0?n:[],nbformat:(o=(a=t.data)===null||a===void 0?void 0:a.nbformat)!==null&&o!==void 0?o:4,nbformat_minor:(r=(i=t.data)===null||i===void 0?void 0:i.nbformat_minor)!==null&&r!==void 0?r:5,metadata:(l=(d=t.data)===null||d===void 0?void 0:d.metadata)!==null&&l!==void 0?l:{}};c.fromJSON(h);return c}get disableDocumentWideUndoRedo(){return this._disableDocumentWideUndoRedo}get metadata(){return this.getMetadata()}set metadata(t){this.setMetadata(t)}get metadataChanged(){return this._metadataChanged}get nbformat(){return this.ymeta.get("nbformat")}set nbformat(t){this.transact((()=>{this.ymeta.set("nbformat",t)}),false)}get nbformat_minor(){return this.ymeta.get("nbformat_minor")}set nbformat_minor(t){this.transact((()=>{this.ymeta.set("nbformat_minor",t)}),false)}dispose(){if(this.isDisposed){return}this._ycells.unobserve(this._onYCellsChanged);this.ymeta.unobserveDeep(this._onMetaChanged);super.dispose()}getCell(t){return this.cells[t]}addCell(t){return this.insertCell(this._ycells.length,t)}insertCell(t,e){return this.insertCells(t,[e])[0]}insertCells(t,e){const s=e.map((t=>{const e=w(t,this);this._ycellMapping.set(e.ymodel,e);return e}));this.transact((()=>{this._ycells.insert(t,s.map((t=>t.ymodel)))}));s.forEach((t=>{t.setUndoManager()}));return s}moveCell(t,e){this.moveCells(t,e)}moveCells(t,e,s=1){const n=new Array(s).fill(true).map(((e,s)=>this.getCell(t+s).toJSON()));this.transact((()=>{this._ycells.delete(t,s);this._ycells.insert(t>e?e:e-s+1,n.map((t=>w(t,this).ymodel)))}))}deleteCell(t){this.deleteCellRange(t,t+1)}deleteCellRange(t,e){this.transact((()=>{this._ycells.delete(t,e-t)}))}deleteMetadata(t){if(typeof this.getMetadata(t)==="undefined"){return}const e=this.metadata;delete e[t];this.setMetadata(e)}getMetadata(t){const e=this.ymeta.get("metadata");if(e===undefined){return undefined}if(typeof t==="string"){const s=e.get(t);return typeof s==="undefined"?undefined:o.JSONExt.deepCopy(s)}else{return o.JSONExt.deepCopy(e.toJSON())}}setMetadata(t,e){var s;if(typeof t==="string"){if(typeof e==="undefined"){throw new TypeError(`Metadata value for ${t} cannot be 'undefined'; use deleteMetadata.`)}if(o.JSONExt.deepEqual((s=this.getMetadata(t))!==null&&s!==void 0?s:null,e)){return}const n={};n[t]=e;this.updateMetadata(n)}else{if(!this.metadata||!o.JSONExt.deepEqual(this.metadata,t)){const e=o.JSONExt.deepCopy(t);const s=this.ymeta.get("metadata");if(s===undefined){return undefined}this.transact((()=>{s.clear();for(const[t,n]of Object.entries(e)){s.set(t,n)}}))}}}updateMetadata(t){const e=o.JSONExt.deepCopy(t);const s=this.ymeta.get("metadata");if(s===undefined){return undefined}this.transact((()=>{for(const[t,n]of Object.entries(e)){s.set(t,n)}}))}fromJSON(t){this.transact((()=>{this.nbformat=t.nbformat;this.nbformat_minor=t.nbformat_minor;const e=t.metadata;if(e["orig_nbformat"]!==undefined){delete e["orig_nbformat"]}if(!this.metadata){const t=new h.Map;for(const[s,n]of Object.entries(e)){t.set(s,n)}this.ymeta.set("metadata",t)}else{this.metadata=e}const s=t.nbformat===4&&t.nbformat_minor>=5;const n=t.cells.map((t=>{if(!s){delete t.id}return t}));this.insertCells(this.cells.length,n);this.deleteCellRange(0,this.cells.length)}))}toJSON(){const t=this.nbformat===4&&this.nbformat_minor<=4;return{metadata:this.metadata,nbformat_minor:this.nbformat_minor,nbformat:this.nbformat,cells:this.cells.map((e=>{const s=e.toJSON();if(t){delete s.id}return s}))}}}},7049:(t,e,s)=>{s.d(e,{Dp:()=>r,Z$:()=>n,kJ:()=>u,s7:()=>i});const n=t=>t[t.length-1];const a=()=>[];const o=t=>t.slice();const i=(t,e)=>{for(let s=0;s{for(let s=0;s{for(let s=0;st.length===e.length&&d(t,((t,s)=>t===e[s]));const h=t=>t.reduce(((t,e)=>t.concat(e)),[]);const u=Array.isArray;const g=t=>r(set.from(t));const f=(t,e)=>{const s=set.create();const n=[];for(let a=0;a{s.d(e,{Hi:()=>c,PP:()=>a,gB:()=>h});var n=s(59735);const a=(t,e,s=0)=>{try{for(;s{};const i=t=>t();const r=t=>t;const d=(t,e)=>t===e;const l=(t,e)=>t===e||t!=null&&e!=null&&t.constructor===e.constructor&&(t instanceof Array&&array.equalFlat(t,e)||typeof t==="object"&&object.equalFlat(t,e));const c=(t,e)=>{if(t==null||e==null){return d(t,e)}if(t.constructor!==e.constructor){return false}if(t===e){return true}switch(t.constructor){case ArrayBuffer:t=new Uint8Array(t);e=new Uint8Array(e);case Uint8Array:{if(t.byteLength!==e.byteLength){return false}for(let s=0;se.includes(t)},72382:(t,e,s)=>{s.d(e,{JG:()=>a,UI:()=>i,Ue:()=>n,Yj:()=>r,Yu:()=>o});const n=()=>new Map;const a=t=>{const e=n();t.forEach(((t,s)=>{e.set(s,t)}));return e};const o=(t,e,s)=>{let n=t.get(e);if(n===undefined){t.set(e,n=s())}return n};const i=(t,e)=>{const s=[];for(const[n,a]of t){s.push(e(a,n))}return s};const r=(t,e)=>{for(const[s,n]of t){if(e(n,s)){return true}}return false};const d=(t,e)=>{for(const[s,n]of t){if(!e(n,s)){return false}}return true}},14247:(t,e,s)=>{s.d(e,{Fp:()=>f,GR:()=>b,GW:()=>n,VV:()=>g,Wn:()=>o});const n=Math.floor;const a=Math.ceil;const o=Math.abs;const i=Math.imul;const r=Math.round;const d=Math.log10;const l=Math.log2;const c=Math.log;const h=Math.sqrt;const u=(t,e)=>t+e;const g=(t,e)=>tt>e?t:e;const p=Number.isNaN;const m=Math.pow;const y=t=>Math.pow(10,t);const _=Math.sign;const b=t=>t!==0?t<0:1/t<0},59735:(t,e,s)=>{s.d(e,{$m:()=>g,kE:()=>d,l$:()=>u});const n=()=>Object.create(null);const a=Object.assign;const o=Object.keys;const i=(t,e)=>{for(const s in t){e(t[s],s)}};const r=(t,e)=>{const s=[];for(const n in t){s.push(e(t[n],n))}return s};const d=t=>o(t).length;const l=(t,e)=>{for(const s in t){if(e(t[s],s)){return true}}return false};const c=t=>{for(const e in t){return false}return true};const h=(t,e)=>{for(const s in t){if(!e(t[s],s)){return false}}return true};const u=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);const g=(t,e)=>t===e||d(t)===d(e)&&h(t,((t,s)=>(t!==undefined||u(e,s))&&e[s]===t))},58290:(t,e,s)=>{s.d(e,{y:()=>i});var n=s(72382);var a=s(48307);var o=s(7049);class i{constructor(){this._observers=n.Ue()}on(t,e){n.Yu(this._observers,t,a.Ue).add(e)}once(t,e){const s=(...n)=>{this.off(t,s);e(...n)};this.on(t,s)}off(t,e){const s=this._observers.get(t);if(s!==undefined){s.delete(e);if(s.size===0){this._observers.delete(t)}}}emit(t,e){return o.Dp((this._observers.get(t)||n.Ue()).values()).forEach((t=>t(...e)))}destroy(){this._observers=n.Ue()}}},48307:(t,e,s)=>{s.d(e,{Ue:()=>n});const n=()=>new Set;const a=t=>Array.from(t);const o=t=>t.values().next().value||undefined;const i=t=>new Set(t)},20817:(t,e,s)=>{s.d(e,{ZG:()=>a});const n=()=>new Date;const a=Date.now;const o=t=>{if(t<6e4){const e=metric.prefix(t,-1);return math.round(e.n*100)/100+e.prefix+"s"}t=math.floor(t/1e3);const e=t%60;const s=math.floor(t/60)%60;const n=math.floor(t/3600)%24;const a=math.floor(t/86400);if(a>0){return a+"d"+(n>0||s>30?" "+(s>30?n+1:n)+"h":"")}if(n>0){return n+"h"+(s>0||e>30?" "+(e>30?s+1:s)+"min":"")}return s+"min"+(e>0?" "+e+"s":"")}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/1294.9d27be1098bc8abebe3f.js b/bootcamp/share/jupyter/lab/static/1294.9d27be1098bc8abebe3f.js new file mode 100644 index 0000000..1d265cb --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/1294.9d27be1098bc8abebe3f.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1294],{21294:(e,r,t)=>{t.r(r);t.d(r,{haskell:()=>w});function n(e,r,t){r(t);return t(e,r)}var a=/[a-z_]/;var i=/[A-Z]/;var o=/\d/;var l=/[0-9A-Fa-f]/;var u=/[0-7]/;var s=/[a-z_A-Z0-9'\xa1-\uffff]/;var f=/[-!#$%&*+.\/<=>?@\\^|~:]/;var c=/[(),;[\]`{}]/;var d=/[ \t\v\f]/;function p(e,r){if(e.eatWhile(d)){return null}var t=e.next();if(c.test(t)){if(t=="{"&&e.eat("-")){var p="comment";if(e.eat("#")){p="meta"}return n(e,r,m(p,1))}return null}if(t=="'"){if(e.eat("\\")){e.next()}else{e.next()}if(e.eat("'")){return"string"}return"error"}if(t=='"'){return n(e,r,h)}if(i.test(t)){e.eatWhile(s);if(e.eat(".")){return"qualifier"}return"type"}if(a.test(t)){e.eatWhile(s);return"variable"}if(o.test(t)){if(t=="0"){if(e.eat(/[xX]/)){e.eatWhile(l);return"integer"}if(e.eat(/[oO]/)){e.eatWhile(u);return"number"}}e.eatWhile(o);var p="number";if(e.match(/^\.\d+/)){p="number"}if(e.eat(/[eE]/)){p="number";e.eat(/[-+]/);e.eatWhile(o)}return p}if(t=="."&&e.eat("."))return"keyword";if(f.test(t)){if(t=="-"&&e.eat(/-/)){e.eatWhile(/-/);if(!e.eat(f)){e.skipToEnd();return"comment"}}e.eatWhile(f);return"variable"}return"error"}function m(e,r){if(r==0){return p}return function(t,n){var a=r;while(!t.eol()){var i=t.next();if(i=="{"&&t.eat("-")){++a}else if(i=="-"&&t.eat("}")){--a;if(a==0){n(p);return e}}}n(m(e,a));return e}}function h(e,r){while(!e.eol()){var t=e.next();if(t=='"'){r(p);return"string"}if(t=="\\"){if(e.eol()||e.eat(d)){r(g);return"string"}if(e.eat("&")){}else{e.next()}}}r(p);return"error"}function g(e,r){if(e.eat("\\")){return n(e,r,h)}e.next();r(p);return"error"}var v=function(){var e={};function r(r){return function(){for(var t=0;t","@","~","=>");r("builtin")("!!","$!","$","&&","+","++","-",".","/","/=","<","<*","<=","<$>","<*>","=<<","==",">",">=",">>",">>=","^","^^","||","*","*>","**");r("builtin")("Applicative","Bool","Bounded","Char","Double","EQ","Either","Enum","Eq","False","FilePath","Float","Floating","Fractional","Functor","GT","IO","IOError","Int","Integer","Integral","Just","LT","Left","Maybe","Monad","Nothing","Num","Ord","Ordering","Rational","Read","ReadS","Real","RealFloat","RealFrac","Right","Show","ShowS","String","True");r("builtin")("abs","acos","acosh","all","and","any","appendFile","asTypeOf","asin","asinh","atan","atan2","atanh","break","catch","ceiling","compare","concat","concatMap","const","cos","cosh","curry","cycle","decodeFloat","div","divMod","drop","dropWhile","either","elem","encodeFloat","enumFrom","enumFromThen","enumFromThenTo","enumFromTo","error","even","exp","exponent","fail","filter","flip","floatDigits","floatRadix","floatRange","floor","fmap","foldl","foldl1","foldr","foldr1","fromEnum","fromInteger","fromIntegral","fromRational","fst","gcd","getChar","getContents","getLine","head","id","init","interact","ioError","isDenormalized","isIEEE","isInfinite","isNaN","isNegativeZero","iterate","last","lcm","length","lex","lines","log","logBase","lookup","map","mapM","mapM_","max","maxBound","maximum","maybe","min","minBound","minimum","mod","negate","not","notElem","null","odd","or","otherwise","pi","pred","print","product","properFraction","pure","putChar","putStr","putStrLn","quot","quotRem","read","readFile","readIO","readList","readLn","readParen","reads","readsPrec","realToFrac","recip","rem","repeat","replicate","return","reverse","round","scaleFloat","scanl","scanl1","scanr","scanr1","seq","sequence","sequence_","show","showChar","showList","showParen","showString","shows","showsPrec","significand","signum","sin","sinh","snd","span","splitAt","sqrt","subtract","succ","sum","tail","take","takeWhile","tan","tanh","toEnum","toInteger","toRational","truncate","uncurry","undefined","unlines","until","unwords","unzip","unzip3","userError","words","writeFile","zip","zip3","zipWith","zipWith3");return e}();const w={name:"haskell",startState:function(){return{f:p}},copyState:function(e){return{f:e.f}},token:function(e,r){var t=r.f(e,(function(e){r.f=e}));var n=e.current();return v.hasOwnProperty(n)?v[n]:t},languageData:{commentTokens:{line:"--",block:{open:"{-",close:"-}"}}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/141.f110448d494068ebcc87.js b/bootcamp/share/jupyter/lab/static/141.f110448d494068ebcc87.js new file mode 100644 index 0000000..ce857ef --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/141.f110448d494068ebcc87.js @@ -0,0 +1,2 @@ +/*! For license information please see 141.f110448d494068ebcc87.js.LICENSE.txt */ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[141],{45505:(r,n,t)=>{t.d(n,{Z:()=>f});var e=t(21059);var a=t(5876);var u=t(11963);var o=t(39350);var l=a.Z?a.Z.isConcatSpreadable:undefined;function c(r){return(0,o.Z)(r)||(0,u.Z)(r)||!!(l&&r&&r[l])}const i=c;function v(r,n,t,a,u){var o=-1,l=r.length;t||(t=i);u||(u=[]);while(++o0&&t(c)){if(n>1){v(c,n-1,t,a,u)}else{(0,e.Z)(u,c)}}else if(!a){u[u.length]=c}}return u}const f=v},4015:(r,n,t)=>{t.d(n,{Z:()=>i});var e=t(47701);var a=t(58204);var u=t(9638);var o=t(89122);var l=t(35429);function c(r,n,t,c){if(!(0,o.Z)(r)){return r}n=(0,a.Z)(n,r);var i=-1,v=n.length,f=v-1,s=r;while(s!=null&&++i{t.d(n,{Z:()=>Z});var e=t(58204);function a(r){var n=r==null?0:r.length;return n?r[n-1]:undefined}const u=a;var o=t(23791);function l(r,n,t){var e=-1,a=r.length;if(n<0){n=-n>a?0:a+n}t=t>a?a:t;if(t<0){t+=a}a=n>t?0:t-n>>>0;n>>>=0;var u=Array(a);while(++e{t.d(n,{Z:()=>i});var e=t(45505);function a(r){var n=r==null?0:r.length;return n?(0,e.Z)(r,1):[]}const u=a;var o=t(31356);var l=t(16749);function c(r){return(0,l.Z)((0,o.Z)(r,undefined,u),r+"")}const i=c},67754:(r,n,t)=>{t.d(n,{Z:()=>v});var e=t(58204);var a=t(11963);var u=t(39350);var o=t(9638);var l=t(20523);var c=t(35429);function i(r,n,t){n=(0,e.Z)(n,r);var i=-1,v=n.length,f=false;while(++i{t.d(n,{Z:()=>l});function e(r,n,t){switch(t.length){case 0:return r.call(n);case 1:return r.call(n,t[0]);case 2:return r.call(n,t[0],t[1]);case 3:return r.call(n,t[0],t[1],t[2])}return r.apply(n,t)}const a=e;var u=Math.max;function o(r,n,t){n=u(n===undefined?r.length-1:n,0);return function(){var e=arguments,o=-1,l=u(e.length-n,0),c=Array(l);while(++o{t.d(n,{Z:()=>d});function e(r){return function(){return r}}const a=e;var u=t(14608);var o=t(63305);var l=!u.Z?o.Z:function(r,n){return(0,u.Z)(r,"toString",{configurable:true,enumerable:false,value:a(n),writable:true})};const c=l;var i=800,v=16;var f=Date.now;function s(r){var n=0,t=0;return function(){var e=f(),a=v-(e-t);t=e;if(a>0){if(++n>=i){return arguments[0]}}else{n=0}return r.apply(undefined,arguments)}}const Z=s;var p=Z(c);const d=p},19055:(r,n,t)=>{t.d(n,{Z:()=>i});var e=Object.prototype;var a=e.hasOwnProperty;function u(r,n){return r!=null&&a.call(r,n)}const o=u;var l=t(67754);function c(r,n){return r!=null&&(0,l.Z)(r,n,o)}const i=c},26627:(r,n,t)=>{t.d(n,{Z:()=>l});function e(r,n){return r!=null&&n in Object(r)}const a=e;var u=t(67754);function o(r,n){return r!=null&&(0,u.Z)(r,n,a)}const l=o},63305:(r,n,t)=>{t.d(n,{Z:()=>a});function e(r){return r}const a=e},12964:(r,n,t)=>{t.d(n,{Z:()=>h});var e=t(14926);var a=t(34010);var u=t(11963);var o=t(39350);var l=t(5710);var c=t(74002);var i=t(9794);var v=t(50226);var f="[object Map]",s="[object Set]";var Z=Object.prototype;var p=Z.hasOwnProperty;function d(r){if(r==null){return true}if((0,l.Z)(r)&&((0,o.Z)(r)||typeof r=="string"||typeof r.splice=="function"||(0,c.Z)(r)||(0,v.Z)(r)||(0,u.Z)(r))){return!r.length}var n=(0,a.Z)(r);if(n==f||n==s){return!r.size}if((0,i.Z)(r)){return!(0,e.Z)(r).length}for(var t in r){if(p.call(r,t)){return false}}return true}const h=d},28461:(r,n,t)=>{t.d(n,{Z:()=>P});var e=t(80758);var a=t(99895);var u=t(80183);var o=t(58204);var l=t(52457);var c=t(73832);var i=t(67290);var v=t(23195);var f="[object Object]";var s=Function.prototype,Z=Object.prototype;var p=s.toString;var d=Z.hasOwnProperty;var h=p.call(Object);function y(r){if(!(0,v.Z)(r)||(0,c.Z)(r)!=f){return false}var n=(0,i.Z)(r);if(n===null){return true}var t=d.call(n,"constructor")&&n.constructor;return typeof t=="function"&&t instanceof t&&p.call(t)==h}const _=y;function g(r){return _(r)?undefined:r}const b=g;var w=t(19550);var O=t(71677);var j=1,k=2,S=4;var m=(0,w.Z)((function(r,n){var t={};if(r==null){return t}var c=false;n=(0,e.Z)(n,(function(n){n=(0,o.Z)(n,r);c||(c=n.length>1);return n}));(0,l.Z)(r,(0,O.Z)(r),t);if(c){t=(0,a.Z)(t,j|k|S,b)}var i=n.length;while(i--){(0,u.Z)(t,n[i])}return t}));const P=m},97684:(r,n,t)=>{t.d(n,{Z:()=>u});var e=t(4015);function a(r,n,t){return r==null?r:(0,e.Z)(r,n,t)}const u=a},75251:(r,n,t)=>{var e=t(28416),a=Symbol.for("react.element"),u=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,l=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function i(r,n,t){var e,u={},i=null,v=null;void 0!==t&&(i=""+t);void 0!==n.key&&(i=""+n.key);void 0!==n.ref&&(v=n.ref);for(e in n)o.call(n,e)&&!c.hasOwnProperty(e)&&(u[e]=n[e]);if(r&&r.defaultProps)for(e in n=r.defaultProps,n)void 0===u[e]&&(u[e]=n[e]);return{$$typeof:a,type:r,key:i,ref:v,props:u,_owner:l.current}}n.Fragment=u;n.jsx=i;n.jsxs=i},85893:(r,n,t)=>{if(true){r.exports=t(75251)}else{}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/141.f110448d494068ebcc87.js.LICENSE.txt b/bootcamp/share/jupyter/lab/static/141.f110448d494068ebcc87.js.LICENSE.txt new file mode 100644 index 0000000..e68557b --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/141.f110448d494068ebcc87.js.LICENSE.txt @@ -0,0 +1,9 @@ +/** + * @license React + * react-jsx-runtime.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ diff --git a/bootcamp/share/jupyter/lab/static/1410.e2302ff5f564d6e596bb.js b/bootcamp/share/jupyter/lab/static/1410.e2302ff5f564d6e596bb.js new file mode 100644 index 0000000..53aeacd --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/1410.e2302ff5f564d6e596bb.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1410],{51410:(e,c,t)=>{t.r(c);t.d(c,{wast:()=>i,wastLanguage:()=>$});var a=t(24104);var n=t.n(a);var O=t(6016);var r=t.n(O);var o=t(11705);const s={__proto__:null,anyref:34,dataref:34,eqref:34,externref:34,i31ref:34,funcref:34,i8:34,i16:34,i32:34,i64:34,f32:34,f64:34};const Q=o.WQ.deserialize({version:14,states:"!^Q]QPOOOqQPO'#CbOOQO'#Cd'#CdOOQO'#Cl'#ClOOQO'#Ch'#ChQ]QPOOOOQO,58|,58|OxQPO,58|OOQO-E6f-E6fOOQO1G.h1G.h",stateData:"!P~O_OSPOSQOS~OTPOVROXROYROZROaQO~OSUO~P]OSXO~P]O",goto:"xaPPPPPPbPbPPPhPPPrXROPTVQTOQVPTWTVXSOPTV",nodeNames:"⚠ LineComment BlockComment Module ) ( App Identifier Type Keyword Number String",maxTerm:17,nodeProps:[["openedBy",4,"("],["closedBy",5,")"],["group",-6,6,7,8,9,10,11,"Expression"]],skippedNodes:[0,1,2],repeatNodeCount:1,tokenData:"/Q~R^XY}YZ}]^}pq}rs!Stu!qxy&Vyz'S{|'X}!O'X!Q!R'b!R![)_!]!^,{#T#o-^~!SO_~~!VTOr!Srs!fs#O!S#O#P!k#P~!S~!kOZ~~!nPO~!S~!tiqr$cst$ctu$cuv$cvw$cwx$cz{$c{|$c}!O$c!O!P$c!P!Q$c!Q![$c![!]$c!^!_$c!_!`$c!`!a$c!a!b$c!b!c$c!c!}$c#Q#R$c#R#S$c#S#T$c#T#o$c#p#q$c#r#s$c~$hiV~qr$cst$ctu$cuv$cvw$cwx$cz{$c{|$c}!O$c!O!P$c!P!Q$c!Q![$c![!]$c!^!_$c!_!`$c!`!a$c!a!b$c!b!c$c!c!}$c#Q#R$c#R#S$c#S#T$c#T#o$c#p#q$c#r#s$c~&[PT~!]!^&_~&bRO!]&_!]!^&k!^~&_~&nTOy&_yz&}z!]&_!]!^&k!^~&_~'SOQ~~'XOS~~'[Q!Q!R'b!R![)_~'gUY~!O!P'y!Q![)_!g!h(j#R#S)s#X#Y(j#l#m)y~(ORY~!Q![(X!g!h(j#X#Y(j~(^SY~!Q![(X!g!h(j#R#S)X#X#Y(j~(mR{|(v}!O(v!Q![(|~(yP!Q![(|~)RQY~!Q![(|#R#S(v~)[P!Q![(X~)dTY~!O!P'y!Q![)_!g!h(j#R#S)s#X#Y(j~)vP!Q![)_~)|R!Q![*V!c!i*V#T#Z*V~*[VY~!O!P*q!Q![*V!c!i*V!r!s+n#R#S)y#T#Z*V#d#e+n~*vTY~!Q![+V!c!i+V!r!s+n#T#Z+V#d#e+n~+[UY~!Q![+V!c!i+V!r!s+n#R#S,o#T#Z+V#d#e+n~+qT{|,Q}!O,Q!Q![,^!c!i,^#T#Z,^~,TR!Q![,^!c!i,^#T#Z,^~,cSY~!Q![,^!c!i,^#R#S,Q#T#Z,^~,rR!Q![+V!c!i+V#T#Z+V~-OP!]!^-R~-WQP~OY-RZ~-R~-ciX~qr-^st-^tu-^uv-^vw-^wx-^z{-^{|-^}!O-^!O!P-^!P!Q-^!Q![-^![!]-^!^!_-^!_!`-^!`!a-^!a!b-^!b!c-^!c!}-^#Q#R-^#R#S-^#S#T-^#T#o-^#p#q-^#r#s-^",tokenizers:[0],topRules:{Module:[0,3]},specialized:[{term:9,get:e=>s[e]||-1}],tokenPrec:0});const $=a.LRLanguage.define({name:"wast",parser:Q.configure({props:[a.indentNodeProp.add({App:(0,a.delimitedIndent)({closing:")",align:false})}),a.foldNodeProp.add({App:a.foldInside,BlockComment(e){return{from:e.from+2,to:e.to-2}}}),(0,O.styleTags)({Keyword:O.tags.keyword,Type:O.tags.typeName,Number:O.tags.number,String:O.tags.string,Identifier:O.tags.variableName,LineComment:O.tags.lineComment,BlockComment:O.tags.blockComment,"( )":O.tags.paren})]}),languageData:{commentTokens:{line:";;",block:{open:"(;",close:";)"}},closeBrackets:{brackets:["(",'"']}}});function i(){return new a.LanguageSupport($)}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/1420.e8486ed074346bc629ca.js b/bootcamp/share/jupyter/lab/static/1420.e8486ed074346bc629ca.js new file mode 100644 index 0000000..4b7ed3d --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/1420.e8486ed074346bc629ca.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1420],{61420:(e,t,n)=>{n.r(t);n.d(t,{commonLisp:()=>p});var r=/^(block|let*|return-from|catch|load-time-value|setq|eval-when|locally|symbol-macrolet|flet|macrolet|tagbody|function|multiple-value-call|the|go|multiple-value-prog1|throw|if|progn|unwind-protect|labels|progv|let|quote)$/;var l=/^with|^def|^do|^prog|case$|^cond$|bind$|when$|unless$/;var i=/^(?:[+\-]?(?:\d+|\d*\.\d+)(?:[efd][+\-]?\d+)?|[+\-]?\d+(?:\/[+\-]?\d+)?|#b[+\-]?[01]+|#o[+\-]?[0-7]+|#x[+\-]?[\da-f]+)/;var o=/[^\s'`,@()\[\]";]/;var a;function s(e){var t;while(t=e.next()){if(t=="\\")e.next();else if(!o.test(t)){e.backUp(1);break}}return e.current()}function c(e,t){if(e.eatSpace()){a="ws";return null}if(e.match(i))return"number";var n=e.next();if(n=="\\")n=e.next();if(n=='"')return(t.tokenize=u)(e,t);else if(n=="("){a="open";return"bracket"}else if(n==")"||n=="]"){a="close";return"bracket"}else if(n==";"){e.skipToEnd();a="ws";return"comment"}else if(/['`,@]/.test(n))return null;else if(n=="|"){if(e.skipTo("|")){e.next();return"variableName"}else{e.skipToEnd();return"error"}}else if(n=="#"){var n=e.next();if(n=="("){a="open";return"bracket"}else if(/[+\-=\.']/.test(n))return null;else if(/\d/.test(n)&&e.match(/^\d*#/))return null;else if(n=="|")return(t.tokenize=f)(e,t);else if(n==":"){s(e);return"meta"}else if(n=="\\"){e.next();s(e);return"string.special"}else return"error"}else{var o=s(e);if(o==".")return null;a="symbol";if(o=="nil"||o=="t"||o.charAt(0)==":")return"atom";if(t.lastType=="open"&&(r.test(o)||l.test(o)))return"keyword";if(o.charAt(0)=="&")return"variableName.special";return"variableName"}}function u(e,t){var n=false,r;while(r=e.next()){if(r=='"'&&!n){t.tokenize=c;break}n=!n&&r=="\\"}return"string"}function f(e,t){var n,r;while(n=e.next()){if(n=="#"&&r=="|"){t.tokenize=c;break}r=n}a="ws";return"comment"}const p={name:"commonlisp",startState:function(){return{ctx:{prev:null,start:0,indentTo:0},lastType:null,tokenize:c}},token:function(e,t){if(e.sol()&&typeof t.ctx.indentTo!="number")t.ctx.indentTo=t.ctx.start+1;a=null;var n=t.tokenize(e,t);if(a!="ws"){if(t.ctx.indentTo==null){if(a=="symbol"&&l.test(e.current()))t.ctx.indentTo=t.ctx.start+e.indentUnit;else t.ctx.indentTo="next"}else if(t.ctx.indentTo=="next"){t.ctx.indentTo=e.column()}t.lastType=a}if(a=="open")t.ctx={prev:t.ctx,start:e.column(),indentTo:null};else if(a=="close")t.ctx=t.ctx.prev||t.ctx;return n},indent:function(e){var t=e.ctx.indentTo;return typeof t=="number"?t:e.ctx.start+1},languageData:{commentTokens:{line:";;",block:{open:"#|",close:"|#"}},closeBrackets:{brackets:["(","[","{",'"']}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/1448.c391061d8a8344f9d177.js b/bootcamp/share/jupyter/lab/static/1448.c391061d8a8344f9d177.js new file mode 100644 index 0000000..cd5740a --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/1448.c391061d8a8344f9d177.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1448],{14616:(t,e,r)=>{var o;Object.defineProperty(e,"__esModule",{value:true});e.MML=void 0;var n=r(18426);var i=r(27225);var a=r(16689);var l=r(94411);var u=r(5213);var p=r(86237);var s=r(4254);var c=r(17931);var f=r(68550);var y=r(294);var M=r(53162);var d=r(68091);var h=r(95546);var m=r(53583);var b=r(38480);var v=r(15837);var _=r(90719);var g=r(22599);var O=r(79024);var j=r(74529);var k=r(75723);var P=r(13195);var w=r(7252);var A=r(2117);var N=r(49016);var x=r(89);var I=r(53698);var C=r(83954);var T=r(19223);var E=r(66846);var S=r(67801);e.MML=(o={},o[i.MmlMath.prototype.kind]=i.MmlMath,o[a.MmlMi.prototype.kind]=a.MmlMi,o[l.MmlMn.prototype.kind]=l.MmlMn,o[u.MmlMo.prototype.kind]=u.MmlMo,o[p.MmlMtext.prototype.kind]=p.MmlMtext,o[s.MmlMspace.prototype.kind]=s.MmlMspace,o[c.MmlMs.prototype.kind]=c.MmlMs,o[f.MmlMrow.prototype.kind]=f.MmlMrow,o[f.MmlInferredMrow.prototype.kind]=f.MmlInferredMrow,o[y.MmlMfrac.prototype.kind]=y.MmlMfrac,o[M.MmlMsqrt.prototype.kind]=M.MmlMsqrt,o[d.MmlMroot.prototype.kind]=d.MmlMroot,o[h.MmlMstyle.prototype.kind]=h.MmlMstyle,o[m.MmlMerror.prototype.kind]=m.MmlMerror,o[b.MmlMpadded.prototype.kind]=b.MmlMpadded,o[v.MmlMphantom.prototype.kind]=v.MmlMphantom,o[_.MmlMfenced.prototype.kind]=_.MmlMfenced,o[g.MmlMenclose.prototype.kind]=g.MmlMenclose,o[O.MmlMaction.prototype.kind]=O.MmlMaction,o[j.MmlMsub.prototype.kind]=j.MmlMsub,o[j.MmlMsup.prototype.kind]=j.MmlMsup,o[j.MmlMsubsup.prototype.kind]=j.MmlMsubsup,o[k.MmlMunder.prototype.kind]=k.MmlMunder,o[k.MmlMover.prototype.kind]=k.MmlMover,o[k.MmlMunderover.prototype.kind]=k.MmlMunderover,o[P.MmlMmultiscripts.prototype.kind]=P.MmlMmultiscripts,o[P.MmlMprescripts.prototype.kind]=P.MmlMprescripts,o[P.MmlNone.prototype.kind]=P.MmlNone,o[w.MmlMtable.prototype.kind]=w.MmlMtable,o[A.MmlMlabeledtr.prototype.kind]=A.MmlMlabeledtr,o[A.MmlMtr.prototype.kind]=A.MmlMtr,o[N.MmlMtd.prototype.kind]=N.MmlMtd,o[x.MmlMaligngroup.prototype.kind]=x.MmlMaligngroup,o[I.MmlMalignmark.prototype.kind]=I.MmlMalignmark,o[C.MmlMglyph.prototype.kind]=C.MmlMglyph,o[T.MmlSemantics.prototype.kind]=T.MmlSemantics,o[T.MmlAnnotation.prototype.kind]=T.MmlAnnotation,o[T.MmlAnnotationXML.prototype.kind]=T.MmlAnnotationXML,o[E.TeXAtom.prototype.kind]=E.TeXAtom,o[S.MathChoice.prototype.kind]=S.MathChoice,o[n.TextNode.prototype.kind]=n.TextNode,o[n.XMLNode.prototype.kind]=n.XMLNode,o)},61448:function(t,e,r){var o=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}();Object.defineProperty(e,"__esModule",{value:true});e.MmlFactory=void 0;var n=r(88100);var i=r(14616);var a=function(t){o(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"MML",{get:function(){return this.node},enumerable:false,configurable:true});e.defaultNodes=i.MML;return e}(n.AbstractNodeFactory);e.MmlFactory=a},89:function(t,e,r){var o=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}();var n=this&&this.__assign||function(){n=Object.assign||function(t){for(var e,r=1,o=arguments.length;r{r.r(t);r.d(t,{pascal:()=>p});function n(e){var t={},r=e.split(" ");for(var n=0;n!?|\/]/;function l(e,t){var r=e.next();if(r=="#"&&t.startOfLine){e.skipToEnd();return"meta"}if(r=='"'||r=="'"){t.tokenize=u(r);return t.tokenize(e,t)}if(r=="("&&e.eat("*")){t.tokenize=s;return s(e,t)}if(r=="{"){t.tokenize=c;return c(e,t)}if(/[\[\]\(\),;\:\.]/.test(r)){return null}if(/\d/.test(r)){e.eatWhile(/[\w\.]/);return"number"}if(r=="/"){if(e.eat("/")){e.skipToEnd();return"comment"}}if(o.test(r)){e.eatWhile(o);return"operator"}e.eatWhile(/[\w\$_]/);var n=e.current();if(a.propertyIsEnumerable(n))return"keyword";if(i.propertyIsEnumerable(n))return"atom";return"variable"}function u(e){return function(t,r){var n=false,a,i=false;while((a=t.next())!=null){if(a==e&&!n){i=true;break}n=!n&&a=="\\"}if(i||!n)r.tokenize=null;return"string"}}function s(e,t){var r=false,n;while(n=e.next()){if(n==")"&&r){t.tokenize=null;break}r=n=="*"}return"comment"}function c(e,t){var r;while(r=e.next()){if(r=="}"){t.tokenize=null;break}}return"comment"}const p={name:"pascal",startState:function(){return{tokenize:null}},token:function(e,t){if(e.eatSpace())return null;var r=(t.tokenize||l)(e,t);if(r=="comment"||r=="meta")return r;return r},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{block:{open:"(*",close:"*)"}}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/1467.dcd89539f6477c1367af.js b/bootcamp/share/jupyter/lab/static/1467.dcd89539f6477c1367af.js new file mode 100644 index 0000000..b7f0135 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/1467.dcd89539f6477c1367af.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1467],{41467:(e,t,r)=>{r.r(t);r.d(t,{eiffel:()=>s});function n(e){var t={};for(var r=0,n=e.length;r>"]);function u(e,t,r){r.tokenize.push(e);return e(t,r)}function l(e,t){if(e.eatSpace())return null;var r=e.next();if(r=='"'||r=="'"){return u(o(r,"string"),e,t)}else if(r=="-"&&e.eat("-")){e.skipToEnd();return"comment"}else if(r==":"&&e.eat("=")){return"operator"}else if(/[0-9]/.test(r)){e.eatWhile(/[xXbBCc0-9\.]/);e.eat(/[\?\!]/);return"variable"}else if(/[a-zA-Z_0-9]/.test(r)){e.eatWhile(/[a-zA-Z_0-9]/);e.eat(/[\?\!]/);return"variable"}else if(/[=+\-\/*^%<>~]/.test(r)){e.eatWhile(/[=+\-\/*^%<>~]/);return"operator"}else{return null}}function o(e,t,r){return function(n,a){var i=false,u;while((u=n.next())!=null){if(u==e&&(r||!i)){a.tokenize.pop();break}i=!i&&u=="%"}return t}}const s={name:"eiffel",startState:function(){return{tokenize:[l]}},token:function(e,t){var r=t.tokenize[t.tokenize.length-1](e,t);if(r=="variable"){var n=e.current();r=a.propertyIsEnumerable(e.current())?"keyword":i.propertyIsEnumerable(e.current())?"operator":/^[A-Z][A-Z_0-9]*$/g.test(n)?"tag":/^0[bB][0-1]+$/g.test(n)?"number":/^0[cC][0-7]+$/g.test(n)?"number":/^0[xX][a-fA-F0-9]+$/g.test(n)?"number":/^([0-9]+\.[0-9]*)|([0-9]*\.[0-9]+)$/g.test(n)?"number":/^[0-9]+$/g.test(n)?"number":"variable"}return r},languageData:{commentTokens:{line:"--"}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/1550.09375e869bc25429b07a.js b/bootcamp/share/jupyter/lab/static/1550.09375e869bc25429b07a.js new file mode 100644 index 0000000..3dfbdc4 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/1550.09375e869bc25429b07a.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1550],{71550:(r,t,n)=>{n.r(t);n.d(t,{http:()=>f});function e(r,t){r.skipToEnd();t.cur=s;return"error"}function u(r,t){if(r.match(/^HTTP\/\d\.\d/)){t.cur=c;return"keyword"}else if(r.match(/^[A-Z]+/)&&/[ \t]/.test(r.peek())){t.cur=o;return"keyword"}else{return e(r,t)}}function c(r,t){var n=r.match(/^\d+/);if(!n)return e(r,t);t.cur=i;var u=Number(n[0]);if(u>=100&&u<400){return"atom"}else{return"error"}}function i(r,t){r.skipToEnd();t.cur=s;return null}function o(r,t){r.eatWhile(/\S/);t.cur=a;return"string.special"}function a(r,t){if(r.match(/^HTTP\/\d\.\d$/)){t.cur=s;return"keyword"}else{return e(r,t)}}function s(r){if(r.sol()&&!r.eat(/[ \t]/)){if(r.match(/^.*?:/)){return"atom"}else{r.skipToEnd();return"error"}}else{r.skipToEnd();return"string"}}function l(r){r.skipToEnd();return null}const f={name:"http",token:function(r,t){var n=t.cur;if(n!=s&&n!=l&&r.eatSpace())return null;return n(r,t)},blankLine:function(r){r.cur=l},startState:function(){return{cur:u}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/1581.e988a625b879002dcc04.js b/bootcamp/share/jupyter/lab/static/1581.e988a625b879002dcc04.js new file mode 100644 index 0000000..6d99074 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/1581.e988a625b879002dcc04.js @@ -0,0 +1,8 @@ +/*! For license information please see 1581.e988a625b879002dcc04.js.LICENSE.txt */ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1581],{1581:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const s=r(27159);const n=r(93924);const a=r(1240);const o=r(98);const i=["/properties"];const c="http://json-schema.org/draft-07/schema";class u extends s.default{_addVocabularies(){super._addVocabularies();n.default.forEach((e=>this.addVocabulary(e)));if(this.opts.discriminator)this.addKeyword(a.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();if(!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(o,i):o;this.addMetaSchema(e,c,false);this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:undefined)}}e.exports=t=u;Object.defineProperty(t,"__esModule",{value:true});t["default"]=u;var l=r(74815);Object.defineProperty(t,"KeywordCxt",{enumerable:true,get:function(){return l.KeywordCxt}});var d=r(93487);Object.defineProperty(t,"_",{enumerable:true,get:function(){return d._}});Object.defineProperty(t,"str",{enumerable:true,get:function(){return d.str}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return d.stringify}});Object.defineProperty(t,"nil",{enumerable:true,get:function(){return d.nil}});Object.defineProperty(t,"Name",{enumerable:true,get:function(){return d.Name}});Object.defineProperty(t,"CodeGen",{enumerable:true,get:function(){return d.CodeGen}});var f=r(67426);Object.defineProperty(t,"ValidationError",{enumerable:true,get:function(){return f.default}});var h=r(6646);Object.defineProperty(t,"MissingRefError",{enumerable:true,get:function(){return h.default}})},57023:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class r{}t._CodeOrName=r;t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class s extends r{constructor(e){super();if(!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return false}get names(){return{[this.str]:1}}}t.Name=s;class n extends r{constructor(e){super();this._items=typeof e==="string"?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return false;const e=this._items[0];return e===""||e==='""'}get str(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce(((e,t)=>{if(t instanceof s)e[t.str]=(e[t.str]||0)+1;return e}),{})}}t._Code=n;t.nil=new n("");function a(e,...t){const r=[e[0]];let s=0;while(s{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const s=r(57023);const n=r(98490);var a=r(57023);Object.defineProperty(t,"_",{enumerable:true,get:function(){return a._}});Object.defineProperty(t,"str",{enumerable:true,get:function(){return a.str}});Object.defineProperty(t,"strConcat",{enumerable:true,get:function(){return a.strConcat}});Object.defineProperty(t,"nil",{enumerable:true,get:function(){return a.nil}});Object.defineProperty(t,"getProperty",{enumerable:true,get:function(){return a.getProperty}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return a.stringify}});Object.defineProperty(t,"regexpCode",{enumerable:true,get:function(){return a.regexpCode}});Object.defineProperty(t,"Name",{enumerable:true,get:function(){return a.Name}});var o=r(98490);Object.defineProperty(t,"Scope",{enumerable:true,get:function(){return o.Scope}});Object.defineProperty(t,"ValueScope",{enumerable:true,get:function(){return o.ValueScope}});Object.defineProperty(t,"ValueScopeName",{enumerable:true,get:function(){return o.ValueScopeName}});Object.defineProperty(t,"varKinds",{enumerable:true,get:function(){return o.varKinds}});t.operators={GT:new s._Code(">"),GTE:new s._Code(">="),LT:new s._Code("<"),LTE:new s._Code("<="),EQ:new s._Code("==="),NEQ:new s._Code("!=="),NOT:new s._Code("!"),OR:new s._Code("||"),AND:new s._Code("&&"),ADD:new s._Code("+")};class i{optimizeNodes(){return this}optimizeNames(e,t){return this}}class c extends i{constructor(e,t,r){super();this.varKind=e;this.name=t;this.rhs=r}render({es5:e,_n:t}){const r=e?n.varKinds.var:this.varKind;const s=this.rhs===undefined?"":` = ${this.rhs}`;return`${r} ${this.name}${s};`+t}optimizeNames(e,t){if(!e[this.name.str])return;if(this.rhs)this.rhs=T(this.rhs,e,t);return this}get names(){return this.rhs instanceof s._CodeOrName?this.rhs.names:{}}}class u extends i{constructor(e,t,r){super();this.lhs=e;this.rhs=t;this.sideEffects=r}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(this.lhs instanceof s.Name&&!e[this.lhs.str]&&!this.sideEffects)return;this.rhs=T(this.rhs,e,t);return this}get names(){const e=this.lhs instanceof s.Name?{}:{...this.lhs.names};return x(e,this.rhs)}}class l extends u{constructor(e,t,r,s){super(e,r,s);this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class d extends i{constructor(e){super();this.label=e;this.names={}}render({_n:e}){return`${this.label}:`+e}}class f extends i{constructor(e){super();this.label=e;this.names={}}render({_n:e}){const t=this.label?` ${this.label}`:"";return`break${t};`+e}}class h extends i{constructor(e){super();this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class p extends i{constructor(e){super();this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:undefined}optimizeNames(e,t){this.code=T(this.code,e,t);return this}get names(){return this.code instanceof s._CodeOrName?this.code.names:{}}}class m extends i{constructor(e=[]){super();this.nodes=e}render(e){return this.nodes.reduce(((t,r)=>t+r.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;while(t--){const r=e[t].optimizeNodes();if(Array.isArray(r))e.splice(t,1,...r);else if(r)e[t]=r;else e.splice(t,1)}return e.length>0?this:undefined}optimizeNames(e,t){const{nodes:r}=this;let s=r.length;while(s--){const n=r[s];if(n.optimizeNames(e,t))continue;I(e,n.names);r.splice(s,1)}return r.length>0?this:undefined}get names(){return this.nodes.reduce(((e,t)=>O(e,t.names)),{})}}class y extends m{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class v extends m{}class g extends y{}g.kind="else";class $ extends y{constructor(e,t){super(t);this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);if(this.else)t+="else "+this.else.render(e);return t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(e===true)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new g(e):e}if(t){if(e===false)return t instanceof $?t:t.nodes;if(this.nodes.length)return this;return new $(R(e),t instanceof $?[t]:t.nodes)}if(e===false||!this.nodes.length)return undefined;return this}optimizeNames(e,t){var r;this.else=(r=this.else)===null||r===void 0?void 0:r.optimizeNames(e,t);if(!(super.optimizeNames(e,t)||this.else))return;this.condition=T(this.condition,e,t);return this}get names(){const e=super.names;x(e,this.condition);if(this.else)O(e,this.else.names);return e}}$.kind="if";class _ extends y{}_.kind="for";class w extends _{constructor(e){super();this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(!super.optimizeNames(e,t))return;this.iteration=T(this.iteration,e,t);return this}get names(){return O(super.names,this.iteration.names)}}class b extends _{constructor(e,t,r,s){super();this.varKind=e;this.name=t;this.from=r;this.to=s}render(e){const t=e.es5?n.varKinds.var:this.varKind;const{name:r,from:s,to:a}=this;return`for(${t} ${r}=${s}; ${r}<${a}; ${r}++)`+super.render(e)}get names(){const e=x(super.names,this.from);return x(e,this.to)}}class E extends _{constructor(e,t,r,s){super();this.loop=e;this.varKind=t;this.name=r;this.iterable=s}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(!super.optimizeNames(e,t))return;this.iterable=T(this.iterable,e,t);return this}get names(){return O(super.names,this.iterable.names)}}class P extends y{constructor(e,t,r){super();this.name=e;this.args=t;this.async=r}render(e){const t=this.async?"async ":"";return`${t}function ${this.name}(${this.args})`+super.render(e)}}P.kind="func";class S extends m{render(e){return"return "+super.render(e)}}S.kind="return";class N extends y{render(e){let t="try"+super.render(e);if(this.catch)t+=this.catch.render(e);if(this.finally)t+=this.finally.render(e);return t}optimizeNodes(){var e,t;super.optimizeNodes();(e=this.catch)===null||e===void 0?void 0:e.optimizeNodes();(t=this.finally)===null||t===void 0?void 0:t.optimizeNodes();return this}optimizeNames(e,t){var r,s;super.optimizeNames(e,t);(r=this.catch)===null||r===void 0?void 0:r.optimizeNames(e,t);(s=this.finally)===null||s===void 0?void 0:s.optimizeNames(e,t);return this}get names(){const e=super.names;if(this.catch)O(e,this.catch.names);if(this.finally)O(e,this.finally.names);return e}}class k extends y{constructor(e){super();this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}k.kind="catch";class C extends y{render(e){return"finally"+super.render(e)}}C.kind="finally";class j{constructor(e,t={}){this._values={};this._blockStarts=[];this._constants={};this.opts={...t,_n:t.lines?"\n":""};this._extScope=e;this._scope=new n.Scope({parent:e});this._nodes=[new v]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const r=this._extScope.value(e,t);const s=this._values[r.prefix]||(this._values[r.prefix]=new Set);s.add(r);return r}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,r,s){const n=this._scope.toName(t);if(r!==undefined&&s)this._constants[n.str]=r;this._leafNode(new c(e,n,r));return n}const(e,t,r){return this._def(n.varKinds.const,e,t,r)}let(e,t,r){return this._def(n.varKinds.let,e,t,r)}var(e,t,r){return this._def(n.varKinds.var,e,t,r)}assign(e,t,r){return this._leafNode(new u(e,t,r))}add(e,r){return this._leafNode(new l(e,t.operators.ADD,r))}code(e){if(typeof e=="function")e();else if(e!==s.nil)this._leafNode(new p(e));return this}object(...e){const t=["{"];for(const[r,n]of e){if(t.length>1)t.push(",");t.push(r);if(r!==n||this.opts.es5){t.push(":");(0,s.addCodeArg)(t,n)}}t.push("}");return new s._Code(t)}if(e,t,r){this._blockNode(new $(e));if(t&&r){this.code(t).else().code(r).endIf()}else if(t){this.code(t).endIf()}else if(r){throw new Error('CodeGen: "else" body without "then" body')}return this}elseIf(e){return this._elseNode(new $(e))}else(){return this._elseNode(new g)}endIf(){return this._endBlockNode($,g)}_for(e,t){this._blockNode(e);if(t)this.code(t).endFor();return this}for(e,t){return this._for(new w(e),t)}forRange(e,t,r,s,a=(this.opts.es5?n.varKinds.var:n.varKinds.let)){const o=this._scope.toName(e);return this._for(new b(a,o,t,r),(()=>s(o)))}forOf(e,t,r,a=n.varKinds.const){const o=this._scope.toName(e);if(this.opts.es5){const e=t instanceof s.Name?t:this.var("_arr",t);return this.forRange("_i",0,(0,s._)`${e}.length`,(t=>{this.var(o,(0,s._)`${e}[${t}]`);r(o)}))}return this._for(new E("of",a,o,t),(()=>r(o)))}forIn(e,t,r,a=(this.opts.es5?n.varKinds.var:n.varKinds.const)){if(this.opts.ownProperties){return this.forOf(e,(0,s._)`Object.keys(${t})`,r)}const o=this._scope.toName(e);return this._for(new E("in",a,o,t),(()=>r(o)))}endFor(){return this._endBlockNode(_)}label(e){return this._leafNode(new d(e))}break(e){return this._leafNode(new f(e))}return(e){const t=new S;this._blockNode(t);this.code(e);if(t.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(e,t,r){if(!t&&!r)throw new Error('CodeGen: "try" without "catch" and "finally"');const s=new N;this._blockNode(s);this.code(e);if(t){const e=this.name("e");this._currNode=s.catch=new k(e);t(e)}if(r){this._currNode=s.finally=new C;this.code(r)}return this._endBlockNode(k,C)}throw(e){return this._leafNode(new h(e))}block(e,t){this._blockStarts.push(this._nodes.length);if(e)this.code(e).endBlock(t);return this}endBlock(e){const t=this._blockStarts.pop();if(t===undefined)throw new Error("CodeGen: not in self-balancing block");const r=this._nodes.length-t;if(r<0||e!==undefined&&r!==e){throw new Error(`CodeGen: wrong number of nodes: ${r} vs ${e} expected`)}this._nodes.length=t;return this}func(e,t=s.nil,r,n){this._blockNode(new P(e,t,r));if(n)this.code(n).endFunc();return this}endFunc(){return this._endBlockNode(P)}optimize(e=1){while(e-- >0){this._root.optimizeNodes();this._root.optimizeNames(this._root.names,this._constants)}}_leafNode(e){this._currNode.nodes.push(e);return this}_blockNode(e){this._currNode.nodes.push(e);this._nodes.push(e)}_endBlockNode(e,t){const r=this._currNode;if(r instanceof e||t&&r instanceof t){this._nodes.pop();return this}throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof $)){throw new Error('CodeGen: "else" without "if"')}this._currNode=t.else=e;return this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}}t.CodeGen=j;function O(e,t){for(const r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function x(e,t){return t instanceof s._CodeOrName?O(e,t.names):e}function T(e,t,r){if(e instanceof s.Name)return n(e);if(!a(e))return e;return new s._Code(e._items.reduce(((e,t)=>{if(t instanceof s.Name)t=n(t);if(t instanceof s._Code)e.push(...t._items);else e.push(t);return e}),[]));function n(e){const s=r[e.str];if(s===undefined||t[e.str]!==1)return e;delete t[e.str];return s}function a(e){return e instanceof s._Code&&e._items.some((e=>e instanceof s.Name&&t[e.str]===1&&r[e.str]!==undefined))}}function I(e,t){for(const r in t)e[r]=(e[r]||0)-(t[r]||0)}function R(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,s._)`!${U(e)}`}t.not=R;const D=F(t.operators.AND);function A(...e){return e.reduce(D)}t.and=A;const M=F(t.operators.OR);function V(...e){return e.reduce(M)}t.or=V;function F(e){return(t,r)=>t===s.nil?r:r===s.nil?t:(0,s._)`${U(t)} ${e} ${U(r)}`}function U(e){return e instanceof s.Name?e:(0,s._)`(${e})`}},98490:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const s=r(57023);class n extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`);this.value=e.value}}var a;(function(e){e[e["Started"]=0]="Started";e[e["Completed"]=1]="Completed"})(a=t.UsedValueState||(t.UsedValueState={}));t.varKinds={const:new s.Name("const"),let:new s.Name("let"),var:new s.Name("var")};class o{constructor({prefixes:e,parent:t}={}){this._names={};this._prefixes=e;this._parent=t}toName(e){return e instanceof s.Name?e:this.name(e)}name(e){return new s.Name(this._newName(e))}_newName(e){const t=this._names[e]||this._nameGroup(e);return`${e}${t.index++}`}_nameGroup(e){var t,r;if(((r=(t=this._parent)===null||t===void 0?void 0:t._prefixes)===null||r===void 0?void 0:r.has(e))||this._prefixes&&!this._prefixes.has(e)){throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`)}return this._names[e]={prefix:e,index:0}}}t.Scope=o;class i extends s.Name{constructor(e,t){super(t);this.prefix=e}setValue(e,{property:t,itemIndex:r}){this.value=e;this.scopePath=(0,s._)`.${new s.Name(t)}[${r}]`}}t.ValueScopeName=i;const c=(0,s._)`\n`;class u extends o{constructor(e){super(e);this._values={};this._scope=e.scope;this.opts={...e,_n:e.lines?c:s.nil}}get(){return this._scope}name(e){return new i(e,this._newName(e))}value(e,t){var r;if(t.ref===undefined)throw new Error("CodeGen: ref must be passed in value");const s=this.toName(e);const{prefix:n}=s;const a=(r=t.key)!==null&&r!==void 0?r:t.ref;let o=this._values[n];if(o){const e=o.get(a);if(e)return e}else{o=this._values[n]=new Map}o.set(a,s);const i=this._scope[n]||(this._scope[n]=[]);const c=i.length;i[c]=t.ref;s.setValue(t,{property:n,itemIndex:c});return s}getValue(e,t){const r=this._values[e];if(!r)return;return r.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(t.scopePath===undefined)throw new Error(`CodeGen: name "${t}" has no value`);return(0,s._)`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,r){return this._reduceValues(e,(e=>{if(e.value===undefined)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,r)}_reduceValues(e,r,o={},i){let c=s.nil;for(const u in e){const l=e[u];if(!l)continue;const d=o[u]=o[u]||new Map;l.forEach((e=>{if(d.has(e))return;d.set(e,a.Started);let o=r(e);if(o){const r=this.opts.es5?t.varKinds.var:t.varKinds.const;c=(0,s._)`${c}${r} ${e} = ${o};${this.opts._n}`}else if(o=i===null||i===void 0?void 0:i(e)){c=(0,s._)`${c}${o}${this.opts._n}`}else{throw new n(e)}d.set(e,a.Completed)}))}return c}}t.ValueScope=u},4181:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const s=r(93487);const n=r(76776);const a=r(22141);t.keywordError={message:({keyword:e})=>(0,s.str)`must pass "${e}" keyword validation`};t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,s.str)`"${e}" keyword must be ${t} ($data)`:(0,s.str)`"${e}" keyword is invalid ($data)`};function o(e,r=t.keywordError,n,a){const{it:o}=e;const{gen:i,compositeRule:c,allErrors:u}=o;const f=h(e,r,n);if(a!==null&&a!==void 0?a:c||u){l(i,f)}else{d(o,(0,s._)`[${f}]`)}}t.reportError=o;function i(e,r=t.keywordError,s){const{it:n}=e;const{gen:o,compositeRule:i,allErrors:c}=n;const u=h(e,r,s);l(o,u);if(!(i||c)){d(n,a.default.vErrors)}}t.reportExtraError=i;function c(e,t){e.assign(a.default.errors,t);e.if((0,s._)`${a.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign((0,s._)`${a.default.vErrors}.length`,t)),(()=>e.assign(a.default.vErrors,null)))))}t.resetErrorsCount=c;function u({gen:e,keyword:t,schemaValue:r,data:n,errsCount:o,it:i}){if(o===undefined)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",o,a.default.errors,(o=>{e.const(c,(0,s._)`${a.default.vErrors}[${o}]`);e.if((0,s._)`${c}.instancePath === undefined`,(()=>e.assign((0,s._)`${c}.instancePath`,(0,s.strConcat)(a.default.instancePath,i.errorPath))));e.assign((0,s._)`${c}.schemaPath`,(0,s.str)`${i.errSchemaPath}/${t}`);if(i.opts.verbose){e.assign((0,s._)`${c}.schema`,r);e.assign((0,s._)`${c}.data`,n)}}))}t.extendErrors=u;function l(e,t){const r=e.const("err",t);e.if((0,s._)`${a.default.vErrors} === null`,(()=>e.assign(a.default.vErrors,(0,s._)`[${r}]`)),(0,s._)`${a.default.vErrors}.push(${r})`);e.code((0,s._)`${a.default.errors}++`)}function d(e,t){const{gen:r,validateName:n,schemaEnv:a}=e;if(a.$async){r.throw((0,s._)`new ${e.ValidationError}(${t})`)}else{r.assign((0,s._)`${n}.errors`,t);r.return(false)}}const f={keyword:new s.Name("keyword"),schemaPath:new s.Name("schemaPath"),params:new s.Name("params"),propertyName:new s.Name("propertyName"),message:new s.Name("message"),schema:new s.Name("schema"),parentSchema:new s.Name("parentSchema")};function h(e,t,r){const{createErrors:n}=e.it;if(n===false)return(0,s._)`{}`;return p(e,t,r)}function p(e,t,r={}){const{gen:s,it:n}=e;const a=[m(n,r),y(e,r)];v(e,t,a);return s.object(...a)}function m({errorPath:e},{instancePath:t}){const r=t?(0,s.str)`${e}${(0,n.getErrorPath)(t,n.Type.Str)}`:e;return[a.default.instancePath,(0,s.strConcat)(a.default.instancePath,r)]}function y({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:a}){let o=a?t:(0,s.str)`${t}/${e}`;if(r){o=(0,s.str)`${o}${(0,n.getErrorPath)(r,n.Type.Str)}`}return[f.schemaPath,o]}function v(e,{params:t,message:r},n){const{keyword:o,data:i,schemaValue:c,it:u}=e;const{opts:l,propertyName:d,topSchemaRef:h,schemaPath:p}=u;n.push([f.keyword,o],[f.params,typeof t=="function"?t(e):t||(0,s._)`{}`]);if(l.messages){n.push([f.message,typeof r=="function"?r(e):r])}if(l.verbose){n.push([f.schema,c],[f.parentSchema,(0,s._)`${h}${p}`],[a.default.data,i])}if(d)n.push([f.propertyName,d])}},25173:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const s=r(93487);const n=r(67426);const a=r(22141);const o=r(32531);const i=r(76776);const c=r(74815);class u{constructor(e){var t;this.refs={};this.dynamicAnchors={};let r;if(typeof e.schema=="object")r=e.schema;this.schema=e.schema;this.schemaId=e.schemaId;this.root=e.root||this;this.baseId=(t=e.baseId)!==null&&t!==void 0?t:(0,o.normalizeId)(r===null||r===void 0?void 0:r[e.schemaId||"$id"]);this.schemaPath=e.schemaPath;this.localRefs=e.localRefs;this.meta=e.meta;this.$async=r===null||r===void 0?void 0:r.$async;this.refs={}}}t.SchemaEnv=u;function l(e){const t=h.call(this,e);if(t)return t;const r=(0,o.getFullPath)(this.opts.uriResolver,e.root.baseId);const{es5:i,lines:u}=this.opts.code;const{ownProperties:l}=this.opts;const d=new s.CodeGen(this.scope,{es5:i,lines:u,ownProperties:l});let f;if(e.$async){f=d.scopeValue("Error",{ref:n.default,code:(0,s._)`require("ajv/dist/runtime/validation_error").default`})}const p=d.scopeName("validate");e.validateName=p;const m={gen:d,allErrors:this.opts.allErrors,data:a.default.data,parentData:a.default.parentData,parentDataProperty:a.default.parentDataProperty,dataNames:[a.default.data],dataPathArr:[s.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:d.scopeValue("schema",this.opts.code.source===true?{ref:e.schema,code:(0,s.stringify)(e.schema)}:{ref:e.schema}),validateName:p,ValidationError:f,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:s.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,s._)`""`,opts:this.opts,self:this};let y;try{this._compilations.add(e);(0,c.validateFunctionCode)(m);d.optimize(this.opts.code.optimize);const t=d.toString();y=`${d.scopeRefs(a.default.scope)}return ${t}`;if(this.opts.code.process)y=this.opts.code.process(y,e);const r=new Function(`${a.default.self}`,`${a.default.scope}`,y);const n=r(this,this.scope.get());this.scope.value(p,{ref:n});n.errors=null;n.schema=e.schema;n.schemaEnv=e;if(e.$async)n.$async=true;if(this.opts.code.source===true){n.source={validateName:p,validateCode:t,scopeValues:d._values}}if(this.opts.unevaluated){const{props:e,items:t}=m;n.evaluated={props:e instanceof s.Name?undefined:e,items:t instanceof s.Name?undefined:t,dynamicProps:e instanceof s.Name,dynamicItems:t instanceof s.Name};if(n.source)n.source.evaluated=(0,s.stringify)(n.evaluated)}e.validate=n;return e}catch(v){delete e.validate;delete e.validateName;if(y)this.logger.error("Error compiling schema, function code:",y);throw v}finally{this._compilations.delete(e)}}t.compileSchema=l;function d(e,t,r){var s;r=(0,o.resolveUrl)(this.opts.uriResolver,t,r);const n=e.refs[r];if(n)return n;let a=m.call(this,e,r);if(a===undefined){const n=(s=e.localRefs)===null||s===void 0?void 0:s[r];const{schemaId:o}=this.opts;if(n)a=new u({schema:n,schemaId:o,root:e,baseId:t})}if(a===undefined)return;return e.refs[r]=f.call(this,a)}t.resolveRef=d;function f(e){if((0,o.inlineRef)(e.schema,this.opts.inlineRefs))return e.schema;return e.validate?e:l.call(this,e)}function h(e){for(const t of this._compilations){if(p(t,e))return t}}t.getCompilingSchema=h;function p(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function m(e,t){let r;while(typeof(r=this.refs[t])=="string")t=r;return r||this.schemas[t]||y.call(this,e,t)}function y(e,t){const r=this.opts.uriResolver.parse(t);const s=(0,o._getFullPath)(this.opts.uriResolver,r);let n=(0,o.getFullPath)(this.opts.uriResolver,e.baseId,undefined);if(Object.keys(e.schema).length>0&&s===n){return g.call(this,r,e)}const a=(0,o.normalizeId)(s);const i=this.refs[a]||this.schemas[a];if(typeof i=="string"){const t=y.call(this,e,i);if(typeof(t===null||t===void 0?void 0:t.schema)!=="object")return;return g.call(this,r,t)}if(typeof(i===null||i===void 0?void 0:i.schema)!=="object")return;if(!i.validate)l.call(this,i);if(a===(0,o.normalizeId)(t)){const{schema:t}=i;const{schemaId:r}=this.opts;const s=t[r];if(s)n=(0,o.resolveUrl)(this.opts.uriResolver,n,s);return new u({schema:t,schemaId:r,root:e,baseId:n})}return g.call(this,r,i)}t.resolveSchema=y;const v=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function g(e,{baseId:t,schema:r,root:s}){var n;if(((n=e.fragment)===null||n===void 0?void 0:n[0])!=="/")return;for(const u of e.fragment.slice(1).split("/")){if(typeof r==="boolean")return;const e=r[(0,i.unescapeFragment)(u)];if(e===undefined)return;r=e;const s=typeof r==="object"&&r[this.opts.schemaId];if(!v.has(u)&&s){t=(0,o.resolveUrl)(this.opts.uriResolver,t,s)}}let a;if(typeof r!="boolean"&&r.$ref&&!(0,i.schemaHasRulesButRef)(r,this.RULES)){const e=(0,o.resolveUrl)(this.opts.uriResolver,t,r.$ref);a=y.call(this,s,e)}const{schemaId:c}=this.opts;a=a||new u({schema:r,schemaId:c,root:s,baseId:t});if(a.schema!==a.root.schema)return a;return undefined}},22141:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(93487);const n={data:new s.Name("data"),valCxt:new s.Name("valCxt"),instancePath:new s.Name("instancePath"),parentData:new s.Name("parentData"),parentDataProperty:new s.Name("parentDataProperty"),rootData:new s.Name("rootData"),dynamicAnchors:new s.Name("dynamicAnchors"),vErrors:new s.Name("vErrors"),errors:new s.Name("errors"),this:new s.Name("this"),self:new s.Name("self"),scope:new s.Name("scope"),json:new s.Name("json"),jsonPos:new s.Name("jsonPos"),jsonLen:new s.Name("jsonLen"),jsonPart:new s.Name("jsonPart")};t["default"]=n},6646:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(32531);class n extends Error{constructor(e,t,r,n){super(n||`can't resolve reference ${r} from id ${t}`);this.missingRef=(0,s.resolveUrl)(e,t,r);this.missingSchema=(0,s.normalizeId)((0,s.getFullPath)(e,this.missingRef))}}t["default"]=n},32531:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const s=r(76776);const n=r(64063);const a=r(49461);const o=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function i(e,t=true){if(typeof e=="boolean")return true;if(t===true)return!u(e);if(!t)return false;return l(e)<=t}t.inlineRef=i;const c=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function u(e){for(const t in e){if(c.has(t))return true;const r=e[t];if(Array.isArray(r)&&r.some(u))return true;if(typeof r=="object"&&u(r))return true}return false}function l(e){let t=0;for(const r in e){if(r==="$ref")return Infinity;t++;if(o.has(r))continue;if(typeof e[r]=="object"){(0,s.eachItem)(e[r],(e=>t+=l(e)))}if(t===Infinity)return Infinity}return t}function d(e,t="",r){if(r!==false)t=p(t);const s=e.parse(t);return f(e,s)}t.getFullPath=d;function f(e,t){const r=e.serialize(t);return r.split("#")[0]+"#"}t._getFullPath=f;const h=/#\/?$/;function p(e){return e?e.replace(h,""):""}t.normalizeId=p;function m(e,t,r){r=p(r);return e.resolve(t,r)}t.resolveUrl=m;const y=/^[a-z_][-a-z0-9._]*$/i;function v(e,t){if(typeof e=="boolean")return{};const{schemaId:r,uriResolver:s}=this.opts;const o=p(e[r]||t);const i={"":o};const c=d(s,o,false);const u={};const l=new Set;a(e,{allKeys:true},((e,t,s,n)=>{if(n===undefined)return;const a=c+t;let o=i[n];if(typeof e[r]=="string")o=d.call(this,e[r]);m.call(this,e.$anchor);m.call(this,e.$dynamicAnchor);i[t]=o;function d(t){const r=this.opts.uriResolver.resolve;t=p(o?r(o,t):t);if(l.has(t))throw h(t);l.add(t);let s=this.refs[t];if(typeof s=="string")s=this.refs[s];if(typeof s=="object"){f(e,s.schema,t)}else if(t!==p(a)){if(t[0]==="#"){f(e,u[t],t);u[t]=e}else{this.refs[t]=a}}return t}function m(e){if(typeof e=="string"){if(!y.test(e))throw new Error(`invalid anchor "${e}"`);d.call(this,`#${e}`)}}}));return u;function f(e,t,r){if(t!==undefined&&!n(e,t))throw h(r)}function h(e){return new Error(`reference "${e}" resolves to more than one schema`)}}t.getSchemaRefs=v},13141:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getRules=t.isJSONType=void 0;const r=["string","number","integer","boolean","null","object","array"];const s=new Set(r);function n(e){return typeof e=="string"&&s.has(e)}t.isJSONType=n;function a(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:true,boolean:true,null:true},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}t.getRules=a},76776:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const s=r(93487);const n=r(57023);function a(e){const t={};for(const r of e)t[r]=true;return t}t.toHash=a;function o(e,t){if(typeof t=="boolean")return t;if(Object.keys(t).length===0)return true;i(e,t);return!c(t,e.self.RULES.all)}t.alwaysValidSchema=o;function i(e,t=e.schema){const{opts:r,self:s}=e;if(!r.strictSchema)return;if(typeof t==="boolean")return;const n=s.RULES.keywords;for(const a in t){if(!n[a])E(e,`unknown keyword: "${a}"`)}}t.checkUnknownRules=i;function c(e,t){if(typeof e=="boolean")return!e;for(const r in e)if(t[r])return true;return false}t.schemaHasRules=c;function u(e,t){if(typeof e=="boolean")return!e;for(const r in e)if(r!=="$ref"&&t.all[r])return true;return false}t.schemaHasRulesButRef=u;function l({topSchemaRef:e,schemaPath:t},r,n,a){if(!a){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,s._)`${r}`}return(0,s._)`${e}${t}${(0,s.getProperty)(n)}`}t.schemaRefOrVal=l;function d(e){return p(decodeURIComponent(e))}t.unescapeFragment=d;function f(e){return encodeURIComponent(h(e))}t.escapeFragment=f;function h(e){if(typeof e=="number")return`${e}`;return e.replace(/~/g,"~0").replace(/\//g,"~1")}t.escapeJsonPointer=h;function p(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}t.unescapeJsonPointer=p;function m(e,t){if(Array.isArray(e)){for(const r of e)t(r)}else{t(e)}}t.eachItem=m;function y({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(a,o,i,c)=>{const u=i===undefined?o:i instanceof s.Name?(o instanceof s.Name?e(a,o,i):t(a,o,i),i):o instanceof s.Name?(t(a,i,o),o):r(o,i);return c===s.Name&&!(u instanceof s.Name)?n(a,u):u}}t.mergeEvaluated={props:y({mergeNames:(e,t,r)=>e.if((0,s._)`${r} !== true && ${t} !== undefined`,(()=>{e.if((0,s._)`${t} === true`,(()=>e.assign(r,true)),(()=>e.assign(r,(0,s._)`${r} || {}`).code((0,s._)`Object.assign(${r}, ${t})`)))})),mergeToName:(e,t,r)=>e.if((0,s._)`${r} !== true`,(()=>{if(t===true){e.assign(r,true)}else{e.assign(r,(0,s._)`${r} || {}`);g(e,r,t)}})),mergeValues:(e,t)=>e===true?true:{...e,...t},resultToName:v}),items:y({mergeNames:(e,t,r)=>e.if((0,s._)`${r} !== true && ${t} !== undefined`,(()=>e.assign(r,(0,s._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`))),mergeToName:(e,t,r)=>e.if((0,s._)`${r} !== true`,(()=>e.assign(r,t===true?true:(0,s._)`${r} > ${t} ? ${r} : ${t}`))),mergeValues:(e,t)=>e===true?true:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function v(e,t){if(t===true)return e.var("props",true);const r=e.var("props",(0,s._)`{}`);if(t!==undefined)g(e,r,t);return r}t.evaluatedPropsToName=v;function g(e,t,r){Object.keys(r).forEach((r=>e.assign((0,s._)`${t}${(0,s.getProperty)(r)}`,true)))}t.setEvaluated=g;const $={};function _(e,t){return e.scopeValue("func",{ref:t,code:$[t.code]||($[t.code]=new n._Code(t.code))})}t.useFunc=_;var w;(function(e){e[e["Num"]=0]="Num";e[e["Str"]=1]="Str"})(w=t.Type||(t.Type={}));function b(e,t,r){if(e instanceof s.Name){const n=t===w.Num;return r?n?(0,s._)`"[" + ${e} + "]"`:(0,s._)`"['" + ${e} + "']"`:n?(0,s._)`"/" + ${e}`:(0,s._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,s.getProperty)(e).toString():"/"+h(e)}t.getErrorPath=b;function E(e,t,r=e.opts.strictSchema){if(!r)return;t=`strict mode: ${t}`;if(r===true)throw new Error(t);e.self.logger.warn(t)}t.checkStrictMode=E},58876:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0;function r({schema:e,self:t},r){const n=t.RULES.types[r];return n&&n!==true&&s(e,n)}t.schemaHasRulesForType=r;function s(e,t){return t.rules.some((t=>n(e,t)))}t.shouldUseGroup=s;function n(e,t){var r;return e[t.keyword]!==undefined||((r=t.definition.implements)===null||r===void 0?void 0:r.some((t=>e[t]!==undefined)))}t.shouldUseRule=n},55667:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const s=r(4181);const n=r(93487);const a=r(22141);const o={message:"boolean schema is false"};function i(e){const{gen:t,schema:r,validateName:s}=e;if(r===false){u(e,false)}else if(typeof r=="object"&&r.$async===true){t.return(a.default.data)}else{t.assign((0,n._)`${s}.errors`,null);t.return(true)}}t.topBoolOrEmptySchema=i;function c(e,t){const{gen:r,schema:s}=e;if(s===false){r.var(t,false);u(e)}else{r.var(t,true)}}t.boolOrEmptySchema=c;function u(e,t){const{gen:r,data:n}=e;const a={gen:r,keyword:"false schema",data:n,schema:false,schemaCode:false,schemaValue:false,params:{},it:e};(0,s.reportError)(a,o,undefined,t)}},50453:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const s=r(13141);const n=r(58876);const a=r(4181);const o=r(93487);const i=r(76776);var c;(function(e){e[e["Correct"]=0]="Correct";e[e["Wrong"]=1]="Wrong"})(c=t.DataType||(t.DataType={}));function u(e){const t=l(e.type);const r=t.includes("null");if(r){if(e.nullable===false)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==undefined){throw new Error('"nullable" cannot be used without "type"')}if(e.nullable===true)t.push("null")}return t}t.getSchemaTypes=u;function l(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(s.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}t.getJSONTypes=l;function d(e,t){const{gen:r,data:s,opts:a}=e;const o=h(t,a.coerceTypes);const i=t.length>0&&!(o.length===0&&t.length===1&&(0,n.schemaHasRulesForType)(e,t[0]));if(i){const n=v(t,s,a.strictNumbers,c.Wrong);r.if(n,(()=>{if(o.length)p(e,t,o);else $(e)}))}return i}t.coerceAndCheckDataType=d;const f=new Set(["string","number","integer","boolean","null"]);function h(e,t){return t?e.filter((e=>f.has(e)||t==="array"&&e==="array")):[]}function p(e,t,r){const{gen:s,data:n,opts:a}=e;const i=s.let("dataType",(0,o._)`typeof ${n}`);const c=s.let("coerced",(0,o._)`undefined`);if(a.coerceTypes==="array"){s.if((0,o._)`${i} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,(()=>s.assign(n,(0,o._)`${n}[0]`).assign(i,(0,o._)`typeof ${n}`).if(v(t,n,a.strictNumbers),(()=>s.assign(c,n)))))}s.if((0,o._)`${c} !== undefined`);for(const o of r){if(f.has(o)||o==="array"&&a.coerceTypes==="array"){u(o)}}s.else();$(e);s.endIf();s.if((0,o._)`${c} !== undefined`,(()=>{s.assign(n,c);m(e,c)}));function u(e){switch(e){case"string":s.elseIf((0,o._)`${i} == "number" || ${i} == "boolean"`).assign(c,(0,o._)`"" + ${n}`).elseIf((0,o._)`${n} === null`).assign(c,(0,o._)`""`);return;case"number":s.elseIf((0,o._)`${i} == "boolean" || ${n} === null + || (${i} == "string" && ${n} && ${n} == +${n})`).assign(c,(0,o._)`+${n}`);return;case"integer":s.elseIf((0,o._)`${i} === "boolean" || ${n} === null + || (${i} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(c,(0,o._)`+${n}`);return;case"boolean":s.elseIf((0,o._)`${n} === "false" || ${n} === 0 || ${n} === null`).assign(c,false).elseIf((0,o._)`${n} === "true" || ${n} === 1`).assign(c,true);return;case"null":s.elseIf((0,o._)`${n} === "" || ${n} === 0 || ${n} === false`);s.assign(c,null);return;case"array":s.elseIf((0,o._)`${i} === "string" || ${i} === "number" + || ${i} === "boolean" || ${n} === null`).assign(c,(0,o._)`[${n}]`)}}}function m({gen:e,parentData:t,parentDataProperty:r},s){e.if((0,o._)`${t} !== undefined`,(()=>e.assign((0,o._)`${t}[${r}]`,s)))}function y(e,t,r,s=c.Correct){const n=s===c.Correct?o.operators.EQ:o.operators.NEQ;let a;switch(e){case"null":return(0,o._)`${t} ${n} null`;case"array":a=(0,o._)`Array.isArray(${t})`;break;case"object":a=(0,o._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":a=i((0,o._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":a=i();break;default:return(0,o._)`typeof ${t} ${n} ${e}`}return s===c.Correct?a:(0,o.not)(a);function i(e=o.nil){return(0,o.and)((0,o._)`typeof ${t} == "number"`,e,r?(0,o._)`isFinite(${t})`:o.nil)}}t.checkDataType=y;function v(e,t,r,s){if(e.length===1){return y(e[0],t,r,s)}let n;const a=(0,i.toHash)(e);if(a.array&&a.object){const e=(0,o._)`typeof ${t} != "object"`;n=a.null?e:(0,o._)`!${t} || ${e}`;delete a.null;delete a.array;delete a.object}else{n=o.nil}if(a.number)delete a.integer;for(const i in a)n=(0,o.and)(n,y(i,t,r,s));return n}t.checkDataTypes=v;const g={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,o._)`{type: ${e}}`:(0,o._)`{type: ${t}}`};function $(e){const t=_(e);(0,a.reportError)(t,g)}t.reportTypeError=$;function _(e){const{gen:t,data:r,schema:s}=e;const n=(0,i.schemaRefOrVal)(e,s,"type");return{gen:t,keyword:"type",data:r,schema:s.type,schemaCode:n,schemaValue:n,parentSchema:s,params:{},it:e}}},90313:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.assignDefaults=void 0;const s=r(93487);const n=r(76776);function a(e,t){const{properties:r,items:s}=e.schema;if(t==="object"&&r){for(const t in r){o(e,t,r[t].default)}}else if(t==="array"&&Array.isArray(s)){s.forEach(((t,r)=>o(e,r,t.default)))}}t.assignDefaults=a;function o(e,t,r){const{gen:a,compositeRule:o,data:i,opts:c}=e;if(r===undefined)return;const u=(0,s._)`${i}${(0,s.getProperty)(t)}`;if(o){(0,n.checkStrictMode)(e,`default is ignored for: ${u}`);return}let l=(0,s._)`${u} === undefined`;if(c.useDefaults==="empty"){l=(0,s._)`${l} || ${u} === null || ${u} === ""`}a.if(l,(0,s._)`${u} = ${(0,s.stringify)(r)}`)}},74815:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const s=r(55667);const n=r(50453);const a=r(58876);const o=r(50453);const i=r(90313);const c=r(95005);const u=r(13099);const l=r(93487);const d=r(22141);const f=r(32531);const h=r(76776);const p=r(4181);function m(e){if(P(e)){N(e);if(E(e)){$(e);return}}y(e,(()=>(0,s.topBoolOrEmptySchema)(e)))}t.validateFunctionCode=m;function y({gen:e,validateName:t,schema:r,schemaEnv:s,opts:n},a){if(n.code.es5){e.func(t,(0,l._)`${d.default.data}, ${d.default.valCxt}`,s.$async,(()=>{e.code((0,l._)`"use strict"; ${w(r,n)}`);g(e,n);e.code(a)}))}else{e.func(t,(0,l._)`${d.default.data}, ${v(n)}`,s.$async,(()=>e.code(w(r,n)).code(a)))}}function v(e){return(0,l._)`{${d.default.instancePath}="", ${d.default.parentData}, ${d.default.parentDataProperty}, ${d.default.rootData}=${d.default.data}${e.dynamicRef?(0,l._)`, ${d.default.dynamicAnchors}={}`:l.nil}}={}`}function g(e,t){e.if(d.default.valCxt,(()=>{e.var(d.default.instancePath,(0,l._)`${d.default.valCxt}.${d.default.instancePath}`);e.var(d.default.parentData,(0,l._)`${d.default.valCxt}.${d.default.parentData}`);e.var(d.default.parentDataProperty,(0,l._)`${d.default.valCxt}.${d.default.parentDataProperty}`);e.var(d.default.rootData,(0,l._)`${d.default.valCxt}.${d.default.rootData}`);if(t.dynamicRef)e.var(d.default.dynamicAnchors,(0,l._)`${d.default.valCxt}.${d.default.dynamicAnchors}`)}),(()=>{e.var(d.default.instancePath,(0,l._)`""`);e.var(d.default.parentData,(0,l._)`undefined`);e.var(d.default.parentDataProperty,(0,l._)`undefined`);e.var(d.default.rootData,d.default.data);if(t.dynamicRef)e.var(d.default.dynamicAnchors,(0,l._)`{}`)}))}function $(e){const{schema:t,opts:r,gen:s}=e;y(e,(()=>{if(r.$comment&&t.$comment)T(e);j(e);s.let(d.default.vErrors,null);s.let(d.default.errors,0);if(r.unevaluated)_(e);k(e);I(e)}));return}function _(e){const{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,l._)`${r}.evaluated`);t.if((0,l._)`${e.evaluated}.dynamicProps`,(()=>t.assign((0,l._)`${e.evaluated}.props`,(0,l._)`undefined`)));t.if((0,l._)`${e.evaluated}.dynamicItems`,(()=>t.assign((0,l._)`${e.evaluated}.items`,(0,l._)`undefined`)))}function w(e,t){const r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,l._)`/*# sourceURL=${r} */`:l.nil}function b(e,t){if(P(e)){N(e);if(E(e)){S(e,t);return}}(0,s.boolOrEmptySchema)(e,t)}function E({schema:e,self:t}){if(typeof e=="boolean")return!e;for(const r in e)if(t.RULES.all[r])return true;return false}function P(e){return typeof e.schema!="boolean"}function S(e,t){const{schema:r,gen:s,opts:n}=e;if(n.$comment&&r.$comment)T(e);O(e);x(e);const a=s.const("_errs",d.default.errors);k(e,a);s.var(t,(0,l._)`${a} === ${d.default.errors}`)}function N(e){(0,h.checkUnknownRules)(e);C(e)}function k(e,t){if(e.opts.jtd)return D(e,[],false,t);const r=(0,n.getSchemaTypes)(e.schema);const s=(0,n.coerceAndCheckDataType)(e,r);D(e,r,!s,t)}function C(e){const{schema:t,errSchemaPath:r,opts:s,self:n}=e;if(t.$ref&&s.ignoreKeywordsWithRef&&(0,h.schemaHasRulesButRef)(t,n.RULES)){n.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}}function j(e){const{schema:t,opts:r}=e;if(t.default!==undefined&&r.useDefaults&&r.strictSchema){(0,h.checkStrictMode)(e,"default is ignored in the schema root")}}function O(e){const t=e.schema[e.opts.schemaId];if(t)e.baseId=(0,f.resolveUrl)(e.opts.uriResolver,e.baseId,t)}function x(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function T({gen:e,schemaEnv:t,schema:r,errSchemaPath:s,opts:n}){const a=r.$comment;if(n.$comment===true){e.code((0,l._)`${d.default.self}.logger.log(${a})`)}else if(typeof n.$comment=="function"){const r=(0,l.str)`${s}/$comment`;const n=e.scopeValue("root",{ref:t.root});e.code((0,l._)`${d.default.self}.opts.$comment(${a}, ${r}, ${n}.schema)`)}}function I(e){const{gen:t,schemaEnv:r,validateName:s,ValidationError:n,opts:a}=e;if(r.$async){t.if((0,l._)`${d.default.errors} === 0`,(()=>t.return(d.default.data)),(()=>t.throw((0,l._)`new ${n}(${d.default.vErrors})`)))}else{t.assign((0,l._)`${s}.errors`,d.default.vErrors);if(a.unevaluated)R(e);t.return((0,l._)`${d.default.errors} === 0`)}}function R({gen:e,evaluated:t,props:r,items:s}){if(r instanceof l.Name)e.assign((0,l._)`${t}.props`,r);if(s instanceof l.Name)e.assign((0,l._)`${t}.items`,s)}function D(e,t,r,s){const{gen:n,schema:i,data:c,allErrors:u,opts:f,self:p}=e;const{RULES:m}=p;if(i.$ref&&(f.ignoreKeywordsWithRef||!(0,h.schemaHasRulesButRef)(i,m))){n.block((()=>G(e,"$ref",m.all.$ref.definition)));return}if(!f.jtd)M(e,t);n.block((()=>{for(const e of m.rules)y(e);y(m.post)}));function y(h){if(!(0,a.shouldUseGroup)(i,h))return;if(h.type){n.if((0,o.checkDataType)(h.type,c,f.strictNumbers));A(e,h);if(t.length===1&&t[0]===h.type&&r){n.else();(0,o.reportTypeError)(e)}n.endIf()}else{A(e,h)}if(!u)n.if((0,l._)`${d.default.errors} === ${s||0}`)}}function A(e,t){const{gen:r,schema:s,opts:{useDefaults:n}}=e;if(n)(0,i.assignDefaults)(e,t.type);r.block((()=>{for(const r of t.rules){if((0,a.shouldUseRule)(s,r)){G(e,r.keyword,r.definition,t.type)}}}))}function M(e,t){if(e.schemaEnv.meta||!e.opts.strictTypes)return;V(e,t);if(!e.opts.allowUnionTypes)F(e,t);U(e,e.dataTypes)}function V(e,t){if(!t.length)return;if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach((t=>{if(!z(e.dataTypes,t)){L(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)}}));K(e,t)}function F(e,t){if(t.length>1&&!(t.length===2&&t.includes("null"))){L(e,"use allowUnionTypes to allow union type keyword")}}function U(e,t){const r=e.self.RULES.all;for(const s in r){const n=r[s];if(typeof n=="object"&&(0,a.shouldUseRule)(e.schema,n)){const{type:r}=n.definition;if(r.length&&!r.some((e=>q(t,e)))){L(e,`missing type "${r.join(",")}" for keyword "${s}"`)}}}}function q(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function z(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function K(e,t){const r=[];for(const s of e.dataTypes){if(z(t,s))r.push(s);else if(t.includes("integer")&&s==="number")r.push("integer")}e.dataTypes=r}function L(e,t){const r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`;(0,h.checkStrictMode)(e,t,e.opts.strictTypes)}class H{constructor(e,t,r){(0,c.validateKeywordUsage)(e,t,r);this.gen=e.gen;this.allErrors=e.allErrors;this.keyword=r;this.data=e.data;this.schema=e.schema[r];this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data;this.schemaValue=(0,h.schemaRefOrVal)(e,this.schema,r,this.$data);this.schemaType=t.schemaType;this.parentSchema=e.schema;this.params={};this.it=e;this.def=t;if(this.$data){this.schemaCode=e.gen.const("vSchema",W(this.$data,e))}else{this.schemaCode=this.schemaValue;if(!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined)){throw new Error(`${r} value must be ${JSON.stringify(t.schemaType)}`)}}if("code"in t?t.trackErrors:t.errors!==false){this.errsCount=e.gen.const("_errs",d.default.errors)}}result(e,t,r){this.failResult((0,l.not)(e),t,r)}failResult(e,t,r){this.gen.if(e);if(r)r();else this.error();if(t){this.gen.else();t();if(this.allErrors)this.gen.endIf()}else{if(this.allErrors)this.gen.endIf();else this.gen.else()}}pass(e,t){this.failResult((0,l.not)(e),undefined,t)}fail(e){if(e===undefined){this.error();if(!this.allErrors)this.gen.if(false);return}this.gen.if(e);this.error();if(this.allErrors)this.gen.endIf();else this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail((0,l._)`${t} !== undefined && (${(0,l.or)(this.invalid$data(),e)})`)}error(e,t,r){if(t){this.setParams(t);this._error(e,r);this.setParams({});return}this._error(e,r)}_error(e,t){(e?p.reportExtraError:p.reportError)(this,this.def.error,t)}$dataError(){(0,p.reportError)(this,this.def.$dataError||p.keyword$DataError)}reset(){if(this.errsCount===undefined)throw new Error('add "trackErrors" to keyword definition');(0,p.resetErrorsCount)(this.gen,this.errsCount)}ok(e){if(!this.allErrors)this.gen.if(e)}setParams(e,t){if(t)Object.assign(this.params,e);else this.params=e}block$data(e,t,r=l.nil){this.gen.block((()=>{this.check$data(e,r);t()}))}check$data(e=l.nil,t=l.nil){if(!this.$data)return;const{gen:r,schemaCode:s,schemaType:n,def:a}=this;r.if((0,l.or)((0,l._)`${s} === undefined`,t));if(e!==l.nil)r.assign(e,true);if(n.length||a.validateSchema){r.elseIf(this.invalid$data());this.$dataError();if(e!==l.nil)r.assign(e,false)}r.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:r,def:s,it:n}=this;return(0,l.or)(a(),i());function a(){if(r.length){if(!(t instanceof l.Name))throw new Error("ajv implementation error");const e=Array.isArray(r)?r:[r];return(0,l._)`${(0,o.checkDataTypes)(e,t,n.opts.strictNumbers,o.DataType.Wrong)}`}return l.nil}function i(){if(s.validateSchema){const r=e.scopeValue("validate$data",{ref:s.validateSchema});return(0,l._)`!${r}(${t})`}return l.nil}}subschema(e,t){const r=(0,u.getSubschema)(this.it,e);(0,u.extendSubschemaData)(r,this.it,e);(0,u.extendSubschemaMode)(r,e);const s={...this.it,...r,items:undefined,props:undefined};b(s,t);return s}mergeEvaluated(e,t){const{it:r,gen:s}=this;if(!r.opts.unevaluated)return;if(r.props!==true&&e.props!==undefined){r.props=h.mergeEvaluated.props(s,e.props,r.props,t)}if(r.items!==true&&e.items!==undefined){r.items=h.mergeEvaluated.items(s,e.items,r.items,t)}}mergeValidEvaluated(e,t){const{it:r,gen:s}=this;if(r.opts.unevaluated&&(r.props!==true||r.items!==true)){s.if(t,(()=>this.mergeEvaluated(e,l.Name)));return true}}}t.KeywordCxt=H;function G(e,t,r,s){const n=new H(e,r,t);if("code"in r){r.code(n,s)}else if(n.$data&&r.validate){(0,c.funcKeywordCode)(n,r)}else if("macro"in r){(0,c.macroKeywordCode)(n,r)}else if(r.compile||r.validate){(0,c.funcKeywordCode)(n,r)}}const J=/^\/(?:[^~]|~0|~1)*$/;const B=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function W(e,{dataLevel:t,dataNames:r,dataPathArr:s}){let n;let a;if(e==="")return d.default.rootData;if(e[0]==="/"){if(!J.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);n=e;a=d.default.rootData}else{const o=B.exec(e);if(!o)throw new Error(`Invalid JSON-pointer: ${e}`);const i=+o[1];n=o[2];if(n==="#"){if(i>=t)throw new Error(c("property/index",i));return s[t-i]}if(i>t)throw new Error(c("data",i));a=r[t-i];if(!n)return a}let o=a;const i=n.split("/");for(const u of i){if(u){a=(0,l._)`${a}${(0,l.getProperty)((0,h.unescapeJsonPointer)(u))}`;o=(0,l._)`${o} && ${a}`}}return o;function c(e,r){return`Cannot access ${e} ${r} levels up, current level is ${t}`}}t.getData=W},95005:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const s=r(93487);const n=r(22141);const a=r(10412);const o=r(4181);function i(e,t){const{gen:r,keyword:n,schema:a,parentSchema:o,it:i}=e;const c=t.macro.call(i.self,a,o,i);const u=f(r,n,c);if(i.opts.validateSchema!==false)i.self.validateSchema(c,true);const l=r.name("valid");e.subschema({schema:c,schemaPath:s.nil,errSchemaPath:`${i.errSchemaPath}/${n}`,topSchemaRef:u,compositeRule:true},l);e.pass(l,(()=>e.error(true)))}t.macroKeywordCode=i;function c(e,t){var r;const{gen:o,keyword:i,schema:c,parentSchema:h,$data:p,it:m}=e;d(m,t);const y=!p&&t.compile?t.compile.call(m.self,c,h,m):t.validate;const v=f(o,i,y);const g=o.let("valid");e.block$data(g,$);e.ok((r=t.valid)!==null&&r!==void 0?r:g);function $(){if(t.errors===false){b();if(t.modifying)u(e);E((()=>e.error()))}else{const r=t.async?_():w();if(t.modifying)u(e);E((()=>l(e,r)))}}function _(){const e=o.let("ruleErrs",null);o.try((()=>b((0,s._)`await `)),(t=>o.assign(g,false).if((0,s._)`${t} instanceof ${m.ValidationError}`,(()=>o.assign(e,(0,s._)`${t}.errors`)),(()=>o.throw(t)))));return e}function w(){const e=(0,s._)`${v}.errors`;o.assign(e,null);b(s.nil);return e}function b(r=(t.async?(0,s._)`await `:s.nil)){const i=m.opts.passContext?n.default.this:n.default.self;const c=!("compile"in t&&!p||t.schema===false);o.assign(g,(0,s._)`${r}${(0,a.callValidateCode)(e,v,i,c)}`,t.modifying)}function E(e){var r;o.if((0,s.not)((r=t.valid)!==null&&r!==void 0?r:g),e)}}t.funcKeywordCode=c;function u(e){const{gen:t,data:r,it:n}=e;t.if(n.parentData,(()=>t.assign(r,(0,s._)`${n.parentData}[${n.parentDataProperty}]`)))}function l(e,t){const{gen:r}=e;r.if((0,s._)`Array.isArray(${t})`,(()=>{r.assign(n.default.vErrors,(0,s._)`${n.default.vErrors} === null ? ${t} : ${n.default.vErrors}.concat(${t})`).assign(n.default.errors,(0,s._)`${n.default.vErrors}.length`);(0,o.extendErrors)(e)}),(()=>e.error()))}function d({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function f(e,t,r){if(r===undefined)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,s.stringify)(r)})}function h(e,t,r=false){return!t.length||t.some((t=>t==="array"?Array.isArray(e):t==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==t||r&&typeof e=="undefined"))}t.validSchemaType=h;function p({schema:e,opts:t,self:r,errSchemaPath:s},n,a){if(Array.isArray(n.keyword)?!n.keyword.includes(a):n.keyword!==a){throw new Error("ajv implementation error")}const o=n.dependencies;if(o===null||o===void 0?void 0:o.some((t=>!Object.prototype.hasOwnProperty.call(e,t)))){throw new Error(`parent schema must have dependencies of ${a}: ${o.join(",")}`)}if(n.validateSchema){const o=n.validateSchema(e[a]);if(!o){const e=`keyword "${a}" value is invalid at path "${s}": `+r.errorsText(n.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(e);else throw new Error(e)}}}t.validateKeywordUsage=p},13099:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const s=r(93487);const n=r(76776);function a(e,{keyword:t,schemaProp:r,schema:a,schemaPath:o,errSchemaPath:i,topSchemaRef:c}){if(t!==undefined&&a!==undefined){throw new Error('both "keyword" and "schema" passed, only one allowed')}if(t!==undefined){const a=e.schema[t];return r===undefined?{schema:a,schemaPath:(0,s._)`${e.schemaPath}${(0,s.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,s._)`${e.schemaPath}${(0,s.getProperty)(t)}${(0,s.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,n.escapeFragment)(r)}`}}if(a!==undefined){if(o===undefined||i===undefined||c===undefined){throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"')}return{schema:a,schemaPath:o,topSchemaRef:c,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')}t.getSubschema=a;function o(e,t,{dataProp:r,dataPropType:a,data:o,dataTypes:i,propertyName:c}){if(o!==undefined&&r!==undefined){throw new Error('both "data" and "dataProp" passed, only one allowed')}const{gen:u}=t;if(r!==undefined){const{errorPath:o,dataPathArr:i,opts:c}=t;const d=u.let("data",(0,s._)`${t.data}${(0,s.getProperty)(r)}`,true);l(d);e.errorPath=(0,s.str)`${o}${(0,n.getErrorPath)(r,a,c.jsPropertySyntax)}`;e.parentDataProperty=(0,s._)`${r}`;e.dataPathArr=[...i,e.parentDataProperty]}if(o!==undefined){const t=o instanceof s.Name?o:u.let("data",o,true);l(t);if(c!==undefined)e.propertyName=c}if(i)e.dataTypes=i;function l(r){e.data=r;e.dataLevel=t.dataLevel+1;e.dataTypes=[];t.definedProperties=new Set;e.parentData=t.data;e.dataNames=[...t.dataNames,r]}}t.extendSubschemaData=o;function i(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:s,createErrors:n,allErrors:a}){if(s!==undefined)e.compositeRule=s;if(n!==undefined)e.createErrors=n;if(a!==undefined)e.allErrors=a;e.jtdDiscriminator=t;e.jtdMetadata=r}t.extendSubschemaMode=i},27159:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var s=r(74815);Object.defineProperty(t,"KeywordCxt",{enumerable:true,get:function(){return s.KeywordCxt}});var n=r(93487);Object.defineProperty(t,"_",{enumerable:true,get:function(){return n._}});Object.defineProperty(t,"str",{enumerable:true,get:function(){return n.str}});Object.defineProperty(t,"stringify",{enumerable:true,get:function(){return n.stringify}});Object.defineProperty(t,"nil",{enumerable:true,get:function(){return n.nil}});Object.defineProperty(t,"Name",{enumerable:true,get:function(){return n.Name}});Object.defineProperty(t,"CodeGen",{enumerable:true,get:function(){return n.CodeGen}});const a=r(67426);const o=r(6646);const i=r(13141);const c=r(25173);const u=r(93487);const l=r(32531);const d=r(50453);const f=r(76776);const h=r(64775);const p=r(43589);const m=(e,t)=>new RegExp(e,t);m.code="new RegExp";const y=["removeAdditional","useDefaults","coerceTypes"];const v=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]);const g={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."};const $={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};const _=200;function w(e){var t,r,s,n,a,o,i,c,u,l,d,f,h,y,v,g,$,w,b,E,P,S,N,k,C;const j=e.strict;const O=(t=e.code)===null||t===void 0?void 0:t.optimize;const x=O===true||O===undefined?1:O||0;const T=(s=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&s!==void 0?s:m;const I=(n=e.uriResolver)!==null&&n!==void 0?n:p.default;return{strictSchema:(o=(a=e.strictSchema)!==null&&a!==void 0?a:j)!==null&&o!==void 0?o:true,strictNumbers:(c=(i=e.strictNumbers)!==null&&i!==void 0?i:j)!==null&&c!==void 0?c:true,strictTypes:(l=(u=e.strictTypes)!==null&&u!==void 0?u:j)!==null&&l!==void 0?l:"log",strictTuples:(f=(d=e.strictTuples)!==null&&d!==void 0?d:j)!==null&&f!==void 0?f:"log",strictRequired:(y=(h=e.strictRequired)!==null&&h!==void 0?h:j)!==null&&y!==void 0?y:false,code:e.code?{...e.code,optimize:x,regExp:T}:{optimize:x,regExp:T},loopRequired:(v=e.loopRequired)!==null&&v!==void 0?v:_,loopEnum:(g=e.loopEnum)!==null&&g!==void 0?g:_,meta:($=e.meta)!==null&&$!==void 0?$:true,messages:(w=e.messages)!==null&&w!==void 0?w:true,inlineRefs:(b=e.inlineRefs)!==null&&b!==void 0?b:true,schemaId:(E=e.schemaId)!==null&&E!==void 0?E:"$id",addUsedSchema:(P=e.addUsedSchema)!==null&&P!==void 0?P:true,validateSchema:(S=e.validateSchema)!==null&&S!==void 0?S:true,validateFormats:(N=e.validateFormats)!==null&&N!==void 0?N:true,unicodeRegExp:(k=e.unicodeRegExp)!==null&&k!==void 0?k:true,int32range:(C=e.int32range)!==null&&C!==void 0?C:true,uriResolver:I}}class b{constructor(e={}){this.schemas={};this.refs={};this.formats={};this._compilations=new Set;this._loading={};this._cache=new Map;e=this.opts={...e,...w(e)};const{es5:t,lines:r}=this.opts.code;this.scope=new u.ValueScope({scope:{},prefixes:v,es5:t,lines:r});this.logger=O(e.logger);const s=e.validateFormats;e.validateFormats=false;this.RULES=(0,i.getRules)();E.call(this,g,e,"NOT SUPPORTED");E.call(this,$,e,"DEPRECATED","warn");this._metaOpts=C.call(this);if(e.formats)N.call(this);this._addVocabularies();this._addDefaultMetaSchema();if(e.keywords)k.call(this,e.keywords);if(typeof e.meta=="object")this.addMetaSchema(e.meta);S.call(this);e.validateFormats=s}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:r}=this.opts;let s=h;if(r==="id"){s={...h};s.id=s.$id;delete s.$id}if(t&&e)this.addMetaSchema(s,s[r],false)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[t]||e:undefined}validate(e,t){let r;if(typeof e=="string"){r=this.getSchema(e);if(!r)throw new Error(`no schema with key or ref "${e}"`)}else{r=this.compile(e)}const s=r(t);if(!("$async"in r))this.errors=r.errors;return s}compile(e,t){const r=this._addSchema(e,t);return r.validate||this._compileSchemaEnv(r)}compileAsync(e,t){if(typeof this.opts.loadSchema!="function"){throw new Error("options.loadSchema should be a function")}const{loadSchema:r}=this.opts;return s.call(this,e,t);async function s(e,t){await n.call(this,e.$schema);const r=this._addSchema(e,t);return r.validate||a.call(this,r)}async function n(e){if(e&&!this.getSchema(e)){await s.call(this,{$ref:e},true)}}async function a(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof o.default))throw t;i.call(this,t);await c.call(this,t.missingSchema);return a.call(this,e)}}function i({missingSchema:e,missingRef:t}){if(this.refs[e]){throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}}async function c(e){const r=await u.call(this,e);if(!this.refs[e])await n.call(this,r.$schema);if(!this.refs[e])this.addSchema(r,e,t)}async function u(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=r(e))}finally{delete this._loading[e]}}}addSchema(e,t,r,s=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,undefined,r,s);return this}let n;if(typeof e==="object"){const{schemaId:t}=this.opts;n=e[t];if(n!==undefined&&typeof n!="string"){throw new Error(`schema ${t} must be string`)}}t=(0,l.normalizeId)(t||n);this._checkUnique(t);this.schemas[t]=this._addSchema(e,r,t,s,true);return this}addMetaSchema(e,t,r=this.opts.validateSchema){this.addSchema(e,t,true,r);return this}validateSchema(e,t){if(typeof e=="boolean")return true;let r;r=e.$schema;if(r!==undefined&&typeof r!="string"){throw new Error("$schema must be a string")}r=r||this.opts.defaultMeta||this.defaultMeta();if(!r){this.logger.warn("meta-schema not available");this.errors=null;return true}const s=this.validate(r,e);if(!s&&t){const e="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(e);else throw new Error(e)}return s}getSchema(e){let t;while(typeof(t=P.call(this,e))=="string")e=t;if(t===undefined){const{schemaId:r}=this.opts;const s=new c.SchemaEnv({schema:{},schemaId:r});t=c.resolveSchema.call(this,s,e);if(!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp){this._removeAllSchemas(this.schemas,e);this._removeAllSchemas(this.refs,e);return this}switch(typeof e){case"undefined":this._removeAllSchemas(this.schemas);this._removeAllSchemas(this.refs);this._cache.clear();return this;case"string":{const t=P.call(this,e);if(typeof t=="object")this._cache.delete(t.schema);delete this.schemas[e];delete this.refs[e];return this}case"object":{const t=e;this._cache.delete(t);let r=e[this.opts.schemaId];if(r){r=(0,l.normalizeId)(r);delete this.schemas[r];delete this.refs[r]}return this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let r;if(typeof e=="string"){r=e;if(typeof t=="object"){this.logger.warn("these parameters are deprecated, see docs for addKeyword");t.keyword=r}}else if(typeof e=="object"&&t===undefined){t=e;r=t.keyword;if(Array.isArray(r)&&!r.length){throw new Error("addKeywords: keyword must be string or non-empty array")}}else{throw new Error("invalid addKeywords parameters")}T.call(this,r,t);if(!t){(0,f.eachItem)(r,(e=>I.call(this,e)));return this}D.call(this,t);const s={...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)};(0,f.eachItem)(r,s.type.length===0?e=>I.call(this,e,s):e=>s.type.forEach((t=>I.call(this,e,s,t))));return this}getKeyword(e){const t=this.RULES.all[e];return typeof t=="object"?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e];delete t.all[e];for(const r of t.rules){const t=r.rules.findIndex((t=>t.keyword===e));if(t>=0)r.rules.splice(t,1)}return this}addFormat(e,t){if(typeof t=="string")t=new RegExp(t);this.formats[e]=t;return this}errorsText(e=this.errors,{separator:t=", ",dataVar:r="data"}={}){if(!e||e.length===0)return"No errors";return e.map((e=>`${r}${e.instancePath} ${e.message}`)).reduce(((e,r)=>e+t+r))}$dataMetaSchema(e,t){const r=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const s of t){const t=s.split("/").slice(1);let n=e;for(const e of t)n=n[e];for(const e in r){const t=r[e];if(typeof t!="object")continue;const{$data:s}=t.definition;const a=n[e];if(s&&a)n[e]=M(a)}}return e}_removeAllSchemas(e,t){for(const r in e){const s=e[r];if(!t||t.test(r)){if(typeof s=="string"){delete e[r]}else if(s&&!s.meta){this._cache.delete(s.schema);delete e[r]}}}}_addSchema(e,t,r,s=this.opts.validateSchema,n=this.opts.addUsedSchema){let a;const{schemaId:o}=this.opts;if(typeof e=="object"){a=e[o]}else{if(this.opts.jtd)throw new Error("schema must be object");else if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let i=this._cache.get(e);if(i!==undefined)return i;r=(0,l.normalizeId)(a||r);const u=l.getSchemaRefs.call(this,e,r);i=new c.SchemaEnv({schema:e,schemaId:o,meta:t,baseId:r,localRefs:u});this._cache.set(i.schema,i);if(n&&!r.startsWith("#")){if(r)this._checkUnique(r);this.refs[r]=i}if(s)this.validateSchema(e,true);return i}_checkUnique(e){if(this.schemas[e]||this.refs[e]){throw new Error(`schema with key or id "${e}" already exists`)}}_compileSchemaEnv(e){if(e.meta)this._compileMetaSchema(e);else c.compileSchema.call(this,e);if(!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{c.compileSchema.call(this,e)}finally{this.opts=t}}}t["default"]=b;b.ValidationError=a.default;b.MissingRefError=o.default;function E(e,t,r,s="error"){for(const n in e){const a=n;if(a in t)this.logger[s](`${r}: option ${n}. ${e[a]}`)}}function P(e){e=(0,l.normalizeId)(e);return this.schemas[e]||this.refs[e]}function S(){const e=this.opts.schemas;if(!e)return;if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function N(){for(const e in this.opts.formats){const t=this.opts.formats[e];if(t)this.addFormat(e,t)}}function k(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const r=e[t];if(!r.keyword)r.keyword=t;this.addKeyword(r)}}function C(){const e={...this.opts};for(const t of y)delete e[t];return e}const j={log(){},warn(){},error(){}};function O(e){if(e===false)return j;if(e===undefined)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}const x=/^[a-z_$][a-z0-9_$:-]*$/i;function T(e,t){const{RULES:r}=this;(0,f.eachItem)(e,(e=>{if(r.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!x.test(e))throw new Error(`Keyword ${e} has invalid name`)}));if(!t)return;if(t.$data&&!("code"in t||"validate"in t)){throw new Error('$data keyword must have "code" or "validate" function')}}function I(e,t,r){var s;const n=t===null||t===void 0?void 0:t.post;if(r&&n)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:a}=this;let o=n?a.post:a.rules.find((({type:e})=>e===r));if(!o){o={type:r,rules:[]};a.rules.push(o)}a.keywords[e]=true;if(!t)return;const i={keyword:e,definition:{...t,type:(0,d.getJSONTypes)(t.type),schemaType:(0,d.getJSONTypes)(t.schemaType)}};if(t.before)R.call(this,o,i,t.before);else o.rules.push(i);a.all[e]=i;(s=t.implements)===null||s===void 0?void 0:s.forEach((e=>this.addKeyword(e)))}function R(e,t,r){const s=e.rules.findIndex((e=>e.keyword===r));if(s>=0){e.rules.splice(s,0,t)}else{e.rules.push(t);this.logger.warn(`rule ${r} is not defined`)}}function D(e){let{metaSchema:t}=e;if(t===undefined)return;if(e.$data&&this.opts.$data)t=M(t);e.validateSchema=this.compile(t,true)}const A={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function M(e){return{anyOf:[e,A]}}},43510:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(64063);s.code='require("ajv/dist/runtime/equal").default';t["default"]=s},74499:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});function r(e){const t=e.length;let r=0;let s=0;let n;while(s=55296&&n<=56319&&s{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(60540);s.code='require("ajv/dist/runtime/uri").default';t["default"]=s},67426:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});class r extends Error{constructor(e){super("validation failed");this.errors=e;this.ajv=this.validation=true}}t["default"]=r},4783:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateAdditionalItems=void 0;const s=r(93487);const n=r(76776);const a={message:({params:{len:e}})=>(0,s.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,s._)`{limit: ${e}}`};const o={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:a,code(e){const{parentSchema:t,it:r}=e;const{items:s}=t;if(!Array.isArray(s)){(0,n.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}i(e,s)}};function i(e,t){const{gen:r,schema:a,data:o,keyword:i,it:c}=e;c.items=true;const u=r.const("len",(0,s._)`${o}.length`);if(a===false){e.setParams({len:t.length});e.pass((0,s._)`${u} <= ${t.length}`)}else if(typeof a=="object"&&!(0,n.alwaysValidSchema)(c,a)){const n=r.var("valid",(0,s._)`${u} <= ${t.length}`);r.if((0,s.not)(n),(()=>l(n)));e.ok(n)}function l(a){r.forRange("i",t.length,u,(t=>{e.subschema({keyword:i,dataProp:t,dataPropType:n.Type.Num},a);if(!c.allErrors)r.if((0,s.not)(a),(()=>r.break()))}))}}t.validateAdditionalItems=i;t["default"]=o},69351:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(10412);const n=r(93487);const a=r(22141);const o=r(76776);const i={message:"must NOT have additional properties",params:({params:e})=>(0,n._)`{additionalProperty: ${e.additionalProperty}}`};const c={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:true,trackErrors:true,error:i,code(e){const{gen:t,schema:r,parentSchema:i,data:c,errsCount:u,it:l}=e;if(!u)throw new Error("ajv implementation error");const{allErrors:d,opts:f}=l;l.props=true;if(f.removeAdditional!=="all"&&(0,o.alwaysValidSchema)(l,r))return;const h=(0,s.allSchemaProperties)(i.properties);const p=(0,s.allSchemaProperties)(i.patternProperties);m();e.ok((0,n._)`${u} === ${a.default.errors}`);function m(){t.forIn("key",c,(e=>{if(!h.length&&!p.length)g(e);else t.if(y(e),(()=>g(e)))}))}function y(r){let a;if(h.length>8){const e=(0,o.schemaRefOrVal)(l,i.properties,"properties");a=(0,s.isOwnProperty)(t,e,r)}else if(h.length){a=(0,n.or)(...h.map((e=>(0,n._)`${r} === ${e}`)))}else{a=n.nil}if(p.length){a=(0,n.or)(a,...p.map((t=>(0,n._)`${(0,s.usePattern)(e,t)}.test(${r})`)))}return(0,n.not)(a)}function v(e){t.code((0,n._)`delete ${c}[${e}]`)}function g(s){if(f.removeAdditional==="all"||f.removeAdditional&&r===false){v(s);return}if(r===false){e.setParams({additionalProperty:s});e.error();if(!d)t.break();return}if(typeof r=="object"&&!(0,o.alwaysValidSchema)(l,r)){const r=t.name("valid");if(f.removeAdditional==="failing"){$(s,r,false);t.if((0,n.not)(r),(()=>{e.reset();v(s)}))}else{$(s,r);if(!d)t.if((0,n.not)(r),(()=>t.break()))}}}function $(t,r,s){const n={keyword:"additionalProperties",dataProp:t,dataPropType:o.Type.Str};if(s===false){Object.assign(n,{compositeRule:true,createErrors:false,allErrors:false})}e.subschema(n,r)}}};t["default"]=c},71125:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(76776);const n={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const a=t.name("valid");r.forEach(((t,r)=>{if((0,s.alwaysValidSchema)(n,t))return;const o=e.subschema({keyword:"allOf",schemaProp:r},a);e.ok(a);e.mergeEvaluated(o)}))}};t["default"]=n},50019:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(10412);const n={keyword:"anyOf",schemaType:"array",trackErrors:true,code:s.validateUnion,error:{message:"must match a schema in anyOf"}};t["default"]=n},79864:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(93487);const n=r(76776);const a={message:({params:{min:e,max:t}})=>t===undefined?(0,s.str)`must contain at least ${e} valid item(s)`:(0,s.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===undefined?(0,s._)`{minContains: ${e}}`:(0,s._)`{minContains: ${e}, maxContains: ${t}}`};const o={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:true,error:a,code(e){const{gen:t,schema:r,parentSchema:a,data:o,it:i}=e;let c;let u;const{minContains:l,maxContains:d}=a;if(i.opts.next){c=l===undefined?1:l;u=d}else{c=1}const f=t.const("len",(0,s._)`${o}.length`);e.setParams({min:c,max:u});if(u===undefined&&c===0){(0,n.checkStrictMode)(i,`"minContains" == 0 without "maxContains": "contains" keyword ignored`);return}if(u!==undefined&&c>u){(0,n.checkStrictMode)(i,`"minContains" > "maxContains" is always invalid`);e.fail();return}if((0,n.alwaysValidSchema)(i,r)){let t=(0,s._)`${f} >= ${c}`;if(u!==undefined)t=(0,s._)`${t} && ${f} <= ${u}`;e.pass(t);return}i.items=true;const h=t.name("valid");if(u===undefined&&c===1){m(h,(()=>t.if(h,(()=>t.break()))))}else if(c===0){t.let(h,true);if(u!==undefined)t.if((0,s._)`${o}.length > 0`,p)}else{t.let(h,false);p()}e.result(h,(()=>e.reset()));function p(){const e=t.name("_valid");const r=t.let("count",0);m(e,(()=>t.if(e,(()=>y(r)))))}function m(r,s){t.forRange("i",0,f,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:n.Type.Num,compositeRule:true},r);s()}))}function y(e){t.code((0,s._)`${e}++`);if(u===undefined){t.if((0,s._)`${e} >= ${c}`,(()=>t.assign(h,true).break()))}else{t.if((0,s._)`${e} > ${u}`,(()=>t.assign(h,false).break()));if(c===1)t.assign(h,true);else t.if((0,s._)`${e} >= ${c}`,(()=>t.assign(h,true)))}}}};t["default"]=o},67772:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const s=r(93487);const n=r(76776);const a=r(10412);t.error={message:({params:{property:e,depsCount:t,deps:r}})=>{const n=t===1?"property":"properties";return(0,s.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,s._)`{property: ${e}, + missingProperty: ${n}, + depsCount: ${t}, + deps: ${r}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,r]=i(e);c(e,t);u(e,r)}};function i({schema:e}){const t={};const r={};for(const s in e){if(s==="__proto__")continue;const n=Array.isArray(e[s])?t:r;n[s]=e[s]}return[t,r]}function c(e,t=e.schema){const{gen:r,data:n,it:o}=e;if(Object.keys(t).length===0)return;const i=r.let("missing");for(const c in t){const u=t[c];if(u.length===0)continue;const l=(0,a.propertyInData)(r,n,c,o.opts.ownProperties);e.setParams({property:c,depsCount:u.length,deps:u.join(", ")});if(o.allErrors){r.if(l,(()=>{for(const t of u){(0,a.checkReportMissingProp)(e,t)}}))}else{r.if((0,s._)`${l} && (${(0,a.checkMissingProp)(e,u,i)})`);(0,a.reportMissingProp)(e,i);r.else()}}}t.validatePropertyDeps=c;function u(e,t=e.schema){const{gen:r,data:s,keyword:o,it:i}=e;const c=r.name("valid");for(const u in t){if((0,n.alwaysValidSchema)(i,t[u]))continue;r.if((0,a.propertyInData)(r,s,u,i.opts.ownProperties),(()=>{const t=e.subschema({keyword:o,schemaProp:u},c);e.mergeValidEvaluated(t,c)}),(()=>r.var(c,true)));e.ok(c)}}t.validateSchemaDeps=u;t["default"]=o},89434:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(93487);const n=r(76776);const a={message:({params:e})=>(0,s.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,s._)`{failingKeyword: ${e.ifClause}}`};const o={keyword:"if",schemaType:["object","boolean"],trackErrors:true,error:a,code(e){const{gen:t,parentSchema:r,it:a}=e;if(r.then===undefined&&r.else===undefined){(0,n.checkStrictMode)(a,'"if" without "then" and "else" is ignored')}const o=i(a,"then");const c=i(a,"else");if(!o&&!c)return;const u=t.let("valid",true);const l=t.name("_valid");d();e.reset();if(o&&c){const r=t.let("ifClause");e.setParams({ifClause:r});t.if(l,f("then",r),f("else",r))}else if(o){t.if(l,f("then"))}else{t.if((0,s.not)(l),f("else"))}e.pass(u,(()=>e.error(true)));function d(){const t=e.subschema({keyword:"if",compositeRule:true,createErrors:false,allErrors:false},l);e.mergeEvaluated(t)}function f(r,n){return()=>{const a=e.subschema({keyword:r},l);t.assign(u,l);e.mergeValidEvaluated(a,u);if(n)t.assign(n,(0,s._)`${r}`);else e.setParams({ifClause:r})}}}};function i(e,t){const r=e.schema[t];return r!==undefined&&!(0,n.alwaysValidSchema)(e,r)}t["default"]=o},8200:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(4783);const n=r(72924);const a=r(64665);const o=r(1119);const i=r(79864);const c=r(67772);const u=r(33708);const l=r(69351);const d=r(76239);const f=r(12296);const h=r(15697);const p=r(50019);const m=r(14200);const y=r(71125);const v=r(89434);const g=r(66552);function $(e=false){const t=[h.default,p.default,m.default,y.default,v.default,g.default,u.default,l.default,c.default,d.default,f.default];if(e)t.push(n.default,o.default);else t.push(s.default,a.default);t.push(i.default);return t}t["default"]=$},64665:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateTuple=void 0;const s=r(93487);const n=r(76776);const a=r(10412);const o={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:r}=e;if(Array.isArray(t))return i(e,"additionalItems",t);r.items=true;if((0,n.alwaysValidSchema)(r,t))return;e.ok((0,a.validateArray)(e))}};function i(e,t,r=e.schema){const{gen:a,parentSchema:o,data:i,keyword:c,it:u}=e;f(o);if(u.opts.unevaluated&&r.length&&u.items!==true){u.items=n.mergeEvaluated.items(a,r.length,u.items)}const l=a.name("valid");const d=a.const("len",(0,s._)`${i}.length`);r.forEach(((t,r)=>{if((0,n.alwaysValidSchema)(u,t))return;a.if((0,s._)`${d} > ${r}`,(()=>e.subschema({keyword:c,schemaProp:r,dataProp:r},l)));e.ok(l)}));function f(e){const{opts:s,errSchemaPath:a}=u;const o=r.length;const i=o===e.minItems&&(o===e.maxItems||e[t]===false);if(s.strictTuples&&!i){const e=`"${c}" is ${o}-tuple, but minItems or maxItems/${t} are not specified or different at path "${a}"`;(0,n.checkStrictMode)(u,e,s.strictTuples)}}}t.validateTuple=i;t["default"]=o},1119:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(93487);const n=r(76776);const a=r(10412);const o=r(4783);const i={message:({params:{len:e}})=>(0,s.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,s._)`{limit: ${e}}`};const c={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:i,code(e){const{schema:t,parentSchema:r,it:s}=e;const{prefixItems:i}=r;s.items=true;if((0,n.alwaysValidSchema)(s,t))return;if(i)(0,o.validateAdditionalItems)(e,i);else e.ok((0,a.validateArray)(e))}};t["default"]=c},15697:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(76776);const n={keyword:"not",schemaType:["object","boolean"],trackErrors:true,code(e){const{gen:t,schema:r,it:n}=e;if((0,s.alwaysValidSchema)(n,r)){e.fail();return}const a=t.name("valid");e.subschema({keyword:"not",compositeRule:true,createErrors:false,allErrors:false},a);e.failResult(a,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t["default"]=n},14200:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(93487);const n=r(76776);const a={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,s._)`{passingSchemas: ${e.passing}}`};const o={keyword:"oneOf",schemaType:"array",trackErrors:true,error:a,code(e){const{gen:t,schema:r,parentSchema:a,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&a.discriminator)return;const i=r;const c=t.let("valid",false);const u=t.let("passing",null);const l=t.name("_valid");e.setParams({passing:u});t.block(d);e.result(c,(()=>e.reset()),(()=>e.error(true)));function d(){i.forEach(((r,a)=>{let i;if((0,n.alwaysValidSchema)(o,r)){t.var(l,true)}else{i=e.subschema({keyword:"oneOf",schemaProp:a,compositeRule:true},l)}if(a>0){t.if((0,s._)`${l} && ${c}`).assign(c,false).assign(u,(0,s._)`[${u}, ${a}]`).else()}t.if(l,(()=>{t.assign(c,true);t.assign(u,a);if(i)e.mergeEvaluated(i,s.Name)}))}))}}};t["default"]=o},12296:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(10412);const n=r(93487);const a=r(76776);const o=r(76776);const i={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,data:i,parentSchema:c,it:u}=e;const{opts:l}=u;const d=(0,s.allSchemaProperties)(r);const f=d.filter((e=>(0,a.alwaysValidSchema)(u,r[e])));if(d.length===0||f.length===d.length&&(!u.opts.unevaluated||u.props===true)){return}const h=l.strictSchema&&!l.allowMatchingProperties&&c.properties;const p=t.name("valid");if(u.props!==true&&!(u.props instanceof n.Name)){u.props=(0,o.evaluatedPropsToName)(t,u.props)}const{props:m}=u;y();function y(){for(const e of d){if(h)v(e);if(u.allErrors){g(e)}else{t.var(p,true);g(e);t.if(p)}}}function v(e){for(const t in h){if(new RegExp(e).test(t)){(0,a.checkStrictMode)(u,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}}}function g(r){t.forIn("key",i,(a=>{t.if((0,n._)`${(0,s.usePattern)(e,r)}.test(${a})`,(()=>{const s=f.includes(r);if(!s){e.subschema({keyword:"patternProperties",schemaProp:r,dataProp:a,dataPropType:o.Type.Str},p)}if(u.opts.unevaluated&&m!==true){t.assign((0,n._)`${m}[${a}]`,true)}else if(!s&&!u.allErrors){t.if((0,n.not)(p),(()=>t.break()))}}))}))}}};t["default"]=i},72924:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(64665);const n={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,s.validateTuple)(e,"items")};t["default"]=n},76239:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(74815);const n=r(10412);const a=r(76776);const o=r(69351);const i={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:r,parentSchema:i,data:c,it:u}=e;if(u.opts.removeAdditional==="all"&&i.additionalProperties===undefined){o.default.code(new s.KeywordCxt(u,o.default,"additionalProperties"))}const l=(0,n.allSchemaProperties)(r);for(const s of l){u.definedProperties.add(s)}if(u.opts.unevaluated&&l.length&&u.props!==true){u.props=a.mergeEvaluated.props(t,(0,a.toHash)(l),u.props)}const d=l.filter((e=>!(0,a.alwaysValidSchema)(u,r[e])));if(d.length===0)return;const f=t.name("valid");for(const s of d){if(h(s)){p(s)}else{t.if((0,n.propertyInData)(t,c,s,u.opts.ownProperties));p(s);if(!u.allErrors)t.else().var(f,true);t.endIf()}e.it.definedProperties.add(s);e.ok(f)}function h(e){return u.opts.useDefaults&&!u.compositeRule&&r[e].default!==undefined}function p(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},f)}}};t["default"]=i},33708:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(93487);const n=r(76776);const a={message:"property name must be valid",params:({params:e})=>(0,s._)`{propertyName: ${e.propertyName}}`};const o={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:a,code(e){const{gen:t,schema:r,data:a,it:o}=e;if((0,n.alwaysValidSchema)(o,r))return;const i=t.name("valid");t.forIn("key",a,(r=>{e.setParams({propertyName:r});e.subschema({keyword:"propertyNames",data:r,dataTypes:["string"],propertyName:r,compositeRule:true},i);t.if((0,s.not)(i),(()=>{e.error(true);if(!o.allErrors)t.break()}))}));e.ok(i)}};t["default"]=o},66552:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(76776);const n={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){if(t.if===undefined)(0,s.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};t["default"]=n},10412:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const s=r(93487);const n=r(76776);const a=r(22141);const o=r(76776);function i(e,t){const{gen:r,data:n,it:a}=e;r.if(h(r,n,t,a.opts.ownProperties),(()=>{e.setParams({missingProperty:(0,s._)`${t}`},true);e.error()}))}t.checkReportMissingProp=i;function c({gen:e,data:t,it:{opts:r}},n,a){return(0,s.or)(...n.map((n=>(0,s.and)(h(e,t,n,r.ownProperties),(0,s._)`${a} = ${n}`))))}t.checkMissingProp=c;function u(e,t){e.setParams({missingProperty:t},true);e.error()}t.reportMissingProp=u;function l(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,s._)`Object.prototype.hasOwnProperty`})}t.hasPropFunc=l;function d(e,t,r){return(0,s._)`${l(e)}.call(${t}, ${r})`}t.isOwnProperty=d;function f(e,t,r,n){const a=(0,s._)`${t}${(0,s.getProperty)(r)} !== undefined`;return n?(0,s._)`${a} && ${d(e,t,r)}`:a}t.propertyInData=f;function h(e,t,r,n){const a=(0,s._)`${t}${(0,s.getProperty)(r)} === undefined`;return n?(0,s.or)(a,(0,s.not)(d(e,t,r))):a}t.noPropertyInData=h;function p(e){return e?Object.keys(e).filter((e=>e!=="__proto__")):[]}t.allSchemaProperties=p;function m(e,t){return p(t).filter((r=>!(0,n.alwaysValidSchema)(e,t[r])))}t.schemaProperties=m;function y({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:i},it:c},u,l,d){const f=d?(0,s._)`${e}, ${t}, ${n}${o}`:t;const h=[[a.default.instancePath,(0,s.strConcat)(a.default.instancePath,i)],[a.default.parentData,c.parentData],[a.default.parentDataProperty,c.parentDataProperty],[a.default.rootData,a.default.rootData]];if(c.opts.dynamicRef)h.push([a.default.dynamicAnchors,a.default.dynamicAnchors]);const p=(0,s._)`${f}, ${r.object(...h)}`;return l!==s.nil?(0,s._)`${u}.call(${l}, ${p})`:(0,s._)`${u}(${p})`}t.callValidateCode=y;const v=(0,s._)`new RegExp`;function g({gen:e,it:{opts:t}},r){const n=t.unicodeRegExp?"u":"";const{regExp:a}=t.code;const i=a(r,n);return e.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,s._)`${a.code==="new RegExp"?v:(0,o.useFunc)(e,a)}(${r}, ${n})`})}t.usePattern=g;function $(e){const{gen:t,data:r,keyword:a,it:o}=e;const i=t.name("valid");if(o.allErrors){const e=t.let("valid",true);c((()=>t.assign(e,false)));return e}t.var(i,true);c((()=>t.break()));return i;function c(o){const c=t.const("len",(0,s._)`${r}.length`);t.forRange("i",0,c,(r=>{e.subschema({keyword:a,dataProp:r,dataPropType:n.Type.Num},i);t.if((0,s.not)(i),o)}))}}t.validateArray=$;function _(e){const{gen:t,schema:r,keyword:a,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");const i=r.some((e=>(0,n.alwaysValidSchema)(o,e)));if(i&&!o.opts.unevaluated)return;const c=t.let("valid",false);const u=t.name("_valid");t.block((()=>r.forEach(((r,n)=>{const o=e.subschema({keyword:a,schemaProp:n,compositeRule:true},u);t.assign(c,(0,s._)`${c} || ${u}`);const i=e.mergeValidEvaluated(o,u);if(!i)t.if((0,s.not)(c))}))));e.result(c,(()=>e.reset()),(()=>e.error(true)))}t.validateUnion=_},78386:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const r={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t["default"]=r},95684:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(78386);const n=r(28280);const a=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",s.default,n.default];t["default"]=a},28280:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.callRef=t.getValidate=void 0;const s=r(6646);const n=r(10412);const a=r(93487);const o=r(22141);const i=r(25173);const c=r(76776);const u={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:r,it:n}=e;const{baseId:o,schemaEnv:c,validateName:u,opts:f,self:h}=n;const{root:p}=c;if((r==="#"||r==="#/")&&o===p.baseId)return y();const m=i.resolveRef.call(h,p,o,r);if(m===undefined)throw new s.default(n.opts.uriResolver,o,r);if(m instanceof i.SchemaEnv)return v(m);return g(m);function y(){if(c===p)return d(e,u,c,c.$async);const r=t.scopeValue("root",{ref:p});return d(e,(0,a._)`${r}.validate`,p,p.$async)}function v(t){const r=l(e,t);d(e,r,t,t.$async)}function g(s){const n=t.scopeValue("schema",f.code.source===true?{ref:s,code:(0,a.stringify)(s)}:{ref:s});const o=t.name("valid");const i=e.subschema({schema:s,dataTypes:[],schemaPath:a.nil,topSchemaRef:n,errSchemaPath:r},o);e.mergeEvaluated(i);e.ok(o)}}};function l(e,t){const{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,a._)`${r.scopeValue("wrapper",{ref:t})}.validate`}t.getValidate=l;function d(e,t,r,s){const{gen:i,it:u}=e;const{allErrors:l,schemaEnv:d,opts:f}=u;const h=f.passContext?o.default.this:a.nil;if(s)p();else m();function p(){if(!d.$async)throw new Error("async schema referenced by sync schema");const r=i.let("valid");i.try((()=>{i.code((0,a._)`await ${(0,n.callValidateCode)(e,t,h)}`);v(t);if(!l)i.assign(r,true)}),(e=>{i.if((0,a._)`!(${e} instanceof ${u.ValidationError})`,(()=>i.throw(e)));y(e);if(!l)i.assign(r,false)}));e.ok(r)}function m(){e.result((0,n.callValidateCode)(e,t,h),(()=>v(t)),(()=>y(t)))}function y(e){const t=(0,a._)`${e}.errors`;i.assign(o.default.vErrors,(0,a._)`${o.default.vErrors} === null ? ${t} : ${o.default.vErrors}.concat(${t})`);i.assign(o.default.errors,(0,a._)`${o.default.vErrors}.length`)}function v(e){var t;if(!u.opts.unevaluated)return;const s=(t=r===null||r===void 0?void 0:r.validate)===null||t===void 0?void 0:t.evaluated;if(u.props!==true){if(s&&!s.dynamicProps){if(s.props!==undefined){u.props=c.mergeEvaluated.props(i,s.props,u.props)}}else{const t=i.var("props",(0,a._)`${e}.evaluated.props`);u.props=c.mergeEvaluated.props(i,t,u.props,a.Name)}}if(u.items!==true){if(s&&!s.dynamicItems){if(s.items!==undefined){u.items=c.mergeEvaluated.items(i,s.items,u.items)}}else{const t=i.var("items",(0,a._)`${e}.evaluated.items`);u.items=c.mergeEvaluated.items(i,t,u.items,a.Name)}}}}t.callRef=d;t["default"]=u},1240:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(93487);const n=r(89306);const a=r(25173);const o=r(76776);const i={message:({params:{discrError:e,tagName:t}})=>e===n.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,s._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`};const c={keyword:"discriminator",type:"object",schemaType:"object",error:i,code(e){const{gen:t,data:r,schema:i,parentSchema:c,it:u}=e;const{oneOf:l}=c;if(!u.opts.discriminator){throw new Error("discriminator: requires discriminator option")}const d=i.propertyName;if(typeof d!="string")throw new Error("discriminator: requires propertyName");if(i.mapping)throw new Error("discriminator: mapping is not supported");if(!l)throw new Error("discriminator: requires oneOf keyword");const f=t.let("valid",false);const h=t.const("tag",(0,s._)`${r}${(0,s.getProperty)(d)}`);t.if((0,s._)`typeof ${h} == "string"`,(()=>p()),(()=>e.error(false,{discrError:n.DiscrError.Tag,tag:h,tagName:d})));e.ok(f);function p(){const r=y();t.if(false);for(const e in r){t.elseIf((0,s._)`${h} === ${e}`);t.assign(f,m(r[e]))}t.else();e.error(false,{discrError:n.DiscrError.Mapping,tag:h,tagName:d});t.endIf()}function m(r){const n=t.name("valid");const a=e.subschema({keyword:"oneOf",schemaProp:r},n);e.mergeEvaluated(a,s.Name);return n}function y(){var e;const t={};const r=n(c);let s=true;for(let c=0;c{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DiscrError=void 0;var r;(function(e){e["Tag"]="tag";e["Mapping"]="mapping"})(r=t.DiscrError||(t.DiscrError={}))},93924:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(95684);const n=r(62649);const a=r(8200);const o=r(39502);const i=r(66167);const c=[s.default,n.default,(0,a.default)(),o.default,i.metadataVocabulary,i.contentVocabulary];t["default"]=c},89651:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(93487);const n={message:({schemaCode:e})=>(0,s.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,s._)`{format: ${e}}`};const a={keyword:"format",type:["number","string"],schemaType:"string",$data:true,error:n,code(e,t){const{gen:r,data:n,$data:a,schema:o,schemaCode:i,it:c}=e;const{opts:u,errSchemaPath:l,schemaEnv:d,self:f}=c;if(!u.validateFormats)return;if(a)h();else p();function h(){const a=r.scopeValue("formats",{ref:f.formats,code:u.code.formats});const o=r.const("fDef",(0,s._)`${a}[${i}]`);const c=r.let("fType");const l=r.let("format");r.if((0,s._)`typeof ${o} == "object" && !(${o} instanceof RegExp)`,(()=>r.assign(c,(0,s._)`${o}.type || "string"`).assign(l,(0,s._)`${o}.validate`)),(()=>r.assign(c,(0,s._)`"string"`).assign(l,o)));e.fail$data((0,s.or)(h(),p()));function h(){if(u.strictSchema===false)return s.nil;return(0,s._)`${i} && !${l}`}function p(){const e=d.$async?(0,s._)`(${o}.async ? await ${l}(${n}) : ${l}(${n}))`:(0,s._)`${l}(${n})`;const r=(0,s._)`(typeof ${l} == "function" ? ${e} : ${l}.test(${n}))`;return(0,s._)`${l} && ${l} !== true && ${c} === ${t} && !${r}`}}function p(){const a=f.formats[o];if(!a){p();return}if(a===true)return;const[i,c,h]=m(a);if(i===t)e.pass(y());function p(){if(u.strictSchema===false){f.logger.warn(e());return}throw new Error(e());function e(){return`unknown format "${o}" ignored in schema at path "${l}"`}}function m(e){const t=e instanceof RegExp?(0,s.regexpCode)(e):u.code.formats?(0,s._)`${u.code.formats}${(0,s.getProperty)(o)}`:undefined;const n=r.scopeValue("formats",{key:o,ref:e,code:t});if(typeof e=="object"&&!(e instanceof RegExp)){return[e.type||"string",e.validate,(0,s._)`${n}.validate`]}return["string",e,n]}function y(){if(typeof a=="object"&&!(a instanceof RegExp)&&a.async){if(!d.$async)throw new Error("async format in sync schema");return(0,s._)`await ${h}(${n})`}return typeof c=="function"?(0,s._)`${h}(${n})`:(0,s._)`${h}.test(${n})`}}}};t["default"]=a},39502:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(89651);const n=[s.default];t["default"]=n},66167:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.contentVocabulary=t.metadataVocabulary=void 0;t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},64693:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(93487);const n=r(76776);const a=r(43510);const o={message:"must be equal to constant",params:({schemaCode:e})=>(0,s._)`{allowedValue: ${e}}`};const i={keyword:"const",$data:true,error:o,code(e){const{gen:t,data:r,$data:o,schemaCode:i,schema:c}=e;if(o||c&&typeof c=="object"){e.fail$data((0,s._)`!${(0,n.useFunc)(t,a.default)}(${r}, ${i})`)}else{e.fail((0,s._)`${c} !== ${r}`)}}};t["default"]=i},30966:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(93487);const n=r(76776);const a=r(43510);const o={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,s._)`{allowedValues: ${e}}`};const i={keyword:"enum",schemaType:"array",$data:true,error:o,code(e){const{gen:t,data:r,$data:o,schema:i,schemaCode:c,it:u}=e;if(!o&&i.length===0)throw new Error("enum must have non-empty array");const l=i.length>=u.opts.loopEnum;let d;const f=()=>d!==null&&d!==void 0?d:d=(0,n.useFunc)(t,a.default);let h;if(l||o){h=t.let("valid");e.block$data(h,p)}else{if(!Array.isArray(i))throw new Error("ajv implementation error");const e=t.const("vSchema",c);h=(0,s.or)(...i.map(((t,r)=>m(e,r))))}e.pass(h);function p(){t.assign(h,false);t.forOf("v",c,(e=>t.if((0,s._)`${f()}(${r}, ${e})`,(()=>t.assign(h,true).break()))))}function m(e,t){const n=i[t];return typeof n==="object"&&n!==null?(0,s._)`${f()}(${r}, ${e}[${t}])`:(0,s._)`${r} === ${n}`}}};t["default"]=i},62649:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(83983);const n=r(90430);const a=r(93229);const o=r(74336);const i=r(90498);const c=r(33301);const u=r(31687);const l=r(82958);const d=r(64693);const f=r(30966);const h=[s.default,n.default,a.default,o.default,i.default,c.default,u.default,l.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},d.default,f.default];t["default"]=h},31687:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(93487);const n={message({keyword:e,schemaCode:t}){const r=e==="maxItems"?"more":"fewer";return(0,s.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,s._)`{limit: ${e}}`};const a={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:true,error:n,code(e){const{keyword:t,data:r,schemaCode:n}=e;const a=t==="maxItems"?s.operators.GT:s.operators.LT;e.fail$data((0,s._)`${r}.length ${a} ${n}`)}};t["default"]=a},93229:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(93487);const n=r(76776);const a=r(74499);const o={message({keyword:e,schemaCode:t}){const r=e==="maxLength"?"more":"fewer";return(0,s.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,s._)`{limit: ${e}}`};const i={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:true,error:o,code(e){const{keyword:t,data:r,schemaCode:o,it:i}=e;const c=t==="maxLength"?s.operators.GT:s.operators.LT;const u=i.opts.unicode===false?(0,s._)`${r}.length`:(0,s._)`${(0,n.useFunc)(e.gen,a.default)}(${r})`;e.fail$data((0,s._)`${u} ${c} ${o}`)}};t["default"]=i},83983:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(93487);const n=s.operators;const a={maximum:{okStr:"<=",ok:n.LTE,fail:n.GT},minimum:{okStr:">=",ok:n.GTE,fail:n.LT},exclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},exclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}};const o={message:({keyword:e,schemaCode:t})=>(0,s.str)`must be ${a[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,s._)`{comparison: ${a[e].okStr}, limit: ${t}}`};const i={keyword:Object.keys(a),type:"number",schemaType:"number",$data:true,error:o,code(e){const{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,s._)`${r} ${a[t].fail} ${n} || isNaN(${r})`)}};t["default"]=i},90498:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(93487);const n={message({keyword:e,schemaCode:t}){const r=e==="maxProperties"?"more":"fewer";return(0,s.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,s._)`{limit: ${e}}`};const a={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:true,error:n,code(e){const{keyword:t,data:r,schemaCode:n}=e;const a=t==="maxProperties"?s.operators.GT:s.operators.LT;e.fail$data((0,s._)`Object.keys(${r}).length ${a} ${n}`)}};t["default"]=a},90430:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(93487);const n={message:({schemaCode:e})=>(0,s.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,s._)`{multipleOf: ${e}}`};const a={keyword:"multipleOf",type:"number",schemaType:"number",$data:true,error:n,code(e){const{gen:t,data:r,schemaCode:n,it:a}=e;const o=a.opts.multipleOfPrecision;const i=t.let("res");const c=o?(0,s._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${o}`:(0,s._)`${i} !== parseInt(${i})`;e.fail$data((0,s._)`(${n} === 0 || (${i} = ${r}/${n}, ${c}))`)}};t["default"]=a},74336:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(10412);const n=r(93487);const a={message:({schemaCode:e})=>(0,n.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,n._)`{pattern: ${e}}`};const o={keyword:"pattern",type:"string",schemaType:"string",$data:true,error:a,code(e){const{data:t,$data:r,schema:a,schemaCode:o,it:i}=e;const c=i.opts.unicodeRegExp?"u":"";const u=r?(0,n._)`(new RegExp(${o}, ${c}))`:(0,s.usePattern)(e,a);e.fail$data((0,n._)`!${u}.test(${t})`)}};t["default"]=o},33301:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(10412);const n=r(93487);const a=r(76776);const o={message:({params:{missingProperty:e}})=>(0,n.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,n._)`{missingProperty: ${e}}`};const i={keyword:"required",type:"object",schemaType:"array",$data:true,error:o,code(e){const{gen:t,schema:r,schemaCode:o,data:i,$data:c,it:u}=e;const{opts:l}=u;if(!c&&r.length===0)return;const d=r.length>=l.loopRequired;if(u.allErrors)f();else h();if(l.strictRequired){const t=e.parentSchema.properties;const{definedProperties:s}=e.it;for(const e of r){if((t===null||t===void 0?void 0:t[e])===undefined&&!s.has(e)){const t=u.schemaEnv.baseId+u.errSchemaPath;const r=`required property "${e}" is not defined at "${t}" (strictRequired)`;(0,a.checkStrictMode)(u,r,u.opts.strictRequired)}}}function f(){if(d||c){e.block$data(n.nil,p)}else{for(const t of r){(0,s.checkReportMissingProp)(e,t)}}}function h(){const n=t.let("missing");if(d||c){const r=t.let("valid",true);e.block$data(r,(()=>m(n,r)));e.ok(r)}else{t.if((0,s.checkMissingProp)(e,r,n));(0,s.reportMissingProp)(e,n);t.else()}}function p(){t.forOf("prop",o,(r=>{e.setParams({missingProperty:r});t.if((0,s.noPropertyInData)(t,i,r,l.ownProperties),(()=>e.error()))}))}function m(r,a){e.setParams({missingProperty:r});t.forOf(r,o,(()=>{t.assign(a,(0,s.propertyInData)(t,i,r,l.ownProperties));t.if((0,n.not)(a),(()=>{e.error();t.break()}))}),n.nil)}}};t["default"]=i},82958:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const s=r(50453);const n=r(93487);const a=r(76776);const o=r(43510);const i={message:({params:{i:e,j:t}})=>(0,n.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,n._)`{i: ${e}, j: ${t}}`};const c={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:true,error:i,code(e){const{gen:t,data:r,$data:i,schema:c,parentSchema:u,schemaCode:l,it:d}=e;if(!i&&!c)return;const f=t.let("valid");const h=u.items?(0,s.getSchemaTypes)(u.items):[];e.block$data(f,p,(0,n._)`${l} === false`);e.ok(f);function p(){const s=t.let("i",(0,n._)`${r}.length`);const a=t.let("j");e.setParams({i:s,j:a});t.assign(f,true);t.if((0,n._)`${s} > 1`,(()=>(m()?y:v)(s,a)))}function m(){return h.length>0&&!h.some((e=>e==="object"||e==="array"))}function y(a,o){const i=t.name("item");const c=(0,s.checkDataTypes)(h,i,d.opts.strictNumbers,s.DataType.Wrong);const u=t.const("indices",(0,n._)`{}`);t.for((0,n._)`;${a}--;`,(()=>{t.let(i,(0,n._)`${r}[${a}]`);t.if(c,(0,n._)`continue`);if(h.length>1)t.if((0,n._)`typeof ${i} == "string"`,(0,n._)`${i} += "_"`);t.if((0,n._)`typeof ${u}[${i}] == "number"`,(()=>{t.assign(o,(0,n._)`${u}[${i}]`);e.error();t.assign(f,false).break()})).code((0,n._)`${u}[${i}] = ${a}`)}))}function v(s,i){const c=(0,a.useFunc)(t,o.default);const u=t.name("outer");t.label(u).for((0,n._)`;${s}--;`,(()=>t.for((0,n._)`${i} = ${s}; ${i}--;`,(()=>t.if((0,n._)`${c}(${r}[${s}], ${r}[${i}])`,(()=>{e.error();t.assign(f,false).break(u)}))))))}}};t["default"]=c},64063:e=>{"use strict";e.exports=function e(t,r){if(t===r)return true;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return false;var s,n,a;if(Array.isArray(t)){s=t.length;if(s!=r.length)return false;for(n=s;n--!==0;)if(!e(t[n],r[n]))return false;return true}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();a=Object.keys(t);s=a.length;if(s!==Object.keys(r).length)return false;for(n=s;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return false;for(n=s;n--!==0;){var o=a[n];if(!e(t[o],r[o]))return false}return true}return t!==t&&r!==r}},49461:e=>{"use strict";var t=e.exports=function(e,t,s){if(typeof t=="function"){s=t;t={}}s=t.cb||s;var n=typeof s=="function"?s:s.pre||function(){};var a=s.post||function(){};r(t,n,a,e,"",e)};t.keywords={additionalItems:true,items:true,contains:true,additionalProperties:true,propertyNames:true,not:true,if:true,then:true,else:true};t.arrayKeywords={items:true,allOf:true,anyOf:true,oneOf:true};t.propsKeywords={$defs:true,definitions:true,properties:true,patternProperties:true,dependencies:true};t.skipKeywords={default:true,enum:true,const:true,required:true,maximum:true,minimum:true,exclusiveMaximum:true,exclusiveMinimum:true,multipleOf:true,maxLength:true,minLength:true,pattern:true,format:true,maxItems:true,minItems:true,uniqueItems:true,maxProperties:true,minProperties:true};function r(e,n,a,o,i,c,u,l,d,f){if(o&&typeof o=="object"&&!Array.isArray(o)){n(o,i,c,u,l,d,f);for(var h in o){var p=o[h];if(Array.isArray(p)){if(h in t.arrayKeywords){for(var m=0;m1){t[0]=t[0].slice(0,-1);var s=t.length-1;for(var n=1;n= 0x80 (not a basic code point)","invalid-input":"Invalid input"};var S=h-p;var N=Math.floor;var k=String.fromCharCode;function C(e){throw new RangeError(P[e])}function j(e,t){var r=[];var s=e.length;while(s--){r[s]=t(e[s])}return r}function O(e,t){var r=e.split("@");var s="";if(r.length>1){s=r[0]+"@";e=r[1]}e=e.replace(E,".");var n=e.split(".");var a=j(n,t).join(".");return s+a}function x(e){var t=[];var r=0;var s=e.length;while(r=55296&&n<=56319&&r>1;t+=N(t/r);for(;t>S*m>>1;n+=h){t=N(t/S)}return N(n+(S+1)*t/(t+y))};var A=function e(t){var r=[];var s=t.length;var n=0;var a=$;var o=g;var i=t.lastIndexOf(_);if(i<0){i=0}for(var c=0;c=128){C("not-basic")}r.push(t.charCodeAt(c))}for(var u=i>0?i+1:0;u=s){C("invalid-input")}var v=I(t.charCodeAt(u++));if(v>=h||v>N((f-n)/d)){C("overflow")}n+=v*d;var w=y<=o?p:y>=o+m?m:y-o;if(vN(f/b)){C("overflow")}d*=b}var E=r.length+1;o=D(n-l,E,l==0);if(N(n/E)>f-a){C("overflow")}a+=N(n/E);n%=E;r.splice(n++,0,a)}return String.fromCodePoint.apply(String,r)};var M=function e(t){var r=[];t=x(t);var s=t.length;var n=$;var a=0;var o=g;var i=true;var c=false;var u=undefined;try{for(var l=t[Symbol.iterator](),d;!(i=(d=l.next()).done);i=true){var y=d.value;if(y<128){r.push(k(y))}}}catch(J){c=true;u=J}finally{try{if(!i&&l.return){l.return()}}finally{if(c){throw u}}}var v=r.length;var w=v;if(v){r.push(_)}while(w=n&&TN((f-a)/I)){C("overflow")}a+=(b-n)*I;n=b;var A=true;var M=false;var V=undefined;try{for(var F=t[Symbol.iterator](),U;!(A=(U=F.next()).done);A=true){var q=U.value;if(qf){C("overflow")}if(q==n){var z=a;for(var K=h;;K+=h){var L=K<=o?p:K>=o+m?m:K-o;if(z>6|192).toString(16).toUpperCase()+"%"+(t&63|128).toString(16).toUpperCase();else r="%"+(t>>12|224).toString(16).toUpperCase()+"%"+(t>>6&63|128).toString(16).toUpperCase()+"%"+(t&63|128).toString(16).toUpperCase();return r}function K(e){var t="";var r=0;var s=e.length;while(r=194&&n<224){if(s-r>=6){var a=parseInt(e.substr(r+4,2),16);t+=String.fromCharCode((n&31)<<6|a&63)}else{t+=e.substr(r,6)}r+=6}else if(n>=224){if(s-r>=9){var o=parseInt(e.substr(r+4,2),16);var i=parseInt(e.substr(r+7,2),16);t+=String.fromCharCode((n&15)<<12|(o&63)<<6|i&63)}else{t+=e.substr(r,9)}r+=9}else{t+=e.substr(r,3);r+=3}}return t}function L(e,t){function r(e){var r=K(e);return!r.match(t.UNRESERVED)?e:r}if(e.scheme)e.scheme=String(e.scheme).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_SCHEME,"");if(e.userinfo!==undefined)e.userinfo=String(e.userinfo).replace(t.PCT_ENCODED,r).replace(t.NOT_USERINFO,z).replace(t.PCT_ENCODED,n);if(e.host!==undefined)e.host=String(e.host).replace(t.PCT_ENCODED,r).toLowerCase().replace(t.NOT_HOST,z).replace(t.PCT_ENCODED,n);if(e.path!==undefined)e.path=String(e.path).replace(t.PCT_ENCODED,r).replace(e.scheme?t.NOT_PATH:t.NOT_PATH_NOSCHEME,z).replace(t.PCT_ENCODED,n);if(e.query!==undefined)e.query=String(e.query).replace(t.PCT_ENCODED,r).replace(t.NOT_QUERY,z).replace(t.PCT_ENCODED,n);if(e.fragment!==undefined)e.fragment=String(e.fragment).replace(t.PCT_ENCODED,r).replace(t.NOT_FRAGMENT,z).replace(t.PCT_ENCODED,n);return e}function H(e){return e.replace(/^0*(.*)/,"$1")||"0"}function G(e,t){var r=e.match(t.IPV4ADDRESS)||[];var s=l(r,2),n=s[1];if(n){return n.split(".").map(H).join(".")}else{return e}}function J(e,t){var r=e.match(t.IPV6ADDRESS)||[];var s=l(r,3),n=s[1],a=s[2];if(n){var o=n.toLowerCase().split("::").reverse(),i=l(o,2),c=i[0],u=i[1];var d=u?u.split(":").map(H):[];var f=c.split(":").map(H);var h=t.IPV4ADDRESS.test(f[f.length-1]);var p=h?7:8;var m=f.length-p;var y=Array(p);for(var v=0;v1){var w=y.slice(0,$.index);var b=y.slice($.index+$.length);_=w.join(":")+"::"+b.join(":")}else{_=y.join(":")}if(a){_+="%"+a}return _}else{return e}}var B=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;var W="".match(/(){0}/)[1]===undefined;function Q(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r={};var s=t.iri!==false?u:c;if(t.reference==="suffix")e=(t.scheme?t.scheme+":":"")+"//"+e;var n=e.match(B);if(n){if(W){r.scheme=n[1];r.userinfo=n[3];r.host=n[4];r.port=parseInt(n[5],10);r.path=n[6]||"";r.query=n[7];r.fragment=n[8];if(isNaN(r.port)){r.port=n[5]}}else{r.scheme=n[1]||undefined;r.userinfo=e.indexOf("@")!==-1?n[3]:undefined;r.host=e.indexOf("//")!==-1?n[4]:undefined;r.port=parseInt(n[5],10);r.path=n[6]||"";r.query=e.indexOf("?")!==-1?n[7]:undefined;r.fragment=e.indexOf("#")!==-1?n[8]:undefined;if(isNaN(r.port)){r.port=e.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?n[4]:undefined}}if(r.host){r.host=J(G(r.host,s),s)}if(r.scheme===undefined&&r.userinfo===undefined&&r.host===undefined&&r.port===undefined&&!r.path&&r.query===undefined){r.reference="same-document"}else if(r.scheme===undefined){r.reference="relative"}else if(r.fragment===undefined){r.reference="absolute"}else{r.reference="uri"}if(t.reference&&t.reference!=="suffix"&&t.reference!==r.reference){r.error=r.error||"URI is not a "+t.reference+" reference."}var a=q[(t.scheme||r.scheme||"").toLowerCase()];if(!t.unicodeSupport&&(!a||!a.unicodeSupport)){if(r.host&&(t.domainHost||a&&a.domainHost)){try{r.host=U.toASCII(r.host.replace(s.PCT_ENCODED,K).toLowerCase())}catch(o){r.error=r.error||"Host's domain name can not be converted to ASCII via punycode: "+o}}L(r,c)}else{L(r,s)}if(a&&a.parse){a.parse(r,t)}}else{r.error=r.error||"URI can not be parsed."}return r}function Z(e,t){var r=t.iri!==false?u:c;var s=[];if(e.userinfo!==undefined){s.push(e.userinfo);s.push("@")}if(e.host!==undefined){s.push(J(G(String(e.host),r),r).replace(r.IPV6ADDRESS,(function(e,t,r){return"["+t+(r?"%25"+r:"")+"]"})))}if(typeof e.port==="number"||typeof e.port==="string"){s.push(":");s.push(String(e.port))}return s.length?s.join(""):undefined}var Y=/^\.\.?\//;var X=/^\/\.(\/|$)/;var ee=/^\/\.\.(\/|$)/;var te=/^\/?(?:.|\n)*?(?=\/|$)/;function re(e){var t=[];while(e.length){if(e.match(Y)){e=e.replace(Y,"")}else if(e.match(X)){e=e.replace(X,"/")}else if(e.match(ee)){e=e.replace(ee,"/");t.pop()}else if(e==="."||e===".."){e=""}else{var r=e.match(te);if(r){var s=r[0];e=e.slice(s.length);t.push(s)}else{throw new Error("Unexpected dot segment condition")}}}return t.join("")}function se(e){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=t.iri?u:c;var s=[];var n=q[(t.scheme||e.scheme||"").toLowerCase()];if(n&&n.serialize)n.serialize(e,t);if(e.host){if(r.IPV6ADDRESS.test(e.host)){}else if(t.domainHost||n&&n.domainHost){try{e.host=!t.iri?U.toASCII(e.host.replace(r.PCT_ENCODED,K).toLowerCase()):U.toUnicode(e.host)}catch(i){e.error=e.error||"Host's domain name can not be converted to "+(!t.iri?"ASCII":"Unicode")+" via punycode: "+i}}}L(e,r);if(t.reference!=="suffix"&&e.scheme){s.push(e.scheme);s.push(":")}var a=Z(e,t);if(a!==undefined){if(t.reference!=="suffix"){s.push("//")}s.push(a);if(e.path&&e.path.charAt(0)!=="/"){s.push("/")}}if(e.path!==undefined){var o=e.path;if(!t.absolutePath&&(!n||!n.absolutePath)){o=re(o)}if(a===undefined){o=o.replace(/^\/\//,"/%2F")}s.push(o)}if(e.query!==undefined){s.push("?");s.push(e.query)}if(e.fragment!==undefined){s.push("#");s.push(e.fragment)}return s.join("")}function ne(e,t){var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var s=arguments[3];var n={};if(!s){e=Q(se(e,r),r);t=Q(se(t,r),r)}r=r||{};if(!r.tolerant&&t.scheme){n.scheme=t.scheme;n.userinfo=t.userinfo;n.host=t.host;n.port=t.port;n.path=re(t.path||"");n.query=t.query}else{if(t.userinfo!==undefined||t.host!==undefined||t.port!==undefined){n.userinfo=t.userinfo;n.host=t.host;n.port=t.port;n.path=re(t.path||"");n.query=t.query}else{if(!t.path){n.path=e.path;if(t.query!==undefined){n.query=t.query}else{n.query=e.query}}else{if(t.path.charAt(0)==="/"){n.path=re(t.path)}else{if((e.userinfo!==undefined||e.host!==undefined||e.port!==undefined)&&!e.path){n.path="/"+t.path}else if(!e.path){n.path=t.path}else{n.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path}n.path=re(n.path)}n.query=t.query}n.userinfo=e.userinfo;n.host=e.host;n.port=e.port}n.scheme=e.scheme}n.fragment=t.fragment;return n}function ae(e,t,r){var s=o({scheme:"null"},r);return se(ne(Q(e,s),Q(t,s),s,true),s)}function oe(e,t){if(typeof e==="string"){e=se(Q(e,t),t)}else if(s(e)==="object"){e=Q(se(e,t),t)}return e}function ie(e,t,r){if(typeof e==="string"){e=se(Q(e,r),r)}else if(s(e)==="object"){e=se(e,r)}if(typeof t==="string"){t=se(Q(t,r),r)}else if(s(t)==="object"){t=se(t,r)}return e===t}function ce(e,t){return e&&e.toString().replace(!t||!t.iri?c.ESCAPE:u.ESCAPE,z)}function ue(e,t){return e&&e.toString().replace(!t||!t.iri?c.PCT_ENCODED:u.PCT_ENCODED,K)}var le={scheme:"http",domainHost:true,parse:function e(t,r){if(!t.host){t.error=t.error||"HTTP URIs must have a host."}return t},serialize:function e(t,r){var s=String(t.scheme).toLowerCase()==="https";if(t.port===(s?443:80)||t.port===""){t.port=undefined}if(!t.path){t.path="/"}return t}};var de={scheme:"https",domainHost:le.domainHost,parse:le.parse,serialize:le.serialize};function fe(e){return typeof e.secure==="boolean"?e.secure:String(e.scheme).toLowerCase()==="wss"}var he={scheme:"ws",domainHost:true,parse:function e(t,r){var s=t;s.secure=fe(s);s.resourceName=(s.path||"/")+(s.query?"?"+s.query:"");s.path=undefined;s.query=undefined;return s},serialize:function e(t,r){if(t.port===(fe(t)?443:80)||t.port===""){t.port=undefined}if(typeof t.secure==="boolean"){t.scheme=t.secure?"wss":"ws";t.secure=undefined}if(t.resourceName){var s=t.resourceName.split("?"),n=l(s,2),a=n[0],o=n[1];t.path=a&&a!=="/"?a:undefined;t.query=o;t.resourceName=undefined}t.fragment=undefined;return t}};var pe={scheme:"wss",domainHost:he.domainHost,parse:he.parse,serialize:he.serialize};var me={};var ye=true;var ve="[A-Za-z0-9\\-\\.\\_\\~"+(ye?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]";var ge="[0-9A-Fa-f]";var $e=r(r("%[EFef]"+ge+"%"+ge+ge+"%"+ge+ge)+"|"+r("%[89A-Fa-f]"+ge+"%"+ge+ge)+"|"+r("%"+ge+ge));var _e="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";var we="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";var be=t(we,'[\\"\\\\]');var Ee="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";var Pe=new RegExp(ve,"g");var Se=new RegExp($e,"g");var Ne=new RegExp(t("[^]",_e,"[\\.]",'[\\"]',be),"g");var ke=new RegExp(t("[^]",ve,Ee),"g");var Ce=ke;function je(e){var t=K(e);return!t.match(Pe)?e:t}var Oe={scheme:"mailto",parse:function e(t,r){var s=t;var n=s.to=s.path?s.path.split(","):[];s.path=undefined;if(s.query){var a=false;var o={};var i=s.query.split("&");for(var c=0,u=i.length;c{"use strict";e.exports=JSON.parse('{"$id":"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#","description":"Meta-schema for $data reference (JSON AnySchema extension proposal)","type":"object","required":["$data"],"properties":{"$data":{"type":"string","anyOf":[{"format":"relative-json-pointer"},{"format":"json-pointer"}]}},"additionalProperties":false}')},98:e=>{"use strict";e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"http://json-schema.org/draft-07/schema#","title":"Core schema meta-schema","definitions":{"schemaArray":{"type":"array","minItems":1,"items":{"$ref":"#"}},"nonNegativeInteger":{"type":"integer","minimum":0},"nonNegativeIntegerDefault0":{"allOf":[{"$ref":"#/definitions/nonNegativeInteger"},{"default":0}]},"simpleTypes":{"enum":["array","boolean","integer","null","number","object","string"]},"stringArray":{"type":"array","items":{"type":"string"},"uniqueItems":true,"default":[]}},"type":["object","boolean"],"properties":{"$id":{"type":"string","format":"uri-reference"},"$schema":{"type":"string","format":"uri"},"$ref":{"type":"string","format":"uri-reference"},"$comment":{"type":"string"},"title":{"type":"string"},"description":{"type":"string"},"default":true,"readOnly":{"type":"boolean","default":false},"examples":{"type":"array","items":true},"multipleOf":{"type":"number","exclusiveMinimum":0},"maximum":{"type":"number"},"exclusiveMaximum":{"type":"number"},"minimum":{"type":"number"},"exclusiveMinimum":{"type":"number"},"maxLength":{"$ref":"#/definitions/nonNegativeInteger"},"minLength":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"pattern":{"type":"string","format":"regex"},"additionalItems":{"$ref":"#"},"items":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/schemaArray"}],"default":true},"maxItems":{"$ref":"#/definitions/nonNegativeInteger"},"minItems":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"uniqueItems":{"type":"boolean","default":false},"contains":{"$ref":"#"},"maxProperties":{"$ref":"#/definitions/nonNegativeInteger"},"minProperties":{"$ref":"#/definitions/nonNegativeIntegerDefault0"},"required":{"$ref":"#/definitions/stringArray"},"additionalProperties":{"$ref":"#"},"definitions":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"properties":{"type":"object","additionalProperties":{"$ref":"#"},"default":{}},"patternProperties":{"type":"object","additionalProperties":{"$ref":"#"},"propertyNames":{"format":"regex"},"default":{}},"dependencies":{"type":"object","additionalProperties":{"anyOf":[{"$ref":"#"},{"$ref":"#/definitions/stringArray"}]}},"propertyNames":{"$ref":"#"},"const":true,"enum":{"type":"array","items":true,"minItems":1,"uniqueItems":true},"type":{"anyOf":[{"$ref":"#/definitions/simpleTypes"},{"type":"array","items":{"$ref":"#/definitions/simpleTypes"},"minItems":1,"uniqueItems":true}]},"format":{"type":"string"},"contentMediaType":{"type":"string"},"contentEncoding":{"type":"string"},"if":{"$ref":"#"},"then":{"$ref":"#"},"else":{"$ref":"#"},"allOf":{"$ref":"#/definitions/schemaArray"},"anyOf":{"$ref":"#/definitions/schemaArray"},"oneOf":{"$ref":"#/definitions/schemaArray"},"not":{"$ref":"#"}},"default":true}')}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/1581.e988a625b879002dcc04.js.LICENSE.txt b/bootcamp/share/jupyter/lab/static/1581.e988a625b879002dcc04.js.LICENSE.txt new file mode 100644 index 0000000..675cdb4 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/1581.e988a625b879002dcc04.js.LICENSE.txt @@ -0,0 +1 @@ +/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */ diff --git a/bootcamp/share/jupyter/lab/static/1608.61240f3db67d3d952790.js b/bootcamp/share/jupyter/lab/static/1608.61240f3db67d3d952790.js new file mode 100644 index 0000000..8dbcd10 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/1608.61240f3db67d3d952790.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1608],{31608:(t,r,e)=>{e.r(r);e.d(r,{mscgen:()=>n,msgenny:()=>i,xu:()=>a});function o(t){return{name:"mscgen",startState:u,copyState:l,token:m(t),languageData:{commentTokens:{line:"#",block:{open:"/*",close:"*/"}}}}}const n=o({keywords:["msc"],options:["hscale","width","arcgradient","wordwraparcs"],constants:["true","false","on","off"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]});const i=o({keywords:null,options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:null,brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]});const a=o({keywords:["msc","xu"],options:["hscale","width","arcgradient","wordwraparcs","wordwrapentities","watermark"],constants:["true","false","on","off","auto"],attributes:["label","idurl","id","url","linecolor","linecolour","textcolor","textcolour","textbgcolor","textbgcolour","arclinecolor","arclinecolour","arctextcolor","arctextcolour","arctextbgcolor","arctextbgcolour","arcskip","title","deactivate","activate","activation"],brackets:["\\{","\\}"],arcsWords:["note","abox","rbox","box","alt","else","opt","break","par","seq","strict","neg","critical","ignore","consider","assert","loop","ref","exc"],arcsOthers:["\\|\\|\\|","\\.\\.\\.","---","--","<->","==","<<=>>","<=>","\\.\\.","<<>>","::","<:>","->","=>>","=>",">>",":>","<-","<<=","<=","<<","<:","x-","-x"],singlecomment:["//","#"],operators:["="]});function c(t){return new RegExp("^\\b("+t.join("|")+")\\b","i")}function s(t){return new RegExp("^(?:"+t.join("|")+")","i")}function u(){return{inComment:false,inString:false,inAttributeList:false,inScript:false}}function l(t){return{inComment:t.inComment,inString:t.inString,inAttributeList:t.inAttributeList,inScript:t.inScript}}function m(t){return function(r,e){if(r.match(s(t.brackets),true,true)){return"bracket"}if(!e.inComment){if(r.match(/\/\*[^\*\/]*/,true,true)){e.inComment=true;return"comment"}if(r.match(s(t.singlecomment),true,true)){r.skipToEnd();return"comment"}}if(e.inComment){if(r.match(/[^\*\/]*\*\//,true,true))e.inComment=false;else r.skipToEnd();return"comment"}if(!e.inString&&r.match(/\"(\\\"|[^\"])*/,true,true)){e.inString=true;return"string"}if(e.inString){if(r.match(/[^\"]*\"/,true,true))e.inString=false;else r.skipToEnd();return"string"}if(!!t.keywords&&r.match(c(t.keywords),true,true))return"keyword";if(r.match(c(t.options),true,true))return"keyword";if(r.match(c(t.arcsWords),true,true))return"keyword";if(r.match(s(t.arcsOthers),true,true))return"keyword";if(!!t.operators&&r.match(s(t.operators),true,true))return"operator";if(!!t.constants&&r.match(s(t.constants),true,true))return"variable";if(!t.inAttributeList&&!!t.attributes&&r.match("[",true,true)){t.inAttributeList=true;return"bracket"}if(t.inAttributeList){if(t.attributes!==null&&r.match(c(t.attributes),true,true)){return"attribute"}if(r.match("]",true,true)){t.inAttributeList=false;return"bracket"}}r.next();return null}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/1716.a6bbe1ae8a1986a73623.js b/bootcamp/share/jupyter/lab/static/1716.a6bbe1ae8a1986a73623.js new file mode 100644 index 0000000..d9fc6cd --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/1716.a6bbe1ae8a1986a73623.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1716],{21716:(e,t,r)=>{r.r(t);r.d(t,{tiddlyWiki:()=>y});var n={};var i={allTags:true,closeAll:true,list:true,newJournal:true,newTiddler:true,permaview:true,saveChanges:true,search:true,slider:true,tabs:true,tag:true,tagging:true,tags:true,tiddler:true,timeline:true,today:true,version:true,option:true,with:true,filter:true};var u=/[\w_\-]/i,a=/^\-\-\-\-+$/,f=/^\/\*\*\*$/,l=/^\*\*\*\/$/,o=/^<<<$/,c=/^\/\/\{\{\{$/,m=/^\/\/\}\}\}$/,s=/^$/,h=/^$/,k=/^\{\{\{$/,p=/^\}\}\}$/,b=/.*?\}\}\}/;function d(e,t,r){t.tokenize=r;return r(e,t)}function w(e,t){var r=e.sol(),i=e.peek();t.block=false;if(r&&/[<\/\*{}\-]/.test(i)){if(e.match(k)){t.block=true;return d(e,t,$)}if(e.match(o))return"quote";if(e.match(f)||e.match(l))return"comment";if(e.match(c)||e.match(m)||e.match(s)||e.match(h))return"comment";if(e.match(a))return"contentSeparator"}e.next();if(r&&/[\/\*!#;:>|]/.test(i)){if(i=="!"){e.skipToEnd();return"header"}if(i=="*"){e.eatWhile("*");return"comment"}if(i=="#"){e.eatWhile("#");return"comment"}if(i==";"){e.eatWhile(";");return"comment"}if(i==":"){e.eatWhile(":");return"comment"}if(i==">"){e.eatWhile(">");return"quote"}if(i=="|")return"header"}if(i=="{"&&e.match("{{"))return d(e,t,$);if(/[hf]/i.test(i)&&/[ti]/i.test(e.peek())&&e.match(/\b(ttps?|tp|ile):\/\/[\-A-Z0-9+&@#\/%?=~_|$!:,.;]*[A-Z0-9+&@#\/%=~_|$]/i))return"link";if(i=='"')return"string";if(i=="~")return"brace";if(/[\[\]]/.test(i)&&e.match(i))return"brace";if(i=="@"){e.eatWhile(u);return"link"}if(/\d/.test(i)){e.eatWhile(/\d/);return"number"}if(i=="/"){if(e.eat("%")){return d(e,t,v)}else if(e.eat("/")){return d(e,t,z)}}if(i=="_"&&e.eat("_"))return d(e,t,W);if(i=="-"&&e.eat("-")){if(e.peek()!=" ")return d(e,t,g);if(e.peek()==" ")return"brace"}if(i=="'"&&e.eat("'"))return d(e,t,_);if(i=="<"&&e.eat("<"))return d(e,t,x);e.eatWhile(/[\w\$_]/);return n.propertyIsEnumerable(e.current())?"keyword":null}function v(e,t){var r=false,n;while(n=e.next()){if(n=="/"&&r){t.tokenize=w;break}r=n=="%"}return"comment"}function _(e,t){var r=false,n;while(n=e.next()){if(n=="'"&&r){t.tokenize=w;break}r=n=="'"}return"strong"}function $(e,t){var r=t.block;if(r&&e.current()){return"comment"}if(!r&&e.match(b)){t.tokenize=w;return"comment"}if(r&&e.sol()&&e.match(p)){t.tokenize=w;return"comment"}e.next();return"comment"}function z(e,t){var r=false,n;while(n=e.next()){if(n=="/"&&r){t.tokenize=w;break}r=n=="/"}return"emphasis"}function W(e,t){var r=false,n;while(n=e.next()){if(n=="_"&&r){t.tokenize=w;break}r=n=="_"}return"link"}function g(e,t){var r=false,n;while(n=e.next()){if(n=="-"&&r){t.tokenize=w;break}r=n=="-"}return"deleted"}function x(e,t){if(e.current()=="<<"){return"meta"}var r=e.next();if(!r){t.tokenize=w;return null}if(r==">"){if(e.peek()==">"){e.next();t.tokenize=w;return"meta"}}e.eatWhile(/[\w\$_]/);return i.propertyIsEnumerable(e.current())?"keyword":null}const y={name:"tiddlywiki",startState:function(){return{tokenize:w}},token:function(e,t){if(e.eatSpace())return null;var r=t.tokenize(e,t);return r}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/1776.4f9305d35480467b23c9.js b/bootcamp/share/jupyter/lab/static/1776.4f9305d35480467b23c9.js new file mode 100644 index 0000000..93d024f --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/1776.4f9305d35480467b23c9.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1776],{41776:(e,r,t)=>{t.r(r);t.d(r,{diff:()=>p});var n={"+":"inserted","-":"deleted","@":"meta"};const p={name:"diff",token:function(e){var r=e.string.search(/[\t ]+?$/);if(!e.sol()||r===0){e.skipToEnd();return("error "+(n[e.string.charAt(0)]||"")).replace(/ $/,"")}var t=n[e.peek()]||e.skipToEnd();if(r===-1){e.skipToEnd()}else{e.pos=r}return t}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/1861.4fc7b4afe2b09eb6b5c0.js b/bootcamp/share/jupyter/lab/static/1861.4fc7b4afe2b09eb6b5c0.js new file mode 100644 index 0000000..6fbaeae --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/1861.4fc7b4afe2b09eb6b5c0.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1861],{1861:(e,t,n)=>{n.r(t);n.d(t,{clojure:()=>g});var r=["false","nil","true"];var a=[".","catch","def","do","if","monitor-enter","monitor-exit","new","quote","recur","set!","throw","try","var"];var s=["*","*'","*1","*2","*3","*agent*","*allow-unresolved-vars*","*assert*","*clojure-version*","*command-line-args*","*compile-files*","*compile-path*","*compiler-options*","*data-readers*","*default-data-reader-fn*","*e","*err*","*file*","*flush-on-newline*","*fn-loader*","*in*","*math-context*","*ns*","*out*","*print-dup*","*print-length*","*print-level*","*print-meta*","*print-namespace-maps*","*print-readably*","*read-eval*","*reader-resolver*","*source-path*","*suppress-read*","*unchecked-math*","*use-context-classloader*","*verbose-defrecords*","*warn-on-reflection*","+","+'","-","-'","->","->>","->ArrayChunk","->Eduction","->Vec","->VecNode","->VecSeq","-cache-protocol-fn","-reset-methods","..","/","<","<=","=","==",">",">=","EMPTY-NODE","Inst","StackTraceElement->vec","Throwable->map","accessor","aclone","add-classpath","add-watch","agent","agent-error","agent-errors","aget","alength","alias","all-ns","alter","alter-meta!","alter-var-root","amap","ancestors","and","any?","apply","areduce","array-map","as->","aset","aset-boolean","aset-byte","aset-char","aset-double","aset-float","aset-int","aset-long","aset-short","assert","assoc","assoc!","assoc-in","associative?","atom","await","await-for","await1","bases","bean","bigdec","bigint","biginteger","binding","bit-and","bit-and-not","bit-clear","bit-flip","bit-not","bit-or","bit-set","bit-shift-left","bit-shift-right","bit-test","bit-xor","boolean","boolean-array","boolean?","booleans","bound-fn","bound-fn*","bound?","bounded-count","butlast","byte","byte-array","bytes","bytes?","case","cast","cat","char","char-array","char-escape-string","char-name-string","char?","chars","chunk","chunk-append","chunk-buffer","chunk-cons","chunk-first","chunk-next","chunk-rest","chunked-seq?","class","class?","clear-agent-errors","clojure-version","coll?","comment","commute","comp","comparator","compare","compare-and-set!","compile","complement","completing","concat","cond","cond->","cond->>","condp","conj","conj!","cons","constantly","construct-proxy","contains?","count","counted?","create-ns","create-struct","cycle","dec","dec'","decimal?","declare","dedupe","default-data-readers","definline","definterface","defmacro","defmethod","defmulti","defn","defn-","defonce","defprotocol","defrecord","defstruct","deftype","delay","delay?","deliver","denominator","deref","derive","descendants","destructure","disj","disj!","dissoc","dissoc!","distinct","distinct?","doall","dorun","doseq","dosync","dotimes","doto","double","double-array","double?","doubles","drop","drop-last","drop-while","eduction","empty","empty?","ensure","ensure-reduced","enumeration-seq","error-handler","error-mode","eval","even?","every-pred","every?","ex-data","ex-info","extend","extend-protocol","extend-type","extenders","extends?","false?","ffirst","file-seq","filter","filterv","find","find-keyword","find-ns","find-protocol-impl","find-protocol-method","find-var","first","flatten","float","float-array","float?","floats","flush","fn","fn?","fnext","fnil","for","force","format","frequencies","future","future-call","future-cancel","future-cancelled?","future-done?","future?","gen-class","gen-interface","gensym","get","get-in","get-method","get-proxy-class","get-thread-bindings","get-validator","group-by","halt-when","hash","hash-combine","hash-map","hash-ordered-coll","hash-set","hash-unordered-coll","ident?","identical?","identity","if-let","if-not","if-some","ifn?","import","in-ns","inc","inc'","indexed?","init-proxy","inst-ms","inst-ms*","inst?","instance?","int","int-array","int?","integer?","interleave","intern","interpose","into","into-array","ints","io!","isa?","iterate","iterator-seq","juxt","keep","keep-indexed","key","keys","keyword","keyword?","last","lazy-cat","lazy-seq","let","letfn","line-seq","list","list*","list?","load","load-file","load-reader","load-string","loaded-libs","locking","long","long-array","longs","loop","macroexpand","macroexpand-1","make-array","make-hierarchy","map","map-entry?","map-indexed","map?","mapcat","mapv","max","max-key","memfn","memoize","merge","merge-with","meta","method-sig","methods","min","min-key","mix-collection-hash","mod","munge","name","namespace","namespace-munge","nat-int?","neg-int?","neg?","newline","next","nfirst","nil?","nnext","not","not-any?","not-empty","not-every?","not=","ns","ns-aliases","ns-imports","ns-interns","ns-map","ns-name","ns-publics","ns-refers","ns-resolve","ns-unalias","ns-unmap","nth","nthnext","nthrest","num","number?","numerator","object-array","odd?","or","parents","partial","partition","partition-all","partition-by","pcalls","peek","persistent!","pmap","pop","pop!","pop-thread-bindings","pos-int?","pos?","pr","pr-str","prefer-method","prefers","primitives-classnames","print","print-ctor","print-dup","print-method","print-simple","print-str","printf","println","println-str","prn","prn-str","promise","proxy","proxy-call-with-super","proxy-mappings","proxy-name","proxy-super","push-thread-bindings","pvalues","qualified-ident?","qualified-keyword?","qualified-symbol?","quot","rand","rand-int","rand-nth","random-sample","range","ratio?","rational?","rationalize","re-find","re-groups","re-matcher","re-matches","re-pattern","re-seq","read","read-line","read-string","reader-conditional","reader-conditional?","realized?","record?","reduce","reduce-kv","reduced","reduced?","reductions","ref","ref-history-count","ref-max-history","ref-min-history","ref-set","refer","refer-clojure","reify","release-pending-sends","rem","remove","remove-all-methods","remove-method","remove-ns","remove-watch","repeat","repeatedly","replace","replicate","require","reset!","reset-meta!","reset-vals!","resolve","rest","restart-agent","resultset-seq","reverse","reversible?","rseq","rsubseq","run!","satisfies?","second","select-keys","send","send-off","send-via","seq","seq?","seqable?","seque","sequence","sequential?","set","set-agent-send-executor!","set-agent-send-off-executor!","set-error-handler!","set-error-mode!","set-validator!","set?","short","short-array","shorts","shuffle","shutdown-agents","simple-ident?","simple-keyword?","simple-symbol?","slurp","some","some->","some->>","some-fn","some?","sort","sort-by","sorted-map","sorted-map-by","sorted-set","sorted-set-by","sorted?","special-symbol?","spit","split-at","split-with","str","string?","struct","struct-map","subs","subseq","subvec","supers","swap!","swap-vals!","symbol","symbol?","sync","tagged-literal","tagged-literal?","take","take-last","take-nth","take-while","test","the-ns","thread-bound?","time","to-array","to-array-2d","trampoline","transduce","transient","tree-seq","true?","type","unchecked-add","unchecked-add-int","unchecked-byte","unchecked-char","unchecked-dec","unchecked-dec-int","unchecked-divide-int","unchecked-double","unchecked-float","unchecked-inc","unchecked-inc-int","unchecked-int","unchecked-long","unchecked-multiply","unchecked-multiply-int","unchecked-negate","unchecked-negate-int","unchecked-remainder-int","unchecked-short","unchecked-subtract","unchecked-subtract-int","underive","unquote","unquote-splicing","unreduced","unsigned-bit-shift-right","update","update-in","update-proxy","uri?","use","uuid?","val","vals","var-get","var-set","var?","vary-meta","vec","vector","vector-of","vector?","volatile!","volatile?","vreset!","vswap!","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn","xml-seq","zero?","zipmap"];var o=["->","->>","as->","binding","bound-fn","case","catch","comment","cond","cond->","cond->>","condp","def","definterface","defmethod","defn","defmacro","defprotocol","defrecord","defstruct","deftype","do","doseq","dotimes","doto","extend","extend-protocol","extend-type","fn","for","future","if","if-let","if-not","if-some","let","letfn","locking","loop","ns","proxy","reify","struct-map","some->","some->>","try","when","when-first","when-let","when-not","when-some","while","with-bindings","with-bindings*","with-in-str","with-loading-context","with-local-vars","with-meta","with-open","with-out-str","with-precision","with-redefs","with-redefs-fn"];var i=v(r);var c=v(a);var d=v(s);var l=v(o);var u=/^(?:[\\\[\]\s"(),;@^`{}~]|$)/;var p=/^(?:[+\-]?\d+(?:(?:N|(?:[eE][+\-]?\d+))|(?:\.?\d*(?:M|(?:[eE][+\-]?\d+))?)|\/\d+|[xX][0-9a-fA-F]+|r[0-9a-zA-Z]+)?(?=[\\\[\]\s"#'(),;@^`{}~]|$))/;var f=/^(?:\\(?:backspace|formfeed|newline|return|space|tab|o[0-7]{3}|u[0-9A-Fa-f]{4}|x[0-9A-Fa-f]{4}|.)?(?=[\\\[\]\s"(),;@^`{}~]|$))/;var m=/^(?:(?:[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*(?:\.[^\\\/\[\]\d\s"#'(),;@^`{}~.][^\\\[\]\s"(),;@^`{}~.\/]*)*\/)?(?:\/|[^\\\/\[\]\d\s"#'(),;@^`{}~][^\\\[\]\s"(),;@^`{}~]*)*(?=[\\\[\]\s"(),;@^`{}~]|$))/;function h(e,t){if(e.eatSpace()||e.eat(","))return["space",null];if(e.match(p))return[null,"number"];if(e.match(f))return[null,"string.special"];if(e.eat(/^"/))return(t.tokenize=b)(e,t);if(e.eat(/^[(\[{]/))return["open","bracket"];if(e.eat(/^[)\]}]/))return["close","bracket"];if(e.eat(/^;/)){e.skipToEnd();return["space","comment"]}if(e.eat(/^[#'@^`~]/))return[null,"meta"];var n=e.match(m);var r=n&&n[0];if(!r){e.next();e.eatWhile((function(e){return!k(e,u)}));return[null,"error"]}if(r==="comment"&&t.lastToken==="(")return(t.tokenize=y)(e,t);if(k(r,i)||r.charAt(0)===":")return["symbol","atom"];if(k(r,c)||k(r,d))return["symbol","keyword"];if(t.lastToken==="(")return["symbol","builtin"];return["symbol","variable"]}function b(e,t){var n=false,r;while(r=e.next()){if(r==='"'&&!n){t.tokenize=h;break}n=!n&&r==="\\"}return[null,"string"]}function y(e,t){var n=1;var r;while(r=e.next()){if(r===")")n--;if(r==="(")n++;if(n===0){e.backUp(1);t.tokenize=h;break}}return["space","comment"]}function v(e){var t={};for(var n=0;n{n.r(t);n.d(t,{ecl:()=>k});function r(e){var t={},n=e.split(" ");for(var r=0;r!?|\/]/;var m;function h(e,t){var n=e.next();if(f[n]){var r=f[n](e,t);if(r!==false)return r}if(n=='"'||n=="'"){t.tokenize=y(n);return t.tokenize(e,t)}if(/[\[\]{}\(\),;\:\.]/.test(n)){m=n;return null}if(/\d/.test(n)){e.eatWhile(/[\w\.]/);return"number"}if(n=="/"){if(e.eat("*")){t.tokenize=v;return v(e,t)}if(e.eat("/")){e.skipToEnd();return"comment"}}if(d.test(n)){e.eatWhile(d);return"operator"}e.eatWhile(/[\w\$_]/);var a=e.current().toLowerCase();if(i.propertyIsEnumerable(a)){if(c.propertyIsEnumerable(a))m="newstatement";return"keyword"}else if(o.propertyIsEnumerable(a)){if(c.propertyIsEnumerable(a))m="newstatement";return"variable"}else if(l.propertyIsEnumerable(a)){if(c.propertyIsEnumerable(a))m="newstatement";return"modifier"}else if(s.propertyIsEnumerable(a)){if(c.propertyIsEnumerable(a))m="newstatement";return"type"}else if(u.propertyIsEnumerable(a)){if(c.propertyIsEnumerable(a))m="newstatement";return"builtin"}else{var h=a.length-1;while(h>=0&&(!isNaN(a[h])||a[h]=="_"))--h;if(h>0){var b=a.substr(0,h+1);if(s.propertyIsEnumerable(b)){if(c.propertyIsEnumerable(b))m="newstatement";return"type"}}}if(p.propertyIsEnumerable(a))return"atom";return null}function y(e){return function(t,n){var r=false,a,i=false;while((a=t.next())!=null){if(a==e&&!r){i=true;break}r=!r&&a=="\\"}if(i||!r)n.tokenize=h;return"string"}}function v(e,t){var n=false,r;while(r=e.next()){if(r=="/"&&n){t.tokenize=h;break}n=r=="*"}return"comment"}function b(e,t,n,r,a){this.indented=e;this.column=t;this.type=n;this.align=r;this.prev=a}function g(e,t,n){return e.context=new b(e.indented,t,n,null,e.context)}function w(e){var t=e.context.type;if(t==")"||t=="]"||t=="}")e.indented=e.context.indented;return e.context=e.context.prev}const k={name:"ecl",startState:function(e){return{tokenize:null,context:new b(-e,0,"top",false),indented:0,startOfLine:true}},token:function(e,t){var n=t.context;if(e.sol()){if(n.align==null)n.align=false;t.indented=e.indentation();t.startOfLine=true}if(e.eatSpace())return null;m=null;var r=(t.tokenize||h)(e,t);if(r=="comment"||r=="meta")return r;if(n.align==null)n.align=true;if((m==";"||m==":")&&n.type=="statement")w(t);else if(m=="{")g(t,e.column(),"}");else if(m=="[")g(t,e.column(),"]");else if(m=="(")g(t,e.column(),")");else if(m=="}"){while(n.type=="statement")n=w(t);if(n.type=="}")n=w(t);while(n.type=="statement")n=w(t)}else if(m==n.type)w(t);else if(n.type=="}"||n.type=="top"||n.type=="statement"&&m=="newstatement")g(t,e.column(),"statement");t.startOfLine=false;return r},indent:function(e,t,n){if(e.tokenize!=h&&e.tokenize!=null)return 0;var r=e.context,a=t&&t.charAt(0);if(r.type=="statement"&&a=="}")r=r.prev;var i=a==r.type;if(r.type=="statement")return r.indented+(a=="{"?0:n.unit);else if(r.align)return r.column+(i?0:1);else return r.indented+(i?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/1945.0fbbfe93a4aedd91875c.js b/bootcamp/share/jupyter/lab/static/1945.0fbbfe93a4aedd91875c.js new file mode 100644 index 0000000..09b013c --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/1945.0fbbfe93a4aedd91875c.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1945],{11945:(e,t,n)=>{n.r(t);n.d(t,{crystal:()=>Z});function r(e,t){return new RegExp((t?"":"^")+"(?:"+e.join("|")+")"+(t?"$":"\\b"))}function a(e,t,n){n.tokenize.push(e);return e(t,n)}var u=/^(?:[-+/%|&^]|\*\*?|[<>]{2})/;var i=/^(?:[=!]~|===|<=>|[<>=!]=?|[|&]{2}|~)/;var f=/^(?:\[\][?=]?)/;var s=/^(?:\.(?:\.{2})?|->|[?:])/;var c=/^[a-z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/;var o=/^[A-Z_\u009F-\uFFFF][a-zA-Z0-9_\u009F-\uFFFF]*/;var l=r(["abstract","alias","as","asm","begin","break","case","class","def","do","else","elsif","end","ensure","enum","extend","for","fun","if","include","instance_sizeof","lib","macro","module","next","of","out","pointerof","private","protected","rescue","return","require","select","sizeof","struct","super","then","type","typeof","uninitialized","union","unless","until","when","while","with","yield","__DIR__","__END_LINE__","__FILE__","__LINE__"]);var m=r(["true","false","nil","self"]);var p=["def","fun","macro","class","module","struct","lib","enum","union","do","for"];var h=r(p);var k=["if","unless","case","while","until","begin","then"];var d=r(k);var F=["end","else","elsif","rescue","ensure"];var _=r(F);var v=["\\)","\\}","\\]"];var z=new RegExp("^(?:"+v.join("|")+")$");var b={def:S,fun:S,macro:I,class:A,module:A,struct:A,lib:A,enum:A,union:A};var g={"[":"]","{":"}","(":")","<":">"};function w(e,t){if(e.eatSpace()){return null}if(t.lastToken!="\\"&&e.match("{%",false)){return a(x("%","%"),e,t)}if(t.lastToken!="\\"&&e.match("{{",false)){return a(x("{","}"),e,t)}if(e.peek()=="#"){e.skipToEnd();return"comment"}var n;if(e.match(c)){e.eat(/[?!]/);n=e.current();if(e.eat(":")){return"atom"}else if(t.lastToken=="."){return"property"}else if(l.test(n)){if(h.test(n)){if(!(n=="fun"&&t.blocks.indexOf("lib")>=0)&&!(n=="def"&&t.lastToken=="abstract")){t.blocks.push(n);t.currentIndent+=1}}else if((t.lastStyle=="operator"||!t.lastStyle)&&d.test(n)){t.blocks.push(n);t.currentIndent+=1}else if(n=="end"){t.blocks.pop();t.currentIndent-=1}if(b.hasOwnProperty(n)){t.tokenize.push(b[n])}return"keyword"}else if(m.test(n)){return"atom"}return"variable"}if(e.eat("@")){if(e.peek()=="["){return a(y("[","]","meta"),e,t)}e.eat("@");e.match(c)||e.match(o);return"propertyName"}if(e.match(o)){return"tag"}if(e.eat(":")){if(e.eat('"')){return a(E('"',"atom",false),e,t)}else if(e.match(c)||e.match(o)||e.match(u)||e.match(i)||e.match(f)){return"atom"}e.eat(":");return"operator"}if(e.eat('"')){return a(E('"',"string",true),e,t)}if(e.peek()=="%"){var r="string";var p=true;var k;if(e.match("%r")){r="string.special";k=e.next()}else if(e.match("%w")){p=false;k=e.next()}else if(e.match("%q")){p=false;k=e.next()}else{if(k=e.match(/^%([^\w\s=])/)){k=k[1]}else if(e.match(/^%[a-zA-Z_\u009F-\uFFFF][\w\u009F-\uFFFF]*/)){return"meta"}else if(e.eat("%")){return"operator"}}if(g.hasOwnProperty(k)){k=g[k]}return a(E(k,r,p),e,t)}if(n=e.match(/^<<-('?)([A-Z]\w*)\1/)){return a(T(n[2],!n[1]),e,t)}if(e.eat("'")){e.match(/^(?:[^']|\\(?:[befnrtv0'"]|[0-7]{3}|u(?:[0-9a-fA-F]{4}|\{[0-9a-fA-F]{1,6}\})))/);e.eat("'");return"atom"}if(e.eat("0")){if(e.eat("x")){e.match(/^[0-9a-fA-F_]+/)}else if(e.eat("o")){e.match(/^[0-7_]+/)}else if(e.eat("b")){e.match(/^[01_]+/)}return"number"}if(e.eat(/^\d/)){e.match(/^[\d_]*(?:\.[\d_]+)?(?:[eE][+-]?\d+)?/);return"number"}if(e.match(u)){e.eat("=");return"operator"}if(e.match(i)||e.match(s)){return"operator"}if(n=e.match(/[({[]/,false)){n=n[0];return a(y(n,g[n],null),e,t)}if(e.eat("\\")){e.next();return"meta"}e.next();return null}function y(e,t,n,r){return function(a,u){if(!r&&a.match(e)){u.tokenize[u.tokenize.length-1]=y(e,t,n,true);u.currentIndent+=1;return n}var i=w(a,u);if(a.current()===t){u.tokenize.pop();u.currentIndent-=1;i=n}return i}}function x(e,t,n){return function(r,a){if(!n&&r.match("{"+e)){a.currentIndent+=1;a.tokenize[a.tokenize.length-1]=x(e,t,true);return"meta"}if(r.match(t+"}")){a.currentIndent-=1;a.tokenize.pop();return"meta"}return w(r,a)}}function I(e,t){if(e.eatSpace()){return null}var n;if(n=e.match(c)){if(n=="def"){return"keyword"}e.eat(/[?!]/)}t.tokenize.pop();return"def"}function S(e,t){if(e.eatSpace()){return null}if(e.match(c)){e.eat(/[!?]/)}else{e.match(u)||e.match(i)||e.match(f)}t.tokenize.pop();return"def"}function A(e,t){if(e.eatSpace()){return null}e.match(o);t.tokenize.pop();return"def"}function E(e,t,n){return function(r,a){var u=false;while(r.peek()){if(!u){if(r.match("{%",false)){a.tokenize.push(x("%","%"));return t}if(r.match("{{",false)){a.tokenize.push(x("{","}"));return t}if(n&&r.match("#{",false)){a.tokenize.push(y("#{","}","meta"));return t}var i=r.next();if(i==e){a.tokenize.pop();return t}u=n&&i=="\\"}else{r.next();u=false}}return t}}function T(e,t){return function(n,r){if(n.sol()){n.eatSpace();if(n.match(e)){r.tokenize.pop();return"string"}}var a=false;while(n.peek()){if(!a){if(n.match("{%",false)){r.tokenize.push(x("%","%"));return"string"}if(n.match("{{",false)){r.tokenize.push(x("{","}"));return"string"}if(t&&n.match("#{",false)){r.tokenize.push(y("#{","}","meta"));return"string"}a=t&&n.next()=="\\"}else{n.next();a=false}}return"string"}}const Z={name:"crystal",startState:function(){return{tokenize:[w],currentIndent:0,lastToken:null,lastStyle:null,blocks:[]}},token:function(e,t){var n=t.tokenize[t.tokenize.length-1](e,t);var r=e.current();if(n&&n!="comment"){t.lastToken=r;t.lastStyle=n}return n},indent:function(e,t,n){t=t.replace(/^\s*(?:\{%)?\s*|\s*(?:%\})?\s*$/g,"");if(_.test(t)||z.test(t)){return n.unit*(e.currentIndent-1)}return n.unit*e.currentIndent},languageData:{indentOnInput:r(v.concat(F),true),commentTokens:{line:"#"}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/1954.07d96e4020ed6e543d25.js b/bootcamp/share/jupyter/lab/static/1954.07d96e4020ed6e543d25.js new file mode 100644 index 0000000..35318ec --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/1954.07d96e4020ed6e543d25.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1954],{21954:(e,n,t)=>{t.r(n);t.d(n,{octave:()=>k});function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var a=new RegExp("^[\\+\\-\\*/&|\\^~<>!@'\\\\]");var i=new RegExp("^[\\(\\[\\{\\},:=;\\.]");var o=new RegExp("^((==)|(~=)|(<=)|(>=)|(<<)|(>>)|(\\.[\\+\\-\\*/\\^\\\\]))");var u=new RegExp("^((!=)|(\\+=)|(\\-=)|(\\*=)|(/=)|(&=)|(\\|=)|(\\^=))");var c=new RegExp("^((>>=)|(<<=))");var s=new RegExp("^[\\]\\)]");var f=new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*");var m=r(["error","eval","function","abs","acos","atan","asin","cos","cosh","exp","log","prod","sum","log10","max","min","sign","sin","sinh","sqrt","tan","reshape","break","zeros","default","margin","round","ones","rand","syn","ceil","floor","size","clear","zeros","eye","mean","std","cov","det","eig","inv","norm","rank","trace","expm","logm","sqrtm","linspace","plot","title","xlabel","ylabel","legend","text","grid","meshgrid","mesh","num2str","fft","ifft","arrayfun","cellfun","input","fliplr","flipud","ismember"]);var l=r(["return","case","switch","else","elseif","end","endif","endfunction","if","otherwise","do","for","while","try","catch","classdef","properties","events","methods","global","persistent","endfor","endwhile","printf","sprintf","disp","until","continue","pkg"]);function p(e,n){if(!e.sol()&&e.peek()==="'"){e.next();n.tokenize=d;return"operator"}n.tokenize=d;return d(e,n)}function h(e,n){if(e.match(/^.*%}/)){n.tokenize=d;return"comment"}e.skipToEnd();return"comment"}function d(e,n){if(e.eatSpace())return null;if(e.match("%{")){n.tokenize=h;e.skipToEnd();return"comment"}if(e.match(/^[%#]/)){e.skipToEnd();return"comment"}if(e.match(/^[0-9\.+-]/,false)){if(e.match(/^[+-]?0x[0-9a-fA-F]+[ij]?/)){e.tokenize=d;return"number"}if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?[ij]?/)){return"number"}if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?[ij]?/)){return"number"}}if(e.match(r(["nan","NaN","inf","Inf"]))){return"number"}var t=e.match(/^"(?:[^"]|"")*("|$)/)||e.match(/^'(?:[^']|'')*('|$)/);if(t){return t[1]?"string":"error"}if(e.match(l)){return"keyword"}if(e.match(m)){return"builtin"}if(e.match(f)){return"variable"}if(e.match(a)||e.match(o)){return"operator"}if(e.match(i)||e.match(u)||e.match(c)){return null}if(e.match(s)){n.tokenize=p;return null}e.next();return"error"}const k={name:"octave",startState:function(){return{tokenize:d}},token:function(e,n){var t=n.tokenize(e,n);if(t==="number"||t==="variable"){n.tokenize=p}return t},languageData:{commentTokens:{line:"%"}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/1993.f8c5682f95ffa75cbaf6.js b/bootcamp/share/jupyter/lab/static/1993.f8c5682f95ffa75cbaf6.js new file mode 100644 index 0000000..21226aa --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/1993.f8c5682f95ffa75cbaf6.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[1993],{91993:(e,t,n)=>{n.r(t);n.d(t,{scheme:()=>C});var a="builtin",i="comment",r="string",s="symbol",l="atom",c="number",o="bracket";var d=2;function f(e){var t={},n=e.split(" ");for(var a=0;ainteger char-alphabetic? char-ci<=? char-ci=? char-ci>? char-downcase char-lower-case? char-numeric? char-ready? char-upcase char-upper-case? char-whitespace? char<=? char=? char>? char? close-input-port close-output-port complex? cons cos current-input-port current-output-port denominator display eof-object? eq? equal? eqv? eval even? exact->inexact exact? exp expt #f floor force gcd imag-part inexact->exact inexact? input-port? integer->char integer? interaction-environment lcm length list list->string list->vector list-ref list-tail list? load log magnitude make-polar make-rectangular make-string make-vector max member memq memv min modulo negative? newline not null-environment null? number->string number? numerator odd? open-input-file open-output-file output-port? pair? peek-char port? positive? procedure? quasiquote quote quotient rational? rationalize read read-char real-part real? remainder reverse round scheme-report-environment set! set-car! set-cdr! sin sqrt string string->list string->number string->symbol string-append string-ci<=? string-ci=? string-ci>? string-copy string-fill! string-length string-ref string-set! string<=? string=? string>? string? substring symbol->string symbol? #t tan transcript-off transcript-on truncate values vector vector->list vector-fill! vector-length vector-ref vector-set! with-input-from-file with-output-to-file write write-char zero?");var p=f("define let letrec let* lambda define-macro defmacro let-syntax letrec-syntax let-values let*-values define-syntax syntax-rules define-values when unless");function m(e,t,n){this.indent=e;this.type=t;this.prev=n}function h(e,t,n){e.indentStack=new m(t,n,e.indentStack)}function g(e){e.indentStack=e.indentStack.prev}var x=new RegExp(/^(?:[-+]i|[-+][01]+#*(?:\/[01]+#*)?i|[-+]?[01]+#*(?:\/[01]+#*)?@[-+]?[01]+#*(?:\/[01]+#*)?|[-+]?[01]+#*(?:\/[01]+#*)?[-+](?:[01]+#*(?:\/[01]+#*)?)?i|[-+]?[01]+#*(?:\/[01]+#*)?)(?=[()\s;"]|$)/i);var b=new RegExp(/^(?:[-+]i|[-+][0-7]+#*(?:\/[0-7]+#*)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?@[-+]?[0-7]+#*(?:\/[0-7]+#*)?|[-+]?[0-7]+#*(?:\/[0-7]+#*)?[-+](?:[0-7]+#*(?:\/[0-7]+#*)?)?i|[-+]?[0-7]+#*(?:\/[0-7]+#*)?)(?=[()\s;"]|$)/i);var v=new RegExp(/^(?:[-+]i|[-+][\da-f]+#*(?:\/[\da-f]+#*)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?@[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?[-+](?:[\da-f]+#*(?:\/[\da-f]+#*)?)?i|[-+]?[\da-f]+#*(?:\/[\da-f]+#*)?)(?=[()\s;"]|$)/i);var k=new RegExp(/^(?:[-+]i|[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)i|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)@[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)|[-+]?(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)[-+](?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*)?i|(?:(?:(?:\d+#+\.?#*|\d+\.\d*#*|\.\d+#*|\d+)(?:[esfdl][-+]?\d+)?)|\d+#*\/\d+#*))(?=[()\s;"]|$)/i);function y(e){return e.match(x)}function w(e){return e.match(b)}function E(e,t){if(t===true){e.backUp(1)}return e.match(k)}function S(e){return e.match(v)}function q(e,t){var n,a=false;while((n=e.next())!=null){if(n==t.token&&!a){t.state.mode=false;break}a=!a&&n=="\\"}}const C={name:"scheme",startState:function(){return{indentStack:null,indentation:0,mode:false,sExprComment:false,sExprQuote:false}},token:function(e,t){if(t.indentStack==null&&e.sol()){t.indentation=e.indentation()}if(e.eatSpace()){return null}var n=null;switch(t.mode){case"string":q(e,{token:'"',state:t});n=r;break;case"symbol":q(e,{token:"|",state:t});n=s;break;case"comment":var f,m=false;while((f=e.next())!=null){if(f=="#"&&m){t.mode=false;break}m=f=="|"}n=i;break;case"s-expr-comment":t.mode=false;if(e.peek()=="("||e.peek()=="["){t.sExprComment=0}else{e.eatWhile(/[^\s\(\)\[\]]/);n=i;break}default:var x=e.next();if(x=='"'){t.mode="string";n=r}else if(x=="'"){if(e.peek()=="("||e.peek()=="["){if(typeof t.sExprQuote!="number"){t.sExprQuote=0}n=l}else{e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/);n=l}}else if(x=="|"){t.mode="symbol";n=s}else if(x=="#"){if(e.eat("|")){t.mode="comment";n=i}else if(e.eat(/[tf]/i)){n=l}else if(e.eat(";")){t.mode="s-expr-comment";n=i}else{var b=null,v=false,k=true;if(e.eat(/[ei]/i)){v=true}else{e.backUp(1)}if(e.match(/^#b/i)){b=y}else if(e.match(/^#o/i)){b=w}else if(e.match(/^#x/i)){b=S}else if(e.match(/^#d/i)){b=E}else if(e.match(/^[-+0-9.]/,false)){k=false;b=E}else if(!v){e.eat("#")}if(b!=null){if(k&&!v){e.match(/^#[ei]/i)}if(b(e))n=c}}}else if(/^[-+0-9.]/.test(x)&&E(e,true)){n=c}else if(x==";"){e.skipToEnd();n=i}else if(x=="("||x=="["){var C="";var Q=e.column(),_;while((_=e.eat(/[^\s\(\[\;\)\]]/))!=null){C+=_}if(C.length>0&&p.propertyIsEnumerable(C)){h(t,Q+d,x)}else{e.eatSpace();if(e.eol()||e.peek()==";"){h(t,Q+1,x)}else{h(t,Q+e.current().length,x)}}e.backUp(e.current().length-1);if(typeof t.sExprComment=="number")t.sExprComment++;if(typeof t.sExprQuote=="number")t.sExprQuote++;n=o}else if(x==")"||x=="]"){n=o;if(t.indentStack!=null&&t.indentStack.type==(x==")"?"(":"[")){g(t);if(typeof t.sExprComment=="number"){if(--t.sExprComment==0){n=i;t.sExprComment=false}}if(typeof t.sExprQuote=="number"){if(--t.sExprQuote==0){n=l;t.sExprQuote=false}}}}else{e.eatWhile(/[\w_\-!$%&*+\.\/:<=>?@\^~]/);if(u&&u.propertyIsEnumerable(e.current())){n=a}else n="variable"}}return typeof t.sExprComment=="number"?i:typeof t.sExprQuote=="number"?l:n},indent:function(e){if(e.indentStack==null)return e.indentation;return e.indentStack.indent},languageData:{closeBrackets:{brackets:["(","[","{",'"']},commentTokens:{line:";;"}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/1cb1c39ea642f26a4dfe.woff b/bootcamp/share/jupyter/lab/static/1cb1c39ea642f26a4dfe.woff new file mode 100644 index 0000000..c28398e Binary files /dev/null and b/bootcamp/share/jupyter/lab/static/1cb1c39ea642f26a4dfe.woff differ diff --git a/bootcamp/share/jupyter/lab/static/2039.aa079dac5c520f93b234.js b/bootcamp/share/jupyter/lab/static/2039.aa079dac5c520f93b234.js new file mode 100644 index 0000000..28f6df6 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/2039.aa079dac5c520f93b234.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2039],{72039:(e,t,i)=>{i.r(t);i.d(t,{textile:()=>m});var n={addition:"inserted",attributes:"propertyName",bold:"strong",cite:"keyword",code:"monospace",definitionList:"list",deletion:"deleted",div:"punctuation",em:"emphasis",footnote:"variable",footCite:"qualifier",header:"heading",html:"comment",image:"atom",italic:"emphasis",link:"link",linkDefinition:"link",list1:"list",list2:"list.special",list3:"list",notextile:"string.special",pre:"operator",p:"content",quote:"bracket",span:"quote",specialChar:"character",strong:"strong",sub:"content.special",sup:"content.special",table:"variableName.special",tableHeading:"operator"};function a(e,t){t.mode=d.newLayout;t.tableHeading=false;if(t.layoutType==="definitionList"&&t.spanningLayout&&e.match(p("definitionListEnd"),false))t.spanningLayout=false}function r(e,t,i){if(i==="_"){if(e.eat("_"))return l(e,t,"italic",/__/,2);else return l(e,t,"em",/_/,1)}if(i==="*"){if(e.eat("*")){return l(e,t,"bold",/\*\*/,2)}return l(e,t,"strong",/\*/,1)}if(i==="["){if(e.match(/\d+\]/))t.footCite=true;return s(t)}if(i==="("){var a=e.match(/^(r|tm|c)\)/);if(a)return n.specialChar}if(i==="<"&&e.match(/(\w+)[^>]+>[^<]+<\/\1>/))return n.html;if(i==="?"&&e.eat("?"))return l(e,t,"cite",/\?\?/,2);if(i==="="&&e.eat("="))return l(e,t,"notextile",/==/,2);if(i==="-"&&!e.eat("-"))return l(e,t,"deletion",/-/,1);if(i==="+")return l(e,t,"addition",/\+/,1);if(i==="~")return l(e,t,"sub",/~/,1);if(i==="^")return l(e,t,"sup",/\^/,1);if(i==="%")return l(e,t,"span",/%/,1);if(i==="@")return l(e,t,"code",/@/,1);if(i==="!"){var r=l(e,t,"image",/(?:\([^\)]+\))?!/,1);e.match(/^:\S+/);return r}return s(t)}function l(e,t,i,n,a){var r=e.pos>a?e.string.charAt(e.pos-a-1):null;var l=e.peek();if(t[i]){if((!l||/\W/.test(l))&&r&&/\S/.test(r)){var o=s(t);t[i]=false;return o}}else if((!r||/\W/.test(r))&&l&&/\S/.test(l)&&e.match(new RegExp("^.*\\S"+n.source+"(?:\\W|$)"),false)){t[i]=true;t.mode=d.attributes}return s(t)}function s(e){var t=o(e);if(t)return t;var i=[];if(e.layoutType)i.push(n[e.layoutType]);i=i.concat(u(e,"addition","bold","cite","code","deletion","em","footCite","image","italic","link","span","strong","sub","sup","table","tableHeading"));if(e.layoutType==="header")i.push(n.header+"-"+e.header);return i.length?i.join(" "):null}function o(e){var t=e.layoutType;switch(t){case"notextile":case"code":case"pre":return n[t];default:if(e.notextile)return n.notextile+(t?" "+n[t]:"");return null}}function u(e){var t=[];for(var i=1;i]+)?>(?:[^<]+<\/\1>)?/,link:/[^"]+":\S/,linkDefinition:/\[[^\s\]]+\]\S+/,list:/(?:#+|\*+)/,notextile:"notextile",para:"p",pre:"pre",table:"table",tableCellAttributes:/[\/\\]\d+/,tableHeading:/\|_\./,tableText:/[^"_\*\[\(\?\+~\^%@|-]+/,text:/[^!"_=\*\[\(<\?\+~\^%@-]+/},attributes:{align:/(?:<>|<|>|=)/,selector:/\([^\(][^\)]+\)/,lang:/\[[^\[\]]+\]/,pad:/(?:\(+|\)+){1,2}/,css:/\{[^\}]+\}/},createRe:function(e){switch(e){case"drawTable":return f.makeRe("^",f.single.drawTable,"$");case"html":return f.makeRe("^",f.single.html,"(?:",f.single.html,")*","$");case"linkDefinition":return f.makeRe("^",f.single.linkDefinition,"$");case"listLayout":return f.makeRe("^",f.single.list,p("allAttributes"),"*\\s+");case"tableCellAttributes":return f.makeRe("^",f.choiceRe(f.single.tableCellAttributes,p("allAttributes")),"+\\.");case"type":return f.makeRe("^",p("allTypes"));case"typeLayout":return f.makeRe("^",p("allTypes"),p("allAttributes"),"*\\.\\.?","(\\s+|$)");case"attributes":return f.makeRe("^",p("allAttributes"),"+");case"allTypes":return f.choiceRe(f.single.div,f.single.foot,f.single.header,f.single.bc,f.single.bq,f.single.notextile,f.single.pre,f.single.table,f.single.para);case"allAttributes":return f.choiceRe(f.attributes.selector,f.attributes.css,f.attributes.lang,f.attributes.align,f.attributes.pad);default:return f.makeRe("^",f.single[e])}},makeRe:function(){var e="";for(var t=0;t{a.r(t);a.d(t,{yaml:()=>n});var i=["true","false","on","off","yes","no"];var r=new RegExp("\\b(("+i.join(")|(")+"))$","i");const n={name:"yaml",token:function(e,t){var a=e.peek();var i=t.escaped;t.escaped=false;if(a=="#"&&(e.pos==0||/\s/.test(e.string.charAt(e.pos-1)))){e.skipToEnd();return"comment"}if(e.match(/^('([^']|\\.)*'?|"([^"]|\\.)*"?)/))return"string";if(t.literal&&e.indentation()>t.keyCol){e.skipToEnd();return"string"}else if(t.literal){t.literal=false}if(e.sol()){t.keyCol=0;t.pair=false;t.pairStart=false;if(e.match("---")){return"def"}if(e.match("...")){return"def"}if(e.match(/^\s*-\s+/)){return"meta"}}if(e.match(/^(\{|\}|\[|\])/)){if(a=="{")t.inlinePairs++;else if(a=="}")t.inlinePairs--;else if(a=="[")t.inlineList++;else t.inlineList--;return"meta"}if(t.inlineList>0&&!i&&a==","){e.next();return"meta"}if(t.inlinePairs>0&&!i&&a==","){t.keyCol=0;t.pair=false;t.pairStart=false;e.next();return"meta"}if(t.pairStart){if(e.match(/^\s*(\||\>)\s*/)){t.literal=true;return"meta"}if(e.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i)){return"variable"}if(t.inlinePairs==0&&e.match(/^\s*-?[0-9\.\,]+\s?$/)){return"number"}if(t.inlinePairs>0&&e.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/)){return"number"}if(e.match(r)){return"keyword"}}if(!t.pair&&e.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)){t.pair=true;t.keyCol=e.indentation();return"atom"}if(t.pair&&e.match(/^:\s*/)){t.pairStart=true;return"meta"}t.pairStart=false;t.escaped=a=="\\";e.next();return null},startState:function(){return{pair:false,pairStart:false,keyCol:0,inlinePairs:0,inlineList:0,literal:false,escaped:false}},languageData:{commentTokens:{line:"#"}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/2091.600b1c32af186f6405f9.js b/bootcamp/share/jupyter/lab/static/2091.600b1c32af186f6405f9.js new file mode 100644 index 0000000..e03343d --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/2091.600b1c32af186f6405f9.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2091],{62091:(O,Q,a)=>{a.r(Q);a.d(Q,{autoCloseTags:()=>$O,completionPath:()=>J,esLint:()=>tO,javascript:()=>OO,javascriptLanguage:()=>D,jsxLanguage:()=>K,localCompletionSource:()=>E,scopeCompletionSource:()=>N,snippets:()=>k,tsxLanguage:()=>M,typescriptLanguage:()=>H});var e=a(11705);var i=a(6016);const $=301,t=1,r=2,S=302,n=304,P=305,Z=3,o=4;const l=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];const X=125,c=59,s=47,p=42,g=43,Y=45;const b=new e.IK({start:false,shift(O,Q){return Q==Z||Q==o||Q==n?O:Q==P},strict:false});const h=new e.Jq(((O,Q)=>{let{next:a}=O;if((a==X||a==-1||Q.context)&&Q.canShift(S))O.acceptToken(S)}),{contextual:true,fallback:true});const W=new e.Jq(((O,Q)=>{let{next:a}=O,e;if(l.indexOf(a)>-1)return;if(a==s&&((e=O.peek(1))==s||e==p))return;if(a!=X&&a!=c&&a!=-1&&!Q.context&&Q.canShift($))O.acceptToken($)}),{contextual:true});const U=new e.Jq(((O,Q)=>{let{next:a}=O;if(a==g||a==Y){O.advance();if(a==O.next){O.advance();let a=!Q.context&&Q.canShift(t);O.acceptToken(a?t:r)}}}),{contextual:true});const f=(0,i.styleTags)({"get set async static":i.tags.modifier,"for while do if else switch try catch finally return throw break continue default case":i.tags.controlKeyword,"in of await yield void typeof delete instanceof":i.tags.operatorKeyword,"let var const function class extends":i.tags.definitionKeyword,"import export from":i.tags.moduleKeyword,"with debugger as new":i.tags.keyword,TemplateString:i.tags.special(i.tags.string),super:i.tags.atom,BooleanLiteral:i.tags.bool,this:i.tags.self,null:i.tags["null"],Star:i.tags.modifier,VariableName:i.tags.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":i.tags["function"](i.tags.variableName),VariableDefinition:i.tags.definition(i.tags.variableName),Label:i.tags.labelName,PropertyName:i.tags.propertyName,PrivatePropertyName:i.tags.special(i.tags.propertyName),"CallExpression/MemberExpression/PropertyName":i.tags["function"](i.tags.propertyName),"FunctionDeclaration/VariableDefinition":i.tags["function"](i.tags.definition(i.tags.variableName)),"ClassDeclaration/VariableDefinition":i.tags.definition(i.tags.className),PropertyDefinition:i.tags.definition(i.tags.propertyName),PrivatePropertyDefinition:i.tags.definition(i.tags.special(i.tags.propertyName)),UpdateOp:i.tags.updateOperator,LineComment:i.tags.lineComment,BlockComment:i.tags.blockComment,Number:i.tags.number,String:i.tags.string,Escape:i.tags.escape,ArithOp:i.tags.arithmeticOperator,LogicOp:i.tags.logicOperator,BitOp:i.tags.bitwiseOperator,CompareOp:i.tags.compareOperator,RegExp:i.tags.regexp,Equals:i.tags.definitionOperator,Arrow:i.tags["function"](i.tags.punctuation),": Spread":i.tags.punctuation,"( )":i.tags.paren,"[ ]":i.tags.squareBracket,"{ }":i.tags.brace,"InterpolationStart InterpolationEnd":i.tags.special(i.tags.brace),".":i.tags.derefOperator,", ;":i.tags.separator,"@":i.tags.meta,TypeName:i.tags.typeName,TypeDefinition:i.tags.definition(i.tags.typeName),"type enum interface implements namespace module declare":i.tags.definitionKeyword,"abstract global Privacy readonly override":i.tags.modifier,"is keyof unique infer":i.tags.operatorKeyword,JSXAttributeValue:i.tags.attributeValue,JSXText:i.tags.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":i.tags.angleBracket,"JSXIdentifier JSXNameSpacedName":i.tags.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":i.tags.attributeName,"JSXBuiltin/JSXIdentifier":i.tags.standard(i.tags.tagName)});const u={__proto__:null,export:14,as:19,from:27,default:30,async:35,function:36,extends:46,this:50,true:58,false:58,null:70,void:74,typeof:78,super:96,new:130,delete:146,yield:155,await:159,class:164,public:219,private:219,protected:219,readonly:221,instanceof:240,satisfies:243,in:244,const:246,import:278,keyof:333,unique:337,infer:343,is:379,abstract:399,implements:401,type:403,let:406,var:408,interface:415,enum:419,namespace:425,module:427,declare:431,global:435,for:456,of:465,while:468,with:472,do:476,if:480,else:482,switch:486,case:492,try:498,catch:502,finally:506,return:510,throw:514,break:518,continue:522,debugger:526};const m={__proto__:null,async:117,get:119,set:121,public:181,private:181,protected:181,static:183,abstract:185,override:187,readonly:193,accessor:195,new:383};const y={__proto__:null,"<":137};const x=e.WQ.deserialize({version:14,states:"$BhO`QUOOO%QQUOOO'TQWOOP(_OSOOO*mQ(CjO'#CfO*tOpO'#CgO+SO!bO'#CgO+bO07`O'#DZO-sQUO'#DaO.TQUO'#DlO%QQUO'#DvO0[QUO'#EOOOQ(CY'#EW'#EWO0rQSO'#ETOOQO'#I_'#I_O0zQSO'#GjOOQO'#Eh'#EhO1VQSO'#EgO1[QSO'#EgO3^Q(CjO'#JbO5}Q(CjO'#JcO6kQSO'#FVO6pQ#tO'#FnOOQ(CY'#F_'#F_O6{O&jO'#F_O7ZQ,UO'#FuO8qQSO'#FtOOQ(CY'#Jc'#JcOOQ(CW'#Jb'#JbOOQQ'#J|'#J|O8vQSO'#IOO8{Q(C[O'#IPOOQQ'#JO'#JOOOQQ'#IT'#ITQ`QUOOO%QQUO'#DnO9TQUO'#DzO%QQUO'#D|O9[QSO'#GjO9aQ,UO'#ClO9oQSO'#EfO9zQSO'#EqO:PQ,UO'#F^O:nQSO'#GjO:sQSO'#GnO;OQSO'#GnO;^QSO'#GqO;^QSO'#GrO;^QSO'#GtO9[QSO'#GwO;}QSO'#GzO=`QSO'#CbO=pQSO'#HXO=xQSO'#H_O=xQSO'#HaO`QUO'#HcO=xQSO'#HeO=xQSO'#HhO=}QSO'#HnO>SQ(C]O'#HtO%QQUO'#HvO>_Q(C]O'#HxO>jQ(C]O'#HzO8{Q(C[O'#H|O>uQ(CjO'#CfO?wQWO'#DfQOQSOOO@_QSO'#EPO9aQ,UO'#EfO@jQSO'#EfO@uQ`O'#F^OOQQ'#Cd'#CdOOQ(CW'#Dk'#DkOOQ(CW'#Jf'#JfO%QQUO'#JfOBOQWO'#E_OOQ(CW'#E^'#E^OBYQ(C`O'#E_OBtQWO'#ESOOQO'#Ji'#JiOCYQWO'#ESOCgQWO'#E_OC}QWO'#EeODQQWO'#E_O@}QWO'#E_OBtQWO'#E_PDkO?MpO'#C`POOO)CDm)CDmOOOO'#IU'#IUODvOpO,59ROOQ(CY,59R,59ROOOO'#IV'#IVOEUO!bO,59RO%QQUO'#D]OOOO'#IX'#IXOEdO07`O,59uOOQ(CY,59u,59uOErQUO'#IYOFVQSO'#JdOHXQbO'#JdO+pQUO'#JdOH`QSO,59{OHvQSO'#EhOITQSO'#JqOI`QSO'#JpOI`QSO'#JpOIhQSO,5;UOImQSO'#JoOOQ(CY,5:W,5:WOItQUO,5:WOKuQ(CjO,5:bOLfQSO,5:jOLkQSO'#JmOMeQ(C[O'#JnO:sQSO'#JmOMlQSO'#JmOMtQSO,5;TOMyQSO'#JmOOQ(CY'#Cf'#CfO%QQUO'#EOONmQ`O,5:oOOQO'#Jj'#JjOOQO-E<]-E<]O9[QSO,5=UO! TQSO,5=UO! YQUO,5;RO!#]Q,UO'#EcO!$pQSO,5;RO!&YQ,UO'#DpO!&aQUO'#DuO!&kQWO,5;[O!&sQWO,5;[O%QQUO,5;[OOQQ'#E}'#E}OOQQ'#FP'#FPO%QQUO,5;]O%QQUO,5;]O%QQUO,5;]O%QQUO,5;]O%QQUO,5;]O%QQUO,5;]O%QQUO,5;]O%QQUO,5;]O%QQUO,5;]O%QQUO,5;]O%QQUO,5;]OOQQ'#FT'#FTO!'RQUO,5;nOOQ(CY,5;s,5;sOOQ(CY,5;t,5;tO!)UQSO,5;tOOQ(CY,5;u,5;uO%QQUO'#IeO!)^Q(C[O,5jOOQQ'#JW'#JWOOQQ,5>k,5>kOOQQ-EgQWO'#EkOOQ(CW'#Jo'#JoO!>nQ(C[O'#J}O8{Q(C[O,5=YO;^QSO,5=`OOQO'#Cr'#CrO!>yQWO,5=]O!?RQ,UO,5=^O!?^QSO,5=`O!?cQ`O,5=cO=}QSO'#G|O9[QSO'#HOO!?kQSO'#HOO9aQ,UO'#HRO!?pQSO'#HROOQQ,5=f,5=fO!?uQSO'#HSO!?}QSO'#ClO!@SQSO,58|O!@^QSO,58|O!BfQUO,58|OOQQ,58|,58|O!BsQ(C[O,58|O%QQUO,58|O!COQUO'#HZOOQQ'#H['#H[OOQQ'#H]'#H]O`QUO,5=sO!C`QSO,5=sO`QUO,5=yO`QUO,5={O!CeQSO,5=}O`QUO,5>PO!CjQSO,5>SO!CoQUO,5>YOOQQ,5>`,5>`O%QQUO,5>`O8{Q(C[O,5>bOOQQ,5>d,5>dO!GvQSO,5>dOOQQ,5>f,5>fO!GvQSO,5>fOOQQ,5>h,5>hO!G{QWO'#DXO%QQUO'#JfO!HjQWO'#JfO!IXQWO'#DgO!IjQWO'#DgO!K{QUO'#DgO!LSQSO'#JeO!L[QSO,5:QO!LaQSO'#ElO!LoQSO'#JrO!LwQSO,5;VO!L|QWO'#DgO!MZQWO'#EROOQ(CY,5:k,5:kO%QQUO,5:kO!MbQSO,5:kO=}QSO,5;QO!;xQWO,5;QO!tO+pQUO,5>tOOQO,5>z,5>zO#$vQUO'#IYOOQO-EtO$8XQSO1G5jO$8aQSO1G5vO$8iQbO1G5wO:sQSO,5>zO$8sQSO1G5sO$8sQSO1G5sO:sQSO1G5sO$8{Q(CjO1G5tO%QQUO1G5tO$9]Q(C[O1G5tO$9nQSO,5>|O:sQSO,5>|OOQO,5>|,5>|O$:SQSO,5>|OOQO-E<`-E<`OOQO1G0]1G0]OOQO1G0_1G0_O!)XQSO1G0_OOQQ7+([7+([O!#]Q,UO7+([O%QQUO7+([O$:bQSO7+([O$:mQ,UO7+([O$:{Q(CjO,59nO$=TQ(CjO,5UOOQQ,5>U,5>UO%QQUO'#HkO%&qQSO'#HmOOQQ,5>[,5>[O:sQSO,5>[OOQQ,5>^,5>^OOQQ7+)`7+)`OOQQ7+)f7+)fOOQQ7+)j7+)jOOQQ7+)l7+)lO%&vQWO1G5lO%'[Q$IUO1G0rO%'fQSO1G0rOOQO1G/m1G/mO%'qQ$IUO1G/mO=}QSO1G/mO!'RQUO'#DgOOQO,5>u,5>uOOQO-E{,5>{OOQO-E<_-E<_O!;xQWO1G/mOOQO-E<[-E<[OOQ(CY1G0X1G0XOOQ(CY7+%q7+%qO!MeQSO7+%qOOQ(CY7+&W7+&WO=}QSO7+&WO!;xQWO7+&WOOQO7+%t7+%tO$7kQ(CjO7+&POOQO7+&P7+&PO%QQUO7+&PO%'{Q(C[O7+&PO=}QSO7+%tO!;xQWO7+%tO%(WQ(C[O7+&POBtQWO7+%tO%(fQ(C[O7+&PO%(zQ(C`O7+&PO%)UQWO7+%tOBtQWO7+&PO%)cQWO7+&PO%)yQSO7++_O%)yQSO7++_O%*RQ(CjO7++`O%QQUO7++`OOQO1G4h1G4hO:sQSO1G4hO%*cQSO1G4hOOQO7+%y7+%yO!MeQSO<vOOQO-EwO%QQUO,5>wOOQO-ESQ$IUO1G0wO%>ZQ$IUO1G0wO%@RQ$IUO1G0wO%@fQ(CjO<VOOQQ,5>X,5>XO&#WQSO1G3vO:sQSO7+&^O!'RQUO7+&^OOQO7+%X7+%XO&#]Q$IUO1G5wO=}QSO7+%XOOQ(CY<zAN>zO%QQUOAN?VO=}QSOAN>zO&<^Q(C[OAN?VO!;xQWOAN>zO&zO&RO!V+iO^(qX'j(qX~O#W+mO'|%OO~Og+pO!X$yO'|%OO~O!X+rO~Oy+tO!XXO~O!t+yO~Ob,OO~O's#jO!W(sP~Ob%lO~O%a!OO's%|O~PRO!V,yO!W(fa~O!W2SO~P'TO^%^O#W2]O'j%^O~O^%^O!a#rO#W2]O'j%^O~O^%^O!a#rO!h%ZO!l2aO#W2]O'j%^O'|%OO(`'dO~O!]2bO!^2bO't!iO~PBtO![2eO!]2bO!^2bO#S2fO#T2fO't!iO~PBtO![2eO!]2bO!^2bO#P2gO#S2fO#T2fO't!iO~PBtO^%^O!a#rO!l2aO#W2]O'j%^O(`'dO~O^%^O'j%^O~P!3jO!V$^Oo$ja~O!S&|i!V&|i~P!3jO!V'xO!S(Wi~O!V(PO!S(di~O!S(ei!V(ei~P!3jO!V(]O!g(ai~O!V(bi!g(bi^(bi'j(bi~P!3jO#W2kO!V(bi!g(bi^(bi'j(bi~O|%vO!X%wO!x]O#a2nO#b2mO's%eO~O|%vO!X%wO#b2mO's%eO~Og2uO!X'QO%`2tO~Og2uO!X'QO%`2tO'|%OO~O#cvaPvaXva^vakva!eva!fva!hva!lva#fva#gva#hva#iva#jva#kva#lva#mva#nva#pva#rva#tva#uva'jva(Qva(`va!gva!Sva'hvaova!Xva%`va!ava~P#M{O#c$kaP$kaX$ka^$kak$kaz$ka!e$ka!f$ka!h$ka!l$ka#f$ka#g$ka#h$ka#i$ka#j$ka#k$ka#l$ka#m$ka#n$ka#p$ka#r$ka#t$ka#u$ka'j$ka(Q$ka(`$ka!g$ka!S$ka'h$kao$ka!X$ka%`$ka!a$ka~P#NqO#c$maP$maX$ma^$mak$maz$ma!e$ma!f$ma!h$ma!l$ma#f$ma#g$ma#h$ma#i$ma#j$ma#k$ma#l$ma#m$ma#n$ma#p$ma#r$ma#t$ma#u$ma'j$ma(Q$ma(`$ma!g$ma!S$ma'h$mao$ma!X$ma%`$ma!a$ma~P$ dO#c${aP${aX${a^${ak${az${a!V${a!e${a!f${a!h${a!l${a#f${a#g${a#h${a#i${a#j${a#k${a#l${a#m${a#n${a#p${a#r${a#t${a#u${a'j${a(Q${a(`${a!g${a!S${a'h${a#W${ao${a!X${a%`${a!a${a~P#(yO^#Zq!V#Zq'j#Zq'h#Zq!S#Zq!g#Zqo#Zq!X#Zq%`#Zq!a#Zq~P!3jOd'OX!V'OX~P!$uO!V._Od(Za~O!U2}O!V'PX!g'PX~P%QO!V.bO!g([a~O!V.bO!g([a~P!3jO!S3QO~O#x!ja!W!ja~PI{O#x!ba!V!ba!W!ba~P#?dO#x!na!W!na~P!6TO#x!pa!W!pa~P!8nO!X3dO$TfO$^3eO~O!W3iO~Oo3jO~P#(yO^$gq!V$gq'j$gq'h$gq!S$gq!g$gqo$gq!X$gq%`$gq!a$gq~P!3jO!S3kO~Ol.}O'uTO'xUO~Oy)sO|)tO(h)xOg%Wi(g%Wi!V%Wi#W%Wi~Od%Wi#x%Wi~P$HbOy)sO|)tOg%Yi(g%Yi(h%Yi!V%Yi#W%Yi~Od%Yi#x%Yi~P$ITO(`$WO~P#(yO!U3nO's%eO!V'YX!g'YX~O!V/VO!g(ma~O!V/VO!a#rO!g(ma~O!V/VO!a#rO(`'dO!g(ma~Od$ti!V$ti#W$ti#x$ti~P!-jO!U3vO's*UO!S'[X!V'[X~P!.XO!V/_O!S(na~O!V/_O!S(na~P#(yO!a#rO~O!a#rO#n4OO~Ok4RO!a#rO(`'dO~Od(Oi!V(Oi~P!-jO#W4UOd(Oi!V(Oi~P!-jO!g4XO~O^$hq!V$hq'j$hq'h$hq!S$hq!g$hqo$hq!X$hq%`$hq!a$hq~P!3jO!V4]O!X(oX~P#(yO!f#tO~P3zO!X$rX%TYX^$rX!V$rX'j$rX~P!,aO%T4_OghXyhX|hX!XhX(ghX(hhX^hX!VhX'jhX~O%T4_O~O%a4fO's+WO'uTO'xUO!V'eX!W'eX~O!V0_O!W(ua~OX4jO~O]4kO~O!S4oO~O^%^O'j%^O~P#(yO!X$yO~P#(yO!V4tO#W4vO!W(rX~O!W4wO~Ol!kO|4yO![5WO!]4}O!^4}O!x;oO!|5VO!}5UO#O5UO#P5TO#S5SO#T!wO't!iO'uTO'xUO(T!jO(_!nO~O!W5RO~P%#XOg5]O!X0zO%`5[O~Og5]O!X0zO%`5[O'|%OO~O's#jO!V'dX!W'dX~O!V1VO!W(sa~O'uTO'xUO(T5fO~O]5jO~O!g5mO~P%QO^5oO~O^5oO~P%QO#n5qO&Q5rO~PMPO_1mO!W5vO&`1lO~P`O!a5xO~O!a5zO!V(Yi!W(Yi!a(Yi!h(Yi'|(Yi~O!V#`i!W#`i~P#?dO#W5{O!V#`i!W#`i~O!V!Zi!W!Zi~P#?dO^%^O#W6UO'j%^O~O^%^O!a#rO#W6UO'j%^O~O^%^O!a#rO!l6ZO#W6UO'j%^O(`'dO~O!h%ZO'|%OO~P%(fO!]6[O!^6[O't!iO~PBtO![6_O!]6[O!^6[O#S6`O#T6`O't!iO~PBtO!V(]O!g(aq~O!V(bq!g(bq^(bq'j(bq~P!3jO|%vO!X%wO#b6dO's%eO~O!X'QO%`6gO~Og6jO!X'QO%`6gO~O#c%WiP%WiX%Wi^%Wik%Wiz%Wi!e%Wi!f%Wi!h%Wi!l%Wi#f%Wi#g%Wi#h%Wi#i%Wi#j%Wi#k%Wi#l%Wi#m%Wi#n%Wi#p%Wi#r%Wi#t%Wi#u%Wi'j%Wi(Q%Wi(`%Wi!g%Wi!S%Wi'h%Wio%Wi!X%Wi%`%Wi!a%Wi~P$HbO#c%YiP%YiX%Yi^%Yik%Yiz%Yi!e%Yi!f%Yi!h%Yi!l%Yi#f%Yi#g%Yi#h%Yi#i%Yi#j%Yi#k%Yi#l%Yi#m%Yi#n%Yi#p%Yi#r%Yi#t%Yi#u%Yi'j%Yi(Q%Yi(`%Yi!g%Yi!S%Yi'h%Yio%Yi!X%Yi%`%Yi!a%Yi~P$ITO#c$tiP$tiX$ti^$tik$tiz$ti!V$ti!e$ti!f$ti!h$ti!l$ti#f$ti#g$ti#h$ti#i$ti#j$ti#k$ti#l$ti#m$ti#n$ti#p$ti#r$ti#t$ti#u$ti'j$ti(Q$ti(`$ti!g$ti!S$ti'h$ti#W$tio$ti!X$ti%`$ti!a$ti~P#(yOd'Oa!V'Oa~P!-jO!V'Pa!g'Pa~P!3jO!V.bO!g([i~O#x#Zi!V#Zi!W#Zi~P#?dOP$YOy#vOz#wO|#xO!f#tO!h#uO!l$YO(QVOX#eik#ei!e#ei#g#ei#h#ei#i#ei#j#ei#k#ei#l#ei#m#ei#n#ei#p#ei#r#ei#t#ei#u#ei#x#ei(`#ei(g#ei(h#ei!V#ei!W#ei~O#f#ei~P%2xO#f;wO~P%2xOP$YOy#vOz#wO|#xO!f#tO!h#uO!l$YO#f;wO#g;xO#h;xO#i;xO(QVOX#ei!e#ei#j#ei#k#ei#l#ei#m#ei#n#ei#p#ei#r#ei#t#ei#u#ei#x#ei(`#ei(g#ei(h#ei!V#ei!W#ei~Ok#ei~P%5TOk;yO~P%5TOP$YOk;yOy#vOz#wO|#xO!f#tO!h#uO!l$YO#f;wO#g;xO#h;xO#i;xO#j;zO(QVO#p#ei#r#ei#t#ei#u#ei#x#ei(`#ei(g#ei(h#ei!V#ei!W#ei~OX#ei!e#ei#k#ei#l#ei#m#ei#n#ei~P%7`OXbO^#vy!V#vy'j#vy'h#vy!S#vy!g#vyo#vy!X#vy%`#vy!a#vy~P!3jOg=jOy)sO|)tO(g)vO(h)xO~OP#eiX#eik#eiz#ei!e#ei!f#ei!h#ei!l#ei#f#ei#g#ei#h#ei#i#ei#j#ei#k#ei#l#ei#m#ei#n#ei#p#ei#r#ei#t#ei#u#ei#x#ei(Q#ei(`#ei!V#ei!W#ei~P%AYO!f#tOP(PXX(PXg(PXk(PXy(PXz(PX|(PX!e(PX!h(PX!l(PX#f(PX#g(PX#h(PX#i(PX#j(PX#k(PX#l(PX#m(PX#n(PX#p(PX#r(PX#t(PX#u(PX#x(PX(Q(PX(`(PX(g(PX(h(PX!V(PX!W(PX~O#x#yi!V#yi!W#yi~P#?dO#x!ni!W!ni~P$!qO!W6vO~O!V'Xa!W'Xa~P#?dO!a#rO(`'dO!V'Ya!g'Ya~O!V/VO!g(mi~O!V/VO!a#rO!g(mi~Od$tq!V$tq#W$tq#x$tq~P!-jO!S'[a!V'[a~P#(yO!a6}O~O!V/_O!S(ni~P#(yO!V/_O!S(ni~O!S7RO~O!a#rO#n7WO~Ok7XO!a#rO(`'dO~O!S7ZO~Od$vq!V$vq#W$vq#x$vq~P!-jO^$hy!V$hy'j$hy'h$hy!S$hy!g$hyo$hy!X$hy%`$hy!a$hy~P!3jO!V4]O!X(oa~O^#Zy!V#Zy'j#Zy'h#Zy!S#Zy!g#Zyo#Zy!X#Zy%`#Zy!a#Zy~P!3jOX7`O~O!V0_O!W(ui~O]7fO~O!a5zO~O(T(qO!V'aX!W'aX~O!V4tO!W(ra~O!h%ZO'|%OO^(YX!a(YX!l(YX#W(YX'j(YX(`(YX~O's7oO~P.[O!x;oO!|7rO!}7qO#O7qO#P7pO#S'bO#T'bO~PBtO^%^O!a#rO!l'hO#W'fO'j%^O(`'dO~O!W7vO~P%#XOl!kO'uTO'xUO(T!jO(_!nO~O|7wO~P%MdO![7{O!]7zO!^7zO#P7pO#S'bO#T'bO't!iO~PBtO![7{O!]7zO!^7zO!}7|O#O7|O#P7pO#S'bO#T'bO't!iO~PBtO!]7zO!^7zO't!iO(T!jO(_!nO~O!X0zO~O!X0zO%`8OO~Og8RO!X0zO%`8OO~OX8WO!V'da!W'da~O!V1VO!W(si~O!g8[O~O!g8]O~O!g8^O~O!g8^O~P%QO^8`O~O!a8cO~O!g8dO~O!V(ei!W(ei~P#?dO^%^O#W8lO'j%^O~O^%^O!a#rO#W8lO'j%^O~O^%^O!a#rO!l8pO#W8lO'j%^O(`'dO~O!h%ZO'|%OO~P&$QO!]8qO!^8qO't!iO~PBtO!V(]O!g(ay~O!V(by!g(by^(by'j(by~P!3jO!X'QO%`8uO~O#c$tqP$tqX$tq^$tqk$tqz$tq!V$tq!e$tq!f$tq!h$tq!l$tq#f$tq#g$tq#h$tq#i$tq#j$tq#k$tq#l$tq#m$tq#n$tq#p$tq#r$tq#t$tq#u$tq'j$tq(Q$tq(`$tq!g$tq!S$tq'h$tq#W$tqo$tq!X$tq%`$tq!a$tq~P#(yO#c$vqP$vqX$vq^$vqk$vqz$vq!V$vq!e$vq!f$vq!h$vq!l$vq#f$vq#g$vq#h$vq#i$vq#j$vq#k$vq#l$vq#m$vq#n$vq#p$vq#r$vq#t$vq#u$vq'j$vq(Q$vq(`$vq!g$vq!S$vq'h$vq#W$vqo$vq!X$vq%`$vq!a$vq~P#(yO!V'Pi!g'Pi~P!3jO#x#Zq!V#Zq!W#Zq~P#?dOy/yOz/yO|/zOPvaXvagvakva!eva!fva!hva!lva#fva#gva#hva#iva#jva#kva#lva#mva#nva#pva#rva#tva#uva#xva(Qva(`va(gva(hva!Vva!Wva~Oy)sO|)tOP$kaX$kag$kak$kaz$ka!e$ka!f$ka!h$ka!l$ka#f$ka#g$ka#h$ka#i$ka#j$ka#k$ka#l$ka#m$ka#n$ka#p$ka#r$ka#t$ka#u$ka#x$ka(Q$ka(`$ka(g$ka(h$ka!V$ka!W$ka~Oy)sO|)tOP$maX$mag$mak$maz$ma!e$ma!f$ma!h$ma!l$ma#f$ma#g$ma#h$ma#i$ma#j$ma#k$ma#l$ma#m$ma#n$ma#p$ma#r$ma#t$ma#u$ma#x$ma(Q$ma(`$ma(g$ma(h$ma!V$ma!W$ma~OP${aX${ak${az${a!e${a!f${a!h${a!l${a#f${a#g${a#h${a#i${a#j${a#k${a#l${a#m${a#n${a#p${a#r${a#t${a#u${a#x${a(Q${a(`${a!V${a!W${a~P%AYO#x$gq!V$gq!W$gq~P#?dO#x$hq!V$hq!W$hq~P#?dO!W9PO~O#x9QO~P!-jO!a#rO!V'Yi!g'Yi~O!a#rO(`'dO!V'Yi!g'Yi~O!V/VO!g(mq~O!S'[i!V'[i~P#(yO!V/_O!S(nq~O!S9WO~P#(yO!S9WO~Od(Oy!V(Oy~P!-jO!V'_a!X'_a~P#(yO!X%Sq^%Sq!V%Sq'j%Sq~P#(yOX9]O~O!V0_O!W(uq~O#W9aO!V'aa!W'aa~O!V4tO!W(ri~P#?dOPYXXYXkYXyYXzYX|YX!SYX!VYX!eYX!fYX!hYX!lYX#WYX#ccX#fYX#gYX#hYX#iYX#jYX#kYX#lYX#mYX#nYX#pYX#rYX#tYX#uYX#zYX(QYX(`YX(gYX(hYX~O!a%QX#n%QX~P&6lO#S-cO#T-cO~PBtO#P9eO#S-cO#T-cO~PBtO!}9fO#O9fO#P9eO#S-cO#T-cO~PBtO!]9iO!^9iO't!iO(T!jO(_!nO~O![9lO!]9iO!^9iO#P9eO#S-cO#T-cO't!iO~PBtO!X0zO%`9oO~O'uTO'xUO(T9tO~O!V1VO!W(sq~O!g9wO~O!g9wO~P%QO!g9yO~O!g9zO~O#W9|O!V#`y!W#`y~O!V#`y!W#`y~P#?dO^%^O#W:QO'j%^O~O^%^O!a#rO#W:QO'j%^O~O^%^O!a#rO!l:UO#W:QO'j%^O(`'dO~O!X'QO%`:XO~O#x#vy!V#vy!W#vy~P#?dOP$tiX$tik$tiz$ti!e$ti!f$ti!h$ti!l$ti#f$ti#g$ti#h$ti#i$ti#j$ti#k$ti#l$ti#m$ti#n$ti#p$ti#r$ti#t$ti#u$ti#x$ti(Q$ti(`$ti!V$ti!W$ti~P%AYOy)sO|)tO(h)xOP%WiX%Wig%Wik%Wiz%Wi!e%Wi!f%Wi!h%Wi!l%Wi#f%Wi#g%Wi#h%Wi#i%Wi#j%Wi#k%Wi#l%Wi#m%Wi#n%Wi#p%Wi#r%Wi#t%Wi#u%Wi#x%Wi(Q%Wi(`%Wi(g%Wi!V%Wi!W%Wi~Oy)sO|)tOP%YiX%Yig%Yik%Yiz%Yi!e%Yi!f%Yi!h%Yi!l%Yi#f%Yi#g%Yi#h%Yi#i%Yi#j%Yi#k%Yi#l%Yi#m%Yi#n%Yi#p%Yi#r%Yi#t%Yi#u%Yi#x%Yi(Q%Yi(`%Yi(g%Yi(h%Yi!V%Yi!W%Yi~O#x$hy!V$hy!W$hy~P#?dO#x#Zy!V#Zy!W#Zy~P#?dO!a#rO!V'Yq!g'Yq~O!V/VO!g(my~O!S'[q!V'[q~P#(yO!S:`O~P#(yO!V0_O!W(uy~O!V4tO!W(rq~O#S2fO#T2fO~PBtO#P:gO#S2fO#T2fO~PBtO!]:kO!^:kO't!iO(T!jO(_!nO~O!X0zO%`:nO~O!g:qO~O^%^O#W:vO'j%^O~O^%^O!a#rO#W:vO'j%^O~O!X'QO%`:{O~OP$tqX$tqk$tqz$tq!e$tq!f$tq!h$tq!l$tq#f$tq#g$tq#h$tq#i$tq#j$tq#k$tq#l$tq#m$tq#n$tq#p$tq#r$tq#t$tq#u$tq#x$tq(Q$tq(`$tq!V$tq!W$tq~P%AYOP$vqX$vqk$vqz$vq!e$vq!f$vq!h$vq!l$vq#f$vq#g$vq#h$vq#i$vq#j$vq#k$vq#l$vq#m$vq#n$vq#p$vq#r$vq#t$vq#u$vq#x$vq(Q$vq(`$vq!V$vq!W$vq~P%AYOd%[!Z!V%[!Z#W%[!Z#x%[!Z~P!-jO!V'aq!W'aq~P#?dO#S6`O#T6`O~PBtO!V#`!Z!W#`!Z~P#?dO^%^O#W;ZO'j%^O~O#c%[!ZP%[!ZX%[!Z^%[!Zk%[!Zz%[!Z!V%[!Z!e%[!Z!f%[!Z!h%[!Z!l%[!Z#f%[!Z#g%[!Z#h%[!Z#i%[!Z#j%[!Z#k%[!Z#l%[!Z#m%[!Z#n%[!Z#p%[!Z#r%[!Z#t%[!Z#u%[!Z'j%[!Z(Q%[!Z(`%[!Z!g%[!Z!S%[!Z'h%[!Z#W%[!Zo%[!Z!X%[!Z%`%[!Z!a%[!Z~P#(yOP%[!ZX%[!Zk%[!Zz%[!Z!e%[!Z!f%[!Z!h%[!Z!l%[!Z#f%[!Z#g%[!Z#h%[!Z#i%[!Z#j%[!Z#k%[!Z#l%[!Z#m%[!Z#n%[!Z#p%[!Z#r%[!Z#t%[!Z#u%[!Z#x%[!Z(Q%[!Z(`%[!Z!V%[!Z!W%[!Z~P%AYOo(UX~P1dO't!iO~P!'RO!ScX!VcX#WcX~P&6lOPYXXYXkYXyYXzYX|YX!VYX!VcX!eYX!fYX!hYX!lYX#WYX#WcX#ccX#fYX#gYX#hYX#iYX#jYX#kYX#lYX#mYX#nYX#pYX#rYX#tYX#uYX#zYX(QYX(`YX(gYX(hYX~O!acX!gYX!gcX(`cX~P'!sOP;nOQ;nOa=_Ob!fOikOk;nOlkOmkOskOu;nOw;nO|WO!QkO!RkO!XXO!c;qO!hZO!k;nO!l;nO!m;nO!o;rO!q;sO!t!eO$P!hO$TfO's)RO'uTO'xUO(QVO(_[O(l=]O~O!Vv!>v!BnPPP!BuHdPPPPPPPPPPP!FTP!GiPPHd!HyPHdPHdHdHdHdPHd!J`PP!MiP#!nP#!r#!|##Q##QP!MfP##U##UP#&ZP#&_HdHd#&e#)iAQPAQPAQAQP#*sAQAQ#,mAQ#.zAQ#0nAQAQ#1[#3W#3W#3[#3d#3W#3lP#3WPAQ#4hAQ#5pAQAQ6iPPP#6{PP#7e#7eP#7eP#7z#7ePP#8QP#7wP#7w#8d!1p#7w#9O#9U6f(}#9X(}P#9`#9`#9`P(}P(}P(}P(}PP(}P#9f#9iP#9i(}P#9mP#9pP(}P(}P(}P(}P(}P(}(}PP#9v#9|#:W#:^#:d#:j#:p#;O#;U#;[#;f#;l#b#?r#@Q#@W#@^#@d#@j#@t#@z#AQ#A[#An#AtPPPPPPPPPP#AzPPPPPPP#Bn#FYP#Gu#G|#HUPPPP#L`$ U$'t$'w$'z$)w$)z$)}$*UPP$*[$*`$+X$,X$,]$,qPP$,u$,{$-PP$-S$-W$-Z$.P$.g$.l$.o$.r$.x$.{$/P$/TR!yRmpOXr!X#a%]&d&f&g&i,^,c1g1jU!pQ'Q-OQ%ctQ%kwQ%rzQ&[!TS&x!c,vQ'W!f[']!m!r!s!t!u!vS*[$y*aQ+U%lQ+c%tQ+}&UQ,|'PQ-W'XW-`'^'_'`'aQ/p*cQ1U,OU2b-b-d-eS4}0z5QS6[2e2gU7z5U5V5WQ8q6_S9i7{7|Q:k9lR TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . ?. PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewExpression new TypeArgList CompareOp < ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXStartTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody MethodDeclaration AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:362,context:b,nodeProps:[["group",-26,6,14,16,62,198,202,205,206,208,211,214,225,227,233,235,237,239,242,248,254,256,258,260,262,264,265,"Statement",-32,10,11,25,28,29,35,45,48,49,51,56,64,72,76,78,80,81,102,103,112,113,130,133,135,136,137,138,140,141,161,162,164,"Expression",-23,24,26,30,34,36,38,165,167,169,170,172,173,174,176,177,178,180,181,182,192,194,196,197,"Type",-3,84,95,101,"ClassItem"],["openedBy",31,"InterpolationStart",50,"[",54,"{",69,"(",142,"JSXStartTag",154,"JSXStartTag JSXStartCloseTag"],["closedBy",33,"InterpolationEnd",44,"]",55,"}",70,")",143,"JSXSelfCloseEndTag JSXEndTag",159,"JSXEndTag"]],propSources:[f],skippedNodes:[0,3,4,268],repeatNodeCount:32,tokenData:"$>y(CSR!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tu>PuvBavwDxwxGgxyMvyz! Qz{!![{|!%O|}!&]}!O!%O!O!P!'g!P!Q!1w!Q!R#0t!R![#3T![!]#@T!]!^#Aa!^!_#Bk!_!`#GS!`!a#In!a!b#N{!b!c$$z!c!}>P!}#O$&U#O#P$'`#P#Q$,w#Q#R$.R#R#S>P#S#T$/`#T#o$0j#o#p$4z#p#q$5p#q#r$7Q#r#s$8^#s$f%Z$f$g+g$g#BY>P#BY#BZ$9h#BZ$IS>P$IS$I_$9h$I_$I|>P$I|$I}$P$JT$JU$9h$JU$KV>P$KV$KW$9h$KW&FU>P&FU&FV$9h&FV;'S>P;'S;=`BZ<%l?HT>P?HT?HU$9h?HUO>P(n%d_$c&j'vp'y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$c&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$c&j'y!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU'y!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$c&j'vpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU'vpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX'vp'y!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z(CS+rq$c&j'vp'y!b'l(;dOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z(CS.ST'w#S$c&j'm(;dO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c(CS.n_$c&j'vp'y!b'm(;dOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#`/x`$c&j!l$Ip'vp'y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S1V`#p$Id$c&j'vp'y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#S2d_#p$Id$c&j'vp'y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$2b3l_'u$(n$c&j'y!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k*r4r_$c&j'y!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k)`5vX$c&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q)`6jT$^#t$c&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c#t6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y#t7bO$^#t#t7eP;=`<%l6y)`7kP;=`<%l5q*r7w]$^#t$c&j'y!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}%W8uZ'y!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p%W9oU$^#t'y!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}%W:UP;=`<%l8p*r:[P;=`<%l4k#%|:hg$c&j'vp'y!bOY%ZYZ&cZr%Zrs&}st%Ztu`k$c&j'vp'y!b(T!LY's&;d$V#tOY%ZYZ&cZr%Zrs&}st%Ztu>Puw%Zwx(rx}%Z}!O@T!O!Q%Z!Q![>P![!^%Z!^!_*g!_!c%Z!c!}>P!}#O%Z#O#P&c#P#R%Z#R#S>P#S#T%Z#T#o>P#o#p*g#p$g%Z$g;'S>P;'S;=`BZ<%lO>P+d@`k$c&j'vp'y!b$V#tOY%ZYZ&cZr%Zrs&}st%Ztu@Tuw%Zwx(rx}%Z}!O@T!O!Q%Z!Q![@T![!^%Z!^!_*g!_!c%Z!c!}@T!}#O%Z#O#P&c#P#R%Z#R#S@T#S#T%Z#T#o@T#o#p*g#p$g%Z$g;'S@T;'S;=`BT<%lO@T+dBWP;=`<%l@T(CSB^P;=`<%l>P%#SBl`$c&j'vp'y!b#h$IdOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`Cn!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%#SCy_$c&j#z$Id'vp'y!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%DfETa(h%Z![!^%Z!^!_*g!_!c%Z!c!i#>Z!i#O%Z#O#P&c#P#R%Z#R#S#>Z#S#T%Z#T#Z#>Z#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z$/l#>fi$c&j'vp'y!bl$'|OY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#>Z![!^%Z!^!_*g!_!c%Z!c!i#>Z!i#O%Z#O#P&c#P#R%Z#R#S#>Z#S#T%Z#T#Z#>Z#Z#b%Z#b#c#5T#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z%Gh#@b_!a$b$c&j#x%Puw%Zwx(rx}%Z}!O@T!O!Q%Z!Q![>P![!^%Z!^!_*g!_!c%Z!c!}>P!}#O%Z#O#P&c#P#R%Z#R#S>P#S#T%Z#T#o>P#o#p*g#p$f%Z$f$g+g$g#BY>P#BY#BZ$9h#BZ$IS>P$IS$I_$9h$I_$JT>P$JT$JU$9h$JU$KV>P$KV$KW$9h$KW&FU>P&FU&FV$9h&FV;'S>P;'S;=`BZ<%l?HT>P?HT?HU$9h?HUO>P(CS$=Uk$c&j'vp'y!b'm(;d(T!LY's&;d$V#tOY%ZYZ&cZr%Zrs&}st%Ztu>Puw%Zwx(rx}%Z}!O@T!O!Q%Z!Q![>P![!^%Z!^!_*g!_!c%Z!c!}>P!}#O%Z#O#P&c#P#R%Z#R#S>P#S#T%Z#T#o>P#o#p*g#p$g%Z$g;'S>P;'S;=`BZ<%lO>P",tokenizers:[W,U,2,3,4,5,6,7,8,9,10,11,12,13,h,new e.RA("$S~RRtu[#O#Pg#S#T#|~_P#o#pb~gOq~~jVO#i!P#i#j!U#j#l!P#l#m!q#m;'S!P;'S;=`#v<%lO!P~!UO!O~~!XS!Q![!e!c!i!e#T#Z!e#o#p#Z~!hR!Q![!q!c!i!q#T#Z!q~!tR!Q![!}!c!i!}#T#Z!}~#QR!Q![!P!c!i!P#T#Z!P~#^R!Q![#g!c!i#g#T#Z#g~#jS!Q![#g!c!i#g#T#Z#g#q#r!P~#yP;=`<%l!P~$RO(S~~",141,325),new e.RA("j~RQYZXz{^~^O'p~~aP!P!Qd~iO'q~~",25,307)],topRules:{Script:[0,5],SingleExpression:[1,266],SingleClassItem:[2,267]},dialects:{jsx:13213,ts:13215},dynamicPrecedences:{76:1,78:1,162:1,190:1},specialized:[{term:311,get:O=>u[O]||-1},{term:327,get:O=>m[O]||-1},{term:67,get:O=>y[O]||-1}],tokenPrec:13238});var j=a(24104);var d=a(37496);var v=a(66143);var w=a(1065);var V=a(73265);const k=[(0,w.Gn)("function ${name}(${params}) {\n\t${}\n}",{label:"function",detail:"definition",type:"keyword"}),(0,w.Gn)("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n\t${}\n}",{label:"for",detail:"loop",type:"keyword"}),(0,w.Gn)("for (let ${name} of ${collection}) {\n\t${}\n}",{label:"for",detail:"of loop",type:"keyword"}),(0,w.Gn)("do {\n\t${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),(0,w.Gn)("while (${}) {\n\t${}\n}",{label:"while",detail:"loop",type:"keyword"}),(0,w.Gn)("try {\n\t${}\n} catch (${error}) {\n\t${}\n}",{label:"try",detail:"/ catch block",type:"keyword"}),(0,w.Gn)("if (${}) {\n\t${}\n}",{label:"if",detail:"block",type:"keyword"}),(0,w.Gn)("if (${}) {\n\t${}\n} else {\n\t${}\n}",{label:"if",detail:"/ else block",type:"keyword"}),(0,w.Gn)("class ${name} {\n\tconstructor(${params}) {\n\t\t${}\n\t}\n}",{label:"class",detail:"definition",type:"keyword"}),(0,w.Gn)('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),(0,w.Gn)('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})];const _=new V.NodeWeakMap;const G=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function q(O){return(Q,a)=>{let e=Q.node.getChild("VariableDefinition");if(e)a(e,O);return true}}const T=["FunctionDeclaration"];const R={FunctionDeclaration:q("function"),ClassDeclaration:q("class"),ClassExpression:()=>true,EnumDeclaration:q("constant"),TypeAliasDeclaration:q("type"),NamespaceDeclaration:q("namespace"),VariableDefinition(O,Q){if(!O.matchContext(T))Q(O,"variable")},TypeDefinition(O,Q){Q(O,"type")},__proto__:null};function C(O,Q){let a=_.get(Q);if(a)return a;let e=[],i=true;function $(Q,a){let i=O.sliceString(Q.from,Q.to);e.push({label:i,type:a})}Q.cursor(V.IterMode.IncludeAnonymous).iterate((Q=>{if(i){i=false}else if(Q.name){let O=R[Q.name];if(O&&O(Q,$)||G.has(Q.name))return false}else if(Q.to-Q.from>8192){for(let a of C(O,Q.node))e.push(a);return false}}));_.set(Q,e);return e}const z=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/;const I=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName"];function E(O){let Q=(0,j.syntaxTree)(O.state).resolveInner(O.pos,-1);if(I.indexOf(Q.name)>-1)return null;let a=Q.name=="VariableName"||Q.to-Q.from<20&&z.test(O.state.sliceDoc(Q.from,Q.to));if(!a&&!O.explicit)return null;let e=[];for(let i=Q;i;i=i.parent){if(G.has(i.name))e=e.concat(C(O.state.doc,i))}return{options:e,from:a?Q.from:O.pos,validFor:z}}function A(O,Q,a){var e;let i=[];for(;;){let $=Q.firstChild,t;if(($===null||$===void 0?void 0:$.name)=="VariableName"){i.push(O($));return{path:i.reverse(),name:a}}else if(($===null||$===void 0?void 0:$.name)=="MemberExpression"&&((e=t=$.lastChild)===null||e===void 0?void 0:e.name)=="PropertyName"){i.push(O(t));Q=$}else{return null}}}function J(O){let Q=Q=>O.state.doc.sliceString(Q.from,Q.to);let a=(0,j.syntaxTree)(O.state).resolveInner(O.pos,-1);if(a.name=="PropertyName"){return A(Q,a.parent,Q(a))}else if(I.indexOf(a.name)>-1){return null}else if(a.name=="VariableName"||a.to-a.from<20&&z.test(Q(a))){return{path:[],name:Q(a)}}else if((a.name=="."||a.name=="?.")&&a.parent.name=="MemberExpression"){return A(Q,a.parent,"")}else if(a.name=="MemberExpression"){return A(Q,a,"")}else{return O.explicit?{path:[],name:""}:null}}function L(O,Q){let a=[],e=new Set;for(let $=0;;$++){for(let r of(Object.getOwnPropertyNames||Object.keys)(O)){if(e.has(r))continue;e.add(r);let t;try{t=O[r]}catch(i){continue}a.push({label:r,type:typeof t=="function"?/^[A-Z]/.test(r)?"class":Q?"function":"method":Q?"variable":"property",boost:-$})}let t=Object.getPrototypeOf(O);if(!t)return a;O=t}}function N(O){let Q=new Map;return a=>{let e=J(a);if(!e)return null;let i=O;for(let O of e.path){i=i[O];if(!i)return null}let $=Q.get(i);if(!$)Q.set(i,$=L(i,!e.path.length));return{from:a.pos-e.name.length,options:$,validFor:z}}}const D=j.LRLanguage.define({name:"javascript",parser:x.configure({props:[j.indentNodeProp.add({IfStatement:(0,j.continuedIndent)({except:/^\s*({|else\b)/}),TryStatement:(0,j.continuedIndent)({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:j.flatIndent,SwitchBody:O=>{let Q=O.textAfter,a=/^\s*\}/.test(Q),e=/^\s*(case|default)\b/.test(Q);return O.baseIndent+(a?0:e?1:2)*O.unit},Block:(0,j.delimitedIndent)({closing:"}"}),ArrowFunction:O=>O.baseIndent+O.unit,"TemplateString BlockComment":()=>null,"Statement Property":(0,j.continuedIndent)({except:/^{/}),JSXElement(O){let Q=/^\s*<\//.test(O.textAfter);return O.lineIndent(O.node.from)+(Q?0:O.unit)},JSXEscape(O){let Q=/\s*\}/.test(O.textAfter);return O.lineIndent(O.node.from)+(Q?0:O.unit)},"JSXOpenTag JSXSelfClosingTag"(O){return O.column(O.node.from)+O.unit}}),j.foldNodeProp.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":j.foldInside,BlockComment(O){return{from:O.from+2,to:O.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}});const B={test:O=>/^JSX/.test(O.name),facet:(0,j.defineLanguageFacet)({commentTokens:{block:{open:"{/*",close:"*/}"}}})};const H=D.configure({dialect:"ts"},"typescript");const K=D.configure({dialect:"jsx",props:[j.sublanguageProp.add((O=>O.isTop?[B]:undefined))]});const M=D.configure({dialect:"jsx ts",props:[j.sublanguageProp.add((O=>O.isTop?[B]:undefined))]},"typescript");const F="break case const continue default delete export extends false finally in instanceof let new return static super switch this throw true typeof var yield".split(" ").map((O=>({label:O,type:"keyword"})));function OO(O={}){let Q=O.jsx?O.typescript?M:K:O.typescript?H:D;return new j.LanguageSupport(Q,[D.data.of({autocomplete:(0,w.eC)(I,(0,w.Mb)(k.concat(F)))}),D.data.of({autocomplete:E}),O.jsx?$O:[]])}function QO(O){for(;;){if(O.name=="JSXOpenTag"||O.name=="JSXSelfClosingTag"||O.name=="JSXFragmentTag")return O;if(O.name=="JSXEscape"||!O.parent)return null;O=O.parent}}function aO(O,Q,a=O.length){for(let e=Q===null||Q===void 0?void 0:Q.firstChild;e;e=e.nextSibling){if(e.name=="JSXIdentifier"||e.name=="JSXBuiltin"||e.name=="JSXNamespacedName"||e.name=="JSXMemberExpression")return O.sliceString(e.from,Math.min(e.to,a))}return""}function eO(O){return O&&(O.name=="JSXEndTag"||O.name=="JSXSelfCloseEndTag")}const iO=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent);const $O=v.EditorView.inputHandler.of(((O,Q,a,e)=>{if((iO?O.composing:O.compositionStarted)||O.state.readOnly||Q!=a||e!=">"&&e!="/"||!D.isActiveAt(O.state,Q,-1))return false;let{state:i}=O;let $=i.changeByRange((O=>{var Q;let{head:a}=O,$=(0,j.syntaxTree)(i).resolveInner(a,-1),t;if($.name=="JSXStartTag")$=$.parent;if($.name=="JSXAttributeValue"&&$.to>a);else if(e==">"&&$.name=="JSXFragmentTag"){return{range:d.EditorSelection.cursor(a+1),changes:{from:a,insert:`>`}}}else if(e=="/"&&$.name=="JSXFragmentTag"){let O=$.parent,e=O===null||O===void 0?void 0:O.parent;if(O.from==a-1&&((Q=e.lastChild)===null||Q===void 0?void 0:Q.name)!="JSXEndTag"&&(t=aO(i.doc,e===null||e===void 0?void 0:e.firstChild,a))){let O=`/${t}>`;return{range:d.EditorSelection.cursor(a+O.length),changes:{from:a,insert:O}}}}else if(e==">"){let O=QO($);if(O&&!eO(O.lastChild)&&i.sliceDoc(a,a+2)!="`}}}return{range:O}}));if($.changes.empty)return false;O.dispatch($,{userEvent:"input.type",scrollIntoView:true});return true}));function tO(O,Q){if(!Q){Q={parserOptions:{ecmaVersion:2019,sourceType:"module"},env:{browser:true,node:true,es6:true,es2015:true,es2017:true,es2020:true},rules:{}};O.getRules().forEach(((O,a)=>{if(O.meta.docs.recommended)Q.rules[a]=2}))}return a=>{let{state:e}=a,i=[];for(let{from:$,to:t}of D.findRegions(e)){let a=e.doc.lineAt($),r={line:a.number-1,col:$-a.from,pos:$};for(let S of O.verify(e.sliceDoc($,t),Q))i.push(SO(S,e.doc,r))}return i}}function rO(O,Q,a,e){return a.line(O+e.line).from+Q+(O==1?e.col-1:-1)}function SO(O,Q,a){let e=rO(O.line,O.column,Q,a);let i={from:e,to:O.endLine!=null&&O.endColumn!=1?rO(O.endLine,O.endColumn,Q,a):e,message:O.message,source:O.ruleId?"eslint:"+O.ruleId:"eslint",severity:O.severity==1?"warning":"error"};if(O.fix){let{range:Q,text:$}=O.fix,t=Q[0]+a.pos-e,r=Q[1]+a.pos-e;i.actions=[{name:"fix",apply(O,Q){O.dispatch({changes:{from:Q+t,to:Q+r,insert:$},scrollIntoView:true})}}]}return i}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/2104.296346db0067b4883fbf.js b/bootcamp/share/jupyter/lab/static/2104.296346db0067b4883fbf.js new file mode 100644 index 0000000..d844329 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/2104.296346db0067b4883fbf.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2104],{72104:(e,t,r)=>{r.r(t);r.d(t,{DefaultBufferLength:()=>i,IterMode:()=>d,MountedTree:()=>o,NodeProp:()=>l,NodeSet:()=>u,NodeType:()=>h,NodeWeakMap:()=>M,Parser:()=>P,Tree:()=>c,TreeBuffer:()=>m,TreeCursor:()=>C,TreeFragment:()=>z,parseMixed:()=>O});const i=1024;let n=0;class s{constructor(e,t){this.from=e;this.to=t}}class l{constructor(e={}){this.id=n++;this.perNode=!!e.perNode;this.deserialize=e.deserialize||(()=>{throw new Error("This node type doesn't define a deserialize function")})}add(e){if(this.perNode)throw new RangeError("Can't add per-node props to node types");if(typeof e!="function")e=h.match(e);return t=>{let r=e(t);return r===undefined?null:[this,r]}}}l.closedBy=new l({deserialize:e=>e.split(" ")});l.openedBy=new l({deserialize:e=>e.split(" ")});l.group=new l({deserialize:e=>e.split(" ")});l.contextHash=new l({perNode:true});l.lookAhead=new l({perNode:true});l.mounted=new l({perNode:true});class o{constructor(e,t,r){this.tree=e;this.overlay=t;this.parser=r}}const f=Object.create(null);class h{constructor(e,t,r,i=0){this.name=e;this.props=t;this.id=r;this.flags=i}static define(e){let t=e.props&&e.props.length?Object.create(null):f;let r=(e.top?1:0)|(e.skipped?2:0)|(e.error?4:0)|(e.name==null?8:0);let i=new h(e.name||"",t,e.id,r);if(e.props)for(let n of e.props){if(!Array.isArray(n))n=n(i);if(n){if(n[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");t[n[0].id]=n[1]}}return i}prop(e){return this.props[e.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(e){if(typeof e=="string"){if(this.name==e)return true;let t=this.prop(l.group);return t?t.indexOf(e)>-1:false}return this.id==e}static match(e){let t=Object.create(null);for(let r in e)for(let i of r.split(" "))t[i]=e[r];return e=>{for(let r=e.prop(l.group),i=-1;i<(r?r.length:0);i++){let n=t[i<0?e.name:r[i]];if(n)return n}}}}h.none=new h("",Object.create(null),0,8);class u{constructor(e){this.types=e;for(let t=0;t=i&&(s.type.isAnonymous||t(s)!==false)){if(s.firstChild())continue;e=true}for(;;){if(e&&r&&!s.type.isAnonymous)r(s);if(s.nextSibling())break;if(!s.parent())return;e=true}}}prop(e){return!e.perNode?this.type.prop(e):this.props?this.props[e.id]:undefined}get propValues(){let e=[];if(this.props)for(let t in this.props)e.push([+t,this.props[t]]);return e}balance(e={}){return this.children.length<=8?this:T(h.none,this.children,this.positions,0,this.children.length,0,this.length,((e,t,r)=>new c(this.type,e,t,r,this.propValues)),e.makeTree||((e,t,r)=>new c(h.none,e,t,r)))}static build(e){return N(e)}}c.empty=new c(h.none,[],[],0);class g{constructor(e,t){this.buffer=e;this.index=t}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}get pos(){return this.index}next(){this.index-=4}fork(){return new g(this.buffer,this.index)}}class m{constructor(e,t,r){this.buffer=e;this.length=t;this.set=r}get type(){return h.none}toString(){let e=[];for(let t=0;t0)break}}return l}slice(e,t,r){let i=this.buffer;let n=new Uint16Array(t-e),s=0;for(let l=e,o=0;l=t&&rt;case 1:return r<=t&&i>t;case 2:return i>t;case 4:return true}}function x(e,t){let r=e.childBefore(t);while(r){let t=r.lastChild;if(!t||t.to!=r.to)break;if(t.type.isError&&t.from==t.to){e=r;r=t.prevSibling}else{r=t}}return e}function y(e,t,r,i){var n;while(e.from==e.to||(r<1?e.from>=t:e.from>t)||(r>-1?e.to<=t:e.to0?o.length:-1;e!=h;e+=t){let h=o[e],u=f[e]+s.from;if(!b(i,r,u,u+h.length))continue;if(h instanceof m){if(n&d.ExcludeBuffers)continue;let l=h.findChild(0,h.buffer.length,t,r-u,i);if(l>-1)return new A(new k(s,h,e,u),null,l)}else if(n&d.IncludeAnonymous||(!h.type.isAnonymous||S(h))){let o;if(!(n&d.IgnoreMounts)&&h.props&&(o=h.prop(l.mounted))&&!o.overlay)return new w(o.tree,u,e,s);let f=new w(h,u,e,s);return n&d.IncludeAnonymous||!f.type.isAnonymous?f:f.nextChild(t<0?h.children.length-1:0,t,r,i)}}if(n&d.IncludeAnonymous||!s.type.isAnonymous)return null;if(s.index>=0)e=s.index+t;else e=t<0?-1:s._parent._tree.children.length;s=s._parent;if(!s)return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(e){return this.nextChild(0,1,e,2)}childBefore(e){return this.nextChild(this._tree.children.length-1,-1,e,-2)}enter(e,t,r=0){let i;if(!(r&d.IgnoreOverlays)&&(i=this._tree.prop(l.mounted))&&i.overlay){let r=e-this.from;for(let{from:e,to:n}of i.overlay){if((t>0?e<=r:e=r:n>r))return new w(i.tree,i.overlay[0].from+this.from,-1,this)}}return this.nextChild(0,1,e,t,r)}nextSignificantParent(){let e=this;while(e.type.isAnonymous&&e._parent)e=e._parent;return e}get parent(){return this._parent?this._parent.nextSignificantParent():null}get nextSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index+1,1,0,4):null}get prevSibling(){return this._parent&&this.index>=0?this._parent.nextChild(this.index-1,-1,0,4):null}cursor(e=0){return new C(this,e)}get tree(){return this._tree}toTree(){return this._tree}resolve(e,t=0){return y(this,e,t,false)}resolveInner(e,t=0){return y(this,e,t,true)}enterUnfinishedNodesBefore(e){return x(this,e)}getChild(e,t=null,r=null){let i=v(this,e,t,r);return i.length?i[0]:null}getChildren(e,t=null,r=null){return v(this,e,t,r)}toString(){return this._tree.toString()}get node(){return this}matchContext(e){return _(this,e)}}function v(e,t,r,i){let n=e.cursor(),s=[];if(!n.firstChild())return s;if(r!=null)while(!n.type.is(r))if(!n.nextSibling())return s;for(;;){if(i!=null&&n.type.is(i))return s;if(n.type.is(t))s.push(n.node);if(!n.nextSibling())return i==null?s:[]}}function _(e,t,r=t.length-1){for(let i=e.parent;r>=0;i=i.parent){if(!i)return false;if(!i.type.isAnonymous){if(t[r]&&t[r]!=i.name)return false;r--}}return true}class k{constructor(e,t,r,i){this.parent=e;this.buffer=t;this.index=r;this.start=i}}class A{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(e,t,r){this.context=e;this._parent=t;this.index=r;this.type=e.buffer.set.types[e.buffer.buffer[r]]}child(e,t,r){let{buffer:i}=this.context;let n=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.context.start,r);return n<0?null:new A(this.context,this,n)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(e){return this.child(1,e,2)}childBefore(e){return this.child(-1,e,-2)}enter(e,t,r=0){if(r&d.ExcludeBuffers)return null;let{buffer:i}=this.context;let n=i.findChild(this.index+4,i.buffer[this.index+3],t>0?1:-1,e-this.context.start,t);return n<0?null:new A(this.context,this,n)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(e){return this._parent?null:this.context.parent.nextChild(this.context.index+e,e,0,4)}get nextSibling(){let{buffer:e}=this.context;let t=e.buffer[this.index+3];if(t<(this._parent?e.buffer[this._parent.index+3]:e.buffer.length))return new A(this.context,this._parent,t);return this.externalSibling(1)}get prevSibling(){let{buffer:e}=this.context;let t=this._parent?this._parent.index+4:0;if(this.index==t)return this.externalSibling(-1);return new A(this.context,this._parent,e.findChild(t,this.index,-1,0,4))}cursor(e=0){return new C(this,e)}get tree(){return null}toTree(){let e=[],t=[];let{buffer:r}=this.context;let i=this.index+4,n=r.buffer[this.index+3];if(n>i){let s=r.buffer[this.index+1];e.push(r.slice(i,n,s));t.push(0)}return new c(this.type,e,t,this.to-this.from)}resolve(e,t=0){return y(this,e,t,false)}resolveInner(e,t=0){return y(this,e,t,true)}enterUnfinishedNodesBefore(e){return x(this,e)}toString(){return this.context.buffer.childString(this.index)}getChild(e,t=null,r=null){let i=v(this,e,t,r);return i.length?i[0]:null}getChildren(e,t=null,r=null){return v(this,e,t,r)}get node(){return this}matchContext(e){return _(this,e)}}class C{get name(){return this.type.name}constructor(e,t=0){this.mode=t;this.buffer=null;this.stack=[];this.index=0;this.bufferNode=null;if(e instanceof w){this.yieldNode(e)}else{this._tree=e.context.parent;this.buffer=e.context;for(let t=e._parent;t;t=t._parent)this.stack.unshift(t.index);this.bufferNode=e;this.yieldBuf(e.index)}}yieldNode(e){if(!e)return false;this._tree=e;this.type=e.type;this.from=e.from;this.to=e.to;return true}yieldBuf(e,t){this.index=e;let{start:r,buffer:i}=this.buffer;this.type=t||i.set.types[i.buffer[e]];this.from=r+i.buffer[e+1];this.to=r+i.buffer[e+2];return true}yield(e){if(!e)return false;if(e instanceof w){this.buffer=null;return this.yieldNode(e)}this.buffer=e.context;return this.yieldBuf(e.index,e.type)}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(e,t,r){if(!this.buffer)return this.yield(this._tree.nextChild(e<0?this._tree._tree.children.length-1:0,e,t,r,this.mode));let{buffer:i}=this.buffer;let n=i.findChild(this.index+4,i.buffer[this.index+3],e,t-this.buffer.start,r);if(n<0)return false;this.stack.push(this.index);return this.yieldBuf(n)}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(e){return this.enterChild(1,e,2)}childBefore(e){return this.enterChild(-1,e,-2)}enter(e,t,r=this.mode){if(!this.buffer)return this.yield(this._tree.enter(e,t,r));return r&d.ExcludeBuffers?false:this.enterChild(1,e,t)}parent(){if(!this.buffer)return this.yieldNode(this.mode&d.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let e=this.mode&d.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();this.buffer=null;return this.yieldNode(e)}sibling(e){if(!this.buffer)return!this._tree._parent?false:this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+e,e,0,4,this.mode));let{buffer:t}=this.buffer,r=this.stack.length-1;if(e<0){let e=r<0?0:this.stack[r]+4;if(this.index!=e)return this.yieldBuf(t.findChild(e,this.index,-1,0,4))}else{let e=t.buffer[this.index+3];if(e<(r<0?t.buffer.length:t.buffer[this.stack[r]+3]))return this.yieldBuf(e)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+e,e,0,4,this.mode)):false}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(e){let t,r,{buffer:i}=this;if(i){if(e>0){if(this.index-1)for(let i=t+e,n=e<0?-1:r._tree.children.length;i!=n;i+=e){let e=r._tree.children[i];if(this.mode&d.IncludeAnonymous||e instanceof m||!e.type.isAnonymous||S(e))return false}}return true}move(e,t){if(t&&this.enterChild(e,0,4))return true;for(;;){if(this.sibling(e))return true;if(this.atLastNode(e)||!this.parent())return false}}next(e=true){return this.move(1,e)}prev(e=true){return this.move(-1,e)}moveTo(e,t=0){while(this.from==this.to||(t<1?this.from>=e:this.from>e)||(t>-1?this.to<=e:this.to=0;){for(let s=e;s;s=s._parent)if(s.index==i){if(i==this.index)return s;t=s;r=n+1;break e}i=this.stack[--n]}}for(let i=r;i=0;n--){if(n<0)return _(this.node,e,i);let s=r[t.buffer[this.stack[n]]];if(!s.isAnonymous){if(e[i]&&e[i]!=s.name)return false;i--}}return true}}function S(e){return e.children.some((e=>e instanceof m||!e.type.isAnonymous||S(e)))}function N(e){var t;let{buffer:r,nodeSet:n,maxBufferLength:s=i,reused:o=[],minRepeatType:f=n.types.length}=e;let h=Array.isArray(r)?new g(r,r.length):r;let u=n.types;let a=0,p=0;function d(e,t,r,i,l){let{id:c,start:g,end:_,size:k}=h;let A=p;while(k<0){h.next();if(k==-1){let t=o[c];r.push(t);i.push(g-e);return}else if(k==-3){a=c;return}else if(k==-4){p=c;return}else{throw new RangeError(`Unrecognized record size: ${k}`)}}let C=u[c],S,N;let I=g-e;if(_-g<=s&&(N=w(h.pos-t,l))){let t=new Uint16Array(N.size-N.skip);let r=h.pos-N.size,i=t.length;while(h.pos>r)i=v(N.start,t,i);S=new m(t,_-N.start,n);I=N.start-e}else{let e=h.pos-k;h.next();let t=[],r=[];let i=c>=f?c:-1;let n=0,l=_;while(h.pos>e){if(i>=0&&h.id==i&&h.size>=0){if(h.end<=l-s){x(t,r,g,n,h.end,l,i,A);n=t.length;l=h.end}h.next()}else{d(g,e,t,r,i)}}if(i>=0&&n>0&&n-1&&n>0){let e=b(C);S=T(C,t,r,0,t.length,0,_-g,e,e)}else{S=y(C,t,r,_-g,A-_)}}r.push(S);i.push(I)}function b(e){return(t,r,i)=>{let n=0,s=t.length-1,o,f;if(s>=0&&(o=t[s])instanceof c){if(!s&&o.type==e&&o.length==i)return o;if(f=o.prop(l.lookAhead))n=r[s]+o.length+f}return y(e,t,r,i,n)}}function x(e,t,r,i,s,l,o,f){let h=[],u=[];while(e.length>i){h.push(e.pop());u.push(t.pop()+r-s)}e.push(y(n.types[o],h,u,l-s,f-l));t.push(s-r)}function y(e,t,r,i,n=0,s){if(a){let e=[l.contextHash,a];s=s?[e].concat(s):[e]}if(n>25){let e=[l.lookAhead,n];s=s?[e].concat(s):[e]}return new c(e,t,r,i,s)}function w(e,t){let r=h.fork();let i=0,n=0,l=0,o=r.end-s;let u={size:0,start:0,skip:0};e:for(let s=r.pos-e;r.pos>s;){let e=r.size;if(r.id==t&&e>=0){u.size=i;u.start=n;u.skip=l;l+=4;i+=4;r.next();continue}let h=r.pos-e;if(e<0||h=f?4:0;let p=r.start;r.next();while(r.pos>h){if(r.size<0){if(r.size==-3)a+=4;else break e}else if(r.id>=f){a+=4}r.next()}n=p;i+=e;l+=a}if(t<0||i==e){u.size=i;u.start=n;u.skip=l}return u.size>4?u:undefined}function v(e,t,r){let{id:i,start:n,end:s,size:l}=h;h.next();if(l>=0&&i4){let i=h.pos-(l-4);while(h.pos>i)r=v(e,t,r)}t[--r]=o;t[--r]=s-e;t[--r]=n-e;t[--r]=i}else if(l==-3){a=i}else if(l==-4){p=i}return r}let _=[],k=[];while(h.pos>0)d(e.start||0,e.bufferStart||0,_,k,-1);let A=(t=e.length)!==null&&t!==void 0?t:_.length?k[0]+_[0].length:0;return new c(u[e.topID],_.reverse(),k.reverse(),A)}const I=new WeakMap;function B(e,t){if(!e.isAnonymous||t instanceof m||t.type!=e)return 1;let r=I.get(t);if(r==null){r=1;for(let i of t.children){if(i.type!=e||!(i instanceof c)){r=1;break}r+=B(e,i)}I.set(t,r)}return r}function T(e,t,r,i,n,s,l,o,f){let h=0;for(let c=i;c=u)break;c+=r}if(o==i+1){if(c>u){let e=t[i];d(e.children,e.positions,0,e.children.length,r[i]+l);continue}a.push(t[i])}else{let n=r[o-1]+t[o-1].length-h;a.push(T(e,t,r,i,o,h,n,null,f))}p.push(h+l-s)}}d(t,r,i,n,0);return(o||f)(a,p,l)}class M{constructor(){this.map=new WeakMap}setBuffer(e,t,r){let i=this.map.get(e);if(!i)this.map.set(e,i=new Map);i.set(t,r)}getBuffer(e,t){let r=this.map.get(e);return r&&r.get(t)}set(e,t){if(e instanceof A)this.setBuffer(e.context.buffer,e.index,t);else if(e instanceof w)this.map.set(e.tree,t)}get(e){return e instanceof A?this.getBuffer(e.context.buffer,e.index):e instanceof w?this.map.get(e.tree):undefined}cursorSet(e,t){if(e.buffer)this.setBuffer(e.buffer.buffer,e.index,t);else this.map.set(e.tree,t)}cursorGet(e){return e.buffer?this.getBuffer(e.buffer.buffer,e.index):this.map.get(e.tree)}}class z{constructor(e,t,r,i,n=false,s=false){this.from=e;this.to=t;this.tree=r;this.offset=i;this.open=(n?1:0)|(s?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(e,t=[],r=false){let i=[new z(0,e.length,e,0,false,r)];for(let n of t)if(n.to>e.length)i.push(n);return i}static applyChanges(e,t,r=128){if(!t.length)return e;let i=[];let n=1,s=e.length?e[0]:null;for(let l=0,o=0,f=0;;l++){let h=l=r)while(s&&s.from=t.from||u<=t.to||f){let e=Math.max(t.from,o)-f,r=Math.min(t.to,u)-f;t=e>=r?null:new z(e,r,t.tree,t.offset+f,l>0,!!h)}if(t)i.push(t);if(s.to>u)break;s=nnew s(e.from,e.to))):[new s(0,0)];return this.createParse(e,t||[],r)}parse(e,t,r){let i=this.startParse(e,t,r);for(;;){let e=i.advance();if(e)return e}}}class E{constructor(e){this.string=e}get length(){return this.string.length}chunk(e){return this.string.slice(e)}get lineChunks(){return false}read(e,t){return this.string.slice(e,t)}}function O(e){return(t,r,i,n)=>new W(t,e,r,i,n)}class j{constructor(e,t,r,i,n){this.parser=e;this.parse=t;this.overlay=r;this.target=i;this.ranges=n}}class F{constructor(e,t,r,i,n,s,l){this.parser=e;this.predicate=t;this.mounts=r;this.index=i;this.start=n;this.target=s;this.prev=l;this.depth=0;this.ranges=[]}}const D=new l({perNode:true});class W{constructor(e,t,r,i,n){this.nest=t;this.input=r;this.fragments=i;this.ranges=n;this.inner=[];this.innerDone=0;this.baseTree=null;this.stoppedAt=null;this.baseParse=e}advance(){if(this.baseParse){let e=this.baseParse.advance();if(!e)return null;this.baseParse=null;this.baseTree=e;this.startInner();if(this.stoppedAt!=null)for(let t of this.inner)t.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let e=this.baseTree;if(this.stoppedAt!=null)e=new c(e.type,e.children,e.positions,e.length,e.propValues.concat([[D,this.stoppedAt]]));return e}let e=this.inner[this.innerDone],t=e.parse.advance();if(t){this.innerDone++;let r=Object.assign(Object.create(null),e.target.props);r[l.mounted.id]=new o(t,e.overlay,e.parser);e.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let e=this.input.length;for(let t=this.innerDone;te.frag.from<=i.from&&e.frag.to>=i.to&&e.mount.overlay));if(e)for(let r of e.mount.overlay){let n=r.from+e.pos,s=r.to+e.pos;if(n>=i.from&&s<=i.to&&!t.ranges.some((e=>e.fromn)))t.ranges.push({from:n,to:s})}}o=false}else if(r&&(l=R(r.ranges,i.from,i.to))){o=l!=2}else if(!i.type.isAnonymous&&i.fromnew s(e.from-i.from,e.to-i.from))):null,i.tree,e));if(!n.overlay)o=false;else if(e.length)r={ranges:e,depth:0,prev:r}}}else if(t&&(f=t.predicate(i))){if(f===true)f=new s(i.from,i.to);if(f.fromnew s(e.from-t.start,e.to-t.start))),t.target,e));t=t.prev}if(r&&!--r.depth)r=r.prev}}}}}function R(e,t,r){for(let i of e){if(i.from>=r)break;if(i.to>t)return i.from<=t&&i.to>=r?2:1}return 0}function U(e,t,r,i,n,s){if(t=t.to)break}let l=n.children[i],o=l.buffer;function f(e,r,i,n,h){let u=e;while(o[u+2]+s<=t.from)u=o[u+3];let a=[],p=[];U(l,e,u,a,p,n);let d=o[u+1],g=o[u+2];let m=d+s==t.from&&g+s==t.to&&o[u]==t.type.id;a.push(m?t.toTree():f(u+4,o[u+3],l.set.types[o[u]],d,g-d));p.push(d-n);U(l,o[u+3],r,a,p,n);return new c(i,a,p,h)}n.children[i]=f(0,o.length,h.none,0,l.length);for(let h=0;h<=r;h++)e.childAfter(t.from)}class V{constructor(e,t){this.offset=t;this.done=false;this.cursor=e.cursor(d.IncludeAnonymous|d.IgnoreMounts)}moveTo(e){let{cursor:t}=this,r=e-this.offset;while(!this.done&&t.from=e&&t.enter(r,1,d.IgnoreOverlays|d.ExcludeBuffers));else if(!t.next(false))this.done=true}}hasNode(e){this.moveTo(e.from);if(!this.done&&this.cursor.from+this.offset==e.from&&this.cursor.tree){for(let t=this.cursor.tree;;){if(t==e.tree)return true;if(t.children.length&&t.positions[0]==0&&t.children[0]instanceof c)t=t.children[0];else break}}return false}}class H{constructor(e){var t;this.fragments=e;this.curTo=0;this.fragI=0;if(e.length){let r=this.curFrag=e[0];this.curTo=(t=r.tree.prop(D))!==null&&t!==void 0?t:r.to;this.inner=new V(r.tree,-r.offset)}else{this.curFrag=this.inner=null}}hasNode(e){while(this.curFrag&&e.from>=this.curTo)this.nextFrag();return this.curFrag&&this.curFrag.from<=e.from&&this.curTo>=e.to&&this.inner.hasNode(e)}nextFrag(){var e;this.fragI++;if(this.fragI==this.fragments.length){this.curFrag=this.inner=null}else{let t=this.curFrag=this.fragments[this.fragI];this.curTo=(e=t.tree.prop(D))!==null&&e!==void 0?e:t.to;this.inner=new V(t.tree,-t.offset)}}findMounts(e,t){var r;let i=[];if(this.inner){this.inner.cursor.moveTo(e,1);for(let e=this.inner.cursor.node;e;e=e.parent){let n=(r=e.tree)===null||r===void 0?void 0:r.prop(l.mounted);if(n&&n.parser==t){for(let t=this.fragI;t=e.to)break;if(r.tree==this.curFrag.tree)i.push({frag:r,pos:e.from-r.offset,mount:n})}}}}return i}}function J(e,t){let r=null,i=t;for(let n=1,l=0;n=f)break;if(e.to<=o)continue;if(!r)i=r=t.slice();if(e.fromf)r.splice(l+1,0,new s(f,e.to))}else if(e.to>f){r[l--]=new s(f,e.to)}else{r.splice(l--,1)}}}return i}function G(e,t,r,i){let n=0,l=0,o=false,f=false,h=-1e9;let u=[];for(;;){let a=n==e.length?1e9:o?e[n].to:e[n].from;let p=l==t.length?1e9:f?t[l].to:t[l].from;if(o!=f){let e=Math.max(h,r),t=Math.min(a,p,i);if(enew s(e.from+i,e.to+i)));let u=G(t,o,f,h);for(let t=0,i=f;;t++){let s=t==u.length,o=s?h:u[t].from;if(o>i)r.push(new z(i,o,n.tree,-e,l.from>=i||l.openStart,l.to<=o||l.openEnd));if(s)break;i=u[t].to}}else{r.push(new z(f,h,n.tree,-e,l.from>=e||l.openStart,l.to<=o||l.openEnd))}}return r}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/2145.be9ec610f29703694fcf.js b/bootcamp/share/jupyter/lab/static/2145.be9ec610f29703694fcf.js new file mode 100644 index 0000000..295d6e2 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/2145.be9ec610f29703694fcf.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2145],{92145:(e,t,r)=>{r.r(t);r.d(t,{powerShell:()=>z});function n(e,t){t=t||{};var r=t.prefix!==undefined?t.prefix:"^";var n=t.suffix!==undefined?t.suffix:"\\b";for(var i=0;i/;var l=n([u,c],{suffix:""});var p=/^((0x[\da-f]+)|((\d+\.\d+|\d\.|\.\d+|\d+)(e[\+\-]?\d+)?))[ld]?([kmgtp]b)?/i;var m=/^[A-Za-z\_][A-Za-z\-\_\d]*\b/;var S=/[A-Z]:|%|\?/i;var f=n([/Add-(Computer|Content|History|Member|PSSnapin|Type)/,/Checkpoint-Computer/,/Clear-(Content|EventLog|History|Host|Item(Property)?|Variable)/,/Compare-Object/,/Complete-Transaction/,/Connect-PSSession/,/ConvertFrom-(Csv|Json|SecureString|StringData)/,/Convert-Path/,/ConvertTo-(Csv|Html|Json|SecureString|Xml)/,/Copy-Item(Property)?/,/Debug-Process/,/Disable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/Disconnect-PSSession/,/Enable-(ComputerRestore|PSBreakpoint|PSRemoting|PSSessionConfiguration)/,/(Enter|Exit)-PSSession/,/Export-(Alias|Clixml|Console|Counter|Csv|FormatData|ModuleMember|PSSession)/,/ForEach-Object/,/Format-(Custom|List|Table|Wide)/,new RegExp("Get-(Acl|Alias|AuthenticodeSignature|ChildItem|Command|ComputerRestorePoint|Content|ControlPanelItem|Counter|Credential"+"|Culture|Date|Event|EventLog|EventSubscriber|ExecutionPolicy|FormatData|Help|History|Host|HotFix|Item|ItemProperty|Job"+"|Location|Member|Module|PfxCertificate|Process|PSBreakpoint|PSCallStack|PSDrive|PSProvider|PSSession|PSSessionConfiguration"+"|PSSnapin|Random|Service|TraceSource|Transaction|TypeData|UICulture|Unique|Variable|Verb|WinEvent|WmiObject)"),/Group-Object/,/Import-(Alias|Clixml|Counter|Csv|LocalizedData|Module|PSSession)/,/ImportSystemModules/,/Invoke-(Command|Expression|History|Item|RestMethod|WebRequest|WmiMethod)/,/Join-Path/,/Limit-EventLog/,/Measure-(Command|Object)/,/Move-Item(Property)?/,new RegExp("New-(Alias|Event|EventLog|Item(Property)?|Module|ModuleManifest|Object|PSDrive|PSSession|PSSessionConfigurationFile"+"|PSSessionOption|PSTransportOption|Service|TimeSpan|Variable|WebServiceProxy|WinEvent)"),/Out-(Default|File|GridView|Host|Null|Printer|String)/,/Pause/,/(Pop|Push)-Location/,/Read-Host/,/Receive-(Job|PSSession)/,/Register-(EngineEvent|ObjectEvent|PSSessionConfiguration|WmiEvent)/,/Remove-(Computer|Event|EventLog|Item(Property)?|Job|Module|PSBreakpoint|PSDrive|PSSession|PSSnapin|TypeData|Variable|WmiObject)/,/Rename-(Computer|Item(Property)?)/,/Reset-ComputerMachinePassword/,/Resolve-Path/,/Restart-(Computer|Service)/,/Restore-Computer/,/Resume-(Job|Service)/,/Save-Help/,/Select-(Object|String|Xml)/,/Send-MailMessage/,new RegExp("Set-(Acl|Alias|AuthenticodeSignature|Content|Date|ExecutionPolicy|Item(Property)?|Location|PSBreakpoint|PSDebug"+"|PSSessionConfiguration|Service|StrictMode|TraceSource|Variable|WmiInstance)"),/Show-(Command|ControlPanelItem|EventLog)/,/Sort-Object/,/Split-Path/,/Start-(Job|Process|Service|Sleep|Transaction|Transcript)/,/Stop-(Computer|Job|Process|Service|Transcript)/,/Suspend-(Job|Service)/,/TabExpansion2/,/Tee-Object/,/Test-(ComputerSecureChannel|Connection|ModuleManifest|Path|PSSessionConfigurationFile)/,/Trace-Command/,/Unblock-File/,/Undo-Transaction/,/Unregister-(Event|PSSessionConfiguration)/,/Update-(FormatData|Help|List|TypeData)/,/Use-Transaction/,/Wait-(Event|Job|Process)/,/Where-Object/,/Write-(Debug|Error|EventLog|Host|Output|Progress|Verbose|Warning)/,/cd|help|mkdir|more|oss|prompt/,/ac|asnp|cat|cd|chdir|clc|clear|clhy|cli|clp|cls|clv|cnsn|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|dnsn|ebp/,/echo|epal|epcsv|epsn|erase|etsn|exsn|fc|fl|foreach|ft|fw|gal|gbp|gc|gci|gcm|gcs|gdr|ghy|gi|gjb|gl|gm|gmo|gp|gps/,/group|gsn|gsnp|gsv|gu|gv|gwmi|h|history|icm|iex|ihy|ii|ipal|ipcsv|ipmo|ipsn|irm|ise|iwmi|iwr|kill|lp|ls|man|md/,/measure|mi|mount|move|mp|mv|nal|ndr|ni|nmo|npssc|nsn|nv|ogv|oh|popd|ps|pushd|pwd|r|rbp|rcjb|rcsn|rd|rdr|ren|ri/,/rjb|rm|rmdir|rmo|rni|rnp|rp|rsn|rsnp|rujb|rv|rvpa|rwmi|sajb|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls/,/sort|sp|spjb|spps|spsv|start|sujb|sv|swmi|tee|trcm|type|where|wjb|write/],{prefix:"",suffix:""});var v=n([/[$?^_]|Args|ConfirmPreference|ConsoleFileName|DebugPreference|Error|ErrorActionPreference|ErrorView|ExecutionContext/,/FormatEnumerationLimit|Home|Host|Input|MaximumAliasCount|MaximumDriveCount|MaximumErrorCount|MaximumFunctionCount/,/MaximumHistoryCount|MaximumVariableCount|MyInvocation|NestedPromptLevel|OutputEncoding|Pid|Profile|ProgressPreference/,/PSBoundParameters|PSCommandPath|PSCulture|PSDefaultParameterValues|PSEmailServer|PSHome|PSScriptRoot|PSSessionApplicationName/,/PSSessionConfigurationName|PSSessionOption|PSUICulture|PSVersionTable|Pwd|ShellId|StackTrace|VerbosePreference/,/WarningPreference|WhatIfPreference/,/Event|EventArgs|EventSubscriber|Sender/,/Matches|Ofs|ForEach|LastExitCode|PSCmdlet|PSItem|PSSenderInfo|This/,/true|false|null/],{prefix:"\\$",suffix:""});var P=n([S,f,v],{suffix:i});var d={keyword:a,number:p,operator:l,builtin:P,punctuation:s,variable:m};function g(e,t){var r=t.returnStack[t.returnStack.length-1];if(r&&r.shouldReturnFrom(t)){t.tokenize=r.tokenize;t.returnStack.pop();return t.tokenize(e,t)}if(e.eatSpace()){return null}if(e.eat("(")){t.bracketNesting+=1;return"punctuation"}if(e.eat(")")){t.bracketNesting-=1;return"punctuation"}for(var n in d){if(e.match(d[n])){return n}}var i=e.next();if(i==="'"){return b(e,t)}if(i==="$"){return y(e,t)}if(i==='"'){return C(e,t)}if(i==="<"&&e.eat("#")){t.tokenize=w;return w(e,t)}if(i==="#"){e.skipToEnd();return"comment"}if(i==="@"){var a=e.eat(/["']/);if(a&&e.eol()){t.tokenize=R;t.startQuote=a[0];return R(e,t)}else if(e.eol()){return"error"}else if(e.peek().match(/[({]/)){return"punctuation"}else if(e.peek().match(o)){return y(e,t)}}return"error"}function b(e,t){var r;while((r=e.peek())!=null){e.next();if(r==="'"&&!e.eat("'")){t.tokenize=g;return"string"}}return"error"}function C(e,t){var r;while((r=e.peek())!=null){if(r==="$"){t.tokenize=k;return"string"}e.next();if(r==="`"){e.next();continue}if(r==='"'&&!e.eat('"')){t.tokenize=g;return"string"}}return"error"}function k(e,t){return E(e,t,C)}function h(e,t){t.tokenize=R;t.startQuote='"';return R(e,t)}function x(e,t){return E(e,t,h)}function E(e,t,r){if(e.match("$(")){var n=t.bracketNesting;t.returnStack.push({shouldReturnFrom:function(e){return e.bracketNesting===n},tokenize:r});t.tokenize=g;t.bracketNesting+=1;return"punctuation"}else{e.next();t.returnStack.push({shouldReturnFrom:function(){return true},tokenize:r});t.tokenize=y;return t.tokenize(e,t)}}function w(e,t){var r=false,n;while((n=e.next())!=null){if(r&&n==">"){t.tokenize=g;break}r=n==="#"}return"comment"}function y(e,t){var r=e.peek();if(e.eat("{")){t.tokenize=M;return M(e,t)}else if(r!=undefined&&r.match(o)){e.eatWhile(o);t.tokenize=g;return"variable"}else{t.tokenize=g;return"error"}}function M(e,t){var r;while((r=e.next())!=null){if(r==="}"){t.tokenize=g;break}}return"variable"}function R(e,t){var r=t.startQuote;if(e.sol()&&e.match(new RegExp(r+"@"))){t.tokenize=g}else if(r==='"'){while(!e.eol()){var n=e.peek();if(n==="$"){t.tokenize=x;return"string"}e.next();if(n==="`"){e.next()}}}else{e.skipToEnd()}return"string"}const z={name:"powershell",startState:function(){return{returnStack:[],bracketNesting:0,tokenize:g}},token:function(e,t){return t.tokenize(e,t)},languageData:{commentTokens:{line:"#",block:{open:"<#",close:"#>"}}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/2254.55c69210925ec9b28dd9.js b/bootcamp/share/jupyter/lab/static/2254.55c69210925ec9b28dd9.js new file mode 100644 index 0000000..bd68124 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/2254.55c69210925ec9b28dd9.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2254],{52254:(O,e,t)=>{t.r(e);t.d(e,{json:()=>c,jsonLanguage:()=>i,jsonParseLinter:()=>P});var r=t(11705);var a=t(6016);const n=(0,a.styleTags)({String:a.tags.string,Number:a.tags.number,"True False":a.tags.bool,PropertyName:a.tags.propertyName,Null:a.tags["null"],",":a.tags.separator,"[ ]":a.tags.squareBracket,"{ }":a.tags.brace});const s=r.WQ.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#CjOOQO'#Cp'#CpQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CrOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59U,59UO!iQPO,59UOVQPO,59QOqQPO'#CkO!nQPO,59^OOQO1G.k1G.kOVQPO'#ClO!vQPO,59aOOQO1G.p1G.pOOQO1G.l1G.lOOQO,59V,59VOOQO-E6i-E6iOOQO,59W,59WOOQO-E6j-E6j",stateData:"#O~OcOS~OQSORSOSSOTSOWQO]ROePO~OVXOeUO~O[[O~PVOg^O~Oh_OVfX~OVaO~OhbO[iX~O[dO~Oh_OVfa~OhbO[ia~O",goto:"!kjPPPPPPkPPkqwPPk{!RPPP!XP!ePP!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName ] [ Array",maxTerm:25,nodeProps:[["openedBy",7,"{",12,"["],["closedBy",8,"}",13,"]"]],propSources:[n],skippedNodes:[0],repeatNodeCount:2,tokenData:"(p~RaXY!WYZ!W]^!Wpq!Wrs!]|}$i}!O$n!Q!R$w!R![&V![!]&h!}#O&m#P#Q&r#Y#Z&w#b#c'f#h#i'}#o#p(f#q#r(k~!]Oc~~!`Upq!]qr!]rs!rs#O!]#O#P!w#P~!]~!wOe~~!zXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#g~#jR!Q![#s!c!i#s#T#Z#s~#vR!Q![$P!c!i$P#T#Z$P~$SR!Q![$]!c!i$]#T#Z$]~$`R!Q![!]!c!i!]#T#Z!]~$nOh~~$qQ!Q!R$w!R![&V~$|RT~!O!P%V!g!h%k#X#Y%k~%YP!Q![%]~%bRT~!Q![%]!g!h%k#X#Y%k~%nR{|%w}!O%w!Q![%}~%zP!Q![%}~&SPT~!Q![%}~&[ST~!O!P%V!Q![&V!g!h%k#X#Y%k~&mOg~~&rO]~~&wO[~~&zP#T#U&}~'QP#`#a'T~'WP#g#h'Z~'^P#X#Y'a~'fOR~~'iP#i#j'l~'oP#`#a'r~'uP#`#a'x~'}OS~~(QP#f#g(T~(WP#i#j(Z~(^P#X#Y(a~(fOQ~~(kOW~~(pOV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});var o=t(24104);const P=()=>O=>{try{JSON.parse(O.state.doc.toString())}catch(e){if(!(e instanceof SyntaxError))throw e;const t=Q(e,O.state.doc);return[{from:t,message:e.message,severity:"error",to:t}]}return[]};function Q(O,e){let t;if(t=O.message.match(/at position (\d+)/))return Math.min(+t[1],e.length);if(t=O.message.match(/at line (\d+) column (\d+)/))return Math.min(e.line(+t[1]).from+ +t[2]-1,e.length);return 0}const i=o.LRLanguage.define({name:"json",parser:s.configure({props:[o.indentNodeProp.add({Object:(0,o.continuedIndent)({except:/^\s*\}/}),Array:(0,o.continuedIndent)({except:/^\s*\]/})}),o.foldNodeProp.add({"Object Array":o.foldInside})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});function c(){return new o.LanguageSupport(i)}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/2295.cda0f7182bf2a1a03c5a.js b/bootcamp/share/jupyter/lab/static/2295.cda0f7182bf2a1a03c5a.js new file mode 100644 index 0000000..8c12ca0 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/2295.cda0f7182bf2a1a03c5a.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2295],{22295:(e,t,r)=>{r.r(t);r.d(t,{ez80:()=>l,z80:()=>n});function i(e){var t,r;if(e){t=/^(exx?|(ld|cp)([di]r?)?|[lp]ea|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|[de]i|halt|im|in([di]mr?|ir?|irx|2r?)|ot(dmr?|[id]rx|imr?)|out(0?|[di]r?|[di]2r?)|tst(io)?|slp)(\.([sl]?i)?[sl])?\b/i;r=/^(((call|j[pr]|rst|ret[in]?)(\.([sl]?i)?[sl])?)|(rs|st)mix)\b/i}else{t=/^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i;r=/^(call|j[pr]|ret[in]?|b_?(call|jump))\b/i}var i=/^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i;var n=/^(n?[zc]|p[oe]?|m)\b/i;var l=/^([hl][xy]|i[xy][hl]|slia|sll)\b/i;var a=/^([\da-f]+h|[0-7]+o|[01]+b|\d+d?)\b/i;return{name:"z80",startState:function(){return{context:0}},token:function(s,c){if(!s.column())c.context=0;if(s.eatSpace())return null;var u;if(s.eatWhile(/\w/)){if(e&&s.eat(".")){s.eatWhile(/\w/)}u=s.current();if(s.indentation()){if((c.context==1||c.context==4)&&i.test(u)){c.context=4;return"variable"}if(c.context==2&&n.test(u)){c.context=4;return"variableName.special"}if(t.test(u)){c.context=1;return"keyword"}else if(r.test(u)){c.context=2;return"keyword"}else if(c.context==4&&a.test(u)){return"number"}if(l.test(u))return"error"}else if(s.match(a)){return"number"}else{return null}}else if(s.eat(";")){s.skipToEnd();return"comment"}else if(s.eat('"')){while(u=s.next()){if(u=='"')break;if(u=="\\")s.next()}return"string"}else if(s.eat("'")){if(s.match(/\\?.'/))return"number"}else if(s.eat(".")||s.sol()&&s.eat("#")){c.context=5;if(s.eatWhile(/\w/))return"def"}else if(s.eat("$")){if(s.eatWhile(/[\da-f]/i))return"number"}else if(s.eat("%")){if(s.eatWhile(/[01]/))return"number"}else{s.next()}return null}}}const n=i(false);const l=i(true)}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/2320.04abae549b19363c2fdd.js b/bootcamp/share/jupyter/lab/static/2320.04abae549b19363c2fdd.js new file mode 100644 index 0000000..be72efe --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/2320.04abae549b19363c2fdd.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2320],{12320:e=>{!function(t,i){if(true)e.exports=i();else{var s,r}}(self,(function(){return(()=>{"use strict";var e={4567:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AccessibilityManager=void 0;const s=i(9042),r=i(6114),n=i(9924),o=i(3656),a=i(844),h=i(5596),c=i(9631);class l extends a.Disposable{constructor(e,t){super(),this._terminal=e,this._renderService=t,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityTreeRoot=document.createElement("div"),this._accessibilityTreeRoot.classList.add("xterm-accessibility"),this._accessibilityTreeRoot.tabIndex=0,this._rowContainer=document.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let i=0;ithis._handleBoundaryFocus(e,0),this._bottomBoundaryFocusListener=e=>this._handleBoundaryFocus(e,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityTreeRoot.appendChild(this._rowContainer),this._renderRowsDebouncer=new n.TimeBasedDebouncer(this._renderRows.bind(this)),this._refreshRows(),this._liveRegion=document.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityTreeRoot.appendChild(this._liveRegion),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityTreeRoot),this.register(this._renderRowsDebouncer),this.register(this._terminal.onResize((e=>this._handleResize(e.rows)))),this.register(this._terminal.onRender((e=>this._refreshRows(e.start,e.end)))),this.register(this._terminal.onScroll((()=>this._refreshRows()))),this.register(this._terminal.onA11yChar((e=>this._handleChar(e)))),this.register(this._terminal.onLineFeed((()=>this._handleChar("\n")))),this.register(this._terminal.onA11yTab((e=>this._handleTab(e)))),this.register(this._terminal.onKey((e=>this._handleKey(e.key)))),this.register(this._terminal.onBlur((()=>this._clearLiveRegion()))),this.register(this._renderService.onDimensionsChange((()=>this._refreshRowsDimensions()))),this._screenDprMonitor=new h.ScreenDprMonitor(window),this.register(this._screenDprMonitor),this._screenDprMonitor.setListener((()=>this._refreshRowsDimensions())),this.register((0,o.addDisposableDomListener)(window,"resize",(()=>this._refreshRowsDimensions()))),this.register((0,a.toDisposable)((()=>{(0,c.removeElementFromParent)(this._accessibilityTreeRoot),this._rowElements.length=0})))}_handleBoundaryFocus(e,t){const i=e.target,s=this._rowElements[0===t?1:this._rowElements.length-2];if(i.getAttribute("aria-posinset")===(0===t?"1":`${this._terminal.buffer.lines.length}`))return;if(e.relatedTarget!==s)return;let r,n;if(0===t?(r=i,n=this._rowElements.pop(),this._rowContainer.removeChild(n)):(r=this._rowElements.shift(),n=i,this._rowContainer.removeChild(r)),r.removeEventListener("focus",this._topBoundaryFocusListener),n.removeEventListener("focus",this._bottomBoundaryFocusListener),0===t){const e=this._createAccessibilityTreeNode();this._rowElements.unshift(e),this._rowContainer.insertAdjacentElement("afterbegin",e)}else{const e=this._createAccessibilityTreeNode();this._rowElements.push(e),this._rowContainer.appendChild(e)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(0===t?-1:1),this._rowElements[0===t?1:this._rowElements.length-2].focus(),e.preventDefault(),e.stopImmediatePropagation()}_handleResize(e){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let t=this._rowContainer.children.length;te;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const e=document.createElement("div");return e.setAttribute("role","listitem"),e.tabIndex=-1,this._refreshRowDimensions(e),e}_handleTab(e){for(let t=0;t0?this._charsToConsume.shift()!==e&&(this._charsToAnnounce+=e):this._charsToAnnounce+=e,"\n"===e&&(this._liveRegionLineCount++,21===this._liveRegionLineCount&&(this._liveRegion.textContent+=s.tooMuchOutput)),r.isMac&&this._liveRegion.textContent&&this._liveRegion.textContent.length>0&&!this._liveRegion.parentNode&&setTimeout((()=>{this._accessibilityTreeRoot.appendChild(this._liveRegion)}),0))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0,r.isMac&&(0,c.removeElementFromParent)(this._liveRegion)}_handleKey(e){this._clearLiveRegion(),/\p{Control}/u.test(e)||this._charsToConsume.push(e)}_refreshRows(e,t){this._renderRowsDebouncer.refresh(e,t,this._terminal.rows)}_renderRows(e,t){const i=this._terminal.buffer,s=i.lines.length.toString();for(let r=e;r<=t;r++){const e=i.translateBufferLineToString(i.ydisp+r,!0),t=(i.ydisp+r+1).toString(),n=this._rowElements[r];n&&(0===e.length?n.innerText=" ":n.textContent=e,n.setAttribute("aria-posinset",t),n.setAttribute("aria-setsize",s))}this._announceCharacters()}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityTreeRoot.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let e=0;e{function i(e){return e.replace(/\r?\n/g,"\r")}function s(e,t){return t?"[200~"+e+"[201~":e}function r(e,t,r){e=s(e=i(e),r.decPrivateModes.bracketedPasteMode),r.triggerDataEvent(e,!0),t.value=""}function n(e,t,i){const s=i.getBoundingClientRect(),r=e.clientX-s.left-10,n=e.clientY-s.top-10;t.style.width="20px",t.style.height="20px",t.style.left=`${r}px`,t.style.top=`${n}px`,t.style.zIndex="1000",t.focus()}Object.defineProperty(t,"__esModule",{value:!0}),t.rightClickHandler=t.moveTextAreaUnderMouseCursor=t.paste=t.handlePasteEvent=t.copyHandler=t.bracketTextForPaste=t.prepareTextForTerminal=void 0,t.prepareTextForTerminal=i,t.bracketTextForPaste=s,t.copyHandler=function(e,t){e.clipboardData&&e.clipboardData.setData("text/plain",t.selectionText),e.preventDefault()},t.handlePasteEvent=function(e,t,i){e.stopPropagation(),e.clipboardData&&r(e.clipboardData.getData("text/plain"),t,i)},t.paste=r,t.moveTextAreaUnderMouseCursor=n,t.rightClickHandler=function(e,t,i,s,r){n(e,t,i),r&&s.rightClickSelect(e),t.value=s.selectionText,t.select()}},7239:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorContrastCache=void 0;const s=i(1505);t.ColorContrastCache=class{constructor(){this._color=new s.TwoKeyMap,this._css=new s.TwoKeyMap}setCss(e,t,i){this._css.set(e,t,i)}getCss(e,t){return this._css.get(e,t)}setColor(e,t,i){this._color.set(e,t,i)}getColor(e,t){return this._color.get(e,t)}clear(){this._color.clear(),this._css.clear()}}},9631:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.removeElementFromParent=void 0,t.removeElementFromParent=function(...e){var t;for(const i of e)null===(t=null==i?void 0:i.parentElement)||void 0===t||t.removeChild(i)}},3656:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=void 0,t.addDisposableDomListener=function(e,t,i,s){e.addEventListener(t,i,s);let r=!1;return{dispose:()=>{r||(r=!0,e.removeEventListener(t,i,s))}}}},6465:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Linkifier2=void 0;const n=i(2585),o=i(8460),a=i(844),h=i(3656);let c=class extends a.Disposable{constructor(e){super(),this._bufferService=e,this._linkProviders=[],this._linkCacheDisposables=[],this._isMouseOut=!0,this._activeLine=-1,this._onShowLinkUnderline=this.register(new o.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new o.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,a.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,a.toDisposable)((()=>{this._lastMouseEvent=void 0})))}get currentLink(){return this._currentLink}registerLinkProvider(e){return this._linkProviders.push(e),{dispose:()=>{const t=this._linkProviders.indexOf(e);-1!==t&&this._linkProviders.splice(t,1)}}}attachToDom(e,t,i){this._element=e,this._mouseService=t,this._renderService=i,this.register((0,h.addDisposableDomListener)(this._element,"mouseleave",(()=>{this._isMouseOut=!0,this._clearCurrentLink()}))),this.register((0,h.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,h.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,h.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(e){if(this._lastMouseEvent=e,!this._element||!this._mouseService)return;const t=this._positionFromMouseEvent(e,this._element,this._mouseService);if(!t)return;this._isMouseOut=!1;const i=e.composedPath();for(let s=0;s{null==e||e.forEach((e=>{e.link.dispose&&e.link.dispose()}))})),this._activeProviderReplies=new Map,this._activeLine=e.y);let r=!1;for(const[n,o]of this._linkProviders.entries())t?(null===(s=this._activeProviderReplies)||void 0===s?void 0:s.get(n))&&(r=this._checkLinkProviderResult(n,e,r)):o.provideLinks(e.y,(t=>{var i,s;if(this._isMouseOut)return;const o=null==t?void 0:t.map((e=>({link:e})));null===(i=this._activeProviderReplies)||void 0===i||i.set(n,o),r=this._checkLinkProviderResult(n,e,r),(null===(s=this._activeProviderReplies)||void 0===s?void 0:s.size)===this._linkProviders.length&&this._removeIntersectingLinks(e.y,this._activeProviderReplies)}))}_removeIntersectingLinks(e,t){const i=new Set;for(let s=0;se?this._bufferService.cols:s.link.range.end.x;for(let e=n;e<=o;e++){if(i.has(e)){r.splice(t--,1);break}i.add(e)}}}}_checkLinkProviderResult(e,t,i){var s;if(!this._activeProviderReplies)return i;const r=this._activeProviderReplies.get(e);let n=!1;for(let o=0;othis._linkAtPosition(e.link,t)));e&&(i=!0,this._handleNewLink(e))}if(this._activeProviderReplies.size===this._linkProviders.length&&!i)for(let o=0;othis._linkAtPosition(e.link,t)));if(e){i=!0,this._handleNewLink(e);break}}return i}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(e){if(!this._element||!this._mouseService||!this._currentLink)return;const t=this._positionFromMouseEvent(e,this._element,this._mouseService);t&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,t)&&this._currentLink.link.activate(e,this._currentLink.link.text)}_clearCurrentLink(e,t){this._element&&this._currentLink&&this._lastMouseEvent&&(!e||!t||this._currentLink.link.range.start.y>=e&&this._currentLink.link.range.end.y<=t)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,a.disposeArray)(this._linkCacheDisposables))}_handleNewLink(e){if(!this._element||!this._lastMouseEvent||!this._mouseService)return;const t=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);t&&this._linkAtPosition(e.link,t)&&(this._currentLink=e,this._currentLink.state={decorations:{underline:void 0===e.link.decorations||e.link.decorations.underline,pointerCursor:void 0===e.link.decorations||e.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,e.link,this._lastMouseEvent),e.link.decorations={},Object.defineProperties(e.link.decorations,{pointerCursor:{get:()=>{var e,t;return null===(t=null===(e=this._currentLink)||void 0===e?void 0:e.state)||void 0===t?void 0:t.decorations.pointerCursor},set:e=>{var t,i;(null===(t=this._currentLink)||void 0===t?void 0:t.state)&&this._currentLink.state.decorations.pointerCursor!==e&&(this._currentLink.state.decorations.pointerCursor=e,this._currentLink.state.isHovered&&(null===(i=this._element)||void 0===i||i.classList.toggle("xterm-cursor-pointer",e)))}},underline:{get:()=>{var e,t;return null===(t=null===(e=this._currentLink)||void 0===e?void 0:e.state)||void 0===t?void 0:t.decorations.underline},set:t=>{var i,s,r;(null===(i=this._currentLink)||void 0===i?void 0:i.state)&&(null===(r=null===(s=this._currentLink)||void 0===s?void 0:s.state)||void 0===r?void 0:r.decorations.underline)!==t&&(this._currentLink.state.decorations.underline=t,this._currentLink.state.isHovered&&this._fireUnderlineEvent(e.link,t))}}}),this._renderService&&this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange((e=>{const t=0===e.start?0:e.start+1+this._bufferService.buffer.ydisp,i=this._currentLink?this._lastMouseEvent:void 0;if(this._clearCurrentLink(t,e.end+1+this._bufferService.buffer.ydisp),i&&this._element){const e=this._positionFromMouseEvent(i,this._element,this._mouseService);e&&this._askForLink(e,!1)}}))))}_linkHover(e,t,i){var s;(null===(s=this._currentLink)||void 0===s?void 0:s.state)&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!0),this._currentLink.state.decorations.pointerCursor&&e.classList.add("xterm-cursor-pointer")),t.hover&&t.hover(i,t.text)}_fireUnderlineEvent(e,t){const i=e.range,s=this._bufferService.buffer.ydisp,r=this._createLinkUnderlineEvent(i.start.x-1,i.start.y-s-1,i.end.x,i.end.y-s-1,void 0);(t?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(r)}_linkLeave(e,t,i){var s;(null===(s=this._currentLink)||void 0===s?void 0:s.state)&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(t,!1),this._currentLink.state.decorations.pointerCursor&&e.classList.remove("xterm-cursor-pointer")),t.leave&&t.leave(i,t.text)}_linkAtPosition(e,t){const i=e.range.start.y*this._bufferService.cols+e.range.start.x,s=e.range.end.y*this._bufferService.cols+e.range.end.x,r=t.y*this._bufferService.cols+t.x;return i<=r&&r<=s}_positionFromMouseEvent(e,t,i){const s=i.getCoords(e,t,this._bufferService.cols,this._bufferService.rows);if(s)return{x:s[0],y:s[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(e,t,i,s,r){return{x1:e,y1:t,x2:i,y2:s,cols:this._bufferService.cols,fg:r}}};c=s([r(0,n.IBufferService)],c),t.Linkifier2=c},9042:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.tooMuchOutput=t.promptLabel=void 0,t.promptLabel="Terminal input",t.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OscLinkProvider=void 0;const n=i(511),o=i(2585);let a=class{constructor(e,t,i){this._bufferService=e,this._optionsService=t,this._oscLinkService=i}provideLinks(e,t){var i;const s=this._bufferService.buffer.lines.get(e-1);if(!s)return void t(void 0);const r=[],o=this._optionsService.rawOptions.linkHandler,a=new n.CellData,c=s.getTrimmedLength();let l=-1,d=-1,_=!1;for(let n=0;no?o.activate(e,t,i):h(0,t),hover:(e,t)=>{var s;return null===(s=null==o?void 0:o.hover)||void 0===s?void 0:s.call(o,e,t,i)},leave:(e,t)=>{var s;return null===(s=null==o?void 0:o.leave)||void 0===s?void 0:s.call(o,e,t,i)}})}_=!1,a.hasExtendedAttrs()&&a.extended.urlId?(d=n,l=a.extended.urlId):(d=-1,l=-1)}}t(r)}};function h(e,t){if(confirm(`Do you want to navigate to ${t}?\n\nWARNING: This link could potentially be dangerous`)){const i=window.open();if(i){try{i.opener=null}catch(e){}i.location.href=t}else console.warn("Opening link blocked as opener could not be cleared")}}a=s([r(0,o.IBufferService),r(1,o.IOptionsService),r(2,o.IOscLinkService)],a),t.OscLinkProvider=a},6193:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RenderDebouncer=void 0,t.RenderDebouncer=class{constructor(e,t){this._parentWindow=e,this._renderCallback=t,this._refreshCallbacks=[]}dispose(){this._animationFrame&&(this._parentWindow.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}addRefreshCallback(e){return this._refreshCallbacks.push(e),this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame((()=>this._innerRefresh()))),this._animationFrame}refresh(e,t,i){this._rowCount=i,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t,this._animationFrame||(this._animationFrame=this._parentWindow.requestAnimationFrame((()=>this._innerRefresh())))}_innerRefresh(){if(this._animationFrame=void 0,void 0===this._rowStart||void 0===this._rowEnd||void 0===this._rowCount)return void this._runRefreshCallbacks();const e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t),this._runRefreshCallbacks()}_runRefreshCallbacks(){for(const e of this._refreshCallbacks)e(0);this._refreshCallbacks=[]}}},5596:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ScreenDprMonitor=void 0;const s=i(844);class r extends s.Disposable{constructor(e){super(),this._parentWindow=e,this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this.register((0,s.toDisposable)((()=>{this.clearListener()})))}setListener(e){this._listener&&this.clearListener(),this._listener=e,this._outerListener=()=>{this._listener&&(this._listener(this._parentWindow.devicePixelRatio,this._currentDevicePixelRatio),this._updateDpr())},this._updateDpr()}_updateDpr(){var e;this._outerListener&&(null===(e=this._resolutionMediaMatchList)||void 0===e||e.removeListener(this._outerListener),this._currentDevicePixelRatio=this._parentWindow.devicePixelRatio,this._resolutionMediaMatchList=this._parentWindow.matchMedia(`screen and (resolution: ${this._parentWindow.devicePixelRatio}dppx)`),this._resolutionMediaMatchList.addListener(this._outerListener))}clearListener(){this._resolutionMediaMatchList&&this._listener&&this._outerListener&&(this._resolutionMediaMatchList.removeListener(this._outerListener),this._resolutionMediaMatchList=void 0,this._listener=void 0,this._outerListener=void 0)}}t.ScreenDprMonitor=r},3236:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Terminal=void 0;const s=i(2950),r=i(1680),n=i(3614),o=i(2584),a=i(5435),h=i(9312),c=i(6114),l=i(3656),d=i(9042),_=i(4567),u=i(1296),f=i(7399),v=i(8460),g=i(8437),p=i(3230),S=i(4725),m=i(428),C=i(8934),b=i(6465),y=i(5114),w=i(8969),E=i(8055),L=i(4269),k=i(5941),R=i(3107),D=i(5744),A=i(9074),x=i(2585),B=i(3730),T=i(844),M=i(6731),O="undefined"!=typeof window?window.document:null;class I extends w.CoreTerminal{constructor(e={}){super(e),this.browser=c,this._keyDownHandled=!1,this._keyDownSeen=!1,this._keyPressHandled=!1,this._unprocessedDeadKey=!1,this._onCursorMove=this.register(new v.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onKey=this.register(new v.EventEmitter),this.onKey=this._onKey.event,this._onRender=this.register(new v.EventEmitter),this.onRender=this._onRender.event,this._onSelectionChange=this.register(new v.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onTitleChange=this.register(new v.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onBell=this.register(new v.EventEmitter),this.onBell=this._onBell.event,this._onFocus=this.register(new v.EventEmitter),this._onBlur=this.register(new v.EventEmitter),this._onA11yCharEmitter=this.register(new v.EventEmitter),this._onA11yTabEmitter=this.register(new v.EventEmitter),this._onWillOpen=this.register(new v.EventEmitter),this._setup(),this.linkifier2=this.register(this._instantiationService.createInstance(b.Linkifier2)),this.linkifier2.registerLinkProvider(this._instantiationService.createInstance(B.OscLinkProvider)),this._decorationService=this._instantiationService.createInstance(A.DecorationService),this._instantiationService.setService(x.IDecorationService,this._decorationService),this.register(this._inputHandler.onRequestBell((()=>this._onBell.fire()))),this.register(this._inputHandler.onRequestRefreshRows(((e,t)=>this.refresh(e,t)))),this.register(this._inputHandler.onRequestSendFocus((()=>this._reportFocus()))),this.register(this._inputHandler.onRequestReset((()=>this.reset()))),this.register(this._inputHandler.onRequestWindowsOptionsReport((e=>this._reportWindowsOptions(e)))),this.register(this._inputHandler.onColor((e=>this._handleColorEvent(e)))),this.register((0,v.forwardEvent)(this._inputHandler.onCursorMove,this._onCursorMove)),this.register((0,v.forwardEvent)(this._inputHandler.onTitleChange,this._onTitleChange)),this.register((0,v.forwardEvent)(this._inputHandler.onA11yChar,this._onA11yCharEmitter)),this.register((0,v.forwardEvent)(this._inputHandler.onA11yTab,this._onA11yTabEmitter)),this.register(this._bufferService.onResize((e=>this._afterResize(e.cols,e.rows)))),this.register((0,T.toDisposable)((()=>{var e,t;this._customKeyEventHandler=void 0,null===(t=null===(e=this.element)||void 0===e?void 0:e.parentNode)||void 0===t||t.removeChild(this.element)})))}get onFocus(){return this._onFocus.event}get onBlur(){return this._onBlur.event}get onA11yChar(){return this._onA11yCharEmitter.event}get onA11yTab(){return this._onA11yTabEmitter.event}get onWillOpen(){return this._onWillOpen.event}_handleColorEvent(e){if(this._themeService)for(const t of e){let e,i="";switch(t.index){case 256:e="foreground",i="10";break;case 257:e="background",i="11";break;case 258:e="cursor",i="12";break;default:e="ansi",i="4;"+t.index}switch(t.type){case 0:const s=E.color.toColorRGB("ansi"===e?this._themeService.colors.ansi[t.index]:this._themeService.colors[e]);this.coreService.triggerDataEvent(`${o.C0.ESC}]${i};${(0,k.toRgbString)(s)}${o.C1_ESCAPED.ST}`);break;case 1:if("ansi"===e)this._themeService.modifyColors((e=>e.ansi[t.index]=E.rgba.toColor(...t.color)));else{const i=e;this._themeService.modifyColors((e=>e[i]=E.rgba.toColor(...t.color)))}break;case 2:this._themeService.restoreColor(t.index)}}}_setup(){super._setup(),this._customKeyEventHandler=void 0}get buffer(){return this.buffers.active}focus(){this.textarea&&this.textarea.focus({preventScroll:!0})}_handleScreenReaderModeOptionChange(e){var t;e?!this._accessibilityManager&&this._renderService&&(this._accessibilityManager=new _.AccessibilityManager(this,this._renderService)):(null===(t=this._accessibilityManager)||void 0===t||t.dispose(),this._accessibilityManager=void 0)}_handleTextAreaFocus(e){this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(o.C0.ESC+"[I"),this.updateCursorStyle(e),this.element.classList.add("focus"),this._showCursor(),this._onFocus.fire()}blur(){var e;return null===(e=this.textarea)||void 0===e?void 0:e.blur()}_handleTextAreaBlur(){this.textarea.value="",this.refresh(this.buffer.y,this.buffer.y),this.coreService.decPrivateModes.sendFocus&&this.coreService.triggerDataEvent(o.C0.ESC+"[O"),this.element.classList.remove("focus"),this._onBlur.fire()}_syncTextArea(){if(!this.textarea||!this.buffer.isCursorInViewport||this._compositionHelper.isComposing||!this._renderService)return;const e=this.buffer.ybase+this.buffer.y,t=this.buffer.lines.get(e);if(!t)return;const i=Math.min(this.buffer.x,this.cols-1),s=this._renderService.dimensions.css.cell.height,r=t.getWidth(i),n=this._renderService.dimensions.css.cell.width*r,o=this.buffer.y*this._renderService.dimensions.css.cell.height,a=i*this._renderService.dimensions.css.cell.width;this.textarea.style.left=a+"px",this.textarea.style.top=o+"px",this.textarea.style.width=n+"px",this.textarea.style.height=s+"px",this.textarea.style.lineHeight=s+"px",this.textarea.style.zIndex="-5"}_initGlobal(){this._bindKeys(),this.register((0,l.addDisposableDomListener)(this.element,"copy",(e=>{this.hasSelection()&&(0,n.copyHandler)(e,this._selectionService)})));const e=e=>(0,n.handlePasteEvent)(e,this.textarea,this.coreService);this.register((0,l.addDisposableDomListener)(this.textarea,"paste",e)),this.register((0,l.addDisposableDomListener)(this.element,"paste",e)),c.isFirefox?this.register((0,l.addDisposableDomListener)(this.element,"mousedown",(e=>{2===e.button&&(0,n.rightClickHandler)(e,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)}))):this.register((0,l.addDisposableDomListener)(this.element,"contextmenu",(e=>{(0,n.rightClickHandler)(e,this.textarea,this.screenElement,this._selectionService,this.options.rightClickSelectsWord)}))),c.isLinux&&this.register((0,l.addDisposableDomListener)(this.element,"auxclick",(e=>{1===e.button&&(0,n.moveTextAreaUnderMouseCursor)(e,this.textarea,this.screenElement)})))}_bindKeys(){this.register((0,l.addDisposableDomListener)(this.textarea,"keyup",(e=>this._keyUp(e)),!0)),this.register((0,l.addDisposableDomListener)(this.textarea,"keydown",(e=>this._keyDown(e)),!0)),this.register((0,l.addDisposableDomListener)(this.textarea,"keypress",(e=>this._keyPress(e)),!0)),this.register((0,l.addDisposableDomListener)(this.textarea,"compositionstart",(()=>this._compositionHelper.compositionstart()))),this.register((0,l.addDisposableDomListener)(this.textarea,"compositionupdate",(e=>this._compositionHelper.compositionupdate(e)))),this.register((0,l.addDisposableDomListener)(this.textarea,"compositionend",(()=>this._compositionHelper.compositionend()))),this.register((0,l.addDisposableDomListener)(this.textarea,"input",(e=>this._inputEvent(e)),!0)),this.register(this.onRender((()=>this._compositionHelper.updateCompositionElements())))}open(e){var t;if(!e)throw new Error("Terminal requires a parent element.");e.isConnected||this._logService.debug("Terminal.open was called on an element that was not attached to the DOM"),this._document=e.ownerDocument,this.element=this._document.createElement("div"),this.element.dir="ltr",this.element.classList.add("terminal"),this.element.classList.add("xterm"),this.element.setAttribute("tabindex","0"),e.appendChild(this.element);const i=O.createDocumentFragment();this._viewportElement=O.createElement("div"),this._viewportElement.classList.add("xterm-viewport"),i.appendChild(this._viewportElement),this._viewportScrollArea=O.createElement("div"),this._viewportScrollArea.classList.add("xterm-scroll-area"),this._viewportElement.appendChild(this._viewportScrollArea),this.screenElement=O.createElement("div"),this.screenElement.classList.add("xterm-screen"),this._helperContainer=O.createElement("div"),this._helperContainer.classList.add("xterm-helpers"),this.screenElement.appendChild(this._helperContainer),i.appendChild(this.screenElement),this.textarea=O.createElement("textarea"),this.textarea.classList.add("xterm-helper-textarea"),this.textarea.setAttribute("aria-label",d.promptLabel),c.isChromeOS||this.textarea.setAttribute("aria-multiline","false"),this.textarea.setAttribute("autocorrect","off"),this.textarea.setAttribute("autocapitalize","off"),this.textarea.setAttribute("spellcheck","false"),this.textarea.tabIndex=0,this._coreBrowserService=this._instantiationService.createInstance(y.CoreBrowserService,this.textarea,null!==(t=this._document.defaultView)&&void 0!==t?t:window),this._instantiationService.setService(S.ICoreBrowserService,this._coreBrowserService),this.register((0,l.addDisposableDomListener)(this.textarea,"focus",(e=>this._handleTextAreaFocus(e)))),this.register((0,l.addDisposableDomListener)(this.textarea,"blur",(()=>this._handleTextAreaBlur()))),this._helperContainer.appendChild(this.textarea),this._charSizeService=this._instantiationService.createInstance(m.CharSizeService,this._document,this._helperContainer),this._instantiationService.setService(S.ICharSizeService,this._charSizeService),this._themeService=this._instantiationService.createInstance(M.ThemeService),this._instantiationService.setService(S.IThemeService,this._themeService),this._characterJoinerService=this._instantiationService.createInstance(L.CharacterJoinerService),this._instantiationService.setService(S.ICharacterJoinerService,this._characterJoinerService),this._renderService=this.register(this._instantiationService.createInstance(p.RenderService,this.rows,this.screenElement)),this._instantiationService.setService(S.IRenderService,this._renderService),this.register(this._renderService.onRenderedViewportChange((e=>this._onRender.fire(e)))),this.onResize((e=>this._renderService.resize(e.cols,e.rows))),this._compositionView=O.createElement("div"),this._compositionView.classList.add("composition-view"),this._compositionHelper=this._instantiationService.createInstance(s.CompositionHelper,this.textarea,this._compositionView),this._helperContainer.appendChild(this._compositionView),this.element.appendChild(i);try{this._onWillOpen.fire(this.element)}catch(e){}this._renderService.hasRenderer()||this._renderService.setRenderer(this._createRenderer()),this._mouseService=this._instantiationService.createInstance(C.MouseService),this._instantiationService.setService(S.IMouseService,this._mouseService),this.viewport=this._instantiationService.createInstance(r.Viewport,(e=>this.scrollLines(e,!0,1)),this._viewportElement,this._viewportScrollArea),this.register(this._inputHandler.onRequestSyncScrollBar((()=>this.viewport.syncScrollArea()))),this.register(this.viewport),this.register(this.onCursorMove((()=>{this._renderService.handleCursorMove(),this._syncTextArea()}))),this.register(this.onResize((()=>this._renderService.handleResize(this.cols,this.rows)))),this.register(this.onBlur((()=>this._renderService.handleBlur()))),this.register(this.onFocus((()=>this._renderService.handleFocus()))),this.register(this._renderService.onDimensionsChange((()=>this.viewport.syncScrollArea()))),this._selectionService=this.register(this._instantiationService.createInstance(h.SelectionService,this.element,this.screenElement,this.linkifier2)),this._instantiationService.setService(S.ISelectionService,this._selectionService),this.register(this._selectionService.onRequestScrollLines((e=>this.scrollLines(e.amount,e.suppressScrollEvent)))),this.register(this._selectionService.onSelectionChange((()=>this._onSelectionChange.fire()))),this.register(this._selectionService.onRequestRedraw((e=>this._renderService.handleSelectionChanged(e.start,e.end,e.columnSelectMode)))),this.register(this._selectionService.onLinuxMouseSelection((e=>{this.textarea.value=e,this.textarea.focus(),this.textarea.select()}))),this.register(this._onScroll.event((e=>{this.viewport.syncScrollArea(),this._selectionService.refresh()}))),this.register((0,l.addDisposableDomListener)(this._viewportElement,"scroll",(()=>this._selectionService.refresh()))),this.linkifier2.attachToDom(this.screenElement,this._mouseService,this._renderService),this.register(this._instantiationService.createInstance(R.BufferDecorationRenderer,this.screenElement)),this.register((0,l.addDisposableDomListener)(this.element,"mousedown",(e=>this._selectionService.handleMouseDown(e)))),this.coreMouseService.areMouseEventsActive?(this._selectionService.disable(),this.element.classList.add("enable-mouse-events")):this._selectionService.enable(),this.options.screenReaderMode&&(this._accessibilityManager=new _.AccessibilityManager(this,this._renderService)),this.register(this.optionsService.onSpecificOptionChange("screenReaderMode",(e=>this._handleScreenReaderModeOptionChange(e)))),this.options.overviewRulerWidth&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(D.OverviewRulerRenderer,this._viewportElement,this.screenElement))),this.optionsService.onSpecificOptionChange("overviewRulerWidth",(e=>{!this._overviewRulerRenderer&&e&&this._viewportElement&&this.screenElement&&(this._overviewRulerRenderer=this.register(this._instantiationService.createInstance(D.OverviewRulerRenderer,this._viewportElement,this.screenElement)))})),this._charSizeService.measure(),this.refresh(0,this.rows-1),this._initGlobal(),this.bindMouse()}_createRenderer(){return this._instantiationService.createInstance(u.DomRenderer,this.element,this.screenElement,this._viewportElement,this.linkifier2)}bindMouse(){const e=this,t=this.element;function i(t){const i=e._mouseService.getMouseReportCoords(t,e.screenElement);if(!i)return!1;let s,r;switch(t.overrideType||t.type){case"mousemove":r=32,void 0===t.buttons?(s=3,void 0!==t.button&&(s=t.button<3?t.button:3)):s=1&t.buttons?0:4&t.buttons?1:2&t.buttons?2:3;break;case"mouseup":r=0,s=t.button<3?t.button:3;break;case"mousedown":r=1,s=t.button<3?t.button:3;break;case"wheel":if(0===e.viewport.getLinesScrolled(t))return!1;r=t.deltaY<0?0:1,s=4;break;default:return!1}return!(void 0===r||void 0===s||s>4)&&e.coreMouseService.triggerMouseEvent({col:i.col,row:i.row,x:i.x,y:i.y,button:s,action:r,ctrl:t.ctrlKey,alt:t.altKey,shift:t.shiftKey})}const s={mouseup:null,wheel:null,mousedrag:null,mousemove:null},r={mouseup:e=>(i(e),e.buttons||(this._document.removeEventListener("mouseup",s.mouseup),s.mousedrag&&this._document.removeEventListener("mousemove",s.mousedrag)),this.cancel(e)),wheel:e=>(i(e),this.cancel(e,!0)),mousedrag:e=>{e.buttons&&i(e)},mousemove:e=>{e.buttons||i(e)}};this.register(this.coreMouseService.onProtocolChange((e=>{e?("debug"===this.optionsService.rawOptions.logLevel&&this._logService.debug("Binding to mouse events:",this.coreMouseService.explainEvents(e)),this.element.classList.add("enable-mouse-events"),this._selectionService.disable()):(this._logService.debug("Unbinding from mouse events."),this.element.classList.remove("enable-mouse-events"),this._selectionService.enable()),8&e?s.mousemove||(t.addEventListener("mousemove",r.mousemove),s.mousemove=r.mousemove):(t.removeEventListener("mousemove",s.mousemove),s.mousemove=null),16&e?s.wheel||(t.addEventListener("wheel",r.wheel,{passive:!1}),s.wheel=r.wheel):(t.removeEventListener("wheel",s.wheel),s.wheel=null),2&e?s.mouseup||(s.mouseup=r.mouseup):(this._document.removeEventListener("mouseup",s.mouseup),s.mouseup=null),4&e?s.mousedrag||(s.mousedrag=r.mousedrag):(this._document.removeEventListener("mousemove",s.mousedrag),s.mousedrag=null)}))),this.coreMouseService.activeProtocol=this.coreMouseService.activeProtocol,this.register((0,l.addDisposableDomListener)(t,"mousedown",(e=>{if(e.preventDefault(),this.focus(),this.coreMouseService.areMouseEventsActive&&!this._selectionService.shouldForceSelection(e))return i(e),s.mouseup&&this._document.addEventListener("mouseup",s.mouseup),s.mousedrag&&this._document.addEventListener("mousemove",s.mousedrag),this.cancel(e)}))),this.register((0,l.addDisposableDomListener)(t,"wheel",(e=>{if(!s.wheel){if(!this.buffer.hasScrollback){const t=this.viewport.getLinesScrolled(e);if(0===t)return;const i=o.C0.ESC+(this.coreService.decPrivateModes.applicationCursorKeys?"O":"[")+(e.deltaY<0?"A":"B");let s="";for(let e=0;e{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchStart(e),this.cancel(e)}),{passive:!0})),this.register((0,l.addDisposableDomListener)(t,"touchmove",(e=>{if(!this.coreMouseService.areMouseEventsActive)return this.viewport.handleTouchMove(e)?void 0:this.cancel(e)}),{passive:!1}))}refresh(e,t){var i;null===(i=this._renderService)||void 0===i||i.refreshRows(e,t)}updateCursorStyle(e){var t;(null===(t=this._selectionService)||void 0===t?void 0:t.shouldColumnSelect(e))?this.element.classList.add("column-select"):this.element.classList.remove("column-select")}_showCursor(){this.coreService.isCursorInitialized||(this.coreService.isCursorInitialized=!0,this.refresh(this.buffer.y,this.buffer.y))}scrollLines(e,t,i=0){super.scrollLines(e,t,i),this.refresh(0,this.rows-1)}paste(e){(0,n.paste)(e,this.textarea,this.coreService)}attachCustomKeyEventHandler(e){this._customKeyEventHandler=e}registerLinkProvider(e){return this.linkifier2.registerLinkProvider(e)}registerCharacterJoiner(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");const t=this._characterJoinerService.register(e);return this.refresh(0,this.rows-1),t}deregisterCharacterJoiner(e){if(!this._characterJoinerService)throw new Error("Terminal must be opened first");this._characterJoinerService.deregister(e)&&this.refresh(0,this.rows-1)}get markers(){return this.buffer.markers}addMarker(e){return this.buffer.addMarker(this.buffer.ybase+this.buffer.y+e)}registerDecoration(e){return this._decorationService.registerDecoration(e)}hasSelection(){return!!this._selectionService&&this._selectionService.hasSelection}select(e,t,i){this._selectionService.setSelection(e,t,i)}getSelection(){return this._selectionService?this._selectionService.selectionText:""}getSelectionPosition(){if(this._selectionService&&this._selectionService.hasSelection)return{start:{x:this._selectionService.selectionStart[0],y:this._selectionService.selectionStart[1]},end:{x:this._selectionService.selectionEnd[0],y:this._selectionService.selectionEnd[1]}}}clearSelection(){var e;null===(e=this._selectionService)||void 0===e||e.clearSelection()}selectAll(){var e;null===(e=this._selectionService)||void 0===e||e.selectAll()}selectLines(e,t){var i;null===(i=this._selectionService)||void 0===i||i.selectLines(e,t)}_keyDown(e){if(this._keyDownHandled=!1,this._keyDownSeen=!0,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;const t=this.browser.isMac&&this.options.macOptionIsMeta&&e.altKey;if(!t&&!this._compositionHelper.keydown(e))return this.options.scrollOnUserInput&&this.buffer.ybase!==this.buffer.ydisp&&this._bufferService.scrollToBottom(),!1;t||"Dead"!==e.key&&"AltGraph"!==e.key||(this._unprocessedDeadKey=!0);const i=(0,f.evaluateKeyboardEvent)(e,this.coreService.decPrivateModes.applicationCursorKeys,this.browser.isMac,this.options.macOptionIsMeta);if(this.updateCursorStyle(e),3===i.type||2===i.type){const t=this.rows-1;return this.scrollLines(2===i.type?-t:t),this.cancel(e,!0)}return 1===i.type&&this.selectAll(),!!this._isThirdLevelShift(this.browser,e)||(i.cancel&&this.cancel(e,!0),!i.key||!!(e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&1===e.key.length&&e.key.charCodeAt(0)>=65&&e.key.charCodeAt(0)<=90)||(this._unprocessedDeadKey?(this._unprocessedDeadKey=!1,!0):(i.key!==o.C0.ETX&&i.key!==o.C0.CR||(this.textarea.value=""),this._onKey.fire({key:i.key,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(i.key,!0),!this.optionsService.rawOptions.screenReaderMode||e.altKey||e.ctrlKey?this.cancel(e,!0):void(this._keyDownHandled=!0))))}_isThirdLevelShift(e,t){const i=e.isMac&&!this.options.macOptionIsMeta&&t.altKey&&!t.ctrlKey&&!t.metaKey||e.isWindows&&t.altKey&&t.ctrlKey&&!t.metaKey||e.isWindows&&t.getModifierState("AltGraph");return"keypress"===t.type?i:i&&(!t.keyCode||t.keyCode>47)}_keyUp(e){this._keyDownSeen=!1,this._customKeyEventHandler&&!1===this._customKeyEventHandler(e)||(function(e){return 16===e.keyCode||17===e.keyCode||18===e.keyCode}(e)||this.focus(),this.updateCursorStyle(e),this._keyPressHandled=!1)}_keyPress(e){let t;if(this._keyPressHandled=!1,this._keyDownHandled)return!1;if(this._customKeyEventHandler&&!1===this._customKeyEventHandler(e))return!1;if(this.cancel(e),e.charCode)t=e.charCode;else if(null===e.which||void 0===e.which)t=e.keyCode;else{if(0===e.which||0===e.charCode)return!1;t=e.which}return!(!t||(e.altKey||e.ctrlKey||e.metaKey)&&!this._isThirdLevelShift(this.browser,e)||(t=String.fromCharCode(t),this._onKey.fire({key:t,domEvent:e}),this._showCursor(),this.coreService.triggerDataEvent(t,!0),this._keyPressHandled=!0,this._unprocessedDeadKey=!1,0))}_inputEvent(e){if(e.data&&"insertText"===e.inputType&&(!e.composed||!this._keyDownSeen)&&!this.optionsService.rawOptions.screenReaderMode){if(this._keyPressHandled)return!1;this._unprocessedDeadKey=!1;const t=e.data;return this.coreService.triggerDataEvent(t,!0),this.cancel(e),!0}return!1}resize(e,t){e!==this.cols||t!==this.rows?super.resize(e,t):this._charSizeService&&!this._charSizeService.hasValidSize&&this._charSizeService.measure()}_afterResize(e,t){var i,s;null===(i=this._charSizeService)||void 0===i||i.measure(),null===(s=this.viewport)||void 0===s||s.syncScrollArea(!0)}clear(){if(0!==this.buffer.ybase||0!==this.buffer.y){this.buffer.clearAllMarkers(),this.buffer.lines.set(0,this.buffer.lines.get(this.buffer.ybase+this.buffer.y)),this.buffer.lines.length=1,this.buffer.ydisp=0,this.buffer.ybase=0,this.buffer.y=0;for(let e=1;e{Object.defineProperty(t,"__esModule",{value:!0}),t.TimeBasedDebouncer=void 0,t.TimeBasedDebouncer=class{constructor(e,t=1e3){this._renderCallback=e,this._debounceThresholdMS=t,this._lastRefreshMs=0,this._additionalRefreshRequested=!1}dispose(){this._refreshTimeoutID&&clearTimeout(this._refreshTimeoutID)}refresh(e,t,i){this._rowCount=i,e=void 0!==e?e:0,t=void 0!==t?t:this._rowCount-1,this._rowStart=void 0!==this._rowStart?Math.min(this._rowStart,e):e,this._rowEnd=void 0!==this._rowEnd?Math.max(this._rowEnd,t):t;const s=Date.now();if(s-this._lastRefreshMs>=this._debounceThresholdMS)this._lastRefreshMs=s,this._innerRefresh();else if(!this._additionalRefreshRequested){const e=s-this._lastRefreshMs,t=this._debounceThresholdMS-e;this._additionalRefreshRequested=!0,this._refreshTimeoutID=window.setTimeout((()=>{this._lastRefreshMs=Date.now(),this._innerRefresh(),this._additionalRefreshRequested=!1,this._refreshTimeoutID=void 0}),t)}}_innerRefresh(){if(void 0===this._rowStart||void 0===this._rowEnd||void 0===this._rowCount)return;const e=Math.max(this._rowStart,0),t=Math.min(this._rowEnd,this._rowCount-1);this._rowStart=void 0,this._rowEnd=void 0,this._renderCallback(e,t)}}},1680:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.Viewport=void 0;const n=i(844),o=i(3656),a=i(4725),h=i(2585);let c=class extends n.Disposable{constructor(e,t,i,s,r,n,a,h,c){super(),this._scrollLines=e,this._viewportElement=t,this._scrollArea=i,this._bufferService=s,this._optionsService=r,this._charSizeService=n,this._renderService=a,this._coreBrowserService=h,this.scrollBarWidth=0,this._currentRowHeight=0,this._currentDeviceCellHeight=0,this._lastRecordedBufferLength=0,this._lastRecordedViewportHeight=0,this._lastRecordedBufferHeight=0,this._lastTouchY=0,this._lastScrollTop=0,this._wheelPartialScroll=0,this._refreshAnimationFrame=null,this._ignoreNextScrollEvent=!1,this._smoothScrollState={startTime:0,origin:-1,target:-1},this.scrollBarWidth=this._viewportElement.offsetWidth-this._scrollArea.offsetWidth||15,this.register((0,o.addDisposableDomListener)(this._viewportElement,"scroll",this._handleScroll.bind(this))),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate((e=>this._activeBuffer=e.activeBuffer))),this._renderDimensions=this._renderService.dimensions,this.register(this._renderService.onDimensionsChange((e=>this._renderDimensions=e))),this._handleThemeChange(c.colors),this.register(c.onChangeColors((e=>this._handleThemeChange(e)))),this.register(this._optionsService.onSpecificOptionChange("scrollback",(()=>this.syncScrollArea()))),setTimeout((()=>this.syncScrollArea()),0)}_handleThemeChange(e){this._viewportElement.style.backgroundColor=e.background.css}_refresh(e){if(e)return this._innerRefresh(),void(null!==this._refreshAnimationFrame&&this._coreBrowserService.window.cancelAnimationFrame(this._refreshAnimationFrame));null===this._refreshAnimationFrame&&(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._innerRefresh())))}_innerRefresh(){if(this._charSizeService.height>0){this._currentRowHeight=this._renderService.dimensions.device.cell.height/this._coreBrowserService.dpr,this._currentDeviceCellHeight=this._renderService.dimensions.device.cell.height,this._lastRecordedViewportHeight=this._viewportElement.offsetHeight;const e=Math.round(this._currentRowHeight*this._lastRecordedBufferLength)+(this._lastRecordedViewportHeight-this._renderService.dimensions.css.canvas.height);this._lastRecordedBufferHeight!==e&&(this._lastRecordedBufferHeight=e,this._scrollArea.style.height=this._lastRecordedBufferHeight+"px")}const e=this._bufferService.buffer.ydisp*this._currentRowHeight;this._viewportElement.scrollTop!==e&&(this._ignoreNextScrollEvent=!0,this._viewportElement.scrollTop=e),this._refreshAnimationFrame=null}syncScrollArea(e=!1){if(this._lastRecordedBufferLength!==this._bufferService.buffer.lines.length)return this._lastRecordedBufferLength=this._bufferService.buffer.lines.length,void this._refresh(e);this._lastRecordedViewportHeight===this._renderService.dimensions.css.canvas.height&&this._lastScrollTop===this._activeBuffer.ydisp*this._currentRowHeight&&this._renderDimensions.device.cell.height===this._currentDeviceCellHeight||this._refresh(e)}_handleScroll(e){if(this._lastScrollTop=this._viewportElement.scrollTop,!this._viewportElement.offsetParent)return;if(this._ignoreNextScrollEvent)return this._ignoreNextScrollEvent=!1,void this._scrollLines(0);const t=Math.round(this._lastScrollTop/this._currentRowHeight)-this._bufferService.buffer.ydisp;this._scrollLines(t)}_smoothScroll(){if(this._isDisposed||-1===this._smoothScrollState.origin||-1===this._smoothScrollState.target)return;const e=this._smoothScrollPercent();this._viewportElement.scrollTop=this._smoothScrollState.origin+Math.round(e*(this._smoothScrollState.target-this._smoothScrollState.origin)),e<1?this._coreBrowserService.window.requestAnimationFrame((()=>this._smoothScroll())):this._clearSmoothScrollState()}_smoothScrollPercent(){return this._optionsService.rawOptions.smoothScrollDuration&&this._smoothScrollState.startTime?Math.max(Math.min((Date.now()-this._smoothScrollState.startTime)/this._optionsService.rawOptions.smoothScrollDuration,1),0):1}_clearSmoothScrollState(){this._smoothScrollState.startTime=0,this._smoothScrollState.origin=-1,this._smoothScrollState.target=-1}_bubbleScroll(e,t){const i=this._viewportElement.scrollTop+this._lastRecordedViewportHeight;return!(t<0&&0!==this._viewportElement.scrollTop||t>0&&i0?1:-1),this._wheelPartialScroll%=1):e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._bufferService.rows),t}_applyScrollModifier(e,t){const i=this._optionsService.rawOptions.fastScrollModifier;return"alt"===i&&t.altKey||"ctrl"===i&&t.ctrlKey||"shift"===i&&t.shiftKey?e*this._optionsService.rawOptions.fastScrollSensitivity*this._optionsService.rawOptions.scrollSensitivity:e*this._optionsService.rawOptions.scrollSensitivity}handleTouchStart(e){this._lastTouchY=e.touches[0].pageY}handleTouchMove(e){const t=this._lastTouchY-e.touches[0].pageY;return this._lastTouchY=e.touches[0].pageY,0!==t&&(this._viewportElement.scrollTop+=t,this._bubbleScroll(e,t))}};c=s([r(3,h.IBufferService),r(4,h.IOptionsService),r(5,a.ICharSizeService),r(6,a.IRenderService),r(7,a.ICoreBrowserService),r(8,a.IThemeService)],c),t.Viewport=c},3107:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferDecorationRenderer=void 0;const n=i(3656),o=i(4725),a=i(844),h=i(2585);let c=class extends a.Disposable{constructor(e,t,i,s){super(),this._screenElement=e,this._bufferService=t,this._decorationService=i,this._renderService=s,this._decorationElements=new Map,this._altBufferIsActive=!1,this._dimensionsChanged=!1,this._container=document.createElement("div"),this._container.classList.add("xterm-decoration-container"),this._screenElement.appendChild(this._container),this.register(this._renderService.onRenderedViewportChange((()=>this._doRefreshDecorations()))),this.register(this._renderService.onDimensionsChange((()=>{this._dimensionsChanged=!0,this._queueRefresh()}))),this.register((0,n.addDisposableDomListener)(window,"resize",(()=>this._queueRefresh()))),this.register(this._bufferService.buffers.onBufferActivate((()=>{this._altBufferIsActive=this._bufferService.buffer===this._bufferService.buffers.alt}))),this.register(this._decorationService.onDecorationRegistered((()=>this._queueRefresh()))),this.register(this._decorationService.onDecorationRemoved((e=>this._removeDecoration(e)))),this.register((0,a.toDisposable)((()=>{this._container.remove(),this._decorationElements.clear()})))}_queueRefresh(){void 0===this._animationFrame&&(this._animationFrame=this._renderService.addRefreshCallback((()=>{this._doRefreshDecorations(),this._animationFrame=void 0})))}_doRefreshDecorations(){for(const e of this._decorationService.decorations)this._renderDecoration(e);this._dimensionsChanged=!1}_renderDecoration(e){this._refreshStyle(e),this._dimensionsChanged&&this._refreshXPosition(e)}_createElement(e){var t;const i=document.createElement("div");i.classList.add("xterm-decoration"),i.style.width=`${Math.round((e.options.width||1)*this._renderService.dimensions.css.cell.width)}px`,i.style.height=(e.options.height||1)*this._renderService.dimensions.css.cell.height+"px",i.style.top=(e.marker.line-this._bufferService.buffers.active.ydisp)*this._renderService.dimensions.css.cell.height+"px",i.style.lineHeight=`${this._renderService.dimensions.css.cell.height}px`;const s=null!==(t=e.options.x)&&void 0!==t?t:0;return s&&s>this._bufferService.cols&&(i.style.display="none"),this._refreshXPosition(e,i),i}_refreshStyle(e){const t=e.marker.line-this._bufferService.buffers.active.ydisp;if(t<0||t>=this._bufferService.rows)e.element&&(e.element.style.display="none",e.onRenderEmitter.fire(e.element));else{let i=this._decorationElements.get(e);i||(i=this._createElement(e),e.element=i,this._decorationElements.set(e,i),this._container.appendChild(i)),i.style.top=t*this._renderService.dimensions.css.cell.height+"px",i.style.display=this._altBufferIsActive?"none":"block",e.onRenderEmitter.fire(i)}}_refreshXPosition(e,t=e.element){var i;if(!t)return;const s=null!==(i=e.options.x)&&void 0!==i?i:0;"right"===(e.options.anchor||"left")?t.style.right=s?s*this._renderService.dimensions.css.cell.width+"px":"":t.style.left=s?s*this._renderService.dimensions.css.cell.width+"px":""}_removeDecoration(e){var t;null===(t=this._decorationElements.get(e))||void 0===t||t.remove(),this._decorationElements.delete(e),e.dispose()}};c=s([r(1,h.IBufferService),r(2,h.IDecorationService),r(3,o.IRenderService)],c),t.BufferDecorationRenderer=c},5871:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ColorZoneStore=void 0,t.ColorZoneStore=class{constructor(){this._zones=[],this._zonePool=[],this._zonePoolIndex=0,this._linePadding={full:0,left:0,center:0,right:0}}get zones(){return this._zonePool.length=Math.min(this._zonePool.length,this._zones.length),this._zones}clear(){this._zones.length=0,this._zonePoolIndex=0}addDecoration(e){if(e.options.overviewRulerOptions){for(const t of this._zones)if(t.color===e.options.overviewRulerOptions.color&&t.position===e.options.overviewRulerOptions.position){if(this._lineIntersectsZone(t,e.marker.line))return;if(this._lineAdjacentToZone(t,e.marker.line,e.options.overviewRulerOptions.position))return void this._addLineToZone(t,e.marker.line)}if(this._zonePoolIndex=e.startBufferLine&&t<=e.endBufferLine}_lineAdjacentToZone(e,t,i){return t>=e.startBufferLine-this._linePadding[i||"full"]&&t<=e.endBufferLine+this._linePadding[i||"full"]}_addLineToZone(e,t){e.startBufferLine=Math.min(e.startBufferLine,t),e.endBufferLine=Math.max(e.endBufferLine,t)}}},5744:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OverviewRulerRenderer=void 0;const n=i(5871),o=i(3656),a=i(4725),h=i(844),c=i(2585),l={full:0,left:0,center:0,right:0},d={full:0,left:0,center:0,right:0},_={full:0,left:0,center:0,right:0};let u=class extends h.Disposable{constructor(e,t,i,s,r,o,a){var c;super(),this._viewportElement=e,this._screenElement=t,this._bufferService=i,this._decorationService=s,this._renderService=r,this._optionsService=o,this._coreBrowseService=a,this._colorZoneStore=new n.ColorZoneStore,this._shouldUpdateDimensions=!0,this._shouldUpdateAnchor=!0,this._lastKnownBufferLength=0,this._canvas=document.createElement("canvas"),this._canvas.classList.add("xterm-decoration-overview-ruler"),this._refreshCanvasDimensions(),null===(c=this._viewportElement.parentElement)||void 0===c||c.insertBefore(this._canvas,this._viewportElement);const l=this._canvas.getContext("2d");if(!l)throw new Error("Ctx cannot be null");this._ctx=l,this._registerDecorationListeners(),this._registerBufferChangeListeners(),this._registerDimensionChangeListeners(),this.register((0,h.toDisposable)((()=>{var e;null===(e=this._canvas)||void 0===e||e.remove()})))}get _width(){return this._optionsService.options.overviewRulerWidth||0}_registerDecorationListeners(){this.register(this._decorationService.onDecorationRegistered((()=>this._queueRefresh(void 0,!0)))),this.register(this._decorationService.onDecorationRemoved((()=>this._queueRefresh(void 0,!0))))}_registerBufferChangeListeners(){this.register(this._renderService.onRenderedViewportChange((()=>this._queueRefresh()))),this.register(this._bufferService.buffers.onBufferActivate((()=>{this._canvas.style.display=this._bufferService.buffer===this._bufferService.buffers.alt?"none":"block"}))),this.register(this._bufferService.onScroll((()=>{this._lastKnownBufferLength!==this._bufferService.buffers.normal.lines.length&&(this._refreshDrawHeightConstants(),this._refreshColorZonePadding())})))}_registerDimensionChangeListeners(){this.register(this._renderService.onRender((()=>{this._containerHeight&&this._containerHeight===this._screenElement.clientHeight||(this._queueRefresh(!0),this._containerHeight=this._screenElement.clientHeight)}))),this.register(this._optionsService.onSpecificOptionChange("overviewRulerWidth",(()=>this._queueRefresh(!0)))),this.register((0,o.addDisposableDomListener)(this._coreBrowseService.window,"resize",(()=>this._queueRefresh(!0)))),this._queueRefresh(!0)}_refreshDrawConstants(){const e=Math.floor(this._canvas.width/3),t=Math.ceil(this._canvas.width/3);d.full=this._canvas.width,d.left=e,d.center=t,d.right=e,this._refreshDrawHeightConstants(),_.full=0,_.left=0,_.center=d.left,_.right=d.left+d.center}_refreshDrawHeightConstants(){l.full=Math.round(2*this._coreBrowseService.dpr);const e=this._canvas.height/this._bufferService.buffer.lines.length,t=Math.round(Math.max(Math.min(e,12),6)*this._coreBrowseService.dpr);l.left=t,l.center=t,l.right=t}_refreshColorZonePadding(){this._colorZoneStore.setPadding({full:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*l.full),left:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*l.left),center:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*l.center),right:Math.floor(this._bufferService.buffers.active.lines.length/(this._canvas.height-1)*l.right)}),this._lastKnownBufferLength=this._bufferService.buffers.normal.lines.length}_refreshCanvasDimensions(){this._canvas.style.width=`${this._width}px`,this._canvas.width=Math.round(this._width*this._coreBrowseService.dpr),this._canvas.style.height=`${this._screenElement.clientHeight}px`,this._canvas.height=Math.round(this._screenElement.clientHeight*this._coreBrowseService.dpr),this._refreshDrawConstants(),this._refreshColorZonePadding()}_refreshDecorations(){this._shouldUpdateDimensions&&this._refreshCanvasDimensions(),this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height),this._colorZoneStore.clear();for(const t of this._decorationService.decorations)this._colorZoneStore.addDecoration(t);this._ctx.lineWidth=1;const e=this._colorZoneStore.zones;for(const t of e)"full"!==t.position&&this._renderColorZone(t);for(const t of e)"full"===t.position&&this._renderColorZone(t);this._shouldUpdateDimensions=!1,this._shouldUpdateAnchor=!1}_renderColorZone(e){this._ctx.fillStyle=e.color,this._ctx.fillRect(_[e.position||"full"],Math.round((this._canvas.height-1)*(e.startBufferLine/this._bufferService.buffers.active.lines.length)-l[e.position||"full"]/2),d[e.position||"full"],Math.round((this._canvas.height-1)*((e.endBufferLine-e.startBufferLine)/this._bufferService.buffers.active.lines.length)+l[e.position||"full"]))}_queueRefresh(e,t){this._shouldUpdateDimensions=e||this._shouldUpdateDimensions,this._shouldUpdateAnchor=t||this._shouldUpdateAnchor,void 0===this._animationFrame&&(this._animationFrame=this._coreBrowseService.window.requestAnimationFrame((()=>{this._refreshDecorations(),this._animationFrame=void 0})))}};u=s([r(2,c.IBufferService),r(3,c.IDecorationService),r(4,a.IRenderService),r(5,c.IOptionsService),r(6,a.ICoreBrowserService)],u),t.OverviewRulerRenderer=u},2950:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CompositionHelper=void 0;const n=i(4725),o=i(2585),a=i(2584);let h=class{constructor(e,t,i,s,r,n){this._textarea=e,this._compositionView=t,this._bufferService=i,this._optionsService=s,this._coreService=r,this._renderService=n,this._isComposing=!1,this._isSendingComposition=!1,this._compositionPosition={start:0,end:0},this._dataAlreadySent=""}get isComposing(){return this._isComposing}compositionstart(){this._isComposing=!0,this._compositionPosition.start=this._textarea.value.length,this._compositionView.textContent="",this._dataAlreadySent="",this._compositionView.classList.add("active")}compositionupdate(e){this._compositionView.textContent=e.data,this.updateCompositionElements(),setTimeout((()=>{this._compositionPosition.end=this._textarea.value.length}),0)}compositionend(){this._finalizeComposition(!0)}keydown(e){if(this._isComposing||this._isSendingComposition){if(229===e.keyCode)return!1;if(16===e.keyCode||17===e.keyCode||18===e.keyCode)return!1;this._finalizeComposition(!1)}return 229!==e.keyCode||(this._handleAnyTextareaChanges(),!1)}_finalizeComposition(e){if(this._compositionView.classList.remove("active"),this._isComposing=!1,e){const e={start:this._compositionPosition.start,end:this._compositionPosition.end};this._isSendingComposition=!0,setTimeout((()=>{if(this._isSendingComposition){let t;this._isSendingComposition=!1,e.start+=this._dataAlreadySent.length,t=this._isComposing?this._textarea.value.substring(e.start,e.end):this._textarea.value.substring(e.start),t.length>0&&this._coreService.triggerDataEvent(t,!0)}}),0)}else{this._isSendingComposition=!1;const e=this._textarea.value.substring(this._compositionPosition.start,this._compositionPosition.end);this._coreService.triggerDataEvent(e,!0)}}_handleAnyTextareaChanges(){const e=this._textarea.value;setTimeout((()=>{if(!this._isComposing){const t=this._textarea.value,i=t.replace(e,"");this._dataAlreadySent=i,t.length>e.length?this._coreService.triggerDataEvent(i,!0):t.lengththis.updateCompositionElements(!0)),0)}}};h=s([r(2,o.IBufferService),r(3,o.IOptionsService),r(4,o.ICoreService),r(5,n.IRenderService)],h),t.CompositionHelper=h},9806:(e,t)=>{function i(e,t,i){const s=i.getBoundingClientRect(),r=e.getComputedStyle(i),n=parseInt(r.getPropertyValue("padding-left")),o=parseInt(r.getPropertyValue("padding-top"));return[t.clientX-s.left-n,t.clientY-s.top-o]}Object.defineProperty(t,"__esModule",{value:!0}),t.getCoords=t.getCoordsRelativeToElement=void 0,t.getCoordsRelativeToElement=i,t.getCoords=function(e,t,s,r,n,o,a,h,c){if(!o)return;const l=i(e,t,s);return l?(l[0]=Math.ceil((l[0]+(c?a/2:0))/a),l[1]=Math.ceil(l[1]/h),l[0]=Math.min(Math.max(l[0],1),r+(c?1:0)),l[1]=Math.min(Math.max(l[1],1),n),l):void 0}},9504:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.moveToCellSequence=void 0;const s=i(2584);function r(e,t,i,s){const r=e-n(e,i),a=t-n(t,i),l=Math.abs(r-a)-function(e,t,i){let s=0;const r=e-n(e,i),a=t-n(t,i);for(let n=0;n=0&&et?"A":"B"}function a(e,t,i,s,r,n){let o=e,a=t,h="";for(;o!==i||a!==s;)o+=r?1:-1,r&&o>n.cols-1?(h+=n.buffer.translateBufferLineToString(a,!1,e,o),o=0,e=0,a++):!r&&o<0&&(h+=n.buffer.translateBufferLineToString(a,!1,0,e+1),o=n.cols-1,e=o,a--);return h+n.buffer.translateBufferLineToString(a,!1,e,o)}function h(e,t){const i=t?"O":"[";return s.C0.ESC+i+e}function c(e,t){e=Math.floor(e);let i="";for(let s=0;s0?s-n(s,o):t;const _=s,u=function(e,t,i,s,o,a){let h;return h=r(i,s,o,a).length>0?s-n(s,o):t,e=i&&he?"D":"C",c(Math.abs(o-e),h(d,s));d=l>t?"D":"C";const _=Math.abs(l-t);return c(function(e,t){return t.cols-e}(l>t?e:o,i)+(_-1)*i.cols+1+((l>t?o:e)-1),h(d,s))}},1296:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRenderer=void 0;const n=i(9631),o=i(3787),a=i(2223),h=i(6171),c=i(4725),l=i(8055),d=i(8460),_=i(844),u=i(2585),f="xterm-dom-renderer-owner-",v="xterm-focus";let g=1,p=class extends _.Disposable{constructor(e,t,i,s,r,a,c,l,u,v){super(),this._element=e,this._screenElement=t,this._viewportElement=i,this._linkifier2=s,this._charSizeService=a,this._optionsService=c,this._bufferService=l,this._coreBrowserService=u,this._terminalClass=g++,this._rowElements=[],this._cellToRowElements=[],this.onRequestRedraw=this.register(new d.EventEmitter).event,this._rowContainer=document.createElement("div"),this._rowContainer.classList.add("xterm-rows"),this._rowContainer.style.lineHeight="normal",this._rowContainer.setAttribute("aria-hidden","true"),this._refreshRowElements(this._bufferService.cols,this._bufferService.rows),this._selectionContainer=document.createElement("div"),this._selectionContainer.classList.add("xterm-selection"),this._selectionContainer.setAttribute("aria-hidden","true"),this.dimensions=(0,h.createRenderDimensions)(),this._updateDimensions(),this.register(this._optionsService.onOptionChange((()=>this._handleOptionsChanged()))),this.register(v.onChangeColors((e=>this._injectCss(e)))),this._injectCss(v.colors),this._rowFactory=r.createInstance(o.DomRendererRowFactory,document),this._element.classList.add(f+this._terminalClass),this._screenElement.appendChild(this._rowContainer),this._screenElement.appendChild(this._selectionContainer),this.register(this._linkifier2.onShowLinkUnderline((e=>this._handleLinkHover(e)))),this.register(this._linkifier2.onHideLinkUnderline((e=>this._handleLinkLeave(e)))),this.register((0,_.toDisposable)((()=>{this._element.classList.remove(f+this._terminalClass),(0,n.removeElementFromParent)(this._rowContainer,this._selectionContainer,this._themeStyleElement,this._dimensionsStyleElement)})))}_updateDimensions(){const e=this._coreBrowserService.dpr;this.dimensions.device.char.width=this._charSizeService.width*e,this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*e),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.left=0,this.dimensions.device.char.top=0,this.dimensions.device.canvas.width=this.dimensions.device.cell.width*this._bufferService.cols,this.dimensions.device.canvas.height=this.dimensions.device.cell.height*this._bufferService.rows,this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/e),this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/e),this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols,this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows;for(const i of this._rowElements)i.style.width=`${this.dimensions.css.canvas.width}px`,i.style.height=`${this.dimensions.css.cell.height}px`,i.style.lineHeight=`${this.dimensions.css.cell.height}px`,i.style.overflow="hidden";this._dimensionsStyleElement||(this._dimensionsStyleElement=document.createElement("style"),this._screenElement.appendChild(this._dimensionsStyleElement));const t=`${this._terminalSelector} .xterm-rows span { display: inline-block; height: 100%; vertical-align: top; width: ${this.dimensions.css.cell.width}px}`;this._dimensionsStyleElement.textContent=t,this._selectionContainer.style.height=this._viewportElement.style.height,this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}_injectCss(e){this._themeStyleElement||(this._themeStyleElement=document.createElement("style"),this._screenElement.appendChild(this._themeStyleElement));let t=`${this._terminalSelector} .xterm-rows { color: ${e.foreground.css}; font-family: ${this._optionsService.rawOptions.fontFamily}; font-size: ${this._optionsService.rawOptions.fontSize}px;}`;t+=`${this._terminalSelector} span:not(.${o.BOLD_CLASS}) { font-weight: ${this._optionsService.rawOptions.fontWeight};}${this._terminalSelector} span.${o.BOLD_CLASS} { font-weight: ${this._optionsService.rawOptions.fontWeightBold};}${this._terminalSelector} span.${o.ITALIC_CLASS} { font-style: italic;}`,t+="@keyframes blink_box_shadow_"+this._terminalClass+" { 50% { box-shadow: none; }}",t+="@keyframes blink_block_"+this._terminalClass+" { 0% {"+` background-color: ${e.cursor.css};`+` color: ${e.cursorAccent.css}; } 50% {`+` background-color: ${e.cursorAccent.css};`+` color: ${e.cursor.css}; }}`,t+=`${this._terminalSelector} .xterm-rows:not(.xterm-focus) .${o.CURSOR_CLASS}.${o.CURSOR_STYLE_BLOCK_CLASS} { outline: 1px solid ${e.cursor.css}; outline-offset: -1px;}${this._terminalSelector} .xterm-rows.xterm-focus .${o.CURSOR_CLASS}.${o.CURSOR_BLINK_CLASS}:not(.${o.CURSOR_STYLE_BLOCK_CLASS}) { animation: blink_box_shadow_`+this._terminalClass+" 1s step-end infinite;}"+`${this._terminalSelector} .xterm-rows.xterm-focus .${o.CURSOR_CLASS}.${o.CURSOR_BLINK_CLASS}.${o.CURSOR_STYLE_BLOCK_CLASS} { animation: blink_block_`+this._terminalClass+" 1s step-end infinite;}"+`${this._terminalSelector} .xterm-rows.xterm-focus .${o.CURSOR_CLASS}.${o.CURSOR_STYLE_BLOCK_CLASS} {`+` background-color: ${e.cursor.css};`+` color: ${e.cursorAccent.css};}`+`${this._terminalSelector} .xterm-rows .${o.CURSOR_CLASS}.${o.CURSOR_STYLE_BAR_CLASS} {`+` box-shadow: ${this._optionsService.rawOptions.cursorWidth}px 0 0 ${e.cursor.css} inset;}`+`${this._terminalSelector} .xterm-rows .${o.CURSOR_CLASS}.${o.CURSOR_STYLE_UNDERLINE_CLASS} {`+` box-shadow: 0 -1px 0 ${e.cursor.css} inset;}`,t+=`${this._terminalSelector} .xterm-selection { position: absolute; top: 0; left: 0; z-index: 1; pointer-events: none;}${this._terminalSelector}.focus .xterm-selection div { position: absolute; background-color: ${e.selectionBackgroundOpaque.css};}${this._terminalSelector} .xterm-selection div { position: absolute; background-color: ${e.selectionInactiveBackgroundOpaque.css};}`;for(const[i,s]of e.ansi.entries())t+=`${this._terminalSelector} .xterm-fg-${i} { color: ${s.css}; }${this._terminalSelector} .xterm-bg-${i} { background-color: ${s.css}; }`;t+=`${this._terminalSelector} .xterm-fg-${a.INVERTED_DEFAULT_COLOR} { color: ${l.color.opaque(e.background).css}; }${this._terminalSelector} .xterm-bg-${a.INVERTED_DEFAULT_COLOR} { background-color: ${e.foreground.css}; }`,this._themeStyleElement.textContent=t}handleDevicePixelRatioChange(){this._updateDimensions()}_refreshRowElements(e,t){for(let i=this._rowElements.length;i<=t;i++){const e=document.createElement("div");this._rowContainer.appendChild(e),this._rowElements.push(e)}for(;this._rowElements.length>t;)this._rowContainer.removeChild(this._rowElements.pop())}handleResize(e,t){this._refreshRowElements(e,t),this._updateDimensions()}handleCharSizeChanged(){this._updateDimensions()}handleBlur(){this._rowContainer.classList.remove(v)}handleFocus(){this._rowContainer.classList.add(v)}handleSelectionChanged(e,t,i){for(;this._selectionContainer.children.length;)this._selectionContainer.removeChild(this._selectionContainer.children[0]);if(this._rowFactory.handleSelectionChanged(e,t,i),this.renderRows(0,this._bufferService.rows-1),!e||!t)return;const s=e[1]-this._bufferService.buffer.ydisp,r=t[1]-this._bufferService.buffer.ydisp,n=Math.max(s,0),o=Math.min(r,this._bufferService.rows-1);if(n>=this._bufferService.rows||o<0)return;const a=document.createDocumentFragment();if(i){const i=e[0]>t[0];a.appendChild(this._createSelectionElement(n,i?t[0]:e[0],i?e[0]:t[0],o-n+1))}else{const i=s===n?e[0]:0,h=n===r?t[0]:this._bufferService.cols;a.appendChild(this._createSelectionElement(n,i,h));const c=o-n-1;if(a.appendChild(this._createSelectionElement(n+1,0,this._bufferService.cols,c)),n!==o){const e=r===o?t[0]:this._bufferService.cols;a.appendChild(this._createSelectionElement(o,0,e))}}this._selectionContainer.appendChild(a)}_createSelectionElement(e,t,i,s=1){const r=document.createElement("div");return r.style.height=s*this.dimensions.css.cell.height+"px",r.style.top=e*this.dimensions.css.cell.height+"px",r.style.left=t*this.dimensions.css.cell.width+"px",r.style.width=this.dimensions.css.cell.width*(i-t)+"px",r}handleCursorMove(){}_handleOptionsChanged(){this._updateDimensions()}clear(){for(const e of this._rowElements)e.replaceChildren()}renderRows(e,t){const i=this._bufferService.buffer.ybase+this._bufferService.buffer.y,s=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1),r=this._optionsService.rawOptions.cursorBlink;for(let n=e;n<=t;n++){const e=this._rowElements[n],t=n+this._bufferService.buffer.ydisp,o=this._bufferService.buffer.lines.get(t),a=this._optionsService.rawOptions.cursorStyle;this._cellToRowElements[n]&&this._cellToRowElements[n].length===this._bufferService.cols||(this._cellToRowElements[n]=new Int16Array(this._bufferService.cols)),e.replaceChildren(this._rowFactory.createRow(o,t,t===i,a,s,r,this.dimensions.css.cell.width,this._bufferService.cols,this._cellToRowElements[n]))}}get _terminalSelector(){return`.${f}${this._terminalClass}`}_handleLinkHover(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!0)}_handleLinkLeave(e){this._setCellUnderline(e.x1,e.x2,e.y1,e.y2,e.cols,!1)}_setCellUnderline(e,t,i,s,r,n){if(e=this._cellToRowElements[i][e],t=this._cellToRowElements[s][t],-1!==e&&-1!==t)for(;e!==t||i!==s;){const t=this._rowElements[i];if(!t)return;const s=t.children[e];s&&(s.style.textDecoration=n?"underline":"none"),++e>=r&&(e=0,i++)}}};p=s([r(4,u.IInstantiationService),r(5,c.ICharSizeService),r(6,u.IOptionsService),r(7,u.IBufferService),r(8,c.ICoreBrowserService),r(9,c.IThemeService)],p),t.DomRenderer=p},3787:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomRendererRowFactory=t.CURSOR_STYLE_UNDERLINE_CLASS=t.CURSOR_STYLE_BAR_CLASS=t.CURSOR_STYLE_BLOCK_CLASS=t.CURSOR_BLINK_CLASS=t.CURSOR_CLASS=t.STRIKETHROUGH_CLASS=t.UNDERLINE_CLASS=t.ITALIC_CLASS=t.DIM_CLASS=t.BOLD_CLASS=void 0;const n=i(2223),o=i(643),a=i(511),h=i(2585),c=i(8055),l=i(4725),d=i(4269),_=i(6171),u=i(3734);t.BOLD_CLASS="xterm-bold",t.DIM_CLASS="xterm-dim",t.ITALIC_CLASS="xterm-italic",t.UNDERLINE_CLASS="xterm-underline",t.STRIKETHROUGH_CLASS="xterm-strikethrough",t.CURSOR_CLASS="xterm-cursor",t.CURSOR_BLINK_CLASS="xterm-cursor-blink",t.CURSOR_STYLE_BLOCK_CLASS="xterm-cursor-block",t.CURSOR_STYLE_BAR_CLASS="xterm-cursor-bar",t.CURSOR_STYLE_UNDERLINE_CLASS="xterm-cursor-underline";let f=class{constructor(e,t,i,s,r,n,o){this._document=e,this._characterJoinerService=t,this._optionsService=i,this._coreBrowserService=s,this._coreService=r,this._decorationService=n,this._themeService=o,this._workCell=new a.CellData,this._columnSelectMode=!1}handleSelectionChanged(e,t,i){this._selectionStart=e,this._selectionEnd=t,this._columnSelectMode=i}createRow(e,i,s,r,a,h,l,_,f){const g=this._document.createDocumentFragment(),p=this._characterJoinerService.getJoinedCharacters(i);let S=0;for(let t=Math.min(e.length,_)-1;t>=0;t--)if(e.loadCell(t,this._workCell).getCode()!==o.NULL_CELL_CODE||s&&t===a){S=t+1;break}const m=this._themeService.colors;let C=-1,b=0;for(;b0&&b===p[0][0]){S=!0;const t=p.shift();w=new d.JoinedCellData(this._workCell,e.translateToString(!0,t[0],t[1]),t[1]-t[0]),y=t[1]-1,_=w.getWidth()}const E=this._document.createElement("span");if(_>1&&(E.style.width=l*_+"px"),S&&(E.style.display="inline",a>=b&&a<=y&&(a=b)),!this._coreService.isCursorHidden&&s&&b===a)switch(E.classList.add(t.CURSOR_CLASS),h&&E.classList.add(t.CURSOR_BLINK_CLASS),r){case"bar":E.classList.add(t.CURSOR_STYLE_BAR_CLASS);break;case"underline":E.classList.add(t.CURSOR_STYLE_UNDERLINE_CLASS);break;default:E.classList.add(t.CURSOR_STYLE_BLOCK_CLASS)}if(w.isBold()&&E.classList.add(t.BOLD_CLASS),w.isItalic()&&E.classList.add(t.ITALIC_CLASS),w.isDim()&&E.classList.add(t.DIM_CLASS),w.isInvisible()?E.textContent=o.WHITESPACE_CELL_CHAR:E.textContent=w.getChars()||o.WHITESPACE_CELL_CHAR,w.isUnderline()&&(E.classList.add(`${t.UNDERLINE_CLASS}-${w.extended.underlineStyle}`)," "===E.textContent&&(E.textContent=" "),!w.isUnderlineColorDefault()))if(w.isUnderlineColorRGB())E.style.textDecorationColor=`rgb(${u.AttributeData.toColorRGB(w.getUnderlineColor()).join(",")})`;else{let e=w.getUnderlineColor();this._optionsService.rawOptions.drawBoldTextInBrightColors&&w.isBold()&&e<8&&(e+=8),E.style.textDecorationColor=m.ansi[e].css}w.isStrikethrough()&&E.classList.add(t.STRIKETHROUGH_CLASS);let L=w.getFgColor(),k=w.getFgColorMode(),R=w.getBgColor(),D=w.getBgColorMode();const A=!!w.isInverse();if(A){const e=L;L=R,R=e;const t=k;k=D,D=t}let x,B,T=!1;this._decorationService.forEachDecorationAtCell(b,i,void 0,(e=>{"top"!==e.options.layer&&T||(e.backgroundColorRGB&&(D=50331648,R=e.backgroundColorRGB.rgba>>8&16777215,x=e.backgroundColorRGB),e.foregroundColorRGB&&(k=50331648,L=e.foregroundColorRGB.rgba>>8&16777215,B=e.foregroundColorRGB),T="top"===e.options.layer)}));const M=this._isCellInSelection(b,i);let O;switch(T||m.selectionForeground&&M&&(k=50331648,L=m.selectionForeground.rgba>>8&16777215,B=m.selectionForeground),M&&(x=this._coreBrowserService.isFocused?m.selectionBackgroundOpaque:m.selectionInactiveBackgroundOpaque,T=!0),T&&E.classList.add("xterm-decoration-top"),D){case 16777216:case 33554432:O=m.ansi[R],E.classList.add(`xterm-bg-${R}`);break;case 50331648:O=c.rgba.toColor(R>>16,R>>8&255,255&R),this._addStyle(E,`background-color:#${v((R>>>0).toString(16),"0",6)}`);break;default:A?(O=m.foreground,E.classList.add(`xterm-bg-${n.INVERTED_DEFAULT_COLOR}`)):O=m.background}switch(x||w.isDim()&&(x=c.color.multiplyOpacity(O,.5)),k){case 16777216:case 33554432:w.isBold()&&L<8&&this._optionsService.rawOptions.drawBoldTextInBrightColors&&(L+=8),this._applyMinimumContrast(E,O,m.ansi[L],w,x,void 0)||E.classList.add(`xterm-fg-${L}`);break;case 50331648:const e=c.rgba.toColor(L>>16&255,L>>8&255,255&L);this._applyMinimumContrast(E,O,e,w,x,B)||this._addStyle(E,`color:#${v(L.toString(16),"0",6)}`);break;default:this._applyMinimumContrast(E,O,m.foreground,w,x,void 0)||A&&E.classList.add(`xterm-fg-${n.INVERTED_DEFAULT_COLOR}`)}g.appendChild(E),f[b]=++C,b=y}return b<_-1&&f.subarray(b).fill(++C),g}_applyMinimumContrast(e,t,i,s,r,n){if(1===this._optionsService.rawOptions.minimumContrastRatio||(0,_.excludeFromContrastRatioDemands)(s.getCode()))return!1;let o;return r||n||(o=this._themeService.colors.contrastCache.getColor(t.rgba,i.rgba)),void 0===o&&(o=c.color.ensureContrastRatio(r||t,n||i,this._optionsService.rawOptions.minimumContrastRatio),this._themeService.colors.contrastCache.setColor((r||t).rgba,(n||i).rgba,null!=o?o:null)),!!o&&(this._addStyle(e,`color:${o.css}`),!0)}_addStyle(e,t){e.setAttribute("style",`${e.getAttribute("style")||""}${t};`)}_isCellInSelection(e,t){const i=this._selectionStart,s=this._selectionEnd;return!(!i||!s)&&(this._columnSelectMode?i[0]<=s[0]?e>=i[0]&&t>=i[1]&&e=i[1]&&e>=s[0]&&t<=s[1]:t>i[1]&&t=i[0]&&e=i[0])}};function v(e,t,i){for(;e.length{Object.defineProperty(t,"__esModule",{value:!0}),t.TEXT_BASELINE=t.DIM_OPACITY=t.INVERTED_DEFAULT_COLOR=void 0;const s=i(6114);t.INVERTED_DEFAULT_COLOR=257,t.DIM_OPACITY=.5,t.TEXT_BASELINE=s.isFirefox||s.isLegacyEdge?"bottom":"ideographic"},6171:(e,t)=>{function i(e){return 57508<=e&&e<=57558}Object.defineProperty(t,"__esModule",{value:!0}),t.createRenderDimensions=t.excludeFromContrastRatioDemands=t.isRestrictedPowerlineGlyph=t.isPowerlineGlyph=t.throwIfFalsy=void 0,t.throwIfFalsy=function(e){if(!e)throw new Error("value must not be falsy");return e},t.isPowerlineGlyph=i,t.isRestrictedPowerlineGlyph=function(e){return 57520<=e&&e<=57527},t.excludeFromContrastRatioDemands=function(e){return i(e)||function(e){return 9472<=e&&e<=9631}(e)},t.createRenderDimensions=function(){return{css:{canvas:{width:0,height:0},cell:{width:0,height:0}},device:{canvas:{width:0,height:0},cell:{width:0,height:0},char:{width:0,height:0,left:0,top:0}}}}},456:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionModel=void 0,t.SelectionModel=class{constructor(e){this._bufferService=e,this.isSelectAllActive=!1,this.selectionStartLength=0}clearSelection(){this.selectionStart=void 0,this.selectionEnd=void 0,this.isSelectAllActive=!1,this.selectionStartLength=0}get finalSelectionStart(){return this.isSelectAllActive?[0,0]:this.selectionEnd&&this.selectionStart&&this.areSelectionValuesReversed()?this.selectionEnd:this.selectionStart}get finalSelectionEnd(){if(this.isSelectAllActive)return[this._bufferService.cols,this._bufferService.buffer.ybase+this._bufferService.rows-1];if(this.selectionStart){if(!this.selectionEnd||this.areSelectionValuesReversed()){const e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?e%this._bufferService.cols==0?[this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)-1]:[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[e,this.selectionStart[1]]}if(this.selectionStartLength&&this.selectionEnd[1]===this.selectionStart[1]){const e=this.selectionStart[0]+this.selectionStartLength;return e>this._bufferService.cols?[e%this._bufferService.cols,this.selectionStart[1]+Math.floor(e/this._bufferService.cols)]:[Math.max(e,this.selectionEnd[0]),this.selectionEnd[1]]}return this.selectionEnd}}areSelectionValuesReversed(){const e=this.selectionStart,t=this.selectionEnd;return!(!e||!t)&&(e[1]>t[1]||e[1]===t[1]&&e[0]>t[0])}handleTrim(e){return this.selectionStart&&(this.selectionStart[1]-=e),this.selectionEnd&&(this.selectionEnd[1]-=e),this.selectionEnd&&this.selectionEnd[1]<0?(this.clearSelection(),!0):(this.selectionStart&&this.selectionStart[1]<0&&(this.selectionStart[1]=0),!1)}}},428:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharSizeService=void 0;const n=i(2585),o=i(8460),a=i(844);let h=class extends a.Disposable{constructor(e,t,i){super(),this._optionsService=i,this.width=0,this.height=0,this._onCharSizeChange=this.register(new o.EventEmitter),this.onCharSizeChange=this._onCharSizeChange.event,this._measureStrategy=new c(e,t,this._optionsService),this.register(this._optionsService.onMultipleOptionChange(["fontFamily","fontSize"],(()=>this.measure())))}get hasValidSize(){return this.width>0&&this.height>0}measure(){const e=this._measureStrategy.measure();e.width===this.width&&e.height===this.height||(this.width=e.width,this.height=e.height,this._onCharSizeChange.fire())}};h=s([r(2,n.IOptionsService)],h),t.CharSizeService=h;class c{constructor(e,t,i){this._document=e,this._parentElement=t,this._optionsService=i,this._result={width:0,height:0},this._measureElement=this._document.createElement("span"),this._measureElement.classList.add("xterm-char-measure-element"),this._measureElement.textContent="W",this._measureElement.setAttribute("aria-hidden","true"),this._parentElement.appendChild(this._measureElement)}measure(){this._measureElement.style.fontFamily=this._optionsService.rawOptions.fontFamily,this._measureElement.style.fontSize=`${this._optionsService.rawOptions.fontSize}px`;const e=this._measureElement.getBoundingClientRect();return 0!==e.width&&0!==e.height&&(this._result.width=e.width,this._result.height=Math.ceil(e.height)),this._result}}},4269:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterJoinerService=t.JoinedCellData=void 0;const n=i(3734),o=i(643),a=i(511),h=i(2585);class c extends n.AttributeData{constructor(e,t,i){super(),this.content=0,this.combinedData="",this.fg=e.fg,this.bg=e.bg,this.combinedData=t,this._width=i}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(e){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}t.JoinedCellData=c;let l=class e{constructor(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new a.CellData}register(e){const t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id}deregister(e){for(let t=0;t1){const e=this._getJoinedRanges(s,a,n,t,r);for(let t=0;t1){const e=this._getJoinedRanges(s,a,n,t,r);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:!0}),t.CoreBrowserService=void 0,t.CoreBrowserService=class{constructor(e,t){this._textarea=e,this.window=t,this._isFocused=!1,this._cachedIsFocused=void 0,this._textarea.addEventListener("focus",(()=>this._isFocused=!0)),this._textarea.addEventListener("blur",(()=>this._isFocused=!1))}get dpr(){return this.window.devicePixelRatio}get isFocused(){return void 0===this._cachedIsFocused&&(this._cachedIsFocused=this._isFocused&&this._textarea.ownerDocument.hasFocus(),queueMicrotask((()=>this._cachedIsFocused=void 0))),this._cachedIsFocused}}},8934:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.MouseService=void 0;const n=i(4725),o=i(9806);let a=class{constructor(e,t){this._renderService=e,this._charSizeService=t}getCoords(e,t,i,s,r){return(0,o.getCoords)(window,e,t,i,s,this._charSizeService.hasValidSize,this._renderService.dimensions.css.cell.width,this._renderService.dimensions.css.cell.height,r)}getMouseReportCoords(e,t){const i=(0,o.getCoordsRelativeToElement)(window,e,t);if(!(!this._charSizeService.hasValidSize||i[0]<0||i[1]<0||i[0]>=this._renderService.dimensions.css.canvas.width||i[1]>=this._renderService.dimensions.css.canvas.height))return{col:Math.floor(i[0]/this._renderService.dimensions.css.cell.width),row:Math.floor(i[1]/this._renderService.dimensions.css.cell.height),x:Math.floor(i[0]),y:Math.floor(i[1])}}};a=s([r(0,n.IRenderService),r(1,n.ICharSizeService)],a),t.MouseService=a},3230:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.RenderService=void 0;const n=i(6193),o=i(8460),a=i(844),h=i(5596),c=i(3656),l=i(2585),d=i(4725),_=i(7226);let u=class extends a.Disposable{constructor(e,t,i,s,r,a,l,d){if(super(),this._rowCount=e,this._charSizeService=s,this._pausedResizeTask=new _.DebouncedIdleTask,this._isPaused=!1,this._needsFullRefresh=!1,this._isNextRenderRedrawOnly=!0,this._needsSelectionRefresh=!1,this._canvasWidth=0,this._canvasHeight=0,this._selectionState={start:void 0,end:void 0,columnSelectMode:!1},this._onDimensionsChange=this.register(new o.EventEmitter),this.onDimensionsChange=this._onDimensionsChange.event,this._onRenderedViewportChange=this.register(new o.EventEmitter),this.onRenderedViewportChange=this._onRenderedViewportChange.event,this._onRender=this.register(new o.EventEmitter),this.onRender=this._onRender.event,this._onRefreshRequest=this.register(new o.EventEmitter),this.onRefreshRequest=this._onRefreshRequest.event,this.register({dispose:()=>{var e;return null===(e=this._renderer)||void 0===e?void 0:e.dispose()}}),this._renderDebouncer=new n.RenderDebouncer(l.window,((e,t)=>this._renderRows(e,t))),this.register(this._renderDebouncer),this._screenDprMonitor=new h.ScreenDprMonitor(l.window),this._screenDprMonitor.setListener((()=>this.handleDevicePixelRatioChange())),this.register(this._screenDprMonitor),this.register(a.onResize((()=>this._fullRefresh()))),this.register(a.buffers.onBufferActivate((()=>{var e;return null===(e=this._renderer)||void 0===e?void 0:e.clear()}))),this.register(i.onOptionChange((()=>this._handleOptionsChanged()))),this.register(this._charSizeService.onCharSizeChange((()=>this.handleCharSizeChanged()))),this.register(r.onDecorationRegistered((()=>this._fullRefresh()))),this.register(r.onDecorationRemoved((()=>this._fullRefresh()))),this.register(i.onMultipleOptionChange(["customGlyphs","drawBoldTextInBrightColors","letterSpacing","lineHeight","fontFamily","fontSize","fontWeight","fontWeightBold","minimumContrastRatio"],(()=>{this.clear(),this.handleResize(a.cols,a.rows),this._fullRefresh()}))),this.register(i.onMultipleOptionChange(["cursorBlink","cursorStyle"],(()=>this.refreshRows(a.buffer.y,a.buffer.y,!0)))),this.register((0,c.addDisposableDomListener)(l.window,"resize",(()=>this.handleDevicePixelRatioChange()))),this.register(d.onChangeColors((()=>this._fullRefresh()))),"IntersectionObserver"in l.window){const e=new l.window.IntersectionObserver((e=>this._handleIntersectionChange(e[e.length-1])),{threshold:0});e.observe(t),this.register({dispose:()=>e.disconnect()})}}get dimensions(){return this._renderer.dimensions}_handleIntersectionChange(e){this._isPaused=void 0===e.isIntersecting?0===e.intersectionRatio:!e.isIntersecting,this._isPaused||this._charSizeService.hasValidSize||this._charSizeService.measure(),!this._isPaused&&this._needsFullRefresh&&(this._pausedResizeTask.flush(),this.refreshRows(0,this._rowCount-1),this._needsFullRefresh=!1)}refreshRows(e,t,i=!1){this._isPaused?this._needsFullRefresh=!0:(i||(this._isNextRenderRedrawOnly=!1),this._renderDebouncer.refresh(e,t,this._rowCount))}_renderRows(e,t){this._renderer&&(this._renderer.renderRows(e,t),this._needsSelectionRefresh&&(this._renderer.handleSelectionChanged(this._selectionState.start,this._selectionState.end,this._selectionState.columnSelectMode),this._needsSelectionRefresh=!1),this._isNextRenderRedrawOnly||this._onRenderedViewportChange.fire({start:e,end:t}),this._onRender.fire({start:e,end:t}),this._isNextRenderRedrawOnly=!0)}resize(e,t){this._rowCount=t,this._fireOnCanvasResize()}_handleOptionsChanged(){this._renderer&&(this.refreshRows(0,this._rowCount-1),this._fireOnCanvasResize())}_fireOnCanvasResize(){this._renderer&&(this._renderer.dimensions.css.canvas.width===this._canvasWidth&&this._renderer.dimensions.css.canvas.height===this._canvasHeight||this._onDimensionsChange.fire(this._renderer.dimensions))}hasRenderer(){return!!this._renderer}setRenderer(e){var t;null===(t=this._renderer)||void 0===t||t.dispose(),this._renderer=e,this._renderer.onRequestRedraw((e=>this.refreshRows(e.start,e.end,!0))),this._needsSelectionRefresh=!0,this._fullRefresh()}addRefreshCallback(e){return this._renderDebouncer.addRefreshCallback(e)}_fullRefresh(){this._isPaused?this._needsFullRefresh=!0:this.refreshRows(0,this._rowCount-1)}clearTextureAtlas(){var e,t;this._renderer&&(null===(t=(e=this._renderer).clearTextureAtlas)||void 0===t||t.call(e),this._fullRefresh())}handleDevicePixelRatioChange(){this._charSizeService.measure(),this._renderer&&(this._renderer.handleDevicePixelRatioChange(),this.refreshRows(0,this._rowCount-1))}handleResize(e,t){this._renderer&&(this._isPaused?this._pausedResizeTask.set((()=>this._renderer.handleResize(e,t))):this._renderer.handleResize(e,t),this._fullRefresh())}handleCharSizeChanged(){var e;null===(e=this._renderer)||void 0===e||e.handleCharSizeChanged()}handleBlur(){var e;null===(e=this._renderer)||void 0===e||e.handleBlur()}handleFocus(){var e;null===(e=this._renderer)||void 0===e||e.handleFocus()}handleSelectionChanged(e,t,i){var s;this._selectionState.start=e,this._selectionState.end=t,this._selectionState.columnSelectMode=i,null===(s=this._renderer)||void 0===s||s.handleSelectionChanged(e,t,i)}handleCursorMove(){var e;null===(e=this._renderer)||void 0===e||e.handleCursorMove()}clear(){var e;null===(e=this._renderer)||void 0===e||e.clear()}};u=s([r(2,l.IOptionsService),r(3,d.ICharSizeService),r(4,l.IDecorationService),r(5,l.IBufferService),r(6,d.ICoreBrowserService),r(7,d.IThemeService)],u),t.RenderService=u},9312:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionService=void 0;const n=i(6114),o=i(456),a=i(511),h=i(8460),c=i(4725),l=i(2585),d=i(9806),_=i(9504),u=i(844),f=i(4841),v=String.fromCharCode(160),g=new RegExp(v,"g");let p=class extends u.Disposable{constructor(e,t,i,s,r,n,c,l,d){super(),this._element=e,this._screenElement=t,this._linkifier=i,this._bufferService=s,this._coreService=r,this._mouseService=n,this._optionsService=c,this._renderService=l,this._coreBrowserService=d,this._dragScrollAmount=0,this._enabled=!0,this._workCell=new a.CellData,this._mouseDownTimeStamp=0,this._oldHasSelection=!1,this._oldSelectionStart=void 0,this._oldSelectionEnd=void 0,this._onLinuxMouseSelection=this.register(new h.EventEmitter),this.onLinuxMouseSelection=this._onLinuxMouseSelection.event,this._onRedrawRequest=this.register(new h.EventEmitter),this.onRequestRedraw=this._onRedrawRequest.event,this._onSelectionChange=this.register(new h.EventEmitter),this.onSelectionChange=this._onSelectionChange.event,this._onRequestScrollLines=this.register(new h.EventEmitter),this.onRequestScrollLines=this._onRequestScrollLines.event,this._mouseMoveListener=e=>this._handleMouseMove(e),this._mouseUpListener=e=>this._handleMouseUp(e),this._coreService.onUserInput((()=>{this.hasSelection&&this.clearSelection()})),this._trimListener=this._bufferService.buffer.lines.onTrim((e=>this._handleTrim(e))),this.register(this._bufferService.buffers.onBufferActivate((e=>this._handleBufferActivate(e)))),this.enable(),this._model=new o.SelectionModel(this._bufferService),this._activeSelectionMode=0,this.register((0,u.toDisposable)((()=>{this._removeMouseDownListeners()})))}reset(){this.clearSelection()}disable(){this.clearSelection(),this._enabled=!1}enable(){this._enabled=!0}get selectionStart(){return this._model.finalSelectionStart}get selectionEnd(){return this._model.finalSelectionEnd}get hasSelection(){const e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;return!(!e||!t||e[0]===t[0]&&e[1]===t[1])}get selectionText(){const e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd;if(!e||!t)return"";const i=this._bufferService.buffer,s=[];if(3===this._activeSelectionMode){if(e[0]===t[0])return"";const r=e[0]e.replace(g," "))).join(n.isWindows?"\r\n":"\n")}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(e){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>this._refresh()))),n.isLinux&&e&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:3===this._activeSelectionMode})}_isClickInSelection(e){const t=this._getMouseBufferCoords(e),i=this._model.finalSelectionStart,s=this._model.finalSelectionEnd;return!!(i&&s&&t)&&this._areCoordsInSelection(t,i,s)}isCellInSelection(e,t){const i=this._model.finalSelectionStart,s=this._model.finalSelectionEnd;return!(!i||!s)&&this._areCoordsInSelection([e,t],i,s)}_areCoordsInSelection(e,t,i){return e[1]>t[1]&&e[1]=t[0]&&e[0]=t[0]}_selectWordAtCursor(e,t){var i,s;const r=null===(s=null===(i=this._linkifier.currentLink)||void 0===i?void 0:i.link)||void 0===s?void 0:s.range;if(r)return this._model.selectionStart=[r.start.x-1,r.start.y-1],this._model.selectionStartLength=(0,f.getRangeLength)(r,this._bufferService.cols),this._model.selectionEnd=void 0,!0;const n=this._getMouseBufferCoords(e);return!!n&&(this._selectWordAt(n,t),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(e,t){this._model.clearSelection(),e=Math.max(e,0),t=Math.min(t,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,e],this._model.selectionEnd=[this._bufferService.cols,t],this.refresh(),this._onSelectionChange.fire()}_handleTrim(e){this._model.handleTrim(e)&&this.refresh()}_getMouseBufferCoords(e){const t=this._mouseService.getCoords(e,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(t)return t[0]--,t[1]--,t[1]+=this._bufferService.buffer.ydisp,t}_getMouseEventScrollAmount(e){let t=(0,d.getCoordsRelativeToElement)(this._coreBrowserService.window,e,this._screenElement)[1];const i=this._renderService.dimensions.css.canvas.height;return t>=0&&t<=i?0:(t>i&&(t-=i),t=Math.min(Math.max(t,-50),50),t/=50,t/Math.abs(t)+Math.round(14*t))}shouldForceSelection(e){return n.isMac?e.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:e.shiftKey}handleMouseDown(e){if(this._mouseDownTimeStamp=e.timeStamp,(2!==e.button||!this.hasSelection)&&0===e.button){if(!this._enabled){if(!this.shouldForceSelection(e))return;e.stopPropagation()}e.preventDefault(),this._dragScrollAmount=0,this._enabled&&e.shiftKey?this._handleIncrementalClick(e):1===e.detail?this._handleSingleClick(e):2===e.detail?this._handleDoubleClick(e):3===e.detail&&this._handleTripleClick(e),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval((()=>this._dragScroll()),50)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(e){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(e))}_handleSingleClick(e){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(e)?3:0,this._model.selectionStart=this._getMouseBufferCoords(e),!this._model.selectionStart)return;this._model.selectionEnd=void 0;const t=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);t&&t.length!==this._model.selectionStart[0]&&0===t.hasWidth(this._model.selectionStart[0])&&this._model.selectionStart[0]++}_handleDoubleClick(e){this._selectWordAtCursor(e,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(e){const t=this._getMouseBufferCoords(e);t&&(this._activeSelectionMode=2,this._selectLineAt(t[1]))}shouldColumnSelect(e){return e.altKey&&!(n.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(e){if(e.stopImmediatePropagation(),!this._model.selectionStart)return;const t=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(e),!this._model.selectionEnd)return void this.refresh(!0);2===this._activeSelectionMode?this._model.selectionEnd[1]0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));const i=this._bufferService.buffer;if(this._model.selectionEnd[1]0?(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(e.ydisp+this._bufferService.rows,e.lines.length-1)):(3!==this._activeSelectionMode&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=e.ydisp),this.refresh()}}_handleMouseUp(e){const t=e.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&t<500&&e.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){const t=this._mouseService.getCoords(e,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(t&&void 0!==t[0]&&void 0!==t[1]){const e=(0,_.moveToCellSequence)(t[0]-1,t[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(e,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){const e=this._model.finalSelectionStart,t=this._model.finalSelectionEnd,i=!(!e||!t||e[0]===t[0]&&e[1]===t[1]);i?e&&t&&(this._oldSelectionStart&&this._oldSelectionEnd&&e[0]===this._oldSelectionStart[0]&&e[1]===this._oldSelectionStart[1]&&t[0]===this._oldSelectionEnd[0]&&t[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(e,t,i)):this._oldHasSelection&&this._fireOnSelectionChange(e,t,i)}_fireOnSelectionChange(e,t,i){this._oldSelectionStart=e,this._oldSelectionEnd=t,this._oldHasSelection=i,this._onSelectionChange.fire()}_handleBufferActivate(e){this.clearSelection(),this._trimListener.dispose(),this._trimListener=e.activeBuffer.lines.onTrim((e=>this._handleTrim(e)))}_convertViewportColToCharacterIndex(e,t){let i=t;for(let s=0;t>=s;s++){const r=e.loadCell(s,this._workCell).getChars().length;0===this._workCell.getWidth()?i--:r>1&&t!==s&&(i+=r-1)}return i}setSelection(e,t,i){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[e,t],this._model.selectionStartLength=i,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(e){this._isClickInSelection(e)||(this._selectWordAtCursor(e,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(e,t,i=!0,s=!0){if(e[0]>=this._bufferService.cols)return;const r=this._bufferService.buffer,n=r.lines.get(e[1]);if(!n)return;const o=r.translateBufferLineToString(e[1],!1);let a=this._convertViewportColToCharacterIndex(n,e[0]),h=a;const c=e[0]-a;let l=0,d=0,_=0,u=0;if(" "===o.charAt(a)){for(;a>0&&" "===o.charAt(a-1);)a--;for(;h1&&(u+=s-1,h+=s-1);t>0&&a>0&&!this._isCharWordSeparator(n.loadCell(t-1,this._workCell));){n.loadCell(t-1,this._workCell);const e=this._workCell.getChars().length;0===this._workCell.getWidth()?(l++,t--):e>1&&(_+=e-1,a-=e-1),a--,t--}for(;i1&&(u+=e-1,h+=e-1),h++,i++}}h++;let f=a+c-l+_,v=Math.min(this._bufferService.cols,h-a+l+d-_-u);if(t||""!==o.slice(a,h).trim()){if(i&&0===f&&32!==n.getCodePoint(0)){const t=r.lines.get(e[1]-1);if(t&&n.isWrapped&&32!==t.getCodePoint(this._bufferService.cols-1)){const t=this._getWordAt([this._bufferService.cols-1,e[1]-1],!1,!0,!1);if(t){const e=this._bufferService.cols-t.start;f-=e,v+=e}}}if(s&&f+v===this._bufferService.cols&&32!==n.getCodePoint(this._bufferService.cols-1)){const t=r.lines.get(e[1]+1);if((null==t?void 0:t.isWrapped)&&32!==t.getCodePoint(0)){const t=this._getWordAt([0,e[1]+1],!1,!1,!0);t&&(v+=t.length)}}return{start:f,length:v}}}_selectWordAt(e,t){const i=this._getWordAt(e,t);if(i){for(;i.start<0;)i.start+=this._bufferService.cols,e[1]--;this._model.selectionStart=[i.start,e[1]],this._model.selectionStartLength=i.length}}_selectToWordAt(e){const t=this._getWordAt(e,!0);if(t){let i=e[1];for(;t.start<0;)t.start+=this._bufferService.cols,i--;if(!this._model.areSelectionValuesReversed())for(;t.start+t.length>this._bufferService.cols;)t.length-=this._bufferService.cols,i++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?t.start:t.start+t.length,i]}}_isCharWordSeparator(e){return 0!==e.getWidth()&&this._optionsService.rawOptions.wordSeparator.indexOf(e.getChars())>=0}_selectLineAt(e){const t=this._bufferService.buffer.getWrappedRangeForLine(e),i={start:{x:0,y:t.first},end:{x:this._bufferService.cols-1,y:t.last}};this._model.selectionStart=[0,t.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,f.getRangeLength)(i,this._bufferService.cols)}};p=s([r(3,l.IBufferService),r(4,l.ICoreService),r(5,c.IMouseService),r(6,l.IOptionsService),r(7,c.IRenderService),r(8,c.ICoreBrowserService)],p),t.SelectionService=p},4725:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IThemeService=t.ICharacterJoinerService=t.ISelectionService=t.IRenderService=t.IMouseService=t.ICoreBrowserService=t.ICharSizeService=void 0;const s=i(8343);t.ICharSizeService=(0,s.createDecorator)("CharSizeService"),t.ICoreBrowserService=(0,s.createDecorator)("CoreBrowserService"),t.IMouseService=(0,s.createDecorator)("MouseService"),t.IRenderService=(0,s.createDecorator)("RenderService"),t.ISelectionService=(0,s.createDecorator)("SelectionService"),t.ICharacterJoinerService=(0,s.createDecorator)("CharacterJoinerService"),t.IThemeService=(0,s.createDecorator)("ThemeService")},6731:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeService=t.DEFAULT_ANSI_COLORS=void 0;const n=i(7239),o=i(8055),a=i(8460),h=i(844),c=i(2585),l=o.css.toColor("#ffffff"),d=o.css.toColor("#000000"),_=o.css.toColor("#ffffff"),u=o.css.toColor("#000000"),f={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};t.DEFAULT_ANSI_COLORS=Object.freeze((()=>{const e=[o.css.toColor("#2e3436"),o.css.toColor("#cc0000"),o.css.toColor("#4e9a06"),o.css.toColor("#c4a000"),o.css.toColor("#3465a4"),o.css.toColor("#75507b"),o.css.toColor("#06989a"),o.css.toColor("#d3d7cf"),o.css.toColor("#555753"),o.css.toColor("#ef2929"),o.css.toColor("#8ae234"),o.css.toColor("#fce94f"),o.css.toColor("#729fcf"),o.css.toColor("#ad7fa8"),o.css.toColor("#34e2e2"),o.css.toColor("#eeeeec")],t=[0,95,135,175,215,255];for(let i=0;i<216;i++){const s=t[i/36%6|0],r=t[i/6%6|0],n=t[i%6];e.push({css:o.channels.toCss(s,r,n),rgba:o.channels.toRgba(s,r,n)})}for(let i=0;i<24;i++){const t=8+10*i;e.push({css:o.channels.toCss(t,t,t),rgba:o.channels.toRgba(t,t,t)})}return e})());let v=class extends h.Disposable{constructor(e){super(),this._optionsService=e,this._onChangeColors=this.register(new a.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._contrastCache=new n.ColorContrastCache,this._colors={foreground:l,background:d,cursor:_,cursorAccent:u,selectionForeground:void 0,selectionBackgroundTransparent:f,selectionBackgroundOpaque:o.color.blend(d,f),selectionInactiveBackgroundTransparent:f,selectionInactiveBackgroundOpaque:o.color.blend(d,f),ansi:t.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",(()=>this._contrastCache.clear()))),this.register(this._optionsService.onSpecificOptionChange("theme",(()=>this._setTheme(this._optionsService.rawOptions.theme))))}get colors(){return this._colors}_setTheme(e={}){const i=this._colors;if(i.foreground=g(e.foreground,l),i.background=g(e.background,d),i.cursor=g(e.cursor,_),i.cursorAccent=g(e.cursorAccent,u),i.selectionBackgroundTransparent=g(e.selectionBackground,f),i.selectionBackgroundOpaque=o.color.blend(i.background,i.selectionBackgroundTransparent),i.selectionInactiveBackgroundTransparent=g(e.selectionInactiveBackground,i.selectionBackgroundTransparent),i.selectionInactiveBackgroundOpaque=o.color.blend(i.background,i.selectionInactiveBackgroundTransparent),i.selectionForeground=e.selectionForeground?g(e.selectionForeground,o.NULL_COLOR):void 0,i.selectionForeground===o.NULL_COLOR&&(i.selectionForeground=void 0),o.color.isOpaque(i.selectionBackgroundTransparent)){const e=.3;i.selectionBackgroundTransparent=o.color.opacity(i.selectionBackgroundTransparent,e)}if(o.color.isOpaque(i.selectionInactiveBackgroundTransparent)){const e=.3;i.selectionInactiveBackgroundTransparent=o.color.opacity(i.selectionInactiveBackgroundTransparent,e)}if(i.ansi=t.DEFAULT_ANSI_COLORS.slice(),i.ansi[0]=g(e.black,t.DEFAULT_ANSI_COLORS[0]),i.ansi[1]=g(e.red,t.DEFAULT_ANSI_COLORS[1]),i.ansi[2]=g(e.green,t.DEFAULT_ANSI_COLORS[2]),i.ansi[3]=g(e.yellow,t.DEFAULT_ANSI_COLORS[3]),i.ansi[4]=g(e.blue,t.DEFAULT_ANSI_COLORS[4]),i.ansi[5]=g(e.magenta,t.DEFAULT_ANSI_COLORS[5]),i.ansi[6]=g(e.cyan,t.DEFAULT_ANSI_COLORS[6]),i.ansi[7]=g(e.white,t.DEFAULT_ANSI_COLORS[7]),i.ansi[8]=g(e.brightBlack,t.DEFAULT_ANSI_COLORS[8]),i.ansi[9]=g(e.brightRed,t.DEFAULT_ANSI_COLORS[9]),i.ansi[10]=g(e.brightGreen,t.DEFAULT_ANSI_COLORS[10]),i.ansi[11]=g(e.brightYellow,t.DEFAULT_ANSI_COLORS[11]),i.ansi[12]=g(e.brightBlue,t.DEFAULT_ANSI_COLORS[12]),i.ansi[13]=g(e.brightMagenta,t.DEFAULT_ANSI_COLORS[13]),i.ansi[14]=g(e.brightCyan,t.DEFAULT_ANSI_COLORS[14]),i.ansi[15]=g(e.brightWhite,t.DEFAULT_ANSI_COLORS[15]),e.extendedAnsi){const s=Math.min(i.ansi.length-16,e.extendedAnsi.length);for(let r=0;r{Object.defineProperty(t,"__esModule",{value:!0}),t.CircularList=void 0;const s=i(8460),r=i(844);class n extends r.Disposable{constructor(e){super(),this._maxLength=e,this.onDeleteEmitter=this.register(new s.EventEmitter),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this.register(new s.EventEmitter),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this.register(new s.EventEmitter),this.onTrim=this.onTrimEmitter.event,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(e){if(this._maxLength===e)return;const t=new Array(e);for(let i=0;ithis._length)for(let t=this._length;t=e;s--)this._array[this._getCyclicIndex(s+i.length)]=this._array[this._getCyclicIndex(s)];for(let s=0;sthis._maxLength){const e=this._length+i.length-this._maxLength;this._startIndex+=e,this._length=this._maxLength,this.onTrimEmitter.fire(e)}else this._length+=i.length}trimStart(e){e>this._length&&(e=this._length),this._startIndex+=e,this._length-=e,this.onTrimEmitter.fire(e)}shiftElements(e,t,i){if(!(t<=0)){if(e<0||e>=this._length)throw new Error("start argument out of range");if(e+i<0)throw new Error("Cannot shift elements in list beyond index 0");if(i>0){for(let r=t-1;r>=0;r--)this.set(e+r+i,this.get(e+r));const s=e+t+i-this._length;if(s>0)for(this._length+=s;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let s=0;s{Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t,i=5){if("object"!=typeof t)return t;const s=Array.isArray(t)?[]:{};for(const r in t)s[r]=i<=1?t[r]:t[r]&&e(t[r],i-1);return s}},8055:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.contrastRatio=t.toPaddedHex=t.rgba=t.rgb=t.css=t.color=t.channels=t.NULL_COLOR=void 0;const s=i(6114);let r=0,n=0,o=0,a=0;var h,c,l;function d(e){const t=e.toString(16);return t.length<2?"0"+t:t}function _(e,t){return e>>0}}(h=t.channels||(t.channels={})),function(e){function t(e,t){return a=Math.round(255*t),[r,n,o]=l.toChannels(e.rgba),{css:h.toCss(r,n,o,a),rgba:h.toRgba(r,n,o,a)}}e.blend=function(e,t){if(a=(255&t.rgba)/255,1===a)return{css:t.css,rgba:t.rgba};const i=t.rgba>>24&255,s=t.rgba>>16&255,c=t.rgba>>8&255,l=e.rgba>>24&255,d=e.rgba>>16&255,_=e.rgba>>8&255;return r=l+Math.round((i-l)*a),n=d+Math.round((s-d)*a),o=_+Math.round((c-_)*a),{css:h.toCss(r,n,o),rgba:h.toRgba(r,n,o)}},e.isOpaque=function(e){return 255==(255&e.rgba)},e.ensureContrastRatio=function(e,t,i){const s=l.ensureContrastRatio(e.rgba,t.rgba,i);if(s)return l.toColor(s>>24&255,s>>16&255,s>>8&255)},e.opaque=function(e){const t=(255|e.rgba)>>>0;return[r,n,o]=l.toChannels(t),{css:h.toCss(r,n,o),rgba:t}},e.opacity=t,e.multiplyOpacity=function(e,i){return a=255&e.rgba,t(e,a*i/255)},e.toColorRGB=function(e){return[e.rgba>>24&255,e.rgba>>16&255,e.rgba>>8&255]}}(t.color||(t.color={})),function(e){let t,i;if(!s.isNode){const e=document.createElement("canvas");e.width=1,e.height=1;const s=e.getContext("2d",{willReadFrequently:!0});s&&(t=s,t.globalCompositeOperation="copy",i=t.createLinearGradient(0,0,1,1))}e.toColor=function(e){if(e.match(/#[\da-f]{3,8}/i))switch(e.length){case 4:return r=parseInt(e.slice(1,2).repeat(2),16),n=parseInt(e.slice(2,3).repeat(2),16),o=parseInt(e.slice(3,4).repeat(2),16),l.toColor(r,n,o);case 5:return r=parseInt(e.slice(1,2).repeat(2),16),n=parseInt(e.slice(2,3).repeat(2),16),o=parseInt(e.slice(3,4).repeat(2),16),a=parseInt(e.slice(4,5).repeat(2),16),l.toColor(r,n,o,a);case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}const s=e.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(s)return r=parseInt(s[1]),n=parseInt(s[2]),o=parseInt(s[3]),a=Math.round(255*(void 0===s[5]?1:parseFloat(s[5]))),l.toColor(r,n,o,a);if(!t||!i)throw new Error("css.toColor: Unsupported css format");if(t.fillStyle=i,t.fillStyle=e,"string"!=typeof t.fillStyle)throw new Error("css.toColor: Unsupported css format");if(t.fillRect(0,0,1,1),[r,n,o,a]=t.getImageData(0,0,1,1).data,255!==a)throw new Error("css.toColor: Unsupported css format");return{rgba:h.toRgba(r,n,o,a),css:e}}}(t.css||(t.css={})),function(e){function t(e,t,i){const s=e/255,r=t/255,n=i/255;return.2126*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(n<=.03928?n/12.92:Math.pow((n+.055)/1.055,2.4))}e.relativeLuminance=function(e){return t(e>>16&255,e>>8&255,255&e)},e.relativeLuminance2=t}(c=t.rgb||(t.rgb={})),function(e){function t(e,t,i){const s=e>>24&255,r=e>>16&255,n=e>>8&255;let o=t>>24&255,a=t>>16&255,h=t>>8&255,l=_(c.relativeLuminance2(o,a,h),c.relativeLuminance2(s,r,n));for(;l0||a>0||h>0);)o-=Math.max(0,Math.ceil(.1*o)),a-=Math.max(0,Math.ceil(.1*a)),h-=Math.max(0,Math.ceil(.1*h)),l=_(c.relativeLuminance2(o,a,h),c.relativeLuminance2(s,r,n));return(o<<24|a<<16|h<<8|255)>>>0}function i(e,t,i){const s=e>>24&255,r=e>>16&255,n=e>>8&255;let o=t>>24&255,a=t>>16&255,h=t>>8&255,l=_(c.relativeLuminance2(o,a,h),c.relativeLuminance2(s,r,n));for(;l>>0}e.ensureContrastRatio=function(e,s,r){const n=c.relativeLuminance(e>>8),o=c.relativeLuminance(s>>8);if(_(n,o)>8));if(a_(n,c.relativeLuminance(t>>8))?o:t}return o}const a=i(e,s,r),h=_(n,c.relativeLuminance(a>>8));if(h_(n,c.relativeLuminance(i>>8))?a:i}return a}},e.reduceLuminance=t,e.increaseLuminance=i,e.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},e.toColor=function(e,t,i,s){return{css:h.toCss(e,t,i,s),rgba:h.toRgba(e,t,i,s)}}}(l=t.rgba||(t.rgba={})),t.toPaddedHex=d,t.contrastRatio=_},8969:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CoreTerminal=void 0;const s=i(844),r=i(2585),n=i(4348),o=i(7866),a=i(744),h=i(7302),c=i(6975),l=i(8460),d=i(1753),_=i(1480),u=i(7994),f=i(9282),v=i(5435),g=i(5981),p=i(2660);let S=!1;class m extends s.Disposable{constructor(e){super(),this._onBinary=this.register(new l.EventEmitter),this.onBinary=this._onBinary.event,this._onData=this.register(new l.EventEmitter),this.onData=this._onData.event,this._onLineFeed=this.register(new l.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onResize=this.register(new l.EventEmitter),this.onResize=this._onResize.event,this._onWriteParsed=this.register(new l.EventEmitter),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this.register(new l.EventEmitter),this._instantiationService=new n.InstantiationService,this.optionsService=this.register(new h.OptionsService(e)),this._instantiationService.setService(r.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(a.BufferService)),this._instantiationService.setService(r.IBufferService,this._bufferService),this._logService=this.register(this._instantiationService.createInstance(o.LogService)),this._instantiationService.setService(r.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(c.CoreService)),this._instantiationService.setService(r.ICoreService,this.coreService),this.coreMouseService=this.register(this._instantiationService.createInstance(d.CoreMouseService)),this._instantiationService.setService(r.ICoreMouseService,this.coreMouseService),this.unicodeService=this.register(this._instantiationService.createInstance(_.UnicodeService)),this._instantiationService.setService(r.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(u.CharsetService),this._instantiationService.setService(r.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(p.OscLinkService),this._instantiationService.setService(r.IOscLinkService,this._oscLinkService),this._inputHandler=this.register(new v.InputHandler(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this.register((0,l.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,l.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,l.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,l.forwardEvent)(this.coreService.onBinary,this._onBinary)),this.register(this.coreService.onRequestScrollToBottom((()=>this.scrollToBottom()))),this.register(this.coreService.onUserInput((()=>this._writeBuffer.handleUserInput()))),this.register(this.optionsService.onSpecificOptionChange("windowsMode",(e=>this._handleWindowsModeOptionChange(e)))),this.register(this._bufferService.onScroll((e=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)}))),this.register(this._inputHandler.onScroll((e=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)}))),this._writeBuffer=this.register(new g.WriteBuffer(((e,t)=>this._inputHandler.parse(e,t)))),this.register((0,l.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed)),this.register((0,s.toDisposable)((()=>{var e;null===(e=this._windowsMode)||void 0===e||e.dispose(),this._windowsMode=void 0})))}get onScroll(){return this._onScrollApi||(this._onScrollApi=this.register(new l.EventEmitter),this._onScroll.event((e=>{var t;null===(t=this._onScrollApi)||void 0===t||t.fire(e.position)}))),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(e){for(const t in e)this.optionsService.options[t]=e[t]}write(e,t){this._writeBuffer.write(e,t)}writeSync(e,t){this._logService.logLevel<=r.LogLevelEnum.WARN&&!S&&(this._logService.warn("writeSync is unreliable and will be removed soon."),S=!0),this._writeBuffer.writeSync(e,t)}resize(e,t){isNaN(e)||isNaN(t)||(e=Math.max(e,a.MINIMUM_COLS),t=Math.max(t,a.MINIMUM_ROWS),this._bufferService.resize(e,t))}scroll(e,t=!1){this._bufferService.scroll(e,t)}scrollLines(e,t,i){this._bufferService.scrollLines(e,t,i)}scrollPages(e){this._bufferService.scrollPages(e)}scrollToTop(){this._bufferService.scrollToTop()}scrollToBottom(){this._bufferService.scrollToBottom()}scrollToLine(e){this._bufferService.scrollToLine(e)}registerEscHandler(e,t){return this._inputHandler.registerEscHandler(e,t)}registerDcsHandler(e,t){return this._inputHandler.registerDcsHandler(e,t)}registerCsiHandler(e,t){return this._inputHandler.registerCsiHandler(e,t)}registerOscHandler(e,t){return this._inputHandler.registerOscHandler(e,t)}_setup(){this.optionsService.rawOptions.windowsMode&&this._enableWindowsMode()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsModeOptionChange(e){var t;e?this._enableWindowsMode():(null===(t=this._windowsMode)||void 0===t||t.dispose(),this._windowsMode=void 0)}_enableWindowsMode(){if(!this._windowsMode){const e=[];e.push(this.onLineFeed(f.updateWindowsModeWrappedState.bind(null,this._bufferService))),e.push(this.registerCsiHandler({final:"H"},(()=>((0,f.updateWindowsModeWrappedState)(this._bufferService),!1)))),this._windowsMode={dispose:()=>{for(const t of e)t.dispose()}}}}}t.CoreTerminal=m},8460:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.forwardEvent=t.EventEmitter=void 0,t.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=e=>(this._listeners.push(e),{dispose:()=>{if(!this._disposed)for(let t=0;tt.fire(e)))}},5435:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.InputHandler=t.WindowsOptionsReportType=void 0;const n=i(2584),o=i(7116),a=i(2015),h=i(844),c=i(482),l=i(8437),d=i(8460),_=i(643),u=i(511),f=i(3734),v=i(2585),g=i(6242),p=i(6351),S=i(5941),m={"(":0,")":1,"*":2,"+":3,"-":1,".":2},C=131072;function b(e,t){if(e>24)return t.setWinLines||!1;switch(e){case 1:return!!t.restoreWin;case 2:return!!t.minimizeWin;case 3:return!!t.setWinPosition;case 4:return!!t.setWinSizePixels;case 5:return!!t.raiseWin;case 6:return!!t.lowerWin;case 7:return!!t.refreshWin;case 8:return!!t.setWinSizeChars;case 9:return!!t.maximizeWin;case 10:return!!t.fullscreenWin;case 11:return!!t.getWinState;case 13:return!!t.getWinPosition;case 14:return!!t.getWinSizePixels;case 15:return!!t.getScreenSizePixels;case 16:return!!t.getCellSizePixels;case 18:return!!t.getWinSizeChars;case 19:return!!t.getScreenSizeChars;case 20:return!!t.getIconTitle;case 21:return!!t.getWinTitle;case 22:return!!t.pushTitle;case 23:return!!t.popTitle;case 24:return!!t.setWinLines}return!1}var y;!function(e){e[e.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",e[e.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"}(y=t.WindowsOptionsReportType||(t.WindowsOptionsReportType={}));let w=0;class E extends h.Disposable{constructor(e,t,i,s,r,h,_,f,v=new a.EscapeSequenceParser){super(),this._bufferService=e,this._charsetService=t,this._coreService=i,this._logService=s,this._optionsService=r,this._oscLinkService=h,this._coreMouseService=_,this._unicodeService=f,this._parser=v,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new c.StringToUtf32,this._utf8Decoder=new c.Utf8ToUtf32,this._workCell=new u.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=l.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=l.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=this.register(new d.EventEmitter),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this.register(new d.EventEmitter),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this.register(new d.EventEmitter),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this.register(new d.EventEmitter),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this.register(new d.EventEmitter),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this.register(new d.EventEmitter),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this.register(new d.EventEmitter),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this.register(new d.EventEmitter),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this.register(new d.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this.register(new d.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onScroll=this.register(new d.EventEmitter),this.onScroll=this._onScroll.event,this._onTitleChange=this.register(new d.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onColor=this.register(new d.EventEmitter),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this.register(this._parser),this._dirtyRowTracker=new L(this._bufferService),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate((e=>this._activeBuffer=e.activeBuffer))),this._parser.setCsiHandlerFallback(((e,t)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(e),params:t.toArray()})})),this._parser.setEscHandlerFallback((e=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(e)})})),this._parser.setExecuteHandlerFallback((e=>{this._logService.debug("Unknown EXECUTE code: ",{code:e})})),this._parser.setOscHandlerFallback(((e,t,i)=>{this._logService.debug("Unknown OSC code: ",{identifier:e,action:t,data:i})})),this._parser.setDcsHandlerFallback(((e,t,i)=>{"HOOK"===t&&(i=i.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(e),action:t,payload:i})})),this._parser.setPrintHandler(((e,t,i)=>this.print(e,t,i))),this._parser.registerCsiHandler({final:"@"},(e=>this.insertChars(e))),this._parser.registerCsiHandler({intermediates:" ",final:"@"},(e=>this.scrollLeft(e))),this._parser.registerCsiHandler({final:"A"},(e=>this.cursorUp(e))),this._parser.registerCsiHandler({intermediates:" ",final:"A"},(e=>this.scrollRight(e))),this._parser.registerCsiHandler({final:"B"},(e=>this.cursorDown(e))),this._parser.registerCsiHandler({final:"C"},(e=>this.cursorForward(e))),this._parser.registerCsiHandler({final:"D"},(e=>this.cursorBackward(e))),this._parser.registerCsiHandler({final:"E"},(e=>this.cursorNextLine(e))),this._parser.registerCsiHandler({final:"F"},(e=>this.cursorPrecedingLine(e))),this._parser.registerCsiHandler({final:"G"},(e=>this.cursorCharAbsolute(e))),this._parser.registerCsiHandler({final:"H"},(e=>this.cursorPosition(e))),this._parser.registerCsiHandler({final:"I"},(e=>this.cursorForwardTab(e))),this._parser.registerCsiHandler({final:"J"},(e=>this.eraseInDisplay(e,!1))),this._parser.registerCsiHandler({prefix:"?",final:"J"},(e=>this.eraseInDisplay(e,!0))),this._parser.registerCsiHandler({final:"K"},(e=>this.eraseInLine(e,!1))),this._parser.registerCsiHandler({prefix:"?",final:"K"},(e=>this.eraseInLine(e,!0))),this._parser.registerCsiHandler({final:"L"},(e=>this.insertLines(e))),this._parser.registerCsiHandler({final:"M"},(e=>this.deleteLines(e))),this._parser.registerCsiHandler({final:"P"},(e=>this.deleteChars(e))),this._parser.registerCsiHandler({final:"S"},(e=>this.scrollUp(e))),this._parser.registerCsiHandler({final:"T"},(e=>this.scrollDown(e))),this._parser.registerCsiHandler({final:"X"},(e=>this.eraseChars(e))),this._parser.registerCsiHandler({final:"Z"},(e=>this.cursorBackwardTab(e))),this._parser.registerCsiHandler({final:"`"},(e=>this.charPosAbsolute(e))),this._parser.registerCsiHandler({final:"a"},(e=>this.hPositionRelative(e))),this._parser.registerCsiHandler({final:"b"},(e=>this.repeatPrecedingCharacter(e))),this._parser.registerCsiHandler({final:"c"},(e=>this.sendDeviceAttributesPrimary(e))),this._parser.registerCsiHandler({prefix:">",final:"c"},(e=>this.sendDeviceAttributesSecondary(e))),this._parser.registerCsiHandler({final:"d"},(e=>this.linePosAbsolute(e))),this._parser.registerCsiHandler({final:"e"},(e=>this.vPositionRelative(e))),this._parser.registerCsiHandler({final:"f"},(e=>this.hVPosition(e))),this._parser.registerCsiHandler({final:"g"},(e=>this.tabClear(e))),this._parser.registerCsiHandler({final:"h"},(e=>this.setMode(e))),this._parser.registerCsiHandler({prefix:"?",final:"h"},(e=>this.setModePrivate(e))),this._parser.registerCsiHandler({final:"l"},(e=>this.resetMode(e))),this._parser.registerCsiHandler({prefix:"?",final:"l"},(e=>this.resetModePrivate(e))),this._parser.registerCsiHandler({final:"m"},(e=>this.charAttributes(e))),this._parser.registerCsiHandler({final:"n"},(e=>this.deviceStatus(e))),this._parser.registerCsiHandler({prefix:"?",final:"n"},(e=>this.deviceStatusPrivate(e))),this._parser.registerCsiHandler({intermediates:"!",final:"p"},(e=>this.softReset(e))),this._parser.registerCsiHandler({intermediates:" ",final:"q"},(e=>this.setCursorStyle(e))),this._parser.registerCsiHandler({final:"r"},(e=>this.setScrollRegion(e))),this._parser.registerCsiHandler({final:"s"},(e=>this.saveCursor(e))),this._parser.registerCsiHandler({final:"t"},(e=>this.windowOptions(e))),this._parser.registerCsiHandler({final:"u"},(e=>this.restoreCursor(e))),this._parser.registerCsiHandler({intermediates:"'",final:"}"},(e=>this.insertColumns(e))),this._parser.registerCsiHandler({intermediates:"'",final:"~"},(e=>this.deleteColumns(e))),this._parser.registerCsiHandler({intermediates:'"',final:"q"},(e=>this.selectProtected(e))),this._parser.registerCsiHandler({intermediates:"$",final:"p"},(e=>this.requestMode(e,!0))),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},(e=>this.requestMode(e,!1))),this._parser.setExecuteHandler(n.C0.BEL,(()=>this.bell())),this._parser.setExecuteHandler(n.C0.LF,(()=>this.lineFeed())),this._parser.setExecuteHandler(n.C0.VT,(()=>this.lineFeed())),this._parser.setExecuteHandler(n.C0.FF,(()=>this.lineFeed())),this._parser.setExecuteHandler(n.C0.CR,(()=>this.carriageReturn())),this._parser.setExecuteHandler(n.C0.BS,(()=>this.backspace())),this._parser.setExecuteHandler(n.C0.HT,(()=>this.tab())),this._parser.setExecuteHandler(n.C0.SO,(()=>this.shiftOut())),this._parser.setExecuteHandler(n.C0.SI,(()=>this.shiftIn())),this._parser.setExecuteHandler(n.C1.IND,(()=>this.index())),this._parser.setExecuteHandler(n.C1.NEL,(()=>this.nextLine())),this._parser.setExecuteHandler(n.C1.HTS,(()=>this.tabSet())),this._parser.registerOscHandler(0,new g.OscHandler((e=>(this.setTitle(e),this.setIconName(e),!0)))),this._parser.registerOscHandler(1,new g.OscHandler((e=>this.setIconName(e)))),this._parser.registerOscHandler(2,new g.OscHandler((e=>this.setTitle(e)))),this._parser.registerOscHandler(4,new g.OscHandler((e=>this.setOrReportIndexedColor(e)))),this._parser.registerOscHandler(8,new g.OscHandler((e=>this.setHyperlink(e)))),this._parser.registerOscHandler(10,new g.OscHandler((e=>this.setOrReportFgColor(e)))),this._parser.registerOscHandler(11,new g.OscHandler((e=>this.setOrReportBgColor(e)))),this._parser.registerOscHandler(12,new g.OscHandler((e=>this.setOrReportCursorColor(e)))),this._parser.registerOscHandler(104,new g.OscHandler((e=>this.restoreIndexedColor(e)))),this._parser.registerOscHandler(110,new g.OscHandler((e=>this.restoreFgColor(e)))),this._parser.registerOscHandler(111,new g.OscHandler((e=>this.restoreBgColor(e)))),this._parser.registerOscHandler(112,new g.OscHandler((e=>this.restoreCursorColor(e)))),this._parser.registerEscHandler({final:"7"},(()=>this.saveCursor())),this._parser.registerEscHandler({final:"8"},(()=>this.restoreCursor())),this._parser.registerEscHandler({final:"D"},(()=>this.index())),this._parser.registerEscHandler({final:"E"},(()=>this.nextLine())),this._parser.registerEscHandler({final:"H"},(()=>this.tabSet())),this._parser.registerEscHandler({final:"M"},(()=>this.reverseIndex())),this._parser.registerEscHandler({final:"="},(()=>this.keypadApplicationMode())),this._parser.registerEscHandler({final:">"},(()=>this.keypadNumericMode())),this._parser.registerEscHandler({final:"c"},(()=>this.fullReset())),this._parser.registerEscHandler({final:"n"},(()=>this.setgLevel(2))),this._parser.registerEscHandler({final:"o"},(()=>this.setgLevel(3))),this._parser.registerEscHandler({final:"|"},(()=>this.setgLevel(3))),this._parser.registerEscHandler({final:"}"},(()=>this.setgLevel(2))),this._parser.registerEscHandler({final:"~"},(()=>this.setgLevel(1))),this._parser.registerEscHandler({intermediates:"%",final:"@"},(()=>this.selectDefaultCharset())),this._parser.registerEscHandler({intermediates:"%",final:"G"},(()=>this.selectDefaultCharset()));for(const n in o.CHARSETS)this._parser.registerEscHandler({intermediates:"(",final:n},(()=>this.selectCharset("("+n))),this._parser.registerEscHandler({intermediates:")",final:n},(()=>this.selectCharset(")"+n))),this._parser.registerEscHandler({intermediates:"*",final:n},(()=>this.selectCharset("*"+n))),this._parser.registerEscHandler({intermediates:"+",final:n},(()=>this.selectCharset("+"+n))),this._parser.registerEscHandler({intermediates:"-",final:n},(()=>this.selectCharset("-"+n))),this._parser.registerEscHandler({intermediates:".",final:n},(()=>this.selectCharset("."+n))),this._parser.registerEscHandler({intermediates:"/",final:n},(()=>this.selectCharset("/"+n)));this._parser.registerEscHandler({intermediates:"#",final:"8"},(()=>this.screenAlignmentPattern())),this._parser.setErrorHandler((e=>(this._logService.error("Parsing error: ",e),e))),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new p.DcsHandler(((e,t)=>this.requestStatusString(e,t))))}getAttrData(){return this._curAttrData}_preserveStack(e,t,i,s){this._parseStack.paused=!0,this._parseStack.cursorStartX=e,this._parseStack.cursorStartY=t,this._parseStack.decodedLength=i,this._parseStack.position=s}_logSlowResolvingAsync(e){this._logService.logLevel<=v.LogLevelEnum.WARN&&Promise.race([e,new Promise(((e,t)=>setTimeout((()=>t("#SLOW_TIMEOUT")),5e3)))]).catch((e=>{if("#SLOW_TIMEOUT"!==e)throw e;console.warn("async parser handler taking longer than 5000 ms")}))}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(e,t){let i,s=this._activeBuffer.x,r=this._activeBuffer.y,n=0;const o=this._parseStack.paused;if(o){if(i=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,t))return this._logSlowResolvingAsync(i),i;s=this._parseStack.cursorStartX,r=this._parseStack.cursorStartY,this._parseStack.paused=!1,e.length>C&&(n=this._parseStack.position+C)}if(this._logService.logLevel<=v.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+("string"==typeof e?` "${e}"`:` "${Array.prototype.map.call(e,(e=>String.fromCharCode(e))).join("")}"`),"string"==typeof e?e.split("").map((e=>e.charCodeAt(0))):e),this._parseBuffer.lengthC)for(let a=n;a0&&2===u.getWidth(this._activeBuffer.x-1)&&u.setCellFromCodePoint(this._activeBuffer.x-1,0,1,d.fg,d.bg,d.extended);for(let f=t;f=a)if(h){for(;this._activeBuffer.x=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),u=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=a-1,2===r)continue;if(l&&(u.insertCells(this._activeBuffer.x,r,this._activeBuffer.getNullCell(d),d),2===u.getWidth(a-1)&&u.setCellFromCodePoint(a-1,_.NULL_CELL_CODE,_.NULL_CELL_WIDTH,d.fg,d.bg,d.extended)),u.setCellFromCodePoint(this._activeBuffer.x++,s,r,d.fg,d.bg,d.extended),r>0)for(;--r;)u.setCellFromCodePoint(this._activeBuffer.x++,0,0,d.fg,d.bg,d.extended)}else u.getWidth(this._activeBuffer.x-1)?u.addCodepointToCell(this._activeBuffer.x-1,s):u.addCodepointToCell(this._activeBuffer.x-2,s)}i-t>0&&(u.loadCell(this._activeBuffer.x-1,this._workCell),2===this._workCell.getWidth()||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x0&&0===u.getWidth(this._activeBuffer.x)&&!u.hasContent(this._activeBuffer.x)&&u.setCellFromCodePoint(this._activeBuffer.x,0,1,d.fg,d.bg,d.extended),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(e,t){return"t"!==e.final||e.prefix||e.intermediates?this._parser.registerCsiHandler(e,t):this._parser.registerCsiHandler(e,(e=>!b(e.params[0],this._optionsService.rawOptions.windowOptions)||t(e)))}registerDcsHandler(e,t){return this._parser.registerDcsHandler(e,new p.DcsHandler(t))}registerEscHandler(e,t){return this._parser.registerEscHandler(e,t)}registerOscHandler(e,t){return this._parser.registerOscHandler(e,new g.OscHandler(t))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){var e;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(0===this._activeBuffer.x&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(null===(e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))||void 0===e?void 0:e.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;const e=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);e.hasWidth(this._activeBuffer.x)&&!e.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;const e=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-e),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(e=this._bufferService.cols-1){this._activeBuffer.x=Math.min(e,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(e,t){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=e,this._activeBuffer.y=this._activeBuffer.scrollTop+t):(this._activeBuffer.x=e,this._activeBuffer.y=t),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(e,t){this._restrictCursor(),this._setCursor(this._activeBuffer.x+e,this._activeBuffer.y+t)}cursorUp(e){const t=this._activeBuffer.y-this._activeBuffer.scrollTop;return t>=0?this._moveCursor(0,-Math.min(t,e.params[0]||1)):this._moveCursor(0,-(e.params[0]||1)),!0}cursorDown(e){const t=this._activeBuffer.scrollBottom-this._activeBuffer.y;return t>=0?this._moveCursor(0,Math.min(t,e.params[0]||1)):this._moveCursor(0,e.params[0]||1),!0}cursorForward(e){return this._moveCursor(e.params[0]||1,0),!0}cursorBackward(e){return this._moveCursor(-(e.params[0]||1),0),!0}cursorNextLine(e){return this.cursorDown(e),this._activeBuffer.x=0,!0}cursorPrecedingLine(e){return this.cursorUp(e),this._activeBuffer.x=0,!0}cursorCharAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(e){return this._setCursor(e.length>=2?(e.params[1]||1)-1:0,(e.params[0]||1)-1),!0}charPosAbsolute(e){return this._setCursor((e.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(e){return this._moveCursor(e.params[0]||1,0),!0}linePosAbsolute(e){return this._setCursor(this._activeBuffer.x,(e.params[0]||1)-1),!0}vPositionRelative(e){return this._moveCursor(0,e.params[0]||1),!0}hVPosition(e){return this.cursorPosition(e),!0}tabClear(e){const t=e.params[0];return 0===t?delete this._activeBuffer.tabs[this._activeBuffer.x]:3===t&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(e){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let t=e.params[0]||1;for(;t--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(e){const t=e.params[0];return 1===t&&(this._curAttrData.bg|=536870912),2!==t&&0!==t||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(e,t,i,s=!1,r=!1){const n=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);n.replaceCells(t,i,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData(),r),s&&(n.isWrapped=!1)}_resetBufferLine(e,t=!1){const i=this._activeBuffer.lines.get(this._activeBuffer.ybase+e);i.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),t),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+e),i.isWrapped=!1}eraseInDisplay(e,t=!1){let i;switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:for(i=this._activeBuffer.y,this._dirtyRowTracker.markDirty(i),this._eraseInBufferLine(i++,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x,t);i=this._bufferService.cols&&(this._activeBuffer.lines.get(i+1).isWrapped=!1);i--;)this._resetBufferLine(i,t);this._dirtyRowTracker.markDirty(0);break;case 2:for(i=this._bufferService.rows,this._dirtyRowTracker.markDirty(i-1);i--;)this._resetBufferLine(i,t);this._dirtyRowTracker.markDirty(0);break;case 3:const e=this._activeBuffer.lines.length-this._bufferService.rows;e>0&&(this._activeBuffer.lines.trimStart(e),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-e,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-e,0),this._onScroll.fire(0))}return!0}eraseInLine(e,t=!1){switch(this._restrictCursor(this._bufferService.cols),e.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,0===this._activeBuffer.x,t);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,t);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,t)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(e){this._restrictCursor();let t=e.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.ythis._activeBuffer.scrollBottom||this._activeBuffer.y0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(n.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(n.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(e){return e.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(n.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(n.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(e.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(n.C0.ESC+"[>83;40003;0c")),!0}_is(e){return 0===(this._optionsService.rawOptions.termName+"").indexOf(e)}setMode(e){for(let t=0;te?1:2,u=e.params[0];return f=u,v=t?2===u?3:4===u?_(o.modes.insertMode):12===u?4:20===u?_(d.convertEol):0:1===u?_(i.applicationCursorKeys):3===u?d.windowOptions.setWinLines?80===h?2:132===h?1:0:0:6===u?_(i.origin):7===u?_(i.wraparound):8===u?3:9===u?_("X10"===s):12===u?_(d.cursorBlink):25===u?_(!o.isCursorHidden):45===u?_(i.reverseWraparound):66===u?_(i.applicationKeypad):1e3===u?_("VT200"===s):1002===u?_("DRAG"===s):1003===u?_("ANY"===s):1004===u?_(i.sendFocus):1005===u?4:1006===u?_("SGR"===r):1015===u?4:1016===u?_("SGR_PIXELS"===r):1048===u?1:47===u||1047===u||1049===u?_(c===l):2004===u?_(i.bracketedPasteMode):0,o.triggerDataEvent(`${n.C0.ESC}[${t?"":"?"}${f};${v}$y`),!0;var f,v}_updateAttrColor(e,t,i,s,r){return 2===t?(e|=50331648,e&=-16777216,e|=f.AttributeData.fromColorRGB([i,s,r])):5===t&&(e&=-50331904,e|=33554432|255&i),e}_extractColor(e,t,i){const s=[0,0,-1,0,0,0];let r=0,n=0;do{if(s[n+r]=e.params[t+n],e.hasSubParams(t+n)){const i=e.getSubParams(t+n);let o=0;do{5===s[1]&&(r=1),s[n+o+1+r]=i[o]}while(++o=2||2===s[1]&&n+r>=5)break;s[1]&&(r=1)}while(++n+t5)&&(e=1),t.extended.underlineStyle=e,t.fg|=268435456,0===e&&(t.fg&=-268435457),t.updateExtended()}_processSGR0(e){e.fg=l.DEFAULT_ATTR_DATA.fg,e.bg=l.DEFAULT_ATTR_DATA.bg,e.extended=e.extended.clone(),e.extended.underlineStyle=0,e.extended.underlineColor&=-67108864,e.updateExtended()}charAttributes(e){if(1===e.length&&0===e.params[0])return this._processSGR0(this._curAttrData),!0;const t=e.length;let i;const s=this._curAttrData;for(let r=0;r=30&&i<=37?(s.fg&=-50331904,s.fg|=16777216|i-30):i>=40&&i<=47?(s.bg&=-50331904,s.bg|=16777216|i-40):i>=90&&i<=97?(s.fg&=-50331904,s.fg|=16777224|i-90):i>=100&&i<=107?(s.bg&=-50331904,s.bg|=16777224|i-100):0===i?this._processSGR0(s):1===i?s.fg|=134217728:3===i?s.bg|=67108864:4===i?(s.fg|=268435456,this._processUnderline(e.hasSubParams(r)?e.getSubParams(r)[0]:1,s)):5===i?s.fg|=536870912:7===i?s.fg|=67108864:8===i?s.fg|=1073741824:9===i?s.fg|=2147483648:2===i?s.bg|=134217728:21===i?this._processUnderline(2,s):22===i?(s.fg&=-134217729,s.bg&=-134217729):23===i?s.bg&=-67108865:24===i?(s.fg&=-268435457,this._processUnderline(0,s)):25===i?s.fg&=-536870913:27===i?s.fg&=-67108865:28===i?s.fg&=-1073741825:29===i?s.fg&=2147483647:39===i?(s.fg&=-67108864,s.fg|=16777215&l.DEFAULT_ATTR_DATA.fg):49===i?(s.bg&=-67108864,s.bg|=16777215&l.DEFAULT_ATTR_DATA.bg):38===i||48===i||58===i?r+=this._extractColor(e,r,s):59===i?(s.extended=s.extended.clone(),s.extended.underlineColor=-1,s.updateExtended()):100===i?(s.fg&=-67108864,s.fg|=16777215&l.DEFAULT_ATTR_DATA.fg,s.bg&=-67108864,s.bg|=16777215&l.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",i);return!0}deviceStatus(e){switch(e.params[0]){case 5:this._coreService.triggerDataEvent(`${n.C0.ESC}[0n`);break;case 6:const e=this._activeBuffer.y+1,t=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${n.C0.ESC}[${e};${t}R`)}return!0}deviceStatusPrivate(e){if(6===e.params[0]){const e=this._activeBuffer.y+1,t=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${n.C0.ESC}[?${e};${t}R`)}return!0}softReset(e){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=l.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(e){const t=e.params[0]||1;switch(t){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}const i=t%2==1;return this._optionsService.options.cursorBlink=i,!0}setScrollRegion(e){const t=e.params[0]||1;let i;return(e.length<2||(i=e.params[1])>this._bufferService.rows||0===i)&&(i=this._bufferService.rows),i>t&&(this._activeBuffer.scrollTop=t-1,this._activeBuffer.scrollBottom=i-1,this._setCursor(0,0)),!0}windowOptions(e){if(!b(e.params[0],this._optionsService.rawOptions.windowOptions))return!0;const t=e.length>1?e.params[1]:0;switch(e.params[0]){case 14:2!==t&&this._onRequestWindowsOptionsReport.fire(y.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(y.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${n.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:0!==t&&2!==t||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),0!==t&&1!==t||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:0!==t&&2!==t||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),0!==t&&1!==t||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}saveCursor(e){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(e){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(e){return this._windowTitle=e,this._onTitleChange.fire(e),!0}setIconName(e){return this._iconName=e,!0}setOrReportIndexedColor(e){const t=[],i=e.split(";");for(;i.length>1;){const e=i.shift(),s=i.shift();if(/^\d+$/.exec(e)){const i=parseInt(e);if(0<=i&&i<256)if("?"===s)t.push({type:0,index:i});else{const e=(0,S.parseColor)(s);e&&t.push({type:1,index:i,color:e})}}}return t.length&&this._onColor.fire(t),!0}setHyperlink(e){const t=e.split(";");return!(t.length<2)&&(t[1]?this._createHyperlink(t[0],t[1]):!t[0]&&this._finishHyperlink())}_createHyperlink(e,t){this._getCurrentLinkId()&&this._finishHyperlink();const i=e.split(":");let s;const r=i.findIndex((e=>e.startsWith("id=")));return-1!==r&&(s=i[r].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:s,uri:t}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(e,t){const i=e.split(";");for(let s=0;s=this._specialColors.length);++s,++t)if("?"===i[s])this._onColor.fire([{type:0,index:this._specialColors[t]}]);else{const e=(0,S.parseColor)(i[s]);e&&this._onColor.fire([{type:1,index:this._specialColors[t],color:e}])}return!0}setOrReportFgColor(e){return this._setOrReportSpecialColor(e,0)}setOrReportBgColor(e){return this._setOrReportSpecialColor(e,1)}setOrReportCursorColor(e){return this._setOrReportSpecialColor(e,2)}restoreIndexedColor(e){if(!e)return this._onColor.fire([{type:2}]),!0;const t=[],i=e.split(";");for(let s=0;s=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){const e=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,e,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=l.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=l.DEFAULT_ATTR_DATA.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}setgLevel(e){return this._charsetService.setgLevel(e),!0}screenAlignmentPattern(){const e=new u.CellData;e.content=1<<22|"E".charCodeAt(0),e.fg=this._curAttrData.fg,e.bg=this._curAttrData.bg,this._setCursor(0,0);for(let t=0;t(this._coreService.triggerDataEvent(`${n.C0.ESC}${e}${n.C0.ESC}\\`),!0))('"q'===e?`P1$r${this._curAttrData.isProtected()?1:0}"q`:'"p'===e?'P1$r61;1"p':"r"===e?`P1$r${i.scrollTop+1};${i.scrollBottom+1}r`:"m"===e?"P1$r0m":" q"===e?`P1$r${{block:2,underline:4,bar:6}[s.cursorStyle]-(s.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(e,t){this._dirtyRowTracker.markRangeDirty(e,t)}}t.InputHandler=E;let L=class{constructor(e){this._bufferService=e,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(e){ethis.end&&(this.end=e)}markRangeDirty(e,t){e>t&&(w=e,e=t,t=w),ethis.end&&(this.end=t)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};L=s([r(0,v.IBufferService)],L)},844:(e,t)=>{function i(e){for(const t of e)t.dispose();e.length=0}Object.defineProperty(t,"__esModule",{value:!0}),t.getDisposeArrayDisposable=t.disposeArray=t.toDisposable=t.Disposable=void 0,t.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const e of this._disposables)e.dispose();this._disposables.length=0}register(e){return this._disposables.push(e),e}unregister(e){const t=this._disposables.indexOf(e);-1!==t&&this._disposables.splice(t,1)}},t.toDisposable=function(e){return{dispose:e}},t.disposeArray=i,t.getDisposeArrayDisposable=function(e){return{dispose:()=>i(e)}}},1505:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FourKeyMap=t.TwoKeyMap=void 0;class i{constructor(){this._data={}}set(e,t,i){this._data[e]||(this._data[e]={}),this._data[e][t]=i}get(e,t){return this._data[e]?this._data[e][t]:void 0}clear(){this._data={}}}t.TwoKeyMap=i,t.FourKeyMap=class{constructor(){this._data=new i}set(e,t,s,r,n){this._data.get(e,t)||this._data.set(e,t,new i),this._data.get(e,t).set(s,r,n)}get(e,t,i,s){var r;return null===(r=this._data.get(e,t))||void 0===r?void 0:r.get(i,s)}clear(){this._data.clear()}}},6114:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isChromeOS=t.isLinux=t.isWindows=t.isIphone=t.isIpad=t.isMac=t.getSafariVersion=t.isSafari=t.isLegacyEdge=t.isFirefox=t.isNode=void 0,t.isNode="undefined"==typeof navigator;const i=t.isNode?"node":navigator.userAgent,s=t.isNode?"node":navigator.platform;t.isFirefox=i.includes("Firefox"),t.isLegacyEdge=i.includes("Edge"),t.isSafari=/^((?!chrome|android).)*safari/i.test(i),t.getSafariVersion=function(){if(!t.isSafari)return 0;const e=i.match(/Version\/(\d+)/);return null===e||e.length<2?0:parseInt(e[1])},t.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(s),t.isIpad="iPad"===s,t.isIphone="iPhone"===s,t.isWindows=["Windows","Win16","Win32","WinCE"].includes(s),t.isLinux=s.indexOf("Linux")>=0,t.isChromeOS=/\bCrOS\b/.test(i)},6106:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SortedList=void 0;let i=0;t.SortedList=class{constructor(e){this._getKey=e,this._array=[]}clear(){this._array.length=0}insert(e){0!==this._array.length?(i=this._search(this._getKey(e),0,this._array.length-1),this._array.splice(i,0,e)):this._array.push(e)}delete(e){if(0===this._array.length)return!1;const t=this._getKey(e);if(void 0===t)return!1;if(i=this._search(t,0,this._array.length-1),-1===i)return!1;if(this._getKey(this._array[i])!==t)return!1;do{if(this._array[i]===e)return this._array.splice(i,1),!0}while(++i=this._array.length)&&this._getKey(this._array[i])===e))do{yield this._array[i]}while(++i=this._array.length)&&this._getKey(this._array[i])===e))do{t(this._array[i])}while(++ie)return this._search(e,t,s-1);if(r0&&this._getKey(this._array[s-1])===e;)s--;return s}}},7226:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DebouncedIdleTask=t.IdleTaskQueue=t.PriorityTaskQueue=void 0;const s=i(6114);class r{constructor(){this._tasks=[],this._i=0}enqueue(e){this._tasks.push(e),this._start()}flush(){for(;this._ir)return s-t<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(s-t))}ms`),void this._start();s=r}this.clear()}}class n extends r{_requestCallback(e){return setTimeout((()=>e(this._createDeadline(16))))}_cancelCallback(e){clearTimeout(e)}_createDeadline(e){const t=Date.now()+e;return{timeRemaining:()=>Math.max(0,t-Date.now())}}}t.PriorityTaskQueue=n,t.IdleTaskQueue=!s.isNode&&"requestIdleCallback"in window?class extends r{_requestCallback(e){return requestIdleCallback(e)}_cancelCallback(e){cancelIdleCallback(e)}}:n,t.DebouncedIdleTask=class{constructor(){this._queue=new t.IdleTaskQueue}set(e){this._queue.clear(),this._queue.enqueue(e)}flush(){this._queue.flush()}}},9282:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.updateWindowsModeWrappedState=void 0;const s=i(643);t.updateWindowsModeWrappedState=function(e){const t=e.buffer.lines.get(e.buffer.ybase+e.buffer.y-1),i=null==t?void 0:t.get(e.cols-1),r=e.buffer.lines.get(e.buffer.ybase+e.buffer.y);r&&i&&(r.isWrapped=i[s.CHAR_DATA_CODE_INDEX]!==s.NULL_CELL_CODE&&i[s.CHAR_DATA_CODE_INDEX]!==s.WHITESPACE_CELL_CODE)}},3734:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedAttrs=t.AttributeData=void 0;class i{constructor(){this.fg=0,this.bg=0,this.extended=new s}static toColorRGB(e){return[e>>>16&255,e>>>8&255,255&e]}static fromColorRGB(e){return(255&e[0])<<16|(255&e[1])<<8|255&e[2]}clone(){const e=new i;return e.fg=this.fg,e.bg=this.bg,e.extended=this.extended.clone(),e}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&0!==this.extended.underlineStyle?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return 50331648==(50331648&this.fg)}isBgRGB(){return 50331648==(50331648&this.bg)}isFgPalette(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)}isBgPalette(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)}isFgDefault(){return 0==(50331648&this.fg)}isBgDefault(){return 0==(50331648&this.bg)}isAttributeDefault(){return 0===this.fg&&0===this.bg}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}}t.AttributeData=i;class s{constructor(e=0,t=0){this._ext=0,this._urlId=0,this._ext=e,this._urlId=t}get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(e){this._ext=e}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(e){this._ext&=-469762049,this._ext|=e<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(e){this._ext&=-67108864,this._ext|=67108863&e}get urlId(){return this._urlId}set urlId(e){this._urlId=e}clone(){return new s(this._ext,this._urlId)}isEmpty(){return 0===this.underlineStyle&&0===this._urlId}}t.ExtendedAttrs=s},9092:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferStringIterator=t.Buffer=t.MAX_BUFFER_SIZE=void 0;const s=i(6349),r=i(8437),n=i(511),o=i(643),a=i(4634),h=i(4863),c=i(7116),l=i(3734),d=i(7226);t.MAX_BUFFER_SIZE=4294967295,t.Buffer=class{constructor(e,t,i){this._hasScrollback=e,this._optionsService=t,this._bufferService=i,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=r.DEFAULT_ATTR_DATA.clone(),this.savedCharset=c.DEFAULT_CHARSET,this.markers=[],this._nullCell=n.CellData.fromCharData([0,o.NULL_CELL_CHAR,o.NULL_CELL_WIDTH,o.NULL_CELL_CODE]),this._whitespaceCell=n.CellData.fromCharData([0,o.WHITESPACE_CELL_CHAR,o.WHITESPACE_CELL_WIDTH,o.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new d.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new s.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(e){return e?(this._nullCell.fg=e.fg,this._nullCell.bg=e.bg,this._nullCell.extended=e.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new l.ExtendedAttrs),this._nullCell}getWhitespaceCell(e){return e?(this._whitespaceCell.fg=e.fg,this._whitespaceCell.bg=e.bg,this._whitespaceCell.extended=e.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new l.ExtendedAttrs),this._whitespaceCell}getBlankLine(e,t){return new r.BufferLine(this._bufferService.cols,this.getNullCell(e),t)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){const e=this.ybase+this.y-this.ydisp;return e>=0&&et.MAX_BUFFER_SIZE?t.MAX_BUFFER_SIZE:i}fillViewportRows(e){if(0===this.lines.length){void 0===e&&(e=r.DEFAULT_ATTR_DATA);let t=this._rows;for(;t--;)this.lines.push(this.getBlankLine(e))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new s.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(e,t){const i=this.getNullCell(r.DEFAULT_ATTR_DATA);let s=0;const n=this._getCorrectBufferLength(t);if(n>this.lines.maxLength&&(this.lines.maxLength=n),this.lines.length>0){if(this._cols0&&this.lines.length<=this.ybase+this.y+o+1?(this.ybase--,o++,this.ydisp>0&&this.ydisp--):this.lines.push(new r.BufferLine(e,i)));else for(let e=this._rows;e>t;e--)this.lines.length>t+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(n0&&(this.lines.trimStart(e),this.ybase=Math.max(this.ybase-e,0),this.ydisp=Math.max(this.ydisp-e,0),this.savedY=Math.max(this.savedY-e,0)),this.lines.maxLength=n}this.x=Math.min(this.x,e-1),this.y=Math.min(this.y,t-1),o&&(this.y+=o),this.savedX=Math.min(this.savedX,e-1),this.scrollTop=0}if(this.scrollBottom=t-1,this._isReflowEnabled&&(this._reflow(e,t),this._cols>e))for(let r=0;r.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue((()=>this._batchedMemoryCleanup())))}_batchedMemoryCleanup(){let e=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,e=!1);let t=0;for(;this._memoryCleanupPosition100)return!0;return e}get _isReflowEnabled(){return this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(e,t){this._cols!==e&&(e>this._cols?this._reflowLarger(e,t):this._reflowSmaller(e,t))}_reflowLarger(e,t){const i=(0,a.reflowLargerGetLinesToRemove)(this.lines,this._cols,e,this.ybase+this.y,this.getNullCell(r.DEFAULT_ATTR_DATA));if(i.length>0){const s=(0,a.reflowLargerCreateNewLayout)(this.lines,i);(0,a.reflowLargerApplyNewLayout)(this.lines,s.layout),this._reflowLargerAdjustViewport(e,t,s.countRemoved)}}_reflowLargerAdjustViewport(e,t,i){const s=this.getNullCell(r.DEFAULT_ATTR_DATA);let n=i;for(;n-- >0;)0===this.ybase?(this.y>0&&this.y--,this.lines.length=0;o--){let h=this.lines.get(o);if(!h||!h.isWrapped&&h.getTrimmedLength()<=e)continue;const c=[h];for(;h.isWrapped&&o>0;)h=this.lines.get(--o),c.unshift(h);const l=this.ybase+this.y;if(l>=o&&l0&&(s.push({start:o+c.length+n,newLines:v}),n+=v.length),c.push(...v);let g=_.length-1,p=_[g];0===p&&(g--,p=_[g]);let S=c.length-u-1,m=d;for(;S>=0;){const e=Math.min(m,p);if(void 0===c[g])break;if(c[g].copyCellsFrom(c[S],m-e,p-e,e,!0),p-=e,0===p&&(g--,p=_[g]),m-=e,0===m){S--;const e=Math.max(S,0);m=(0,a.getWrappedLineTrimmedLength)(c,e,this._cols)}}for(let t=0;t0;)0===this.ybase?this.y0){const e=[],t=[];for(let s=0;s=0;d--)if(a&&a.start>r+h){for(let e=a.newLines.length-1;e>=0;e--)this.lines.set(d--,a.newLines[e]);d++,e.push({index:r+1,amount:a.newLines.length}),h+=a.newLines.length,a=s[++o]}else this.lines.set(d,t[r--]);let c=0;for(let s=e.length-1;s>=0;s--)e[s].index+=c,this.lines.onInsertEmitter.fire(e[s]),c+=e[s].amount;const l=Math.max(0,i+n-this.lines.maxLength);l>0&&this.lines.onTrimEmitter.fire(l)}}stringIndexToBufferIndex(e,t,i=!1){for(;t;){const s=this.lines.get(e);if(!s)return[-1,-1];const r=i?s.getTrimmedLength():s.length;for(let i=0;i0&&this.lines.get(t).isWrapped;)t--;for(;i+10;);return e>=this._cols?this._cols-1:e<0?0:e}nextStop(e){for(null==e&&(e=this.x);!this.tabs[++e]&&e=this._cols?this._cols-1:e<0?0:e}clearMarkers(e){this._isClearing=!0;for(let t=0;t{t.line-=e,t.line<0&&t.dispose()}))),t.register(this.lines.onInsert((e=>{t.line>=e.index&&(t.line+=e.amount)}))),t.register(this.lines.onDelete((e=>{t.line>=e.index&&t.linee.index&&(t.line-=e.amount)}))),t.register(t.onDispose((()=>this._removeMarker(t)))),t}_removeMarker(e){this._isClearing||this.markers.splice(this.markers.indexOf(e),1)}iterator(e,t,i,s,r){return new _(this,e,t,i,s,r)}};class _{constructor(e,t,i=0,s=e.lines.length,r=0,n=0){this._buffer=e,this._trimRight=t,this._startIndex=i,this._endIndex=s,this._startOverscan=r,this._endOverscan=n,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}hasNext(){return this._currentthis._endIndex+this._endOverscan&&(e.last=this._endIndex+this._endOverscan),e.first=Math.max(e.first,0),e.last=Math.min(e.last,this._buffer.lines.length);let t="";for(let i=e.first;i<=e.last;++i)t+=this._buffer.translateBufferLineToString(i,this._trimRight);return this._current=e.last+1,{range:e,content:t}}}t.BufferStringIterator=_},8437:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLine=t.DEFAULT_ATTR_DATA=void 0;const s=i(482),r=i(643),n=i(511),o=i(3734);t.DEFAULT_ATTR_DATA=Object.freeze(new o.AttributeData);let a=0;class h{constructor(e,t,i=!1){this.isWrapped=i,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*e);const s=t||n.CellData.fromCharData([0,r.NULL_CELL_CHAR,r.NULL_CELL_WIDTH,r.NULL_CELL_CODE]);for(let r=0;r>22,2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):i]}set(e,t){this._data[3*e+1]=t[r.CHAR_DATA_ATTR_INDEX],t[r.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[e]=t[1],this._data[3*e+0]=2097152|e|t[r.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*e+0]=t[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|t[r.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(e){return this._data[3*e+0]>>22}hasWidth(e){return 12582912&this._data[3*e+0]}getFg(e){return this._data[3*e+1]}getBg(e){return this._data[3*e+2]}hasContent(e){return 4194303&this._data[3*e+0]}getCodePoint(e){const t=this._data[3*e+0];return 2097152&t?this._combined[e].charCodeAt(this._combined[e].length-1):2097151&t}isCombined(e){return 2097152&this._data[3*e+0]}getString(e){const t=this._data[3*e+0];return 2097152&t?this._combined[e]:2097151&t?(0,s.stringFromCodePoint)(2097151&t):""}isProtected(e){return 536870912&this._data[3*e+2]}loadCell(e,t){return a=3*e,t.content=this._data[a+0],t.fg=this._data[a+1],t.bg=this._data[a+2],2097152&t.content&&(t.combinedData=this._combined[e]),268435456&t.bg&&(t.extended=this._extendedAttrs[e]),t}setCell(e,t){2097152&t.content&&(this._combined[e]=t.combinedData),268435456&t.bg&&(this._extendedAttrs[e]=t.extended),this._data[3*e+0]=t.content,this._data[3*e+1]=t.fg,this._data[3*e+2]=t.bg}setCellFromCodePoint(e,t,i,s,r,n){268435456&r&&(this._extendedAttrs[e]=n),this._data[3*e+0]=t|i<<22,this._data[3*e+1]=s,this._data[3*e+2]=r}addCodepointToCell(e,t){let i=this._data[3*e+0];2097152&i?this._combined[e]+=(0,s.stringFromCodePoint)(t):(2097151&i?(this._combined[e]=(0,s.stringFromCodePoint)(2097151&i)+(0,s.stringFromCodePoint)(t),i&=-2097152,i|=2097152):i=t|1<<22,this._data[3*e+0]=i)}insertCells(e,t,i,s){if((e%=this.length)&&2===this.getWidth(e-1)&&this.setCellFromCodePoint(e-1,0,1,(null==s?void 0:s.fg)||0,(null==s?void 0:s.bg)||0,(null==s?void 0:s.extended)||new o.ExtendedAttrs),t=0;--i)this.setCell(e+t+i,this.loadCell(e+i,s));for(let r=0;rthis.length){if(this._data.buffer.byteLength>=4*i)this._data=new Uint32Array(this._data.buffer,0,i);else{const e=new Uint32Array(i);e.set(this._data),this._data=e}for(let i=this.length;i=e&&delete this._combined[s]}const s=Object.keys(this._extendedAttrs);for(let i=0;i=e&&delete this._extendedAttrs[t]}}return this.length=e,4*i*2=0;--e)if(4194303&this._data[3*e+0])return e+(this._data[3*e+0]>>22);return 0}copyCellsFrom(e,t,i,s,r){const n=e._data;if(r)for(let a=s-1;a>=0;a--){for(let e=0;e<3;e++)this._data[3*(i+a)+e]=n[3*(t+a)+e];268435456&n[3*(t+a)+2]&&(this._extendedAttrs[i+a]=e._extendedAttrs[t+a])}else for(let a=0;a=t&&(this._combined[s-t+i]=e._combined[s])}}translateToString(e=!1,t=0,i=this.length){e&&(i=Math.min(i,this.getTrimmedLength()));let n="";for(;t>22||1}return n}}t.BufferLine=h},4841:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.getRangeLength=void 0,t.getRangeLength=function(e,t){if(e.start.y>e.end.y)throw new Error(`Buffer range end (${e.end.x}, ${e.end.y}) cannot be before start (${e.start.x}, ${e.start.y})`);return t*(e.end.y-e.start.y)+(e.end.x-e.start.x+1)}},4634:(e,t)=>{function i(e,t,i){if(t===e.length-1)return e[t].getTrimmedLength();const s=!e[t].hasContent(i-1)&&1===e[t].getWidth(i-1),r=2===e[t+1].getWidth(0);return s&&r?i-1:i}Object.defineProperty(t,"__esModule",{value:!0}),t.getWrappedLineTrimmedLength=t.reflowSmallerGetNewLineLengths=t.reflowLargerApplyNewLayout=t.reflowLargerCreateNewLayout=t.reflowLargerGetLinesToRemove=void 0,t.reflowLargerGetLinesToRemove=function(e,t,s,r,n){const o=[];for(let a=0;a=a&&r0&&(e>d||0===l[e].getTrimmedLength());e--)v++;v>0&&(o.push(a+l.length-v),o.push(v)),a+=l.length-1}return o},t.reflowLargerCreateNewLayout=function(e,t){const i=[];let s=0,r=t[s],n=0;for(let o=0;oi(e,r,t))).reduce(((e,t)=>e+t));let o=0,a=0,h=0;for(;hc&&(o-=c,a++);const l=2===e[a].getWidth(o-1);l&&o--;const d=l?s-1:s;r.push(d),h+=d}return r},t.getWrappedLineTrimmedLength=i},5295:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferSet=void 0;const s=i(9092),r=i(8460),n=i(844);class o extends n.Disposable{constructor(e,t){super(),this._optionsService=e,this._bufferService=t,this._onBufferActivate=this.register(new r.EventEmitter),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this.register(this._optionsService.onSpecificOptionChange("scrollback",(()=>this.resize(this._bufferService.cols,this._bufferService.rows)))),this.register(this._optionsService.onSpecificOptionChange("tabStopWidth",(()=>this.setupTabStops())))}reset(){this._normal=new s.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new s.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(e){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(e),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(e,t){this._normal.resize(e,t),this._alt.resize(e,t),this.setupTabStops(e)}setupTabStops(e){this._normal.setupTabStops(e),this._alt.setupTabStops(e)}}t.BufferSet=o},511:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CellData=void 0;const s=i(482),r=i(643),n=i(3734);class o extends n.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new n.ExtendedAttrs,this.combinedData=""}static fromCharData(e){const t=new o;return t.setFromCharData(e),t}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,s.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(e){this.fg=e[r.CHAR_DATA_ATTR_INDEX],this.bg=0;let t=!1;if(e[r.CHAR_DATA_CHAR_INDEX].length>2)t=!0;else if(2===e[r.CHAR_DATA_CHAR_INDEX].length){const i=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=i&&i<=56319){const s=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=s&&s<=57343?this.content=1024*(i-55296)+s-56320+65536|e[r.CHAR_DATA_WIDTH_INDEX]<<22:t=!0}else t=!0}else this.content=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|e[r.CHAR_DATA_WIDTH_INDEX]<<22;t&&(this.combinedData=e[r.CHAR_DATA_CHAR_INDEX],this.content=2097152|e[r.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}t.CellData=o},643:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WHITESPACE_CELL_CODE=t.WHITESPACE_CELL_WIDTH=t.WHITESPACE_CELL_CHAR=t.NULL_CELL_CODE=t.NULL_CELL_WIDTH=t.NULL_CELL_CHAR=t.CHAR_DATA_CODE_INDEX=t.CHAR_DATA_WIDTH_INDEX=t.CHAR_DATA_CHAR_INDEX=t.CHAR_DATA_ATTR_INDEX=t.DEFAULT_EXT=t.DEFAULT_ATTR=t.DEFAULT_COLOR=void 0,t.DEFAULT_COLOR=0,t.DEFAULT_ATTR=256|t.DEFAULT_COLOR<<9,t.DEFAULT_EXT=0,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.NULL_CELL_CHAR="",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=0,t.WHITESPACE_CELL_CHAR=" ",t.WHITESPACE_CELL_WIDTH=1,t.WHITESPACE_CELL_CODE=32},4863:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Marker=void 0;const s=i(8460),r=i(844);class n{constructor(e){this.line=e,this.isDisposed=!1,this._disposables=[],this._id=n._nextId++,this._onDispose=this.register(new s.EventEmitter),this.onDispose=this._onDispose.event}get id(){return this._id}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,r.disposeArray)(this._disposables),this._disposables.length=0)}register(e){return this._disposables.push(e),e}}t.Marker=n,n._nextId=1},7116:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_CHARSET=t.CHARSETS=void 0,t.CHARSETS={},t.DEFAULT_CHARSET=t.CHARSETS.B,t.CHARSETS[0]={"`":"◆",a:"▒",b:"␉",c:"␌",d:"␍",e:"␊",f:"°",g:"±",h:"␤",i:"␋",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},t.CHARSETS.A={"#":"£"},t.CHARSETS.B=void 0,t.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},t.CHARSETS.C=t.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},t.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},t.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},t.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},t.CHARSETS.E=t.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},t.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},t.CHARSETS.H=t.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},t.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},2584:(e,t)=>{var i,s;Object.defineProperty(t,"__esModule",{value:!0}),t.C1_ESCAPED=t.C1=t.C0=void 0,function(e){e.NUL="\0",e.SOH="",e.STX="",e.ETX="",e.EOT="",e.ENQ="",e.ACK="",e.BEL="",e.BS="\b",e.HT="\t",e.LF="\n",e.VT="\v",e.FF="\f",e.CR="\r",e.SO="",e.SI="",e.DLE="",e.DC1="",e.DC2="",e.DC3="",e.DC4="",e.NAK="",e.SYN="",e.ETB="",e.CAN="",e.EM="",e.SUB="",e.ESC="",e.FS="",e.GS="",e.RS="",e.US="",e.SP=" ",e.DEL=""}(i=t.C0||(t.C0={})),(s=t.C1||(t.C1={})).PAD="€",s.HOP="",s.BPH="‚",s.NBH="ƒ",s.IND="„",s.NEL="…",s.SSA="†",s.ESA="‡",s.HTS="ˆ",s.HTJ="‰",s.VTS="Š",s.PLD="‹",s.PLU="Œ",s.RI="",s.SS2="Ž",s.SS3="",s.DCS="",s.PU1="‘",s.PU2="’",s.STS="“",s.CCH="”",s.MW="•",s.SPA="–",s.EPA="—",s.SOS="˜",s.SGCI="™",s.SCI="š",s.CSI="›",s.ST="œ",s.OSC="",s.PM="ž",s.APC="Ÿ",(t.C1_ESCAPED||(t.C1_ESCAPED={})).ST=`${i.ESC}\\`},7399:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.evaluateKeyboardEvent=void 0;const s=i(2584),r={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};t.evaluateKeyboardEvent=function(e,t,i,n){const o={type:0,cancel:!1,key:void 0},a=(e.shiftKey?1:0)|(e.altKey?2:0)|(e.ctrlKey?4:0)|(e.metaKey?8:0);switch(e.keyCode){case 0:"UIKeyInputUpArrow"===e.key?o.key=t?s.C0.ESC+"OA":s.C0.ESC+"[A":"UIKeyInputLeftArrow"===e.key?o.key=t?s.C0.ESC+"OD":s.C0.ESC+"[D":"UIKeyInputRightArrow"===e.key?o.key=t?s.C0.ESC+"OC":s.C0.ESC+"[C":"UIKeyInputDownArrow"===e.key&&(o.key=t?s.C0.ESC+"OB":s.C0.ESC+"[B");break;case 8:if(e.altKey){o.key=s.C0.ESC+s.C0.DEL;break}o.key=s.C0.DEL;break;case 9:if(e.shiftKey){o.key=s.C0.ESC+"[Z";break}o.key=s.C0.HT,o.cancel=!0;break;case 13:o.key=e.altKey?s.C0.ESC+s.C0.CR:s.C0.CR,o.cancel=!0;break;case 27:o.key=s.C0.ESC,e.altKey&&(o.key=s.C0.ESC+s.C0.ESC),o.cancel=!0;break;case 37:if(e.metaKey)break;a?(o.key=s.C0.ESC+"[1;"+(a+1)+"D",o.key===s.C0.ESC+"[1;3D"&&(o.key=s.C0.ESC+(i?"b":"[1;5D"))):o.key=t?s.C0.ESC+"OD":s.C0.ESC+"[D";break;case 39:if(e.metaKey)break;a?(o.key=s.C0.ESC+"[1;"+(a+1)+"C",o.key===s.C0.ESC+"[1;3C"&&(o.key=s.C0.ESC+(i?"f":"[1;5C"))):o.key=t?s.C0.ESC+"OC":s.C0.ESC+"[C";break;case 38:if(e.metaKey)break;a?(o.key=s.C0.ESC+"[1;"+(a+1)+"A",i||o.key!==s.C0.ESC+"[1;3A"||(o.key=s.C0.ESC+"[1;5A")):o.key=t?s.C0.ESC+"OA":s.C0.ESC+"[A";break;case 40:if(e.metaKey)break;a?(o.key=s.C0.ESC+"[1;"+(a+1)+"B",i||o.key!==s.C0.ESC+"[1;3B"||(o.key=s.C0.ESC+"[1;5B")):o.key=t?s.C0.ESC+"OB":s.C0.ESC+"[B";break;case 45:e.shiftKey||e.ctrlKey||(o.key=s.C0.ESC+"[2~");break;case 46:o.key=a?s.C0.ESC+"[3;"+(a+1)+"~":s.C0.ESC+"[3~";break;case 36:o.key=a?s.C0.ESC+"[1;"+(a+1)+"H":t?s.C0.ESC+"OH":s.C0.ESC+"[H";break;case 35:o.key=a?s.C0.ESC+"[1;"+(a+1)+"F":t?s.C0.ESC+"OF":s.C0.ESC+"[F";break;case 33:e.shiftKey?o.type=2:e.ctrlKey?o.key=s.C0.ESC+"[5;"+(a+1)+"~":o.key=s.C0.ESC+"[5~";break;case 34:e.shiftKey?o.type=3:e.ctrlKey?o.key=s.C0.ESC+"[6;"+(a+1)+"~":o.key=s.C0.ESC+"[6~";break;case 112:o.key=a?s.C0.ESC+"[1;"+(a+1)+"P":s.C0.ESC+"OP";break;case 113:o.key=a?s.C0.ESC+"[1;"+(a+1)+"Q":s.C0.ESC+"OQ";break;case 114:o.key=a?s.C0.ESC+"[1;"+(a+1)+"R":s.C0.ESC+"OR";break;case 115:o.key=a?s.C0.ESC+"[1;"+(a+1)+"S":s.C0.ESC+"OS";break;case 116:o.key=a?s.C0.ESC+"[15;"+(a+1)+"~":s.C0.ESC+"[15~";break;case 117:o.key=a?s.C0.ESC+"[17;"+(a+1)+"~":s.C0.ESC+"[17~";break;case 118:o.key=a?s.C0.ESC+"[18;"+(a+1)+"~":s.C0.ESC+"[18~";break;case 119:o.key=a?s.C0.ESC+"[19;"+(a+1)+"~":s.C0.ESC+"[19~";break;case 120:o.key=a?s.C0.ESC+"[20;"+(a+1)+"~":s.C0.ESC+"[20~";break;case 121:o.key=a?s.C0.ESC+"[21;"+(a+1)+"~":s.C0.ESC+"[21~";break;case 122:o.key=a?s.C0.ESC+"[23;"+(a+1)+"~":s.C0.ESC+"[23~";break;case 123:o.key=a?s.C0.ESC+"[24;"+(a+1)+"~":s.C0.ESC+"[24~";break;default:if(!e.ctrlKey||e.shiftKey||e.altKey||e.metaKey)if(i&&!n||!e.altKey||e.metaKey)!i||e.altKey||e.ctrlKey||e.shiftKey||!e.metaKey?e.key&&!e.ctrlKey&&!e.altKey&&!e.metaKey&&e.keyCode>=48&&1===e.key.length?o.key=e.key:e.key&&e.ctrlKey&&("_"===e.key&&(o.key=s.C0.US),"@"===e.key&&(o.key=s.C0.NUL)):65===e.keyCode&&(o.type=1);else{const t=r[e.keyCode],i=null==t?void 0:t[e.shiftKey?1:0];if(i)o.key=s.C0.ESC+i;else if(e.keyCode>=65&&e.keyCode<=90){const t=e.ctrlKey?e.keyCode-64:e.keyCode+32;let i=String.fromCharCode(t);e.shiftKey&&(i=i.toUpperCase()),o.key=s.C0.ESC+i}else if(32===e.keyCode)o.key=s.C0.ESC+(e.ctrlKey?s.C0.NUL:" ");else if("Dead"===e.key&&e.code.startsWith("Key")){let t=e.code.slice(3,4);e.shiftKey||(t=t.toLowerCase()),o.key=s.C0.ESC+t,o.cancel=!0}}else e.keyCode>=65&&e.keyCode<=90?o.key=String.fromCharCode(e.keyCode-64):32===e.keyCode?o.key=s.C0.NUL:e.keyCode>=51&&e.keyCode<=55?o.key=String.fromCharCode(e.keyCode-51+27):56===e.keyCode?o.key=s.C0.DEL:219===e.keyCode?o.key=s.C0.ESC:220===e.keyCode?o.key=s.C0.FS:221===e.keyCode&&(o.key=s.C0.GS)}return o}},482:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8ToUtf32=t.StringToUtf32=t.utf32ToString=t.stringFromCodePoint=void 0,t.stringFromCodePoint=function(e){return e>65535?(e-=65536,String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)},t.utf32ToString=function(e,t=0,i=e.length){let s="";for(let r=t;r65535?(t-=65536,s+=String.fromCharCode(55296+(t>>10))+String.fromCharCode(t%1024+56320)):s+=String.fromCharCode(t)}return s},t.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){const i=e.length;if(!i)return 0;let s=0,r=0;if(this._interim){const i=e.charCodeAt(r++);56320<=i&&i<=57343?t[s++]=1024*(this._interim-55296)+i-56320+65536:(t[s++]=this._interim,t[s++]=i),this._interim=0}for(let n=r;n=i)return this._interim=r,s;const o=e.charCodeAt(n);56320<=o&&o<=57343?t[s++]=1024*(r-55296)+o-56320+65536:(t[s++]=r,t[s++]=o)}else 65279!==r&&(t[s++]=r)}return s}},t.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){const i=e.length;if(!i)return 0;let s,r,n,o,a=0,h=0,c=0;if(this.interim[0]){let s=!1,r=this.interim[0];r&=192==(224&r)?31:224==(240&r)?15:7;let n,o=0;for(;(n=63&this.interim[++o])&&o<4;)r<<=6,r|=n;const h=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,l=h-o;for(;c=i)return 0;if(n=e[c++],128!=(192&n)){c--,s=!0;break}this.interim[o++]=n,r<<=6,r|=63&n}s||(2===h?r<128?c--:t[a++]=r:3===h?r<2048||r>=55296&&r<=57343||65279===r||(t[a++]=r):r<65536||r>1114111||(t[a++]=r)),this.interim.fill(0)}const l=i-4;let d=c;for(;d=i)return this.interim[0]=s,a;if(r=e[d++],128!=(192&r)){d--;continue}if(h=(31&s)<<6|63&r,h<128){d--;continue}t[a++]=h}else if(224==(240&s)){if(d>=i)return this.interim[0]=s,a;if(r=e[d++],128!=(192&r)){d--;continue}if(d>=i)return this.interim[0]=s,this.interim[1]=r,a;if(n=e[d++],128!=(192&n)){d--;continue}if(h=(15&s)<<12|(63&r)<<6|63&n,h<2048||h>=55296&&h<=57343||65279===h)continue;t[a++]=h}else if(240==(248&s)){if(d>=i)return this.interim[0]=s,a;if(r=e[d++],128!=(192&r)){d--;continue}if(d>=i)return this.interim[0]=s,this.interim[1]=r,a;if(n=e[d++],128!=(192&n)){d--;continue}if(d>=i)return this.interim[0]=s,this.interim[1]=r,this.interim[2]=n,a;if(o=e[d++],128!=(192&o)){d--;continue}if(h=(7&s)<<18|(63&r)<<12|(63&n)<<6|63&o,h<65536||h>1114111)continue;t[a++]=h}}return a}}},225:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeV6=void 0;const i=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],s=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];let r;t.UnicodeV6=class{constructor(){if(this.version="6",!r){r=new Uint8Array(65536),r.fill(1),r[0]=0,r.fill(0,1,32),r.fill(0,127,160),r.fill(2,4352,4448),r[9001]=2,r[9002]=2,r.fill(2,11904,42192),r[12351]=1,r.fill(2,44032,55204),r.fill(2,63744,64256),r.fill(2,65040,65050),r.fill(2,65072,65136),r.fill(2,65280,65377),r.fill(2,65504,65511);for(let e=0;et[r][1])return!1;for(;r>=s;)if(i=s+r>>1,e>t[i][1])s=i+1;else{if(!(e=131072&&e<=196605||e>=196608&&e<=262141?2:1}}},5981:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WriteBuffer=void 0;const s=i(8460),r=i(844);class n extends r.Disposable{constructor(e){super(),this._action=e,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new s.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(e,t){if(void 0!==t&&this._syncCalls>t)return void(this._syncCalls=0);if(this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;let i;for(this._isSyncWriting=!0;i=this._writeBuffer.shift();){this._action(i);const e=this._callbacks.shift();e&&e()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(e,t){if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t),void this._innerWrite();setTimeout((()=>this._innerWrite()))}this._pendingData+=e.length,this._writeBuffer.push(e),this._callbacks.push(t)}_innerWrite(e=0,t=!0){const i=e||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){const e=this._writeBuffer[this._bufferOffset],s=this._action(e,t);if(s){const e=e=>Date.now()-i>=12?setTimeout((()=>this._innerWrite(0,e))):this._innerWrite(i,e);return void s.catch((e=>(queueMicrotask((()=>{throw e})),Promise.resolve(!1)))).then(e)}const r=this._callbacks[this._bufferOffset];if(r&&r(),this._bufferOffset++,this._pendingData-=e.length,Date.now()-i>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout((()=>this._innerWrite()))):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}t.WriteBuffer=n},5941:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.toRgbString=t.parseColor=void 0;const i=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,s=/^[\da-f]+$/;function r(e,t){const i=e.toString(16),s=i.length<2?"0"+i:i;switch(t){case 4:return i[0];case 8:return s;case 12:return(s+s).slice(0,3);default:return s+s}}t.parseColor=function(e){if(!e)return;let t=e.toLowerCase();if(0===t.indexOf("rgb:")){t=t.slice(4);const e=i.exec(t);if(e){const t=e[1]?15:e[4]?255:e[7]?4095:65535;return[Math.round(parseInt(e[1]||e[4]||e[7]||e[10],16)/t*255),Math.round(parseInt(e[2]||e[5]||e[8]||e[11],16)/t*255),Math.round(parseInt(e[3]||e[6]||e[9]||e[12],16)/t*255)]}}else if(0===t.indexOf("#")&&(t=t.slice(1),s.exec(t)&&[3,6,9,12].includes(t.length))){const e=t.length/3,i=[0,0,0];for(let s=0;s<3;++s){const r=parseInt(t.slice(e*s,e*s+e),16);i[s]=1===e?r<<4:2===e?r:3===e?r>>4:r>>8}return i}},t.toRgbString=function(e,t=16){const[i,s,n]=e;return`rgb:${r(i,t)}/${r(s,t)}/${r(n,t)}`}},5770:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PAYLOAD_LIMIT=void 0,t.PAYLOAD_LIMIT=1e7},6351:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DcsHandler=t.DcsParser=void 0;const s=i(482),r=i(8742),n=i(5770),o=[];t.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=o,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=o}registerHandler(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);const i=this._handlers[e];return i.push(t),{dispose:()=>{const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}reset(){if(this._active.length)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].unhook(!1);this._stack.paused=!1,this._active=o,this._ident=0}hook(e,t){if(this.reset(),this._ident=e,this._active=this._handlers[e]||o,this._active.length)for(let i=this._active.length-1;i>=0;i--)this._active[i].hook(t);else this._handlerFb(this._ident,"HOOK",t)}put(e,t,i){if(this._active.length)for(let s=this._active.length-1;s>=0;s--)this._active[s].put(e,t,i);else this._handlerFb(this._ident,"PUT",(0,s.utf32ToString)(e,t,i))}unhook(e,t=!0){if(this._active.length){let i=!1,s=this._active.length-1,r=!1;if(this._stack.paused&&(s=this._stack.loopPosition-1,i=t,r=this._stack.fallThrough,this._stack.paused=!1),!r&&!1===i){for(;s>=0&&(i=this._active[s].unhook(e),!0!==i);s--)if(i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=s,this._stack.fallThrough=!1,i;s--}for(;s>=0;s--)if(i=this._active[s].unhook(!1),i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=s,this._stack.fallThrough=!0,i}else this._handlerFb(this._ident,"UNHOOK",e);this._active=o,this._ident=0}};const a=new r.Params;a.addParam(0),t.DcsHandler=class{constructor(e){this._handler=e,this._data="",this._params=a,this._hitLimit=!1}hook(e){this._params=e.length>1||e.params[0]?e.clone():a,this._data="",this._hitLimit=!1}put(e,t,i){this._hitLimit||(this._data+=(0,s.utf32ToString)(e,t,i),this._data.length>n.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data,this._params),t instanceof Promise))return t.then((e=>(this._params=a,this._data="",this._hitLimit=!1,e)));return this._params=a,this._data="",this._hitLimit=!1,t}}},2015:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.EscapeSequenceParser=t.VT500_TRANSITION_TABLE=t.TransitionTable=void 0;const s=i(844),r=i(8742),n=i(6242),o=i(6351);class a{constructor(e){this.table=new Uint8Array(e)}setDefault(e,t){this.table.fill(e<<4|t)}add(e,t,i,s){this.table[t<<8|e]=i<<4|s}addMany(e,t,i,s){for(let r=0;rt)),i=(e,i)=>t.slice(e,i),s=i(32,127),r=i(0,24);r.push(25),r.push.apply(r,i(28,32));const n=i(0,14);let o;for(o in e.setDefault(1,0),e.addMany(s,0,2,0),n)e.addMany([24,26,153,154],o,3,0),e.addMany(i(128,144),o,3,0),e.addMany(i(144,152),o,3,0),e.add(156,o,0,0),e.add(27,o,11,1),e.add(157,o,4,8),e.addMany([152,158,159],o,0,7),e.add(155,o,11,3),e.add(144,o,11,9);return e.addMany(r,0,3,0),e.addMany(r,1,3,1),e.add(127,1,0,1),e.addMany(r,8,0,8),e.addMany(r,3,3,3),e.add(127,3,0,3),e.addMany(r,4,3,4),e.add(127,4,0,4),e.addMany(r,6,3,6),e.addMany(r,5,3,5),e.add(127,5,0,5),e.addMany(r,2,3,2),e.add(127,2,0,2),e.add(93,1,4,8),e.addMany(s,8,5,8),e.add(127,8,5,8),e.addMany([156,27,24,26,7],8,6,0),e.addMany(i(28,32),8,0,8),e.addMany([88,94,95],1,0,7),e.addMany(s,7,0,7),e.addMany(r,7,0,7),e.add(156,7,0,0),e.add(127,7,0,7),e.add(91,1,11,3),e.addMany(i(64,127),3,7,0),e.addMany(i(48,60),3,8,4),e.addMany([60,61,62,63],3,9,4),e.addMany(i(48,60),4,8,4),e.addMany(i(64,127),4,7,0),e.addMany([60,61,62,63],4,0,6),e.addMany(i(32,64),6,0,6),e.add(127,6,0,6),e.addMany(i(64,127),6,0,0),e.addMany(i(32,48),3,9,5),e.addMany(i(32,48),5,9,5),e.addMany(i(48,64),5,0,6),e.addMany(i(64,127),5,7,0),e.addMany(i(32,48),4,9,5),e.addMany(i(32,48),1,9,2),e.addMany(i(32,48),2,9,2),e.addMany(i(48,127),2,10,0),e.addMany(i(48,80),1,10,0),e.addMany(i(81,88),1,10,0),e.addMany([89,90,92],1,10,0),e.addMany(i(96,127),1,10,0),e.add(80,1,11,9),e.addMany(r,9,0,9),e.add(127,9,0,9),e.addMany(i(28,32),9,0,9),e.addMany(i(32,48),9,9,12),e.addMany(i(48,60),9,8,10),e.addMany([60,61,62,63],9,9,10),e.addMany(r,11,0,11),e.addMany(i(32,128),11,0,11),e.addMany(i(28,32),11,0,11),e.addMany(r,10,0,10),e.add(127,10,0,10),e.addMany(i(28,32),10,0,10),e.addMany(i(48,60),10,8,10),e.addMany([60,61,62,63],10,0,11),e.addMany(i(32,48),10,9,12),e.addMany(r,12,0,12),e.add(127,12,0,12),e.addMany(i(28,32),12,0,12),e.addMany(i(32,48),12,9,12),e.addMany(i(48,64),12,0,11),e.addMany(i(64,127),12,12,13),e.addMany(i(64,127),10,12,13),e.addMany(i(64,127),9,12,13),e.addMany(r,13,13,13),e.addMany(s,13,13,13),e.add(127,13,0,13),e.addMany([27,156,24,26],13,14,0),e.add(h,0,2,0),e.add(h,8,5,8),e.add(h,6,0,6),e.add(h,11,0,11),e.add(h,13,13,13),e}();class c extends s.Disposable{constructor(e=t.VT500_TRANSITION_TABLE){super(),this._transitions=e,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new r.Params,this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._printHandlerFb=(e,t,i)=>{},this._executeHandlerFb=e=>{},this._csiHandlerFb=(e,t)=>{},this._escHandlerFb=e=>{},this._errorHandlerFb=e=>e,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,s.toDisposable)((()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)}))),this._oscParser=this.register(new n.OscParser),this._dcsParser=this.register(new o.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},(()=>!0))}_identifier(e,t=[64,126]){let i=0;if(e.prefix){if(e.prefix.length>1)throw new Error("only one byte as prefix supported");if(i=e.prefix.charCodeAt(0),i&&60>i||i>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(e.intermediates){if(e.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let t=0;ts||s>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");i<<=8,i|=s}}if(1!==e.final.length)throw new Error("final must be a single byte");const s=e.final.charCodeAt(0);if(t[0]>s||s>t[1])throw new Error(`final must be in range ${t[0]} .. ${t[1]}`);return i<<=8,i|=s,i}identToString(e){const t=[];for(;e;)t.push(String.fromCharCode(255&e)),e>>=8;return t.reverse().join("")}setPrintHandler(e){this._printHandler=e}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(e,t){const i=this._identifier(e,[48,126]);void 0===this._escHandlers[i]&&(this._escHandlers[i]=[]);const s=this._escHandlers[i];return s.push(t),{dispose:()=>{const e=s.indexOf(t);-1!==e&&s.splice(e,1)}}}clearEscHandler(e){this._escHandlers[this._identifier(e,[48,126])]&&delete this._escHandlers[this._identifier(e,[48,126])]}setEscHandlerFallback(e){this._escHandlerFb=e}setExecuteHandler(e,t){this._executeHandlers[e.charCodeAt(0)]=t}clearExecuteHandler(e){this._executeHandlers[e.charCodeAt(0)]&&delete this._executeHandlers[e.charCodeAt(0)]}setExecuteHandlerFallback(e){this._executeHandlerFb=e}registerCsiHandler(e,t){const i=this._identifier(e);void 0===this._csiHandlers[i]&&(this._csiHandlers[i]=[]);const s=this._csiHandlers[i];return s.push(t),{dispose:()=>{const e=s.indexOf(t);-1!==e&&s.splice(e,1)}}}clearCsiHandler(e){this._csiHandlers[this._identifier(e)]&&delete this._csiHandlers[this._identifier(e)]}setCsiHandlerFallback(e){this._csiHandlerFb=e}registerDcsHandler(e,t){return this._dcsParser.registerHandler(this._identifier(e),t)}clearDcsHandler(e){this._dcsParser.clearHandler(this._identifier(e))}setDcsHandlerFallback(e){this._dcsParser.setHandlerFallback(e)}registerOscHandler(e,t){return this._oscParser.registerHandler(e,t)}clearOscHandler(e){this._oscParser.clearHandler(e)}setOscHandlerFallback(e){this._oscParser.setHandlerFallback(e)}setErrorHandler(e){this._errorHandler=e}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,0!==this._parseStack.state&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(e,t,i,s,r){this._parseStack.state=e,this._parseStack.handlers=t,this._parseStack.handlerPos=i,this._parseStack.transition=s,this._parseStack.chunkPos=r}parse(e,t,i){let s,r=0,n=0,o=0;if(this._parseStack.state)if(2===this._parseStack.state)this._parseStack.state=0,o=this._parseStack.chunkPos+1;else{if(void 0===i||1===this._parseStack.state)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");const t=this._parseStack.handlers;let n=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(!1===i&&n>-1)for(;n>=0&&(s=t[n](this._params),!0!==s);n--)if(s instanceof Promise)return this._parseStack.handlerPos=n,s;this._parseStack.handlers=[];break;case 4:if(!1===i&&n>-1)for(;n>=0&&(s=t[n](),!0!==s);n--)if(s instanceof Promise)return this._parseStack.handlerPos=n,s;this._parseStack.handlers=[];break;case 6:if(r=e[this._parseStack.chunkPos],s=this._dcsParser.unhook(24!==r&&26!==r,i),s)return s;27===r&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if(r=e[this._parseStack.chunkPos],s=this._oscParser.end(24!==r&&26!==r,i),s)return s;27===r&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,o=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(let a=o;a>4){case 2:for(let s=a+1;;++s){if(s>=t||(r=e[s])<32||r>126&&r=t||(r=e[s])<32||r>126&&r=t||(r=e[s])<32||r>126&&r=t||(r=e[s])<32||r>126&&r=0&&(s=i[o](this._params),!0!==s);o--)if(s instanceof Promise)return this._preserveStack(3,i,o,n,a),s;o<0&&this._csiHandlerFb(this._collect<<8|r,this._params),this.precedingCodepoint=0;break;case 8:do{switch(r){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit(r-48)}}while(++a47&&r<60);a--;break;case 9:this._collect<<=8,this._collect|=r;break;case 10:const c=this._escHandlers[this._collect<<8|r];let l=c?c.length-1:-1;for(;l>=0&&(s=c[l](),!0!==s);l--)if(s instanceof Promise)return this._preserveStack(4,c,l,n,a),s;l<0&&this._escHandlerFb(this._collect<<8|r),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|r,this._params);break;case 13:for(let s=a+1;;++s)if(s>=t||24===(r=e[s])||26===r||27===r||r>127&&r=t||(r=e[s])<32||r>127&&r{Object.defineProperty(t,"__esModule",{value:!0}),t.OscHandler=t.OscParser=void 0;const s=i(5770),r=i(482),n=[];t.OscParser=class{constructor(){this._state=0,this._active=n,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(e,t){void 0===this._handlers[e]&&(this._handlers[e]=[]);const i=this._handlers[e];return i.push(t),{dispose:()=>{const e=i.indexOf(t);-1!==e&&i.splice(e,1)}}}clearHandler(e){this._handlers[e]&&delete this._handlers[e]}setHandlerFallback(e){this._handlerFb=e}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=n}reset(){if(2===this._state)for(let e=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;e>=0;--e)this._active[e].end(!1);this._stack.paused=!1,this._active=n,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||n,this._active.length)for(let e=this._active.length-1;e>=0;e--)this._active[e].start();else this._handlerFb(this._id,"START")}_put(e,t,i){if(this._active.length)for(let s=this._active.length-1;s>=0;s--)this._active[s].put(e,t,i);else this._handlerFb(this._id,"PUT",(0,r.utf32ToString)(e,t,i))}start(){this.reset(),this._state=1}put(e,t,i){if(3!==this._state){if(1===this._state)for(;t0&&this._put(e,t,i)}}end(e,t=!0){if(0!==this._state){if(3!==this._state)if(1===this._state&&this._start(),this._active.length){let i=!1,s=this._active.length-1,r=!1;if(this._stack.paused&&(s=this._stack.loopPosition-1,i=t,r=this._stack.fallThrough,this._stack.paused=!1),!r&&!1===i){for(;s>=0&&(i=this._active[s].end(e),!0!==i);s--)if(i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=s,this._stack.fallThrough=!1,i;s--}for(;s>=0;s--)if(i=this._active[s].end(!1),i instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=s,this._stack.fallThrough=!0,i}else this._handlerFb(this._id,"END",e);this._active=n,this._id=-1,this._state=0}}},t.OscHandler=class{constructor(e){this._handler=e,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(e,t,i){this._hitLimit||(this._data+=(0,r.utf32ToString)(e,t,i),this._data.length>s.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(e){let t=!1;if(this._hitLimit)t=!1;else if(e&&(t=this._handler(this._data),t instanceof Promise))return t.then((e=>(this._data="",this._hitLimit=!1,e)));return this._data="",this._hitLimit=!1,t}}},8742:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Params=void 0;const i=2147483647;class s{constructor(e=32,t=32){if(this.maxLength=e,this.maxSubParamsLength=t,t>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(e),this.length=0,this._subParams=new Int32Array(t),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(e),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}static fromArray(e){const t=new s;if(!e.length)return t;for(let i=Array.isArray(e[0])?1:0;i>8,s=255&this._subParamsIdx[t];s-i>0&&e.push(Array.prototype.slice.call(this._subParams,i,s))}return e}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(e){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=e>i?i:e}}addSubParam(e){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(e<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=e>i?i:e,this._subParamsIdx[this.length-1]++}}hasSubParams(e){return(255&this._subParamsIdx[e])-(this._subParamsIdx[e]>>8)>0}getSubParams(e){const t=this._subParamsIdx[e]>>8,i=255&this._subParamsIdx[e];return i-t>0?this._subParams.subarray(t,i):null}getSubParamsAll(){const e={};for(let t=0;t>8,s=255&this._subParamsIdx[t];s-i>0&&(e[t]=this._subParams.slice(i,s))}return e}addDigit(e){let t;if(this._rejectDigits||!(t=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;const s=this._digitIsSub?this._subParams:this.params,r=s[t-1];s[t-1]=~r?Math.min(10*r+e,i):e}}t.Params=s},5741:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AddonManager=void 0,t.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let e=this._addons.length-1;e>=0;e--)this._addons[e].instance.dispose()}loadAddon(e,t){const i={instance:t,dispose:t.dispose,isDisposed:!1};this._addons.push(i),t.dispose=()=>this._wrappedAddonDispose(i),t.activate(e)}_wrappedAddonDispose(e){if(e.isDisposed)return;let t=-1;for(let i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferApiView=void 0;const s=i(3785),r=i(511);t.BufferApiView=class{constructor(e,t){this._buffer=e,this.type=t}init(e){return this._buffer=e,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(e){const t=this._buffer.lines.get(e);if(t)return new s.BufferLineApiView(t)}getNullCell(){return new r.CellData}}},3785:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferLineApiView=void 0;const s=i(511);t.BufferLineApiView=class{constructor(e){this._line=e}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(e,t){if(!(e<0||e>=this._line.length))return t?(this._line.loadCell(e,t),t):this._line.loadCell(e,new s.CellData)}translateToString(e,t,i){return this._line.translateToString(e,t,i)}}},8285:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BufferNamespaceApi=void 0;const s=i(8771),r=i(8460);t.BufferNamespaceApi=class{constructor(e){this._core=e,this._onBufferChange=new r.EventEmitter,this.onBufferChange=this._onBufferChange.event,this._normal=new s.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new s.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate((()=>this._onBufferChange.fire(this.active)))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}}},7975:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ParserApi=void 0,t.ParserApi=class{constructor(e){this._core=e}registerCsiHandler(e,t){return this._core.registerCsiHandler(e,(e=>t(e.toArray())))}addCsiHandler(e,t){return this.registerCsiHandler(e,t)}registerDcsHandler(e,t){return this._core.registerDcsHandler(e,((e,i)=>t(e,i.toArray())))}addDcsHandler(e,t){return this.registerDcsHandler(e,t)}registerEscHandler(e,t){return this._core.registerEscHandler(e,t)}addEscHandler(e,t){return this.registerEscHandler(e,t)}registerOscHandler(e,t){return this._core.registerOscHandler(e,t)}addOscHandler(e,t){return this.registerOscHandler(e,t)}}},7090:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeApi=void 0,t.UnicodeApi=class{constructor(e){this._core=e}register(e){this._core.unicodeService.register(e)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(e){this._core.unicodeService.activeVersion=e}}},744:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.BufferService=t.MINIMUM_ROWS=t.MINIMUM_COLS=void 0;const n=i(2585),o=i(5295),a=i(8460),h=i(844);t.MINIMUM_COLS=2,t.MINIMUM_ROWS=1;let c=class extends h.Disposable{constructor(e){super(),this.isUserScrolling=!1,this._onResize=this.register(new a.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new a.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(e.rawOptions.cols||0,t.MINIMUM_COLS),this.rows=Math.max(e.rawOptions.rows||0,t.MINIMUM_ROWS),this.buffers=this.register(new o.BufferSet(e,this))}get buffer(){return this.buffers.active}resize(e,t){this.cols=e,this.rows=t,this.buffers.resize(e,t),this._onResize.fire({cols:e,rows:t})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(e,t=!1){const i=this.buffer;let s;s=this._cachedBlankLine,s&&s.length===this.cols&&s.getFg(0)===e.fg&&s.getBg(0)===e.bg||(s=i.getBlankLine(e,t),this._cachedBlankLine=s),s.isWrapped=t;const r=i.ybase+i.scrollTop,n=i.ybase+i.scrollBottom;if(0===i.scrollTop){const e=i.lines.isFull;n===i.lines.length-1?e?i.lines.recycle().copyFrom(s):i.lines.push(s.clone()):i.lines.splice(n+1,0,s.clone()),e?this.isUserScrolling&&(i.ydisp=Math.max(i.ydisp-1,0)):(i.ybase++,this.isUserScrolling||i.ydisp++)}else{const e=n-r+1;i.lines.shiftElements(r+1,e-1,-1),i.lines.set(n,s.clone())}this.isUserScrolling||(i.ydisp=i.ybase),this._onScroll.fire(i.ydisp)}scrollLines(e,t,i){const s=this.buffer;if(e<0){if(0===s.ydisp)return;this.isUserScrolling=!0}else e+s.ydisp>=s.ybase&&(this.isUserScrolling=!1);const r=s.ydisp;s.ydisp=Math.max(Math.min(s.ydisp+e,s.ybase),0),r!==s.ydisp&&(t||this._onScroll.fire(s.ydisp))}scrollPages(e){this.scrollLines(e*(this.rows-1))}scrollToTop(){this.scrollLines(-this.buffer.ydisp)}scrollToBottom(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)}scrollToLine(e){const t=e-this.buffer.ydisp;0!==t&&this.scrollLines(t)}};c=s([r(0,n.IOptionsService)],c),t.BufferService=c},7994:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CharsetService=void 0,t.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(e){this.glevel=e,this.charset=this._charsets[e]}setgCharset(e,t){this._charsets[e]=t,this.glevel===e&&(this.charset=t)}}},1753:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreMouseService=void 0;const n=i(2585),o=i(8460),a=i(844),h={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:e=>4!==e.button&&1===e.action&&(e.ctrl=!1,e.alt=!1,e.shift=!1,!0)},VT200:{events:19,restrict:e=>32!==e.action},DRAG:{events:23,restrict:e=>32!==e.action||3!==e.button},ANY:{events:31,restrict:e=>!0}};function c(e,t){let i=(e.ctrl?16:0)|(e.shift?4:0)|(e.alt?8:0);return 4===e.button?(i|=64,i|=e.action):(i|=3&e.button,4&e.button&&(i|=64),8&e.button&&(i|=128),32===e.action?i|=32:0!==e.action||t||(i|=3)),i}const l=String.fromCharCode,d={DEFAULT:e=>{const t=[c(e,!1)+32,e.col+32,e.row+32];return t[0]>255||t[1]>255||t[2]>255?"":`${l(t[0])}${l(t[1])}${l(t[2])}`},SGR:e=>{const t=0===e.action&&4!==e.button?"m":"M";return`[<${c(e,!0)};${e.col};${e.row}${t}`},SGR_PIXELS:e=>{const t=0===e.action&&4!==e.button?"m":"M";return`[<${c(e,!0)};${e.x};${e.y}${t}`}};let _=class extends a.Disposable{constructor(e,t){super(),this._bufferService=e,this._coreService=t,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._onProtocolChange=this.register(new o.EventEmitter),this.onProtocolChange=this._onProtocolChange.event;for(const i of Object.keys(h))this.addProtocol(i,h[i]);for(const i of Object.keys(d))this.addEncoding(i,d[i]);this.reset()}addProtocol(e,t){this._protocols[e]=t}addEncoding(e,t){this._encodings[e]=t}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return 0!==this._protocols[this._activeProtocol].events}set activeProtocol(e){if(!this._protocols[e])throw new Error(`unknown protocol "${e}"`);this._activeProtocol=e,this._onProtocolChange.fire(this._protocols[e].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(e){if(!this._encodings[e])throw new Error(`unknown encoding "${e}"`);this._activeEncoding=e}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}triggerMouseEvent(e){if(e.col<0||e.col>=this._bufferService.cols||e.row<0||e.row>=this._bufferService.rows)return!1;if(4===e.button&&32===e.action)return!1;if(3===e.button&&32!==e.action)return!1;if(4!==e.button&&(2===e.action||3===e.action))return!1;if(e.col++,e.row++,32===e.action&&this._lastEvent&&this._equalEvents(this._lastEvent,e,"SGR_PIXELS"===this._activeEncoding))return!1;if(!this._protocols[this._activeProtocol].restrict(e))return!1;const t=this._encodings[this._activeEncoding](e);return t&&("DEFAULT"===this._activeEncoding?this._coreService.triggerBinaryEvent(t):this._coreService.triggerDataEvent(t,!0)),this._lastEvent=e,!0}explainEvents(e){return{down:!!(1&e),up:!!(2&e),drag:!!(4&e),move:!!(8&e),wheel:!!(16&e)}}_equalEvents(e,t,i){if(i){if(e.x!==t.x)return!1;if(e.y!==t.y)return!1}else{if(e.col!==t.col)return!1;if(e.row!==t.row)return!1}return e.button===t.button&&e.action===t.action&&e.ctrl===t.ctrl&&e.alt===t.alt&&e.shift===t.shift}};_=s([r(0,n.IBufferService),r(1,n.ICoreService)],_),t.CoreMouseService=_},6975:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoreService=void 0;const n=i(2585),o=i(8460),a=i(1439),h=i(844),c=Object.freeze({insertMode:!1}),l=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0});let d=class extends h.Disposable{constructor(e,t,i){super(),this._bufferService=e,this._logService=t,this._optionsService=i,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new o.EventEmitter),this.onData=this._onData.event,this._onUserInput=this.register(new o.EventEmitter),this.onUserInput=this._onUserInput.event,this._onBinary=this.register(new o.EventEmitter),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this.register(new o.EventEmitter),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=(0,a.clone)(c),this.decPrivateModes=(0,a.clone)(l)}reset(){this.modes=(0,a.clone)(c),this.decPrivateModes=(0,a.clone)(l)}triggerDataEvent(e,t=!1){if(this._optionsService.rawOptions.disableStdin)return;const i=this._bufferService.buffer;t&&this._optionsService.rawOptions.scrollOnUserInput&&i.ybase!==i.ydisp&&this._onRequestScrollToBottom.fire(),t&&this._onUserInput.fire(),this._logService.debug(`sending data "${e}"`,(()=>e.split("").map((e=>e.charCodeAt(0))))),this._onData.fire(e)}triggerBinaryEvent(e){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${e}"`,(()=>e.split("").map((e=>e.charCodeAt(0))))),this._onBinary.fire(e))}};d=s([r(0,n.IBufferService),r(1,n.ILogService),r(2,n.IOptionsService)],d),t.CoreService=d},9074:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DecorationService=void 0;const s=i(8055),r=i(8460),n=i(844),o=i(6106);let a=0,h=0;class c extends n.Disposable{constructor(){super(),this._decorations=new o.SortedList((e=>null==e?void 0:e.marker.line)),this._onDecorationRegistered=this.register(new r.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new r.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,n.toDisposable)((()=>{for(const e of this._decorations.values())this._onDecorationRemoved.fire(e);this.reset()})))}get decorations(){return this._decorations.values()}registerDecoration(e){if(e.marker.isDisposed)return;const t=new l(e);if(t){const e=t.marker.onDispose((()=>t.dispose()));t.onDispose((()=>{t&&(this._decorations.delete(t)&&this._onDecorationRemoved.fire(t),e.dispose())})),this._decorations.insert(t),this._onDecorationRegistered.fire(t)}return t}reset(){for(const e of this._decorations.values())e.dispose();this._decorations.clear()}*getDecorationsAtCell(e,t,i){var s,r,n;let o=0,a=0;for(const h of this._decorations.getKeyIterator(t))o=null!==(s=h.options.x)&&void 0!==s?s:0,a=o+(null!==(r=h.options.width)&&void 0!==r?r:1),e>=o&&e{var r,n,o;a=null!==(r=t.options.x)&&void 0!==r?r:0,h=a+(null!==(n=t.options.width)&&void 0!==n?n:1),e>=a&&e{Object.defineProperty(t,"__esModule",{value:!0}),t.InstantiationService=t.ServiceCollection=void 0;const s=i(2585),r=i(8343);class n{constructor(...e){this._entries=new Map;for(const[t,i]of e)this.set(t,i)}set(e,t){const i=this._entries.get(e);return this._entries.set(e,t),i}forEach(e){for(const[t,i]of this._entries.entries())e(t,i)}has(e){return this._entries.has(e)}get(e){return this._entries.get(e)}}t.ServiceCollection=n,t.InstantiationService=class{constructor(){this._services=new n,this._services.set(s.IInstantiationService,this)}setService(e,t){this._services.set(e,t)}getService(e){return this._services.get(e)}createInstance(e,...t){const i=(0,r.getServiceDependencies)(e).sort(((e,t)=>e.index-t.index)),s=[];for(const r of i){const t=this._services.get(r.id);if(!t)throw new Error(`[createInstance] ${e.name} depends on UNKNOWN service ${r.id}.`);s.push(t)}const n=i.length>0?i[0].index:t.length;if(t.length!==n)throw new Error(`[createInstance] First service dependency of ${e.name} at position ${n+1} conflicts with ${t.length} static arguments`);return new e(...[...t,...s])}}},7866:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.LogService=void 0;const n=i(844),o=i(2585),a={debug:o.LogLevelEnum.DEBUG,info:o.LogLevelEnum.INFO,warn:o.LogLevelEnum.WARN,error:o.LogLevelEnum.ERROR,off:o.LogLevelEnum.OFF};let h=class extends n.Disposable{constructor(e){super(),this._optionsService=e,this.logLevel=o.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",(()=>this._updateLogLevel())))}_updateLogLevel(){this.logLevel=a[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(e){for(let t=0;t{Object.defineProperty(t,"__esModule",{value:!0}),t.OptionsService=t.DEFAULT_OPTIONS=void 0;const s=i(8460),r=i(6114),n=i(844);t.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,customGlyphs:!0,drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:r.isMac,windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};const o=["normal","bold","100","200","300","400","500","600","700","800","900"];class a extends n.Disposable{constructor(e){super(),this._onOptionChange=this.register(new s.EventEmitter),this.onOptionChange=this._onOptionChange.event;const i=Object.assign({},t.DEFAULT_OPTIONS);for(const t in e)if(t in i)try{const s=e[t];i[t]=this._sanitizeAndValidateOption(t,s)}catch(e){console.error(e)}this.rawOptions=i,this.options=Object.assign({},i),this._setupOptions()}onSpecificOptionChange(e,t){return this.onOptionChange((i=>{i===e&&t(this.rawOptions[e])}))}onMultipleOptionChange(e,t){return this.onOptionChange((i=>{-1!==e.indexOf(i)&&t()}))}_setupOptions(){const e=e=>{if(!(e in t.DEFAULT_OPTIONS))throw new Error(`No option with key "${e}"`);return this.rawOptions[e]},i=(e,i)=>{if(!(e in t.DEFAULT_OPTIONS))throw new Error(`No option with key "${e}"`);i=this._sanitizeAndValidateOption(e,i),this.rawOptions[e]!==i&&(this.rawOptions[e]=i,this._onOptionChange.fire(e))};for(const t in this.rawOptions){const s={get:e.bind(this,t),set:i.bind(this,t)};Object.defineProperty(this.options,t,s)}}_sanitizeAndValidateOption(e,i){switch(e){case"cursorStyle":if(i||(i=t.DEFAULT_OPTIONS[e]),!function(e){return"block"===e||"underline"===e||"bar"===e}(i))throw new Error(`"${i}" is not a valid value for ${e}`);break;case"wordSeparator":i||(i=t.DEFAULT_OPTIONS[e]);break;case"fontWeight":case"fontWeightBold":if("number"==typeof i&&1<=i&&i<=1e3)break;i=o.includes(i)?i:t.DEFAULT_OPTIONS[e];break;case"cursorWidth":i=Math.floor(i);case"lineHeight":case"tabStopWidth":if(i<1)throw new Error(`${e} cannot be less than 1, value: ${i}`);break;case"minimumContrastRatio":i=Math.max(1,Math.min(21,Math.round(10*i)/10));break;case"scrollback":if((i=Math.min(i,4294967295))<0)throw new Error(`${e} cannot be less than 0, value: ${i}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(i<=0)throw new Error(`${e} cannot be less than or equal to 0, value: ${i}`);case"rows":case"cols":if(!i&&0!==i)throw new Error(`${e} must be numeric, value: ${i}`)}return i}}t.OptionsService=a},2660:function(e,t,i){var s=this&&this.__decorate||function(e,t,i,s){var r,n=arguments.length,o=n<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(r=e[a])&&(o=(n<3?r(o):n>3?r(t,i,o):r(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.OscLinkService=void 0;const n=i(2585);let o=class{constructor(e){this._bufferService=e,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(e){const t=this._bufferService.buffer;if(void 0===e.id){const i=t.addMarker(t.ybase+t.y),s={data:e,id:this._nextId++,lines:[i]};return i.onDispose((()=>this._removeMarkerFromLink(s,i))),this._dataByLinkId.set(s.id,s),s.id}const i=e,s=this._getEntryIdKey(i),r=this._entriesWithId.get(s);if(r)return this.addLineToLink(r.id,t.ybase+t.y),r.id;const n=t.addMarker(t.ybase+t.y),o={id:this._nextId++,key:this._getEntryIdKey(i),data:i,lines:[n]};return n.onDispose((()=>this._removeMarkerFromLink(o,n))),this._entriesWithId.set(o.key,o),this._dataByLinkId.set(o.id,o),o.id}addLineToLink(e,t){const i=this._dataByLinkId.get(e);if(i&&i.lines.every((e=>e.line!==t))){const e=this._bufferService.buffer.addMarker(t);i.lines.push(e),e.onDispose((()=>this._removeMarkerFromLink(i,e)))}}getLinkData(e){var t;return null===(t=this._dataByLinkId.get(e))||void 0===t?void 0:t.data}_getEntryIdKey(e){return`${e.id};;${e.uri}`}_removeMarkerFromLink(e,t){const i=e.lines.indexOf(t);-1!==i&&(e.lines.splice(i,1),0===e.lines.length&&(void 0!==e.data.id&&this._entriesWithId.delete(e.key),this._dataByLinkId.delete(e.id)))}};o=s([r(0,n.IBufferService)],o),t.OscLinkService=o},8343:(e,t)=>{function i(e,t,i){t.di$target===t?t.di$dependencies.push({id:e,index:i}):(t.di$dependencies=[{id:e,index:i}],t.di$target=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=t.getServiceDependencies=t.serviceRegistry=void 0,t.serviceRegistry=new Map,t.getServiceDependencies=function(e){return e.di$dependencies||[]},t.createDecorator=function(e){if(t.serviceRegistry.has(e))return t.serviceRegistry.get(e);const s=function(e,t,r){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");i(s,e,r)};return s.toString=()=>e,t.serviceRegistry.set(e,s),s}},2585:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IDecorationService=t.IUnicodeService=t.IOscLinkService=t.IOptionsService=t.ILogService=t.LogLevelEnum=t.IInstantiationService=t.ICharsetService=t.ICoreService=t.ICoreMouseService=t.IBufferService=void 0;const s=i(8343);var r;t.IBufferService=(0,s.createDecorator)("BufferService"),t.ICoreMouseService=(0,s.createDecorator)("CoreMouseService"),t.ICoreService=(0,s.createDecorator)("CoreService"),t.ICharsetService=(0,s.createDecorator)("CharsetService"),t.IInstantiationService=(0,s.createDecorator)("InstantiationService"),(r=t.LogLevelEnum||(t.LogLevelEnum={}))[r.DEBUG=0]="DEBUG",r[r.INFO=1]="INFO",r[r.WARN=2]="WARN",r[r.ERROR=3]="ERROR",r[r.OFF=4]="OFF",t.ILogService=(0,s.createDecorator)("LogService"),t.IOptionsService=(0,s.createDecorator)("OptionsService"),t.IOscLinkService=(0,s.createDecorator)("OscLinkService"),t.IUnicodeService=(0,s.createDecorator)("UnicodeService"),t.IDecorationService=(0,s.createDecorator)("DecorationService")},1480:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.UnicodeService=void 0;const s=i(8460),r=i(225);t.UnicodeService=class{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new s.EventEmitter,this.onChange=this._onChange.event;const e=new r.UnicodeV6;this.register(e),this._active=e.version,this._activeProvider=e}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(e){if(!this._providers[e])throw new Error(`unknown Unicode version "${e}"`);this._active=e,this._activeProvider=this._providers[e],this._onChange.fire(e)}register(e){this._providers[e.version]=e}wcwidth(e){return this._activeProvider.wcwidth(e)}getStringCellWidth(e){let t=0;const i=e.length;for(let s=0;s=i)return t+this.wcwidth(r);const n=e.charCodeAt(s);56320<=n&&n<=57343?r=1024*(r-55296)+n-56320+65536:t+=this.wcwidth(n)}t+=this.wcwidth(r)}return t}}}},t={};function i(s){var r=t[s];if(void 0!==r)return r.exports;var n=t[s]={exports:{}};return e[s].call(n.exports,n,n.exports,i),n.exports}var s={};return(()=>{var e=s;Object.defineProperty(e,"__esModule",{value:!0}),e.Terminal=void 0;const t=i(3236),r=i(9042),n=i(7975),o=i(7090),a=i(5741),h=i(8285),c=["cols","rows"];e.Terminal=class{constructor(e){this._core=new t.Terminal(e),this._addonManager=new a.AddonManager,this._publicOptions=Object.assign({},this._core.options);const i=e=>this._core.options[e],s=(e,t)=>{this._checkReadonlyOptions(e),this._core.options[e]=t};for(const t in this._core.options){const e={get:i.bind(this,t),set:s.bind(this,t)};Object.defineProperty(this._publicOptions,t,e)}}_checkReadonlyOptions(e){if(c.includes(e))throw new Error(`Option "${e}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new n.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new o.UnicodeApi(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=new h.BufferNamespaceApi(this._core)),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){const e=this._core.coreService.decPrivateModes;let t="none";switch(this._core.coreMouseService.activeProtocol){case"X10":t="x10";break;case"VT200":t="vt200";break;case"DRAG":t="drag";break;case"ANY":t="any"}return{applicationCursorKeysMode:e.applicationCursorKeys,applicationKeypadMode:e.applicationKeypad,bracketedPasteMode:e.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:t,originMode:e.origin,reverseWraparoundMode:e.reverseWraparound,sendFocusMode:e.sendFocus,wraparoundMode:e.wraparound}}get options(){return this._publicOptions}set options(e){for(const t in e)this._publicOptions[t]=e[t]}blur(){this._core.blur()}focus(){this._core.focus()}resize(e,t){this._verifyIntegers(e,t),this._core.resize(e,t)}open(e){this._core.open(e)}attachCustomKeyEventHandler(e){this._core.attachCustomKeyEventHandler(e)}registerLinkProvider(e){return this._core.registerLinkProvider(e)}registerCharacterJoiner(e){return this._checkProposedApi(),this._core.registerCharacterJoiner(e)}deregisterCharacterJoiner(e){this._checkProposedApi(),this._core.deregisterCharacterJoiner(e)}registerMarker(e=0){return this._verifyIntegers(e),this._core.addMarker(e)}registerDecoration(e){var t,i,s;return this._checkProposedApi(),this._verifyPositiveIntegers(null!==(t=e.x)&&void 0!==t?t:0,null!==(i=e.width)&&void 0!==i?i:0,null!==(s=e.height)&&void 0!==s?s:0),this._core.registerDecoration(e)}hasSelection(){return this._core.hasSelection()}select(e,t,i){this._verifyIntegers(e,t,i),this._core.select(e,t,i)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(e,t){this._verifyIntegers(e,t),this._core.selectLines(e,t)}dispose(){this._addonManager.dispose(),this._core.dispose()}scrollLines(e){this._verifyIntegers(e),this._core.scrollLines(e)}scrollPages(e){this._verifyIntegers(e),this._core.scrollPages(e)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(e){this._verifyIntegers(e),this._core.scrollToLine(e)}clear(){this._core.clear()}write(e,t){this._core.write(e,t)}writeln(e,t){this._core.write(e),this._core.write("\r\n",t)}paste(e){this._core.paste(e)}refresh(e,t){this._verifyIntegers(e,t),this._core.refresh(e,t)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(e){return this._addonManager.loadAddon(this,e)}static get strings(){return r}_verifyIntegers(...e){for(const t of e)if(t===1/0||isNaN(t)||t%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...e){for(const t of e)if(t&&(t===1/0||isNaN(t)||t%1!=0||t<0))throw new Error("This API only accepts positive integers")}}})(),s})()}))}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/2363.6eef078cb37c32d7fbc3.js b/bootcamp/share/jupyter/lab/static/2363.6eef078cb37c32d7fbc3.js new file mode 100644 index 0000000..e9ec4fd --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/2363.6eef078cb37c32d7fbc3.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2363],{32363:(e,t,n)=>{n.r(t);n.d(t,{swift:()=>A});function r(e){var t={};for(var n=0;n-1){e.next();return"operator"}if(f.indexOf(r)>-1){e.next();e.match("..");return"punctuation"}var k;if(k=e.match(/("""|"|')/)){var w=y.bind(null,k[0]);t.tokenize.push(w);return w(e,t)}if(e.match(v)){var b=e.current();if(u.hasOwnProperty(b))return"type";if(o.hasOwnProperty(b))return"atom";if(i.hasOwnProperty(b)){if(a.hasOwnProperty(b))t.prev="define";return"keyword"}if(n=="define")return"def";return"variable"}e.next();return null}function w(){var e=0;return function(t,n,r){var i=k(t,n,r);if(i=="punctuation"){if(t.current()=="(")++e;else if(t.current()==")"){if(e==0){t.backUp(1);n.tokenize.pop();return n.tokenize[n.tokenize.length-1](t,n)}else--e}}return i}}function y(e,t,n){var r=e.length==1;var i,a=false;while(i=t.peek()){if(a){t.next();if(i=="("){n.tokenize.push(w());return"string"}a=false}else if(t.match(e)){n.tokenize.pop();return"string"}else{t.next();a=i=="\\"}}if(r){n.tokenize.pop()}return"string"}function x(e,t){var n;while(n=e.next()){if(n==="/"&&e.eat("*")){t.tokenize.push(x)}else if(n==="*"&&e.eat("/")){t.tokenize.pop();break}}return"comment"}function b(e,t,n){this.prev=e;this.align=t;this.indented=n}function g(e,t){var n=t.match(/^\s*($|\/[\/\*]|[)}\]])/,false)?null:t.column()+1;e.context=new b(e.context,n,e.indented)}function z(e){if(e.context){e.indented=e.context.indented;e.context=e.context.prev}}const A={name:"swift",startState:function(){return{prev:null,context:null,indented:0,tokenize:[]}},token:function(e,t){var n=t.prev;t.prev=null;var r=t.tokenize[t.tokenize.length-1]||k;var i=r(e,t,n);if(!i||i=="comment")t.prev=n;else if(!t.prev)t.prev=i;if(i=="punctuation"){var a=/[\(\[\{]|([\]\)\}])/.exec(e.current());if(a)(a[1]?z:g)(t,e)}return i},indent:function(e,t,n){var r=e.context;if(!r)return 0;var i=/^[\]\}\)]/.test(t);if(r.align!=null)return r.align-(i?1:0);return r.indented+(i?0:n.unit)},languageData:{indentOnInput:/^\s*[\)\}\]]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/2459.9f9cb02561de1bec73ff.js b/bootcamp/share/jupyter/lab/static/2459.9f9cb02561de1bec73ff.js new file mode 100644 index 0000000..de4affd --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/2459.9f9cb02561de1bec73ff.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2459],{12459:(e,t,n)=>{n.r(t);n.d(t,{q:()=>f});var r,i=s(["abs","acos","aj","aj0","all","and","any","asc","asin","asof","atan","attr","avg","avgs","bin","by","ceiling","cols","cor","cos","count","cov","cross","csv","cut","delete","deltas","desc","dev","differ","distinct","div","do","each","ej","enlist","eval","except","exec","exit","exp","fby","fills","first","fkeys","flip","floor","from","get","getenv","group","gtime","hclose","hcount","hdel","hopen","hsym","iasc","idesc","if","ij","in","insert","inter","inv","key","keys","last","like","list","lj","load","log","lower","lsq","ltime","ltrim","mavg","max","maxs","mcount","md5","mdev","med","meta","min","mins","mmax","mmin","mmu","mod","msum","neg","next","not","null","or","over","parse","peach","pj","plist","prd","prds","prev","prior","rand","rank","ratios","raze","read0","read1","reciprocal","reverse","rload","rotate","rsave","rtrim","save","scan","select","set","setenv","show","signum","sin","sqrt","ss","ssr","string","sublist","sum","sums","sv","system","tables","tan","til","trim","txf","type","uj","ungroup","union","update","upper","upsert","value","var","view","views","vs","wavg","where","where","while","within","wj","wj1","wsum","xasc","xbar","xcol","xcols","xdesc","xexp","xgroup","xkey","xlog","xprev","xrank"]),o=/[|/&^!+:\\\-*%$=~#;@><,?_\'\"\[\(\]\)\s{}]/;function s(e){return new RegExp("^("+e.join("|")+")$")}function a(e,t){var n=e.sol(),s=e.next();r=null;if(n)if(s=="/")return(t.tokenize=c)(e,t);else if(s=="\\"){if(e.eol()||/\s/.test(e.peek()))return e.skipToEnd(),/^\\\s*$/.test(e.current())?(t.tokenize=u)(e):t.tokenize=a,"comment";else return t.tokenize=a,"builtin"}if(/\s/.test(s))return e.peek()=="/"?(e.skipToEnd(),"comment"):"null";if(s=='"')return(t.tokenize=p)(e,t);if(s=="`")return e.eatWhile(/[A-Za-z\d_:\/.]/),"macroName";if("."==s&&/\d/.test(e.peek())||/\d/.test(s)){var l=null;e.backUp(1);if(e.match(/^\d{4}\.\d{2}(m|\.\d{2}([DT](\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)?)?)/)||e.match(/^\d+D(\d{2}(:\d{2}(:\d{2}(\.\d{1,9})?)?)?)/)||e.match(/^\d{2}:\d{2}(:\d{2}(\.\d{1,9})?)?/)||e.match(/^\d+[ptuv]{1}/))l="temporal";else if(e.match(/^0[NwW]{1}/)||e.match(/^0x[\da-fA-F]*/)||e.match(/^[01]+[b]{1}/)||e.match(/^\d+[chijn]{1}/)||e.match(/-?\d*(\.\d*)?(e[+\-]?\d+)?(e|f)?/))l="number";return l&&(!(s=e.peek())||o.test(s))?l:(e.next(),"error")}if(/[A-Za-z]|\./.test(s))return e.eatWhile(/[A-Za-z._\d]/),i.test(e.current())?"keyword":"variable";if(/[|/&^!+:\\\-*%$=~#;@><\.,?_\']/.test(s))return null;if(/[{}\(\[\]\)]/.test(s))return null;return"error"}function c(e,t){return e.skipToEnd(),/\/\s*$/.test(e.current())?(t.tokenize=l)(e,t):t.tokenize=a,"comment"}function l(e,t){var n=e.sol()&&e.peek()=="\\";e.skipToEnd();if(n&&/^\\\s*$/.test(e.current()))t.tokenize=a;return"comment"}function u(e){return e.skipToEnd(),"comment"}function p(e,t){var n=false,r,i=false;while(r=e.next()){if(r=='"'&&!n){i=true;break}n=!n&&r=="\\"}if(i)t.tokenize=a;return"string"}function d(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function m(e){e.indent=e.context.indent;e.context=e.context.prev}const f={name:"q",startState:function(){return{tokenize:a,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()){if(t.context&&t.context.align==null)t.context.align=false;t.indent=e.indentation()}var n=t.tokenize(e,t);if(n!="comment"&&t.context&&t.context.align==null&&t.context.type!="pattern"){t.context.align=true}if(r=="(")d(t,")",e.column());else if(r=="[")d(t,"]",e.column());else if(r=="{")d(t,"}",e.column());else if(/[\]\}\)]/.test(r)){while(t.context&&t.context.type=="pattern")m(t);if(t.context&&r==t.context.type)m(t)}else if(r=="."&&t.context&&t.context.type=="pattern")m(t);else if(/atom|string|variable/.test(n)&&t.context){if(/[\}\]]/.test(t.context.type))d(t,"pattern",e.column());else if(t.context.type=="pattern"&&!t.context.align){t.context.align=true;t.context.col=e.column()}}return n},indent:function(e,t,n){var r=t&&t.charAt(0);var i=e.context;if(/[\]\}]/.test(r))while(i&&i.type=="pattern")i=i.prev;var o=i&&r==i.type;if(!i)return 0;else if(i.type=="pattern")return i.col;else if(i.align)return i.col+(o?0:1);else return i.indent+(o?0:n.unit)}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/2485.dab750ed66209df61fe1.js b/bootcamp/share/jupyter/lab/static/2485.dab750ed66209df61fe1.js new file mode 100644 index 0000000..5b6c9ba --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/2485.dab750ed66209df61fe1.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2485],{92485:(e,t,n)=>{n.r(t);n.d(t,{dockerFile:()=>f});var r=n(11176);var a="from";var o=new RegExp("^(\\s*)\\b("+a+")\\b","i");var s=["run","cmd","entrypoint","shell"];var l=new RegExp("^(\\s*)("+s.join("|")+")(\\s+\\[)","i");var i="expose";var u=new RegExp("^(\\s*)("+i+")(\\s+)","i");var g=["arg","from","maintainer","label","env","add","copy","volume","user","workdir","onbuild","stopsignal","healthcheck","shell"];var d=[a,i].concat(s).concat(g),p="("+d.join("|")+")",x=new RegExp("^(\\s*)"+p+"(\\s*)(#.*)?$","i"),k=new RegExp("^(\\s*)"+p+"(\\s+)","i");const f=(0,r.Q)({start:[{regex:/^\s*#.*$/,sol:true,token:"comment"},{regex:o,token:[null,"keyword"],sol:true,next:"from"},{regex:x,token:[null,"keyword",null,"error"],sol:true},{regex:l,token:[null,"keyword",null],sol:true,next:"array"},{regex:u,token:[null,"keyword",null],sol:true,next:"expose"},{regex:k,token:[null,"keyword",null],sol:true,next:"arguments"},{regex:/./,token:null}],from:[{regex:/\s*$/,token:null,next:"start"},{regex:/(\s*)(#.*)$/,token:[null,"error"],next:"start"},{regex:/(\s*\S+\s+)(as)/i,token:[null,"keyword"],next:"start"},{token:null,next:"start"}],single:[{regex:/(?:[^\\']|\\.)/,token:"string"},{regex:/'/,token:"string",pop:true}],double:[{regex:/(?:[^\\"]|\\.)/,token:"string"},{regex:/"/,token:"string",pop:true}],array:[{regex:/\]/,token:null,next:"start"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"}],expose:[{regex:/\d+$/,token:"number",next:"start"},{regex:/[^\d]+$/,token:null,next:"start"},{regex:/\d+/,token:"number"},{regex:/[^\d]+/,token:null},{token:null,next:"start"}],arguments:[{regex:/^\s*#.*$/,sol:true,token:"comment"},{regex:/"(?:[^\\"]|\\.)*"?$/,token:"string",next:"start"},{regex:/"/,token:"string",push:"double"},{regex:/'(?:[^\\']|\\.)*'?$/,token:"string",next:"start"},{regex:/'/,token:"string",push:"single"},{regex:/[^#"']+[\\`]$/,token:null},{regex:/[^#"']+$/,token:null,next:"start"},{regex:/[^#"']+/,token:null},{token:null,next:"start"}],languageData:{commentTokens:{line:"#"}}})},11176:(e,t,n)=>{n.d(t,{Q:()=>r});function r(e){a(e,"start");var t={},n=e.languageData||{},r=false;for(var o in e)if(o!=n&&e.hasOwnProperty(o)){var s=t[o]=[],g=e[o];for(var d=0;d2&&s.token&&typeof s.token!="string"){n.pending=[];for(var u=2;u-1)return null;var a=n.indent.length-1,o=e[n.state];e:for(;;){for(var s=0;s{!function(t,r){true?e.exports=r():0}(self,(function(){return(()=>{"use strict";var e={};return(()=>{var t=e;Object.defineProperty(t,"__esModule",{value:!0}),t.FitAddon=void 0,t.FitAddon=class{constructor(){}activate(e){this._terminal=e}dispose(){}fit(){const e=this.proposeDimensions();if(!e||!this._terminal||isNaN(e.cols)||isNaN(e.rows))return;const t=this._terminal._core;this._terminal.rows===e.rows&&this._terminal.cols===e.cols||(t._renderService.clear(),this._terminal.resize(e.cols,e.rows))}proposeDimensions(){if(!this._terminal)return;if(!this._terminal.element||!this._terminal.element.parentElement)return;const e=this._terminal._core,t=e._renderService.dimensions;if(0===t.css.cell.width||0===t.css.cell.height)return;const r=0===this._terminal.options.scrollback?0:e.viewport.scrollBarWidth,i=window.getComputedStyle(this._terminal.element.parentElement),s=parseInt(i.getPropertyValue("height")),n=Math.max(0,parseInt(i.getPropertyValue("width"))),o=window.getComputedStyle(this._terminal.element),a=s-(parseInt(o.getPropertyValue("padding-top"))+parseInt(o.getPropertyValue("padding-bottom"))),l=n-(parseInt(o.getPropertyValue("padding-right"))+parseInt(o.getPropertyValue("padding-left")))-r;return{cols:Math.max(2,Math.floor(l/t.css.cell.width)),rows:Math.max(1,Math.floor(a/t.css.cell.height))}}}})(),e})()}))}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/2646.0864fb63d7ab1ed16893.js b/bootcamp/share/jupyter/lab/static/2646.0864fb63d7ab1ed16893.js new file mode 100644 index 0000000..67da177 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/2646.0864fb63d7ab1ed16893.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2646],{22646:(e,t,r)=>{r.r(t);r.d(t,{coffeeScript:()=>x});var n="error";function i(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var f=/^(?:->|=>|\+[+=]?|-[\-=]?|\*[\*=]?|\/[\/=]?|[=!]=|<[><]?=?|>>?=?|%=?|&=?|\|=?|\^=?|\~|!|\?|(or|and|\|\||&&|\?)=)/;var a=/^(?:[()\[\]{},:`=;]|\.\.?\.?)/;var o=/^[_A-Za-z$][_A-Za-z$0-9]*/;var c=/^@[_A-Za-z$][_A-Za-z$0-9]*/;var p=i(["and","or","not","is","isnt","in","instanceof","typeof"]);var s=["for","while","loop","if","unless","else","switch","try","catch","finally","class"];var u=["break","by","continue","debugger","delete","do","in","of","new","return","then","this","@","throw","when","until","extends"];var l=i(s.concat(u));s=i(s);var v=/^('{3}|\"{3}|['\"])/;var d=/^(\/{3}|\/)/;var h=["Infinity","NaN","undefined","null","true","false","on","off","yes","no"];var m=i(h);function k(e,t){if(e.sol()){if(t.scope.align===null)t.scope.align=false;var r=t.scope.offset;if(e.eatSpace()){var i=e.indentation();if(i>r&&t.scope.type=="coffee"){return"indent"}else if(i0){z(e,t)}}}if(e.eatSpace()){return null}var s=e.peek();if(e.match("####")){e.skipToEnd();return"comment"}if(e.match("###")){t.tokenize=g;return t.tokenize(e,t)}if(s==="#"){e.skipToEnd();return"comment"}if(e.match(/^-?[0-9\.]/,false)){var u=false;if(e.match(/^-?\d*\.\d+(e[\+\-]?\d+)?/i)){u=true}if(e.match(/^-?\d+\.\d*/)){u=true}if(e.match(/^-?\.\d+/)){u=true}if(u){if(e.peek()=="."){e.backUp(1)}return"number"}var h=false;if(e.match(/^-?0x[0-9a-f]+/i)){h=true}if(e.match(/^-?[1-9]\d*(e[\+\-]?\d+)?/)){h=true}if(e.match(/^-?0(?![\dx])/i)){h=true}if(h){return"number"}}if(e.match(v)){t.tokenize=y(e.current(),false,"string");return t.tokenize(e,t)}if(e.match(d)){if(e.current()!="/"||e.match(/^.*\//,false)){t.tokenize=y(e.current(),true,"string.special");return t.tokenize(e,t)}else{e.backUp(1)}}if(e.match(f)||e.match(p)){return"operator"}if(e.match(a)){return"punctuation"}if(e.match(m)){return"atom"}if(e.match(c)||t.prop&&e.match(o)){return"property"}if(e.match(l)){return"keyword"}if(e.match(o)){return"variable"}e.next();return n}function y(e,t,r){return function(n,i){while(!n.eol()){n.eatWhile(/[^'"\/\\]/);if(n.eat("\\")){n.next();if(t&&n.eol()){return r}}else if(n.match(e)){i.tokenize=k;return r}else{n.eat(/['"\/]/)}}if(t){i.tokenize=k}return r}}function g(e,t){while(!e.eol()){e.eatWhile(/[^#]/);if(e.match("###")){t.tokenize=k;break}e.eatWhile("#")}return"comment"}function b(e,t,r="coffee"){var n=0,i=false,f=null;for(var a=t.scope;a;a=a.prev){if(a.type==="coffee"||a.type=="}"){n=a.offset+e.indentUnit;break}}if(r!=="coffee"){i=null;f=e.column()+e.current().length}else if(t.scope.align){t.scope.align=false}t.scope={offset:n,type:r,prev:t.scope,align:i,alignOffset:f}}function z(e,t){if(!t.scope.prev)return;if(t.scope.type==="coffee"){var r=e.indentation();var n=false;for(var i=t.scope;i;i=i.prev){if(r===i.offset){n=true;break}}if(!n){return true}while(t.scope.prev&&t.scope.offset!==r){t.scope=t.scope.prev}return false}else{t.scope=t.scope.prev;return false}}function w(e,t){var r=t.tokenize(e,t);var i=e.current();if(i==="return"){t.dedent=true}if((i==="->"||i==="=>")&&e.eol()||r==="indent"){b(e,t)}var f="[({".indexOf(i);if(f!==-1){b(e,t,"])}".slice(f,f+1))}if(s.exec(i)){b(e,t)}if(i=="then"){z(e,t)}if(r==="dedent"){if(z(e,t)){return n}}f="])}".indexOf(i);if(f!==-1){while(t.scope.type=="coffee"&&t.scope.prev)t.scope=t.scope.prev;if(t.scope.type==i)t.scope=t.scope.prev}if(t.dedent&&e.eol()){if(t.scope.type=="coffee"&&t.scope.prev)t.scope=t.scope.prev;t.dedent=false}return r=="indent"||r=="dedent"?null:r}const x={name:"coffeescript",startState:function(){return{tokenize:k,scope:{offset:0,type:"coffee",prev:null,align:false},prop:false,dedent:0}},token:function(e,t){var r=t.scope.align===null&&t.scope;if(r&&e.sol())r.align=false;var n=w(e,t);if(n&&n!="comment"){if(r)r.align=true;t.prop=n=="punctuation"&&e.current()=="."}return n},indent:function(e,t){if(e.tokenize!=k)return 0;var r=e.scope;var n=t&&"])}".indexOf(t.charAt(0))>-1;if(n)while(r.type=="coffee"&&r.prev)r=r.prev;var i=n&&r.type===t.charAt(0);if(r.align)return r.alignOffset-(i?1:0);else return(i?r.prev:r).offset},languageData:{commentTokens:{line:"#"}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/26683bf201fb258a2237.woff b/bootcamp/share/jupyter/lab/static/26683bf201fb258a2237.woff new file mode 100644 index 0000000..eb66c46 Binary files /dev/null and b/bootcamp/share/jupyter/lab/static/26683bf201fb258a2237.woff differ diff --git a/bootcamp/share/jupyter/lab/static/2800.680b1fa0a4c66c69bb1e.js b/bootcamp/share/jupyter/lab/static/2800.680b1fa0a4c66c69bb1e.js new file mode 100644 index 0000000..cab36c6 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/2800.680b1fa0a4c66c69bb1e.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2800],{52800:(e,t,i)=>{i.r(t);i.d(t,{RegExpCursor:()=>u,SearchCursor:()=>a,SearchQuery:()=>V,closeSearchPanel:()=>ue,findNext:()=>ie,findPrevious:()=>re,getSearchQuery:()=>U,gotoLine:()=>w,highlightSelectionMatches:()=>k,openSearchPanel:()=>he,replaceAll:()=>le,replaceNext:()=>oe,search:()=>I,searchKeymap:()=>fe,searchPanelOpen:()=>J,selectMatches:()=>ne,selectNextOccurrence:()=>F,selectSelectionMatches:()=>se,setSearchQuery:()=>K});var r=i(66143);var n=i(37496);function s(){var e=arguments[0];if(typeof e=="string")e=document.createElement(e);var t=1,i=arguments[1];if(i&&typeof i=="object"&&i.nodeType==null&&!Array.isArray(i)){for(var r in i)if(Object.prototype.hasOwnProperty.call(i,r)){var n=i[r];if(typeof n=="string")e.setAttribute(r,n);else if(n!=null)e[r]=n}t++}for(;te.normalize("NFKD"):e=>e;class a{constructor(e,t,i=0,r=e.length,n,s){this.test=s;this.value={from:0,to:0};this.done=false;this.matches=[];this.buffer="";this.bufferPos=0;this.iter=e.iterRange(i,r);this.bufferStart=i;this.normalize=n?e=>n(l(e)):l;this.query=this.normalize(t)}peek(){if(this.bufferPos==this.buffer.length){this.bufferStart+=this.buffer.length;this.iter.next();if(this.iter.done)return-1;this.bufferPos=0;this.buffer=this.iter.value}return(0,n.codePointAt)(this.buffer,this.bufferPos)}next(){while(this.matches.length)this.matches.pop();return this.nextOverlapping()}nextOverlapping(){for(;;){let e=this.peek();if(e<0){this.done=true;return this}let t=(0,n.fromCodePoint)(e),i=this.bufferStart+this.bufferPos;this.bufferPos+=(0,n.codePointSize)(e);let r=this.normalize(t);for(let n=0,s=i;;n++){let e=r.charCodeAt(n);let o=this.match(e,s);if(o){this.value=o;return this}if(n==r.length-1)break;if(s==i&&nthis.to)this.curLine=this.curLine.slice(0,this.to-this.curLineStart);this.iter.next()}}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1;if(this.curLineStart>this.to)this.curLine="";else this.getLine(0)}next(){for(let e=this.matchPos-this.curLineStart;;){this.re.lastIndex=e;let t=this.matchPos<=this.to&&this.re.exec(this.curLine);if(t){let i=this.curLineStart+t.index,r=i+t[0].length;this.matchPos=g(this.text,r+(i==r?1:0));if(i==this.curLineStart+this.curLine.length)this.nextLine();if((ithis.value.to)&&(!this.test||this.test(i,r,t))){this.value={from:i,to:r,match:t};return this}e=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=i||r.to<=t){let r=new d(t,e.sliceString(t,i));f.set(e,r);return r}if(r.from==t&&r.to==i)return r;let{text:n,from:s}=r;if(s>t){n=e.sliceString(t,s)+n;s=t}if(r.to=this.to?this.to:this.text.lineAt(e).to}next(){for(;;){let e=this.re.lastIndex=this.matchPos-this.flat.from;let t=this.re.exec(this.flat.text);if(t&&!t[0]&&t.index==e){this.re.lastIndex=e+1;t=this.re.exec(this.flat.text)}if(t){let e=this.flat.from+t.index,i=e+t[0].length;if((this.flat.to>=this.to||t.index+t[0].length<=this.flat.text.length-10)&&(!this.test||this.test(e,i,t))){this.value={from:e,to:i,match:t};this.matchPos=g(this.text,i+(e==i?1:0));return this}}if(this.flat.to==this.to){this.done=true;return this}this.flat=d.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}if(typeof Symbol!="undefined"){u.prototype[Symbol.iterator]=p.prototype[Symbol.iterator]=function(){return this}}function m(e){try{new RegExp(e,h);return true}catch(t){return false}}function g(e,t){if(t>=e.length)return t;let i=e.lineAt(t),r;while(t=56320&&r<57344)t++;return t}function v(e){let t=s("input",{class:"cm-textfield",name:"line"});let i=s("form",{class:"cm-gotoLine",onkeydown:t=>{if(t.keyCode==27){t.preventDefault();e.dispatch({effects:x.of(false)});e.focus()}else if(t.keyCode==13){t.preventDefault();r()}},onsubmit:e=>{e.preventDefault();r()}},s("label",e.state.phrase("Go to line"),": ",t)," ",s("button",{class:"cm-button",type:"submit"},e.state.phrase("go")));function r(){let i=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(t.value);if(!i)return;let{state:r}=e,s=r.doc.lineAt(r.selection.main.head);let[,o,l,a,c]=i;let h=a?+a.slice(1):0;let u=l?+l:s.number;if(l&&c){let e=u/100;if(o)e=e*(o=="-"?-1:1)+s.number/r.doc.lines;u=Math.round(r.doc.lines*e)}else if(l&&o){u=u*(o=="-"?-1:1)+s.number}let f=r.doc.line(Math.max(1,Math.min(r.doc.lines,u)));e.dispatch({effects:x.of(false),selection:n.EditorSelection.cursor(f.from+Math.max(0,Math.min(h,f.length))),scrollIntoView:true});e.focus()}return{dom:i}}const x=n.StateEffect.define();const y=n.StateField.define({create(){return true},update(e,t){for(let i of t.effects)if(i.is(x))e=i.value;return e},provide:e=>r.showPanel.from(e,(e=>e?v:null))});const w=e=>{let t=(0,r.getPanel)(e,v);if(!t){let i=[x.of(true)];if(e.state.field(y,false)==null)i.push(n.StateEffect.appendConfig.of([y,b]));e.dispatch({effects:i});t=(0,r.getPanel)(e,v)}if(t)t.dom.querySelector("input").focus();return true};const b=r.EditorView.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}});const S={highlightWordAroundCursor:false,minSelectionLength:1,maxMatches:100,wholeWords:false};const C=n.Facet.define({combine(e){return(0,n.combineConfig)(e,S,{highlightWordAroundCursor:(e,t)=>e||t,minSelectionLength:Math.min,maxMatches:Math.min})}});function k(e){let t=[P,L];if(e)t.push(C.of(e));return t}const M=r.Decoration.mark({class:"cm-selectionMatch"});const E=r.Decoration.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function D(e,t,i,r){return(i==0||e(t.sliceDoc(i-1,i))!=n.CharCategory.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=n.CharCategory.Word)}function q(e,t,i,r){return e(t.sliceDoc(i,i+1))==n.CharCategory.Word&&e(t.sliceDoc(r-1,r))==n.CharCategory.Word}const L=r.ViewPlugin.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){if(e.selectionSet||e.docChanged||e.viewportChanged)this.decorations=this.getDeco(e.view)}getDeco(e){let t=e.state.facet(C);let{state:i}=e,n=i.selection;if(n.ranges.length>1)return r.Decoration.none;let s=n.main,o,l=null;if(s.empty){if(!t.highlightWordAroundCursor)return r.Decoration.none;let e=i.wordAt(s.head);if(!e)return r.Decoration.none;l=i.charCategorizer(s.head);o=i.sliceDoc(e.from,e.to)}else{let e=s.to-s.from;if(e200)return r.Decoration.none;if(t.wholeWords){o=i.sliceDoc(s.from,s.to);l=i.charCategorizer(s.head);if(!(D(l,i,s.from,s.to)&&q(l,i,s.from,s.to)))return r.Decoration.none}else{o=i.sliceDoc(s.from,s.to).trim();if(!o)return r.Decoration.none}}let c=[];for(let h of e.visibleRanges){let e=new a(i.doc,o,h.from,h.to);while(!e.next().done){let{from:n,to:o}=e.value;if(!l||D(l,i,n,o)){if(s.empty&&n<=s.from&&o>=s.to)c.push(E.range(n,o));else if(n>=s.to||o<=s.from)c.push(M.range(n,o));if(c.length>t.maxMatches)return r.Decoration.none}}}return r.Decoration.set(c)}},{decorations:e=>e.decorations});const P=r.EditorView.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}});const A=({state:e,dispatch:t})=>{let{selection:i}=e;let r=n.EditorSelection.create(i.ranges.map((t=>e.wordAt(t.head)||n.EditorSelection.cursor(t.head))),i.mainIndex);if(r.eq(i))return false;t(e.update({selection:r}));return true};function W(e,t){let{main:i,ranges:r}=e.selection;let n=e.wordAt(i.head),s=n&&n.from==i.from&&n.to==i.to;for(let o=false,l=new a(e.doc,t,r[r.length-1].to);;){l.next();if(l.done){if(o)return null;l=new a(e.doc,t,0,Math.max(0,r[r.length-1].from-1));o=true}else{if(o&&r.some((e=>e.from==l.value.from)))continue;if(s){let t=e.wordAt(l.value.from);if(!t||t.from!=l.value.from||t.to!=l.value.to)continue}return l.value}}}const F=({state:e,dispatch:t})=>{let{ranges:i}=e.selection;if(i.some((e=>e.from===e.to)))return A({state:e,dispatch:t});let s=e.sliceDoc(i[0].from,i[0].to);if(e.selection.ranges.some((t=>e.sliceDoc(t.from,t.to)!=s)))return false;let o=W(e,s);if(!o)return false;t(e.update({selection:e.selection.addRange(n.EditorSelection.range(o.from,o.to),false),effects:r.EditorView.scrollIntoView(o.to)}));return true};const R=n.Facet.define({combine(e){return(0,n.combineConfig)(e,{top:false,caseSensitive:false,literal:false,wholeWord:false,createPanel:e=>new de(e),scrollToMatch:e=>r.EditorView.scrollIntoView(e)})}});function I(e){return e?[R.of(e),ye]:ye}class V{constructor(e){this.search=e.search;this.caseSensitive=!!e.caseSensitive;this.literal=!!e.literal;this.regexp=!!e.regexp;this.replace=e.replace||"";this.valid=!!this.search&&(!this.regexp||m(this.search));this.unquoted=this.unquote(this.search);this.wholeWord=!!e.wholeWord}unquote(e){return this.literal?e:e.replace(/\\([nrt\\])/g,((e,t)=>t=="n"?"\n":t=="r"?"\r":t=="t"?"\t":"\\"))}eq(e){return this.search==e.search&&this.replace==e.replace&&this.caseSensitive==e.caseSensitive&&this.regexp==e.regexp&&this.wholeWord==e.wholeWord}create(){return this.regexp?new B(this):new $(this)}getCursor(e,t=0,i){let r=e.doc?e:n.EditorState.create({doc:e});if(i==null)i=r.doc.length;return this.regexp?_(this,r,t,i):O(this,r,t,i)}}class z{constructor(e){this.spec=e}}function O(e,t,i,r){return new a(t.doc,e.unquoted,i,r,e.caseSensitive?undefined:e=>e.toLowerCase(),e.wholeWord?T(t.doc,t.charCategorizer(t.selection.main.head)):undefined)}function T(e,t){return(i,r,s,o)=>{if(o>i||o+s.length=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let n=O(this.spec,e,Math.max(0,t-this.spec.unquoted.length),Math.min(i+this.spec.unquoted.length,e.doc.length));while(!n.next().done)r(n.value.from,n.value.to)}}function _(e,t,i,r){return new u(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?j(t.charCategorizer(t.selection.main.head)):undefined},i,r)}function N(e,t){return e.slice((0,n.findClusterBreak)(e,t,false),t)}function Q(e,t){return e.slice(t,(0,n.findClusterBreak)(e,t))}function j(e){return(t,i,r)=>!r[0].length||(e(N(r.input,r.index))!=n.CharCategory.Word||e(Q(r.input,r.index))!=n.CharCategory.Word)&&(e(Q(r.input,r.index+r[0].length))!=n.CharCategory.Word||e(N(r.input,r.index+r[0].length))!=n.CharCategory.Word)}class B extends z{nextMatch(e,t,i){let r=_(this.spec,e,i,e.doc.length).next();if(r.done)r=_(this.spec,e,0,t).next();return r.done?null:r.value}prevMatchInRange(e,t,i){for(let r=1;;r++){let n=Math.max(t,i-r*1e4);let s=_(this.spec,e,n,i),o=null;while(!s.next().done)o=s.value;if(o&&(n==t||o.from>n+10))return o;if(n==t)return null}}prevMatch(e,t,i){return this.prevMatchInRange(e,0,t)||this.prevMatchInRange(e,i,e.doc.length)}getReplacement(e){return this.spec.unquote(this.spec.replace.replace(/\$([$&\d+])/g,((t,i)=>i=="$"?"$":i=="&"?e.match[0]:i!="0"&&+i=t)return null;r.push(i.value)}return r}highlight(e,t,i,r){let n=_(this.spec,e,Math.max(0,t-250),Math.min(i+250,e.doc.length));while(!n.next().done)r(n.value.from,n.value.to)}}const K=n.StateEffect.define();const G=n.StateEffect.define();const H=n.StateField.define({create(e){return new X(ce(e).create(),null)},update(e,t){for(let i of t.effects){if(i.is(K))e=new X(i.value.create(),e.panel);else if(i.is(G))e=new X(e.query,i.value?ae:null)}return e},provide:e=>r.showPanel.from(e,(e=>e.panel))});function U(e){let t=e.field(H,false);return t?t.query.spec:ce(e)}function J(e){var t;return((t=e.field(H,false))===null||t===void 0?void 0:t.panel)!=null}class X{constructor(e,t){this.query=e;this.panel=t}}const Y=r.Decoration.mark({class:"cm-searchMatch"}),Z=r.Decoration.mark({class:"cm-searchMatch cm-searchMatch-selected"});const ee=r.ViewPlugin.fromClass(class{constructor(e){this.view=e;this.decorations=this.highlight(e.state.field(H))}update(e){let t=e.state.field(H);if(t!=e.startState.field(H)||e.docChanged||e.selectionSet||e.viewportChanged)this.decorations=this.highlight(t)}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return r.Decoration.none;let{view:i}=this;let s=new n.RangeSetBuilder;for(let r=0,n=i.visibleRanges,o=n.length;rn[r+1].from-2*250)l=n[++r].to;e.highlight(i.state,t,l,((e,t)=>{let r=i.state.selection.ranges.some((i=>i.from==e&&i.to==t));s.add(e,t,r?Z:Y)}))}return s.finish()}},{decorations:e=>e.decorations});function te(e){return t=>{let i=t.state.field(H,false);return i&&i.query.spec.valid?e(t,i):he(t)}}const ie=te(((e,{query:t})=>{let{to:i}=e.state.selection.main;let r=t.nextMatch(e.state,i,i);if(!r)return false;let s=n.EditorSelection.single(r.from,r.to);let o=e.state.facet(R);e.dispatch({selection:s,effects:[ve(e,r),o.scrollToMatch(s.main)],userEvent:"select.search"});return true}));const re=te(((e,{query:t})=>{let{state:i}=e,{from:r}=i.selection.main;let s=t.prevMatch(i,r,r);if(!s)return false;let o=n.EditorSelection.single(s.from,s.to);let l=e.state.facet(R);e.dispatch({selection:o,effects:[ve(e,s),l.scrollToMatch(o.main)],userEvent:"select.search"});return true}));const ne=te(((e,{query:t})=>{let i=t.matchAll(e.state,1e3);if(!i||!i.length)return false;e.dispatch({selection:n.EditorSelection.create(i.map((e=>n.EditorSelection.range(e.from,e.to)))),userEvent:"select.search.matches"});return true}));const se=({state:e,dispatch:t})=>{let i=e.selection;if(i.ranges.length>1||i.main.empty)return false;let{from:r,to:s}=i.main;let o=[],l=0;for(let c=new a(e.doc,e.sliceDoc(r,s));!c.next().done;){if(o.length>1e3)return false;if(c.value.from==r)l=o.length;o.push(n.EditorSelection.range(c.value.from,c.value.to))}t(e.update({selection:n.EditorSelection.create(o,l),userEvent:"select.search.matches"}));return true};const oe=te(((e,{query:t})=>{let{state:i}=e,{from:s,to:o}=i.selection.main;if(i.readOnly)return false;let l=t.nextMatch(i,s,s);if(!l)return false;let a=[],c,h;let u=[];if(l.from==s&&l.to==o){h=i.toText(t.getReplacement(l));a.push({from:l.from,to:l.to,insert:h});l=t.nextMatch(i,l.from,l.to);u.push(r.EditorView.announce.of(i.phrase("replaced match on line $",i.doc.lineAt(s).number)+"."))}if(l){let t=a.length==0||a[0].from>=l.to?0:l.to-l.from-h.length;c=n.EditorSelection.single(l.from-t,l.to-t);u.push(ve(e,l));u.push(i.facet(R).scrollToMatch(c.main))}e.dispatch({changes:a,selection:c,effects:u,userEvent:"input.replace"});return true}));const le=te(((e,{query:t})=>{if(e.state.readOnly)return false;let i=t.matchAll(e.state,1e9).map((e=>{let{from:i,to:r}=e;return{from:i,to:r,insert:t.getReplacement(e)}}));if(!i.length)return false;let n=e.state.phrase("replaced $ matches",i.length)+".";e.dispatch({changes:i,effects:r.EditorView.announce.of(n),userEvent:"input.replace.all"});return true}));function ae(e){return e.state.facet(R).createPanel(e)}function ce(e,t){var i,r,n,s;let o=e.selection.main;let l=o.empty||o.to>o.from+100?"":e.sliceDoc(o.from,o.to);if(t&&!l)return t;let a=e.facet(R);return new V({search:((i=t===null||t===void 0?void 0:t.literal)!==null&&i!==void 0?i:a.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(r=t===null||t===void 0?void 0:t.caseSensitive)!==null&&r!==void 0?r:a.caseSensitive,literal:(n=t===null||t===void 0?void 0:t.literal)!==null&&n!==void 0?n:a.literal,wholeWord:(s=t===null||t===void 0?void 0:t.wholeWord)!==null&&s!==void 0?s:a.wholeWord})}const he=e=>{let t=e.state.field(H,false);if(t&&t.panel){let i=(0,r.getPanel)(e,ae);if(!i)return false;let n=i.dom.querySelector("[main-field]");if(n&&n!=e.root.activeElement){let i=ce(e.state,t.query.spec);if(i.valid)e.dispatch({effects:K.of(i)});n.focus();n.select()}}else{e.dispatch({effects:[G.of(true),t?K.of(ce(e.state,t.query.spec)):n.StateEffect.appendConfig.of(ye)]})}return true};const ue=e=>{let t=e.state.field(H,false);if(!t||!t.panel)return false;let i=(0,r.getPanel)(e,ae);if(i&&i.dom.contains(e.root.activeElement))e.focus();e.dispatch({effects:G.of(false)});return true};const fe=[{key:"Mod-f",run:he,scope:"editor search-panel"},{key:"F3",run:ie,shift:re,scope:"editor search-panel",preventDefault:true},{key:"Mod-g",run:ie,shift:re,scope:"editor search-panel",preventDefault:true},{key:"Escape",run:ue,scope:"editor search-panel"},{key:"Mod-Shift-l",run:se},{key:"Alt-g",run:w},{key:"Mod-d",run:F,preventDefault:true}];class de{constructor(e){this.view=e;let t=this.query=e.state.field(H).query.spec;this.commit=this.commit.bind(this);this.searchField=s("input",{value:t.search,placeholder:pe(e,"Find"),"aria-label":pe(e,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit});this.replaceField=s("input",{value:t.replace,placeholder:pe(e,"Replace"),"aria-label":pe(e,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit});this.caseField=s("input",{type:"checkbox",name:"case",form:"",checked:t.caseSensitive,onchange:this.commit});this.reField=s("input",{type:"checkbox",name:"re",form:"",checked:t.regexp,onchange:this.commit});this.wordField=s("input",{type:"checkbox",name:"word",form:"",checked:t.wholeWord,onchange:this.commit});function i(e,t,i){return s("button",{class:"cm-button",name:e,onclick:t,type:"button"},i)}this.dom=s("div",{onkeydown:e=>this.keydown(e),class:"cm-search"},[this.searchField,i("next",(()=>ie(e)),[pe(e,"next")]),i("prev",(()=>re(e)),[pe(e,"previous")]),i("select",(()=>ne(e)),[pe(e,"all")]),s("label",null,[this.caseField,pe(e,"match case")]),s("label",null,[this.reField,pe(e,"regexp")]),s("label",null,[this.wordField,pe(e,"by word")]),...e.state.readOnly?[]:[s("br"),this.replaceField,i("replace",(()=>oe(e)),[pe(e,"replace")]),i("replaceAll",(()=>le(e)),[pe(e,"replace all")])],s("button",{name:"close",onclick:()=>ue(e),"aria-label":pe(e,"close"),type:"button"},["×"])])}commit(){let e=new V({search:this.searchField.value,caseSensitive:this.caseField.checked,regexp:this.reField.checked,wholeWord:this.wordField.checked,replace:this.replaceField.value});if(!e.eq(this.query)){this.query=e;this.view.dispatch({effects:K.of(e)})}}keydown(e){if((0,r.runScopeHandlers)(this.view,e,"search-panel")){e.preventDefault()}else if(e.keyCode==13&&e.target==this.searchField){e.preventDefault();(e.shiftKey?re:ie)(this.view)}else if(e.keyCode==13&&e.target==this.replaceField){e.preventDefault();oe(this.view)}}update(e){for(let t of e.transactions)for(let e of t.effects){if(e.is(K)&&!e.value.eq(this.query))this.setQuery(e.value)}}setQuery(e){this.query=e;this.searchField.value=e.search;this.replaceField.value=e.replace;this.caseField.checked=e.caseSensitive;this.reField.checked=e.regexp;this.wordField.checked=e.wholeWord}mount(){this.searchField.select()}get pos(){return 80}get top(){return this.view.state.facet(R).top}}function pe(e,t){return e.state.phrase(t)}const me=30;const ge=/[\s\.,:;?!]/;function ve(e,{from:t,to:i}){let n=e.state.doc.lineAt(t),s=e.state.doc.lineAt(i).to;let o=Math.max(n.from,t-me),l=Math.min(s,i+me);let a=e.state.sliceDoc(o,l);if(o!=n.from){for(let e=0;ea.length-me;e--)if(!ge.test(a[e-1])&&ge.test(a[e])){a=a.slice(0,e);break}}return r.EditorView.announce.of(`${e.state.phrase("current match")}. ${a} ${e.state.phrase("on line")} ${n.number}.`)}const xe=r.EditorView.baseTheme({".cm-panel.cm-search":{padding:"2px 6px 4px",position:"relative","& [name=close]":{position:"absolute",top:"0",right:"4px",backgroundColor:"inherit",border:"none",font:"inherit",padding:0,margin:0},"& input, & button, & label":{margin:".2em .6em .2em 0"},"& input[type=checkbox]":{marginRight:".2em"},"& label":{fontSize:"80%",whiteSpace:"pre"}},"&light .cm-searchMatch":{backgroundColor:"#ffff0054"},"&dark .cm-searchMatch":{backgroundColor:"#00ffff8a"},"&light .cm-searchMatch-selected":{backgroundColor:"#ff6a0054"},"&dark .cm-searchMatch-selected":{backgroundColor:"#ff00ff8a"}});const ye=[H,n.Prec.lowest(ee),xe]}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/2821.f497393de02ea7e02285.js b/bootcamp/share/jupyter/lab/static/2821.f497393de02ea7e02285.js new file mode 100644 index 0000000..5204b3f --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/2821.f497393de02ea7e02285.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2821],{98686:(t,e,r)=>{var n=1/0;var o="[object Symbol]";var u=/[&<>"'`]/g,a=RegExp(u.source);var c={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"};var p=typeof r.g=="object"&&r.g&&r.g.Object===Object&&r.g;var f=typeof self=="object"&&self&&self.Object===Object&&self;var l=p||f||Function("return this")();function i(t){return function(e){return t==null?undefined:t[e]}}var b=i(c);var s=Object.prototype;var v=s.toString;var y=l.Symbol;var j=y?y.prototype:undefined,g=j?j.toString:undefined;function d(t){if(typeof t=="string"){return t}if(O(t)){return g?g.call(t):""}var e=t+"";return e=="0"&&1/t==-n?"-0":e}function _(t){return!!t&&typeof t=="object"}function O(t){return typeof t=="symbol"||_(t)&&v.call(t)==o}function h(t){return t==null?"":d(t)}function k(t){t=h(t);return t&&a.test(t)?t.replace(u,b):t}t.exports=k}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/2857.27a6e85f5c4c092ab8a2.js b/bootcamp/share/jupyter/lab/static/2857.27a6e85f5c4c092ab8a2.js new file mode 100644 index 0000000..38aca0b --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/2857.27a6e85f5c4c092ab8a2.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2857],{2857:(e,t,r)=>{r.r(t);r.d(t,{idl:()=>p});function i(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var a=["a_correlate","abs","acos","adapt_hist_equal","alog","alog2","alog10","amoeba","annotate","app_user_dir","app_user_dir_query","arg_present","array_equal","array_indices","arrow","ascii_template","asin","assoc","atan","axis","axis","bandpass_filter","bandreject_filter","barplot","bar_plot","beseli","beselj","beselk","besely","beta","biginteger","bilinear","bin_date","binary_template","bindgen","binomial","bit_ffs","bit_population","blas_axpy","blk_con","boolarr","boolean","boxplot","box_cursor","breakpoint","broyden","bubbleplot","butterworth","bytarr","byte","byteorder","bytscl","c_correlate","calendar","caldat","call_external","call_function","call_method","call_procedure","canny","catch","cd","cdf","ceil","chebyshev","check_math","chisqr_cvf","chisqr_pdf","choldc","cholsol","cindgen","cir_3pnt","clipboard","close","clust_wts","cluster","cluster_tree","cmyk_convert","code_coverage","color_convert","color_exchange","color_quan","color_range_map","colorbar","colorize_sample","colormap_applicable","colormap_gradient","colormap_rotation","colortable","comfit","command_line_args","common","compile_opt","complex","complexarr","complexround","compute_mesh_normals","cond","congrid","conj","constrained_min","contour","contour","convert_coord","convol","convol_fft","coord2to3","copy_lun","correlate","cos","cosh","cpu","cramer","createboxplotdata","create_cursor","create_struct","create_view","crossp","crvlength","ct_luminance","cti_test","cursor","curvefit","cv_coord","cvttobm","cw_animate","cw_animate_getp","cw_animate_load","cw_animate_run","cw_arcball","cw_bgroup","cw_clr_index","cw_colorsel","cw_defroi","cw_field","cw_filesel","cw_form","cw_fslider","cw_light_editor","cw_light_editor_get","cw_light_editor_set","cw_orient","cw_palette_editor","cw_palette_editor_get","cw_palette_editor_set","cw_pdmenu","cw_rgbslider","cw_tmpl","cw_zoom","db_exists","dblarr","dcindgen","dcomplex","dcomplexarr","define_key","define_msgblk","define_msgblk_from_file","defroi","defsysv","delvar","dendro_plot","dendrogram","deriv","derivsig","determ","device","dfpmin","diag_matrix","dialog_dbconnect","dialog_message","dialog_pickfile","dialog_printersetup","dialog_printjob","dialog_read_image","dialog_write_image","dictionary","digital_filter","dilate","dindgen","dissolve","dist","distance_measure","dlm_load","dlm_register","doc_library","double","draw_roi","edge_dog","efont","eigenql","eigenvec","ellipse","elmhes","emboss","empty","enable_sysrtn","eof","eos","erase","erf","erfc","erfcx","erode","errorplot","errplot","estimator_filter","execute","exit","exp","expand","expand_path","expint","extract","extract_slice","f_cvf","f_pdf","factorial","fft","file_basename","file_chmod","file_copy","file_delete","file_dirname","file_expand_path","file_gunzip","file_gzip","file_info","file_lines","file_link","file_mkdir","file_move","file_poll_input","file_readlink","file_same","file_search","file_tar","file_test","file_untar","file_unzip","file_which","file_zip","filepath","findgen","finite","fix","flick","float","floor","flow3","fltarr","flush","format_axis_values","forward_function","free_lun","fstat","fulstr","funct","function","fv_test","fx_root","fz_roots","gamma","gamma_ct","gauss_cvf","gauss_pdf","gauss_smooth","gauss2dfit","gaussfit","gaussian_function","gaussint","get_drive_list","get_dxf_objects","get_kbrd","get_login_info","get_lun","get_screen_size","getenv","getwindows","greg2jul","grib","grid_input","grid_tps","grid3","griddata","gs_iter","h_eq_ct","h_eq_int","hanning","hash","hdf","hdf5","heap_free","heap_gc","heap_nosave","heap_refcount","heap_save","help","hilbert","hist_2d","hist_equal","histogram","hls","hough","hqr","hsv","i18n_multibytetoutf8","i18n_multibytetowidechar","i18n_utf8tomultibyte","i18n_widechartomultibyte","ibeta","icontour","iconvertcoord","idelete","identity","idl_base64","idl_container","idl_validname","idlexbr_assistant","idlitsys_createtool","idlunit","iellipse","igamma","igetcurrent","igetdata","igetid","igetproperty","iimage","image","image_cont","image_statistics","image_threshold","imaginary","imap","indgen","int_2d","int_3d","int_tabulated","intarr","interpol","interpolate","interval_volume","invert","ioctl","iopen","ir_filter","iplot","ipolygon","ipolyline","iputdata","iregister","ireset","iresolve","irotate","isa","isave","iscale","isetcurrent","isetproperty","ishft","isocontour","isosurface","isurface","itext","itranslate","ivector","ivolume","izoom","journal","json_parse","json_serialize","jul2greg","julday","keyword_set","krig2d","kurtosis","kw_test","l64indgen","la_choldc","la_cholmprove","la_cholsol","la_determ","la_eigenproblem","la_eigenql","la_eigenvec","la_elmhes","la_gm_linear_model","la_hqr","la_invert","la_least_square_equality","la_least_squares","la_linear_equation","la_ludc","la_lumprove","la_lusol","la_svd","la_tridc","la_trimprove","la_triql","la_trired","la_trisol","label_date","label_region","ladfit","laguerre","lambda","lambdap","lambertw","laplacian","least_squares_filter","leefilt","legend","legendre","linbcg","lindgen","linfit","linkimage","list","ll_arc_distance","lmfit","lmgr","lngamma","lnp_test","loadct","locale_get","logical_and","logical_or","logical_true","lon64arr","lonarr","long","long64","lsode","lu_complex","ludc","lumprove","lusol","m_correlate","machar","make_array","make_dll","make_rt","map","mapcontinents","mapgrid","map_2points","map_continents","map_grid","map_image","map_patch","map_proj_forward","map_proj_image","map_proj_info","map_proj_init","map_proj_inverse","map_set","matrix_multiply","matrix_power","max","md_test","mean","meanabsdev","mean_filter","median","memory","mesh_clip","mesh_decimate","mesh_issolid","mesh_merge","mesh_numtriangles","mesh_obj","mesh_smooth","mesh_surfacearea","mesh_validate","mesh_volume","message","min","min_curve_surf","mk_html_help","modifyct","moment","morph_close","morph_distance","morph_gradient","morph_hitormiss","morph_open","morph_thin","morph_tophat","multi","n_elements","n_params","n_tags","ncdf","newton","noise_hurl","noise_pick","noise_scatter","noise_slur","norm","obj_class","obj_destroy","obj_hasmethod","obj_isa","obj_new","obj_valid","objarr","on_error","on_ioerror","online_help","openr","openu","openw","oplot","oploterr","orderedhash","p_correlate","parse_url","particle_trace","path_cache","path_sep","pcomp","plot","plot3d","plot","plot_3dbox","plot_field","ploterr","plots","polar_contour","polar_surface","polyfill","polyshade","pnt_line","point_lun","polarplot","poly","poly_2d","poly_area","poly_fit","polyfillv","polygon","polyline","polywarp","popd","powell","pref_commit","pref_get","pref_set","prewitt","primes","print","printf","printd","pro","product","profile","profiler","profiles","project_vol","ps_show_fonts","psafm","pseudo","ptr_free","ptr_new","ptr_valid","ptrarr","pushd","qgrid3","qhull","qromb","qromo","qsimp","query_*","query_ascii","query_bmp","query_csv","query_dicom","query_gif","query_image","query_jpeg","query_jpeg2000","query_mrsid","query_pict","query_png","query_ppm","query_srf","query_tiff","query_video","query_wav","r_correlate","r_test","radon","randomn","randomu","ranks","rdpix","read","readf","read_ascii","read_binary","read_bmp","read_csv","read_dicom","read_gif","read_image","read_interfile","read_jpeg","read_jpeg2000","read_mrsid","read_pict","read_png","read_ppm","read_spr","read_srf","read_sylk","read_tiff","read_video","read_wav","read_wave","read_x11_bitmap","read_xwd","reads","readu","real_part","rebin","recall_commands","recon3","reduce_colors","reform","region_grow","register_cursor","regress","replicate","replicate_inplace","resolve_all","resolve_routine","restore","retall","return","reverse","rk4","roberts","rot","rotate","round","routine_filepath","routine_info","rs_test","s_test","save","savgol","scale3","scale3d","scatterplot","scatterplot3d","scope_level","scope_traceback","scope_varfetch","scope_varname","search2d","search3d","sem_create","sem_delete","sem_lock","sem_release","set_plot","set_shading","setenv","sfit","shade_surf","shade_surf_irr","shade_volume","shift","shift_diff","shmdebug","shmmap","shmunmap","shmvar","show3","showfont","signum","simplex","sin","sindgen","sinh","size","skewness","skip_lun","slicer3","slide_image","smooth","sobel","socket","sort","spawn","sph_4pnt","sph_scat","spher_harm","spl_init","spl_interp","spline","spline_p","sprsab","sprsax","sprsin","sprstp","sqrt","standardize","stddev","stop","strarr","strcmp","strcompress","streamline","streamline","stregex","stretch","string","strjoin","strlen","strlowcase","strmatch","strmessage","strmid","strpos","strput","strsplit","strtrim","struct_assign","struct_hide","strupcase","surface","surface","surfr","svdc","svdfit","svsol","swap_endian","swap_endian_inplace","symbol","systime","t_cvf","t_pdf","t3d","tag_names","tan","tanh","tek_color","temporary","terminal_size","tetra_clip","tetra_surface","tetra_volume","text","thin","thread","threed","tic","time_test2","timegen","timer","timestamp","timestamptovalues","tm_test","toc","total","trace","transpose","tri_surf","triangulate","trigrid","triql","trired","trisol","truncate_lun","ts_coef","ts_diff","ts_fcast","ts_smooth","tv","tvcrs","tvlct","tvrd","tvscl","typename","uindgen","uint","uintarr","ul64indgen","ulindgen","ulon64arr","ulonarr","ulong","ulong64","uniq","unsharp_mask","usersym","value_locate","variance","vector","vector_field","vel","velovect","vert_t3d","voigt","volume","voronoi","voxel_proj","wait","warp_tri","watershed","wdelete","wf_draw","where","widget_base","widget_button","widget_combobox","widget_control","widget_displaycontextmenu","widget_draw","widget_droplist","widget_event","widget_info","widget_label","widget_list","widget_propertysheet","widget_slider","widget_tab","widget_table","widget_text","widget_tree","widget_tree_move","widget_window","wiener_filter","window","window","write_bmp","write_csv","write_gif","write_image","write_jpeg","write_jpeg2000","write_nrif","write_pict","write_png","write_ppm","write_spr","write_srf","write_sylk","write_tiff","write_video","write_wav","write_wave","writeu","wset","wshow","wtn","wv_applet","wv_cwt","wv_cw_wavelet","wv_denoise","wv_dwt","wv_fn_coiflet","wv_fn_daubechies","wv_fn_gaussian","wv_fn_haar","wv_fn_morlet","wv_fn_paul","wv_fn_symlet","wv_import_data","wv_import_wavelet","wv_plot3d_wps","wv_plot_multires","wv_pwt","wv_tool_denoise","xbm_edit","xdisplayfile","xdxf","xfont","xinteranimate","xloadct","xmanager","xmng_tmpl","xmtool","xobjview","xobjview_rotate","xobjview_write_image","xpalette","xpcolor","xplot3d","xregistered","xroi","xsq_test","xsurface","xvaredit","xvolume","xvolume_rotate","xvolume_write_image","xyouts","zlib_compress","zlib_uncompress","zoom","zoom_24"];var _=i(a);var o=["begin","end","endcase","endfor","endwhile","endif","endrep","endforeach","break","case","continue","for","foreach","goto","if","then","else","repeat","until","switch","while","do","pro","function"];var l=i(o);var s=new RegExp("^[_a-z¡-￿][_a-z0-9¡-￿]*","i");var n=/[+\-*&=<>\/@#~$]/;var c=new RegExp("(and|or|eq|lt|le|gt|ge|ne|not)","i");function d(e){if(e.eatSpace())return null;if(e.match(";")){e.skipToEnd();return"comment"}if(e.match(/^[0-9\.+-]/,false)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return"number"}if(e.match(/^"([^"]|(""))*"/)){return"string"}if(e.match(/^'([^']|(''))*'/)){return"string"}if(e.match(l)){return"keyword"}if(e.match(_)){return"builtin"}if(e.match(s)){return"variable"}if(e.match(n)||e.match(c)){return"operator"}e.next();return null}const p={name:"idl",token:function(e){return d(e)},languageData:{autocomplete:a.concat(o)}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/2909.e190307f7f84c7691068.js b/bootcamp/share/jupyter/lab/static/2909.e190307f7f84c7691068.js new file mode 100644 index 0000000..ef5c60c --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/2909.e190307f7f84c7691068.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2909],{2909:(e,r,o)=>{o.r(r);o.d(r,{fSharp:()=>n,oCaml:()=>i,sml:()=>d});function t(e){var r={as:"keyword",do:"keyword",else:"keyword",end:"keyword",exception:"keyword",fun:"keyword",functor:"keyword",if:"keyword",in:"keyword",include:"keyword",let:"keyword",of:"keyword",open:"keyword",rec:"keyword",struct:"keyword",then:"keyword",type:"keyword",val:"keyword",while:"keyword",with:"keyword"};var o=e.extraWords||{};for(var t in o){if(o.hasOwnProperty(t)){r[t]=e.extraWords[t]}}var i=[];for(var n in r){i.push(n)}function d(o,t){var i=o.next();if(i==='"'){t.tokenize=w;return t.tokenize(o,t)}if(i==="{"){if(o.eat("|")){t.longString=true;t.tokenize=l;return t.tokenize(o,t)}}if(i==="("){if(o.match(/^\*(?!\))/)){t.commentLevel++;t.tokenize=k;return t.tokenize(o,t)}}if(i==="~"||i==="?"){o.eatWhile(/\w/);return"variableName.special"}if(i==="`"){o.eatWhile(/\w/);return"quote"}if(i==="/"&&e.slashComments&&o.eat("/")){o.skipToEnd();return"comment"}if(/\d/.test(i)){if(i==="0"&&o.eat(/[bB]/)){o.eatWhile(/[01]/)}if(i==="0"&&o.eat(/[xX]/)){o.eatWhile(/[0-9a-fA-F]/)}if(i==="0"&&o.eat(/[oO]/)){o.eatWhile(/[0-7]/)}else{o.eatWhile(/[\d_]/);if(o.eat(".")){o.eatWhile(/[\d]/)}if(o.eat(/[eE]/)){o.eatWhile(/[\d\-+]/)}}return"number"}if(/[+\-*&%=<>!?|@\.~:]/.test(i)){return"operator"}if(/[\w\xa1-\uffff]/.test(i)){o.eatWhile(/[\w\xa1-\uffff]/);var n=o.current();return r.hasOwnProperty(n)?r[n]:"variable"}return null}function w(e,r){var o,t=false,i=false;while((o=e.next())!=null){if(o==='"'&&!i){t=true;break}i=!i&&o==="\\"}if(t&&!i){r.tokenize=d}return"string"}function k(e,r){var o,t;while(r.commentLevel>0&&(t=e.next())!=null){if(o==="("&&t==="*")r.commentLevel++;if(o==="*"&&t===")")r.commentLevel--;o=t}if(r.commentLevel<=0){r.tokenize=d}return"comment"}function l(e,r){var o,t;while(r.longString&&(t=e.next())!=null){if(o==="|"&&t==="}")r.longString=false;o=t}if(!r.longString){r.tokenize=d}return"string"}return{startState:function(){return{tokenize:d,commentLevel:0,longString:false}},token:function(e,r){if(e.eatSpace())return null;return r.tokenize(e,r)},languageData:{autocomplete:i,commentTokens:{line:e.slashComments?"//":undefined,block:{open:"(*",close:"*)"}}}}}const i=t({name:"ocaml",extraWords:{and:"keyword",assert:"keyword",begin:"keyword",class:"keyword",constraint:"keyword",done:"keyword",downto:"keyword",external:"keyword",function:"keyword",initializer:"keyword",lazy:"keyword",match:"keyword",method:"keyword",module:"keyword",mutable:"keyword",new:"keyword",nonrec:"keyword",object:"keyword",private:"keyword",sig:"keyword",to:"keyword",try:"keyword",value:"keyword",virtual:"keyword",when:"keyword",raise:"builtin",failwith:"builtin",true:"builtin",false:"builtin",asr:"builtin",land:"builtin",lor:"builtin",lsl:"builtin",lsr:"builtin",lxor:"builtin",mod:"builtin",or:"builtin",raise_notrace:"builtin",trace:"builtin",exit:"builtin",print_string:"builtin",print_endline:"builtin",int:"type",float:"type",bool:"type",char:"type",string:"type",unit:"type",List:"builtin"}});const n=t({name:"fsharp",extraWords:{abstract:"keyword",assert:"keyword",base:"keyword",begin:"keyword",class:"keyword",default:"keyword",delegate:"keyword","do!":"keyword",done:"keyword",downcast:"keyword",downto:"keyword",elif:"keyword",extern:"keyword",finally:"keyword",for:"keyword",function:"keyword",global:"keyword",inherit:"keyword",inline:"keyword",interface:"keyword",internal:"keyword",lazy:"keyword","let!":"keyword",match:"keyword",member:"keyword",module:"keyword",mutable:"keyword",namespace:"keyword",new:"keyword",null:"keyword",override:"keyword",private:"keyword",public:"keyword","return!":"keyword",return:"keyword",select:"keyword",static:"keyword",to:"keyword",try:"keyword",upcast:"keyword","use!":"keyword",use:"keyword",void:"keyword",when:"keyword","yield!":"keyword",yield:"keyword",atomic:"keyword",break:"keyword",checked:"keyword",component:"keyword",const:"keyword",constraint:"keyword",constructor:"keyword",continue:"keyword",eager:"keyword",event:"keyword",external:"keyword",fixed:"keyword",method:"keyword",mixin:"keyword",object:"keyword",parallel:"keyword",process:"keyword",protected:"keyword",pure:"keyword",sealed:"keyword",tailcall:"keyword",trait:"keyword",virtual:"keyword",volatile:"keyword",List:"builtin",Seq:"builtin",Map:"builtin",Set:"builtin",Option:"builtin",int:"builtin",string:"builtin",not:"builtin",true:"builtin",false:"builtin",raise:"builtin",failwith:"builtin"},slashComments:true});const d=t({name:"sml",extraWords:{abstype:"keyword",and:"keyword",andalso:"keyword",case:"keyword",datatype:"keyword",fn:"keyword",handle:"keyword",infix:"keyword",infixr:"keyword",local:"keyword",nonfix:"keyword",op:"keyword",orelse:"keyword",raise:"keyword",withtype:"keyword",eqtype:"keyword",sharing:"keyword",sig:"keyword",signature:"keyword",structure:"keyword",where:"keyword",true:"keyword",false:"keyword",int:"builtin",real:"builtin",string:"builtin",char:"builtin",bool:"builtin"},slashComments:true})}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/292.3f7844a129f16ec1ffbc.js b/bootcamp/share/jupyter/lab/static/292.3f7844a129f16ec1ffbc.js new file mode 100644 index 0000000..8e778a6 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/292.3f7844a129f16ec1ffbc.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[292],{90292:e=>{!function(t,i){true?e.exports=i():0}(self,(function(){return(()=>{"use strict";var e={965:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GlyphRenderer=void 0;const s=i(381),r=i(855),o=i(859),n=i(374),a=i(509),h=11,l=h*Float32Array.BYTES_PER_ELEMENT;let c,d=0,_=0,u=0;class g extends o.Disposable{constructor(e,t,i){super(),this._terminal=e,this._gl=t,this._dimensions=i,this._activeBuffer=0,this._vertices={count:0,attributes:new Float32Array(0),attributesBuffers:[new Float32Array(0),new Float32Array(0)]};const r=this._gl;void 0===a.TextureAtlas.maxAtlasPages&&(a.TextureAtlas.maxAtlasPages=Math.min(32,(0,n.throwIfFalsy)(r.getParameter(r.MAX_TEXTURE_IMAGE_UNITS))),a.TextureAtlas.maxTextureSize=(0,n.throwIfFalsy)(r.getParameter(r.MAX_TEXTURE_SIZE))),this._program=(0,n.throwIfFalsy)((0,s.createProgram)(r,"#version 300 es\nlayout (location = 0) in vec2 a_unitquad;\nlayout (location = 1) in vec2 a_cellpos;\nlayout (location = 2) in vec2 a_offset;\nlayout (location = 3) in vec2 a_size;\nlayout (location = 4) in float a_texpage;\nlayout (location = 5) in vec2 a_texcoord;\nlayout (location = 6) in vec2 a_texsize;\n\nuniform mat4 u_projection;\nuniform vec2 u_resolution;\n\nout vec2 v_texcoord;\nflat out int v_texpage;\n\nvoid main() {\n vec2 zeroToOne = (a_offset / u_resolution) + a_cellpos + (a_unitquad * a_size);\n gl_Position = u_projection * vec4(zeroToOne, 0.0, 1.0);\n v_texpage = int(a_texpage);\n v_texcoord = a_texcoord + a_unitquad * a_texsize;\n}",function(e){let t="";for(let i=1;ir.deleteProgram(this._program)))),this._projectionLocation=(0,n.throwIfFalsy)(r.getUniformLocation(this._program,"u_projection")),this._resolutionLocation=(0,n.throwIfFalsy)(r.getUniformLocation(this._program,"u_resolution")),this._textureLocation=(0,n.throwIfFalsy)(r.getUniformLocation(this._program,"u_texture")),this._vertexArrayObject=r.createVertexArray(),r.bindVertexArray(this._vertexArrayObject);const h=new Float32Array([0,0,1,0,0,1,1,1]),c=r.createBuffer();this.register((0,o.toDisposable)((()=>r.deleteBuffer(c)))),r.bindBuffer(r.ARRAY_BUFFER,c),r.bufferData(r.ARRAY_BUFFER,h,r.STATIC_DRAW),r.enableVertexAttribArray(0),r.vertexAttribPointer(0,2,this._gl.FLOAT,!1,0,0);const d=new Uint8Array([0,1,2,3]),_=r.createBuffer();this.register((0,o.toDisposable)((()=>r.deleteBuffer(_)))),r.bindBuffer(r.ELEMENT_ARRAY_BUFFER,_),r.bufferData(r.ELEMENT_ARRAY_BUFFER,d,r.STATIC_DRAW),this._attributesBuffer=(0,n.throwIfFalsy)(r.createBuffer()),this.register((0,o.toDisposable)((()=>r.deleteBuffer(this._attributesBuffer)))),r.bindBuffer(r.ARRAY_BUFFER,this._attributesBuffer),r.enableVertexAttribArray(2),r.vertexAttribPointer(2,2,r.FLOAT,!1,l,0),r.vertexAttribDivisor(2,1),r.enableVertexAttribArray(3),r.vertexAttribPointer(3,2,r.FLOAT,!1,l,2*Float32Array.BYTES_PER_ELEMENT),r.vertexAttribDivisor(3,1),r.enableVertexAttribArray(4),r.vertexAttribPointer(4,1,r.FLOAT,!1,l,4*Float32Array.BYTES_PER_ELEMENT),r.vertexAttribDivisor(4,1),r.enableVertexAttribArray(5),r.vertexAttribPointer(5,2,r.FLOAT,!1,l,5*Float32Array.BYTES_PER_ELEMENT),r.vertexAttribDivisor(5,1),r.enableVertexAttribArray(6),r.vertexAttribPointer(6,2,r.FLOAT,!1,l,7*Float32Array.BYTES_PER_ELEMENT),r.vertexAttribDivisor(6,1),r.enableVertexAttribArray(1),r.vertexAttribPointer(1,2,r.FLOAT,!1,l,9*Float32Array.BYTES_PER_ELEMENT),r.vertexAttribDivisor(1,1),r.useProgram(this._program);const u=new Int32Array(a.TextureAtlas.maxAtlasPages);for(let s=0;sr.deleteTexture(e.texture)))),r.activeTexture(r.TEXTURE0+l),r.bindTexture(r.TEXTURE_2D,e.texture),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_S,r.CLAMP_TO_EDGE),r.texParameteri(r.TEXTURE_2D,r.TEXTURE_WRAP_T,r.CLAMP_TO_EDGE),r.texImage2D(r.TEXTURE_2D,0,r.RGBA,1,1,0,r.RGBA,r.UNSIGNED_BYTE,new Uint8Array([255,0,0,255])),this._atlasTextures[l]=e}r.enable(r.BLEND),r.blendFunc(r.SRC_ALPHA,r.ONE_MINUS_SRC_ALPHA),this.handleResize()}beginFrame(){return!this._atlas||this._atlas.beginFrame()}updateCell(e,t,i,s,r,o,n,a){this._updateCell(this._vertices.attributes,e,t,i,s,r,o,n,a)}_updateCell(e,t,i,s,o,n,a,l,g){d=(i*this._terminal.cols+t)*h,s!==r.NULL_CELL_CODE&&void 0!==s?this._atlas&&(c=l&&l.length>1?this._atlas.getRasterizedGlyphCombinedChar(l,o,n,a):this._atlas.getRasterizedGlyph(s,o,n,a),_=Math.floor((this._dimensions.device.cell.width-this._dimensions.device.char.width)/2),o!==g&&c.offset.x>_?(u=c.offset.x-_,e[d]=-(c.offset.x-u)+this._dimensions.device.char.left,e[d+1]=-c.offset.y+this._dimensions.device.char.top,e[d+2]=(c.size.x-u)/this._dimensions.device.canvas.width,e[d+3]=c.size.y/this._dimensions.device.canvas.height,e[d+4]=c.texturePage,e[d+5]=c.texturePositionClipSpace.x+u/this._atlas.pages[c.texturePage].canvas.width,e[d+6]=c.texturePositionClipSpace.y,e[d+7]=c.sizeClipSpace.x-u/this._atlas.pages[c.texturePage].canvas.width,e[d+8]=c.sizeClipSpace.y):(e[d]=-c.offset.x+this._dimensions.device.char.left,e[d+1]=-c.offset.y+this._dimensions.device.char.top,e[d+2]=c.size.x/this._dimensions.device.canvas.width,e[d+3]=c.size.y/this._dimensions.device.canvas.height,e[d+4]=c.texturePage,e[d+5]=c.texturePositionClipSpace.x,e[d+6]=c.texturePositionClipSpace.y,e[d+7]=c.sizeClipSpace.x,e[d+8]=c.sizeClipSpace.y)):e.fill(0,d,d+h-1-2)}clear(){const e=this._terminal,t=e.cols*e.rows*h;this._vertices.count!==t?this._vertices.attributes=new Float32Array(t):this._vertices.attributes.fill(0);let i=0;for(;i{Object.defineProperty(t,"__esModule",{value:!0}),t.RectangleRenderer=void 0;const s=i(381),r=i(310),o=i(859),n=i(237),a=i(374),h=8*Float32Array.BYTES_PER_ELEMENT;let l=0,c=!1,d=0,_=0,u=0,g=0,v=0,f=0;class C extends o.Disposable{constructor(e,t,i,r){super(),this._terminal=e,this._gl=t,this._dimensions=i,this._themeService=r,this._vertices={count:0,attributes:new Float32Array(160)};const n=this._gl;this._program=(0,a.throwIfFalsy)((0,s.createProgram)(n,"#version 300 es\nlayout (location = 0) in vec2 a_position;\nlayout (location = 1) in vec2 a_size;\nlayout (location = 2) in vec4 a_color;\nlayout (location = 3) in vec2 a_unitquad;\n\nuniform mat4 u_projection;\n\nout vec4 v_color;\n\nvoid main() {\n vec2 zeroToOne = a_position + (a_unitquad * a_size);\n gl_Position = u_projection * vec4(zeroToOne, 0.0, 1.0);\n v_color = a_color;\n}","#version 300 es\nprecision lowp float;\n\nin vec4 v_color;\n\nout vec4 outColor;\n\nvoid main() {\n outColor = v_color;\n}")),this.register((0,o.toDisposable)((()=>n.deleteProgram(this._program)))),this._projectionLocation=(0,a.throwIfFalsy)(n.getUniformLocation(this._program,"u_projection")),this._vertexArrayObject=n.createVertexArray(),n.bindVertexArray(this._vertexArrayObject);const l=new Float32Array([0,0,1,0,0,1,1,1]),c=n.createBuffer();this.register((0,o.toDisposable)((()=>n.deleteBuffer(c)))),n.bindBuffer(n.ARRAY_BUFFER,c),n.bufferData(n.ARRAY_BUFFER,l,n.STATIC_DRAW),n.enableVertexAttribArray(3),n.vertexAttribPointer(3,2,this._gl.FLOAT,!1,0,0);const d=new Uint8Array([0,1,2,3]),_=n.createBuffer();this.register((0,o.toDisposable)((()=>n.deleteBuffer(_)))),n.bindBuffer(n.ELEMENT_ARRAY_BUFFER,_),n.bufferData(n.ELEMENT_ARRAY_BUFFER,d,n.STATIC_DRAW),this._attributesBuffer=(0,a.throwIfFalsy)(n.createBuffer()),this.register((0,o.toDisposable)((()=>n.deleteBuffer(this._attributesBuffer)))),n.bindBuffer(n.ARRAY_BUFFER,this._attributesBuffer),n.enableVertexAttribArray(0),n.vertexAttribPointer(0,2,n.FLOAT,!1,h,0),n.vertexAttribDivisor(0,1),n.enableVertexAttribArray(1),n.vertexAttribPointer(1,2,n.FLOAT,!1,h,2*Float32Array.BYTES_PER_ELEMENT),n.vertexAttribDivisor(1,1),n.enableVertexAttribArray(2),n.vertexAttribPointer(2,4,n.FLOAT,!1,h,4*Float32Array.BYTES_PER_ELEMENT),n.vertexAttribDivisor(2,1),this._updateCachedColors(r.colors),this.register(this._themeService.onChangeColors((e=>{this._updateCachedColors(e),this._updateViewportRectangle()})))}render(){const e=this._gl;e.useProgram(this._program),e.bindVertexArray(this._vertexArrayObject),e.uniformMatrix4fv(this._projectionLocation,!1,s.PROJECTION_MATRIX),e.bindBuffer(e.ARRAY_BUFFER,this._attributesBuffer),e.bufferData(e.ARRAY_BUFFER,this._vertices.attributes,e.DYNAMIC_DRAW),e.drawElementsInstanced(this._gl.TRIANGLE_STRIP,4,e.UNSIGNED_BYTE,0,this._vertices.count)}handleResize(){this._updateViewportRectangle()}setDimensions(e){this._dimensions=e}_updateCachedColors(e){this._bgFloat=this._colorToFloat32Array(e.background)}_updateViewportRectangle(){this._addRectangleFloat(this._vertices.attributes,0,0,0,this._terminal.cols*this._dimensions.device.cell.width,this._terminal.rows*this._dimensions.device.cell.height,this._bgFloat)}updateBackgrounds(e){const t=this._terminal,i=this._vertices;let s,o,n,a,h,l,c,d,_,u,g,v=1;for(s=0;s>24&255)/255,g=(l>>16&255)/255,v=(l>>8&255)/255,f=!c&&134217728&r?n.DIM_OPACITY:1,this._addRectangle(e.attributes,t,d,_,(a-o)*this._dimensions.device.cell.width,this._dimensions.device.cell.height,u,g,v,f)}_addRectangle(e,t,i,s,r,o,n,a,h,l){e[t]=i/this._dimensions.device.canvas.width,e[t+1]=s/this._dimensions.device.canvas.height,e[t+2]=r/this._dimensions.device.canvas.width,e[t+3]=o/this._dimensions.device.canvas.height,e[t+4]=n,e[t+5]=a,e[t+6]=h,e[t+7]=l}_addRectangleFloat(e,t,i,s,r,o,n){e[t]=i/this._dimensions.device.canvas.width,e[t+1]=s/this._dimensions.device.canvas.height,e[t+2]=r/this._dimensions.device.canvas.width,e[t+3]=o/this._dimensions.device.canvas.height,e[t+4]=n[0],e[t+5]=n[1],e[t+6]=n[2],e[t+7]=n[3]}_colorToFloat32Array(e){return new Float32Array([(e.rgba>>24&255)/255,(e.rgba>>16&255)/255,(e.rgba>>8&255)/255,(255&e.rgba)/255])}}t.RectangleRenderer=C},310:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.RenderModel=t.COMBINED_CHAR_BIT_MASK=t.RENDER_MODEL_EXT_OFFSET=t.RENDER_MODEL_FG_OFFSET=t.RENDER_MODEL_BG_OFFSET=t.RENDER_MODEL_INDICIES_PER_CELL=void 0;const s=i(296);t.RENDER_MODEL_INDICIES_PER_CELL=4,t.RENDER_MODEL_BG_OFFSET=1,t.RENDER_MODEL_FG_OFFSET=2,t.RENDER_MODEL_EXT_OFFSET=3,t.COMBINED_CHAR_BIT_MASK=2147483648,t.RenderModel=class{constructor(){this.cells=new Uint32Array(0),this.lineLengths=new Uint32Array(0),this.selection=(0,s.createSelectionRenderModel)()}resize(e,i){const s=e*i*t.RENDER_MODEL_INDICIES_PER_CELL;s!==this.cells.length&&(this.cells=new Uint32Array(s),this.lineLengths=new Uint32Array(i))}clear(){this.cells.fill(0,0),this.lineLengths.fill(0,0)}}},666:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.JoinedCellData=t.WebglRenderer=void 0;const s=i(820),r=i(274),o=i(627),n=i(56),a=i(374),h=i(147),l=i(782),c=i(855),d=i(345),_=i(859),u=i(965),g=i(742),v=i(461),f=i(733),C=i(310);class p extends _.Disposable{constructor(e,t,i,h,c,u,g,p,m){super(),this._terminal=e,this._characterJoinerService=t,this._charSizeService=i,this._coreBrowserService=h,this._decorationService=u,this._optionsService=g,this._themeService=p,this._model=new C.RenderModel,this._workCell=new l.CellData,this._onChangeTextureAtlas=this.register(new d.EventEmitter),this.onChangeTextureAtlas=this._onChangeTextureAtlas.event,this._onAddTextureAtlasCanvas=this.register(new d.EventEmitter),this.onAddTextureAtlasCanvas=this._onAddTextureAtlasCanvas.event,this._onRemoveTextureAtlasCanvas=this.register(new d.EventEmitter),this.onRemoveTextureAtlasCanvas=this._onRemoveTextureAtlasCanvas.event,this._onRequestRedraw=this.register(new d.EventEmitter),this.onRequestRedraw=this._onRequestRedraw.event,this._onContextLoss=this.register(new d.EventEmitter),this.onContextLoss=this._onContextLoss.event,this.register(this._themeService.onChangeColors((()=>this._handleColorChange()))),this._cellColorResolver=new r.CellColorResolver(this._terminal,this._model.selection,this._decorationService,this._coreBrowserService,this._themeService),this._core=this._terminal._core,this._renderLayers=[new f.LinkRenderLayer(this._core.screenElement,2,this._terminal,this._core.linkifier2,this._coreBrowserService,g,this._themeService),new v.CursorRenderLayer(e,this._core.screenElement,3,this._onRequestRedraw,this._coreBrowserService,c,g,this._themeService)],this.dimensions=(0,a.createRenderDimensions)(),this._devicePixelRatio=this._coreBrowserService.dpr,this._updateDimensions(),this.register(g.onOptionChange((()=>this._handleOptionsChanged()))),this._canvas=document.createElement("canvas");const x={antialias:!1,depth:!1,preserveDrawingBuffer:m};if(this._gl=this._canvas.getContext("webgl2",x),!this._gl)throw new Error("WebGL2 not supported "+this._gl);this.register((0,s.addDisposableDomListener)(this._canvas,"webglcontextlost",(e=>{console.log("webglcontextlost event received"),e.preventDefault(),this._contextRestorationTimeout=setTimeout((()=>{this._contextRestorationTimeout=void 0,console.warn("webgl context not restored; firing onContextLoss"),this._onContextLoss.fire(e)}),3e3)}))),this.register((0,s.addDisposableDomListener)(this._canvas,"webglcontextrestored",(e=>{console.warn("webglcontextrestored event received"),clearTimeout(this._contextRestorationTimeout),this._contextRestorationTimeout=void 0,(0,o.removeTerminalFromCache)(this._terminal),this._initializeWebGLState(),this._requestRedrawViewport()}))),this.register((0,n.observeDevicePixelDimensions)(this._canvas,this._coreBrowserService.window,((e,t)=>this._setCanvasDevicePixelDimensions(e,t)))),this._core.screenElement.appendChild(this._canvas),[this._rectangleRenderer,this._glyphRenderer]=this._initializeWebGLState(),this._isAttached=this._coreBrowserService.window.document.body.contains(this._core.screenElement),this.register((0,_.toDisposable)((()=>{var e;for(const t of this._renderLayers)t.dispose();null===(e=this._canvas.parentElement)||void 0===e||e.removeChild(this._canvas),(0,o.removeTerminalFromCache)(this._terminal)})))}get textureAtlas(){var e;return null===(e=this._charAtlas)||void 0===e?void 0:e.pages[0].canvas}_handleColorChange(){this._refreshCharAtlas(),this._clearModel(!0)}handleDevicePixelRatioChange(){this._devicePixelRatio!==this._coreBrowserService.dpr&&(this._devicePixelRatio=this._coreBrowserService.dpr,this.handleResize(this._terminal.cols,this._terminal.rows))}handleResize(e,t){this._updateDimensions(),this._model.resize(this._terminal.cols,this._terminal.rows);for(const i of this._renderLayers)i.resize(this._terminal,this.dimensions);this._canvas.width=this.dimensions.device.canvas.width,this._canvas.height=this.dimensions.device.canvas.height,this._canvas.style.width=`${this.dimensions.css.canvas.width}px`,this._canvas.style.height=`${this.dimensions.css.canvas.height}px`,this._core.screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._core.screenElement.style.height=`${this.dimensions.css.canvas.height}px`,this._rectangleRenderer.setDimensions(this.dimensions),this._rectangleRenderer.handleResize(),this._glyphRenderer.setDimensions(this.dimensions),this._glyphRenderer.handleResize(),this._refreshCharAtlas(),this._clearModel(!1)}handleCharSizeChanged(){this.handleResize(this._terminal.cols,this._terminal.rows)}handleBlur(){for(const e of this._renderLayers)e.handleBlur(this._terminal);this._requestRedrawViewport()}handleFocus(){for(const e of this._renderLayers)e.handleFocus(this._terminal);this._requestRedrawViewport()}handleSelectionChanged(e,t,i){for(const s of this._renderLayers)s.handleSelectionChanged(this._terminal,e,t,i);this._model.selection.update(this._terminal,e,t,i),this._requestRedrawViewport()}handleCursorMove(){for(const e of this._renderLayers)e.handleCursorMove(this._terminal)}_handleOptionsChanged(){this._updateDimensions(),this._refreshCharAtlas()}_initializeWebGLState(){var e,t;return null===(e=this._rectangleRenderer)||void 0===e||e.dispose(),null===(t=this._glyphRenderer)||void 0===t||t.dispose(),this._rectangleRenderer=this.register(new g.RectangleRenderer(this._terminal,this._gl,this.dimensions,this._themeService)),this._glyphRenderer=this.register(new u.GlyphRenderer(this._terminal,this._gl,this.dimensions)),this.handleCharSizeChanged(),[this._rectangleRenderer,this._glyphRenderer]}_refreshCharAtlas(){var e;if(this.dimensions.device.char.width<=0&&this.dimensions.device.char.height<=0)return void(this._isAttached=!1);const t=(0,o.acquireTextureAtlas)(this._terminal,this._optionsService.rawOptions,this._themeService.colors,this.dimensions.device.cell.width,this.dimensions.device.cell.height,this.dimensions.device.char.width,this.dimensions.device.char.height,this._coreBrowserService.dpr);this._charAtlas!==t&&(null===(e=this._charAtlasDisposable)||void 0===e||e.dispose(),this._onChangeTextureAtlas.fire(t.pages[0].canvas),this._charAtlasDisposable=(0,_.getDisposeArrayDisposable)([(0,d.forwardEvent)(t.onAddTextureAtlasCanvas,this._onAddTextureAtlasCanvas),(0,d.forwardEvent)(t.onRemoveTextureAtlasCanvas,this._onRemoveTextureAtlasCanvas)])),this._charAtlas=t,this._charAtlas.warmUp(),this._glyphRenderer.setAtlas(this._charAtlas)}_clearModel(e){this._model.clear(),e&&this._glyphRenderer.clear()}clearTextureAtlas(){var e;null===(e=this._charAtlas)||void 0===e||e.clearTexture(),this._clearModel(!0),this._requestRedrawViewport()}clear(){this._clearModel(!0);for(const e of this._renderLayers)e.reset(this._terminal)}registerCharacterJoiner(e){return-1}deregisterCharacterJoiner(e){return!1}renderRows(e,t){if(!this._isAttached){if(!(this._coreBrowserService.window.document.body.contains(this._core.screenElement)&&this._charSizeService.width&&this._charSizeService.height))return;this._updateDimensions(),this._refreshCharAtlas(),this._isAttached=!0}for(const i of this._renderLayers)i.handleGridChanged(this._terminal,e,t);this._glyphRenderer.beginFrame()&&this._clearModel(!0),this._updateModel(e,t),this._rectangleRenderer.render(),this._glyphRenderer.render(this._model)}_updateModel(e,t){const i=this._core;let s,r,o,n,a,h,l,d,_,u,g,v,f,p=this._workCell;for(r=e;r<=t&&(o=r+i.buffer.ydisp,n=i.buffer.lines.get(o),n);r++)for(this._model.lineLengths[r]=0,a=this._characterJoinerService.getJoinedCharacters(o),v=0;v0&&v===a[0][0]&&(h=!0,d=a.shift(),p=new m(p,n.translateToString(!0,d[0],d[1]),d[1]-d[0]),l=d[1]-1),_=p.getChars(),u=p.getCode(),g=(r*i.cols+v)*C.RENDER_MODEL_INDICIES_PER_CELL,this._cellColorResolver.resolve(p,v,o),u!==c.NULL_CELL_CODE&&(this._model.lineLengths[r]=v+1),(this._model.cells[g]!==u||this._model.cells[g+C.RENDER_MODEL_BG_OFFSET]!==this._cellColorResolver.result.bg||this._model.cells[g+C.RENDER_MODEL_FG_OFFSET]!==this._cellColorResolver.result.fg||this._model.cells[g+C.RENDER_MODEL_EXT_OFFSET]!==this._cellColorResolver.result.ext)&&(_.length>1&&(u|=C.COMBINED_CHAR_BIT_MASK),this._model.cells[g]=u,this._model.cells[g+C.RENDER_MODEL_BG_OFFSET]=this._cellColorResolver.result.bg,this._model.cells[g+C.RENDER_MODEL_FG_OFFSET]=this._cellColorResolver.result.fg,this._model.cells[g+C.RENDER_MODEL_EXT_OFFSET]=this._cellColorResolver.result.ext,this._glyphRenderer.updateCell(v,r,u,this._cellColorResolver.result.bg,this._cellColorResolver.result.fg,this._cellColorResolver.result.ext,_,s),h))for(p=this._workCell,v++;v{Object.defineProperty(t,"__esModule",{value:!0}),t.GLTexture=t.expandFloat32Array=t.createShader=t.createProgram=t.PROJECTION_MATRIX=void 0;const s=i(374);function r(e,t,i){const r=(0,s.throwIfFalsy)(e.createShader(t));if(e.shaderSource(r,i),e.compileShader(r),e.getShaderParameter(r,e.COMPILE_STATUS))return r;console.error(e.getShaderInfoLog(r)),e.deleteShader(r)}t.PROJECTION_MATRIX=new Float32Array([2,0,0,0,0,-2,0,0,0,0,1,0,-1,1,0,1]),t.createProgram=function(e,t,i){const o=(0,s.throwIfFalsy)(e.createProgram());if(e.attachShader(o,(0,s.throwIfFalsy)(r(e,e.VERTEX_SHADER,t))),e.attachShader(o,(0,s.throwIfFalsy)(r(e,e.FRAGMENT_SHADER,i))),e.linkProgram(o),e.getProgramParameter(o,e.LINK_STATUS))return o;console.error(e.getProgramInfoLog(o)),e.deleteProgram(o)},t.createShader=r,t.expandFloat32Array=function(e,t){const i=Math.min(2*e.length,t),s=new Float32Array(i);for(let r=0;r{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseRenderLayer=void 0;const s=i(627),r=i(237),o=i(374),n=i(859);class a extends n.Disposable{constructor(e,t,i,s,r,o,a,h){super(),this._container=t,this._alpha=r,this._coreBrowserService=o,this._optionsService=a,this._themeService=h,this._deviceCharWidth=0,this._deviceCharHeight=0,this._deviceCellWidth=0,this._deviceCellHeight=0,this._deviceCharLeft=0,this._deviceCharTop=0,this._canvas=document.createElement("canvas"),this._canvas.classList.add(`xterm-${i}-layer`),this._canvas.style.zIndex=s.toString(),this._initCanvas(),this._container.appendChild(this._canvas),this.register(this._themeService.onChangeColors((t=>{this._refreshCharAtlas(e,t),this.reset(e)}))),this.register((0,n.toDisposable)((()=>{var e;this._canvas.remove(),null===(e=this._charAtlas)||void 0===e||e.dispose()})))}_initCanvas(){this._ctx=(0,o.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()}handleBlur(e){}handleFocus(e){}handleCursorMove(e){}handleGridChanged(e,t,i){}handleSelectionChanged(e,t,i,s=!1){}_setTransparency(e,t){if(t===this._alpha)return;const i=this._canvas;this._alpha=t,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,i),this._refreshCharAtlas(e,this._themeService.colors),this.handleGridChanged(e,0,e.rows-1)}_refreshCharAtlas(e,t){this._deviceCharWidth<=0&&this._deviceCharHeight<=0||(this._charAtlas=(0,s.acquireTextureAtlas)(e,this._optionsService.rawOptions,t,this._deviceCellWidth,this._deviceCellHeight,this._deviceCharWidth,this._deviceCharHeight,this._coreBrowserService.dpr),this._charAtlas.warmUp())}resize(e,t){this._deviceCellWidth=t.device.cell.width,this._deviceCellHeight=t.device.cell.height,this._deviceCharWidth=t.device.char.width,this._deviceCharHeight=t.device.char.height,this._deviceCharLeft=t.device.char.left,this._deviceCharTop=t.device.char.top,this._canvas.width=t.device.canvas.width,this._canvas.height=t.device.canvas.height,this._canvas.style.width=`${t.css.canvas.width}px`,this._canvas.style.height=`${t.css.canvas.height}px`,this._alpha||this._clearAll(),this._refreshCharAtlas(e,this._themeService.colors)}_fillCells(e,t,i,s){this._ctx.fillRect(e*this._deviceCellWidth,t*this._deviceCellHeight,i*this._deviceCellWidth,s*this._deviceCellHeight)}_fillBottomLineAtCells(e,t,i=1){this._ctx.fillRect(e*this._deviceCellWidth,(t+1)*this._deviceCellHeight-this._coreBrowserService.dpr-1,i*this._deviceCellWidth,this._coreBrowserService.dpr)}_fillLeftLineAtCell(e,t,i){this._ctx.fillRect(e*this._deviceCellWidth,t*this._deviceCellHeight,this._coreBrowserService.dpr*i,this._deviceCellHeight)}_strokeRectAtCell(e,t,i,s){this._ctx.lineWidth=this._coreBrowserService.dpr,this._ctx.strokeRect(e*this._deviceCellWidth+this._coreBrowserService.dpr/2,t*this._deviceCellHeight+this._coreBrowserService.dpr/2,i*this._deviceCellWidth-this._coreBrowserService.dpr,s*this._deviceCellHeight-this._coreBrowserService.dpr)}_clearAll(){this._alpha?this._ctx.clearRect(0,0,this._canvas.width,this._canvas.height):(this._ctx.fillStyle=this._themeService.colors.background.css,this._ctx.fillRect(0,0,this._canvas.width,this._canvas.height))}_clearCells(e,t,i,s){this._alpha?this._ctx.clearRect(e*this._deviceCellWidth,t*this._deviceCellHeight,i*this._deviceCellWidth,s*this._deviceCellHeight):(this._ctx.fillStyle=this._themeService.colors.background.css,this._ctx.fillRect(e*this._deviceCellWidth,t*this._deviceCellHeight,i*this._deviceCellWidth,s*this._deviceCellHeight))}_fillCharTrueColor(e,t,i,s){this._ctx.font=this._getFont(e,!1,!1),this._ctx.textBaseline=r.TEXT_BASELINE,this._clipCell(i,s,t.getWidth()),this._ctx.fillText(t.getChars(),i*this._deviceCellWidth+this._deviceCharLeft,s*this._deviceCellHeight+this._deviceCharTop+this._deviceCharHeight)}_clipCell(e,t,i){this._ctx.beginPath(),this._ctx.rect(e*this._deviceCellWidth,t*this._deviceCellHeight,i*this._deviceCellWidth,this._deviceCellHeight),this._ctx.clip()}_getFont(e,t,i){return`${i?"italic":""} ${t?e.options.fontWeightBold:e.options.fontWeight} ${e.options.fontSize*this._coreBrowserService.dpr}px ${e.options.fontFamily}`}}t.BaseRenderLayer=a},461:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CursorRenderLayer=void 0;const s=i(592),r=i(782),o=i(859);class n extends s.BaseRenderLayer{constructor(e,t,i,s,n,a,h,l){super(e,t,"cursor",i,!0,n,h,l),this._onRequestRefreshRowsEvent=s,this._coreService=a,this._cell=new r.CellData,this._state={x:0,y:0,isFocused:!1,style:"",width:0},this._cursorRenderers={bar:this._renderBarCursor.bind(this),block:this._renderBlockCursor.bind(this),underline:this._renderUnderlineCursor.bind(this)},this._handleOptionsChanged(e),this.register(h.onOptionChange((()=>this._handleOptionsChanged(e)))),this.register((0,o.toDisposable)((()=>{var e;null===(e=this._cursorBlinkStateManager)||void 0===e||e.dispose(),this._cursorBlinkStateManager=void 0})))}resize(e,t){super.resize(e,t),this._state={x:0,y:0,isFocused:!1,style:"",width:0}}reset(e){var t;this._clearCursor(),null===(t=this._cursorBlinkStateManager)||void 0===t||t.restartBlinkAnimation(e),this._handleOptionsChanged(e)}handleBlur(e){var t;null===(t=this._cursorBlinkStateManager)||void 0===t||t.pause(),this._onRequestRefreshRowsEvent.fire({start:e.buffer.active.cursorY,end:e.buffer.active.cursorY})}handleFocus(e){var t;null===(t=this._cursorBlinkStateManager)||void 0===t||t.resume(e),this._onRequestRefreshRowsEvent.fire({start:e.buffer.active.cursorY,end:e.buffer.active.cursorY})}_handleOptionsChanged(e){var t;e.options.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new a((()=>{this._render(e,!0)}),this._coreBrowserService)):(null===(t=this._cursorBlinkStateManager)||void 0===t||t.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRefreshRowsEvent.fire({start:e.buffer.active.cursorY,end:e.buffer.active.cursorY})}handleCursorMove(e){var t;null===(t=this._cursorBlinkStateManager)||void 0===t||t.restartBlinkAnimation(e)}handleGridChanged(e,t,i){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(e,!1):this._cursorBlinkStateManager.restartBlinkAnimation(e)}_render(e,t){if(!this._coreService.isCursorInitialized||this._coreService.isCursorHidden)return void this._clearCursor();const i=e.buffer.active.baseY+e.buffer.active.cursorY,s=i-e.buffer.active.viewportY,r=Math.min(e.buffer.active.cursorX,e.cols-1);if(s<0||s>=e.rows)this._clearCursor();else if(e._core.buffer.lines.get(i).loadCell(r,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._themeService.colors.cursor.css;const t=e.options.cursorStyle;return t&&"block"!==t?this._cursorRenderers[t](e,r,s,this._cell):this._renderBlurCursor(e,r,s,this._cell),this._ctx.restore(),this._state.x=r,this._state.y=s,this._state.isFocused=!1,this._state.style=t,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===r&&this._state.y===s&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===e.options.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[e.options.cursorStyle||"block"](e,r,s,this._cell),this._ctx.restore(),this._state.x=r,this._state.y=s,this._state.isFocused=!1,this._state.style=e.options.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}_clearCursor(){this._state&&(this._coreBrowserService.dpr<1?this._clearAll():this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})}_renderBarCursor(e,t,i,s){this._ctx.save(),this._ctx.fillStyle=this._themeService.colors.cursor.css,this._fillLeftLineAtCell(t,i,this._optionsService.rawOptions.cursorWidth),this._ctx.restore()}_renderBlockCursor(e,t,i,s){this._ctx.save(),this._ctx.fillStyle=this._themeService.colors.cursor.css,this._fillCells(t,i,s.getWidth(),1),this._ctx.fillStyle=this._themeService.colors.cursorAccent.css,this._fillCharTrueColor(e,s,t,i),this._ctx.restore()}_renderUnderlineCursor(e,t,i,s){this._ctx.save(),this._ctx.fillStyle=this._themeService.colors.cursor.css,this._fillBottomLineAtCells(t,i),this._ctx.restore()}_renderBlurCursor(e,t,i,s){this._ctx.save(),this._ctx.strokeStyle=this._themeService.colors.cursor.css,this._strokeRectAtCell(t,i,s.getWidth(),1),this._ctx.restore()}}t.CursorRenderLayer=n;class a{constructor(e,t){this._renderCallback=e,this._coreBrowserService=t,this.isCursorVisible=!0,this._coreBrowserService.isFocused&&this._restartInterval()}get isPaused(){return!(this._blinkStartTimeout||this._blinkInterval)}dispose(){this._blinkInterval&&(this._coreBrowserService.window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(this._coreBrowserService.window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}restartBlinkAnimation(e){this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._renderCallback(),this._animationFrame=void 0}))))}_restartInterval(e=600){this._blinkInterval&&(this._coreBrowserService.window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=this._coreBrowserService.window.setTimeout((()=>{if(this._animationTimeRestarted){const e=600-(Date.now()-this._animationTimeRestarted);if(this._animationTimeRestarted=void 0,e>0)return void this._restartInterval(e)}this.isCursorVisible=!1,this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._renderCallback(),this._animationFrame=void 0})),this._blinkInterval=this._coreBrowserService.window.setInterval((()=>{if(this._animationTimeRestarted){const e=600-(Date.now()-this._animationTimeRestarted);return this._animationTimeRestarted=void 0,void this._restartInterval(e)}this.isCursorVisible=!this.isCursorVisible,this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._renderCallback(),this._animationFrame=void 0}))}),600)}),e)}pause(){this.isCursorVisible=!0,this._blinkInterval&&(this._coreBrowserService.window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(this._coreBrowserService.window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}resume(e){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation(e)}}},733:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LinkRenderLayer=void 0;const s=i(197),r=i(237),o=i(592);class n extends o.BaseRenderLayer{constructor(e,t,i,s,r,o,n){super(i,e,"link",t,!0,r,o,n),this.register(s.onShowLinkUnderline((e=>this._handleShowLinkUnderline(e)))),this.register(s.onHideLinkUnderline((e=>this._handleHideLinkUnderline(e))))}resize(e,t){super.resize(e,t),this._state=void 0}reset(e){this._clearCurrentLink()}_clearCurrentLink(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);const e=this._state.y2-this._state.y1-1;e>0&&this._clearCells(0,this._state.y1+1,this._state.cols,e),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}}_handleShowLinkUnderline(e){if(e.fg===r.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._themeService.colors.background.css:void 0!==e.fg&&(0,s.is256Color)(e.fg)?this._ctx.fillStyle=this._themeService.colors.ansi[e.fg].css:this._ctx.fillStyle=this._themeService.colors.foreground.css,e.y1===e.y2)this._fillBottomLineAtCells(e.x1,e.y1,e.x2-e.x1);else{this._fillBottomLineAtCells(e.x1,e.y1,e.cols-e.x1);for(let t=e.y1+1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.addDisposableDomListener=void 0,t.addDisposableDomListener=function(e,t,i,s){e.addEventListener(t,i,s);let r=!1;return{dispose:()=>{r||(r=!0,e.removeEventListener(t,i,s))}}}},274:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CellColorResolver=void 0;let i,s=0,r=0,o=!1,n=!1,a=!1;t.CellColorResolver=class{constructor(e,t,i,s,r){this._terminal=e,this._selectionRenderModel=t,this._decorationService=i,this._coreBrowserService=s,this._themeService=r,this.result={fg:0,bg:0,ext:0}}resolve(e,t,h){this.result.bg=e.bg,this.result.fg=e.fg,this.result.ext=268435456&e.bg?e.extended.ext:0,r=0,s=0,n=!1,o=!1,a=!1,i=this._themeService.colors,this._decorationService.forEachDecorationAtCell(t,h,"bottom",(e=>{e.backgroundColorRGB&&(r=e.backgroundColorRGB.rgba>>8&16777215,n=!0),e.foregroundColorRGB&&(s=e.foregroundColorRGB.rgba>>8&16777215,o=!0)})),a=this._selectionRenderModel.isCellSelected(this._terminal,t,h),a&&(r=(this._coreBrowserService.isFocused?i.selectionBackgroundOpaque:i.selectionInactiveBackgroundOpaque).rgba>>8&16777215,n=!0,i.selectionForeground&&(s=i.selectionForeground.rgba>>8&16777215,o=!0)),this._decorationService.forEachDecorationAtCell(t,h,"top",(e=>{e.backgroundColorRGB&&(r=e.backgroundColorRGB.rgba>>8&16777215,n=!0),e.foregroundColorRGB&&(s=e.foregroundColorRGB.rgba>>8&16777215,o=!0)})),n&&(r=a?-16777216&e.bg&-134217729|r|50331648:-16777216&e.bg|r|50331648),o&&(s=-16777216&e.fg&-67108865|s|50331648),67108864&this.result.fg&&(n&&!o&&(s=0==(50331648&this.result.bg)?-134217728&this.result.fg|16777215&i.background.rgba>>8|50331648:-134217728&this.result.fg|67108863&this.result.bg,o=!0),!n&&o&&(r=0==(50331648&this.result.fg)?-67108864&this.result.bg|16777215&i.foreground.rgba>>8|50331648:-67108864&this.result.bg|67108863&this.result.fg,n=!0)),i=void 0,this.result.bg=n?r:this.result.bg,this.result.fg=o?s:this.result.fg}}},627:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.removeTerminalFromCache=t.acquireTextureAtlas=void 0;const s=i(509),r=i(197),o=[];t.acquireTextureAtlas=function(e,t,i,n,a,h,l,c){const d=(0,r.generateConfig)(n,a,h,l,t,i,c);for(let s=0;s=0){if((0,r.configEquals)(t.config,d))return t.atlas;1===t.ownedBy.length?(t.atlas.dispose(),o.splice(s,1)):t.ownedBy.splice(i,1);break}}for(let s=0;s{Object.defineProperty(t,"__esModule",{value:!0}),t.is256Color=t.configEquals=t.generateConfig=void 0;const s=i(160);t.generateConfig=function(e,t,i,r,o,n,a){const h={foreground:n.foreground,background:n.background,cursor:s.NULL_COLOR,cursorAccent:s.NULL_COLOR,selectionForeground:s.NULL_COLOR,selectionBackgroundTransparent:s.NULL_COLOR,selectionBackgroundOpaque:s.NULL_COLOR,selectionInactiveBackgroundTransparent:s.NULL_COLOR,selectionInactiveBackgroundOpaque:s.NULL_COLOR,ansi:n.ansi.slice(),contrastCache:n.contrastCache};return{customGlyphs:o.customGlyphs,devicePixelRatio:a,letterSpacing:o.letterSpacing,lineHeight:o.lineHeight,deviceCellWidth:e,deviceCellHeight:t,deviceCharWidth:i,deviceCharHeight:r,fontFamily:o.fontFamily,fontSize:o.fontSize,fontWeight:o.fontWeight,fontWeightBold:o.fontWeightBold,allowTransparency:o.allowTransparency,drawBoldTextInBrightColors:o.drawBoldTextInBrightColors,minimumContrastRatio:o.minimumContrastRatio,colors:h}},t.configEquals=function(e,t){for(let i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.TEXT_BASELINE=t.DIM_OPACITY=t.INVERTED_DEFAULT_COLOR=void 0;const s=i(399);t.INVERTED_DEFAULT_COLOR=257,t.DIM_OPACITY=.5,t.TEXT_BASELINE=s.isFirefox||s.isLegacyEdge?"bottom":"ideographic"},860:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.tryDrawCustomChar=t.powerlineDefinitions=t.boxDrawingDefinitions=t.blockElementDefinitions=void 0;const s=i(374);t.blockElementDefinitions={"▀":[{x:0,y:0,w:8,h:4}],"▁":[{x:0,y:7,w:8,h:1}],"▂":[{x:0,y:6,w:8,h:2}],"▃":[{x:0,y:5,w:8,h:3}],"▄":[{x:0,y:4,w:8,h:4}],"▅":[{x:0,y:3,w:8,h:5}],"▆":[{x:0,y:2,w:8,h:6}],"▇":[{x:0,y:1,w:8,h:7}],"█":[{x:0,y:0,w:8,h:8}],"▉":[{x:0,y:0,w:7,h:8}],"▊":[{x:0,y:0,w:6,h:8}],"▋":[{x:0,y:0,w:5,h:8}],"▌":[{x:0,y:0,w:4,h:8}],"▍":[{x:0,y:0,w:3,h:8}],"▎":[{x:0,y:0,w:2,h:8}],"▏":[{x:0,y:0,w:1,h:8}],"▐":[{x:4,y:0,w:4,h:8}],"▔":[{x:0,y:0,w:8,h:1}],"▕":[{x:7,y:0,w:1,h:8}],"▖":[{x:0,y:4,w:4,h:4}],"▗":[{x:4,y:4,w:4,h:4}],"▘":[{x:0,y:0,w:4,h:4}],"▙":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"▚":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"▛":[{x:0,y:0,w:4,h:8},{x:4,y:0,w:4,h:4}],"▜":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"▝":[{x:4,y:0,w:4,h:4}],"▞":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"▟":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"🭰":[{x:1,y:0,w:1,h:8}],"🭱":[{x:2,y:0,w:1,h:8}],"🭲":[{x:3,y:0,w:1,h:8}],"🭳":[{x:4,y:0,w:1,h:8}],"🭴":[{x:5,y:0,w:1,h:8}],"🭵":[{x:6,y:0,w:1,h:8}],"🭶":[{x:0,y:1,w:8,h:1}],"🭷":[{x:0,y:2,w:8,h:1}],"🭸":[{x:0,y:3,w:8,h:1}],"🭹":[{x:0,y:4,w:8,h:1}],"🭺":[{x:0,y:5,w:8,h:1}],"🭻":[{x:0,y:6,w:8,h:1}],"🭼":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🭽":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭾":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭿":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🮀":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮁":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮂":[{x:0,y:0,w:8,h:2}],"🮃":[{x:0,y:0,w:8,h:3}],"🮄":[{x:0,y:0,w:8,h:5}],"🮅":[{x:0,y:0,w:8,h:6}],"🮆":[{x:0,y:0,w:8,h:7}],"🮇":[{x:6,y:0,w:2,h:8}],"🮈":[{x:5,y:0,w:3,h:8}],"🮉":[{x:3,y:0,w:5,h:8}],"🮊":[{x:2,y:0,w:6,h:8}],"🮋":[{x:1,y:0,w:7,h:8}],"🮕":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"🮖":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"🮗":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};const r={"░":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"▒":[[1,0],[0,0],[0,1],[0,0]],"▓":[[0,1],[1,1],[1,0],[1,1]]};t.boxDrawingDefinitions={"─":{1:"M0,.5 L1,.5"},"━":{3:"M0,.5 L1,.5"},"│":{1:"M.5,0 L.5,1"},"┃":{3:"M.5,0 L.5,1"},"┌":{1:"M0.5,1 L.5,.5 L1,.5"},"┏":{3:"M0.5,1 L.5,.5 L1,.5"},"┐":{1:"M0,.5 L.5,.5 L.5,1"},"┓":{3:"M0,.5 L.5,.5 L.5,1"},"└":{1:"M.5,0 L.5,.5 L1,.5"},"┗":{3:"M.5,0 L.5,.5 L1,.5"},"┘":{1:"M.5,0 L.5,.5 L0,.5"},"┛":{3:"M.5,0 L.5,.5 L0,.5"},"├":{1:"M.5,0 L.5,1 M.5,.5 L1,.5"},"┣":{3:"M.5,0 L.5,1 M.5,.5 L1,.5"},"┤":{1:"M.5,0 L.5,1 M.5,.5 L0,.5"},"┫":{3:"M.5,0 L.5,1 M.5,.5 L0,.5"},"┬":{1:"M0,.5 L1,.5 M.5,.5 L.5,1"},"┳":{3:"M0,.5 L1,.5 M.5,.5 L.5,1"},"┴":{1:"M0,.5 L1,.5 M.5,.5 L.5,0"},"┻":{3:"M0,.5 L1,.5 M.5,.5 L.5,0"},"┼":{1:"M0,.5 L1,.5 M.5,0 L.5,1"},"╋":{3:"M0,.5 L1,.5 M.5,0 L.5,1"},"╴":{1:"M.5,.5 L0,.5"},"╸":{3:"M.5,.5 L0,.5"},"╵":{1:"M.5,.5 L.5,0"},"╹":{3:"M.5,.5 L.5,0"},"╶":{1:"M.5,.5 L1,.5"},"╺":{3:"M.5,.5 L1,.5"},"╷":{1:"M.5,.5 L.5,1"},"╻":{3:"M.5,.5 L.5,1"},"═":{1:(e,t)=>`M0,${.5-t} L1,${.5-t} M0,${.5+t} L1,${.5+t}`},"║":{1:(e,t)=>`M${.5-e},0 L${.5-e},1 M${.5+e},0 L${.5+e},1`},"╒":{1:(e,t)=>`M.5,1 L.5,${.5-t} L1,${.5-t} M.5,${.5+t} L1,${.5+t}`},"╓":{1:(e,t)=>`M${.5-e},1 L${.5-e},.5 L1,.5 M${.5+e},.5 L${.5+e},1`},"╔":{1:(e,t)=>`M1,${.5-t} L${.5-e},${.5-t} L${.5-e},1 M1,${.5+t} L${.5+e},${.5+t} L${.5+e},1`},"╕":{1:(e,t)=>`M0,${.5-t} L.5,${.5-t} L.5,1 M0,${.5+t} L.5,${.5+t}`},"╖":{1:(e,t)=>`M${.5+e},1 L${.5+e},.5 L0,.5 M${.5-e},.5 L${.5-e},1`},"╗":{1:(e,t)=>`M0,${.5+t} L${.5-e},${.5+t} L${.5-e},1 M0,${.5-t} L${.5+e},${.5-t} L${.5+e},1`},"╘":{1:(e,t)=>`M.5,0 L.5,${.5+t} L1,${.5+t} M.5,${.5-t} L1,${.5-t}`},"╙":{1:(e,t)=>`M1,.5 L${.5-e},.5 L${.5-e},0 M${.5+e},.5 L${.5+e},0`},"╚":{1:(e,t)=>`M1,${.5-t} L${.5+e},${.5-t} L${.5+e},0 M1,${.5+t} L${.5-e},${.5+t} L${.5-e},0`},"╛":{1:(e,t)=>`M0,${.5+t} L.5,${.5+t} L.5,0 M0,${.5-t} L.5,${.5-t}`},"╜":{1:(e,t)=>`M0,.5 L${.5+e},.5 L${.5+e},0 M${.5-e},.5 L${.5-e},0`},"╝":{1:(e,t)=>`M0,${.5-t} L${.5-e},${.5-t} L${.5-e},0 M0,${.5+t} L${.5+e},${.5+t} L${.5+e},0`},"╞":{1:(e,t)=>`M.5,0 L.5,1 M.5,${.5-t} L1,${.5-t} M.5,${.5+t} L1,${.5+t}`},"╟":{1:(e,t)=>`M${.5-e},0 L${.5-e},1 M${.5+e},0 L${.5+e},1 M${.5+e},.5 L1,.5`},"╠":{1:(e,t)=>`M${.5-e},0 L${.5-e},1 M1,${.5+t} L${.5+e},${.5+t} L${.5+e},1 M1,${.5-t} L${.5+e},${.5-t} L${.5+e},0`},"╡":{1:(e,t)=>`M.5,0 L.5,1 M0,${.5-t} L.5,${.5-t} M0,${.5+t} L.5,${.5+t}`},"╢":{1:(e,t)=>`M0,.5 L${.5-e},.5 M${.5-e},0 L${.5-e},1 M${.5+e},0 L${.5+e},1`},"╣":{1:(e,t)=>`M${.5+e},0 L${.5+e},1 M0,${.5+t} L${.5-e},${.5+t} L${.5-e},1 M0,${.5-t} L${.5-e},${.5-t} L${.5-e},0`},"╤":{1:(e,t)=>`M0,${.5-t} L1,${.5-t} M0,${.5+t} L1,${.5+t} M.5,${.5+t} L.5,1`},"╥":{1:(e,t)=>`M0,.5 L1,.5 M${.5-e},.5 L${.5-e},1 M${.5+e},.5 L${.5+e},1`},"╦":{1:(e,t)=>`M0,${.5-t} L1,${.5-t} M0,${.5+t} L${.5-e},${.5+t} L${.5-e},1 M1,${.5+t} L${.5+e},${.5+t} L${.5+e},1`},"╧":{1:(e,t)=>`M.5,0 L.5,${.5-t} M0,${.5-t} L1,${.5-t} M0,${.5+t} L1,${.5+t}`},"╨":{1:(e,t)=>`M0,.5 L1,.5 M${.5-e},.5 L${.5-e},0 M${.5+e},.5 L${.5+e},0`},"╩":{1:(e,t)=>`M0,${.5+t} L1,${.5+t} M0,${.5-t} L${.5-e},${.5-t} L${.5-e},0 M1,${.5-t} L${.5+e},${.5-t} L${.5+e},0`},"╪":{1:(e,t)=>`M.5,0 L.5,1 M0,${.5-t} L1,${.5-t} M0,${.5+t} L1,${.5+t}`},"╫":{1:(e,t)=>`M0,.5 L1,.5 M${.5-e},0 L${.5-e},1 M${.5+e},0 L${.5+e},1`},"╬":{1:(e,t)=>`M0,${.5+t} L${.5-e},${.5+t} L${.5-e},1 M1,${.5+t} L${.5+e},${.5+t} L${.5+e},1 M0,${.5-t} L${.5-e},${.5-t} L${.5-e},0 M1,${.5-t} L${.5+e},${.5-t} L${.5+e},0`},"╱":{1:"M1,0 L0,1"},"╲":{1:"M0,0 L1,1"},"╳":{1:"M1,0 L0,1 M0,0 L1,1"},"╼":{1:"M.5,.5 L0,.5",3:"M.5,.5 L1,.5"},"╽":{1:"M.5,.5 L.5,0",3:"M.5,.5 L.5,1"},"╾":{1:"M.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"╿":{1:"M.5,.5 L.5,1",3:"M.5,.5 L.5,0"},"┍":{1:"M.5,.5 L.5,1",3:"M.5,.5 L1,.5"},"┎":{1:"M.5,.5 L1,.5",3:"M.5,.5 L.5,1"},"┑":{1:"M.5,.5 L.5,1",3:"M.5,.5 L0,.5"},"┒":{1:"M.5,.5 L0,.5",3:"M.5,.5 L.5,1"},"┕":{1:"M.5,.5 L.5,0",3:"M.5,.5 L1,.5"},"┖":{1:"M.5,.5 L1,.5",3:"M.5,.5 L.5,0"},"┙":{1:"M.5,.5 L.5,0",3:"M.5,.5 L0,.5"},"┚":{1:"M.5,.5 L0,.5",3:"M.5,.5 L.5,0"},"┝":{1:"M.5,0 L.5,1",3:"M.5,.5 L1,.5"},"┞":{1:"M0.5,1 L.5,.5 L1,.5",3:"M.5,.5 L.5,0"},"┟":{1:"M.5,0 L.5,.5 L1,.5",3:"M.5,.5 L.5,1"},"┠":{1:"M.5,.5 L1,.5",3:"M.5,0 L.5,1"},"┡":{1:"M.5,.5 L.5,1",3:"M.5,0 L.5,.5 L1,.5"},"┢":{1:"M.5,.5 L.5,0",3:"M0.5,1 L.5,.5 L1,.5"},"┥":{1:"M.5,0 L.5,1",3:"M.5,.5 L0,.5"},"┦":{1:"M0,.5 L.5,.5 L.5,1",3:"M.5,.5 L.5,0"},"┧":{1:"M.5,0 L.5,.5 L0,.5",3:"M.5,.5 L.5,1"},"┨":{1:"M.5,.5 L0,.5",3:"M.5,0 L.5,1"},"┩":{1:"M.5,.5 L.5,1",3:"M.5,0 L.5,.5 L0,.5"},"┪":{1:"M.5,.5 L.5,0",3:"M0,.5 L.5,.5 L.5,1"},"┭":{1:"M0.5,1 L.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"┮":{1:"M0,.5 L.5,.5 L.5,1",3:"M.5,.5 L1,.5"},"┯":{1:"M.5,.5 L.5,1",3:"M0,.5 L1,.5"},"┰":{1:"M0,.5 L1,.5",3:"M.5,.5 L.5,1"},"┱":{1:"M.5,.5 L1,.5",3:"M0,.5 L.5,.5 L.5,1"},"┲":{1:"M.5,.5 L0,.5",3:"M0.5,1 L.5,.5 L1,.5"},"┵":{1:"M.5,0 L.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"┶":{1:"M.5,0 L.5,.5 L0,.5",3:"M.5,.5 L1,.5"},"┷":{1:"M.5,.5 L.5,0",3:"M0,.5 L1,.5"},"┸":{1:"M0,.5 L1,.5",3:"M.5,.5 L.5,0"},"┹":{1:"M.5,.5 L1,.5",3:"M.5,0 L.5,.5 L0,.5"},"┺":{1:"M.5,.5 L0,.5",3:"M.5,0 L.5,.5 L1,.5"},"┽":{1:"M.5,0 L.5,1 M.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"┾":{1:"M.5,0 L.5,1 M.5,.5 L0,.5",3:"M.5,.5 L1,.5"},"┿":{1:"M.5,0 L.5,1",3:"M0,.5 L1,.5"},"╀":{1:"M0,.5 L1,.5 M.5,.5 L.5,1",3:"M.5,.5 L.5,0"},"╁":{1:"M.5,.5 L.5,0 M0,.5 L1,.5",3:"M.5,.5 L.5,1"},"╂":{1:"M0,.5 L1,.5",3:"M.5,0 L.5,1"},"╃":{1:"M0.5,1 L.5,.5 L1,.5",3:"M.5,0 L.5,.5 L0,.5"},"╄":{1:"M0,.5 L.5,.5 L.5,1",3:"M.5,0 L.5,.5 L1,.5"},"╅":{1:"M.5,0 L.5,.5 L1,.5",3:"M0,.5 L.5,.5 L.5,1"},"╆":{1:"M.5,0 L.5,.5 L0,.5",3:"M0.5,1 L.5,.5 L1,.5"},"╇":{1:"M.5,.5 L.5,1",3:"M.5,.5 L.5,0 M0,.5 L1,.5"},"╈":{1:"M.5,.5 L.5,0",3:"M0,.5 L1,.5 M.5,.5 L.5,1"},"╉":{1:"M.5,.5 L1,.5",3:"M.5,0 L.5,1 M.5,.5 L0,.5"},"╊":{1:"M.5,.5 L0,.5",3:"M.5,0 L.5,1 M.5,.5 L1,.5"},"╌":{1:"M.1,.5 L.4,.5 M.6,.5 L.9,.5"},"╍":{3:"M.1,.5 L.4,.5 M.6,.5 L.9,.5"},"┄":{1:"M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5"},"┅":{3:"M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5"},"┈":{1:"M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5"},"┉":{3:"M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5"},"╎":{1:"M.5,.1 L.5,.4 M.5,.6 L.5,.9"},"╏":{3:"M.5,.1 L.5,.4 M.5,.6 L.5,.9"},"┆":{1:"M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333"},"┇":{3:"M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333"},"┊":{1:"M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95"},"┋":{3:"M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95"},"╭":{1:(e,t)=>`M.5,1 L.5,${.5+t/.15*.5} C.5,${.5+t/.15*.5},.5,.5,1,.5`},"╮":{1:(e,t)=>`M.5,1 L.5,${.5+t/.15*.5} C.5,${.5+t/.15*.5},.5,.5,0,.5`},"╯":{1:(e,t)=>`M.5,0 L.5,${.5-t/.15*.5} C.5,${.5-t/.15*.5},.5,.5,0,.5`},"╰":{1:(e,t)=>`M.5,0 L.5,${.5-t/.15*.5} C.5,${.5-t/.15*.5},.5,.5,1,.5`}},t.powerlineDefinitions={"":{d:"M0,0 L1,.5 L0,1",type:0,rightPadding:2},"":{d:"M-1,-.5 L1,.5 L-1,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M1,0 L0,.5 L1,1",type:0,leftPadding:2},"":{d:"M2,-.5 L0,.5 L2,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M0,0 L0,1 C0.552,1,1,0.776,1,.5 C1,0.224,0.552,0,0,0",type:0,rightPadding:1},"":{d:"M0,1 C0.552,1,1,0.776,1,.5 C1,0.224,0.552,0,0,0",type:1,rightPadding:1},"":{d:"M1,0 L1,1 C0.448,1,0,0.776,0,.5 C0,0.224,0.448,0,1,0",type:0,leftPadding:1},"":{d:"M1,1 C0.448,1,0,0.776,0,.5 C0,0.224,0.448,0,1,0",type:1,leftPadding:1},"":{d:"M-.5,-.5 L1.5,1.5 L-.5,1.5",type:0},"":{d:"M-.5,-.5 L1.5,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M1.5,-.5 L-.5,1.5 L1.5,1.5",type:0},"":{d:"M1.5,-.5 L-.5,1.5 L-.5,-.5",type:0},"":{d:"M1.5,-.5 L-.5,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M-.5,-.5 L1.5,1.5 L1.5,-.5",type:0}},t.powerlineDefinitions[""]=t.powerlineDefinitions[""],t.powerlineDefinitions[""]=t.powerlineDefinitions[""],t.tryDrawCustomChar=function(e,i,n,l,c,d,_,u){const g=t.blockElementDefinitions[i];if(g)return function(e,t,i,s,r,o){for(let n=0;n7&&parseInt(l.slice(7,9),16)||1;else{if(!l.startsWith("rgba"))throw new Error(`Unexpected fillStyle color format "${l}" when drawing pattern glyph`);[d,_,u,g]=l.substring(5,l.length-1).split(",").map((e=>parseFloat(e)))}for(let e=0;ee.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5]),L:(e,t)=>e.lineTo(t[0],t[1]),M:(e,t)=>e.moveTo(t[0],t[1])};function h(e,t,i,s,r,o,a,h=0,l=0){const c=e.map((e=>parseFloat(e)||parseInt(e)));if(c.length<2)throw new Error("Too few arguments for instruction");for(let d=0;d{Object.defineProperty(t,"__esModule",{value:!0}),t.observeDevicePixelDimensions=void 0;const s=i(859);t.observeDevicePixelDimensions=function(e,t,i){let r=new t.ResizeObserver((t=>{const s=t.find((t=>t.target===e));if(!s)return;if(!("devicePixelContentBoxSize"in s))return null==r||r.disconnect(),void(r=void 0);const o=s.devicePixelContentBoxSize[0].inlineSize,n=s.devicePixelContentBoxSize[0].blockSize;o>0&&n>0&&i(o,n)}));try{r.observe(e,{box:["device-pixel-content-box"]})}catch(e){r.disconnect(),r=void 0}return(0,s.toDisposable)((()=>null==r?void 0:r.disconnect()))}},374:(e,t)=>{function i(e){return 57508<=e&&e<=57558}Object.defineProperty(t,"__esModule",{value:!0}),t.createRenderDimensions=t.excludeFromContrastRatioDemands=t.isRestrictedPowerlineGlyph=t.isPowerlineGlyph=t.throwIfFalsy=void 0,t.throwIfFalsy=function(e){if(!e)throw new Error("value must not be falsy");return e},t.isPowerlineGlyph=i,t.isRestrictedPowerlineGlyph=function(e){return 57520<=e&&e<=57527},t.excludeFromContrastRatioDemands=function(e){return i(e)||function(e){return 9472<=e&&e<=9631}(e)},t.createRenderDimensions=function(){return{css:{canvas:{width:0,height:0},cell:{width:0,height:0}},device:{canvas:{width:0,height:0},cell:{width:0,height:0},char:{width:0,height:0,left:0,top:0}}}}},296:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createSelectionRenderModel=void 0;class i{constructor(){this.clear()}clear(){this.hasSelection=!1,this.columnSelectMode=!1,this.viewportStartRow=0,this.viewportEndRow=0,this.viewportCappedStartRow=0,this.viewportCappedEndRow=0,this.startCol=0,this.endCol=0,this.selectionStart=void 0,this.selectionEnd=void 0}update(e,t,i,s=!1){if(this.selectionStart=t,this.selectionEnd=i,!t||!i||t[0]===i[0]&&t[1]===i[1])return void this.clear();const r=t[1]-e.buffer.active.viewportY,o=i[1]-e.buffer.active.viewportY,n=Math.max(r,0),a=Math.min(o,e.rows-1);n>=e.rows||a<0?this.clear():(this.hasSelection=!0,this.columnSelectMode=s,this.viewportStartRow=r,this.viewportEndRow=o,this.viewportCappedStartRow=n,this.viewportCappedEndRow=a,this.startCol=t[0],this.endCol=i[0])}isCellSelected(e,t,i){return!!this.hasSelection&&(i-=e.buffer.active.viewportY,this.columnSelectMode?this.startCol<=this.endCol?t>=this.startCol&&i>=this.viewportCappedStartRow&&t=this.viewportCappedStartRow&&t>=this.endCol&&i<=this.viewportCappedEndRow:i>this.viewportStartRow&&i=this.startCol&&t=this.startCol)}}t.createSelectionRenderModel=function(){return new i}},509:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextureAtlas=void 0;const s=i(237),r=i(855),o=i(147),n=i(160),a=i(860),h=i(374),l=i(485),c=i(385),d=i(345),_={texturePage:0,texturePosition:{x:0,y:0},texturePositionClipSpace:{x:0,y:0},offset:{x:0,y:0},size:{x:0,y:0},sizeClipSpace:{x:0,y:0}};let u;class g{constructor(e,t,i){this._document=e,this._config=t,this._unicodeService=i,this._didWarmUp=!1,this._cacheMap=new l.FourKeyMap,this._cacheMapCombined=new l.FourKeyMap,this._pages=[],this._activePages=[],this._workBoundingBox={top:0,left:0,bottom:0,right:0},this._workAttributeData=new o.AttributeData,this._textureSize=512,this._onAddTextureAtlasCanvas=new d.EventEmitter,this.onAddTextureAtlasCanvas=this._onAddTextureAtlasCanvas.event,this._onRemoveTextureAtlasCanvas=new d.EventEmitter,this.onRemoveTextureAtlasCanvas=this._onRemoveTextureAtlasCanvas.event,this._requestClearModel=!1,this._createNewPage(),this._tmpCanvas=C(e,4*this._config.deviceCellWidth+4,this._config.deviceCellHeight+4),this._tmpCtx=(0,h.throwIfFalsy)(this._tmpCanvas.getContext("2d",{alpha:this._config.allowTransparency,willReadFrequently:!0}))}get pages(){return this._pages}dispose(){for(const e of this.pages)e.canvas.remove();this._onAddTextureAtlasCanvas.dispose()}warmUp(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)}_doWarmUp(){const e=new c.IdleTaskQueue;for(let t=33;t<126;t++)e.enqueue((()=>{if(!this._cacheMap.get(t,r.DEFAULT_COLOR,r.DEFAULT_COLOR,r.DEFAULT_EXT)){const e=this._drawToCache(t,r.DEFAULT_COLOR,r.DEFAULT_COLOR,r.DEFAULT_EXT);this._cacheMap.set(t,r.DEFAULT_COLOR,r.DEFAULT_COLOR,r.DEFAULT_EXT,e)}}))}beginFrame(){return this._requestClearModel}clearTexture(){if(0!==this._pages[0].currentRow.x||0!==this._pages[0].currentRow.y){for(const e of this._pages)e.clear();this._cacheMap.clear(),this._cacheMapCombined.clear(),this._didWarmUp=!1}}_createNewPage(){g.maxAtlasPages&&this._pages.length>=Math.max(4,g.maxAtlasPages/2)&&queueMicrotask((()=>{const e=this._pages.filter((e=>2*e.canvas.width<=(g.maxTextureSize||4096))).sort(((e,t)=>t.canvas.width!==e.canvas.width?t.canvas.width-e.canvas.width:t.percentageUsed-e.percentageUsed));let t=-1,i=0;for(let a=0;ae.glyphs[0].texturePage)).sort(((e,t)=>e>t?1:-1)),o=r[0],n=this._mergePages(s,o);n.version++,this._pages[o]=n;for(let a=r.length-1;a>=1;a--)this._deletePage(r[a]);this._requestClearModel=!0,this._onAddTextureAtlasCanvas.fire(n.canvas)}));const e=new v(this._document,this._textureSize);return this._pages.push(e),this._activePages.push(e),this._onAddTextureAtlasCanvas.fire(e.canvas),e}_mergePages(e,t){const i=2*e[0].canvas.width,s=new v(this._document,i,e);for(const[r,o]of e.entries()){const e=r*o.canvas.width%i,n=Math.floor(r/2)*o.canvas.height;s.ctx.drawImage(o.canvas,e,n);for(const s of o.glyphs)s.texturePage=t,s.sizeClipSpace.x=s.size.x/i,s.sizeClipSpace.y=s.size.y/i,s.texturePosition.x+=e,s.texturePosition.y+=n,s.texturePositionClipSpace.x=s.texturePosition.x/i,s.texturePositionClipSpace.y=s.texturePosition.y/i;this._onRemoveTextureAtlasCanvas.fire(o.canvas);const a=this._activePages.indexOf(o);-1!==a&&this._activePages.splice(a,1)}return s}_deletePage(e){this._pages.splice(e,1);for(let t=e;t=this._config.colors.ansi.length)throw new Error("No color found for idx "+e);return this._config.colors.ansi[e]}_getBackgroundColor(e,t,i,r){if(this._config.allowTransparency)return n.NULL_COLOR;let a;switch(e){case 16777216:case 33554432:a=this._getColorFromAnsiIndex(t);break;case 50331648:const e=o.AttributeData.toColorRGB(t);a=n.rgba.toColor(e[0],e[1],e[2]);break;default:a=i?this._config.colors.foreground:this._config.colors.background}return r&&(a=n.color.blend(this._config.colors.background,n.color.multiplyOpacity(a,s.DIM_OPACITY))),a}_getForegroundColor(e,t,i,r,a,h,l,c,d,_){const u=this._getMinimumContrastColor(e,t,i,r,a,h,!1,d,_);if(u)return u;let g;switch(a){case 16777216:case 33554432:this._config.drawBoldTextInBrightColors&&d&&h<8&&(h+=8),g=this._getColorFromAnsiIndex(h);break;case 50331648:const e=o.AttributeData.toColorRGB(h);g=n.rgba.toColor(e[0],e[1],e[2]);break;default:g=l?this._config.colors.background:this._config.colors.foreground}return this._config.allowTransparency&&(g=n.color.opaque(g)),c&&(g=n.color.multiplyOpacity(g,s.DIM_OPACITY)),g}_resolveBackgroundRgba(e,t,i){switch(e){case 16777216:case 33554432:return this._getColorFromAnsiIndex(t).rgba;case 50331648:return t<<8;default:return i?this._config.colors.foreground.rgba:this._config.colors.background.rgba}}_resolveForegroundRgba(e,t,i,s){switch(e){case 16777216:case 33554432:return this._config.drawBoldTextInBrightColors&&s&&t<8&&(t+=8),this._getColorFromAnsiIndex(t).rgba;case 50331648:return t<<8;default:return i?this._config.colors.background.rgba:this._config.colors.foreground.rgba}}_getMinimumContrastColor(e,t,i,s,r,o,a,h,l){if(1===this._config.minimumContrastRatio||l)return;const c=this._config.colors.contrastCache.getColor(e,s);if(void 0!==c)return c||void 0;const d=this._resolveBackgroundRgba(t,i,a),_=this._resolveForegroundRgba(r,o,a,h),u=n.rgba.ensureContrastRatio(d,_,this._config.minimumContrastRatio);if(!u)return void this._config.colors.contrastCache.setColor(e,s,null);const g=n.rgba.toColor(u>>24&255,u>>16&255,u>>8&255);return this._config.colors.contrastCache.setColor(e,s,g),g}_drawToCache(e,t,i,r){const n="number"==typeof e?String.fromCharCode(e):e,l=this._config.deviceCellWidth*Math.max(n.length,2)+4;this._tmpCanvas.width=12&&!this._config.allowTransparency&&" "!==n){this._tmpCtx.save(),this._tmpCtx.textBaseline="alphabetic";const t=this._tmpCtx.measureText(n);if(this._tmpCtx.restore(),"actualBoundingBoxDescent"in t&&t.actualBoundingBoxDescent>0){this._tmpCtx.save();const t=new Path2D;t.rect(i,s-Math.ceil(e/2),this._config.deviceCellWidth,a-s+Math.ceil(e/2)),this._tmpCtx.clip(t),this._tmpCtx.lineWidth=3*this._config.devicePixelRatio,this._tmpCtx.strokeStyle=b.css,this._tmpCtx.strokeText(n,T,T+this._config.deviceCharHeight),this._tmpCtx.restore()}}}if(S||this._tmpCtx.fillText(n,T,T+this._config.deviceCharHeight),"_"===n&&!this._config.allowTransparency){let e=f(this._tmpCtx.getImageData(T,T,this._config.deviceCellWidth,this._config.deviceCellHeight),b,E,B);if(e)for(let t=1;t<=5&&(this._tmpCtx.save(),this._tmpCtx.fillStyle=b.css,this._tmpCtx.fillRect(0,0,this._tmpCanvas.width,this._tmpCanvas.height),this._tmpCtx.restore(),this._tmpCtx.fillText(n,T,T+this._config.deviceCharHeight-t),e=f(this._tmpCtx.getImageData(T,T,this._config.deviceCellWidth,this._config.deviceCellHeight),b,E,B),e);t++);}if(p){const e=Math.max(1,Math.floor(this._config.fontSize*this._config.devicePixelRatio/10)),t=this._tmpCtx.lineWidth%2==1?.5:0;this._tmpCtx.lineWidth=e,this._tmpCtx.strokeStyle=this._tmpCtx.fillStyle,this._tmpCtx.beginPath(),this._tmpCtx.moveTo(T,T+Math.floor(this._config.deviceCharHeight/2)-t),this._tmpCtx.lineTo(T+this._config.deviceCharWidth*D,T+Math.floor(this._config.deviceCharHeight/2)-t),this._tmpCtx.stroke()}this._tmpCtx.restore();const P=this._tmpCtx.getImageData(0,0,this._tmpCanvas.width,this._tmpCanvas.height);let F;if(F=this._config.allowTransparency?function(e){for(let t=0;t0)return!1;return!0}(P):f(P,b,E,B),F)return _;const I=this._findGlyphBoundingBox(P,this._workBoundingBox,l,A,S,T);let $,k;for(;;){if(0===this._activePages.length){const e=this._createNewPage();$=e,k=e.currentRow,k.height=I.size.y;break}$=this._activePages[this._activePages.length-1],k=$.currentRow;for(const e of this._activePages)I.size.y<=e.currentRow.height&&($=e,k=e.currentRow);for(let e=this._activePages.length-1;e>=0;e--)for(const t of this._activePages[e].fixedRows)t.height<=k.height&&I.size.y<=t.height&&($=this._activePages[e],k=t);if(k.y+I.size.y>=$.canvas.height||k.height>I.size.y+2){let e=!1;if($.currentRow.y+$.currentRow.height+I.size.y>=$.canvas.height){let t;for(const e of this._activePages)if(e.currentRow.y+e.currentRow.height+I.size.y0&&$.fixedRows.push($.currentRow),k={x:0,y:$.currentRow.y+$.currentRow.height,height:I.size.y},$.fixedRows.push(k),$.currentRow={x:0,y:k.y+k.height,height:0})}if(k.x+I.size.x<=$.canvas.width)break;k===$.currentRow?(k.x=0,k.y+=k.height,k.height=0):$.fixedRows.splice($.fixedRows.indexOf(k),1)}return I.texturePage=this._pages.indexOf($),I.texturePosition.x=k.x,I.texturePosition.y=k.y,I.texturePositionClipSpace.x=k.x/$.canvas.width,I.texturePositionClipSpace.y=k.y/$.canvas.height,I.sizeClipSpace.x/=$.canvas.width,I.sizeClipSpace.y/=$.canvas.height,k.height=Math.max(k.height,I.size.y),k.x+=I.size.x,$.ctx.putImageData(P,I.texturePosition.x-this._workBoundingBox.left,I.texturePosition.y-this._workBoundingBox.top,this._workBoundingBox.left,this._workBoundingBox.top,I.size.x,I.size.y),$.addGlyph(I),$.version++,I}_findGlyphBoundingBox(e,t,i,s,r,o){t.top=0;const n=s?this._config.deviceCellHeight:this._tmpCanvas.height,a=s?this._config.deviceCellWidth:i;let h=!1;for(let l=0;l=o;l--){for(let i=0;i=0;l--){for(let i=0;i>>24,o=t.rgba>>>16&255,n=t.rgba>>>8&255,a=i.rgba>>>24,h=i.rgba>>>16&255,l=i.rgba>>>8&255,c=Math.floor((Math.abs(r-a)+Math.abs(o-h)+Math.abs(n-l))/12);let d=!0;for(let _=0;_{Object.defineProperty(t,"__esModule",{value:!0}),t.contrastRatio=t.toPaddedHex=t.rgba=t.rgb=t.css=t.color=t.channels=t.NULL_COLOR=void 0;const s=i(399);let r=0,o=0,n=0,a=0;var h,l,c;function d(e){const t=e.toString(16);return t.length<2?"0"+t:t}function _(e,t){return e>>0}}(h=t.channels||(t.channels={})),function(e){function t(e,t){return a=Math.round(255*t),[r,o,n]=c.toChannels(e.rgba),{css:h.toCss(r,o,n,a),rgba:h.toRgba(r,o,n,a)}}e.blend=function(e,t){if(a=(255&t.rgba)/255,1===a)return{css:t.css,rgba:t.rgba};const i=t.rgba>>24&255,s=t.rgba>>16&255,l=t.rgba>>8&255,c=e.rgba>>24&255,d=e.rgba>>16&255,_=e.rgba>>8&255;return r=c+Math.round((i-c)*a),o=d+Math.round((s-d)*a),n=_+Math.round((l-_)*a),{css:h.toCss(r,o,n),rgba:h.toRgba(r,o,n)}},e.isOpaque=function(e){return 255==(255&e.rgba)},e.ensureContrastRatio=function(e,t,i){const s=c.ensureContrastRatio(e.rgba,t.rgba,i);if(s)return c.toColor(s>>24&255,s>>16&255,s>>8&255)},e.opaque=function(e){const t=(255|e.rgba)>>>0;return[r,o,n]=c.toChannels(t),{css:h.toCss(r,o,n),rgba:t}},e.opacity=t,e.multiplyOpacity=function(e,i){return a=255&e.rgba,t(e,a*i/255)},e.toColorRGB=function(e){return[e.rgba>>24&255,e.rgba>>16&255,e.rgba>>8&255]}}(t.color||(t.color={})),function(e){let t,i;if(!s.isNode){const e=document.createElement("canvas");e.width=1,e.height=1;const s=e.getContext("2d",{willReadFrequently:!0});s&&(t=s,t.globalCompositeOperation="copy",i=t.createLinearGradient(0,0,1,1))}e.toColor=function(e){if(e.match(/#[\da-f]{3,8}/i))switch(e.length){case 4:return r=parseInt(e.slice(1,2).repeat(2),16),o=parseInt(e.slice(2,3).repeat(2),16),n=parseInt(e.slice(3,4).repeat(2),16),c.toColor(r,o,n);case 5:return r=parseInt(e.slice(1,2).repeat(2),16),o=parseInt(e.slice(2,3).repeat(2),16),n=parseInt(e.slice(3,4).repeat(2),16),a=parseInt(e.slice(4,5).repeat(2),16),c.toColor(r,o,n,a);case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}const s=e.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(s)return r=parseInt(s[1]),o=parseInt(s[2]),n=parseInt(s[3]),a=Math.round(255*(void 0===s[5]?1:parseFloat(s[5]))),c.toColor(r,o,n,a);if(!t||!i)throw new Error("css.toColor: Unsupported css format");if(t.fillStyle=i,t.fillStyle=e,"string"!=typeof t.fillStyle)throw new Error("css.toColor: Unsupported css format");if(t.fillRect(0,0,1,1),[r,o,n,a]=t.getImageData(0,0,1,1).data,255!==a)throw new Error("css.toColor: Unsupported css format");return{rgba:h.toRgba(r,o,n,a),css:e}}}(t.css||(t.css={})),function(e){function t(e,t,i){const s=e/255,r=t/255,o=i/255;return.2126*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))}e.relativeLuminance=function(e){return t(e>>16&255,e>>8&255,255&e)},e.relativeLuminance2=t}(l=t.rgb||(t.rgb={})),function(e){function t(e,t,i){const s=e>>24&255,r=e>>16&255,o=e>>8&255;let n=t>>24&255,a=t>>16&255,h=t>>8&255,c=_(l.relativeLuminance2(n,a,h),l.relativeLuminance2(s,r,o));for(;c0||a>0||h>0);)n-=Math.max(0,Math.ceil(.1*n)),a-=Math.max(0,Math.ceil(.1*a)),h-=Math.max(0,Math.ceil(.1*h)),c=_(l.relativeLuminance2(n,a,h),l.relativeLuminance2(s,r,o));return(n<<24|a<<16|h<<8|255)>>>0}function i(e,t,i){const s=e>>24&255,r=e>>16&255,o=e>>8&255;let n=t>>24&255,a=t>>16&255,h=t>>8&255,c=_(l.relativeLuminance2(n,a,h),l.relativeLuminance2(s,r,o));for(;c>>0}e.ensureContrastRatio=function(e,s,r){const o=l.relativeLuminance(e>>8),n=l.relativeLuminance(s>>8);if(_(o,n)>8));if(a_(o,l.relativeLuminance(t>>8))?n:t}return n}const a=i(e,s,r),h=_(o,l.relativeLuminance(a>>8));if(h_(o,l.relativeLuminance(i>>8))?a:i}return a}},e.reduceLuminance=t,e.increaseLuminance=i,e.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},e.toColor=function(e,t,i,s){return{css:h.toCss(e,t,i,s),rgba:h.toRgba(e,t,i,s)}}}(c=t.rgba||(t.rgba={})),t.toPaddedHex=d,t.contrastRatio=_},345:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.forwardEvent=t.EventEmitter=void 0,t.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=e=>(this._listeners.push(e),{dispose:()=>{if(!this._disposed)for(let t=0;tt.fire(e)))}},859:(e,t)=>{function i(e){for(const t of e)t.dispose();e.length=0}Object.defineProperty(t,"__esModule",{value:!0}),t.getDisposeArrayDisposable=t.disposeArray=t.toDisposable=t.Disposable=void 0,t.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const e of this._disposables)e.dispose();this._disposables.length=0}register(e){return this._disposables.push(e),e}unregister(e){const t=this._disposables.indexOf(e);-1!==t&&this._disposables.splice(t,1)}},t.toDisposable=function(e){return{dispose:e}},t.disposeArray=i,t.getDisposeArrayDisposable=function(e){return{dispose:()=>i(e)}}},485:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FourKeyMap=t.TwoKeyMap=void 0;class i{constructor(){this._data={}}set(e,t,i){this._data[e]||(this._data[e]={}),this._data[e][t]=i}get(e,t){return this._data[e]?this._data[e][t]:void 0}clear(){this._data={}}}t.TwoKeyMap=i,t.FourKeyMap=class{constructor(){this._data=new i}set(e,t,s,r,o){this._data.get(e,t)||this._data.set(e,t,new i),this._data.get(e,t).set(s,r,o)}get(e,t,i,s){var r;return null===(r=this._data.get(e,t))||void 0===r?void 0:r.get(i,s)}clear(){this._data.clear()}}},399:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isChromeOS=t.isLinux=t.isWindows=t.isIphone=t.isIpad=t.isMac=t.getSafariVersion=t.isSafari=t.isLegacyEdge=t.isFirefox=t.isNode=void 0,t.isNode="undefined"==typeof navigator;const i=t.isNode?"node":navigator.userAgent,s=t.isNode?"node":navigator.platform;t.isFirefox=i.includes("Firefox"),t.isLegacyEdge=i.includes("Edge"),t.isSafari=/^((?!chrome|android).)*safari/i.test(i),t.getSafariVersion=function(){if(!t.isSafari)return 0;const e=i.match(/Version\/(\d+)/);return null===e||e.length<2?0:parseInt(e[1])},t.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(s),t.isIpad="iPad"===s,t.isIphone="iPhone"===s,t.isWindows=["Windows","Win16","Win32","WinCE"].includes(s),t.isLinux=s.indexOf("Linux")>=0,t.isChromeOS=/\bCrOS\b/.test(i)},385:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DebouncedIdleTask=t.IdleTaskQueue=t.PriorityTaskQueue=void 0;const s=i(399);class r{constructor(){this._tasks=[],this._i=0}enqueue(e){this._tasks.push(e),this._start()}flush(){for(;this._ir)return s-t<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(s-t))}ms`),void this._start();s=r}this.clear()}}class o extends r{_requestCallback(e){return setTimeout((()=>e(this._createDeadline(16))))}_cancelCallback(e){clearTimeout(e)}_createDeadline(e){const t=Date.now()+e;return{timeRemaining:()=>Math.max(0,t-Date.now())}}}t.PriorityTaskQueue=o,t.IdleTaskQueue=!s.isNode&&"requestIdleCallback"in window?class extends r{_requestCallback(e){return requestIdleCallback(e)}_cancelCallback(e){cancelIdleCallback(e)}}:o,t.DebouncedIdleTask=class{constructor(){this._queue=new t.IdleTaskQueue}set(e){this._queue.clear(),this._queue.enqueue(e)}flush(){this._queue.flush()}}},147:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedAttrs=t.AttributeData=void 0;class i{constructor(){this.fg=0,this.bg=0,this.extended=new s}static toColorRGB(e){return[e>>>16&255,e>>>8&255,255&e]}static fromColorRGB(e){return(255&e[0])<<16|(255&e[1])<<8|255&e[2]}clone(){const e=new i;return e.fg=this.fg,e.bg=this.bg,e.extended=this.extended.clone(),e}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&0!==this.extended.underlineStyle?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return 50331648==(50331648&this.fg)}isBgRGB(){return 50331648==(50331648&this.bg)}isFgPalette(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)}isBgPalette(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)}isFgDefault(){return 0==(50331648&this.fg)}isBgDefault(){return 0==(50331648&this.bg)}isAttributeDefault(){return 0===this.fg&&0===this.bg}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}}t.AttributeData=i;class s{constructor(e=0,t=0){this._ext=0,this._urlId=0,this._ext=e,this._urlId=t}get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(e){this._ext=e}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(e){this._ext&=-469762049,this._ext|=e<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(e){this._ext&=-67108864,this._ext|=67108863&e}get urlId(){return this._urlId}set urlId(e){this._urlId=e}clone(){return new s(this._ext,this._urlId)}isEmpty(){return 0===this.underlineStyle&&0===this._urlId}}t.ExtendedAttrs=s},782:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CellData=void 0;const s=i(133),r=i(855),o=i(147);class n extends o.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new o.ExtendedAttrs,this.combinedData=""}static fromCharData(e){const t=new n;return t.setFromCharData(e),t}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,s.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(e){this.fg=e[r.CHAR_DATA_ATTR_INDEX],this.bg=0;let t=!1;if(e[r.CHAR_DATA_CHAR_INDEX].length>2)t=!0;else if(2===e[r.CHAR_DATA_CHAR_INDEX].length){const i=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=i&&i<=56319){const s=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=s&&s<=57343?this.content=1024*(i-55296)+s-56320+65536|e[r.CHAR_DATA_WIDTH_INDEX]<<22:t=!0}else t=!0}else this.content=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|e[r.CHAR_DATA_WIDTH_INDEX]<<22;t&&(this.combinedData=e[r.CHAR_DATA_CHAR_INDEX],this.content=2097152|e[r.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}t.CellData=n},855:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WHITESPACE_CELL_CODE=t.WHITESPACE_CELL_WIDTH=t.WHITESPACE_CELL_CHAR=t.NULL_CELL_CODE=t.NULL_CELL_WIDTH=t.NULL_CELL_CHAR=t.CHAR_DATA_CODE_INDEX=t.CHAR_DATA_WIDTH_INDEX=t.CHAR_DATA_CHAR_INDEX=t.CHAR_DATA_ATTR_INDEX=t.DEFAULT_EXT=t.DEFAULT_ATTR=t.DEFAULT_COLOR=void 0,t.DEFAULT_COLOR=0,t.DEFAULT_ATTR=256|t.DEFAULT_COLOR<<9,t.DEFAULT_EXT=0,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.NULL_CELL_CHAR="",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=0,t.WHITESPACE_CELL_CHAR=" ",t.WHITESPACE_CELL_WIDTH=1,t.WHITESPACE_CELL_CODE=32},133:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8ToUtf32=t.StringToUtf32=t.utf32ToString=t.stringFromCodePoint=void 0,t.stringFromCodePoint=function(e){return e>65535?(e-=65536,String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)},t.utf32ToString=function(e,t=0,i=e.length){let s="";for(let r=t;r65535?(t-=65536,s+=String.fromCharCode(55296+(t>>10))+String.fromCharCode(t%1024+56320)):s+=String.fromCharCode(t)}return s},t.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){const i=e.length;if(!i)return 0;let s=0,r=0;if(this._interim){const i=e.charCodeAt(r++);56320<=i&&i<=57343?t[s++]=1024*(this._interim-55296)+i-56320+65536:(t[s++]=this._interim,t[s++]=i),this._interim=0}for(let o=r;o=i)return this._interim=r,s;const n=e.charCodeAt(o);56320<=n&&n<=57343?t[s++]=1024*(r-55296)+n-56320+65536:(t[s++]=r,t[s++]=n)}else 65279!==r&&(t[s++]=r)}return s}},t.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){const i=e.length;if(!i)return 0;let s,r,o,n,a=0,h=0,l=0;if(this.interim[0]){let s=!1,r=this.interim[0];r&=192==(224&r)?31:224==(240&r)?15:7;let o,n=0;for(;(o=63&this.interim[++n])&&n<4;)r<<=6,r|=o;const h=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,c=h-n;for(;l=i)return 0;if(o=e[l++],128!=(192&o)){l--,s=!0;break}this.interim[n++]=o,r<<=6,r|=63&o}s||(2===h?r<128?l--:t[a++]=r:3===h?r<2048||r>=55296&&r<=57343||65279===r||(t[a++]=r):r<65536||r>1114111||(t[a++]=r)),this.interim.fill(0)}const c=i-4;let d=l;for(;d=i)return this.interim[0]=s,a;if(r=e[d++],128!=(192&r)){d--;continue}if(h=(31&s)<<6|63&r,h<128){d--;continue}t[a++]=h}else if(224==(240&s)){if(d>=i)return this.interim[0]=s,a;if(r=e[d++],128!=(192&r)){d--;continue}if(d>=i)return this.interim[0]=s,this.interim[1]=r,a;if(o=e[d++],128!=(192&o)){d--;continue}if(h=(15&s)<<12|(63&r)<<6|63&o,h<2048||h>=55296&&h<=57343||65279===h)continue;t[a++]=h}else if(240==(248&s)){if(d>=i)return this.interim[0]=s,a;if(r=e[d++],128!=(192&r)){d--;continue}if(d>=i)return this.interim[0]=s,this.interim[1]=r,a;if(o=e[d++],128!=(192&o)){d--;continue}if(d>=i)return this.interim[0]=s,this.interim[1]=r,this.interim[2]=o,a;if(n=e[d++],128!=(192&n)){d--;continue}if(h=(7&s)<<18|(63&r)<<12|(63&o)<<6|63&n,h<65536||h>1114111)continue;t[a++]=h}}return a}}}},t={};function i(s){var r=t[s];if(void 0!==r)return r.exports;var o=t[s]={exports:{}};return e[s](o,o.exports,i),o.exports}var s={};return(()=>{var e=s;Object.defineProperty(e,"__esModule",{value:!0}),e.WebglAddon=void 0;const t=i(345),r=i(859),o=i(399),n=i(666);class a extends r.Disposable{constructor(e){if(o.isSafari&&(0,o.getSafariVersion)()<16)throw new Error("Webgl2 is only supported on Safari 16 and above");super(),this._preserveDrawingBuffer=e,this._onChangeTextureAtlas=this.register(new t.EventEmitter),this.onChangeTextureAtlas=this._onChangeTextureAtlas.event,this._onAddTextureAtlasCanvas=this.register(new t.EventEmitter),this.onAddTextureAtlasCanvas=this._onAddTextureAtlasCanvas.event,this._onRemoveTextureAtlasCanvas=this.register(new t.EventEmitter),this.onRemoveTextureAtlasCanvas=this._onRemoveTextureAtlasCanvas.event,this._onContextLoss=this.register(new t.EventEmitter),this.onContextLoss=this._onContextLoss.event}activate(e){const i=e._core;if(!e.element)return void this.register(i.onWillOpen((()=>this.activate(e))));this._terminal=e;const s=i.coreService,o=i.optionsService,a=i,h=a._renderService,l=a._characterJoinerService,c=a._charSizeService,d=a._coreBrowserService,_=a._decorationService,u=a._themeService;this._renderer=this.register(new n.WebglRenderer(e,l,c,d,s,_,o,u,this._preserveDrawingBuffer)),this.register((0,t.forwardEvent)(this._renderer.onContextLoss,this._onContextLoss)),this.register((0,t.forwardEvent)(this._renderer.onChangeTextureAtlas,this._onChangeTextureAtlas)),this.register((0,t.forwardEvent)(this._renderer.onAddTextureAtlasCanvas,this._onAddTextureAtlasCanvas)),this.register((0,t.forwardEvent)(this._renderer.onRemoveTextureAtlasCanvas,this._onRemoveTextureAtlasCanvas)),h.setRenderer(this._renderer),this.register((0,r.toDisposable)((()=>{const t=this._terminal._core._renderService;t.setRenderer(this._terminal._core._createRenderer()),t.handleResize(e.cols,e.rows)})))}get textureAtlas(){var e;return null===(e=this._renderer)||void 0===e?void 0:e.textureAtlas}clearTextureAtlas(){var e;null===(e=this._renderer)||void 0===e||e.clearTextureAtlas()}}e.WebglAddon=a})(),s})()}))}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/2929.b88233153dbf33f40b29.js b/bootcamp/share/jupyter/lab/static/2929.b88233153dbf33f40b29.js new file mode 100644 index 0000000..62de32c --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/2929.b88233153dbf33f40b29.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[2929],{42929:(e,t,n)=>{n.r(t);n.d(t,{ruby:()=>b});function r(e){var t={};for(var n=0,r=e.length;n]/)){e.eat(/[\<\>]/);return"atom"}if(e.eat(/[\+\-\*\/\&\|\:\!]/)){return"atom"}if(e.eat(/[a-zA-Z$@_\xa1-\uffff]/)){e.eatWhile(/[\w$\xa1-\uffff]/);e.eat(/[\?\!\=]/);return"atom"}return"operator"}else if(n=="@"&&e.match(/^@?[a-zA-Z_\xa1-\uffff]/)){e.eat("@");e.eatWhile(/[\w\xa1-\uffff]/);return"propertyName"}else if(n=="$"){if(e.eat(/[a-zA-Z_]/)){e.eatWhile(/[\w]/)}else if(e.eat(/\d/)){e.eat(/\d/)}else{e.next()}return"variableName.special"}else if(/[a-zA-Z_\xa1-\uffff]/.test(n)){e.eatWhile(/[\w\xa1-\uffff]/);e.eat(/[\?\!]/);if(e.eat(":"))return"atom";return"variable"}else if(n=="|"&&(t.varList||t.lastTok=="{"||t.lastTok=="do")){s="|";return null}else if(/[\(\)\[\]{}\\;]/.test(n)){s=n;return null}else if(n=="-"&&e.eat(">")){return"operator"}else if(/[=+\-\/*:\.^%<>~|]/.test(n)){var o=e.eatWhile(/[=+\-\/*:\.^%<>~|]/);if(n=="."&&!o)s=".";return"operator"}else{return null}}function d(e){var t=e.pos,n=0,r,i=false,a=false;while((r=e.next())!=null){if(!a){if("[{(".indexOf(r)>-1){n++}else if("]})".indexOf(r)>-1){n--;if(n<0)break}else if(r=="/"&&n==0){i=true;break}a=r=="\\"}else{a=false}}e.backUp(e.pos-t);return i}function k(e){if(!e)e=1;return function(t,n){if(t.peek()=="}"){if(e==1){n.tokenize.pop();return n.tokenize[n.tokenize.length-1](t,n)}else{n.tokenize[n.tokenize.length-1]=k(e-1)}}else if(t.peek()=="{"){n.tokenize[n.tokenize.length-1]=k(e+1)}return p(t,n)}}function h(){var e=false;return function(t,n){if(e){n.tokenize.pop();return n.tokenize[n.tokenize.length-1](t,n)}e=true;return p(t,n)}}function m(e,t,n,r){return function(i,a){var l=false,o;if(a.context.type==="read-quoted-paused"){a.context=a.context.prev;i.eat("}")}while((o=i.next())!=null){if(o==e&&(r||!l)){a.tokenize.pop();break}if(n&&o=="#"&&!l){if(i.eat("{")){if(e=="}"){a.context={prev:a.context,type:"read-quoted-paused"}}a.tokenize.push(k());break}else if(/[@\$]/.test(i.peek())){a.tokenize.push(h());break}}l=!l&&o=="\\"}return t}}function v(e,t){return function(n,r){if(t)n.eatSpace();if(n.match(e))r.tokenize.pop();else n.skipToEnd();return"string"}}function _(e,t){if(e.sol()&&e.match("=end")&&e.eol())t.tokenize.pop();e.skipToEnd();return"comment"}const b={name:"ruby",startState:function(e){return{tokenize:[p],indented:0,context:{type:"top",indented:-e},continuedLine:false,lastTok:null,varList:false}},token:function(e,t){s=null;if(e.sol())t.indented=e.indentation();var n=t.tokenize[t.tokenize.length-1](e,t),r;var i=s;if(n=="variable"){var f=e.current();n=t.lastTok=="."?"property":a.propertyIsEnumerable(e.current())?"keyword":/^[A-Z]/.test(f)?"tag":t.lastTok=="def"||t.lastTok=="class"||t.varList?"def":"variable";if(n=="keyword"){i=f;if(l.propertyIsEnumerable(f))r="indent";else if(o.propertyIsEnumerable(f))r="dedent";else if((f=="if"||f=="unless")&&e.column()==e.indentation())r="indent";else if(f=="do"&&t.context.indented{Object.defineProperty(e,"__esModule",{value:true});e.newState=e.STATE=e.AbstractMathItem=e.protoItem=void 0;function r(t,e,r,n,o,i,s){if(s===void 0){s=null}var a={open:t,math:e,close:r,n,start:{n:o},end:{n:i},display:s};return a}e.protoItem=r;var n=function(){function t(t,r,n,o,i){if(n===void 0){n=true}if(o===void 0){o={i:0,n:0,delim:""}}if(i===void 0){i={i:0,n:0,delim:""}}this.root=null;this.typesetRoot=null;this.metrics={};this.inputData={};this.outputData={};this._state=e.STATE.UNPROCESSED;this.math=t;this.inputJax=r;this.display=n;this.start=o;this.end=i;this.root=null;this.typesetRoot=null;this.metrics={};this.inputData={};this.outputData={}}Object.defineProperty(t.prototype,"isEscaped",{get:function(){return this.display===null},enumerable:false,configurable:true});t.prototype.render=function(t){t.renderActions.renderMath(this,t)};t.prototype.rerender=function(t,r){if(r===void 0){r=e.STATE.RERENDER}if(this.state()>=r){this.state(r-1)}t.renderActions.renderMath(this,t,r)};t.prototype.convert=function(t,r){if(r===void 0){r=e.STATE.LAST}t.renderActions.renderConvert(this,t,r)};t.prototype.compile=function(t){if(this.state()=e.STATE.INSERTED){this.removeFromDocument(r)}if(t=e.STATE.TYPESET){this.outputData={}}if(t=e.STATE.COMPILED){this.inputData={}}this._state=t}return this._state};t.prototype.reset=function(t){if(t===void 0){t=false}this.state(e.STATE.UNPROCESSED,t)};return t}();e.AbstractMathItem=n;e.STATE={UNPROCESSED:0,FINDMATH:10,COMPILED:20,CONVERT:100,METRICS:110,RERENDER:125,TYPESET:150,INSERTED:200,LAST:1e4};function o(t,r){if(t in e.STATE){throw Error("State "+t+" already exists")}e.STATE[t]=r}e.newState=o},66846:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var o=this&&this.__assign||function(){o=Object.assign||function(t){for(var e,r=1,n=arguments.length;rthis.childNodes.length){t=1}this.attributes.set("selection",t)};e.defaults=o(o({},i.AbstractMmlNode.defaults),{actiontype:"toggle",selection:1});return e}(i.AbstractMmlNode);e.MmlMaction=s},27225:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var o=this&&this.__assign||function(){o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.MmlMfenced=void 0;var s=r(18426);var a=function(t){n(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e.texclass=s.TEXCLASS.INNER;e.separators=[];e.open=null;e.close=null;return e}Object.defineProperty(e.prototype,"kind",{get:function(){return"mfenced"},enumerable:false,configurable:true});e.prototype.setTeXclass=function(t){this.getPrevClass(t);if(this.open){t=this.open.setTeXclass(t)}if(this.childNodes[0]){t=this.childNodes[0].setTeXclass(t)}for(var e=1,r=this.childNodes.length;e=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.MmlMfrac=void 0;var s=r(18426);var a=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"kind",{get:function(){return"mfrac"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"arity",{get:function(){return 2},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"linebreakContainer",{get:function(){return true},enumerable:false,configurable:true});e.prototype.setTeXclass=function(t){var e,r;this.getPrevClass(t);try{for(var n=i(this.childNodes),o=n.next();!o.done;o=n.next()){var s=o.value;s.setTeXclass(null)}}catch(a){e={error:a}}finally{try{if(o&&!o.done&&(r=n.return))r.call(n)}finally{if(e)throw e.error}}return this};e.prototype.setChildInheritedAttributes=function(t,e,r,n){if(!e||r>0){r++}this.childNodes[0].setInheritedAttributes(t,false,r,n);this.childNodes[1].setInheritedAttributes(t,false,r,true)};e.defaults=o(o({},s.AbstractMmlBaseNode.defaults),{linethickness:"medium",numalign:"center",denomalign:"center",bevelled:false});return e}(s.AbstractMmlBaseNode);e.MmlMfrac=a},83954:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var o=this&&this.__assign||function(){o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r1&&r.match(e.operatorName)&&this.attributes.get("mathvariant")==="normal"&&this.getProperty("autoOP")===undefined&&this.getProperty("texClass")===undefined){this.texClass=i.TEXCLASS.OP;this.setProperty("autoOP",true)}return this};e.defaults=o({},i.AbstractMmlTokenNode.defaults);e.operatorName=/^[a-z][a-z0-9]*$/i;e.singleCharacter=/^[\uD800-\uDBFF]?.[\u0300-\u036F\u1AB0-\u1ABE\u1DC0-\u1DFF\u20D0-\u20EF]*$/;return e}(i.AbstractMmlTokenNode);e.MmlMi=s},13195:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var o=this&&this.__assign||function(){o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.MmlInferredMrow=e.MmlMrow=void 0;var s=r(18426);var a=function(t){n(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e._core=null;return e}Object.defineProperty(e.prototype,"kind",{get:function(){return"mrow"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isSpacelike",{get:function(){var t,e;try{for(var r=i(this.childNodes),n=r.next();!n.done;n=r.next()){var o=n.value;if(!o.isSpacelike){return false}}}catch(s){t={error:s}}finally{try{if(n&&!n.done&&(e=r.return))e.call(r)}finally{if(t)throw t.error}}return true},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isEmbellished",{get:function(){var t,e;var r=false;var n=0;try{for(var o=i(this.childNodes),s=o.next();!s.done;s=o.next()){var a=s.value;if(a){if(a.isEmbellished){if(r){return false}r=true;this._core=n}else if(!a.isSpacelike){return false}}n++}}catch(l){t={error:l}}finally{try{if(s&&!s.done&&(e=o.return))e.call(o)}finally{if(t)throw t.error}}return r},enumerable:false,configurable:true});e.prototype.core=function(){if(!this.isEmbellished||this._core==null){return this}return this.childNodes[this._core]};e.prototype.coreMO=function(){if(!this.isEmbellished||this._core==null){return this}return this.childNodes[this._core].coreMO()};e.prototype.nonSpaceLength=function(){var t,e;var r=0;try{for(var n=i(this.childNodes),o=n.next();!o.done;o=n.next()){var s=o.value;if(s&&!s.isSpacelike){r++}}}catch(a){t={error:a}}finally{try{if(o&&!o.done&&(e=n.return))e.call(n)}finally{if(t)throw t.error}}return r};e.prototype.firstNonSpace=function(){var t,e;try{for(var r=i(this.childNodes),n=r.next();!n.done;n=r.next()){var o=n.value;if(o&&!o.isSpacelike){return o}}}catch(s){t={error:s}}finally{try{if(n&&!n.done&&(e=r.return))e.call(r)}finally{if(t)throw t.error}}return null};e.prototype.lastNonSpace=function(){var t=this.childNodes.length;while(--t>=0){var e=this.childNodes[t];if(e&&!e.isSpacelike){return e}}return null};e.prototype.setTeXclass=function(t){var e,r,n,o;if(this.getProperty("open")!=null||this.getProperty("close")!=null){this.getPrevClass(t);t=null;try{for(var a=i(this.childNodes),l=a.next();!l.done;l=a.next()){var u=l.value;t=u.setTeXclass(t)}}catch(p){e={error:p}}finally{try{if(l&&!l.done&&(r=a.return))r.call(a)}finally{if(e)throw e.error}}if(this.texClass==null){this.texClass=s.TEXCLASS.INNER}}else{try{for(var c=i(this.childNodes),f=c.next();!f.done;f=c.next()){var u=f.value;t=u.setTeXclass(t)}}catch(h){n={error:h}}finally{try{if(f&&!f.done&&(o=c.return))o.call(c)}finally{if(n)throw n.error}}if(this.childNodes[0]){this.updateTeXclass(this.childNodes[0])}}return t};e.defaults=o({},s.AbstractMmlNode.defaults);return e}(s.AbstractMmlNode);e.MmlMrow=a;var l=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"kind",{get:function(){return"inferredMrow"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isInferred",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"notParent",{get:function(){return true},enumerable:false,configurable:true});e.prototype.toString=function(){return"["+this.childNodes.join(",")+"]"};e.defaults=a.defaults;return e}(a);e.MmlInferredMrow=l},17931:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var o=this&&this.__assign||function(){o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.MmlMtable=void 0;var s=r(18426);var a=r(33353);var l=function(t){n(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e.properties={useHeight:true};e.texclass=s.TEXCLASS.ORD;return e}Object.defineProperty(e.prototype,"kind",{get:function(){return"mtable"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"linebreakContainer",{get:function(){return true},enumerable:false,configurable:true});e.prototype.setInheritedAttributes=function(e,r,n,o){var a,l;try{for(var u=i(s.indentAttributes),c=u.next();!c.done;c=u.next()){var f=c.value;if(e[f]){this.attributes.setInherited(f,e[f][1])}if(this.attributes.getExplicit(f)!==undefined){delete this.attributes.getAllAttributes()[f]}}}catch(p){a={error:p}}finally{try{if(c&&!c.done&&(l=u.return))l.call(u)}finally{if(a)throw a.error}}t.prototype.setInheritedAttributes.call(this,e,r,n,o)};e.prototype.setChildInheritedAttributes=function(t,e,r,n){var o,s,l,u;try{for(var c=i(this.childNodes),f=c.next();!f.done;f=c.next()){var p=f.value;if(!p.isKind("mtr")){this.replaceChild(this.factory.create("mtr"),p).appendChild(p)}}}catch(v){o={error:v}}finally{try{if(f&&!f.done&&(s=c.return))s.call(c)}finally{if(o)throw o.error}}r=this.getProperty("scriptlevel")||r;e=!!(this.attributes.getExplicit("displaystyle")||this.attributes.getDefault("displaystyle"));t=this.addInheritedAttributes(t,{columnalign:this.attributes.get("columnalign"),rowalign:"center"});var h=this.attributes.getExplicit("data-cramped");var d=(0,a.split)(this.attributes.get("rowalign"));try{for(var y=i(this.childNodes),b=y.next();!b.done;b=y.next()){var p=b.value;t.rowalign[1]=d.shift()||t.rowalign[1];p.setInheritedAttributes(t,e,r,!!h)}}catch(g){l={error:g}}finally{try{if(b&&!b.done&&(u=y.return))u.call(y)}finally{if(l)throw l.error}}};e.prototype.verifyChildren=function(e){var r=null;var n=this.factory;for(var o=0;o=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.MmlMlabeledtr=e.MmlMtr=void 0;var s=r(18426);var a=r(7013);var l=r(33353);var u=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"kind",{get:function(){return"mtr"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"linebreakContainer",{get:function(){return true},enumerable:false,configurable:true});e.prototype.setChildInheritedAttributes=function(t,e,r,n){var o,s,a,u;try{for(var c=i(this.childNodes),f=c.next();!f.done;f=c.next()){var p=f.value;if(!p.isKind("mtd")){this.replaceChild(this.factory.create("mtd"),p).appendChild(p)}}}catch(b){o={error:b}}finally{try{if(f&&!f.done&&(s=c.return))s.call(c)}finally{if(o)throw o.error}}var h=(0,l.split)(this.attributes.get("columnalign"));if(this.arity===1){h.unshift(this.parent.attributes.get("side"))}t=this.addInheritedAttributes(t,{rowalign:this.attributes.get("rowalign"),columnalign:"center"});try{for(var d=i(this.childNodes),y=d.next();!y.done;y=d.next()){var p=y.value;t.columnalign[1]=h.shift()||t.columnalign[1];p.setInheritedAttributes(t,e,r,n)}}catch(v){a={error:v}}finally{try{if(y&&!y.done&&(u=d.return))u.call(d)}finally{if(a)throw a.error}}};e.prototype.verifyChildren=function(e){var r,n;if(this.parent&&!this.parent.isKind("mtable")){this.mError(this.kind+" can only be a child of an mtable",e,true);return}try{for(var o=i(this.childNodes),s=o.next();!s.done;s=o.next()){var a=s.value;if(!a.isKind("mtd")){var l=this.replaceChild(this.factory.create("mtd"),a);l.appendChild(a);if(!e["fixMtables"]){a.mError("Children of "+this.kind+" must be mtd",e)}}}}catch(u){r={error:u}}finally{try{if(s&&!s.done&&(n=o.return))n.call(o)}finally{if(r)throw r.error}}t.prototype.verifyChildren.call(this,e)};e.prototype.setTeXclass=function(t){var e,r;this.getPrevClass(t);try{for(var n=i(this.childNodes),o=n.next();!o.done;o=n.next()){var s=o.value;s.setTeXclass(null)}}catch(a){e={error:a}}finally{try{if(o&&!o.done&&(r=n.return))r.call(n)}finally{if(e)throw e.error}}return this};e.defaults=o(o({},s.AbstractMmlNode.defaults),{rowalign:a.INHERIT,columnalign:a.INHERIT,groupalign:a.INHERIT});return e}(s.AbstractMmlNode);e.MmlMtr=u;var c=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"kind",{get:function(){return"mlabeledtr"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"arity",{get:function(){return 1},enumerable:false,configurable:true});return e}(u);e.MmlMlabeledtr=c},75723:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var o=this&&this.__assign||function(){o=Object.assign||function(t){for(var e,r=1,n=arguments.length;r=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),o,i=[],s;try{while((e===void 0||e-- >0)&&!(o=n.next()).done)i.push(o.value)}catch(a){s={error:a}}finally{try{if(o&&!o.done&&(r=n["return"]))r.call(n)}finally{if(s)throw s.error}}return i};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,o=e.length,i;n{e.d(t,{$G:()=>In,$m:()=>An,BB:()=>Un,Ds:()=>ln,Dw:()=>N,EP:()=>a,FP:()=>Nn,HD:()=>En,He:()=>S,Hq:()=>j,IX:()=>L,J_:()=>jn,Jy:()=>On,Kj:()=>kn,Kn:()=>D,N3:()=>F,Oj:()=>o,QA:()=>X,Rg:()=>Hn,TS:()=>vn,TW:()=>wn,We:()=>fn,XW:()=>yn,Xr:()=>pn,ZE:()=>r,ZU:()=>Tn,Zw:()=>$,_k:()=>s,a9:()=>on,ay:()=>B,bM:()=>p,bV:()=>K,cG:()=>E,dH:()=>C,dI:()=>sn,el:()=>u,fE:()=>v,fj:()=>z,hj:()=>Mn,iL:()=>R,id:()=>h,j2:()=>tn,jj:()=>w,jn:()=>dn,k:()=>m,kI:()=>k,kJ:()=>_,kX:()=>b,kg:()=>O,l$:()=>Q,l7:()=>cn,m8:()=>Sn,mJ:()=>W,mK:()=>G,mS:()=>Z,mf:()=>V,nr:()=>hn,qu:()=>nn,rx:()=>Rn,sw:()=>Jn,t7:()=>_n,u5:()=>mn,uU:()=>M,vU:()=>f,vk:()=>xn,yP:()=>zn,yR:()=>g,yb:()=>y,yl:()=>bn});function r(n,t,e){n.fields=t||[];n.fname=e;return n}function u(n){return n==null?null:n.fname}function o(n){return n==null?null:n.fields}function i(n){return n.length===1?l(n[0]):c(n)}const l=n=>function(t){return t[n]};const c=n=>{const t=n.length;return function(e){for(let r=0;ri){s()}else{i=l+1}}else if(c==="["){if(l>i)s();u=i=l+1}else if(c==="]"){if(!u)f("Access path missing open bracket: "+n);if(u>0)s();u=0;i=l+1}}if(u)f("Access path missing closing bracket: "+n);if(r)f("Access path missing closing quote: "+n);if(l>i){l++;s()}return t}function a(n,t,e){const u=s(n);n=u.length===1?u[0]:n;return r((e&&e.get||i)(u),[n],t||n)}const h=a("id");const g=r((n=>n),[],"identity");const p=r((()=>0),[],"zero");const b=r((()=>1),[],"one");const y=r((()=>true),[],"true");const m=r((()=>false),[],"false");function d(n,t,e){const r=[t].concat([].slice.call(e));console[n].apply(console,r)}const j=0;const w=1;const M=2;const k=3;const E=4;function O(n,t){let e=arguments.length>2&&arguments[2]!==undefined?arguments[2]:d;let r=n||j;return{level(n){if(arguments.length){r=+n;return this}else{return r}},error(){if(r>=w)e(t||"error","ERROR",arguments);return this},warn(){if(r>=M)e(t||"warn","WARN",arguments);return this},info(){if(r>=k)e(t||"log","INFO",arguments);return this},debug(){if(r>=E)e(t||"log","DEBUG",arguments);return this}}}var _=Array.isArray;function D(n){return n===Object(n)}const A=n=>n!=="__proto__";function v(){for(var n=arguments.length,t=new Array(n),e=0;e{for(const e in t){if(e==="signals"){n.signals=x(n.signals,t.signals)}else{const r=e==="legend"?{layout:1}:e==="style"?true:null;R(n,e,t[e],r)}}return n}),{})}function R(n,t,e,r){if(!A(t))return;let u,o;if(D(e)&&!_(e)){o=D(n[t])?n[t]:n[t]={};for(u in e){if(r&&(r===true||r[u])){R(o,u,e[u])}else if(A(u)){o[u]=e[u]}}}else{n[t]=e}}function x(n,t){if(n==null)return t;const e={},r=[];function u(n){if(!e[n.name]){e[n.name]=1;r.push(n)}}t.forEach(u);n.forEach(u);return r}function z(n){return n[n.length-1]}function S(n){return n==null||n===""?null:+n}const J=n=>t=>n*Math.exp(t);const P=n=>t=>Math.log(n*t);const T=n=>t=>Math.sign(t)*Math.log1p(Math.abs(t/n));const U=n=>t=>Math.sign(t)*Math.expm1(Math.abs(t))*n;const H=n=>t=>t<0?-Math.pow(-t,n):Math.pow(t,n);function I(n,t,e,r){const u=e(n[0]),o=e(z(n)),i=(o-u)*t;return[r(u-i),r(o-i)]}function N(n,t){return I(n,t,S,g)}function W(n,t){var e=Math.sign(n[0]);return I(n,t,P(e),J(e))}function X(n,t,e){return I(n,t,H(e),H(1/e))}function $(n,t,e){return I(n,t,T(e),U(e))}function q(n,t,e,r,u){const o=r(n[0]),i=r(z(n)),l=t!=null?r(t):(o+i)/2;return[u(l+(o-l)*e),u(l+(i-l)*e)]}function B(n,t,e){return q(n,t,e,S,g)}function C(n,t,e){const r=Math.sign(n[0]);return q(n,t,e,P(r),J(r))}function G(n,t,e,r){return q(n,t,e,H(r),H(1/r))}function K(n,t,e,r){return q(n,t,e,T(r),U(r))}function Z(n){return 1+~~(new Date(n).getMonth()/3)}function F(n){return 1+~~(new Date(n).getUTCMonth()/3)}function L(n){return n!=null?_(n)?n:[n]:[]}function Q(n,t,e){let r=n[0],u=n[1],o;if(u=e-t?[t,e]:[r=Math.min(Math.max(r,t),e-o),r+o]}function V(n){return typeof n==="function"}const Y="descending";function nn(n,t,e){e=e||{};t=L(t)||[];const u=[],i=[],l={},c=e.comparator||en;L(n).forEach(((n,r)=>{if(n==null)return;u.push(t[r]===Y?-1:1);i.push(n=V(n)?n:a(n,null,e));(o(n)||[]).forEach((n=>l[n]=1))}));return i.length===0?null:r(c(i,u),Object.keys(l))}const tn=(n,t)=>(nt||t==null)&&n!=null?1:(t=t instanceof Date?+t:t,n=n instanceof Date?+n:n)!==n&&t===t?-1:t!==t&&n===n?1:0;const en=(n,t)=>n.length===1?rn(n[0],t[0]):un(n,t,n.length);const rn=(n,t)=>function(e,r){return tn(n(e),n(r))*t};const un=(n,t,e)=>{t.push(0);return function(r,u){let o,i=0,l=-1;while(i===0&&++ln}function ln(n,t){let e;return r=>{if(e)clearTimeout(e);e=setTimeout((()=>(t(r),e=null)),n)}}function cn(n){for(let t,e,r=1,u=arguments.length;ri)i=u}}}else{for(u=t(n[e]);ei)i=u}}}}return[o,i]}function sn(n,t){const e=n.length;let r=-1,u,o,i,l,c;if(t==null){while(++r=o){u=i=o;break}}if(r===e)return[-1,-1];l=c=r;while(++ro){u=o;l=r}if(i=o){u=i=o;break}}if(r===e)return[-1,-1];l=c=r;while(++ro){u=o;l=r}if(i{u.set(t,n[t])}));return u}function bn(n,t,e,r,u,o){if(!e&&e!==0)return o;const i=+e;let l=n[0],c=z(n),f;if(co){i=u;u=o;o=i}e=e===undefined||e;r=r===undefined||r;return(e?u<=n:un.replace(/\\(.)/g,"$1"))):L(n)}const u=n&&n.length,o=e&&e.get||i,l=n=>o(t?[n]:s(n));let c;if(!u){c=function(){return""}}else if(u===1){const t=l(n[0]);c=function(n){return""+t(n)}}else{const t=n.map(l);c=function(n){let e=""+t[0](n),r=0;while(++r{t={};e={};r=0};const o=(u,o)=>{if(++r>n){e=t;t={};r=1}return t[u]=o};u();return{clear:u,has:n=>hn(t,n)||hn(e,n),get:n=>hn(t,n)?t[n]:hn(e,n)?o(n,e[n]):undefined,set:(n,e)=>hn(t,n)?t[n]=e:o(n,e)}}function vn(n,t,e,r){const u=t.length,o=e.length;if(!o)return t;if(!u)return e;const i=r||new t.constructor(u+o);let l=0,c=0,f=0;for(;l0?e[c++]:t[l++]}for(;l=0)e+=n;return e}function xn(n,t,e,r){const u=e||" ",o=n+"",i=t-o.length;return i<=0?o:r==="left"?Rn(u,i)+o:r==="center"?Rn(u,~~(i/2))+o+Rn(u,Math.ceil(i/2)):o+Rn(u,i)}function zn(n){return n&&z(n)-n[0]||0}function Sn(n){return _(n)?"["+n.map(Sn)+"]":D(n)||En(n)?JSON.stringify(n).replace("\u2028","\\u2028").replace("\u2029","\\u2029"):n}function Jn(n){return n==null||n===""?null:!n||n==="false"||n==="0"?false:!!n}const Pn=n=>Mn(n)?n:jn(n)?n:Date.parse(n);function Tn(n,t){t=t||Pn;return n==null||n===""?null:t(n)}function Un(n){return n==null||n===""?null:n+""}function Hn(n){const t={},e=n.length;for(let r=0;r{t.r(a);t.d(a,{customizeValidator:()=>w,default:()=>j});var e=t(56841);var n=t(89122);var i=t(99895);var o=4;function f(r){return(0,i.Z)(r,o)}const d=f;var s=t(92589);var u=t(77398);var c=t(1581);var l=t.n(c);var m=t(5477);var v=t.n(m);function p(){p=Object.assign?Object.assign.bind():function(r){for(var a=1;a=0)continue;t[n]=r[n]}return t}var $={allErrors:true,multipleOfPrecision:8,strict:false,verbose:true};var y=/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/;var z=/^data:([a-z]+\/[a-z0-9-+.]+)?;(?:name=(.*);)?base64,(.*)$/;function _(r,a,t,e,i){if(t===void 0){t={}}if(i===void 0){i=l()}var o=new i(p({},$,t));if(e){v()(o,e)}else if(e!==false){v()(o)}o.addFormat("data-url",z);o.addFormat("color",y);o.addKeyword(s.ADDITIONAL_PROPERTY_FLAG);o.addKeyword(s.RJSF_ADDITONAL_PROPERTIES_FLAG);if(Array.isArray(r)){o.addMetaSchema(r)}if((0,n.Z)(a)){Object.keys(a).forEach((function(r){o.addFormat(r,a[r])}))}return o}var E=["instancePath","keyword","params","schemaPath","parentSchema"];var g="__rjsf_rootSchema";var b=function(){function r(r,a){this.ajv=void 0;this.localizer=void 0;var t=r.additionalMetaSchemas,e=r.customFormats,n=r.ajvOptionsOverrides,i=r.ajvFormatOptions,o=r.AjvClass;this.ajv=_(t,e,n,i,o);this.localizer=a}var a=r.prototype;a.toErrorSchema=function r(a){var t=new s.ErrorSchemaBuilder;if(a.length){a.forEach((function(r){var a=r.property,n=r.message;var i=(0,e.Z)(a);if(i.length>0&&i[0]===""){i.splice(0,1)}if(n){t.addErrors(n,i)}}))}return t.ErrorSchema};a.toErrorList=function r(a,t){var e=this;if(t===void 0){t=[]}if(!a){return[]}var n=[];if(s.ERRORS_KEY in a){n=n.concat(a[s.ERRORS_KEY].map((function(r){var a="."+t.join(".");return{property:a,message:r,stack:a+" "+r}})))}return Object.keys(a).reduce((function(r,n){if(n!==s.ERRORS_KEY){r=r.concat(e.toErrorList(a[n],[].concat(t,[n])))}return r}),n)};a.createErrorHandler=function r(a){var t=this;var e={__errors:[],addError:function r(a){this.__errors.push(a)}};if(Array.isArray(a)){return a.reduce((function(r,a,e){var n;return p({},r,(n={},n[e]=t.createErrorHandler(a),n))}),e)}if((0,n.Z)(a)){var i=a;return Object.keys(i).reduce((function(r,a){var e;return p({},r,(e={},e[a]=t.createErrorHandler(i[a]),e))}),e)}return e};a.unwrapErrorHandler=function r(a){var t=this;return Object.keys(a).reduce((function(r,e){var n;if(e==="addError"){return r}else if(e===s.ERRORS_KEY){var i;return p({},r,(i={},i[e]=a[e],i))}return p({},r,(n={},n[e]=t.unwrapErrorHandler(a[e]),n))}),{})};a.transformRJSFValidationErrors=function r(a,t){if(a===void 0){a=[]}return a.map((function(r){var a=r.instancePath,e=r.keyword,n=r.params,i=r.schemaPath,o=r.parentSchema,f=h(r,E);var d=f.message,c=d===void 0?"":d;var l=a.replace(/\//g,".");var m=(l+" "+c).trim();if("missingProperty"in n){l=l?l+"."+n.missingProperty:n.missingProperty;var v=n.missingProperty;var p=(0,s.getUiOptions)((0,u.Z)(t,""+l.replace(/^\./,""))).title;if(p){c=c.replace(v,p)}else{var $=(0,u.Z)(o,[s.PROPERTIES_KEY,v,"title"]);if($){c=c.replace(v,$)}}m=c}else{var y=(0,s.getUiOptions)((0,u.Z)(t,""+l.replace(/^\./,""))).title;if(y){m=("'"+y+"' "+c).trim()}else{var z=o===null||o===void 0?void 0:o.title;if(z){m=("'"+z+"' "+c).trim()}}}return{name:e,property:l,message:c,params:n,stack:m,schemaPath:i}}))};a.rawValidation=function r(a,t){var e=undefined;var n;if(a["$id"]){n=this.ajv.getSchema(a["$id"])}try{if(n===undefined){n=this.ajv.compile(a)}n(t)}catch(o){e=o}var i;if(n){if(typeof this.localizer==="function"){this.localizer(n.errors)}i=n.errors||undefined;n.errors=null}return{errors:i,validationError:e}};a.validateFormData=function r(a,t,e,n,i){var o=this.rawValidation(t,a);var f=o.validationError;var d=this.transformRJSFValidationErrors(o.errors,i);if(f){d=[].concat(d,[{stack:f.message}])}if(typeof n==="function"){d=n(d,i)}var u=this.toErrorSchema(d);if(f){u=p({},u,{$schema:{__errors:[f.message]}})}if(typeof e!=="function"){return{errors:d,errorSchema:u}}var c=(0,s.getDefaultFormState)(this,t,a,t,true);var l=e(c,this.createErrorHandler(c),i);var m=this.unwrapErrorHandler(l);return(0,s.mergeValidationData)(this,{errors:d,errorSchema:u},m)};a.withIdRefPrefixObject=function r(a){for(var t in a){var e=a;var n=e[t];if(t===s.REF_KEY&&typeof n==="string"&&n.startsWith("#")){e[t]=g+n}else{e[t]=this.withIdRefPrefix(n)}}return a};a.withIdRefPrefixArray=function r(a){for(var t=0;t{Object.defineProperty(a,"__esModule",{value:true});a.formatNames=a.fastFormats=a.fullFormats=void 0;function t(r,a){return{validate:r,compare:a}}a.fullFormats={date:t(o,f),time:t(s,u),"date-time":t(l,m),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:h,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:j,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:y,int32:{type:"number",validate:E},int64:{type:"number",validate:g},float:{type:"number",validate:b},double:{type:"number",validate:b},password:true,binary:true};a.fastFormats={...a.fullFormats,date:t(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,f),time:t(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,u),"date-time":t(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,m),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};a.formatNames=Object.keys(a.fullFormats);function e(r){return r%4===0&&(r%100!==0||r%400===0)}const n=/^(\d\d\d\d)-(\d\d)-(\d\d)$/;const i=[0,31,28,31,30,31,30,31,31,30,31,30,31];function o(r){const a=n.exec(r);if(!a)return false;const t=+a[1];const o=+a[2];const f=+a[3];return o>=1&&o<=12&&f>=1&&f<=(o===2&&e(t)?29:i[o])}function f(r,a){if(!(r&&a))return undefined;if(r>a)return 1;if(ra)return 1;if(r=z}function g(r){return Number.isInteger(r)}function b(){return true}const w=/[^\\]\\Z/;function j(r){if(w.test(r))return false;try{new RegExp(r);return true}catch(a){return false}}},5477:(r,a,t)=>{Object.defineProperty(a,"__esModule",{value:true});const e=t(16870);const n=t(57963);const i=t(93487);const o=new i.Name("fullFormats");const f=new i.Name("fastFormats");const d=(r,a={keywords:true})=>{if(Array.isArray(a)){s(r,a,e.fullFormats,o);return r}const[t,i]=a.mode==="fast"?[e.fastFormats,f]:[e.fullFormats,o];const d=a.formats||e.formatNames;s(r,d,t,i);if(a.keywords)n.default(r);return r};d.get=(r,a="full")=>{const t=a==="fast"?e.fastFormats:e.fullFormats;const n=t[r];if(!n)throw new Error(`Unknown format "${r}"`);return n};function s(r,a,t,e){var n;var o;(n=(o=r.opts.code).formats)!==null&&n!==void 0?n:o.formats=i._`require("ajv-formats/dist/formats").${e}`;for(const i of a)r.addFormat(i,t[i])}r.exports=a=d;Object.defineProperty(a,"__esModule",{value:true});a["default"]=d},57963:(r,a,t)=>{Object.defineProperty(a,"__esModule",{value:true});a.formatLimitDefinition=void 0;const e=t(1581);const n=t(93487);const i=n.operators;const o={formatMaximum:{okStr:"<=",ok:i.LTE,fail:i.GT},formatMinimum:{okStr:">=",ok:i.GTE,fail:i.LT},formatExclusiveMaximum:{okStr:"<",ok:i.LT,fail:i.GTE},formatExclusiveMinimum:{okStr:">",ok:i.GT,fail:i.LTE}};const f={message:({keyword:r,schemaCode:a})=>n.str`should be ${o[r].okStr} ${a}`,params:({keyword:r,schemaCode:a})=>n._`{comparison: ${o[r].okStr}, limit: ${a}}`};a.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:true,error:f,code(r){const{gen:a,data:t,schemaCode:i,keyword:f,it:d}=r;const{opts:s,self:u}=d;if(!s.validateFormats)return;const c=new e.KeywordCxt(d,u.RULES.all.format.definition,"format");if(c.$data)l();else m();function l(){const t=a.scopeValue("formats",{ref:u.formats,code:s.code.formats});const e=a.const("fmt",n._`${t}[${c.schemaCode}]`);r.fail$data(n.or(n._`typeof ${e} != "object"`,n._`${e} instanceof RegExp`,n._`typeof ${e}.compare != "function"`,v(e)))}function m(){const t=c.schema;const e=u.formats[t];if(!e||e===true)return;if(typeof e!="object"||e instanceof RegExp||typeof e.compare!="function"){throw new Error(`"${f}": format "${t}" does not define "compare" function`)}const i=a.scopeValue("formats",{key:t,ref:e,code:s.code.formats?n._`${s.code.formats}${n.getProperty(t)}`:undefined});r.fail$data(v(i))}function v(r){return n._`${r}.compare(${t}, ${i}) ${o[f].fail} 0`}},dependencies:["format"]};const d=r=>{r.addKeyword(a.formatLimitDefinition);return r};a["default"]=d},56841:(r,a,t)=>{t.d(a,{Z:()=>c});var e=t(80758);var n=t(65935);var i=t(39350);var o=t(97828);var f=t(66668);var d=t(35429);var s=t(39191);function u(r){if((0,i.Z)(r)){return(0,e.Z)(r,d.Z)}return(0,o.Z)(r)?[r]:(0,n.Z)((0,f.Z)((0,s.Z)(r)))}const c=u}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/3056.8a73f6aacd8ca45f84f9.js b/bootcamp/share/jupyter/lab/static/3056.8a73f6aacd8ca45f84f9.js new file mode 100644 index 0000000..a8049b0 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/3056.8a73f6aacd8ca45f84f9.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3056],{53112:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"apathy",author:"jannik siebert (https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"};e.exports=a["default"]},96291:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"ashes",author:"jannik siebert (https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"};e.exports=a["default"]},253:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"};e.exports=a["default"]},13783:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"};e.exports=a["default"]},28447:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"};e.exports=a["default"]},98629:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"};e.exports=a["default"]},11931:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"};e.exports=a["default"]},27113:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"};e.exports=a["default"]},17757:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"brewer",author:"timothée poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"};e.exports=a["default"]},25328:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"};e.exports=a["default"]},23906:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"};e.exports=a["default"]},13236:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"};e.exports=a["default"]},45190:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"};e.exports=a["default"]},67339:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"};e.exports=a["default"]},3517:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"};e.exports=a["default"]},99682:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"embers",author:"jannik siebert (https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"};e.exports=a["default"]},15021:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"};e.exports=a["default"]},86664:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"};e.exports=a["default"]},83935:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"grayscale",author:"alexandre gavioli (https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"};e.exports=a["default"]},1857:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"};e.exports=a["default"]},78960:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"harmonic16",author:"jannik siebert (https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"};e.exports=a["default"]},58038:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"};e.exports=a["default"]},79194:(e,a,r)=>{"use strict";a.__esModule=true;function t(e){return e&&e.__esModule?e["default"]:e}var n=r(2633);a.threezerotwofour=t(n);var s=r(53112);a.apathy=t(s);var o=r(96291);a.ashes=t(o);var i=r(253);a.atelierDune=t(i);var l=r(13783);a.atelierForest=t(l);var b=r(28447);a.atelierHeath=t(b);var u=r(98629);a.atelierLakeside=t(u);var c=r(11931);a.atelierSeaside=t(c);var f=r(27113);a.bespin=t(f);var h=r(17757);a.brewer=t(h);var d=r(25328);a.bright=t(d);var v=r(23906);a.chalk=t(v);var p=r(13236);a.codeschool=t(p);var g=r(45190);a.colors=t(g);var m=r(67339);a["default"]=t(m);var y=r(3517);a.eighties=t(y);var w=r(99682);a.embers=t(w);var k=r(15021);a.flat=t(k);var O=r(86664);a.google=t(O);var E=r(83935);a.grayscale=t(E);var M=r(1857);a.greenscreen=t(M);var C=r(78960);a.harmonic=t(C);var x=r(58038);a.hopscotch=t(x);var _=r(30971);a.isotope=t(_);var A=r(8764);a.marrakesh=t(A);var j=r(65364);a.mocha=t(j);var D=r(55610);a.monokai=t(D);var F=r(94646);a.ocean=t(F);var B=r(58466);a.paraiso=t(B);var S=r(35708);a.pop=t(S);var N=r(1834);a.railscasts=t(N);var R=r(45410);a.shapeshifter=t(R);var I=r(27427);a.solarized=t(I);var L=r(63013);a.summerfruit=t(L);var T=r(86706);a.tomorrow=t(T);var P=r(19028);a.tube=t(P);var z=r(71899);a.twilight=t(z)},30971:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"};e.exports=a["default"]},8764:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"};e.exports=a["default"]},65364:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"};e.exports=a["default"]},55610:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"};e.exports=a["default"]},94646:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"};e.exports=a["default"]},58466:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"};e.exports=a["default"]},35708:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"};e.exports=a["default"]},1834:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"};e.exports=a["default"]},45410:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"};e.exports=a["default"]},27427:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"};e.exports=a["default"]},63013:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"};e.exports=a["default"]},2633:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"};e.exports=a["default"]},86706:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"};e.exports=a["default"]},19028:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"};e.exports=a["default"]},71899:(e,a)=>{"use strict";a.__esModule=true;a["default"]={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"};e.exports=a["default"]},48168:(e,a,r)=>{var t=r(39092);var n={};for(var s in t){if(t.hasOwnProperty(s)){n[t[s]]=s}}var o=e.exports={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};for(var i in o){if(o.hasOwnProperty(i)){if(!("channels"in o[i])){throw new Error("missing channels property: "+i)}if(!("labels"in o[i])){throw new Error("missing channel labels property: "+i)}if(o[i].labels.length!==o[i].channels){throw new Error("channel and label counts mismatch: "+i)}var l=o[i].channels;var b=o[i].labels;delete o[i].channels;delete o[i].labels;Object.defineProperty(o[i],"channels",{value:l});Object.defineProperty(o[i],"labels",{value:b})}}o.rgb.hsl=function(e){var a=e[0]/255;var r=e[1]/255;var t=e[2]/255;var n=Math.min(a,r,t);var s=Math.max(a,r,t);var o=s-n;var i;var l;var b;if(s===n){i=0}else if(a===s){i=(r-t)/o}else if(r===s){i=2+(t-a)/o}else if(t===s){i=4+(a-r)/o}i=Math.min(i*60,360);if(i<0){i+=360}b=(n+s)/2;if(s===n){l=0}else if(b<=.5){l=o/(s+n)}else{l=o/(2-s-n)}return[i,l*100,b*100]};o.rgb.hsv=function(e){var a;var r;var t;var n;var s;var o=e[0]/255;var i=e[1]/255;var l=e[2]/255;var b=Math.max(o,i,l);var u=b-Math.min(o,i,l);var c=function(e){return(b-e)/6/u+1/2};if(u===0){n=s=0}else{s=u/b;a=c(o);r=c(i);t=c(l);if(o===b){n=t-r}else if(i===b){n=1/3+a-t}else if(l===b){n=2/3+r-a}if(n<0){n+=1}else if(n>1){n-=1}}return[n*360,s*100,b*100]};o.rgb.hwb=function(e){var a=e[0];var r=e[1];var t=e[2];var n=o.rgb.hsl(e)[0];var s=1/255*Math.min(a,Math.min(r,t));t=1-1/255*Math.max(a,Math.max(r,t));return[n,s*100,t*100]};o.rgb.cmyk=function(e){var a=e[0]/255;var r=e[1]/255;var t=e[2]/255;var n;var s;var o;var i;i=Math.min(1-a,1-r,1-t);n=(1-a-i)/(1-i)||0;s=(1-r-i)/(1-i)||0;o=(1-t-i)/(1-i)||0;return[n*100,s*100,o*100,i*100]};function u(e,a){return Math.pow(e[0]-a[0],2)+Math.pow(e[1]-a[1],2)+Math.pow(e[2]-a[2],2)}o.rgb.keyword=function(e){var a=n[e];if(a){return a}var r=Infinity;var s;for(var o in t){if(t.hasOwnProperty(o)){var i=t[o];var l=u(e,i);if(l.04045?Math.pow((a+.055)/1.055,2.4):a/12.92;r=r>.04045?Math.pow((r+.055)/1.055,2.4):r/12.92;t=t>.04045?Math.pow((t+.055)/1.055,2.4):t/12.92;var n=a*.4124+r*.3576+t*.1805;var s=a*.2126+r*.7152+t*.0722;var o=a*.0193+r*.1192+t*.9505;return[n*100,s*100,o*100]};o.rgb.lab=function(e){var a=o.rgb.xyz(e);var r=a[0];var t=a[1];var n=a[2];var s;var i;var l;r/=95.047;t/=100;n/=108.883;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;t=t>.008856?Math.pow(t,1/3):7.787*t+16/116;n=n>.008856?Math.pow(n,1/3):7.787*n+16/116;s=116*t-16;i=500*(r-t);l=200*(t-n);return[s,i,l]};o.hsl.rgb=function(e){var a=e[0]/360;var r=e[1]/100;var t=e[2]/100;var n;var s;var o;var i;var l;if(r===0){l=t*255;return[l,l,l]}if(t<.5){s=t*(1+r)}else{s=t+r-t*r}n=2*t-s;i=[0,0,0];for(var b=0;b<3;b++){o=a+1/3*-(b-1);if(o<0){o++}if(o>1){o--}if(6*o<1){l=n+(s-n)*6*o}else if(2*o<1){l=s}else if(3*o<2){l=n+(s-n)*(2/3-o)*6}else{l=n}i[b]=l*255}return i};o.hsl.hsv=function(e){var a=e[0];var r=e[1]/100;var t=e[2]/100;var n=r;var s=Math.max(t,.01);var o;var i;t*=2;r*=t<=1?t:2-t;n*=s<=1?s:2-s;i=(t+r)/2;o=t===0?2*n/(s+n):2*r/(t+r);return[a,o*100,i*100]};o.hsv.rgb=function(e){var a=e[0]/60;var r=e[1]/100;var t=e[2]/100;var n=Math.floor(a)%6;var s=a-Math.floor(a);var o=255*t*(1-r);var i=255*t*(1-r*s);var l=255*t*(1-r*(1-s));t*=255;switch(n){case 0:return[t,l,o];case 1:return[i,t,o];case 2:return[o,t,l];case 3:return[o,i,t];case 4:return[l,o,t];case 5:return[t,o,i]}};o.hsv.hsl=function(e){var a=e[0];var r=e[1]/100;var t=e[2]/100;var n=Math.max(t,.01);var s;var o;var i;i=(2-r)*t;s=(2-r)*n;o=r*n;o/=s<=1?s:2-s;o=o||0;i/=2;return[a,o*100,i*100]};o.hwb.rgb=function(e){var a=e[0]/360;var r=e[1]/100;var t=e[2]/100;var n=r+t;var s;var o;var i;var l;if(n>1){r/=n;t/=n}s=Math.floor(6*a);o=1-t;i=6*a-s;if((s&1)!==0){i=1-i}l=r+i*(o-r);var b;var u;var c;switch(s){default:case 6:case 0:b=o;u=l;c=r;break;case 1:b=l;u=o;c=r;break;case 2:b=r;u=o;c=l;break;case 3:b=r;u=l;c=o;break;case 4:b=l;u=r;c=o;break;case 5:b=o;u=r;c=l;break}return[b*255,u*255,c*255]};o.cmyk.rgb=function(e){var a=e[0]/100;var r=e[1]/100;var t=e[2]/100;var n=e[3]/100;var s;var o;var i;s=1-Math.min(1,a*(1-n)+n);o=1-Math.min(1,r*(1-n)+n);i=1-Math.min(1,t*(1-n)+n);return[s*255,o*255,i*255]};o.xyz.rgb=function(e){var a=e[0]/100;var r=e[1]/100;var t=e[2]/100;var n;var s;var o;n=a*3.2406+r*-1.5372+t*-.4986;s=a*-.9689+r*1.8758+t*.0415;o=a*.0557+r*-.204+t*1.057;n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*12.92;s=s>.0031308?1.055*Math.pow(s,1/2.4)-.055:s*12.92;o=o>.0031308?1.055*Math.pow(o,1/2.4)-.055:o*12.92;n=Math.min(Math.max(0,n),1);s=Math.min(Math.max(0,s),1);o=Math.min(Math.max(0,o),1);return[n*255,s*255,o*255]};o.xyz.lab=function(e){var a=e[0];var r=e[1];var t=e[2];var n;var s;var o;a/=95.047;r/=100;t/=108.883;a=a>.008856?Math.pow(a,1/3):7.787*a+16/116;r=r>.008856?Math.pow(r,1/3):7.787*r+16/116;t=t>.008856?Math.pow(t,1/3):7.787*t+16/116;n=116*r-16;s=500*(a-r);o=200*(r-t);return[n,s,o]};o.lab.xyz=function(e){var a=e[0];var r=e[1];var t=e[2];var n;var s;var o;s=(a+16)/116;n=r/500+s;o=s-t/200;var i=Math.pow(s,3);var l=Math.pow(n,3);var b=Math.pow(o,3);s=i>.008856?i:(s-16/116)/7.787;n=l>.008856?l:(n-16/116)/7.787;o=b>.008856?b:(o-16/116)/7.787;n*=95.047;s*=100;o*=108.883;return[n,s,o]};o.lab.lch=function(e){var a=e[0];var r=e[1];var t=e[2];var n;var s;var o;n=Math.atan2(t,r);s=n*360/2/Math.PI;if(s<0){s+=360}o=Math.sqrt(r*r+t*t);return[a,o,s]};o.lch.lab=function(e){var a=e[0];var r=e[1];var t=e[2];var n;var s;var o;o=t/360*2*Math.PI;n=r*Math.cos(o);s=r*Math.sin(o);return[a,n,s]};o.rgb.ansi16=function(e){var a=e[0];var r=e[1];var t=e[2];var n=1 in arguments?arguments[1]:o.rgb.hsv(e)[2];n=Math.round(n/50);if(n===0){return 30}var s=30+(Math.round(t/255)<<2|Math.round(r/255)<<1|Math.round(a/255));if(n===2){s+=60}return s};o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])};o.rgb.ansi256=function(e){var a=e[0];var r=e[1];var t=e[2];if(a===r&&r===t){if(a<8){return 16}if(a>248){return 231}return Math.round((a-8)/247*24)+232}var n=16+36*Math.round(a/255*5)+6*Math.round(r/255*5)+Math.round(t/255*5);return n};o.ansi16.rgb=function(e){var a=e%10;if(a===0||a===7){if(e>50){a+=3.5}a=a/10.5*255;return[a,a,a]}var r=(~~(e>50)+1)*.5;var t=(a&1)*r*255;var n=(a>>1&1)*r*255;var s=(a>>2&1)*r*255;return[t,n,s]};o.ansi256.rgb=function(e){if(e>=232){var a=(e-232)*10+8;return[a,a,a]}e-=16;var r;var t=Math.floor(e/36)/5*255;var n=Math.floor((r=e%36)/6)/5*255;var s=r%6/5*255;return[t,n,s]};o.rgb.hex=function(e){var a=((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255);var r=a.toString(16).toUpperCase();return"000000".substring(r.length)+r};o.hex.rgb=function(e){var a=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!a){return[0,0,0]}var r=a[0];if(a[0].length===3){r=r.split("").map((function(e){return e+e})).join("")}var t=parseInt(r,16);var n=t>>16&255;var s=t>>8&255;var o=t&255;return[n,s,o]};o.rgb.hcg=function(e){var a=e[0]/255;var r=e[1]/255;var t=e[2]/255;var n=Math.max(Math.max(a,r),t);var s=Math.min(Math.min(a,r),t);var o=n-s;var i;var l;if(o<1){i=s/(1-o)}else{i=0}if(o<=0){l=0}else if(n===a){l=(r-t)/o%6}else if(n===r){l=2+(t-a)/o}else{l=4+(a-r)/o+4}l/=6;l%=1;return[l*360,o*100,i*100]};o.hsl.hcg=function(e){var a=e[1]/100;var r=e[2]/100;var t=1;var n=0;if(r<.5){t=2*a*r}else{t=2*a*(1-r)}if(t<1){n=(r-.5*t)/(1-t)}return[e[0],t*100,n*100]};o.hsv.hcg=function(e){var a=e[1]/100;var r=e[2]/100;var t=a*r;var n=0;if(t<1){n=(r-t)/(1-t)}return[e[0],t*100,n*100]};o.hcg.rgb=function(e){var a=e[0]/360;var r=e[1]/100;var t=e[2]/100;if(r===0){return[t*255,t*255,t*255]}var n=[0,0,0];var s=a%1*6;var o=s%1;var i=1-o;var l=0;switch(Math.floor(s)){case 0:n[0]=1;n[1]=o;n[2]=0;break;case 1:n[0]=i;n[1]=1;n[2]=0;break;case 2:n[0]=0;n[1]=1;n[2]=o;break;case 3:n[0]=0;n[1]=i;n[2]=1;break;case 4:n[0]=o;n[1]=0;n[2]=1;break;default:n[0]=1;n[1]=0;n[2]=i}l=(1-r)*t;return[(r*n[0]+l)*255,(r*n[1]+l)*255,(r*n[2]+l)*255]};o.hcg.hsv=function(e){var a=e[1]/100;var r=e[2]/100;var t=a+r*(1-a);var n=0;if(t>0){n=a/t}return[e[0],n*100,t*100]};o.hcg.hsl=function(e){var a=e[1]/100;var r=e[2]/100;var t=r*(1-a)+.5*a;var n=0;if(t>0&&t<.5){n=a/(2*t)}else if(t>=.5&&t<1){n=a/(2*(1-t))}return[e[0],n*100,t*100]};o.hcg.hwb=function(e){var a=e[1]/100;var r=e[2]/100;var t=a+r*(1-a);return[e[0],(t-a)*100,(1-t)*100]};o.hwb.hcg=function(e){var a=e[1]/100;var r=e[2]/100;var t=1-r;var n=t-a;var s=0;if(n<1){s=(t-n)/(1-n)}return[e[0],n*100,s*100]};o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};o.gray.hsl=o.gray.hsv=function(e){return[0,0,e[0]]};o.gray.hwb=function(e){return[0,100,e[0]]};o.gray.cmyk=function(e){return[0,0,0,e[0]]};o.gray.lab=function(e){return[e[0],0,0]};o.gray.hex=function(e){var a=Math.round(e[0]/100*255)&255;var r=(a<<16)+(a<<8)+a;var t=r.toString(16).toUpperCase();return"000000".substring(t.length)+t};o.rgb.gray=function(e){var a=(e[0]+e[1]+e[2])/3;return[a/255*100]}},12085:(e,a,r)=>{var t=r(48168);var n=r(4111);var s={};var o=Object.keys(t);function i(e){var a=function(a){if(a===undefined||a===null){return a}if(arguments.length>1){a=Array.prototype.slice.call(arguments)}return e(a)};if("conversion"in e){a.conversion=e.conversion}return a}function l(e){var a=function(a){if(a===undefined||a===null){return a}if(arguments.length>1){a=Array.prototype.slice.call(arguments)}var r=e(a);if(typeof r==="object"){for(var t=r.length,n=0;n{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},4111:(e,a,r)=>{var t=r(48168);function n(){var e={};var a=Object.keys(t);for(var r=a.length,n=0;n{"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},19818:(e,a,r)=>{var t=r(8874);var n=r(86851);var s=Object.hasOwnProperty;var o=Object.create(null);for(var i in t){if(s.call(t,i)){o[t[i]]=i}}var l=e.exports={to:{},get:{}};l.get=function(e){var a=e.substring(0,3).toLowerCase();var r;var t;switch(a){case"hsl":r=l.get.hsl(e);t="hsl";break;case"hwb":r=l.get.hwb(e);t="hwb";break;default:r=l.get.rgb(e);t="rgb";break}if(!r){return null}return{model:t,value:r}};l.get.rgb=function(e){if(!e){return null}var a=/^#([a-f0-9]{3,4})$/i;var r=/^#([a-f0-9]{6})([a-f0-9]{2})?$/i;var n=/^rgba?\(\s*([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)(?=[\s,])\s*(?:,\s*)?([+-]?\d+)\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;var o=/^rgba?\(\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*,?\s*([+-]?[\d\.]+)\%\s*(?:[,|\/]\s*([+-]?[\d\.]+)(%?)\s*)?\)$/;var i=/^(\w+)$/;var l=[0,0,0,1];var u;var c;var f;if(u=e.match(r)){f=u[2];u=u[1];for(c=0;c<3;c++){var h=c*2;l[c]=parseInt(u.slice(h,h+2),16)}if(f){l[3]=parseInt(f,16)/255}}else if(u=e.match(a)){u=u[1];f=u[3];for(c=0;c<3;c++){l[c]=parseInt(u[c]+u[c],16)}if(f){l[3]=parseInt(f+f,16)/255}}else if(u=e.match(n)){for(c=0;c<3;c++){l[c]=parseInt(u[c+1],0)}if(u[4]){if(u[5]){l[3]=parseFloat(u[4])*.01}else{l[3]=parseFloat(u[4])}}}else if(u=e.match(o)){for(c=0;c<3;c++){l[c]=Math.round(parseFloat(u[c+1])*2.55)}if(u[4]){if(u[5]){l[3]=parseFloat(u[4])*.01}else{l[3]=parseFloat(u[4])}}}else if(u=e.match(i)){if(u[1]==="transparent"){return[0,0,0,0]}if(!s.call(t,u[1])){return null}l=t[u[1]];l[3]=1;return l}else{return null}for(c=0;c<3;c++){l[c]=b(l[c],0,255)}l[3]=b(l[3],0,1);return l};l.get.hsl=function(e){if(!e){return null}var a=/^hsla?\(\s*([+-]?(?:\d{0,3}\.)?\d+)(?:deg)?\s*,?\s*([+-]?[\d\.]+)%\s*,?\s*([+-]?[\d\.]+)%\s*(?:[,|\/]\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/;var r=e.match(a);if(r){var t=parseFloat(r[4]);var n=(parseFloat(r[1])%360+360)%360;var s=b(parseFloat(r[2]),0,100);var o=b(parseFloat(r[3]),0,100);var i=b(isNaN(t)?1:t,0,1);return[n,s,o,i]}return null};l.get.hwb=function(e){if(!e){return null}var a=/^hwb\(\s*([+-]?\d{0,3}(?:\.\d+)?)(?:deg)?\s*,\s*([+-]?[\d\.]+)%\s*,\s*([+-]?[\d\.]+)%\s*(?:,\s*([+-]?(?=\.\d|\d)(?:0|[1-9]\d*)?(?:\.\d*)?(?:[eE][+-]?\d+)?)\s*)?\)$/;var r=e.match(a);if(r){var t=parseFloat(r[4]);var n=(parseFloat(r[1])%360+360)%360;var s=b(parseFloat(r[2]),0,100);var o=b(parseFloat(r[3]),0,100);var i=b(isNaN(t)?1:t,0,1);return[n,s,o,i]}return null};l.to.hex=function(){var e=n(arguments);return"#"+u(e[0])+u(e[1])+u(e[2])+(e[3]<1?u(Math.round(e[3]*255)):"")};l.to.rgb=function(){var e=n(arguments);return e.length<4||e[3]===1?"rgb("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+")":"rgba("+Math.round(e[0])+", "+Math.round(e[1])+", "+Math.round(e[2])+", "+e[3]+")"};l.to.rgb.percent=function(){var e=n(arguments);var a=Math.round(e[0]/255*100);var r=Math.round(e[1]/255*100);var t=Math.round(e[2]/255*100);return e.length<4||e[3]===1?"rgb("+a+"%, "+r+"%, "+t+"%)":"rgba("+a+"%, "+r+"%, "+t+"%, "+e[3]+")"};l.to.hsl=function(){var e=n(arguments);return e.length<4||e[3]===1?"hsl("+e[0]+", "+e[1]+"%, "+e[2]+"%)":"hsla("+e[0]+", "+e[1]+"%, "+e[2]+"%, "+e[3]+")"};l.to.hwb=function(){var e=n(arguments);var a="";if(e.length>=4&&e[3]!==1){a=", "+e[3]}return"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+a+")"};l.to.keyword=function(e){return o[e.slice(0,3)]};function b(e,a,r){return Math.min(Math.max(a,e),r)}function u(e){var a=Math.round(e).toString(16).toUpperCase();return a.length<2?"0"+a:a}},6767:(e,a,r)=>{"use strict";var t=r(19818);var n=r(12085);var s=[].slice;var o=["keyword","gray","hex"];var i={};Object.keys(n).forEach((function(e){i[s.call(n[e].labels).sort().join("")]=e}));var l={};function b(e,a){if(!(this instanceof b)){return new b(e,a)}if(a&&a in o){a=null}if(a&&!(a in n)){throw new Error("Unknown model: "+a)}var r;var u;if(e==null){this.model="rgb";this.color=[0,0,0];this.valpha=1}else if(e instanceof b){this.model=e.model;this.color=e.color.slice();this.valpha=e.valpha}else if(typeof e==="string"){var c=t.get(e);if(c===null){throw new Error("Unable to parse color from string: "+e)}this.model=c.model;u=n[this.model].channels;this.color=c.value.slice(0,u);this.valpha=typeof c.value[u]==="number"?c.value[u]:1}else if(e.length){this.model=a||"rgb";u=n[this.model].channels;var f=s.call(e,0,u);this.color=v(f,u);this.valpha=typeof e[u]==="number"?e[u]:1}else if(typeof e==="number"){e&=16777215;this.model="rgb";this.color=[e>>16&255,e>>8&255,e&255];this.valpha=1}else{this.valpha=1;var h=Object.keys(e);if("alpha"in e){h.splice(h.indexOf("alpha"),1);this.valpha=typeof e.alpha==="number"?e.alpha:0}var d=h.sort().join("");if(!(d in i)){throw new Error("Unable to parse color from object: "+JSON.stringify(e))}this.model=i[d];var p=n[this.model].labels;var g=[];for(r=0;rr){return(a+.05)/(r+.05)}return(r+.05)/(a+.05)},level:function(e){var a=this.contrast(e);if(a>=7.1){return"AAA"}return a>=4.5?"AA":""},isDark:function(){var e=this.rgb().color;var a=(e[0]*299+e[1]*587+e[2]*114)/1e3;return a<128},isLight:function(){return!this.isDark()},negate:function(){var e=this.rgb();for(var a=0;a<3;a++){e.color[a]=255-e.color[a]}return e},lighten:function(e){var a=this.hsl();a.color[2]+=a.color[2]*e;return a},darken:function(e){var a=this.hsl();a.color[2]-=a.color[2]*e;return a},saturate:function(e){var a=this.hsl();a.color[1]+=a.color[1]*e;return a},desaturate:function(e){var a=this.hsl();a.color[1]-=a.color[1]*e;return a},whiten:function(e){var a=this.hwb();a.color[1]+=a.color[1]*e;return a},blacken:function(e){var a=this.hwb();a.color[2]+=a.color[2]*e;return a},grayscale:function(){var e=this.rgb().color;var a=e[0]*.3+e[1]*.59+e[2]*.11;return b.rgb(a,a,a)},fade:function(e){return this.alpha(this.valpha-this.valpha*e)},opaquer:function(e){return this.alpha(this.valpha+this.valpha*e)},rotate:function(e){var a=this.hsl();var r=a.color[0];r=(r+e)%360;r=r<0?360+r:r;a.color[0]=r;return a},mix:function(e,a){if(!e||!e.rgb){throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e)}var r=e.rgb();var t=this.rgb();var n=a===undefined?.5:a;var s=2*n-1;var o=r.alpha()-t.alpha();var i=((s*o===-1?s:(s+o)/(1+s*o))+1)/2;var l=1-i;return b.rgb(i*r.red()+l*t.red(),i*r.green()+l*t.green(),i*r.blue()+l*t.blue(),r.alpha()*n+t.alpha()*(1-n))}};Object.keys(n).forEach((function(e){if(o.indexOf(e)!==-1){return}var a=n[e].channels;b.prototype[e]=function(){if(this.model===e){return new b(this)}if(arguments.length){return new b(arguments,e)}var r=typeof arguments[a]==="number"?a:this.valpha;return new b(d(n[this.model][e].raw(this.color)).concat(r),e)};b[e]=function(r){if(typeof r==="number"){r=v(s.call(arguments),a)}return new b(r,e)}}));function u(e,a){return Number(e.toFixed(a))}function c(e){return function(a){return u(a,e)}}function f(e,a,r){e=Array.isArray(e)?e:[e];e.forEach((function(e){(l[e]||(l[e]=[]))[a]=r}));e=e[0];return function(t){var n;if(arguments.length){if(r){t=r(t)}n=this[e]();n.color[a]=t;return n}n=this[e]().color[a];if(r){n=r(n)}return n}}function h(e){return function(a){return Math.max(0,Math.min(e,a))}}function d(e){return Array.isArray(e)?e:[e]}function v(e,a){for(var r=0;r{e.exports=function e(a){if(!a||typeof a==="string"){return false}return a instanceof Array||Array.isArray(a)||a.length>=0&&(a.splice instanceof Function||Object.getOwnPropertyDescriptor(a,a.length-1)&&a.constructor.name!=="String")}},18024:(e,a,r)=>{var t="Expected a function";var n="__lodash_placeholder__";var s=1,o=2,i=4,l=8,b=16,u=32,c=64,f=128,h=256,d=512;var v=1/0,p=9007199254740991,g=17976931348623157e292,m=0/0;var y=[["ary",f],["bind",s],["bindKey",o],["curry",l],["curryRight",b],["flip",d],["partial",u],["partialRight",c],["rearg",h]];var w="[object Function]",k="[object GeneratorFunction]",O="[object Symbol]";var E=/[\\^$.*+?()[\]{}|]/g;var M=/^\s+|\s+$/g;var C=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,x=/\{\n\/\* \[wrapped with (.+)\] \*/,_=/,? & /;var A=/^[-+]0x[0-9a-f]+$/i;var j=/^0b[01]+$/i;var D=/^\[object .+?Constructor\]$/;var F=/^0o[0-7]+$/i;var B=/^(?:0|[1-9]\d*)$/;var S=parseInt;var N=typeof r.g=="object"&&r.g&&r.g.Object===Object&&r.g;var R=typeof self=="object"&&self&&self.Object===Object&&self;var I=N||R||Function("return this")();function L(e,a,r){switch(r.length){case 0:return e.call(a);case 1:return e.call(a,r[0]);case 2:return e.call(a,r[0],r[1]);case 3:return e.call(a,r[0],r[1],r[2])}return e.apply(a,r)}function T(e,a){var r=-1,t=e?e.length:0;while(++r-1}function z(e,a,r,t){var n=e.length,s=r+(t?1:-1);while(t?s--:++s2?e:undefined}();function se(e){return je(e)?ae(e):{}}function oe(e){if(!je(e)||Oe(e)){return false}var a=Ae(e)||W(e)?ee:D;return a.test(Ce(e))}function ie(e,a,r,t){var n=-1,s=e.length,o=r.length,i=-1,l=a.length,b=re(s-o,0),u=Array(l+b),c=!t;while(++i1){o.reverse()}if(p&&h1?"& ":"")+a[t];a=a.join(r>2?", ":" ");return e.replace(C,"{\n/* [wrapped with "+a+"] */\n")}function ke(e,a){a=a==null?p:a;return!!a&&(typeof e=="number"||B.test(e))&&(e>-1&&e%1==0&&e{"use strict";r.r(a);r.d(a,{JSONTree:()=>de});var t=r(28416);var n=r.n(t);function s(){s=Object.assign?Object.assign.bind():function(e){for(var a=1;a3&&arguments[3]!==undefined?arguments[3]:0;let n=arguments.length>4&&arguments[4]!==undefined?arguments[4]:Infinity;let s;if(e==="Object"){let e=Object.getOwnPropertyNames(a);if(r){e.sort(r===true?undefined:r)}e=e.slice(t,n+1);s={entries:e.map((e=>({key:e,value:a[e]})))}}else if(e==="Array"){s={entries:a.slice(t,n+1).map(((e,a)=>({key:a+t,value:e})))}}else{let e=0;const r=[];let o=true;const i=b(a);for(const s of a){if(e>n){o=false;break}if(t<=e){if(i&&Array.isArray(s)){if(typeof s[0]==="string"||typeof s[0]==="number"){r.push({key:s[0],value:s[1]})}else{r.push({key:`[entry ${e}]`,value:{"[key]":s[0],"[value]":s[1]}})}}else{r.push({key:e,value:s})}}e++}s={hasMore:!o,entries:r}}return s}function c(e,a,r){const t=[];while(a-e>r*r){r=r*r}for(let n=e;n<=a;n+=r){t.push({from:n,to:Math.min(a,n+r-1)})}return t}function f(e,a,r,t){let n=arguments.length>4&&arguments[4]!==undefined?arguments[4]:0;let s=arguments.length>5&&arguments[5]!==undefined?arguments[5]:Infinity;const o=u.bind(null,e,a,r);if(!t){return o().entries}const i=s{c(!u)}),[u]);return u?n().createElement("div",a("itemRange",u),l(e,r,o)):n().createElement("div",s({},a("itemRange",u),{onClick:f}),n().createElement(i,{nodeType:b,styling:a,expanded:false,onClick:f,arrowStyle:"double"}),`${r} ... ${o}`)}function d(e){return e.to!==undefined}function v(e,a,r){const{nodeType:t,data:o,collectionLimit:i,circularCache:l,keyPath:b,postprocessValue:u,sortObjectKeys:c}=e;const p=[];f(t,o,c,i,a,r).forEach((a=>{if(d(a)){p.push(n().createElement(h,s({},e,{key:`ItemRange--${a.from}-${a.to}`,from:a.from,to:a.to,renderChildNodes:v})))}else{const{key:r,value:t}=a;const o=l.indexOf(t)!==-1;p.push(n().createElement(M,s({},e,{postprocessValue:u,collectionLimit:i,key:`Node--${r}`,keyPath:[r,...b],value:u(t),circularCache:[...l,t],isCircular:o,hideRoot:false})))}}));return p}function p(e){const{circularCache:a=[],collectionLimit:r,createItemString:o,data:l,expandable:b,getItemString:u,hideRoot:c,isCircular:f,keyPath:h,labelRenderer:d,level:p=0,nodeType:g,nodeTypeIndicator:m,shouldExpandNodeInitially:y,styling:w}=e;const[k,O]=(0,t.useState)(f?false:y(h,l,p));const E=(0,t.useCallback)((()=>{if(b)O(!k)}),[b,k]);const M=k||c&&p===0?v({...e,circularCache:a,level:p+1}):null;const C=n().createElement("span",w("nestedNodeItemType",k),m);const x=u(g,l,C,o(l,r),h);const _=[h,g,k,b];return c?n().createElement("li",w("rootNode",..._),n().createElement("ul",w("rootNodeChildren",..._),M)):n().createElement("li",w("nestedNode",..._),b&&n().createElement(i,{styling:w,nodeType:g,expanded:k,onClick:E}),n().createElement("label",s({},w(["label","nestedNodeLabel"],..._),{onClick:E}),d(..._)),n().createElement("span",s({},w("nestedNodeItemString",..._),{onClick:E}),x),n().createElement("ul",w("nestedNodeChildren",..._),M))}function g(e){const a=Object.getOwnPropertyNames(e).length;return`${a} ${a!==1?"keys":"key"}`}function m(e){let{data:a,...r}=e;return n().createElement(p,s({},r,{data:a,nodeType:"Object",nodeTypeIndicator:r.nodeType==="Error"?"Error()":"{}",createItemString:g,expandable:Object.getOwnPropertyNames(a).length>0}))}function y(e){return`${e.length} ${e.length!==1?"items":"item"}`}function w(e){let{data:a,...r}=e;return n().createElement(p,s({},r,{data:a,nodeType:"Array",nodeTypeIndicator:"[]",createItemString:y,expandable:a.length>0}))}function k(e,a){let r=0;let t=false;if(Number.isSafeInteger(e.size)){r=e.size}else{for(const n of e){if(a&&r+1>a){t=true;break}r+=1}}return`${t?">":""}${r} ${r!==1?"entries":"entry"}`}function O(e){return n().createElement(p,s({},e,{nodeType:"Iterable",nodeTypeIndicator:"()",createItemString:k,expandable:true}))}function E(e){let{nodeType:a,styling:r,labelRenderer:t,keyPath:s,valueRenderer:o,value:i,valueGetter:l=(e=>e)}=e;return n().createElement("li",r("value",a,s),n().createElement("label",r(["label","valueLabel"],a,s),t(s,a,false,false)),n().createElement("span",r("valueText",a,s),o(l(i),i,...s)))}function M(e){let{getItemString:a,keyPath:r,labelRenderer:t,styling:i,value:l,valueRenderer:b,isCustomNode:u,...c}=e;const f=u(l)?"Custom":o(l);const h={getItemString:a,key:r[0],keyPath:r,labelRenderer:t,nodeType:f,styling:i,value:l,valueRenderer:b};const d={...c,...h,data:l,isCustomNode:u};switch(f){case"Object":case"Error":case"WeakMap":case"WeakSet":return n().createElement(m,d);case"Array":return n().createElement(w,d);case"Iterable":case"Map":case"Set":return n().createElement(O,d);case"String":return n().createElement(E,s({},h,{valueGetter:e=>`"${e}"`}));case"Number":return n().createElement(E,h);case"Boolean":return n().createElement(E,s({},h,{valueGetter:e=>e?"true":"false"}));case"Date":return n().createElement(E,s({},h,{valueGetter:e=>e.toISOString()}));case"Null":return n().createElement(E,s({},h,{valueGetter:()=>"null"}));case"Undefined":return n().createElement(E,s({},h,{valueGetter:()=>"undefined"}));case"Function":case"Symbol":return n().createElement(E,s({},h,{valueGetter:e=>e.toString()}));case"Custom":return n().createElement(E,h);default:return n().createElement(E,s({},h,{valueGetter:()=>`<${f}>`}))}}function C(e){"@babel/helpers - typeof";return C="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},C(e)}function x(e,a){if(C(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var t=r.call(e,a||"default");if(C(t)!=="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(e)}function _(e){var a=x(e,"string");return C(a)==="symbol"?a:String(a)}function A(e,a,r){a=_(a);if(a in e){Object.defineProperty(e,a,{value:r,enumerable:true,configurable:true,writable:true})}else{e[a]=r}return e}function j(e){if(Array.isArray(e))return e}function D(e,a){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var t,n,s,o,i=[],l=!0,b=!1;try{if(s=(r=r.call(e)).next,0===a){if(Object(r)!==r)return;l=!1}else for(;!(l=(t=s.call(r)).done)&&(i.push(t.value),i.length!==a);l=!0);}catch(u){b=!0,n=u}finally{try{if(!l&&null!=r["return"]&&(o=r["return"](),Object(o)!==o))return}finally{if(b)throw n}}return i}}function F(e,a){if(a==null||a>e.length)a=e.length;for(var r=0,t=new Array(a);r1?t-1:0),s=1;s1?t-1:0),s=1;s1?t-1:0),s=1;s1?t-1:0),s=1;s1?t-1:0),s=1;s2?t-2:0),s=2;s1&&arguments[1]!==undefined?arguments[1]:{};var r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var t=a.defaultBase16,n=t===void 0?G:t,s=a.base16Themes,o=s===void 0?null:s;var i=ae(r,o);if(i){r=q(q({},i),r)}var l=W.reduce((function(e,a){return e[a]=r[a]||n[a],e}),{});var b=Object.keys(r).reduce((function(e,a){return W.indexOf(a)===-1?(e[a]=r[a],e):e}),{});var u=e(l);var c=X(b,u);for(var f=arguments.length,h=new Array(f>3?f-3:0),d=3;d({BACKGROUND_COLOR:e.base00,TEXT_COLOR:e.base07,STRING_COLOR:e.base0B,DATE_COLOR:e.base0B,NUMBER_COLOR:e.base09,BOOLEAN_COLOR:e.base09,NULL_COLOR:e.base08,UNDEFINED_COLOR:e.base08,FUNCTION_COLOR:e.base08,SYMBOL_COLOR:e.base08,LABEL_COLOR:e.base0D,ARROW_COLOR:e.base0D,ITEM_STRING_COLOR:e.base0B,ITEM_STRING_EXPANDED_COLOR:e.base03});const se=e=>({String:e.STRING_COLOR,Date:e.DATE_COLOR,Number:e.NUMBER_COLOR,Boolean:e.BOOLEAN_COLOR,Null:e.NULL_COLOR,Undefined:e.UNDEFINED_COLOR,Function:e.FUNCTION_COLOR,Symbol:e.SYMBOL_COLOR});const oe=e=>{const a=ne(e);return{tree:{border:0,padding:0,marginTop:"0.5em",marginBottom:"0.5em",marginLeft:"0.125em",marginRight:0,listStyle:"none",MozUserSelect:"none",WebkitUserSelect:"none",backgroundColor:a.BACKGROUND_COLOR},value:(e,a,r)=>{let{style:t}=e;return{style:{...t,paddingTop:"0.25em",paddingRight:0,marginLeft:"0.875em",WebkitUserSelect:"text",MozUserSelect:"text",wordWrap:"break-word",paddingLeft:r.length>1?"2.125em":"1.25em",textIndent:"-0.5em",wordBreak:"break-all"}}},label:{display:"inline-block",color:a.LABEL_COLOR},valueLabel:{margin:"0 0.5em 0 0"},valueText:(e,r)=>{let{style:t}=e;return{style:{...t,color:se(a)[r]}}},itemRange:(e,r)=>({style:{paddingTop:r?0:"0.25em",cursor:"pointer",color:a.LABEL_COLOR}}),arrow:(e,a,r)=>{let{style:t}=e;return{style:{...t,marginLeft:0,transition:"150ms",WebkitTransition:"150ms",MozTransition:"150ms",WebkitTransform:r?"rotateZ(90deg)":"rotateZ(0deg)",MozTransform:r?"rotateZ(90deg)":"rotateZ(0deg)",transform:r?"rotateZ(90deg)":"rotateZ(0deg)",transformOrigin:"45% 50%",WebkitTransformOrigin:"45% 50%",MozTransformOrigin:"45% 50%",position:"relative",lineHeight:"1.1em",fontSize:"0.75em"}}},arrowContainer:(e,a)=>{let{style:r}=e;return{style:{...r,display:"inline-block",paddingRight:"0.5em",paddingLeft:a==="double"?"1em":0,cursor:"pointer"}}},arrowSign:{color:a.ARROW_COLOR},arrowSignInner:{position:"absolute",top:0,left:"-0.4em"},nestedNode:(e,a,r,t,n)=>{let{style:s}=e;return{style:{...s,position:"relative",paddingTop:"0.25em",marginLeft:a.length>1?"0.875em":0,paddingLeft:!n?"1.125em":0}}},rootNode:{padding:0,margin:0},nestedNodeLabel:(e,a,r,t,n)=>{let{style:s}=e;return{style:{...s,margin:0,padding:0,WebkitUserSelect:n?"inherit":"text",MozUserSelect:n?"inherit":"text",cursor:n?"pointer":"default"}}},nestedNodeItemString:(e,r,t,n)=>{let{style:s}=e;return{style:{...s,paddingLeft:"0.5em",cursor:"default",color:n?a.ITEM_STRING_EXPANDED_COLOR:a.ITEM_STRING_COLOR}}},nestedNodeItemType:{marginLeft:"0.3em",marginRight:"0.3em"},nestedNodeChildren:(e,a,r)=>{let{style:t}=e;return{style:{...t,padding:0,margin:0,listStyle:"none",display:r?"block":"none"}}},rootNodeChildren:{padding:0,margin:0,listStyle:"none"}}};const ie=Q(oe,{defaultBase16:te});const le=ie;const be=e=>e;const ue=(e,a,r)=>r===0;const ce=(e,a,r,t)=>n().createElement("span",null,r," ",t);const fe=e=>{let[a]=e;return n().createElement("span",null,a,":")};const he=()=>false;function de(e){let{data:a,theme:r,invertTheme:s,keyPath:o=["root"],labelRenderer:i=fe,valueRenderer:l=be,shouldExpandNodeInitially:b=ue,hideRoot:u=false,getItemString:c=ce,postprocessValue:f=be,isCustomNode:h=he,collectionLimit:d=50,sortObjectKeys:v=false}=e;const p=(0,t.useMemo)((()=>le(s?re(r):r)),[r,s]);return n().createElement("ul",p("tree"),n().createElement(M,{keyPath:u?[]:o,value:f(a),isCustomNode:h,styling:p,labelRenderer:i,valueRenderer:l,shouldExpandNodeInitially:b,hideRoot:u,getItemString:c,postprocessValue:f,collectionLimit:d,sortObjectKeys:v}))}},86851:(e,a,r)=>{"use strict";var t=r(35171);var n=Array.prototype.concat;var s=Array.prototype.slice;var o=e.exports=function e(a){var r=[];for(var o=0,i=a.length;o{"use strict";const n=r(34411);const s=Symbol("max");const i=Symbol("length");const o=Symbol("lengthCalculator");const a=Symbol("allowStale");const l=Symbol("maxAge");const c=Symbol("dispose");const u=Symbol("noDisposeOnSet");const f=Symbol("lruList");const p=Symbol("cache");const h=Symbol("updateAgeOnGet");const m=()=>1;class v{constructor(e){if(typeof e==="number")e={max:e};if(!e)e={};if(e.max&&(typeof e.max!=="number"||e.max<0))throw new TypeError("max must be a non-negative number");const t=this[s]=e.max||Infinity;const r=e.length||m;this[o]=typeof r!=="function"?m:r;this[a]=e.stale||false;if(e.maxAge&&typeof e.maxAge!=="number")throw new TypeError("maxAge must be a number");this[l]=e.maxAge||0;this[c]=e.dispose;this[u]=e.noDisposeOnSet||false;this[h]=e.updateAgeOnGet||false;this.reset()}set max(e){if(typeof e!=="number"||e<0)throw new TypeError("max must be a non-negative number");this[s]=e||Infinity;E(this)}get max(){return this[s]}set allowStale(e){this[a]=!!e}get allowStale(){return this[a]}set maxAge(e){if(typeof e!=="number")throw new TypeError("maxAge must be a non-negative number");this[l]=e;E(this)}get maxAge(){return this[l]}set lengthCalculator(e){if(typeof e!=="function")e=m;if(e!==this[o]){this[o]=e;this[i]=0;this[f].forEach((e=>{e.length=this[o](e.value,e.key);this[i]+=e.length}))}E(this)}get lengthCalculator(){return this[o]}get length(){return this[i]}get itemCount(){return this[f].length}rforEach(e,t){t=t||this;for(let r=this[f].tail;r!==null;){const n=r.prev;w(this,e,r,t);r=n}}forEach(e,t){t=t||this;for(let r=this[f].head;r!==null;){const n=r.next;w(this,e,r,t);r=n}}keys(){return this[f].toArray().map((e=>e.key))}values(){return this[f].toArray().map((e=>e.value))}reset(){if(this[c]&&this[f]&&this[f].length){this[f].forEach((e=>this[c](e.key,e.value)))}this[p]=new Map;this[f]=new n;this[i]=0}dump(){return this[f].map((e=>g(this,e)?false:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[f]}set(e,t,r){r=r||this[l];if(r&&typeof r!=="number")throw new TypeError("maxAge must be a number");const n=r?Date.now():0;const a=this[o](t,e);if(this[p].has(e)){if(a>this[s]){y(this,this[p].get(e));return false}const o=this[p].get(e);const l=o.value;if(this[c]){if(!this[u])this[c](e,l.value)}l.now=n;l.maxAge=r;l.value=t;this[i]+=a-l.length;l.length=a;this.get(e);E(this);return true}const h=new b(e,t,a,n,r);if(h.length>this[s]){if(this[c])this[c](e,t);return false}this[i]+=h.length;this[f].unshift(h);this[p].set(e,this[f].head);E(this);return true}has(e){if(!this[p].has(e))return false;const t=this[p].get(e).value;return!g(this,t)}get(e){return d(this,e,true)}peek(e){return d(this,e,false)}pop(){const e=this[f].tail;if(!e)return null;y(this,e);return e.value}del(e){y(this,this[p].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const n=e[r];const s=n.e||0;if(s===0)this.set(n.k,n.v);else{const e=s-t;if(e>0){this.set(n.k,n.v,e)}}}}prune(){this[p].forEach(((e,t)=>d(this,t,false)))}}const d=(e,t,r)=>{const n=e[p].get(t);if(n){const t=n.value;if(g(e,t)){y(e,n);if(!e[a])return undefined}else{if(r){if(e[h])n.value.now=Date.now();e[f].unshiftNode(n)}}return t.value}};const g=(e,t)=>{if(!t||!t.maxAge&&!e[l])return false;const r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[l]&&r>e[l]};const E=e=>{if(e[i]>e[s]){for(let t=e[f].tail;e[i]>e[s]&&t!==null;){const r=t.prev;y(e,t);t=r}}};const y=(e,t)=>{if(t){const r=t.value;if(e[c])e[c](r.key,r.value);e[i]-=r.length;e[p].delete(r.key);e[f].removeNode(t)}};class b{constructor(e,t,r,n,s){this.key=e;this.value=t;this.length=r;this.now=n;this.maxAge=s||0}}const w=(e,t,r,n)=>{let s=r.value;if(g(e,s)){y(e,r);if(!e[a])s=undefined}if(s)t.call(n,s.value,s.key,e)};e.exports=v},34155:e=>{var t=e.exports={};var r;var n;function s(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){r=setTimeout}else{r=s}}catch(e){r=s}try{if(typeof clearTimeout==="function"){n=clearTimeout}else{n=i}}catch(e){n=i}})();function o(e){if(r===setTimeout){return setTimeout(e,0)}if((r===s||!r)&&setTimeout){r=setTimeout;return setTimeout(e,0)}try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function a(e){if(n===clearTimeout){return clearTimeout(e)}if((n===i||!n)&&clearTimeout){n=clearTimeout;return clearTimeout(e)}try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}var l=[];var c=false;var u;var f=-1;function p(){if(!c||!u){return}c=false;if(u.length){l=u.concat(l)}else{f=-1}if(l.length){h()}}function h(){if(c){return}var e=o(p);c=true;var t=l.length;while(t){u=l;l=[];while(++f1){for(var r=1;r{!function(t,n){true?e.exports=n(r(28416)):0}(r.g,(function(e){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,r),s.l=!0,s.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)r.d(n,s,function(t){return e[t]}.bind(null,s));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=4)}([function(e,t,r){e.exports=r(2)()},function(t,r){t.exports=e},function(e,t,r){"use strict";var n=r(3);function s(){}function i(){}i.resetWarningCache=s,e.exports=function(){function e(e,t,r,s,i,o){if(o!==n){var a=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw a.name="Invariant Violation",a}}function t(){return e}e.isRequired=e;var r={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:s};return r.PropTypes=r,r}},function(e,t,r){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,r,n){"use strict";n.r(r);var s=n(1),i=n.n(s),o=n(0),a=n.n(o);function l(){return(l=Object.assign||function(e){for(var t=1;t0&&t.handlePageSelected(r-1,e)})),N(b(t),"handleNextPage",(function(e){var r=t.state.selected,n=t.props.pageCount;e.preventDefault?e.preventDefault():e.returnValue=!1,rs-n/2?d=n-(g=s-u):us-o||p>=u-d&&p<=u+g?e.push(E(p)):a&&e[e.length-1]!==v&&(v=i.a.createElement(h,{key:p,breakLabel:a,breakClassName:l,breakLinkClassName:c,breakHandler:t.handleBreakClick.bind(null,p),getEventListener:t.getEventListener}),e.push(v))}return e})),r=e.initialPage?e.initialPage:e.forcePage?e.forcePage:0,t.state={selected:r},t}return t=o,(r=[{key:"componentDidMount",value:function(){var e=this.props,t=e.initialPage,r=e.disableInitialCallback,n=e.extraAriaContext;void 0===t||r||this.callCallback(t),n&&console.warn("DEPRECATED (react-paginate): The extraAriaContext prop is deprecated. You should now use the ariaLabelBuilder instead.")}},{key:"componentDidUpdate",value:function(e){void 0!==this.props.forcePage&&this.props.forcePage!==e.forcePage&&this.setState({selected:this.props.forcePage})}},{key:"getForwardJump",value:function(){var e=this.state.selected,t=this.props,r=t.pageCount,n=e+t.pageRangeDisplayed;return n>=r?r-1:n}},{key:"getBackwardJump",value:function(){var e=this.state.selected-this.props.pageRangeDisplayed;return e<0?0:e}},{key:"hrefBuilder",value:function(e){var t=this.props,r=t.hrefBuilder,n=t.pageCount;if(r&&e!==this.state.selected&&e>=0&&e=0&&e{const n=Symbol("SemVer ANY");class s{static get ANY(){return n}constructor(e,t){t=i(t);if(e instanceof s){if(e.loose===!!t.loose){return e}else{e=e.value}}c("comparator",e,t);this.options=t;this.loose=!!t.loose;this.parse(e);if(this.semver===n){this.value=""}else{this.value=this.operator+this.semver.version}c("comp",this)}parse(e){const t=this.options.loose?o[a.COMPARATORLOOSE]:o[a.COMPARATOR];const r=e.match(t);if(!r){throw new TypeError(`Invalid comparator: ${e}`)}this.operator=r[1]!==undefined?r[1]:"";if(this.operator==="="){this.operator=""}if(!r[2]){this.semver=n}else{this.semver=new u(r[2],this.options.loose)}}toString(){return this.value}test(e){c("Comparator.test",e,this.options.loose);if(this.semver===n||e===n){return true}if(typeof e==="string"){try{e=new u(e,this.options)}catch(t){return false}}return l(e,this.operator,this.semver,this.options)}intersects(e,t){if(!(e instanceof s)){throw new TypeError("a Comparator is required")}if(this.operator===""){if(this.value===""){return true}return new f(e.value,t).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new f(this.value,t).test(e.semver)}t=i(t);if(t.includePrerelease&&(this.value==="<0.0.0-0"||e.value==="<0.0.0-0")){return false}if(!t.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))){return false}if(this.operator.startsWith(">")&&e.operator.startsWith(">")){return true}if(this.operator.startsWith("<")&&e.operator.startsWith("<")){return true}if(this.semver.version===e.semver.version&&this.operator.includes("=")&&e.operator.includes("=")){return true}if(l(this.semver,"<",e.semver,t)&&this.operator.startsWith(">")&&e.operator.startsWith("<")){return true}if(l(this.semver,">",e.semver,t)&&this.operator.startsWith("<")&&e.operator.startsWith(">")){return true}return false}}e.exports=s;const i=r(12893);const{re:o,t:a}=r(55765);const l=r(7539);const c=r(74225);const u=r(26376);const f=r(66902)},66902:(e,t,r)=>{class n{constructor(e,t){t=o(t);if(e instanceof n){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{return new n(e.raw,t)}}if(e instanceof a){this.raw=e.value;this.set=[[e]];this.format();return this}this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;this.raw=e;this.set=e.split("||").map((e=>this.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError(`Invalid SemVer Range: ${e}`)}if(this.set.length>1){const e=this.set[0];this.set=this.set.filter((e=>!g(e[0])));if(this.set.length===0){this.set=[e]}else if(this.set.length>1){for(const e of this.set){if(e.length===1&&E(e[0])){this.set=[e];break}}}}this.format()}format(){this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim();return this.range}toString(){return this.range}parseRange(e){e=e.trim();const t=(this.options.includePrerelease&&v)|(this.options.loose&&d);const r=t+":"+e;const n=i.get(r);if(n){return n}const s=this.options.loose;const o=s?u[f.HYPHENRANGELOOSE]:u[f.HYPHENRANGE];e=e.replace(o,A(this.options.includePrerelease));l("hyphen replace",e);e=e.replace(u[f.COMPARATORTRIM],p);l("comparator trim",e);e=e.replace(u[f.TILDETRIM],h);e=e.replace(u[f.CARETTRIM],m);e=e.split(/\s+/).join(" ");let c=e.split(" ").map((e=>b(e,this.options))).join(" ").split(/\s+/).map((e=>T(e,this.options)));if(s){c=c.filter((e=>{l("loose invalid filter",e,this.options);return!!e.match(u[f.COMPARATORLOOSE])}))}l("range list",c);const E=new Map;const y=c.map((e=>new a(e,this.options)));for(const i of y){if(g(i)){return[i]}E.set(i.value,i)}if(E.size>1&&E.has("")){E.delete("")}const w=[...E.values()];i.set(r,w);return w}intersects(e,t){if(!(e instanceof n)){throw new TypeError("a Range is required")}return this.set.some((r=>y(r,t)&&e.set.some((e=>y(e,t)&&r.every((r=>e.every((e=>r.intersects(e,t)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new c(e,this.options)}catch(t){return false}}for(let r=0;re.value==="<0.0.0-0";const E=e=>e.value==="";const y=(e,t)=>{let r=true;const n=e.slice();let s=n.pop();while(r&&n.length){r=n.every((e=>s.intersects(e,t)));s=n.pop()}return r};const b=(e,t)=>{l("comp",e,t);e=L(e,t);l("caret",e);e=N(e,t);l("tildes",e);e=O(e,t);l("xrange",e);e=x(e,t);l("stars",e);return e};const w=e=>!e||e.toLowerCase()==="x"||e==="*";const N=(e,t)=>e.trim().split(/\s+/).map((e=>R(e,t))).join(" ");const R=(e,t)=>{const r=t.loose?u[f.TILDELOOSE]:u[f.TILDE];return e.replace(r,((t,r,n,s,i)=>{l("tilde",e,t,r,n,s,i);let o;if(w(r)){o=""}else if(w(n)){o=`>=${r}.0.0 <${+r+1}.0.0-0`}else if(w(s)){o=`>=${r}.${n}.0 <${r}.${+n+1}.0-0`}else if(i){l("replaceTilde pr",i);o=`>=${r}.${n}.${s}-${i} <${r}.${+n+1}.0-0`}else{o=`>=${r}.${n}.${s} <${r}.${+n+1}.0-0`}l("tilde return",o);return o}))};const L=(e,t)=>e.trim().split(/\s+/).map((e=>$(e,t))).join(" ");const $=(e,t)=>{l("caret",e,t);const r=t.loose?u[f.CARETLOOSE]:u[f.CARET];const n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,s,i,o)=>{l("caret",e,t,r,s,i,o);let a;if(w(r)){a=""}else if(w(s)){a=`>=${r}.0.0${n} <${+r+1}.0.0-0`}else if(w(i)){if(r==="0"){a=`>=${r}.${s}.0${n} <${r}.${+s+1}.0-0`}else{a=`>=${r}.${s}.0${n} <${+r+1}.0.0-0`}}else if(o){l("replaceCaret pr",o);if(r==="0"){if(s==="0"){a=`>=${r}.${s}.${i}-${o} <${r}.${s}.${+i+1}-0`}else{a=`>=${r}.${s}.${i}-${o} <${r}.${+s+1}.0-0`}}else{a=`>=${r}.${s}.${i}-${o} <${+r+1}.0.0-0`}}else{l("no pr");if(r==="0"){if(s==="0"){a=`>=${r}.${s}.${i}${n} <${r}.${s}.${+i+1}-0`}else{a=`>=${r}.${s}.${i}${n} <${r}.${+s+1}.0-0`}}else{a=`>=${r}.${s}.${i} <${+r+1}.0.0-0`}}l("caret return",a);return a}))};const O=(e,t)=>{l("replaceXRanges",e,t);return e.split(/\s+/).map((e=>I(e,t))).join(" ")};const I=(e,t)=>{e=e.trim();const r=t.loose?u[f.XRANGELOOSE]:u[f.XRANGE];return e.replace(r,((r,n,s,i,o,a)=>{l("xRange",e,r,n,s,i,o,a);const c=w(s);const u=c||w(i);const f=u||w(o);const p=f;if(n==="="&&p){n=""}a=t.includePrerelease?"-0":"";if(c){if(n===">"||n==="<"){r="<0.0.0-0"}else{r="*"}}else if(n&&p){if(u){i=0}o=0;if(n===">"){n=">=";if(u){s=+s+1;i=0;o=0}else{i=+i+1;o=0}}else if(n==="<="){n="<";if(u){s=+s+1}else{i=+i+1}}if(n==="<"){a="-0"}r=`${n+s}.${i}.${o}${a}`}else if(u){r=`>=${s}.0.0${a} <${+s+1}.0.0-0`}else if(f){r=`>=${s}.${i}.0${a} <${s}.${+i+1}.0-0`}l("xRange return",r);return r}))};const x=(e,t)=>{l("replaceStars",e,t);return e.trim().replace(u[f.STAR],"")};const T=(e,t)=>{l("replaceGTE0",e,t);return e.trim().replace(u[t.includePrerelease?f.GTE0PRE:f.GTE0],"")};const A=e=>(t,r,n,s,i,o,a,l,c,u,f,p,h)=>{if(w(n)){r=""}else if(w(s)){r=`>=${n}.0.0${e?"-0":""}`}else if(w(i)){r=`>=${n}.${s}.0${e?"-0":""}`}else if(o){r=`>=${r}`}else{r=`>=${r}${e?"-0":""}`}if(w(c)){l=""}else if(w(u)){l=`<${+c+1}.0.0-0`}else if(w(f)){l=`<${c}.${+u+1}.0-0`}else if(p){l=`<=${c}.${u}.${f}-${p}`}else if(e){l=`<${c}.${u}.${+f+1}-0`}else{l=`<=${l}`}return`${r} ${l}`.trim()};const S=(e,t,r)=>{for(let n=0;n0){const n=e[r].semver;if(n.major===t.major&&n.minor===t.minor&&n.patch===t.patch){return true}}}return false}return true}},26376:(e,t,r)=>{const n=r(74225);const{MAX_LENGTH:s,MAX_SAFE_INTEGER:i}=r(83295);const{re:o,t:a}=r(55765);const l=r(12893);const{compareIdentifiers:c}=r(86742);class u{constructor(e,t){t=l(t);if(e instanceof u){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease){return e}else{e=e.version}}else if(typeof e!=="string"){throw new TypeError(`Invalid Version: ${r(43335).inspect(e)}`)}if(e.length>s){throw new TypeError(`version is longer than ${s} characters`)}n("SemVer",e,t);this.options=t;this.loose=!!t.loose;this.includePrerelease=!!t.includePrerelease;const c=e.trim().match(t.loose?o[a.LOOSE]:o[a.FULL]);if(!c){throw new TypeError(`Invalid Version: ${e}`)}this.raw=e;this.major=+c[1];this.minor=+c[2];this.patch=+c[3];if(this.major>i||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>i||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>i||this.patch<0){throw new TypeError("Invalid patch version")}if(!c[4]){this.prerelease=[]}else{this.prerelease=c[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t=0){if(typeof this.prerelease[n]==="number"){this.prerelease[n]++;n=-2}}if(n===-1){if(t===this.prerelease.join(".")&&r===false){throw new Error("invalid increment argument: identifier already exists")}this.prerelease.push(e)}}if(t){let n=[t,e];if(r===false){n=[t]}if(c(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=n}}else{this.prerelease=n}}break}default:throw new Error(`invalid increment argument: ${e}`)}this.format();this.raw=this.version;return this}}e.exports=u},13507:(e,t,r)=>{const n=r(33959);const s=(e,t)=>{const r=n(e.trim().replace(/^[=v]+/,""),t);return r?r.version:null};e.exports=s},7539:(e,t,r)=>{const n=r(58718);const s=r(81194);const i=r(71312);const o=r(25903);const a=r(21544);const l=r(12056);const c=(e,t,r,c)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e===r;case"!==":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e!==r;case"":case"=":case"==":return n(e,r,c);case"!=":return s(e,r,c);case">":return i(e,r,c);case">=":return o(e,r,c);case"<":return a(e,r,c);case"<=":return l(e,r,c);default:throw new TypeError(`Invalid operator: ${t}`)}};e.exports=c},99038:(e,t,r)=>{const n=r(26376);const s=r(33959);const{re:i,t:o}=r(55765);const a=(e,t)=>{if(e instanceof n){return e}if(typeof e==="number"){e=String(e)}if(typeof e!=="string"){return null}t=t||{};let r=null;if(!t.rtl){r=e.match(i[o.COERCE])}else{let t;while((t=i[o.COERCERTL].exec(e))&&(!r||r.index+r[0].length!==e.length)){if(!r||t.index+t[0].length!==r.index+r[0].length){r=t}i[o.COERCERTL].lastIndex=t.index+t[1].length+t[2].length}i[o.COERCERTL].lastIndex=-1}if(r===null){return null}return s(`${r[2]}.${r[3]||"0"}.${r[4]||"0"}`,t)};e.exports=a},88880:(e,t,r)=>{const n=r(26376);const s=(e,t,r)=>{const s=new n(e,r);const i=new n(t,r);return s.compare(i)||s.compareBuild(i)};e.exports=s},27880:(e,t,r)=>{const n=r(46269);const s=(e,t)=>n(e,t,true);e.exports=s},46269:(e,t,r)=>{const n=r(26376);const s=(e,t,r)=>new n(e,r).compare(new n(t,r));e.exports=s},62378:(e,t,r)=>{const n=r(33959);const s=(e,t)=>{const r=n(e,null,true);const s=n(t,null,true);const i=r.compare(s);if(i===0){return null}const o=i>0;const a=o?r:s;const l=o?s:r;const c=!!a.prerelease.length;const u=c?"pre":"";if(r.major!==s.major){return u+"major"}if(r.minor!==s.minor){return u+"minor"}if(r.patch!==s.patch){return u+"patch"}if(c){return"prerelease"}if(l.patch){return"patch"}if(l.minor){return"minor"}return"major"};e.exports=s},58718:(e,t,r)=>{const n=r(46269);const s=(e,t,r)=>n(e,t,r)===0;e.exports=s},71312:(e,t,r)=>{const n=r(46269);const s=(e,t,r)=>n(e,t,r)>0;e.exports=s},25903:(e,t,r)=>{const n=r(46269);const s=(e,t,r)=>n(e,t,r)>=0;e.exports=s},20253:(e,t,r)=>{const n=r(26376);const s=(e,t,r,s,i)=>{if(typeof r==="string"){i=s;s=r;r=undefined}try{return new n(e instanceof n?e.version:e,r).inc(t,s,i).version}catch(o){return null}};e.exports=s},21544:(e,t,r)=>{const n=r(46269);const s=(e,t,r)=>n(e,t,r)<0;e.exports=s},12056:(e,t,r)=>{const n=r(46269);const s=(e,t,r)=>n(e,t,r)<=0;e.exports=s},38679:(e,t,r)=>{const n=r(26376);const s=(e,t)=>new n(e,t).major;e.exports=s},87789:(e,t,r)=>{const n=r(26376);const s=(e,t)=>new n(e,t).minor;e.exports=s},81194:(e,t,r)=>{const n=r(46269);const s=(e,t,r)=>n(e,t,r)!==0;e.exports=s},33959:(e,t,r)=>{const n=r(26376);const s=(e,t,r=false)=>{if(e instanceof n){return e}try{return new n(e,t)}catch(s){if(!r){return null}throw s}};e.exports=s},52358:(e,t,r)=>{const n=r(26376);const s=(e,t)=>new n(e,t).patch;e.exports=s},57559:(e,t,r)=>{const n=r(33959);const s=(e,t)=>{const r=n(e,t);return r&&r.prerelease.length?r.prerelease:null};e.exports=s},79795:(e,t,r)=>{const n=r(46269);const s=(e,t,r)=>n(t,e,r);e.exports=s},63657:(e,t,r)=>{const n=r(88880);const s=(e,t)=>e.sort(((e,r)=>n(r,e,t)));e.exports=s},45712:(e,t,r)=>{const n=r(66902);const s=(e,t,r)=>{try{t=new n(t,r)}catch(s){return false}return t.test(e)};e.exports=s},21100:(e,t,r)=>{const n=r(88880);const s=(e,t)=>e.sort(((e,r)=>n(e,r,t)));e.exports=s},76397:(e,t,r)=>{const n=r(33959);const s=(e,t)=>{const r=n(e,t);return r?r.version:null};e.exports=s},81249:(e,t,r)=>{const n=r(55765);const s=r(83295);const i=r(26376);const o=r(86742);const a=r(33959);const l=r(76397);const c=r(13507);const u=r(20253);const f=r(62378);const p=r(38679);const h=r(87789);const m=r(52358);const v=r(57559);const d=r(46269);const g=r(79795);const E=r(27880);const y=r(88880);const b=r(21100);const w=r(63657);const N=r(71312);const R=r(21544);const L=r(58718);const $=r(81194);const O=r(25903);const I=r(12056);const x=r(7539);const T=r(99038);const A=r(22257);const S=r(66902);const P=r(45712);const C=r(51042);const k=r(85775);const j=r(71657);const D=r(95316);const _=r(89042);const G=r(6826);const M=r(97606);const F=r(50032);const U=r(82937);const B=r(17908);const X=r(50799);e.exports={parse:a,valid:l,clean:c,inc:u,diff:f,major:p,minor:h,patch:m,prerelease:v,compare:d,rcompare:g,compareLoose:E,compareBuild:y,sort:b,rsort:w,gt:N,lt:R,eq:L,neq:$,gte:O,lte:I,cmp:x,coerce:T,Comparator:A,Range:S,satisfies:P,toComparators:C,maxSatisfying:k,minSatisfying:j,minVersion:D,validRange:_,outside:G,gtr:M,ltr:F,intersects:U,simplifyRange:B,subset:X,SemVer:i,re:n.re,src:n.src,tokens:n.t,SEMVER_SPEC_VERSION:s.SEMVER_SPEC_VERSION,RELEASE_TYPES:s.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}},83295:e=>{const t="2.0.0";const r=256;const n=Number.MAX_SAFE_INTEGER||9007199254740991;const s=16;const i=["major","premajor","minor","preminor","patch","prepatch","prerelease"];e.exports={MAX_LENGTH:r,MAX_SAFE_COMPONENT_LENGTH:s,MAX_SAFE_INTEGER:n,RELEASE_TYPES:i,SEMVER_SPEC_VERSION:t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}},74225:(e,t,r)=>{var n=r(34155);const s=typeof n==="object"&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};e.exports=s},86742:e=>{const t=/^[0-9]+$/;const r=(e,r)=>{const n=t.test(e);const s=t.test(r);if(n&&s){e=+e;r=+r}return e===r?0:n&&!s?-1:s&&!n?1:er(t,e);e.exports={compareIdentifiers:r,rcompareIdentifiers:n}},12893:e=>{const t=Object.freeze({loose:true});const r=Object.freeze({});const n=e=>{if(!e){return r}if(typeof e!=="object"){return t}return e};e.exports=n},55765:(e,t,r)=>{const{MAX_SAFE_COMPONENT_LENGTH:n}=r(83295);const s=r(74225);t=e.exports={};const i=t.re=[];const o=t.src=[];const a=t.t={};let l=0;const c=(e,t,r)=>{const n=l++;s(e,n,t);a[e]=n;o[n]=t;i[n]=new RegExp(t,r?"g":undefined)};c("NUMERICIDENTIFIER","0|[1-9]\\d*");c("NUMERICIDENTIFIERLOOSE","[0-9]+");c("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");c("MAINVERSION",`(${o[a.NUMERICIDENTIFIER]})\\.`+`(${o[a.NUMERICIDENTIFIER]})\\.`+`(${o[a.NUMERICIDENTIFIER]})`);c("MAINVERSIONLOOSE",`(${o[a.NUMERICIDENTIFIERLOOSE]})\\.`+`(${o[a.NUMERICIDENTIFIERLOOSE]})\\.`+`(${o[a.NUMERICIDENTIFIERLOOSE]})`);c("PRERELEASEIDENTIFIER",`(?:${o[a.NUMERICIDENTIFIER]}|${o[a.NONNUMERICIDENTIFIER]})`);c("PRERELEASEIDENTIFIERLOOSE",`(?:${o[a.NUMERICIDENTIFIERLOOSE]}|${o[a.NONNUMERICIDENTIFIER]})`);c("PRERELEASE",`(?:-(${o[a.PRERELEASEIDENTIFIER]}(?:\\.${o[a.PRERELEASEIDENTIFIER]})*))`);c("PRERELEASELOOSE",`(?:-?(${o[a.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${o[a.PRERELEASEIDENTIFIERLOOSE]})*))`);c("BUILDIDENTIFIER","[0-9A-Za-z-]+");c("BUILD",`(?:\\+(${o[a.BUILDIDENTIFIER]}(?:\\.${o[a.BUILDIDENTIFIER]})*))`);c("FULLPLAIN",`v?${o[a.MAINVERSION]}${o[a.PRERELEASE]}?${o[a.BUILD]}?`);c("FULL",`^${o[a.FULLPLAIN]}$`);c("LOOSEPLAIN",`[v=\\s]*${o[a.MAINVERSIONLOOSE]}${o[a.PRERELEASELOOSE]}?${o[a.BUILD]}?`);c("LOOSE",`^${o[a.LOOSEPLAIN]}$`);c("GTLT","((?:<|>)?=?)");c("XRANGEIDENTIFIERLOOSE",`${o[a.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);c("XRANGEIDENTIFIER",`${o[a.NUMERICIDENTIFIER]}|x|X|\\*`);c("XRANGEPLAIN",`[v=\\s]*(${o[a.XRANGEIDENTIFIER]})`+`(?:\\.(${o[a.XRANGEIDENTIFIER]})`+`(?:\\.(${o[a.XRANGEIDENTIFIER]})`+`(?:${o[a.PRERELEASE]})?${o[a.BUILD]}?`+`)?)?`);c("XRANGEPLAINLOOSE",`[v=\\s]*(${o[a.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})`+`(?:\\.(${o[a.XRANGEIDENTIFIERLOOSE]})`+`(?:${o[a.PRERELEASELOOSE]})?${o[a.BUILD]}?`+`)?)?`);c("XRANGE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAIN]}$`);c("XRANGELOOSE",`^${o[a.GTLT]}\\s*${o[a.XRANGEPLAINLOOSE]}$`);c("COERCE",`${"(^|[^\\d])"+"(\\d{1,"}${n}})`+`(?:\\.(\\d{1,${n}}))?`+`(?:\\.(\\d{1,${n}}))?`+`(?:$|[^\\d])`);c("COERCERTL",o[a.COERCE],true);c("LONETILDE","(?:~>?)");c("TILDETRIM",`(\\s*)${o[a.LONETILDE]}\\s+`,true);t.tildeTrimReplace="$1~";c("TILDE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAIN]}$`);c("TILDELOOSE",`^${o[a.LONETILDE]}${o[a.XRANGEPLAINLOOSE]}$`);c("LONECARET","(?:\\^)");c("CARETTRIM",`(\\s*)${o[a.LONECARET]}\\s+`,true);t.caretTrimReplace="$1^";c("CARET",`^${o[a.LONECARET]}${o[a.XRANGEPLAIN]}$`);c("CARETLOOSE",`^${o[a.LONECARET]}${o[a.XRANGEPLAINLOOSE]}$`);c("COMPARATORLOOSE",`^${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]})$|^$`);c("COMPARATOR",`^${o[a.GTLT]}\\s*(${o[a.FULLPLAIN]})$|^$`);c("COMPARATORTRIM",`(\\s*)${o[a.GTLT]}\\s*(${o[a.LOOSEPLAIN]}|${o[a.XRANGEPLAIN]})`,true);t.comparatorTrimReplace="$1$2$3";c("HYPHENRANGE",`^\\s*(${o[a.XRANGEPLAIN]})`+`\\s+-\\s+`+`(${o[a.XRANGEPLAIN]})`+`\\s*$`);c("HYPHENRANGELOOSE",`^\\s*(${o[a.XRANGEPLAINLOOSE]})`+`\\s+-\\s+`+`(${o[a.XRANGEPLAINLOOSE]})`+`\\s*$`);c("STAR","(<|>)?=?\\s*\\*");c("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");c("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")},97606:(e,t,r)=>{const n=r(6826);const s=(e,t,r)=>n(e,t,">",r);e.exports=s},82937:(e,t,r)=>{const n=r(66902);const s=(e,t,r)=>{e=new n(e,r);t=new n(t,r);return e.intersects(t,r)};e.exports=s},50032:(e,t,r)=>{const n=r(6826);const s=(e,t,r)=>n(e,t,"<",r);e.exports=s},85775:(e,t,r)=>{const n=r(26376);const s=r(66902);const i=(e,t,r)=>{let i=null;let o=null;let a=null;try{a=new s(t,r)}catch(l){return null}e.forEach((e=>{if(a.test(e)){if(!i||o.compare(e)===-1){i=e;o=new n(i,r)}}}));return i};e.exports=i},71657:(e,t,r)=>{const n=r(26376);const s=r(66902);const i=(e,t,r)=>{let i=null;let o=null;let a=null;try{a=new s(t,r)}catch(l){return null}e.forEach((e=>{if(a.test(e)){if(!i||o.compare(e)===1){i=e;o=new n(i,r)}}}));return i};e.exports=i},95316:(e,t,r)=>{const n=r(26376);const s=r(66902);const i=r(71312);const o=(e,t)=>{e=new s(e,t);let r=new n("0.0.0");if(e.test(r)){return r}r=new n("0.0.0-0");if(e.test(r)){return r}r=null;for(let s=0;s{const t=new n(e.semver.version);switch(e.operator){case">":if(t.prerelease.length===0){t.patch++}else{t.prerelease.push(0)}t.raw=t.format();case"":case">=":if(!o||i(t,o)){o=t}break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${e.operator}`)}}));if(o&&(!r||i(r,o))){r=o}}if(r&&e.test(r)){return r}return null};e.exports=o},6826:(e,t,r)=>{const n=r(26376);const s=r(22257);const{ANY:i}=s;const o=r(66902);const a=r(45712);const l=r(71312);const c=r(21544);const u=r(12056);const f=r(25903);const p=(e,t,r,p)=>{e=new n(e,p);t=new o(t,p);let h,m,v,d,g;switch(r){case">":h=l;m=u;v=c;d=">";g=">=";break;case"<":h=c;m=f;v=l;d="<";g="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(a(e,t,p)){return false}for(let n=0;n{if(e.semver===i){e=new s(">=0.0.0")}o=o||e;a=a||e;if(h(e.semver,o.semver,p)){o=e}else if(v(e.semver,a.semver,p)){a=e}}));if(o.operator===d||o.operator===g){return false}if((!a.operator||a.operator===d)&&m(e,a.semver)){return false}else if(a.operator===g&&v(e,a.semver)){return false}}return true};e.exports=p},17908:(e,t,r)=>{const n=r(45712);const s=r(46269);e.exports=(e,t,r)=>{const i=[];let o=null;let a=null;const l=e.sort(((e,t)=>s(e,t,r)));for(const s of l){const e=n(s,t,r);if(e){a=s;if(!o){o=s}}else{if(a){i.push([o,a])}a=null;o=null}}if(o){i.push([o,null])}const c=[];for(const[n,s]of i){if(n===s){c.push(n)}else if(!s&&n===l[0]){c.push("*")}else if(!s){c.push(`>=${n}`)}else if(n===l[0]){c.push(`<=${s}`)}else{c.push(`${n} - ${s}`)}}const u=c.join(" || ");const f=typeof t.raw==="string"?t.raw:String(t);return u.length{const n=r(66902);const s=r(22257);const{ANY:i}=s;const o=r(45712);const a=r(46269);const l=(e,t,r={})=>{if(e===t){return true}e=new n(e,r);t=new n(t,r);let s=false;e:for(const n of e.set){for(const e of t.set){const t=f(n,e,r);s=s||t!==null;if(t){continue e}}if(s){return false}}return true};const c=[new s(">=0.0.0-0")];const u=[new s(">=0.0.0")];const f=(e,t,r)=>{if(e===t){return true}if(e.length===1&&e[0].semver===i){if(t.length===1&&t[0].semver===i){return true}else if(r.includePrerelease){e=c}else{e=u}}if(t.length===1&&t[0].semver===i){if(r.includePrerelease){return true}else{t=u}}const n=new Set;let s,l;for(const i of e){if(i.operator===">"||i.operator===">="){s=p(s,i,r)}else if(i.operator==="<"||i.operator==="<="){l=h(l,i,r)}else{n.add(i.semver)}}if(n.size>1){return null}let f;if(s&&l){f=a(s.semver,l.semver,r);if(f>0){return null}else if(f===0&&(s.operator!==">="||l.operator!=="<=")){return null}}for(const i of n){if(s&&!o(i,String(s),r)){return null}if(l&&!o(i,String(l),r)){return null}for(const e of t){if(!o(i,String(e),r)){return false}}return true}let m,v;let d,g;let E=l&&!r.includePrerelease&&l.semver.prerelease.length?l.semver:false;let y=s&&!r.includePrerelease&&s.semver.prerelease.length?s.semver:false;if(E&&E.prerelease.length===1&&l.operator==="<"&&E.prerelease[0]===0){E=false}for(const i of t){g=g||i.operator===">"||i.operator===">=";d=d||i.operator==="<"||i.operator==="<=";if(s){if(y){if(i.semver.prerelease&&i.semver.prerelease.length&&i.semver.major===y.major&&i.semver.minor===y.minor&&i.semver.patch===y.patch){y=false}}if(i.operator===">"||i.operator===">="){m=p(s,i,r);if(m===i&&m!==s){return false}}else if(s.operator===">="&&!o(s.semver,String(i),r)){return false}}if(l){if(E){if(i.semver.prerelease&&i.semver.prerelease.length&&i.semver.major===E.major&&i.semver.minor===E.minor&&i.semver.patch===E.patch){E=false}}if(i.operator==="<"||i.operator==="<="){v=h(l,i,r);if(v===i&&v!==l){return false}}else if(l.operator==="<="&&!o(l.semver,String(i),r)){return false}}if(!i.operator&&(l||s)&&f!==0){return false}}if(s&&d&&!l&&f!==0){return false}if(l&&g&&!s&&f!==0){return false}if(y||E){return false}return true};const p=(e,t,r)=>{if(!e){return t}const n=a(e.semver,t.semver,r);return n>0?e:n<0?t:t.operator===">"&&e.operator===">="?t:e};const h=(e,t,r)=>{if(!e){return t}const n=a(e.semver,t.semver,r);return n<0?e:n>0?t:t.operator==="<"&&e.operator==="<="?t:e};e.exports=l},51042:(e,t,r)=>{const n=r(66902);const s=(e,t)=>new n(e,t).set.map((e=>e.map((e=>e.value)).join(" ").trim().split(" ")));e.exports=s},89042:(e,t,r)=>{const n=r(66902);const s=(e,t)=>{try{return new n(e,t).range||"*"}catch(r){return null}};e.exports=s},49602:e=>{"use strict";e.exports=function(e){e.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next){yield e.value}}}},34411:(e,t,r)=>{"use strict";e.exports=n;n.Node=a;n.create=n;function n(e){var t=this;if(!(t instanceof n)){t=new n}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach((function(e){t.push(e)}))}else if(arguments.length>0){for(var r=0,s=arguments.length;r1){r=t}else if(this.head){n=this.head.next;r=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var s=0;n!==null;s++){r=e(r,n.value,s);n=n.next}return r};n.prototype.reduceReverse=function(e,t){var r;var n=this.tail;if(arguments.length>1){r=t}else if(this.tail){n=this.tail.prev;r=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var s=this.length-1;n!==null;s--){r=e(r,n.value,s);n=n.prev}return r};n.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,r=this.head;r!==null;t++){e[t]=r.value;r=r.next}return e};n.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,r=this.tail;r!==null;t++){e[t]=r.value;r=r.prev}return e};n.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new n;if(tthis.length){t=this.length}for(var s=0,i=this.head;i!==null&&sthis.length){t=this.length}for(var s=this.length,i=this.tail;i!==null&&s>t;s--){i=i.prev}for(;i!==null&&s>e;s--,i=i.prev){r.push(i.value)}return r};n.prototype.splice=function(e,t,...r){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var n=0,i=this.head;i!==null&&n{var t=e.exports={};var r;var n;function s(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){r=setTimeout}else{r=s}}catch(e){r=s}try{if(typeof clearTimeout==="function"){n=clearTimeout}else{n=i}}catch(e){n=i}})();function o(e){if(r===setTimeout){return setTimeout(e,0)}if((r===s||!r)&&setTimeout){r=setTimeout;return setTimeout(e,0)}try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function a(e){if(n===clearTimeout){return clearTimeout(e)}if((n===i||!n)&&clearTimeout){n=clearTimeout;return clearTimeout(e)}try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}var l=[];var c=false;var u;var f=-1;function p(){if(!c||!u){return}c=false;if(u.length){l=u.concat(l)}else{f=-1}if(l.length){h()}}function h(){if(c){return}var e=o(p);c=true;var t=l.length;while(t){u=l;l=[];while(++f1){for(var r=1;r{if(typeof Object.create==="function"){e.exports=function e(t,r){t.super_=r;t.prototype=Object.create(r.prototype,{constructor:{value:t,enumerable:false,writable:true,configurable:true}})}}else{e.exports=function e(t,r){t.super_=r;var n=function(){};n.prototype=r.prototype;t.prototype=new n;t.prototype.constructor=t}}},10082:e=>{e.exports=function e(t){return t&&typeof t==="object"&&typeof t.copy==="function"&&typeof t.fill==="function"&&typeof t.readUInt8==="function"}},43335:(e,t,r)=>{var n=r(34406);var s=/%[sdj%]/g;t.format=function(e){if(!N(e)){var t=[];for(var r=0;r=i)return e;switch(e){case"%s":return String(n[r++]);case"%d":return Number(n[r++]);case"%j":try{return JSON.stringify(n[r++])}catch(t){return"[Circular]"}default:return e}}));for(var l=n[r];r=3)n.depth=arguments[2];if(arguments.length>=4)n.colors=arguments[3];if(E(r)){n.showHidden=r}else if(r){t._extend(n,r)}if(L(n.showHidden))n.showHidden=false;if(L(n.depth))n.depth=2;if(L(n.colors))n.colors=false;if(L(n.customInspect))n.customInspect=true;if(n.colors)n.stylize=l;return f(n,e,n.depth)}t.inspect=a;a.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]};a.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function l(e,t){var r=a.styles[t];if(r){return"["+a.colors[r][0]+"m"+e+"["+a.colors[r][1]+"m"}else{return e}}function c(e,t){return e}function u(e){var t={};e.forEach((function(e,r){t[e]=true}));return t}function f(e,r,n){if(e.customInspect&&r&&T(r.inspect)&&r.inspect!==t.inspect&&!(r.constructor&&r.constructor.prototype===r)){var s=r.inspect(n,e);if(!N(s)){s=f(e,s,n)}return s}var i=p(e,r);if(i){return i}var o=Object.keys(r);var a=u(o);if(e.showHidden){o=Object.getOwnPropertyNames(r)}if(x(r)&&(o.indexOf("message")>=0||o.indexOf("description")>=0)){return h(r)}if(o.length===0){if(T(r)){var l=r.name?": "+r.name:"";return e.stylize("[Function"+l+"]","special")}if($(r)){return e.stylize(RegExp.prototype.toString.call(r),"regexp")}if(I(r)){return e.stylize(Date.prototype.toString.call(r),"date")}if(x(r)){return h(r)}}var c="",E=false,y=["{","}"];if(g(r)){E=true;y=["[","]"]}if(T(r)){var b=r.name?": "+r.name:"";c=" [Function"+b+"]"}if($(r)){c=" "+RegExp.prototype.toString.call(r)}if(I(r)){c=" "+Date.prototype.toUTCString.call(r)}if(x(r)){c=" "+h(r)}if(o.length===0&&(!E||r.length==0)){return y[0]+c+y[1]}if(n<0){if($(r)){return e.stylize(RegExp.prototype.toString.call(r),"regexp")}else{return e.stylize("[Object]","special")}}e.seen.push(r);var w;if(E){w=m(e,r,n,a,o)}else{w=o.map((function(t){return v(e,r,n,a,t,E)}))}e.seen.pop();return d(w,c,y)}function p(e,t){if(L(t))return e.stylize("undefined","undefined");if(N(t)){var r="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(r,"string")}if(w(t))return e.stylize(""+t,"number");if(E(t))return e.stylize(""+t,"boolean");if(y(t))return e.stylize("null","null")}function h(e){return"["+Error.prototype.toString.call(e)+"]"}function m(e,t,r,n,s){var i=[];for(var o=0,a=t.length;o-1){if(i){a=a.split("\n").map((function(e){return" "+e})).join("\n").substr(2)}else{a="\n"+a.split("\n").map((function(e){return" "+e})).join("\n")}}}else{a=e.stylize("[Circular]","special")}}if(L(o)){if(i&&s.match(/^\d+$/)){return a}o=JSON.stringify(""+s);if(o.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)){o=o.substr(1,o.length-2);o=e.stylize(o,"name")}else{o=o.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'");o=e.stylize(o,"string")}}return o+": "+a}function d(e,t,r){var n=0;var s=e.reduce((function(e,t){n++;if(t.indexOf("\n")>=0)n++;return e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(s>60){return r[0]+(t===""?"":t+"\n ")+" "+e.join(",\n ")+" "+r[1]}return r[0]+t+" "+e.join(", ")+" "+r[1]}function g(e){return Array.isArray(e)}t.isArray=g;function E(e){return typeof e==="boolean"}t.isBoolean=E;function y(e){return e===null}t.isNull=y;function b(e){return e==null}t.isNullOrUndefined=b;function w(e){return typeof e==="number"}t.isNumber=w;function N(e){return typeof e==="string"}t.isString=N;function R(e){return typeof e==="symbol"}t.isSymbol=R;function L(e){return e===void 0}t.isUndefined=L;function $(e){return O(e)&&S(e)==="[object RegExp]"}t.isRegExp=$;function O(e){return typeof e==="object"&&e!==null}t.isObject=O;function I(e){return O(e)&&S(e)==="[object Date]"}t.isDate=I;function x(e){return O(e)&&(S(e)==="[object Error]"||e instanceof Error)}t.isError=x;function T(e){return typeof e==="function"}t.isFunction=T;function A(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"||typeof e==="symbol"||typeof e==="undefined"}t.isPrimitive=A;t.isBuffer=r(10082);function S(e){return Object.prototype.toString.call(e)}function P(e){return e<10?"0"+e.toString(10):e.toString(10)}var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(){var e=new Date;var t=[P(e.getHours()),P(e.getMinutes()),P(e.getSeconds())].join(":");return[e.getDate(),C[e.getMonth()],t].join(" ")}t.log=function(){console.log("%s - %s",k(),t.format.apply(t,arguments))};t.inherits=r(44330);t._extend=function(e,t){if(!t||!O(t))return e;var r=Object.keys(t);var n=r.length;while(n--){e[r[n]]=t[r[n]]}return e};function j(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/3127.75e12687687a3de3b59d.js b/bootcamp/share/jupyter/lab/static/3127.75e12687687a3de3b59d.js new file mode 100644 index 0000000..f95ac83 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/3127.75e12687687a3de3b59d.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3127],{23127:(e,t,n)=>{n.r(t);n.d(t,{sparql:()=>d});var r;function a(e){return new RegExp("^(?:"+e.join("|")+")$","i")}var i=a(["str","lang","langmatches","datatype","bound","sameterm","isiri","isuri","iri","uri","bnode","count","sum","min","max","avg","sample","group_concat","rand","abs","ceil","floor","round","concat","substr","strlen","replace","ucase","lcase","encode_for_uri","contains","strstarts","strends","strbefore","strafter","year","month","day","hours","minutes","seconds","timezone","tz","now","uuid","struuid","md5","sha1","sha256","sha384","sha512","coalesce","if","strlang","strdt","isnumeric","regex","exists","isblank","isliteral","a","bind"]);var u=a(["base","prefix","select","distinct","reduced","construct","describe","ask","from","named","where","order","limit","offset","filter","optional","graph","by","asc","desc","as","having","undef","values","group","minus","in","not","service","silent","using","insert","delete","union","true","false","with","data","copy","to","move","add","create","drop","clear","load","into"]);var o=/[*+\-<>=&|\^\/!\?]/;function s(e,t){var n=e.next();r=null;if(n=="$"||n=="?"){if(n=="?"&&e.match(/\s/,false)){return"operator"}e.match(/^[A-Za-z0-9_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][A-Za-z0-9_\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]*/);return"variableName.local"}else if(n=="<"&&!e.match(/^[\s\u00a0=]/,false)){e.match(/^[^\s\u00a0>]*>?/);return"atom"}else if(n=='"'||n=="'"){t.tokenize=c(n);return t.tokenize(e,t)}else if(/[{}\(\),\.;\[\]]/.test(n)){r=n;return"bracket"}else if(n=="#"){e.skipToEnd();return"comment"}else if(o.test(n)){return"operator"}else if(n==":"){l(e);return"atom"}else if(n=="@"){e.eatWhile(/[a-z\d\-]/i);return"meta"}else{e.eatWhile(/[_\w\d]/);if(e.eat(":")){l(e);return"atom"}var a=e.current();if(i.test(a))return"builtin";else if(u.test(a))return"keyword";else return"variable"}}function l(e){e.match(/(\.(?=[\w_\-\\%])|[:\w_-]|\\[-\\_~.!$&'()*+,;=/?#@%]|%[a-f\d][a-f\d])+/i)}function c(e){return function(t,n){var r=false,a;while((a=t.next())!=null){if(a==e&&!r){n.tokenize=s;break}r=!r&&a=="\\"}return"string"}}function f(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function p(e){e.indent=e.context.indent;e.context=e.context.prev}const d={name:"sparql",startState:function(){return{tokenize:s,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()){if(t.context&&t.context.align==null)t.context.align=false;t.indent=e.indentation()}if(e.eatSpace())return null;var n=t.tokenize(e,t);if(n!="comment"&&t.context&&t.context.align==null&&t.context.type!="pattern"){t.context.align=true}if(r=="(")f(t,")",e.column());else if(r=="[")f(t,"]",e.column());else if(r=="{")f(t,"}",e.column());else if(/[\]\}\)]/.test(r)){while(t.context&&t.context.type=="pattern")p(t);if(t.context&&r==t.context.type){p(t);if(r=="}"&&t.context&&t.context.type=="pattern")p(t)}}else if(r=="."&&t.context&&t.context.type=="pattern")p(t);else if(/atom|string|variable/.test(n)&&t.context){if(/[\}\]]/.test(t.context.type))f(t,"pattern",e.column());else if(t.context.type=="pattern"&&!t.context.align){t.context.align=true;t.context.col=e.column()}}return n},indent:function(e,t,n){var r=t&&t.charAt(0);var a=e.context;if(/[\]\}]/.test(r))while(a&&a.type=="pattern")a=a.prev;var i=a&&r==a.type;if(!a)return 0;else if(a.type=="pattern")return a.col;else if(a.align)return a.col+(i?0:1);else return a.indent+(i?0:n.unit)},languageData:{commentTokens:{line:"#"}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/32792104b5ef69eded90.woff b/bootcamp/share/jupyter/lab/static/32792104b5ef69eded90.woff new file mode 100644 index 0000000..bd27726 Binary files /dev/null and b/bootcamp/share/jupyter/lab/static/32792104b5ef69eded90.woff differ diff --git a/bootcamp/share/jupyter/lab/static/3306.8bdc49ad1a7ca593a838.js b/bootcamp/share/jupyter/lab/static/3306.8bdc49ad1a7ca593a838.js new file mode 100644 index 0000000..9a5c15a --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/3306.8bdc49ad1a7ca593a838.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3306],{93306:(e,t,i)=>{i.r(t);i.d(t,{properties:()=>n});const n={name:"properties",token:function(e,t){var i=e.sol()||t.afterSection;var n=e.eol();t.afterSection=false;if(i){if(t.nextMultiline){t.inMultiline=true;t.nextMultiline=false}else{t.position="def"}}if(n&&!t.nextMultiline){t.inMultiline=false;t.position="def"}if(i){while(e.eatSpace()){}}var l=e.next();if(i&&(l==="#"||l==="!"||l===";")){t.position="comment";e.skipToEnd();return"comment"}else if(i&&l==="["){t.afterSection=true;e.skipTo("]");e.eat("]");return"header"}else if(l==="="||l===":"){t.position="quote";return null}else if(l==="\\"&&t.position==="quote"){if(e.eol()){t.nextMultiline=true}}return t.position},startState:function(){return{position:"def",nextMultiline:false,inMultiline:false,afterSection:false}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/3308.92a1e305c62cc91845b9.js b/bootcamp/share/jupyter/lab/static/3308.92a1e305c62cc91845b9.js new file mode 100644 index 0000000..0b51477 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/3308.92a1e305c62cc91845b9.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3308],{53308:(e,t,n)=>{n.r(t);n.d(t,{Hooks:()=>M,Lexer:()=>B,Parser:()=>j,Renderer:()=>P,Slugger:()=>U,TextRenderer:()=>Q,Tokenizer:()=>v,defaults:()=>i,getDefaults:()=>s,lexer:()=>ee,marked:()=>H,options:()=>X,parse:()=>W,parseInline:()=>K,parser:()=>Y,setOptions:()=>G,use:()=>V,walkTokens:()=>J});function s(){return{async:false,baseUrl:null,breaks:false,extensions:null,gfm:true,headerIds:true,headerPrefix:"",highlight:null,hooks:null,langPrefix:"language-",mangle:true,pedantic:false,renderer:null,sanitize:false,sanitizer:null,silent:false,smartypants:false,tokenizer:null,walkTokens:null,xhtml:false}}let i=s();function r(e){i=e}const l=/[&<>"']/;const o=new RegExp(l.source,"g");const a=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/;const c=new RegExp(a.source,"g");const h={"&":"&","<":"<",">":">",'"':""","'":"'"};const p=e=>h[e];function u(e,t){if(t){if(l.test(e)){return e.replace(o,p)}}else{if(a.test(e)){return e.replace(c,p)}}return e}const f=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi;function g(e){return e.replace(f,((e,t)=>{t=t.toLowerCase();if(t==="colon")return":";if(t.charAt(0)==="#"){return t.charAt(1)==="x"?String.fromCharCode(parseInt(t.substring(2),16)):String.fromCharCode(+t.substring(1))}return""}))}const k=/(^|[^\[])\^/g;function d(e,t){e=typeof e==="string"?e:e.source;t=t||"";const n={replace:(t,s)=>{s=s.source||s;s=s.replace(k,"$1");e=e.replace(t,s);return n},getRegex:()=>new RegExp(e,t)};return n}const x=/[^\w:]/g;const m=/^$|^[a-z][a-z0-9+.-]*:|^[?#]/i;function b(e,t,n){if(e){let e;try{e=decodeURIComponent(g(n)).replace(x,"").toLowerCase()}catch(s){return null}if(e.indexOf("javascript:")===0||e.indexOf("vbscript:")===0||e.indexOf("data:")===0){return null}}if(t&&!m.test(n)){n=z(t,n)}try{n=encodeURI(n).replace(/%25/g,"%")}catch(s){return null}return n}const w={};const _=/^[^:]+:\/*[^/]*$/;const y=/^([^:]+:)[\s\S]*$/;const $=/^([^:]+:\/*[^/]*)[\s\S]*$/;function z(e,t){if(!w[" "+e]){if(_.test(e)){w[" "+e]=e+"/"}else{w[" "+e]=T(e,"/",true)}}e=w[" "+e];const n=e.indexOf(":")===-1;if(t.substring(0,2)==="//"){if(n){return t}return e.replace(y,"$1")+t}else if(t.charAt(0)==="/"){if(n){return t}return e.replace($,"$1")+t}else{return e+t}}const S={exec:function e(){}};function R(e,t){const n=e.replace(/\|/g,((e,t,n)=>{let s=false,i=t;while(--i>=0&&n[i]==="\\")s=!s;if(s){return"|"}else{return" |"}})),s=n.split(/ \|/);let i=0;if(!s[0].trim()){s.shift()}if(s.length>0&&!s[s.length-1].trim()){s.pop()}if(s.length>t){s.splice(t)}else{while(s.length1){if(t&1){n+=e}t>>=1;e+=e}return n+e}function Z(e,t,n,s){const i=t.href;const r=t.title?u(t.title):null;const l=e[1].replace(/\\([\[\]])/g,"$1");if(e[0].charAt(0)!=="!"){s.state.inLink=true;const e={type:"link",raw:n,href:i,title:r,text:l,tokens:s.inlineTokens(l)};s.state.inLink=false;return e}return{type:"image",raw:n,href:i,title:r,text:u(l)}}function q(e,t){const n=e.match(/^(\s+)(?:```)/);if(n===null){return t}const s=n[1];return t.split("\n").map((e=>{const t=e.match(/^\s+/);if(t===null){return e}const[n]=t;if(n.length>=s.length){return e.slice(s.length)}return e})).join("\n")}class v{constructor(e){this.options=e||i}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0){return{type:"space",raw:t[0]}}}code(e){const t=this.rules.block.code.exec(e);if(t){const e=t[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:!this.options.pedantic?T(e,"\n"):e}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const e=t[0];const n=q(e,t[3]||"");return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline._escapes,"$1"):t[2],text:n}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(/#$/.test(e)){const t=T(e,"#");if(this.options.pedantic){e=t.trim()}else if(!t||/ $/.test(t)){e=t.trim()}}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t){return{type:"hr",raw:t[0]}}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){const e=t[0].replace(/^ *>[ \t]?/gm,"");const n=this.lexer.state.top;this.lexer.state.top=true;const s=this.lexer.blockTokens(e);this.lexer.state.top=n;return{type:"blockquote",raw:t[0],tokens:s,text:e}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n,s,i,r,l,o,a,c,h,p,u,f;let g=t[1].trim();const k=g.length>1;const d={type:"list",raw:"",ordered:k,start:k?+g.slice(0,-1):"",loose:false,items:[]};g=k?`\\d{1,9}\\${g.slice(-1)}`:`\\${g}`;if(this.options.pedantic){g=k?g:"[*+-]"}const x=new RegExp(`^( {0,3}${g})((?:[\t ][^\\n]*)?(?:\\n|$))`);while(e){f=false;if(!(t=x.exec(e))){break}if(this.rules.block.hr.test(e)){break}n=t[0];e=e.substring(n.length);c=t[2].split("\n",1)[0].replace(/^\t+/,(e=>" ".repeat(3*e.length)));h=e.split("\n",1)[0];if(this.options.pedantic){r=2;u=c.trimLeft()}else{r=t[2].search(/[^ ]/);r=r>4?1:r;u=c.slice(r);r+=t[1].length}o=false;if(!c&&/^ *$/.test(h)){n+=h+"\n";e=e.substring(h.length+1);f=true}if(!f){const t=new RegExp(`^ {0,${Math.min(3,r-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`);const s=new RegExp(`^ {0,${Math.min(3,r-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`);const i=new RegExp(`^ {0,${Math.min(3,r-1)}}(?:\`\`\`|~~~)`);const l=new RegExp(`^ {0,${Math.min(3,r-1)}}#`);while(e){p=e.split("\n",1)[0];h=p;if(this.options.pedantic){h=h.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")}if(i.test(h)){break}if(l.test(h)){break}if(t.test(h)){break}if(s.test(e)){break}if(h.search(/[^ ]/)>=r||!h.trim()){u+="\n"+h.slice(r)}else{if(o){break}if(c.search(/[^ ]/)>=4){break}if(i.test(c)){break}if(l.test(c)){break}if(s.test(c)){break}u+="\n"+h}if(!o&&!h.trim()){o=true}n+=p+"\n";e=e.substring(p.length+1);c=h.slice(r)}}if(!d.loose){if(a){d.loose=true}else if(/\n *\n *$/.test(n)){a=true}}if(this.options.gfm){s=/^\[[ xX]\] /.exec(u);if(s){i=s[0]!=="[ ] ";u=u.replace(/^\[[ xX]\] +/,"")}}d.items.push({type:"list_item",raw:n,task:!!s,checked:i,loose:false,text:u});d.raw+=n}d.items[d.items.length-1].raw=n.trimRight();d.items[d.items.length-1].text=u.trimRight();d.raw=d.raw.trimRight();const m=d.items.length;for(l=0;le.type==="space"));const t=e.length>0&&e.some((e=>/\n.*\n/.test(e.raw)));d.loose=t}}if(d.loose){for(l=0;l$/,"$1").replace(this.rules.inline._escapes,"$1"):"";const s=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline._escapes,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:s}}}table(e){const t=this.rules.block.table.exec(e);if(t){const e={type:"table",header:R(t[1]).map((e=>({text:e}))),align:t[2].replace(/^ *|\| *$/g,"").split(/ *\| */),rows:t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split("\n"):[]};if(e.header.length===e.align.length){e.raw=t[0];let n=e.align.length;let s,i,r,l;for(s=0;s({text:e})))}n=e.header.length;for(i=0;i/i.test(t[0])){this.lexer.state.inLink=false}if(!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])){this.lexer.state.inRawBlock=true}else if(this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])){this.lexer.state.inRawBlock=false}return{type:this.options.sanitize?"text":"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,text:this.options.sanitize?this.options.sanitizer?this.options.sanitizer(t[0]):u(t[0]):t[0]}}}link(e){const t=this.rules.inline.link.exec(e);if(t){const e=t[2].trim();if(!this.options.pedantic&&/^$/.test(e)){return}const t=T(e.slice(0,-1),"\\");if((e.length-t.length)%2===0){return}}else{const e=A(t[2],"()");if(e>-1){const n=t[0].indexOf("!")===0?5:4;const s=n+t[1].length+e;t[2]=t[2].substring(0,e);t[0]=t[0].substring(0,s).trim();t[3]=""}}let n=t[2];let s="";if(this.options.pedantic){const e=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(n);if(e){n=e[1];s=e[3]}}else{s=t[3]?t[3].slice(1,-1):""}n=n.trim();if(/^$/.test(e)){n=n.slice(1)}else{n=n.slice(1,-1)}}return Z(t,{href:n?n.replace(this.rules.inline._escapes,"$1"):n,title:s?s.replace(this.rules.inline._escapes,"$1"):s},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=(n[2]||n[1]).replace(/\s+/g," ");e=t[e.toLowerCase()];if(!e){const e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return Z(n,e,n[0],this.lexer)}}emStrong(e,t,n=""){let s=this.rules.inline.emStrong.lDelim.exec(e);if(!s)return;if(s[3]&&n.match(/[\p{L}\p{N}]/u))return;const i=s[1]||s[2]||"";if(!i||i&&(n===""||this.rules.inline.punctuation.exec(n))){const n=s[0].length-1;let i,r,l=n,o=0;const a=s[0][0]==="*"?this.rules.inline.emStrong.rDelimAst:this.rules.inline.emStrong.rDelimUnd;a.lastIndex=0;t=t.slice(-1*e.length+n);while((s=a.exec(t))!=null){i=s[1]||s[2]||s[3]||s[4]||s[5]||s[6];if(!i)continue;r=i.length;if(s[3]||s[4]){l+=r;continue}else if(s[5]||s[6]){if(n%3&&!((n+r)%3)){o+=r;continue}}l-=r;if(l>0)continue;r=Math.min(r,r+l+o);const t=e.slice(0,n+s.index+(s[0].length-i.length)+r);if(Math.min(n,r)%2){const e=t.slice(1,-1);return{type:"em",raw:t,text:e,tokens:this.lexer.inlineTokens(e)}}const a=t.slice(2,-2);return{type:"strong",raw:t,text:a,tokens:this.lexer.inlineTokens(a)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(/\n/g," ");const n=/[^ ]/.test(e);const s=/^ /.test(e)&&/ $/.test(e);if(n&&s){e=e.substring(1,e.length-1)}e=u(e,true);return{type:"codespan",raw:t[0],text:e}}}br(e){const t=this.rules.inline.br.exec(e);if(t){return{type:"br",raw:t[0]}}}del(e){const t=this.rules.inline.del.exec(e);if(t){return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}}autolink(e,t){const n=this.rules.inline.autolink.exec(e);if(n){let e,s;if(n[2]==="@"){e=u(this.options.mangle?t(n[1]):n[1]);s="mailto:"+e}else{e=u(n[1]);s=e}return{type:"link",raw:n[0],text:e,href:s,tokens:[{type:"text",raw:e,text:e}]}}}url(e,t){let n;if(n=this.rules.inline.url.exec(e)){let e,s;if(n[2]==="@"){e=u(this.options.mangle?t(n[0]):n[0]);s="mailto:"+e}else{let t;do{t=n[0];n[0]=this.rules.inline._backpedal.exec(n[0])[0]}while(t!==n[0]);e=u(n[0]);if(n[1]==="www."){s="http://"+n[0]}else{s=n[0]}}return{type:"link",raw:n[0],text:e,href:s,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e,t){const n=this.rules.inline.text.exec(e);if(n){let e;if(this.lexer.state.inRawBlock){e=this.options.sanitize?this.options.sanitizer?this.options.sanitizer(n[0]):u(n[0]):n[0]}else{e=u(this.options.smartypants?t(n[0]):n[0])}return{type:"text",raw:n[0],text:e}}}}const L={newline:/^(?: *(?:\n|$))+/,code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,hr:/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,blockquote:/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/,list:/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/,html:"^ {0,3}(?:"+"<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)"+"|comment[^\\n]*(\\n+|$)"+"|<\\?[\\s\\S]*?(?:\\?>\\n*|$)"+"|\\n*|$)"+"|\\n*|$)"+"|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)"+"|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)"+"|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)"+")",def:/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/,table:S,lheading:/^((?:.|\n(?!\n))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,_paragraph:/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,text:/^[^\n]+/};L._label=/(?!\s*\])(?:\\.|[^\[\]\\])+/;L._title=/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/;L.def=d(L.def).replace("label",L._label).replace("title",L._title).getRegex();L.bullet=/(?:[*+-]|\d{1,9}[.)])/;L.listItemStart=d(/^( *)(bull) */).replace("bull",L.bullet).getRegex();L.list=d(L.list).replace(/bull/g,L.bullet).replace("hr","\\n+(?=\\1?(?:(?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$))").replace("def","\\n+(?="+L.def.source+")").getRegex();L._tag="address|article|aside|base|basefont|blockquote|body|caption"+"|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption"+"|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe"+"|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option"+"|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr"+"|track|ul";L._comment=/|$)/;L.html=d(L.html,"i").replace("comment",L._comment).replace("tag",L._tag).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex();L.paragraph=d(L._paragraph).replace("hr",L.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",L._tag).getRegex();L.blockquote=d(L.blockquote).replace("paragraph",L.paragraph).getRegex();L.normal={...L};L.gfm={...L.normal,table:"^ *([^\\n ].*\\|.*)\\n"+" {0,3}(?:\\| *)?(:?-+:? *(?:\\| *:?-+:? *)*)(?:\\| *)?"+"(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)"};L.gfm.table=d(L.gfm.table).replace("hr",L.hr).replace("heading"," {0,3}#{1,6} ").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",L._tag).getRegex();L.gfm.paragraph=d(L._paragraph).replace("hr",L.hr).replace("heading"," {0,3}#{1,6} ").replace("|lheading","").replace("table",L.gfm.table).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",L._tag).getRegex();L.pedantic={...L.normal,html:d("^ *(?:comment *(?:\\n|\\s*$)"+"|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)"+"|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",L._comment).replace(/tag/g,"(?!(?:"+"a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub"+"|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)"+"\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:S,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:d(L.normal._paragraph).replace("hr",L.hr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",L.lheading).replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").getRegex()};const C={escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,autolink:/^<(scheme:[^\s\x00-\x1f<>]*|email)>/,url:S,tag:"^comment"+"|^"+"|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>"+"|^<\\?[\\s\\S]*?\\?>"+"|^"+"|^",link:/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/,reflink:/^!?\[(label)\]\[(ref)\]/,nolink:/^!?\[(ref)\](?:\[\])?/,reflinkSearch:"reflink|nolink(?!\\()",emStrong:{lDelim:/^(?:\*+(?:([punct_])|[^\s*]))|^_+(?:([punct*])|([^\s_]))/,rDelimAst:/^(?:[^_*\\]|\\.)*?\_\_(?:[^_*\\]|\\.)*?\*(?:[^_*\\]|\\.)*?(?=\_\_)|(?:[^*\\]|\\.)+(?=[^*])|[punct_](\*+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\*+)(?=[punct_\s]|$)|[punct_\s](\*+)(?=[^punct*_\s])|[\s](\*+)(?=[punct_])|[punct_](\*+)(?=[punct_])|(?:[^punct*_\s\\]|\\.)(\*+)(?=[^punct*_\s])/,rDelimUnd:/^(?:[^_*\\]|\\.)*?\*\*(?:[^_*\\]|\\.)*?\_(?:[^_*\\]|\\.)*?(?=\*\*)|(?:[^_\\]|\\.)+(?=[^_])|[punct*](\_+)(?=[\s]|$)|(?:[^punct*_\s\\]|\\.)(\_+)(?=[punct*\s]|$)|[punct*\s](\_+)(?=[^punct*_\s])|[\s](\_+)(?=[punct*])|[punct*](\_+)(?=[punct*])/},code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,br:/^( {2,}|\\)\n(?!\s*$)/,del:S,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\?@\\[\\]`^{|}~";C.punctuation=d(C.punctuation).replace(/punctuation/g,C._punctuation).getRegex();C.blockSkip=/\[[^\]]*?\]\([^\)]*?\)|`[^`]*?`|<[^>]*?>/g;C.escapedEmSt=/(?:^|[^\\])(?:\\\\)*\\[*_]/g;C._comment=d(L._comment).replace("(?:--\x3e|$)","--\x3e").getRegex();C.emStrong.lDelim=d(C.emStrong.lDelim).replace(/punct/g,C._punctuation).getRegex();C.emStrong.rDelimAst=d(C.emStrong.rDelimAst,"g").replace(/punct/g,C._punctuation).getRegex();C.emStrong.rDelimUnd=d(C.emStrong.rDelimUnd,"g").replace(/punct/g,C._punctuation).getRegex();C._escapes=/\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/g;C._scheme=/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/;C._email=/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/;C.autolink=d(C.autolink).replace("scheme",C._scheme).replace("email",C._email).getRegex();C._attribute=/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/;C.tag=d(C.tag).replace("comment",C._comment).replace("attribute",C._attribute).getRegex();C._label=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/;C._href=/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/;C._title=/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/;C.link=d(C.link).replace("label",C._label).replace("href",C._href).replace("title",C._title).getRegex();C.reflink=d(C.reflink).replace("label",C._label).replace("ref",L._label).getRegex();C.nolink=d(C.nolink).replace("ref",L._label).getRegex();C.reflinkSearch=d(C.reflinkSearch,"g").replace("reflink",C.reflink).replace("nolink",C.nolink).getRegex();C.normal={...C};C.pedantic={...C.normal,strong:{start:/^__|\*\*/,middle:/^__(?=\S)([\s\S]*?\S)__(?!_)|^\*\*(?=\S)([\s\S]*?\S)\*\*(?!\*)/,endAst:/\*\*(?!\*)/g,endUnd:/__(?!_)/g},em:{start:/^_|\*/,middle:/^()\*(?=\S)([\s\S]*?\S)\*(?!\*)|^_(?=\S)([\s\S]*?\S)_(?!_)/,endAst:/\*(?!\*)/g,endUnd:/_(?!_)/g},link:d(/^!?\[(label)\]\((.*?)\)/).replace("label",C._label).getRegex(),reflink:d(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",C._label).getRegex()};C.gfm={...C.normal,escape:d(C.escape).replace("])","~|])").getRegex(),_extended_email:/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/,url:/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\.5){s="x"+s.toString(16)}t+="&#"+s+";"}return t}class B{constructor(e){this.tokens=[];this.tokens.links=Object.create(null);this.options=e||i;this.options.tokenizer=this.options.tokenizer||new v;this.tokenizer=this.options.tokenizer;this.tokenizer.options=this.options;this.tokenizer.lexer=this;this.inlineQueue=[];this.state={inLink:false,inRawBlock:false,top:true};const t={block:L.normal,inline:C.normal};if(this.options.pedantic){t.block=L.pedantic;t.inline=C.pedantic}else if(this.options.gfm){t.block=L.gfm;if(this.options.breaks){t.inline=C.breaks}else{t.inline=C.gfm}}this.tokenizer.rules=t}static get rules(){return{block:L,inline:C}}static lex(e,t){const n=new B(t);return n.lex(e)}static lexInline(e,t){const n=new B(t);return n.inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,"\n");this.blockTokens(e,this.tokens);let t;while(t=this.inlineQueue.shift()){this.inlineTokens(t.src,t.tokens)}return this.tokens}blockTokens(e,t=[]){if(this.options.pedantic){e=e.replace(/\t/g," ").replace(/^ +$/gm,"")}else{e=e.replace(/^( *)(\t+)/gm,((e,t,n)=>t+" ".repeat(n.length)))}let n,s,i,r;while(e){if(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some((s=>{if(n=s.call({lexer:this},e,t)){e=e.substring(n.raw.length);t.push(n);return true}return false}))){continue}if(n=this.tokenizer.space(e)){e=e.substring(n.raw.length);if(n.raw.length===1&&t.length>0){t[t.length-1].raw+="\n"}else{t.push(n)}continue}if(n=this.tokenizer.code(e)){e=e.substring(n.raw.length);s=t[t.length-1];if(s&&(s.type==="paragraph"||s.type==="text")){s.raw+="\n"+n.raw;s.text+="\n"+n.text;this.inlineQueue[this.inlineQueue.length-1].src=s.text}else{t.push(n)}continue}if(n=this.tokenizer.fences(e)){e=e.substring(n.raw.length);t.push(n);continue}if(n=this.tokenizer.heading(e)){e=e.substring(n.raw.length);t.push(n);continue}if(n=this.tokenizer.hr(e)){e=e.substring(n.raw.length);t.push(n);continue}if(n=this.tokenizer.blockquote(e)){e=e.substring(n.raw.length);t.push(n);continue}if(n=this.tokenizer.list(e)){e=e.substring(n.raw.length);t.push(n);continue}if(n=this.tokenizer.html(e)){e=e.substring(n.raw.length);t.push(n);continue}if(n=this.tokenizer.def(e)){e=e.substring(n.raw.length);s=t[t.length-1];if(s&&(s.type==="paragraph"||s.type==="text")){s.raw+="\n"+n.raw;s.text+="\n"+n.raw;this.inlineQueue[this.inlineQueue.length-1].src=s.text}else if(!this.tokens.links[n.tag]){this.tokens.links[n.tag]={href:n.href,title:n.title}}continue}if(n=this.tokenizer.table(e)){e=e.substring(n.raw.length);t.push(n);continue}if(n=this.tokenizer.lheading(e)){e=e.substring(n.raw.length);t.push(n);continue}i=e;if(this.options.extensions&&this.options.extensions.startBlock){let t=Infinity;const n=e.slice(1);let s;this.options.extensions.startBlock.forEach((function(e){s=e.call({lexer:this},n);if(typeof s==="number"&&s>=0){t=Math.min(t,s)}}));if(t=0){i=e.substring(0,t+1)}}if(this.state.top&&(n=this.tokenizer.paragraph(i))){s=t[t.length-1];if(r&&s.type==="paragraph"){s.raw+="\n"+n.raw;s.text+="\n"+n.text;this.inlineQueue.pop();this.inlineQueue[this.inlineQueue.length-1].src=s.text}else{t.push(n)}r=i.length!==e.length;e=e.substring(n.raw.length);continue}if(n=this.tokenizer.text(e)){e=e.substring(n.raw.length);s=t[t.length-1];if(s&&s.type==="text"){s.raw+="\n"+n.raw;s.text+="\n"+n.text;this.inlineQueue.pop();this.inlineQueue[this.inlineQueue.length-1].src=s.text}else{t.push(n)}continue}if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else{throw new Error(t)}}}this.state.top=true;return t}inline(e,t=[]){this.inlineQueue.push({src:e,tokens:t});return t}inlineTokens(e,t=[]){let n,s,i;let r=e;let l;let o,a;if(this.tokens.links){const e=Object.keys(this.tokens.links);if(e.length>0){while((l=this.tokenizer.rules.inline.reflinkSearch.exec(r))!=null){if(e.includes(l[0].slice(l[0].lastIndexOf("[")+1,-1))){r=r.slice(0,l.index)+"["+E("a",l[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex)}}}}while((l=this.tokenizer.rules.inline.blockSkip.exec(r))!=null){r=r.slice(0,l.index)+"["+E("a",l[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex)}while((l=this.tokenizer.rules.inline.escapedEmSt.exec(r))!=null){r=r.slice(0,l.index+l[0].length-2)+"++"+r.slice(this.tokenizer.rules.inline.escapedEmSt.lastIndex);this.tokenizer.rules.inline.escapedEmSt.lastIndex--}while(e){if(!o){a=""}o=false;if(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some((s=>{if(n=s.call({lexer:this},e,t)){e=e.substring(n.raw.length);t.push(n);return true}return false}))){continue}if(n=this.tokenizer.escape(e)){e=e.substring(n.raw.length);t.push(n);continue}if(n=this.tokenizer.tag(e)){e=e.substring(n.raw.length);s=t[t.length-1];if(s&&n.type==="text"&&s.type==="text"){s.raw+=n.raw;s.text+=n.text}else{t.push(n)}continue}if(n=this.tokenizer.link(e)){e=e.substring(n.raw.length);t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);s=t[t.length-1];if(s&&n.type==="text"&&s.type==="text"){s.raw+=n.raw;s.text+=n.text}else{t.push(n)}continue}if(n=this.tokenizer.emStrong(e,r,a)){e=e.substring(n.raw.length);t.push(n);continue}if(n=this.tokenizer.codespan(e)){e=e.substring(n.raw.length);t.push(n);continue}if(n=this.tokenizer.br(e)){e=e.substring(n.raw.length);t.push(n);continue}if(n=this.tokenizer.del(e)){e=e.substring(n.raw.length);t.push(n);continue}if(n=this.tokenizer.autolink(e,O)){e=e.substring(n.raw.length);t.push(n);continue}if(!this.state.inLink&&(n=this.tokenizer.url(e,O))){e=e.substring(n.raw.length);t.push(n);continue}i=e;if(this.options.extensions&&this.options.extensions.startInline){let t=Infinity;const n=e.slice(1);let s;this.options.extensions.startInline.forEach((function(e){s=e.call({lexer:this},n);if(typeof s==="number"&&s>=0){t=Math.min(t,s)}}));if(t=0){i=e.substring(0,t+1)}}if(n=this.tokenizer.inlineText(i,D)){e=e.substring(n.raw.length);if(n.raw.slice(-1)!=="_"){a=n.raw.slice(-1)}o=true;s=t[t.length-1];if(s&&s.type==="text"){s.raw+=n.raw;s.text+=n.text}else{t.push(n)}continue}if(e){const t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}else{throw new Error(t)}}}return t}}class P{constructor(e){this.options=e||i}code(e,t,n){const s=(t||"").match(/\S*/)[0];if(this.options.highlight){const t=this.options.highlight(e,s);if(t!=null&&t!==e){n=true;e=t}}e=e.replace(/\n$/,"")+"\n";if(!s){return"
"+(n?e:u(e,true))+"
\n"}return'
'+(n?e:u(e,true))+"
\n"}blockquote(e){return`
\n${e}
\n`}html(e){return e}heading(e,t,n,s){if(this.options.headerIds){const i=this.options.headerPrefix+s.slug(n);return`${e}\n`}return`${e}\n`}hr(){return this.options.xhtml?"
\n":"
\n"}list(e,t,n){const s=t?"ol":"ul",i=t&&n!==1?' start="'+n+'"':"";return"<"+s+i+">\n"+e+"\n"}listitem(e){return`
  • ${e}
  • \n`}checkbox(e){return" "}paragraph(e){return`

    ${e}

    \n`}table(e,t){if(t)t=`${t}`;return"\n"+"\n"+e+"\n"+t+"
    \n"}tablerow(e){return`\n${e}\n`}tablecell(e,t){const n=t.header?"th":"td";const s=t.align?`<${n} align="${t.align}">`:`<${n}>`;return s+e+`\n`}strong(e){return`${e}`}em(e){return`${e}`}codespan(e){return`${e}`}br(){return this.options.xhtml?"
    ":"
    "}del(e){return`${e}`}link(e,t,n){e=b(this.options.sanitize,this.options.baseUrl,e);if(e===null){return n}let s='";return s}image(e,t,n){e=b(this.options.sanitize,this.options.baseUrl,e);if(e===null){return n}let s=`${n}":">";return s}text(e){return e}}class Q{strong(e){return e}em(e){return e}codespan(e){return e}del(e){return e}html(e){return e}text(e){return e}link(e,t,n){return""+n}image(e,t,n){return""+n}br(){return""}}class U{constructor(){this.seen={}}serialize(e){return e.toLowerCase().trim().replace(/<[!\/a-z].*?>/gi,"").replace(/[\u2000-\u206F\u2E00-\u2E7F\\'!"#$%&()*+,./:;<=>?@[\]^`{|}~]/g,"").replace(/\s/g,"-")}getNextSafeSlug(e,t){let n=e;let s=0;if(this.seen.hasOwnProperty(n)){s=this.seen[e];do{s++;n=e+"-"+s}while(this.seen.hasOwnProperty(n))}if(!t){this.seen[e]=s;this.seen[n]=0}return n}slug(e,t={}){const n=this.serialize(e);return this.getNextSafeSlug(n,t.dryrun)}}class j{constructor(e){this.options=e||i;this.options.renderer=this.options.renderer||new P;this.renderer=this.options.renderer;this.renderer.options=this.options;this.textRenderer=new Q;this.slugger=new U}static parse(e,t){const n=new j(t);return n.parse(e)}static parseInline(e,t){const n=new j(t);return n.parseInline(e)}parse(e,t=true){let n="",s,i,r,l,o,a,c,h,p,u,f,k,d,x,m,b,w,_,y;const $=e.length;for(s=0;s<$;s++){u=e[s];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[u.type]){y=this.options.extensions.renderers[u.type].call({parser:this},u);if(y!==false||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(u.type)){n+=y||"";continue}}switch(u.type){case"space":{continue}case"hr":{n+=this.renderer.hr();continue}case"heading":{n+=this.renderer.heading(this.parseInline(u.tokens),u.depth,g(this.parseInline(u.tokens,this.textRenderer)),this.slugger);continue}case"code":{n+=this.renderer.code(u.text,u.lang,u.escaped);continue}case"table":{h="";c="";l=u.header.length;for(i=0;i0&&m.tokens[0].type==="paragraph"){m.tokens[0].text=_+" "+m.tokens[0].text;if(m.tokens[0].tokens&&m.tokens[0].tokens.length>0&&m.tokens[0].tokens[0].type==="text"){m.tokens[0].tokens[0].text=_+" "+m.tokens[0].tokens[0].text}}else{m.tokens.unshift({type:"text",text:_})}}else{x+=_}}x+=this.parse(m.tokens,d);p+=this.renderer.listitem(x,w,b)}n+=this.renderer.list(p,f,k);continue}case"html":{n+=this.renderer.html(u.text);continue}case"paragraph":{n+=this.renderer.paragraph(this.parseInline(u.tokens));continue}case"text":{p=u.tokens?this.parseInline(u.tokens):u.text;while(s+1<$&&e[s+1].type==="text"){u=e[++s];p+="\n"+(u.tokens?this.parseInline(u.tokens):u.text)}n+=t?this.renderer.paragraph(p):p;continue}default:{const e='Token with "'+u.type+'" type was not found.';if(this.options.silent){console.error(e);return}else{throw new Error(e)}}}}return n}parseInline(e,t){t=t||this.renderer;let n="",s,i,r;const l=e.length;for(s=0;s{s.message+="\nPlease report this to https://github.com/markedjs/marked.";if(e){const e="

    An error occurred:

    "+u(s.message+"",true)+"
    ";if(t){return Promise.resolve(e)}if(n){n(null,e);return}return e}if(t){return Promise.reject(s)}if(n){n(s);return}throw s}}function F(e,t){return(n,s,i)=>{if(typeof s==="function"){i=s;s=null}const r={...s};s={...H.defaults,...r};const l=N(s.silent,s.async,i);if(typeof n==="undefined"||n===null){return l(new Error("marked(): input parameter is undefined or null"))}if(typeof n!=="string"){return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"))}I(s);if(s.hooks){s.hooks.options=s}if(i){const r=s.highlight;let a;try{if(s.hooks){n=s.hooks.preprocess(n)}a=e(n,s)}catch(o){return l(o)}const c=function(e){let n;if(!e){try{if(s.walkTokens){H.walkTokens(a,s.walkTokens)}n=t(a,s);if(s.hooks){n=s.hooks.postprocess(n)}}catch(o){e=o}}s.highlight=r;return e?l(e):i(null,n)};if(!r||r.length<3){return c()}delete s.highlight;if(!a.length)return c();let h=0;H.walkTokens(a,(function(e){if(e.type==="code"){h++;setTimeout((()=>{r(e.text,e.lang,(function(t,n){if(t){return c(t)}if(n!=null&&n!==e.text){e.text=n;e.escaped=true}h--;if(h===0){c()}}))}),0)}}));if(h===0){c()}return}if(s.async){return Promise.resolve(s.hooks?s.hooks.preprocess(n):n).then((t=>e(t,s))).then((e=>s.walkTokens?Promise.all(H.walkTokens(e,s.walkTokens)).then((()=>e)):e)).then((e=>t(e,s))).then((e=>s.hooks?s.hooks.postprocess(e):e)).catch(l)}try{if(s.hooks){n=s.hooks.preprocess(n)}const i=e(n,s);if(s.walkTokens){H.walkTokens(i,s.walkTokens)}let r=t(i,s);if(s.hooks){r=s.hooks.postprocess(r)}return r}catch(o){return l(o)}}}function H(e,t,n){return F(B.lex,j.parse)(e,t,n)}H.options=H.setOptions=function(e){H.defaults={...H.defaults,...e};r(H.defaults);return H};H.getDefaults=s;H.defaults=i;H.use=function(...e){const t=H.defaults.extensions||{renderers:{},childTokens:{}};e.forEach((e=>{const n={...e};n.async=H.defaults.async||n.async||false;if(e.extensions){e.extensions.forEach((e=>{if(!e.name){throw new Error("extension name required")}if(e.renderer){const n=t.renderers[e.name];if(n){t.renderers[e.name]=function(...t){let s=e.renderer.apply(this,t);if(s===false){s=n.apply(this,t)}return s}}else{t.renderers[e.name]=e.renderer}}if(e.tokenizer){if(!e.level||e.level!=="block"&&e.level!=="inline"){throw new Error("extension level must be 'block' or 'inline'")}if(t[e.level]){t[e.level].unshift(e.tokenizer)}else{t[e.level]=[e.tokenizer]}if(e.start){if(e.level==="block"){if(t.startBlock){t.startBlock.push(e.start)}else{t.startBlock=[e.start]}}else if(e.level==="inline"){if(t.startInline){t.startInline.push(e.start)}else{t.startInline=[e.start]}}}}if(e.childTokens){t.childTokens[e.name]=e.childTokens}}));n.extensions=t}if(e.renderer){const t=H.defaults.renderer||new P;for(const n in e.renderer){const s=t[n];t[n]=(...i)=>{let r=e.renderer[n].apply(t,i);if(r===false){r=s.apply(t,i)}return r}}n.renderer=t}if(e.tokenizer){const t=H.defaults.tokenizer||new v;for(const n in e.tokenizer){const s=t[n];t[n]=(...i)=>{let r=e.tokenizer[n].apply(t,i);if(r===false){r=s.apply(t,i)}return r}}n.tokenizer=t}if(e.hooks){const t=H.defaults.hooks||new M;for(const n in e.hooks){const s=t[n];if(M.passThroughHooks.has(n)){t[n]=i=>{if(H.defaults.async){return Promise.resolve(e.hooks[n].call(t,i)).then((e=>s.call(t,e)))}const r=e.hooks[n].call(t,i);return s.call(t,r)}}else{t[n]=(...i)=>{let r=e.hooks[n].apply(t,i);if(r===false){r=s.apply(t,i)}return r}}}n.hooks=t}if(e.walkTokens){const t=H.defaults.walkTokens;n.walkTokens=function(n){let s=[];s.push(e.walkTokens.call(this,n));if(t){s=s.concat(t.call(this,n))}return s}}H.setOptions(n)}))};H.walkTokens=function(e,t){let n=[];for(const s of e){n=n.concat(t.call(H,s));switch(s.type){case"table":{for(const e of s.header){n=n.concat(H.walkTokens(e.tokens,t))}for(const e of s.rows){for(const s of e){n=n.concat(H.walkTokens(s.tokens,t))}}break}case"list":{n=n.concat(H.walkTokens(s.items,t));break}default:{if(H.defaults.extensions&&H.defaults.extensions.childTokens&&H.defaults.extensions.childTokens[s.type]){H.defaults.extensions.childTokens[s.type].forEach((function(e){n=n.concat(H.walkTokens(s[e],t))}))}else if(s.tokens){n=n.concat(H.walkTokens(s.tokens,t))}}}}return n};H.parseInline=F(B.lexInline,j.parseInline);H.Parser=j;H.parser=j.parse;H.Renderer=P;H.TextRenderer=Q;H.Lexer=B;H.lexer=B.lex;H.Tokenizer=v;H.Slugger=U;H.Hooks=M;H.parse=H;const X=H.options;const G=H.setOptions;const V=H.use;const J=H.walkTokens;const K=H.parseInline;const W=H;const Y=j.parse;const ee=B.lex}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/3520.3495b98946de6960ace8.js b/bootcamp/share/jupyter/lab/static/3520.3495b98946de6960ace8.js new file mode 100644 index 0000000..bff1041 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/3520.3495b98946de6960ace8.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3520],{93572:function(t,e,r){var o=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function o(){this.constructor=e}e.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}();var n=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&o>=t.length)t=void 0;return{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.HTMLAdaptor=void 0;var i=r(47810);var a=function(t){o(e,t);function e(e){var r=t.call(this,e.document)||this;r.window=e;r.parser=new e.DOMParser;return r}e.prototype.parse=function(t,e){if(e===void 0){e="text/html"}return this.parser.parseFromString(t,e)};e.prototype.create=function(t,e){return e?this.document.createElementNS(e,t):this.document.createElement(t)};e.prototype.text=function(t){return this.document.createTextNode(t)};e.prototype.head=function(t){return t.head||t};e.prototype.body=function(t){return t.body||t};e.prototype.root=function(t){return t.documentElement||t};e.prototype.doctype=function(t){return t.doctype?""):""};e.prototype.tags=function(t,e,r){if(r===void 0){r=null}var o=r?t.getElementsByTagNameNS(r,e):t.getElementsByTagName(e);return Array.from(o)};e.prototype.getElements=function(t,e){var r,o;var i=[];try{for(var a=n(t),u=a.next();!u.done;u=a.next()){var l=u.value;if(typeof l==="string"){i=i.concat(Array.from(this.document.querySelectorAll(l)))}else if(Array.isArray(l)){i=i.concat(Array.from(l))}else if(l instanceof this.window.NodeList||l instanceof this.window.HTMLCollection){i=i.concat(Array.from(l))}else{i.push(l)}}}catch(p){r={error:p}}finally{try{if(u&&!u.done&&(o=a.return))o.call(a)}finally{if(r)throw r.error}}return i};e.prototype.contains=function(t,e){return t.contains(e)};e.prototype.parent=function(t){return t.parentNode};e.prototype.append=function(t,e){return t.appendChild(e)};e.prototype.insert=function(t,e){return this.parent(e).insertBefore(t,e)};e.prototype.remove=function(t){return this.parent(t).removeChild(t)};e.prototype.replace=function(t,e){return this.parent(e).replaceChild(t,e)};e.prototype.clone=function(t){return t.cloneNode(true)};e.prototype.split=function(t,e){return t.splitText(e)};e.prototype.next=function(t){return t.nextSibling};e.prototype.previous=function(t){return t.previousSibling};e.prototype.firstChild=function(t){return t.firstChild};e.prototype.lastChild=function(t){return t.lastChild};e.prototype.childNodes=function(t){return Array.from(t.childNodes)};e.prototype.childNode=function(t,e){return t.childNodes[e]};e.prototype.kind=function(t){var e=t.nodeType;return e===1||e===3||e===8?t.nodeName.toLowerCase():""};e.prototype.value=function(t){return t.nodeValue||""};e.prototype.textContent=function(t){return t.textContent};e.prototype.innerHTML=function(t){return t.innerHTML};e.prototype.outerHTML=function(t){return t.outerHTML};e.prototype.serializeXML=function(t){var e=new this.window.XMLSerializer;return e.serializeToString(t)};e.prototype.setAttribute=function(t,e,r,o){if(o===void 0){o=null}if(!o){return t.setAttribute(e,r)}e=o.replace(/.*\//,"")+":"+e.replace(/^.*:/,"");return t.setAttributeNS(o,e,r)};e.prototype.getAttribute=function(t,e){return t.getAttribute(e)};e.prototype.removeAttribute=function(t,e){return t.removeAttribute(e)};e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)};e.prototype.allAttributes=function(t){return Array.from(t.attributes).map((function(t){return{name:t.name,value:t.value}}))};e.prototype.addClass=function(t,e){if(t.classList){t.classList.add(e)}else{t.className=(t.className+" "+e).trim()}};e.prototype.removeClass=function(t,e){if(t.classList){t.classList.remove(e)}else{t.className=t.className.split(/ /).filter((function(t){return t!==e})).join(" ")}};e.prototype.hasClass=function(t,e){if(t.classList){return t.classList.contains(e)}return t.className.split(/ /).indexOf(e)>=0};e.prototype.setStyle=function(t,e,r){t.style[e]=r};e.prototype.getStyle=function(t,e){return t.style[e]};e.prototype.allStyles=function(t){return t.style.cssText};e.prototype.insertRules=function(t,e){var r,o;try{for(var i=n(e.reverse()),a=i.next();!a.done;a=i.next()){var u=a.value;try{t.sheet.insertRule(u,0)}catch(l){console.warn("MathJax: can't insert css rule '".concat(u,"': ").concat(l.message))}}}catch(p){r={error:p}}finally{try{if(a&&!a.done&&(o=i.return))o.call(i)}finally{if(r)throw r.error}}};e.prototype.fontSize=function(t){var e=this.window.getComputedStyle(t);return parseFloat(e.fontSize)};e.prototype.fontFamily=function(t){var e=this.window.getComputedStyle(t);return e.fontFamily||""};e.prototype.nodeSize=function(t,e,r){if(e===void 0){e=1}if(r===void 0){r=false}if(r&&t.getBBox){var o=t.getBBox(),n=o.width,i=o.height;return[n/e,i/e]}return[t.offsetWidth/e,t.offsetHeight/e]};e.prototype.nodeBBox=function(t){var e=t.getBoundingClientRect(),r=e.left,o=e.right,n=e.top,i=e.bottom;return{left:r,right:o,top:n,bottom:i}};return e}(i.AbstractDOMAdaptor);e.HTMLAdaptor=a},53520:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:true});e.browserAdaptor=void 0;var o=r(93572);function n(){return new o.HTMLAdaptor(window)}e.browserAdaptor=n},47810:function(t,e){var r=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],o=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&o>=t.length)t=void 0;return{value:t&&t[o++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.AbstractDOMAdaptor=void 0;var o=function(){function t(t){if(t===void 0){t=null}this.document=t}t.prototype.node=function(t,e,o,n){var i,a;if(e===void 0){e={}}if(o===void 0){o=[]}var u=this.create(t,n);this.setAttributes(u,e);try{for(var l=r(o),p=l.next();!p.done;p=l.next()){var s=p.value;this.append(u,s)}}catch(c){i={error:c}}finally{try{if(p&&!p.done&&(a=l.return))a.call(l)}finally{if(i)throw i.error}}return u};t.prototype.setAttributes=function(t,e){var o,n,i,a,u,l;if(e.style&&typeof e.style!=="string"){try{for(var p=r(Object.keys(e.style)),s=p.next();!s.done;s=p.next()){var c=s.value;this.setStyle(t,c.replace(/-([a-z])/g,(function(t,e){return e.toUpperCase()})),e.style[c])}}catch(v){o={error:v}}finally{try{if(s&&!s.done&&(n=p.return))n.call(p)}finally{if(o)throw o.error}}}if(e.properties){try{for(var f=r(Object.keys(e.properties)),y=f.next();!y.done;y=f.next()){var c=y.value;t[c]=e.properties[c]}}catch(m){i={error:m}}finally{try{if(y&&!y.done&&(a=f.return))a.call(f)}finally{if(i)throw i.error}}}try{for(var d=r(Object.keys(e)),h=d.next();!h.done;h=d.next()){var c=h.value;if((c!=="style"||typeof e.style==="string")&&c!=="properties"){this.setAttribute(t,c,e[c])}}}catch(b){u={error:b}}finally{try{if(h&&!h.done&&(l=d.return))l.call(d)}finally{if(u)throw u.error}}};t.prototype.replace=function(t,e){this.insert(t,e);this.remove(e);return e};t.prototype.childNode=function(t,e){return this.childNodes(t)[e]};t.prototype.allClasses=function(t){var e=this.getAttribute(t,"class");return!e?[]:e.replace(/ +/g," ").replace(/^ /,"").replace(/ $/,"").split(/ /)};return t}();e.AbstractDOMAdaptor=o}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/3528.3b5ef5f31d460b5fcd01.js b/bootcamp/share/jupyter/lab/static/3528.3b5ef5f31d460b5fcd01.js new file mode 100644 index 0000000..7e5dc51 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/3528.3b5ef5f31d460b5fcd01.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3528],{93528:(e,t,r)=>{r.r(t);r.d(t,{go:()=>d});var n={break:true,case:true,chan:true,const:true,continue:true,default:true,defer:true,else:true,fallthrough:true,for:true,func:true,go:true,goto:true,if:true,import:true,interface:true,map:true,package:true,range:true,return:true,select:true,struct:true,switch:true,type:true,var:true,bool:true,byte:true,complex64:true,complex128:true,float32:true,float64:true,int8:true,int16:true,int32:true,int64:true,string:true,uint8:true,uint16:true,uint32:true,uint64:true,int:true,uint:true,uintptr:true,error:true,rune:true,any:true,comparable:true};var u={true:true,false:true,iota:true,nil:true,append:true,cap:true,close:true,complex:true,copy:true,delete:true,imag:true,len:true,make:true,new:true,panic:true,print:true,println:true,real:true,recover:true};var i=/[+\-*&^%:=<>!|\/]/;var a;function l(e,t){var r=e.next();if(r=='"'||r=="'"||r=="`"){t.tokenize=o(r);return t.tokenize(e,t)}if(/[\d\.]/.test(r)){if(r=="."){e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/)}else if(r=="0"){e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/)}else{e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/)}return"number"}if(/[\[\]{}\(\),;\:\.]/.test(r)){a=r;return null}if(r=="/"){if(e.eat("*")){t.tokenize=c;return c(e,t)}if(e.eat("/")){e.skipToEnd();return"comment"}}if(i.test(r)){e.eatWhile(i);return"operator"}e.eatWhile(/[\w\$_\xa1-\uffff]/);var l=e.current();if(n.propertyIsEnumerable(l)){if(l=="case"||l=="default")a="case";return"keyword"}if(u.propertyIsEnumerable(l))return"atom";return"variable"}function o(e){return function(t,r){var n=false,u,i=false;while((u=t.next())!=null){if(u==e&&!n){i=true;break}n=!n&&e!="`"&&u=="\\"}if(i||!(n||e=="`"))r.tokenize=l;return"string"}}function c(e,t){var r=false,n;while(n=e.next()){if(n=="/"&&r){t.tokenize=l;break}r=n=="*"}return"comment"}function f(e,t,r,n,u){this.indented=e;this.column=t;this.type=r;this.align=n;this.prev=u}function s(e,t,r){return e.context=new f(e.indented,t,r,null,e.context)}function p(e){if(!e.context.prev)return;var t=e.context.type;if(t==")"||t=="]"||t=="}")e.indented=e.context.indented;return e.context=e.context.prev}const d={name:"go",startState:function(e){return{tokenize:null,context:new f(-e,0,"top",false),indented:0,startOfLine:true}},token:function(e,t){var r=t.context;if(e.sol()){if(r.align==null)r.align=false;t.indented=e.indentation();t.startOfLine=true;if(r.type=="case")r.type="}"}if(e.eatSpace())return null;a=null;var n=(t.tokenize||l)(e,t);if(n=="comment")return n;if(r.align==null)r.align=true;if(a=="{")s(t,e.column(),"}");else if(a=="[")s(t,e.column(),"]");else if(a=="(")s(t,e.column(),")");else if(a=="case")r.type="case";else if(a=="}"&&r.type=="}")p(t);else if(a==r.type)p(t);t.startOfLine=false;return n},indent:function(e,t,r){if(e.tokenize!=l&&e.tokenize!=null)return null;var n=e.context,u=t&&t.charAt(0);if(n.type=="case"&&/^(?:case|default)\b/.test(t))return n.indented;var i=u==n.type;if(n.align)return n.column+(i?0:1);else return n.indented+(i?0:r.unit)},languageData:{indentOnInput:/^\s([{}]|case |default\s*:)$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/3547.bd90e90bfe79911486e8.js b/bootcamp/share/jupyter/lab/static/3547.bd90e90bfe79911486e8.js new file mode 100644 index 0000000..7fc3a90 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/3547.bd90e90bfe79911486e8.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3547],{43547:(e,t,n)=>{n.r(t);n.d(t,{blockComment:()=>y,blockUncomment:()=>k,copyLineDown:()=>zt,copyLineUp:()=>Ht,cursorCharBackward:()=>fe,cursorCharForward:()=>ue,cursorCharLeft:()=>ae,cursorCharRight:()=>ce,cursorDocEnd:()=>yt,cursorDocStart:()=>gt,cursorGroupBackward:()=>ge,cursorGroupForward:()=>pe,cursorGroupLeft:()=>he,cursorGroupRight:()=>me,cursorLineBoundaryBackward:()=>Re,cursorLineBoundaryForward:()=>Ie,cursorLineBoundaryLeft:()=>Ve,cursorLineBoundaryRight:()=>Ue,cursorLineDown:()=>xe,cursorLineEnd:()=>Ge,cursorLineStart:()=>Ne,cursorLineUp:()=>De,cursorMatchingBracket:()=>Fe,cursorPageDown:()=>Oe,cursorPageUp:()=>be,cursorSubwordBackward:()=>ve,cursorSubwordForward:()=>we,cursorSyntaxLeft:()=>Ce,cursorSyntaxRight:()=>Be,defaultKeymap:()=>rn,deleteCharBackward:()=>xt,deleteCharForward:()=>Lt,deleteGroupBackward:()=>bt,deleteGroupForward:()=>Ot,deleteLine:()=>jt,deleteToLineEnd:()=>Tt,deleteToLineStart:()=>It,deleteTrailingWhitespace:()=>Rt,emacsStyleKeymap:()=>tn,history:()=>T,historyField:()=>I,historyKeymap:()=>te,indentLess:()=>Zt,indentMore:()=>Yt,indentSelection:()=>Xt,indentWithTab:()=>on,insertBlankLine:()=>Kt,insertNewline:()=>_t,insertNewlineAndIndent:()=>qt,insertTab:()=>en,invertedEffects:()=>L,isolateHistory:()=>x,lineComment:()=>m,lineUncomment:()=>p,moveLineDown:()=>Ft,moveLineUp:()=>Jt,redo:()=>U,redoDepth:()=>P,redoSelection:()=>G,selectAll:()=>vt,selectCharBackward:()=>qe,selectCharForward:()=>$e,selectCharLeft:()=>je,selectCharRight:()=>_e,selectDocEnd:()=>wt,selectDocStart:()=>kt,selectGroupBackward:()=>Ye,selectGroupForward:()=>Xe,selectGroupLeft:()=>We,selectGroupRight:()=>Qe,selectLine:()=>St,selectLineBoundaryBackward:()=>ft,selectLineBoundaryForward:()=>ut,selectLineBoundaryLeft:()=>dt,selectLineBoundaryRight:()=>ht,selectLineDown:()=>st,selectLineEnd:()=>pt,selectLineStart:()=>mt,selectLineUp:()=>lt,selectMatchingBracket:()=>Pe,selectPageDown:()=>ct,selectPageUp:()=>at,selectParentSyntax:()=>At,selectSubwordBackward:()=>tt,selectSubwordForward:()=>et,selectSyntaxLeft:()=>nt,selectSyntaxRight:()=>rt,simplifySelection:()=>Ct,splitLine:()=>Vt,standardKeymap:()=>nn,toggleBlockComment:()=>g,toggleBlockCommentByLine:()=>w,toggleComment:()=>f,toggleLineComment:()=>h,transposeChars:()=>Ut,undo:()=>V,undoDepth:()=>F,undoSelection:()=>N});var r=n(37496);var o=n.n(r);var l=n(66143);var s=n.n(l);var i=n(24104);var a=n.n(i);var c=n(73265);var u=n.n(c);const f=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=v(e.state,n.from);return r.line?h(e):r.block?w(e):false};function d(e,t){return({state:n,dispatch:r})=>{if(n.readOnly)return false;let o=e(t,n);if(!o)return false;r(n.update(o));return true}}const h=d(E,0);const m=d(E,1);const p=d(E,2);const g=d(B,0);const y=d(B,1);const k=d(B,2);const w=d(((e,t)=>B(e,t,C(t))),0);function v(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const S=50;function A(e,{open:t,close:n},r,o){let l=e.sliceDoc(r-S,r);let s=e.sliceDoc(o,o+S);let i=/\s*$/.exec(l)[0].length,a=/^\s*/.exec(s)[0].length;let c=l.length-i;if(l.slice(c-t.length,c)==t&&s.slice(a,a+n.length)==n){return{open:{pos:r-i,margin:i&&1},close:{pos:o+a,margin:a&&1}}}let u,f;if(o-r<=2*S){u=f=e.sliceDoc(r,o)}else{u=e.sliceDoc(r,r+S);f=e.sliceDoc(o-S,o)}let d=/^\s*/.exec(u)[0].length,h=/\s*$/.exec(f)[0].length;let m=f.length-h-n.length;if(u.slice(d,d+t.length)==t&&f.slice(m,m+n.length)==n){return{open:{pos:r+d+t.length,margin:/\s/.test(u.charAt(d+t.length))?1:0},close:{pos:o-h-n.length,margin:/\s/.test(f.charAt(m-1))?1:0}}}return null}function C(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from);let o=n.to<=r.to?r:e.doc.lineAt(n.to);let l=t.length-1;if(l>=0&&t[l].to>r.from)t[l].to=o.to;else t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:o.to})}return t}function B(e,t,n=t.selection.ranges){let r=n.map((e=>v(t,e.from).block));if(!r.every((e=>e)))return null;let o=n.map(((e,n)=>A(t,r[n],e.from,e.to)));if(e!=2&&!o.every((e=>e))){return{changes:t.changes(n.map(((e,t)=>{if(o[t])return[];return[{from:e.from,insert:r[t].open+" "},{from:e.to,insert:" "+r[t].close}]})))}}else if(e!=1&&o.some((e=>e))){let e=[];for(let t=0,n;to&&(l==s||s>e.from)){o=e.from;let t=/^\s*/.exec(e.text)[0].length;let l=t==e.length;let s=e.text.slice(t,t+i.length)==i?t:-1;if(te.comment<0&&(!e.empty||e.single)))){let e=[];for(let{line:t,token:o,indent:l,empty:s,single:i}of r)if(i||!s)e.push({from:t.from+l,insert:o+" "});let n=t.changes(e);return{changes:n,selection:t.selection.map(n,1)}}else if(e!=1&&r.some((e=>e.comment>=0))){let e=[];for(let{line:t,comment:n,token:o}of r)if(n>=0){let r=t.from+n,l=r+o.length;if(t.text[l-t.from]==" ")l++;e.push({from:r,to:l})}return{changes:e}}return null}const D=r.Annotation.define();const x=r.Annotation.define();const L=r.Facet.define();const M=r.Facet.define({combine(e){return(0,r.combineConfig)(e,{minDepth:100,newGroupDelay:500,joinToEvent:(e,t)=>t},{minDepth:Math.max,newGroupDelay:Math.min,joinToEvent:(e,t)=>(n,r)=>e(n,r)||t(n,r)})}});function b(e){let t=0;e.iterChangedRanges(((e,n)=>t=n));return t}const O=r.StateField.define({create(){return ee.empty},update(e,t){let n=t.state.facet(M);let o=t.annotation(D);if(o){let l=t.docChanged?r.EditorSelection.single(b(t.changes)):undefined;let s=H.fromTransaction(t,l),i=o.side;let a=i==0?e.undone:e.done;if(s)a=z(a,a.length,n.minDepth,s);else a=W(a,t.startState.selection);return new ee(i==0?o.rest:a,i==0?a:o.rest)}let l=t.annotation(x);if(l=="full"||l=="before")e=e.isolate();if(t.annotation(r.Transaction.addToHistory)===false)return!t.changes.empty?e.addMapping(t.changes.desc):e;let s=H.fromTransaction(t);let i=t.annotation(r.Transaction.time),a=t.annotation(r.Transaction.userEvent);if(s)e=e.addChanges(s,i,a,n,t);else if(t.selection)e=e.addSelection(t.startState.selection,i,a,n.newGroupDelay);if(l=="full"||l=="after")e=e.isolate();return e},toJSON(e){return{done:e.done.map((e=>e.toJSON())),undone:e.undone.map((e=>e.toJSON()))}},fromJSON(e){return new ee(e.done.map(H.fromJSON),e.undone.map(H.fromJSON))}});function T(e={}){return[O,M.of(e),l.EditorView.domEventHandlers({beforeinput(e,t){let n=e.inputType=="historyUndo"?V:e.inputType=="historyRedo"?U:null;if(!n)return false;e.preventDefault();return n(t)}})]}const I=O;function R(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return false;let o=n.field(O,false);if(!o)return false;let l=o.pop(e,n,t);if(!l)return false;r(l);return true}}const V=R(0,false);const U=R(1,false);const N=R(0,true);const G=R(1,true);function J(e){return function(t){let n=t.field(O,false);if(!n)return 0;let r=e==0?n.done:n.undone;return r.length-(r.length&&!r[0].changes?1:0)}}const F=J(0);const P=J(1);class H{constructor(e,t,n,r,o){this.changes=e;this.effects=t;this.mapped=n;this.startSelection=r;this.selectionsAfter=o}setSelAfter(e){return new H(this.changes,this.effects,this.mapped,this.startSelection,e)}toJSON(){var e,t,n;return{changes:(e=this.changes)===null||e===void 0?void 0:e.toJSON(),mapped:(t=this.mapped)===null||t===void 0?void 0:t.toJSON(),startSelection:(n=this.startSelection)===null||n===void 0?void 0:n.toJSON(),selectionsAfter:this.selectionsAfter.map((e=>e.toJSON()))}}static fromJSON(e){return new H(e.changes&&r.ChangeSet.fromJSON(e.changes),[],e.mapped&&r.ChangeDesc.fromJSON(e.mapped),e.startSelection&&r.EditorSelection.fromJSON(e.startSelection),e.selectionsAfter.map(r.EditorSelection.fromJSON))}static fromTransaction(e,t){let n=q;for(let r of e.startState.facet(L)){let t=r(e);if(t.length)n=n.concat(t)}if(!n.length&&e.changes.empty)return null;return new H(e.changes.invert(e.startState.doc),n,undefined,t||e.startState.selection,q)}static selection(e){return new H(undefined,q,undefined,undefined,e)}}function z(e,t,n,r){let o=t+1>n+20?t-n-1:0;let l=e.slice(o,t);l.push(r);return l}function j(e,t){let n=[],r=false;e.iterChangedRanges(((e,t)=>n.push(e,t)));t.iterChangedRanges(((e,t,o,l)=>{for(let s=0;s=e&&o<=t)r=true}}));return r}function _(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter(((e,n)=>e.empty!=t.ranges[n].empty)).length===0}function $(e,t){return!e.length?t:!t.length?e:e.concat(t)}const q=[];const K=200;function W(e,t){if(!e.length){return[H.selection([t])]}else{let n=e[e.length-1];let r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-K));if(r.length&&r[r.length-1].eq(t))return e;r.push(t);return z(e,e.length-1,1e9,n.setSelAfter(r))}}function Q(e){let t=e[e.length-1];let n=e.slice();n[e.length-1]=t.setSelAfter(t.selectionsAfter.slice(0,t.selectionsAfter.length-1));return n}function X(e,t){if(!e.length)return e;let n=e.length,r=q;while(n){let o=Y(e[n-1],t,r);if(o.changes&&!o.changes.empty||o.effects.length){let t=e.slice(0,n);t[n-1]=o;return t}else{t=o.mapped;n--;r=o.selectionsAfter}}return r.length?[H.selection(r)]:q}function Y(e,t,n){let o=$(e.selectionsAfter.length?e.selectionsAfter.map((e=>e.map(t))):q,n);if(!e.changes)return H.selection(o);let l=e.changes.map(t),s=t.mapDesc(e.changes,true);let i=e.mapped?e.mapped.composeDesc(s):s;return new H(l,r.StateEffect.mapEffects(e.effects,t),i,e.startSelection.map(s),o)}const Z=/^(input\.type|delete)($|\.)/;class ee{constructor(e,t,n=0,r=undefined){this.done=e;this.undone=t;this.prevTime=n;this.prevUserEvent=r}isolate(){return this.prevTime?new ee(this.done,this.undone):this}addChanges(e,t,n,r,o){let l=this.done,s=l[l.length-1];if(s&&s.changes&&!s.changes.empty&&e.changes&&(!n||Z.test(n))&&(!s.selectionsAfter.length&&t-this.prevTime0&&t-this.prevTimen.empty?e.moveByChar(n,t):le(n,t)))}function ie(e){return e.textDirectionAt(e.state.selection.main.head)==l.Direction.LTR}const ae=e=>se(e,!ie(e));const ce=e=>se(e,ie(e));const ue=e=>se(e,true);const fe=e=>se(e,false);function de(e,t){return oe(e,(n=>n.empty?e.moveByGroup(n,t):le(n,t)))}const he=e=>de(e,!ie(e));const me=e=>de(e,ie(e));const pe=e=>de(e,true);const ge=e=>de(e,false);function ye(e,t,n){let o=e.state.charCategorizer(t.from);return e.moveByChar(t,n,(l=>{let s=r.CharCategory.Space,i=t.from;let a=false,c=false,u=false;let f=t=>{if(a)return false;i+=n?t.length:-t.length;let l=o(t),f;if(s==r.CharCategory.Space)s=l;if(s!=l)return false;if(s==r.CharCategory.Word){if(t.toLowerCase()==t){if(!n&&c)return false;u=true}else if(u){if(n)return false;a=true}else{if(c&&n&&o(f=e.state.sliceDoc(i,i+1))==r.CharCategory.Word&&f.toLowerCase()==f)return false;c=true}}return true};f(l);return f}))}function ke(e,t){return oe(e,(n=>n.empty?ye(e,n,t):le(n,t)))}const we=e=>ke(e,true);const ve=e=>ke(e,false);function Se(e,t,n){if(t.type.prop(n))return true;let r=t.to-t.from;return r&&(r>2||/[^\s,.;:]/.test(e.sliceDoc(t.from,t.to)))||t.firstChild}function Ae(e,t,n){let o=(0,i.syntaxTree)(e).resolveInner(t.head);let l=n?c.NodeProp.closedBy:c.NodeProp.openedBy;for(let r=t.head;;){let t=n?o.childAfter(r):o.childBefore(r);if(!t)break;if(Se(e,t,l))o=t;else r=n?t.to:t.from}let s=o.type.prop(l),a,u;if(s&&(a=n?(0,i.matchBrackets)(e,o.from,1):(0,i.matchBrackets)(e,o.to,-1))&&a.matched)u=n?a.end.to:a.end.from;else u=n?o.to:o.from;return r.EditorSelection.cursor(u,n?-1:1)}const Ce=e=>oe(e,(t=>Ae(e.state,t,!ie(e))));const Be=e=>oe(e,(t=>Ae(e.state,t,ie(e))));function Ee(e,t){return oe(e,(n=>{if(!n.empty)return le(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)}))}const De=e=>Ee(e,false);const xe=e=>Ee(e,true);function Le(e){let t=e.scrollDOM.clientHeightr.empty?e.moveVertically(r,t,n.height):le(r,t)));if(o.eq(r.selection))return false;let s;if(n.selfScroll){let t=e.coordsAtPos(r.selection.main.head);let i=e.scrollDOM.getBoundingClientRect();let a=i.top+n.marginTop,c=i.bottom-n.marginBottom;if(t&&t.top>a&&t.bottomMe(e,false);const Oe=e=>Me(e,true);function Te(e,t,n){let o=e.lineBlockAt(t.head),l=e.moveToLineBoundary(t,n);if(l.head==t.head&&l.head!=(n?o.to:o.from))l=e.moveToLineBoundary(t,n,false);if(!n&&l.head==o.from&&o.length){let n=/^\s*/.exec(e.state.sliceDoc(o.from,Math.min(o.from+100,o.to)))[0].length;if(n&&t.head!=o.from+n)l=r.EditorSelection.cursor(o.from+n)}return l}const Ie=e=>oe(e,(t=>Te(e,t,true)));const Re=e=>oe(e,(t=>Te(e,t,false)));const Ve=e=>oe(e,(t=>Te(e,t,!ie(e))));const Ue=e=>oe(e,(t=>Te(e,t,ie(e))));const Ne=e=>oe(e,(t=>r.EditorSelection.cursor(e.lineBlockAt(t.head).from,1)));const Ge=e=>oe(e,(t=>r.EditorSelection.cursor(e.lineBlockAt(t.head).to,-1)));function Je(e,t,n){let o=false,l=ne(e.selection,(t=>{let l=(0,i.matchBrackets)(e,t.head,-1)||(0,i.matchBrackets)(e,t.head,1)||t.head>0&&(0,i.matchBrackets)(e,t.head-1,1)||t.headJe(e,t,false);const Pe=({state:e,dispatch:t})=>Je(e,t,true);function He(e,t){let n=ne(e.state.selection,(e=>{let n=t(e);return r.EditorSelection.range(e.anchor,n.head,n.goalColumn,n.bidiLevel||undefined)}));if(n.eq(e.state.selection))return false;e.dispatch(re(e.state,n));return true}function ze(e,t){return He(e,(n=>e.moveByChar(n,t)))}const je=e=>ze(e,!ie(e));const _e=e=>ze(e,ie(e));const $e=e=>ze(e,true);const qe=e=>ze(e,false);function Ke(e,t){return He(e,(n=>e.moveByGroup(n,t)))}const We=e=>Ke(e,!ie(e));const Qe=e=>Ke(e,ie(e));const Xe=e=>Ke(e,true);const Ye=e=>Ke(e,false);function Ze(e,t){return He(e,(n=>ye(e,n,t)))}const et=e=>Ze(e,true);const tt=e=>Ze(e,false);const nt=e=>He(e,(t=>Ae(e.state,t,!ie(e))));const rt=e=>He(e,(t=>Ae(e.state,t,ie(e))));function ot(e,t){return He(e,(n=>e.moveVertically(n,t)))}const lt=e=>ot(e,false);const st=e=>ot(e,true);function it(e,t){return He(e,(n=>e.moveVertically(n,t,Le(e).height)))}const at=e=>it(e,false);const ct=e=>it(e,true);const ut=e=>He(e,(t=>Te(e,t,true)));const ft=e=>He(e,(t=>Te(e,t,false)));const dt=e=>He(e,(t=>Te(e,t,!ie(e))));const ht=e=>He(e,(t=>Te(e,t,ie(e))));const mt=e=>He(e,(t=>r.EditorSelection.cursor(e.lineBlockAt(t.head).from)));const pt=e=>He(e,(t=>r.EditorSelection.cursor(e.lineBlockAt(t.head).to)));const gt=({state:e,dispatch:t})=>{t(re(e,{anchor:0}));return true};const yt=({state:e,dispatch:t})=>{t(re(e,{anchor:e.doc.length}));return true};const kt=({state:e,dispatch:t})=>{t(re(e,{anchor:e.selection.main.anchor,head:0}));return true};const wt=({state:e,dispatch:t})=>{t(re(e,{anchor:e.selection.main.anchor,head:e.doc.length}));return true};const vt=({state:e,dispatch:t})=>{t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"}));return true};const St=({state:e,dispatch:t})=>{let n=Nt(e).map((({from:t,to:n})=>r.EditorSelection.range(t,Math.min(n+1,e.doc.length))));t(e.update({selection:r.EditorSelection.create(n),userEvent:"select"}));return true};const At=({state:e,dispatch:t})=>{let n=ne(e.selection,(t=>{var n;let o=(0,i.syntaxTree)(e).resolveInner(t.head,1);while(!(o.from=t.to||o.to>t.to&&o.from<=t.from||!((n=o.parent)===null||n===void 0?void 0:n.parent)))o=o.parent;return r.EditorSelection.range(o.to,o.from)}));t(re(e,n));return true};const Ct=({state:e,dispatch:t})=>{let n=e.selection,o=null;if(n.ranges.length>1)o=r.EditorSelection.create([n.main]);else if(!n.main.empty)o=r.EditorSelection.create([r.EditorSelection.cursor(n.main.head)]);if(!o)return false;t(re(e,o));return true};function Bt(e,t){if(e.state.readOnly)return false;let n="delete.selection",{state:o}=e;let s=o.changeByRange((o=>{let{from:l,to:s}=o;if(l==s){let r=t(l);if(rl){n="delete.forward";r=Et(e,r,true)}l=Math.min(l,r);s=Math.max(s,r)}else{l=Et(e,l,false);s=Et(e,s,true)}return l==s?{range:o}:{changes:{from:l,to:s},range:r.EditorSelection.cursor(l)}}));if(s.changes.empty)return false;e.dispatch(o.update(s,{scrollIntoView:true,userEvent:n,effects:n=="delete.selection"?l.EditorView.announce.of(o.phrase("Selection deleted")):undefined}));return true}function Et(e,t,n){if(e instanceof l.EditorView)for(let r of e.state.facet(l.EditorView.atomicRanges).map((t=>t(e))))r.between(t,t,((e,r)=>{if(et)t=n?r:e}));return t}const Dt=(e,t)=>Bt(e,(n=>{let{state:o}=e,l=o.doc.lineAt(n),s,a;if(!t&&n>l.from&&nDt(e,false);const Lt=e=>Dt(e,true);const Mt=(e,t)=>Bt(e,(n=>{let o=n,{state:l}=e,s=l.doc.lineAt(o);let i=l.charCategorizer(o);for(let e=null;;){if(o==(t?s.to:s.from)){if(o==n&&s.number!=(t?l.doc.lines:1))o+=t?1:-1;break}let a=(0,r.findClusterBreak)(s.text,o-s.from,t)+s.from;let c=s.text.slice(Math.min(o,a)-s.from,Math.max(o,a)-s.from);let u=i(c);if(e!=null&&u!=e)break;if(c!=" "||o!=n)e=u;o=a}return o}));const bt=e=>Mt(e,false);const Ot=e=>Mt(e,true);const Tt=e=>Bt(e,(t=>{let n=e.lineBlockAt(t).to;return tBt(e,(t=>{let n=e.lineBlockAt(t).from;return t>n?n:Math.max(0,t-1)}));const Rt=({state:e,dispatch:t})=>{if(e.readOnly)return false;let n=[];for(let r=0,o="",l=e.doc.iter();;){l.next();if(l.lineBreak||l.done){let e=o.search(/\s+$/);if(e>-1)n.push({from:r-(o.length-e),to:r});if(l.done)break;o=""}else{o=l.value}r+=l.value.length}if(!n.length)return false;t(e.update({changes:n,userEvent:"delete"}));return true};const Vt=({state:e,dispatch:t})=>{if(e.readOnly)return false;let n=e.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:r.Text.of(["",""])},range:r.EditorSelection.cursor(e.from)})));t(e.update(n,{scrollIntoView:true,userEvent:"input"}));return true};const Ut=({state:e,dispatch:t})=>{if(e.readOnly)return false;let n=e.changeByRange((t=>{if(!t.empty||t.from==0||t.from==e.doc.length)return{range:t};let n=t.from,o=e.doc.lineAt(n);let l=n==o.from?n-1:(0,r.findClusterBreak)(o.text,n-o.from,false)+o.from;let s=n==o.to?n+1:(0,r.findClusterBreak)(o.text,n-o.from,true)+o.from;return{changes:{from:l,to:s,insert:e.doc.slice(n,s).append(e.doc.slice(l,n))},range:r.EditorSelection.cursor(s)}}));if(n.changes.empty)return false;t(e.update(n,{scrollIntoView:true,userEvent:"move.character"}));return true};function Nt(e){let t=[],n=-1;for(let r of e.selection.ranges){let o=e.doc.lineAt(r.from),l=e.doc.lineAt(r.to);if(!r.empty&&r.to==l.from)l=e.doc.lineAt(r.to-1);if(n>=o.number){let e=t[t.length-1];e.to=l.to;e.ranges.push(r)}else{t.push({from:o.from,to:l.to,ranges:[r]})}n=l.number+1}return t}function Gt(e,t,n){if(e.readOnly)return false;let o=[],l=[];for(let s of Nt(e)){if(n?s.to==e.doc.length:s.from==0)continue;let t=e.doc.lineAt(n?s.to+1:s.from-1);let i=t.length+1;if(n){o.push({from:s.to,to:t.to},{from:s.from,insert:t.text+e.lineBreak});for(let t of s.ranges)l.push(r.EditorSelection.range(Math.min(e.doc.length,t.anchor+i),Math.min(e.doc.length,t.head+i)))}else{o.push({from:t.from,to:s.from},{from:s.to,insert:e.lineBreak+t.text});for(let e of s.ranges)l.push(r.EditorSelection.range(e.anchor-i,e.head-i))}}if(!o.length)return false;t(e.update({changes:o,scrollIntoView:true,selection:r.EditorSelection.create(l,e.selection.mainIndex),userEvent:"move.line"}));return true}const Jt=({state:e,dispatch:t})=>Gt(e,t,false);const Ft=({state:e,dispatch:t})=>Gt(e,t,true);function Pt(e,t,n){if(e.readOnly)return false;let r=[];for(let o of Nt(e)){if(n)r.push({from:o.from,insert:e.doc.slice(o.from,o.to)+e.lineBreak});else r.push({from:o.to,insert:e.lineBreak+e.doc.slice(o.from,o.to)})}t(e.update({changes:r,scrollIntoView:true,userEvent:"input.copyline"}));return true}const Ht=({state:e,dispatch:t})=>Pt(e,t,false);const zt=({state:e,dispatch:t})=>Pt(e,t,true);const jt=e=>{if(e.state.readOnly)return false;let{state:t}=e,n=t.changes(Nt(t).map((({from:e,to:n})=>{if(e>0)e--;else if(ne.moveVertically(t,true))).map(n);e.dispatch({changes:n,selection:r,scrollIntoView:true,userEvent:"delete.line"});return true};const _t=({state:e,dispatch:t})=>{t(e.update(e.replaceSelection(e.lineBreak),{scrollIntoView:true,userEvent:"input"}));return true};function $t(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=(0,i.syntaxTree)(e).resolveInner(t);let r=n.childBefore(t),o=n.childAfter(t),l;if(r&&o&&r.to<=t&&o.from>=t&&(l=r.type.prop(c.NodeProp.closedBy))&&l.indexOf(o.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(o.from).from)return{from:r.to,to:o.from};return null}const qt=Wt(false);const Kt=Wt(true);function Wt(e){return({state:t,dispatch:n})=>{if(t.readOnly)return false;let o=t.changeByRange((n=>{let{from:o,to:l}=n,s=t.doc.lineAt(o);let a=!e&&o==l&&$t(t,o);if(e)o=l=(l<=s.to?s:t.doc.lineAt(l)).to;let c=new i.IndentContext(t,{simulateBreak:o,simulateDoubleBreak:!!a});let u=(0,i.getIndentation)(c,o);if(u==null)u=/^\s*/.exec(t.doc.lineAt(o).text)[0].length;while(ls.from&&o{let l=[];for(let r=o.from;r<=o.to;){let s=e.doc.lineAt(r);if(s.number>n&&(o.empty||o.to>s.from)){t(s,l,o);n=s.number}r=s.to+1}let s=e.changes(l);return{changes:l,range:r.EditorSelection.range(s.mapPos(o.anchor,1),s.mapPos(o.head,1))}}))}const Xt=({state:e,dispatch:t})=>{if(e.readOnly)return false;let n=Object.create(null);let r=new i.IndentContext(e,{overrideIndentation:e=>{let t=n[e];return t==null?-1:t}});let o=Qt(e,((t,o,l)=>{let s=(0,i.getIndentation)(r,t.from);if(s==null)return;if(!/\S/.test(t.text))s=0;let a=/^\s*/.exec(t.text)[0];let c=(0,i.indentString)(e,s);if(a!=c||l.from{if(e.readOnly)return false;t(e.update(Qt(e,((t,n)=>{n.push({from:t.from,insert:e.facet(i.indentUnit)})})),{userEvent:"input.indent"}));return true};const Zt=({state:e,dispatch:t})=>{if(e.readOnly)return false;t(e.update(Qt(e,((t,n)=>{let o=/^\s*/.exec(t.text)[0];if(!o)return;let l=(0,r.countColumn)(o,e.tabSize),s=0;let a=(0,i.indentString)(e,Math.max(0,l-(0,i.getIndentUnit)(e)));while(s{if(e.selection.ranges.some((e=>!e.empty)))return Yt({state:e,dispatch:t});t(e.update(e.replaceSelection("\t"),{scrollIntoView:true,userEvent:"input"}));return true};const tn=[{key:"Ctrl-b",run:ae,shift:je,preventDefault:true},{key:"Ctrl-f",run:ce,shift:_e},{key:"Ctrl-p",run:De,shift:lt},{key:"Ctrl-n",run:xe,shift:st},{key:"Ctrl-a",run:Ne,shift:mt},{key:"Ctrl-e",run:Ge,shift:pt},{key:"Ctrl-d",run:Lt},{key:"Ctrl-h",run:xt},{key:"Ctrl-k",run:Tt},{key:"Ctrl-Alt-h",run:bt},{key:"Ctrl-o",run:Vt},{key:"Ctrl-t",run:Ut},{key:"Ctrl-v",run:Oe}];const nn=[{key:"ArrowLeft",run:ae,shift:je,preventDefault:true},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:he,shift:We,preventDefault:true},{mac:"Cmd-ArrowLeft",run:Ve,shift:dt,preventDefault:true},{key:"ArrowRight",run:ce,shift:_e,preventDefault:true},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:me,shift:Qe,preventDefault:true},{mac:"Cmd-ArrowRight",run:Ue,shift:ht,preventDefault:true},{key:"ArrowUp",run:De,shift:lt,preventDefault:true},{mac:"Cmd-ArrowUp",run:gt,shift:kt},{mac:"Ctrl-ArrowUp",run:be,shift:at},{key:"ArrowDown",run:xe,shift:st,preventDefault:true},{mac:"Cmd-ArrowDown",run:yt,shift:wt},{mac:"Ctrl-ArrowDown",run:Oe,shift:ct},{key:"PageUp",run:be,shift:at},{key:"PageDown",run:Oe,shift:ct},{key:"Home",run:Re,shift:ft,preventDefault:true},{key:"Mod-Home",run:gt,shift:kt},{key:"End",run:Ie,shift:ut,preventDefault:true},{key:"Mod-End",run:yt,shift:wt},{key:"Enter",run:qt},{key:"Mod-a",run:vt},{key:"Backspace",run:xt,shift:xt},{key:"Delete",run:Lt},{key:"Mod-Backspace",mac:"Alt-Backspace",run:bt},{key:"Mod-Delete",mac:"Alt-Delete",run:Ot},{mac:"Mod-Backspace",run:It},{mac:"Mod-Delete",run:Tt}].concat(tn.map((e=>({mac:e.key,run:e.run,shift:e.shift}))));const rn=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:Ce,shift:nt},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:Be,shift:rt},{key:"Alt-ArrowUp",run:Jt},{key:"Shift-Alt-ArrowUp",run:Ht},{key:"Alt-ArrowDown",run:Ft},{key:"Shift-Alt-ArrowDown",run:zt},{key:"Escape",run:Ct},{key:"Mod-Enter",run:Kt},{key:"Alt-l",mac:"Ctrl-l",run:St},{key:"Mod-i",run:At,preventDefault:true},{key:"Mod-[",run:Zt},{key:"Mod-]",run:Yt},{key:"Mod-Alt-\\",run:Xt},{key:"Shift-Mod-k",run:jt},{key:"Shift-Mod-\\",run:Fe},{key:"Mod-/",run:f},{key:"Alt-A",run:g}].concat(nn);const on={key:"Tab",run:Yt,shift:Zt}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/3549.24f2fe646d8128bc9db0.js b/bootcamp/share/jupyter/lab/static/3549.24f2fe646d8128bc9db0.js new file mode 100644 index 0000000..13fd5bb --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/3549.24f2fe646d8128bc9db0.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3549],{23549:(i,l,e)=>{e.r(l);e.d(l,{gas:()=>t,gasArm:()=>n});function a(i){var l=[];var e="";var a={".abort":"builtin",".align":"builtin",".altmacro":"builtin",".ascii":"builtin",".asciz":"builtin",".balign":"builtin",".balignw":"builtin",".balignl":"builtin",".bundle_align_mode":"builtin",".bundle_lock":"builtin",".bundle_unlock":"builtin",".byte":"builtin",".cfi_startproc":"builtin",".comm":"builtin",".data":"builtin",".def":"builtin",".desc":"builtin",".dim":"builtin",".double":"builtin",".eject":"builtin",".else":"builtin",".elseif":"builtin",".end":"builtin",".endef":"builtin",".endfunc":"builtin",".endif":"builtin",".equ":"builtin",".equiv":"builtin",".eqv":"builtin",".err":"builtin",".error":"builtin",".exitm":"builtin",".extern":"builtin",".fail":"builtin",".file":"builtin",".fill":"builtin",".float":"builtin",".func":"builtin",".global":"builtin",".gnu_attribute":"builtin",".hidden":"builtin",".hword":"builtin",".ident":"builtin",".if":"builtin",".incbin":"builtin",".include":"builtin",".int":"builtin",".internal":"builtin",".irp":"builtin",".irpc":"builtin",".lcomm":"builtin",".lflags":"builtin",".line":"builtin",".linkonce":"builtin",".list":"builtin",".ln":"builtin",".loc":"builtin",".loc_mark_labels":"builtin",".local":"builtin",".long":"builtin",".macro":"builtin",".mri":"builtin",".noaltmacro":"builtin",".nolist":"builtin",".octa":"builtin",".offset":"builtin",".org":"builtin",".p2align":"builtin",".popsection":"builtin",".previous":"builtin",".print":"builtin",".protected":"builtin",".psize":"builtin",".purgem":"builtin",".pushsection":"builtin",".quad":"builtin",".reloc":"builtin",".rept":"builtin",".sbttl":"builtin",".scl":"builtin",".section":"builtin",".set":"builtin",".short":"builtin",".single":"builtin",".size":"builtin",".skip":"builtin",".sleb128":"builtin",".space":"builtin",".stab":"builtin",".string":"builtin",".struct":"builtin",".subsection":"builtin",".symver":"builtin",".tag":"builtin",".text":"builtin",".title":"builtin",".type":"builtin",".uleb128":"builtin",".val":"builtin",".version":"builtin",".vtable_entry":"builtin",".vtable_inherit":"builtin",".warning":"builtin",".weak":"builtin",".weakref":"builtin",".word":"builtin"};var t={};function n(){e="#";t.al="variable";t.ah="variable";t.ax="variable";t.eax="variableName.special";t.rax="variableName.special";t.bl="variable";t.bh="variable";t.bx="variable";t.ebx="variableName.special";t.rbx="variableName.special";t.cl="variable";t.ch="variable";t.cx="variable";t.ecx="variableName.special";t.rcx="variableName.special";t.dl="variable";t.dh="variable";t.dx="variable";t.edx="variableName.special";t.rdx="variableName.special";t.si="variable";t.esi="variableName.special";t.rsi="variableName.special";t.di="variable";t.edi="variableName.special";t.rdi="variableName.special";t.sp="variable";t.esp="variableName.special";t.rsp="variableName.special";t.bp="variable";t.ebp="variableName.special";t.rbp="variableName.special";t.ip="variable";t.eip="variableName.special";t.rip="variableName.special";t.cs="keyword";t.ds="keyword";t.ss="keyword";t.es="keyword";t.fs="keyword";t.gs="keyword"}function b(){e="@";a.syntax="builtin";t.r0="variable";t.r1="variable";t.r2="variable";t.r3="variable";t.r4="variable";t.r5="variable";t.r6="variable";t.r7="variable";t.r8="variable";t.r9="variable";t.r10="variable";t.r11="variable";t.r12="variable";t.sp="variableName.special";t.lr="variableName.special";t.pc="variableName.special";t.r13=t.sp;t.r14=t.lr;t.r15=t.pc;l.push((function(i,l){if(i==="#"){l.eatWhile(/\w/);return"number"}}))}if(i==="x86"){n()}else if(i==="arm"||i==="armv6"){b()}function r(i,l){var e=false,a;while((a=i.next())!=null){if(a===l&&!e){return false}e=!e&&a==="\\"}return e}function u(i,l){var e=false,a;while((a=i.next())!=null){if(a==="/"&&e){l.tokenize=null;break}e=a==="*"}return"comment"}return{name:"gas",startState:function(){return{tokenize:null}},token:function(i,n){if(n.tokenize){return n.tokenize(i,n)}if(i.eatSpace()){return null}var b,s,c=i.next();if(c==="/"){if(i.eat("*")){n.tokenize=u;return u(i,n)}}if(c===e){i.skipToEnd();return"comment"}if(c==='"'){r(i,'"');return"string"}if(c==="."){i.eatWhile(/\w/);s=i.current().toLowerCase();b=a[s];return b||null}if(c==="="){i.eatWhile(/\w/);return"tag"}if(c==="{"){return"bracket"}if(c==="}"){return"bracket"}if(/\d/.test(c)){if(c==="0"&&i.eat("x")){i.eatWhile(/[0-9a-fA-F]/);return"number"}i.eatWhile(/\d/);return"number"}if(/\w/.test(c)){i.eatWhile(/\w/);if(i.eat(":")){return"tag"}s=i.current().toLowerCase();b=t[s];return b||null}for(var o=0;o{r.r(t);r.d(t,{apl:()=>f});var n={"+":["conjugate","add"],"−":["negate","subtract"],"×":["signOf","multiply"],"÷":["reciprocal","divide"],"⌈":["ceiling","greaterOf"],"⌊":["floor","lesserOf"],"∣":["absolute","residue"],"⍳":["indexGenerate","indexOf"],"?":["roll","deal"],"⋆":["exponentiate","toThePowerOf"],"⍟":["naturalLog","logToTheBase"],"○":["piTimes","circularFuncs"],"!":["factorial","binomial"],"⌹":["matrixInverse","matrixDivide"],"<":[null,"lessThan"],"≤":[null,"lessThanOrEqual"],"=":[null,"equals"],">":[null,"greaterThan"],"≥":[null,"greaterThanOrEqual"],"≠":[null,"notEqual"],"≡":["depth","match"],"≢":[null,"notMatch"],"∈":["enlist","membership"],"⍷":[null,"find"],"∪":["unique","union"],"∩":[null,"intersection"],"∼":["not","without"],"∨":[null,"or"],"∧":[null,"and"],"⍱":[null,"nor"],"⍲":[null,"nand"],"⍴":["shapeOf","reshape"],",":["ravel","catenate"],"⍪":[null,"firstAxisCatenate"],"⌽":["reverse","rotate"],"⊖":["axis1Reverse","axis1Rotate"],"⍉":["transpose",null],"↑":["first","take"],"↓":[null,"drop"],"⊂":["enclose","partitionWithAxis"],"⊃":["diclose","pick"],"⌷":[null,"index"],"⍋":["gradeUp",null],"⍒":["gradeDown",null],"⊤":["encode",null],"⊥":["decode",null],"⍕":["format","formatByExample"],"⍎":["execute",null],"⊣":["stop","left"],"⊢":["pass","right"]};var a=/[\.\/⌿⍀¨⍣]/;var l=/⍬/;var u=/[\+−×÷⌈⌊∣⍳\?⋆⍟○!⌹<≤=>≥≠≡≢∈⍷∪∩∼∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⌷⍋⍒⊤⊥⍕⍎⊣⊢]/;var i=/←/;var s=/[⍝#].*$/;var o=function(e){var t;t=false;return function(r){t=r;if(r===e){return t==="\\"}return true}};const f={name:"apl",startState:function(){return{prev:false,func:false,op:false,string:false,escape:false}},token:function(e,t){var r;if(e.eatSpace()){return null}r=e.next();if(r==='"'||r==="'"){e.eatWhile(o(r));e.next();t.prev=true;return"string"}if(/[\[{\(]/.test(r)){t.prev=false;return null}if(/[\]}\)]/.test(r)){t.prev=true;return null}if(l.test(r)){t.prev=false;return"atom"}if(/[¯\d]/.test(r)){if(t.func){t.func=false;t.prev=false}else{t.prev=true}e.eatWhile(/[\w\.]/);return"number"}if(a.test(r)){return"operator"}if(i.test(r)){return"operator"}if(u.test(r)){t.func=true;t.prev=false;return n[r]?"variableName.function.standard":"variableName.function"}if(s.test(r)){e.skipToEnd();return"comment"}if(r==="∘"&&e.peek()==="."){e.next();return"variableName.function"}e.eatWhile(/[\w\$_]/);t.prev=true;return"keyword"}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/36e0d72d8a7afc696a3e.woff b/bootcamp/share/jupyter/lab/static/36e0d72d8a7afc696a3e.woff new file mode 100644 index 0000000..ed55c4c Binary files /dev/null and b/bootcamp/share/jupyter/lab/static/36e0d72d8a7afc696a3e.woff differ diff --git a/bootcamp/share/jupyter/lab/static/3724.a4657dc16be2ffc49282.js b/bootcamp/share/jupyter/lab/static/3724.a4657dc16be2ffc49282.js new file mode 100644 index 0000000..6a0069c --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/3724.a4657dc16be2ffc49282.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3724,6059],{63724:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var i=this&&this.__assign||function(){i=Object.assign||function(t){for(var e,r=1,n=arguments.length;r0)&&!(i=n.next()).done)a.push(i.value)}catch(l){o={error:l}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(o)throw o.error}}return a};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.SafeHandler=e.SafeMathDocumentMixin=void 0;var s=r(63553);function f(t){var e;return e=function(t){n(e,t);function e(){var e,r;var n=[];for(var i=0;i=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,a=[],o;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)a.push(i.value)}catch(l){o={error:l}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(o)throw o.error}}return a};Object.defineProperty(e,"__esModule",{value:true});e.SafeMethods=void 0;var a=r(77130);e.SafeMethods={filterURL:function(t,e){var r=(e.match(/^\s*([a-z]+):/i)||[null,""])[1].toLowerCase();var n=t.allow.URLs;return n==="all"||n==="safe"&&(t.options.safeProtocols[r]||!r)?e:null},filterClassList:function(t,e){var r=this;var n=e.trim().replace(/\s\s+/g," ").split(/ /);return n.map((function(e){return r.filterClass(t,e)||""})).join(" ").trim().replace(/\s\s+/g,"")},filterClass:function(t,e){var r=t.allow.classes;return r==="all"||r==="safe"&&e.match(t.options.classPattern)?e:null},filterID:function(t,e){var r=t.allow.cssIDs;return r==="all"||r==="safe"&&e.match(t.options.idPattern)?e:null},filterStyles:function(t,e){var r,i,a,o;if(t.allow.styles==="all")return e;if(t.allow.styles!=="safe")return null;var l=t.adaptor;var s=t.options;try{var f=l.node("div",{style:e});var u=l.node("div");try{for(var c=n(Object.keys(s.safeStyles)),p=c.next();!p.done;p=c.next()){var y=p.value;if(s.styleParts[y]){try{for(var h=(a=void 0,n(["Top","Right","Bottom","Left"])),v=h.next();!v.done;v=h.next()){var d=v.value;var m=y+d;var b=this.filterStyle(t,m,f);if(b){l.setStyle(u,m,b)}}}catch(g){a={error:g}}finally{try{if(v&&!v.done&&(o=h.return))o.call(h)}finally{if(a)throw a.error}}}else{var b=this.filterStyle(t,y,f);if(b){l.setStyle(u,y,b)}}}}catch(S){r={error:S}}finally{try{if(p&&!p.done&&(i=c.return))i.call(c)}finally{if(r)throw r.error}}e=l.allStyles(u)}catch(O){e=""}return e},filterStyle:function(t,e,r){var n=t.adaptor.getStyle(r,e);if(typeof n!=="string"||n===""||n.match(/^\s*calc/)||n.match(/javascript:/)&&!t.options.safeProtocols.javascript||n.match(/data:/)&&!t.options.safeProtocols.data){return null}var i=e.replace(/Top|Right|Left|Bottom/,"");if(!t.options.safeStyles[e]&&!t.options.safeStyles[i]){return null}return this.filterStyleValue(t,e,n,r)},filterStyleValue:function(t,e,r,n){var i=t.options.styleLengths[e];if(!i){return r}if(typeof i!=="string"){return this.filterStyleLength(t,e,r)}var a=this.filterStyleLength(t,i,t.adaptor.getStyle(n,i));if(!a){return null}t.adaptor.setStyle(n,i,a);return t.adaptor.getStyle(n,e)},filterStyleLength:function(t,e,r){if(!r.match(/^(.+)(em|ex|ch|rem|px|mm|cm|in|pt|pc|%)$/))return null;var n=(0,a.length2em)(r,1);var o=t.options.styleLengths[e];var l=i(Array.isArray(o)?o:[-t.options.lengthMax,t.options.lengthMax],2),s=l[0],f=l[1];return s<=n&&n<=f?r:(n=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.Safe=void 0;var a=r(36059);var o=r(52351);var l=function(){function t(t,e){this.filterAttributes=new Map([["href","filterURL"],["src","filterURL"],["altimg","filterURL"],["class","filterClassList"],["style","filterStyles"],["id","filterID"],["fontsize","filterFontSize"],["mathsize","filterFontSize"],["scriptminsize","filterFontSize"],["scriptsizemultiplier","filterSizeMultiplier"],["scriptlevel","filterScriptLevel"],["data-","filterData"]]);this.filterMethods=n({},o.SafeMethods);this.adaptor=t.adaptor;this.options=e;this.allow=this.options.allow}t.prototype.sanitize=function(t,e){try{t.root.walkTree(this.sanitizeNode.bind(this))}catch(r){e.options.compileError(e,t,r)}};t.prototype.sanitizeNode=function(t){var e,r;var n=t.attributes.getAllAttributes();try{for(var a=i(Object.keys(n)),o=a.next();!o.done;o=a.next()){var l=o.value;var s=this.filterAttributes.get(l);if(s){var f=this.filterMethods[s](this,n[l]);if(f){if(f!==(typeof f==="number"?parseFloat(n[l]):n[l])){n[l]=f}}else{delete n[l]}}}}catch(u){e={error:u}}finally{try{if(o&&!o.done&&(r=a.return))r.call(a)}finally{if(e)throw e.error}}};t.prototype.mmlAttribute=function(t,e){if(t==="class")return null;var r=this.filterAttributes.get(t);var n=r||(t.substr(0,5)==="data-"?this.filterAttributes.get("data-"):null);if(!n){return e}var i=this.filterMethods[n](this,e,t);return typeof i==="number"||typeof i==="boolean"?String(i):i};t.prototype.mmlClassList=function(t){var e=this;return t.map((function(t){return e.filterMethods.filterClass(e,t)})).filter((function(t){return t!==null}))};t.OPTIONS={allow:{URLs:"safe",classes:"safe",cssIDs:"safe",styles:"safe"},lengthMax:3,scriptsizemultiplierRange:[.6,1],scriptlevelRange:[-2,2],classPattern:/^mjx-[-a-zA-Z0-9_.]+$/,idPattern:/^mjx-[-a-zA-Z0-9_.]+$/,dataPattern:/^data-mjx-/,safeProtocols:(0,a.expandable)({http:true,https:true,file:true,javascript:false,data:false}),safeStyles:(0,a.expandable)({color:true,backgroundColor:true,border:true,cursor:true,margin:true,padding:true,textShadow:true,fontFamily:true,fontSize:true,fontStyle:true,fontWeight:true,opacity:true,outline:true}),styleParts:(0,a.expandable)({border:true,padding:true,margin:true,outline:true}),styleLengths:(0,a.expandable)({borderTop:"borderTopWidth",borderRight:"borderRightWidth",borderBottom:"borderBottomWidth",borderLeft:"borderLeftWidth",paddingTop:true,paddingRight:true,paddingBottom:true,paddingLeft:true,marginTop:true,marginRight:true,marginBottom:true,marginLeft:true,outlineTop:true,outlineRight:true,outlineBottom:true,outlineLeft:true,fontSize:[.707,1.44]})};return t}();e.Safe=l},36059:function(t,e){var r=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,a=[],o;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)a.push(i.value)}catch(l){o={error:l}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(o)throw o.error}}return a};var i=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n{Object.defineProperty(e,"__esModule",{value:true});e.px=e.emRounded=e.em=e.percent=e.length2em=e.MATHSPACE=e.RELUNITS=e.UNITS=e.BIGDIMEN=void 0;e.BIGDIMEN=1e6;e.UNITS={px:1,in:96,cm:96/2.54,mm:96/25.4};e.RELUNITS={em:1,ex:.431,pt:1/10,pc:12/10,mu:1/18};e.MATHSPACE={veryverythinmathspace:1/18,verythinmathspace:2/18,thinmathspace:3/18,mediummathspace:4/18,thickmathspace:5/18,verythickmathspace:6/18,veryverythickmathspace:7/18,negativeveryverythinmathspace:-1/18,negativeverythinmathspace:-2/18,negativethinmathspace:-3/18,negativemediummathspace:-4/18,negativethickmathspace:-5/18,negativeverythickmathspace:-6/18,negativeveryverythickmathspace:-7/18,thin:.04,medium:.06,thick:.1,normal:1,big:2,small:1/Math.sqrt(2),infinity:e.BIGDIMEN};function r(t,r,n,i){if(r===void 0){r=0}if(n===void 0){n=1}if(i===void 0){i=16}if(typeof t!=="string"){t=String(t)}if(t===""||t==null){return r}if(e.MATHSPACE[t]){return e.MATHSPACE[t]}var a=t.match(/^\s*([-+]?(?:\.\d+|\d+(?:\.\d*)?))?(pt|em|ex|mu|px|pc|in|mm|cm|%)?/);if(!a){return r}var o=parseFloat(a[1]||"1"),l=a[2];if(e.UNITS.hasOwnProperty(l)){return o*e.UNITS[l]/i/n}if(e.RELUNITS.hasOwnProperty(l)){return o*e.RELUNITS[l]}if(l==="%"){return o/100*r}return o*r}e.length2em=r;function n(t){return(100*t).toFixed(1).replace(/\.?0+$/,"")+"%"}e.percent=n;function i(t){if(Math.abs(t)<.001)return"0";return t.toFixed(3).replace(/\.?0+$/,"")+"em"}e.em=i;function a(t,e){if(e===void 0){e=16}t=(Math.round(t*e)+.05)/e;if(Math.abs(t)<.001)return"0em";return t.toFixed(3).replace(/\.?0+$/,"")+"em"}e.emRounded=a;function o(t,r,n){if(r===void 0){r=-e.BIGDIMEN}if(n===void 0){n=16}t*=n;if(r&&t{I.r(T);I.d(T,{cobol:()=>i});var N="builtin",R="comment",A="string",O="atom",C="number",L="keyword",D="header",S="def",U="link";function P(E){var T={},I=E.split(" ");for(var N=0;N >= ");var n={digit:/\d/,digit_or_colon:/[\d:]/,hex:/[0-9a-f]/i,sign:/[+-]/,exponent:/e/i,keyword_char:/[^\s\(\[\;\)\]]/,symbol:/[\w*+\-]/};function G(E,T){if(E==="0"&&T.eat(/x/i)){T.eatWhile(n.hex);return true}if((E=="+"||E=="-")&&n.digit.test(T.peek())){T.eat(n.sign);E=T.next()}if(n.digit.test(E)){T.eat(E);T.eatWhile(n.digit);if("."==T.peek()){T.eat(".");T.eatWhile(n.digit)}if(T.eat(n.exponent)){T.eat(n.sign);T.eatWhile(n.digit)}return true}return false}const i={name:"cobol",startState:function(){return{indentStack:null,indentation:0,mode:false}},token:function(E,T){if(T.indentStack==null&&E.sol()){T.indentation=6}if(E.eatSpace()){return null}var I=null;switch(T.mode){case"string":var P=false;while((P=E.next())!=null){if((P=='"'||P=="'")&&!E.match(/['"]/,false)){T.mode=false;break}}I=A;break;default:var i=E.next();var r=E.column();if(r>=0&&r<=5){I=S}else if(r>=72&&r<=79){E.skipToEnd();I=D}else if(i=="*"&&r==6){E.skipToEnd();I=R}else if(i=='"'||i=="'"){T.mode="string";I=A}else if(i=="'"&&!n.digit_or_colon.test(E.peek())){I=O}else if(i=="."){I=U}else if(G(i,E)){I=C}else{if(E.current().match(n.symbol)){while(r<71){if(E.eat(n.symbol)===undefined){break}else{r++}}}if(M&&M.propertyIsEnumerable(E.current().toUpperCase())){I=L}else if(t&&t.propertyIsEnumerable(E.current().toUpperCase())){I=N}else if(e&&e.propertyIsEnumerable(E.current().toUpperCase())){I=O}else I=null}}return I},indent:function(E){if(E.indentStack==null)return E.indentation;return E.indentStack.indent}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/3783.93d5366ab28a19e1f0f9.js b/bootcamp/share/jupyter/lab/static/3783.93d5366ab28a19e1f0f9.js new file mode 100644 index 0000000..81c3387 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/3783.93d5366ab28a19e1f0f9.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3783,4155],{1065:(t,e,s)=>{"use strict";s.d(e,{GA:()=>qt,Gn:()=>St,Mb:()=>u,eC:()=>d,vQ:()=>Bt});var i=s(37496);var n=s.n(i);var o=s(66143);var r=s.n(o);var l=s(24104);var a=s.n(l);class h{constructor(t,e,s){this.state=t;this.pos=e;this.explicit=s;this.abortListeners=[]}tokenBefore(t){let e=(0,l.syntaxTree)(this.state).resolveInner(this.pos,-1);while(e&&t.indexOf(e.name)<0)e=e.parent;return e?{from:e.from,to:this.pos,text:this.state.sliceDoc(e.from,this.pos),type:e.type}:null}matchBefore(t){let e=this.state.doc.lineAt(this.pos);let s=Math.max(e.from,this.pos-250);let i=e.text.slice(s-e.from,this.pos-e.from);let n=i.search(k(t,false));return n<0?null:{from:s+n,to:this.pos,text:i.slice(n)}}get aborted(){return this.abortListeners==null}addEventListener(t,e){if(t=="abort"&&this.abortListeners)this.abortListeners.push(e)}}function c(t){let e=Object.keys(t).join("");let s=/\w/.test(e);if(s)e=e.replace(/\w/g,"");return`[${s?"\\w":""}${e.replace(/[^\w\s]/g,"\\$&")}]`}function f(t){let e=Object.create(null),s=Object.create(null);for(let{label:n}of t){e[n[0]]=true;for(let t=1;ttypeof t=="string"?{label:t}:t));let[s,i]=e.every((t=>/^\w+$/.test(t.label)))?[/\w*$/,/\w+$/]:f(e);return t=>{let n=t.matchBefore(i);return n||t.explicit?{from:n?n.from:t.pos,options:e,validFor:s}:null}}function p(t,e){return s=>{for(let i=syntaxTree(s.state).resolveInner(s.pos,-1);i;i=i.parent){if(t.indexOf(i.name)>-1)return e(s);if(i.type.isTop)break}return null}}function d(t,e){return s=>{for(let e=(0,l.syntaxTree)(s.state).resolveInner(s.pos,-1);e;e=e.parent){if(t.indexOf(e.name)>-1)return null;if(e.type.isTop)break}return e(s)}}class m{constructor(t,e,s,i){this.completion=t;this.source=e;this.match=s;this.score=i}}function g(t){return t.selection.main.from}function k(t,e){var s;let{source:i}=t;let n=e&&i[0]!="^",o=i[i.length-1]!="$";if(!n&&!o)return t;return new RegExp(`${n?"^":""}(?:${i})${o?"$":""}`,(s=t.flags)!==null&&s!==void 0?s:t.ignoreCase?"i":"")}const x=i.Annotation.define();function b(t,e,s,n){let{main:o}=t.selection,r=n-s;return Object.assign(Object.assign({},t.changeByRange((l=>{if(l!=o&&r&&t.sliceDoc(l.from-r,l.from+n-o.from)!=t.sliceDoc(s,n))return{range:l};return{changes:{from:l.from-r,to:n==o.from?l.to:l.from+n-o.from,insert:e},range:i.EditorSelection.cursor(l.from-r+e.length)}}))),{userEvent:"input.complete"})}function v(t,e){const s=e.completion.apply||e.completion.label;let i=e.source;if(typeof s=="string")t.dispatch(Object.assign(Object.assign({},b(t.state,s,i.from,i.to)),{annotations:x.of(e.completion)}));else s(t,e.completion,i.from,i.to)}const w=new WeakMap;function y(t){if(!Array.isArray(t))return t;let e=w.get(t);if(!e)w.set(t,e=u(t));return e}const S=i.StateEffect.define();const C=i.StateEffect.define();class P{constructor(t){this.pattern=t;this.chars=[];this.folded=[];this.any=[];this.precise=[];this.byWord=[];for(let e=0;e=48&&n<=57||n>=97&&n<=122?2:n>=65&&n<=90?1:0:(h=(0,i.fromCodePoint)(n))!=h.toLowerCase()?1:h!=h.toUpperCase()?2:0;if(!x||b==1&&g||v==0&&b!=0){if(e[f]==n||s[f]==n&&(u=true))r[f++]=x;else if(r.length)k=false}v=b;x+=(0,i.codePointSize)(n)}if(f==a&&r[0]==0&&k)return this.result(-100+(u?-200:0),r,t);if(p==a&&d==0)return[-200-t.length+(m==t.length?0:-100),0,m];if(l>-1)return[-700-t.length,l,l+this.pattern.length];if(p==a)return[-200+-700-t.length,d,m];if(f==a)return this.result(-100+(u?-200:0)+-700+(k?0:-1100),r,t);return e.length==2?null:this.result((n[0]?-700:0)+-200+-1100,n,t)}result(t,e,s){let n=[t-s.length],o=1;for(let r of e){let t=r+(this.astral?(0,i.codePointSize)((0,i.codePointAt)(s,r)):1);if(o>1&&n[o-1]==r)n[o-1]=t;else{n[o++]=r;n[o++]=t}}return n}}const A=i.Facet.define({combine(t){return(0,i.combineConfig)(t,{activateOnTyping:true,selectOnOpen:true,override:null,closeOnBlur:true,maxRenderedOptions:100,defaultKeymap:true,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:false,icons:true,addToOptions:[],positionInfo:I,compareCompletions:(t,e)=>t.label.localeCompare(e.label),interactionDelay:75},{defaultKeymap:(t,e)=>t&&e,closeOnBlur:(t,e)=>t&&e,icons:(t,e)=>t&&e,tooltipClass:(t,e)=>s=>T(t(s),e(s)),optionClass:(t,e)=>s=>T(t(s),e(s)),addToOptions:(t,e)=>t.concat(e)})}});function T(t,e){return t?e?t+" "+e:t:e}function I(t,e,s,i,n){let r=t.textDirection==o.Direction.RTL,l=r,a=false;let h="top",c,f;let u=e.left-n.left,p=n.right-e.right;let d=i.right-i.left,m=i.bottom-i.top;if(l&&u=m||t>e.top){c=s.bottom-e.top}else{h="bottom";c=e.bottom-s.top}}return{style:`${h}: ${c}px; max-width: ${f}px`,class:"cm-completionInfo-"+(a?r?"left-narrow":"right-narrow":l?"left":"right")}}function R(t){let e=t.addToOptions.slice();if(t.icons)e.push({render(t){let e=document.createElement("div");e.classList.add("cm-completionIcon");if(t.type)e.classList.add(...t.type.split(/\s+/g).map((t=>"cm-completionIcon-"+t)));e.setAttribute("aria-hidden","true");return e},position:20});e.push({render(t,e,s){let i=document.createElement("span");i.className="cm-completionLabel";let{label:n}=t,o=0;for(let r=1;ro)i.appendChild(document.createTextNode(n.slice(o,t)));let l=i.appendChild(document.createElement("span"));l.appendChild(document.createTextNode(n.slice(t,e)));l.className="cm-completionMatchedText";o=e}if(ot.position-e.position)).map((t=>t.render))}function E(t,e,s){if(t<=s)return{from:0,to:t};if(e<0)e=0;if(e<=t>>1){let t=Math.floor(e/s);return{from:t*s,to:(t+1)*s}}let i=Math.floor((t-e)/s);return{from:t-(i+1)*s,to:t-i*s}}class D{constructor(t,e){this.view=t;this.stateField=e;this.info=null;this.placeInfoReq={read:()=>this.measureInfo(),write:t=>this.placeInfo(t),key:this};this.space=null;this.currentClass="";let s=t.state.field(e);let{options:i,selected:n}=s.open;let o=t.state.facet(A);this.optionContent=R(o);this.optionClass=o.optionClass;this.tooltipClass=o.tooltipClass;this.range=E(i.length,n,o.maxRenderedOptions);this.dom=document.createElement("div");this.dom.className="cm-tooltip-autocomplete";this.updateTooltipClass(t.state);this.dom.addEventListener("mousedown",(e=>{for(let s=e.target,n;s&&s!=this.dom;s=s.parentNode){if(s.nodeName=="LI"&&(n=/-(\d+)$/.exec(s.id))&&+n[1]{let s=t.state.field(this.stateField,false);if(s&&s.tooltip&&t.state.facet(A).closeOnBlur&&e.relatedTarget!=t.contentDOM)t.dispatch({effects:C.of(null)})}));this.list=this.dom.appendChild(this.createListBox(i,s.id,this.range));this.list.addEventListener("scroll",(()=>{if(this.info)this.view.requestMeasure(this.placeInfoReq)}))}mount(){this.updateSel()}update(t){var e,s,i;let n=t.state.field(this.stateField);let o=t.startState.field(this.stateField);this.updateTooltipClass(t.state);if(n!=o){this.updateSel();if(((e=n.open)===null||e===void 0?void 0:e.disabled)!=((s=o.open)===null||s===void 0?void 0:s.disabled))this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!((i=n.open)===null||i===void 0?void 0:i.disabled))}}updateTooltipClass(t){let e=this.tooltipClass(t);if(e!=this.currentClass){for(let t of this.currentClass.split(" "))if(t)this.dom.classList.remove(t);for(let t of e.split(" "))if(t)this.dom.classList.add(t);this.currentClass=e}}positioned(t){this.space=t;if(this.info)this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),e=t.open;if(e.selected>-1&&e.selected=this.range.to){this.range=E(e.options.length,e.selected,this.view.state.facet(A).maxRenderedOptions);this.list.remove();this.list=this.dom.appendChild(this.createListBox(e.options,t.id,this.range));this.list.addEventListener("scroll",(()=>{if(this.info)this.view.requestMeasure(this.placeInfoReq)}))}if(this.updateSelectedOption(e.selected)){if(this.info){this.info.remove();this.info=null}let{completion:s}=e.options[e.selected];let{info:i}=s;if(!i)return;let n=typeof i==="string"?document.createTextNode(i):i(s);if(!n)return;if("then"in n){n.then((e=>{if(e&&this.view.state.field(this.stateField,false)==t)this.addInfoPane(e)})).catch((t=>(0,o.logException)(this.view.state,t,"completion info")))}else{this.addInfoPane(n)}}}addInfoPane(t){let e=this.info=document.createElement("div");e.className="cm-tooltip cm-completionInfo";e.appendChild(t);this.dom.appendChild(e);this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let e=null;for(let s=this.list.firstChild,i=this.range.from;s;s=s.nextSibling,i++){if(s.nodeName!="LI"||!s.id){i--}else if(i==t){if(!s.hasAttribute("aria-selected")){s.setAttribute("aria-selected","true");e=s}}else{if(s.hasAttribute("aria-selected"))s.removeAttribute("aria-selected")}}if(e)M(this.list,e);return e}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let e=this.dom.getBoundingClientRect();let s=this.info.getBoundingClientRect();let i=t.getBoundingClientRect();let n=this.space;if(!n){let t=this.dom.ownerDocument.defaultView||window;n={left:0,top:0,right:t.innerWidth,bottom:t.innerHeight}}if(i.top>Math.min(n.bottom,e.bottom)-10||i.bottoms.from||s.from==0)){n=t;if(typeof a!="string"&&a.header){i.appendChild(a.header(a))}else{let e=i.appendChild(document.createElement("completion-section"));e.textContent=t}}}const h=i.appendChild(document.createElement("li"));h.id=e+"-"+o;h.setAttribute("role","option");let c=this.optionClass(r);if(c)h.className=c;for(let t of this.optionContent){let e=t(r,this.view.state,l);if(e)h.appendChild(e)}}if(s.from)i.classList.add("cm-completionListIncompleteTop");if(s.tonew D(e,t)}function M(t,e){let s=t.getBoundingClientRect();let i=e.getBoundingClientRect();if(i.tops.bottom)t.scrollTop+=i.bottom-s.bottom}function N(t){return(t.boost||0)*100+(t.apply?10:0)+(t.info?5:0)+(t.type?1:0)}function L(t,e){let s=[];let i=null;let n=t=>{s.push(t);let{section:e}=t.completion;if(e){if(!i)i=[];let t=typeof e=="string"?e:e.name;if(!i.some((e=>e.name==t)))i.push(typeof e=="string"?{name:t}:e)}};for(let a of t)if(a.hasResult()){if(a.result.filter===false){let t=a.result.getMatch;for(let e of a.result.options){let i=[1e9-s.length];if(t)for(let s of t(e))i.push(s);n(new m(e,a,i,i[0]))}}else{let t=new P(e.sliceDoc(a.from,a.to)),s;for(let e of a.result.options)if(s=t.match(e.label)){n(new m(e,a,s,s[0]+(e.boost||0)))}}}if(i){let t=Object.create(null),e=0;let n=(t,e)=>{var s,i;return((s=t.rank)!==null&&s!==void 0?s:1e9)-((i=e.rank)!==null&&i!==void 0?i:1e9)||(t.namee.score-t.score||l(t.completion,e.completion)))){if(!r||r.label!=a.completion.label||r.detail!=a.completion.detail||r.type!=null&&a.completion.type!=null&&r.type!=a.completion.type||r.apply!=a.completion.apply)o.push(a);else if(N(a.completion)>N(r))o[o.length-1]=a;r=a.completion}return o}class B{constructor(t,e,s,i,n,o){this.options=t;this.attrs=e;this.tooltip=s;this.timestamp=i;this.selected=n;this.disabled=o}setSelected(t,e){return t==this.selected||t>=this.options.length?this:new B(this.options,j(e,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,e,s,i,n){let o=L(t,e);if(!o.length){return i&&t.some((t=>t.state==1))?new B(i.options,i.attrs,i.tooltip,i.timestamp,i.selected,true):null}let r=e.facet(A).selectOnOpen?0:-1;if(i&&i.selected!=r&&i.selected!=-1){let t=i.options[i.selected].completion;for(let e=0;ee.hasResult()?Math.min(t,e.from):t),1e8),create:O(Q),above:n.aboveCursor},i?i.timestamp:Date.now(),r,false)}map(t){return new B(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class z{constructor(t,e,s){this.active=t;this.id=e;this.open=s}static start(){return new z(U,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:e}=t,s=e.facet(A);let i=s.override||e.languageDataAt("autocomplete",g(e)).map(y);let n=i.map((e=>{let i=this.active.find((t=>t.source==e))||new q(e,this.active.some((t=>t.state!=0))?1:0);return i.update(t,s)}));if(n.length==this.active.length&&n.every(((t,e)=>t==this.active[e])))n=this.active;let o=this.open;if(o&&t.docChanged)o=o.map(t.changes);if(t.selection||n.some((e=>e.hasResult()&&t.changes.touchesRange(e.from,e.to)))||!F(n,this.active))o=B.build(n,e,this.id,o,s);else if(o&&o.disabled&&!n.some((t=>t.state==1)))o=null;if(!o&&n.every((t=>t.state!=1))&&n.some((t=>t.hasResult())))n=n.map((t=>t.hasResult()?new q(t.source,0):t));for(let r of t.effects)if(r.is(_))o=o&&o.setSelected(r.value,this.id);return n==this.active&&o==this.open?this:new z(n,this.id,o)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:$}}function F(t,e){if(t==e)return true;for(let s=0,i=0;;){while(s-1)s["aria-activedescendant"]=t+"-"+e;return s}const U=[];function W(t){return t.isUserEvent("input.type")?"input":t.isUserEvent("delete.backward")?"delete":null}class q{constructor(t,e,s=-1){this.source=t;this.state=e;this.explicitPos=s}hasResult(){return false}update(t,e){let s=W(t),i=this;if(s)i=i.handleUserEvent(t,s,e);else if(t.docChanged)i=i.handleChange(t);else if(t.selection&&i.state!=0)i=new q(i.source,0);for(let n of t.effects){if(n.is(S))i=new q(i.source,1,n.value?g(t.state):-1);else if(n.is(C))i=new q(i.source,0);else if(n.is(H))for(let t of n.value)if(t.source==i.source)i=t}return i}handleUserEvent(t,e,s){return e=="delete"||!s.activateOnTyping?this.map(t.changes):new q(this.source,1)}handleChange(t){return t.changes.touchesRange(g(t.startState))?new q(this.source,0):this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new q(this.source,this.state,t.mapPos(this.explicitPos))}}class V extends q{constructor(t,e,s,i,n){super(t,2,e);this.result=s;this.from=i;this.to=n}hasResult(){return true}handleUserEvent(t,e,s){var i;let n=t.changes.mapPos(this.from),o=t.changes.mapPos(this.to,1);let r=g(t.state);if((this.explicitPos<0?r<=n:ro||e=="delete"&&g(t.startState)==this.from)return new q(this.source,e=="input"&&s.activateOnTyping?1:0);let l=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos),a;if(G(this.result.validFor,t.state,n,o))return new V(this.source,l,this.result,n,o);if(this.result.update&&(a=this.result.update(this.result,n,o,new h(t.state,r,l>=0))))return new V(this.source,l,a,a.from,(i=a.to)!==null&&i!==void 0?i:g(t.state));return new q(this.source,1,l)}handleChange(t){return t.changes.touchesRange(this.from,this.to)?new q(this.source,0):this.map(t.changes)}map(t){return t.empty?this:new V(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1))}}function G(t,e,s,i){if(!t)return false;let n=e.sliceDoc(s,i);return typeof t=="function"?t(n,s,i,e):k(t,true).test(n)}const H=i.StateEffect.define({map(t,e){return t.map((t=>t.map(e)))}});const _=i.StateEffect.define();const Q=i.StateField.define({create(){return z.start()},update(t,e){return t.update(e)},provide:t=>[o.showTooltip.from(t,(t=>t.tooltip)),o.EditorView.contentAttributes.from(t,(t=>t.attrs))]});function K(t,e="option"){return s=>{let i=s.state.field(Q,false);if(!i||!i.open||i.open.disabled||Date.now()-i.open.timestamp-1?i.open.selected+n*(t?1:-1):t?0:l-1;if(a<0)a=e=="page"?0:l-1;else if(a>=l)a=e=="page"?l-1:0;s.dispatch({effects:_.of(a)});return true}}const X=t=>{let e=t.state.field(Q,false);if(t.state.readOnly||!e||!e.open||e.open.selected<0||Date.now()-e.open.timestamp{let e=t.state.field(Q,false);if(!e)return false;t.dispatch({effects:S.of(true)});return true};const Y=t=>{let e=t.state.field(Q,false);if(!e||!e.active.some((t=>t.state!=0)))return false;t.dispatch({effects:C.of(null)});return true};class Z{constructor(t,e){this.active=t;this.context=e;this.time=Date.now();this.updates=[];this.done=undefined}}const tt=50,et=50,st=1e3;const it=o.ViewPlugin.fromClass(class{constructor(t){this.view=t;this.debounceUpdate=-1;this.running=[];this.debounceAccept=-1;this.composing=0;for(let e of t.state.field(Q).active)if(e.state==1)this.startQuery(e)}update(t){let e=t.state.field(Q);if(!t.selectionSet&&!t.docChanged&&t.startState.field(Q)==e)return;let s=t.transactions.some((t=>(t.selection||t.docChanged)&&!W(t)));for(let n=0;net&&Date.now()-e.time>st){for(let t of e.context.abortListeners){try{t()}catch(i){(0,o.logException)(this.view.state,i)}}e.context.abortListeners=null;this.running.splice(n--,1)}else{e.updates.push(...t.transactions)}}if(this.debounceUpdate>-1)clearTimeout(this.debounceUpdate);this.debounceUpdate=e.active.some((t=>t.state==1&&!this.running.some((e=>e.active.source==t.source))))?setTimeout((()=>this.startUpdate()),tt):-1;if(this.composing!=0)for(let n of t.transactions){if(W(n)=="input")this.composing=2;else if(this.composing==2&&n.selection)this.composing=3}}startUpdate(){this.debounceUpdate=-1;let{state:t}=this.view,e=t.field(Q);for(let s of e.active){if(s.state==1&&!this.running.some((t=>t.active.source==s.source)))this.startQuery(s)}}startQuery(t){let{state:e}=this.view,s=g(e);let i=new h(e,s,t.explicitPos==s);let n=new Z(t,i);this.running.push(n);Promise.resolve(t.source(i)).then((t=>{if(!n.context.aborted){n.done=t||null;this.scheduleAccept()}}),(t=>{this.view.dispatch({effects:C.of(null)});(0,o.logException)(this.view.state,t)}))}scheduleAccept(){if(this.running.every((t=>t.done!==undefined)))this.accept();else if(this.debounceAccept<0)this.debounceAccept=setTimeout((()=>this.accept()),tt)}accept(){var t;if(this.debounceAccept>-1)clearTimeout(this.debounceAccept);this.debounceAccept=-1;let e=[];let s=this.view.state.facet(A);for(let i=0;it.source==n.active.source));if(o&&o.state==1){if(n.done==null){let t=new q(n.active.source,0);for(let e of n.updates)t=t.update(e,s);if(t.state!=1)e.push(t)}else{this.startQuery(o)}}}if(e.length)this.view.dispatch({effects:H.of(e)})}},{eventHandlers:{blur(t){let e=this.view.state.field(Q,false);if(e&&e.tooltip&&this.view.state.facet(A).closeOnBlur){let s=e.open&&(0,o.getTooltip)(this.view,e.open.tooltip);if(!s||!s.dom.contains(t.relatedTarget))this.view.dispatch({effects:C.of(null)})}},compositionstart(){this.composing=1},compositionend(){if(this.composing==3){setTimeout((()=>this.view.dispatch({effects:S.of(false)})),20)}this.composing=0}}});const nt=o.EditorView.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:`${400}px`,boxSizing:"border-box"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:`${30}px`},".cm-completionInfo.cm-completionInfo-right-narrow":{left:`${30}px`},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class ot{constructor(t,e,s,i){this.field=t;this.line=e;this.from=s;this.to=i}}class rt{constructor(t,e,s){this.field=t;this.from=e;this.to=s}map(t){let e=t.mapPos(this.from,-1,i.MapMode.TrackDel);let s=t.mapPos(this.to,1,i.MapMode.TrackDel);return e==null||s==null?null:new rt(this.field,e,s)}}class lt{constructor(t,e){this.lines=t;this.fieldPositions=e}instantiate(t,e){let s=[],i=[e];let n=t.doc.lineAt(e),o=/^\s*/.exec(n.text)[0];for(let a of this.lines){if(s.length){let s=o,n=/^\t*/.exec(a)[0].length;for(let e=0;enew rt(t.field,i[t.line]+t.from,i[t.line]+t.to)));return{text:s,ranges:r}}static parse(t){let e=[];let s=[],i=[],n;for(let o of t.split(/\r\n?|\n/)){while(n=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(o)){let t=n[1]?+n[1]:null,r=n[2]||n[3]||"",l=-1;for(let s=0;s=l)t.field++}i.push(new ot(l,s.length,n.index,n.index+r.length));o=o.slice(0,n.index)+r+o.slice(n.index+n[0].length)}for(let t;t=/\\([{}])/.exec(o);){o=o.slice(0,t.index)+t[1]+o.slice(t.index+t[0].length);for(let e of i)if(e.line==s.length&&e.from>t.index){e.from--;e.to--}}s.push(o)}return new lt(s,i)}}let at=o.Decoration.widget({widget:new class extends o.WidgetType{toDOM(){let t=document.createElement("span");t.className="cm-snippetFieldPosition";return t}ignoreEvent(){return false}}});let ht=o.Decoration.mark({class:"cm-snippetField"});class ct{constructor(t,e){this.ranges=t;this.active=e;this.deco=o.Decoration.set(t.map((t=>(t.from==t.to?at:ht).range(t.from,t.to))))}map(t){let e=[];for(let s of this.ranges){let i=s.map(t);if(!i)return null;e.push(i)}return new ct(e,this.active)}selectionInsideField(t){return t.ranges.every((t=>this.ranges.some((e=>e.field==this.active&&e.from<=t.from&&e.to>=t.to))))}}const ft=i.StateEffect.define({map(t,e){return t&&t.map(e)}});const ut=i.StateEffect.define();const pt=i.StateField.define({create(){return null},update(t,e){for(let s of e.effects){if(s.is(ft))return s.value;if(s.is(ut)&&t)return new ct(t.ranges,s.value)}if(t&&e.docChanged)t=t.map(e.changes);if(t&&e.selection&&!t.selectionInsideField(e.selection))t=null;return t},provide:t=>o.EditorView.decorations.from(t,(t=>t?t.deco:o.Decoration.none))});function dt(t,e){return i.EditorSelection.create(t.filter((t=>t.field==e)).map((t=>i.EditorSelection.range(t.from,t.to))))}function mt(t){let e=lt.parse(t);return(t,s,n,o)=>{let{text:r,ranges:l}=e.instantiate(t.state,n);let a={changes:{from:n,to:o,insert:i.Text.of(r)},scrollIntoView:true,annotations:x.of(s)};if(l.length)a.selection=dt(l,0);if(l.length>1){let e=new ct(l,0);let s=a.effects=[ft.of(e)];if(t.state.field(pt,false)===undefined)s.push(i.StateEffect.appendConfig.of([pt,yt,Ct,nt]))}t.dispatch(t.state.update(a))}}function gt(t){return({state:e,dispatch:s})=>{let i=e.field(pt,false);if(!i||t<0&&i.active==0)return false;let n=i.active+t,o=t>0&&!i.ranges.some((e=>e.field==n+t));s(e.update({selection:dt(i.ranges,n),effects:ft.of(o?null:new ct(i.ranges,n))}));return true}}const kt=({state:t,dispatch:e})=>{let s=t.field(pt,false);if(!s)return false;e(t.update({effects:ft.of(null)}));return true};const xt=gt(1);const bt=gt(-1);const vt=[{key:"Tab",run:xt,shift:bt},{key:"Escape",run:kt}];const wt=i.Facet.define({combine(t){return t.length?t[0]:vt}});const yt=i.Prec.highest(o.keymap.compute([wt],(t=>t.facet(wt))));function St(t,e){return Object.assign(Object.assign({},e),{apply:mt(t)})}const Ct=o.EditorView.domEventHandlers({mousedown(t,e){let s=e.state.field(pt,false),i;if(!s||(i=e.posAtCoords({x:t.clientX,y:t.clientY}))==null)return false;let n=s.ranges.find((t=>t.from<=i&&t.to>=i));if(!n||n.field==s.active)return false;e.dispatch({selection:dt(s.ranges,n.field),effects:ft.of(s.ranges.some((t=>t.field>n.field))?new ct(s.ranges,n.field):null)});return true}});function Pt(t){let e=t.replace(/[\\[.+*?(){|^$]/g,"\\$&");try{return new RegExp(`[\\p{Alphabetic}\\p{Number}_${e}]+`,"ug")}catch(s){return new RegExp(`[w${e}]`,"g")}}function At(t,e){return new RegExp(e(t.source),t.unicode?"u":"")}const Tt=null&&Object.create(null);function It(t){return Tt[t]||(Tt[t]=new WeakMap)}function Rt(t,e,s,i,n){for(let o=t.iterLines(),r=0;!o.next().done;){let{value:t}=o,l;e.lastIndex=0;while(l=e.exec(t)){if(!i[l[0]]&&r+l.index!=n){s.push({type:"text",label:l[0]});i[l[0]]=true;if(s.length>=2e3)return}}r+=t.length+1}}function Et(t,e,s,i,n){let o=t.length>=1e3;let r=o&&e.get(t);if(r)return r;let l=[],a=Object.create(null);if(t.children){let o=0;for(let r of t.children){if(r.length>=1e3){for(let t of Et(r,e,s,i-o,n-o)){if(!a[t.label]){a[t.label]=true;l.push(t)}}}else{Rt(r,s,l,a,n-o)}o+=r.length+1}}else{Rt(t,s,l,a,n)}if(o&&l.length<2e3)e.set(t,l);return l}const Dt=t=>{let e=t.state.languageDataAt("wordChars",t.pos).join("");let s=Pt(e);let i=t.matchBefore(At(s,(t=>t+"$")));if(!i&&!t.explicit)return null;let n=i?i.from:t.pos;let o=Et(t.state.doc,It(e),s,5e4,n);return{from:n,options:o,validFor:At(s,(t=>"^"+t))}};const Ot={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]};const Mt=i.StateEffect.define({map(t,e){let s=e.mapPos(t,-1,i.MapMode.TrackAfter);return s==null?undefined:s}});const Nt=new class extends i.RangeValue{};Nt.startSide=1;Nt.endSide=-1;const Lt=i.StateField.define({create(){return i.RangeSet.empty},update(t,e){if(e.selection){let s=e.state.doc.lineAt(e.selection.main.head).from;let n=e.startState.doc.lineAt(e.startState.selection.main.head).from;if(s!=e.changes.mapPos(n,-1))t=i.RangeSet.empty}t=t.map(e.changes);for(let s of e.effects)if(s.is(Mt))t=t.update({add:[Nt.range(s.value,s.value+1)]});return t}});function Bt(){return[Ut,Lt]}const zt="()[]{}<>";function Ft(t){for(let e=0;e{if((jt?t.composing:t.compositionStarted)||t.state.readOnly)return false;let o=t.state.selection.main;if(n.length>2||n.length==2&&(0,i.codePointSize)((0,i.codePointAt)(n,0))==1||e!=o.from||s!=o.to)return false;let r=Vt(t.state,n);if(!r)return false;t.dispatch(r);return true}));const Wt=({state:t,dispatch:e})=>{if(t.readOnly)return false;let s=$t(t,t.selection.main.head);let n=s.brackets||Ot.brackets;let o=null,r=t.changeByRange((e=>{if(e.empty){let s=_t(t.doc,e.head);for(let o of n){if(o==s&&Ht(t.doc,e.head)==Ft((0,i.codePointAt)(o,0)))return{changes:{from:e.head-o.length,to:e.head+o.length},range:i.EditorSelection.cursor(e.head-o.length)}}}return{range:o=e}}));if(!o)e(t.update(r,{scrollIntoView:true,userEvent:"delete.backward"}));return!o};const qt=[{key:"Backspace",run:Wt}];function Vt(t,e){let s=$t(t,t.selection.main.head);let n=s.brackets||Ot.brackets;for(let o of n){let r=Ft((0,i.codePointAt)(o,0));if(e==o)return r==o?Xt(t,o,n.indexOf(o+o+o)>-1,s):Qt(t,o,r,s.before||Ot.before);if(e==r&&Gt(t,t.selection.main.from))return Kt(t,o,r)}return null}function Gt(t,e){let s=false;t.field(Lt).between(0,t.doc.length,(t=>{if(t==e)s=true}));return s}function Ht(t,e){let s=t.sliceString(e,e+2);return s.slice(0,(0,i.codePointSize)((0,i.codePointAt)(s,0)))}function _t(t,e){let s=t.sliceString(e-2,e);return(0,i.codePointSize)((0,i.codePointAt)(s,0))==s.length?s:s.slice(1)}function Qt(t,e,s,n){let o=null,r=t.changeByRange((r=>{if(!r.empty)return{changes:[{insert:e,from:r.from},{insert:s,from:r.to}],effects:Mt.of(r.to+e.length),range:i.EditorSelection.range(r.anchor+e.length,r.head+e.length)};let l=Ht(t.doc,r.head);if(!l||/\s/.test(l)||n.indexOf(l)>-1)return{changes:{insert:e+s,from:r.head},effects:Mt.of(r.head+e.length),range:i.EditorSelection.cursor(r.head+e.length)};return{range:o=r}}));return o?null:t.update(r,{scrollIntoView:true,userEvent:"input.type"})}function Kt(t,e,s){let n=null,o=t.changeByRange((e=>{if(e.empty&&Ht(t.doc,e.head)==s)return{changes:{from:e.head,to:e.head+s.length,insert:s},range:i.EditorSelection.cursor(e.head+s.length)};return n={range:e}}));return n?null:t.update(o,{scrollIntoView:true,userEvent:"input.type"})}function Xt(t,e,s,n){let o=n.stringPrefixes||Ot.stringPrefixes;let r=null,l=t.changeByRange((n=>{if(!n.empty)return{changes:[{insert:e,from:n.from},{insert:e,from:n.to}],effects:Mt.of(n.to+e.length),range:i.EditorSelection.range(n.anchor+e.length,n.head+e.length)};let l=n.head,a=Ht(t.doc,l),h;if(a==e){if(Jt(t,l)){return{changes:{insert:e+e,from:l},effects:Mt.of(l+e.length),range:i.EditorSelection.cursor(l+e.length)}}else if(Gt(t,l)){let n=s&&t.sliceDoc(l,l+e.length*3)==e+e+e;let o=n?e+e+e:e;return{changes:{from:l,to:l+o.length,insert:o},range:i.EditorSelection.cursor(l+o.length)}}}else if(s&&t.sliceDoc(l-2*e.length,l)==e+e&&(h=Zt(t,l-2*e.length,o))>-1&&Jt(t,h)){return{changes:{insert:e+e+e+e,from:l},effects:Mt.of(l+e.length),range:i.EditorSelection.cursor(l+e.length)}}else if(t.charCategorizer(l)(a)!=i.CharCategory.Word){if(Zt(t,l,o)>-1&&!Yt(t,l,e,o))return{changes:{insert:e+e,from:l},effects:Mt.of(l+e.length),range:i.EditorSelection.cursor(l+e.length)}}return{range:r=n}}));return r?null:t.update(l,{scrollIntoView:true,userEvent:"input.type"})}function Jt(t,e){let s=(0,l.syntaxTree)(t).resolveInner(e+1);return s.parent&&s.from==e}function Yt(t,e,s,i){let n=(0,l.syntaxTree)(t).resolveInner(e,-1);let o=i.reduce(((t,e)=>Math.max(t,e.length)),0);for(let r=0;r<5;r++){let r=t.sliceDoc(n.from,Math.min(n.to,n.from+s.length+o));let l=r.indexOf(s);if(!l||l>-1&&i.indexOf(r.slice(0,l))>-1){let e=n.firstChild;while(e&&e.from==n.from&&e.to-e.from>s.length+l){if(t.sliceDoc(e.to-s.length,e.to)==s)return false;e=e.firstChild}return true}let a=n.to==e&&n.parent;if(!a)break;n=a}return false}function Zt(t,e,s){let n=t.charCategorizer(e);if(n(t.sliceDoc(e-1,e))!=i.CharCategory.Word)return e;for(let o of s){let s=e-o.length;if(t.sliceDoc(s,e)==o&&n(t.sliceDoc(s-1,s))!=i.CharCategory.Word)return s}return-1}function te(t={}){return[Q,A.of(t),it,se,nt]}const ee=[{key:"Ctrl-Space",run:J},{key:"Escape",run:Y},{key:"ArrowDown",run:K(true)},{key:"ArrowUp",run:K(false)},{key:"PageDown",run:K(true,"page")},{key:"PageUp",run:K(false,"page")},{key:"Enter",run:X}];const se=i.Prec.highest(o.keymap.computeN([A],(t=>t.facet(A).defaultKeymap?[ee]:[])));function ie(t){let e=t.field(Q,false);return e&&e.active.some((t=>t.state==1))?"pending":e&&e.active.some((t=>t.state!=0))?"active":null}const ne=new WeakMap;function oe(t){var e;let s=(e=t.field(Q,false))===null||e===void 0?void 0:e.open;if(!s||s.disabled)return[];let i=ne.get(s.options);if(!i)ne.set(s.options,i=s.options.map((t=>t.completion)));return i}function re(t){var e;let s=(e=t.field(Q,false))===null||e===void 0?void 0:e.open;return s&&!s.disabled&&s.selected>=0?s.options[s.selected].completion:null}function le(t){var e;let s=(e=t.field(Q,false))===null||e===void 0?void 0:e.open;return s&&!s.disabled&&s.selected>=0?s.selected:null}function ae(t){return _.of(t)}},11705:(t,e,s)=>{"use strict";s.d(e,{IK:()=>O,Jq:()=>k,RA:()=>g,WQ:()=>M});var i=s(73265);var n=s.n(i);var o=s(34155);class r{constructor(t,e,s,i,n,o,r,l,a,h=0,c){this.p=t;this.stack=e;this.state=s;this.reducePos=i;this.pos=n;this.score=o;this.buffer=r;this.bufferBase=l;this.curContext=a;this.lookAhead=h;this.parent=c}toString(){return`[${this.stack.filter(((t,e)=>e%3==0)).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,e,s=0){let i=t.parser.context;return new r(t,[],e,s,s,0,[],0,i?new l(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,e){this.stack.push(this.state,e,this.bufferBase+this.buffer.length);this.state=t}reduce(t){var e;let s=t>>19,i=t&65535;let{parser:n}=this.p;let o=n.dynamicPrecedence(i);if(o)this.score+=o;if(s==0){this.pushState(n.getGoto(this.state,i,true),this.reducePos);if(i=2e3&&!((e=this.p.parser.nodeSet.types[i])===null||e===void 0?void 0:e.isAnonymous)){if(l==this.p.lastBigReductionStart){this.p.bigReductionCount++;this.p.lastBigReductionSize=a}else if(this.p.lastBigReductionSizer)this.stack.pop();this.reduceContext(i,l)}storeNode(t,e,s,i=4,n=false){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&t.buffer[i-4]==0&&t.buffer[i-1]>-1){if(e==s)return;if(t.buffer[i-2]>=e){t.buffer[i-2]=s;return}}}if(!n||this.pos==s){this.buffer.push(t,e,s,i)}else{let n=this.buffer.length;if(n>0&&this.buffer[n-4]!=0)while(n>0&&this.buffer[n-2]>s){this.buffer[n]=this.buffer[n-4];this.buffer[n+1]=this.buffer[n-3];this.buffer[n+2]=this.buffer[n-2];this.buffer[n+3]=this.buffer[n-1];n-=4;if(i>4)i-=4}this.buffer[n]=t;this.buffer[n+1]=e;this.buffer[n+2]=s;this.buffer[n+3]=i}}shift(t,e,s){let i=this.pos;if(t&131072){this.pushState(t&65535,this.pos)}else if((t&262144)==0){let n=t,{parser:o}=this.p;if(s>this.pos||e<=o.maxNode){this.pos=s;if(!o.stateFlag(n,1))this.reducePos=s}this.pushState(n,i);this.shiftContext(e,i);if(e<=o.maxNode)this.buffer.push(e,i,s,4)}else{this.pos=s;this.shiftContext(e,i);if(e<=this.p.parser.maxNode)this.buffer.push(e,i,s,4)}}apply(t,e,s){if(t&65536)this.reduce(t);else this.shift(t,e,s)}useNode(t,e){let s=this.p.reused.length-1;if(s<0||this.p.reused[s]!=t){this.p.reused.push(t);s++}let i=this.pos;this.reducePos=this.pos=i+t.length;this.pushState(e,i);this.buffer.push(s,i,this.reducePos,-1);if(this.curContext)this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this;let e=t.buffer.length;while(e>0&&t.buffer[e-2]>t.reducePos)e-=4;let s=t.buffer.slice(e),i=t.bufferBase+e;while(t&&i==t.bufferBase)t=t.parent;return new r(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,s,i,this.curContext,this.lookAhead,t)}recoverByDelete(t,e){let s=t<=this.p.parser.maxNode;if(s)this.storeNode(t,this.pos,e,4);this.storeNode(0,this.pos,e,s?8:4);this.pos=this.reducePos=e;this.score-=190}canShift(t){for(let e=new h(this);;){let s=this.p.parser.stateSlot(e.state,4)||this.p.parser.hasAction(e.state,t);if(s==0)return false;if((s&65536)==0)return true;e.reduce(s)}}recoverByInsert(t){if(this.stack.length>=300)return[];let e=this.p.parser.nextStates(this.state);if(e.length>4<<1||this.stack.length>=120){let s=[];for(let i=0,n;ie&1&&t==i)))s.push(e[t],i)}e=s}let s=[];for(let i=0;i>19,i=t&65535;let n=this.stack.length-s*3;if(n<0||e.getGoto(this.stack[n],i,false)<0)return false;this.storeNode(0,this.reducePos,this.reducePos,4,true);this.score-=100}this.reducePos=this.pos;this.reduce(t);return true}forceAll(){while(!this.p.parser.stateFlag(this.state,2)){if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,true);break}}return this}get deadEnd(){if(this.stack.length!=3)return false;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.state=this.stack[0];this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return false;for(let e=0;ethis.lookAhead){this.emitLookAhead();this.lookAhead=t}}close(){if(this.curContext&&this.curContext.tracker.strict)this.emitContext();if(this.lookAhead>0)this.emitLookAhead()}}class l{constructor(t,e){this.tracker=t;this.context=e;this.hash=t.strict?t.hash(e):0}}var a;(function(t){t[t["Insert"]=200]="Insert";t[t["Delete"]=190]="Delete";t[t["Reduce"]=100]="Reduce";t[t["MaxNext"]=4]="MaxNext";t[t["MaxInsertStackDepth"]=300]="MaxInsertStackDepth";t[t["DampenInsertStackDepth"]=120]="DampenInsertStackDepth";t[t["MinBigReduction"]=2e3]="MinBigReduction"})(a||(a={}));class h{constructor(t){this.start=t;this.state=t.state;this.stack=t.stack;this.base=this.stack.length}reduce(t){let e=t&65535,s=t>>19;if(s==0){if(this.stack==this.start.stack)this.stack=this.stack.slice();this.stack.push(this.state,0,0);this.base+=3}else{this.base-=(s-1)*3}let i=this.start.p.parser.getGoto(this.stack[this.base-3],e,true);this.state=i}}class c{constructor(t,e,s){this.stack=t;this.pos=e;this.index=s;this.buffer=t.buffer;if(this.index==0)this.maybeNext()}static create(t,e=t.bufferBase+t.buffer.length){return new c(t,e,e-t.bufferBase)}maybeNext(){let t=this.stack.parent;if(t!=null){this.index=this.stack.bufferBase-t.bufferBase;this.stack=t;this.buffer=t.buffer}}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4;this.pos-=4;if(this.index==0)this.maybeNext()}fork(){return new c(this.stack,this.pos,this.index)}}function f(t,e=Uint16Array){if(typeof t!="string")return t;let s=null;for(let i=0,n=0;i=92)e--;if(e>=34)e--;let n=e-32;if(n>=46){n-=46;s=true}o+=n;if(s)break;o*=46}if(s)s[n++]=o;else s=new e(o)}return s}class u{constructor(){this.start=-1;this.value=-1;this.end=-1;this.extended=-1;this.lookAhead=0;this.mask=0;this.context=0}}const p=new u;class d{constructor(t,e){this.input=t;this.ranges=e;this.chunk="";this.chunkOff=0;this.chunk2="";this.chunk2Pos=0;this.next=-1;this.token=p;this.rangeIndex=0;this.pos=this.chunkPos=e[0].from;this.range=e[0];this.end=e[e.length-1].to;this.readNext()}resolveOffset(t,e){let s=this.range,i=this.rangeIndex;let n=this.pos+t;while(ns.to:n>=s.to){if(i==this.ranges.length-1)return null;let t=this.ranges[++i];n+=t.from-s.to;s=t}return n}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,e.from);return this.end}peek(t){let e=this.chunkOff+t,s,i;if(e>=0&&e=this.chunk2Pos&&se.to)this.chunk2=this.chunk2.slice(0,e.to-s);i=this.chunk2.charCodeAt(0)}}if(s>=this.token.lookAhead)this.token.lookAhead=s+1;return i}acceptToken(t,e=0){let s=e?this.resolveOffset(e,-1):this.pos;if(s==null||s=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t;this.chunkPos=this.pos;this.chunkOff=0}}readNext(){if(this.chunkOff>=this.chunk.length){this.getChunk();if(this.chunkOff==this.chunk.length)return this.next=-1}return this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){this.chunkOff+=t;while(this.pos+t>=this.range.to){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos;this.range=this.ranges[++this.rangeIndex];this.pos=this.range.from}this.pos+=t;if(this.pos>=this.token.lookAhead)this.token.lookAhead=this.pos+1;return this.readNext()}setDone(){this.pos=this.chunkPos=this.end;this.range=this.ranges[this.rangeIndex=this.ranges.length-1];this.chunk="";return this.next=-1}reset(t,e){if(e){this.token=e;e.start=t;e.lookAhead=t+1;e.value=e.extended=-1}else{this.token=p}if(this.pos!=t){this.pos=t;if(t==this.end){this.setDone();return this}while(t=this.range.to)this.range=this.ranges[++this.rangeIndex];if(t>=this.chunkPos&&t=this.chunkPos&&e<=this.chunkPos+this.chunk.length)return this.chunk.slice(t-this.chunkPos,e-this.chunkPos);if(t>=this.chunk2Pos&&e<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(t-this.chunk2Pos,e-this.chunk2Pos);if(t>=this.range.from&&e<=this.range.to)return this.input.read(t,e);let s="";for(let i of this.ranges){if(i.from>=e)break;if(i.to>t)s+=this.input.read(Math.max(i.from,t),Math.min(i.to,e))}return s}}class m{constructor(t,e){this.data=t;this.id=e}token(t,e){let{parser:s}=e.p;x(this.data,t,e,this.id,s.data,s.tokenPrecTable)}}m.prototype.contextual=m.prototype.fallback=m.prototype.extend=false;class g{constructor(t,e,s){this.precTable=e;this.elseToken=s;this.data=typeof t=="string"?f(t):t}token(t,e){let s=t.pos,i;for(;;){i=t.pos;x(this.data,t,e,0,this.data,this.precTable);if(t.token.value>-1)break;if(this.elseToken==null)return;if(t.next<0)break;t.advance();t.reset(i+1,t.token)}if(i>s){t.reset(s,t.token);t.acceptToken(this.elseToken,i-s)}}}g.prototype.contextual=m.prototype.fallback=m.prototype.extend=false;class k{constructor(t,e={}){this.token=t;this.contextual=!!e.contextual;this.fallback=!!e.fallback;this.extend=!!e.extend}}function x(t,e,s,i,n,o){let r=0,l=1<0){let s=t[f];if(a.allows(s)&&(e.token.value==-1||e.token.value==s||v(s,e.token.value,n,o))){e.acceptToken(s);break}}let i=e.next,h=0,c=t[r+2];if(e.next<0&&c>h&&t[s+c*3-3]==65535&&t[s+c*3-3]==65535){r=t[s+c*3-1];continue t}for(;h>1;let o=s+n+(n<<1);let l=t[o],a=t[o+1]||65536;if(i=a)h=n+1;else{r=t[o+2];e.advance();continue t}}break}}function b(t,e,s){for(let i=e,n;(n=t[i])!=65535;i++)if(n==s)return i-e;return-1}function v(t,e,s,i){let n=b(s,i,e);return n<0||b(s,i,t)e)&&!n.type.isError)return s<0?Math.max(0,Math.min(n.to-1,e-25)):Math.min(t.length,Math.max(n.from+1,e+25));if(s<0?n.prevSibling():n.nextSibling())break;if(!n.parent())return s<0?0:t.length}}}class P{constructor(t,e){this.fragments=t;this.nodeSet=e;this.i=0;this.fragment=null;this.safeFrom=-1;this.safeTo=-1;this.trees=[];this.start=[];this.index=[];this.nextFragment()}nextFragment(){let t=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(t){this.safeFrom=t.openStart?C(t.tree,t.from+t.offset,1)-t.offset:t.from;this.safeTo=t.openEnd?C(t.tree,t.to+t.offset,-1)-t.offset:t.to;while(this.trees.length){this.trees.pop();this.start.pop();this.index.pop()}this.trees.push(t.tree);this.start.push(-t.offset);this.index.push(0);this.nextStart=this.safeFrom}else{this.nextStart=1e9}}nodeAt(t){if(tt){this.nextStart=r;return null}if(o instanceof i.Tree){if(r==t){if(r=Math.max(this.safeFrom,t)){this.trees.push(o);this.start.push(r);this.index.push(0)}}else{this.index[e]++;this.nextStart=r+o.length}}}}class A{constructor(t,e){this.stream=e;this.tokens=[];this.mainToken=null;this.actions=[];this.tokens=t.tokenizers.map((t=>new u))}getActions(t){let e=0;let s=null;let{parser:i}=t.p,{tokenizers:n}=i;let o=i.stateSlot(t.state,3);let r=t.curContext?t.curContext.hash:0;let l=0;for(let a=0;ah.end+25)l=Math.max(h.lookAhead,l);if(h.value!=0){let n=e;if(h.extended>-1)e=this.addActions(t,h.extended,h.end,e);e=this.addActions(t,h.value,h.end,e);if(!i.extend){s=h;if(e>n)break}}}while(this.actions.length>e)this.actions.pop();if(l)t.setLookAhead(l);if(!s&&t.pos==this.stream.end){s=new u;s.value=t.p.parser.eofTerm;s.start=s.end=t.pos;e=this.addActions(t,s.value,s.end,e)}this.mainToken=s;return this.actions}getMainToken(t){if(this.mainToken)return this.mainToken;let e=new u,{pos:s,p:i}=t;e.start=s;e.end=Math.min(s+1,i.stream.end);e.value=s==i.stream.end?i.parser.eofTerm:0;return e}updateCachedToken(t,e,s){let i=this.stream.clipPos(s.pos);e.token(this.stream.reset(i,t),s);if(t.value>-1){let{parser:e}=s.p;for(let i=0;i=0&&s.p.parser.dialect.allows(n>>1)){if((n&1)==0)t.value=n>>1;else t.extended=n>>1;break}}}else{t.value=0;t.end=this.stream.clipPos(i+1)}}putAction(t,e,s,i){for(let n=0;nt.bufferLength*4?new P(s,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,e=this.minStackPos;let s=this.stacks=[];let i,n;if(this.bigReductionCount>300&&t.length==1){let[e]=t;while(e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart){}this.bigReductionCount=this.lastBigReductionSize=0}for(let o=0;oe){s.push(r)}else if(this.advanceStack(r,s,t)){continue}else{if(!i){i=[];n=[]}i.push(r);let t=this.tokens.getMainToken(r);n.push(t.value,t.end)}break}}if(!s.length){let t=i&&L(i);if(t)return this.stackToTree(t);if(this.parser.strict){if(w&&i)console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none"));throw new SyntaxError("No parse at "+e)}if(!this.recovering)this.recovering=5}if(this.recovering&&i){let t=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,n,s);if(t)return this.stackToTree(t.forceAll())}if(this.recovering){let t=this.recovering==1?1:this.recovering*3;if(s.length>t){s.sort(((t,e)=>e.score-t.score));while(s.length>t)s.pop()}if(s.some((t=>t.reducePos>e)))this.recovering--}else if(s.length>1){t:for(let t=0;t500&&n.buffer.length>500){if((e.score-n.score||e.buffer.length-n.buffer.length)>0){s.splice(i--,1)}else{s.splice(t--,1);continue t}}}}if(s.length>12)s.splice(12,s.length-12)}this.minStackPos=s[0].pos;for(let o=1;o ":"";if(this.stoppedAt!=null&&n>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let e=t.curContext&&t.curContext.tracker.strict,s=e?t.curContext.hash:0;for(let l=this.fragments.nodeAt(n);l;){let n=this.parser.nodeSet.types[l.type.id]==l.type?o.getGoto(t.state,l.type.id):-1;if(n>-1&&l.length&&(!e||(l.prop(i.NodeProp.contextHash)||0)==s)){t.useNode(l,n);if(w)console.log(r+this.stackID(t)+` (via reuse of ${o.getName(l.type.id)})`);return true}if(!(l instanceof i.Tree)||l.children.length==0||l.positions[0]>0)break;let a=l.children[0];if(a instanceof i.Tree&&l.positions[0]==0)l=a;else break}}let l=o.stateSlot(t.state,4);if(l>0){t.reduce(l);if(w)console.log(r+this.stackID(t)+` (via always-reduce ${o.getName(l&65535)})`);return true}if(t.stack.length>=15e3){while(t.stack.length>9e3&&t.forceReduce()){}}let a=this.tokens.getActions(t);for(let i=0;in)e.push(u);else s.push(u)}return false}advanceFully(t,e){let s=t.pos;for(;;){if(!this.advanceStack(t,null,null))return false;if(t.pos>s){R(t,e);return true}}}runRecovery(t,e,s){let i=null,n=false;for(let o=0;o ":"";if(r.deadEnd){if(n)continue;n=true;r.restart();if(w)console.log(h+this.stackID(r)+" (restarted)");let t=this.advanceFully(r,s);if(t)continue}let c=r.split(),f=h;for(let t=0;c.forceReduce()&&t<10;t++){if(w)console.log(f+this.stackID(c)+" (via force-reduce)");let t=this.advanceFully(c,s);if(t)break;if(w)f=this.stackID(c)+" -> "}for(let t of r.recoverByInsert(l)){if(w)console.log(h+this.stackID(t)+" (via recover-insert)");this.advanceFully(t,s)}if(this.stream.end>r.pos){if(a==r.pos){a++;l=0}r.recoverByDelete(l,a);if(w)console.log(h+this.stackID(r)+` (via recover-delete ${this.parser.getName(l)})`);R(r,s)}else if(!i||i.scoret;class O{constructor(t){this.start=t.start;this.shift=t.shift||D;this.reduce=t.reduce||D;this.reuse=t.reuse||D;this.hash=t.hash||(()=>0);this.strict=t.strict!==false}}class M extends i.Parser{constructor(t){super();this.wrappers=[];if(t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (${14})`);let e=t.nodeNames.split(" ");this.minRepeatTerm=e.length;for(let i=0;it.topRules[e][1]));let n=[];for(let i=0;i=0){o(s,t,l[e++])}else{let i=l[e+-s];for(let n=-s;n>0;n--)o(l[e++],t,i);e++}}}this.nodeSet=new i.NodeSet(e.map(((e,o)=>i.NodeType.define({name:o>=this.minRepeatTerm?undefined:e,id:o,props:n[o],top:s.indexOf(o)>-1,error:o==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(o)>-1}))));if(t.propSources)this.nodeSet=this.nodeSet.extend(...t.propSources);this.strict=false;this.bufferLength=i.DefaultBufferLength;let r=f(t.tokenData);this.context=t.context;this.specializerSpecs=t.specialized||[];this.specialized=new Uint16Array(this.specializerSpecs.length);for(let i=0;itypeof t=="number"?new m(r,t):t));this.topRules=t.topRules;this.dialects=t.dialects||{};this.dynamicPrecedences=t.dynamicPrecedences||null;this.tokenPrecTable=t.tokenPrec;this.termNames=t.termNames||null;this.maxNode=this.nodeSet.types.length-1;this.dialect=this.parseDialect();this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,e,s){let i=new I(this,t,e,s);for(let n of this.wrappers)i=n(i,t,e,s);return i}getGoto(t,e,s=false){let i=this.goto;if(e>=i[0])return-1;for(let n=i[e+1];;){let e=i[n++],o=e&1;let r=i[n++];if(o&&s)return r;for(let s=n+(e>>1);n0}validAction(t,e){if(e==this.stateSlot(t,4))return true;for(let s=this.stateSlot(t,1);;s+=3){if(this.data[s]==65535){if(this.data[s+1]==1)s=N(this.data,s+2);else return false}if(e==N(this.data,s+1))return true}}nextStates(t){let e=[];for(let s=this.stateSlot(t,1);;s+=3){if(this.data[s]==65535){if(this.data[s+1]==1)s=N(this.data,s+2);else break}if((this.data[s+2]&65536>>16)==0){let t=this.data[s+1];if(!e.some(((e,s)=>s&1&&e==t)))e.push(this.data[s],t)}}return e}configure(t){let e=Object.assign(Object.create(M.prototype),this);if(t.props)e.nodeSet=this.nodeSet.extend(...t.props);if(t.top){let s=this.topRules[t.top];if(!s)throw new RangeError(`Invalid top rule name ${t.top}`);e.top=s}if(t.tokenizers)e.tokenizers=this.tokenizers.map((e=>{let s=t.tokenizers.find((t=>t.from==e));return s?s.to:e}));if(t.specializers){e.specializers=this.specializers.slice();e.specializerSpecs=this.specializerSpecs.map(((s,i)=>{let n=t.specializers.find((t=>t.from==s.external));if(!n)return s;let o=Object.assign(Object.assign({},s),{external:n.to});e.specializers[i]=B(o);return o}))}if(t.contextTracker)e.context=t.contextTracker;if(t.dialect)e.dialect=this.parseDialect(t.dialect);if(t.strict!=null)e.strict=t.strict;if(t.wrap)e.wrappers=e.wrappers.concat(t.wrap);if(t.bufferLength!=null)e.bufferLength=t.bufferLength;return e}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let e=this.dynamicPrecedences;return e==null?0:e[t]||0}parseDialect(t){let e=Object.keys(this.dialects),s=e.map((()=>false));if(t)for(let n of t.split(" ")){let t=e.indexOf(n);if(t>=0)s[t]=true}let i=null;for(let n=0;nt)&&s.p.parser.stateFlag(s.state,2)&&(!e||e.scoret.external(s,i)<<1|e}return t.get}},34155:t=>{var e=t.exports={};var s;var i;function n(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){s=setTimeout}else{s=n}}catch(t){s=n}try{if(typeof clearTimeout==="function"){i=clearTimeout}else{i=o}}catch(t){i=o}})();function r(t){if(s===setTimeout){return setTimeout(t,0)}if((s===n||!s)&&setTimeout){s=setTimeout;return setTimeout(t,0)}try{return s(t,0)}catch(e){try{return s.call(null,t,0)}catch(e){return s.call(this,t,0)}}}function l(t){if(i===clearTimeout){return clearTimeout(t)}if((i===o||!i)&&clearTimeout){i=clearTimeout;return clearTimeout(t)}try{return i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}var a=[];var h=false;var c;var f=-1;function u(){if(!h||!c){return}h=false;if(c.length){a=c.concat(a)}else{f=-1}if(a.length){p()}}function p(){if(h){return}var t=r(u);h=true;var e=a.length;while(e){c=a;a=[];while(++f1){for(var s=1;s{t.r(r);t.d(r,{tcl:()=>p});function a(e){var r={},t=e.split(" ");for(var a=0;a!?^\/\|]/;function o(e,r,t){r.tokenize=t;return t(e,r)}function s(e,r){var t=r.beforeParams;r.beforeParams=false;var a=e.next();if((a=='"'||a=="'")&&r.inParams){return o(e,r,f(a))}else if(/[\[\]{}\(\),;\.]/.test(a)){if(a=="("&&t)r.inParams=true;else if(a==")")r.inParams=false;return null}else if(/\d/.test(a)){e.eatWhile(/[\w\.]/);return"number"}else if(a=="#"){if(e.eat("*"))return o(e,r,u);if(a=="#"&&e.match(/ *\[ *\[/))return o(e,r,c);e.skipToEnd();return"comment"}else if(a=='"'){e.skipTo(/"/);return"comment"}else if(a=="$"){e.eatWhile(/[$_a-z0-9A-Z\.{:]/);e.eatWhile(/}/);r.beforeParams=true;return"builtin"}else if(l.test(a)){e.eatWhile(l);return"comment"}else{e.eatWhile(/[\w\$_{}\xa1-\uffff]/);var s=e.current().toLowerCase();if(n&&n.propertyIsEnumerable(s))return"keyword";if(i&&i.propertyIsEnumerable(s)){r.beforeParams=true;return"keyword"}return null}}function f(e){return function(r,t){var a=false,n,i=false;while((n=r.next())!=null){if(n==e&&!a){i=true;break}a=!a&&n=="\\"}if(i)t.tokenize=s;return"string"}}function u(e,r){var t=false,a;while(a=e.next()){if(a=="#"&&t){r.tokenize=s;break}t=a=="*"}return"comment"}function c(e,r){var t=0,a;while(a=e.next()){if(a=="#"&&t==2){r.tokenize=s;break}if(a=="]")t++;else if(a!=" ")t=0}return"meta"}const p={name:"tcl",startState:function(){return{tokenize:s,beforeParams:false,inParams:false}},token:function(e,r){if(e.eatSpace())return null;return r.tokenize(e,r)},languageData:{commentTokens:{line:"#"}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/383.db345dbeef5ef774e50c.js b/bootcamp/share/jupyter/lab/static/383.db345dbeef5ef774e50c.js new file mode 100644 index 0000000..dbef6b4 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/383.db345dbeef5ef774e50c.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[383,4155],{7049:(t,e,n)=>{"use strict";n.d(e,{Dp:()=>c,Z$:()=>s,kJ:()=>d,s7:()=>o});const s=t=>t[t.length-1];const r=()=>[];const i=t=>t.slice();const o=(t,e)=>{for(let n=0;n{for(let n=0;n{for(let n=0;nt.length===e.length&&l(t,((t,n)=>t===e[n]));const u=t=>t.reduce(((t,e)=>t.concat(e)),[]);const d=Array.isArray;const f=t=>c(set.from(t));const g=(t,e)=>{const n=set.create();const s=[];for(let r=0;r{"use strict";n.d(e,{Hi:()=>a,PP:()=>r,gB:()=>u});var s=n(59735);const r=(t,e,n=0)=>{try{for(;n{};const o=t=>t();const c=t=>t;const l=(t,e)=>t===e;const h=(t,e)=>t===e||t!=null&&e!=null&&t.constructor===e.constructor&&(t instanceof Array&&array.equalFlat(t,e)||typeof t==="object"&&object.equalFlat(t,e));const a=(t,e)=>{if(t==null||e==null){return l(t,e)}if(t.constructor!==e.constructor){return false}if(t===e){return true}switch(t.constructor){case ArrayBuffer:t=new Uint8Array(t);e=new Uint8Array(e);case Uint8Array:{if(t.byteLength!==e.byteLength){return false}for(let n=0;ne.includes(t)},72382:(t,e,n)=>{"use strict";n.d(e,{JG:()=>r,UI:()=>o,Ue:()=>s,Yj:()=>c,Yu:()=>i});const s=()=>new Map;const r=t=>{const e=s();t.forEach(((t,n)=>{e.set(n,t)}));return e};const i=(t,e,n)=>{let s=t.get(e);if(s===undefined){t.set(e,s=n())}return s};const o=(t,e)=>{const n=[];for(const[s,r]of t){n.push(e(r,s))}return n};const c=(t,e)=>{for(const[n,s]of t){if(e(s,n)){return true}}return false};const l=(t,e)=>{for(const[n,s]of t){if(!e(s,n)){return false}}return true}},14247:(t,e,n)=>{"use strict";n.d(e,{Fp:()=>g,GR:()=>b,GW:()=>s,VV:()=>f,Wn:()=>i});const s=Math.floor;const r=Math.ceil;const i=Math.abs;const o=Math.imul;const c=Math.round;const l=Math.log10;const h=Math.log2;const a=Math.log;const u=Math.sqrt;const d=(t,e)=>t+e;const f=(t,e)=>tt>e?t:e;const p=Number.isNaN;const w=Math.pow;const m=t=>Math.pow(10,t);const y=Math.sign;const b=t=>t!==0?t<0:1/t<0},59735:(t,e,n)=>{"use strict";n.d(e,{$m:()=>f,kE:()=>l,l$:()=>d});const s=()=>Object.create(null);const r=Object.assign;const i=Object.keys;const o=(t,e)=>{for(const n in t){e(t[n],n)}};const c=(t,e)=>{const n=[];for(const s in t){n.push(e(t[s],s))}return n};const l=t=>i(t).length;const h=(t,e)=>{for(const n in t){if(e(t[n],n)){return true}}return false};const a=t=>{for(const e in t){return false}return true};const u=(t,e)=>{for(const n in t){if(!e(t[n],n)){return false}}return true};const d=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);const f=(t,e)=>t===e||l(t)===l(e)&&u(t,((t,n)=>(t!==undefined||d(e,n))&&e[n]===t))},58290:(t,e,n)=>{"use strict";n.d(e,{y:()=>o});var s=n(72382);var r=n(48307);var i=n(7049);class o{constructor(){this._observers=s.Ue()}on(t,e){s.Yu(this._observers,t,r.Ue).add(e)}once(t,e){const n=(...s)=>{this.off(t,n);e(...s)};this.on(t,n)}off(t,e){const n=this._observers.get(t);if(n!==undefined){n.delete(e);if(n.size===0){this._observers.delete(t)}}}emit(t,e){return i.Dp((this._observers.get(t)||s.Ue()).values()).forEach((t=>t(...e)))}destroy(){this._observers=s.Ue()}}},48307:(t,e,n)=>{"use strict";n.d(e,{Ue:()=>s});const s=()=>new Set;const r=t=>Array.from(t);const i=t=>t.values().next().value||undefined;const o=t=>new Set(t)},20817:(t,e,n)=>{"use strict";n.d(e,{ZG:()=>r});const s=()=>new Date;const r=Date.now;const i=t=>{if(t<6e4){const e=metric.prefix(t,-1);return math.round(e.n*100)/100+e.prefix+"s"}t=math.floor(t/1e3);const e=t%60;const n=math.floor(t/60)%60;const s=math.floor(t/3600)%24;const r=math.floor(t/86400);if(r>0){return r+"d"+(s>0||n>30?" "+(n>30?s+1:s)+"h":"")}if(s>0){return s+"h"+(n>0||e>30?" "+(e>30?n+1:n)+"min":"")}return n+"min"+(e>0?" "+e+"s":"")}},34155:t=>{var e=t.exports={};var n;var s;function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){n=setTimeout}else{n=r}}catch(t){n=r}try{if(typeof clearTimeout==="function"){s=clearTimeout}else{s=i}}catch(t){s=i}})();function o(t){if(n===setTimeout){return setTimeout(t,0)}if((n===r||!n)&&setTimeout){n=setTimeout;return setTimeout(t,0)}try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}function c(t){if(s===clearTimeout){return clearTimeout(t)}if((s===i||!s)&&clearTimeout){s=clearTimeout;return clearTimeout(t)}try{return s(t)}catch(e){try{return s.call(null,t)}catch(e){return s.call(this,t)}}}var l=[];var h=false;var a;var u=-1;function d(){if(!h||!a){return}h=false;if(a.length){l=a.concat(l)}else{u=-1}if(l.length){f()}}function f(){if(h){return}var t=o(d);h=true;var e=l.length;while(e){a=l;l=[];while(++u1){for(var n=1;n{"use strict";n.r(e);n.d(e,{AbsolutePosition:()=>to,AbstractConnector:()=>qr,AbstractStruct:()=>vl,AbstractType:()=>xc,Array:()=>qc,ContentAny:()=>Jl,ContentBinary:()=>Tl,ContentDeleted:()=>Ml,ContentEmbed:()=>Pl,ContentFormat:()=>Fl,ContentJSON:()=>jl,ContentString:()=>zl,ContentType:()=>eh,Doc:()=>ai,GC:()=>Ul,ID:()=>$i,Item:()=>ch,Map:()=>Xc,PermanentUserData:()=>Ki,RelativePosition:()=>Zi,Snapshot:()=>ao,Text:()=>pl,Transaction:()=>No,UndoManager:()=>Yo,UpdateEncoderV1:()=>wi,XmlElement:()=>kl,XmlFragment:()=>yl,XmlHook:()=>El,XmlText:()=>Dl,YArrayEvent:()=>Hc,YEvent:()=>wc,YMapEvent:()=>Zc,YTextEvent:()=>gl,YXmlEvent:()=>Sl,applyUpdate:()=>vi,applyUpdateV2:()=>Ai,cleanupYTextFormatting:()=>dl,compareIDs:()=>Ji,compareRelativePositions:()=>ho,convertUpdateFormatV1ToV2:()=>gc,convertUpdateFormatV2ToV1:()=>pc,createAbsolutePositionFromRelativePosition:()=>lo,createDeleteSet:()=>ri,createDeleteSetFromStructStore:()=>ii,createDocFromSnapshot:()=>So,createID:()=>Wi,createRelativePositionFromJSON:()=>Qi,createRelativePositionFromTypeIndex:()=>so,createSnapshot:()=>mo,decodeRelativePosition:()=>co,decodeSnapshot:()=>wo,decodeSnapshotV2:()=>po,decodeStateVector:()=>Mi,decodeUpdate:()=>Xo,decodeUpdateV2:()=>Qo,diffUpdate:()=>hc,diffUpdateV2:()=>lc,emptySnapshot:()=>yo,encodeRelativePosition:()=>io,encodeSnapshot:()=>go,encodeSnapshotV2:()=>fo,encodeStateAsUpdate:()=>Ti,encodeStateAsUpdateV2:()=>Ui,encodeStateVector:()=>Ri,encodeStateVectorFromUpdate:()=>sc,encodeStateVectorFromUpdateV2:()=>nc,equalSnapshots:()=>uo,findIndexSS:()=>vo,findRootTypeKey:()=>Yi,getItem:()=>Uo,getState:()=>Do,getTypeChildren:()=>Ac,isDeleted:()=>ti,isParentOf:()=>Hi,iterateDeletedStructs:()=>Xr,logType:()=>qi,logUpdate:()=>Ko,logUpdateV2:()=>Zo,mergeUpdates:()=>ec,mergeUpdatesV2:()=>cc,parseUpdateMeta:()=>ic,parseUpdateMetaV2:()=>rc,readUpdate:()=>Di,readUpdateV2:()=>Ci,relativePositionToJSON:()=>Xi,snapshot:()=>bo,transact:()=>Jo,tryGc:()=>jo,typeListToArraySnapshot:()=>Ic,typeMapGetSnapshot:()=>Gc});var s=n(58290);var r=n(7049);var i=n(14247);var o=n(72382);const c=String.fromCharCode;const l=String.fromCodePoint;const h=t=>t.toLowerCase();const a=/^\s*/g;const u=t=>t.replace(a,"");const d=/([A-Z])/g;const f=(t,e)=>u(t.replace(d,(t=>`${e}${h(t)}`)));const g=t=>unescape(encodeURIComponent(t)).length;const p=t=>{const e=unescape(encodeURIComponent(t));const n=e.length;const s=new Uint8Array(n);for(let r=0;rw.encode(t);const y=w?m:p;const b=t=>{let e=t.length;let n="";let s=0;while(e>0){const r=e<1e4?e:1e4;const i=t.subarray(s,s+r);s+=r;n+=String.fromCodePoint.apply(null,i);e-=r}return decodeURIComponent(escape(n))};let k=typeof TextDecoder==="undefined"?null:new TextDecoder("utf-8",{fatal:true,ignoreBOM:true});if(k&&k.decode(new Uint8Array).length===1){k=null}const _=t=>k.decode(t);const S=null&&(k?_:b);const E=(t,e,n,s="")=>t.slice(0,e)+s+t.slice(e+n);const C=t=>t===undefined?null:t;class D{constructor(){this.map=new Map}setItem(t,e){this.map.set(t,e)}getItem(t){return this.map.get(t)}}let A=new D;let v=true;try{if(typeof localStorage!=="undefined"){A=localStorage;v=false}}catch(gh){}const x=A;const U=t=>v||addEventListener("storage",t);var T=n(97027);var I=n(34155);const M=typeof I!=="undefined"&&I.release&&/node|io\.js/.test(I.release.name);const O=typeof window!=="undefined"&&typeof document!=="undefined"&&!M;const L=typeof navigator!=="undefined"?/Mac/.test(navigator.platform):false;let N;const R=[];const P=()=>{if(N===undefined){if(M){N=o.Ue();const t=I.argv;let e=null;for(let n=0;n{if(t.length!==0){const[e,n]=t.split("=");N.set(`--${f(e,"-")}`,n);N.set(`-${f(e,"-")}`,n)}}))}else{N=o.Ue()}}return N};const V=t=>P().has(t);const F=(t,e)=>P().get(t)||e;const B=t=>M?C(I.env[t.toUpperCase()]):C(x.getItem(t));const j=t=>P().get("--"+t)||B(t);const $=t=>V("--"+t)||B(t)!==null;const J=$("production");const W=M&&T.gB(I.env.FORCE_COLOR,["true","1","2"]);const z=!V("no-colors")&&(!M||I.stdout.isTTY||W)&&(!M||V("color")||W||B("COLORTERM")!==null||(B("TERM")||"").includes("color"));const G=t=>new Uint8Array(t);const Y=(t,e,n)=>new Uint8Array(t,e,n);const H=t=>new Uint8Array(t);const q=t=>{let e="";for(let n=0;nBuffer.from(t.buffer,t.byteOffset,t.byteLength).toString("base64");const Z=t=>{const e=atob(t);const n=G(e.length);for(let s=0;s{const e=Buffer.from(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)};const Q=O?q:K;const tt=O?Z:X;const et=t=>{const e=G(t.byteLength);e.set(t);return e};const nt=t=>{const e=encoding.createEncoder();encoding.writeAny(e,t);return encoding.toUint8Array(e)};const st=t=>decoding.readAny(decoding.createDecoder(t));const rt=1;const it=2;const ot=4;const ct=8;const lt=16;const ht=32;const at=64;const ut=128;const dt=256;const ft=512;const gt=1024;const pt=2048;const wt=4096;const mt=8192;const yt=16384;const bt=32768;const kt=65536;const _t=1<<17;const St=1<<18;const Et=1<<19;const Ct=1<<20;const Dt=1<<21;const At=1<<22;const vt=1<<23;const xt=1<<24;const Ut=1<<25;const Tt=1<<26;const It=1<<27;const Mt=1<<28;const Ot=1<<29;const Lt=1<<30;const Nt=null&&1<<31;const Rt=0;const Pt=1;const Vt=3;const Ft=7;const Bt=15;const jt=31;const $t=63;const Jt=127;const Wt=255;const zt=511;const Gt=1023;const Yt=2047;const Ht=4095;const qt=8191;const Kt=16383;const Zt=32767;const Xt=65535;const Qt=_t-1;const te=St-1;const ee=Et-1;const ne=Ct-1;const se=Dt-1;const re=At-1;const ie=vt-1;const oe=xt-1;const ce=Ut-1;const le=Tt-1;const he=It-1;const ae=Mt-1;const ue=Ot-1;const de=Lt-1;const fe=2147483647;const ge=4294967295;const pe=Number.MAX_SAFE_INTEGER;const we=Number.MIN_SAFE_INTEGER;const me=null&&1<<31;const ye=fe;const be=Number.isInteger||(t=>typeof t==="number"&&isFinite(t)&&i.GW(t)===t);const ke=Number.isNaN;const _e=Number.parseInt;class Se{constructor(){this.cpos=0;this.cbuf=new Uint8Array(100);this.bufs=[]}}const Ee=()=>new Se;const Ce=t=>{let e=t.cpos;for(let n=0;n{const e=new Uint8Array(Ce(t));let n=0;for(let s=0;s{const n=t.cbuf.length;if(n-t.cpos{const n=t.cbuf.length;if(t.cpos===n){t.bufs.push(t.cbuf);t.cbuf=new Uint8Array(n*2);t.cpos=0}t.cbuf[t.cpos++]=e};const xe=(t,e,n)=>{let s=null;for(let r=0;r{ve(t,e&binary.BITS8);ve(t,e>>>8&binary.BITS8)};const Me=(t,e,n)=>{xe(t,e,n&binary.BITS8);xe(t,e+1,n>>>8&binary.BITS8)};const Oe=(t,e)=>{for(let n=0;n<4;n++){ve(t,e&binary.BITS8);e>>>=8}};const Le=(t,e)=>{for(let n=3;n>=0;n--){ve(t,e>>>8*n&binary.BITS8)}};const Ne=(t,e,n)=>{for(let s=0;s<4;s++){xe(t,e+s,n&binary.BITS8);n>>>=8}};const Re=(t,e)=>{while(e>Jt){ve(t,ut|Jt&e);e=i.GW(e/128)}ve(t,Jt&e)};const Pe=(t,e)=>{const n=i.GR(e);if(n){e=-e}ve(t,(e>$t?ut:0)|(n?at:0)|$t&e);e=i.GW(e/64);while(e>0){ve(t,(e>Jt?ut:0)|Jt&e);e=i.GW(e/128)}};const Ve=new Uint8Array(3e4);const Fe=Ve.length/3;const Be=(t,e)=>{if(e.length{const n=unescape(encodeURIComponent(e));const s=n.length;Re(t,s);for(let r=0;rWe(t,De(e));const We=(t,e)=>{const n=t.cbuf.length;const s=t.cpos;const r=i.VV(n-s,e.length);const o=e.length-r;t.cbuf.set(e.subarray(0,r),s);t.cpos+=r;if(o>0){t.bufs.push(t.cbuf);t.cbuf=new Uint8Array(i.Fp(n*2,o));t.cbuf.set(e.subarray(r));t.cpos=o}};const ze=(t,e)=>{Re(t,e.byteLength);We(t,e)};const Ge=(t,e)=>{Ae(t,e);const n=new DataView(t.cbuf.buffer,t.cpos,e);t.cpos+=e;return n};const Ye=(t,e)=>Ge(t,4).setFloat32(0,e,false);const He=(t,e)=>Ge(t,8).setFloat64(0,e,false);const qe=(t,e)=>Ge(t,8).setBigInt64(0,e,false);const Ke=(t,e)=>Ge(t,8).setBigUint64(0,e,false);const Ze=new DataView(new ArrayBuffer(4));const Xe=t=>{Ze.setFloat32(0,t);return Ze.getFloat32(0)===t};const Qe=(t,e)=>{switch(typeof e){case"string":ve(t,119);$e(t,e);break;case"number":if(be(e)&&i.Wn(e)<=fe){ve(t,125);Pe(t,e)}else if(Xe(e)){ve(t,124);Ye(t,e)}else{ve(t,123);He(t,e)}break;case"bigint":ve(t,122);qe(t,e);break;case"object":if(e===null){ve(t,126)}else if(e instanceof Array){ve(t,117);Re(t,e.length);for(let n=0;n0){Re(this,this.count-1)}this.count=1;this.w(this,t);this.s=t}}}class en extends(null&&Se){constructor(t){super();this.s=t}write(t){Pe(this,t-this.s);this.s=t}}class nn extends(null&&Se){constructor(t){super();this.s=t;this.count=0}write(t){if(this.s===t&&this.count>0){this.count++}else{if(this.count>0){Re(this,this.count-1)}this.count=1;Pe(this,t-this.s);this.s=t}}}const sn=t=>{if(t.count>0){Pe(t.encoder,t.count===1?t.s:-t.s);if(t.count>1){Re(t.encoder,t.count-2)}}};class rn{constructor(){this.encoder=new Se;this.s=0;this.count=0}write(t){if(this.s===t){this.count++}else{sn(this);this.count=1;this.s=t}}toUint8Array(){sn(this);return De(this.encoder)}}class on{constructor(){this.encoder=new Se;this.s=0;this.count=0}write(t){if(this.s+this.count===t){this.count++}else{sn(this);this.count=1;this.s=t}}toUint8Array(){sn(this);return De(this.encoder)}}const cn=t=>{if(t.count>0){const e=t.diff*2+(t.count===1?0:1);Pe(t.encoder,e);if(t.count>1){Re(t.encoder,t.count-2)}}};class ln{constructor(){this.encoder=new Se;this.s=0;this.count=0;this.diff=0}write(t){if(this.diff===t-this.s){this.s=t;this.count++}else{cn(this);this.count=1;this.diff=t-this.s;this.s=t}}toUint8Array(){cn(this);return De(this.encoder)}}class hn{constructor(){this.sarr=[];this.s="";this.lensE=new rn}write(t){this.s+=t;if(this.s.length>19){this.sarr.push(this.s);this.s=""}this.lensE.write(t.length)}toUint8Array(){const t=new Se;this.sarr.push(this.s);this.s="";$e(t,this.sarr.join(""));We(t,this.lensE.toUint8Array());return De(t)}}const an=t=>new Error(t);const un=()=>{throw an("Method unimplemented")};const dn=()=>{throw an("Unexpected case")};const fn=an("Unexpected end of array");const gn=an("Integer out of Range");class pn{constructor(t){this.arr=t;this.pos=0}}const wn=t=>new pn(t);const mn=t=>t.pos!==t.arr.length;const yn=(t,e=t.pos)=>{const n=wn(t.arr);n.pos=e;return n};const bn=(t,e)=>{const n=Y(t.arr.buffer,t.pos+t.arr.byteOffset,e);t.pos+=e;return n};const kn=t=>bn(t,Tn(t));const _n=t=>bn(t,t.arr.length-t.pos);const Sn=t=>t.pos++;const En=t=>t.arr[t.pos++];const Cn=t=>{const e=t.arr[t.pos]+(t.arr[t.pos+1]<<8);t.pos+=2;return e};const Dn=t=>{const e=t.arr[t.pos]+(t.arr[t.pos+1]<<8)+(t.arr[t.pos+2]<<16)+(t.arr[t.pos+3]<<24)>>>0;t.pos+=4;return e};const An=t=>{const e=t.arr[t.pos+3]+(t.arr[t.pos+2]<<8)+(t.arr[t.pos+1]<<16)+(t.arr[t.pos]<<24)>>>0;t.pos+=4;return e};const vn=t=>t.arr[t.pos];const xn=t=>t.arr[t.pos]+(t.arr[t.pos+1]<<8);const Un=t=>t.arr[t.pos]+(t.arr[t.pos+1]<<8)+(t.arr[t.pos+2]<<16)+(t.arr[t.pos+3]<<24)>>>0;const Tn=t=>{let e=0;let n=1;const s=t.arr.length;while(t.pospe){throw gn}}throw fn};const In=t=>{let e=t.arr[t.pos++];let n=e&$t;let s=64;const r=(e&at)>0?-1:1;if((e&ut)===0){return r*n}const i=t.arr.length;while(t.pospe){throw gn}}throw fn};const Mn=t=>{const e=t.pos;const n=Tn(t);t.pos=e;return n};const On=t=>{const e=t.pos;const n=In(t);t.pos=e;return n};const Ln=t=>{let e=Tn(t);if(e===0){return""}else{let n=String.fromCodePoint(En(t));if(--e<100){while(e--){n+=String.fromCodePoint(En(t))}}else{while(e>0){const s=e<1e4?e:1e4;const r=t.arr.subarray(t.pos,t.pos+s);t.pos+=s;n+=String.fromCodePoint.apply(null,r);e-=s}}return decodeURIComponent(escape(n))}};const Nn=t=>k.decode(kn(t));const Rn=k?Nn:Ln;const Pn=t=>{const e=t.pos;const n=Rn(t);t.pos=e;return n};const Vn=(t,e)=>{const n=new DataView(t.arr.buffer,t.arr.byteOffset+t.pos,e);t.pos+=e;return n};const Fn=t=>Vn(t,4).getFloat32(0,false);const Bn=t=>Vn(t,8).getFloat64(0,false);const jn=t=>Vn(t,8).getBigInt64(0,false);const $n=t=>Vn(t,8).getBigUint64(0,false);const Jn=[t=>undefined,t=>null,In,Fn,Bn,jn,t=>false,t=>true,Rn,t=>{const e=Tn(t);const n={};for(let s=0;s{const e=Tn(t);const n=[];for(let s=0;sJn[127-En(t)](t);class zn extends pn{constructor(t,e){super(t);this.reader=e;this.s=null;this.count=0}read(){if(this.count===0){this.s=this.reader(this);if(mn(this)){this.count=Tn(this)+1}else{this.count=-1}}this.count--;return this.s}}class Gn extends(null&&pn){constructor(t,e){super(t);this.s=e}read(){this.s+=In(this);return this.s}}class Yn extends(null&&pn){constructor(t,e){super(t);this.s=e;this.count=0}read(){if(this.count===0){this.s+=In(this);if(mn(this)){this.count=Tn(this)+1}else{this.count=-1}}this.count--;return this.s}}class Hn extends pn{constructor(t){super(t);this.s=0;this.count=0}read(){if(this.count===0){this.s=In(this);const t=i.GR(this.s);this.count=1;if(t){this.s=-this.s;this.count=Tn(this)+2}}this.count--;return this.s}}class qn extends(null&&pn){constructor(t){super(t);this.s=0;this.count=0}read(){if(this.count===0){this.s=In(this);const t=math.isNegativeZero(this.s);this.count=1;if(t){this.s=-this.s;this.count=Tn(this)+2}}this.count--;return this.s++}}class Kn extends pn{constructor(t){super(t);this.s=0;this.count=0;this.diff=0}read(){if(this.count===0){const t=In(this);const e=t&1;this.diff=i.GW(t/2);this.count=1;if(e){this.count=Tn(this)+2}}this.s+=this.diff;this.count--;return this.s}}class Zn{constructor(t){this.decoder=new Hn(t);this.str=Rn(this.decoder);this.spos=0}read(){const t=this.spos+this.decoder.read();const e=this.str.slice(this.spos,t);this.spos=t;return e}}const Xn=typeof window==="undefined"?null:typeof window.performance!=="undefined"&&window.performance||null;const Qn=typeof crypto==="undefined"?null:crypto;const ts=Qn!==null?t=>{const e=new ArrayBuffer(t);const n=new Uint8Array(e);Qn.getRandomValues(n);return e}:t=>{const e=new ArrayBuffer(t);const n=new Uint8Array(e);for(let s=0;s>>0)}return e};const es=Math.random;const ns=()=>new Uint32Array(ts(4))[0];const ss=()=>{const t=new Uint32Array(cryptoRandomBuffer(8));return(t[0]&binary.BITS21)*(binary.BITS32+1)+(t[1]>>>0)};const rs=t=>t[math.floor(es()*t.length)];const is=[1e7]+-1e3+-4e3+-8e3+-1e11;const os=()=>is.replace(/[018]/g,(t=>(t^ns()&15>>t/4).toString(16)));const cs=t=>new Promise(t);const ls=t=>new Promise(t);const hs=t=>Promise.all(t);const as=t=>Promise.reject(t);const us=t=>Promise.resolve(t);const ds=t=>Promise.resolve(t);const fs=(t,e,n=10)=>cs(((s,r)=>{const i=time.getUnixTime();const o=t>0;const c=()=>{if(e()){clearInterval(l);s()}else if(o){if(time.getUnixTime()-i>t){clearInterval(l);r(new Error("Timeout"))}}};const l=setInterval(c,n)}));const gs=t=>cs(((e,n)=>setTimeout(e,t)));const ps=t=>t instanceof Promise||t&&t.then&&t.catch&&t.finally;var ws=n(48307);const ms=Symbol;const ys=t=>typeof t==="symbol";class bs{constructor(t,e){this.left=t;this.right=e}}const ks=(t,e)=>new bs(t,e);const _s=(t,e)=>new bs(e,t);const Ss=(t,e)=>t.forEach((t=>e(t.left,t.right)));const Es=(t,e)=>t.map((t=>e(t.left,t.right)));const Cs=typeof document!=="undefined"?document:{};const Ds=t=>Cs.createElement(t);const As=()=>Cs.createDocumentFragment();const vs=t=>Cs.createTextNode(t);const xs=typeof DOMParser!=="undefined"?new DOMParser:null;const Us=(t,e,n)=>t.dispatchEvent(new CustomEvent(e,n));const Ts=(t,e)=>{pair.forEach(e,((e,n)=>{if(n===false){t.removeAttribute(e)}else if(n===true){t.setAttribute(e,"")}else{t.setAttribute(e,n)}}));return t};const Is=(t,e)=>{e.forEach(((e,n)=>{t.setAttribute(n,e)}));return t};const Ms=t=>{const e=As();for(let n=0;n{Qs(t,Ms(e));return t};const Ls=t=>t.remove();const Ns=(t,e,n)=>t.addEventListener(e,n);const Rs=(t,e,n)=>t.removeEventListener(e,n);const Ps=(t,e)=>{pair.forEach(e,((e,n)=>Ns(t,e,n)));return t};const Vs=(t,e)=>{pair.forEach(e,((e,n)=>Rs(t,e,n)));return t};const Fs=(t,e=[],n=[])=>Os(Ts(Ds(t),e),n);const Bs=(t,e)=>{const n=Ds("canvas");n.height=e;n.width=t;return n};const js=null&&vs;const $s=t=>`${t.left}:${t.right};`;const Js=t=>t.map($s).join("");const Ws=t=>o.UI(t,((t,e)=>`${e}:${t};`)).join("");const zs=(t,e)=>t.querySelector(e);const Gs=(t,e)=>t.querySelectorAll(e);const Ys=t=>Cs.getElementById(t);const Hs=t=>xs.parseFromString(`${t}`,"text/html").body;const qs=t=>Ms(Hs(t).childNodes);const Ks=t=>Hs(t).firstElementChild;const Zs=(t,e)=>t.replaceWith(e);const Xs=(t,e,n)=>t.insertBefore(e,n);const Qs=(t,e)=>t.appendChild(e);const tr=Cs.ELEMENT_NODE;const er=Cs.TEXT_NODE;const nr=Cs.CDATA_SECTION_NODE;const sr=Cs.COMMENT_NODE;const rr=Cs.DOCUMENT_NODE;const ir=Cs.DOCUMENT_TYPE_NODE;const or=Cs.DOCUMENT_FRAGMENT_NODE;const cr=(t,e)=>t.nodeType===e;const lr=(t,e)=>{let n=e.parentNode;while(n&&n!==t){n=n.parentNode}return n===t};var hr=n(20817);const ar=ms();const ur=ms();const dr=ms();const fr=ms();const gr=ms();const pr=ms();const wr=ms();const mr=ms();const yr=ms();const br={[ar]:ks("font-weight","bold"),[ur]:ks("font-weight","normal"),[dr]:ks("color","blue"),[gr]:ks("color","green"),[fr]:ks("color","grey"),[pr]:ks("color","red"),[wr]:ks("color","purple"),[mr]:ks("color","orange"),[yr]:ks("color","black")};const kr={[ar]:"",[ur]:"",[dr]:"",[gr]:"",[fr]:"",[pr]:"",[wr]:"",[mr]:"",[yr]:""};const _r=t=>{const e=[];const n=[];const s=o.Ue();let r=[];let i=0;for(;i0||t.length>0){e.push("%c"+r);n.push(t)}else{e.push(r)}}else{break}}}if(i>0){r=n;r.unshift(e.join(""))}for(;i{const e=[];const n=[];let s=0;for(;s0){n.push(e.join(""))}for(;s{const e=[];const n=[];let s=0;for(;s0){e.push("");n.push(e.join(""))}for(;s{console.log(...Cr(t));Nr.forEach((e=>e.print(t)))};const Ar=(...t)=>{console.warn(...Cr(t));t.unshift(mr);Nr.forEach((e=>e.print(t)))};const vr=t=>{console.error(t);Nr.forEach((e=>e.printError(t)))};const xr=(t,e)=>{if(env.isBrowser){console.log("%c ",`font-size: ${e}px; background-size: contain; background-repeat: no-repeat; background-image: url(${t})`)}Nr.forEach((n=>n.printImg(t,e)))};const Ur=(t,e)=>xr(`data:image/gif;base64,${t}`,e);const Tr=(...t)=>{console.group(...Cr(t));Nr.forEach((e=>e.group(t)))};const Ir=(...t)=>{console.groupCollapsed(...Cr(t));Nr.forEach((e=>e.groupCollapsed(t)))};const Mr=()=>{console.groupEnd();Nr.forEach((t=>t.groupEnd()))};const Or=t=>Nr.forEach((e=>e.printDom(t())));const Lr=(t,e)=>xr(t.toDataURL(),e);const Nr=ws.Ue();const Rr=t=>{const e=[];const n=new Map;let s=0;for(;s{const n=dom.element("span",[pair.create("hidden",e),pair.create("style","color:grey;font-size:120%;")],[dom.text("▼")]);const s=dom.element("span",[pair.create("hidden",!e),pair.create("style","color:grey;font-size:125%;")],[dom.text("▶")]);const r=dom.element("div",[pair.create("style",`${Pr};padding-left:${this.depth*10}px`)],[n,s,dom.text(" ")].concat(Rr(t)));const i=dom.element("div",[pair.create("hidden",e)]);const o=dom.element("div",[],[r,i]);dom.append(this.ccontainer,[o]);this.ccontainer=i;this.depth++;dom.addEventListener(r,"click",(t=>{i.toggleAttribute("hidden");n.toggleAttribute("hidden");s.toggleAttribute("hidden")}))}))}groupCollapsed(t){this.group(t,true)}groupEnd(){eventloop.enqueue((()=>{if(this.depth>0){this.depth--;this.ccontainer=this.ccontainer.parentElement.parentElement}}))}print(t){eventloop.enqueue((()=>{dom.append(this.ccontainer,[dom.element("div",[pair.create("style",`${Pr};padding-left:${this.depth*10}px`)],Rr(t))])}))}printError(t){this.print([pr,ar,t.toString()])}printImg(t,e){eventloop.enqueue((()=>{dom.append(this.ccontainer,[dom.element("img",[pair.create("src",t),pair.create("height",`${math.round(e*1.5)}px`)])])}))}printDom(t){eventloop.enqueue((()=>{dom.append(this.ccontainer,[t])}))}destroy(){eventloop.enqueue((()=>{Nr.delete(this)}))}}const Fr=t=>new Vr(t);const Br=[gr,wr,mr,dr];let jr=0;let $r=hr.ZG();const Jr=t=>{const e=Br[jr];const n=env.getVariable("log");const s=n!==null&&(n==="*"||n==="true"||new RegExp(n,"gi").test(t));jr=(jr+1)%Br.length;t+=": ";return!s?func.nop:(...n)=>{const s=time.getUnixTime();const r=s-$r;$r=s;Dr(e,t,yr,...n.map((t=>typeof t==="string"||typeof t==="symbol"?t:JSON.stringify(t))),e," +"+r+"ms")}};const Wr=(t,e)=>({[Symbol.iterator](){return this},next(){const n=t.next();return{value:n.done?undefined:e(n.value),done:n.done}}});const zr=t=>({[Symbol.iterator](){return this},next:t});const Gr=(t,e)=>zr((()=>{let n;do{n=t.next()}while(!n.done&&!e(n.value));return n}));const Yr=(t,e)=>zr((()=>{const{done:n,value:s}=t.next();return{done:n,value:n?undefined:e(s)}}));var Hr=n(59735);class qr extends s.y{constructor(t,e){super();this.doc=t;this.awareness=e}}class Kr{constructor(t,e){this.clock=t;this.len=e}}class Zr{constructor(){this.clients=new Map}}const Xr=(t,e,n)=>e.clients.forEach(((e,s)=>{const r=t.doc.store.clients.get(s);for(let i=0;i{let n=0;let s=t.length-1;while(n<=s){const r=i.GW((n+s)/2);const o=t[r];const c=o.clock;if(c<=e){if(e{const n=t.clients.get(e.client);return n!==undefined&&Qr(n,e.clock)!==null};const ei=t=>{t.clients.forEach((t=>{t.sort(((t,e)=>t.clock-e.clock));let e,n;for(e=1,n=1;e=r.clock){s.len=i.Fp(s.len,r.clock+r.len-s.clock)}else{if(n{const e=new Zr;for(let n=0;n{if(!e.clients.has(i)){const o=s.slice();for(let e=n+1;e{o.Yu(t.clients,e,(()=>[])).push(new Kr(n,s))};const ri=()=>new Zr;const ii=t=>{const e=ri();t.clients.forEach(((t,n)=>{const s=[];for(let e=0;e0){e.clients.set(n,s)}}));return e};const oi=(t,e)=>{Re(t.restEncoder,e.clients.size);r.Dp(e.clients.entries()).sort(((t,e)=>e[0]-t[0])).forEach((([e,n])=>{t.resetDsCurVal();Re(t.restEncoder,e);const s=n.length;Re(t.restEncoder,s);for(let r=0;r{const e=new Zr;const n=Tn(t.restDecoder);for(let s=0;s0){const r=o.Yu(e.clients,n,(()=>[]));for(let e=0;e{const s=new Zr;const r=Tn(t.restDecoder);for(let i=0;i0){const t=new yi;Re(t.restEncoder,0);oi(t,s);return t.toUint8Array()}return null};const hi=ns;class ai extends s.y{constructor({guid:t=os(),collectionid:e=null,gc:n=true,gcFilter:s=(()=>true),meta:r=null,autoLoad:i=false,shouldLoad:o=true}={}){super();this.gc=n;this.gcFilter=s;this.clientID=hi();this.guid=t;this.collectionid=e;this.share=new Map;this.store=new Eo;this._transaction=null;this._transactionCleanups=[];this.subdocs=new Set;this._item=null;this.shouldLoad=o;this.autoLoad=i;this.meta=r;this.isLoaded=false;this.isSynced=false;this.whenLoaded=cs((t=>{this.on("load",(()=>{this.isLoaded=true;t(this)}))}));const c=()=>cs((t=>{const e=n=>{if(n===undefined||n===true){this.off("sync",e);t()}};this.on("sync",e)}));this.on("sync",(t=>{if(t===false&&this.isSynced){this.whenSynced=c()}this.isSynced=t===undefined||t===true;if(!this.isLoaded){this.emit("load",[])}}));this.whenSynced=c()}load(){const t=this._item;if(t!==null&&!this.shouldLoad){Jo(t.parent.doc,(t=>{t.subdocsLoaded.add(this)}),null,true)}this.shouldLoad=true}getSubdocs(){return this.subdocs}getSubdocGuids(){return new Set(r.Dp(this.subdocs).map((t=>t.guid)))}transact(t,e=null){Jo(this,t,e)}get(t,e=xc){const n=o.Yu(this.share,t,(()=>{const t=new e;t._integrate(this,null);return t}));const s=n.constructor;if(e!==xc&&s!==e){if(s===xc){const s=new e;s._map=n._map;n._map.forEach((t=>{for(;t!==null;t=t.left){t.parent=s}}));s._start=n._start;for(let t=s._start;t!==null;t=t.right){t.parent=s}s._length=n._length;this.share.set(t,s);s._integrate(this,null);return s}else{throw new Error(`Type with the name ${t} has already been defined with a different constructor`)}}return n}getArray(t=""){return this.get(t,qc)}getText(t=""){return this.get(t,pl)}getMap(t=""){return this.get(t,Xc)}getXmlFragment(t=""){return this.get(t,yl)}toJSON(){const t={};this.share.forEach(((e,n)=>{t[n]=e.toJSON()}));return t}destroy(){r.Dp(this.subdocs).forEach((t=>t.destroy()));const t=this._item;if(t!==null){this._item=null;const e=t.content;e.doc=new ai({guid:this.guid,...e.opts,shouldLoad:false});e.doc._item=t;Jo(t.parent.doc,(n=>{const s=e.doc;if(!t.deleted){n.subdocsAdded.add(s)}n.subdocsRemoved.add(this)}),null,true)}this.emit("destroyed",[true]);this.emit("destroy",[this]);super.destroy()}on(t,e){super.on(t,e)}off(t,e){super.off(t,e)}}class ui{constructor(t){this.restDecoder=t}resetDsCurVal(){}readDsClock(){return Tn(this.restDecoder)}readDsLen(){return Tn(this.restDecoder)}}class di extends ui{readLeftID(){return Wi(Tn(this.restDecoder),Tn(this.restDecoder))}readRightID(){return Wi(Tn(this.restDecoder),Tn(this.restDecoder))}readClient(){return Tn(this.restDecoder)}readInfo(){return En(this.restDecoder)}readString(){return Rn(this.restDecoder)}readParentInfo(){return Tn(this.restDecoder)===1}readTypeRef(){return Tn(this.restDecoder)}readLen(){return Tn(this.restDecoder)}readAny(){return Wn(this.restDecoder)}readBuf(){return et(kn(this.restDecoder))}readJSON(){return JSON.parse(Rn(this.restDecoder))}readKey(){return Rn(this.restDecoder)}}class fi{constructor(t){this.dsCurrVal=0;this.restDecoder=t}resetDsCurVal(){this.dsCurrVal=0}readDsClock(){this.dsCurrVal+=Tn(this.restDecoder);return this.dsCurrVal}readDsLen(){const t=Tn(this.restDecoder)+1;this.dsCurrVal+=t;return t}}class gi extends fi{constructor(t){super(t);this.keys=[];Tn(t);this.keyClockDecoder=new Kn(kn(t));this.clientDecoder=new Hn(kn(t));this.leftClockDecoder=new Kn(kn(t));this.rightClockDecoder=new Kn(kn(t));this.infoDecoder=new zn(kn(t),En);this.stringDecoder=new Zn(kn(t));this.parentInfoDecoder=new zn(kn(t),En);this.typeRefDecoder=new Hn(kn(t));this.lenDecoder=new Hn(kn(t))}readLeftID(){return new $i(this.clientDecoder.read(),this.leftClockDecoder.read())}readRightID(){return new $i(this.clientDecoder.read(),this.rightClockDecoder.read())}readClient(){return this.clientDecoder.read()}readInfo(){return this.infoDecoder.read()}readString(){return this.stringDecoder.read()}readParentInfo(){return this.parentInfoDecoder.read()===1}readTypeRef(){return this.typeRefDecoder.read()}readLen(){return this.lenDecoder.read()}readAny(){return Wn(this.restDecoder)}readBuf(){return kn(this.restDecoder)}readJSON(){return Wn(this.restDecoder)}readKey(){const t=this.keyClockDecoder.read();if(t{s=i.Fp(s,e[0].id.clock);const r=vo(e,s);Re(t.restEncoder,e.length-r);t.writeClient(n);Re(t.restEncoder,s);const o=e[r];o.write(t,s-o.id.clock);for(let i=r+1;i{const s=new Map;n.forEach(((t,n)=>{if(Do(e,n)>t){s.set(n,t)}}));Co(e).forEach(((t,e)=>{if(!n.has(e)){s.set(e,0)}}));Re(t.restEncoder,s.size);r.Dp(s.entries()).sort(((t,e)=>e[0]-t[0])).forEach((([n,s])=>{bi(t,e.clients.get(n),n,s)}))};const _i=(t,e)=>{const n=o.Ue();const s=Tn(t.restDecoder);for(let r=0;r{const s=[];let i=r.Dp(n.keys()).sort(((t,e)=>t-e));if(i.length===0){return null}const c=()=>{if(i.length===0){return null}let t=n.get(i[i.length-1]);while(t.refs.length===t.i){i.pop();if(i.length>0){t=n.get(i[i.length-1])}else{return null}}return t};let l=c();if(l===null&&s.length===0){return null}const h=new Eo;const a=new Map;const u=(t,e)=>{const n=a.get(t);if(n==null||n>e){a.set(t,e)}};let d=l.refs[l.i++];const f=new Map;const g=()=>{for(const t of s){const e=t.id.client;const s=n.get(e);if(s){s.i--;h.clients.set(e,s.refs.slice(s.i));n.delete(e);s.i=0;s.refs=[]}else{h.clients.set(e,[t])}i=i.filter((t=>t!==e))}s.length=0};while(true){if(d.constructor!==uh){const r=o.Yu(f,d.id.client,(()=>Do(e,d.id.client)));const i=r-d.id.clock;if(i<0){s.push(d);u(d.id.client,d.id.clock-1);g()}else{const r=d.getMissing(t,e);if(r!==null){s.push(d);const t=n.get(r)||{refs:[],i:0};if(t.refs.length===t.i){u(r,Do(e,r));g()}else{d=t.refs[t.i++];continue}}else if(i===0||i0){d=s.pop()}else if(l!==null&&l.i0){const t=new yi;ki(t,h,new Map);Re(t.restEncoder,0);return{missing:a,update:t.toUint8Array()}}return null};const Ei=(t,e)=>ki(t,e.doc.store,e.beforeState);const Ci=(t,e,n,s=new gi(t))=>Jo(e,(t=>{t.local=false;let e=false;const n=t.doc;const r=n.store;const i=_i(s,n);const o=Si(t,r,i);const c=r.pendingStructs;if(c){for(const[t,n]of c.missing){if(ne){c.missing.set(t,e)}}c.update=cc([c.update,o.update])}}else{r.pendingStructs=o}const l=li(s,t,r);if(r.pendingDs){const e=new gi(wn(r.pendingDs));Tn(e.restDecoder);const n=li(e,t,r);if(l&&n){r.pendingDs=cc([l,n])}else{r.pendingDs=l||n}}else{r.pendingDs=l}if(e){const e=r.pendingStructs.update;r.pendingStructs=null;Ai(t.doc,e)}}),n,false);const Di=(t,e,n)=>Ci(t,e,n,new di(t));const Ai=(t,e,n,s=gi)=>{const r=wn(e);Ci(r,t,n,new s(r))};const vi=(t,e,n)=>Ai(t,e,n,di);const xi=(t,e,n=new Map)=>{ki(t,e.store,n);oi(t,ii(e.store))};const Ui=(t,e=new Uint8Array([0]),n=new yi)=>{const s=Mi(e);xi(n,t,s);const r=[n.toUint8Array()];if(t.store.pendingDs){r.push(t.store.pendingDs)}if(t.store.pendingStructs){r.push(lc(t.store.pendingStructs.update,e))}if(r.length>1){if(n.constructor===wi){return ec(r.map(((t,e)=>e===0?t:pc(t))))}else if(n.constructor===yi){return cc(r)}}return r[0]};const Ti=(t,e)=>Ui(t,e,new wi);const Ii=t=>{const e=new Map;const n=Tn(t.restDecoder);for(let s=0;sIi(new ui(wn(t)));const Oi=(t,e)=>{Re(t.restEncoder,e.size);r.Dp(e.entries()).sort(((t,e)=>e[0]-t[0])).forEach((([e,n])=>{Re(t.restEncoder,e);Re(t.restEncoder,n)}));return t};const Li=(t,e)=>Oi(t,Co(e.store));const Ni=(t,e=new mi)=>{if(t instanceof Map){Oi(e,t)}else{Li(e,t)}return e.toUint8Array()};const Ri=t=>Ni(t,new pi);class Pi{constructor(){this.l=[]}}const Vi=()=>new Pi;const Fi=(t,e)=>t.l.push(e);const Bi=(t,e)=>{const n=t.l;const s=n.length;t.l=n.filter((t=>e!==t));if(s===t.l.length){console.error("[yjs] Tried to remove event handler that doesn't exist.")}};const ji=(t,e,n)=>T.PP(t.l,[e,n]);class $i{constructor(t,e){this.client=t;this.clock=e}}const Ji=(t,e)=>t===e||t!==null&&e!==null&&t.client===e.client&&t.clock===e.clock;const Wi=(t,e)=>new $i(t,e);const zi=(t,e)=>{Re(t,e.client);Re(t,e.clock)};const Gi=t=>Wi(Tn(t),Tn(t));const Yi=t=>{for(const[e,n]of t.doc.share.entries()){if(n===t){return e}}throw dn()};const Hi=(t,e)=>{while(e!==null){if(e.parent===t){return true}e=e.parent._item}return false};const qi=t=>{const e=[];let n=t._start;while(n){e.push(n);n=n.right}console.log("Children: ",e);console.log("Children content: ",e.filter((t=>!t.deleted)).map((t=>t.content)))};class Ki{constructor(t,e=t.getMap("users")){const n=new Map;this.yusers=e;this.doc=t;this.clients=new Map;this.dss=n;const s=(t,e)=>{const n=t.get("ds");const s=t.get("ids");const r=t=>this.clients.set(t,e);n.observe((t=>{t.changes.added.forEach((t=>{t.content.getContent().forEach((t=>{if(t instanceof Uint8Array){this.dss.set(e,ni([this.dss.get(e)||ri(),ci(new ui(wn(t)))]))}}))}))}));this.dss.set(e,ni(n.map((t=>ci(new ui(wn(t)))))));s.observe((t=>t.changes.added.forEach((t=>t.content.getContent().forEach(r)))));s.forEach(r)};e.observe((t=>{t.keysChanged.forEach((t=>s(e.get(t),t)))}));e.forEach(s)}setUserMapping(t,e,n,{filter:s=(()=>true)}={}){const r=this.yusers;let i=r.get(n);if(!i){i=new Xc;i.set("ids",new qc);i.set("ds",new qc);r.set(n,i)}i.get("ids").push([e]);r.observe((t=>{setTimeout((()=>{const t=r.get(n);if(t!==i){i=t;this.clients.forEach(((t,e)=>{if(n===t){i.get("ids").push([e])}}));const e=new pi;const s=this.dss.get(n);if(s){oi(e,s);i.get("ds").push([e.toUint8Array()])}}}),0)}));t.on("afterTransaction",(t=>{setTimeout((()=>{const e=i.get("ds");const n=t.deleteSet;if(t.local&&n.clients.size>0&&s(t,n)){const t=new pi;oi(t,n);e.push([t.toUint8Array()])}}))}))}getUserByClientId(t){return this.clients.get(t)||null}getUserByDeletedId(t){for(const[e,n]of this.dss.entries()){if(ti(n,t)){return e}}return null}}class Zi{constructor(t,e,n,s=0){this.type=t;this.tname=e;this.item=n;this.assoc=s}}const Xi=t=>{const e={};if(t.type){e.type=t.type}if(t.tname){e.tname=t.tname}if(t.item){e.item=t.item}if(t.assoc!=null){e.assoc=t.assoc}return e};const Qi=t=>new Zi(t.type==null?null:Wi(t.type.client,t.type.clock),t.tname||null,t.item==null?null:Wi(t.item.client,t.item.clock),t.assoc==null?0:t.assoc);class to{constructor(t,e,n=0){this.type=t;this.index=e;this.assoc=n}}const eo=(t,e,n=0)=>new to(t,e,n);const no=(t,e,n)=>{let s=null;let r=null;if(t._item===null){r=Yi(t)}else{s=Wi(t._item.id.client,t._item.id.clock)}return new Zi(s,r,e,n)};const so=(t,e,n=0)=>{let s=t._start;if(n<0){if(e===0){return no(t,null,n)}e--}while(s!==null){if(!s.deleted&&s.countable){if(s.length>e){return no(t,Wi(s.id.client,s.id.clock+e),n)}e-=s.length}if(s.right===null&&n<0){return no(t,s.lastId,n)}s=s.right}return no(t,null,n)};const ro=(t,e)=>{const{type:n,tname:s,item:r,assoc:i}=e;if(r!==null){Re(t,0);zi(t,r)}else if(s!==null){Ue(t,1);$e(t,s)}else if(n!==null){Ue(t,2);zi(t,n)}else{throw dn()}Pe(t,i);return t};const io=t=>{const e=Ee();ro(e,t);return De(e)};const oo=t=>{let e=null;let n=null;let s=null;switch(Tn(t)){case 0:s=Gi(t);break;case 1:n=Rn(t);break;case 2:{e=Gi(t)}}const r=mn(t)?In(t):0;return new Zi(e,n,s,r)};const co=t=>oo(wn(t));const lo=(t,e)=>{const n=e.store;const s=t.item;const r=t.type;const i=t.tname;const o=t.assoc;let c=null;let l=0;if(s!==null){if(Do(n,s.client)<=s.clock){return null}const t=sh(n,s);const e=t.item;if(!(e instanceof ch)){return null}c=e.parent;if(c._item===null||!c._item.deleted){l=e.deleted||!e.countable?0:t.diff+(o>=0?0:1);let n=e.left;while(n!==null){if(!n.deleted&&n.countable){l+=n.length}n=n.left}}}else{if(i!==null){c=e.get(i)}else if(r!==null){if(Do(n,r.client)<=r.clock){return null}const{item:t}=sh(n,r);if(t instanceof ch&&t.content instanceof eh){c=t.content.type}else{return null}}else{throw dn()}if(o>=0){l=c._length}else{l=0}}return eo(c,l,t.assoc)};const ho=(t,e)=>t===e||t!==null&&e!==null&&t.tname===e.tname&&Ji(t.item,e.item)&&Ji(t.type,e.type)&&t.assoc===e.assoc;class ao{constructor(t,e){this.ds=t;this.sv=e}}const uo=(t,e)=>{const n=t.ds.clients;const s=e.ds.clients;const r=t.sv;const i=e.sv;if(r.size!==i.size||n.size!==s.size){return false}for(const[o,c]of r.entries()){if(i.get(o)!==c){return false}}for(const[o,c]of n.entries()){const t=s.get(o)||[];if(c.length!==t.length){return false}for(let e=0;e{oi(e,t.ds);Oi(e,t.sv);return e.toUint8Array()};const go=t=>fo(t,new pi);const po=(t,e=new fi(wn(t)))=>new ao(ci(e),Ii(e));const wo=t=>po(t,new ui(wn(t)));const mo=(t,e)=>new ao(t,e);const yo=mo(ri(),new Map);const bo=t=>mo(ii(t.store),Co(t.store));const ko=(t,e)=>e===undefined?!t.deleted:e.sv.has(t.id.client)&&(e.sv.get(t.id.client)||0)>t.id.clock&&!ti(e.ds,t.id);const _o=(t,e)=>{const n=o.Yu(t.meta,_o,ws.Ue);const s=t.doc.store;if(!n.has(e)){e.sv.forEach(((e,n)=>{if(e{}));n.add(e)}};const So=(t,e,n=new ai)=>{if(t.gc){throw new Error("originDoc must not be garbage collected")}const{sv:s,ds:r}=e;const i=new yi;t.transact((e=>{let n=0;s.forEach((t=>{if(t>0){n++}}));Re(i.restEncoder,n);for(const[r,o]of s){if(o===0){continue}if(o{const e=new Map;t.clients.forEach(((t,n)=>{const s=t[t.length-1];e.set(n,s.id.clock+s.length)}));return e};const Do=(t,e)=>{const n=t.clients.get(e);if(n===undefined){return 0}const s=n[n.length-1];return s.id.clock+s.length};const Ao=(t,e)=>{let n=t.clients.get(e.id.client);if(n===undefined){n=[];t.clients.set(e.id.client,n)}else{const t=n[n.length-1];if(t.id.clock+t.length!==e.id.clock){throw dn()}}n.push(e)};const vo=(t,e)=>{let n=0;let s=t.length-1;let r=t[s];let o=r.id.clock;if(o===e){return s}let c=i.GW(e/(o+r.length-1)*s);while(n<=s){r=t[c];o=r.id.clock;if(o<=e){if(e{const n=t.clients.get(e.client);return n[vo(n,e.clock)]};const Uo=xo;const To=(t,e,n)=>{const s=vo(e,n);const r=e[s];if(r.id.clock{const n=t.doc.store.clients.get(e.client);return n[To(t,n,e.clock)]};const Mo=(t,e,n)=>{const s=e.clients.get(n.client);const r=vo(s,n.clock);const i=s[r];if(n.clock!==i.id.clock+i.length-1&&i.constructor!==Ul){s.splice(r+1,0,ih(t,i,n.clock-i.id.clock+1))}return i};const Oo=(t,e,n)=>{const s=t.clients.get(e.id.client);s[vo(s,e.id.clock)]=n};const Lo=(t,e,n,s,r)=>{if(s===0){return}const i=n+s;let o=To(t,e,n);let c;do{c=e[o++];if(i{if(e.deleteSet.clients.size===0&&!o.Yj(e.afterState,((t,n)=>e.beforeState.get(n)!==t))){return false}ei(e.deleteSet);Ei(t,e);oi(t,e.deleteSet);return true};const Po=(t,e,n)=>{const s=e._item;if(s===null||s.id.clock<(t.beforeState.get(s.id.client)||0)&&!s.deleted){o.Yu(t.changed,e,ws.Ue).add(n)}};const Vo=(t,e)=>{const n=t[e-1];const s=t[e];if(n.deleted===s.deleted&&n.constructor===s.constructor){if(n.mergeWith(s)){t.splice(e,1);if(s instanceof ch&&s.parentSub!==null&&s.parent._map.get(s.parentSub)===s){s.parent._map.set(s.parentSub,n)}}}};const Fo=(t,e,n)=>{for(const[s,r]of t.clients.entries()){const t=e.clients.get(s);for(let s=r.length-1;s>=0;s--){const i=r[s];const o=i.clock+i.len;for(let s=vo(t,i.clock),r=t[s];s{t.clients.forEach(((t,n)=>{const s=e.clients.get(n);for(let e=t.length-1;e>=0;e--){const n=t[e];const r=i.VV(s.length-1,1+vo(s,n.clock+n.len-1));for(let t=r,e=s[t];t>0&&e.id.clock>=n.clock;e=s[--t]){Vo(s,t)}}}))};const jo=(t,e,n)=>{Fo(t,e,n);Bo(t,e)};const $o=(t,e)=>{if(et.push((()=>{if(s._item===null||!s._item.deleted){s._callObserver(n,e)}}))));t.push((()=>{n.changedParentTypes.forEach(((e,s)=>t.push((()=>{if(s._item===null||!s._item.deleted){e=e.filter((t=>t.target._item===null||!t.target._item.deleted));e.forEach((t=>{t.currentTarget=s}));e.sort(((t,e)=>t.path.length-e.path.length));ji(s._dEH,e,n)}}))));t.push((()=>s.emit("afterTransaction",[n,s])))}));(0,T.PP)(t,[])}finally{if(s.gc){Fo(o,r,s.gcFilter)}Bo(o,r);n.afterState.forEach(((t,e)=>{const s=n.beforeState.get(e)||0;if(s!==t){const t=r.clients.get(e);const n=i.Fp(vo(t,s),1);for(let e=t.length-1;e>=n;e--){Vo(t,e)}}}));for(let t=0;t0){Vo(s,i)}}if(!n.local&&n.afterState.get(s.clientID)!==n.beforeState.get(s.clientID)){Dr(mr,ar,"[yjs] ",ur,pr,"Changed the client-id because another client seems to be using it.");s.clientID=hi()}s.emit("afterTransactionCleanup",[n,s]);if(s._observers.has("update")){const t=new wi;const e=Ro(t,n);if(e){s.emit("update",[t.toUint8Array(),n.origin,s,n])}}if(s._observers.has("updateV2")){const t=new yi;const e=Ro(t,n);if(e){s.emit("updateV2",[t.toUint8Array(),n.origin,s,n])}}const{subdocsAdded:l,subdocsLoaded:h,subdocsRemoved:a}=n;if(l.size>0||a.size>0||h.size>0){l.forEach((t=>{t.clientID=s.clientID;if(t.collectionid==null){t.collectionid=s.collectionid}s.subdocs.add(t)}));a.forEach((t=>s.subdocs.delete(t)));s.emit("subdocs",[{loaded:h,added:l,removed:a},s,n]);a.forEach((t=>t.destroy()))}if(t.length<=e+1){s._transactionCleanups=[];s.emit("afterAllTransactions",[s,t])}else{$o(t,e+1)}}}};const Jo=(t,e,n=null,s=true)=>{const r=t._transactionCleanups;let i=false;let o=null;if(t._transaction===null){i=true;t._transaction=new No(t,n,s);r.push(t._transaction);if(r.length===1){t.emit("beforeAllTransactions",[t])}t.emit("beforeTransaction",[t._transaction,t])}try{o=e(t._transaction)}finally{if(i){const e=t._transaction===r[0];t._transaction=null;if(e){$o(r,0)}}}return o};class Wo{constructor(t,e){this.insertions=e;this.deletions=t;this.meta=new Map}}const zo=(t,e,n)=>{Xr(t,n.deletions,(t=>{if(t instanceof ch&&e.scope.some((e=>Hi(e,t)))){rh(t,false)}}))};const Go=(t,e,n)=>{let s=null;let r=null;const i=t.doc;const o=t.scope;Jo(i,(n=>{while(e.length>0&&s===null){const r=i.store;const c=e.pop();const l=new Set;const h=[];let a=false;Xr(n,c.insertions,(t=>{if(t instanceof ch){if(t.redone!==null){let{item:e,diff:s}=sh(r,t.id);if(s>0){e=Io(n,Wi(e.id.client,e.id.clock+s))}t=e}if(!t.deleted&&o.some((e=>Hi(e,t)))){h.push(t)}}}));Xr(n,c.deletions,(t=>{if(t instanceof ch&&o.some((e=>Hi(e,t)))&&!ti(c.insertions,t.id)){l.add(t)}}));l.forEach((e=>{a=oh(n,e,l,c.insertions,t.ignoreRemoteMapChanges)!==null||a}));for(let e=h.length-1;e>=0;e--){const s=h[e];if(t.deleteFilter(s)){s.delete(n);a=true}}s=a?c:null}n.changed.forEach(((t,e)=>{if(t.has(null)&&e._searchMarker){e._searchMarker.length=0}}));r=n}),t);if(s!=null){const e=r.changedParentTypes;t.emit("stack-item-popped",[{stackItem:s,type:n,changedParentTypes:e},t])}return s};class Yo extends s.y{constructor(t,{captureTimeout:e=500,captureTransaction:n=(t=>true),deleteFilter:s=(()=>true),trackedOrigins:i=new Set([null]),ignoreRemoteMapChanges:o=false,doc:c=(r.kJ(t)?t[0].doc:t.doc)}={}){super();this.scope=[];this.addToScope(t);this.deleteFilter=s;i.add(this);this.trackedOrigins=i;this.captureTransaction=n;this.undoStack=[];this.redoStack=[];this.undoing=false;this.redoing=false;this.doc=c;this.lastChange=0;this.ignoreRemoteMapChanges=o;this.captureTimeout=e;this.afterTransactionHandler=t=>{if(!this.captureTransaction(t)||!this.scope.some((e=>t.changedParentTypes.has(e)))||!this.trackedOrigins.has(t.origin)&&(!t.origin||!this.trackedOrigins.has(t.origin.constructor))){return}const e=this.undoing;const n=this.redoing;const s=e?this.redoStack:this.undoStack;if(e){this.stopCapturing()}else if(!n){this.clear(false,true)}const r=new Zr;t.afterState.forEach(((e,n)=>{const s=t.beforeState.get(n)||0;const i=e-s;if(i>0){si(r,n,s,i)}}));const i=hr.ZG();let o=false;if(this.lastChange>0&&i-this.lastChange0&&!e&&!n){const e=s[s.length-1];e.deletions=ni([e.deletions,t.deleteSet]);e.insertions=ni([e.insertions,r])}else{s.push(new Wo(t.deleteSet,r));o=true}if(!e&&!n){this.lastChange=i}Xr(t,t.deleteSet,(t=>{if(t instanceof ch&&this.scope.some((e=>Hi(e,t)))){rh(t,true)}}));const c=[{stackItem:s[s.length-1],origin:t.origin,type:e?"redo":"undo",changedParentTypes:t.changedParentTypes},this];if(o){this.emit("stack-item-added",c)}else{this.emit("stack-item-updated",c)}};this.doc.on("afterTransaction",this.afterTransactionHandler);this.doc.on("destroy",(()=>{this.destroy()}))}addToScope(t){t=r.kJ(t)?t:[t];t.forEach((t=>{if(this.scope.every((e=>e!==t))){this.scope.push(t)}}))}addTrackedOrigin(t){this.trackedOrigins.add(t)}removeTrackedOrigin(t){this.trackedOrigins.delete(t)}clear(t=true,e=true){if(t&&this.canUndo()||e&&this.canRedo()){this.doc.transact((n=>{if(t){this.undoStack.forEach((t=>zo(n,this,t)));this.undoStack=[]}if(e){this.redoStack.forEach((t=>zo(n,this,t)));this.redoStack=[]}this.emit("stack-cleared",[{undoStackCleared:t,redoStackCleared:e}])}))}}stopCapturing(){this.lastChange=0}undo(){this.undoing=true;let t;try{t=Go(this,this.undoStack,"undo")}finally{this.undoing=false}return t}redo(){this.redoing=true;let t;try{t=Go(this,this.redoStack,"redo")}finally{this.redoing=false}return t}canUndo(){return this.undoStack.length>0}canRedo(){return this.redoStack.length>0}destroy(){this.trackedOrigins.delete(this);this.doc.off("afterTransaction",this.afterTransactionHandler);super.destroy()}}function*Ho(t){const e=Tn(t.restDecoder);for(let n=0;nZo(t,di);const Zo=(t,e=gi)=>{const n=[];const s=new e(wn(t));const r=new qo(s,false);for(let o=r.curr;o!==null;o=r.next()){n.push(o)}Dr("Structs: ",n);const i=ci(s);Dr("DeleteSet: ",i)};const Xo=t=>Qo(t,di);const Qo=(t,e=gi)=>{const n=[];const s=new e(wn(t));const r=new qo(s,false);for(let i=r.curr;i!==null;i=r.next()){n.push(i)}return{structs:n,ds:ci(s)}};class tc{constructor(t){this.currClient=0;this.startClock=0;this.written=0;this.encoder=t;this.clientStructs=[]}}const ec=t=>cc(t,di,wi);const nc=(t,e=mi,n=gi)=>{const s=new e;const r=new qo(new n(wn(t)),false);let i=r.curr;if(i!==null){let t=0;let e=i.id.client;let n=i.id.clock!==0;let o=n?0:i.id.clock+i.length;for(;i!==null;i=r.next()){if(e!==i.id.client){if(o!==0){t++;Re(s.restEncoder,e);Re(s.restEncoder,o)}e=i.id.client;o=0;n=i.id.clock!==0}if(i.constructor===uh){n=true}if(!n){o=i.id.clock+i.length}}if(o!==0){t++;Re(s.restEncoder,e);Re(s.restEncoder,o)}const c=Ee();Re(c,t);Je(c,s.restEncoder);s.restEncoder=c;return s.toUint8Array()}else{Re(s.restEncoder,0);return s.toUint8Array()}};const sc=t=>nc(t,pi,di);const rc=(t,e=gi)=>{const n=new Map;const s=new Map;const r=new qo(new e(wn(t)),false);let i=r.curr;if(i!==null){let t=i.id.client;let e=i.id.clock;n.set(t,e);for(;i!==null;i=r.next()){if(t!==i.id.client){s.set(t,e);n.set(i.id.client,i.id.clock);t=i.id.client}e=i.id.clock+i.length}s.set(t,e)}return{from:n,to:s}};const ic=t=>rc(t,di);const oc=(t,e)=>{if(t.constructor===Ul){const{client:n,clock:s}=t.id;return new Ul(Wi(n,s+e),t.length-e)}else if(t.constructor===uh){const{client:n,clock:s}=t.id;return new uh(Wi(n,s+e),t.length-e)}else{const n=t;const{client:s,clock:r}=n.id;return new ch(Wi(s,r+e),null,Wi(s,r+e-1),null,n.rightOrigin,n.parent,n.parentSub,n.content.splice(e))}};const cc=(t,e=gi,n=yi)=>{if(t.length===1){return t[0]}const s=t.map((t=>new e(wn(t))));let r=s.map((t=>new qo(t,true)));let i=null;const o=new n;const c=new tc(o);while(true){r=r.filter((t=>t.curr!==null));r.sort(((t,e)=>{if(t.curr.id.client===e.curr.id.client){const n=t.curr.id.clock-e.curr.id.clock;if(n===0){return t.curr.constructor===e.curr.constructor?0:t.curr.constructor===uh?1:-1}else{return n}}else{return e.curr.id.client-t.curr.id.client}}));if(r.length===0){break}const t=r[0];const e=t.curr.id.client;if(i!==null){let n=t.curr;let s=false;while(n!==null&&n.id.clock+n.length<=i.struct.id.clock+i.struct.length&&n.id.client>=i.struct.id.client){n=t.next();s=true}if(n===null||n.id.client!==e||s&&n.id.clock>i.struct.id.clock+i.struct.length){continue}if(e!==i.struct.id.client){uc(c,i.struct,i.offset);i={struct:n,offset:0};t.next()}else{if(i.struct.id.clock+i.struct.length0){if(i.struct.constructor===uh){i.struct.length-=e}else{n=oc(n,e)}}if(!i.struct.mergeWith(n)){uc(c,i.struct,i.offset);i={struct:n,offset:0};t.next()}}}}else{i={struct:t.curr,offset:0};t.next()}for(let n=t.curr;n!==null&&n.id.client===e&&n.id.clock===i.struct.id.clock+i.struct.length&&n.constructor!==uh;n=t.next()){uc(c,i.struct,i.offset);i={struct:n,offset:0}}}if(i!==null){uc(c,i.struct,i.offset);i=null}dc(c);const l=s.map((t=>ci(t)));const h=ni(l);oi(o,h);return o.toUint8Array()};const lc=(t,e,n=gi,s=yi)=>{const r=Mi(e);const o=new s;const c=new tc(o);const l=new n(wn(t));const h=new qo(l,false);while(h.curr){const t=h.curr;const e=t.id.client;const n=r.get(e)||0;if(h.curr.constructor===uh){h.next();continue}if(t.id.clock+t.length>n){uc(c,t,i.Fp(n-t.id.clock,0));h.next();while(h.curr&&h.curr.id.client===e){uc(c,h.curr,0);h.next()}}else{while(h.curr&&h.curr.id.client===e&&h.curr.id.clock+h.curr.length<=n){h.next()}}}dc(c);const a=ci(l);oi(o,a);return o.toUint8Array()};const hc=(t,e)=>lc(t,e,di,wi);const ac=t=>{if(t.written>0){t.clientStructs.push({written:t.written,restEncoder:De(t.encoder.restEncoder)});t.encoder.restEncoder=Ee();t.written=0}};const uc=(t,e,n)=>{if(t.written>0&&t.currClient!==e.id.client){ac(t)}if(t.written===0){t.currClient=e.id.client;t.encoder.writeClient(e.id.client);Re(t.encoder.restEncoder,e.id.clock+n)}e.write(t.encoder,n);t.written++};const dc=t=>{ac(t);const e=t.encoder.restEncoder;Re(e,t.clientStructs.length);for(let n=0;n{const s=new e(wn(t));const r=new qo(s,false);const i=new n;const o=new tc(i);for(let l=r.curr;l!==null;l=r.next()){uc(o,l,0)}dc(o);const c=ci(s);oi(i,c);return i.toUint8Array()};const gc=t=>fc(t,di,yi);const pc=t=>fc(t,gi,wi);class wc{constructor(t,e){this.target=t;this.currentTarget=t;this.transaction=e;this._changes=null;this._keys=null;this._delta=null}get path(){return mc(this.currentTarget,this.target)}deletes(t){return ti(this.transaction.deleteSet,t.id)}get keys(){if(this._keys===null){const t=new Map;const e=this.target;const n=this.transaction.changed.get(e);n.forEach((n=>{if(n!==null){const s=e._map.get(n);let i;let o;if(this.adds(s)){let t=s.left;while(t!==null&&this.adds(t)){t=t.left}if(this.deletes(s)){if(t!==null&&this.deletes(t)){i="delete";o=r.Z$(t.content.getContent())}else{return}}else{if(t!==null&&this.deletes(t)){i="update";o=r.Z$(t.content.getContent())}else{i="add";o=undefined}}}else{if(this.deletes(s)){i="delete";o=r.Z$(s.content.getContent())}else{return}}t.set(n,{action:i,oldValue:o})}}));this._keys=t}return this._keys}get delta(){return this.changes.delta}adds(t){return t.id.clock>=(this.transaction.beforeState.get(t.id.client)||0)}get changes(){let t=this._changes;if(t===null){const e=this.target;const n=ws.Ue();const s=ws.Ue();const r=[];t={added:n,deleted:s,delta:r,keys:this.keys};const i=this.transaction.changed.get(e);if(i.has(null)){let t=null;const i=()=>{if(t){r.push(t)}};for(let r=e._start;r!==null;r=r.right){if(r.deleted){if(this.deletes(r)&&!this.adds(r)){if(t===null||t.delete===undefined){i();t={delete:0}}t.delete+=r.length;s.add(r)}}else{if(this.adds(r)){if(t===null||t.insert===undefined){i();t={insert:[]}}t.insert=t.insert.concat(r.content.getContent());n.add(r)}else{if(t===null||t.retain===undefined){i();t={retain:0}}t.retain+=r.length}}}if(t!==null&&t.retain===undefined){i()}}this._changes=t}return t}}const mc=(t,e)=>{const n=[];while(e._item!==null&&e!==t){if(e._item.parentSub!==null){n.unshift(e._item.parentSub)}else{let t=0;let s=e._item.parent._start;while(s!==e._item&&s!==null){if(!s.deleted){t++}s=s.right}n.unshift(t)}e=e._item.parent}return n};const yc=80;let bc=0;class kc{constructor(t,e){t.marker=true;this.p=t;this.index=e;this.timestamp=bc++}}const _c=t=>{t.timestamp=bc++};const Sc=(t,e,n)=>{t.p.marker=false;t.p=e;e.marker=true;t.index=n;t.timestamp=bc++};const Ec=(t,e,n)=>{if(t.length>=yc){const s=t.reduce(((t,e)=>t.timestamp{if(t._start===null||e===0||t._searchMarker===null){return null}const n=t._searchMarker.length===0?null:t._searchMarker.reduce(((t,n)=>i.Wn(e-t.index)e){s=s.left;if(!s.deleted&&s.countable){r-=s.length}}while(s.left!==null&&s.left.id.client===s.id.client&&s.left.id.clock+s.left.length===s.id.clock){s=s.left;if(!s.deleted&&s.countable){r-=s.length}}if(n!==null&&i.Wn(n.index-r){for(let s=t.length-1;s>=0;s--){const r=t[s];if(n>0){let e=r.p;e.marker=false;while(e&&(e.deleted||!e.countable)){e=e.left;if(e&&!e.deleted&&e.countable){r.index-=e.length}}if(e===null||e.marker===true){t.splice(s,1);continue}r.p=e;e.marker=true}if(e0&&e===r.index){r.index=i.Fp(e,r.index+n)}}};const Ac=t=>{let e=t._start;const n=[];while(e){n.push(e);e=e.right}return n};const vc=(t,e,n)=>{const s=t;const r=e.changedParentTypes;while(true){o.Yu(r,t,(()=>[])).push(n);if(t._item===null){break}t=t._item.parent}ji(s._eH,n,e)};class xc{constructor(){this._item=null;this._map=new Map;this._start=null;this.doc=null;this._length=0;this._eH=Vi();this._dEH=Vi();this._searchMarker=null}get parent(){return this._item?this._item.parent:null}_integrate(t,e){this.doc=t;this._item=e}_copy(){throw un()}clone(){throw un()}_write(t){}get _first(){let t=this._start;while(t!==null&&t.deleted){t=t.right}return t}_callObserver(t,e){if(!t.local&&this._searchMarker){this._searchMarker.length=0}}observe(t){Fi(this._eH,t)}observeDeep(t){Fi(this._dEH,t)}unobserve(t){Bi(this._eH,t)}unobserveDeep(t){Bi(this._dEH,t)}toJSON(){}}const Uc=(t,e,n)=>{if(e<0){e=t._length+e}if(n<0){n=t._length+n}let s=n-e;const r=[];let i=t._start;while(i!==null&&s>0){if(i.countable&&!i.deleted){const t=i.content.getContent();if(t.length<=e){e-=t.length}else{for(let n=e;n0;n++){r.push(t[n]);s--}e=0}}i=i.right}return r};const Tc=t=>{const e=[];let n=t._start;while(n!==null){if(n.countable&&!n.deleted){const t=n.content.getContent();for(let n=0;n{const n=[];let s=t._start;while(s!==null){if(s.countable&&ko(s,e)){const t=s.content.getContent();for(let e=0;e{let n=0;let s=t._start;while(s!==null){if(s.countable&&!s.deleted){const r=s.content.getContent();for(let s=0;s{const n=[];Mc(t,((s,r)=>{n.push(e(s,r,t))}));return n};const Lc=t=>{let e=t._start;let n=null;let s=0;return{[Symbol.iterator](){return this},next:()=>{if(n===null){while(e!==null&&e.deleted){e=e.right}if(e===null){return{done:true,value:undefined}}n=e.content.getContent();s=0;e=e.right}const t=n[s++];if(n.length<=s){n=null}return{done:false,value:t}}}};const Nc=(t,e)=>{const n=Cc(t,e);let s=t._start;if(n!==null){s=n.p;e-=n.index}for(;s!==null;s=s.right){if(!s.deleted&&s.countable){if(e{let r=n;const i=t.doc;const o=i.clientID;const c=i.store;const l=n===null?e._start:n.right;let h=[];const a=()=>{if(h.length>0){r=new ch(Wi(o,Do(c,o)),r,r&&r.lastId,l,l&&l.id,e,null,new Jl(h));r.integrate(t,0);h=[]}};s.forEach((n=>{if(n===null){h.push(n)}else{switch(n.constructor){case Number:case Object:case Boolean:case Array:case String:h.push(n);break;default:a();switch(n.constructor){case Uint8Array:case ArrayBuffer:r=new ch(Wi(o,Do(c,o)),r,r&&r.lastId,l,l&&l.id,e,null,new Tl(new Uint8Array(n)));r.integrate(t,0);break;case ai:r=new ch(Wi(o,Do(c,o)),r,r&&r.lastId,l,l&&l.id,e,null,new Nl(n));r.integrate(t,0);break;default:if(n instanceof xc){r=new ch(Wi(o,Do(c,o)),r,r&&r.lastId,l,l&&l.id,e,null,new eh(n));r.integrate(t,0)}else{throw new Error("Unexpected content type in insert operation")}}}}}));a()};const Pc=an("Length exceeded!");const Vc=(t,e,n,s)=>{if(n>e._length){throw Pc}if(n===0){if(e._searchMarker){Dc(e._searchMarker,n,s.length)}return Rc(t,e,null,s)}const r=n;const i=Cc(e,n);let o=e._start;if(i!==null){o=i.p;n-=i.index;if(n===0){o=o.prev;n+=o&&o.countable&&!o.deleted?o.length:0}}for(;o!==null;o=o.right){if(!o.deleted&&o.countable){if(n<=o.length){if(n{const s=(e._searchMarker||[]).reduce(((t,e)=>e.index>t.index?e:t),{index:0,p:e._start});let r=s.p;if(r){while(r.right){r=r.right}}return Rc(t,e,r,n)};const Bc=(t,e,n,s)=>{if(s===0){return}const r=n;const i=s;const o=Cc(e,n);let c=e._start;if(o!==null){c=o.p;n-=o.index}for(;c!==null&&n>0;c=c.right){if(!c.deleted&&c.countable){if(n0&&c!==null){if(!c.deleted){if(s0){throw Pc}if(e._searchMarker){Dc(e._searchMarker,r,-i+s)}};const jc=(t,e,n)=>{const s=e._map.get(n);if(s!==undefined){s.delete(t)}};const $c=(t,e,n,s)=>{const r=e._map.get(n)||null;const i=t.doc;const o=i.clientID;let c;if(s==null){c=new Jl([s])}else{switch(s.constructor){case Number:case Object:case Boolean:case Array:case String:c=new Jl([s]);break;case Uint8Array:c=new Tl(s);break;case ai:c=new Nl(s);break;default:if(s instanceof xc){c=new eh(s)}else{throw new Error("Unexpected content type")}}}new ch(Wi(o,Do(i.store,o)),r,r&&r.lastId,null,null,e,n,c).integrate(t,0)};const Jc=(t,e)=>{const n=t._map.get(e);return n!==undefined&&!n.deleted?n.content.getContent()[n.length-1]:undefined};const Wc=t=>{const e={};t._map.forEach(((t,n)=>{if(!t.deleted){e[n]=t.content.getContent()[t.length-1]}}));return e};const zc=(t,e)=>{const n=t._map.get(e);return n!==undefined&&!n.deleted};const Gc=(t,e,n)=>{let s=t._map.get(e)||null;while(s!==null&&(!n.sv.has(s.id.client)||s.id.clock>=(n.sv.get(s.id.client)||0))){s=s.left}return s!==null&&ko(s,n)?s.content.getContent()[s.length-1]:undefined};const Yc=t=>Gr(t.entries(),(t=>!t[1].deleted));class Hc extends wc{constructor(t,e){super(t,e);this._transaction=e}}class qc extends xc{constructor(){super();this._prelimContent=[];this._searchMarker=[]}static from(t){const e=new qc;e.push(t);return e}_integrate(t,e){super._integrate(t,e);this.insert(0,this._prelimContent);this._prelimContent=null}_copy(){return new qc}clone(){const t=new qc;t.insert(0,this.toArray().map((t=>t instanceof xc?t.clone():t)));return t}get length(){return this._prelimContent===null?this._length:this._prelimContent.length}_callObserver(t,e){super._callObserver(t,e);vc(this,t,new Hc(this,t))}insert(t,e){if(this.doc!==null){Jo(this.doc,(n=>{Vc(n,this,t,e)}))}else{this._prelimContent.splice(t,0,...e)}}push(t){if(this.doc!==null){Jo(this.doc,(e=>{Fc(e,this,t)}))}else{this._prelimContent.push(...t)}}unshift(t){this.insert(0,t)}delete(t,e=1){if(this.doc!==null){Jo(this.doc,(n=>{Bc(n,this,t,e)}))}else{this._prelimContent.splice(t,e)}}get(t){return Nc(this,t)}toArray(){return Tc(this)}slice(t=0,e=this.length){return Uc(this,t,e)}toJSON(){return this.map((t=>t instanceof xc?t.toJSON():t))}map(t){return Oc(this,t)}forEach(t){Mc(this,t)}[Symbol.iterator](){return Lc(this)}_write(t){t.writeTypeRef(Hl)}}const Kc=t=>new qc;class Zc extends wc{constructor(t,e,n){super(t,e);this.keysChanged=n}}class Xc extends xc{constructor(t){super();this._prelimContent=null;if(t===undefined){this._prelimContent=new Map}else{this._prelimContent=new Map(t)}}_integrate(t,e){super._integrate(t,e);this._prelimContent.forEach(((t,e)=>{this.set(e,t)}));this._prelimContent=null}_copy(){return new Xc}clone(){const t=new Xc;this.forEach(((e,n)=>{t.set(n,e instanceof xc?e.clone():e)}));return t}_callObserver(t,e){vc(this,t,new Zc(this,t,e))}toJSON(){const t={};this._map.forEach(((e,n)=>{if(!e.deleted){const s=e.content.getContent()[e.length-1];t[n]=s instanceof xc?s.toJSON():s}}));return t}get size(){return[...Yc(this._map)].length}keys(){return Yr(Yc(this._map),(t=>t[0]))}values(){return Yr(Yc(this._map),(t=>t[1].content.getContent()[t[1].length-1]))}entries(){return Yr(Yc(this._map),(t=>[t[0],t[1].content.getContent()[t[1].length-1]]))}forEach(t){this._map.forEach(((e,n)=>{if(!e.deleted){t(e.content.getContent()[e.length-1],n,this)}}))}[Symbol.iterator](){return this.entries()}delete(t){if(this.doc!==null){Jo(this.doc,(e=>{jc(e,this,t)}))}else{this._prelimContent.delete(t)}}set(t,e){if(this.doc!==null){Jo(this.doc,(n=>{$c(n,this,t,e)}))}else{this._prelimContent.set(t,e)}return e}get(t){return Jc(this,t)}has(t){return zc(this,t)}clear(){if(this.doc!==null){Jo(this.doc,(t=>{this.forEach((function(e,n,s){jc(t,s,n)}))}))}else{this._prelimContent.clear()}}_write(t){t.writeTypeRef(ql)}}const Qc=t=>new Xc;const tl=(t,e)=>t===e||typeof t==="object"&&typeof e==="object"&&t&&e&&Hr.$m(t,e);class el{constructor(t,e,n,s){this.left=t;this.right=e;this.index=n;this.currentAttributes=s}forward(){if(this.right===null){dn()}switch(this.right.content.constructor){case Fl:if(!this.right.deleted){il(this.currentAttributes,this.right.content)}break;default:if(!this.right.deleted){this.index+=this.right.length}break}this.left=this.right;this.right=this.right.right}}const nl=(t,e,n)=>{while(e.right!==null&&n>0){switch(e.right.content.constructor){case Fl:if(!e.right.deleted){il(e.currentAttributes,e.right.content)}break;default:if(!e.right.deleted){if(n{const s=new Map;const r=Cc(e,n);if(r){const e=new el(r.p.left,r.p,r.index,s);return nl(t,e,n-r.index)}else{const r=new el(null,e._start,0,s);return nl(t,r,n)}};const rl=(t,e,n,s)=>{while(n.right!==null&&(n.right.deleted===true||n.right.content.constructor===Fl&&tl(s.get(n.right.content.key),n.right.content.value))){if(!n.right.deleted){s.delete(n.right.content.key)}n.forward()}const r=t.doc;const i=r.clientID;s.forEach(((s,o)=>{const c=n.left;const l=n.right;const h=new ch(Wi(i,Do(r.store,i)),c,c&&c.lastId,l,l&&l.id,e,null,new Fl(o,s));h.integrate(t,0);n.right=h;n.forward()}))};const il=(t,e)=>{const{key:n,value:s}=e;if(s===null){t.delete(n)}else{t.set(n,s)}};const ol=(t,e)=>{while(true){if(t.right===null){break}else if(t.right.deleted||t.right.content.constructor===Fl&&tl(e[t.right.content.key]||null,t.right.content.value));else{break}t.forward()}};const cl=(t,e,n,s)=>{const r=t.doc;const i=r.clientID;const o=new Map;for(const c in s){const l=s[c];const h=n.currentAttributes.get(c)||null;if(!tl(h,l)){o.set(c,h);const{left:s,right:a}=n;n.right=new ch(Wi(i,Do(r.store,i)),s,s&&s.lastId,a,a&&a.id,e,null,new Fl(c,l));n.right.integrate(t,0);n.forward()}}return o};const ll=(t,e,n,s,r)=>{n.currentAttributes.forEach(((t,e)=>{if(r[e]===undefined){r[e]=null}}));const i=t.doc;const o=i.clientID;ol(n,r);const c=cl(t,e,n,r);const l=s.constructor===String?new zl(s):s instanceof xc?new eh(s):new Pl(s);let{left:h,right:a,index:u}=n;if(e._searchMarker){Dc(e._searchMarker,n.index,l.getLength())}a=new ch(Wi(o,Do(i.store,o)),h,h&&h.lastId,a,a&&a.id,e,null,l);a.integrate(t,0);n.right=a;n.index=u;n.forward();rl(t,e,n,c)};const hl=(t,e,n,s,r)=>{const i=t.doc;const o=i.clientID;ol(n,r);const c=cl(t,e,n,r);t:while(n.right!==null&&(s>0||c.size>0&&(n.right.deleted||n.right.content.constructor===Fl))){if(!n.right.deleted){switch(n.right.content.constructor){case Fl:{const{key:e,value:i}=n.right.content;const o=r[e];if(o!==undefined){if(tl(o,i)){c.delete(e)}else{if(s===0){break t}c.set(e,i)}n.right.delete(t)}else{n.currentAttributes.set(e,i)}break}default:if(s0){let r="";for(;s>0;s--){r+="\n"}n.right=new ch(Wi(o,Do(i.store,o)),n.left,n.left&&n.left.lastId,n.right,n.right&&n.right.id,e,null,new zl(r));n.right.integrate(t,0);n.forward()}rl(t,e,n,c)};const al=(t,e,n,s,r)=>{let i=e;const c=o.Ue();while(i&&(!i.countable||i.deleted)){if(!i.deleted&&i.content.constructor===Fl){const t=i.content;c.set(t.key,t)}i=i.right}let l=0;let h=false;while(e!==i){if(n===e){h=true}if(!e.deleted){const n=e.content;switch(n.constructor){case Fl:{const{key:i,value:o}=n;const a=s.get(i)||null;if(c.get(i)!==n||a===o){e.delete(t);l++;if(!h&&(r.get(i)||null)===o&&a!==o){if(a===null){r.delete(i)}else{r.set(i,a)}}}if(!h&&!e.deleted){il(r,n)}break}}}e=e.right}return l};const ul=(t,e)=>{while(e&&e.right&&(e.right.deleted||!e.right.countable)){e=e.right}const n=new Set;while(e&&(e.deleted||!e.countable)){if(!e.deleted&&e.content.constructor===Fl){const s=e.content.key;if(n.has(s)){e.delete(t)}else{n.add(s)}}e=e.left}};const dl=t=>{let e=0;Jo(t.doc,(n=>{let s=t._start;let r=t._start;let i=o.Ue();const c=o.JG(i);while(r){if(r.deleted===false){switch(r.content.constructor){case Fl:il(c,r.content);break;default:e+=al(n,s,r,i,c);i=o.JG(c);s=r;break}}r=r.right}}));return e};const fl=(t,e,n)=>{const s=n;const r=o.JG(e.currentAttributes);const i=e.right;while(n>0&&e.right!==null){if(e.right.deleted===false){switch(e.right.content.constructor){case eh:case Pl:case zl:if(n{if(t===null){this.childListChanged=true}else{this.keysChanged.add(t)}}))}get changes(){if(this._changes===null){const t={keys:this.keys,delta:this.delta,added:new Set,deleted:new Set};this._changes=t}return this._changes}get delta(){if(this._delta===null){const t=this.target.doc;const e=[];Jo(t,(t=>{const n=new Map;const s=new Map;let r=this.target._start;let i=null;const o={};let c="";let l=0;let h=0;const a=()=>{if(i!==null){let t;switch(i){case"delete":t={delete:h};h=0;break;case"insert":t={insert:c};if(n.size>0){t.attributes={};n.forEach(((e,n)=>{if(e!==null){t.attributes[n]=e}}))}c="";break;case"retain":t={retain:l};if(Object.keys(o).length>0){t.attributes={};for(const e in o){t.attributes[e]=o[e]}}l=0;break}e.push(t);i=null}};while(r!==null){switch(r.content.constructor){case eh:case Pl:if(this.adds(r)){if(!this.deletes(r)){a();i="insert";c=r.content.getContent()[0];a()}}else if(this.deletes(r)){if(i!=="delete"){a();i="delete"}h+=1}else if(!r.deleted){if(i!=="retain"){a();i="retain"}l+=1}break;case zl:if(this.adds(r)){if(!this.deletes(r)){if(i!=="insert"){a();i="insert"}c+=r.content.str}}else if(this.deletes(r)){if(i!=="delete"){a();i="delete"}h+=r.length}else if(!r.deleted){if(i!=="retain"){a();i="retain"}l+=r.length}break;case Fl:{const{key:e,value:c}=r.content;if(this.adds(r)){if(!this.deletes(r)){const l=n.get(e)||null;if(!tl(l,c)){if(i==="retain"){a()}if(tl(c,s.get(e)||null)){delete o[e]}else{o[e]=c}}else if(c!==null){r.delete(t)}}}else if(this.deletes(r)){s.set(e,c);const t=n.get(e)||null;if(!tl(t,c)){if(i==="retain"){a()}o[e]=t}}else if(!r.deleted){s.set(e,c);const n=o[e];if(n!==undefined){if(!tl(n,c)){if(i==="retain"){a()}if(c===null){delete o[e]}else{o[e]=c}}else if(n!==null){r.delete(t)}}}if(!r.deleted){if(i==="insert"){a()}il(n,r.content)}break}}r=r.right}a();while(e.length>0){const t=e[e.length-1];if(t.retain!==undefined&&t.attributes===undefined){e.pop()}else{break}}}));this._delta=e}return this._delta}}class pl extends xc{constructor(t){super();this._pending=t!==undefined?[()=>this.insert(0,t)]:[];this._searchMarker=[]}get length(){return this._length}_integrate(t,e){super._integrate(t,e);try{this._pending.forEach((t=>t()))}catch(gh){console.error(gh)}this._pending=null}_copy(){return new pl}clone(){const t=new pl;t.applyDelta(this.toDelta());return t}_callObserver(t,e){super._callObserver(t,e);const n=new gl(this,t,e);const s=t.doc;vc(this,t,n);if(!t.local){let e=false;for(const[n,r]of t.afterState.entries()){const i=t.beforeState.get(n)||0;if(r===i){continue}Lo(t,s.store.clients.get(n),i,r,(t=>{if(!t.deleted&&t.content.constructor===Fl){e=true}}));if(e){break}}if(!e){Xr(t,t.deleteSet,(t=>{if(t instanceof Ul||e){return}if(t.parent===this&&t.content.constructor===Fl){e=true}}))}Jo(s,(t=>{if(e){dl(this)}else{Xr(t,t.deleteSet,(e=>{if(e instanceof Ul){return}if(e.parent===this){ul(t,e)}}))}}))}}toString(){let t="";let e=this._start;while(e!==null){if(!e.deleted&&e.countable&&e.content.constructor===zl){t+=e.content.str}e=e.right}return t}toJSON(){return this.toString()}applyDelta(t,{sanitize:e=true}={}){if(this.doc!==null){Jo(this.doc,(n=>{const s=new el(null,this._start,0,new Map);for(let r=0;r0){ll(n,this,s,o,i.attributes||{})}}else if(i.retain!==undefined){hl(n,this,s,i.retain,i.attributes||{})}else if(i.delete!==undefined){fl(n,s,i.delete)}}}))}else{this._pending.push((()=>this.applyDelta(t)))}}toDelta(t,e,n){const s=[];const r=new Map;const i=this.doc;let o="";let c=this._start;function l(){if(o.length>0){const t={};let e=false;r.forEach(((n,s)=>{e=true;t[s]=n}));const n={insert:o};if(e){n.attributes=t}s.push(n);o=""}}Jo(i,(i=>{if(t){_o(i,t)}if(e){_o(i,e)}while(c!==null){if(ko(c,t)||e!==undefined&&ko(c,e)){switch(c.content.constructor){case zl:{const s=r.get("ychange");if(t!==undefined&&!ko(c,t)){if(s===undefined||s.user!==c.id.client||s.type!=="removed"){l();r.set("ychange",n?n("removed",c.id):{type:"removed"})}}else if(e!==undefined&&!ko(c,e)){if(s===undefined||s.user!==c.id.client||s.type!=="added"){l();r.set("ychange",n?n("added",c.id):{type:"added"})}}else if(s!==undefined){l();r.delete("ychange")}o+=c.content.str;break}case eh:case Pl:{l();const t={insert:c.content.getContent()[0]};if(r.size>0){const e={};t.attributes=e;r.forEach(((t,n)=>{e[n]=t}))}s.push(t);break}case Fl:if(ko(c,t)){l();il(r,c.content)}break}}c=c.right}l()}),"cleanup");return s}insert(t,e,n){if(e.length<=0){return}const s=this.doc;if(s!==null){Jo(s,(s=>{const r=sl(s,this,t);if(!n){n={};r.currentAttributes.forEach(((t,e)=>{n[e]=t}))}ll(s,this,r,e,n)}))}else{this._pending.push((()=>this.insert(t,e,n)))}}insertEmbed(t,e,n={}){const s=this.doc;if(s!==null){Jo(s,(s=>{const r=sl(s,this,t);ll(s,this,r,e,n)}))}else{this._pending.push((()=>this.insertEmbed(t,e,n)))}}delete(t,e){if(e===0){return}const n=this.doc;if(n!==null){Jo(n,(n=>{fl(n,sl(n,this,t),e)}))}else{this._pending.push((()=>this.delete(t,e)))}}format(t,e,n){if(e===0){return}const s=this.doc;if(s!==null){Jo(s,(s=>{const r=sl(s,this,t);if(r.right===null){return}hl(s,this,r,e,n)}))}else{this._pending.push((()=>this.format(t,e,n)))}}removeAttribute(t){if(this.doc!==null){Jo(this.doc,(e=>{jc(e,this,t)}))}else{this._pending.push((()=>this.removeAttribute(t)))}}setAttribute(t,e){if(this.doc!==null){Jo(this.doc,(n=>{$c(n,this,t,e)}))}else{this._pending.push((()=>this.setAttribute(t,e)))}}getAttribute(t){return Jc(this,t)}getAttributes(){return Wc(this)}_write(t){t.writeTypeRef(Kl)}}const wl=t=>new pl;class ml{constructor(t,e=(()=>true)){this._filter=e;this._root=t;this._currentNode=t._start;this._firstCall=true}[Symbol.iterator](){return this}next(){let t=this._currentNode;let e=t&&t.content&&t.content.type;if(t!==null&&(!this._firstCall||t.deleted||!this._filter(e))){do{e=t.content.type;if(!t.deleted&&(e.constructor===kl||e.constructor===yl)&&e._start!==null){t=e._start}else{while(t!==null){if(t.right!==null){t=t.right;break}else if(t.parent===this._root){t=null}else{t=t.parent._item}}}}while(t!==null&&(t.deleted||!this._filter(t.content.type)))}this._firstCall=false;if(t===null){return{value:undefined,done:true}}this._currentNode=t;return{value:t.content.type,done:false}}}class yl extends xc{constructor(){super();this._prelimContent=[]}get firstChild(){const t=this._first;return t?t.content.getContent()[0]:null}_integrate(t,e){super._integrate(t,e);this.insert(0,this._prelimContent);this._prelimContent=null}_copy(){return new yl}clone(){const t=new yl;t.insert(0,this.toArray().map((t=>t instanceof xc?t.clone():t)));return t}get length(){return this._prelimContent===null?this._length:this._prelimContent.length}createTreeWalker(t){return new ml(this,t)}querySelector(t){t=t.toUpperCase();const e=new ml(this,(e=>e.nodeName&&e.nodeName.toUpperCase()===t));const n=e.next();if(n.done){return null}else{return n.value}}querySelectorAll(t){t=t.toUpperCase();return r.Dp(new ml(this,(e=>e.nodeName&&e.nodeName.toUpperCase()===t)))}_callObserver(t,e){vc(this,t,new Sl(this,e,t))}toString(){return Jo(this.doc,(()=>Oc(this,(t=>t.toString())).join("")))}toJSON(){return this.toString()}toDOM(t=document,e={},n){const s=t.createDocumentFragment();if(n!==undefined){n._createAssociation(s,this)}Mc(this,(r=>{s.insertBefore(r.toDOM(t,e,n),null)}));return s}insert(t,e){if(this.doc!==null){Jo(this.doc,(n=>{Vc(n,this,t,e)}))}else{this._prelimContent.splice(t,0,...e)}}insertAfter(t,e){if(this.doc!==null){Jo(this.doc,(n=>{const s=t&&t instanceof xc?t._item:t;Rc(n,this,s,e)}))}else{const n=this._prelimContent;const s=t===null?0:n.findIndex((e=>e===t))+1;if(s===0&&t!==null){throw an("Reference item not found")}n.splice(s,0,...e)}}delete(t,e=1){if(this.doc!==null){Jo(this.doc,(n=>{Bc(n,this,t,e)}))}else{this._prelimContent.splice(t,e)}}toArray(){return Tc(this)}push(t){this.insert(this.length,t)}unshift(t){this.insert(0,t)}get(t){return Nc(this,t)}slice(t=0,e=this.length){return Uc(this,t,e)}forEach(t){Mc(this,t)}_write(t){t.writeTypeRef(Xl)}}const bl=t=>new yl;class kl extends yl{constructor(t="UNDEFINED"){super();this.nodeName=t;this._prelimAttrs=new Map}get nextSibling(){const t=this._item?this._item.next:null;return t?t.content.type:null}get prevSibling(){const t=this._item?this._item.prev:null;return t?t.content.type:null}_integrate(t,e){super._integrate(t,e);this._prelimAttrs.forEach(((t,e)=>{this.setAttribute(e,t)}));this._prelimAttrs=null}_copy(){return new kl(this.nodeName)}clone(){const t=new kl(this.nodeName);const e=this.getAttributes();for(const n in e){t.setAttribute(n,e[n])}t.insert(0,this.toArray().map((t=>t instanceof xc?t.clone():t)));return t}toString(){const t=this.getAttributes();const e=[];const n=[];for(const o in t){n.push(o)}n.sort();const s=n.length;for(let o=0;o0?" "+e.join(" "):"";return`<${r}${i}>${super.toString()}`}removeAttribute(t){if(this.doc!==null){Jo(this.doc,(e=>{jc(e,this,t)}))}else{this._prelimAttrs.delete(t)}}setAttribute(t,e){if(this.doc!==null){Jo(this.doc,(n=>{$c(n,this,t,e)}))}else{this._prelimAttrs.set(t,e)}}getAttribute(t){return Jc(this,t)}hasAttribute(t){return zc(this,t)}getAttributes(){return Wc(this)}toDOM(t=document,e={},n){const s=t.createElement(this.nodeName);const r=this.getAttributes();for(const i in r){s.setAttribute(i,r[i])}Mc(this,(r=>{s.appendChild(r.toDOM(t,e,n))}));if(n!==undefined){n._createAssociation(s,this)}return s}_write(t){t.writeTypeRef(Zl);t.writeKey(this.nodeName)}}const _l=t=>new kl(t.readKey());class Sl extends wc{constructor(t,e,n){super(t,n);this.childListChanged=false;this.attributesChanged=new Set;e.forEach((t=>{if(t===null){this.childListChanged=true}else{this.attributesChanged.add(t)}}))}}class El extends Xc{constructor(t){super();this.hookName=t}_copy(){return new El(this.hookName)}clone(){const t=new El(this.hookName);this.forEach(((e,n)=>{t.set(n,e)}));return t}toDOM(t=document,e={},n){const s=e[this.hookName];let r;if(s!==undefined){r=s.createDom(this)}else{r=document.createElement(this.hookName)}r.setAttribute("data-yjs-hook",this.hookName);if(n!==undefined){n._createAssociation(r,this)}return r}_write(t){t.writeTypeRef(Ql);t.writeKey(this.hookName)}}const Cl=t=>new El(t.readKey());class Dl extends pl{get nextSibling(){const t=this._item?this._item.next:null;return t?t.content.type:null}get prevSibling(){const t=this._item?this._item.prev:null;return t?t.content.type:null}_copy(){return new Dl}clone(){const t=new Dl;t.applyDelta(this.toDelta());return t}toDOM(t=document,e,n){const s=t.createTextNode(this.toString());if(n!==undefined){n._createAssociation(s,this)}return s}toString(){return this.toDelta().map((t=>{const e=[];for(const s in t.attributes){const n=[];for(const e in t.attributes[s]){n.push({key:e,value:t.attributes[s][e]})}n.sort(((t,e)=>t.keyt.nodeName=0;s--){n+=``}return n})).join("")}toJSON(){return this.toString()}_write(t){t.writeTypeRef(th)}}const Al=t=>new Dl;class vl{constructor(t,e){this.id=t;this.length=e}get deleted(){throw un()}mergeWith(t){return false}write(t,e,n){throw un()}integrate(t,e){throw un()}}const xl=0;class Ul extends vl{get deleted(){return true}delete(){}mergeWith(t){if(this.constructor!==t.constructor){return false}this.length+=t.length;return true}integrate(t,e){if(e>0){this.id.clock+=e;this.length-=e}Ao(t.doc.store,this)}write(t,e){t.writeInfo(xl);t.writeLen(this.length-e)}getMissing(t,e){return null}}class Tl{constructor(t){this.content=t}getLength(){return 1}getContent(){return[this.content]}isCountable(){return true}copy(){return new Tl(this.content)}splice(t){throw un()}mergeWith(t){return false}integrate(t,e){}delete(t){}gc(t){}write(t,e){t.writeBuf(this.content)}getRef(){return 3}}const Il=t=>new Tl(t.readBuf());class Ml{constructor(t){this.len=t}getLength(){return this.len}getContent(){return[]}isCountable(){return false}copy(){return new Ml(this.len)}splice(t){const e=new Ml(this.len-t);this.len=t;return e}mergeWith(t){this.len+=t.len;return true}integrate(t,e){si(t.deleteSet,e.id.client,e.id.clock,this.len);e.markDeleted()}delete(t){}gc(t){}write(t,e){t.writeLen(this.len-e)}getRef(){return 1}}const Ol=t=>new Ml(t.readLen());const Ll=(t,e)=>new ai({guid:t,...e,shouldLoad:e.shouldLoad||e.autoLoad||false});class Nl{constructor(t){if(t._item){console.error("This document was already integrated as a sub-document. You should create a second instance instead with the same guid.")}this.doc=t;const e={};this.opts=e;if(!t.gc){e.gc=false}if(t.autoLoad){e.autoLoad=true}if(t.meta!==null){e.meta=t.meta}}getLength(){return 1}getContent(){return[this.doc]}isCountable(){return true}copy(){return new Nl(Ll(this.doc.guid,this.opts))}splice(t){throw un()}mergeWith(t){return false}integrate(t,e){this.doc._item=e;t.subdocsAdded.add(this.doc);if(this.doc.shouldLoad){t.subdocsLoaded.add(this.doc)}}delete(t){if(t.subdocsAdded.has(this.doc)){t.subdocsAdded.delete(this.doc)}else{t.subdocsRemoved.add(this.doc)}}gc(t){}write(t,e){t.writeString(this.doc.guid);t.writeAny(this.opts)}getRef(){return 9}}const Rl=t=>new Nl(Ll(t.readString(),t.readAny()));class Pl{constructor(t){this.embed=t}getLength(){return 1}getContent(){return[this.embed]}isCountable(){return true}copy(){return new Pl(this.embed)}splice(t){throw un()}mergeWith(t){return false}integrate(t,e){}delete(t){}gc(t){}write(t,e){t.writeJSON(this.embed)}getRef(){return 5}}const Vl=t=>new Pl(t.readJSON());class Fl{constructor(t,e){this.key=t;this.value=e}getLength(){return 1}getContent(){return[]}isCountable(){return false}copy(){return new Fl(this.key,this.value)}splice(t){throw un()}mergeWith(t){return false}integrate(t,e){e.parent._searchMarker=null}delete(t){}gc(t){}write(t,e){t.writeKey(this.key);t.writeJSON(this.value)}getRef(){return 6}}const Bl=t=>new Fl(t.readKey(),t.readJSON());class jl{constructor(t){this.arr=t}getLength(){return this.arr.length}getContent(){return this.arr}isCountable(){return true}copy(){return new jl(this.arr)}splice(t){const e=new jl(this.arr.slice(t));this.arr=this.arr.slice(0,t);return e}mergeWith(t){this.arr=this.arr.concat(t.arr);return true}integrate(t,e){}delete(t){}gc(t){}write(t,e){const n=this.arr.length;t.writeLen(n-e);for(let s=e;s{const e=t.readLen();const n=[];for(let s=0;s{const e=t.readLen();const n=[];for(let s=0;s=55296&&n<=56319){this.str=this.str.slice(0,t-1)+"�";e.str="�"+e.str.slice(1)}return e}mergeWith(t){this.str+=t.str;return true}integrate(t,e){}delete(t){}gc(t){}write(t,e){t.writeString(e===0?this.str:this.str.slice(e))}getRef(){return 4}}const Gl=t=>new zl(t.readString());const Yl=[Kc,Qc,wl,_l,bl,Cl,Al];const Hl=0;const ql=1;const Kl=2;const Zl=3;const Xl=4;const Ql=5;const th=6;class eh{constructor(t){this.type=t}getLength(){return 1}getContent(){return[this.type]}isCountable(){return true}copy(){return new eh(this.type._copy())}splice(t){throw un()}mergeWith(t){return false}integrate(t,e){this.type._integrate(t.doc,e)}delete(t){let e=this.type._start;while(e!==null){if(!e.deleted){e.delete(t)}else{t._mergeStructs.push(e)}e=e.right}this.type._map.forEach((e=>{if(!e.deleted){e.delete(t)}else{t._mergeStructs.push(e)}}));t.changed.delete(this.type)}gc(t){let e=this.type._start;while(e!==null){e.gc(t,true);e=e.right}this.type._start=null;this.type._map.forEach((e=>{while(e!==null){e.gc(t,true);e=e.left}}));this.type._map=new Map}write(t,e){this.type._write(t)}getRef(){return 7}}const nh=t=>new eh(Yl[t.readTypeRef()](t));const sh=(t,e)=>{let n=e;let s=0;let r;do{if(s>0){n=Wi(n.client,n.clock+s)}r=Uo(t,n);s=n.clock-r.id.clock;n=r.redone}while(n!==null&&r instanceof ch);return{item:r,diff:s}};const rh=(t,e)=>{while(t!==null&&t.keep!==e){t.keep=e;t=t.parent._item}};const ih=(t,e,n)=>{const{client:s,clock:r}=e.id;const i=new ch(Wi(s,r+n),e,Wi(s,r+n-1),e.right,e.rightOrigin,e.parent,e.parentSub,e.content.splice(n));if(e.deleted){i.markDeleted()}if(e.keep){i.keep=true}if(e.redone!==null){i.redone=Wi(e.redone.client,e.redone.clock+n)}e.right=i;if(i.right!==null){i.right.left=i}t._mergeStructs.push(i);if(i.parentSub!==null&&i.right===null){i.parent._map.set(i.parentSub,i)}e.length=n;return i};const oh=(t,e,n,s,r)=>{const i=t.doc;const o=i.store;const c=i.clientID;const l=e.redone;if(l!==null){return Io(t,l)}let h=e.parent._item;let a=null;let u;if(h!==null&&h.deleted===true){if(h.redone===null&&(!n.has(h)||oh(t,h,n,s,r)===null)){return null}while(h.redone!==null){h=Io(t,h.redone)}}const d=h===null?e.parent:h.content.type;if(e.parentSub===null){a=e.left;u=e;while(a!==null){let e=a;while(e!==null&&e.parent._item!==h){e=e.redone===null?null:Io(t,e.redone)}if(e!==null&&e.parent._item===h){a=e;break}a=a.left}while(u!==null){let e=u;while(e!==null&&e.parent._item!==h){e=e.redone===null?null:Io(t,e.redone)}if(e!==null&&e.parent._item===h){u=e;break}u=u.right}}else{u=null;if(e.right&&!r){a=e;while(a!==null&&a.right!==null&&ti(s,a.right.id)){a=a.right}while(a!==null&&a.redone!==null){a=Io(t,a.redone)}if(a&&a.right!==null){return null}}else{a=d._map.get(e.parentSub)||null}}const f=Do(o,c);const g=Wi(c,f);const p=new ch(g,a,a&&a.lastId,u,u&&u.id,d,e.parentSub,e.content.copy());e.redone=g;rh(p,true);p.integrate(t,0);return p};class ch extends vl{constructor(t,e,n,s,r,i,o,c){super(t,c.getLength());this.origin=n;this.left=e;this.right=s;this.rightOrigin=r;this.parent=i;this.parentSub=o;this.redone=null;this.content=c;this.info=this.content.isCountable()?it:0}set marker(t){if((this.info&ct)>0!==t){this.info^=ct}}get marker(){return(this.info&ct)>0}get keep(){return(this.info&rt)>0}set keep(t){if(this.keep!==t){this.info^=rt}}get countable(){return(this.info&it)>0}get deleted(){return(this.info&ot)>0}set deleted(t){if(this.deleted!==t){this.info^=ot}}markDeleted(){this.info|=ot}getMissing(t,e){if(this.origin&&this.origin.client!==this.id.client&&this.origin.clock>=Do(e,this.origin.client)){return this.origin.client}if(this.rightOrigin&&this.rightOrigin.client!==this.id.client&&this.rightOrigin.clock>=Do(e,this.rightOrigin.client)){return this.rightOrigin.client}if(this.parent&&this.parent.constructor===$i&&this.id.client!==this.parent.client&&this.parent.clock>=Do(e,this.parent.client)){return this.parent.client}if(this.origin){this.left=Mo(t,e,this.origin);this.origin=this.left.lastId}if(this.rightOrigin){this.right=Io(t,this.rightOrigin);this.rightOrigin=this.right.id}if(this.left&&this.left.constructor===Ul||this.right&&this.right.constructor===Ul){this.parent=null}if(!this.parent){if(this.left&&this.left.constructor===ch){this.parent=this.left.parent;this.parentSub=this.left.parentSub}if(this.right&&this.right.constructor===ch){this.parent=this.right.parent;this.parentSub=this.right.parentSub}}else if(this.parent.constructor===$i){const t=Uo(e,this.parent);if(t.constructor===Ul){this.parent=null}else{this.parent=t.content.type}}return null}integrate(t,e){if(e>0){this.id.clock+=e;this.left=Mo(t,t.doc.store,Wi(this.id.client,this.id.clock-1));this.origin=this.left.lastId;this.content=this.content.splice(e);this.length-=e}if(this.parent){if(!this.left&&(!this.right||this.right.left!==null)||this.left&&this.left.right!==this.right){let e=this.left;let n;if(e!==null){n=e.right}else if(this.parentSub!==null){n=this.parent._map.get(this.parentSub)||null;while(n!==null&&n.left!==null){n=n.left}}else{n=this.parent._start}const s=new Set;const r=new Set;while(n!==null&&n!==this.right){r.add(n);s.add(n);if(Ji(this.origin,n.origin)){if(n.id.client{if(e.p===t){e.p=this;if(!this.deleted&&this.countable){e.index-=this.length}}}))}if(t.keep){this.keep=true}this.right=t.right;if(this.right!==null){this.right.left=this}this.length+=t.length;return true}return false}delete(t){if(!this.deleted){const e=this.parent;if(this.countable&&this.parentSub===null){e._length-=this.length}this.markDeleted();si(t.deleteSet,this.id.client,this.id.clock,this.length);Po(t,e,this.parentSub);this.content.delete(t)}}gc(t,e){if(!this.deleted){throw dn()}this.content.gc(t);if(e){Oo(t,this,new Ul(this.id,this.length))}else{this.content=new Ml(this.length)}}write(t,e){const n=e>0?Wi(this.id.client,this.id.clock+e-1):this.origin;const s=this.rightOrigin;const r=this.parentSub;const i=this.content.getRef()&jt|(n===null?0:ut)|(s===null?0:at)|(r===null?0:ht);t.writeInfo(i);if(n!==null){t.writeLeftID(n)}if(s!==null){t.writeRightID(s)}if(n===null&&s===null){const e=this.parent;if(e._item!==undefined){const n=e._item;if(n===null){const n=Yi(e);t.writeParentInfo(true);t.writeString(n)}else{t.writeParentInfo(false);t.writeLeftID(n.id)}}else if(e.constructor===String){t.writeParentInfo(true);t.writeString(e)}else if(e.constructor===$i){t.writeParentInfo(false);t.writeLeftID(e)}else{dn()}if(r!==null){t.writeString(r)}}this.content.write(t,e)}}const lh=(t,e)=>hh[e&jt](t);const hh=[()=>{dn()},Ol,$l,Il,Gl,Vl,Bl,nh,Wl,Rl,()=>{dn()}];const ah=10;class uh extends vl{get deleted(){return true}delete(){}mergeWith(t){if(this.constructor!==t.constructor){return false}this.length+=t.length;return true}integrate(t,e){dn()}write(t,e){t.writeInfo(ah);Re(t.restEncoder,this.length-e)}getMissing(t,e){return null}}const dh=typeof globalThis!=="undefined"?globalThis:typeof window!=="undefined"?window:typeof n.g!=="undefined"?n.g:{};const fh="__ $YJS$ __";if(dh[fh]===true){console.error("Yjs was already imported. This breaks constructor checks and will lead to issues! - https://github.com/yjs/yjs/issues/438")}dh[fh]=true}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/3871.ba96e5b53bb16df56618.js b/bootcamp/share/jupyter/lab/static/3871.ba96e5b53bb16df56618.js new file mode 100644 index 0000000..b92bbd7 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/3871.ba96e5b53bb16df56618.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3871,6059],{7013:function(t,e){var r=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.Attributes=e.INHERIT=void 0;e.INHERIT="_inherit_";var i=function(){function t(t,e){this.global=e;this.defaults=Object.create(e);this.inherited=Object.create(this.defaults);this.attributes=Object.create(this.inherited);Object.assign(this.defaults,t)}t.prototype.set=function(t,e){this.attributes[t]=e};t.prototype.setList=function(t){Object.assign(this.attributes,t)};t.prototype.get=function(t){var r=this.attributes[t];if(r===e.INHERIT){r=this.global[t]}return r};t.prototype.getExplicit=function(t){if(!this.attributes.hasOwnProperty(t)){return undefined}return this.attributes[t]};t.prototype.getList=function(){var t,e;var i=[];for(var n=0;n=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,O=[],o;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)O.push(n.value)}catch(E){o={error:E}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(o)throw o.error}}return O};Object.defineProperty(e,"__esModule",{value:true});e.XMLNode=e.TextNode=e.AbstractMmlEmptyNode=e.AbstractMmlBaseNode=e.AbstractMmlLayoutNode=e.AbstractMmlTokenNode=e.AbstractMmlNode=e.indentAttributes=e.TEXCLASSNAMES=e.TEXCLASS=void 0;var E=r(7013);var s=r(62335);e.TEXCLASS={ORD:0,OP:1,BIN:2,REL:3,OPEN:4,CLOSE:5,PUNCT:6,INNER:7,VCENTER:8,NONE:-1};e.TEXCLASSNAMES=["ORD","OP","BIN","REL","OPEN","CLOSE","PUNCT","INNER","VCENTER"];var a=["","thinmathspace","mediummathspace","thickmathspace"];var M=[[0,-1,2,3,0,0,0,1],[-1,-1,0,3,0,0,0,1],[2,2,0,0,2,0,0,2],[3,3,0,0,3,0,0,3],[0,0,0,0,0,0,0,0],[0,-1,2,3,0,0,0,1],[1,1,0,1,1,1,1,1],[1,-1,2,3,1,0,1,1]];e.indentAttributes=["indentalign","indentalignfirst","indentshift","indentshiftfirst"];var l=function(t){i(r,t);function r(e,r,i){if(r===void 0){r={}}if(i===void 0){i=[]}var n=t.call(this,e)||this;n.prevClass=null;n.prevLevel=null;n.texclass=null;if(n.arity<0){n.childNodes=[e.create("inferredMrow")];n.childNodes[0].parent=n}n.setChildren(i);n.attributes=new E.Attributes(e.getNodeClass(n.kind).defaults,e.getNodeClass("math").defaults);n.attributes.setList(r);return n}r.prototype.copy=function(t){var e,r,i,o;if(t===void 0){t=false}var E=this.factory.create(this.kind);E.properties=n({},this.properties);if(this.attributes){var s=this.attributes.getAllAttributes();try{for(var a=O(Object.keys(s)),M=a.next();!M.done;M=a.next()){var l=M.value;if(l!=="id"||t){E.attributes.set(l,s[l])}}}catch(R){e={error:R}}finally{try{if(M&&!M.done&&(r=a.return))r.call(a)}finally{if(e)throw e.error}}}if(this.childNodes&&this.childNodes.length){var u=this.childNodes;if(u.length===1&&u[0].isInferred){u=u[0].childNodes}try{for(var c=O(u),f=c.next();!f.done;f=c.next()){var L=f.value;if(L){E.appendChild(L.copy())}else{E.childNodes.push(null)}}}catch(p){i={error:p}}finally{try{if(f&&!f.done&&(o=c.return))o.call(c)}finally{if(i)throw i.error}}}return E};Object.defineProperty(r.prototype,"texClass",{get:function(){return this.texclass},set:function(t){this.texclass=t},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"isToken",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"isEmbellished",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"isSpacelike",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"linebreakContainer",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"hasNewLine",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"arity",{get:function(){return Infinity},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"isInferred",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"Parent",{get:function(){var t=this.parent;while(t&&t.notParent){t=t.Parent}return t},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"notParent",{get:function(){return false},enumerable:false,configurable:true});r.prototype.setChildren=function(e){if(this.arity<0){return this.childNodes[0].setChildren(e)}return t.prototype.setChildren.call(this,e)};r.prototype.appendChild=function(e){var r,i;var n=this;if(this.arity<0){this.childNodes[0].appendChild(e);return e}if(e.isInferred){if(this.arity===Infinity){e.childNodes.forEach((function(e){return t.prototype.appendChild.call(n,e)}));return e}var o=e;e=this.factory.create("mrow");e.setChildren(o.childNodes);e.attributes=o.attributes;try{for(var E=O(o.getPropertyNames()),s=E.next();!s.done;s=E.next()){var a=s.value;e.setProperty(a,o.getProperty(a))}}catch(M){r={error:M}}finally{try{if(s&&!s.done&&(i=E.return))i.call(E)}finally{if(r)throw r.error}}}return t.prototype.appendChild.call(this,e)};r.prototype.replaceChild=function(e,r){if(this.arity<0){this.childNodes[0].replaceChild(e,r);return e}return t.prototype.replaceChild.call(this,e,r)};r.prototype.core=function(){return this};r.prototype.coreMO=function(){return this};r.prototype.coreIndex=function(){return 0};r.prototype.childPosition=function(){var t,e;var r=this;var i=r.parent;while(i&&i.notParent){r=i;i=i.parent}if(i){var n=0;try{for(var o=O(i.childNodes),E=o.next();!E.done;E=o.next()){var s=E.value;if(s===r){return n}n++}}catch(a){t={error:a}}finally{try{if(E&&!E.done&&(e=o.return))e.call(o)}finally{if(t)throw t.error}}}return null};r.prototype.setTeXclass=function(t){this.getPrevClass(t);return this.texClass!=null?this:t};r.prototype.updateTeXclass=function(t){if(t){this.prevClass=t.prevClass;this.prevLevel=t.prevLevel;t.prevClass=t.prevLevel=null;this.texClass=t.texClass}};r.prototype.getPrevClass=function(t){if(t){this.prevClass=t.texClass;this.prevLevel=t.attributes.get("scriptlevel")}};r.prototype.texSpacing=function(){var t=this.prevClass!=null?this.prevClass:e.TEXCLASS.NONE;var r=this.texClass||e.TEXCLASS.ORD;if(t===e.TEXCLASS.NONE||r===e.TEXCLASS.NONE){return""}if(t===e.TEXCLASS.VCENTER){t=e.TEXCLASS.ORD}if(r===e.TEXCLASS.VCENTER){r=e.TEXCLASS.ORD}var i=M[t][r];if((this.prevLevel>0||this.attributes.get("scriptlevel")>0)&&i>=0){return""}return a[Math.abs(i)]};r.prototype.hasSpacingAttributes=function(){return this.isEmbellished&&this.coreMO().hasSpacingAttributes()};r.prototype.setInheritedAttributes=function(t,e,i,n){var E,s;if(t===void 0){t={}}if(e===void 0){e=false}if(i===void 0){i=0}if(n===void 0){n=false}var a=this.attributes.getAllDefaults();try{for(var M=O(Object.keys(t)),l=M.next();!l.done;l=M.next()){var u=l.value;if(a.hasOwnProperty(u)||r.alwaysInherit.hasOwnProperty(u)){var c=o(t[u],2),f=c[0],L=c[1];var R=(r.noInherit[f]||{})[this.kind]||{};if(!R[u]){this.attributes.setInherited(u,L)}}}}catch(C){E={error:C}}finally{try{if(l&&!l.done&&(s=M.return))s.call(M)}finally{if(E)throw E.error}}var p=this.attributes.getExplicit("displaystyle");if(p===undefined){this.attributes.setInherited("displaystyle",e)}var h=this.attributes.getExplicit("scriptlevel");if(h===undefined){this.attributes.setInherited("scriptlevel",i)}if(n){this.setProperty("texprimestyle",n)}var N=this.arity;if(N>=0&&N!==Infinity&&(N===1&&this.childNodes.length===0||N!==1&&this.childNodes.length!==N)){if(N=0&&e!==Infinity&&(e===1&&this.childNodes.length===0||e!==1&&this.childNodes.length!==e)){this.mError('Wrong number of children for "'+this.kind+'" node',t,true)}}this.verifyChildren(t)};r.prototype.verifyAttributes=function(t){var e,r;if(t["checkAttributes"]){var i=this.attributes;var n=[];try{for(var o=O(i.getExplicitNames()),E=o.next();!E.done;E=o.next()){var s=E.value;if(s.substr(0,5)!=="data-"&&i.getDefault(s)===undefined&&!s.match(/^(?:class|style|id|(?:xlink:)?href)$/)){n.push(s)}}}catch(a){e={error:a}}finally{try{if(E&&!E.done&&(r=o.return))r.call(o)}finally{if(e)throw e.error}}if(n.length){this.mError("Unknown attributes for "+this.kind+" node: "+n.join(", "),t)}}};r.prototype.verifyChildren=function(t){var e,r;try{for(var i=O(this.childNodes),n=i.next();!n.done;n=i.next()){var o=n.value;o.verifyTree(t)}}catch(E){e={error:E}}finally{try{if(n&&!n.done&&(r=i.return))r.call(i)}finally{if(e)throw e.error}}};r.prototype.mError=function(t,e,r){if(r===void 0){r=false}if(this.parent&&this.parent.isKind("merror")){return null}var i=this.factory.create("merror");i.attributes.set("data-mjx-message",t);if(e["fullErrors"]||r){var n=this.factory.create("mtext");var O=this.factory.create("text");O.setText(e["fullErrors"]?t:this.kind);n.appendChild(O);i.appendChild(n);this.parent.replaceChild(i,this)}else{this.parent.replaceChild(i,this);i.appendChild(this)}return i};r.defaults={mathbackground:E.INHERIT,mathcolor:E.INHERIT,mathsize:E.INHERIT,dir:E.INHERIT};r.noInherit={mstyle:{mpadded:{width:true,height:true,depth:true,lspace:true,voffset:true},mtable:{width:true,height:true,depth:true,align:true}},maligngroup:{mrow:{groupalign:true},mtable:{groupalign:true}}};r.alwaysInherit={scriptminsize:true,scriptsizemultiplier:true};r.verifyDefaults={checkArity:true,checkAttributes:false,fullErrors:false,fixMmultiscripts:true,fixMtables:true};return r}(s.AbstractNode);e.AbstractMmlNode=l;var u=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"isToken",{get:function(){return true},enumerable:false,configurable:true});e.prototype.getText=function(){var t,e;var r="";try{for(var i=O(this.childNodes),n=i.next();!n.done;n=i.next()){var o=n.value;if(o instanceof R){r+=o.getText()}}}catch(E){t={error:E}}finally{try{if(n&&!n.done&&(e=i.return))e.call(i)}finally{if(t)throw t.error}}return r};e.prototype.setChildInheritedAttributes=function(t,e,r,i){var n,o;try{for(var E=O(this.childNodes),s=E.next();!s.done;s=E.next()){var a=s.value;if(a instanceof l){a.setInheritedAttributes(t,e,r,i)}}}catch(M){n={error:M}}finally{try{if(s&&!s.done&&(o=E.return))o.call(E)}finally{if(n)throw n.error}}};e.prototype.walkTree=function(t,e){var r,i;t(this,e);try{for(var n=O(this.childNodes),o=n.next();!o.done;o=n.next()){var E=o.value;if(E instanceof l){E.walkTree(t,e)}}}catch(s){r={error:s}}finally{try{if(o&&!o.done&&(i=n.return))i.call(n)}finally{if(r)throw r.error}}return e};e.defaults=n(n({},l.defaults),{mathvariant:"normal",mathsize:E.INHERIT});return e}(l);e.AbstractMmlTokenNode=u;var c=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"isSpacelike",{get:function(){return this.childNodes[0].isSpacelike},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"arity",{get:function(){return-1},enumerable:false,configurable:true});e.prototype.core=function(){return this.childNodes[0]};e.prototype.coreMO=function(){return this.childNodes[0].coreMO()};e.prototype.setTeXclass=function(t){t=this.childNodes[0].setTeXclass(t);this.updateTeXclass(this.childNodes[0]);return t};e.defaults=l.defaults;return e}(l);e.AbstractMmlLayoutNode=c;var f=function(t){i(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(r.prototype,"isEmbellished",{get:function(){return this.childNodes[0].isEmbellished},enumerable:false,configurable:true});r.prototype.core=function(){return this.childNodes[0]};r.prototype.coreMO=function(){return this.childNodes[0].coreMO()};r.prototype.setTeXclass=function(t){var r,i;this.getPrevClass(t);this.texClass=e.TEXCLASS.ORD;var n=this.childNodes[0];if(n){if(this.isEmbellished||n.isKind("mi")){t=n.setTeXclass(t);this.updateTeXclass(this.core())}else{n.setTeXclass(null);t=this}}else{t=this}try{for(var o=O(this.childNodes.slice(1)),E=o.next();!E.done;E=o.next()){var s=E.value;if(s){s.setTeXclass(null)}}}catch(a){r={error:a}}finally{try{if(E&&!E.done&&(i=o.return))i.call(o)}finally{if(r)throw r.error}}return t};r.defaults=l.defaults;return r}(l);e.AbstractMmlBaseNode=f;var L=function(t){i(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(r.prototype,"isToken",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"isEmbellished",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"isSpacelike",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"linebreakContainer",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"hasNewLine",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"arity",{get:function(){return 0},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"isInferred",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"notParent",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"Parent",{get:function(){return this.parent},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"texClass",{get:function(){return e.TEXCLASS.NONE},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"prevClass",{get:function(){return e.TEXCLASS.NONE},enumerable:false,configurable:true});Object.defineProperty(r.prototype,"prevLevel",{get:function(){return 0},enumerable:false,configurable:true});r.prototype.hasSpacingAttributes=function(){return false};Object.defineProperty(r.prototype,"attributes",{get:function(){return null},enumerable:false,configurable:true});r.prototype.core=function(){return this};r.prototype.coreMO=function(){return this};r.prototype.coreIndex=function(){return 0};r.prototype.childPosition=function(){return 0};r.prototype.setTeXclass=function(t){return t};r.prototype.texSpacing=function(){return""};r.prototype.setInheritedAttributes=function(t,e,r,i){};r.prototype.inheritAttributesFrom=function(t){};r.prototype.verifyTree=function(t){};r.prototype.mError=function(t,e,r){if(r===void 0){r=false}return null};return r}(s.AbstractEmptyNode);e.AbstractMmlEmptyNode=L;var R=function(t){i(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e.text="";return e}Object.defineProperty(e.prototype,"kind",{get:function(){return"text"},enumerable:false,configurable:true});e.prototype.getText=function(){return this.text};e.prototype.setText=function(t){this.text=t;return this};e.prototype.copy=function(){return this.factory.create(this.kind).setText(this.getText())};e.prototype.toString=function(){return this.text};return e}(L);e.TextNode=R;var p=function(t){i(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e.xml=null;e.adaptor=null;return e}Object.defineProperty(e.prototype,"kind",{get:function(){return"XML"},enumerable:false,configurable:true});e.prototype.getXML=function(){return this.xml};e.prototype.setXML=function(t,e){if(e===void 0){e=null}this.xml=t;this.adaptor=e;return this};e.prototype.getSerializedXML=function(){return this.adaptor.serializeXML(this.xml)};e.prototype.copy=function(){return this.factory.create(this.kind).setXML(this.adaptor.clone(this.xml))};e.prototype.toString=function(){return"XML data"};return e}(L);e.XMLNode=p},5213:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__assign||function(){n=Object.assign||function(t){for(var e,r=1,i=arguments.length;r0)&&!(n=i.next()).done)O.push(n.value)}catch(E){o={error:E}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(o)throw o.error}}return O};var o=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.MmlMo=void 0;var E=r(18426);var s=r(64432);var a=r(33353);var M=function(t){i(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e._texClass=null;e.lspace=5/18;e.rspace=5/18;return e}Object.defineProperty(e.prototype,"texClass",{get:function(){if(this._texClass===null){var t=this.getText();var e=O(this.handleExplicitForm(this.getForms()),3),r=e[0],i=e[1],n=e[2];var o=this.constructor.OPTABLE;var s=o[r][t]||o[i][t]||o[n][t];return s?s[2]:E.TEXCLASS.REL}return this._texClass},set:function(t){this._texClass=t},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"kind",{get:function(){return"mo"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isEmbellished",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"hasNewLine",{get:function(){return this.attributes.get("linebreak")==="newline"},enumerable:false,configurable:true});e.prototype.coreParent=function(){var t=this;var e=this;var r=this.factory.getNodeClass("math");while(e&&e.isEmbellished&&e.coreMO()===this&&!(e instanceof r)){t=e;e=e.parent}return t};e.prototype.coreText=function(t){if(!t){return""}if(t.isEmbellished){return t.coreMO().getText()}while(((t.isKind("mrow")||t.isKind("TeXAtom")&&t.texClass!==E.TEXCLASS.VCENTER||t.isKind("mstyle")||t.isKind("mphantom"))&&t.childNodes.length===1||t.isKind("munderover"))&&t.childNodes[0]){t=t.childNodes[0]}return t.isToken?t.getText():""};e.prototype.hasSpacingAttributes=function(){return this.attributes.isSet("lspace")||this.attributes.isSet("rspace")};Object.defineProperty(e.prototype,"isAccent",{get:function(){var t=false;var e=this.coreParent().parent;if(e){var r=e.isKind("mover")?e.childNodes[e.over].coreMO()?"accent":"":e.isKind("munder")?e.childNodes[e.under].coreMO()?"accentunder":"":e.isKind("munderover")?this===e.childNodes[e.over].coreMO()?"accent":this===e.childNodes[e.under].coreMO()?"accentunder":"":"";if(r){var i=e.attributes.getExplicit(r);t=i!==undefined?t:this.attributes.get("accent")}}return t},enumerable:false,configurable:true});e.prototype.setTeXclass=function(t){var e=this.attributes.getList("form","fence"),r=e.form,i=e.fence;if(this.getProperty("texClass")===undefined&&(this.attributes.isSet("lspace")||this.attributes.isSet("rspace"))){return null}if(i&&this.texClass===E.TEXCLASS.REL){if(r==="prefix"){this.texClass=E.TEXCLASS.OPEN}if(r==="postfix"){this.texClass=E.TEXCLASS.CLOSE}}return this.adjustTeXclass(t)};e.prototype.adjustTeXclass=function(t){var e=this.texClass;var r=this.prevClass;if(e===E.TEXCLASS.NONE){return t}if(t){if(t.getProperty("autoOP")&&(e===E.TEXCLASS.BIN||e===E.TEXCLASS.REL)){r=t.texClass=E.TEXCLASS.ORD}r=this.prevClass=t.texClass||E.TEXCLASS.ORD;this.prevLevel=this.attributes.getInherited("scriptlevel")}else{r=this.prevClass=E.TEXCLASS.NONE}if(e===E.TEXCLASS.BIN&&(r===E.TEXCLASS.NONE||r===E.TEXCLASS.BIN||r===E.TEXCLASS.OP||r===E.TEXCLASS.REL||r===E.TEXCLASS.OPEN||r===E.TEXCLASS.PUNCT)){this.texClass=E.TEXCLASS.ORD}else if(r===E.TEXCLASS.BIN&&(e===E.TEXCLASS.REL||e===E.TEXCLASS.CLOSE||e===E.TEXCLASS.PUNCT)){t.texClass=this.prevClass=E.TEXCLASS.ORD}else if(e===E.TEXCLASS.BIN){var i=this;var n=this.parent;while(n&&n.parent&&n.isEmbellished&&(n.childNodes.length===1||!n.isKind("mrow")&&n.core()===i)){i=n;n=n.parent}if(n.childNodes[n.childNodes.length-1]===i){this.texClass=E.TEXCLASS.ORD}}return this};e.prototype.setInheritedAttributes=function(e,r,i,n){if(e===void 0){e={}}if(r===void 0){r=false}if(i===void 0){i=0}if(n===void 0){n=false}t.prototype.setInheritedAttributes.call(this,e,r,i,n);var O=this.getText();this.checkOperatorTable(O);this.checkPseudoScripts(O);this.checkPrimes(O);this.checkMathAccent(O)};e.prototype.checkOperatorTable=function(t){var e,r;var i=O(this.handleExplicitForm(this.getForms()),3),n=i[0],E=i[1],a=i[2];this.attributes.setInherited("form",n);var M=this.constructor.OPTABLE;var l=M[n][t]||M[E][t]||M[a][t];if(l){if(this.getProperty("texClass")===undefined){this.texClass=l[2]}try{for(var u=o(Object.keys(l[3]||{})),c=u.next();!c.done;c=u.next()){var f=c.value;this.attributes.setInherited(f,l[3][f])}}catch(p){e={error:p}}finally{try{if(c&&!c.done&&(r=u.return))r.call(u)}finally{if(e)throw e.error}}this.lspace=(l[0]+1)/18;this.rspace=(l[1]+1)/18}else{var L=(0,s.getRange)(t);if(L){if(this.getProperty("texClass")===undefined){this.texClass=L[2]}var R=this.constructor.MMLSPACING[L[2]];this.lspace=(R[0]+1)/18;this.rspace=(R[1]+1)/18}}};e.prototype.getForms=function(){var t=this;var e=this.parent;var r=this.Parent;while(r&&r.isEmbellished){t=e;e=r.parent;r=r.Parent}if(e&&e.isKind("mrow")&&e.nonSpaceLength()!==1){if(e.firstNonSpace()===t){return["prefix","infix","postfix"]}if(e.lastNonSpace()===t){return["postfix","infix","prefix"]}}return["infix","prefix","postfix"]};e.prototype.handleExplicitForm=function(t){if(this.attributes.isSet("form")){var e=this.attributes.get("form");t=[e].concat(t.filter((function(t){return t!==e})))}return t};e.prototype.checkPseudoScripts=function(t){var e=this.constructor.pseudoScripts;if(!t.match(e))return;var r=this.coreParent().Parent;var i=!r||!(r.isKind("msubsup")&&!r.isKind("msub"));this.setProperty("pseudoscript",i);if(i){this.attributes.setInherited("lspace",0);this.attributes.setInherited("rspace",0)}};e.prototype.checkPrimes=function(t){var e=this.constructor.primes;if(!t.match(e))return;var r=this.constructor.remapPrimes;var i=(0,a.unicodeString)((0,a.unicodeChars)(t).map((function(t){return r[t]})));this.setProperty("primes",i)};e.prototype.checkMathAccent=function(t){var e=this.Parent;if(this.getProperty("mathaccent")!==undefined||!e||!e.isKind("munderover"))return;var r=e.childNodes[0];if(r.isEmbellished&&r.coreMO()===this)return;var i=this.constructor.mathaccents;if(t.match(i)){this.setProperty("mathaccent",true)}};e.defaults=n(n({},E.AbstractMmlTokenNode.defaults),{form:"infix",fence:false,separator:false,lspace:"thickmathspace",rspace:"thickmathspace",stretchy:false,symmetric:false,maxsize:"infinity",minsize:"0em",largeop:false,movablelimits:false,accent:false,linebreak:"auto",lineleading:"1ex",linebreakstyle:"before",indentalign:"auto",indentshift:"0",indenttarget:"",indentalignfirst:"indentalign",indentshiftfirst:"indentshift",indentalignlast:"indentalign",indentshiftlast:"indentshift"});e.MMLSPACING=s.MMLSPACING;e.OPTABLE=s.OPTABLE;e.pseudoScripts=new RegExp(["^[\"'*`","ª","°","²-´","¹","º","‘-‟","′-‷⁗","⁰ⁱ","⁴-ⁿ","₀-₎","]+$"].join(""));e.primes=new RegExp(["^[\"'`","‘-‟","]+$"].join(""));e.remapPrimes={34:8243,39:8242,96:8245,8216:8245,8217:8242,8218:8242,8219:8245,8220:8246,8221:8243,8222:8243,8223:8246};e.mathaccents=new RegExp(["^[","´́ˊ","`̀ˋ","¨̈","~̃˜","¯̄ˉ","˘̆","ˇ̌","^̂ˆ","→⃗","˙̇","˚̊","⃛","⃜","]$"].join(""));return e}(E.AbstractMmlTokenNode);e.MmlMo=M},64432:function(t,e,r){var i=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.OPTABLE=e.MMLSPACING=e.getRange=e.RANGES=e.MO=e.OPDEF=void 0;var n=r(18426);function O(t,e,r,i){if(r===void 0){r=n.TEXCLASS.BIN}if(i===void 0){i=null}return[t,e,r,i]}e.OPDEF=O;e.MO={ORD:O(0,0,n.TEXCLASS.ORD),ORD11:O(1,1,n.TEXCLASS.ORD),ORD21:O(2,1,n.TEXCLASS.ORD),ORD02:O(0,2,n.TEXCLASS.ORD),ORD55:O(5,5,n.TEXCLASS.ORD),NONE:O(0,0,n.TEXCLASS.NONE),OP:O(1,2,n.TEXCLASS.OP,{largeop:true,movablelimits:true,symmetric:true}),OPFIXED:O(1,2,n.TEXCLASS.OP,{largeop:true,movablelimits:true}),INTEGRAL:O(0,1,n.TEXCLASS.OP,{largeop:true,symmetric:true}),INTEGRAL2:O(1,2,n.TEXCLASS.OP,{largeop:true,symmetric:true}),BIN3:O(3,3,n.TEXCLASS.BIN),BIN4:O(4,4,n.TEXCLASS.BIN),BIN01:O(0,1,n.TEXCLASS.BIN),BIN5:O(5,5,n.TEXCLASS.BIN),TALLBIN:O(4,4,n.TEXCLASS.BIN,{stretchy:true}),BINOP:O(4,4,n.TEXCLASS.BIN,{largeop:true,movablelimits:true}),REL:O(5,5,n.TEXCLASS.REL),REL1:O(1,1,n.TEXCLASS.REL,{stretchy:true}),REL4:O(4,4,n.TEXCLASS.REL),RELSTRETCH:O(5,5,n.TEXCLASS.REL,{stretchy:true}),RELACCENT:O(5,5,n.TEXCLASS.REL,{accent:true}),WIDEREL:O(5,5,n.TEXCLASS.REL,{accent:true,stretchy:true}),OPEN:O(0,0,n.TEXCLASS.OPEN,{fence:true,stretchy:true,symmetric:true}),CLOSE:O(0,0,n.TEXCLASS.CLOSE,{fence:true,stretchy:true,symmetric:true}),INNER:O(0,0,n.TEXCLASS.INNER),PUNCT:O(0,3,n.TEXCLASS.PUNCT),ACCENT:O(0,0,n.TEXCLASS.ORD,{accent:true}),WIDEACCENT:O(0,0,n.TEXCLASS.ORD,{accent:true,stretchy:true})};e.RANGES=[[32,127,n.TEXCLASS.REL,"mo"],[160,191,n.TEXCLASS.ORD,"mo"],[192,591,n.TEXCLASS.ORD,"mi"],[688,879,n.TEXCLASS.ORD,"mo"],[880,6688,n.TEXCLASS.ORD,"mi"],[6832,6911,n.TEXCLASS.ORD,"mo"],[6912,7615,n.TEXCLASS.ORD,"mi"],[7616,7679,n.TEXCLASS.ORD,"mo"],[7680,8191,n.TEXCLASS.ORD,"mi"],[8192,8303,n.TEXCLASS.ORD,"mo"],[8304,8351,n.TEXCLASS.ORD,"mo"],[8448,8527,n.TEXCLASS.ORD,"mi"],[8528,8591,n.TEXCLASS.ORD,"mn"],[8592,8703,n.TEXCLASS.REL,"mo"],[8704,8959,n.TEXCLASS.BIN,"mo"],[8960,9215,n.TEXCLASS.ORD,"mo"],[9312,9471,n.TEXCLASS.ORD,"mn"],[9472,10223,n.TEXCLASS.ORD,"mo"],[10224,10239,n.TEXCLASS.REL,"mo"],[10240,10495,n.TEXCLASS.ORD,"mtext"],[10496,10623,n.TEXCLASS.REL,"mo"],[10624,10751,n.TEXCLASS.ORD,"mo"],[10752,11007,n.TEXCLASS.BIN,"mo"],[11008,11055,n.TEXCLASS.ORD,"mo"],[11056,11087,n.TEXCLASS.REL,"mo"],[11088,11263,n.TEXCLASS.ORD,"mo"],[11264,11744,n.TEXCLASS.ORD,"mi"],[11776,11903,n.TEXCLASS.ORD,"mo"],[11904,12255,n.TEXCLASS.ORD,"mi","normal"],[12272,12351,n.TEXCLASS.ORD,"mo"],[12352,42143,n.TEXCLASS.ORD,"mi","normal"],[42192,43055,n.TEXCLASS.ORD,"mi"],[43056,43071,n.TEXCLASS.ORD,"mn"],[43072,55295,n.TEXCLASS.ORD,"mi"],[63744,64255,n.TEXCLASS.ORD,"mi","normal"],[64256,65023,n.TEXCLASS.ORD,"mi"],[65024,65135,n.TEXCLASS.ORD,"mo"],[65136,65791,n.TEXCLASS.ORD,"mi"],[65792,65935,n.TEXCLASS.ORD,"mn"],[65936,74751,n.TEXCLASS.ORD,"mi","normal"],[74752,74879,n.TEXCLASS.ORD,"mn"],[74880,113823,n.TEXCLASS.ORD,"mi","normal"],[113824,119391,n.TEXCLASS.ORD,"mo"],[119648,119679,n.TEXCLASS.ORD,"mn"],[119808,120781,n.TEXCLASS.ORD,"mi"],[120782,120831,n.TEXCLASS.ORD,"mn"],[122624,129023,n.TEXCLASS.ORD,"mo"],[129024,129279,n.TEXCLASS.REL,"mo"],[129280,129535,n.TEXCLASS.ORD,"mo"],[131072,195103,n.TEXCLASS.ORD,"mi","normnal"]];function o(t){var r,n;var O=t.codePointAt(0);try{for(var o=i(e.RANGES),E=o.next();!E.done;E=o.next()){var s=E.value;if(O<=s[1]){if(O>=s[0]){return s}break}}}catch(a){r={error:a}}finally{try{if(E&&!E.done&&(n=o.return))n.call(o)}finally{if(r)throw r.error}}return null}e.getRange=o;e.MMLSPACING=[[0,0],[1,2],[3,3],[4,4],[0,0],[0,0],[0,3]];e.OPTABLE={prefix:{"(":e.MO.OPEN,"+":e.MO.BIN01,"-":e.MO.BIN01,"[":e.MO.OPEN,"{":e.MO.OPEN,"|":e.MO.OPEN,"||":[0,0,n.TEXCLASS.BIN,{fence:true,stretchy:true,symmetric:true}],"|||":[0,0,n.TEXCLASS.ORD,{fence:true,stretchy:true,symmetric:true}],"¬":e.MO.ORD21,"±":e.MO.BIN01,"‖":[0,0,n.TEXCLASS.ORD,{fence:true,stretchy:true}],"‘":[0,0,n.TEXCLASS.OPEN,{fence:true}],"“":[0,0,n.TEXCLASS.OPEN,{fence:true}],"ⅅ":e.MO.ORD21,"ⅆ":O(2,0,n.TEXCLASS.ORD),"∀":e.MO.ORD21,"∂":e.MO.ORD21,"∃":e.MO.ORD21,"∄":e.MO.ORD21,"∇":e.MO.ORD21,"∏":e.MO.OP,"∐":e.MO.OP,"∑":e.MO.OP,"−":e.MO.BIN01,"∓":e.MO.BIN01,"√":[1,1,n.TEXCLASS.ORD,{stretchy:true}],"∛":e.MO.ORD11,"∜":e.MO.ORD11,"∠":e.MO.ORD,"∡":e.MO.ORD,"∢":e.MO.ORD,"∫":e.MO.INTEGRAL,"∬":e.MO.INTEGRAL,"∭":e.MO.INTEGRAL,"∮":e.MO.INTEGRAL,"∯":e.MO.INTEGRAL,"∰":e.MO.INTEGRAL,"∱":e.MO.INTEGRAL,"∲":e.MO.INTEGRAL,"∳":e.MO.INTEGRAL,"⋀":e.MO.OP,"⋁":e.MO.OP,"⋂":e.MO.OP,"⋃":e.MO.OP,"⌈":e.MO.OPEN,"⌊":e.MO.OPEN,"〈":e.MO.OPEN,"❲":e.MO.OPEN,"⟦":e.MO.OPEN,"⟨":e.MO.OPEN,"⟪":e.MO.OPEN,"⟬":e.MO.OPEN,"⟮":e.MO.OPEN,"⦀":[0,0,n.TEXCLASS.ORD,{fence:true,stretchy:true}],"⦃":e.MO.OPEN,"⦅":e.MO.OPEN,"⦇":e.MO.OPEN,"⦉":e.MO.OPEN,"⦋":e.MO.OPEN,"⦍":e.MO.OPEN,"⦏":e.MO.OPEN,"⦑":e.MO.OPEN,"⦓":e.MO.OPEN,"⦕":e.MO.OPEN,"⦗":e.MO.OPEN,"⧼":e.MO.OPEN,"⨀":e.MO.OP,"⨁":e.MO.OP,"⨂":e.MO.OP,"⨃":e.MO.OP,"⨄":e.MO.OP,"⨅":e.MO.OP,"⨆":e.MO.OP,"⨇":e.MO.OP,"⨈":e.MO.OP,"⨉":e.MO.OP,"⨊":e.MO.OP,"⨋":e.MO.INTEGRAL2,"⨌":e.MO.INTEGRAL,"⨍":e.MO.INTEGRAL2,"⨎":e.MO.INTEGRAL2,"⨏":e.MO.INTEGRAL2,"⨐":e.MO.OP,"⨑":e.MO.OP,"⨒":e.MO.OP,"⨓":e.MO.OP,"⨔":e.MO.OP,"⨕":e.MO.INTEGRAL2,"⨖":e.MO.INTEGRAL2,"⨗":e.MO.INTEGRAL2,"⨘":e.MO.INTEGRAL2,"⨙":e.MO.INTEGRAL2,"⨚":e.MO.INTEGRAL2,"⨛":e.MO.INTEGRAL2,"⨜":e.MO.INTEGRAL2,"⫼":e.MO.OP,"⫿":e.MO.OP},postfix:{"!!":O(1,0),"!":[1,0,n.TEXCLASS.CLOSE,null],'"':e.MO.ACCENT,"&":e.MO.ORD,")":e.MO.CLOSE,"++":O(0,0),"--":O(0,0),"..":O(0,0),"...":e.MO.ORD,"'":e.MO.ACCENT,"]":e.MO.CLOSE,"^":e.MO.WIDEACCENT,_:e.MO.WIDEACCENT,"`":e.MO.ACCENT,"|":e.MO.CLOSE,"}":e.MO.CLOSE,"~":e.MO.WIDEACCENT,"||":[0,0,n.TEXCLASS.BIN,{fence:true,stretchy:true,symmetric:true}],"|||":[0,0,n.TEXCLASS.ORD,{fence:true,stretchy:true,symmetric:true}],"¨":e.MO.ACCENT,"ª":e.MO.ACCENT,"¯":e.MO.WIDEACCENT,"°":e.MO.ORD,"²":e.MO.ACCENT,"³":e.MO.ACCENT,"´":e.MO.ACCENT,"¸":e.MO.ACCENT,"¹":e.MO.ACCENT,"º":e.MO.ACCENT,"ˆ":e.MO.WIDEACCENT,"ˇ":e.MO.WIDEACCENT,"ˉ":e.MO.WIDEACCENT,"ˊ":e.MO.ACCENT,"ˋ":e.MO.ACCENT,"ˍ":e.MO.WIDEACCENT,"˘":e.MO.ACCENT,"˙":e.MO.ACCENT,"˚":e.MO.ACCENT,"˜":e.MO.WIDEACCENT,"˝":e.MO.ACCENT,"˷":e.MO.WIDEACCENT,"̂":e.MO.WIDEACCENT,"̑":e.MO.ACCENT,"϶":e.MO.REL,"‖":[0,0,n.TEXCLASS.ORD,{fence:true,stretchy:true}],"’":[0,0,n.TEXCLASS.CLOSE,{fence:true}],"‚":e.MO.ACCENT,"‛":e.MO.ACCENT,"”":[0,0,n.TEXCLASS.CLOSE,{fence:true}],"„":e.MO.ACCENT,"‟":e.MO.ACCENT,"′":e.MO.ORD,"″":e.MO.ACCENT,"‴":e.MO.ACCENT,"‵":e.MO.ACCENT,"‶":e.MO.ACCENT,"‷":e.MO.ACCENT,"‾":e.MO.WIDEACCENT,"⁗":e.MO.ACCENT,"⃛":e.MO.ACCENT,"⃜":e.MO.ACCENT,"⌉":e.MO.CLOSE,"⌋":e.MO.CLOSE,"〉":e.MO.CLOSE,"⎴":e.MO.WIDEACCENT,"⎵":e.MO.WIDEACCENT,"⏜":e.MO.WIDEACCENT,"⏝":e.MO.WIDEACCENT,"⏞":e.MO.WIDEACCENT,"⏟":e.MO.WIDEACCENT,"⏠":e.MO.WIDEACCENT,"⏡":e.MO.WIDEACCENT,"■":e.MO.BIN3,"□":e.MO.BIN3,"▪":e.MO.BIN3,"▫":e.MO.BIN3,"▭":e.MO.BIN3,"▮":e.MO.BIN3,"▯":e.MO.BIN3,"▰":e.MO.BIN3,"▱":e.MO.BIN3,"▲":e.MO.BIN4,"▴":e.MO.BIN4,"▶":e.MO.BIN4,"▷":e.MO.BIN4,"▸":e.MO.BIN4,"▼":e.MO.BIN4,"▾":e.MO.BIN4,"◀":e.MO.BIN4,"◁":e.MO.BIN4,"◂":e.MO.BIN4,"◄":e.MO.BIN4,"◅":e.MO.BIN4,"◆":e.MO.BIN4,"◇":e.MO.BIN4,"◈":e.MO.BIN4,"◉":e.MO.BIN4,"◌":e.MO.BIN4,"◍":e.MO.BIN4,"◎":e.MO.BIN4,"●":e.MO.BIN4,"◖":e.MO.BIN4,"◗":e.MO.BIN4,"◦":e.MO.BIN4,"♭":e.MO.ORD02,"♮":e.MO.ORD02,"♯":e.MO.ORD02,"❳":e.MO.CLOSE,"⟧":e.MO.CLOSE,"⟩":e.MO.CLOSE,"⟫":e.MO.CLOSE,"⟭":e.MO.CLOSE,"⟯":e.MO.CLOSE,"⦀":[0,0,n.TEXCLASS.ORD,{fence:true,stretchy:true}],"⦄":e.MO.CLOSE,"⦆":e.MO.CLOSE,"⦈":e.MO.CLOSE,"⦊":e.MO.CLOSE,"⦌":e.MO.CLOSE,"⦎":e.MO.CLOSE,"⦐":e.MO.CLOSE,"⦒":e.MO.CLOSE,"⦔":e.MO.CLOSE,"⦖":e.MO.CLOSE,"⦘":e.MO.CLOSE,"⧽":e.MO.CLOSE},infix:{"!=":e.MO.BIN4,"#":e.MO.ORD,$:e.MO.ORD,"%":[3,3,n.TEXCLASS.ORD,null],"&&":e.MO.BIN4,"":e.MO.ORD,"*":e.MO.BIN3,"**":O(1,1),"*=":e.MO.BIN4,"+":e.MO.BIN4,"+=":e.MO.BIN4,",":[0,3,n.TEXCLASS.PUNCT,{linebreakstyle:"after",separator:true}],"-":e.MO.BIN4,"-=":e.MO.BIN4,"->":e.MO.BIN5,".":[0,3,n.TEXCLASS.PUNCT,{separator:true}],"/":e.MO.ORD11,"//":O(1,1),"/=":e.MO.BIN4,":":[1,2,n.TEXCLASS.REL,null],":=":e.MO.BIN4,";":[0,3,n.TEXCLASS.PUNCT,{linebreakstyle:"after",separator:true}],"<":e.MO.REL,"<=":e.MO.BIN5,"<>":O(1,1),"=":e.MO.REL,"==":e.MO.BIN4,">":e.MO.REL,">=":e.MO.BIN5,"?":[1,1,n.TEXCLASS.CLOSE,null],"@":e.MO.ORD11,"\\":e.MO.ORD,"^":e.MO.ORD11,_:e.MO.ORD11,"|":[2,2,n.TEXCLASS.ORD,{fence:true,stretchy:true,symmetric:true}],"||":[2,2,n.TEXCLASS.BIN,{fence:true,stretchy:true,symmetric:true}],"|||":[2,2,n.TEXCLASS.ORD,{fence:true,stretchy:true,symmetric:true}],"±":e.MO.BIN4,"·":e.MO.BIN4,"×":e.MO.BIN4,"÷":e.MO.BIN4,"ʹ":e.MO.ORD,"̀":e.MO.ACCENT,"́":e.MO.ACCENT,"̃":e.MO.WIDEACCENT,"̄":e.MO.ACCENT,"̆":e.MO.ACCENT,"̇":e.MO.ACCENT,"̈":e.MO.ACCENT,"̌":e.MO.ACCENT,"̲":e.MO.WIDEACCENT,"̸":e.MO.REL4,"―":[0,0,n.TEXCLASS.ORD,{stretchy:true}],"‗":[0,0,n.TEXCLASS.ORD,{stretchy:true}],"†":e.MO.BIN3,"‡":e.MO.BIN3,"•":e.MO.BIN4,"…":e.MO.INNER,"⁃":e.MO.BIN4,"⁄":e.MO.TALLBIN,"⁡":e.MO.NONE,"⁢":e.MO.NONE,"⁣":[0,0,n.TEXCLASS.NONE,{linebreakstyle:"after",separator:true}],"⁤":e.MO.NONE,"⃗":e.MO.ACCENT,"ℑ":e.MO.ORD,"ℓ":e.MO.ORD,"℘":e.MO.ORD,"ℜ":e.MO.ORD,"←":e.MO.WIDEREL,"↑":e.MO.RELSTRETCH,"→":e.MO.WIDEREL,"↓":e.MO.RELSTRETCH,"↔":e.MO.WIDEREL,"↕":e.MO.RELSTRETCH,"↖":e.MO.RELSTRETCH,"↗":e.MO.RELSTRETCH,"↘":e.MO.RELSTRETCH,"↙":e.MO.RELSTRETCH,"↚":e.MO.RELACCENT,"↛":e.MO.RELACCENT,"↜":e.MO.WIDEREL,"↝":e.MO.WIDEREL,"↞":e.MO.WIDEREL,"↟":e.MO.WIDEREL,"↠":e.MO.WIDEREL,"↡":e.MO.RELSTRETCH,"↢":e.MO.WIDEREL,"↣":e.MO.WIDEREL,"↤":e.MO.WIDEREL,"↥":e.MO.RELSTRETCH,"↦":e.MO.WIDEREL,"↧":e.MO.RELSTRETCH,"↨":e.MO.RELSTRETCH,"↩":e.MO.WIDEREL,"↪":e.MO.WIDEREL,"↫":e.MO.WIDEREL,"↬":e.MO.WIDEREL,"↭":e.MO.WIDEREL,"↮":e.MO.RELACCENT,"↯":e.MO.RELSTRETCH,"↰":e.MO.RELSTRETCH,"↱":e.MO.RELSTRETCH,"↲":e.MO.RELSTRETCH,"↳":e.MO.RELSTRETCH,"↴":e.MO.RELSTRETCH,"↵":e.MO.RELSTRETCH,"↶":e.MO.RELACCENT,"↷":e.MO.RELACCENT,"↸":e.MO.REL,"↹":e.MO.WIDEREL,"↺":e.MO.REL,"↻":e.MO.REL,"↼":e.MO.WIDEREL,"↽":e.MO.WIDEREL,"↾":e.MO.RELSTRETCH,"↿":e.MO.RELSTRETCH,"⇀":e.MO.WIDEREL,"⇁":e.MO.WIDEREL,"⇂":e.MO.RELSTRETCH,"⇃":e.MO.RELSTRETCH,"⇄":e.MO.WIDEREL,"⇅":e.MO.RELSTRETCH,"⇆":e.MO.WIDEREL,"⇇":e.MO.WIDEREL,"⇈":e.MO.RELSTRETCH,"⇉":e.MO.WIDEREL,"⇊":e.MO.RELSTRETCH,"⇋":e.MO.WIDEREL,"⇌":e.MO.WIDEREL,"⇍":e.MO.RELACCENT,"⇎":e.MO.RELACCENT,"⇏":e.MO.RELACCENT,"⇐":e.MO.WIDEREL,"⇑":e.MO.RELSTRETCH,"⇒":e.MO.WIDEREL,"⇓":e.MO.RELSTRETCH,"⇔":e.MO.WIDEREL,"⇕":e.MO.RELSTRETCH,"⇖":e.MO.RELSTRETCH,"⇗":e.MO.RELSTRETCH,"⇘":e.MO.RELSTRETCH,"⇙":e.MO.RELSTRETCH,"⇚":e.MO.WIDEREL,"⇛":e.MO.WIDEREL,"⇜":e.MO.WIDEREL,"⇝":e.MO.WIDEREL,"⇞":e.MO.REL,"⇟":e.MO.REL,"⇠":e.MO.WIDEREL,"⇡":e.MO.RELSTRETCH,"⇢":e.MO.WIDEREL,"⇣":e.MO.RELSTRETCH,"⇤":e.MO.WIDEREL,"⇥":e.MO.WIDEREL,"⇦":e.MO.WIDEREL,"⇧":e.MO.RELSTRETCH,"⇨":e.MO.WIDEREL,"⇩":e.MO.RELSTRETCH,"⇪":e.MO.RELSTRETCH,"⇫":e.MO.RELSTRETCH,"⇬":e.MO.RELSTRETCH,"⇭":e.MO.RELSTRETCH,"⇮":e.MO.RELSTRETCH,"⇯":e.MO.RELSTRETCH,"⇰":e.MO.WIDEREL,"⇱":e.MO.REL,"⇲":e.MO.REL,"⇳":e.MO.RELSTRETCH,"⇴":e.MO.RELACCENT,"⇵":e.MO.RELSTRETCH,"⇶":e.MO.WIDEREL,"⇷":e.MO.RELACCENT,"⇸":e.MO.RELACCENT,"⇹":e.MO.RELACCENT,"⇺":e.MO.RELACCENT,"⇻":e.MO.RELACCENT,"⇼":e.MO.RELACCENT,"⇽":e.MO.WIDEREL,"⇾":e.MO.WIDEREL,"⇿":e.MO.WIDEREL,"∁":O(1,2,n.TEXCLASS.ORD),"∅":e.MO.ORD,"∆":e.MO.BIN3,"∈":e.MO.REL,"∉":e.MO.REL,"∊":e.MO.REL,"∋":e.MO.REL,"∌":e.MO.REL,"∍":e.MO.REL,"∎":e.MO.BIN3,"−":e.MO.BIN4,"∓":e.MO.BIN4,"∔":e.MO.BIN4,"∕":e.MO.TALLBIN,"∖":e.MO.BIN4,"∗":e.MO.BIN4,"∘":e.MO.BIN4,"∙":e.MO.BIN4,"∝":e.MO.REL,"∞":e.MO.ORD,"∟":e.MO.REL,"∣":e.MO.REL,"∤":e.MO.REL,"∥":e.MO.REL,"∦":e.MO.REL,"∧":e.MO.BIN4,"∨":e.MO.BIN4,"∩":e.MO.BIN4,"∪":e.MO.BIN4,"∴":e.MO.REL,"∵":e.MO.REL,"∶":e.MO.REL,"∷":e.MO.REL,"∸":e.MO.BIN4,"∹":e.MO.REL,"∺":e.MO.BIN4,"∻":e.MO.REL,"∼":e.MO.REL,"∽":e.MO.REL,"∽̱":e.MO.BIN3,"∾":e.MO.REL,"∿":e.MO.BIN3,"≀":e.MO.BIN4,"≁":e.MO.REL,"≂":e.MO.REL,"≂̸":e.MO.REL,"≃":e.MO.REL,"≄":e.MO.REL,"≅":e.MO.REL,"≆":e.MO.REL,"≇":e.MO.REL,"≈":e.MO.REL,"≉":e.MO.REL,"≊":e.MO.REL,"≋":e.MO.REL,"≌":e.MO.REL,"≍":e.MO.REL,"≎":e.MO.REL,"≎̸":e.MO.REL,"≏":e.MO.REL,"≏̸":e.MO.REL,"≐":e.MO.REL,"≑":e.MO.REL,"≒":e.MO.REL,"≓":e.MO.REL,"≔":e.MO.REL,"≕":e.MO.REL,"≖":e.MO.REL,"≗":e.MO.REL,"≘":e.MO.REL,"≙":e.MO.REL,"≚":e.MO.REL,"≛":e.MO.REL,"≜":e.MO.REL,"≝":e.MO.REL,"≞":e.MO.REL,"≟":e.MO.REL,"≠":e.MO.REL,"≡":e.MO.REL,"≢":e.MO.REL,"≣":e.MO.REL,"≤":e.MO.REL,"≥":e.MO.REL,"≦":e.MO.REL,"≦̸":e.MO.REL,"≧":e.MO.REL,"≨":e.MO.REL,"≩":e.MO.REL,"≪":e.MO.REL,"≪̸":e.MO.REL,"≫":e.MO.REL,"≫̸":e.MO.REL,"≬":e.MO.REL,"≭":e.MO.REL,"≮":e.MO.REL,"≯":e.MO.REL,"≰":e.MO.REL,"≱":e.MO.REL,"≲":e.MO.REL,"≳":e.MO.REL,"≴":e.MO.REL,"≵":e.MO.REL,"≶":e.MO.REL,"≷":e.MO.REL,"≸":e.MO.REL,"≹":e.MO.REL,"≺":e.MO.REL,"≻":e.MO.REL,"≼":e.MO.REL,"≽":e.MO.REL,"≾":e.MO.REL,"≿":e.MO.REL,"≿̸":e.MO.REL,"⊀":e.MO.REL,"⊁":e.MO.REL,"⊂":e.MO.REL,"⊂⃒":e.MO.REL,"⊃":e.MO.REL,"⊃⃒":e.MO.REL,"⊄":e.MO.REL,"⊅":e.MO.REL,"⊆":e.MO.REL,"⊇":e.MO.REL,"⊈":e.MO.REL,"⊉":e.MO.REL,"⊊":e.MO.REL,"⊋":e.MO.REL,"⊌":e.MO.BIN4,"⊍":e.MO.BIN4,"⊎":e.MO.BIN4,"⊏":e.MO.REL,"⊏̸":e.MO.REL,"⊐":e.MO.REL,"⊐̸":e.MO.REL,"⊑":e.MO.REL,"⊒":e.MO.REL,"⊓":e.MO.BIN4,"⊔":e.MO.BIN4,"⊕":e.MO.BIN4,"⊖":e.MO.BIN4,"⊗":e.MO.BIN4,"⊘":e.MO.BIN4,"⊙":e.MO.BIN4,"⊚":e.MO.BIN4,"⊛":e.MO.BIN4,"⊜":e.MO.BIN4,"⊝":e.MO.BIN4,"⊞":e.MO.BIN4,"⊟":e.MO.BIN4,"⊠":e.MO.BIN4,"⊡":e.MO.BIN4,"⊢":e.MO.REL,"⊣":e.MO.REL,"⊤":e.MO.ORD55,"⊥":e.MO.REL,"⊦":e.MO.REL,"⊧":e.MO.REL,"⊨":e.MO.REL,"⊩":e.MO.REL,"⊪":e.MO.REL,"⊫":e.MO.REL,"⊬":e.MO.REL,"⊭":e.MO.REL,"⊮":e.MO.REL,"⊯":e.MO.REL,"⊰":e.MO.REL,"⊱":e.MO.REL,"⊲":e.MO.REL,"⊳":e.MO.REL,"⊴":e.MO.REL,"⊵":e.MO.REL,"⊶":e.MO.REL,"⊷":e.MO.REL,"⊸":e.MO.REL,"⊹":e.MO.REL,"⊺":e.MO.BIN4,"⊻":e.MO.BIN4,"⊼":e.MO.BIN4,"⊽":e.MO.BIN4,"⊾":e.MO.BIN3,"⊿":e.MO.BIN3,"⋄":e.MO.BIN4,"⋅":e.MO.BIN4,"⋆":e.MO.BIN4,"⋇":e.MO.BIN4,"⋈":e.MO.REL,"⋉":e.MO.BIN4,"⋊":e.MO.BIN4,"⋋":e.MO.BIN4,"⋌":e.MO.BIN4,"⋍":e.MO.REL,"⋎":e.MO.BIN4,"⋏":e.MO.BIN4,"⋐":e.MO.REL,"⋑":e.MO.REL,"⋒":e.MO.BIN4,"⋓":e.MO.BIN4,"⋔":e.MO.REL,"⋕":e.MO.REL,"⋖":e.MO.REL,"⋗":e.MO.REL,"⋘":e.MO.REL,"⋙":e.MO.REL,"⋚":e.MO.REL,"⋛":e.MO.REL,"⋜":e.MO.REL,"⋝":e.MO.REL,"⋞":e.MO.REL,"⋟":e.MO.REL,"⋠":e.MO.REL,"⋡":e.MO.REL,"⋢":e.MO.REL,"⋣":e.MO.REL,"⋤":e.MO.REL,"⋥":e.MO.REL,"⋦":e.MO.REL,"⋧":e.MO.REL,"⋨":e.MO.REL,"⋩":e.MO.REL,"⋪":e.MO.REL,"⋫":e.MO.REL,"⋬":e.MO.REL,"⋭":e.MO.REL,"⋮":e.MO.ORD55,"⋯":e.MO.INNER,"⋰":e.MO.REL,"⋱":[5,5,n.TEXCLASS.INNER,null],"⋲":e.MO.REL,"⋳":e.MO.REL,"⋴":e.MO.REL,"⋵":e.MO.REL,"⋶":e.MO.REL,"⋷":e.MO.REL,"⋸":e.MO.REL,"⋹":e.MO.REL,"⋺":e.MO.REL,"⋻":e.MO.REL,"⋼":e.MO.REL,"⋽":e.MO.REL,"⋾":e.MO.REL,"⋿":e.MO.REL,"⌅":e.MO.BIN3,"⌆":e.MO.BIN3,"⌢":e.MO.REL4,"⌣":e.MO.REL4,"〈":e.MO.OPEN,"〉":e.MO.CLOSE,"⎪":e.MO.ORD,"⎯":[0,0,n.TEXCLASS.ORD,{stretchy:true}],"⎰":e.MO.OPEN,"⎱":e.MO.CLOSE,"─":e.MO.ORD,"△":e.MO.BIN4,"▵":e.MO.BIN4,"▹":e.MO.BIN4,"▽":e.MO.BIN4,"▿":e.MO.BIN4,"◃":e.MO.BIN4,"◯":e.MO.BIN3,"♠":e.MO.ORD,"♡":e.MO.ORD,"♢":e.MO.ORD,"♣":e.MO.ORD,"❘":e.MO.REL,"⟰":e.MO.RELSTRETCH,"⟱":e.MO.RELSTRETCH,"⟵":e.MO.WIDEREL,"⟶":e.MO.WIDEREL,"⟷":e.MO.WIDEREL,"⟸":e.MO.WIDEREL,"⟹":e.MO.WIDEREL,"⟺":e.MO.WIDEREL,"⟻":e.MO.WIDEREL,"⟼":e.MO.WIDEREL,"⟽":e.MO.WIDEREL,"⟾":e.MO.WIDEREL,"⟿":e.MO.WIDEREL,"⤀":e.MO.RELACCENT,"⤁":e.MO.RELACCENT,"⤂":e.MO.RELACCENT,"⤃":e.MO.RELACCENT,"⤄":e.MO.RELACCENT,"⤅":e.MO.RELACCENT,"⤆":e.MO.RELACCENT,"⤇":e.MO.RELACCENT,"⤈":e.MO.REL,"⤉":e.MO.REL,"⤊":e.MO.RELSTRETCH,"⤋":e.MO.RELSTRETCH,"⤌":e.MO.WIDEREL,"⤍":e.MO.WIDEREL,"⤎":e.MO.WIDEREL,"⤏":e.MO.WIDEREL,"⤐":e.MO.WIDEREL,"⤑":e.MO.RELACCENT,"⤒":e.MO.RELSTRETCH,"⤓":e.MO.RELSTRETCH,"⤔":e.MO.RELACCENT,"⤕":e.MO.RELACCENT,"⤖":e.MO.RELACCENT,"⤗":e.MO.RELACCENT,"⤘":e.MO.RELACCENT,"⤙":e.MO.RELACCENT,"⤚":e.MO.RELACCENT,"⤛":e.MO.RELACCENT,"⤜":e.MO.RELACCENT,"⤝":e.MO.RELACCENT,"⤞":e.MO.RELACCENT,"⤟":e.MO.RELACCENT,"⤠":e.MO.RELACCENT,"⤡":e.MO.RELSTRETCH,"⤢":e.MO.RELSTRETCH,"⤣":e.MO.REL,"⤤":e.MO.REL,"⤥":e.MO.REL,"⤦":e.MO.REL,"⤧":e.MO.REL,"⤨":e.MO.REL,"⤩":e.MO.REL,"⤪":e.MO.REL,"⤫":e.MO.REL,"⤬":e.MO.REL,"⤭":e.MO.REL,"⤮":e.MO.REL,"⤯":e.MO.REL,"⤰":e.MO.REL,"⤱":e.MO.REL,"⤲":e.MO.REL,"⤳":e.MO.RELACCENT,"⤴":e.MO.REL,"⤵":e.MO.REL,"⤶":e.MO.REL,"⤷":e.MO.REL,"⤸":e.MO.REL,"⤹":e.MO.REL,"⤺":e.MO.RELACCENT,"⤻":e.MO.RELACCENT,"⤼":e.MO.RELACCENT,"⤽":e.MO.RELACCENT,"⤾":e.MO.REL,"⤿":e.MO.REL,"⥀":e.MO.REL,"⥁":e.MO.REL,"⥂":e.MO.RELACCENT,"⥃":e.MO.RELACCENT,"⥄":e.MO.RELACCENT,"⥅":e.MO.RELACCENT,"⥆":e.MO.RELACCENT,"⥇":e.MO.RELACCENT,"⥈":e.MO.RELACCENT,"⥉":e.MO.REL,"⥊":e.MO.RELACCENT,"⥋":e.MO.RELACCENT,"⥌":e.MO.REL,"⥍":e.MO.REL,"⥎":e.MO.WIDEREL,"⥏":e.MO.RELSTRETCH,"⥐":e.MO.WIDEREL,"⥑":e.MO.RELSTRETCH,"⥒":e.MO.WIDEREL,"⥓":e.MO.WIDEREL,"⥔":e.MO.RELSTRETCH,"⥕":e.MO.RELSTRETCH,"⥖":e.MO.RELSTRETCH,"⥗":e.MO.RELSTRETCH,"⥘":e.MO.RELSTRETCH,"⥙":e.MO.RELSTRETCH,"⥚":e.MO.WIDEREL,"⥛":e.MO.WIDEREL,"⥜":e.MO.RELSTRETCH,"⥝":e.MO.RELSTRETCH,"⥞":e.MO.WIDEREL,"⥟":e.MO.WIDEREL,"⥠":e.MO.RELSTRETCH,"⥡":e.MO.RELSTRETCH,"⥢":e.MO.RELACCENT,"⥣":e.MO.REL,"⥤":e.MO.RELACCENT,"⥥":e.MO.REL,"⥦":e.MO.RELACCENT,"⥧":e.MO.RELACCENT,"⥨":e.MO.RELACCENT,"⥩":e.MO.RELACCENT,"⥪":e.MO.RELACCENT,"⥫":e.MO.RELACCENT,"⥬":e.MO.RELACCENT,"⥭":e.MO.RELACCENT,"⥮":e.MO.RELSTRETCH,"⥯":e.MO.RELSTRETCH,"⥰":e.MO.RELACCENT,"⥱":e.MO.RELACCENT,"⥲":e.MO.RELACCENT,"⥳":e.MO.RELACCENT,"⥴":e.MO.RELACCENT,"⥵":e.MO.RELACCENT,"⥶":e.MO.RELACCENT,"⥷":e.MO.RELACCENT,"⥸":e.MO.RELACCENT,"⥹":e.MO.RELACCENT,"⥺":e.MO.RELACCENT,"⥻":e.MO.RELACCENT,"⥼":e.MO.RELACCENT,"⥽":e.MO.RELACCENT,"⥾":e.MO.REL,"⥿":e.MO.REL,"⦁":e.MO.BIN3,"⦂":e.MO.BIN3,"⦙":e.MO.BIN3,"⦚":e.MO.BIN3,"⦛":e.MO.BIN3,"⦜":e.MO.BIN3,"⦝":e.MO.BIN3,"⦞":e.MO.BIN3,"⦟":e.MO.BIN3,"⦠":e.MO.BIN3,"⦡":e.MO.BIN3,"⦢":e.MO.BIN3,"⦣":e.MO.BIN3,"⦤":e.MO.BIN3,"⦥":e.MO.BIN3,"⦦":e.MO.BIN3,"⦧":e.MO.BIN3,"⦨":e.MO.BIN3,"⦩":e.MO.BIN3,"⦪":e.MO.BIN3,"⦫":e.MO.BIN3,"⦬":e.MO.BIN3,"⦭":e.MO.BIN3,"⦮":e.MO.BIN3,"⦯":e.MO.BIN3,"⦰":e.MO.BIN3,"⦱":e.MO.BIN3,"⦲":e.MO.BIN3,"⦳":e.MO.BIN3,"⦴":e.MO.BIN3,"⦵":e.MO.BIN3,"⦶":e.MO.BIN4,"⦷":e.MO.BIN4,"⦸":e.MO.BIN4,"⦹":e.MO.BIN4,"⦺":e.MO.BIN4,"⦻":e.MO.BIN4,"⦼":e.MO.BIN4,"⦽":e.MO.BIN4,"⦾":e.MO.BIN4,"⦿":e.MO.BIN4,"⧀":e.MO.REL,"⧁":e.MO.REL,"⧂":e.MO.BIN3,"⧃":e.MO.BIN3,"⧄":e.MO.BIN4,"⧅":e.MO.BIN4,"⧆":e.MO.BIN4,"⧇":e.MO.BIN4,"⧈":e.MO.BIN4,"⧉":e.MO.BIN3,"⧊":e.MO.BIN3,"⧋":e.MO.BIN3,"⧌":e.MO.BIN3,"⧍":e.MO.BIN3,"⧎":e.MO.REL,"⧏":e.MO.REL,"⧏̸":e.MO.REL,"⧐":e.MO.REL,"⧐̸":e.MO.REL,"⧑":e.MO.REL,"⧒":e.MO.REL,"⧓":e.MO.REL,"⧔":e.MO.REL,"⧕":e.MO.REL,"⧖":e.MO.BIN4,"⧗":e.MO.BIN4,"⧘":e.MO.BIN3,"⧙":e.MO.BIN3,"⧛":e.MO.BIN3,"⧜":e.MO.BIN3,"⧝":e.MO.BIN3,"⧞":e.MO.REL,"⧟":e.MO.BIN3,"⧠":e.MO.BIN3,"⧡":e.MO.REL,"⧢":e.MO.BIN4,"⧣":e.MO.REL,"⧤":e.MO.REL,"⧥":e.MO.REL,"⧦":e.MO.REL,"⧧":e.MO.BIN3,"⧨":e.MO.BIN3,"⧩":e.MO.BIN3,"⧪":e.MO.BIN3,"⧫":e.MO.BIN3,"⧬":e.MO.BIN3,"⧭":e.MO.BIN3,"⧮":e.MO.BIN3,"⧯":e.MO.BIN3,"⧰":e.MO.BIN3,"⧱":e.MO.BIN3,"⧲":e.MO.BIN3,"⧳":e.MO.BIN3,"⧴":e.MO.REL,"⧵":e.MO.BIN4,"⧶":e.MO.BIN4,"⧷":e.MO.BIN4,"⧸":e.MO.BIN3,"⧹":e.MO.BIN3,"⧺":e.MO.BIN3,"⧻":e.MO.BIN3,"⧾":e.MO.BIN4,"⧿":e.MO.BIN4,"⨝":e.MO.BIN3,"⨞":e.MO.BIN3,"⨟":e.MO.BIN3,"⨠":e.MO.BIN3,"⨡":e.MO.BIN3,"⨢":e.MO.BIN4,"⨣":e.MO.BIN4,"⨤":e.MO.BIN4,"⨥":e.MO.BIN4,"⨦":e.MO.BIN4,"⨧":e.MO.BIN4,"⨨":e.MO.BIN4,"⨩":e.MO.BIN4,"⨪":e.MO.BIN4,"⨫":e.MO.BIN4,"⨬":e.MO.BIN4,"⨭":e.MO.BIN4,"⨮":e.MO.BIN4,"⨯":e.MO.BIN4,"⨰":e.MO.BIN4,"⨱":e.MO.BIN4,"⨲":e.MO.BIN4,"⨳":e.MO.BIN4,"⨴":e.MO.BIN4,"⨵":e.MO.BIN4,"⨶":e.MO.BIN4,"⨷":e.MO.BIN4,"⨸":e.MO.BIN4,"⨹":e.MO.BIN4,"⨺":e.MO.BIN4,"⨻":e.MO.BIN4,"⨼":e.MO.BIN4,"⨽":e.MO.BIN4,"⨾":e.MO.BIN4,"⨿":e.MO.BIN4,"⩀":e.MO.BIN4,"⩁":e.MO.BIN4,"⩂":e.MO.BIN4,"⩃":e.MO.BIN4,"⩄":e.MO.BIN4,"⩅":e.MO.BIN4,"⩆":e.MO.BIN4,"⩇":e.MO.BIN4,"⩈":e.MO.BIN4,"⩉":e.MO.BIN4,"⩊":e.MO.BIN4,"⩋":e.MO.BIN4,"⩌":e.MO.BIN4,"⩍":e.MO.BIN4,"⩎":e.MO.BIN4,"⩏":e.MO.BIN4,"⩐":e.MO.BIN4,"⩑":e.MO.BIN4,"⩒":e.MO.BIN4,"⩓":e.MO.BIN4,"⩔":e.MO.BIN4,"⩕":e.MO.BIN4,"⩖":e.MO.BIN4,"⩗":e.MO.BIN4,"⩘":e.MO.BIN4,"⩙":e.MO.REL,"⩚":e.MO.BIN4,"⩛":e.MO.BIN4,"⩜":e.MO.BIN4,"⩝":e.MO.BIN4,"⩞":e.MO.BIN4,"⩟":e.MO.BIN4,"⩠":e.MO.BIN4,"⩡":e.MO.BIN4,"⩢":e.MO.BIN4,"⩣":e.MO.BIN4,"⩤":e.MO.BIN4,"⩥":e.MO.BIN4,"⩦":e.MO.REL,"⩧":e.MO.REL,"⩨":e.MO.REL,"⩩":e.MO.REL,"⩪":e.MO.REL,"⩫":e.MO.REL,"⩬":e.MO.REL,"⩭":e.MO.REL,"⩮":e.MO.REL,"⩯":e.MO.REL,"⩰":e.MO.REL,"⩱":e.MO.BIN4,"⩲":e.MO.BIN4,"⩳":e.MO.REL,"⩴":e.MO.REL,"⩵":e.MO.REL,"⩶":e.MO.REL,"⩷":e.MO.REL,"⩸":e.MO.REL,"⩹":e.MO.REL,"⩺":e.MO.REL,"⩻":e.MO.REL,"⩼":e.MO.REL,"⩽":e.MO.REL,"⩽̸":e.MO.REL,"⩾":e.MO.REL,"⩾̸":e.MO.REL,"⩿":e.MO.REL,"⪀":e.MO.REL,"⪁":e.MO.REL,"⪂":e.MO.REL,"⪃":e.MO.REL,"⪄":e.MO.REL,"⪅":e.MO.REL,"⪆":e.MO.REL,"⪇":e.MO.REL,"⪈":e.MO.REL,"⪉":e.MO.REL,"⪊":e.MO.REL,"⪋":e.MO.REL,"⪌":e.MO.REL,"⪍":e.MO.REL,"⪎":e.MO.REL,"⪏":e.MO.REL,"⪐":e.MO.REL,"⪑":e.MO.REL,"⪒":e.MO.REL,"⪓":e.MO.REL,"⪔":e.MO.REL,"⪕":e.MO.REL,"⪖":e.MO.REL,"⪗":e.MO.REL,"⪘":e.MO.REL,"⪙":e.MO.REL,"⪚":e.MO.REL,"⪛":e.MO.REL,"⪜":e.MO.REL,"⪝":e.MO.REL,"⪞":e.MO.REL,"⪟":e.MO.REL,"⪠":e.MO.REL,"⪡":e.MO.REL,"⪡̸":e.MO.REL,"⪢":e.MO.REL,"⪢̸":e.MO.REL,"⪣":e.MO.REL,"⪤":e.MO.REL,"⪥":e.MO.REL,"⪦":e.MO.REL,"⪧":e.MO.REL,"⪨":e.MO.REL,"⪩":e.MO.REL,"⪪":e.MO.REL,"⪫":e.MO.REL,"⪬":e.MO.REL,"⪭":e.MO.REL,"⪮":e.MO.REL,"⪯":e.MO.REL,"⪯̸":e.MO.REL,"⪰":e.MO.REL,"⪰̸":e.MO.REL,"⪱":e.MO.REL,"⪲":e.MO.REL,"⪳":e.MO.REL,"⪴":e.MO.REL,"⪵":e.MO.REL,"⪶":e.MO.REL,"⪷":e.MO.REL,"⪸":e.MO.REL,"⪹":e.MO.REL,"⪺":e.MO.REL,"⪻":e.MO.REL,"⪼":e.MO.REL,"⪽":e.MO.REL,"⪾":e.MO.REL,"⪿":e.MO.REL,"⫀":e.MO.REL,"⫁":e.MO.REL,"⫂":e.MO.REL,"⫃":e.MO.REL,"⫄":e.MO.REL,"⫅":e.MO.REL,"⫆":e.MO.REL,"⫇":e.MO.REL,"⫈":e.MO.REL,"⫉":e.MO.REL,"⫊":e.MO.REL,"⫋":e.MO.REL,"⫌":e.MO.REL,"⫍":e.MO.REL,"⫎":e.MO.REL,"⫏":e.MO.REL,"⫐":e.MO.REL,"⫑":e.MO.REL,"⫒":e.MO.REL,"⫓":e.MO.REL,"⫔":e.MO.REL,"⫕":e.MO.REL,"⫖":e.MO.REL,"⫗":e.MO.REL,"⫘":e.MO.REL,"⫙":e.MO.REL,"⫚":e.MO.REL,"⫛":e.MO.REL,"⫝":e.MO.REL,"⫝̸":e.MO.REL,"⫞":e.MO.REL,"⫟":e.MO.REL,"⫠":e.MO.REL,"⫡":e.MO.REL,"⫢":e.MO.REL,"⫣":e.MO.REL,"⫤":e.MO.REL,"⫥":e.MO.REL,"⫦":e.MO.REL,"⫧":e.MO.REL,"⫨":e.MO.REL,"⫩":e.MO.REL,"⫪":e.MO.REL,"⫫":e.MO.REL,"⫬":e.MO.REL,"⫭":e.MO.REL,"⫮":e.MO.REL,"⫯":e.MO.REL,"⫰":e.MO.REL,"⫱":e.MO.REL,"⫲":e.MO.REL,"⫳":e.MO.REL,"⫴":e.MO.BIN4,"⫵":e.MO.BIN4,"⫶":e.MO.BIN4,"⫷":e.MO.REL,"⫸":e.MO.REL,"⫹":e.MO.REL,"⫺":e.MO.REL,"⫻":e.MO.BIN4,"⫽":e.MO.BIN4,"⫾":e.MO.BIN3,"⭅":e.MO.RELSTRETCH,"⭆":e.MO.RELSTRETCH,"〈":e.MO.OPEN,"〉":e.MO.CLOSE,"︷":e.MO.WIDEACCENT,"︸":e.MO.WIDEACCENT}};e.OPTABLE.infix["^"]=e.MO.WIDEREL;e.OPTABLE.infix._=e.MO.WIDEREL;e.OPTABLE.infix["⫝̸"]=e.MO.REL},62335:function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var i=this&&this.__assign||function(){i=Object.assign||function(t){for(var e,r=1,i=arguments.length;r=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.AbstractEmptyNode=e.AbstractNode=void 0;var O=function(){function t(t,e,r){var i,O;if(e===void 0){e={}}if(r===void 0){r=[]}this.factory=t;this.parent=null;this.properties={};this.childNodes=[];try{for(var o=n(Object.keys(e)),E=o.next();!E.done;E=o.next()){var s=E.value;this.setProperty(s,e[s])}}catch(a){i={error:a}}finally{try{if(E&&!E.done&&(O=o.return))O.call(o)}finally{if(i)throw i.error}}if(r.length){this.setChildren(r)}}Object.defineProperty(t.prototype,"kind",{get:function(){return"unknown"},enumerable:false,configurable:true});t.prototype.setProperty=function(t,e){this.properties[t]=e};t.prototype.getProperty=function(t){return this.properties[t]};t.prototype.getPropertyNames=function(){return Object.keys(this.properties)};t.prototype.getAllProperties=function(){return this.properties};t.prototype.removeProperty=function(){var t,e;var r=[];for(var i=0;i=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,O=[],o;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)O.push(n.value)}catch(E){o={error:E}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(o)throw o.error}}return O};var n=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,O;i0)&&!(n=i.next()).done)O.push(n.value)}catch(E){o={error:E}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(o)throw o.error}}return O};var i=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,O;i{t.r(r);t.d(r,{css:()=>_,gss:()=>S,keywords:()=>q,less:()=>O,mkCSS:()=>i,sCSS:()=>C});function i(e){e={...K,...e};var r=e.inline;var t=e.tokenHooks,i=e.documentTypes||{},o=e.mediaTypes||{},a=e.mediaFeatures||{},n=e.mediaValueKeywords||{},l=e.propertyKeywords||{},s=e.nonStandardPropertyKeywords||{},c=e.fontProperties||{},d=e.counterDescriptors||{},p=e.colorKeywords||{},u=e.valueKeywords||{},m=e.allowNested,f=e.lineComment,g=e.supportsAtComponent===true,h=e.highlightNonStandardPropertyKeywords!==false;var b,k;function y(e,r){b=r;return e}function w(e,r){var i=e.next();if(t[i]){var o=t[i](e,r);if(o!==false)return o}if(i=="@"){e.eatWhile(/[\w\\\-]/);return y("def",e.current())}else if(i=="="||(i=="~"||i=="|")&&e.eat("=")){return y(null,"compare")}else if(i=='"'||i=="'"){r.tokenize=v(i);return r.tokenize(e,r)}else if(i=="#"){e.eatWhile(/[\w\\\-]/);return y("atom","hash")}else if(i=="!"){e.match(/^\s*\w*/);return y("keyword","important")}else if(/\d/.test(i)||i=="."&&e.eat(/\d/)){e.eatWhile(/[\w.%]/);return y("number","unit")}else if(i==="-"){if(/[\d.]/.test(e.peek())){e.eatWhile(/[\w.%]/);return y("number","unit")}else if(e.match(/^-[\w\\\-]*/)){e.eatWhile(/[\w\\\-]/);if(e.match(/^\s*:/,false))return y("def","variable-definition");return y("variableName","variable")}else if(e.match(/^\w+-/)){return y("meta","meta")}}else if(/[,+>*\/]/.test(i)){return y(null,"select-op")}else if(i=="."&&e.match(/^-?[_a-z][_a-z0-9-]*/i)){return y("qualifier","qualifier")}else if(/[:;{}\[\]\(\)]/.test(i)){return y(null,i)}else if(e.match(/^[\w-.]+(?=\()/)){if(/^(url(-prefix)?|domain|regexp)$/i.test(e.current())){r.tokenize=x}return y("variableName.function","variable")}else if(/[\w\\\-]/.test(i)){e.eatWhile(/[\w\\\-]/);return y("property","word")}else{return y(null,null)}}function v(e){return function(r,t){var i=false,o;while((o=r.next())!=null){if(o==e&&!i){if(e==")")r.backUp(1);break}i=!i&&o=="\\"}if(o==e||!i&&e!=")")t.tokenize=null;return y("string","string")}}function x(e,r){e.next();if(!e.match(/^\s*[\"\')]/,false))r.tokenize=v(")");else r.tokenize=null;return y(null,"(")}function z(e,r,t){this.type=e;this.indent=r;this.prev=t}function j(e,r,t,i){e.context=new z(t,r.indentation()+(i===false?0:r.indentUnit),e.context);return t}function q(e){if(e.context.prev)e.context=e.context.prev;return e.context.type}function _(e,r,t){return O[t.context.type](e,r,t)}function B(e,r,t,i){for(var o=i||1;o>0;o--)t.context=t.context.prev;return _(e,r,t)}function C(e){var r=e.current().toLowerCase();if(u.hasOwnProperty(r))k="atom";else if(p.hasOwnProperty(r))k="keyword";else k="variable"}var O={};O.top=function(e,r,t){if(e=="{"){return j(t,r,"block")}else if(e=="}"&&t.context.prev){return q(t)}else if(g&&/@component/i.test(e)){return j(t,r,"atComponentBlock")}else if(/^@(-moz-)?document$/i.test(e)){return j(t,r,"documentTypes")}else if(/^@(media|supports|(-moz-)?document|import)$/i.test(e)){return j(t,r,"atBlock")}else if(/^@(font-face|counter-style)/i.test(e)){t.stateArg=e;return"restricted_atBlock_before"}else if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(e)){return"keyframes"}else if(e&&e.charAt(0)=="@"){return j(t,r,"at")}else if(e=="hash"){k="builtin"}else if(e=="word"){k="tag"}else if(e=="variable-definition"){return"maybeprop"}else if(e=="interpolation"){return j(t,r,"interpolation")}else if(e==":"){return"pseudo"}else if(m&&e=="("){return j(t,r,"parens")}return t.context.type};O.block=function(e,r,t){if(e=="word"){var i=r.current().toLowerCase();if(l.hasOwnProperty(i)){k="property";return"maybeprop"}else if(s.hasOwnProperty(i)){k=h?"string.special":"property";return"maybeprop"}else if(m){k=r.match(/^\s*:(?:\s|$)/,false)?"property":"tag";return"block"}else{k="error";return"maybeprop"}}else if(e=="meta"){return"block"}else if(!m&&(e=="hash"||e=="qualifier")){k="error";return"block"}else{return O.top(e,r,t)}};O.maybeprop=function(e,r,t){if(e==":")return j(t,r,"prop");return _(e,r,t)};O.prop=function(e,r,t){if(e==";")return q(t);if(e=="{"&&m)return j(t,r,"propBlock");if(e=="}"||e=="{")return B(e,r,t);if(e=="(")return j(t,r,"parens");if(e=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(r.current())){k="error"}else if(e=="word"){C(r)}else if(e=="interpolation"){return j(t,r,"interpolation")}return"prop"};O.propBlock=function(e,r,t){if(e=="}")return q(t);if(e=="word"){k="property";return"maybeprop"}return t.context.type};O.parens=function(e,r,t){if(e=="{"||e=="}")return B(e,r,t);if(e==")")return q(t);if(e=="(")return j(t,r,"parens");if(e=="interpolation")return j(t,r,"interpolation");if(e=="word")C(r);return"parens"};O.pseudo=function(e,r,t){if(e=="meta")return"pseudo";if(e=="word"){k="variableName.constant";return t.context.type}return _(e,r,t)};O.documentTypes=function(e,r,t){if(e=="word"&&i.hasOwnProperty(r.current())){k="tag";return t.context.type}else{return O.atBlock(e,r,t)}};O.atBlock=function(e,r,t){if(e=="(")return j(t,r,"atBlock_parens");if(e=="}"||e==";")return B(e,r,t);if(e=="{")return q(t)&&j(t,r,m?"block":"top");if(e=="interpolation")return j(t,r,"interpolation");if(e=="word"){var i=r.current().toLowerCase();if(i=="only"||i=="not"||i=="and"||i=="or")k="keyword";else if(o.hasOwnProperty(i))k="attribute";else if(a.hasOwnProperty(i))k="property";else if(n.hasOwnProperty(i))k="keyword";else if(l.hasOwnProperty(i))k="property";else if(s.hasOwnProperty(i))k=h?"string.special":"property";else if(u.hasOwnProperty(i))k="atom";else if(p.hasOwnProperty(i))k="keyword";else k="error"}return t.context.type};O.atComponentBlock=function(e,r,t){if(e=="}")return B(e,r,t);if(e=="{")return q(t)&&j(t,r,m?"block":"top",false);if(e=="word")k="error";return t.context.type};O.atBlock_parens=function(e,r,t){if(e==")")return q(t);if(e=="{"||e=="}")return B(e,r,t,2);return O.atBlock(e,r,t)};O.restricted_atBlock_before=function(e,r,t){if(e=="{")return j(t,r,"restricted_atBlock");if(e=="word"&&t.stateArg=="@counter-style"){k="variable";return"restricted_atBlock_before"}return _(e,r,t)};O.restricted_atBlock=function(e,r,t){if(e=="}"){t.stateArg=null;return q(t)}if(e=="word"){if(t.stateArg=="@font-face"&&!c.hasOwnProperty(r.current().toLowerCase())||t.stateArg=="@counter-style"&&!d.hasOwnProperty(r.current().toLowerCase()))k="error";else k="property";return"maybeprop"}return"restricted_atBlock"};O.keyframes=function(e,r,t){if(e=="word"){k="variable";return"keyframes"}if(e=="{")return j(t,r,"top");return _(e,r,t)};O.at=function(e,r,t){if(e==";")return q(t);if(e=="{"||e=="}")return B(e,r,t);if(e=="word")k="tag";else if(e=="hash")k="builtin";return"at"};O.interpolation=function(e,r,t){if(e=="}")return q(t);if(e=="{"||e==";")return B(e,r,t);if(e=="word")k="variable";else if(e!="variable"&&e!="("&&e!=")")k="error";return"interpolation"};return{name:e.name,startState:function(){return{tokenize:null,state:r?"block":"top",stateArg:null,context:new z(r?"block":"top",0,null)}},token:function(e,r){if(!r.tokenize&&e.eatSpace())return null;var t=(r.tokenize||w)(e,r);if(t&&typeof t=="object"){b=t[1];t=t[0]}k=t;if(b!="comment")r.state=O[r.state](b,e,r);return k},indent:function(e,r,t){var i=e.context,o=r&&r.charAt(0);var a=i.indent;if(i.type=="prop"&&(o=="}"||o==")"))i=i.prev;if(i.prev){if(o=="}"&&(i.type=="block"||i.type=="top"||i.type=="interpolation"||i.type=="restricted_atBlock")){i=i.prev;a=i.indent}else if(o==")"&&(i.type=="parens"||i.type=="atBlock_parens")||o=="{"&&(i.type=="at"||i.type=="atBlock")){a=Math.max(0,i.indent-t.unit)}}return a},languageData:{indentOnInput:/^\s*\}$/,commentTokens:{line:f,block:{open:"/*",close:"*/"}},autocomplete:P}}}function o(e){var r={};for(var t=0;t{var r=t(28416),l=t(63840);function a(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,t=1;tn}return!1}function y(e,n,t,r,l,a,u){this.acceptsBooleans=2===n||3===n||4===n;this.attributeName=r;this.attributeNamespace=l;this.mustUseProperty=t;this.propertyName=e;this.type=n;this.sanitizeURL=a;this.removeEmptyString=u}var b={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){b[e]=new y(e,0,!1,e,null,!1,!1)}));[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var n=e[0];b[n]=new y(n,1,!1,e[1],null,!1,!1)}));["contentEditable","draggable","spellCheck","value"].forEach((function(e){b[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)}));["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){b[e]=new y(e,2,!1,e,null,!1,!1)}));"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){b[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)}));["checked","multiple","muted","selected"].forEach((function(e){b[e]=new y(e,3,!0,e,null,!1,!1)}));["capture","download"].forEach((function(e){b[e]=new y(e,4,!1,e,null,!1,!1)}));["cols","rows","size","span"].forEach((function(e){b[e]=new y(e,6,!1,e,null,!1,!1)}));["rowSpan","start"].forEach((function(e){b[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var k=/[\-:]([a-z])/g;function w(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var n=e.replace(k,w);b[n]=new y(n,1,!1,e,null,!1,!1)}));"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var n=e.replace(k,w);b[n]=new y(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}));["xml:base","xml:lang","xml:space"].forEach((function(e){var n=e.replace(k,w);b[n]=new y(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}));["tabIndex","crossOrigin"].forEach((function(e){b[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)}));b.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach((function(e){b[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)}));function S(e,n,t,r){var l=b.hasOwnProperty(n)?b[n]:null;if(null!==l?0!==l.type:r||!(2i||l[u]!==a[i]){var o="\n"+l[u].replace(" at new "," at ");e.displayName&&o.includes("")&&(o=o.replace("",e.displayName));return o}}while(1<=u&&0<=i)}break}}}finally{H=!1,Error.prepareStackTrace=t}return(e=e?e.displayName||e.name:"")?B(e):""}function Q(e){switch(e.tag){case 5:return B(e.type);case 16:return B("Lazy");case 13:return B("Suspense");case 19:return B("SuspenseList");case 0:case 2:case 15:return e=W(e.type,!1),e;case 11:return e=W(e.type.render,!1),e;case 1:return e=W(e.type,!0),e;default:return""}}function j(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case _:return"Fragment";case C:return"Portal";case z:return"Profiler";case N:return"StrictMode";case M:return"Suspense";case F:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case T:return(e.displayName||"Context")+".Consumer";case P:return(e._context.displayName||"Context")+".Provider";case L:var n=e.render;e=e.displayName;e||(e=n.displayName||n.name||"",e=""!==e?"ForwardRef("+e+")":"ForwardRef");return e;case D:return n=e.displayName||null,null!==n?n:j(e.type)||"Memo";case R:n=e._payload;e=e._init;try{return j(e(n))}catch(t){}}return null}function $(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return j(n);case 8:return n===N?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof n)return n.displayName||n.name||null;if("string"===typeof n)return n}return null}function K(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function q(e){var n=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===n||"radio"===n)}function Y(e){var n=q(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),r=""+e[n];if(!e.hasOwnProperty(n)&&"undefined"!==typeof t&&"function"===typeof t.get&&"function"===typeof t.set){var l=t.get,a=t.set;Object.defineProperty(e,n,{configurable:!0,get:function(){return l.call(this)},set:function(e){r=""+e;a.call(this,e)}});Object.defineProperty(e,n,{enumerable:t.enumerable});return{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null;delete e[n]}}}}function X(e){e._valueTracker||(e._valueTracker=Y(e))}function G(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var t=n.getValue();var r="";e&&(r=q(e)?e.checked?"true":"false":e.value);e=r;return e!==t?(n.setValue(e),!0):!1}function Z(e){e=e||("undefined"!==typeof document?document:void 0);if("undefined"===typeof e)return null;try{return e.activeElement||e.body}catch(n){return e.body}}function J(e,n){var t=n.checked;return V({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=t?t:e._wrapperState.initialChecked})}function ee(e,n){var t=null==n.defaultValue?"":n.defaultValue,r=null!=n.checked?n.checked:n.defaultChecked;t=K(null!=n.value?n.value:t);e._wrapperState={initialChecked:r,initialValue:t,controlled:"checkbox"===n.type||"radio"===n.type?null!=n.checked:null!=n.value}}function ne(e,n){n=n.checked;null!=n&&S(e,"checked",n,!1)}function te(e,n){ne(e,n);var t=K(n.value),r=n.type;if(null!=t)if("number"===r){if(0===t&&""===e.value||e.value!=t)e.value=""+t}else e.value!==""+t&&(e.value=""+t);else if("submit"===r||"reset"===r){e.removeAttribute("value");return}n.hasOwnProperty("value")?le(e,n.type,t):n.hasOwnProperty("defaultValue")&&le(e,n.type,K(n.defaultValue));null==n.checked&&null!=n.defaultChecked&&(e.defaultChecked=!!n.defaultChecked)}function re(e,n,t){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var r=n.type;if(!("submit"!==r&&"reset"!==r||void 0!==n.value&&null!==n.value))return;n=""+e._wrapperState.initialValue;t||n===e.value||(e.value=n);e.defaultValue=n}t=e.name;""!==t&&(e.name="");e.defaultChecked=!!e._wrapperState.initialChecked;""!==t&&(e.name=t)}function le(e,n,t){if("number"!==n||Z(e.ownerDocument)!==e)null==t?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+t&&(e.defaultValue=""+t)}var ae=Array.isArray;function ue(e,n,t,r){e=e.options;if(n){n={};for(var l=0;l"+n.valueOf().toString()+"";for(n=pe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}}));function he(e,n){if(n){var t=e.firstChild;if(t&&t===e.lastChild&&3===t.nodeType){t.nodeValue=n;return}}e.textContent=n}var ge={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ve=["Webkit","ms","Moz","O"];Object.keys(ge).forEach((function(e){ve.forEach((function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1);ge[n]=ge[e]}))}));function ye(e,n,t){return null==n||"boolean"===typeof n||""===n?"":t||"number"!==typeof n||0===n||ge.hasOwnProperty(e)&&ge[e]?(""+n).trim():n+"px"}function be(e,n){e=e.style;for(var t in n)if(n.hasOwnProperty(t)){var r=0===t.indexOf("--"),l=ye(t,n[t],r);"float"===t&&(t="cssFloat");r?e.setProperty(t,l):e[t]=l}}var ke=V({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function we(e,n){if(n){if(ke[e]&&(null!=n.children||null!=n.dangerouslySetInnerHTML))throw Error(a(137,e));if(null!=n.dangerouslySetInnerHTML){if(null!=n.children)throw Error(a(60));if("object"!==typeof n.dangerouslySetInnerHTML||!("__html"in n.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=n.style&&"object"!==typeof n.style)throw Error(a(62))}}function Se(e,n){if(-1===e.indexOf("-"))return"string"===typeof n.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xe=null;function Ee(e){e=e.target||e.srcElement||window;e.correspondingUseElement&&(e=e.correspondingUseElement);return 3===e.nodeType?e.parentNode:e}var Ce=null,_e=null,Ne=null;function ze(e){if(e=Bl(e)){if("function"!==typeof Ce)throw Error(a(280));var n=e.stateNode;n&&(n=Wl(n),Ce(e.stateNode,e.type,n))}}function Pe(e){_e?Ne?Ne.push(e):Ne=[e]:_e=e}function Te(){if(_e){var e=_e,n=Ne;Ne=_e=null;ze(e);if(n)for(e=0;e>>=0;return 0===e?32:31-(mn(e)/hn|0)|0}var vn=64,yn=4194304;function bn(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function kn(e,n){var t=e.pendingLanes;if(0===t)return 0;var r=0,l=e.suspendedLanes,a=e.pingedLanes,u=t&268435455;if(0!==u){var i=u&~l;0!==i?r=bn(i):(a&=u,0!==a&&(r=bn(a)))}else u=t&~l,0!==u?r=bn(u):0!==a&&(r=bn(a));if(0===r)return 0;if(0!==n&&n!==r&&0===(n&l)&&(l=r&-r,a=n&-n,l>=a||16===l&&0!==(a&4194240)))return n;0!==(r&4)&&(r|=t&16);n=e.entangledLanes;if(0!==n)for(e=e.entanglements,n&=r;0t;t++)n.push(e);return n}function _n(e,n,t){e.pendingLanes|=n;536870912!==n&&(e.suspendedLanes=0,e.pingedLanes=0);e=e.eventTimes;n=31-pn(n);e[n]=t}function Nn(e,n){var t=e.pendingLanes&~n;e.pendingLanes=n;e.suspendedLanes=0;e.pingedLanes=0;e.expiredLanes&=n;e.mutableReadLanes&=n;e.entangledLanes&=n;n=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Zt),nr=String.fromCharCode(32),tr=!1;function rr(e,n){switch(e){case"keyup":return-1!==Xt.indexOf(n.keyCode);case"keydown":return 229!==n.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function lr(e){e=e.detail;return"object"===typeof e&&"data"in e?e.data:null}var ar=!1;function ur(e,n){switch(e){case"compositionend":return lr(n);case"keypress":if(32!==n.which)return null;tr=!0;return nr;case"textInput":return e=n.data,e===nr&&tr?null:e;default:return null}}function ir(e,n){if(ar)return"compositionend"===e||!Gt&&rr(e,n)?(e=ft(),ct=st=ot=null,ar=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1=n)return{node:t,offset:n-e};e=r}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=Pr(t)}}function Lr(e,n){return e&&n?e===n?!0:e&&3===e.nodeType?!1:n&&3===n.nodeType?Lr(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Mr(){for(var e=window,n=Z();n instanceof e.HTMLIFrameElement;){try{var t="string"===typeof n.contentWindow.location.href}catch(r){t=!1}if(t)e=n.contentWindow;else break;n=Z(e.document)}return n}function Fr(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&("input"===n&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===n||"true"===e.contentEditable)}function Dr(e){var n=Mr(),t=e.focusedElem,r=e.selectionRange;if(n!==t&&t&&t.ownerDocument&&Lr(t.ownerDocument.documentElement,t)){if(null!==r&&Fr(t))if(n=r.start,e=r.end,void 0===e&&(e=n),"selectionStart"in t)t.selectionStart=n,t.selectionEnd=Math.min(e,t.value.length);else if(e=(n=t.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var l=t.textContent.length,a=Math.min(r.start,l);r=void 0===r.end?a:Math.min(r.end,l);!e.extend&&a>r&&(l=r,r=a,a=l);l=Tr(t,a);var u=Tr(t,r);l&&u&&(1!==e.rangeCount||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==u.node||e.focusOffset!==u.offset)&&(n=n.createRange(),n.setStart(l.node,l.offset),e.removeAllRanges(),a>r?(e.addRange(n),e.extend(u.node,u.offset)):(n.setEnd(u.node,u.offset),e.addRange(n)))}n=[];for(e=t;e=e.parentNode;)1===e.nodeType&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});"function"===typeof t.focus&&t.focus();for(t=0;t=document.documentMode,Or=null,Ir=null,Ur=null,Vr=!1;function Ar(e,n,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;Vr||null==Or||Or!==Z(r)||(r=Or,"selectionStart"in r&&Fr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ur&&zr(Ur,r)||(Ur=r,r=ml(Ir,"onSelect"),0jl||(e.current=Ql[jl],Ql[jl]=null,jl--)}function ql(e,n){jl++;Ql[jl]=e.current;e.current=n}var Yl={},Xl=$l(Yl),Gl=$l(!1),Zl=Yl;function Jl(e,n){var t=e.type.contextTypes;if(!t)return Yl;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===n)return r.__reactInternalMemoizedMaskedChildContext;var l={},a;for(a in t)l[a]=n[a];r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=l);return l}function ea(e){e=e.childContextTypes;return null!==e&&void 0!==e}function na(){Kl(Gl);Kl(Xl)}function ta(e,n,t){if(Xl.current!==Yl)throw Error(a(168));ql(Xl,n);ql(Gl,t)}function ra(e,n,t){var r=e.stateNode;n=n.childContextTypes;if("function"!==typeof r.getChildContext)return t;r=r.getChildContext();for(var l in r)if(!(l in n))throw Error(a(108,$(e)||"Unknown",l));return V({},t,r)}function la(e){e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Yl;Zl=Xl.current;ql(Xl,e);ql(Gl,Gl.current);return!0}function aa(e,n,t){var r=e.stateNode;if(!r)throw Error(a(169));t?(e=ra(e,n,Zl),r.__reactInternalMemoizedMergedChildContext=e,Kl(Gl),Kl(Xl),ql(Xl,e)):Kl(Gl);ql(Gl,t)}var ua=null,ia=!1,oa=!1;function sa(e){null===ua?ua=[e]:ua.push(e)}function ca(e){ia=!0;sa(e)}function fa(){if(!oa&&null!==ua){oa=!0;var e=0,n=Pn;try{var t=ua;for(Pn=1;e>=u;l-=u;ba=1<<32-pn(n)+l|t<h?(g=f,f=null):g=f.sibling;var v=p(l,f,i[h],o);if(null===v){null===f&&(f=g);break}e&&f&&null===v.alternate&&n(l,f);a=u(v,a,h);null===c?s=v:c.sibling=v;c=v;f=g}if(h===i.length)return t(l,f),Na&&wa(l,h),s;if(null===f){for(;hg?(v=h,h=null):v=h.sibling;var b=p(l,h,y.value,s);if(null===b){null===h&&(h=v);break}e&&h&&null===b.alternate&&n(l,h);i=u(b,i,g);null===f?c=b:f.sibling=b;f=b;h=v}if(y.done)return t(l,h),Na&&wa(l,g),c;if(null===h){for(;!y.done;g++,y=o.next())y=d(l,y.value,s),null!==y&&(i=u(y,i,g),null===f?c=y:f.sibling=y,f=y);Na&&wa(l,g);return c}for(h=r(l,h);!y.done;g++,y=o.next())y=m(h,l,g,y.value,s),null!==y&&(e&&null!==y.alternate&&h.delete(null===y.key?g:y.key),i=u(y,i,g),null===f?c=y:f.sibling=y,f=y);e&&h.forEach((function(e){return n(l,e)}));Na&&wa(l,g);return c}function v(e,r,a,u){"object"===typeof a&&null!==a&&a.type===_&&null===a.key&&(a=a.props.children);if("object"===typeof a&&null!==a){switch(a.$$typeof){case E:e:{for(var o=a.key,s=r;null!==s;){if(s.key===o){o=a.type;if(o===_){if(7===s.tag){t(e,s.sibling);r=l(s,a.props.children);r.return=e;e=r;break e}}else if(s.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===R&&vu(o)===s.type){t(e,s.sibling);r=l(s,a.props);r.ref=hu(e,s,a);r.return=e;e=r;break e}t(e,s);break}else n(e,s);s=s.sibling}a.type===_?(r=fc(a.props.children,e.mode,u,a.key),r.return=e,e=r):(u=cc(a.type,a.key,a.props,null,e.mode,u),u.ref=hu(e,r,a),u.return=e,e=u)}return i(e);case C:e:{for(s=a.key;null!==r;){if(r.key===s)if(4===r.tag&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){t(e,r.sibling);r=l(r,a.children||[]);r.return=e;e=r;break e}else{t(e,r);break}else n(e,r);r=r.sibling}r=mc(a,e.mode,u);r.return=e;e=r}return i(e);case R:return s=a._init,v(e,r,s(a._payload),u)}if(ae(a))return h(e,r,a,u);if(U(a))return g(e,r,a,u);gu(e,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==r&&6===r.tag?(t(e,r.sibling),r=l(r,a),r.return=e,e=r):(t(e,r),r=pc(a,e.mode,u),r.return=e,e=r),i(e)):t(e,r)}return v}var bu=yu(!0),ku=yu(!1),wu={},Su=$l(wu),xu=$l(wu),Eu=$l(wu);function Cu(e){if(e===wu)throw Error(a(174));return e}function _u(e,n){ql(Eu,n);ql(xu,e);ql(Su,wu);e=n.nodeType;switch(e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:de(null,"");break;default:e=8===e?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=de(n,e)}Kl(Su);ql(Su,n)}function Nu(){Kl(Su);Kl(xu);Kl(Eu)}function zu(e){Cu(Eu.current);var n=Cu(Su.current);var t=de(n,e.type);n!==t&&(ql(xu,e),ql(Su,t))}function Pu(e){xu.current===e&&(Kl(Su),Kl(xu))}var Tu=$l(0);function Lu(e){for(var n=e;null!==n;){if(13===n.tag){var t=n.memoizedState;if(null!==t&&(t=t.dehydrated,null===t||"$?"===t.data||"$!"===t.data))return n}else if(19===n.tag&&void 0!==n.memoizedProps.revealOrder){if(0!==(n.flags&128))return n}else if(null!==n.child){n.child.return=n;n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return null;n=n.return}n.sibling.return=n.return;n=n.sibling}return null}var Mu=[];function Fu(){for(var e=0;et?t:4;e(!0);var r=Ru.transition;Ru.transition={};try{e(!1),n()}finally{Pn=t,Ru.transition=r}}function Si(){return Yu().memoizedState}function xi(e,n,t){var r=Ns(e);t={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Ci(e))_i(n,t);else if(t=Ga(e,n,t,r),null!==t){var l=_s();zs(t,e,r,l);Ni(t,n,r)}}function Ei(e,n,t){var r=Ns(e),l={lane:r,action:t,hasEagerState:!1,eagerState:null,next:null};if(Ci(e))_i(n,l);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&(a=n.lastRenderedReducer,null!==a))try{var u=n.lastRenderedState,i=a(u,t);l.hasEagerState=!0;l.eagerState=i;if(Nr(i,u)){var o=n.interleaved;null===o?(l.next=l,Xa(n)):(l.next=o.next,o.next=l);n.interleaved=l;return}}catch(s){}finally{}t=Ga(e,n,l,r);null!==t&&(l=_s(),zs(t,e,r,l),Ni(t,n,r))}}function Ci(e){var n=e.alternate;return e===Iu||null!==n&&n===Iu}function _i(e,n){Bu=Au=!0;var t=e.pending;null===t?n.next=n:(n.next=t.next,t.next=n);e.pending=n}function Ni(e,n,t){if(0!==(t&4194240)){var r=n.lanes;r&=e.pendingLanes;t|=r;n.lanes=t;zn(e,t)}}var zi={readContext:qa,useCallback:Qu,useContext:Qu,useEffect:Qu,useImperativeHandle:Qu,useInsertionEffect:Qu,useLayoutEffect:Qu,useMemo:Qu,useReducer:Qu,useRef:Qu,useState:Qu,useDebugValue:Qu,useDeferredValue:Qu,useTransition:Qu,useMutableSource:Qu,useSyncExternalStore:Qu,useId:Qu,unstable_isNewReconciler:!1},Pi={readContext:qa,useCallback:function(e,n){qu().memoizedState=[e,void 0===n?null:n];return e},useContext:qa,useEffect:fi,useImperativeHandle:function(e,n,t){t=null!==t&&void 0!==t?t.concat([e]):null;return si(4194308,4,hi.bind(null,n,e),t)},useLayoutEffect:function(e,n){return si(4194308,4,e,n)},useInsertionEffect:function(e,n){return si(4,2,e,n)},useMemo:function(e,n){var t=qu();n=void 0===n?null:n;e=e();t.memoizedState=[e,n];return e},useReducer:function(e,n,t){var r=qu();n=void 0!==t?t(n):n;r.memoizedState=r.baseState=n;e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n};r.queue=e;e=e.dispatch=xi.bind(null,Iu,e);return[r.memoizedState,e]},useRef:function(e){var n=qu();e={current:e};return n.memoizedState=e},useState:ui,useDebugValue:vi,useDeferredValue:function(e){return qu().memoizedState=e},useTransition:function(){var e=ui(!1),n=e[0];e=wi.bind(null,e[1]);qu().memoizedState=e;return[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,t){var r=Iu,l=qu();if(Na){if(void 0===t)throw Error(a(407));t=t()}else{t=n();if(null===ns)throw Error(a(349));0!==(Ou&30)||ni(r,n,t)}l.memoizedState=t;var u={value:t,getSnapshot:n};l.queue=u;fi(ri.bind(null,r,u,e),[e]);r.flags|=2048;ii(9,ti.bind(null,r,u,t,n),void 0,null);return t},useId:function(){var e=qu(),n=ns.identifierPrefix;if(Na){var t=ka;var r=ba;t=(r&~(1<<32-pn(r)-1)).toString(32)+t;n=":"+n+"R"+t;t=Hu++;0<\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=o.createElement(t,{is:r.is}):(e=o.createElement(t),"select"===t&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,t);e[Dl]=n;e[Rl]=r;po(e,n,!1,!1);n.stateNode=e;e:{o=Se(t,r);switch(t){case"dialog":il("cancel",e);il("close",e);l=r;break;case"iframe":case"object":case"embed":il("load",e);l=r;break;case"video":case"audio":for(l=0;lms&&(n.flags|=128,r=!0,vo(u,!1),n.lanes=4194304)}else{if(!r)if(e=Lu(o),null!==e){if(n.flags|=128,r=!0,t=e.updateQueue,null!==t&&(n.updateQueue=t,n.flags|=4),vo(u,!0),null===u.tail&&"hidden"===u.tailMode&&!o.alternate&&!Na)return yo(n),null}else 2*tn()-u.renderingStartTime>ms&&1073741824!==t&&(n.flags|=128,r=!0,vo(u,!1),n.lanes=4194304);u.isBackwards?(o.sibling=n.child,n.child=o):(t=u.last,null!==t?t.sibling=o:n.child=o,u.last=o)}if(null!==u.tail)return n=u.tail,u.rendering=n,u.tail=n.sibling,u.renderingStartTime=tn(),n.sibling=null,t=Tu.current,ql(Tu,r?t&1|2:t&1),n;yo(n);return null;case 22:case 23:return Us(),r=null!==n.memoizedState,null!==e&&null!==e.memoizedState!==r&&(n.flags|=8192),r&&0!==(n.mode&1)?0!==(ls&1073741824)&&(yo(n),n.subtreeFlags&6&&(n.flags|=8192)):yo(n),null;case 24:return null;case 25:return null}throw Error(a(156,n.tag))}function ko(e,n){Ea(n);switch(n.tag){case 1:return ea(n.type)&&na(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return Nu(),Kl(Gl),Kl(Xl),Fu(),e=n.flags,0!==(e&65536)&&0===(e&128)?(n.flags=e&-65537|128,n):null;case 5:return Pu(n),null;case 13:Kl(Tu);e=n.memoizedState;if(null!==e&&null!==e.dehydrated){if(null===n.alternate)throw Error(a(340));Oa()}e=n.flags;return e&65536?(n.flags=e&-65537|128,n):null;case 19:return Kl(Tu),null;case 4:return Nu(),null;case 10:return ja(n.type._context),null;case 22:case 23:return Us(),null;case 24:return null;default:return null}}var wo=!1,So=!1,xo="function"===typeof WeakSet?WeakSet:Set,Eo=null;function Co(e,n){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(r){Zs(e,n,r)}else t.current=null}function _o(e,n,t){try{t()}catch(r){Zs(e,n,r)}}var No=!1;function zo(e,n){Sl=nt;e=Mr();if(Fr(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var r=t.getSelection&&t.getSelection();if(r&&0!==r.rangeCount){t=r.anchorNode;var l=r.anchorOffset,u=r.focusNode;r=r.focusOffset;try{t.nodeType,u.nodeType}catch(w){t=null;break e}var i=0,o=-1,s=-1,c=0,f=0,d=e,p=null;n:for(;;){for(var m;;){d!==t||0!==l&&3!==d.nodeType||(o=i+l);d!==u||0!==r&&3!==d.nodeType||(s=i+r);3===d.nodeType&&(i+=d.nodeValue.length);if(null===(m=d.firstChild))break;p=d;d=m}for(;;){if(d===e)break n;p===t&&++c===l&&(o=i);p===u&&++f===r&&(s=i);if(null!==(m=d.nextSibling))break;d=p;p=d.parentNode}d=m}t=-1===o||-1===s?null:{start:o,end:s}}else t=null}t=t||{start:0,end:0}}else t=null;xl={focusedElem:e,selectionRange:t};nt=!1;for(Eo=n;null!==Eo;)if(n=Eo,e=n.child,0!==(n.subtreeFlags&1028)&&null!==e)e.return=n,Eo=e;else for(;null!==Eo;){n=Eo;try{var h=n.alternate;if(0!==(n.flags&1024))switch(n.tag){case 0:case 11:case 15:break;case 1:if(null!==h){var g=h.memoizedProps,v=h.memoizedState,y=n.stateNode,b=y.getSnapshotBeforeUpdate(n.elementType===n.type?g:Va(n.type,g),v);y.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var k=n.stateNode.containerInfo;1===k.nodeType?k.textContent="":9===k.nodeType&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(a(163))}}catch(w){Zs(n,n.return,w)}e=n.sibling;if(null!==e){e.return=n.return;Eo=e;break}Eo=n.return}h=No;No=!1;return h}function Po(e,n,t){var r=n.updateQueue;r=null!==r?r.lastEffect:null;if(null!==r){var l=r=r.next;do{if((l.tag&e)===e){var a=l.destroy;l.destroy=void 0;void 0!==a&&_o(n,t,a)}l=l.next}while(l!==r)}}function To(e,n){n=n.updateQueue;n=null!==n?n.lastEffect:null;if(null!==n){var t=n=n.next;do{if((t.tag&e)===e){var r=t.create;t.destroy=r()}t=t.next}while(t!==n)}}function Lo(e){var n=e.ref;if(null!==n){var t=e.stateNode;switch(e.tag){case 5:e=t;break;default:e=t}"function"===typeof n?n(e):n.current=e}}function Mo(e){var n=e.alternate;null!==n&&(e.alternate=null,Mo(n));e.child=null;e.deletions=null;e.sibling=null;5===e.tag&&(n=e.stateNode,null!==n&&(delete n[Dl],delete n[Rl],delete n[Il],delete n[Ul],delete n[Vl]));e.stateNode=null;e.return=null;e.dependencies=null;e.memoizedProps=null;e.memoizedState=null;e.pendingProps=null;e.stateNode=null;e.updateQueue=null}function Fo(e){return 5===e.tag||3===e.tag||4===e.tag}function Do(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Fo(e.return))return null;e=e.return}e.sibling.return=e.return;for(e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(e.flags&2)continue e;if(null===e.child||4===e.tag)continue e;else e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Ro(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?8===t.nodeType?t.parentNode.insertBefore(e,n):t.insertBefore(e,n):(8===t.nodeType?(n=t.parentNode,n.insertBefore(e,t)):(n=t,n.appendChild(e)),t=t._reactRootContainer,null!==t&&void 0!==t||null!==n.onclick||(n.onclick=wl));else if(4!==r&&(e=e.child,null!==e))for(Ro(e,n,t),e=e.sibling;null!==e;)Ro(e,n,t),e=e.sibling}function Oo(e,n,t){var r=e.tag;if(5===r||6===r)e=e.stateNode,n?t.insertBefore(e,n):t.appendChild(e);else if(4!==r&&(e=e.child,null!==e))for(Oo(e,n,t),e=e.sibling;null!==e;)Oo(e,n,t),e=e.sibling}var Io=null,Uo=!1;function Vo(e,n,t){for(t=t.child;null!==t;)Ao(e,n,t),t=t.sibling}function Ao(e,n,t){if(fn&&"function"===typeof fn.onCommitFiberUnmount)try{fn.onCommitFiberUnmount(cn,t)}catch(i){}switch(t.tag){case 5:So||Co(t,n);case 6:var r=Io,l=Uo;Io=null;Vo(e,n,t);Io=r;Uo=l;null!==Io&&(Uo?(e=Io,t=t.stateNode,8===e.nodeType?e.parentNode.removeChild(t):e.removeChild(t)):Io.removeChild(t.stateNode));break;case 18:null!==Io&&(Uo?(e=Io,t=t.stateNode,8===e.nodeType?Tl(e.parentNode,t):1===e.nodeType&&Tl(e,t),Jn(e)):Tl(Io,t.stateNode));break;case 4:r=Io;l=Uo;Io=t.stateNode.containerInfo;Uo=!0;Vo(e,n,t);Io=r;Uo=l;break;case 0:case 11:case 14:case 15:if(!So&&(r=t.updateQueue,null!==r&&(r=r.lastEffect,null!==r))){l=r=r.next;do{var a=l,u=a.destroy;a=a.tag;void 0!==u&&(0!==(a&2)?_o(t,n,u):0!==(a&4)&&_o(t,n,u));l=l.next}while(l!==r)}Vo(e,n,t);break;case 1:if(!So&&(Co(t,n),r=t.stateNode,"function"===typeof r.componentWillUnmount))try{r.props=t.memoizedProps,r.state=t.memoizedState,r.componentWillUnmount()}catch(i){Zs(t,n,i)}Vo(e,n,t);break;case 21:Vo(e,n,t);break;case 22:t.mode&1?(So=(r=So)||null!==t.memoizedState,Vo(e,n,t),So=r):Vo(e,n,t);break;default:Vo(e,n,t)}}function Bo(e){var n=e.updateQueue;if(null!==n){e.updateQueue=null;var t=e.stateNode;null===t&&(t=e.stateNode=new xo);n.forEach((function(n){var r=tc.bind(null,e,n);t.has(n)||(t.add(n),n.then(r,r))}))}}function Ho(e,n){var t=n.deletions;if(null!==t)for(var r=0;rl&&(l=i);r&=~u}r=l;r=tn()-r;r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Xo(r/1960))-r;if(10e?16:e;if(null===ks)var r=!1;else{e=ks;ks=null;ws=0;if(0!==(es&6))throw Error(a(331));var l=es;es|=4;for(Eo=e.current;null!==Eo;){var u=Eo,i=u.child;if(0!==(Eo.flags&16)){var o=u.deletions;if(null!==o){for(var s=0;stn()-ps?Vs(e,0):cs|=t);Ps(e,n)}function ec(e,n){0===n&&(0===(e.mode&1)?n=1:(n=yn,yn<<=1,0===(yn&130023424)&&(yn=4194304)));var t=_s();e=Za(e,n);null!==e&&(_n(e,n,t),Ps(e,t))}function nc(e){var n=e.memoizedState,t=0;null!==n&&(t=n.retryLane);ec(e,t)}function tc(e,n){var t=0;switch(e.tag){case 13:var r=e.stateNode;var l=e.memoizedState;null!==l&&(t=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(a(314))}null!==r&&r.delete(n);ec(e,t)}var rc;rc=function(e,n,t){if(null!==e)if(e.memoizedProps!==n.pendingProps||Gl.current)Hi=!0;else{if(0===(e.lanes&t)&&0===(n.flags&128))return Hi=!1,fo(e,n,t);Hi=0!==(e.flags&131072)?!0:!1}else Hi=!1,Na&&0!==(n.flags&1048576)&&Sa(n,ha,n.index);n.lanes=0;switch(n.tag){case 2:var r=n.type;so(e,n);e=n.pendingProps;var l=Jl(n,Xl.current);Ka(n,t);l=$u(null,n,r,e,l,t);var u=Ku();n.flags|=1;"object"===typeof l&&null!==l&&"function"===typeof l.render&&void 0===l.$$typeof?(n.tag=1,n.memoizedState=null,n.updateQueue=null,ea(r)?(u=!0,la(n)):u=!1,n.memoizedState=null!==l.state&&void 0!==l.state?l.state:null,eu(n),l.updater=cu,n.stateNode=l,l._reactInternals=n,mu(n,r,e,t),n=Gi(null,n,r,!0,u,t)):(n.tag=0,Na&&u&&xa(n),Wi(null,n,l,t),n=n.child);return n;case 16:r=n.elementType;e:{so(e,n);e=n.pendingProps;l=r._init;r=l(r._payload);n.type=r;l=n.tag=oc(r);e=Va(r,e);switch(l){case 0:n=Yi(null,n,r,e,t);break e;case 1:n=Xi(null,n,r,e,t);break e;case 11:n=Qi(null,n,r,e,t);break e;case 14:n=ji(null,n,r,Va(r.type,e),t);break e}throw Error(a(306,r,""))}return n;case 0:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Va(r,l),Yi(e,n,r,l,t);case 1:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Va(r,l),Xi(e,n,r,l,t);case 3:e:{Zi(n);if(null===e)throw Error(a(387));r=n.pendingProps;u=n.memoizedState;l=u.element;nu(e,n);uu(n,r,null,t);var i=n.memoizedState;r=i.element;if(u.isDehydrated)if(u={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},n.updateQueue.baseState=u,n.memoizedState=u,n.flags&256){l=Mi(Error(a(423)),n);n=Ji(e,n,r,t,l);break e}else if(r!==l){l=Mi(Error(a(424)),n);n=Ji(e,n,r,t,l);break e}else for(_a=Ll(n.stateNode.containerInfo.firstChild),Ca=n,Na=!0,za=null,t=ku(n,null,r,t),n.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{Oa();if(r===l){n=co(e,n,t);break e}Wi(e,n,r,t)}n=n.child}return n;case 5:return zu(n),null===e&&Ma(n),r=n.type,l=n.pendingProps,u=null!==e?e.memoizedProps:null,i=l.children,El(r,l)?i=null:null!==u&&El(r,u)&&(n.flags|=32),qi(e,n),Wi(e,n,i,t),n.child;case 6:return null===e&&Ma(n),null;case 13:return to(e,n,t);case 4:return _u(n,n.stateNode.containerInfo),r=n.pendingProps,null===e?n.child=bu(n,null,r,t):Wi(e,n,r,t),n.child;case 11:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Va(r,l),Qi(e,n,r,l,t);case 7:return Wi(e,n,n.pendingProps,t),n.child;case 8:return Wi(e,n,n.pendingProps.children,t),n.child;case 12:return Wi(e,n,n.pendingProps.children,t),n.child;case 10:e:{r=n.type._context;l=n.pendingProps;u=n.memoizedProps;i=l.value;ql(Aa,r._currentValue);r._currentValue=i;if(null!==u)if(Nr(u.value,i)){if(u.children===l.children&&!Gl.current){n=co(e,n,t);break e}}else for(u=n.child,null!==u&&(u.return=n);null!==u;){var o=u.dependencies;if(null!==o){i=u.child;for(var s=o.firstContext;null!==s;){if(s.context===r){if(1===u.tag){s=tu(-1,t&-t);s.tag=2;var c=u.updateQueue;if(null!==c){c=c.shared;var f=c.pending;null===f?s.next=s:(s.next=f.next,f.next=s);c.pending=s}}u.lanes|=t;s=u.alternate;null!==s&&(s.lanes|=t);$a(u.return,t,n);o.lanes|=t;break}s=s.next}}else if(10===u.tag)i=u.type===n.type?null:u.child;else if(18===u.tag){i=u.return;if(null===i)throw Error(a(341));i.lanes|=t;o=i.alternate;null!==o&&(o.lanes|=t);$a(i,t,n);i=u.sibling}else i=u.child;if(null!==i)i.return=u;else for(i=u;null!==i;){if(i===n){i=null;break}u=i.sibling;if(null!==u){u.return=i.return;i=u;break}i=i.return}u=i}Wi(e,n,l.children,t);n=n.child}return n;case 9:return l=n.type,r=n.pendingProps.children,Ka(n,t),l=qa(l),r=r(l),n.flags|=1,Wi(e,n,r,t),n.child;case 14:return r=n.type,l=Va(r,n.pendingProps),l=Va(r.type,l),ji(e,n,r,l,t);case 15:return $i(e,n,n.type,n.pendingProps,t);case 17:return r=n.type,l=n.pendingProps,l=n.elementType===r?l:Va(r,l),so(e,n),n.tag=1,ea(r)?(e=!0,la(n)):e=!1,Ka(n,t),du(n,r,l),mu(n,r,l,t),Gi(null,n,r,!0,e,t);case 19:return oo(e,n,t);case 22:return Ki(e,n,t)}throw Error(a(156,n.tag))};function lc(e,n){return Ze(e,n)}function ac(e,n,t,r){this.tag=e;this.key=t;this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null;this.index=0;this.ref=null;this.pendingProps=n;this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null;this.mode=r;this.subtreeFlags=this.flags=0;this.deletions=null;this.childLanes=this.lanes=0;this.alternate=null}function uc(e,n,t,r){return new ac(e,n,t,r)}function ic(e){e=e.prototype;return!(!e||!e.isReactComponent)}function oc(e){if("function"===typeof e)return ic(e)?1:0;if(void 0!==e&&null!==e){e=e.$$typeof;if(e===L)return 11;if(e===D)return 14}return 2}function sc(e,n){var t=e.alternate;null===t?(t=uc(e.tag,n,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=n,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null);t.flags=e.flags&14680064;t.childLanes=e.childLanes;t.lanes=e.lanes;t.child=e.child;t.memoizedProps=e.memoizedProps;t.memoizedState=e.memoizedState;t.updateQueue=e.updateQueue;n=e.dependencies;t.dependencies=null===n?null:{lanes:n.lanes,firstContext:n.firstContext};t.sibling=e.sibling;t.index=e.index;t.ref=e.ref;return t}function cc(e,n,t,r,l,u){var i=2;r=e;if("function"===typeof e)ic(e)&&(i=1);else if("string"===typeof e)i=5;else e:switch(e){case _:return fc(t.children,l,u,n);case N:i=8;l|=8;break;case z:return e=uc(12,t,n,l|2),e.elementType=z,e.lanes=u,e;case M:return e=uc(13,t,n,l),e.elementType=M,e.lanes=u,e;case F:return e=uc(19,t,n,l),e.elementType=F,e.lanes=u,e;case O:return dc(t,l,u,n);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case P:i=10;break e;case T:i=9;break e;case L:i=11;break e;case D:i=14;break e;case R:i=16;r=null;break e}throw Error(a(130,null==e?e:typeof e,""))}n=uc(i,t,n,l);n.elementType=e;n.type=r;n.lanes=u;return n}function fc(e,n,t,r){e=uc(7,e,r,n);e.lanes=t;return e}function dc(e,n,t,r){e=uc(22,e,r,n);e.elementType=O;e.lanes=t;e.stateNode={isHidden:!1};return e}function pc(e,n,t){e=uc(6,e,null,n);e.lanes=t;return e}function mc(e,n,t){n=uc(4,null!==e.children?e.children:[],e.key,n);n.lanes=t;n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation};return n}function hc(e,n,t,r,l){this.tag=n;this.containerInfo=e;this.finishedWork=this.pingCache=this.current=this.pendingChildren=null;this.timeoutHandle=-1;this.callbackNode=this.pendingContext=this.context=null;this.callbackPriority=0;this.eventTimes=Cn(0);this.expirationTimes=Cn(-1);this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0;this.entanglements=Cn(0);this.identifierPrefix=r;this.onRecoverableError=l;this.mutableSourceEagerHydrationData=null}function gc(e,n,t,r,l,a,u,i,o){e=new hc(e,n,t,i,o);1===n?(n=1,!0===a&&(n|=8)):n=0;a=uc(3,null,null,n);e.current=a;a.stateNode=e;a.memoizedState={element:r,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null};eu(a);return e}function vc(e,n,t){var r=3{function r(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__==="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=="function"){return}if(false){}try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(r)}catch(e){console.error(e)}}if(true){r();e.exports=t(64448)}else{}},60053:(e,n)=>{function t(e,n){var t=e.length;e.push(n);e:for(;0>>1,l=e[r];if(0>>1;ra(o,t))sa(c,o)?(e[r]=c,e[s]=t,r=s):(e[r]=o,e[i]=t,r=i);else if(sa(c,t))e[r]=c,e[s]=t,r=s;else break e}}return n}function a(e,n){var t=e.sortIndex-n.sortIndex;return 0!==t?t:e.id-n.id}if("object"===typeof performance&&"function"===typeof performance.now){var u=performance;n.unstable_now=function(){return u.now()}}else{var i=Date,o=i.now();n.unstable_now=function(){return i.now()-o}}var s=[],c=[],f=1,d=null,p=3,m=!1,h=!1,g=!1,v="function"===typeof setTimeout?setTimeout:null,y="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(e){for(var n=r(c);null!==n;){if(null===n.callback)l(c);else if(n.startTime<=e)l(c),n.sortIndex=n.expirationTime,t(s,n);else break;n=r(c)}}function w(e){g=!1;k(e);if(!h)if(null!==r(s))h=!0,F(S);else{var n=r(c);null!==n&&D(w,n.startTime-e)}}function S(e,t){h=!1;g&&(g=!1,y(C),C=-1);m=!0;var a=p;try{k(t);for(d=r(s);null!==d&&(!(d.expirationTime>t)||e&&!z());){var u=d.callback;if("function"===typeof u){d.callback=null;p=d.priorityLevel;var i=u(d.expirationTime<=t);t=n.unstable_now();"function"===typeof i?d.callback=i:d===r(s)&&l(s);k(t)}else l(s);d=r(s)}if(null!==d)var o=!0;else{var f=r(c);null!==f&&D(w,f.startTime-t);o=!1}return o}finally{d=null,p=a,m=!1}}var x=!1,E=null,C=-1,_=5,N=-1;function z(){return n.unstable_now()-N<_?!1:!0}function P(){if(null!==E){var e=n.unstable_now();N=e;var t=!0;try{t=E(!0,e)}finally{t?T():(x=!1,E=null)}}else x=!1}var T;if("function"===typeof b)T=function(){b(P)};else if("undefined"!==typeof MessageChannel){var L=new MessageChannel,M=L.port2;L.port1.onmessage=P;T=function(){M.postMessage(null)}}else T=function(){v(P,0)};function F(e){E=e;x||(x=!0,T())}function D(e,t){C=v((function(){e(n.unstable_now())}),t)}n.unstable_IdlePriority=5;n.unstable_ImmediatePriority=1;n.unstable_LowPriority=4;n.unstable_NormalPriority=3;n.unstable_Profiling=null;n.unstable_UserBlockingPriority=2;n.unstable_cancelCallback=function(e){e.callback=null};n.unstable_continueExecution=function(){h||m||(h=!0,F(S))};n.unstable_forceFrameRate=function(e){0>e||125u?(e.sortIndex=a,t(c,e),null===r(s)&&e===r(c)&&(g?(y(C),C=-1):g=!0,D(w,a-u))):(e.sortIndex=i,t(s,e),h||m||(h=!0,F(S)));return e};n.unstable_shouldYield=z;n.unstable_wrapCallback=function(e){var n=p;return function(){var t=p;p=n;try{return e.apply(this,arguments)}finally{p=t}}}},63840:(e,n,t)=>{if(true){e.exports=t(60053)}else{}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/3935.905285b8e22c337968ed.js.LICENSE.txt b/bootcamp/share/jupyter/lab/static/3935.905285b8e22c337968ed.js.LICENSE.txt new file mode 100644 index 0000000..122393a --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/3935.905285b8e22c337968ed.js.LICENSE.txt @@ -0,0 +1,19 @@ +/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ + +/** + * @license React + * scheduler.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ diff --git a/bootcamp/share/jupyter/lab/static/3962.50786e3ed9a01329a4a0.js b/bootcamp/share/jupyter/lab/static/3962.50786e3ed9a01329a4a0.js new file mode 100644 index 0000000..971d7be --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/3962.50786e3ed9a01329a4a0.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3962],{93962:(e,t,T)=>{T.r(t);T.d(t,{ttcnCfg:()=>s});function n(e){var t={},T=e.split(" ");for(var n=0;n{"use strict";var t=/("(?:[^\\"]|\\.)*")|[:,]/g;e.exports=function e(r,n){var i,a,o;n=n||{};i=JSON.stringify([1],undefined,n.indent===undefined?2:n.indent).slice(2,-3);a=i===""?Infinity:n.maxLength===undefined?80:n.maxLength;o=n.replacer;return function e(r,n,s){var l,c,u,f,h,p,d,v,g,m,y,b;if(r&&typeof r.toJSON==="function"){r=r.toJSON()}y=JSON.stringify(r,o);if(y===undefined){return y}d=a-n.length-s;if(y.length<=d){g=y.replace(t,(function(e,t){return t||e+" "}));if(g.length<=d){return g}}if(o!=null){r=JSON.parse(y);o=undefined}if(typeof r==="object"&&r!==null){v=n+i;u=[];c=0;if(Array.isArray(r)){m="[";l="]";d=r.length;for(;c0){return[m,i+u.join(",\n"+v),l].join("\n"+n)}}return y}(r,"",0)}},34155:e=>{var t=e.exports={};var r;var n;function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){r=setTimeout}else{r=i}}catch(e){r=i}try{if(typeof clearTimeout==="function"){n=clearTimeout}else{n=a}}catch(e){n=a}})();function o(e){if(r===setTimeout){return setTimeout(e,0)}if((r===i||!r)&&setTimeout){r=setTimeout;return setTimeout(e,0)}try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function s(e){if(n===clearTimeout){return clearTimeout(e)}if((n===a||!n)&&clearTimeout){n=clearTimeout;return clearTimeout(e)}try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}var l=[];var c=false;var u;var f=-1;function h(){if(!c||!u){return}c=false;if(u.length){l=u.concat(l)}else{f=-1}if(l.length){p()}}function p(){if(c){return}var e=o(h);c=true;var t=l.length;while(t){u=l;l=[];while(++f1){for(var r=1;r{"use strict";r.r(t);r.d(t,{DEFAULT_ACTIONS:()=>Ca,default:()=>Va,guessMode:()=>Ga,vega:()=>Ra,vegaLite:()=>Da,version:()=>Ta});var n={};r.r(n);r.d(n,{JsonPatchError:()=>b,_areEquals:()=>T,applyOperation:()=>A,applyPatch:()=>I,applyReducer:()=>N,deepClone:()=>E,getValueByPointer:()=>O,validate:()=>L,validator:()=>S});var i={};r.r(i);r.d(i,{compare:()=>U,generate:()=>M,observe:()=>_,unobserve:()=>P});var a={};r.r(a);r.d(a,{dark:()=>Le,excel:()=>Re,fivethirtyeight:()=>_e,ggplot2:()=>ze,googlecharts:()=>vt,latimes:()=>qe,powerbi:()=>Mt,quartz:()=>Ze,urbaninstitute:()=>ft,version:()=>zt,vox:()=>tt});var o=undefined&&undefined.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(t.hasOwnProperty(r))e[r]=t[r]};return e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var s=Object.prototype.hasOwnProperty;function l(e,t){return s.call(e,t)}function c(e){if(Array.isArray(e)){var t=new Array(e.length);for(var r=0;r=48&&n<=57){t++;continue}return false}return true}function h(e){if(e.indexOf("/")===-1&&e.indexOf("~")===-1)return e;return e.replace(/~/g,"~0").replace(/\//g,"~1")}function p(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function d(e,t){var r;for(var n in e){if(l(e,n)){if(e[n]===t){return h(n)+"/"}else if(typeof e[n]==="object"){r=d(e[n],t);if(r!=""){return h(n)+"/"+r}}}}return""}function v(e,t){if(e===t){return"/"}var r=d(e,t);if(r===""){throw new Error("Object not found in root")}return"/"+r}function g(e){if(e===undefined){return true}if(e){if(Array.isArray(e)){for(var t=0,r=e.length;t0&&l[h-1]=="constructor")){throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README")}if(r){if(v===undefined){if(c[g]===undefined){v=l.slice(0,h).join("/")}else if(h==d-1){v=t.path}if(v!==undefined){m(t,0,e,v)}}}h++;if(Array.isArray(c)){if(g==="-"){g=c.length}else{if(r&&!f(g)){throw new b("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",a,t,e)}else if(f(g)){g=~~g}}if(h>=d){if(r&&t.op==="add"&&g>c.length){throw new b("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",a,t,e)}var o=x[t.op].call(t,c,g,e);if(o.test===false){throw new b("Test operation failed","TEST_OPERATION_FAILED",a,t,e)}return o}}else{if(h>=d){var o=w[t.op].call(t,c,g,e);if(o.test===false){throw new b("Test operation failed","TEST_OPERATION_FAILED",a,t,e)}return o}}c=c[g];if(r&&h0){throw new b('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r)}else if((e.op==="move"||e.op==="copy")&&typeof e.from!=="string"){throw new b("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r)}else if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===undefined){throw new b("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r)}else if((e.op==="add"||e.op==="replace"||e.op==="test")&&g(e.value)){throw new b("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r)}else if(r){if(e.op=="add"){var i=e.path.split("/").length;var a=n.split("/").length;if(i!==a+1&&i!==a){throw new b("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==n){throw new b("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}}else if(e.op==="move"||e.op==="copy"){var o={op:"_get",path:e.from,value:undefined};var s=L([o],r);if(s&&s.name==="OPERATION_PATH_UNRESOLVABLE"){throw new b("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}}}function L(e,t,r){try{if(!Array.isArray(e)){throw new b("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY")}if(t){I(u(t),u(e),r||true)}else{r=r||S;for(var n=0;n0){e.patches=[];if(e.callback){e.callback(n)}}return n}function z(e,t,r,n,i){if(t===e){return}if(typeof t.toJSON==="function"){t=t.toJSON()}var a=c(t);var o=c(e);var s=false;var f=false;for(var p=o.length-1;p>=0;p--){var d=o[p];var v=e[d];if(l(t,d)&&!(t[d]===undefined&&v!==undefined&&Array.isArray(t)===false)){var g=t[d];if(typeof v=="object"&&v!=null&&typeof g=="object"&&g!=null&&Array.isArray(v)===Array.isArray(g)){z(v,g,r,n+"/"+h(d),i)}else{if(v!==g){s=true;if(i){r.push({op:"test",path:n+"/"+h(d),value:u(v)})}r.push({op:"replace",path:n+"/"+h(d),value:u(g)})}}}else if(Array.isArray(e)===Array.isArray(t)){if(i){r.push({op:"test",path:n+"/"+h(d),value:u(v)})}r.push({op:"remove",path:n+"/"+h(d)});f=true}else{if(i){r.push({op:"test",path:n,value:e})}r.push({op:"replace",path:n,value:t});s=true}}if(!f&&a.length==o.length){return}for(var p=0;pe.x2){n=e.x;e.x=e.x2;e.x2=n}e.width=e.x2-e.x}else{e.x=e.x2-(e.width||0)}}if(t.xc){e.x=e.xc-(e.width||0)/2}if(t.y2){if(t.y){if(r&&e.y>e.y2){n=e.y;e.y=e.y2;e.y2=n}e.height=e.y2-e.y}else{e.y=e.y2-(e.height||0)}}if(t.yc){e.y=e.yc-(e.height||0)/2}}var V={NaN,E:Math.E,LN2:Math.LN2,LN10:Math.LN10,LOG2E:Math.LOG2E,LOG10E:Math.LOG10E,PI:Math.PI,SQRT1_2:Math.SQRT1_2,SQRT2:Math.SQRT2,MIN_VALUE:Number.MIN_VALUE,MAX_VALUE:Number.MAX_VALUE};var H={"*":(e,t)=>e*t,"+":(e,t)=>e+t,"-":(e,t)=>e-t,"/":(e,t)=>e/t,"%":(e,t)=>e%t,">":(e,t)=>e>t,"<":(e,t)=>ee<=t,">=":(e,t)=>e>=t,"==":(e,t)=>e==t,"!=":(e,t)=>e!=t,"===":(e,t)=>e===t,"!==":(e,t)=>e!==t,"&":(e,t)=>e&t,"|":(e,t)=>e|t,"^":(e,t)=>e^t,"<<":(e,t)=>e<>":(e,t)=>e>>t,">>>":(e,t)=>e>>>t};var J={"+":e=>+e,"-":e=>-e,"~":e=>~e,"!":e=>!e};const Y=Array.prototype.slice;const q=(e,t,r)=>{const n=r?r(t[0]):t[0];return n[e].apply(n,Y.call(t,1))};const Q=(e,t,r,n,i,a,o)=>new Date(e,t||0,r!=null?r:1,n||0,i||0,a||0,o||0);var K={isNaN:Number.isNaN,isFinite:Number.isFinite,abs:Math.abs,acos:Math.acos,asin:Math.asin,atan:Math.atan,atan2:Math.atan2,ceil:Math.ceil,cos:Math.cos,exp:Math.exp,floor:Math.floor,log:Math.log,max:Math.max,min:Math.min,pow:Math.pow,random:Math.random,round:Math.round,sin:Math.sin,sqrt:Math.sqrt,tan:Math.tan,clamp:(e,t,r)=>Math.max(t,Math.min(r,e)),now:Date.now,utc:Date.UTC,datetime:Q,date:e=>new Date(e).getDate(),day:e=>new Date(e).getDay(),year:e=>new Date(e).getFullYear(),month:e=>new Date(e).getMonth(),hours:e=>new Date(e).getHours(),minutes:e=>new Date(e).getMinutes(),seconds:e=>new Date(e).getSeconds(),milliseconds:e=>new Date(e).getMilliseconds(),time:e=>new Date(e).getTime(),timezoneoffset:e=>new Date(e).getTimezoneOffset(),utcdate:e=>new Date(e).getUTCDate(),utcday:e=>new Date(e).getUTCDay(),utcyear:e=>new Date(e).getUTCFullYear(),utcmonth:e=>new Date(e).getUTCMonth(),utchours:e=>new Date(e).getUTCHours(),utcminutes:e=>new Date(e).getUTCMinutes(),utcseconds:e=>new Date(e).getUTCSeconds(),utcmilliseconds:e=>new Date(e).getUTCMilliseconds(),length:e=>e.length,join:function(){return q("join",arguments)},indexof:function(){return q("indexOf",arguments)},lastindexof:function(){return q("lastIndexOf",arguments)},slice:function(){return q("slice",arguments)},reverse:e=>e.slice().reverse(),parseFloat,parseInt,upper:e=>String(e).toUpperCase(),lower:e=>String(e).toLowerCase(),substring:function(){return q("substring",arguments,String)},split:function(){return q("split",arguments,String)},replace:function(){return q("replace",arguments,String)},trim:e=>String(e).trim(),regexp:RegExp,test:(e,t)=>RegExp(e).test(t)};const Z=["view","item","group","xy","x","y"];const ee=new Set([Function,eval,setTimeout,setInterval]);if(typeof setImmediate==="function")ee.add(setImmediate);const te={Literal:(e,t)=>t.value,Identifier:(e,t)=>{const r=t.name;return e.memberDepth>0?r:r==="datum"?e.datum:r==="event"?e.event:r==="item"?e.item:V[r]||e.params["$"+r]},MemberExpression:(e,t)=>{const r=!t.computed,n=e(t.object);if(r)e.memberDepth+=1;const i=e(t.property);if(r)e.memberDepth-=1;if(ee.has(n[i])){console.error(`Prevented interpretation of member "${i}" which could lead to insecure code execution`);return}return n[i]},CallExpression:(e,t)=>{const r=t.arguments;let n=t.callee.name;if(n.startsWith("_")){n=n.slice(1)}return n==="if"?e(r[0])?e(r[1]):e(r[2]):(e.fn[n]||K[n]).apply(e.fn,r.map(e))},ArrayExpression:(e,t)=>t.elements.map(e),BinaryExpression:(e,t)=>H[t.operator](e(t.left),e(t.right)),UnaryExpression:(e,t)=>J[t.operator](e(t.argument)),ConditionalExpression:(e,t)=>e(t.test)?e(t.consequent):e(t.alternate),LogicalExpression:(e,t)=>t.operator==="&&"?e(t.left)&&e(t.right):e(t.left)||e(t.right),ObjectExpression:(e,t)=>t.properties.reduce(((t,r)=>{e.memberDepth+=1;const n=e(r.key);e.memberDepth-=1;if(ee.has(e(r.value))){console.error(`Prevented interpretation of property "${n}" which could lead to insecure code execution`)}else{t[n]=e(r.value)}return t}),{})};function re(e,t,r,n,i,a){const o=e=>te[e.type](o,e);o.memberDepth=0;o.fn=Object.create(t);o.params=r;o.datum=n;o.event=i;o.item=a;Z.forEach((e=>o.fn[e]=function(){return i.vega[e](...arguments)}));return o(e)}var ne={operator(e,t){const r=t.ast,n=e.functions;return e=>re(r,n,e)},parameter(e,t){const r=t.ast,n=e.functions;return(e,t)=>re(r,n,t,e)},event(e,t){const r=t.ast,n=e.functions;return e=>re(r,n,undefined,undefined,e)},handler(e,t){const r=t.ast,n=e.functions;return(e,t)=>{const i=t.item&&t.item.datum;return re(r,n,e,i,t)}},encode(e,t){const{marktype:r,channels:n}=t,i=e.functions,a=r==="group"||r==="image"||r==="rect";return(e,t)=>{const o=e.datum;let s=0,l;for(const r in n){l=re(n[r].ast,i,t,o,undefined,e);if(e[r]!==l){e[r]=l;s=1}}if(r!=="rule"){$(e,n,a)}return s}}};var ie=r(33778);function ae(e){const[t,r]=/schema\/([\w-]+)\/([\w\.\-]+)\.json$/g.exec(e).slice(1,3);return{library:t,version:r}}const oe=ae;var se="vega-themes";var le="2.12.1";var ce="Themes for stylized Vega and Vega-Lite visualizations.";var ue=["vega","vega-lite","themes","style"];var fe="BSD-3-Clause";var he={name:"UW Interactive Data Lab",url:"https://idl.cs.washington.edu"};var pe=[{name:"Emily Gu",url:"https://github.com/emilygu"},{name:"Arvind Satyanarayan",url:"http://arvindsatya.com"},{name:"Jeffrey Heer",url:"https://idl.cs.washington.edu"},{name:"Dominik Moritz",url:"https://www.domoritz.de"}];var de="build/vega-themes.js";var ve="build/vega-themes.module.js";var ge="build/vega-themes.min.js";var me="build/vega-themes.min.js";var ye="build/vega-themes.module.d.ts";var be={type:"git",url:"https://github.com/vega/vega-themes.git"};var Ee=["src","build"];var we={prebuild:"yarn clean",build:"rollup -c",clean:"rimraf build && rimraf examples/build","copy:data":"rsync -r node_modules/vega-datasets/data/* examples/data","copy:build":"rsync -r build/* examples/build","deploy:gh":"yarn build && mkdir -p examples/build && rsync -r build/* examples/build && gh-pages -d examples",preversion:"yarn lint",serve:"browser-sync start -s -f build examples --serveStatic examples",start:"yarn build && concurrently --kill-others -n Server,Rollup 'yarn serve' 'rollup -c -w'",prepare:"beemo create-config",eslintbase:"beemo eslint .",format:"yarn eslintbase --fix",lint:"yarn eslintbase",release:"release-it"};var xe={"@release-it/conventional-changelog":"^5.1.1","@rollup/plugin-json":"^6.0.0","@rollup/plugin-node-resolve":"^15.0.1","@rollup/plugin-terser":"^0.4.0","browser-sync":"^2.27.10",concurrently:"^7.3.0","gh-pages":"^5.0.0","release-it":"^15.6.0","rollup-plugin-bundle-size":"^1.0.3","rollup-plugin-ts":"^3.0.2",rollup:"^3.15.0",typescript:"^4.7.4","vega-lite-dev-config":"^0.21.0","vega-lite":"^5.0.0",vega:"^5.19.1"};var Oe={vega:"*","vega-lite":"*"};var Ae={};var Ie={name:se,version:le,description:ce,keywords:ue,license:fe,author:he,contributors:pe,main:de,module:ve,unpkg:ge,jsdelivr:me,types:ye,repository:be,files:Ee,scripts:we,devDependencies:xe,peerDependencies:Oe,dependencies:Ae};const Ne="#fff";const Se="#888";const Le={background:"#333",view:{stroke:Se},title:{color:Ne,subtitleColor:Ne},style:{"guide-label":{fill:Ne},"guide-title":{fill:Ne}},axis:{domainColor:Ne,gridColor:Se,tickColor:Ne}};const Te="#4572a7";const Re={background:"#fff",arc:{fill:Te},area:{fill:Te},line:{stroke:Te,strokeWidth:2},path:{stroke:Te},rect:{fill:Te},shape:{stroke:Te},symbol:{fill:Te,strokeWidth:1.5,size:50},axis:{bandPosition:.5,grid:true,gridColor:"#000000",gridOpacity:1,gridWidth:.5,labelPadding:10,tickSize:5,tickWidth:.5},axisBand:{grid:false,tickExtra:true},legend:{labelBaseline:"middle",labelFontSize:11,symbolSize:50,symbolType:"square"},range:{category:["#4572a7","#aa4643","#8aa453","#71598e","#4598ae","#d98445","#94aace","#d09393","#b9cc98","#a99cbc"]}};const De="#30a2da";const ke="#cbcbcb";const Ce="#999";const Fe="#333";const je="#f0f0f0";const Pe="#333";const _e={arc:{fill:De},area:{fill:De},axis:{domainColor:ke,grid:true,gridColor:ke,gridWidth:1,labelColor:Ce,labelFontSize:10,titleColor:Fe,tickColor:ke,tickSize:10,titleFontSize:14,titlePadding:10,labelPadding:4},axisBand:{grid:false},background:je,group:{fill:je},legend:{labelColor:Pe,labelFontSize:11,padding:1,symbolSize:30,symbolType:"square",titleColor:Pe,titleFontSize:14,titlePadding:10},line:{stroke:De,strokeWidth:2},path:{stroke:De,strokeWidth:.5},rect:{fill:De},range:{category:["#30a2da","#fc4f30","#e5ae38","#6d904f","#8b8b8b","#b96db8","#ff9e27","#56cc60","#52d2ca","#52689e","#545454","#9fe4f8"],diverging:["#cc0020","#e77866","#f6e7e1","#d6e8ed","#91bfd9","#1d78b5"],heatmap:["#d6e8ed","#cee0e5","#91bfd9","#549cc6","#1d78b5"]},point:{filled:true,shape:"circle"},shape:{stroke:De},bar:{binSpacing:2,fill:De,stroke:null},title:{anchor:"start",fontSize:24,fontWeight:600,offset:20}};const Me="#000";const ze={group:{fill:"#e5e5e5"},arc:{fill:Me},area:{fill:Me},line:{stroke:Me},path:{stroke:Me},rect:{fill:Me},shape:{stroke:Me},symbol:{fill:Me,size:40},axis:{domain:false,grid:true,gridColor:"#FFFFFF",gridOpacity:1,labelColor:"#7F7F7F",labelPadding:4,tickColor:"#7F7F7F",tickSize:5.67,titleFontSize:16,titleFontWeight:"normal"},legend:{labelBaseline:"middle",labelFontSize:11,symbolSize:40},range:{category:["#000000","#7F7F7F","#1A1A1A","#999999","#333333","#B0B0B0","#4D4D4D","#C9C9C9","#666666","#DCDCDC"]}};const Ue=22;const Be="normal";const Ge="Benton Gothic, sans-serif";const Xe=11.5;const We="normal";const $e="#82c6df";const Ve="Benton Gothic Bold, sans-serif";const He="normal";const Je=13;const Ye={"category-6":["#ec8431","#829eb1","#c89d29","#3580b1","#adc839","#ab7fb4"],"fire-7":["#fbf2c7","#f9e39c","#f8d36e","#f4bb6a","#e68a4f","#d15a40","#ab4232"],"fireandice-6":["#e68a4f","#f4bb6a","#f9e39c","#dadfe2","#a6b7c6","#849eae"],"ice-7":["#edefee","#dadfe2","#c4ccd2","#a6b7c6","#849eae","#607785","#47525d"]};const qe={background:"#ffffff",title:{anchor:"start",color:"#000000",font:Ve,fontSize:Ue,fontWeight:Be},arc:{fill:$e},area:{fill:$e},line:{stroke:$e,strokeWidth:2},path:{stroke:$e},rect:{fill:$e},shape:{stroke:$e},symbol:{fill:$e,size:30},axis:{labelFont:Ge,labelFontSize:Xe,labelFontWeight:We,titleFont:Ve,titleFontSize:Je,titleFontWeight:He},axisX:{labelAngle:0,labelPadding:4,tickSize:3},axisY:{labelBaseline:"middle",maxExtent:45,minExtent:45,tickSize:2,titleAlign:"left",titleAngle:0,titleX:-45,titleY:-11},legend:{labelFont:Ge,labelFontSize:Xe,symbolType:"square",titleFont:Ve,titleFontSize:Je,titleFontWeight:He},range:{category:Ye["category-6"],diverging:Ye["fireandice-6"],heatmap:Ye["fire-7"],ordinal:Ye["fire-7"],ramp:Ye["fire-7"]}};const Qe="#ab5787";const Ke="#979797";const Ze={background:"#f9f9f9",arc:{fill:Qe},area:{fill:Qe},line:{stroke:Qe},path:{stroke:Qe},rect:{fill:Qe},shape:{stroke:Qe},symbol:{fill:Qe,size:30},axis:{domainColor:Ke,domainWidth:.5,gridWidth:.2,labelColor:Ke,tickColor:Ke,tickWidth:.2,titleColor:Ke},axisBand:{grid:false},axisX:{grid:true,tickSize:10},axisY:{domain:false,grid:true,tickSize:0},legend:{labelFontSize:11,padding:1,symbolSize:30,symbolType:"square"},range:{category:["#ab5787","#51b2e5","#703c5c","#168dd9","#d190b6","#00609f","#d365ba","#154866","#666666","#c4c4c4"]}};const et="#3e5c69";const tt={background:"#fff",arc:{fill:et},area:{fill:et},line:{stroke:et},path:{stroke:et},rect:{fill:et},shape:{stroke:et},symbol:{fill:et},axis:{domainWidth:.5,grid:true,labelPadding:2,tickSize:5,tickWidth:.5,titleFontWeight:"normal"},axisBand:{grid:false},axisX:{gridWidth:.2},axisY:{gridDash:[3],gridWidth:.4},legend:{labelFontSize:11,padding:1,symbolType:"square"},range:{category:["#3e5c69","#6793a6","#182429","#0570b0","#3690c0","#74a9cf","#a6bddb","#e2ddf2"]}};const rt="#1696d2";const nt="#000000";const it="#FFFFFF";const at="Lato";const ot="Lato";const st="Lato";const lt="#DEDDDD";const ct=18;const ut={"main-colors":["#1696d2","#d2d2d2","#000000","#fdbf11","#ec008b","#55b748","#5c5859","#db2b27"],"shades-blue":["#CFE8F3","#A2D4EC","#73BFE2","#46ABDB","#1696D2","#12719E","#0A4C6A","#062635"],"shades-gray":["#F5F5F5","#ECECEC","#E3E3E3","#DCDBDB","#D2D2D2","#9D9D9D","#696969","#353535"],"shades-yellow":["#FFF2CF","#FCE39E","#FDD870","#FCCB41","#FDBF11","#E88E2D","#CA5800","#843215"],"shades-magenta":["#F5CBDF","#EB99C2","#E46AA7","#E54096","#EC008B","#AF1F6B","#761548","#351123"],"shades-green":["#DCEDD9","#BCDEB4","#98CF90","#78C26D","#55B748","#408941","#2C5C2D","#1A2E19"],"shades-black":["#D5D5D4","#ADABAC","#848081","#5C5859","#332D2F","#262223","#1A1717","#0E0C0D"],"shades-red":["#F8D5D4","#F1AAA9","#E9807D","#E25552","#DB2B27","#A4201D","#6E1614","#370B0A"],"one-group":["#1696d2","#000000"],"two-groups-cat-1":["#1696d2","#000000"],"two-groups-cat-2":["#1696d2","#fdbf11"],"two-groups-cat-3":["#1696d2","#db2b27"],"two-groups-seq":["#a2d4ec","#1696d2"],"three-groups-cat":["#1696d2","#fdbf11","#000000"],"three-groups-seq":["#a2d4ec","#1696d2","#0a4c6a"],"four-groups-cat-1":["#000000","#d2d2d2","#fdbf11","#1696d2"],"four-groups-cat-2":["#1696d2","#ec0008b","#fdbf11","#5c5859"],"four-groups-seq":["#cfe8f3","#73bf42","#1696d2","#0a4c6a"],"five-groups-cat-1":["#1696d2","#fdbf11","#d2d2d2","#ec008b","#000000"],"five-groups-cat-2":["#1696d2","#0a4c6a","#d2d2d2","#fdbf11","#332d2f"],"five-groups-seq":["#cfe8f3","#73bf42","#1696d2","#0a4c6a","#000000"],"six-groups-cat-1":["#1696d2","#ec008b","#fdbf11","#000000","#d2d2d2","#55b748"],"six-groups-cat-2":["#1696d2","#d2d2d2","#ec008b","#fdbf11","#332d2f","#0a4c6a"],"six-groups-seq":["#cfe8f3","#a2d4ec","#73bfe2","#46abdb","#1696d2","#12719e"],"diverging-colors":["#ca5800","#fdbf11","#fdd870","#fff2cf","#cfe8f3","#73bfe2","#1696d2","#0a4c6a"]};const ft={background:it,title:{anchor:"start",fontSize:ct,font:at},axisX:{domain:true,domainColor:nt,domainWidth:1,grid:false,labelFontSize:12,labelFont:ot,labelAngle:0,tickColor:nt,tickSize:5,titleFontSize:12,titlePadding:10,titleFont:at},axisY:{domain:false,domainWidth:1,grid:true,gridColor:lt,gridWidth:1,labelFontSize:12,labelFont:ot,labelPadding:8,ticks:false,titleFontSize:12,titlePadding:10,titleFont:at,titleAngle:0,titleY:-10,titleX:18},legend:{labelFontSize:12,labelFont:ot,symbolSize:100,titleFontSize:12,titlePadding:10,titleFont:at,orient:"right",offset:10},view:{stroke:"transparent"},range:{category:ut["six-groups-cat-1"],diverging:ut["diverging-colors"],heatmap:ut["diverging-colors"],ordinal:ut["six-groups-seq"],ramp:ut["shades-blue"]},area:{fill:rt},rect:{fill:rt},line:{color:rt,stroke:rt,strokeWidth:5},trail:{color:rt,stroke:rt,strokeWidth:0,size:1},path:{stroke:rt,strokeWidth:.5},point:{filled:true},text:{font:st,color:rt,fontSize:11,align:"center",fontWeight:400,size:11},style:{bar:{fill:rt,stroke:null}},arc:{fill:rt},shape:{stroke:rt},symbol:{fill:rt,size:30}};const ht="#3366CC";const pt="#ccc";const dt="Arial, sans-serif";const vt={arc:{fill:ht},area:{fill:ht},path:{stroke:ht},rect:{fill:ht},shape:{stroke:ht},symbol:{stroke:ht},circle:{fill:ht},background:"#fff",padding:{top:10,right:10,bottom:10,left:10},style:{"guide-label":{font:dt,fontSize:12},"guide-title":{font:dt,fontSize:12},"group-title":{font:dt,fontSize:12}},title:{font:dt,fontSize:14,fontWeight:"bold",dy:-3,anchor:"start"},axis:{gridColor:pt,tickColor:pt,domain:false,grid:true},range:{category:["#4285F4","#DB4437","#F4B400","#0F9D58","#AB47BC","#00ACC1","#FF7043","#9E9D24","#5C6BC0","#F06292","#00796B","#C2185B"],heatmap:["#c6dafc","#5e97f6","#2a56c6"]}};const gt=e=>e*(1/3+1);const mt=gt(9);const yt=gt(10);const bt=gt(12);const Et="Segoe UI";const wt="wf_standard-font, helvetica, arial, sans-serif";const xt="#252423";const Ot="#605E5C";const At="transparent";const It="#C8C6C4";const Nt="#118DFF";const St="#12239E";const Lt="#E66C37";const Tt="#6B007B";const Rt="#E044A7";const Dt="#744EC2";const kt="#D9B300";const Ct="#D64550";const Ft=Nt;const jt="#DEEFFF";const Pt=[jt,Ft];const _t=[jt,"#c7e4ff","#b0d9ff","#9aceff","#83c3ff","#6cb9ff","#55aeff","#3fa3ff","#2898ff",Ft];const Mt={view:{stroke:At},background:At,font:Et,header:{titleFont:wt,titleFontSize:bt,titleColor:xt,labelFont:Et,labelFontSize:yt,labelColor:Ot},axis:{ticks:false,grid:false,domain:false,labelColor:Ot,labelFontSize:mt,titleFont:wt,titleColor:xt,titleFontSize:bt,titleFontWeight:"normal"},axisQuantitative:{tickCount:3,grid:true,gridColor:It,gridDash:[1,5],labelFlush:false},axisBand:{tickExtra:true},axisX:{labelPadding:5},axisY:{labelPadding:10},bar:{fill:Nt},line:{stroke:Nt,strokeWidth:3,strokeCap:"round",strokeJoin:"round"},text:{font:Et,fontSize:mt,fill:Ot},arc:{fill:Nt},area:{fill:Nt,line:true,opacity:.6},path:{stroke:Nt},rect:{fill:Nt},point:{fill:Nt,filled:true,size:75},shape:{stroke:Nt},symbol:{fill:Nt,strokeWidth:1.5,size:50},legend:{titleFont:Et,titleFontWeight:"bold",titleColor:Ot,labelFont:Et,labelFontSize:yt,labelColor:Ot,symbolType:"circle",symbolSize:75},range:{category:[Nt,St,Lt,Tt,Rt,Dt,kt,Ct],diverging:Pt,heatmap:Pt,ordinal:_t}};const zt=Ie.version;var Ut=r(48823);var Bt="vega-tooltip";var Gt="0.30.1";var Xt="A tooltip plugin for Vega-Lite and Vega visualizations.";var Wt=["vega-lite","vega","tooltip"];var $t={type:"git",url:"https://github.com/vega/vega-tooltip.git"};var Vt={name:"UW Interactive Data Lab",url:"https://idl.cs.washington.edu"};var Ht=["Dominik Moritz","Sira Horradarn","Zening Qu","Kanit Wongsuphasawat","Yuri Astrakhan","Jeffrey Heer"];var Jt="BSD-3-Clause";var Yt={url:"https://github.com/vega/vega-tooltip/issues"};var qt="https://github.com/vega/vega-tooltip#readme";var Qt="build/vega-tooltip.js";var Kt="build/vega-tooltip.module.js";var Zt="build/vega-tooltip.min.js";var er="build/vega-tooltip.min.js";var tr="build/vega-tooltip.module.d.ts";var rr=["src","build","types"];var nr={prebuild:"yarn clean && yarn build:style",build:"rollup -c","build:style":"./build-style.sh",clean:"rimraf build && rimraf src/style.ts","copy:data":"rsync -r node_modules/vega-datasets/data/* examples/data","copy:build":"rsync -r build/* examples/build","deploy:gh":"yarn build && yarn copy:build && gh-pages -d examples && yarn clean",prepublishOnly:"yarn clean && yarn build",preversion:"yarn lint && yarn test",serve:"browser-sync start -s -f build examples --serveStatic examples",start:"yarn build && concurrently --kill-others -n Server,Rollup 'yarn serve' 'rollup -c -w'",pretest:"yarn build:style",test:"beemo jest","test:inspect":"node --inspect-brk ./node_modules/.bin/jest --runInBand",prepare:"beemo create-config && yarn copy:data",prettierbase:"beemo prettier '*.{css,scss,html}'",eslintbase:"beemo eslint .",format:"yarn eslintbase --fix && yarn prettierbase --write",lint:"yarn eslintbase && yarn prettierbase --check",release:"release-it"};var ir={"@release-it/conventional-changelog":"^5.1.1","@rollup/plugin-json":"^6.0.0","@rollup/plugin-node-resolve":"^15.0.1","release-it":"^15.6.0","browser-sync":"^2.27.11",concurrently:"^7.6.0","gh-pages":"^5.0.0","jest-environment-jsdom":"^29.4.2",path:"^0.12.7",rollup:"^3.15.0","rollup-plugin-bundle-size":"^1.0.3","@rollup/plugin-terser":"^0.4.0","rollup-plugin-ts":"^3.2.0",sass:"^1.58.0",typescript:"~4.9.5","vega-datasets":"^2.5.4","vega-lite-dev-config":"^0.21.0","vega-typings":"^0.22.3"};var ar={"vega-util":"^1.17.0"};var or={name:Bt,version:Gt,description:Xt,keywords:Wt,repository:$t,author:Vt,collaborators:Ht,license:Jt,bugs:Yt,homepage:qt,main:Qt,module:Kt,unpkg:Zt,jsdelivr:er,types:tr,files:rr,scripts:nr,devDependencies:ir,dependencies:ar};function sr(e,t){var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0)r[n]=e[n];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var i=0,n=Object.getOwnPropertySymbols(e);it((0,Ut.HD)(e)?e:ur(e,r)))).join(", ")}]`}if((0,Ut.Kn)(e)){let n="";const i=e,{title:a,image:o}=i,s=sr(i,["title","image"]);if(a){n+=`

    ${t(a)}

    `}if(o){n+=``}const l=Object.keys(s);if(l.length>0){n+="";for(const e of l){let i=s[e];if(i===undefined){continue}if((0,Ut.Kn)(i)){i=ur(i,r)}n+=``}n+=`
    ${t(e)}:${t(i)}
    `}return n||"{}"}return t(e)}function cr(e){const t=[];return function(r,n){if(typeof n!=="object"||n===null){return n}const i=t.indexOf(this)+1;t.length=i;if(t.length>e){return"[Object]"}if(t.indexOf(n)>=0){return"[Circular]"}t.push(n);return n}}function ur(e,t){return JSON.stringify(e,cr(t))}var fr=`#vg-tooltip-element {\n visibility: hidden;\n padding: 8px;\n position: fixed;\n z-index: 1000;\n font-family: sans-serif;\n font-size: 11px;\n border-radius: 3px;\n box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);\n /* The default theme is the light theme. */\n background-color: rgba(255, 255, 255, 0.95);\n border: 1px solid #d9d9d9;\n color: black;\n}\n#vg-tooltip-element.visible {\n visibility: visible;\n}\n#vg-tooltip-element h2 {\n margin-top: 0;\n margin-bottom: 10px;\n font-size: 13px;\n}\n#vg-tooltip-element img {\n max-width: 200px;\n max-height: 200px;\n}\n#vg-tooltip-element table {\n border-spacing: 0;\n}\n#vg-tooltip-element table tr {\n border: none;\n}\n#vg-tooltip-element table tr td {\n overflow: hidden;\n text-overflow: ellipsis;\n padding-top: 2px;\n padding-bottom: 2px;\n}\n#vg-tooltip-element table tr td.key {\n color: #808080;\n max-width: 150px;\n text-align: right;\n padding-right: 4px;\n}\n#vg-tooltip-element table tr td.value {\n display: block;\n max-width: 300px;\n max-height: 7em;\n text-align: left;\n}\n#vg-tooltip-element.dark-theme {\n background-color: rgba(32, 32, 32, 0.9);\n border: 1px solid #f5f5f5;\n color: white;\n}\n#vg-tooltip-element.dark-theme td.key {\n color: #bfbfbf;\n}\n`;const hr="vg-tooltip-element";const pr={offsetX:10,offsetY:10,id:hr,styleId:"vega-tooltip-style",theme:"light",disableDefaultStyle:false,sanitize:dr,maxDepth:2,formatTooltip:lr};function dr(e){return String(e).replace(/&/g,"&").replace(/window.innerWidth){i=+e.clientX-r-t.width}let a=e.clientY+n;if(a+t.height>window.innerHeight){a=+e.clientY-n-t.height}return{x:i,y:a}}class mr{constructor(e){this.options=Object.assign(Object.assign({},pr),e);const t=this.options.id;this.el=null;this.call=this.tooltipHandler.bind(this);if(!this.options.disableDefaultStyle&&!document.getElementById(this.options.styleId)){const e=document.createElement("style");e.setAttribute("id",this.options.styleId);e.innerHTML=vr(t);const r=document.head;if(r.childNodes.length>0){r.insertBefore(e,r.childNodes[0])}else{r.appendChild(e)}}}tooltipHandler(e,t,r,n){var i;this.el=document.getElementById(this.options.id);if(!this.el){this.el=document.createElement("div");this.el.setAttribute("id",this.options.id);this.el.classList.add("vg-tooltip");const e=(i=document.fullscreenElement)!==null&&i!==void 0?i:document.body;e.appendChild(this.el)}if(n==null||n===""){this.el.classList.remove("visible",`${this.options.theme}-theme`);return}this.el.innerHTML=this.options.formatTooltip(n,this.options.sanitize,this.options.maxDepth);this.el.classList.add("visible",`${this.options.theme}-theme`);const{x:a,y:o}=gr(t,this.el.getBoundingClientRect(),this.options.offsetX,this.options.offsetY);this.el.style.top=`${o}px`;this.el.style.left=`${a}px`}}const yr=or.version;function br(e,t){const r=new mr(t);e.tooltip(r.call).run();return r}var Er=r(34155);function wr(e){"@babel/helpers - typeof";return wr="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},wr(e)}function xr(e,t){if(wr(e)!=="object"||e===null)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if(wr(n)!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Or(e){var t=xr(e,"string");return wr(t)==="symbol"?t:String(t)}function Ar(e,t,r){t=Or(t);if(t in e){Object.defineProperty(e,t,{value:r,enumerable:true,configurable:true,writable:true})}else{e[t]=r}return e}function Ir(e,t,r,n,i,a,o){try{var s=e[a](o);var l=s.value}catch(c){r(c);return}if(s.done){t(l)}else{Promise.resolve(l).then(n,i)}}function Nr(e){return function(){var t=this,r=arguments;return new Promise((function(n,i){var a=e.apply(t,r);function o(e){Ir(a,n,i,o,s,"next",e)}function s(e){Ir(a,n,i,o,s,"throw",e)}o(undefined)}))}}var Sr=Object.prototype;var Lr=Sr.hasOwnProperty;var Tr;var Rr=typeof Symbol==="function"?Symbol:{};var Dr=Rr.iterator||"@@iterator";var kr=Rr.asyncIterator||"@@asyncIterator";var Cr=Rr.toStringTag||"@@toStringTag";function Fr(e,t,r,n){var i=t&&t.prototype instanceof Br?t:Br;var a=Object.create(i.prototype);var o=new an(n||[]);a._invoke=en(e,r,o);return a}function jr(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(n){return{type:"throw",arg:n}}}var Pr="suspendedStart";var _r="suspendedYield";var Mr="executing";var zr="completed";var Ur={};function Br(){}function Gr(){}function Xr(){}var Wr={};Wr[Dr]=function(){return this};var $r=Object.getPrototypeOf;var Vr=$r&&$r($r(sn([])));if(Vr&&Vr!==Sr&&Lr.call(Vr,Dr)){Wr=Vr}var Hr=Xr.prototype=Br.prototype=Object.create(Wr);Gr.prototype=Hr.constructor=Xr;Xr.constructor=Gr;Xr[Cr]=Gr.displayName="GeneratorFunction";function Jr(e){["next","throw","return"].forEach((function(t){e[t]=function(e){return this._invoke(t,e)}}))}function Yr(e){var t=typeof e==="function"&&e.constructor;return t?t===Gr||(t.displayName||t.name)==="GeneratorFunction":false}function qr(e){if(Object.setPrototypeOf){Object.setPrototypeOf(e,Xr)}else{e.__proto__=Xr;if(!(Cr in e)){e[Cr]="GeneratorFunction"}}e.prototype=Object.create(Hr);return e}function Qr(e){return{__await:e}}function Kr(e,t){function r(n,i,a,o){var s=jr(e[n],e,i);if(s.type==="throw"){o(s.arg)}else{var l=s.arg;var c=l.value;if(c&&typeof c==="object"&&Lr.call(c,"__await")){return t.resolve(c.__await).then((function(e){r("next",e,a,o)}),(function(e){r("throw",e,a,o)}))}return t.resolve(c).then((function(e){l.value=e;a(l)}),(function(e){return r("throw",e,a,o)}))}}var n;function i(e,i){function a(){return new t((function(t,n){r(e,i,t,n)}))}return n=n?n.then(a,a):a()}this._invoke=i}Jr(Kr.prototype);Kr.prototype[kr]=function(){return this};function Zr(e,t,r,n,i){if(i===void 0)i=Promise;var a=new Kr(Fr(e,t,r,n),i);return Yr(t)?a:a.next().then((function(e){return e.done?e.value:a.next()}))}function en(e,t,r){var n=Pr;return function i(a,o){if(n===Mr){throw new Error("Generator is already running")}if(n===zr){if(a==="throw"){throw o}return ln()}r.method=a;r.arg=o;while(true){var s=r.delegate;if(s){var l=tn(s,r);if(l){if(l===Ur)continue;return l}}if(r.method==="next"){r.sent=r._sent=r.arg}else if(r.method==="throw"){if(n===Pr){n=zr;throw r.arg}r.dispatchException(r.arg)}else if(r.method==="return"){r.abrupt("return",r.arg)}n=Mr;var c=jr(e,t,r);if(c.type==="normal"){n=r.done?zr:_r;if(c.arg===Ur){continue}return{value:c.arg,done:r.done}}else if(c.type==="throw"){n=zr;r.method="throw";r.arg=c.arg}}}}function tn(e,t){var r=e.iterator[t.method];if(r===Tr){t.delegate=null;if(t.method==="throw"){if(e.iterator["return"]){t.method="return";t.arg=Tr;tn(e,t);if(t.method==="throw"){return Ur}}t.method="throw";t.arg=new TypeError("The iterator does not provide a 'throw' method")}return Ur}var n=jr(r,e.iterator,t.arg);if(n.type==="throw"){t.method="throw";t.arg=n.arg;t.delegate=null;return Ur}var i=n.arg;if(!i){t.method="throw";t.arg=new TypeError("iterator result is not an object");t.delegate=null;return Ur}if(i.done){t[e.resultName]=i.value;t.next=e.nextLoc;if(t.method!=="return"){t.method="next";t.arg=Tr}}else{return i}t.delegate=null;return Ur}Jr(Hr);Hr[Cr]="Generator";Hr[Dr]=function(){return this};Hr.toString=function(){return"[object Generator]"};function rn(e){var t={tryLoc:e[0]};if(1 in e){t.catchLoc=e[1]}if(2 in e){t.finallyLoc=e[2];t.afterLoc=e[3]}this.tryEntries.push(t)}function nn(e){var t=e.completion||{};t.type="normal";delete t.arg;e.completion=t}function an(e){this.tryEntries=[{tryLoc:"root"}];e.forEach(rn,this);this.reset(true)}function on(e){var t=[];for(var r in e){t.push(r)}t.reverse();return function r(){while(t.length){var n=t.pop();if(n in e){r.value=n;r.done=false;return r}}r.done=true;return r}}function sn(e){if(e){var t=e[Dr];if(t){return t.call(e)}if(typeof e.next==="function"){return e}if(!isNaN(e.length)){var r=-1,n=function t(){while(++r=0;--i){var a=this.tryEntries[i];var o=a.completion;if(a.tryLoc==="root"){return n("end")}if(a.tryLoc<=this.prev){var s=Lr.call(a,"catchLoc");var l=Lr.call(a,"finallyLoc");if(s&&l){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&Lr.call(i,"finallyLoc")&&this.prev=0;--r){var n=this.tryEntries[r];if(n.finallyLoc===t){this.complete(n.completion,n.afterLoc);nn(n);return Ur}}},catch:function e(t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc===t){var i=n.completion;if(i.type==="throw"){var a=i.arg;nn(n)}return a}}throw new Error("illegal catch attempt")},delegateYield:function e(t,r,n){this.delegate={iterator:sn(t),resultName:r,nextLoc:n};if(this.method==="next"){this.arg=Tr}return Ur}};var cn={wrap:Fr,isGeneratorFunction:Yr,AsyncIterator:Kr,mark:qr,awrap:Qr,async:Zr,keys:on,values:sn};var un;var fn;function hn(){if(fn)return un;fn=1;un=function e(t){t.prototype[Symbol.iterator]=cn.mark((function e(){var t;return cn.wrap((function e(r){while(1)switch(r.prev=r.next){case 0:t=this.head;case 1:if(!t){r.next=7;break}r.next=4;return t.value;case 4:t=t.next;r.next=1;break;case 7:case"end":return r.stop()}}),e,this)}))};return un}var pn=dn;dn.Node=yn;dn.create=dn;function dn(e){var t=this;if(!(t instanceof dn)){t=new dn}t.tail=null;t.head=null;t.length=0;if(e&&typeof e.forEach==="function"){e.forEach((function(e){t.push(e)}))}else if(arguments.length>0){for(var r=0,n=arguments.length;r1){r=t}else if(this.head){n=this.head.next;r=this.head.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=0;n!==null;i++){r=e(r,n.value,i);n=n.next}return r};dn.prototype.reduceReverse=function(e,t){var r;var n=this.tail;if(arguments.length>1){r=t}else if(this.tail){n=this.tail.prev;r=this.tail.value}else{throw new TypeError("Reduce of empty list with no initial value")}for(var i=this.length-1;n!==null;i--){r=e(r,n.value,i);n=n.prev}return r};dn.prototype.toArray=function(){var e=new Array(this.length);for(var t=0,r=this.head;r!==null;t++){e[t]=r.value;r=r.next}return e};dn.prototype.toArrayReverse=function(){var e=new Array(this.length);for(var t=0,r=this.tail;r!==null;t++){e[t]=r.value;r=r.prev}return e};dn.prototype.slice=function(e,t){t=t||this.length;if(t<0){t+=this.length}e=e||0;if(e<0){e+=this.length}var r=new dn;if(tthis.length){t=this.length}for(var n=0,i=this.head;i!==null&&nthis.length){t=this.length}for(var n=this.length,i=this.tail;i!==null&&n>t;n--){i=i.prev}for(;i!==null&&n>e;n--,i=i.prev){r.push(i.value)}return r};dn.prototype.splice=function(e,t){if(e>this.length){e=this.length-1}if(e<0){e=this.length+e}for(var r=0,n=this.head;n!==null&&r1;class Dn{constructor(e){if(typeof e==="number")e={max:e};if(!e)e={};if(e.max&&(typeof e.max!=="number"||e.max<0))throw new TypeError("max must be a non-negative number");this[En]=e.max||Infinity;var t=e.length||Rn;this[xn]=typeof t!=="function"?Rn:t;this[On]=e.stale||false;if(e.maxAge&&typeof e.maxAge!=="number")throw new TypeError("maxAge must be a number");this[An]=e.maxAge||0;this[In]=e.dispose;this[Nn]=e.noDisposeOnSet||false;this[Tn]=e.updateAgeOnGet||false;this.reset()}set max(e){if(typeof e!=="number"||e<0)throw new TypeError("max must be a non-negative number");this[En]=e||Infinity;Fn(this)}get max(){return this[En]}set allowStale(e){this[On]=!!e}get allowStale(){return this[On]}set maxAge(e){if(typeof e!=="number")throw new TypeError("maxAge must be a non-negative number");this[An]=e;Fn(this)}get maxAge(){return this[An]}set lengthCalculator(e){if(typeof e!=="function")e=Rn;if(e!==this[xn]){this[xn]=e;this[wn]=0;this[Sn].forEach((e=>{e.length=this[xn](e.value,e.key);this[wn]+=e.length}))}Fn(this)}get lengthCalculator(){return this[xn]}get length(){return this[wn]}get itemCount(){return this[Sn].length}rforEach(e,t){t=t||this;for(var r=this[Sn].tail;r!==null;){var n=r.prev;_n(this,e,r,t);r=n}}forEach(e,t){t=t||this;for(var r=this[Sn].head;r!==null;){var n=r.next;_n(this,e,r,t);r=n}}keys(){return this[Sn].toArray().map((e=>e.key))}values(){return this[Sn].toArray().map((e=>e.value))}reset(){if(this[In]&&this[Sn]&&this[Sn].length){this[Sn].forEach((e=>this[In](e.key,e.value)))}this[Ln]=new Map;this[Sn]=new bn;this[wn]=0}dump(){return this[Sn].map((e=>Cn(this,e)?false:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)})).toArray().filter((e=>e))}dumpLru(){return this[Sn]}set(e,t,r){r=r||this[An];if(r&&typeof r!=="number")throw new TypeError("maxAge must be a number");var n=r?Date.now():0;var i=this[xn](t,e);if(this[Ln].has(e)){if(i>this[En]){jn(this,this[Ln].get(e));return false}var a=this[Ln].get(e);var o=a.value;if(this[In]){if(!this[Nn])this[In](e,o.value)}o.now=n;o.maxAge=r;o.value=t;this[wn]+=i-o.length;o.length=i;this.get(e);Fn(this);return true}var s=new Pn(e,t,i,n,r);if(s.length>this[En]){if(this[In])this[In](e,t);return false}this[wn]+=s.length;this[Sn].unshift(s);this[Ln].set(e,this[Sn].head);Fn(this);return true}has(e){if(!this[Ln].has(e))return false;var t=this[Ln].get(e).value;return!Cn(this,t)}get(e){return kn(this,e,true)}peek(e){return kn(this,e,false)}pop(){var e=this[Sn].tail;if(!e)return null;jn(this,e);return e.value}del(e){jn(this,this[Ln].get(e))}load(e){this.reset();var t=Date.now();for(var r=e.length-1;r>=0;r--){var n=e[r];var i=n.e||0;if(i===0)this.set(n.k,n.v);else{var a=i-t;if(a>0){this.set(n.k,n.v,a)}}}}prune(){this[Ln].forEach(((e,t)=>kn(this,t,false)))}}var kn=(e,t,r)=>{var n=e[Ln].get(t);if(n){var i=n.value;if(Cn(e,i)){jn(e,n);if(!e[On])return undefined}else{if(r){if(e[Tn])n.value.now=Date.now();e[Sn].unshiftNode(n)}}return i.value}};var Cn=(e,t)=>{if(!t||!t.maxAge&&!e[An])return false;var r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[An]&&r>e[An]};var Fn=e=>{if(e[wn]>e[En]){for(var t=e[Sn].tail;e[wn]>e[En]&&t!==null;){var r=t.prev;jn(e,t);t=r}}};var jn=(e,t)=>{if(t){var r=t.value;if(e[In])e[In](r.key,r.value);e[wn]-=r.length;e[Ln].delete(r.key);e[Sn].removeNode(t)}};class Pn{constructor(e,t,r,n,i){this.key=e;this.value=t;this.length=r;this.now=n;this.maxAge=i||0}}var _n=(e,t,r,n)=>{var i=r.value;if(Cn(e,i)){jn(e,r);if(!e[On])i=undefined}if(i)t.call(n,i.value,i.key,e)};var Mn=Dn;var zn=["includePrerelease","loose","rtl"];var Un=e=>!e?{}:typeof e!=="object"?{loose:true}:zn.filter((t=>e[t])).reduce(((e,t)=>{e[t]=true;return e}),{});var Bn=Un;var Gn={};var Xn={get exports(){return Gn},set exports(e){Gn=e}};var Wn="2.0.0";var $n=256;var Vn=Number.MAX_SAFE_INTEGER||9007199254740991;var Hn=16;var Jn={SEMVER_SPEC_VERSION:Wn,MAX_LENGTH:$n,MAX_SAFE_INTEGER:Vn,MAX_SAFE_COMPONENT_LENGTH:Hn};var Yn=typeof Er==="object"&&Er.env&&Er.env.NODE_DEBUG&&/\bsemver\b/i.test(Er.env.NODE_DEBUG)?function(){for(var e=arguments.length,t=new Array(e),r=0;r{};var qn=Yn;(function(e,t){var r=Jn.MAX_SAFE_COMPONENT_LENGTH;var n=qn;t=e.exports={};var i=t.re=[];var a=t.src=[];var o=t.t={};var s=0;var l=(e,t,r)=>{var l=s++;n(e,l,t);o[e]=l;a[l]=t;i[l]=new RegExp(t,r?"g":undefined)};l("NUMERICIDENTIFIER","0|[1-9]\\d*");l("NUMERICIDENTIFIERLOOSE","[0-9]+");l("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-][a-zA-Z0-9-]*");l("MAINVERSION","(".concat(a[o.NUMERICIDENTIFIER],")\\.")+"(".concat(a[o.NUMERICIDENTIFIER],")\\.")+"(".concat(a[o.NUMERICIDENTIFIER],")"));l("MAINVERSIONLOOSE","(".concat(a[o.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(a[o.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(a[o.NUMERICIDENTIFIERLOOSE],")"));l("PRERELEASEIDENTIFIER","(?:".concat(a[o.NUMERICIDENTIFIER],"|").concat(a[o.NONNUMERICIDENTIFIER],")"));l("PRERELEASEIDENTIFIERLOOSE","(?:".concat(a[o.NUMERICIDENTIFIERLOOSE],"|").concat(a[o.NONNUMERICIDENTIFIER],")"));l("PRERELEASE","(?:-(".concat(a[o.PRERELEASEIDENTIFIER],"(?:\\.").concat(a[o.PRERELEASEIDENTIFIER],")*))"));l("PRERELEASELOOSE","(?:-?(".concat(a[o.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(a[o.PRERELEASEIDENTIFIERLOOSE],")*))"));l("BUILDIDENTIFIER","[0-9A-Za-z-]+");l("BUILD","(?:\\+(".concat(a[o.BUILDIDENTIFIER],"(?:\\.").concat(a[o.BUILDIDENTIFIER],")*))"));l("FULLPLAIN","v?".concat(a[o.MAINVERSION]).concat(a[o.PRERELEASE],"?").concat(a[o.BUILD],"?"));l("FULL","^".concat(a[o.FULLPLAIN],"$"));l("LOOSEPLAIN","[v=\\s]*".concat(a[o.MAINVERSIONLOOSE]).concat(a[o.PRERELEASELOOSE],"?").concat(a[o.BUILD],"?"));l("LOOSE","^".concat(a[o.LOOSEPLAIN],"$"));l("GTLT","((?:<|>)?=?)");l("XRANGEIDENTIFIERLOOSE","".concat(a[o.NUMERICIDENTIFIERLOOSE],"|x|X|\\*"));l("XRANGEIDENTIFIER","".concat(a[o.NUMERICIDENTIFIER],"|x|X|\\*"));l("XRANGEPLAIN","[v=\\s]*(".concat(a[o.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(a[o.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(a[o.XRANGEIDENTIFIER],")")+"(?:".concat(a[o.PRERELEASE],")?").concat(a[o.BUILD],"?")+")?)?");l("XRANGEPLAINLOOSE","[v=\\s]*(".concat(a[o.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(a[o.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(a[o.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(a[o.PRERELEASELOOSE],")?").concat(a[o.BUILD],"?")+")?)?");l("XRANGE","^".concat(a[o.GTLT],"\\s*").concat(a[o.XRANGEPLAIN],"$"));l("XRANGELOOSE","^".concat(a[o.GTLT],"\\s*").concat(a[o.XRANGEPLAINLOOSE],"$"));l("COERCE","".concat("(^|[^\\d])"+"(\\d{1,").concat(r,"})")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:\\.(\\d{1,".concat(r,"}))?")+"(?:$|[^\\d])");l("COERCERTL",a[o.COERCE],true);l("LONETILDE","(?:~>?)");l("TILDETRIM","(\\s*)".concat(a[o.LONETILDE],"\\s+"),true);t.tildeTrimReplace="$1~";l("TILDE","^".concat(a[o.LONETILDE]).concat(a[o.XRANGEPLAIN],"$"));l("TILDELOOSE","^".concat(a[o.LONETILDE]).concat(a[o.XRANGEPLAINLOOSE],"$"));l("LONECARET","(?:\\^)");l("CARETTRIM","(\\s*)".concat(a[o.LONECARET],"\\s+"),true);t.caretTrimReplace="$1^";l("CARET","^".concat(a[o.LONECARET]).concat(a[o.XRANGEPLAIN],"$"));l("CARETLOOSE","^".concat(a[o.LONECARET]).concat(a[o.XRANGEPLAINLOOSE],"$"));l("COMPARATORLOOSE","^".concat(a[o.GTLT],"\\s*(").concat(a[o.LOOSEPLAIN],")$|^$"));l("COMPARATOR","^".concat(a[o.GTLT],"\\s*(").concat(a[o.FULLPLAIN],")$|^$"));l("COMPARATORTRIM","(\\s*)".concat(a[o.GTLT],"\\s*(").concat(a[o.LOOSEPLAIN],"|").concat(a[o.XRANGEPLAIN],")"),true);t.comparatorTrimReplace="$1$2$3";l("HYPHENRANGE","^\\s*(".concat(a[o.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(a[o.XRANGEPLAIN],")")+"\\s*$");l("HYPHENRANGELOOSE","^\\s*(".concat(a[o.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(a[o.XRANGEPLAINLOOSE],")")+"\\s*$");l("STAR","(<|>)?=?\\s*\\*");l("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");l("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(Xn,Gn);var Qn=/^[0-9]+$/;var Kn=(e,t)=>{var r=Qn.test(e);var n=Qn.test(t);if(r&&n){e=+e;t=+t}return e===t?0:r&&!n?-1:n&&!r?1:eKn(t,e);var ei={compareIdentifiers:Kn,rcompareIdentifiers:Zn};var ti=qn;var ri=Jn.MAX_LENGTH,ni=Jn.MAX_SAFE_INTEGER;var ii=Gn.re,ai=Gn.t;var oi=Bn;var si=ei.compareIdentifiers;let li=class e{constructor(t,r){r=oi(r);if(t instanceof e){if(t.loose===!!r.loose&&t.includePrerelease===!!r.includePrerelease){return t}else{t=t.version}}else if(typeof t!=="string"){throw new TypeError("Invalid Version: ".concat(t))}if(t.length>ri){throw new TypeError("version is longer than ".concat(ri," characters"))}ti("SemVer",t,r);this.options=r;this.loose=!!r.loose;this.includePrerelease=!!r.includePrerelease;var n=t.trim().match(r.loose?ii[ai.LOOSE]:ii[ai.FULL]);if(!n){throw new TypeError("Invalid Version: ".concat(t))}this.raw=t;this.major=+n[1];this.minor=+n[2];this.patch=+n[3];if(this.major>ni||this.major<0){throw new TypeError("Invalid major version")}if(this.minor>ni||this.minor<0){throw new TypeError("Invalid minor version")}if(this.patch>ni||this.patch<0){throw new TypeError("Invalid patch version")}if(!n[4]){this.prerelease=[]}else{this.prerelease=n[4].split(".").map((e=>{if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0){if(typeof this.prerelease[r]==="number"){this.prerelease[r]++;r=-2}}if(r===-1){this.prerelease.push(0)}}if(t){if(si(this.prerelease[0],t)===0){if(isNaN(this.prerelease[1])){this.prerelease=[t,0]}}else{this.prerelease=[t,0]}}break;default:throw new Error("invalid increment argument: ".concat(e))}this.format();this.raw=this.version;return this}};var ci=li;var ui=ci;var fi=(e,t,r)=>new ui(e,r).compare(new ui(t,r));var hi=fi;var pi=hi;var di=(e,t,r)=>pi(e,t,r)===0;var vi=di;var gi=hi;var mi=(e,t,r)=>gi(e,t,r)!==0;var yi=mi;var bi=hi;var Ei=(e,t,r)=>bi(e,t,r)>0;var wi=Ei;var xi=hi;var Oi=(e,t,r)=>xi(e,t,r)>=0;var Ai=Oi;var Ii=hi;var Ni=(e,t,r)=>Ii(e,t,r)<0;var Si=Ni;var Li=hi;var Ti=(e,t,r)=>Li(e,t,r)<=0;var Ri=Ti;var Di=vi;var ki=yi;var Ci=wi;var Fi=Ai;var ji=Si;var Pi=Ri;var _i=(e,t,r,n)=>{switch(t){case"===":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e===r;case"!==":if(typeof e==="object"){e=e.version}if(typeof r==="object"){r=r.version}return e!==r;case"":case"=":case"==":return Di(e,r,n);case"!=":return ki(e,r,n);case">":return Ci(e,r,n);case">=":return Fi(e,r,n);case"<":return ji(e,r,n);case"<=":return Pi(e,r,n);default:throw new TypeError("Invalid operator: ".concat(t))}};var Mi=_i;var zi;var Ui;function Bi(){if(Ui)return zi;Ui=1;var e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(n,i){i=r(i);if(n instanceof t){if(n.loose===!!i.loose){return n}else{n=n.value}}o("comparator",n,i);this.options=i;this.loose=!!i.loose;this.parse(n);if(this.semver===e){this.value=""}else{this.value=this.operator+this.semver.version}o("comp",this)}parse(t){var r=this.options.loose?n[i.COMPARATORLOOSE]:n[i.COMPARATOR];var a=t.match(r);if(!a){throw new TypeError("Invalid comparator: ".concat(t))}this.operator=a[1]!==undefined?a[1]:"";if(this.operator==="="){this.operator=""}if(!a[2]){this.semver=e}else{this.semver=new s(a[2],this.options.loose)}}toString(){return this.value}test(t){o("Comparator.test",t,this.options.loose);if(this.semver===e||t===e){return true}if(typeof t==="string"){try{t=new s(t,this.options)}catch(Za){return false}}return a(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t)){throw new TypeError("a Comparator is required")}if(!r||typeof r!=="object"){r={loose:!!r,includePrerelease:false}}if(this.operator===""){if(this.value===""){return true}return new l(e.value,r).test(this.value)}else if(e.operator===""){if(e.value===""){return true}return new l(this.value,r).test(e.semver)}var n=(this.operator===">="||this.operator===">")&&(e.operator===">="||e.operator===">");var i=(this.operator==="<="||this.operator==="<")&&(e.operator==="<="||e.operator==="<");var o=this.semver.version===e.semver.version;var s=(this.operator===">="||this.operator==="<=")&&(e.operator===">="||e.operator==="<=");var c=a(this.semver,"<",e.semver,r)&&(this.operator===">="||this.operator===">")&&(e.operator==="<="||e.operator==="<");var u=a(this.semver,">",e.semver,r)&&(this.operator==="<="||this.operator==="<")&&(e.operator===">="||e.operator===">");return n||i||o&&s||c||u}}zi=t;var r=Bn;var n=Gn.re,i=Gn.t;var a=Mi;var o=qn;var s=ci;var l=Hi();return zi}function Gi(e,t){var r=typeof Symbol!=="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!r){if(Array.isArray(e)||(r=Xi(e))||t&&e&&typeof e.length==="number"){if(r)e=r;var n=0;var i=function e(){};return{s:i,n:function t(){if(n>=e.length)return{done:true};return{done:false,value:e[n++]}},e:function e(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=true,o=false,s;return{s:function t(){r=r.call(e)},n:function e(){var t=r.next();a=t.done;return t},e:function e(t){o=true;s=t},f:function e(){try{if(!a&&r.return!=null)r.return()}finally{if(o)throw s}}}}function Xi(e,t){if(!e)return;if(typeof e==="string")return Wi(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Wi(e,t)}function Wi(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);rthis.parseRange(e.trim()))).filter((e=>e.length));if(!this.set.length){throw new TypeError("Invalid SemVer Range: ".concat(t))}if(this.set.length>1){var a=this.set[0];this.set=this.set.filter((e=>!h(e[0])));if(this.set.length===0){this.set=[a]}else if(this.set.length>1){var o=Gi(this.set),s;try{for(o.s();!(s=o.n()).done;){var l=s.value;if(l.length===1&&p(l[0])){this.set=[l];break}}}catch(c){o.e(c)}finally{o.f()}}}this.format()}format(){this.range=this.set.map((e=>e.join(" ").trim())).join("||").trim();return this.range}toString(){return this.range}parseRange(e){e=e.trim();var t=Object.keys(this.options).join(",");var n="parseRange:".concat(t,":").concat(e);var o=r.get(n);if(o){return o}var p=this.options.loose;var d=p?s[l.HYPHENRANGELOOSE]:s[l.HYPHENRANGE];e=e.replace(d,I(this.options.includePrerelease));a("hyphen replace",e);e=e.replace(s[l.COMPARATORTRIM],c);a("comparator trim",e);e=e.replace(s[l.TILDETRIM],u);e=e.replace(s[l.CARETTRIM],f);e=e.split(/\s+/).join(" ");var g=e.split(" ").map((e=>v(e,this.options))).join(" ").split(/\s+/).map((e=>A(e,this.options)));if(p){g=g.filter((e=>{a("loose invalid filter",e,this.options);return!!e.match(s[l.COMPARATORLOOSE])}))}a("range list",g);var m=new Map;var y=g.map((e=>new i(e,this.options)));var b=Gi(y),E;try{for(b.s();!(E=b.n()).done;){var w=E.value;if(h(w)){return[w]}m.set(w.value,w)}}catch(O){b.e(O)}finally{b.f()}if(m.size>1&&m.has("")){m.delete("")}var x=[...m.values()];r.set(n,x);return x}intersects(t,r){if(!(t instanceof e)){throw new TypeError("a Range is required")}return this.set.some((e=>d(e,r)&&t.set.some((t=>d(t,r)&&e.every((e=>t.every((t=>e.intersects(t,r)))))))))}test(e){if(!e){return false}if(typeof e==="string"){try{e=new o(e,this.options)}catch(Za){return false}}for(var t=0;te.value==="<0.0.0-0";var p=e=>e.value==="";var d=(e,t)=>{var r=true;var n=e.slice();var i=n.pop();while(r&&n.length){r=n.every((e=>i.intersects(e,t)));i=n.pop()}return r};var v=(e,t)=>{a("comp",e,t);e=b(e,t);a("caret",e);e=m(e,t);a("tildes",e);e=w(e,t);a("xrange",e);e=O(e,t);a("stars",e);return e};var g=e=>!e||e.toLowerCase()==="x"||e==="*";var m=(e,t)=>e.trim().split(/\s+/).map((e=>y(e,t))).join(" ");var y=(e,t)=>{var r=t.loose?s[l.TILDELOOSE]:s[l.TILDE];return e.replace(r,((t,r,n,i,o)=>{a("tilde",e,t,r,n,i,o);var s;if(g(r)){s=""}else if(g(n)){s=">=".concat(r,".0.0 <").concat(+r+1,".0.0-0")}else if(g(i)){s=">=".concat(r,".").concat(n,".0 <").concat(r,".").concat(+n+1,".0-0")}else if(o){a("replaceTilde pr",o);s=">=".concat(r,".").concat(n,".").concat(i,"-").concat(o," <").concat(r,".").concat(+n+1,".0-0")}else{s=">=".concat(r,".").concat(n,".").concat(i," <").concat(r,".").concat(+n+1,".0-0")}a("tilde return",s);return s}))};var b=(e,t)=>e.trim().split(/\s+/).map((e=>E(e,t))).join(" ");var E=(e,t)=>{a("caret",e,t);var r=t.loose?s[l.CARETLOOSE]:s[l.CARET];var n=t.includePrerelease?"-0":"";return e.replace(r,((t,r,i,o,s)=>{a("caret",e,t,r,i,o,s);var l;if(g(r)){l=""}else if(g(i)){l=">=".concat(r,".0.0").concat(n," <").concat(+r+1,".0.0-0")}else if(g(o)){if(r==="0"){l=">=".concat(r,".").concat(i,".0").concat(n," <").concat(r,".").concat(+i+1,".0-0")}else{l=">=".concat(r,".").concat(i,".0").concat(n," <").concat(+r+1,".0.0-0")}}else if(s){a("replaceCaret pr",s);if(r==="0"){if(i==="0"){l=">=".concat(r,".").concat(i,".").concat(o,"-").concat(s," <").concat(r,".").concat(i,".").concat(+o+1,"-0")}else{l=">=".concat(r,".").concat(i,".").concat(o,"-").concat(s," <").concat(r,".").concat(+i+1,".0-0")}}else{l=">=".concat(r,".").concat(i,".").concat(o,"-").concat(s," <").concat(+r+1,".0.0-0")}}else{a("no pr");if(r==="0"){if(i==="0"){l=">=".concat(r,".").concat(i,".").concat(o).concat(n," <").concat(r,".").concat(i,".").concat(+o+1,"-0")}else{l=">=".concat(r,".").concat(i,".").concat(o).concat(n," <").concat(r,".").concat(+i+1,".0-0")}}else{l=">=".concat(r,".").concat(i,".").concat(o," <").concat(+r+1,".0.0-0")}}a("caret return",l);return l}))};var w=(e,t)=>{a("replaceXRanges",e,t);return e.split(/\s+/).map((e=>x(e,t))).join(" ")};var x=(e,t)=>{e=e.trim();var r=t.loose?s[l.XRANGELOOSE]:s[l.XRANGE];return e.replace(r,((r,n,i,o,s,l)=>{a("xRange",e,r,n,i,o,s,l);var c=g(i);var u=c||g(o);var f=u||g(s);var h=f;if(n==="="&&h){n=""}l=t.includePrerelease?"-0":"";if(c){if(n===">"||n==="<"){r="<0.0.0-0"}else{r="*"}}else if(n&&h){if(u){o=0}s=0;if(n===">"){n=">=";if(u){i=+i+1;o=0;s=0}else{o=+o+1;s=0}}else if(n==="<="){n="<";if(u){i=+i+1}else{o=+o+1}}if(n==="<"){l="-0"}r="".concat(n+i,".").concat(o,".").concat(s).concat(l)}else if(u){r=">=".concat(i,".0.0").concat(l," <").concat(+i+1,".0.0-0")}else if(f){r=">=".concat(i,".").concat(o,".0").concat(l," <").concat(i,".").concat(+o+1,".0-0")}a("xRange return",r);return r}))};var O=(e,t)=>{a("replaceStars",e,t);return e.trim().replace(s[l.STAR],"")};var A=(e,t)=>{a("replaceGTE0",e,t);return e.trim().replace(s[t.includePrerelease?l.GTE0PRE:l.GTE0],"")};var I=e=>(t,r,n,i,a,o,s,l,c,u,f,h,p)=>{if(g(n)){r=""}else if(g(i)){r=">=".concat(n,".0.0").concat(e?"-0":"")}else if(g(a)){r=">=".concat(n,".").concat(i,".0").concat(e?"-0":"")}else if(o){r=">=".concat(r)}else{r=">=".concat(r).concat(e?"-0":"")}if(g(c)){l=""}else if(g(u)){l="<".concat(+c+1,".0.0-0")}else if(g(f)){l="<".concat(c,".").concat(+u+1,".0-0")}else if(h){l="<=".concat(c,".").concat(u,".").concat(f,"-").concat(h)}else if(e){l="<".concat(c,".").concat(u,".").concat(+f+1,"-0")}else{l="<=".concat(l)}return"".concat(r," ").concat(l).trim()};var N=(e,t,r)=>{for(var n=0;n0){var s=e[o].semver;if(s.major===t.major&&s.minor===t.minor&&s.patch===t.patch){return true}}}return false}return true};return $i}var Ji=Hi();var Yi=(e,t,r)=>{try{t=new Ji(t,r)}catch(Za){return false}return t.test(e)};var qi=Yi;function Qi(e,t,r){var n=e.open(t);var i=1e4;var a=250;var o=new URL(t),s=o.origin;var l=~~(i/a);function c(t){if(t.source===n){l=0;e.removeEventListener("message",c,false)}}e.addEventListener("message",c,false);function u(){if(l<=0){return}n.postMessage(r,s);setTimeout(u,a);l-=1}setTimeout(u,a)}var Ki='.vega-embed {\n position: relative;\n display: inline-block;\n box-sizing: border-box;\n}\n.vega-embed.has-actions {\n padding-right: 38px;\n}\n.vega-embed details:not([open]) > :not(summary) {\n display: none !important;\n}\n.vega-embed summary {\n list-style: none;\n position: absolute;\n top: 0;\n right: 0;\n padding: 6px;\n z-index: 1000;\n background: white;\n box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);\n color: #1b1e23;\n border: 1px solid #aaa;\n border-radius: 999px;\n opacity: 0.2;\n transition: opacity 0.4s ease-in;\n cursor: pointer;\n line-height: 0px;\n}\n.vega-embed summary::-webkit-details-marker {\n display: none;\n}\n.vega-embed summary:active {\n box-shadow: #aaa 0px 0px 0px 1px inset;\n}\n.vega-embed summary svg {\n width: 14px;\n height: 14px;\n}\n.vega-embed details[open] summary {\n opacity: 0.7;\n}\n.vega-embed:hover summary, .vega-embed:focus-within summary {\n opacity: 1 !important;\n transition: opacity 0.2s ease;\n}\n.vega-embed .vega-actions {\n position: absolute;\n z-index: 1001;\n top: 35px;\n right: -9px;\n display: flex;\n flex-direction: column;\n padding-bottom: 8px;\n padding-top: 8px;\n border-radius: 4px;\n box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.2);\n border: 1px solid #d9d9d9;\n background: white;\n animation-duration: 0.15s;\n animation-name: scale-in;\n animation-timing-function: cubic-bezier(0.2, 0, 0.13, 1.5);\n text-align: left;\n}\n.vega-embed .vega-actions a {\n padding: 8px 16px;\n font-family: sans-serif;\n font-size: 14px;\n font-weight: 600;\n white-space: nowrap;\n color: #434a56;\n text-decoration: none;\n}\n.vega-embed .vega-actions a:hover, .vega-embed .vega-actions a:focus {\n background-color: #f7f7f9;\n color: black;\n}\n.vega-embed .vega-actions::before, .vega-embed .vega-actions::after {\n content: "";\n display: inline-block;\n position: absolute;\n}\n.vega-embed .vega-actions::before {\n left: auto;\n right: 14px;\n top: -16px;\n border: 8px solid rgba(0, 0, 0, 0);\n border-bottom-color: #d9d9d9;\n}\n.vega-embed .vega-actions::after {\n left: auto;\n right: 15px;\n top: -14px;\n border: 7px solid rgba(0, 0, 0, 0);\n border-bottom-color: #fff;\n}\n.vega-embed .chart-wrapper.fit-x {\n width: 100%;\n}\n.vega-embed .chart-wrapper.fit-y {\n height: 100%;\n}\n\n.vega-embed-wrapper {\n max-width: 100%;\n overflow: auto;\n padding-right: 14px;\n}\n\n@keyframes scale-in {\n from {\n opacity: 0;\n transform: scale(0.6);\n }\n to {\n opacity: 1;\n transform: scale(1);\n }\n}\n';if(!String.prototype.startsWith){String.prototype.startsWith=function(e,t){return this.substr(!t||t<0?0:+t,e.length)===e}}function Zi(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n=e.length)return{done:true};return{done:false,value:e[n++]}},e:function e(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a=true,o=false,s;return{s:function t(){r=r.call(e)},n:function e(){var t=r.next();a=t.done;return t},e:function e(t){o=true;s=t},f:function e(){try{if(!a&&r.return!=null)r.return()}finally{if(o)throw s}}}}function Ia(e,t){if(!e)return;if(typeof e==="string")return Na(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor)r=e.constructor.name;if(r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Na(e,t)}function Na(e,t){if(t==null||t>e.length)t=e.length;for(var r=0,n=new Array(t);re,"vega-lite":(e,t)=>Da.compile(e,{config:t}).spec};var Ma='\n\n \n \n \n';var za="chart-wrapper";function Ua(e){return typeof e==="function"}function Ba(e,t,r,n){var i="".concat(t,'
    ');var a="
    ".concat(r,"");var o=window.open("");o.document.write(i+e+a);o.document.title="".concat(ja[n]," JSON Source")}function Ga(e,t){if(e.$schema){var r=oe(e.$schema);if(t&&t!==r.library){var n;console.warn("The given visualization spec is written in ".concat(ja[r.library],", but mode argument sets ").concat((n=ja[t])!==null&&n!==void 0?n:t,"."))}var i=r.library;if(!qi(Pa[i],"^".concat(r.version.slice(1)))){console.warn("The input spec uses ".concat(ja[i]," ").concat(r.version,", but the current version of ").concat(ja[i]," is v").concat(Pa[i],"."))}return i}if("mark"in e||"encoding"in e||"layer"in e||"hconcat"in e||"vconcat"in e||"facet"in e||"repeat"in e){return"vega-lite"}if("marks"in e||"signals"in e||"scales"in e||"axes"in e){return"vega"}return t!==null&&t!==void 0?t:"vega"}function Xa(e){return!!(e&&"load"in e)}function Wa(e){return Xa(e)?e:Ra.loader(e)}function $a(e){var t,r;var n=(t=(r=e.usermeta)===null||r===void 0?void 0:r.embedOptions)!==null&&t!==void 0?t:{};if((0,W.isString)(n.defaultStyle)){n.defaultStyle=false}return n}function Va(e,t){return Ha.apply(this,arguments)}function Ha(){Ha=Nr(cn.mark((function e(t,r){var n,i;var a,o,s,l,c,u,f,h,p,d=arguments;return cn.wrap((function e(v){while(1)switch(v.prev=v.next){case 0:a=d.length>2&&d[2]!==undefined?d[2]:{};if(!(0,W.isString)(r)){v.next=10;break}s=Wa(a.loader);v.t0=JSON;v.next=6;return s.load(r);case 6:v.t1=v.sent;o=v.t0.parse.call(v.t0,v.t1);v.next=11;break;case 10:o=r;case 11:l=$a(o);c=l.loader;if(!s||c){s=Wa((u=a.loader)!==null&&u!==void 0?u:c)}v.next=16;return Ja(l,s);case 16:f=v.sent;v.next=19;return Ja(a,s);case 19:h=v.sent;p=La(La({},Zi(h,f)),{},{config:(0,W.mergeConfig)((n=h.config)!==null&&n!==void 0?n:{},(i=f.config)!==null&&i!==void 0?i:{})});v.next=23;return Qa(t,o,p,s);case 23:return v.abrupt("return",v.sent);case 24:case"end":return v.stop()}}),e)})));return Ha.apply(this,arguments)}function Ja(e,t){return Ya.apply(this,arguments)}function Ya(){Ya=Nr(cn.mark((function e(t,r){var n;var i,a;return cn.wrap((function e(o){while(1)switch(o.prev=o.next){case 0:if(!(0,W.isString)(t.config)){o.next=8;break}o.t1=JSON;o.next=4;return r.load(t.config);case 4:o.t2=o.sent;o.t0=o.t1.parse.call(o.t1,o.t2);o.next=9;break;case 8:o.t0=(n=t.config)!==null&&n!==void 0?n:{};case 9:i=o.t0;if(!(0,W.isString)(t.patch)){o.next=18;break}o.t4=JSON;o.next=14;return r.load(t.patch);case 14:o.t5=o.sent;o.t3=o.t4.parse.call(o.t4,o.t5);o.next=19;break;case 18:o.t3=t.patch;case 19:a=o.t3;return o.abrupt("return",La(La(La({},t),a?{patch:a}:{}),i?{config:i}:{}));case 21:case"end":return o.stop()}}),e)})));return Ya.apply(this,arguments)}function qa(e){var t;var r=e.getRootNode?e.getRootNode():document;return r instanceof ShadowRoot?{root:r,rootContainer:r}:{root:document,rootContainer:(t=document.head)!==null&&t!==void 0?t:document.body}}function Qa(e,t){return Ka.apply(this,arguments)}function Ka(){Ka=Nr(cn.mark((function e(t,r){var n,i,o,s,l,c,u;var f,h,p,d,v,g,m,y,b,E,w,x,O,A,N,S,L,T,R,D,k,C,F,j,P,_,M,z,U,B,G,$,V,H,J,Y,q,Q,K,Z,ee,te,re,ie,ae=arguments;return cn.wrap((function e(se){while(1)switch(se.prev=se.next){case 0:ie=function e(){if(G){document.removeEventListener("click",G)}P.finalize()};f=ae.length>2&&ae[2]!==undefined?ae[2]:{};h=ae.length>3?ae[3]:undefined;p=f.theme?(0,W.mergeConfig)(a[f.theme],(n=f.config)!==null&&n!==void 0?n:{}):f.config;d=(0,W.isBoolean)(f.actions)?f.actions:Zi({},Ca,(i=f.actions)!==null&&i!==void 0?i:{});v=La(La({},Fa),f.i18n);g=(o=f.renderer)!==null&&o!==void 0?o:"canvas";m=(s=f.logLevel)!==null&&s!==void 0?s:Ra.Warn;y=(l=f.downloadFileName)!==null&&l!==void 0?l:"visualization";b=typeof t==="string"?document.querySelector(t):t;if(b){se.next=12;break}throw new Error("".concat(t," does not exist"));case 12:if(f.defaultStyle!==false){E="vega-embed-style";w=qa(b),x=w.root,O=w.rootContainer;if(!x.getElementById(E)){A=document.createElement("style");A.id=E;A.innerHTML=f.defaultStyle===undefined||f.defaultStyle===true?Ki.toString():f.defaultStyle;O.appendChild(A)}}N=Ga(r,f.mode);S=_a[N](r,p);if(N==="vega-lite"){if(S.$schema){L=oe(S.$schema);if(!qi(Pa.vega,"^".concat(L.version.slice(1)))){console.warn("The compiled spec uses Vega ".concat(L.version,", but current version is v").concat(Pa.vega,"."))}}}b.classList.add("vega-embed");if(d){b.classList.add("has-actions")}b.innerHTML="";T=b;if(d){R=document.createElement("div");R.classList.add(za);b.appendChild(R);T=R}D=f.patch;if(D){S=D instanceof Function?D(S):I(S,D,true,false).newDocument}if(f.formatLocale){Ra.formatLocale(f.formatLocale)}if(f.timeFormatLocale){Ra.timeFormatLocale(f.timeFormatLocale)}if(f.expressionFunctions){for(k in f.expressionFunctions){C=f.expressionFunctions[k];if("fn"in C){Ra.expressionFunction(k,C.fn,C["visitor"])}else if(C instanceof Function){Ra.expressionFunction(k,C)}}}F=f.ast;j=Ra.parse(S,N==="vega-lite"?{}:p,{ast:F});P=new(f.viewClass||Ra.View)(j,La({loader:h,logLevel:m,renderer:g},F?{expr:(c=(u=Ra.expressionInterpreter)!==null&&u!==void 0?u:f.expr)!==null&&c!==void 0?c:ne}:{}));P.addSignalListener("autosize",((e,t)=>{var r=t.type;if(r=="fit-x"){T.classList.add("fit-x");T.classList.remove("fit-y")}else if(r=="fit-y"){T.classList.remove("fit-x");T.classList.add("fit-y")}else if(r=="fit"){T.classList.add("fit-x","fit-y")}else{T.classList.remove("fit-x","fit-y")}}));if(f.tooltip!==false){_=Ua(f.tooltip)?f.tooltip:new mr(f.tooltip===true?{}:f.tooltip).call;P.tooltip(_)}M=f.hover;if(M===undefined){M=N==="vega"}if(M){z=typeof M==="boolean"?{}:M,U=z.hoverSet,B=z.updateSet;P.hover(U,B)}if(f){if(f.width!=null){P.width(f.width)}if(f.height!=null){P.height(f.height)}if(f.padding!=null){P.padding(f.padding)}}se.next=37;return P.initialize(T,f.bind).runAsync();case 37:if(!(d!==false)){se.next=63;break}$=b;if(f.defaultStyle!==false){V=document.createElement("details");V.title=v.CLICK_TO_VIEW_ACTIONS;b.append(V);$=V;H=document.createElement("summary");H.innerHTML=Ma;V.append(H);G=e=>{if(!V.contains(e.target)){V.removeAttribute("open")}};document.addEventListener("click",G)}J=document.createElement("div");$.append(J);J.classList.add("vega-actions");if(!(d===true||d.export!==false)){se.next=60;break}Y=Aa(["svg","png"]);se.prev=45;Q=cn.mark((function e(){var t,r,n,i;return cn.wrap((function e(a){while(1)switch(a.prev=a.next){case 0:t=q.value;if(d===true||d.export===true||d.export[t]){r=v["".concat(t.toUpperCase(),"_ACTION")];n=document.createElement("a");i=(0,W.isObject)(f.scaleFactor)?f.scaleFactor[t]:f.scaleFactor;n.text=r;n.href="#";n.target="_blank";n.download="".concat(y,".").concat(t);n.addEventListener("mousedown",function(){var e=Nr(cn.mark((function e(r){var n;return cn.wrap((function e(a){while(1)switch(a.prev=a.next){case 0:r.preventDefault();a.next=3;return P.toImageURL(t,i);case 3:n=a.sent;this.href=n;case 5:case"end":return a.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}());J.append(n)}case 2:case"end":return a.stop()}}),e)}));Y.s();case 48:if((q=Y.n()).done){se.next=52;break}return se.delegateYield(Q(),"t0",50);case 50:se.next=48;break;case 52:se.next=57;break;case 54:se.prev=54;se.t1=se["catch"](45);Y.e(se.t1);case 57:se.prev=57;Y.f();return se.finish(57);case 60:if(d===true||d.source!==false){K=document.createElement("a");K.text=v.SOURCE_ACTION;K.href="#";K.addEventListener("click",(function(e){var t,n;Ba(X()(r),(t=f.sourceHeader)!==null&&t!==void 0?t:"",(n=f.sourceFooter)!==null&&n!==void 0?n:"",N);e.preventDefault()}));J.append(K)}if(N==="vega-lite"&&(d===true||d.compiled!==false)){Z=document.createElement("a");Z.text=v.COMPILED_ACTION;Z.href="#";Z.addEventListener("click",(function(e){var t,r;Ba(X()(S),(t=f.sourceHeader)!==null&&t!==void 0?t:"",(r=f.sourceFooter)!==null&&r!==void 0?r:"","vega");e.preventDefault()}));J.append(Z)}if(d===true||d.editor!==false){te=(ee=f.editorUrl)!==null&&ee!==void 0?ee:"https://vega.github.io/editor/";re=document.createElement("a");re.text=v.EDITOR_ACTION;re.href="#";re.addEventListener("click",(function(e){Qi(window,te,{config:p,mode:N,renderer:g,spec:X()(r)});e.preventDefault()}));J.append(re)}case 63:return se.abrupt("return",{view:P,spec:r,vgSpec:S,finalize:ie,embedOptions:f});case 64:case"end":return se.stop()}}),e,null,[[45,54,57,60]])})));return Ka.apply(this,arguments)}},48823:(e,t,r)=>{"use strict";r.d(t,{$G:()=>_e,$m:()=>Ne,BB:()=>je,Ds:()=>oe,Dw:()=>z,EP:()=>f,FP:()=>Me,HD:()=>xe,He:()=>k,Hq:()=>b,IX:()=>q,J_:()=>ye,Jy:()=>Oe,Kj:()=>we,Kn:()=>N,N3:()=>Y,Oj:()=>a,QA:()=>B,Rg:()=>Pe,TS:()=>Se,TW:()=>be,We:()=>le,XW:()=>ve,Xr:()=>pe,ZE:()=>n,ZU:()=>Fe,Zw:()=>G,_k:()=>u,a9:()=>ae,ay:()=>W,bM:()=>d,bV:()=>H,cG:()=>O,dH:()=>$,dI:()=>ce,el:()=>i,fE:()=>L,fj:()=>D,hj:()=>Ee,iL:()=>T,id:()=>h,j2:()=>te,jj:()=>E,jn:()=>me,k:()=>m,kI:()=>x,kJ:()=>I,kX:()=>v,kg:()=>A,l$:()=>Q,l7:()=>se,m8:()=>De,mJ:()=>U,mK:()=>V,mS:()=>J,mf:()=>K,nr:()=>fe,qu:()=>ee,rx:()=>Le,sw:()=>ke,t7:()=>Ae,u5:()=>ge,uU:()=>w,vU:()=>c,vk:()=>Te,yP:()=>Re,yR:()=>p,yb:()=>g,yl:()=>de});function n(e,t,r){e.fields=t||[];e.fname=r;return e}function i(e){return e==null?null:e.fname}function a(e){return e==null?null:e.fields}function o(e){return e.length===1?s(e[0]):l(e)}const s=e=>function(t){return t[e]};const l=e=>{const t=e.length;return function(r){for(let n=0;no){u()}else{o=s+1}}else if(l==="["){if(s>o)u();i=o=s+1}else if(l==="]"){if(!i)c("Access path missing open bracket: "+e);if(i>0)u();i=0;o=s+1}}if(i)c("Access path missing closing bracket: "+e);if(n)c("Access path missing closing quote: "+e);if(s>o){s++;u()}return t}function f(e,t,r){const i=u(e);e=i.length===1?i[0]:e;return n((r&&r.get||o)(i),[e],t||e)}const h=f("id");const p=n((e=>e),[],"identity");const d=n((()=>0),[],"zero");const v=n((()=>1),[],"one");const g=n((()=>true),[],"true");const m=n((()=>false),[],"false");function y(e,t,r){const n=[t].concat([].slice.call(r));console[e].apply(console,n)}const b=0;const E=1;const w=2;const x=3;const O=4;function A(e,t){let r=arguments.length>2&&arguments[2]!==undefined?arguments[2]:y;let n=e||b;return{level(e){if(arguments.length){n=+e;return this}else{return n}},error(){if(n>=E)r(t||"error","ERROR",arguments);return this},warn(){if(n>=w)r(t||"warn","WARN",arguments);return this},info(){if(n>=x)r(t||"log","INFO",arguments);return this},debug(){if(n>=O)r(t||"log","DEBUG",arguments);return this}}}var I=Array.isArray;function N(e){return e===Object(e)}const S=e=>e!=="__proto__";function L(){for(var e=arguments.length,t=new Array(e),r=0;r{for(const r in t){if(r==="signals"){e.signals=R(e.signals,t.signals)}else{const n=r==="legend"?{layout:1}:r==="style"?true:null;T(e,r,t[r],n)}}return e}),{})}function T(e,t,r,n){if(!S(t))return;let i,a;if(N(r)&&!I(r)){a=N(e[t])?e[t]:e[t]={};for(i in r){if(n&&(n===true||n[i])){T(a,i,r[i])}else if(S(i)){a[i]=r[i]}}}else{e[t]=r}}function R(e,t){if(e==null)return t;const r={},n=[];function i(e){if(!r[e.name]){r[e.name]=1;n.push(e)}}t.forEach(i);e.forEach(i);return n}function D(e){return e[e.length-1]}function k(e){return e==null||e===""?null:+e}const C=e=>t=>e*Math.exp(t);const F=e=>t=>Math.log(e*t);const j=e=>t=>Math.sign(t)*Math.log1p(Math.abs(t/e));const P=e=>t=>Math.sign(t)*Math.expm1(Math.abs(t))*e;const _=e=>t=>t<0?-Math.pow(-t,e):Math.pow(t,e);function M(e,t,r,n){const i=r(e[0]),a=r(D(e)),o=(a-i)*t;return[n(i-o),n(a-o)]}function z(e,t){return M(e,t,k,p)}function U(e,t){var r=Math.sign(e[0]);return M(e,t,F(r),C(r))}function B(e,t,r){return M(e,t,_(r),_(1/r))}function G(e,t,r){return M(e,t,j(r),P(r))}function X(e,t,r,n,i){const a=n(e[0]),o=n(D(e)),s=t!=null?n(t):(a+o)/2;return[i(s+(a-s)*r),i(s+(o-s)*r)]}function W(e,t,r){return X(e,t,r,k,p)}function $(e,t,r){const n=Math.sign(e[0]);return X(e,t,r,F(n),C(n))}function V(e,t,r,n){return X(e,t,r,_(n),_(1/n))}function H(e,t,r,n){return X(e,t,r,j(n),P(n))}function J(e){return 1+~~(new Date(e).getMonth()/3)}function Y(e){return 1+~~(new Date(e).getUTCMonth()/3)}function q(e){return e!=null?I(e)?e:[e]:[]}function Q(e,t,r){let n=e[0],i=e[1],a;if(i=r-t?[t,r]:[n=Math.min(Math.max(n,t),r-a),n+a]}function K(e){return typeof e==="function"}const Z="descending";function ee(e,t,r){r=r||{};t=q(t)||[];const i=[],o=[],s={},l=r.comparator||re;q(e).forEach(((e,n)=>{if(e==null)return;i.push(t[n]===Z?-1:1);o.push(e=K(e)?e:f(e,null,r));(a(e)||[]).forEach((e=>s[e]=1))}));return o.length===0?null:n(l(o,i),Object.keys(s))}const te=(e,t)=>(et||t==null)&&e!=null?1:(t=t instanceof Date?+t:t,e=e instanceof Date?+e:e)!==e&&t===t?-1:t!==t&&e===e?1:0;const re=(e,t)=>e.length===1?ne(e[0],t[0]):ie(e,t,e.length);const ne=(e,t)=>function(r,n){return te(e(r),e(n))*t};const ie=(e,t,r)=>{t.push(0);return function(n,i){let a,o=0,s=-1;while(o===0&&++se}function oe(e,t){let r;return n=>{if(r)clearTimeout(r);r=setTimeout((()=>(t(n),r=null)),e)}}function se(e){for(let t,r,n=1,i=arguments.length;no)o=i}}}else{for(i=t(e[r]);ro)o=i}}}}return[a,o]}function ce(e,t){const r=e.length;let n=-1,i,a,o,s,l;if(t==null){while(++n=a){i=o=a;break}}if(n===r)return[-1,-1];s=l=n;while(++na){i=a;s=n}if(o=a){i=o=a;break}}if(n===r)return[-1,-1];s=l=n;while(++na){i=a;s=n}if(o{i.set(t,e[t])}));return i}function de(e,t,r,n,i,a){if(!r&&r!==0)return a;const o=+r;let s=e[0],l=D(e),c;if(la){o=i;i=a;a=o}r=r===undefined||r;n=n===undefined||n;return(r?i<=e:ie.replace(/\\(.)/g,"$1"))):q(e)}const i=e&&e.length,a=r&&r.get||o,s=e=>a(t?[e]:u(e));let l;if(!i){l=function(){return""}}else if(i===1){const t=s(e[0]);l=function(e){return""+t(e)}}else{const t=e.map(s);l=function(e){let r=""+t[0](e),n=0;while(++n{t={};r={};n=0};const a=(i,a)=>{if(++n>e){r=t;t={};n=1}return t[i]=a};i();return{clear:i,has:e=>fe(t,e)||fe(r,e),get:e=>fe(t,e)?t[e]:fe(r,e)?a(e,r[e]):undefined,set:(e,r)=>fe(t,e)?t[e]=r:a(e,r)}}function Se(e,t,r,n){const i=t.length,a=r.length;if(!a)return t;if(!i)return r;const o=n||new t.constructor(i+a);let s=0,l=0,c=0;for(;s0?r[l++]:t[s++]}for(;s=0)r+=e;return r}function Te(e,t,r,n){const i=r||" ",a=e+"",o=t-a.length;return o<=0?a:n==="left"?Le(i,o)+a:n==="center"?Le(i,~~(o/2))+a+Le(i,Math.ceil(o/2)):a+Le(i,o)}function Re(e){return e&&D(e)-e[0]||0}function De(e){return I(e)?"["+e.map(De)+"]":N(e)||xe(e)?JSON.stringify(e).replace("\u2028","\\u2028").replace("\u2029","\\u2029"):e}function ke(e){return e==null||e===""?null:!e||e==="false"||e==="0"?false:!!e}const Ce=e=>Ee(e)?e:ye(e)?e:Date.parse(e);function Fe(e,t){t=t||Ce;return e==null||e===""?null:t(e)}function je(e){return e==null||e===""?null:e+""}function Pe(e){const t={},r=e.length;for(let n=0;n{n.r(t);n.d(t,{factor:()=>a});var r=n(11176);const a=(0,r.Q)({start:[{regex:/#?!.*/,token:"comment"},{regex:/"""/,token:"string",next:"string3"},{regex:/(STRING:)(\s)/,token:["keyword",null],next:"string2"},{regex:/\S*?"/,token:"string",next:"string"},{regex:/(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\-?\d+.?\d*)(?=\s)/,token:"number"},{regex:/((?:GENERIC)|\:?\:)(\s+)(\S+)(\s+)(\()/,token:["keyword",null,"def",null,"bracket"],next:"stack"},{regex:/(M\:)(\s+)(\S+)(\s+)(\S+)/,token:["keyword",null,"def",null,"tag"]},{regex:/USING\:/,token:"keyword",next:"vocabulary"},{regex:/(USE\:|IN\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"tag"]},{regex:/(\S+\:)(\s+)(\S+)(?=\s|$)/,token:["keyword",null,"def"]},{regex:/(?:;|\\|t|f|if|loop|while|until|do|PRIVATE>|\.\*\?]+(?=\s|$)/,token:"builtin"},{regex:/[\)><]+\S+(?=\s|$)/,token:"builtin"},{regex:/(?:[\+\-\=\/\*<>])(?=\s|$)/,token:"keyword"},{regex:/\S+/,token:"variable"},{regex:/\s+|./,token:null}],vocabulary:[{regex:/;/,token:"keyword",next:"start"},{regex:/\S+/,token:"tag"},{regex:/\s+|./,token:null}],string:[{regex:/(?:[^\\]|\\.)*?"/,token:"string",next:"start"},{regex:/.*/,token:"string"}],string2:[{regex:/^;/,token:"keyword",next:"start"},{regex:/.*/,token:"string"}],string3:[{regex:/(?:[^\\]|\\.)*?"""/,token:"string",next:"start"},{regex:/.*/,token:"string"}],stack:[{regex:/\)/,token:"bracket",next:"start"},{regex:/--/,token:"bracket"},{regex:/\S+/,token:"meta"},{regex:/\s+|./,token:null}],languageData:{name:"factor",dontIndentStates:["start","vocabulary","string","string3","stack"],commentTokens:{line:"!"}}})},11176:(e,t,n)=>{n.d(t,{Q:()=>r});function r(e){a(e,"start");var t={},n=e.languageData||{},r=false;for(var i in e)if(i!=n&&e.hasOwnProperty(i)){var s=t[i]=[],u=e[i];for(var d=0;d2&&s.token&&typeof s.token!="string"){n.pending=[];for(var l=2;l-1)return null;var a=n.indent.length-1,i=e[n.state];e:for(;;){for(var s=0;s{l.r(t);l.d(t,{StyleModule:()=>r});const s="ͼ";const o=typeof Symbol=="undefined"?"__"+s:Symbol.for(s);const i=typeof Symbol=="undefined"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet");const n=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:{};class r{constructor(e,t){this.rules=[];let{finish:l}=t||{};function s(e){return/^@/.test(e)?[e]:e.split(/,\s*/)}function o(e,t,i,n){let r=[],h=/^@(\w+)\b/.exec(e[0]),u=h&&h[1]=="keyframes";if(h&&t==null)return i.push(e[0]+";");for(let l in t){let n=t[l];if(/&/.test(l)){o(l.split(/,\s*/).map((t=>e.map((e=>t.replace(/&/,e))))).reduce(((e,t)=>e.concat(t))),n,i)}else if(n&&typeof n=="object"){if(!h)throw new RangeError("The value of a property ("+l+") should be a primitive value.");o(s(l),n,r,u)}else if(n!=null){r.push(l.replace(/_.*/,"").replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()))+": "+n+";")}}if(r.length||u){i.push((l&&!h&&!n?e.map(l):e).join(", ")+" {"+r.join(" ")+"}")}}for(let i in e)o(s(i),e[i],this.rules)}getRules(){return this.rules.join("\n")}static newName(){let e=n[o]||1;n[o]=e+1;return s+e.toString(36)}static mount(e,t){(e[i]||new u(e)).mount(Array.isArray(t)?t:[t])}}let h=null;class u{constructor(e){if(!e.head&&e.adoptedStyleSheets&&typeof CSSStyleSheet!="undefined"){if(h){e.adoptedStyleSheets=[h.sheet].concat(e.adoptedStyleSheets);return e[i]=h}this.sheet=new CSSStyleSheet;e.adoptedStyleSheets=[this.sheet].concat(e.adoptedStyleSheets);h=this}else{this.styleTag=(e.ownerDocument||e).createElement("style");let t=e.head||e;t.insertBefore(this.styleTag,t.firstChild)}this.modules=[];e[i]=this}mount(e){let t=this.sheet;let l=0,s=0;for(let o=0;o-1){this.modules.splice(n,1);s--;n=-1}if(n==-1){this.modules.splice(s++,0,i);if(t)for(let e=0;e{r.r(t);r.d(t,{julia:()=>$});function n(e,t,r){if(typeof r==="undefined")r="";if(typeof t==="undefined"){t="\\b"}return new RegExp("^"+r+"(("+e.join(")|(")+"))"+t)}var a="\\\\[0-7]{1,3}";var i="\\\\x[A-Fa-f0-9]{1,2}";var u="\\\\[abefnrtv0%?'\"\\\\]";var s="([^\\u0027\\u005C\\uD800-\\uDFFF]|[\\uD800-\\uDFFF][\\uDC00-\\uDFFF])";var o=["[<>]:","[<>=]=","<<=?",">>>?=?","=>","--?>","<--[->]?","\\/\\/","\\.{2,3}","[\\.\\\\%*+\\-<>!\\/^|&]=?","\\?","\\$","~",":"];var f=n(["[<>]:","[<>=]=","[!=]==","<<=?",">>>?=?","=>?","--?>","<--[->]?","\\/\\/","[\\\\%*+\\-<>!\\/^|&\\u00F7\\u22BB]=?","\\?","\\$","~",":","\\u00D7","\\u2208","\\u2209","\\u220B","\\u220C","\\u2218","\\u221A","\\u221B","\\u2229","\\u222A","\\u2260","\\u2264","\\u2265","\\u2286","\\u2288","\\u228A","\\u22C5","\\b(in|isa)\\b(?!.?\\()"],"");var c=/^[;,()[\]{}]/;var l=/^[_A-Za-z\u00A1-\u2217\u2219-\uFFFF][\w\u00A1-\u2217\u2219-\uFFFF]*!*/;var m=n([a,i,u,s],"'");var p=["begin","function","type","struct","immutable","let","macro","for","while","quote","if","else","elseif","try","finally","catch","do"];var h=["end","else","elseif","catch","finally"];var d=["if","else","elseif","while","for","begin","let","end","do","try","catch","finally","return","break","continue","global","local","const","export","import","importall","using","function","where","macro","module","baremodule","struct","type","mutable","immutable","quote","typealias","abstract","primitive","bitstype"];var v=["true","false","nothing","NaN","Inf"];var F=n(p);var k=n(h);var b=n(d);var g=n(v);var y=/^@[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/;var _=/^:[_A-Za-z\u00A1-\uFFFF][\w\u00A1-\uFFFF]*!*/;var x=/^(`|([_A-Za-z\u00A1-\uFFFF]*"("")?))/;var A=n(o,"","@");var z=n(o,"",":");function E(e){return e.nestedArrays>0}function w(e){return e.nestedGenerators>0}function D(e,t){if(typeof t==="undefined"){t=0}if(e.scopes.length<=t){return null}return e.scopes[e.scopes.length-(t+1)]}function T(e,t){if(e.match("#=",false)){t.tokenize=P;return t.tokenize(e,t)}var r=t.leavingExpr;if(e.sol()){r=false}t.leavingExpr=false;if(r){if(e.match(/^'+/)){return"operator"}}if(e.match(/\.{4,}/)){return"error"}else if(e.match(/\.{1,3}/)){return"operator"}if(e.eatSpace()){return null}var n=e.peek();if(n==="#"){e.skipToEnd();return"comment"}if(n==="["){t.scopes.push("[");t.nestedArrays++}if(n==="("){t.scopes.push("(");t.nestedGenerators++}if(E(t)&&n==="]"){while(t.scopes.length&&D(t)!=="["){t.scopes.pop()}t.scopes.pop();t.nestedArrays--;t.leavingExpr=true}if(w(t)&&n===")"){while(t.scopes.length&&D(t)!=="("){t.scopes.pop()}t.scopes.pop();t.nestedGenerators--;t.leavingExpr=true}if(E(t)){if(t.lastToken=="end"&&e.match(":")){return"operator"}if(e.match("end")){return"number"}}var a;if(a=e.match(F,false)){t.scopes.push(a[0])}if(e.match(k,false)){t.scopes.pop()}if(e.match(/^::(?![:\$])/)){t.tokenize=C;return t.tokenize(e,t)}if(!r&&(e.match(_)||e.match(z))){return"builtin"}if(e.match(f)){return"operator"}if(e.match(/^\.?\d/,false)){var i=RegExp(/^im\b/);var u=false;if(e.match(/^0x\.[0-9a-f_]+p[\+\-]?[_\d]+/i)){u=true}if(e.match(/^0x[0-9a-f_]+/i)){u=true}if(e.match(/^0b[01_]+/i)){u=true}if(e.match(/^0o[0-7_]+/i)){u=true}if(e.match(/^(?:(?:\d[_\d]*)?\.(?!\.)(?:\d[_\d]*)?|\d[_\d]*\.(?!\.)(?:\d[_\d]*))?([Eef][\+\-]?[_\d]+)?/i)){u=true}if(e.match(/^\d[_\d]*(e[\+\-]?\d+)?/i)){u=true}if(u){e.match(i);t.leavingExpr=true;return"number"}}if(e.match("'")){t.tokenize=j;return t.tokenize(e,t)}if(e.match(x)){t.tokenize=B(e.current());return t.tokenize(e,t)}if(e.match(y)||e.match(A)){return"meta"}if(e.match(c)){return null}if(e.match(b)){return"keyword"}if(e.match(g)){return"builtin"}var s=t.isDefinition||t.lastToken=="function"||t.lastToken=="macro"||t.lastToken=="type"||t.lastToken=="struct"||t.lastToken=="immutable";if(e.match(l)){if(s){if(e.peek()==="."){t.isDefinition=true;return"variable"}t.isDefinition=false;return"def"}t.leavingExpr=true;return"variable"}e.next();return"error"}function C(e,t){e.match(/.*?(?=[,;{}()=\s]|$)/);if(e.match("{")){t.nestedParameters++}else if(e.match("}")&&t.nestedParameters>0){t.nestedParameters--}if(t.nestedParameters>0){e.match(/.*?(?={|})/)||e.next()}else if(t.nestedParameters==0){t.tokenize=T}return"builtin"}function P(e,t){if(e.match("#=")){t.nestedComments++}if(!e.match(/.*?(?=(#=|=#))/)){e.skipToEnd()}if(e.match("=#")){t.nestedComments--;if(t.nestedComments==0)t.tokenize=T}return"comment"}function j(e,t){var r=false,n;if(e.match(m)){r=true}else if(n=e.match(/\\u([a-f0-9]{1,4})(?=')/i)){var a=parseInt(n[1],16);if(a<=55295||a>=57344){r=true;e.next()}}else if(n=e.match(/\\U([A-Fa-f0-9]{5,8})(?=')/)){var a=parseInt(n[1],16);if(a<=1114111){r=true;e.next()}}if(r){t.leavingExpr=true;t.tokenize=T;return"string"}if(!e.match(/^[^']+(?=')/)){e.skipToEnd()}if(e.match("'")){t.tokenize=T}return"error"}function B(e){if(e.substr(-3)==='"""'){e='"""'}else if(e.substr(-1)==='"'){e='"'}function t(t,r){if(t.eat("\\")){t.next()}else if(t.match(e)){r.tokenize=T;r.leavingExpr=true;return"string"}else{t.eat(/[`"]/)}t.eatWhile(/[^\\`"]/);return"string"}return t}const $={name:"julia",startState:function(){return{tokenize:T,scopes:[],lastToken:null,leavingExpr:false,isDefinition:false,nestedArrays:0,nestedComments:0,nestedGenerators:0,nestedParameters:0,firstParenPos:-1}},token:function(e,t){var r=t.tokenize(e,t);var n=e.current();if(n&&r){t.lastToken=n}return r},indent:function(e,t,r){var n=0;if(t==="]"||t===")"||/^end\b/.test(t)||/^else/.test(t)||/^catch\b/.test(t)||/^elseif\b/.test(t)||/^finally/.test(t)){n=-1}return(e.scopes.length+n)*r.unit},languageData:{indentOnInput:/^\s*(end|else|catch|finally)\b$/,commentTokens:{line:"#",block:{open:"#=",close:"=#"}},closeBrackets:{brackets:["(","[","{",'"']},autocomplete:d.concat(v)}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/4155.5a8d6736017097028d78.js b/bootcamp/share/jupyter/lab/static/4155.5a8d6736017097028d78.js new file mode 100644 index 0000000..b2173dc --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/4155.5a8d6736017097028d78.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4155],{34155:e=>{var t=e.exports={};var r;var n;function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){r=setTimeout}else{r=i}}catch(e){r=i}try{if(typeof clearTimeout==="function"){n=clearTimeout}else{n=o}}catch(e){n=o}})();function u(e){if(r===setTimeout){return setTimeout(e,0)}if((r===i||!r)&&setTimeout){r=setTimeout;return setTimeout(e,0)}try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function c(e){if(n===clearTimeout){return clearTimeout(e)}if((n===o||!n)&&clearTimeout){n=clearTimeout;return clearTimeout(e)}try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}var a=[];var l=false;var s;var f=-1;function h(){if(!l||!s){return}l=false;if(s.length){a=s.concat(a)}else{f=-1}if(a.length){p()}}function p(){if(l){return}var e=u(h);l=true;var t=a.length;while(t){s=a;a=[];while(++f1){for(var r=1;r{r.r(t);r.d(t,{asciiArmor:()=>s});function a(e){var t=e.match(/^\s*\S/);e.skipToEnd();return t?"error":null}const s={name:"asciiarmor",token:function(e,t){var r;if(t.state=="top"){if(e.sol()&&(r=e.match(/^-----BEGIN (.*)?-----\s*$/))){t.state="headers";t.type=r[1];return"tag"}return a(e)}else if(t.state=="headers"){if(e.sol()&&e.match(/^\w+:/)){t.state="header";return"atom"}else{var s=a(e);if(s)t.state="body";return s}}else if(t.state=="header"){e.skipToEnd();t.state="headers";return"string"}else if(t.state=="body"){if(e.sol()&&(r=e.match(/^-----END (.*)?-----\s*$/))){if(r[1]!=t.type)return"error";t.state="end";return"tag"}else{if(e.eatWhile(/[A-Za-z0-9+\/=]/)){return null}else{e.next();return"error"}}}else if(t.state=="end"){return a(e)}},blankLine:function(e){if(e.state=="headers")e.state="body"},startState:function(){return{state:"top",type:null}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/4291.e5d8997127541f75fdaf.js b/bootcamp/share/jupyter/lab/static/4291.e5d8997127541f75fdaf.js new file mode 100644 index 0000000..37fdb05 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/4291.e5d8997127541f75fdaf.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4291],{34291:(O,Q,P)=>{P.r(Q);P.d(Q,{rust:()=>U,rustLanguage:()=>l});var $=P(11705);var X=P(6016);const i=1,e=2,a=3,h=4,r=5;const t=98,s=101,W=102,Y=114,S=69,x=48,o=46,Z=43,_=45,p=35,b=34,q=124,z=60,w=62;function g(O){return O>=48&&O<=57}function n(O){return g(O)||O==95}const R=new $.Jq(((O,Q)=>{if(g(O.next)){let Q=false;do{O.advance()}while(n(O.next));if(O.next==o){Q=true;O.advance();if(g(O.next)){do{O.advance()}while(n(O.next))}else if(O.next==o||O.next>127||/\w/.test(String.fromCharCode(O.next))){return}}if(O.next==s||O.next==S){Q=true;O.advance();if(O.next==Z||O.next==_)O.advance();if(!n(O.next))return;do{O.advance()}while(n(O.next))}if(O.next==W){let P=O.peek(1);if(P==x+3&&O.peek(2)==x+2||P==x+6&&O.peek(2)==x+4){O.advance(3);Q=true}else{return}}if(Q)O.acceptToken(r)}else if(O.next==t||O.next==Y){if(O.next==t)O.advance();if(O.next!=Y)return;O.advance();let Q=0;while(O.next==p){Q++;O.advance()}if(O.next!=b)return;O.advance();O:for(;;){if(O.next<0)return;let P=O.next==b;O.advance();if(P){for(let P=0;P{if(O.next==q)O.acceptToken(i,1)}));const T=new $.Jq((O=>{if(O.next==z)O.acceptToken(e,1);else if(O.next==w)O.acceptToken(a,1)}));const y=(0,X.styleTags)({"const macro_rules struct union enum type fn impl trait let static":X.tags.definitionKeyword,"mod use crate":X.tags.moduleKeyword,"pub unsafe async mut extern default move":X.tags.modifier,"for if else loop while match continue break return await":X.tags.controlKeyword,"as in ref":X.tags.operatorKeyword,"where _ crate super dyn":X.tags.keyword,self:X.tags.self,String:X.tags.string,Char:X.tags.character,RawString:X.tags.special(X.tags.string),Boolean:X.tags.bool,Identifier:X.tags.variableName,"CallExpression/Identifier":X.tags["function"](X.tags.variableName),BoundIdentifier:X.tags.definition(X.tags.variableName),"FunctionItem/BoundIdentifier":X.tags["function"](X.tags.definition(X.tags.variableName)),LoopLabel:X.tags.labelName,FieldIdentifier:X.tags.propertyName,"CallExpression/FieldExpression/FieldIdentifier":X.tags["function"](X.tags.propertyName),Lifetime:X.tags.special(X.tags.variableName),ScopeIdentifier:X.tags.namespace,TypeIdentifier:X.tags.typeName,"MacroInvocation/Identifier MacroInvocation/ScopedIdentifier/Identifier":X.tags.macroName,"MacroInvocation/TypeIdentifier MacroInvocation/ScopedIdentifier/TypeIdentifier":X.tags.macroName,'"!"':X.tags.macroName,UpdateOp:X.tags.updateOperator,LineComment:X.tags.lineComment,BlockComment:X.tags.blockComment,Integer:X.tags.integer,Float:X.tags.float,ArithOp:X.tags.arithmeticOperator,LogicOp:X.tags.logicOperator,BitOp:X.tags.bitwiseOperator,CompareOp:X.tags.compareOperator,"=":X.tags.definitionOperator,".. ... => ->":X.tags.punctuation,"( )":X.tags.paren,"[ ]":X.tags.squareBracket,"{ }":X.tags.brace,". DerefOp":X.tags.derefOperator,"&":X.tags.operator,", ; ::":X.tags.separator,"Attribute/...":X.tags.meta});const c={__proto__:null,self:28,super:32,crate:34,impl:46,true:72,false:72,pub:88,in:92,const:96,unsafe:104,async:108,move:110,if:114,let:118,ref:142,mut:144,_:198,else:200,match:204,as:248,return:252,await:262,break:270,continue:276,while:312,loop:316,for:320,macro_rules:327,mod:334,extern:342,struct:346,where:364,union:379,enum:382,type:390,default:395,fn:396,trait:412,use:420,static:438,dyn:476};const d=$.WQ.deserialize({version:14,states:"$2xQ]Q_OOP$wOWOOO&sQWO'#CnO)WQWO'#I`OOQP'#I`'#I`OOQQ'#Ie'#IeO)hO`O'#C}OOQR'#Ih'#IhO)sQWO'#IuOOQO'#Hk'#HkO)xQWO'#DpOOQR'#Iw'#IwO)xQWO'#DpO*ZQWO'#DpOOQO'#Iv'#IvO,SQWO'#J`O,ZQWO'#EiOOQV'#Hp'#HpO,cQYO'#F{OOQV'#El'#ElOOQV'#Em'#EmOOQV'#En'#EnO.YQ_O'#EkO0_Q_O'#EoO2gQWOOO4QQ_O'#FPO7hQWO'#J`OOQV'#FY'#FYO7{Q_O'#F^O:WQ_O'#FaOOQO'#F`'#F`O=sQ_O'#FcO=}Q_O'#FbO@VQWO'#FgOOQO'#J`'#J`OOQV'#Io'#IoOA]Q_O'#InOEPQWO'#InOOQV'#Fw'#FwOF[QWO'#JuOFcQWO'#F|OOQO'#IO'#IOOGrQWO'#GhOOQV'#Im'#ImOOQV'#Il'#IlOOQV'#Hj'#HjQGyQ_OOOKeQ_O'#DUOKlQYO'#CqOOQP'#I_'#I_OOQV'#Hg'#HgQ]Q_OOOLuQWO'#I`ONsQYO'#DXO!!eQWO'#JuO!!lQWO'#JuO!!vQ_O'#DfO!%]Q_O'#E}O!(sQ_O'#FWO!,ZQWO'#FZO!.^QXO'#FbO!.cQ_O'#EeO!!vQ_O'#FmO!0uQWO'#FoO!0zQWO'#FoO!1PQ^O'#FqO!1WQWO'#JuO!1_QWO'#FtO!1dQWO'#FxO!2WQWO'#JjO!2_QWO'#GOO!2_QWO'#G`O!2_QWO'#GbO!2_QWO'#GsOOQO'#Ju'#JuO!2dQWO'#GhO!2lQYO'#GpO!2_QWO'#GqO!3uQ^O'#GtO!3|QWO'#GuO!4hQWO'#HOP!4sOpO'#CcPOOO)CC})CC}OOOO'#Hi'#HiO!5OO`O,59iOOQV,59i,59iO!5ZQYO,5?aOOQO-E;i-E;iOOQO,5:[,5:[OOQP,59Z,59ZO)xQWO,5:[O)xQWO,5:[O!5oQWO,5?kO!5zQYO,5;qO!6PQYO,5;TO!6hQWO,59QO!7kQXO'#CnO!7xQXO'#I`O!9SQWO'#CoO,^QWO'#EiOOQV-E;n-E;nO!9eQWO'#FsOOQV,5WQWO,5:fOOQP,5:h,5:hO!1PQ^O,5:hO!1PQ^O,5:mO$>]QYO,5gQ_O'#HsO$>tQXO,5@QOOQV1G1i1G1iOOQP,5:e,5:eO$>|QXO,5]QYO,5=vO$LRQWO'#KRO$L^QWO,5=xOOQR,5=y,5=yO$LcQWO,5=zO$>]QYO,5>PO$>]QYO,5>POOQO1G.w1G.wO$>]QYO1G.wO$LnQYO,5=pO$LvQZO,59^OOQR,59^,59^O$>]QYO,5=wO% YQZO,5=}OOQR,5=},5=}O%#lQWO1G/_O!6PQYO1G/_O#FYQYO1G2vO%#qQWO1G2vO%$PQYO1G2vOOQV1G/i1G/iO%%YQWO,5:SO%%bQ_O1G/lO%*kQWO1G1^O%+RQWO1G1hOOQO1G1h1G1hO$>]QYO1G1hO%+iQ^O'#EgOOQV1G0k1G0kOOQV1G1s1G1sO!!vQ_O1G1sO!0zQWO1G1uO!1PQ^O1G1wO!.cQ_O1G1wOOQP,5:j,5:jO$>]QYO1G/^OOQO'#Cn'#CnO%+vQWO1G1zOOQV1G2O1G2OO%,OQWO'#CnO%,WQWO1G3TO%,]QWO1G3TO%,bQYO'#GQO%,sQWO'#G]O%-UQYO'#G_O%.hQYO'#GXOOQV1G2U1G2UO%/wQWO1G2UO%/|QWO1G2UO$ARQWO1G2UOOQV1G2f1G2fO%/wQWO1G2fO#CpQWO1G2fO%0UQWO'#GdOOQV1G2h1G2hO%0gQWO1G2hO#C{QWO1G2hO%0lQYO'#GSO$>]QYO1G2lO$AdQWO1G2lOOQV1G2y1G2yO%1xQWO1G2yO%3hQ^O'#GkO%3rQWO1G2nO#DfQWO1G2nO%4QQYO,5]QYO1G2vOOQV1G2w1G2wO%5tQWO1G2wO%5yQWO1G2wO#HXQWO1G2wOOQV1G2z1G2zO.YQ_O1G2zO$>]QYO1G2zO%6RQWO1G2zOOQO,5>l,5>lOOQO-E]QYO1G3UPOOO-E;d-E;dPOOO1G.i1G.iOOQO7+*g7+*gO%7VQYO'#IcO%7nQYO'#IfO%7yQYO'#IfO%8RQYO'#IfO%8^QYO,59eOOQO7+%b7+%bOOQP7+$a7+$aO%8cQ!fO'#JTOOQS'#EX'#EXOOQS'#EY'#EYOOQS'#EZ'#EZOOQS'#JT'#JTO%;UQWO'#EWOOQS'#E`'#E`OOQS'#JR'#JROOQS'#Hn'#HnO%;ZQ!fO,5:oOOQV,5:o,5:oOOQV'#JQ'#JQO%;bQ!fO,5:{OOQV,5:{,5:{O%;iQ!fO,5:|OOQV,5:|,5:|OOQV7+'e7+'eOOQV7+&Z7+&ZO%;pQ!fO,59TOOQO,59T,59TO%>YQWO7+$WO%>_QWO1G1yOOQV1G1y1G1yO!9SQWO1G.uO%>dQWO,5?}O%>nQ_O'#HqO%@|QWO,5?}OOQO1G1X1G1XOOQO7+&}7+&}O%AUQWO,5>^OOQO-E;p-E;pO%AcQWO7+'OO.YQ_O7+'OOOQO7+'O7+'OOOQO7+'P7+'PO%AjQWO7+'POOQO7+'W7+'WOOQP1G0V1G0VO%ArQXO1G/tO!M{QWO1G/tO%BsQXO1G0RO%CkQ^O'#HlO%C{QWO,5?eOOQP1G/u1G/uO%DWQWO1G/uO%D]QWO'#D_OOQO'#Dt'#DtO%DhQWO'#DtO%DmQWO'#I{OOQO'#Iz'#IzO%DuQWO,5:_O%DzQWO'#DtO%EPQWO'#DtOOQP1G0Q1G0QOOQP1G0S1G0SOOQP1G0X1G0XO%EXQXO1G1jO%EdQXO'#FeOOQP,5>_,5>_O!1PQ^O'#FeOOQP-E;q-E;qO$>]QYO1G1jOOQO7+'S7+'SOOQO,5]QYO7+$xOOQV7+'j7+'jO%FsQWO7+(oO%FxQWO7+(oOOQV7+'p7+'pO%/wQWO7+'pO%F}QWO7+'pO%GVQWO7+'pOOQV7+(Q7+(QO%/wQWO7+(QO#CpQWO7+(QOOQV7+(S7+(SO%0gQWO7+(SO#C{QWO7+(SO$>]QYO7+(WO%GeQWO7+(WO#HUQYO7+(cO%GjQWO7+(YO#DfQWO7+(YOOQV7+(c7+(cO%5tQWO7+(cO%5yQWO7+(cO#HXQWO7+(cOOQV7+(g7+(gO$>]QYO7+(pO%GxQWO7+(pO!1dQWO7+(pOOQV7+$v7+$vO%G}QWO7+$vO%HSQZO1G3ZO%JfQWO1G4jOOQO1G4j1G4jOOQR1G.}1G.}O#.WQWO1G.}O%JkQWO'#KQOOQO'#HW'#HWO%J|QWO'#HXO%KXQWO'#KQOOQO'#KP'#KPO%KaQWO,5=qO%KfQYO'#H[O%LrQWO'#GmO%L}QYO'#CtO%MXQWO'#GmO$>]QYO1G3ZOOQR1G3g1G3gO#7aQWO1G3ZO%M^QZO1G3bO$>]QYO1G3bO& mQYO'#IVO& }QWO,5@mOOQR1G3d1G3dOOQR1G3f1G3fO.YQ_O1G3fOOQR1G3k1G3kO&!VQYO7+$cO&!_QYO'#KOOOQQ'#J}'#J}O&!gQYO1G3[O&!lQZO1G3cOOQQ7+$y7+$yO&${QWO7+$yO&%QQWO7+(bOOQV7+(b7+(bO%5tQWO7+(bO$>]QYO7+(bO#FYQYO7+(bO&%YQWO7+(bO!.cQ_O1G/nO&%hQWO7+%WO$?[QWO7+'SO&%pQWO'#EhO&%{Q^O'#EhOOQU'#Ho'#HoO&%{Q^O,5;ROOQV,5;R,5;RO&&VQWO,5;RO&&[Q^O,5;RO!0zQWO7+'_OOQV7+'a7+'aO&&iQWO7+'cO&&qQWO7+'cO&&xQWO7+$xO&'TQ!fO7+'fO&'[Q!fO7+'fOOQV7+(o7+(oO!1dQWO7+(oO&'cQYO,5]QYO'#JrOOQO'#Jq'#JqO&*YQWO,5]QYO'#GUO&,SQYO'#JkOOQQ,5]QYO7+(YO&0SQYO'#HxO&0hQYO1G2WOOQQ1G2W1G2WOOQQ,5]QYO,5]QYO7+(fO&1dQWO'#IRO&1nQWO,5@hOOQO1G3Q1G3QOOQO1G2}1G2}OOQO1G3P1G3POOQO1G3R1G3ROOQO1G3S1G3SOOQO1G3O1G3OO&1vQWO7+(pO$>]QYO,59fO&2RQ^O'#ISO&2xQYO,5?QOOQR1G/P1G/PO&3QQ!bO,5:pO&3VQ!fO,5:rOOQS-E;l-E;lOOQV1G0Z1G0ZOOQV1G0g1G0gOOQV1G0h1G0hO&3^QWO'#JTOOQO1G.o1G.oOOQV<]O&3qQWO,5>]OOQO-E;o-E;oOOQO<WOOQO-E;j-E;jOOQP7+%a7+%aO!1PQ^O,5:`O&5cQWO'#HmO&5wQWO,5?gOOQP1G/y1G/yOOQO,5:`,5:`O&6PQWO,5:`O%DzQWO,5:`O$>]QYO,5`,5>`OOQO-E;r-E;rOOQV7+'l7+'lO&6yQWO<]QYO<]QYO<]QYO<]QYO7+(uOOQO7+*U7+*UOOQR7+$i7+$iO&8cQWO,5@lOOQO'#Gm'#GmO&8kQWO'#GmO&8vQYO'#IUO&8cQWO,5@lOOQR1G3]1G3]O&:cQYO,5=vO&;rQYO,5=XO&;|QWO,5=XOOQO,5=X,5=XOOQR7+(u7+(uO&eQZO7+(|O&@tQWO,5>qOOQO-E]QYO<]QYO,5]QYO,5@^O&D^QYO'#H|O&EsQWO,5@^OOQO1G2e1G2eO%,nQWO,5]QYO,5PO&I]QYO,5@VOOQV<]QYO,5=WO&KuQWO,5@cO&K}QWO,5@cO&MvQ^O'#IPO&KuQWO,5@cOOQO1G2q1G2qO&NTQWO,5=WO&N]QWO<oO&NvQYO,5>dO' UQYO,5>dOOQQ,5>d,5>dOOQQ-E;v-E;vOOQQ7+'r7+'rO' aQYO1G2]O$>]QYO1G2^OOQV<m,5>mOOQO-EnOOQQ,5>n,5>nO'!fQYO,5>nOOQQ-EX,5>XOOQO-E;k-E;kO!1PQ^O1G/zOOQO1G/z1G/zO'%oQWO1G/zO'%tQXO1G1kO$>]QYO1G1kO'&PQWO7+'[OOQVANA`ANA`O'&ZQWOANA`O$>]QYOANA`O'&cQWOANA`OOQVAN>OAN>OO.YQ_OAN>OO'&qQWOANAuOOQVAN@vAN@vO'&vQWOAN@vOOQVANAWANAWOOQVANAYANAYOOQVANA^ANA^O'&{QWOANA^OOQVANAiANAiO%5tQWOANAiO%5yQWOANAiO''TQWOANA`OOQVANAvANAvO.YQ_OANAvO''cQWOANAvO$>]QYOANAvOOQR<pOOQO'#HY'#HYO''vQWO'#HZOOQO,5>p,5>pOOQO-E]QYO<o,5>oOOQQ-E]QYOANAhO'(bQWO1G1rO')UQ^O1G0nO.YQ_O1G0nO'*zQWO,5;UO'+RQWO1G0nP'+WQWO'#ERP&%{Q^O'#HpOOQV7+&X7+&XO'+cQWO7+&XO&&qQWOAN@iO'+hQWOAN>OO!5oQWO,5a,5>aO'+oQWOAN@lO'+tQWOAN@lOOQS-E;s-E;sOOQVAN@lAN@lO'+|QWOAN@lOOQVANAuANAuO',UQWO1G5vO',^QWO1G2dO$>]QYO1G2dO&'|QWO,5>gOOQO,5>g,5>gOOQO-E;y-E;yO',iQWO1G5xO',qQWO1G5xO&(nQYO,5>hO',|QWO,5>hO$>]QYO,5>hOOQO-E;z-E;zO'-XQWO'#JnOOQO1G2a1G2aOOQO,5>f,5>fOOQO-E;x-E;xO&'cQYO,5iOOQO,5>i,5>iOOQO-E;{-E;{OOQQ,5>c,5>cOOQQ-E;u-E;uO'.pQWO1G2sO'/QQWO1G2rO'/]QWO1G5}O'/eQ^O,5>kOOQO'#Go'#GoOOQO,5>k,5>kO'/lQWO,5>kOOQO-E;}-E;}O$>]QYO1G2rO'/zQYO7+'xO'0VQWOANAlOOQVANAlANAlO.YQ_OANAlO'0^QWOANAvOOQS7+%x7+%xO'0eQWO7+%xO'0pQ!fO7+%xO'0}QWO7+%fO!1PQ^O7+%fO'1YQXO7+'VOOQVG26zG26zO'1eQWOG26zO'1sQWOG26zO$>]QYOG26zO'1{QWOG23jOOQVG27aG27aOOQVG26bG26bOOQVG26xG26xOOQVG27TG27TO%5tQWOG27TO'2SQWOG27bOOQVG27bG27bO.YQ_OG27bO'2ZQWOG27bOOQO1G4[1G4[OOQO7+(_7+(_OOQRANA{ANA{OOQVG27SG27SO%5tQWOG27SO&0uQWOG27SO'2fQ^O7+&YO'4PQWO7+'^O'4sQ^O7+&YO.YQ_O7+&YP.YQ_O,5;SP'6PQWO,5;SP'6UQWO,5;SOOQV<]QYO1G4SO%,nQWO'#HyO'7UQWO,5@YO'7dQWO7+(VO.YQ_O7+(VOOQO1G4T1G4TOOQO1G4V1G4VO'7nQWO1G4VO'7|QWO7+(^OOQVG27WG27WO'8XQWOG27WOOQS<e,5>eOOQO-E;w-E;wO'?rQWO<wD_DpPDvHQPPPPPPK`P! P! _PPPPP!!VP!$oP!$oPP!&oP!(rP!(w!)n!*f!*f!*f!(w!+]P!(w!.Q!.TPP!.ZP!(w!(w!(w!(wP!(w!(wP!(w!(w!.y!/dP!/dJ}J}J}PPPP!/d!.y!/sPP!$oP!0^!0a!0g!1h!1t!3t!3t!5r!7t!1t!1t!9p!;_!=O!>k!@U!Am!CS!De!1t!1tP!1tP!1t!1t!Et!1tP!Ge!1t!1tP!Ie!1tP!1t!7t!7t!1t!7t!1t!Kl!Mt!Mw!7t!1t!Mz!M}!M}!M}!NR!$oP!$oP!$oP! P! PP!N]! P! PP!Ni# }! PP! PP#!^##c##k#$Z#$_#$e#$e#$mP#&s#&s#&y#'o#'{! PP! PP#(]#(l! PP! PPP#(x#)W#)d#)|#)^! P! PP! P! P! PP#*S#*S#*Y#*`#*S#*S! P! PP#*m#*v#+Q#+Q#,x#.l#.x#.x#.{#.{5a5a5a5a5a5a5a5aP5a#/O#/U#/p#1{#2R#2b#6^#6d#6j#6|#7W#8w#9R#9b#9h#9n#9x#:S#:Y#:g#:m#:s#:}#;]#;g#=u#>R#>`#>f#>n#>u#?PPPPPPPP#?V#BaP#F^#Jx#Ls#Nr$&^P$&aPPP$)_$)h$)z$/U$1d$1m$3fP!(w$4`$7r$:i$>T$>^$>c$>fPPP$>i$A`$A|P$BaPPPPPPPPPP$BvP$EU$EX$E[$Eb$Ee$Eh$Ek$En$Et$HO$HR$HU$HX$H[$H_$Hb$He$Hh$Hk$Hn$Jt$Jw$Jz#*S$KW$K^$Ka$Kd$Kh$Kl$Ko$KrQ!tPT'V!s'Wi!SOlm!P!T$T$W$y%b)U*f/gQ'i#QR,n'l(OSOY[bfgilmop!O!P!T!Y!Z![!_!`!c!p!q!|!}#Q#U#Z#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$`$a$e$g$h$q$r$y%X%_%b&U&Y&[&b&u&z&|'P'a'l'n'o'}(W(Y(b(d(e(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n+z,q,s,z-R-T-g-m-t.}/^/b/d/g0e0g0m0}1P1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f:gS(z$v-oQ*p&eQ*t&hQ-k(yQ-y)ZW0Z+Q0Y4Z7UR4Y0[&w!RObfgilmop!O!P!T!Y!Z![!_!`!c!p#Q#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r$y%_%b&U&Y&[&b&u'l'}(W(Y(b(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n,s,z-T-g-m-t.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f#r]Ofgilmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9hb#[b#Q$y'l(b)S)U*Z-t!h$bo!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m$b%k!Q!n$O$u%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g!W:y!Y!_!`*i*l/^3h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fR:|%n$_%u!Q!n$O$u%o%p%q&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g$e%l!Q!n$O$u%n%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g'hZOY[fgilmop!O!P!T!Y!Z![!_!`!c!p!|!}#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$`$a$e$g$h$q$r%_%b%i%j&U&Y&[&b&u'a'}(W(Y(d(e(f(j(o(p(r(|)i)p)q*f*i*k*l+Z+n,s,z-R-T-g-m.i.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:`:a:e:f:g:t:u:x$^%l!Q!n$O$u%n%o%p%q%y%{&P&p&r(q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gQ&j!hQ&k!iQ&l!jQ&m!kQ&s!oQ)[%QQ)]%RQ)^%SQ)_%TQ)b%WQ+`&oS,R']1ZQ.W)`S/r*u4TR4n0s+yTOY[bfgilmop!O!P!Q!T!Y!Z![!_!`!c!n!p!q!|!}#Q#U#Z#e#o#p#q#r#s#t#u#v#w#x#y#z#}$O$T$W$`$a$e$g$h$q$r$u$y%X%_%b%i%j%n%o%p%q%y%{&P&U&Y&[&b&o&p&r&u&z&|'P']'a'l'n'o'}(W(Y(b(d(e(f(j(o(p(q(r(|)S)U)i)p)q)s)x)y*O*P*R*V*Z*[*^*e*f*i*k*l*n*w*x+U+V+Z+h+n+o+z+},q,s,z-R-T-g-i-m-t-v.U.`.i.p.t.x.y.}/Z/[/^/b/d/g/{/}0`0e0g0m0r0w0}1O1P1Y1Z1h1r1y1|2a2h2j2m2s2v3V3_3a3f3h3k3u3{3|4R4U4W4_4c4e4h4t4v4|5[5`5d5g5t5v6R6Y6]6a6p6v6x7S7^7c7g7m7r7{8W8X8g8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:`:a:e:f:g:t:u:xQ'[!xQ'h#PQ)l%gU)r%m*T*WR.f)kQ,T']R5P1Z#t%s!Q!n$O$u%p%q&P&p&r(q)x)y*O*R*V*[*^*e*n*w+V+h+o+}-i-v.U.`.t.x.y/Z/[/{/}0`0r0w1O1Y1y2a2h2j2m2v3V3u3{3|4U4e4t5`5d5v6R6Y6p6v6x7c7r8gQ)x%oQ+_&oQ,U']n,^'b'c'd,c,f,h,l/m/n1_3n3q5T5U7kS.q)s2sQ/O*PQ/Q*SQ/q*uS0Q*x4RQ0a+U[0o+Z.j0g4h5y7^Q2v.pS4d0e2rQ4m0sQ5Q1ZQ6T3RQ6z4PQ7O4TQ7X4_R9Y8h&jVOfgilmop!O!P!T!Y!Z![!_!`!c!p#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r%_%b&U&Y&[&b&u']'}(W(Y(b(f(j(o(p(r(|)i*f*i*k*l+Z+n,s,z-T-g-m.}/^/b/d/g0e0g0m0}1Z1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fU&g!g%P%[o,^'b'c'd,c,f,h,l/m/n1_3n3q5T5U7k$nsOfgilm!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y'}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9z9{:O:P:Q:R:S:T:U:V:W:X:Y:eS$tp9xS&O!W#bS&Q!X#cQ&`!bQ*_&RQ*a&VS*d&[:fQ*h&^Q,T']Q-j(wQ/i*jQ0p+[S2f.X0qQ3]/_Q3^/`Q3g/hQ3i/kQ5P1ZU5b2R2g4lU7o5c5e5rQ8]6dS8u7p7qS9_8v8wR9i9`i{Ob!O!P!T$y%_%b)S)U)i-thxOb!O!P!T$y%_%b)S)U)i-tW/v*v/t3w6qQ/}*wW0[+Q0Y4Z7UQ3{/{Q6x3|R8g6v!h$do!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mQ&d!dQ&f!fQ&n!mW&x!q%X&|1PQ'S!rQ)X$}Q)Y%OQ)a%VU)d%Y'T'UQ*s&hS+s&z'PS-Y(k1sQ-u)WQ-x)ZS.a)e)fS0x+c/sQ1S+zQ1W+{S1v-_-`Q2k.bQ3s/pQ5]1xR5h2V${sOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f$zsOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fR3]/_V&T!Y!`*i!i$lo!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m!k$^o!c!p$e$g$h$q$r&U&b&u(b(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m!i$co!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m&e^Ofgilmop!O!P!T!Y!Z![!_!`!c!p#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r%_%b&U&Y&[&b&u'}(W(Y(f(j(o(p(r(|)i*f*i*k*l+Z+n,s,z-T-g-m.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fR(l$fQ-[(kR5Y1sQ(S#|S({$v-oS-Z(k1sQ-l(yW/u*v/t3w6qS1w-_-`Q3v/vR5^1xQ'e#Or,e'b'c'd'j'p)u,c,f,h,l/m/n1_3n3q5U6fR,o'mk,a'b'c'd,c,f,h,l/m/n1_3n3q5UQ'f#Or,e'b'c'd'j'p)u,c,f,h,l/m/n1_3n3q5U6fR,p'mR*g&]X/c*f/d/g3f!}aOb!O!P!T#z$v$y%_%b'}(y)S)U)i)s*f*v*w+Q+Z,s-o-t.j/b/d/g/t/{0Y0g1h2s3f3w3|4Z4h5y6a6q6v7U7^Q3`/aQ6_3bQ8Y6`R9V8Z${rOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f#nfOfglmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h!T9u!Y!_!`*i*l/^3h9u9v9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:e:f#rfOfgilmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h!X9u!Y!_!`*i*l/^3h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f$srOfglmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:e:f#U#oh#d$P$Q$V$s%^&W&X'q't'u'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9b}:P&S&]/k3[6d:[:]:c:d:h:j:k:l:m:n:o:p:q:r:v:w:{#W#ph#d$P$Q$V$s%^&W&X'q'r't'u'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9b!P:Q&S&]/k3[6d:[:]:c:d:h:i:j:k:l:m:n:o:p:q:r:v:w:{#S#qh#d$P$Q$V$s%^&W&X'q'u'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9b{:R&S&]/k3[6d:[:]:c:d:h:k:l:m:n:o:p:q:r:v:w:{#Q#rh#d$P$Q$V$s%^&W&X'q'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9by:S&S&]/k3[6d:[:]:c:d:h:l:m:n:o:p:q:r:v:w:{#O#sh#d$P$Q$V$s%^&W&X'q'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9bw:T&S&]/k3[6d:[:]:c:d:h:m:n:o:p:q:r:v:w:{!|#th#d$P$Q$V$s%^&W&X'q'x'y'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9bu:U&S&]/k3[6d:[:]:c:d:h:n:o:p:q:r:v:w:{!x#vh#d$P$Q$V$s%^&W&X'q'z'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9bq:W&S&]/k3[6d:[:]:c:d:h:p:q:r:v:w:{!v#wh#d$P$Q$V$s%^&W&X'q'{'|(O(U([(`*b*c,r,w,y-n0z1i1l1}3P4w5V5a6^6e7R7e7h7s7y8j8q8{9[9bo:X&S&]/k3[6d:[:]:c:d:h:q:r:v:w:{$]#{h#`#d$P$Q$V$s%^&S&W&X&]'q'r's't'u'v'w'x'y'z'{'|(O(U([(`*b*c,r,w,y-n/k0z1i1l1}3P3[4w5V5a6^6d6e7R7e7h7s7y8j8q8{9[9b:[:]:c:d:h:i:j:k:l:m:n:o:p:q:r:v:w:{${jOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f$v!aOfgilmp!O!P!T!Y!Z!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fQ&Y![Q&Z!]R:e9{#rpOfgilmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9hQ&[!^!W9x!Y!_!`*i*l/^3h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fR:f:zR$moR-f(rR$wqT(}$v-oQ/f*fS3d/d/gR6c3fQ3m/mQ3p/nQ6i3nR6l3qQ$zwQ)V${Q*q&fQ+f&qQ+i&sQ-w)YW.Z)b+j+k+lS/X*]+gW2b.W.[.].^U3W/Y/]0yU5o2c2d2eS6W3X3ZS7w5p5qS8Q6V6XQ8y7xS8}8R8SR9c9O^|O!O!P!T%_%b)iX)R$y)S)U-tQ&r!nQ*^&PQ*|&jQ+P&kQ+T&lQ+W&mQ+]&nQ+l&sQ-})[Q.Q)]Q.T)^Q.V)_Q.Y)aQ.^)bQ2S-uQ2e.WR4U0VU+a&o*u4TR4o0sQ+Y&mQ+k&sS.])b+l^0v+_+`/q/r4m4n7OS2d.W.^S4Q0R0SR5q2eS0R*x4RQ0a+UR7X4_U+d&o*u4TR4p0sQ*z&jQ+O&kQ+S&lQ+g&qQ+j&sS-{)[*|S.P)]+PS.S)^+TU.[)b+k+lQ/Y*]Q0X*{Q0q+[Q2X-|Q2Y-}Q2].QQ2_.TU2c.W.].^Q2g.XS3Z/]0yS5c2R4lQ5j2ZS5p2d2eQ6X3XS7q5e5rQ7x5qQ8R6VQ8v7pQ9O8SR9`8wQ0T*xR6|4RQ*y&jQ*}&kU-z)[*z*|U.O)]+O+PS2W-{-}S2[.P.QQ4X0ZQ5i2YQ5k2]R7T4YQ/w*vQ3t/tQ6r3wR8d6qQ*{&jS-|)[*|Q2Z-}Q4X0ZR7T4YQ+R&lU.R)^+S+TS2^.S.TR5l2_Q0]+QQ4V0YQ7V4ZR8l7UQ+[&nS.X)a+]S2R-u.YR5e2SQ0i+ZQ4f0gQ7`4hR8m7^Q.m)sQ0i+ZQ2p.jQ4f0gQ5|2sQ7`4hQ7}5yR8m7^Q0i+ZR4f0gX'O!q%X&|1PX&{!q%X&|1PW'O!q%X&|1PS+u&z'PR1U+z_|O!O!P!T%_%b)iQ%a!PS)h%_%bR.d)i$^%u!Q!n$O$u%o%p%q&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gQ*U%yR*X%{$c%n!Q!n$O$u%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gW)t%m%x*T*WQ.e)jR2{.vR.m)sR5|2sQ'W!sR,O'WQ!TOQ$TlQ$WmQ%b!P[%|!T$T$W%b)U/gQ)U$yR/g*f$b%i!Q!n$O$u%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g[)n%i)p.i:`:t:xQ)p%jQ.i)qQ:`%nQ:t:aR:x:uQ!vUR'Y!vS!OO!TU%]!O%_)iQ%_!PR)i%b#rYOfgilmp!O!P!T!Z![#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i+n,s,z-m.}0}1h1|3_3a3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9hh!yY!|#U$`'a'n(d,q-R9s9|:gQ!|[b#Ub#Q$y'l(b)S)U*Z-t!h$`o!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mQ'a!}Q'n#ZQ(d$aQ,q'oQ-R(e!W9s!Y!_!`*i*l/^3h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fQ9|9tR:g9}Q-U(gR1p-UQ1t-[R5Z1tQ,c'bQ,f'cQ,h'dW1`,c,f,h5UR5U1_Q/d*fS3c/d3fR3f/gfbO!O!P!T$y%_%b)S)U)i-tp#Wb'}(y.j/b/t/{0Y0g1h5y6a6q6v7U7^Q'}#zS(y$v-oQ.j)sW/b*f/d/g3fQ/t*vQ/{*wQ0Y+QQ0g+ZQ1h,sQ5y2sQ6q3wQ6v3|Q7U4ZR7^4hQ,t(OQ1g,rT1j,t1gS(X$Q([Q(^$VU,x(X(^,}R,}(`Q(s$mR-h(sQ-p)OR2P-pQ3n/mQ3q/nT6j3n3qQ)S$yS-r)S-tR-t)UQ4`0aR7Y4``0t+^+_+`+a+d/q/r7OR4q0tQ8i6zR9Z8iQ4S0TR6}4SQ3x/wQ6n3tT6s3x6nQ3}/|Q6t3zU6y3}6t8eR8e6uQ4[0]Q7Q4VT7W4[7QhzOb!O!P!T$y%_%b)S)U)i-tQ$|xW%Zz$|%f)v$b%f!Q!n$O$u%o%p%q%y%{&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gR)v%nS4i0i0nS7]4f4gT7b4i7]W&z!q%X&|1PS+r&z+zR+z'PQ1Q+wR4z1QU1[,S,T,UR5R1[S3S/Q7OR6U3SQ2t.mQ5x2pT5}2t5xQ.z)zR3O.z^_O!O!P!T%_%b)iY#Xb$y)S)U-t$l#_fgilmp!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W&Y&['}(W(Y(|*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f!h$io!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mS'j#Q'lQ-P(bR/V*Z&v!RObfgilmop!O!P!T!Y!Z![!_!`!c!p#Q#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r$y%_%b&U&Y&[&b&u'l'}(W(Y(b(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n,s,z-T-g-m-t.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f[!{Y[#U#Z9s9tW&{!q%X&|1P['`!|!}'n'o9|9}S(c$`$aS+t&z'PU,X'a,q:gS-Q(d(eQ1T+zR1n-RS%t!Q&oQ&q!nQ(V$OQ(w$uS)w%o.pQ)z%pQ)}%qS*]&P&rQ+e&pQ,S']Q-d(qQ.l)sU.w)x)y2vS/O*O*PQ/P*RQ/T*VQ/W*[Q/]*^Q/`*eQ/l*nQ/|*wS0S*x4RQ0a+UQ0c+VQ0y+hQ0{+oQ1X+}Q1{-iQ2T-vQ2`.UQ2i.`Q2z.tQ2|.xQ2}.yQ3X/ZQ3Y/[S3z/{/}Q4^0`Q4l0rQ4s0wQ4x1OQ4}1YQ5O1ZQ5_1yQ5n2aQ5r2hQ5u2jQ5w2mQ5{2sQ6V3VQ6o3uQ6u3{Q6w3|Q7P4UQ7X4_Q7[4eQ7d4tQ7n5`Q7p5dQ7|5vQ8P6RQ8S6YQ8c6pS8f6v6xQ8o7cQ8w7rR9X8g$^%m!Q!n$O$u%o%p%q&P&o&p&r'](q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gQ)j%nQ*T%yR*W%{$y%h!Q!n$O$u%i%j%n%o%p%q%y%{&P&o&p&r'](q)p)q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.i.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g:`:a:t:u:x'pWOY[bfgilmop!O!P!T!Y!Z![!_!`!c!p!|!}#Q#U#Z#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$`$a$e$g$h$q$r$y%_%b&U&Y&[&b&u'a'l'n'o'}(W(Y(b(d(e(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n,q,s,z-R-T-g-m-t.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f:g$x%g!Q!n$O$u%i%j%n%o%p%q%y%{&P&o&p&r'](q)p)q)s)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.i.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8g:`:a:t:u:x_&y!q%X&z&|'P+z1PR,V']$zrOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f!j$]o!c!p$e$g$h$q$r&U&b&u(b(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mQ,T']R5P1Z_}O!O!P!T%_%b)i^|O!O!P!T%_%b)iQ#YbX)R$y)S)U-tbhO!O!T3_6]8W8X9U9hS#`f9uQ#dgQ$PiQ$QlQ$VmQ$spW%^!P%_%b)iU&S!Y!`*iQ&W!ZQ&X![Q&]!_Q'q#eQ'r#oS's#p:QQ't#qQ'u#rQ'v#sQ'w#tQ'x#uQ'y#vQ'z#wQ'{#xQ'|#yQ(O#zQ(U#}Q([$TQ(`$WQ*b&YQ*c&[Q,r'}Q,w(WQ,y(YQ-n(|Q/k*lQ0z+nQ1i,sQ1l,zQ1}-mQ3P.}Q3[/^Q4w0}Q5V1hQ5a1|Q6^3aQ6d3hQ6e3kQ7R4WQ7e4vQ7h4|Q7s5gQ7y5tQ8j7SQ8q7gQ8{7{Q9[8kQ9b8|Q:[9wQ:]9xQ:c9zQ:d9{Q:h:OQ:i:PQ:j:RQ:k:SQ:l:TQ:m:UQ:n:VQ:o:WQ:p:XQ:q:YQ:r:ZQ:v:eQ:w:fR:{9v^tO!O!P!T%_%b)i$`#afgilmp!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W&Y&['}(W(Y(|*i*l+n,s,z-m.}/^0}1h1|3a3h3k4W4v4|5g5t7S7g7{8k8|9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fQ6[3_Q8V6]Q9R8WQ9T8XQ9g9UR9m9hQ&V!YQ&^!`R/h*iQ$joQ&a!cQ&t!pU(g$e$g(jS(n$h0eQ(u$qQ(v$rQ*`&UQ*m&bQ+p&uQ-S(fS-b(o4cQ-c(pQ-e(rW/a*f/d/g3fQ/j*kW0f+Z0g4h7^Q1o-TQ1z-gQ3b/bQ4k0mQ5X1rQ7l5[Q8Z6aR8t7m!h$_o!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mR-P(b'qXOY[bfgilmop!O!P!T!Y!Z![!_!`!c!p!|!}#Q#U#Z#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$`$a$e$g$h$q$r$y%_%b&U&Y&[&b&u'a'l'n'o'}(W(Y(b(d(e(f(j(o(p(r(|)S)U)i*Z*f*i*k*l+Z+n,q,s,z-R-T-g-m-t.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9s9t9u9v9w9x9z9{9|9}:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f:g$zqOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f!i$fo!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7m&d^Ofgilmop!O!P!T!Y!Z![!_!`!c!p#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W$e$g$h$q$r%_%b&U&Y&[&b&u'}(W(Y(f(j(o(p(r(|)i*f*i*k*l+Z+n,s,z-T-g-m.}/^/b/d/g0e0g0m0}1h1r1|3_3a3f3h3k4W4c4h4v4|5[5g5t6]6a7S7^7g7m7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f[!zY[$`$a9s9t['_!|!}(d(e9|9}W)o%i%j:`:aU,W'a-R:gW.h)p)q:t:uT2o.i:xQ(i$eQ(m$gR-W(jV(h$e$g(jR-^(kR-](k$znOfgilmp!O!P!T!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W%_%b&Y&['}(W(Y(|)i*i*l+n,s,z-m.}/^0}1h1|3_3a3h3k4W4v4|5g5t6]7S7g7{8W8X8k8|9U9h9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:f!i$ko!c!p$e$g$h$q$r&U&b&u(f(j(o(p(r*f*k+Z-T-g/b/d/g0e0g0m1r3f4c4h5[6a7^7mS'g#O'pj,a'b'c'd,c,f,h,l/m/n1_3n3q5UQ,m'jQ.u)uR8_6f`,b'b'c'd,c,f,h1_5UQ1e,lX3l/m/n3n3qj,a'b'c'd,c,f,h,l/m/n1_3n3q5UQ7j5TR8s7k^uO!O!P!T%_%b)i$`#afgilmp!Y!Z![!_!`#e#o#p#q#r#s#t#u#v#w#x#y#z#}$T$W&Y&['}(W(Y(|*i*l+n,s,z-m.}/^0}1h1|3a3h3k4W4v4|5g5t7S7g7{8k8|9u9v9w9x9z9{:O:P:Q:R:S:T:U:V:W:X:Y:Z:e:fQ6Z3_Q8U6]Q9Q8WQ9S8XQ9f9UR9l9hR(Q#zR(P#zQ$SlR(]$TR$ooR$noR)Q$vR)P$vQ)O$vR2O-ohwOb!O!P!T$y%_%b)S)U)i-t$l!lz!Q!n$O$u$|%f%n%o%p%q%y%{&P&o&p&r'](q)s)v)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gR${xR0b+UR0W*xR0U*xR6{4PR/y*vR/x*vR0P*wR0O*wR0_+QR0^+Q%XyObxz!O!P!Q!T!n$O$u$y$|%_%b%f%n%o%p%q%y%{&P&o&p&r'](q)S)U)i)s)v)x)y*O*P*R*V*[*^*e*n*w*x+U+V+h+o+}-i-t-v.U.`.p.t.x.y/Z/[/{/}0`0r0w1O1Y1Z1y2a2h2j2m2s2v3V3u3{3|4R4U4_4e4t5`5d5v6R6Y6p6v6x7c7r8gR0k+ZR0j+ZQ'R!qQ)c%XQ+w&|R4y1PX'Q!q%X&|1PR+y&|R+x&|T/S*S4TT/R*S4TR.o)sR.n)sR){%p",nodeNames:"⚠ | < > RawString Float LineComment BlockComment SourceFile ] InnerAttribute ! [ MetaItem self Metavariable super crate Identifier ScopedIdentifier :: QualifiedScope AbstractType impl SelfType MetaType TypeIdentifier ScopedTypeIdentifier ScopeIdentifier TypeArgList TypeBinding = Lifetime String Escape Char Boolean Integer } { Block ; ConstItem Vis pub ( in ) const BoundIdentifier : UnsafeBlock unsafe AsyncBlock async move IfExpression if LetDeclaration let LiteralPattern ArithOp MetaPattern SelfPattern ScopedIdentifier TuplePattern ScopedTypeIdentifier , StructPattern FieldPatternList FieldPattern ref mut FieldIdentifier .. RefPattern SlicePattern CapturedPattern ReferencePattern & MutPattern RangePattern ... OrPattern MacroPattern ParenthesizedTokens TokenBinding Identifier TokenRepetition ArithOp BitOp LogicOp UpdateOp CompareOp -> => ArithOp BracketedTokens BracedTokens _ else MatchExpression match MatchBlock MatchArm Attribute Guard UnaryExpression ArithOp DerefOp LogicOp ReferenceExpression TryExpression BinaryExpression ArithOp ArithOp BitOp BitOp BitOp BitOp LogicOp LogicOp AssignmentExpression TypeCastExpression as ReturnExpression return RangeExpression CallExpression ArgList AwaitExpression await FieldExpression GenericFunction BreakExpression break LoopLabel ContinueExpression continue IndexExpression ArrayExpression TupleExpression MacroInvocation UnitExpression ClosureExpression ParamList Parameter Parameter ParenthesizedExpression StructExpression FieldInitializerList ShorthandFieldInitializer FieldInitializer BaseFieldInitializer MatchArm WhileExpression while LoopExpression loop ForExpression for MacroInvocation MacroDefinition macro_rules MacroRule EmptyStatement ModItem mod DeclarationList AttributeItem ForeignModItem extern StructItem struct TypeParamList ConstrainedTypeParameter TraitBounds HigherRankedTraitBound RemovedTraitBound OptionalTypeParameter ConstParameter WhereClause where LifetimeClause TypeBoundClause FieldDeclarationList FieldDeclaration OrderedFieldDeclarationList UnionItem union EnumItem enum EnumVariantList EnumVariant TypeItem type FunctionItem default fn ParamList Parameter SelfParameter VariadicParameter VariadicParameter ImplItem TraitItem trait AssociatedType LetDeclaration UseDeclaration use ScopedIdentifier UseAsClause ScopedIdentifier UseList ScopedUseList UseWildcard ExternCrateDeclaration StaticItem static ExpressionStatement ExpressionStatement GenericType FunctionType ForLifetimes ParamList VariadicParameter Parameter VariadicParameter Parameter ReferenceType PointerType TupleType UnitType ArrayType MacroInvocation EmptyType DynamicType dyn BoundedType",maxTerm:359,nodeProps:[["group",-42,4,5,14,15,16,17,18,19,33,35,36,37,40,51,53,56,101,107,111,112,113,122,123,125,127,128,130,132,133,134,137,139,140,141,142,143,144,148,149,155,157,159,"Expression",-16,22,24,25,26,27,222,223,230,231,232,233,234,235,236,237,239,"Type",-20,42,161,162,165,166,169,170,172,188,190,194,196,204,205,207,208,209,217,218,220,"Statement",-17,49,60,62,63,64,65,68,74,75,76,77,78,80,81,83,84,99,"Pattern"],["openedBy",9,"[",38,"{",47,"("],["closedBy",12,"]",39,"}",45,")"]],propSources:[y],skippedNodes:[0,6,7,240],repeatNodeCount:32,tokenData:"#?|_R!VOX$hXY1_YZ2ZZ]$h]^1_^p$hpq1_qr2srs4qst5Ztu6Vuv9lvw;jwx=nxy!!ayz!#]z{!$X{|!&R|}!'T}!O!(P!O!P!*Q!P!Q!-|!Q!R!6X!R![!7|![!]!Jw!]!^!Lu!^!_!Mq!_!`# x!`!a##y!a!b#&Q!b!c#&|!c!}#'x!}#O#)o#O#P#*k#P#Q#1b#Q#R#2^#R#S#'x#S#T$h#T#U#'x#U#V#3`#V#f#'x#f#g#6s#g#o#'x#o#p#y!X!Y$h!Y!Z!<}!Z#O$h#O#P%x#P#g$h#g#h!?y#h~$h_!;O_'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!S$h!S!T!;}!T!W$h!W!X!<}!X#O$h#O#P%x#P~$h_!Q]'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!S$h!S!T!<}!T#O$h#O#P%x#P~$h_!?Q]'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!U$h!U!V!<}!V#O$h#O#P%x#P~$h_!@Q]'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P#]$h#]#^!@y#^~$h_!AQ]'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P#n$h#n#o!Ay#o~$h_!BQ]'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P#X$h#X#Y!<}#Y~$h_!CQ_'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!R!DP!R!S!DP!S#O$h#O#P%x#P#R$h#R#S!DP#S~$h_!DYcuX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!R!DP!R!S!DP!S#O$h#O#P%x#P#R$h#R#S!DP#S#]$h#]#^!9_#^#i$h#i#j!9_#j~$h_!El^'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!Y!Fh!Y#O$h#O#P%x#P#R$h#R#S!Fh#S~$h_!FqbuX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!Y!Fh!Y#O$h#O#P%x#P#R$h#R#S!Fh#S#]$h#]#^!9_#^#i$h#i#j!9_#j~$h_!HQb'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q![!IY![!c$h!c!i!IY!i#O$h#O#P%x#P#R$h#R#S!IY#S#T$h#T#Z!IY#Z~$h_!IcfuX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q![!IY![!c$h!c!i!IY!i#O$h#O#P%x#P#R$h#R#S!IY#S#T$h#T#Z!IY#Z#]$h#]#^!9_#^#i$h#i#j!9_#j~$h_!KQ]!SX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q![$h![!]!Ky!]#O$h#O#P%x#P~$h_!LSZdX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P~$h_!MOZyX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P~$h_!Mz^#PX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!^$h!^!_!Nv!_!`3u!`#O$h#O#P%x#P~$h_# P]'yX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!_$h!_!`:n!`#O$h#O#P%x#P~$h_#!R^oX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!_$h!_!`3u!`!a#!}!a#O$h#O#P%x#P~$h_##WZ#RX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P~$h_#$S^#PX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!_$h!_!`3u!`!a#%O!a#O$h#O#P%x#P~$h_#%X]'zX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!_$h!_!`:n!`#O$h#O#P%x#P~$h_#&ZZ(RX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P~$hV#'VZ'pP'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P~$h_#(Th'_Q'OS!yW'TPOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q![#'x![!c$h!c!}#'x!}#O$h#O#P%x#P#R$h#R#S#'x#S#T$h#T#o#'x#o${$h${$|#'x$|4w$h4w5b#'x5b5i$h5i6S#'x6S~$h_#)xZ[X'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P~$hU#*pX'OSOz#+]z{#+s{!P#+]!P!Q#,X!Q#i#+]#i#j#,j#j#l#+]#l#m#.Y#m~#+]U#+dTrQ'OSOz%xz{&^{!P%x!P!Q'S!Q~%xU#+xTrQOz&pz{&^{!P&p!P!Q({!Q~&pU#,^SrQOz&p{!P&p!P!Q'c!Q~&pU#,o['OSOz%xz{&^{!P%x!P!Q'S!Q![#-e![!c%x!c!i#-e!i#T%x#T#Z#-e#Z#o%x#o#p#/r#p~%xU#-jY'OSOz%xz{&^{!P%x!P!Q'S!Q![#.Y![!c%x!c!i#.Y!i#T%x#T#Z#.Y#Z~%xU#._Y'OSOz%xz{&^{!P%x!P!Q'S!Q![#.}![!c%x!c!i#.}!i#T%x#T#Z#.}#Z~%xU#/SY'OSOz%xz{&^{!P%x!P!Q'S!Q![#+]![!c%x!c!i#+]!i#T%x#T#Z#+]#Z~%xU#/wY'OSOz%xz{&^{!P%x!P!Q'S!Q![#0g![!c%x!c!i#0g!i#T%x#T#Z#0g#Z~%xU#0l['OSOz%xz{&^{!P%x!P!Q'S!Q![#0g![!c%x!c!i#0g!i#T%x#T#Z#0g#Z#q%x#q#r#+]#r~%x_#1kZXX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P~$h_#2g]'{X'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!_$h!_!`:n!`#O$h#O#P%x#P~$h_#3kj'_Q'OS!yW'TPOY$hYZ%bZr$hrs#5]sw$hwx#5sxz$hz{)Q{!P$h!P!Q*p!Q![#'x![!c$h!c!}#'x!}#O$h#O#P%x#P#R$h#R#S#'x#S#T$h#T#o#'x#o${$h${$|#'x$|4w$h4w5b#'x5b5i$h5i6S#'x6S~$h]#5dT'OS'^XOz%xz{&^{!P%x!P!Q'S!Q~%x_#5z]'_Q'OSOY?dYZA`Zr?drsBdsw?dwx@dxz?dz{CO{!P?d!P!QDv!Q#O?d#O#PId#P~?d_#7Oi'_Q'OS!yW'TPOY$hYZ%bZr$hrs%xst#8mtz$hz{)Q{!P$h!P!Q*p!Q![#'x![!c$h!c!}#'x!}#O$h#O#P%x#P#R$h#R#S#'x#S#T$h#T#o#'x#o${$h${$|#'x$|4w$h4w5b#'x5b5i$h5i6S#'x6S~$hV#8tg'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q!c$h!c!}#:]!}#O$h#O#P%x#P#R$h#R#S#:]#S#T$h#T#o#:]#o${$h${$|#:]$|4w$h4w5b#:]5b5i$h5i6S#:]6S~$hV#:fh'_Q'OS'TPOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q![#:]![!c$h!c!}#:]!}#O$h#O#P%x#P#R$h#R#S#:]#S#T$h#T#o#:]#o${$h${$|#:]$|4w$h4w5b#:]5b5i$h5i6S#:]6S~$h_#U#q~$h_#>_Z'|X'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P~$h_#?ZZvX'_Q'OSOY$hYZ%bZr$hrs%xsz$hz{)Q{!P$h!P!Q*p!Q#O$h#O#P%x#P~$h",tokenizers:[V,T,R,0,1,2,3],topRules:{SourceFile:[0,8]},specialized:[{term:281,get:O=>c[O]||-1}],tokenPrec:15596});var f=P(24104);const l=f.LRLanguage.define({name:"rust",parser:d.configure({props:[f.indentNodeProp.add({IfExpression:(0,f.continuedIndent)({except:/^\s*({|else\b)/}),"String BlockComment":()=>null,AttributeItem:O=>O.continue(),"Statement MatchArm":(0,f.continuedIndent)()}),f.foldNodeProp.add((O=>{if(/(Block|edTokens|List)$/.test(O.name))return f.foldInside;if(O.name=="BlockComment")return O=>({from:O.from+2,to:O.to-2});return undefined}))]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:\{|\})$/,closeBrackets:{stringPrefixes:["b","r","br"]}}});function U(){return new f.LanguageSupport(l)}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/4405.43dab120fea32f30bbb9.js b/bootcamp/share/jupyter/lab/static/4405.43dab120fea32f30bbb9.js new file mode 100644 index 0000000..6552351 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/4405.43dab120fea32f30bbb9.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4405],{74405:(t,e,n)=>{n.r(e);n.d(e,{Annotation:()=>ft,AnnotationType:()=>ct,ChangeDesc:()=>A,ChangeSet:()=>M,CharCategory:()=>It,Compartment:()=>X,EditorSelection:()=>D,EditorState:()=>Mt,Facet:()=>j,Line:()=>u,MapMode:()=>E,Prec:()=>K,Range:()=>Ot,RangeSet:()=>Nt,RangeSetBuilder:()=>Dt,RangeValue:()=>Rt,SelectionRange:()=>B,StateEffect:()=>dt,StateEffectType:()=>ut,StateField:()=>U,Text:()=>i,Transaction:()=>gt,codePointAt:()=>S,codePointSize:()=>b,combineConfig:()=>Ct,countColumn:()=>Gt,findClusterBreak:()=>w,findColumn:()=>Ht,fromCodePoint:()=>I});class i{constructor(){}lineAt(t){if(t<0||t>this.length)throw new RangeError(`Invalid position ${t} in document of length ${this.length}`);return this.lineInner(t,false,1,0)}line(t){if(t<1||t>this.lines)throw new RangeError(`Invalid line number ${t} in ${this.lines}-line document`);return this.lineInner(t,true,1,0)}replace(t,e,n){let i=[];this.decompose(0,t,i,2);if(n.length)n.decompose(0,n.length,i,1|2);this.decompose(e,this.length,i,1);return r.from(i,this.length-(e-t)+n.length)}append(t){return this.replace(this.length,this.length,t)}slice(t,e=this.length){let n=[];this.decompose(t,e,n,0);return r.from(n,e-t)}eq(t){if(t==this)return true;if(t.length!=this.length||t.lines!=this.lines)return false;let e=this.scanIdentical(t,1),n=this.length-this.scanIdentical(t,-1);let i=new a(this),s=new a(t);for(let r=e,l=e;;){i.next(r);s.next(r);r=0;if(i.lineBreak!=s.lineBreak||i.done!=s.done||i.value!=s.value)return false;l+=i.value.length;if(i.done||l>=n)return true}}iter(t=1){return new a(this,t)}iterRange(t,e=this.length){return new f(this,t,e)}iterLines(t,e){let n;if(t==null){n=this.iter()}else{if(e==null)e=this.lines+1;let i=this.line(t).from;n=this.iterRange(i,Math.max(i,e==this.lines+1?this.length:e<=1?0:this.line(e-1).to))}return new c(n)}toString(){return this.sliceString(0)}toJSON(){let t=[];this.flatten(t);return t}static of(t){if(t.length==0)throw new RangeError("A document must have at least one line");if(t.length==1&&!t[0])return i.empty;return t.length<=32?new s(t):r.from(s.split(t,[]))}}class s extends i{constructor(t,e=l(t)){super();this.text=t;this.length=e}get lines(){return this.text.length}get children(){return null}lineInner(t,e,n,i){for(let s=0;;s++){let r=this.text[s],l=i+r.length;if((e?n:l)>=t)return new u(i,l,n,r);i=l+1;n++}}decompose(t,e,n,i){let r=t<=0&&e>=this.length?this:new s(o(this.text,t,e),Math.min(e,this.length)-Math.max(0,t));if(i&1){let t=n.pop();let e=h(r.text,t.text.slice(),0,r.length);if(e.length<=32){n.push(new s(e,t.length+r.length))}else{let t=e.length>>1;n.push(new s(e.slice(0,t)),new s(e.slice(t)))}}else{n.push(r)}}replace(t,e,n){if(!(n instanceof s))return super.replace(t,e,n);let i=h(this.text,h(n.text,o(this.text,0,t)),e);let l=this.length+n.length-(e-t);if(i.length<=32)return new s(i,l);return r.from(s.split(i,[]),l)}sliceString(t,e=this.length,n="\n"){let i="";for(let s=0,r=0;s<=e&&rt&&r)i+=n;if(ts)i+=l.slice(Math.max(0,t-s),e-s);s=h+1}return i}flatten(t){for(let e of this.text)t.push(e)}scanIdentical(){return 0}static split(t,e){let n=[],i=-1;for(let r of t){n.push(r);i+=r.length+1;if(n.length==32){e.push(new s(n,i));n=[];i=-1}}if(i>-1)e.push(new s(n,i));return e}}class r extends i{constructor(t,e){super();this.children=t;this.length=e;this.lines=0;for(let n of t)this.lines+=n.lines}lineInner(t,e,n,i){for(let s=0;;s++){let r=this.children[s],l=i+r.length,h=n+r.lines-1;if((e?h:l)>=t)return r.lineInner(t,e,n,i);i=l+1;n=h+1}}decompose(t,e,n,i){for(let s=0,r=0;r<=e&&s=r){let s=i&((r<=t?1:0)|(h>=e?2:0));if(r>=t&&h<=e&&!s)n.push(l);else l.decompose(t-r,e-r,n,s)}r=h+1}}replace(t,e,n){if(n.lines=s&&e<=h){let o=l.replace(t-s,e-s,n);let a=this.lines-l.lines+o.lines;if(o.lines
    >5-1&&o.lines>a>>5+1){let s=this.children.slice();s[i]=o;return new r(s,this.length-(e-t)+n.length)}return super.replace(s,h,o)}s=h+1}return super.replace(t,e,n)}sliceString(t,e=this.length,n="\n"){let i="";for(let s=0,r=0;st&&s)i+=n;if(tr)i+=l.sliceString(t-r,e-r,n);r=h+1}return i}flatten(t){for(let e of this.children)e.flatten(t)}scanIdentical(t,e){if(!(t instanceof r))return 0;let n=0;let[i,s,l,h]=e>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=e,s+=e){if(i==l||s==h)return n;let r=this.children[i],o=t.children[s];if(r!=o)return n+r.scanIdentical(o,e);n+=r.length+1}}static from(t,e=t.reduce(((t,e)=>t+e.length+1),-1)){let n=0;for(let s of t)n+=s.lines;if(n<32){let n=[];for(let e of t)e.flatten(n);return new s(n,e)}let i=Math.max(32,n>>5),l=i<<1,h=i>>1;let o=[],a=0,f=-1,c=[];function u(t){let e;if(t.lines>l&&t instanceof r){for(let e of t.children)u(e)}else if(t.lines>h&&(a>h||!a)){d();o.push(t)}else if(t instanceof s&&a&&(e=c[c.length-1])instanceof s&&t.lines+e.lines<=32){a+=t.lines;f+=t.length+1;c[c.length-1]=new s(e.text.concat(t.text),e.length+1+t.length)}else{if(a+t.lines>i)d();a+=t.lines;f+=t.length+1;c.push(t)}}function d(){if(a==0)return;o.push(c.length==1?c[0]:r.from(c,f));f=-1;a=c.length=0}for(let s of t)u(s);d();return o.length==1?o[0]:new r(o,e)}}i.empty=new s([""],0);function l(t){let e=-1;for(let n of t)e+=n.length+1;return e}function h(t,e,n=0,i=1e9){for(let s=0,r=0,l=true;r=n){if(o>i)h=h.slice(0,i-s);if(s0?1:(t instanceof s?t.text.length:t.children.length)<<1]}nextInner(t,e){this.done=this.lineBreak=false;for(;;){let n=this.nodes.length-1;let i=this.nodes[n],r=this.offsets[n],l=r>>1;let h=i instanceof s?i.text.length:i.children.length;if(l==(e>0?h:0)){if(n==0){this.done=true;this.value="";return this}if(e>0)this.offsets[n-1]++;this.nodes.pop();this.offsets.pop()}else if((r&1)==(e>0?0:1)){this.offsets[n]+=e;if(t==0){this.lineBreak=true;this.value="\n";return this}t--}else if(i instanceof s){let s=i.text[l+(e<0?-1:0)];this.offsets[n]+=e;if(s.length>Math.max(0,t)){this.value=t==0?s:e>0?s.slice(t):s.slice(0,s.length-t);return this}t-=s.length}else{let r=i.children[l+(e<0?-1:0)];if(t>r.length){t-=r.length;this.offsets[n]+=e}else{if(e<0)this.offsets[n]--;this.nodes.push(r);this.offsets.push(e>0?1:(r instanceof s?r.text.length:r.children.length)<<1)}}}}next(t=0){if(t<0){this.nextInner(-t,-this.dir);t=this.value.length}return this.nextInner(t,this.dir)}}class f{constructor(t,e,n){this.value="";this.done=false;this.cursor=new a(t,e>n?-1:1);this.pos=e>n?t.length:0;this.from=Math.min(e,n);this.to=Math.max(e,n)}nextInner(t,e){if(e<0?this.pos<=this.from:this.pos>=this.to){this.value="";this.done=true;return this}t+=Math.max(0,e<0?this.pos-this.to:this.from-this.pos);let n=e<0?this.pos-this.from:this.to-this.pos;if(t>n)t=n;n-=t;let{value:i}=this.cursor.next(t);this.pos+=(i.length+t)*e;this.value=i.length<=n?i:e<0?i.slice(i.length-n):i.slice(0,n);this.done=!this.value;return this}next(t=0){if(t<0)t=Math.max(t,this.from-this.pos);else if(t>0)t=Math.min(t,this.to-this.pos);return this.nextInner(t,this.cursor.dir)}get lineBreak(){return this.cursor.lineBreak&&this.value!=""}}class c{constructor(t){this.inner=t;this.afterBreak=true;this.value="";this.done=false}next(t=0){let{done:e,lineBreak:n,value:i}=this.inner.next(t);if(e){this.done=true;this.value=""}else if(n){if(this.afterBreak){this.value=""}else{this.afterBreak=true;this.next()}}else{this.value=i;this.afterBreak=false}return this}get lineBreak(){return false}}if(typeof Symbol!="undefined"){i.prototype[Symbol.iterator]=function(){return this.iter()};a.prototype[Symbol.iterator]=f.prototype[Symbol.iterator]=c.prototype[Symbol.iterator]=function(){return this}}class u{constructor(t,e,n,i){this.from=t;this.to=e;this.number=n;this.text=i}get length(){return this.to-this.from}}let d="lc,34,7n,7,7b,19,,,,2,,2,,,20,b,1c,l,g,,2t,7,2,6,2,2,,4,z,,u,r,2j,b,1m,9,9,,o,4,,9,,3,,5,17,3,3b,f,,w,1j,,,,4,8,4,,3,7,a,2,t,,1m,,,,2,4,8,,9,,a,2,q,,2,2,1l,,4,2,4,2,2,3,3,,u,2,3,,b,2,1l,,4,5,,2,4,,k,2,m,6,,,1m,,,2,,4,8,,7,3,a,2,u,,1n,,,,c,,9,,14,,3,,1l,3,5,3,,4,7,2,b,2,t,,1m,,2,,2,,3,,5,2,7,2,b,2,s,2,1l,2,,,2,4,8,,9,,a,2,t,,20,,4,,2,3,,,8,,29,,2,7,c,8,2q,,2,9,b,6,22,2,r,,,,,,1j,e,,5,,2,5,b,,10,9,,2u,4,,6,,2,2,2,p,2,4,3,g,4,d,,2,2,6,,f,,jj,3,qa,3,t,3,t,2,u,2,1s,2,,7,8,,2,b,9,,19,3,3b,2,y,,3a,3,4,2,9,,6,3,63,2,2,,1m,,,7,,,,,2,8,6,a,2,,1c,h,1r,4,1c,7,,,5,,14,9,c,2,w,4,2,2,,3,1k,,,2,3,,,3,1m,8,2,2,48,3,,d,,7,4,,6,,3,2,5i,1m,,5,ek,,5f,x,2da,3,3x,,2o,w,fe,6,2x,2,n9w,4,,a,w,2,28,2,7k,,3,,4,,p,2,5,,47,2,q,i,d,,12,8,p,b,1a,3,1c,,2,4,2,2,13,,1v,6,2,2,2,2,c,,8,,1b,,1f,,,3,2,2,5,2,,,16,2,8,,6m,,2,,4,,fn4,,kh,g,g,g,a6,2,gt,,6a,,45,5,1ae,3,,2,5,4,14,3,4,,4l,2,fx,4,ar,2,49,b,4w,,1i,f,1k,3,1d,4,2,2,1x,3,10,5,,8,1q,,c,2,1g,9,a,4,2,,2n,3,2,,,2,6,,4g,,3,8,l,2,1l,2,,,,,m,,e,7,3,5,5f,8,2,3,,,n,,29,,2,6,,,2,,,2,,2,6j,,2,4,6,2,,2,r,2,2d,8,2,,,2,2y,,,,2,6,,,2t,3,2,4,,5,77,9,,2,6t,,a,2,,,4,,40,4,2,2,4,,w,a,14,6,2,4,8,,9,6,2,3,1a,d,,2,ba,7,,6,,,2a,m,2,7,,2,,2,3e,6,3,,,2,,7,,,20,2,3,,,,9n,2,f0b,5,1n,7,t4,,1r,4,29,,f5k,2,43q,,,3,4,5,8,8,2,7,u,4,44,3,1iz,1j,4,1e,8,,e,,m,5,,f,11s,7,,h,2,7,,2,,5,79,7,c5,4,15s,7,31,7,240,5,gx7k,2o,3k,6o".split(",").map((t=>t?parseInt(t,36):1));for(let Qt=1;Qtt)return d[e-1]<=t;return false}function p(t){return t>=127462&&t<=127487}const m=8205;function w(t,e,n=true,i=true){return(n?v:x)(t,e,i)}function v(t,e,n){if(e==t.length)return e;if(e&&k(t.charCodeAt(e))&&y(t.charCodeAt(e-1)))e--;let i=S(t,e);e+=b(i);while(e=0&&p(S(t,i))){n++;i-=2}if(n%2==0)break;else e+=2}else{break}}return e}function x(t,e,n){while(e>0){let i=v(t,e-2,n);if(i=56320&&t<57344}function y(t){return t>=55296&&t<56320}function S(t,e){let n=t.charCodeAt(e);if(!y(n)||e+1==t.length)return n;let i=t.charCodeAt(e+1);if(!k(i))return n;return(n-55296<<10)+(i-56320)+65536}function I(t){if(t<=65535)return String.fromCharCode(t);t-=65536;return String.fromCharCode((t>>10)+55296,(t&1023)+56320)}function b(t){return t<65536?1:2}const P=/\r\n?|\n/;var E=function(t){t[t["Simple"]=0]="Simple";t[t["TrackDel"]=1]="TrackDel";t[t["TrackBefore"]=2]="TrackBefore";t[t["TrackAfter"]=3]="TrackAfter";return t}(E||(E={}));class A{constructor(t){this.sections=t}get length(){let t=0;for(let e=0;et)return s+(t-i);s+=l}else{if(n!=E.Simple&&o>=t&&(n==E.TrackDel&&it||n==E.TrackBefore&&it))return null;if(o>t||o==t&&e<0&&!l)return t==i||e<0?s:s+h;s+=h}i=o}if(t>i)throw new RangeError(`Position ${t} is out of range for changeset of length ${i}`);return s}touchesRange(t,e=t){for(let n=0,i=0;n=0&&i<=e&&l>=t)return ie?"cover":true;i=l}return false}toString(){let t="";for(let e=0;e=0?":"+i:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some((t=>typeof t!="number")))throw new RangeError("Invalid JSON representation of ChangeDesc");return new A(t)}static create(t){return new A(t)}}class M extends A{constructor(t,e){super(t);this.inserted=e}apply(t){if(this.length!=t.length)throw new RangeError("Applying change set to a document with the wrong length");O(this,((e,n,i,s,r)=>t=t.replace(i,i+(n-e),r)),false);return t}mapDesc(t,e=false){return T(this,t,e,true)}invert(t){let e=this.sections.slice(),n=[];for(let s=0,r=0;s=0){e[s]=h;e[s+1]=l;let o=s>>1;while(n.length0)R(n,e,s.text);s.forward(t);l+=t}let o=t[r++];while(l>1].toJSON()))}return t}static of(t,e,n){let s=[],r=[],l=0;let h=null;function o(t=false){if(!t&&!s.length)return;if(la||h<0||a>e)throw new RangeError(`Invalid change range ${h} to ${a} (in doc of length ${e})`);let c=!f?i.empty:typeof f=="string"?i.of(f.split(n||P)):f;let u=c.length;if(h==a&&u==0)return;if(hl)C(s,h-l,-1);C(s,a-h,u);R(r,s,c);l=a}}a(t);o(!h);return h}static empty(t){return new M(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let e=[],n=[];for(let s=0;se&&typeof t!="string"))){throw new RangeError("Invalid JSON representation of ChangeSet")}else if(r.length==1){e.push(r[0],0)}else{while(n.length=0&&n<=0&&n==t[s+1])t[s]+=e;else if(e==0&&t[s]==0)t[s+1]+=n;else if(i){t[s]+=e;t[s+1]+=n}else t.push(e,n)}function R(t,e,n){if(n.length==0)return;let s=e.length-2>>1;if(s>1]);if(n||h==t.sections.length||t.sections[h+1]<0)break;o=t.sections[h++];a=t.sections[h++]}e(r,f,l,c,u);r=f;l=c}}}function T(t,e,n,i=false){let s=[],r=i?[]:null;let l=new N(t),h=new N(e);for(let o=-1;;){if(l.ins==-1&&h.ins==-1){let t=Math.min(l.len,h.len);C(s,t,-1);l.forward(t);h.forward(t)}else if(h.ins>=0&&(l.ins<0||o==l.i||l.off==0&&(h.len=0&&o=0){let t=0,e=l.len;while(e){if(h.ins==-1){let n=Math.min(e,h.len);t+=n;e-=n;h.forward(n)}else if(h.ins==0&&h.lent||l.ins>=0&&l.len>t)&&(h||i.length>e);r.forward2(t);l.forward(t)}}}class N{constructor(t){this.set=t;this.i=0;this.next()}next(){let{sections:t}=this.set;if(this.i>1;return e>=t.length?i.empty:t[e]}textBit(t){let{inserted:e}=this.set,n=this.i-2>>1;return n>=e.length&&!t?i.empty:e[n].slice(this.off,t==null?undefined:this.off+t)}forward(t){if(t==this.len)this.next();else{this.len-=t;this.off+=t}}forward2(t){if(this.ins==-1)this.forward(t);else if(t==this.ins)this.next();else{this.ins-=t;this.off+=t}}}class B{constructor(t,e,n){this.from=t;this.to=e;this.flags=n}get anchor(){return this.flags&16?this.to:this.from}get head(){return this.flags&16?this.from:this.to}get empty(){return this.from==this.to}get assoc(){return this.flags&4?-1:this.flags&8?1:0}get bidiLevel(){let t=this.flags&3;return t==3?null:t}get goalColumn(){let t=this.flags>>5;return t==33554431?undefined:t}map(t,e=-1){let n,i;if(this.empty){n=i=t.mapPos(this.from,e)}else{n=t.mapPos(this.from,1);i=t.mapPos(this.to,-1)}return n==this.from&&i==this.to?this:new B(n,i,this.flags)}extend(t,e=t){if(t<=this.anchor&&e>=this.anchor)return D.range(t,e);let n=Math.abs(t-this.anchor)>Math.abs(e-this.anchor)?t:e;return D.range(this.anchor,n)}eq(t){return this.anchor==t.anchor&&this.head==t.head}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return D.range(t.anchor,t.head)}static create(t,e,n){return new B(t,e,n)}}class D{constructor(t,e){this.ranges=t;this.mainIndex=e}map(t,e=-1){if(t.empty)return this;return D.create(this.ranges.map((n=>n.map(t,e))),this.mainIndex)}eq(t){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return false;for(let e=0;et.toJSON())),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new D(t.ranges.map((t=>B.fromJSON(t))),t.main)}static single(t,e=t){return new D([D.range(t,e)],0)}static create(t,e=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let n=0,i=0;it?4:0)|s)}static normalized(t,e=0){let n=t[e];t.sort(((t,e)=>t.from-e.from));e=t.indexOf(n);for(let i=1;in.head?D.range(l,r):D.range(r,l))}}return new D(t,e)}}function J(t,e){for(let n of t.ranges)if(n.to>e)throw new RangeError("Selection points outside of document")}let L=0;class j{constructor(t,e,n,i,s){this.combine=t;this.compareInput=e;this.compare=n;this.isStatic=i;this.id=L++;this.default=t([]);this.extensions=typeof s=="function"?s(this):s}static define(t={}){return new j(t.combine||(t=>t),t.compareInput||((t,e)=>t===e),t.compare||(!t.combine?q:(t,e)=>t===e),!!t.static,t.enables)}of(t){return new $([],this,0,t)}compute(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new $(t,this,1,e)}computeN(t,e){if(this.isStatic)throw new Error("Can't compute a static facet");return new $(t,this,2,e)}from(t,e){if(!e)e=t=>t;return this.compute([t],(n=>e(n.field(t))))}}function q(t,e){return t==e||t.length==e.length&&t.every(((t,n)=>t===e[n]))}class ${constructor(t,e,n,i){this.dependencies=t;this.facet=e;this.type=n;this.value=i;this.id=L++}dynamicSlot(t){var e;let n=this.value;let i=this.facet.compareInput;let s=this.id,r=t[s]>>1,l=this.type==2;let h=false,o=false,a=[];for(let f of this.dependencies){if(f=="doc")h=true;else if(f=="selection")o=true;else if((((e=t[f.id])!==null&&e!==void 0?e:1)&1)==0)a.push(t[f.id])}return{create(t){t.values[r]=n(t);return 1},update(t,e){if(h&&e.docChanged||o&&(e.docChanged||e.selection)||z(t,a)){let e=n(t);if(l?!_(e,t.values[r],i):!i(e,t.values[r])){t.values[r]=e;return 1}}return 0},reconfigure:(t,e)=>{let h,o=e.config.address[s];if(o!=null){let s=nt(e,o);if(this.dependencies.every((n=>n instanceof j?e.facet(n)===t.facet(n):n instanceof U?e.field(n,false)==t.field(n,false):true))||(l?_(h=n(t),s,i):i(h=n(t),s))){t.values[r]=s;return 0}}else{h=n(t)}t.values[r]=h;return 1}}}}function _(t,e,n){if(t.length!=e.length)return false;for(let i=0;it[e.id]));let s=n.map((t=>t.type));let r=i.filter((t=>!(t&1)));let l=t[e.id]>>1;function h(t){let n=[];for(let e=0;et===e),t);if(t.provide)e.provides=t.provide(e);return e}create(t){let e=t.facet(W).find((t=>t.field==this));return((e===null||e===void 0?void 0:e.create)||this.createF)(t)}slot(t){let e=t[this.id]>>1;return{create:t=>{t.values[e]=this.create(t);return 1},update:(t,n)=>{let i=t.values[e];let s=this.updateF(i,n);if(this.compareF(i,s))return 0;t.values[e]=s;return 1},reconfigure:(t,n)=>{if(n.config.address[this.id]!=null){t.values[e]=n.field(this);return 0}t.values[e]=this.create(t);return 1}}}init(t){return[this,W.of({field:this,create:t})]}get extension(){return this}}const G={lowest:4,low:3,default:2,high:1,highest:0};function H(t){return e=>new Q(e,t)}const K={highest:H(G.highest),high:H(G.high),default:H(G.default),low:H(G.low),lowest:H(G.lowest)};class Q{constructor(t,e){this.inner=t;this.prec=e}}class X{of(t){return new Y(this,t)}reconfigure(t){return X.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class Y{constructor(t,e){this.compartment=t;this.inner=e}}class Z{constructor(t,e,n,i,s,r){this.base=t;this.compartments=e;this.dynamicSlots=n;this.address=i;this.staticValues=s;this.facets=r;this.statusTemplate=[];while(this.statusTemplate.length>1]}static resolve(t,e,n){let i=[];let s=Object.create(null);let r=new Map;for(let c of tt(t,e,r)){if(c instanceof U)i.push(c);else(s[c.facet.id]||(s[c.facet.id]=[])).push(c)}let l=Object.create(null);let h=[];let o=[];for(let c of i){l[c.id]=o.length<<1;o.push((t=>c.slot(t)))}let a=n===null||n===void 0?void 0:n.config.facets;for(let c in s){let t=s[c],e=t[0].facet;let i=a&&a[c]||[];if(t.every((t=>t.type==0))){l[e.id]=h.length<<1|1;if(q(i,t)){h.push(n.facet(e))}else{let i=e.combine(t.map((t=>t.value)));h.push(n&&e.compare(i,n.facet(e))?n.facet(e):i)}}else{for(let e of t){if(e.type==0){l[e.id]=h.length<<1|1;h.push(e.value)}else{l[e.id]=o.length<<1;o.push((t=>e.dynamicSlot(t)))}}l[e.id]=o.length<<1;o.push((n=>V(n,e,t)))}}let f=o.map((t=>t(l)));return new Z(t,r,f,l,h,s)}}function tt(t,e,n){let i=[[],[],[],[],[]];let s=new Map;function r(t,l){let h=s.get(t);if(h!=null){if(h<=l)return;let e=i[h].indexOf(t);if(e>-1)i[h].splice(e,1);if(t instanceof Y)n.delete(t.compartment)}s.set(t,l);if(Array.isArray(t)){for(let e of t)r(e,l)}else if(t instanceof Y){if(n.has(t.compartment))throw new RangeError(`Duplicate use of compartment in extensions`);let i=e.get(t.compartment)||t.inner;n.set(t.compartment,i);r(i,l)}else if(t instanceof Q){r(t.inner,t.prec)}else if(t instanceof U){i[l].push(t);if(t.provides)r(t.provides,l)}else if(t instanceof $){i[l].push(t);if(t.facet.extensions)r(t.facet.extensions,G.default)}else{let e=t.extension;if(!e)throw new Error(`Unrecognized extension value in extension set (${t}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);r(e,l)}}r(t,G.default);return i.reduce(((t,e)=>t.concat(e)))}function et(t,e){if(e&1)return 2;let n=e>>1;let i=t.status[n];if(i==4)throw new Error("Cyclic dependency between fields and/or facets");if(i&2)return i;t.status[n]=4;let s=t.computeSlot(t,t.config.dynamicSlots[n]);return t.status[n]=2|s}function nt(t,e){return e&1?t.config.staticValues[e>>1]:t.values[e>>1]}const it=j.define();const st=j.define({combine:t=>t.some((t=>t)),static:true});const rt=j.define({combine:t=>t.length?t[0]:undefined,static:true});const lt=j.define();const ht=j.define();const ot=j.define();const at=j.define({combine:t=>t.length?t[0]:false});class ft{constructor(t,e){this.type=t;this.value=e}static define(){return new ct}}class ct{of(t){return new ft(this,t)}}class ut{constructor(t){this.map=t}of(t){return new dt(this,t)}}class dt{constructor(t,e){this.type=t;this.value=e}map(t){let e=this.type.map(this.value,t);return e===undefined?undefined:e==this.value?this:new dt(this.type,e)}is(t){return this.type==t}static define(t={}){return new ut(t.map||(t=>t))}static mapEffects(t,e){if(!t.length)return t;let n=[];for(let i of t){let t=i.map(e);if(t)n.push(t)}return n}}dt.reconfigure=dt.define();dt.appendConfig=dt.define();class gt{constructor(t,e,n,i,s,r){this.startState=t;this.changes=e;this.selection=n;this.effects=i;this.annotations=s;this.scrollIntoView=r;this._doc=null;this._state=null;if(n)J(n,e.newLength);if(!s.some((t=>t.type==gt.time)))this.annotations=s.concat(gt.time.of(Date.now()))}static create(t,e,n,i,s,r){return new gt(t,e,n,i,s,r)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){if(!this._state)this.startState.applyTransaction(this);return this._state}annotation(t){for(let e of this.annotations)if(e.type==t)return e.value;return undefined}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let e=this.annotation(gt.userEvent);return!!(e&&(e==t||e.length>t.length&&e.slice(0,t.length)==t&&e[t.length]=="."))}}gt.time=ft.define();gt.userEvent=ft.define();gt.addToHistory=ft.define();gt.remote=ft.define();function pt(t,e){let n=[];for(let i=0,s=0;;){let r,l;if(i=t[i])){r=t[i++];l=t[i++]}else if(s=0;s--){let n=i[s](t);if(n instanceof gt)t=n;else if(Array.isArray(n)&&n.length==1&&n[0]instanceof gt)t=n[0];else t=vt(e,St(n),false)}return t}function kt(t){let e=t.startState,n=e.facet(ot),i=t;for(let s=n.length-1;s>=0;s--){let r=n[s](t);if(r&&Object.keys(r).length)i=mt(i,wt(e,r,t.changes.newLength),true)}return i==t?t:gt.create(e,t.changes,t.selection,i.effects,i.annotations,i.scrollIntoView)}const yt=[];function St(t){return t==null?yt:Array.isArray(t)?t:[t]}var It=function(t){t[t["Word"]=0]="Word";t[t["Space"]=1]="Space";t[t["Other"]=2]="Other";return t}(It||(It={}));const bt=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let Pt;try{Pt=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch(Kt){}function Et(t){if(Pt)return Pt.test(t);for(let e=0;e"€"&&(n.toUpperCase()!=n.toLowerCase()||bt.test(n)))return true}return false}function At(t){return e=>{if(!/\S/.test(e))return It.Space;if(Et(e))return It.Word;for(let n=0;n-1)return It.Word;return It.Other}}class Mt{constructor(t,e,n,i,s,r){this.config=t;this.doc=e;this.selection=n;this.values=i;this.status=t.statusTemplate.slice();this.computeSlot=s;if(r)r._state=this;for(let l=0;li.set(e,t)));e=null}i.set(r.value.compartment,r.value.extension)}else if(r.is(dt.reconfigure)){e=null;n=r.value}else if(r.is(dt.appendConfig)){e=null;n=St(n).concat(r.value)}}let s;if(!e){e=Z.resolve(n,i,this);let t=new Mt(e,this.doc,this.selection,e.dynamicSlots.map((()=>null)),((t,e)=>e.reconfigure(t,this)),null);s=t.values}else{s=t.startState.values.slice()}new Mt(e,t.newDoc,t.newSelection,s,((e,n)=>n.update(e,t)),t)}replaceSelection(t){if(typeof t=="string")t=this.toText(t);return this.changeByRange((e=>({changes:{from:e.from,to:e.to,insert:t},range:D.cursor(e.from+t.length)})))}changeByRange(t){let e=this.selection;let n=t(e.ranges[0]);let i=this.changes(n.changes),s=[n.range];let r=St(n.effects);for(let l=1;le.spec.fromJSON(r,t))))}}return Mt.create({doc:t.doc,selection:D.fromJSON(t.selection),extensions:e.extensions?i.concat([e.extensions]):i})}static create(t={}){let e=Z.resolve(t.extensions||[],new Map);let n=t.doc instanceof i?t.doc:i.of((t.doc||"").split(e.staticFacet(Mt.lineSeparator)||P));let s=!t.selection?D.single(0):t.selection instanceof D?t.selection:D.single(t.selection.anchor,t.selection.head);J(s,n.length);if(!e.staticFacet(st))s=s.asSingle();return new Mt(e,n,s,e.dynamicSlots.map((()=>null)),((t,e)=>e.create(t)),null)}get tabSize(){return this.facet(Mt.tabSize)}get lineBreak(){return this.facet(Mt.lineSeparator)||"\n"}get readOnly(){return this.facet(at)}phrase(t,...e){for(let n of this.facet(Mt.phrases))if(Object.prototype.hasOwnProperty.call(n,t)){t=n[t];break}if(e.length)t=t.replace(/\$(\$|\d*)/g,((t,n)=>{if(n=="$")return"$";let i=+(n||1);return!i||i>e.length?t:e[i-1]}));return t}languageDataAt(t,e,n=-1){let i=[];for(let s of this.facet(it)){for(let r of s(this,e,n)){if(Object.prototype.hasOwnProperty.call(r,t))i.push(r[t])}}return i}charCategorizer(t){return At(this.languageDataAt("wordChars",t).join(""))}wordAt(t){let{text:e,from:n,length:i}=this.doc.lineAt(t);let s=this.charCategorizer(t);let r=t-n,l=t-n;while(r>0){let t=w(e,r,false);if(s(e.slice(t,r))!=It.Word)break;r=t}while(lt.length?t[0]:4});Mt.lineSeparator=rt;Mt.readOnly=at;Mt.phrases=j.define({compare(t,e){let n=Object.keys(t),i=Object.keys(e);return n.length==i.length&&n.every((n=>t[n]==e[n]))}});Mt.languageData=it;Mt.changeFilter=lt;Mt.transactionFilter=ht;Mt.transactionExtender=ot;X.reconfigure=dt.define();function Ct(t,e,n={}){let i={};for(let s of t)for(let t of Object.keys(s)){let e=s[t],r=i[t];if(r===undefined)i[t]=e;else if(r===e||e===undefined);else if(Object.hasOwnProperty.call(n,t))i[t]=n[t](r,e);else throw new Error("Config merge conflict for field "+t)}for(let s in e)if(i[s]===undefined)i[s]=e[s];return i}class Rt{eq(t){return this==t}range(t,e=t){return Ot.create(t,e,this)}}Rt.prototype.startSide=Rt.prototype.endSide=0;Rt.prototype.point=false;Rt.prototype.mapMode=E.TrackDel;class Ot{constructor(t,e,n){this.from=t;this.to=e;this.value=n}static create(t,e,n){return new Ot(t,e,n)}}function Tt(t,e){return t.from-e.from||t.value.startSide-e.value.startSide}class Ft{constructor(t,e,n,i){this.from=t;this.to=e;this.value=n;this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(t,e,n,i=0){let s=n?this.to:this.from;for(let r=i,l=s.length;;){if(r==l)return r;let i=r+l>>1;let h=s[i]-t||(n?this.value[i].endSide:this.value[i].startSide)-e;if(i==r)return h>=0?r:l;if(h>=0)l=i;else r=i+1}}between(t,e,n,i){for(let s=this.findIndex(e,-1e9,true),r=this.findIndex(n,1e9,false,s);su||c==u&&o.startSide>0&&o.endSide<=0)continue}if((u-c||o.endSide-o.startSide)<0)continue;if(r<0)r=c;if(o.point)l=Math.max(l,u-c);n.push(o);i.push(c-r);s.push(u-r)}return{mapped:n.length?new Ft(i,s,n,l):null,pos:r}}}class Nt{constructor(t,e,n,i){this.chunkPos=t;this.chunk=e;this.nextLayer=n;this.maxPoint=i}static create(t,e,n,i){return new Nt(t,e,n,i)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let e of this.chunk)t+=e.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:e=[],sort:n=false,filterFrom:i=0,filterTo:s=this.length}=t;let r=t.filter;if(e.length==0&&!r)return this;if(n)e=e.slice().sort(Tt);if(this.isEmpty)return e.length?Nt.of(e):this;let l=new Lt(this,null,-1).goto(0),h=0,o=[];let a=new Dt;while(l.value||h=0){let t=e[h++];if(!a.addInner(t.from,t.to,t.value))o.push(t)}else if(l.rangeIndex==1&&l.chunkIndexthis.chunkEnd(l.chunkIndex)||sl.to||s=s&&t<=s+r.length&&r.between(s,t-s,e-s,n)===false)return}this.nextLayer.between(t,e,n)}iter(t=0){return jt.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,e=0){return jt.from(t).goto(e)}static compare(t,e,n,i,s=-1){let r=t.filter((t=>t.maxPoint>0||!t.isEmpty&&t.maxPoint>=s));let l=e.filter((t=>t.maxPoint>0||!t.isEmpty&&t.maxPoint>=s));let h=Jt(r,l,n);let o=new $t(r,h,s);let a=new $t(l,h,s);n.iterGaps(((t,e,n)=>_t(o,t,a,e,n,i)));if(n.empty&&n.length==0)_t(o,0,a,0,0,i)}static eq(t,e,n=0,i){if(i==null)i=1e9-1;let s=t.filter((t=>!t.isEmpty&&e.indexOf(t)<0));let r=e.filter((e=>!e.isEmpty&&t.indexOf(e)<0));if(s.length!=r.length)return false;if(!s.length)return true;let l=Jt(s,r);let h=new $t(s,l,0).goto(n),o=new $t(r,l,0).goto(n);for(;;){if(h.to!=o.to||!zt(h.active,o.active)||h.point&&(!o.point||!h.point.eq(o.point)))return false;if(h.to>i)return true;h.next();o.next()}}static spans(t,e,n,i,s=-1){let r=new $t(t,null,s).goto(e),l=e;let h=r.openStart;for(;;){let t=Math.min(r.to,n);if(r.point){let n=r.activeForPoint(r.to);let s=r.pointFroml){i.span(l,t,r.active,h);h=r.openEnd(t)}if(r.to>n)return h+(r.point&&r.to>n?1:0);l=r.to;r.next()}}static of(t,e=false){let n=new Dt;for(let i of t instanceof Ot?[t]:e?Bt(t):t)n.add(i.from,i.to,i.value);return n.finish()}}Nt.empty=new Nt([],[],null,-1);function Bt(t){if(t.length>1)for(let e=t[0],n=1;n0)return t.slice().sort(Tt);e=i}return t}Nt.empty.nextLayer=Nt.empty;class Dt{constructor(){this.chunks=[];this.chunkPos=[];this.chunkStart=-1;this.last=null;this.lastFrom=-1e9;this.lastTo=-1e9;this.from=[];this.to=[];this.value=[];this.maxPoint=-1;this.setMaxPoint=-1;this.nextLayer=null}finishChunk(t){this.chunks.push(new Ft(this.from,this.to,this.value,this.maxPoint));this.chunkPos.push(this.chunkStart);this.chunkStart=-1;this.setMaxPoint=Math.max(this.setMaxPoint,this.maxPoint);this.maxPoint=-1;if(t){this.from=[];this.to=[];this.value=[]}}add(t,e,n){if(!this.addInner(t,e,n))(this.nextLayer||(this.nextLayer=new Dt)).add(t,e,n)}addInner(t,e,n){let i=t-this.lastTo||n.startSide-this.last.endSide;if(i<=0&&(t-this.lastFrom||n.startSide-this.last.startSide)<0)throw new Error("Ranges must be added sorted by `from` position and `startSide`");if(i<0)return false;if(this.from.length==250)this.finishChunk(true);if(this.chunkStart<0)this.chunkStart=t;this.from.push(t-this.chunkStart);this.to.push(e-this.chunkStart);this.last=n;this.lastFrom=t;this.lastTo=e;this.value.push(n);if(n.point)this.maxPoint=Math.max(this.maxPoint,e-t);return true}addChunk(t,e){if((t-this.lastTo||e.value[0].startSide-this.last.endSide)<0)return false;if(this.from.length)this.finishChunk(true);this.setMaxPoint=Math.max(this.setMaxPoint,e.maxPoint);this.chunks.push(e);this.chunkPos.push(t);let n=e.value.length-1;this.last=e.value[n];this.lastFrom=e.from[n]+t;this.lastTo=e.to[n]+t;return true}finish(){return this.finishInner(Nt.empty)}finishInner(t){if(this.from.length)this.finishChunk(false);if(this.chunks.length==0)return t;let e=Nt.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);this.from=null;return e}}function Jt(t,e,n){let i=new Map;for(let r of t)for(let t=0;t=this.minPoint)break}}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){this.chunkIndex++;if(this.skip){while(this.chunkIndex=n)i.push(new Lt(r,e,n,s))}}return i.length==1?i[0]:new jt(i)}get startSide(){return this.value?this.value.startSide:0}goto(t,e=-1e9){for(let n of this.heap)n.goto(t,e);for(let n=this.heap.length>>1;n>=0;n--)qt(this.heap,n);this.next();return this}forward(t,e){for(let n of this.heap)n.forward(t,e);for(let n=this.heap.length>>1;n>=0;n--)qt(this.heap,n);if((this.to-t||this.value.endSide-e)<0)this.next()}next(){if(this.heap.length==0){this.from=this.to=1e9;this.value=null;this.rank=-1}else{let t=this.heap[0];this.from=t.from;this.to=t.to;this.value=t.value;this.rank=t.rank;if(t.value)t.next();qt(this.heap,0)}}}function qt(t,e){for(let n=t[e];;){let i=(e<<1)+1;if(i>=t.length)break;let s=t[i];if(i+1=0){s=t[i+1];i++}if(n.compare(s)<0)break;t[i]=n;t[e]=s;e=i}}class $t{constructor(t,e,n){this.minPoint=n;this.active=[];this.activeTo=[];this.activeRank=[];this.minActive=-1;this.point=null;this.pointFrom=0;this.pointRank=0;this.to=-1e9;this.endSide=0;this.openStart=-1;this.cursor=jt.from(t,e,n)}goto(t,e=-1e9){this.cursor.goto(t,e);this.active.length=this.activeTo.length=this.activeRank.length=0;this.minActive=-1;this.to=t;this.endSide=e;this.openStart=-1;this.next();return this}forward(t,e){while(this.minActive>-1&&(this.activeTo[this.minActive]-t||this.active[this.minActive].endSide-e)<0)this.removeActive(this.minActive);this.cursor.forward(t,e)}removeActive(t){Vt(this.active,t);Vt(this.activeTo,t);Vt(this.activeRank,t);this.minActive=Ut(this.active,this.activeTo)}addActive(t){let e=0,{value:n,to:i,rank:s}=this.cursor;while(e-1&&(this.activeTo[i]-this.cursor.from||this.active[i].endSide-this.cursor.startSide)<0){if(this.activeTo[i]>t){this.to=this.activeTo[i];this.endSide=this.active[i].endSide;break}this.removeActive(i);if(n)Vt(n,i)}else if(!this.cursor.value){this.to=this.endSide=1e9;break}else if(this.cursor.from>t){this.to=this.cursor.from;this.endSide=this.cursor.startSide;break}else{let t=this.cursor.value;if(!t.point){this.addActive(n);this.cursor.next()}else if(e&&this.cursor.to==this.to&&this.cursor.from=0&&n[e]=0;n--){if(this.activeRank[n]t||this.activeTo[n]==t&&this.active[n].endSide>=this.point.endSide)e.push(this.active[n])}return e.reverse()}openEnd(t){let e=0;for(let n=this.activeTo.length-1;n>=0&&this.activeTo[n]>t;n--)e++;return e}}function _t(t,e,n,i,s,r){t.goto(e);n.goto(i);let l=i+s;let h=i,o=i-e;for(;;){let e=t.to+o-n.to||t.endSide-n.endSide;let i=e<0?t.to+o:n.to,s=Math.min(i,l);if(t.point||n.point){if(!(t.point&&n.point&&(t.point==n.point||t.point.eq(n.point))&&zt(t.activeForPoint(t.to+o),n.activeForPoint(n.to))))r.comparePoint(h,s,t.point,n.point)}else{if(s>h&&!zt(t.active,n.active))r.compareRange(h,s,t.active,n.active)}if(i>l)break;h=i;if(e<=0)t.next();if(e>=0)n.next()}}function zt(t,e){if(t.length!=e.length)return false;for(let n=0;n=e;i--)t[i+1]=t[i];t[e]=n}function Ut(t,e){let n=-1,i=1e9;for(let s=0;s=e)return s;if(s==t.length)break;r+=t.charCodeAt(s)==9?n-r%n:1;s=w(t,s)}return i===true?-1:t.length}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/4419.93938494f456cd76a7e3.js b/bootcamp/share/jupyter/lab/static/4419.93938494f456cd76a7e3.js new file mode 100644 index 0000000..42cfbbc --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/4419.93938494f456cd76a7e3.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4419],{54419:(e,n,t)=>{t.r(n);t.d(n,{cmake:()=>u});var r=/({)?[a-zA-Z0-9_]+(})?/;function i(e,n){var t,r,i=false;while(!e.eol()&&(t=e.next())!=n.pending){if(t==="$"&&r!="\\"&&n.pending=='"'){i=true;break}r=t}if(i){e.backUp(1)}if(t==n.pending){n.continueString=false}else{n.continueString=true}return"string"}function a(e,n){var t=e.next();if(t==="$"){if(e.match(r)){return"variableName.special"}return"variable"}if(n.continueString){e.backUp(1);return i(e,n)}if(e.match(/(\s+)?\w+\(/)||e.match(/(\s+)?\w+\ \(/)){e.backUp(1);return"def"}if(t=="#"){e.skipToEnd();return"comment"}if(t=="'"||t=='"'){n.pending=t;return i(e,n)}if(t=="("||t==")"){return"bracket"}if(t.match(/[0-9]/)){return"number"}e.eatWhile(/[\w-]/);return null}const u={name:"cmake",startState:function(){var e={};e.inDefinition=false;e.inInclude=false;e.continueString=false;e.pending=false;return e},token:function(e,n){if(e.eatSpace())return null;return a(e,n)}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/4452.2f8819684b96ecff5231.js b/bootcamp/share/jupyter/lab/static/4452.2f8819684b96ecff5231.js new file mode 100644 index 0000000..3b7e010 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/4452.2f8819684b96ecff5231.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4452],{94452:(e,t,n)=>{n.r(t);n.d(t,{fortran:()=>d});function a(e){var t={};for(var n=0;n\/\:]/;var l=/^\.(and|or|eq|lt|le|gt|ge|ne|not|eqv|neqv)\./i;function s(e,t){if(e.match(l)){return"operator"}var n=e.next();if(n=="!"){e.skipToEnd();return"comment"}if(n=='"'||n=="'"){t.tokenize=_(n);return t.tokenize(e,t)}if(/[\[\]\(\),]/.test(n)){return null}if(/\d/.test(n)){e.eatWhile(/[\w\.]/);return"number"}if(o.test(n)){e.eatWhile(o);return"operator"}e.eatWhile(/[\w\$_]/);var a=e.current().toLowerCase();if(i.hasOwnProperty(a)){return"keyword"}if(r.hasOwnProperty(a)||c.hasOwnProperty(a)){return"builtin"}return"variable"}function _(e){return function(t,n){var a=false,i,r=false;while((i=t.next())!=null){if(i==e&&!a){r=true;break}a=!a&&i=="\\"}if(r||!a)n.tokenize=null;return"string"}}const d={name:"fortran",startState:function(){return{tokenize:null}},token:function(e,t){if(e.eatSpace())return null;var n=(t.tokenize||s)(e,t);if(n=="comment"||n=="meta")return n;return n}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/4519.6b784d052db42e93eff2.js b/bootcamp/share/jupyter/lab/static/4519.6b784d052db42e93eff2.js new file mode 100644 index 0000000..a2a98a8 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/4519.6b784d052db42e93eff2.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4519],{34519:(e,t,r)=>{r.r(t);r.d(t,{erlang:()=>H});var n=["-type","-spec","-export_type","-opaque"];var i=["after","begin","catch","case","cond","end","fun","if","let","of","query","receive","try","when"];var a=/[\->,;]/;var o=["->",";",","];var u=["and","andalso","band","bnot","bor","bsl","bsr","bxor","div","not","or","orelse","rem","xor"];var s=/[\+\-\*\/<>=\|:!]/;var c=["=","+","-","*","/",">",">=","<","=<","=:=","==","=/=","/=","||","<-","!"];var l=/[<\(\[\{]/;var f=["<<","(","[","{"];var _=/[>\)\]\}]/;var p=["}","]",")",">>"];var m=["is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_record","is_reference","is_tuple","atom","binary","bitstring","boolean","function","integer","list","number","pid","port","record","reference","tuple"];var b=["abs","adler32","adler32_combine","alive","apply","atom_to_binary","atom_to_list","binary_to_atom","binary_to_existing_atom","binary_to_list","binary_to_term","bit_size","bitstring_to_list","byte_size","check_process_code","contact_binary","crc32","crc32_combine","date","decode_packet","delete_module","disconnect_node","element","erase","exit","float","float_to_list","garbage_collect","get","get_keys","group_leader","halt","hd","integer_to_list","internal_bif","iolist_size","iolist_to_binary","is_alive","is_atom","is_binary","is_bitstring","is_boolean","is_float","is_function","is_integer","is_list","is_number","is_pid","is_port","is_process_alive","is_record","is_reference","is_tuple","length","link","list_to_atom","list_to_binary","list_to_bitstring","list_to_existing_atom","list_to_float","list_to_integer","list_to_pid","list_to_tuple","load_module","make_ref","module_loaded","monitor_node","node","node_link","node_unlink","nodes","notalive","now","open_port","pid_to_list","port_close","port_command","port_connect","port_control","pre_loaded","process_flag","process_info","processes","purge_module","put","register","registered","round","self","setelement","size","spawn","spawn_link","spawn_monitor","spawn_opt","split_binary","statistics","term_to_binary","time","throw","tl","trunc","tuple_size","tuple_to_list","unlink","unregister","whereis"];var d=/[\w@Ø-ÞÀ-Öß-öø-ÿ]/;var k=/[0-7]{1,3}|[bdefnrstv\\"']|\^[a-zA-Z]|x[0-9a-zA-Z]{2}|x{[0-9a-zA-Z]+}/;function g(e,t){if(t.in_string){t.in_string=!y(e);return W(t,e,"string")}if(t.in_atom){t.in_atom=!w(e);return W(t,e,"atom")}if(e.eatSpace()){return W(t,e,"whitespace")}if(!Z(t)&&e.match(/-\s*[a-zß-öø-ÿ][\wØ-ÞÀ-Öß-öø-ÿ]*/)){if(z(e.current(),n)){return W(t,e,"type")}else{return W(t,e,"attribute")}}var r=e.next();if(r=="%"){e.skipToEnd();return W(t,e,"comment")}if(r==":"){return W(t,e,"colon")}if(r=="?"){e.eatSpace();e.eatWhile(d);return W(t,e,"macro")}if(r=="#"){e.eatSpace();e.eatWhile(d);return W(t,e,"record")}if(r=="$"){if(e.next()=="\\"&&!e.match(k)){return W(t,e,"error")}return W(t,e,"number")}if(r=="."){return W(t,e,"dot")}if(r=="'"){if(!(t.in_atom=!w(e))){if(e.match(/\s*\/\s*[0-9]/,false)){e.match(/\s*\/\s*[0-9]/,true);return W(t,e,"fun")}if(e.match(/\s*\(/,false)||e.match(/\s*:/,false)){return W(t,e,"function")}}return W(t,e,"atom")}if(r=='"'){t.in_string=!y(e);return W(t,e,"string")}if(/[A-Z_Ø-ÞÀ-Ö]/.test(r)){e.eatWhile(d);return W(t,e,"variable")}if(/[a-z_ß-öø-ÿ]/.test(r)){e.eatWhile(d);if(e.match(/\s*\/\s*[0-9]/,false)){e.match(/\s*\/\s*[0-9]/,true);return W(t,e,"fun")}var g=e.current();if(z(g,i)){return W(t,e,"keyword")}else if(z(g,u)){return W(t,e,"operator")}else if(e.match(/\s*\(/,false)){if(z(g,b)&&(Z(t).token!=":"||Z(t,2).token=="erlang")){return W(t,e,"builtin")}else if(z(g,m)){return W(t,e,"guard")}else{return W(t,e,"function")}}else if(S(e)==":"){if(g=="erlang"){return W(t,e,"builtin")}else{return W(t,e,"function")}}else if(z(g,["true","false"])){return W(t,e,"boolean")}else{return W(t,e,"atom")}}var x=/[0-9]/;var U=/[0-9a-zA-Z]/;if(x.test(r)){e.eatWhile(x);if(e.eat("#")){if(!e.eatWhile(U)){e.backUp(1)}}else if(e.eat(".")){if(!e.eatWhile(x)){e.backUp(1)}else{if(e.eat(/[eE]/)){if(e.eat(/[-+]/)){if(!e.eatWhile(x)){e.backUp(2)}}else{if(!e.eatWhile(x)){e.backUp(1)}}}}}return W(t,e,"number")}if(h(e,l,f)){return W(t,e,"open_paren")}if(h(e,_,p)){return W(t,e,"close_paren")}if(v(e,a,o)){return W(t,e,"separator")}if(v(e,s,c)){return W(t,e,"operator")}return W(t,e,null)}function h(e,t,r){if(e.current().length==1&&t.test(e.current())){e.backUp(1);while(t.test(e.peek())){e.next();if(z(e.current(),r)){return true}}e.backUp(e.current().length-1)}return false}function v(e,t,r){if(e.current().length==1&&t.test(e.current())){while(t.test(e.peek())){e.next()}while(01&&e[t].type==="fun"&&e[t-1].token==="fun"){return e.slice(0,t-1)}switch(e[t].token){case"}":return T(e,{g:["{"]});case"]":return T(e,{i:["["]});case")":return T(e,{i:["("]});case">>":return T(e,{i:["<<"]});case"end":return T(e,{i:["begin","case","fun","if","receive","try"]});case",":return T(e,{e:["begin","try","when","->",",","(","[","{","<<"]});case"->":return T(e,{r:["when"],m:["try","if","case","receive"]});case";":return T(e,{E:["case","fun","if","receive","try","when"]});case"catch":return T(e,{e:["try"]});case"of":return T(e,{e:["case"]});case"after":return T(e,{e:["receive","try"]});default:return e}}function T(e,t){for(var r in t){var n=e.length-1;var i=t[r];for(var a=n-1;-1"){if(z(o.token,["receive","case","if","try"])){return o.column+r.unit+r.unit}else{return o.column+r.unit}}else if(z(a.token,f)){return a.column+a.token.length}else{n=$(e);return G(n)?n.column+r.unit:0}}function N(e){var t=e.match(/,|[a-z]+|\}|\]|\)|>>|\|+|\(/);return G(t)&&t.index===0?t[0]:""}function O(e){var t=e.tokenStack.slice(0,-1);var r=F(t,"type",["open_paren"]);return G(t[r])?t[r]:false}function $(e){var t=e.tokenStack;var r=F(t,"type",["open_paren","separator","keyword"]);var n=F(t,"type",["operator"]);if(G(r)&&G(n)&&r{t.d(r,{ZP:()=>oa});var a=t(85893);var n=t(28416);var i=t(92589);var o=t(77398);var s=t(12964);var l=t(23791);var u=t(4015);var c=t(58204);function d(e,r,t){var a=-1,n=r.length,i={};while(++acrypto.getRandomValues(new Uint8Array(e));let k=(e,r,t)=>{let a=(2<{let o="";while(true){let r=t(n);let s=n;while(s--){o+=e[r[s]&a]||"";if(o.length===i)return o}}}};let j=(e,r=21)=>k(e,r,C);let F=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce(((e,r)=>{r&=63;if(r<36){e+=r.toString(36)}else if(r<62){e+=(r-26).toString(36).toUpperCase()}else if(r>62){e+="-"}else{e+="_"}return e}),"");var O=t(28461);var w=t(19055);var T=t(80183);function D(e,r){return e==null?true:(0,T.Z)(e,r)}const I=D;function A(){return A=Object.assign||function(e){for(var r=1;r(e[r.toLowerCase()]=r,e)),{for:"htmlFor"}),N={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},B=["style","script"],U=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,R=/mailto:/i,$=/\n{2,}$/,P=/^( *>[^\n]+(\n[^\n]+)*\n*)+\n{2,}/,q=/^ *> ?/gm,M=/^ {2,}\n/,L=/^(?:( *[-*_]) *){3,}(?:\n *)+\n/,Z=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,V=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,W=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,H=/^(?:\n *)*\n/,K=/\r\n?/g,G=/^\[\^([^\]]+)](:.*)\n/,Y=/^\[\^([^\]]+)]/,z=/\f/g,X=/^\s*?\[(x|\s)\]/,J=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Q=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,ee=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?([^>]*)\/{0}>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1)[\s\S])*?)<\/\1>\n*/i,re=/&([a-zA-Z]+);/g,te=/^)/,ae=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,ne=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,ie=/^\{.*\}$/,oe=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,se=/^<([^ >]+@[^ >]+)>/,le=/^<([^ >]+:\/[^ >]+)>/,ue=/-([a-z])?/gi,ce=/^(.*\|?.*)\n *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*)\n?/,de=/^\[([^\]]*)\]:\s+(\S+)\s*("([^"]*)")?/,fe=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,me=/^\[([^\]]*)\] ?\[([^\]]*)\]/,he=/(\[|\])/g,pe=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,ve=/\t/g,ge=/^ *\| */,ye=/(^ *\||\| *$)/g,Se=/ *$/,be=/^ *:-+: *$/,xe=/^ *:-+ *$/,Ce=/^ *-+: *$/,ke=/^([*_])\1((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1\1(?!\1)/,je=/^([*_])((?:\[.*?\][([].*?[)\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~+.*?~+|.)*?)\1(?!\1|\w)/,Fe=/^~~((?:\[.*?\]|<.*?>(?:.*?<.*?>)?|`.*?`|.)*?)~~/,Oe=/^\\([^0-9A-Za-z\s])/,we=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,Te=/^\n+/,De=/^([ \t]*)/,Ie=/\\([^0-9A-Z\s])/gi,Ae=/ *\n+$/,Ee=/(?:^|\n)( *)$/,_e="(?:\\d+\\.)",Ne="(?:[*+-])";function Be(e){return"( *)("+(1===e?_e:Ne)+") +"}const Ue=Be(1),Re=Be(2);function $e(e){return new RegExp("^"+(1===e?Ue:Re))}const Pe=$e(1),qe=$e(2);function Me(e){return new RegExp("^"+(1===e?Ue:Re)+"[^\\n]*(?:\\n(?!\\1"+(1===e?_e:Ne)+" )[^\\n]*)*(\\n|$)","gm")}const Le=Me(1),Ze=Me(2);function Ve(e){const r=1===e?_e:Ne;return new RegExp("^( *)("+r+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+r+" (?!"+r+" ))\\n*|\\s*\\n*$)")}const We=Ve(1),He=Ve(2);function Ke(e,r){const t=1===r,a=t?We:He,n=t?Le:Ze,i=t?Pe:qe;return{t(e,r,t){const n=Ee.exec(t);return n&&(r.o||!r.u&&!r._)?a.exec(e=n[1]+e):null},i:br.HIGH,l(e,r,a){const o=t?+e[2]:void 0,s=e[0].replace($,"\n").match(n);let l=!1;return{p:s.map((function(e,t){const n=i.exec(e)[0].length,o=new RegExp("^ {1,"+n+"}","gm"),u=e.replace(o,"").replace(i,""),c=t===s.length-1,d=-1!==u.indexOf("\n\n")||c&&l;l=d;const f=a.u,m=a.o;let h;a.o=!0,d?(a.u=!1,h=u.replace(Ae,"\n\n")):(a.u=!0,h=u.replace(Ae,""));const p=r(h,a);return a.u=f,a.o=m,p})),g:t,m:o}},h:(r,t,a)=>e(r.g?"ol":"ul",{key:a.k,start:r.m},r.p.map((function(r,n){return e("li",{key:n},t(r,a))})))}}const Ge="(?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*",Ye="\\s*?(?:\\s+['\"]([\\s\\S]*?)['\"])?\\s*",ze=new RegExp("^\\[("+Ge+")\\]\\("+Ye+"\\)"),Xe=new RegExp("^!\\[("+Ge+")\\]\\("+Ye+"\\)"),Je=[P,Z,V,J,Q,te,ce,Le,We,Ze,He],Qe=[...Je,/^[^\n]+(?: \n|\n{2,})/,ee,ne];function er(e){return e.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function rr(e){return Ce.test(e)?"right":be.test(e)?"center":xe.test(e)?"left":null}function tr(e,r,t){const a=t.v;t.v=!0;const n=r(e.trim(),t);t.v=a;let i=[[]];return n.forEach((function(e,r){"tableSeparator"===e.type?0!==r&&r!==n.length-1&&i.push([]):("text"!==e.type||null!=n[r+1]&&"tableSeparator"!==n[r+1].type||(e.S=e.S.replace(Se,"")),i[i.length-1].push(e))})),i}function ar(e,r,t){t.u=!0;const a=tr(e[1],r,t),n=e[2].replace(ye,"").split("|").map(rr),i=function(e,r,t){return e.trim().split("\n").map((function(e){return tr(e,r,t)}))}(e[3],r,t);return t.u=!1,{$:n,A:i,L:a,type:"table"}}function nr(e,r){return null==e.$[r]?{}:{textAlign:e.$[r]}}function ir(e){return function(r,t){return t.u?e.exec(r):null}}function or(e){return function(r,t){return t.u||t._?e.exec(r):null}}function sr(e){return function(r,t){return t.u||t._?null:e.exec(r)}}function lr(e){return function(r){return e.exec(r)}}function ur(e,r,t){if(r.u||r._)return null;if(t&&!t.endsWith("\n"))return null;let a="";e.split("\n").every((e=>!Je.some((r=>r.test(e)))&&(a+=e+"\n",e.trim())));const n=a.trimEnd();return""==n?null:[a,n]}function cr(e){try{if(decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data):/i))return null}catch(e){return null}return e}function dr(e){return e.replace(Ie,"$1")}function fr(e,r,t){const a=t.u||!1,n=t._||!1;t.u=!0,t._=!0;const i=e(r,t);return t.u=a,t._=n,i}function mr(e,r,t){const a=t.u||!1,n=t._||!1;t.u=!1,t._=!0;const i=e(r,t);return t.u=a,t._=n,i}function hr(e,r,t){return t.u=!1,e(r+"\n\n",t)}const pr=(e,r,t)=>({S:fr(r,e[1],t)});function vr(){return{}}function gr(){return null}function yr(...e){return e.filter(Boolean).join(" ")}function Sr(e,r,t){let a=e;const n=r.split(".");for(;n.length&&(a=a[n[0]],void 0!==a);)n.shift();return a||t}var br;function xr(e,r={}){r.overrides=r.overrides||{},r.slugify=r.slugify||er,r.namedCodesToUnicode=r.namedCodesToUnicode?A({},N,r.namedCodesToUnicode):N;const t=r.createElement||n.createElement;function a(e,a,...n){const i=Sr(r.overrides,`${e}.props`,{});return t(function(e,r){const t=Sr(r,e);return t?"function"==typeof t||"object"==typeof t&&"render"in t?t:Sr(r,`${e}.component`,e):e}(e,r.overrides),A({},a,i,{className:yr(null==a?void 0:a.className,i.className)||void 0}),...n)}function i(e){let t=!1;r.forceInline?t=!0:r.forceBlock||(t=!1===pe.test(e));const i=d(c(t?e:`${e.trimEnd().replace(Te,"")}\n\n`,{u:t}));for(;"string"==typeof i[i.length-1]&&!i[i.length-1].trim();)i.pop();if(null===r.wrapper)return i;const o=r.wrapper||(t?"span":"div");let s;if(i.length>1||r.forceWrapper)s=i;else{if(1===i.length)return s=i[0],"string"==typeof s?a("span",{key:"outer"},s):s;s=null}return n.createElement(o,{key:"outer"},s)}function o(e){const r=e.match(U);return r?r.reduce((function(e,r,t){const a=r.indexOf("=");if(-1!==a){const o=function(e){return-1!==e.indexOf("-")&&null===e.match(ae)&&(e=e.replace(ue,(function(e,r){return r.toUpperCase()}))),e}(r.slice(0,a)).trim(),s=function(e){const r=e[0];return('"'===r||"'"===r)&&e.length>=2&&e[e.length-1]===r?e.slice(1,-1):e}(r.slice(a+1).trim()),l=_[o]||o,u=e[l]=function(e,r){return"style"===e?r.split(/;\s?/).reduce((function(e,r){const t=r.slice(0,r.indexOf(":"));return e[t.replace(/(-[a-z])/g,(e=>e[1].toUpperCase()))]=r.slice(t.length+1).trim(),e}),{}):"href"===e?cr(r):(r.match(ie)&&(r=r.slice(1,r.length-1)),"true"===r||"false"!==r&&r)}(o,s);"string"==typeof u&&(ee.test(u)||ne.test(u))&&(e[l]=n.cloneElement(i(u.trim()),{key:t}))}else"style"!==r&&(e[_[r]||r]=!0);return e}),{}):void 0}const s=[],l={},u={blockQuote:{t:sr(P),i:br.HIGH,l:(e,r,t)=>({S:r(e[0].replace(q,""),t)}),h:(e,r,t)=>a("blockquote",{key:t.k},r(e.S,t))},breakLine:{t:lr(M),i:br.HIGH,l:vr,h:(e,r,t)=>a("br",{key:t.k})},breakThematic:{t:sr(L),i:br.HIGH,l:vr,h:(e,r,t)=>a("hr",{key:t.k})},codeBlock:{t:sr(V),i:br.MAX,l:e=>({S:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,""),R:void 0}),h:(e,r,t)=>a("pre",{key:t.k},a("code",A({},e.I,{className:e.R?`lang-${e.R}`:""}),e.S))},codeFenced:{t:sr(Z),i:br.MAX,l:e=>({I:o(e[3]||""),S:e[4],R:e[2]||void 0,type:"codeBlock"})},codeInline:{t:or(W),i:br.LOW,l:e=>({S:e[2]}),h:(e,r,t)=>a("code",{key:t.k},e.S)},footnote:{t:sr(G),i:br.MAX,l:e=>(s.push({M:e[2],O:e[1]}),{}),h:gr},footnoteReference:{t:ir(Y),i:br.HIGH,l:e=>({S:e[1],B:`#${r.slugify(e[1])}`}),h:(e,r,t)=>a("a",{key:t.k,href:cr(e.B)},a("sup",{key:t.k},e.S))},gfmTask:{t:ir(X),i:br.HIGH,l:e=>({T:"x"===e[1].toLowerCase()}),h:(e,r,t)=>a("input",{checked:e.T,key:t.k,readOnly:!0,type:"checkbox"})},heading:{t:sr(J),i:br.HIGH,l:(e,t,a)=>({S:fr(t,e[2],a),j:r.slugify(e[2]),C:e[1].length}),h:(e,r,t)=>a(`h${e.C}`,{id:e.j,key:t.k},r(e.S,t))},headingSetext:{t:sr(Q),i:br.MAX,l:(e,r,t)=>({S:fr(r,e[1],t),C:"="===e[2]?1:2,type:"heading"})},htmlComment:{t:lr(te),i:br.HIGH,l:()=>({}),h:gr},image:{t:or(Xe),i:br.HIGH,l:e=>({Z:e[1],B:dr(e[2]),D:e[3]}),h:(e,r,t)=>a("img",{key:t.k,alt:e.Z||void 0,title:e.D||void 0,src:cr(e.B)})},link:{t:ir(ze),i:br.LOW,l:(e,r,t)=>({S:mr(r,e[1],t),B:dr(e[2]),D:e[3]}),h:(e,r,t)=>a("a",{key:t.k,href:cr(e.B),title:e.D},r(e.S,t))},linkAngleBraceStyleDetector:{t:ir(le),i:br.MAX,l:e=>({S:[{S:e[1],type:"text"}],B:e[1],type:"link"})},linkBareUrlDetector:{t:(e,r)=>r.N?null:ir(oe)(e,r),i:br.MAX,l:e=>({S:[{S:e[1],type:"text"}],B:e[1],D:void 0,type:"link"})},linkMailtoDetector:{t:ir(se),i:br.MAX,l(e){let r=e[1],t=e[1];return R.test(t)||(t="mailto:"+t),{S:[{S:r.replace("mailto:",""),type:"text"}],B:t,type:"link"}}},orderedList:Ke(a,1),unorderedList:Ke(a,2),newlineCoalescer:{t:sr(H),i:br.LOW,l:vr,h:()=>"\n"},paragraph:{t:ur,i:br.LOW,l:pr,h:(e,r,t)=>a("p",{key:t.k},r(e.S,t))},ref:{t:ir(de),i:br.MAX,l:e=>(l[e[1]]={B:e[2],D:e[4]},{}),h:gr},refImage:{t:or(fe),i:br.MAX,l:e=>({Z:e[1]||void 0,F:e[2]}),h:(e,r,t)=>a("img",{key:t.k,alt:e.Z,src:cr(l[e.F].B),title:l[e.F].D})},refLink:{t:ir(me),i:br.MAX,l:(e,r,t)=>({S:r(e[1],t),P:r(e[0].replace(he,"\\$1"),t),F:e[2]}),h:(e,r,t)=>l[e.F]?a("a",{key:t.k,href:cr(l[e.F].B),title:l[e.F].D},r(e.S,t)):a("span",{key:t.k},r(e.P,t))},table:{t:sr(ce),i:br.HIGH,l:ar,h:(e,r,t)=>a("table",{key:t.k},a("thead",null,a("tr",null,e.L.map((function(n,i){return a("th",{key:i,style:nr(e,i)},r(n,t))})))),a("tbody",null,e.A.map((function(n,i){return a("tr",{key:i},n.map((function(n,i){return a("td",{key:i,style:nr(e,i)},r(n,t))})))}))))},tableSeparator:{t:function(e,r){return r.v?ge.exec(e):null},i:br.HIGH,l:function(){return{type:"tableSeparator"}},h:()=>" | "},text:{t:lr(we),i:br.MIN,l:e=>({S:e[0].replace(re,((e,t)=>r.namedCodesToUnicode[t]?r.namedCodesToUnicode[t]:e))}),h:e=>e.S},textBolded:{t:or(ke),i:br.MED,l:(e,r,t)=>({S:r(e[2],t)}),h:(e,r,t)=>a("strong",{key:t.k},r(e.S,t))},textEmphasized:{t:or(je),i:br.LOW,l:(e,r,t)=>({S:r(e[2],t)}),h:(e,r,t)=>a("em",{key:t.k},r(e.S,t))},textEscaped:{t:or(Oe),i:br.HIGH,l:e=>({S:e[1],type:"text"})},textStrikethroughed:{t:or(Fe),i:br.LOW,l:pr,h:(e,r,t)=>a("del",{key:t.k},r(e.S,t))}};!0!==r.disableParsingRawHTML&&(u.htmlBlock={t:lr(ee),i:br.HIGH,l(e,r,t){const[,a]=e[3].match(De),n=new RegExp(`^${a}`,"gm"),i=e[3].replace(n,""),s=(l=i,Qe.some((e=>e.test(l)))?hr:fr);var l;const u=e[1].toLowerCase(),c=-1!==B.indexOf(u);t.N=t.N||"a"===u;const d=c?e[3]:s(r,i,t);return t.N=!1,{I:o(e[2]),S:d,G:c,H:c?u:e[1]}},h:(e,r,t)=>a(e.H,A({key:t.k},e.I),e.G?e.S:r(e.S,t))},u.htmlSelfClosing={t:lr(ne),i:br.HIGH,l:e=>({I:o(e[2]||""),H:e[1]}),h:(e,r,t)=>a(e.H,A({},e.I,{key:t.k}))});const c=function(e){let r=Object.keys(e);function t(a,n){let i=[],o="";for(;a;){let s=0;for(;s{let{children:r,options:t}=e,a=function(e,r){if(null==e)return{};var t,a,n={},i=Object.keys(e);for(a=0;a=0||(n[t]=e[t]);return n}(e,E);return n.cloneElement(xr(r,t),a)};function kr(e,r){for(var t=0;t=0)continue;t[n]=e[n]}return t}function Dr(e,r){if(typeof e!=="object"||e===null)return e;var t=e[Symbol.toPrimitive];if(t!==undefined){var a=t.call(e,r||"default");if(typeof a!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function Ir(e){var r=Dr(e,"string");return typeof r==="symbol"?r:String(r)}var Ar=["widget"],Er=["widget"],_r=["widget"];function Nr(){return F()}function Br(e){return!Array.isArray(e)?[]:e.map((function(e){return{key:Nr(),item:e}}))}function Ur(e){if(Array.isArray(e)){return e.map((function(e){return e.item}))}return[]}var Rr=function(e){Or(r,e);function r(r){var t;t=e.call(this,r)||this;t._getNewFormDataRow=function(){var e=t.props,r=e.schema,a=e.registry;var n=a.schemaUtils;var o=r.items;if((0,i.isFixedItems)(r)&&(0,i.allowAdditionalItems)(r)){o=r.additionalItems}return n.getDefaultFormState(o)};t.onAddClick=function(e){t._handleAddClick(e)};t.onAddIndexClick=function(e){return function(r){t._handleAddClick(r,e)}};t.onDropIndexClick=function(e){return function(r){if(r){r.preventDefault()}var a=t.props,n=a.onChange,i=a.errorSchema;var o=t.state.keyedFormData;var s;if(i){s={};for(var l in i){var u=parseInt(l);if(ue){(0,x.Z)(s,[u-1],i[l])}}}var c=o.filter((function(r,t){return t!==e}));t.setState({keyedFormData:c,updatedKeyedFormData:true},(function(){return n(Ur(c),s)}))}};t.onReorderClick=function(e,r){return function(a){if(a){a.preventDefault();a.currentTarget.blur()}var n=t.props,i=n.onChange,o=n.errorSchema;var s;if(o){s={};for(var l in o){var u=parseInt(l);if(u==e){(0,x.Z)(s,[r],o[e])}else if(u==r){(0,x.Z)(s,[e],o[r])}else{(0,x.Z)(s,[l],o[u])}}}var c=t.state.keyedFormData;function d(){var t=c.slice();t.splice(e,1);t.splice(r,0,c[e]);return t}var f=d();t.setState({keyedFormData:f},(function(){return i(Ur(f),s)}))}};t.onChangeForIndex=function(e){return function(r,a,n){var i;var o=t.props,s=o.formData,l=o.onChange,u=o.errorSchema;var c=Array.isArray(s)?s:[];var d=c.map((function(t,a){var n=typeof r==="undefined"?null:r;return e===a?n:t}));l(d,u&&u&&Fr({},u,(i={},i[e]=a,i)),n)}};t.onSelectChange=function(e){var r=t.props,a=r.onChange,n=r.idSchema;a(e,undefined,n&&n.$id)};var a=r.formData,n=a===void 0?[]:a;var o=Br(n);t.state={keyedFormData:o,updatedKeyedFormData:false};return t}r.getDerivedStateFromProps=function e(r,t){if(t.updatedKeyedFormData){return{updatedKeyedFormData:false}}var a=Array.isArray(r.formData)?r.formData:[];var n=t.keyedFormData||[];var i=a.length===n.length?n.map((function(e,r){return{key:e.key,item:a[r]}})):Br(a);return{keyedFormData:i}};var t=r.prototype;t.isItemRequired=function e(r){if(Array.isArray(r.type)){return!r.type.includes("null")}return r.type!=="null"};t.canAddItem=function e(r){var t=this.props,a=t.schema,n=t.uiSchema;var o=(0,i.getUiOptions)(n),s=o.addable;if(s!==false){if(a.maxItems!==undefined){s=r.length0,canMoveDown:t=R.length;var u=l&&(0,b.Z)(n.additionalItems)?N.retrieveSchema(n.additionalItems,o):R[t];var f=h.$id+m+t;var v=N.toIdSchema(u,f,o,d,m);var g=l?s.additionalItems||{}:Array.isArray(s.items)?s.items[t]:s.items||{};var y=c?c[t]:undefined;return r.renderArrayFieldItem({key:a,index:t,name:p&&p+"-"+t,canAdd:P,canRemove:l,canMoveUp:t>=R.length+1,canMoveDown:l&&t=0?n[c]:undefined;var f=a>=0?n[a]:undefined;var m=u.sanitizeDataForNewSchema(d,f,o);if(m&&d){m=u.getDefaultFormState(d,m,"excludeObjectChildren")}s(m,undefined,t.getFieldId());t.setState({selectedOption:c})};var a=t.props,n=a.formData,i=a.options,o=a.registry.schemaUtils;var s=i.map((function(e){return o.retrieveSchema(e,n)}));t.state={retrievedOptions:s,selectedOption:t.getMatchingOption(0,n,s)};return t}var t=r.prototype;t.componentDidUpdate=function e(r,t){var a=this.props,n=a.formData,o=a.options,s=a.idSchema;var l=this.state.selectedOption;var u=this.state;if(!(0,i.deepEquals)(r.options,o)){var c=this.props.registry.schemaUtils;var d=o.map((function(e){return c.retrieveSchema(e,n)}));u={selectedOption:l,retrievedOptions:d}}if(!(0,i.deepEquals)(n,r.formData)&&s.$id===r.idSchema.$id){var f=u,m=f.retrievedOptions;var h=this.getMatchingOption(l,n,m);if(t&&h!==l){u={selectedOption:h,retrievedOptions:m}}}if(u!==this.state){this.setState(u)}};t.getMatchingOption=function e(r,t,a){var n=this.props.registry.schemaUtils;var i=n.getClosestMatchingOption(t,a,r);if(i>0){return i}return r||0};t.getFieldId=function e(){var r=this.props,t=r.idSchema,a=r.schema;return""+t.$id+(a.oneOf?"__oneof_select":"__anyof_select")};t.render=function e(){var r=this.props,t=r.name,n=r.baseType,l=r.disabled,u=l===void 0?false:l,c=r.errorSchema,d=c===void 0?{}:c,f=r.formContext,m=r.onBlur,h=r.onFocus,p=r.registry,v=r.schema,g=r.uiSchema;var y=p.widgets,S=p.fields,b=p.translateString;var x=S.SchemaField;var C=this.state,k=C.selectedOption,j=C.retrievedOptions;var F=(0,i.getUiOptions)(g),w=F.widget,T=w===void 0?"select":w,D=F.placeholder,I=F.autofocus,A=F.autocomplete,E=F.title,_=E===void 0?v.title:E,N=Tr(F,qr);var B=(0,i.getWidget)({type:"number"},T,y);var U=(0,o.Z)(d,i.ERRORS_KEY,[]);var R=(0,O.Z)(d,[i.ERRORS_KEY]);var $=k>=0?j[k]||null:null;var P;if($){P=$.type?$:Object.assign({},$,{type:n})}var q=_?i.TranslatableString.TitleOptionPrefix:i.TranslatableString.OptionPrefix;var M=_?[_]:[];var L=j.map((function(e,r){return{label:e.title||b(q,M.concat(String(r+1))),value:r}}));return(0,a.jsxs)("div",{className:"panel panel-default panel-body",children:[(0,a.jsx)("div",{className:"form-group",children:(0,a.jsx)(B,{id:this.getFieldId(),name:""+t+(v.oneOf?"__oneof_select":"__anyof_select"),schema:{type:"number",default:0},onChange:this.onOptionChange,onBlur:m,onFocus:h,disabled:u||(0,s.Z)(L),multiple:false,rawErrors:U,errorSchema:R,value:k>=0?k:undefined,options:Fr({enumOptions:L},N),registry:p,formContext:f,placeholder:D,autocomplete:A,autofocus:I,label:""})}),$!==null&&(0,a.jsx)(x,Fr({},this.props,{schema:P}))]})};return r}(n.Component);var Lr=/\.([0-9]*0)*$/;var Zr=/[0.]0*$/;function Vr(e){var r=e.registry,t=e.onChange,o=e.formData,s=e.value;var l=(0,n.useState)(s),u=l[0],c=l[1];var d=r.fields.StringField;var f=o;var m=(0,n.useCallback)((function(e){c(e);if((""+e).charAt(0)==="."){e="0"+e}var r=typeof e==="string"&&e.match(Lr)?(0,i.asNumber)(e.replace(Zr,"")):(0,i.asNumber)(e);t(r)}),[t]);if(typeof u==="string"&&typeof f==="number"){var h=new RegExp((""+f).replace(".","\\.")+"\\.?0*$");if(u.match(h)){f=u}}return(0,a.jsx)(d,Fr({},e,{formData:f,onChange:m}))}var Wr=function(e){Or(r,e);function r(){var r;for(var t=arguments.length,a=new Array(t),n=0;n0){Y.push("field-error has-error has-danger")}if(o!==null&&o!==void 0&&o.classNames){if(false){}Y.push(o.classNames)}if(C.classNames){Y.push(C.classNames)}var z=(0,a.jsx)(F,{help:K,idSchema:I,schema:T,uiSchema:o,hasErrors:!U&&q&&q.length>0,registry:v});var X=U?undefined:(0,a.jsx)(w,{errors:q,errorSchema:l,idSchema:I,schema:T,uiSchema:o,registry:v});var J={description:(0,a.jsx)(j,{id:(0,i.descriptionId)(V),description:H,schema:T,uiSchema:o,registry:v}),rawDescription:H,help:z,rawHelp:typeof K==="string"?K:undefined,errors:X,rawErrors:U?undefined:q,id:V,label:W,hidden:G,onChange:f,onKeyChange:m,onDropPropertyClick:h,required:p,disabled:_,readonly:N,hideError:U,displayLabel:$,classNames:Y.join(" ").trim(),style:C.style,formContext:S,formData:s,schema:T,uiSchema:o,registry:v};var Q=v.fields.AnyOfField;var ee=v.fields.OneOfField;var re=(o===null||o===void 0?void 0:o["ui:field"])&&(o===null||o===void 0?void 0:o["ui:fieldReplacesAnyOrOneOf"])===true;return(0,a.jsx)(k,Fr({},J,{children:(0,a.jsxs)(a.Fragment,{children:[Z,T.anyOf&&!re&&!x.isSelect(T)&&(0,a.jsx)(Q,{name:d,disabled:_,readonly:N,hideError:U,errorSchema:l,formData:s,formContext:S,idPrefix:u,idSchema:I,idSeparator:c,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:T.anyOf.map((function(e){return x.retrieveSchema((0,b.Z)(e)?e:{},s)})),baseType:T.type,registry:v,schema:T,uiSchema:o}),T.oneOf&&!re&&!x.isSelect(T)&&(0,a.jsx)(ee,{name:d,disabled:_,readonly:N,hideError:U,errorSchema:l,formData:s,formContext:S,idPrefix:u,idSchema:I,idSeparator:c,onBlur:e.onBlur,onChange:e.onChange,onFocus:e.onFocus,options:T.oneOf.map((function(e){return x.retrieveSchema((0,b.Z)(e)?e:{},s)})),baseType:T.type,registry:v,schema:T,uiSchema:o})]})}))}var zr=function(e){Or(r,e);function r(){return e.apply(this,arguments)||this}var t=r.prototype;t.shouldComponentUpdate=function e(r){return!(0,i.deepEquals)(this.props,r)};t.render=function e(){return(0,a.jsx)(Yr,Fr({},this.props))};return r}(n.Component);var Xr=["widget","placeholder"];function Jr(e){var r=e.schema,t=e.name,n=e.uiSchema,o=e.idSchema,s=e.formData,l=e.required,u=e.disabled,c=u===void 0?false:u,d=e.readonly,f=d===void 0?false:d,m=e.autofocus,h=m===void 0?false:m,p=e.onChange,v=e.onBlur,g=e.onFocus,y=e.registry,S=e.rawErrors;var b=r.title,x=r.format;var C=y.widgets,k=y.formContext,j=y.schemaUtils;var F=j.isSelect(r)?(0,i.optionsList)(r):undefined;var O=F?"select":"text";if(x&&(0,i.hasWidget)(r,x,C)){O=x}var w=(0,i.getUiOptions)(n),T=w.widget,D=T===void 0?O:T,I=w.placeholder,A=I===void 0?"":I,E=Tr(w,Xr);var _=(0,i.getWidget)(r,D,C);return(0,a.jsx)(_,{options:Fr({},E,{enumOptions:F}),schema:r,uiSchema:n,id:o.$id,name:t,label:b===undefined?t:b,value:s,onChange:p,onBlur:v,onFocus:g,required:l,disabled:c,readonly:f,formContext:k,autofocus:h,registry:y,placeholder:A,rawErrors:S})}function Qr(e){var r=e.formData,t=e.onChange;(0,n.useEffect)((function(){if(r===undefined){t(null)}}),[r,t]);return null}function et(){return{AnyOfField:Mr,ArrayField:Rr,BooleanField:Pr,NumberField:Vr,ObjectField:Wr,OneOfField:Mr,SchemaField:zr,StringField:Jr,NullField:Qr}}function rt(e){var r=e.idSchema,t=e.description,n=e.registry,o=e.schema,s=e.uiSchema;var l=(0,i.getUiOptions)(s);var u=l.label,c=u===void 0?true:u;if(!t||!c){return null}var d=(0,i.getTemplate)("DescriptionFieldTemplate",n,l);return(0,a.jsx)(d,{id:(0,i.descriptionId)(r),description:t,schema:o,uiSchema:s,registry:n})}function tt(e){var r=e.children,t=e.className,n=e.disabled,i=e.hasToolbar,o=e.hasMoveDown,s=e.hasMoveUp,l=e.hasRemove,u=e.index,c=e.onDropIndexClick,d=e.onReorderClick,f=e.readonly,m=e.registry,h=e.uiSchema;var p=m.templates.ButtonTemplates,v=p.MoveDownButton,g=p.MoveUpButton,y=p.RemoveButton;var S={flex:1,paddingLeft:6,paddingRight:6,fontWeight:"bold"};return(0,a.jsxs)("div",{className:t,children:[(0,a.jsx)("div",{className:i?"col-xs-9":"col-xs-12",children:r}),i&&(0,a.jsx)("div",{className:"col-xs-3 array-item-toolbox",children:(0,a.jsxs)("div",{className:"btn-group",style:{display:"flex",justifyContent:"space-around"},children:[(s||o)&&(0,a.jsx)(g,{style:S,disabled:n||f||!s,onClick:d(u,u-1),uiSchema:h,registry:m}),(s||o)&&(0,a.jsx)(v,{style:S,disabled:n||f||!o,onClick:d(u,u+1),uiSchema:h,registry:m}),l&&(0,a.jsx)(y,{style:S,disabled:n||f,onClick:c(u),uiSchema:h,registry:m})]})})]})}var at=["key"];function nt(e){var r=e.canAdd,t=e.className,n=e.disabled,o=e.idSchema,s=e.uiSchema,l=e.items,u=e.onAddClick,c=e.readonly,d=e.registry,f=e.required,m=e.schema,h=e.title;var p=(0,i.getUiOptions)(s);var v=(0,i.getTemplate)("ArrayFieldDescriptionTemplate",d,p);var g=(0,i.getTemplate)("ArrayFieldItemTemplate",d,p);var y=(0,i.getTemplate)("ArrayFieldTitleTemplate",d,p);var S=d.templates.ButtonTemplates.AddButton;return(0,a.jsxs)("fieldset",{className:t,id:o.$id,children:[(0,a.jsx)(y,{idSchema:o,title:p.title||h,required:f,schema:m,uiSchema:s,registry:d}),(0,a.jsx)(v,{idSchema:o,description:p.description||m.description,schema:m,uiSchema:s,registry:d}),(0,a.jsx)("div",{className:"row array-item-list",children:l&&l.map((function(e){var r=e.key,t=Tr(e,at);return(0,a.jsx)(g,Fr({},t),r)}))}),r&&(0,a.jsx)(S,{className:"array-item-add",onClick:u,disabled:n||c,uiSchema:s,registry:d})]})}function it(e){var r=e.idSchema,t=e.title,n=e.schema,o=e.uiSchema,s=e.required,l=e.registry;var u=(0,i.getUiOptions)(o);var c=u.label,d=c===void 0?true:c;if(!t||!d){return null}var f=(0,i.getTemplate)("TitleFieldTemplate",l,u);return(0,a.jsx)(f,{id:(0,i.titleId)(r),title:t,required:s,schema:n,uiSchema:o,registry:l})}var ot=["id","name","value","readonly","disabled","autofocus","onBlur","onFocus","onChange","onChangeOverride","options","schema","uiSchema","formContext","registry","rawErrors","type"];function st(e){var r=e.id,t=e.value,o=e.readonly,s=e.disabled,l=e.autofocus,u=e.onBlur,c=e.onFocus,d=e.onChange,f=e.onChangeOverride,m=e.options,h=e.schema,p=e.type,v=Tr(e,ot);if(!r){console.log("No id for",e);throw new Error("no id for props "+JSON.stringify(e))}var g=Fr({},v,(0,i.getInputProps)(h,p,m));var y;if(g.type==="number"||g.type==="integer"){y=t||t===0?t:""}else{y=t==null?"":t}var S=(0,n.useCallback)((function(e){var r=e.target.value;return d(r===""?m.emptyValue:r)}),[d,m]);var b=(0,n.useCallback)((function(e){var t=e.target.value;return u(r,t)}),[u,r]);var x=(0,n.useCallback)((function(e){var t=e.target.value;return c(r,t)}),[c,r]);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("input",Fr({id:r,name:r,className:"form-control",readOnly:o,disabled:s,autoFocus:l,value:y},g,{list:h.examples?(0,i.examplesId)(r):undefined,onChange:f||S,onBlur:b,onFocus:x,"aria-describedby":(0,i.ariaDescribedByIds)(r,!!h.examples)})),Array.isArray(h.examples)&&(0,a.jsx)("datalist",{id:(0,i.examplesId)(r),children:h.examples.concat(h["default"]&&!h.examples.includes(h["default"])?[h["default"]]:[]).map((function(e){return(0,a.jsx)("option",{value:e},e)}))},"datalist_"+r)]})}function lt(e){var r=e.uiSchema;var t=(0,i.getSubmitButtonOptions)(r),n=t.submitText,o=t.norender,s=t.props,l=s===void 0?{}:s;if(o){return null}return(0,a.jsx)("div",{children:(0,a.jsx)("button",Fr({type:"submit"},l,{className:"btn btn-info "+l.className,children:n}))})}var ut=["iconType","icon","className","uiSchema","registry"];function ct(e){var r=e.iconType,t=r===void 0?"default":r,n=e.icon,i=e.className,o=Tr(e,ut);return(0,a.jsx)("button",Fr({type:"button",className:"btn btn-"+t+" "+i},o,{children:(0,a.jsx)("i",{className:"glyphicon glyphicon-"+n})}))}function dt(e){var r=e.registry.translateString;return(0,a.jsx)(ct,Fr({title:r(i.TranslatableString.MoveDownButton),className:"array-item-move-down"},e,{icon:"arrow-down"}))}function ft(e){var r=e.registry.translateString;return(0,a.jsx)(ct,Fr({title:r(i.TranslatableString.MoveUpButton),className:"array-item-move-up"},e,{icon:"arrow-up"}))}function mt(e){var r=e.registry.translateString;return(0,a.jsx)(ct,Fr({title:r(i.TranslatableString.RemoveButton),className:"array-item-remove"},e,{iconType:"danger",icon:"remove"}))}function ht(e){var r=e.className,t=e.onClick,n=e.disabled,o=e.registry;var s=o.translateString;return(0,a.jsx)("div",{className:"row",children:(0,a.jsx)("p",{className:"col-xs-3 col-xs-offset-9 text-right "+r,children:(0,a.jsx)(ct,{iconType:"info",icon:"plus",className:"btn-add col-xs-12",title:s(i.TranslatableString.AddButton),onClick:t,disabled:n,registry:o})})})}function pt(){return{SubmitButton:lt,AddButton:ht,MoveDownButton:dt,MoveUpButton:ft,RemoveButton:mt}}function vt(e){var r=e.id,t=e.description;if(!t){return null}if(typeof t==="string"){return(0,a.jsx)("p",{id:r,className:"field-description",children:t})}else{return(0,a.jsx)("div",{id:r,className:"field-description",children:t})}}function gt(e){var r=e.errors,t=e.registry;var n=t.translateString;return(0,a.jsxs)("div",{className:"panel panel-danger errors",children:[(0,a.jsx)("div",{className:"panel-heading",children:(0,a.jsx)("h3",{className:"panel-title",children:n(i.TranslatableString.ErrorsLabel)})}),(0,a.jsx)("ul",{className:"list-group",children:r.map((function(e,r){return(0,a.jsx)("li",{className:"list-group-item text-danger",children:e.stack},r)}))})]})}var yt="*";function St(e){var r=e.label,t=e.required,n=e.id;if(!r){return null}return(0,a.jsxs)("label",{className:"control-label",htmlFor:n,children:[r,t&&(0,a.jsx)("span",{className:"required",children:yt})]})}function bt(e){var r=e.id,t=e.label,n=e.children,o=e.errors,s=e.help,l=e.description,u=e.hidden,c=e.required,d=e.displayLabel,f=e.registry,m=e.uiSchema;var h=(0,i.getUiOptions)(m);var p=(0,i.getTemplate)("WrapIfAdditionalTemplate",f,h);if(u){return(0,a.jsx)("div",{className:"hidden",children:n})}return(0,a.jsxs)(p,Fr({},e,{children:[d&&(0,a.jsx)(St,{label:t,required:c,id:r}),d&&l?l:null,n,o,s]}))}function xt(e){var r=e.errors,t=r===void 0?[]:r,n=e.idSchema;if(t.length===0){return null}var o=(0,i.errorId)(n);return(0,a.jsx)("div",{children:(0,a.jsx)("ul",{id:o,className:"error-detail bs-callout bs-callout-info",children:t.filter((function(e){return!!e})).map((function(e,r){return(0,a.jsx)("li",{className:"text-danger",children:e},r)}))})})}function Ct(e){var r=e.idSchema,t=e.help;if(!t){return null}var n=(0,i.helpId)(r);if(typeof t==="string"){return(0,a.jsx)("p",{id:n,className:"help-block",children:t})}return(0,a.jsx)("div",{id:n,className:"help-block",children:t})}function kt(e){var r=e.description,t=e.disabled,n=e.formData,o=e.idSchema,s=e.onAddClick,l=e.properties,u=e.readonly,c=e.registry,d=e.required,f=e.schema,m=e.title,h=e.uiSchema;var p=(0,i.getUiOptions)(h);var v=(0,i.getTemplate)("TitleFieldTemplate",c,p);var g=(0,i.getTemplate)("DescriptionFieldTemplate",c,p);var y=c.templates.ButtonTemplates.AddButton;return(0,a.jsxs)("fieldset",{id:o.$id,children:[(p.title||m)&&(0,a.jsx)(v,{id:(0,i.titleId)(o),title:p.title||m,required:d,schema:f,uiSchema:h,registry:c}),(p.description||r)&&(0,a.jsx)(g,{id:(0,i.descriptionId)(o),description:p.description||r,schema:f,uiSchema:h,registry:c}),l.map((function(e){return e.content})),(0,i.canExpand)(f,h,n)&&(0,a.jsx)(y,{className:"object-property-expand",onClick:s(f),disabled:t||u,uiSchema:h,registry:c})]})}var jt="*";function Ft(e){var r=e.id,t=e.title,n=e.required;return(0,a.jsxs)("legend",{id:r,children:[t,n&&(0,a.jsx)("span",{className:"required",children:jt})]})}function Ot(e){var r=e.schema,t=e.idSchema,n=e.reason,o=e.registry;var s=o.translateString;var l=i.TranslatableString.UnsupportedField;var u=[];if(t&&t.$id){l=i.TranslatableString.UnsupportedFieldWithId;u.push(t.$id)}if(n){l=l===i.TranslatableString.UnsupportedField?i.TranslatableString.UnsupportedFieldWithReason:i.TranslatableString.UnsupportedFieldWithIdAndReason;u.push(n)}return(0,a.jsxs)("div",{className:"unsupported-field",children:[(0,a.jsx)("p",{children:(0,a.jsx)(Cr,{children:s(l,u)})}),r&&(0,a.jsx)("pre",{children:JSON.stringify(r,null,2)})]})}function wt(e){var r=e.id,t=e.classNames,n=e.style,o=e.disabled,s=e.label,l=e.onKeyChange,u=e.onDropPropertyClick,c=e.readonly,d=e.required,f=e.schema,m=e.children,h=e.uiSchema,p=e.registry;var v=p.templates,g=p.translateString;var y=v.ButtonTemplates.RemoveButton;var S=g(i.TranslatableString.KeyLabel,[s]);var b=i.ADDITIONAL_PROPERTY_FLAG in f;if(!b){return(0,a.jsx)("div",{className:t,style:n,children:m})}return(0,a.jsx)("div",{className:t,style:n,children:(0,a.jsxs)("div",{className:"row",children:[(0,a.jsx)("div",{className:"col-xs-5 form-additional",children:(0,a.jsxs)("div",{className:"form-group",children:[(0,a.jsx)(St,{label:S,required:d,id:r+"-key"}),(0,a.jsx)("input",{className:"form-control",type:"text",id:r+"-key",onBlur:function e(r){return l(r.target.value)},defaultValue:s})]})}),(0,a.jsx)("div",{className:"form-additional form-group col-xs-5",children:m}),(0,a.jsx)("div",{className:"col-xs-2",children:(0,a.jsx)(y,{className:"array-item-remove btn-block",style:{border:"0"},disabled:o||c,onClick:u(s),uiSchema:h,registry:p})})]})})}function Tt(){return{ArrayFieldDescriptionTemplate:rt,ArrayFieldItemTemplate:tt,ArrayFieldTemplate:nt,ArrayFieldTitleTemplate:it,ButtonTemplates:pt(),BaseInputTemplate:st,DescriptionFieldTemplate:vt,ErrorListTemplate:gt,FieldTemplate:bt,FieldErrorTemplate:xt,FieldHelpTemplate:Ct,ObjectFieldTemplate:kt,TitleFieldTemplate:Ft,UnsupportedFieldTemplate:Ot,WrapIfAdditionalTemplate:wt}}function Dt(e,r){var t=[];for(var a=e;a<=r;a++){t.push({value:a,label:(0,i.pad)(a,2)})}return t}function It(e){return Object.values(e).every((function(e){return e!==-1}))}function At(e,r,t){if(t===void 0){t=[1900,(new Date).getFullYear()+2]}var a=e.year,n=e.month,i=e.day,o=e.hour,s=e.minute,l=e.second;var u=[{type:"year",range:t,value:a},{type:"month",range:[1,12],value:n},{type:"day",range:[1,31],value:i}];if(r){u.push({type:"hour",range:[0,23],value:o},{type:"minute",range:[0,59],value:s},{type:"second",range:[0,59],value:l})}return u}function Et(e){var r=e.type,t=e.range,n=e.value,o=e.select,s=e.rootId,l=e.name,u=e.disabled,c=e.readonly,d=e.autofocus,f=e.registry,m=e.onBlur,h=e.onFocus;var p=s+"_"+r;var v=f.widgets.SelectWidget;return(0,a.jsx)(v,{schema:{type:"integer"},id:p,name:l,className:"form-control",options:{enumOptions:Dt(t[0],t[1])},placeholder:r,value:n,disabled:u,readonly:c,autofocus:d,onChange:function e(t){return o(r,t)},onBlur:m,onFocus:h,registry:f,label:"","aria-describedby":(0,i.ariaDescribedByIds)(s)})}function _t(e){var r=e.time,t=r===void 0?false:r,o=e.disabled,s=o===void 0?false:o,l=e.readonly,u=l===void 0?false:l,c=e.autofocus,d=c===void 0?false:c,f=e.options,m=e.id,h=e.name,p=e.registry,v=e.onBlur,g=e.onFocus,y=e.onChange,S=e.value;var b=p.translateString;var x=(0,n.useReducer)((function(e,r){return Fr({},e,r)}),(0,i.parseDateString)(S,t)),C=x[0],k=x[1];(0,n.useEffect)((function(){if(S&&S!==(0,i.toDateString)(C,t)){k((0,i.parseDateString)(S,t))}}),[S,C,t]);(0,n.useEffect)((function(){if(It(C)){y((0,i.toDateString)(C,t))}}),[C,t,y]);var j=(0,n.useCallback)((function(e,r){var t;k((t={},t[e]=r,t))}),[]);var F=(0,n.useCallback)((function(e){e.preventDefault();if(s||u){return}var r=(0,i.parseDateString)((new Date).toJSON(),t);k(r)}),[s,u,t]);var O=(0,n.useCallback)((function(e){e.preventDefault();if(s||u){return}k((0,i.parseDateString)("",t));y(undefined)}),[s,u,t,y]);return(0,a.jsxs)("ul",{className:"list-inline",children:[At(C,t,f.yearsRange).map((function(e,r){return(0,a.jsx)("li",{className:"list-inline-item",children:(0,a.jsx)(Et,Fr({rootId:m,name:h,select:j},e,{disabled:s,readonly:u,registry:p,onBlur:v,onFocus:g,autofocus:d&&r===0}))},r)})),(f.hideNowButton!=="undefined"?!f.hideNowButton:true)&&(0,a.jsx)("li",{className:"list-inline-item",children:(0,a.jsx)("a",{href:"#",className:"btn btn-info btn-now",onClick:F,children:b(i.TranslatableString.NowLabel)})}),(f.hideClearButton!=="undefined"?!f.hideClearButton:true)&&(0,a.jsx)("li",{className:"list-inline-item",children:(0,a.jsx)("a",{href:"#",className:"btn btn-warning btn-clear",onClick:O,children:b(i.TranslatableString.ClearLabel)})})]})}var Nt=["time"];function Bt(e){var r=e.time,t=r===void 0?true:r,n=Tr(e,Nt);var i=n.registry.widgets.AltDateWidget;return(0,a.jsx)(i,Fr({time:t},n))}function Ut(e){var r=e.schema,t=e.uiSchema,o=e.options,s=e.id,l=e.value,u=e.disabled,c=e.readonly,d=e.label,f=e.autofocus,m=f===void 0?false:f,h=e.onBlur,p=e.onFocus,v=e.onChange,g=e.registry;var y=(0,i.getTemplate)("DescriptionFieldTemplate",g,o);var S=(0,i.schemaRequiresTrueValue)(r);var b=(0,n.useCallback)((function(e){return v(e.target.checked)}),[v]);var x=(0,n.useCallback)((function(e){return h(s,e.target.checked)}),[h,s]);var C=(0,n.useCallback)((function(e){return p(s,e.target.checked)}),[p,s]);return(0,a.jsxs)("div",{className:"checkbox "+(u||c?"disabled":""),children:[r.description&&(0,a.jsx)(y,{id:(0,i.descriptionId)(s),description:r.description,schema:r,uiSchema:t,registry:g}),(0,a.jsxs)("label",{children:[(0,a.jsx)("input",{type:"checkbox",id:s,name:s,checked:typeof l==="undefined"?false:l,required:S,disabled:u||c,autoFocus:m,onChange:b,onBlur:x,onFocus:C,"aria-describedby":(0,i.ariaDescribedByIds)(s)}),(0,a.jsx)("span",{children:d})]})]})}function Rt(e){var r=e.id,t=e.disabled,o=e.options,s=o.inline,l=s===void 0?false:s,u=o.enumOptions,c=o.enumDisabled,d=o.emptyValue,f=e.value,m=e.autofocus,h=m===void 0?false:m,p=e.readonly,v=e.onChange,g=e.onBlur,y=e.onFocus;var S=Array.isArray(f)?f:[f];var b=(0,n.useCallback)((function(e){var t=e.target.value;return g(r,(0,i.enumOptionsValueForIndex)(t,u,d))}),[g,r]);var x=(0,n.useCallback)((function(e){var t=e.target.value;return y(r,(0,i.enumOptionsValueForIndex)(t,u,d))}),[y,r]);return(0,a.jsx)("div",{className:"checkboxes",id:r,children:Array.isArray(u)&&u.map((function(e,n){var o=(0,i.enumOptionsIsSelected)(e.value,S);var s=Array.isArray(c)&&c.indexOf(e.value)!==-1;var d=t||s||p?"disabled":"";var f=function e(r){if(r.target.checked){v((0,i.enumOptionsSelectValue)(n,S,u))}else{v((0,i.enumOptionsDeselectValue)(n,S,u))}};var m=(0,a.jsxs)("span",{children:[(0,a.jsx)("input",{type:"checkbox",id:(0,i.optionId)(r,n),name:r,checked:o,value:String(n),disabled:t||s||p,autoFocus:h&&n===0,onChange:f,onBlur:b,onFocus:x,"aria-describedby":(0,i.ariaDescribedByIds)(r)}),(0,a.jsx)("span",{children:e.label})]});return l?(0,a.jsx)("label",{className:"checkbox-inline "+d,children:m},n):(0,a.jsx)("div",{className:"checkbox "+d,children:(0,a.jsx)("label",{children:m})},n)}))})}function $t(e){var r=e.disabled,t=e.readonly,n=e.options,o=e.registry;var s=(0,i.getTemplate)("BaseInputTemplate",o,n);return(0,a.jsx)(s,Fr({type:"color"},e,{disabled:r||t}))}function Pt(e){var r=e.onChange,t=e.options,o=e.registry;var s=(0,i.getTemplate)("BaseInputTemplate",o,t);var l=(0,n.useCallback)((function(e){return r(e||undefined)}),[r]);return(0,a.jsx)(s,Fr({type:"date"},e,{onChange:l}))}function qt(e){var r=e.onChange,t=e.value,n=e.options,o=e.registry;var s=(0,i.getTemplate)("BaseInputTemplate",o,n);return(0,a.jsx)(s,Fr({type:"datetime-local"},e,{value:(0,i.utcToLocal)(t),onChange:function e(t){return r((0,i.localToUTC)(t))}}))}function Mt(e){var r=e.options,t=e.registry;var n=(0,i.getTemplate)("BaseInputTemplate",t,r);return(0,a.jsx)(n,Fr({type:"email"},e))}function Lt(e,r){if(e===null){return null}return e.replace(";base64",";name="+encodeURIComponent(r)+";base64")}function Zt(e){var r=e.name,t=e.size,a=e.type;return new Promise((function(n,i){var o=new window.FileReader;o.onerror=i;o.onload=function(e){var i;if(typeof((i=e.target)===null||i===void 0?void 0:i.result)==="string"){n({dataURL:Lt(e.target.result,r),name:r,size:t,type:a})}else{n({dataURL:null,name:r,size:t,type:a})}};o.readAsDataURL(e)}))}function Vt(e){return Promise.all(Array.from(e).map(Zt))}function Wt(e){var r=e.filesInfo,t=e.registry;if(r.length===0){return null}var n=t.translateString;return(0,a.jsx)("ul",{className:"file-info",children:r.map((function(e,r){var t=e.name,o=e.size,s=e.type;return(0,a.jsx)("li",{children:(0,a.jsx)(Cr,{children:n(i.TranslatableString.FilesInfo,[t,s,String(o)])})},r)}))})}function Ht(e){return e.filter((function(e){return e})).map((function(e){var r=(0,i.dataURItoBlob)(e),t=r.blob,a=r.name;return{name:a,size:t.size,type:t.type}}))}function Kt(e){var r=e.disabled,t=e.readonly,o=e.multiple,s=e.onChange,l=e.value,u=e.options,c=e.registry;var d=(0,i.getTemplate)("BaseInputTemplate",c,u);var f=(0,n.useMemo)((function(){return Array.isArray(l)?Ht(l):Ht([l])}),[l]);var m=(0,n.useState)(f),h=m[0],p=m[1];var v=(0,n.useCallback)((function(e){if(!e.target.files){return}Vt(e.target.files).then((function(e){p(e);var r=e.map((function(e){return e.dataURL}));if(o){s(r)}else{s(r[0])}}))}),[o,s]);return(0,a.jsxs)("div",{children:[(0,a.jsx)(d,Fr({},e,{disabled:r||t,type:"file",onChangeOverride:v,value:"",accept:u.accept?String(u.accept):undefined})),(0,a.jsx)(Wt,{filesInfo:h,registry:c})]})}function Gt(e){var r=e.id,t=e.value;return(0,a.jsx)("input",{type:"hidden",id:r,name:r,value:typeof t==="undefined"?"":t})}function Yt(e){var r=e.options,t=e.registry;var n=(0,i.getTemplate)("BaseInputTemplate",t,r);return(0,a.jsx)(n,Fr({type:"password"},e))}function zt(e){var r=e.options,t=e.value,o=e.required,s=e.disabled,l=e.readonly,u=e.autofocus,c=u===void 0?false:u,d=e.onBlur,f=e.onFocus,m=e.onChange,h=e.id;var p=Math.random().toString();var v=r.enumOptions,g=r.enumDisabled,y=r.inline,S=r.emptyValue;var b=(0,n.useCallback)((function(e){var r=e.target.value;return d(h,(0,i.enumOptionsValueForIndex)(r,v,S))}),[d,h]);var x=(0,n.useCallback)((function(e){var r=e.target.value;return f(h,(0,i.enumOptionsValueForIndex)(r,v,S))}),[f,h]);return(0,a.jsx)("div",{className:"field-radio-group",id:h,children:Array.isArray(v)&&v.map((function(e,r){var n=(0,i.enumOptionsIsSelected)(e.value,t);var u=Array.isArray(g)&&g.indexOf(e.value)!==-1;var d=s||u||l?"disabled":"";var f=function r(){return m(e.value)};var v=(0,a.jsxs)("span",{children:[(0,a.jsx)("input",{type:"radio",id:(0,i.optionId)(h,r),checked:n,name:p,required:o,value:String(r),disabled:s||u||l,autoFocus:c&&r===0,onChange:f,onBlur:b,onFocus:x,"aria-describedby":(0,i.ariaDescribedByIds)(h)}),(0,a.jsx)("span",{children:e.label})]});return y?(0,a.jsx)("label",{className:"radio-inline "+d,children:v},r):(0,a.jsx)("div",{className:"radio "+d,children:(0,a.jsx)("label",{children:v})},r)}))})}function Xt(e){var r=e.value,t=e.registry.templates.BaseInputTemplate;return(0,a.jsxs)("div",{className:"field-range-wrapper",children:[(0,a.jsx)(t,Fr({type:"range"},e)),(0,a.jsx)("span",{className:"range-view",children:r})]})}function Jt(e,r){if(r){return Array.from(e.target.options).slice().filter((function(e){return e.selected})).map((function(e){return e.value}))}return e.target.value}function Qt(e){var r=e.schema,t=e.id,o=e.options,s=e.value,l=e.required,u=e.disabled,c=e.readonly,d=e.multiple,f=d===void 0?false:d,m=e.autofocus,h=m===void 0?false:m,p=e.onChange,v=e.onBlur,g=e.onFocus,y=e.placeholder;var S=o.enumOptions,b=o.enumDisabled,x=o.emptyValue;var C=f?[]:"";var k=(0,n.useCallback)((function(e){var r=Jt(e,f);return g(t,(0,i.enumOptionsValueForIndex)(r,S,x))}),[g,t,r,f,o]);var j=(0,n.useCallback)((function(e){var r=Jt(e,f);return v(t,(0,i.enumOptionsValueForIndex)(r,S,x))}),[v,t,r,f,o]);var F=(0,n.useCallback)((function(e){var r=Jt(e,f);return p((0,i.enumOptionsValueForIndex)(r,S,x))}),[p,r,f,o]);var O=(0,i.enumOptionsIndexForValue)(s,S,f);return(0,a.jsxs)("select",{id:t,name:t,multiple:f,className:"form-control",value:typeof O==="undefined"?C:O,required:l,disabled:u||c,autoFocus:h,onBlur:j,onFocus:k,onChange:F,"aria-describedby":(0,i.ariaDescribedByIds)(t),children:[!f&&r["default"]===undefined&&(0,a.jsx)("option",{value:"",children:y}),Array.isArray(S)&&S.map((function(e,r){var t=e.value,n=e.label;var i=b&&b.indexOf(t)!==-1;return(0,a.jsx)("option",{value:String(r),disabled:i,children:n},r)}))]})}function ea(e){var r=e.id,t=e.options,o=t===void 0?{}:t,s=e.placeholder,l=e.value,u=e.required,c=e.disabled,d=e.readonly,f=e.autofocus,m=f===void 0?false:f,h=e.onChange,p=e.onBlur,v=e.onFocus;var g=(0,n.useCallback)((function(e){var r=e.target.value;return h(r===""?o.emptyValue:r)}),[h,o.emptyValue]);var y=(0,n.useCallback)((function(e){var t=e.target.value;return p(r,t)}),[p,r]);var S=(0,n.useCallback)((function(e){var t=e.target.value;return v(r,t)}),[r,v]);return(0,a.jsx)("textarea",{id:r,name:r,className:"form-control",value:l?l:"",placeholder:s,required:u,disabled:c,readOnly:d,autoFocus:m,rows:o.rows,onBlur:y,onFocus:S,onChange:g,"aria-describedby":(0,i.ariaDescribedByIds)(r)})}ea.defaultProps={autofocus:false,options:{}};function ra(e){var r=e.options,t=e.registry;var n=(0,i.getTemplate)("BaseInputTemplate",t,r);return(0,a.jsx)(n,Fr({},e))}function ta(e){var r=e.options,t=e.registry;var n=(0,i.getTemplate)("BaseInputTemplate",t,r);return(0,a.jsx)(n,Fr({type:"url"},e))}function aa(e){var r=e.options,t=e.registry;var n=(0,i.getTemplate)("BaseInputTemplate",t,r);return(0,a.jsx)(n,Fr({type:"number"},e))}function na(){return{PasswordWidget:Yt,RadioWidget:zt,UpDownWidget:aa,RangeWidget:Xt,SelectWidget:Qt,TextWidget:ra,DateWidget:Pt,DateTimeWidget:qt,AltDateWidget:_t,AltDateTimeWidget:Bt,EmailWidget:Mt,URLWidget:ta,TextareaWidget:ea,HiddenWidget:Gt,ColorWidget:$t,FileWidget:Kt,CheckboxWidget:Ut,CheckboxesWidget:Rt}}function ia(){return{fields:et(),templates:Tt(),widgets:na(),rootSchema:{},formContext:{},translateString:i.englishStringTranslator}}var oa=function(e){Or(r,e);function r(r){var t;t=e.call(this,r)||this;t.formElement=void 0;t.getUsedFormData=function(e,r){if(r.length===0&&typeof e!=="object"){return e}var t=y(e,r);if(Array.isArray(e)){return Object.keys(t).map((function(e){return t[e]}))}return t};t.getFieldNames=function(e,r){var t=function e(t,a,n){if(a===void 0){a=[]}if(n===void 0){n=[[]]}Object.keys(t).forEach((function(l){if(typeof t[l]==="object"){var u=n.map((function(e){return[].concat(e,[l])}));if(t[l][i.RJSF_ADDITONAL_PROPERTIES_FLAG]&&t[l][i.NAME_KEY]!==""){a.push(t[l][i.NAME_KEY])}else{e(t[l],a,u)}}else if(l===i.NAME_KEY&&t[l]!==""){n.forEach((function(e){var t=(0,o.Z)(r,e);if(typeof t!=="object"||(0,s.Z)(t)){a.push(e)}}))}}));return a};return t(e)};t.onChange=function(e,r,a){var n=t.props,o=n.extraErrors,s=n.omitExtraData,l=n.liveOmit,u=n.noValidate,c=n.liveValidate,d=n.onChange;var f=t.state,m=f.schemaUtils,h=f.schema;if((0,i.isObject)(e)||Array.isArray(e)){var p=t.getStateFromProps(t.props,e);e=p.formData}var v=!u&&c;var g={formData:e,schema:h};var y=e;if(s===true&&l===true){var S=m.retrieveSchema(h,e);var b=m.toPathSchema(S,"",e);var x=t.getFieldNames(b,e);y=t.getUsedFormData(e,x);g={formData:y}}if(v){var C=t.validate(y);var k=C.errors;var j=C.errorSchema;var F=k;var O=j;if(o){var w=m.mergeValidationData(C,o);j=w.errorSchema;k=w.errors}g={formData:y,errors:k,errorSchema:j,schemaValidationErrors:F,schemaValidationErrorSchema:O}}else if(!u&&r){var T=o?(0,i.mergeObjects)(r,o,"preventDuplicates"):r;g={formData:y,errorSchema:T,errors:m.getValidator().toErrorList(T)}}t.setState(g,(function(){return d&&d(Fr({},t.state,g),a)}))};t.onBlur=function(e,r){var a=t.props.onBlur;if(a){a(e,r)}};t.onFocus=function(e,r){var a=t.props.onFocus;if(a){a(e,r)}};t.onSubmit=function(e){e.preventDefault();if(e.target!==e.currentTarget){return}e.persist();var r=t.props,a=r.omitExtraData,n=r.extraErrors,i=r.noValidate,o=r.onSubmit;var s=t.state.formData;var l=t.state,u=l.schema,c=l.schemaUtils;if(a===true){var d=c.retrieveSchema(u,s);var f=c.toPathSchema(d,"",s);var m=t.getFieldNames(f,s);s=t.getUsedFormData(s,m)}if(i||t.validateForm()){var h=n||{};var p=n?c.getValidator().toErrorList(n):[];t.setState({formData:s,errors:p,errorSchema:h,schemaValidationErrors:[],schemaValidationErrorSchema:{}},(function(){if(o){o(Fr({},t.state,{formData:s,status:"submitted"}),e)}}))}};if(!r.validator){throw new Error("A validator is required for Form functionality to work")}t.state=t.getStateFromProps(r,r.formData);if(t.props.onChange&&!(0,i.deepEquals)(t.state.formData,t.props.formData)){t.props.onChange(t.state)}t.formElement=(0,n.createRef)();return t}var t=r.prototype;t.UNSAFE_componentWillReceiveProps=function e(r){var t=this.getStateFromProps(r,r.formData);if(!(0,i.deepEquals)(t.formData,r.formData)&&!(0,i.deepEquals)(t.formData,this.state.formData)&&r.onChange){r.onChange(t)}this.setState(t)};t.getStateFromProps=function e(r,t){var a=this.state||{};var n="schema"in r?r.schema:this.props.schema;var o=("uiSchema"in r?r.uiSchema:this.props.uiSchema)||{};var s=typeof t!=="undefined";var l="liveValidate"in r?r.liveValidate:this.props.liveValidate;var u=s&&!r.noValidate&&l;var c=n;var d=a.schemaUtils;if(!d||d.doesSchemaUtilsDiffer(r.validator,c)){d=(0,i.createSchemaUtils)(r.validator,c)}var f=d.getDefaultFormState(n,t);var m=d.retrieveSchema(n,f);var h=function e(){if(r.noValidate){return{errors:[],errorSchema:{}}}else if(!r.liveValidate){return{errors:a.schemaValidationErrors||[],errorSchema:a.schemaValidationErrorSchema||{}}}return{errors:a.errors||[],errorSchema:a.errorSchema||{}}};var p;var v;var g=a.schemaValidationErrors;var y=a.schemaValidationErrorSchema;if(u){var S=this.validate(f,n,d);p=S.errors;v=S.errorSchema;g=p;y=v}else{var b=h();p=b.errors;v=b.errorSchema}if(r.extraErrors){var x=d.mergeValidationData({errorSchema:v,errors:p},r.extraErrors);v=x.errorSchema;p=x.errors}var C=d.toIdSchema(m,o["ui:rootFieldId"],f,r.idPrefix,r.idSeparator);var k={schemaUtils:d,schema:n,uiSchema:o,idSchema:C,formData:f,edit:s,errors:p,errorSchema:v,schemaValidationErrors:g,schemaValidationErrorSchema:y};return k};t.shouldComponentUpdate=function e(r,t){return(0,i.shouldRender)(this,r,t)};t.validate=function e(r,t,a){if(t===void 0){t=this.props.schema}var n=a?a:this.state.schemaUtils;var i=this.props,o=i.customValidate,s=i.transformErrors,l=i.uiSchema;var u=n.retrieveSchema(t,r);return n.getValidator().validateFormData(r,u,o,s,l)};t.renderErrors=function e(r){var t=this.state,n=t.errors,o=t.errorSchema,s=t.schema,l=t.uiSchema;var u=this.props.formContext;var c=(0,i.getUiOptions)(l);var d=(0,i.getTemplate)("ErrorListTemplate",r,c);if(n&&n.length){return(0,a.jsx)(d,{errors:n,errorSchema:o||{},schema:s,uiSchema:l,formContext:u,registry:r})}return null};t.getRegistry=function e(){var r;var t=this.props.translateString;var a=this.state.schemaUtils;var n=ia(),i=n.fields,o=n.templates,s=n.widgets,l=n.formContext,u=n.translateString;return{fields:Fr({},i,this.props.fields),templates:Fr({},o,this.props.templates,{ButtonTemplates:Fr({},o.ButtonTemplates,(r=this.props.templates)===null||r===void 0?void 0:r.ButtonTemplates)}),widgets:Fr({},s,this.props.widgets),rootSchema:this.props.schema,formContext:this.props.formContext||l,schemaUtils:a,translateString:t||u}};t.submit=function e(){if(this.formElement.current){this.formElement.current.dispatchEvent(new CustomEvent("submit",{cancelable:true}));this.formElement.current.requestSubmit()}};t.focusOnError=function e(r){var t=this.props,a=t.idPrefix,n=a===void 0?"root":a,i=t.idSeparator,o=i===void 0?"_":i;var s=r.property;var l=(0,S.Z)(s);if(l[0]===""){l[0]=n}else{l.unshift(n)}var u=l.join(o);var c=this.formElement.current.elements[u];if(!c){c=this.formElement.current.querySelector("input[id^="+u)}if(c){c.focus()}};t.validateForm=function e(){var r=this.props,t=r.extraErrors,a=r.focusOnFirstError,n=r.onError;var i=this.state.formData;var o=this.state.schemaUtils;var s=this.validate(i);var l=s.errors;var u=s.errorSchema;var c=l;var d=u;if(l.length>0){if(t){var f=o.mergeValidationData(s,t);u=f.errorSchema;l=f.errors}if(a){this.focusOnError(s.errors[0])}this.setState({errors:l,errorSchema:u,schemaValidationErrors:c,schemaValidationErrorSchema:d},(function(){if(n){n(l)}else{console.error("Form validation failed",l)}}));return false}return true};t.render=function e(){var r=this.props,t=r.children,n=r.id,i=r.idPrefix,o=r.idSeparator,s=r.className,l=s===void 0?"":s,u=r.tagName,c=r.name,d=r.method,f=r.target,m=r.action,h=r.autoComplete,p=r.enctype,v=r.acceptcharset,g=r.noHtml5Validate,y=g===void 0?false:g,S=r.disabled,b=S===void 0?false:S,x=r.readonly,C=x===void 0?false:x,k=r.formContext,j=r.showErrorList,F=j===void 0?"top":j,O=r._internalFormWrapper;var w=this.state,T=w.schema,D=w.uiSchema,I=w.formData,A=w.errorSchema,E=w.idSchema;var _=this.getRegistry();var N=_.fields.SchemaField;var B=_.templates.ButtonTemplates.SubmitButton;var U=O?u:undefined;var R=O||u||"form";return(0,a.jsxs)(R,{className:l?l:"rjsf",id:n,name:c,method:d,target:f,action:m,autoComplete:h,encType:p,acceptCharset:v,noValidate:y,onSubmit:this.onSubmit,as:U,ref:this.formElement,children:[F==="top"&&this.renderErrors(_),(0,a.jsx)(N,{name:"",schema:T,uiSchema:D,errorSchema:A,idSchema:E,idPrefix:i,idSeparator:o,formContext:k,formData:I,onChange:this.onChange,onBlur:this.onBlur,onFocus:this.onFocus,registry:_,disabled:b,readonly:C}),t?t:(0,a.jsx)(B,{uiSchema:D,registry:_}),F==="bottom"&&this.renderErrors(_)]})};return r}(n.Component);var sa=null&&["fields","widgets","templates"];function la(e){return forwardRef((function(r,t){var a,n;var i=r.fields,o=r.widgets,s=r.templates,l=Tr(r,sa);i=Fr({},e===null||e===void 0?void 0:e.fields,i);o=Fr({},e===null||e===void 0?void 0:e.widgets,o);s=Fr({},e===null||e===void 0?void 0:e.templates,s,{ButtonTemplates:Fr({},e===null||e===void 0?void 0:(a=e.templates)===null||a===void 0?void 0:a.ButtonTemplates,(n=s)===null||n===void 0?void 0:n.ButtonTemplates)});return jsx(oa,Fr({},e,l,{fields:i,widgets:o,templates:s,ref:t}))}))}},10859:(e,r,t)=>{t.r(r);t.d(r,{Cache:()=>y,FreeStyle:()=>k,Rule:()=>x,Selector:()=>S,Style:()=>b,create:()=>j});let a=0;const n=Object.create(null);const i=["animation-iteration-count","border-image-outset","border-image-slice","border-image-width","box-flex","box-flex-group","box-ordinal-group","column-count","columns","counter-increment","counter-reset","flex","flex-grow","flex-positive","flex-shrink","flex-negative","flex-order","font-weight","grid-area","grid-column","grid-column-end","grid-column-span","grid-column-start","grid-row","grid-row-end","grid-row-span","grid-row-start","line-clamp","line-height","opacity","order","orphans","tab-size","widows","z-index","zoom","fill-opacity","flood-opacity","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-miterlimit","stroke-opacity","stroke-width"];for(const F of i){for(const e of["-webkit-","-ms-","-moz-","-o-",""]){n[e+F]=true}}function o(e){return e.replace(/[ !#$%&()*+,./;<=>?@[\]^`{|}~"'\\]/g,"\\$&")}function s(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`)).replace(/^ms-/,"-ms-")}function l(e){let r=5381;let t=e.length;while(t--)r=r*33^e.charCodeAt(t);return(r>>>0).toString(36)}function u(e,r){if(r&&typeof r==="number"&&!n[e]){return`${e}:${r}px`}return`${e}:${r}`}function c(e){return e.sort(((e,r)=>e[0]>r[0]?1:-1))}function d(e,r){const t=[];const a=[];for(const n of Object.keys(e)){const r=n.trim();const i=e[n];if(r.charCodeAt(0)!==36&&i!=null){if(typeof i==="object"&&!Array.isArray(i)){a.push([r,i])}else{t.push([s(r),i])}}}return{style:f(c(t)),nested:r?a:c(a),isUnique:!!e.$unique}}function f(e){return e.map((([e,r])=>{if(!Array.isArray(r))return u(e,r);return r.map((r=>u(e,r))).join(";")})).join(";")}function m(e,r){if(e.indexOf("&")===-1)return`${r} ${e}`;return e.replace(/&/g,r)}function h(e,r,t,a,n){const{style:i,nested:o,isUnique:s}=d(r,e!=="");let l=i;if(e.charCodeAt(0)===64){const r={selector:e,styles:[],rules:[],style:n?"":i};t.push(r);if(i&&n){r.styles.push({selector:n,style:i,isUnique:s})}for(const[e,t]of o){l+=e+h(e,t,r.rules,r.styles,n)}}else{const r=n?m(e,n):e;if(i)a.push({selector:r,style:i,isUnique:s});for(const[e,n]of o){l+=e+h(e,n,t,a,r)}}return l}function p(e,r,t,n,i,o){for(const{selector:s,style:l,isUnique:u}of n){const t=o?m(s,i):s;const n=u?`u\0${(++a).toString(36)}`:`s\0${r}\0${l}`;const c=new b(l,n);c.add(new S(t,`k\0${r}\0${t}`));e.add(c)}for(const{selector:a,style:s,rules:l,styles:u}of t){const t=new x(a,s,`r\0${r}\0${a}\0${s}`);p(t,r,l,u,i,o);e.add(t)}}function v(e){let r="";for(let t=0;tundefined,change:()=>undefined,remove:()=>undefined};class y{constructor(e=g){this.changes=e;this.sheet=[];this.changeId=0;this._keys=[];this._children=Object.create(null);this._counters=Object.create(null)}add(e){const r=this._counters[e.id]||0;const t=this._children[e.id]||e.clone();this._counters[e.id]=r+1;if(r===0){this._children[t.id]=t;this._keys.push(t.id);this.sheet.push(t.getStyles());this.changeId++;this.changes.add(t,this._keys.length-1)}else if(t instanceof y&&e instanceof y){const r=this._keys.indexOf(e.id);const a=t.changeId;t.merge(e);if(t.changeId!==a){this.sheet.splice(r,1,t.getStyles());this.changeId++;this.changes.change(t,r,r)}}}remove(e){const r=this._counters[e.id];if(r){this._counters[e.id]=r-1;const t=this._children[e.id];const a=this._keys.indexOf(t.id);if(r===1){delete this._counters[e.id];delete this._children[e.id];this._keys.splice(a,1);this.sheet.splice(a,1);this.changeId++;this.changes.remove(t,a)}else if(t instanceof y&&e instanceof y){const r=t.changeId;t.unmerge(e);if(t.changeId!==r){this.sheet.splice(a,1,t.getStyles());this.changeId++;this.changes.change(t,a,a)}}}}values(){return this._keys.map((e=>this._children[e]))}merge(e){for(const r of e.values())this.add(r);return this}unmerge(e){for(const r of e.values())this.remove(r);return this}clone(){return(new y).merge(this)}}class S{constructor(e,r){this.selector=e;this.id=r}getStyles(){return this.selector}clone(){return this}}class b extends y{constructor(e,r){super();this.style=e;this.id=r}getStyles(){return`${this.sheet.join(",")}{${this.style}}`}clone(){return new b(this.style,this.id).merge(this)}}class x extends y{constructor(e,r,t){super();this.rule=e;this.style=r;this.id=t}getStyles(){return`${this.rule}{${this.style}${v(this.sheet)}}`}clone(){return new x(this.rule,this.style,this.id).merge(this)}}function C(e,r){const t=`f${l(e)}`;if(true)return t;return`${r.$displayName}_${t}`}class k extends y{constructor(e,r){super(r);this.id=e}registerStyle(e){const r=[];const t=[];const a=h("&",e,r,t);const n=C(a,e);const i=`.${true?n:0}`;p(this,a,r,t,i,true);return n}registerKeyframes(e){return this.registerHashRule("@keyframes",e)}registerHashRule(e,r){const t=[];const a=[];const n=h("",r,t,a);const i=C(n,r);const o=`${e} ${true?i:0}`;const s=new x(o,"",`h\0${n}\0${e}`);p(s,n,t,a,"",false);this.add(s);return i}registerRule(e,r){const t=[];const a=[];const n=h(e,r,t,a);p(this,n,t,a,"",false)}registerCss(e){return this.registerRule("",e)}getStyles(){return v(this.sheet)}clone(){return new k(this.id,this.changes).merge(this)}}function j(e){return new k(`f${(++a).toString(36)}`,e)}},56841:(e,r,t)=>{t.d(r,{Z:()=>d});var a=t(80758);var n=t(65935);var i=t(39350);var o=t(97828);var s=t(66668);var l=t(35429);var u=t(39191);function c(e){if((0,i.Z)(e)){return(0,a.Z)(e,l.Z)}return(0,o.Z)(e)?[e]:(0,n.Z)((0,s.Z)((0,u.Z)(e)))}const d=c},20745:(e,r,t)=>{var a;var n=t(31051);if(true){r.s=n.createRoot;a=n.hydrateRoot}else{var i}},44570:(e,r,t)=>{var a;a={value:true};var n=t(34717);a=n.TypeStyle;var i=t(27582);a=i;var o=t(64367);a=o.extend;a=o.classes;a=o.media;var s=new n.TypeStyle({autoGenerateTag:true});a=s.setStylesTarget;a=s.cssRaw;a=s.cssRule;a=s.forceRenderStyles;a=s.fontFace;a=s.getStyles;a=s.keyframes;a=s.reinit;r.oB=s.style;a=s.stylesheet;function l(e){var r=new n.TypeStyle({autoGenerateTag:false});if(e){r.setStylesTarget(e)}return r}a=l},95457:(e,r)=>{Object.defineProperty(r,"__esModule",{value:true});function t(e){var r={};for(var a in e){var n=e[a];if(a==="$nest"){var i=n;for(var o in i){var s=i[o];r[o]=t(s)}}else if(a==="$debugName"){r.$displayName=n}else{r[a]=n}}return r}r.convertToStyles=t;function a(e){var r={};for(var t in e){if(t!=="$debugName"){r[t]=e[t]}}if(e.$debugName){r.$displayName=e.$debugName}return r}r.convertToKeyframes=a},34717:(e,r,t)=>{Object.defineProperty(r,"__esModule",{value:true});var a=t(10859);var n=t(95457);var i=t(64367);var o=function(){return a.create()};var s=function(){function e(e){var r=this;var t=e.autoGenerateTag;this.cssRaw=function(e){if(!e){return}r._raw+=e||"";r._pendingRawChange=true;r._styleUpdated()};this.cssRule=function(e){var t=[];for(var a=1;a{Object.defineProperty(r,"__esModule",{value:true});r.raf=typeof requestAnimationFrame==="undefined"?function(e){return setTimeout(e)}:typeof window==="undefined"?requestAnimationFrame:requestAnimationFrame.bind(window);function t(){var e=[];for(var r=0;r{Object.defineProperty(r,"__esModule",{value:true})}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/4562.72444a09f5f092646490.js b/bootcamp/share/jupyter/lab/static/4562.72444a09f5f092646490.js new file mode 100644 index 0000000..35403c4 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/4562.72444a09f5f092646490.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4562],{14562:(e,t,n)=>{n.r(t);n.d(t,{modelica:()=>v});function r(e){var t={},n=e.split(" ");for(var r=0;r+\-\/^\[\]]/;var u=/(:=|<=|>=|==|<>|\.\+|\.\-|\.\*|\.\/|\.\^)/;var c=/[0-9]/;var f=/[_a-zA-Z]/;function p(e,t){e.skipToEnd();t.tokenize=null;return"comment"}function k(e,t){var n=false,r;while(r=e.next()){if(n&&r=="/"){t.tokenize=null;break}n=r=="*"}return"comment"}function m(e,t){var n=false,r;while((r=e.next())!=null){if(r=='"'&&!n){t.tokenize=null;t.sol=false;break}n=!n&&r=="\\"}return"string"}function d(e,t){e.eatWhile(c);while(e.eat(c)||e.eat(f)){}var n=e.current();if(t.sol&&(n=="package"||n=="model"||n=="when"||n=="connector"))t.level++;else if(t.sol&&n=="end"&&t.level>0)t.level--;t.tokenize=null;t.sol=false;if(i.propertyIsEnumerable(n))return"keyword";else if(l.propertyIsEnumerable(n))return"builtin";else if(a.propertyIsEnumerable(n))return"atom";else return"variable"}function h(e,t){while(e.eat(/[^']/)){}t.tokenize=null;t.sol=false;if(e.eat("'"))return"variable";else return"error"}function b(e,t){e.eatWhile(c);if(e.eat(".")){e.eatWhile(c)}if(e.eat("e")||e.eat("E")){if(!e.eat("-"))e.eat("+");e.eatWhile(c)}t.tokenize=null;t.sol=false;return"number"}const v={name:"modelica",startState:function(){return{tokenize:null,level:0,sol:true}},token:function(e,t){if(t.tokenize!=null){return t.tokenize(e,t)}if(e.sol()){t.sol=true}if(e.eatSpace()){t.tokenize=null;return null}var n=e.next();if(n=="/"&&e.eat("/")){t.tokenize=p}else if(n=="/"&&e.eat("*")){t.tokenize=k}else if(u.test(n+e.peek())){e.next();t.tokenize=null;return"operator"}else if(s.test(n)){t.tokenize=null;return"operator"}else if(f.test(n)){t.tokenize=d}else if(n=="'"&&e.peek()&&e.peek()!="'"){t.tokenize=h}else if(n=='"'){t.tokenize=m}else if(c.test(n)){t.tokenize=b}else{t.tokenize=null;return"error"}return t.tokenize(e,t)},indent:function(e,t,n){if(e.tokenize!=null)return null;var r=e.level;if(/(algorithm)/.test(t))r--;if(/(equation)/.test(t))r--;if(/(initial algorithm)/.test(t))r--;if(/(initial equation)/.test(t))r--;if(/(end)/.test(t))r--;if(r>0)return n.unit*r;else return 0},languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:o}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/4591.428531724f49fe824ffa.js b/bootcamp/share/jupyter/lab/static/4591.428531724f49fe824ffa.js new file mode 100644 index 0000000..632a678 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/4591.428531724f49fe824ffa.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4591],{34591:(e,t,r)=>{r.r(t);r.d(t,{cassandra:()=>b,esper:()=>k,gpSQL:()=>x,gql:()=>v,hive:()=>_,mariaDB:()=>g,msSQL:()=>m,mySQL:()=>p,pgSQL:()=>y,plSQL:()=>f,sparkSQL:()=>w,sql:()=>a,sqlite:()=>h,standardSQL:()=>d});function a(e){var t=e.client||{},r=e.atoms||{false:true,true:true,null:true},a=e.builtin||c(u),i=e.keywords||c(l),n=e.operatorChars||/^[*+\-%<>!=&|~^\/]/,s=e.support||{},o=e.hooks||{},d=e.dateSQL||{date:true,time:true,timestamp:true},m=e.backslashStringEscapes!==false,p=e.brackets||/^[\{}\(\)\[\]]/,g=e.punctuation||/^[;.,:]/;function h(e,l){var c=e.next();if(o[c]){var u=o[c](e,l);if(u!==false)return u}if(s.hexNumber&&(c=="0"&&e.match(/^[xX][0-9a-fA-F]+/)||(c=="x"||c=="X")&&e.match(/^'[0-9a-fA-F]*'/))){return"number"}else if(s.binaryNumber&&((c=="b"||c=="B")&&e.match(/^'[01]+'/)||c=="0"&&e.match(/^b[01]*/))){return"number"}else if(c.charCodeAt(0)>47&&c.charCodeAt(0)<58){e.match(/^[0-9]*(\.[0-9]+)?([eE][-+]?[0-9]+)?/);s.decimallessFloat&&e.match(/^\.(?!\.)/);return"number"}else if(c=="?"&&(e.eatSpace()||e.eol()||e.eat(";"))){return"macroName"}else if(c=="'"||c=='"'&&s.doubleQuote){l.tokenize=b(c);return l.tokenize(e,l)}else if((s.nCharCast&&(c=="n"||c=="N")||s.charsetCast&&c=="_"&&e.match(/[a-z][a-z0-9]*/i))&&(e.peek()=="'"||e.peek()=='"')){return"keyword"}else if(s.escapeConstant&&(c=="e"||c=="E")&&(e.peek()=="'"||e.peek()=='"'&&s.doubleQuote)){l.tokenize=function(e,t){return(t.tokenize=b(e.next(),true))(e,t)};return"keyword"}else if(s.commentSlashSlash&&c=="/"&&e.eat("/")){e.skipToEnd();return"comment"}else if(s.commentHash&&c=="#"||c=="-"&&e.eat("-")&&(!s.commentSpaceRequired||e.eat(" "))){e.skipToEnd();return"comment"}else if(c=="/"&&e.eat("*")){l.tokenize=f(1);return l.tokenize(e,l)}else if(c=="."){if(s.zerolessFloat&&e.match(/^(?:\d+(?:e[+-]?\d+)?)/i))return"number";if(e.match(/^\.+/))return null;if(s.ODBCdotTable&&e.match(/^[\w\d_$#]+/))return"type"}else if(n.test(c)){e.eatWhile(n);return"operator"}else if(p.test(c)){return"bracket"}else if(g.test(c)){e.eatWhile(g);return"punctuation"}else if(c=="{"&&(e.match(/^( )*(d|D|t|T|ts|TS)( )*'[^']*'( )*}/)||e.match(/^( )*(d|D|t|T|ts|TS)( )*"[^"]*"( )*}/))){return"number"}else{e.eatWhile(/^[_\w\d]/);var m=e.current().toLowerCase();if(d.hasOwnProperty(m)&&(e.match(/^( )+'[^']*'/)||e.match(/^( )+"[^"]*"/)))return"number";if(r.hasOwnProperty(m))return"atom";if(a.hasOwnProperty(m))return"type";if(i.hasOwnProperty(m))return"keyword";if(t.hasOwnProperty(m))return"builtin";return null}}function b(e,t){return function(r,a){var i=false,n;while((n=r.next())!=null){if(n==e&&!i){a.tokenize=h;break}i=(m||t)&&!i&&n=="\\"}return"string"}}function f(e){return function(t,r){var a=t.match(/^.*?(\/\*|\*\/)/);if(!a)t.skipToEnd();else if(a[1]=="/*")r.tokenize=f(e+1);else if(e>1)r.tokenize=f(e-1);else r.tokenize=h;return"comment"}}function _(e,t,r){t.context={prev:t.context,indent:e.indentation(),col:e.column(),type:r}}function y(e){e.indent=e.context.indent;e.context=e.context.prev}return{name:"sql",startState:function(){return{tokenize:h,context:null}},token:function(e,t){if(e.sol()){if(t.context&&t.context.align==null)t.context.align=false}if(t.tokenize==h&&e.eatSpace())return null;var r=t.tokenize(e,t);if(r=="comment")return r;if(t.context&&t.context.align==null)t.context.align=true;var a=e.current();if(a=="(")_(e,t,")");else if(a=="[")_(e,t,"]");else if(t.context&&t.context.type==a)y(t);return r},indent:function(e,t,r){var a=e.context;if(!a)return null;var i=t.charAt(0)==a.type;if(a.align)return a.col+(i?0:1);else return a.indent+(i?0:r.unit)},languageData:{commentTokens:{line:s.commentSlashSlash?"//":s.commentHash?"#":"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}}}function i(e){var t;while((t=e.next())!=null){if(t=="`"&&!e.eat("`"))return"string.special"}e.backUp(e.current().length-1);return e.eatWhile(/\w/)?"string.special":null}function n(e){var t;while((t=e.next())!=null){if(t=='"'&&!e.eat('"'))return"string.special"}e.backUp(e.current().length-1);return e.eatWhile(/\w/)?"string.special":null}function s(e){if(e.eat("@")){e.match("session.");e.match("local.");e.match("global.")}if(e.eat("'")){e.match(/^.*'/);return"string.special"}else if(e.eat('"')){e.match(/^.*"/);return"string.special"}else if(e.eat("`")){e.match(/^.*`/);return"string.special"}else if(e.match(/^[0-9a-zA-Z$\.\_]+/)){return"string.special"}return null}function o(e){if(e.eat("N")){return"atom"}return e.match(/^[a-zA-Z.#!?]/)?"string.special":null}var l="alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit ";function c(e){var t={},r=e.split(" ");for(var a=0;a!=^\&|\/]/,brackets:/^[\{}\(\)]/,punctuation:/^[;.,:/]/,backslashStringEscapes:false,dateSQL:c("date datetimeoffset datetime2 smalldatetime datetime time"),hooks:{"@":s}});const p=a({client:c("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:c(l+"accessible action add after algorithm all analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general get global grant grants group group_concat handler hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show signal slave slow smallint snapshot soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:c("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:c("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:c("date time timestamp"),support:c("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":s,"`":i,"\\":o}});const g=a({client:c("charset clear connect edit ego exit go help nopager notee nowarning pager print prompt quit rehash source status system tee"),keywords:c(l+"accessible action add after algorithm all always analyze asensitive at authors auto_increment autocommit avg avg_row_length before binary binlog both btree cache call cascade cascaded case catalog_name chain change changed character check checkpoint checksum class_origin client_statistics close coalesce code collate collation collations column columns comment commit committed completion concurrent condition connection consistent constraint contains continue contributors convert cross current current_date current_time current_timestamp current_user cursor data database databases day_hour day_microsecond day_minute day_second deallocate dec declare default delay_key_write delayed delimiter des_key_file describe deterministic dev_pop dev_samp deviance diagnostics directory disable discard distinctrow div dual dumpfile each elseif enable enclosed end ends engine engines enum errors escape escaped even event events every execute exists exit explain extended fast fetch field fields first flush for force foreign found_rows full fulltext function general generated get global grant grants group group_concat handler hard hash help high_priority hosts hour_microsecond hour_minute hour_second if ignore ignore_server_ids import index index_statistics infile inner innodb inout insensitive insert_method install interval invoker isolation iterate key keys kill language last leading leave left level limit linear lines list load local localtime localtimestamp lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters match max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modifies modify mutex mysql_errno natural next no no_write_to_binlog offline offset one online open optimize option optionally out outer outfile pack_keys parser partition partitions password persistent phase plugin plugins prepare preserve prev primary privileges procedure processlist profile profiles purge query quick range read read_write reads real rebuild recover references regexp relaylog release remove rename reorganize repair repeatable replace require resignal restrict resume return returns revoke right rlike rollback rollup row row_format rtree savepoint schedule schema schema_name schemas second_microsecond security sensitive separator serializable server session share show shutdown signal slave slow smallint snapshot soft soname spatial specific sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result sqlexception sqlstate sqlwarning ssl start starting starts status std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace temporary terminated to trailing transaction trigger triggers truncate uncommitted undo uninstall unique unlock upgrade usage use use_frm user user_resources user_statistics using utc_date utc_time utc_timestamp value variables varying view views virtual warnings when while with work write xa xor year_month zerofill begin do then else loop repeat"),builtin:c("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text bigint int int1 int2 int3 int4 int8 integer float float4 float8 double char varbinary varchar varcharacter precision date datetime year unsigned signed numeric"),atoms:c("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^]/,dateSQL:c("date time timestamp"),support:c("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber doubleQuote nCharCast charsetCast commentHash commentSpaceRequired"),hooks:{"@":s,"`":i,"\\":o}});const h=a({client:c("auth backup bail binary changes check clone databases dbinfo dump echo eqp exit explain fullschema headers help import imposter indexes iotrace limit lint load log mode nullvalue once open output print prompt quit read restore save scanstats schema separator session shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width"),keywords:c(l+"abort action add after all analyze attach autoincrement before begin cascade case cast check collate column commit conflict constraint cross current_date current_time current_timestamp database default deferrable deferred detach each else end escape except exclusive exists explain fail for foreign full glob if ignore immediate index indexed initially inner instead intersect isnull key left limit match natural no notnull null of offset outer plan pragma primary query raise recursive references regexp reindex release rename replace restrict right rollback row savepoint temp temporary then to transaction trigger unique using vacuum view virtual when with without"),builtin:c("bool boolean bit blob decimal double float long longblob longtext medium mediumblob mediumint mediumtext time timestamp tinyblob tinyint tinytext text clob bigint int int2 int8 integer float double char varchar date datetime year unsigned signed numeric real"),atoms:c("null current_date current_time current_timestamp"),operatorChars:/^[*+\-%<>!=&|/~]/,dateSQL:c("date time timestamp datetime"),support:c("decimallessFloat zerolessFloat"),identifierQuote:'"',hooks:{"@":s,":":s,"?":s,$:s,'"':n,"`":i}});const b=a({client:{},keywords:c("add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime"),builtin:c("ascii bigint blob boolean counter decimal double float frozen inet int list map static text timestamp timeuuid tuple uuid varchar varint"),atoms:c("false true infinity NaN"),operatorChars:/^[<>=]/,dateSQL:{},support:c("commentSlashSlash decimallessFloat"),hooks:{}});const f=a({client:c("appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define describe echo editfile embedded escape exec execute feedback flagger flush heading headsep instance linesize lno loboffset logsource long longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar release repfooter repheader serveroutput shiftinout show showmode size spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout time timing trimout trimspool ttitle underline verify version wrap"),keywords:c("abort accept access add all alter and any array arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body boolean by case cast char char_base check close cluster clusters colauth column comment commit compress connect connected constant constraint crash create current currval cursor data_base database date dba deallocate debugoff debugon decimal declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry escape exception exception_init exchange exclusive exists exit external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging long loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base object of off offline on online only open option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw read rebuild record ref references refresh release rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate session set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work"),builtin:c("abs acos add_months ascii asin atan atan2 average bfile bfilename bigserial bit blob ceil character chartorowid chr clob concat convert cos cosh count dec decode deref dual dump dup_val_on_index empty error exp false float floor found glb greatest hextoraw initcap instr instrb int integer isopen last_day least length lengthb ln lower lpad ltrim lub make_ref max min mlslabel mod months_between natural naturaln nchar nclob new_time next_day nextval nls_charset_decl_len nls_charset_id nls_charset_name nls_initcap nls_lower nls_sort nls_upper nlssort no_data_found notfound null number numeric nvarchar2 nvl others power rawtohex real reftohex round rowcount rowidtochar rowtype rpad rtrim serial sign signtype sin sinh smallint soundex sqlcode sqlerrm sqrt stddev string substr substrb sum sysdate tan tanh to_char text to_date to_label to_multi_byte to_number to_single_byte translate true trunc uid unlogged upper user userenv varchar varchar2 variance varying vsize xml"),operatorChars:/^[*\/+\-%<>!=~]/,dateSQL:c("date time timestamp"),support:c("doubleQuote nCharCast zerolessFloat binaryNumber hexNumber")});const _=a({keywords:c("select alter $elem$ $key$ $value$ add after all analyze and archive as asc before between binary both bucket buckets by cascade case cast change cluster clustered clusterstatus collection column columns comment compute concatenate continue create cross cursor data database databases dbproperties deferred delete delimited desc describe directory disable distinct distribute drop else enable end escaped exclusive exists explain export extended external fetch fields fileformat first format formatted from full function functions grant group having hold_ddltime idxproperties if import in index indexes inpath inputdriver inputformat insert intersect into is items join keys lateral left like limit lines load local location lock locks mapjoin materialized minus msck no_drop nocompress not of offline on option or order out outer outputdriver outputformat overwrite partition partitioned partitions percent plus preserve procedure purge range rcfile read readonly reads rebuild recordreader recordwriter recover reduce regexp rename repair replace restrict revoke right rlike row schema schemas semi sequencefile serde serdeproperties set shared show show_database sort sorted ssl statistics stored streamtable table tables tablesample tblproperties temporary terminated textfile then tmp to touch transform trigger unarchive undo union uniquejoin unlock update use using utc utc_tmestamp view when where while with admin authorization char compact compactions conf cube current current_date current_timestamp day decimal defined dependency directories elem_type exchange file following for grouping hour ignore inner interval jar less logical macro minute month more none noscan over owner partialscan preceding pretty principals protection reload rewrite role roles rollup rows second server sets skewed transactions truncate unbounded unset uri user values window year"),builtin:c("bool boolean long timestamp tinyint smallint bigint int float double date datetime unsigned string array struct map uniontype key_type utctimestamp value_type varchar"),atoms:c("false true null unknown"),operatorChars:/^[*+\-%<>!=]/,dateSQL:c("date timestamp"),support:c("ODBCdotTable doubleQuote binaryNumber hexNumber")});const y=a({client:c("source"),keywords:c(l+"a abort abs absent absolute access according action ada add admin after aggregate alias all allocate also alter always analyse analyze and any are array array_agg array_max_cardinality as asc asensitive assert assertion assignment asymmetric at atomic attach attribute attributes authorization avg backward base64 before begin begin_frame begin_partition bernoulli between bigint binary bit bit_length blob blocked bom boolean both breadth by c cache call called cardinality cascade cascaded case cast catalog catalog_name ceil ceiling chain char char_length character character_length character_set_catalog character_set_name character_set_schema characteristics characters check checkpoint class class_origin clob close cluster coalesce cobol collate collation collation_catalog collation_name collation_schema collect column column_name columns command_function command_function_code comment comments commit committed concurrently condition condition_number configuration conflict connect connection connection_name constant constraint constraint_catalog constraint_name constraint_schema constraints constructor contains content continue control conversion convert copy corr corresponding cost count covar_pop covar_samp create cross csv cube cume_dist current current_catalog current_date current_default_transform_group current_path current_role current_row current_schema current_time current_timestamp current_transform_group_for_type current_user cursor cursor_name cycle data database datalink datatype date datetime_interval_code datetime_interval_precision day db deallocate debug dec decimal declare default defaults deferrable deferred defined definer degree delete delimiter delimiters dense_rank depends depth deref derived desc describe descriptor detach detail deterministic diagnostics dictionary disable discard disconnect dispatch distinct dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue do document domain double drop dump dynamic dynamic_function dynamic_function_code each element else elseif elsif empty enable encoding encrypted end end_frame end_partition endexec enforced enum equals errcode error escape event every except exception exclude excluding exclusive exec execute exists exit exp explain expression extension external extract false family fetch file filter final first first_value flag float floor following for force foreach foreign fortran forward found frame_row free freeze from fs full function functions fusion g general generated get global go goto grant granted greatest group grouping groups handler having header hex hierarchy hint hold hour id identity if ignore ilike immediate immediately immutable implementation implicit import in include including increment indent index indexes indicator info inherit inherits initially inline inner inout input insensitive insert instance instantiable instead int integer integrity intersect intersection interval into invoker is isnull isolation join k key key_member key_type label lag language large last last_value lateral lead leading leakproof least left length level library like like_regex limit link listen ln load local localtime localtimestamp location locator lock locked log logged loop lower m map mapping match matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text method min minute minvalue mod mode modifies module month more move multiset mumps name names namespace national natural nchar nclob nesting new next nfc nfd nfkc nfkd nil no none normalize normalized not nothing notice notify notnull nowait nth_value ntile null nullable nullif nulls number numeric object occurrences_regex octet_length octets of off offset oids old on only open operator option options or order ordering ordinality others out outer output over overlaps overlay overriding owned owner p pad parallel parameter parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partial partition pascal passing passthrough password path percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding precision prepare prepared preserve primary print_strict_params prior privileges procedural procedure procedures program public publication query quote raise range rank read reads real reassign recheck recovery recursive ref references referencing refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex relative release rename repeatable replace replica requiring reset respect restart restore restrict result result_oid return returned_cardinality returned_length returned_octet_length returned_sqlstate returning returns reverse revoke right role rollback rollup routine routine_catalog routine_name routine_schema routines row row_count row_number rows rowtype rule savepoint scale schema schema_name schemas scope scope_catalog scope_name scope_schema scroll search second section security select selective self sensitive sequence sequences serializable server server_name session session_user set setof sets share show similar simple size skip slice smallint snapshot some source space specific specific_name specifictype sql sqlcode sqlerror sqlexception sqlstate sqlwarning sqrt stable stacked standalone start state statement static statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time system_user t table table_name tables tablesample tablespace temp template temporary text then ties time timestamp timezone_hour timezone_minute to token top_level_count trailing transaction transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex translation treat trigger trigger_catalog trigger_name trigger_schema trim trim_array true truncate trusted type types uescape unbounded uncommitted under unencrypted union unique unknown unlink unlisten unlogged unnamed unnest until untyped update upper uri usage use_column use_variable user user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema using vacuum valid validate validator value value_of values var_pop var_samp varbinary varchar variable_conflict variadic varying verbose version versioning view views volatile warning when whenever where while whitespace width_bucket window with within without work wrapper write xml xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate year yes zone"),builtin:c("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:c("false true null unknown"),operatorChars:/^[*\/+\-%<>!=&|^\/#@?~]/,backslashStringEscapes:false,dateSQL:c("date time timestamp"),support:c("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast escapeConstant")});const v=a({keywords:c("ancestor and asc by contains desc descendant distinct from group has in is limit offset on order select superset where"),atoms:c("false true"),builtin:c("blob datetime first key __key__ string integer double boolean null"),operatorChars:/^[*+\-%<>!=]/});const x=a({client:c("source"),keywords:c("abort absolute access action active add admin after aggregate all also alter always analyse analyze and any array as asc assertion assignment asymmetric at authorization backward before begin between bigint binary bit boolean both by cache called cascade cascaded case cast chain char character characteristics check checkpoint class close cluster coalesce codegen collate column comment commit committed concurrency concurrently configuration connection constraint constraints contains content continue conversion copy cost cpu_rate_limit create createdb createexttable createrole createuser cross csv cube current current_catalog current_date current_role current_schema current_time current_timestamp current_user cursor cycle data database day deallocate dec decimal declare decode default defaults deferrable deferred definer delete delimiter delimiters deny desc dictionary disable discard distinct distributed do document domain double drop dxl each else enable encoding encrypted end enum errors escape every except exchange exclude excluding exclusive execute exists explain extension external extract false family fetch fields filespace fill filter first float following for force foreign format forward freeze from full function global grant granted greatest group group_id grouping handler hash having header hold host hour identity if ignore ilike immediate immutable implicit in including inclusive increment index indexes inherit inherits initially inline inner inout input insensitive insert instead int integer intersect interval into invoker is isnull isolation join key language large last leading least left level like limit list listen load local localtime localtimestamp location lock log login mapping master match maxvalue median merge minute minvalue missing mode modifies modify month move name names national natural nchar new newline next no nocreatedb nocreateexttable nocreaterole nocreateuser noinherit nologin none noovercommit nosuperuser not nothing notify notnull nowait null nullif nulls numeric object of off offset oids old on only operator option options or order ordered others out outer over overcommit overlaps overlay owned owner parser partial partition partitions passing password percent percentile_cont percentile_disc placing plans position preceding precision prepare prepared preserve primary prior privileges procedural procedure protocol queue quote randomly range read readable reads real reassign recheck recursive ref references reindex reject relative release rename repeatable replace replica reset resource restart restrict returning returns revoke right role rollback rollup rootpartition row rows rule savepoint scatter schema scroll search second security segment select sequence serializable session session_user set setof sets share show similar simple smallint some split sql stable standalone start statement statistics stdin stdout storage strict strip subpartition subpartitions substring superuser symmetric sysid system table tablespace temp template temporary text then threshold ties time timestamp to trailing transaction treat trigger trim true truncate trusted type unbounded uncommitted unencrypted union unique unknown unlisten until update user using vacuum valid validation validator value values varchar variadic varying verbose version view volatile web when where whitespace window with within without work writable write xml xmlattributes xmlconcat xmlelement xmlexists xmlforest xmlparse xmlpi xmlroot xmlserialize year yes zone"),builtin:c("bigint int8 bigserial serial8 bit varying varbit boolean bool box bytea character char varchar cidr circle date double precision float float8 inet integer int int4 interval json jsonb line lseg macaddr macaddr8 money numeric decimal path pg_lsn point polygon real float4 smallint int2 smallserial serial2 serial serial4 text time without zone with timetz timestamp timestamptz tsquery tsvector txid_snapshot uuid xml"),atoms:c("false true null unknown"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:c("date time timestamp"),support:c("ODBCdotTable decimallessFloat zerolessFloat binaryNumber hexNumber nCharCast charsetCast")});const w=a({keywords:c("add after all alter analyze and anti archive array as asc at between bucket buckets by cache cascade case cast change clear cluster clustered codegen collection column columns comment commit compact compactions compute concatenate cost create cross cube current current_date current_timestamp database databases data dbproperties defined delete delimited deny desc describe dfs directories distinct distribute drop else end escaped except exchange exists explain export extended external false fields fileformat first following for format formatted from full function functions global grant group grouping having if ignore import in index indexes inner inpath inputformat insert intersect interval into is items join keys last lateral lazy left like limit lines list load local location lock locks logical macro map minus msck natural no not null nulls of on optimize option options or order out outer outputformat over overwrite partition partitioned partitions percent preceding principals purge range recordreader recordwriter recover reduce refresh regexp rename repair replace reset restrict revoke right rlike role roles rollback rollup row rows schema schemas select semi separated serde serdeproperties set sets show skewed sort sorted start statistics stored stratify struct table tables tablesample tblproperties temp temporary terminated then to touch transaction transactions transform true truncate unarchive unbounded uncache union unlock unset use using values view when where window with"),builtin:c("tinyint smallint int bigint boolean float double string binary timestamp decimal array map struct uniontype delimited serde sequencefile textfile rcfile inputformat outputformat"),atoms:c("false true null"),operatorChars:/^[*\/+\-%<>!=~&|^]/,dateSQL:c("date time timestamp"),support:c("ODBCdotTable doubleQuote zerolessFloat")});const k=a({client:c("source"),keywords:c("alter and as asc between by count create delete desc distinct drop from group having in insert into is join like not on or order select set table union update values where limit after all and as at asc avedev avg between by case cast coalesce count create current_timestamp day days delete define desc distinct else end escape events every exists false first from full group having hour hours in inner insert instanceof into irstream is istream join last lastweekday left limit like max match_recognize matches median measures metadatasql min minute minutes msec millisecond milliseconds not null offset on or order outer output partition pattern prev prior regexp retain-union retain-intersection right rstream sec second seconds select set some snapshot sql stddev sum then true unidirectional until update variable weekday when where window"),builtin:{},atoms:c("false true null"),operatorChars:/^[*+\-%<>!=&|^\/#@?~]/,dateSQL:c("time"),support:c("decimallessFloat zerolessFloat binaryNumber hexNumber")})}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/46.fb119c5e5b1e0c72a00f.js b/bootcamp/share/jupyter/lab/static/46.fb119c5e5b1e0c72a00f.js new file mode 100644 index 0000000..46f9e1d --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/46.fb119c5e5b1e0c72a00f.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[46],{50046:(e,t,n)=>{n.r(t);n.d(t,{toml:()=>r});const r={name:"toml",startState:function(){return{inString:false,stringType:"",lhs:true,inArray:0}},token:function(e,t){if(!t.inString&&(e.peek()=='"'||e.peek()=="'")){t.stringType=e.peek();e.next();t.inString=true}if(e.sol()&&t.inArray===0){t.lhs=true}if(t.inString){while(t.inString&&!e.eol()){if(e.peek()===t.stringType){e.next();t.inString=false}else if(e.peek()==="\\"){e.next();e.next()}else{e.match(/^.[^\\\"\']*/)}}return t.lhs?"property":"string"}else if(t.inArray&&e.peek()==="]"){e.next();t.inArray--;return"bracket"}else if(t.lhs&&e.peek()==="["&&e.skipTo("]")){e.next();if(e.peek()==="]")e.next();return"atom"}else if(e.peek()==="#"){e.skipToEnd();return"comment"}else if(e.eatSpace()){return null}else if(t.lhs&&e.eatWhile((function(e){return e!="="&&e!=" "}))){return"property"}else if(t.lhs&&e.peek()==="="){e.next();t.lhs=false;return null}else if(!t.lhs&&e.match(/^\d\d\d\d[\d\-\:\.T]*Z/)){return"atom"}else if(!t.lhs&&(e.match("true")||e.match("false"))){return"atom"}else if(!t.lhs&&e.peek()==="["){t.inArray++;e.next();return"bracket"}else if(!t.lhs&&e.match(/^\-?\d+(?:\.\d+)?/)){return"number"}else if(!e.eatSpace()){e.next()}return null},languageData:{commentTokens:{line:"#"}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/4743.d4e9658ea25301e15a94.js b/bootcamp/share/jupyter/lab/static/4743.d4e9658ea25301e15a94.js new file mode 100644 index 0000000..b3a525f --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/4743.d4e9658ea25301e15a94.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4743],{54743:(e,t,n)=>{n.r(t);n.d(t,{asn1:()=>a});function r(e){var t={},n=e.split(" ");for(var r=0;r{n.r(t);n.d(t,{cypher:()=>f});var r=function(e){return new RegExp("^(?:"+e.join("|")+")$","i")};var a=function(e){o=null;var t=e.next();if(t==='"'){e.match(/^.*?"/);return"string"}if(t==="'"){e.match(/^.*?'/);return"string"}if(/[{}\(\),\.;\[\]]/.test(t)){o=t;return"punctuation"}else if(t==="/"&&e.eat("/")){e.skipToEnd();return"comment"}else if(d.test(t)){e.eatWhile(d);return null}else{e.eatWhile(/[_\w\d]/);if(e.eat(":")){e.eatWhile(/[\w\d_\-]/);return"atom"}var n=e.current();if(l.test(n))return"builtin";if(c.test(n))return"def";if(u.test(n)||p.test(n))return"keyword";return"variable"}};var i=function(e,t,n){return e.context={prev:e.context,indent:e.indent,col:n,type:t}};var s=function(e){e.indent=e.context.indent;return e.context=e.context.prev};var o;var l=r(["abs","acos","allShortestPaths","asin","atan","atan2","avg","ceil","coalesce","collect","cos","cot","count","degrees","e","endnode","exp","extract","filter","floor","haversin","head","id","keys","labels","last","left","length","log","log10","lower","ltrim","max","min","node","nodes","percentileCont","percentileDisc","pi","radians","rand","range","reduce","rel","relationship","relationships","replace","reverse","right","round","rtrim","shortestPath","sign","sin","size","split","sqrt","startnode","stdev","stdevp","str","substring","sum","tail","tan","timestamp","toFloat","toInt","toString","trim","type","upper"]);var c=r(["all","and","any","contains","exists","has","in","none","not","or","single","xor"]);var u=r(["as","asc","ascending","assert","by","case","commit","constraint","create","csv","cypher","delete","desc","descending","detach","distinct","drop","else","end","ends","explain","false","fieldterminator","foreach","from","headers","in","index","is","join","limit","load","match","merge","null","on","optional","order","periodic","profile","remove","return","scan","set","skip","start","starts","then","true","union","unique","unwind","using","when","where","with","call","yield"]);var p=r(["access","active","assign","all","alter","as","catalog","change","copy","create","constraint","constraints","current","database","databases","dbms","default","deny","drop","element","elements","exists","from","grant","graph","graphs","if","index","indexes","label","labels","management","match","name","names","new","node","nodes","not","of","on","or","password","populated","privileges","property","read","relationship","relationships","remove","replace","required","revoke","role","roles","set","show","start","status","stop","suspended","to","traverse","type","types","user","users","with","write"]);var d=/[*+\-<>=&|~%^]/;const f={name:"cypher",startState:function(){return{tokenize:a,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()){if(t.context&&t.context.align==null){t.context.align=false}t.indent=e.indentation()}if(e.eatSpace()){return null}var n=t.tokenize(e,t);if(n!=="comment"&&t.context&&t.context.align==null&&t.context.type!=="pattern"){t.context.align=true}if(o==="("){i(t,")",e.column())}else if(o==="["){i(t,"]",e.column())}else if(o==="{"){i(t,"}",e.column())}else if(/[\]\}\)]/.test(o)){while(t.context&&t.context.type==="pattern"){s(t)}if(t.context&&o===t.context.type){s(t)}}else if(o==="."&&t.context&&t.context.type==="pattern"){s(t)}else if(/atom|string|variable/.test(n)&&t.context){if(/[\}\]]/.test(t.context.type)){i(t,"pattern",e.column())}else if(t.context.type==="pattern"&&!t.context.align){t.context.align=true;t.context.col=e.column()}}return n},indent:function(e,t,n){var r=t&&t.charAt(0);var a=e.context;if(/[\]\}]/.test(r)){while(a&&a.type==="pattern"){a=a.prev}}var i=a&&r===a.type;if(!a)return 0;if(a.type==="keywords")return null;if(a.align)return a.col+(i?0:1);return a.indent+(i?0:n.unit)}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/49.7233f68f95d10b85a83e.js b/bootcamp/share/jupyter/lab/static/49.7233f68f95d10b85a83e.js new file mode 100644 index 0000000..bd2356d --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/49.7233f68f95d10b85a83e.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[49],{60049:(e,t,a)=>{a.r(t);a.d(t,{autoCloseTags:()=>Le,html:()=>je,htmlCompletionSource:()=>Re,htmlCompletionSourceWith:()=>We,htmlLanguage:()=>Ue,htmlPlain:()=>Ie});var n=a(11705);var l=a(6016);var r=a(73265);const s=54,o=1,u=55,O=2,i=56,p=3,c=4,d=5,f=6,h=7,m=8,S=9,g=10,P=11,x=12,b=13,V=57,v=14,_=58,q=20,y=22,T=23,$=24,w=26,Q=27,X=28,A=31,C=34,k=36,Y=37,M=0,B=1;const G={area:true,base:true,br:true,col:true,command:true,embed:true,frame:true,hr:true,img:true,input:true,keygen:true,link:true,meta:true,param:true,source:true,track:true,wbr:true,menuitem:true};const Z={dd:true,li:true,optgroup:true,option:true,p:true,rp:true,rt:true,tbody:true,td:true,tfoot:true,th:true,tr:true};const D={dd:{dd:true,dt:true},dt:{dd:true,dt:true},li:{li:true},option:{option:true,optgroup:true},optgroup:{optgroup:true},p:{address:true,article:true,aside:true,blockquote:true,dir:true,div:true,dl:true,fieldset:true,footer:true,form:true,h1:true,h2:true,h3:true,h4:true,h5:true,h6:true,header:true,hgroup:true,hr:true,menu:true,nav:true,ol:true,p:true,pre:true,section:true,table:true,ul:true},rp:{rp:true,rt:true},rt:{rp:true,rt:true},tbody:{tbody:true,tfoot:true},td:{td:true,th:true},tfoot:{tbody:true},th:{td:true,th:true},thead:{tbody:true,tfoot:true},tr:{tr:true}};function E(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function R(e){return e==9||e==10||e==13||e==32}let W=null,H=null,N=0;function I(e,t){let a=e.pos+t;if(N==a&&H==e)return W;let n=e.peek(t);while(R(n))n=e.peek(++t);let l="";for(;;){if(!E(n))break;l+=String.fromCharCode(n);n=e.peek(++t)}H=e;N=a;return W=l?l.toLowerCase():n==L||n==z?undefined:null}const U=60,j=62,J=47,L=63,z=33,F=45;function K(e,t){this.name=e;this.parent=t;this.hash=t?t.hash:0;for(let a=0;a-1?new K(I(n,1)||"",e):e},reduce(e,t){return t==q&&e?e.parent:e},reuse(e,t,a,n){let l=t.type.id;return l==f||l==k?new K(I(n,1)||"",e):e},hash(e){return e?e.hash:0},strict:false});const ae=new n.Jq(((e,t)=>{if(e.next!=U){if(e.next<0&&t.context)e.acceptToken(V);return}e.advance();let a=e.next==J;if(a)e.advance();let n=I(e,0);if(n===undefined)return;if(!n)return e.acceptToken(a?v:f);let l=t.context?t.context.name:null;if(a){if(n==l)return e.acceptToken(P);if(l&&Z[l])return e.acceptToken(V,-2);if(t.dialectEnabled(M))return e.acceptToken(x);for(let e=t.context;e;e=e.parent)if(e.name==n)return;e.acceptToken(b)}else{if(n=="script")return e.acceptToken(h);if(n=="style")return e.acceptToken(m);if(n=="textarea")return e.acceptToken(S);if(G.hasOwnProperty(n))return e.acceptToken(g);if(l&&D[l]&&D[l][n])e.acceptToken(V,-1);else e.acceptToken(f)}}),{contextual:true});const ne=new n.Jq((e=>{for(let t=0,a=0;;a++){if(e.next<0){if(a)e.acceptToken(_);break}if(e.next==F){t++}else if(e.next==j&&t>=2){if(a>3)e.acceptToken(_,-2);break}else{t=0}e.advance()}}));function le(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return true;return false}const re=new n.Jq(((e,t)=>{if(e.next==J&&e.peek(1)==j){let a=t.dialectEnabled(B)||le(t.context);e.acceptToken(a?d:c,2)}else if(e.next==j){e.acceptToken(c,1)}}));function se(e,t,a){let l=2+e.length;return new n.Jq((n=>{for(let r=0,s=0,o=0;;o++){if(n.next<0){if(o)n.acceptToken(t);break}if(r==0&&n.next==U||r==1&&n.next==J||r>=2&&rs)n.acceptToken(t,-s);else n.acceptToken(a,-(s-2));break}else if((n.next==10||n.next==13)&&o){n.acceptToken(t,1);break}else{r=s=0}n.advance()}}))}const oe=se("script",s,o);const ue=se("style",u,O);const Oe=se("textarea",i,p);const ie=(0,l.styleTags)({"Text RawText":l.tags.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":l.tags.angleBracket,TagName:l.tags.tagName,"MismatchedCloseTag/TagName":[l.tags.tagName,l.tags.invalid],AttributeName:l.tags.attributeName,"AttributeValue UnquotedAttributeValue":l.tags.attributeValue,Is:l.tags.definitionOperator,"EntityReference CharacterReference":l.tags.character,Comment:l.tags.blockComment,ProcessingInst:l.tags.processingInstruction,DoctypeDecl:l.tags.documentMeta});const pe=n.WQ.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%WQ&rO,59fO%`Q&rO,59iO%hQ&rO,59lO%sQ&rO,59nOOOa'#D^'#D^O%{OaO'#CxO&WOaO,59[OOOb'#D_'#D_O&`ObO'#C{O&kObO,59[OOOd'#D`'#D`O&sOdO'#DOO'OOdO,59[OOO`'#Da'#DaO'WO!rO,59[O'_Q#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'dO$fO,59oOOO`,59o,59oO'lQ#|O,59qO'qQ#|O,59rOOO`-E7W-E7WO'vQ&rO'#CsOOQW'#DZ'#DZO(UQ&rO1G.wOOOa1G.w1G.wO(^Q&rO1G/QOOOb1G/Q1G/QO(fQ&rO1G/TOOOd1G/T1G/TO(nQ&rO1G/WOOO`1G/W1G/WOOO`1G/Y1G/YO(yQ&rO1G/YOOOa-E7[-E7[O)RQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)WQ#tO'#C|OOOd-E7^-E7^O)]Q#tO'#DPOOO`-E7_-E7_O)bQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O)gQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rOOO`7+$t7+$tO)rQ#|O,59eO)wQ#|O,59hO)|Q#|O,59kOOO`1G/X1G/XO*RO7[O'#CvO*dOMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O*uO7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+WOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:"+s~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OhyO~OS!OOhyO~OS!QOhyO~OS!SOT!TOhyO~OS!TOhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXhgXTgX~OS!fOhyO~OS!gOhyO~OS!hOhyO~OS!iOT!jOhyO~OS!jOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{}!P!R!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ}bQ!PcQ!RdQ!UeZ!e{}!P!R!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:te,nodeProps:[["closedBy",-10,1,2,3,7,8,9,10,11,12,13,"EndTag",6,"EndTag SelfClosingEndTag",-4,21,30,33,36,"CloseTag"],["openedBy",4,"StartTag StartCloseTag",5,"StartTag",-4,29,32,35,37,"OpenTag"],["group",-9,14,17,18,19,20,39,40,41,42,"Entity",16,"Entity TextContent",-3,28,31,34,"TextContent Entity"]],propSources:[ie],skippedNodes:[0],repeatNodeCount:9,tokenData:"#%g!aR!YOX$qXY,QYZ,QZ[$q[]&X]^,Q^p$qpq,Qqr-_rs4ysv-_vw5iwxJ^x}-_}!OKP!O!P-_!P!Q$q!Q![-_![!]!!O!]!^-_!^!_!&W!_!`#$o!`!a&X!a!c-_!c!}!!O!}#R-_#R#S!!O#S#T3V#T#o!!O#o#s-_#s$f$q$f%W-_%W%o!!O%o%p-_%p&a!!O&a&b-_&b1p!!O1p4U-_4U4d!!O4d4e-_4e$IS!!O$IS$I`-_$I`$Ib!!O$Ib$Kh-_$Kh%#t!!O%#t&/x-_&/x&Et!!O&Et&FV-_&FV;'S!!O;'S;:j!&Q;:j;=`4s<%l?&r-_?&r?Ah!!O?Ah?BY$q?BY?Mn!!O?MnO$q!Z$|c`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr$qrs&}sv$qvw+Pwx(tx!^$q!^!_*V!_!a&X!a#S$q#S#T&X#T;'S$q;'S;=`+z<%lO$q!R&bX`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&Xq'UV`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}P'pT`POv'kw!^'k!_;'S'k;'S;=`(P<%lO'kP(SP;=`<%l'kp([S!cpOv(Vx;'S(V;'S;=`(h<%lO(Vp(kP;=`<%l(Vq(qP;=`<%l&}a({W`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t`)jT!a`Or)esv)ew;'S)e;'S;=`)y<%lO)e`)|P;=`<%l)ea*SP;=`<%l(t!Q*^V!a`!cpOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!Q*vP;=`<%l*V!R*|P;=`<%l&XW+UYkWOX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+PW+wP;=`<%l+P!Z+}P;=`<%l$q!a,]``P!a`!cp!^^OX&XXY,QYZ,QZ]&X]^,Q^p&Xpq,Qqr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!_-ljhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_1n!_!a&X!a#S-_#S#T3V#T#s-_#s$f$q$f;'S-_;'S;=`4s<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q[/echSkWOX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!^!_0p!a#S/^#S#T0p#T#s/^#s$f+P$f;'S/^;'S;=`1h<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+PS0uXhSqr0psw0px!P0p!Q!_0p!a#s0p$f;'S0p;'S;=`1b<%l?Ah0p?BY?Mn0pS1eP;=`<%l0p[1kP;=`<%l/^!U1wbhS!a`!cpOq*Vqr1nrs(Vsv1nvw0pwx)ex!P1n!P!Q*V!Q!_1n!_!a*V!a#s1n#s$f*V$f;'S1n;'S;=`3P<%l?Ah1n?Ah?BY*V?BY?Mn1n?MnO*V!U3SP;=`<%l1n!V3bchS`P!a`!cpOq&Xqr3Vrs&}sv3Vvw0pwx(tx!P3V!P!Q&X!Q!^3V!^!_1n!_!a&X!a#s3V#s$f&X$f;'S3V;'S;=`4m<%l?Ah3V?Ah?BY&X?BY?Mn3V?MnO&X!V4pP;=`<%l3V!_4vP;=`<%l-_!Z5SV!`h`P!cpOv&}wx'kx!^&}!^!_(V!_;'S&};'S;=`(n<%lO&}!_5rjhSkWc!ROX7dXZ8qZ[7d[^8q^p7dqr:crs8qst@Ttw:cwx8qx!P:c!P!Q7d!Q!]:c!]!^/^!^!_=p!_!a8q!a#S:c#S#T=p#T#s:c#s$f7d$f;'S:c;'S;=`?}<%l?Ah:c?Ah?BY7d?BY?Mn:c?MnO7d!Z7ibkWOX7dXZ8qZ[7d[^8q^p7dqr7drs8qst+Ptw7dwx8qx!]7d!]!^9f!^!a8q!a#S7d#S#T8q#T;'S7d;'S;=`:]<%lO7d!R8tVOp8qqs8qt!]8q!]!^9Z!^;'S8q;'S;=`9`<%lO8q!R9`Oa!R!R9cP;=`<%l8q!Z9mYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z:`P;=`<%l7d!_:jjhSkWOX7dXZ8qZ[7d[^8q^p7dqr:crs8qst/^tw:cwx8qx!P:c!P!Q7d!Q!]:c!]!^<[!^!_=p!_!a8q!a#S:c#S#T=p#T#s:c#s$f7d$f;'S:c;'S;=`?}<%l?Ah:c?Ah?BY7d?BY?Mn:c?MnO7d!_b#d#s1n#s$f*V$f;'S1n;'S;=`3P<%l?Ah1n?Ah?BY*V?BY?Mn1n?MnO*V!V!>kdhS!a`!cpOq*Vqr1nrs(Vsv1nvw0pwx)ex!P1n!P!Q*V!Q!_1n!_!a*V!a#V1n#V#W!?y#W#s1n#s$f*V$f;'S1n;'S;=`3P<%l?Ah1n?Ah?BY*V?BY?Mn1n?MnO*V!V!@SdhS!a`!cpOq*Vqr1nrs(Vsv1nvw0pwx)ex!P1n!P!Q*V!Q!_1n!_!a*V!a#h1n#h#i!Ab#i#s1n#s$f*V$f;'S1n;'S;=`3P<%l?Ah1n?Ah?BY*V?BY?Mn1n?MnO*V!V!AkdhS!a`!cpOq*Vqr1nrs(Vsv1nvw0pwx)ex!P1n!P!Q*V!Q!_1n!_!a*V!a#m1n#m#n!By#n#s1n#s$f*V$f;'S1n;'S;=`3P<%l?Ah1n?Ah?BY*V?BY?Mn1n?MnO*V!V!CSdhS!a`!cpOq*Vqr1nrs(Vsv1nvw0pwx)ex!P1n!P!Q*V!Q!_1n!_!a*V!a#d1n#d#e!Db#e#s1n#s$f*V$f;'S1n;'S;=`3P<%l?Ah1n?Ah?BY*V?BY?Mn1n?MnO*V!V!DkdhS!a`!cpOq*Vqr1nrs(Vsv1nvw0pwx)ex!P1n!P!Q*V!Q!_1n!_!a*V!a#X1n#X#Y!5]#Y#s1n#s$f*V$f;'S1n;'S;=`3P<%l?Ah1n?Ah?BY*V?BY?Mn1n?MnO*V!V!FSchS!a`!cpOq!G_qr!Eyrs!HUsv!Eyvw!Ncwx!Jvx!P!Ey!P!Q!G_!Q!_!Ey!_!a!G_!a!b##T!b#s!Ey#s$f!G_$f;'S!Ey;'S;=`#$i<%l?Ah!Ey?Ah?BY!G_?BY?Mn!Ey?MnO!G_!R!GfY!a`!cpOr!G_rs!HUsv!G_vw!Hpwx!Jvx!a!G_!a!b!Lv!b;'S!G_;'S;=`!N]<%lO!G_q!HZV!cpOv!HUvx!Hpx!a!HU!a!b!Iq!b;'S!HU;'S;=`!Jp<%lO!HUP!HsTO!a!Hp!a!b!IS!b;'S!Hp;'S;=`!Ik<%lO!HpP!IVTO!`!Hp!`!a!If!a;'S!Hp;'S;=`!Ik<%lO!HpP!IkOxPP!InP;=`<%l!Hpq!IvV!cpOv!HUvx!Hpx!`!HU!`!a!J]!a;'S!HU;'S;=`!Jp<%lO!HUq!JdS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!JsP;=`<%l!HUa!J{X!a`Or!Jvrs!Hpsv!Jvvw!Hpw!a!Jv!a!b!Kh!b;'S!Jv;'S;=`!Lp<%lO!Jva!KmX!a`Or!Jvrs!Hpsv!Jvvw!Hpw!`!Jv!`!a!LY!a;'S!Jv;'S;=`!Lp<%lO!Jva!LaT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!LsP;=`<%l!Jv!R!L}Y!a`!cpOr!G_rs!HUsv!G_vw!Hpwx!Jvx!`!G_!`!a!Mm!a;'S!G_;'S;=`!N]<%lO!G_!R!MvV!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!N`P;=`<%l!G_T!NhbhSOq!Hpqr!Ncrs!Hpsw!Ncwx!Hpx!P!Nc!P!Q!Hp!Q!_!Nc!_!a!Hp!a!b# p!b#s!Nc#s$f!Hp$f;'S!Nc;'S;=`#!}<%l?Ah!Nc?Ah?BY!Hp?BY?Mn!Nc?MnO!HpT# ubhSOq!Hpqr!Ncrs!Hpsw!Ncwx!Hpx!P!Nc!P!Q!Hp!Q!_!Nc!_!`!Hp!`!a!If!a#s!Nc#s$f!Hp$f;'S!Nc;'S;=`#!}<%l?Ah!Nc?Ah?BY!Hp?BY?Mn!Nc?MnO!HpT##QP;=`<%l!Nc!V##^chS!a`!cpOq!G_qr!Eyrs!HUsv!Eyvw!Ncwx!Jvx!P!Ey!P!Q!G_!Q!_!Ey!_!`!G_!`!a!Mm!a#s!Ey#s$f!G_$f;'S!Ey;'S;=`#$i<%l?Ah!Ey?Ah?BY!G_?BY?Mn!Ey?MnO!G_!V#$lP;=`<%l!Ey!V#$zXiS`P!a`!cpOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X",tokenizers:[oe,ue,Oe,re,ae,ne,0,1,2,3,4,5],topRules:{Document:[0,15]},dialects:{noMatch:0,selfClosing:485},tokenPrec:487});function ce(e,t){let a=Object.create(null);for(let n of e.getChildren(T)){let e=n.getChild($),l=n.getChild(w)||n.getChild(Q);if(e)a[t.read(e.from,e.to)]=!l?"":l.type.id==w?t.read(l.from+1,l.to-1):t.read(l.from,l.to)}return a}function de(e,t){let a=e.getChild(y);return a?t.read(a.from,a.to):" "}function fe(e,t,a){let n;for(let l of a){if(!l.attrs||l.attrs(n||(n=ce(e.node.parent.firstChild,t))))return{parser:l.parser}}return null}function he(e=[],t=[]){let a=[],n=[],l=[],s=[];for(let r of e){let e=r.tag=="script"?a:r.tag=="style"?n:r.tag=="textarea"?l:s;e.push(r)}let o=t.length?Object.create(null):null;for(let r of t)(o[r.name]||(o[r.name]=[])).push(r);return(0,r.parseMixed)(((e,t)=>{let r=e.type.id;if(r==X)return fe(e,t,a);if(r==A)return fe(e,t,n);if(r==C)return fe(e,t,l);if(r==k&&s.length){let a=e.node,n=de(a,t),l;for(let r of s){if(r.tag==n&&(!r.attrs||r.attrs(l||(l=ce(a,t))))){let t=a.parent.lastChild;return{parser:r.parser,overlay:[{from:e.to,to:t.type.id==Y?t.from:a.parent.to}]}}}}if(o&&r==T){let a=e.node,n;if(n=a.firstChild){let e=o[t.read(n.from,n.to)];if(e)for(let n of e){if(n.tagName&&n.tagName!=de(a.parent,t))continue;let e=a.lastChild;if(e.type.id==w){let t=e.from+1;let a=e.lastChild,l=e.to-(a&&a.isError?0:1);if(l>t)return{parser:n.parser,overlay:[{from:t,to:l}]}}else if(e.type.id==Q){return{parser:n.parser,overlay:[{from:e.from,to:e.to}]}}}}}return null}))}var me=a(75201);var Se=a(62091);var ge=a(66143);var Pe=a(37496);var xe=a(24104);const be=["_blank","_self","_top","_parent"];const Ve=["ascii","utf-8","utf-16","latin1","latin1"];const ve=["get","post","put","delete"];const _e=["application/x-www-form-urlencoded","multipart/form-data","text/plain"];const qe=["true","false"];const ye={};const Te={a:{attrs:{href:null,ping:null,type:null,media:null,target:be,hreflang:null}},abbr:ye,address:ye,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:ye,aside:ye,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:ye,base:{attrs:{href:null,target:be}},bdi:ye,bdo:ye,blockquote:{attrs:{cite:null}},body:ye,br:ye,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:_e,formmethod:ve,formnovalidate:["novalidate"],formtarget:be,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:ye,center:ye,cite:ye,code:ye,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:ye,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:ye,div:ye,dl:ye,dt:ye,em:ye,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:ye,figure:ye,footer:ye,form:{attrs:{action:null,name:null,"accept-charset":Ve,autocomplete:["on","off"],enctype:_e,method:ve,novalidate:["novalidate"],target:be}},h1:ye,h2:ye,h3:ye,h4:ye,h5:ye,h6:ye,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:ye,hgroup:ye,hr:ye,html:{attrs:{manifest:null}},i:ye,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:_e,formmethod:ve,formnovalidate:["novalidate"],formtarget:be,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:ye,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:ye,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:ye,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:Ve,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:ye,noscript:ye,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:ye,param:{attrs:{name:null,value:null}},pre:ye,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:ye,rt:ye,ruby:ye,samp:ye,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:Ve}},section:ye,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:ye,source:{attrs:{src:null,type:null,media:null}},span:ye,strong:ye,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:ye,summary:ye,sup:ye,table:ye,tbody:ye,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:ye,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:ye,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:ye,time:{attrs:{datetime:null}},title:ye,tr:ye,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:ye,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:ye};const $e={accesskey:null,class:null,contenteditable:qe,contextmenu:null,dir:["ltr","rtl","auto"],draggable:["true","false","auto"],dropzone:["copy","move","link","string:","file:"],hidden:["hidden"],id:null,inert:["inert"],itemid:null,itemprop:null,itemref:null,itemscope:["itemscope"],itemtype:null,lang:["ar","bn","de","en-GB","en-US","es","fr","hi","id","ja","pa","pt","ru","tr","zh"],spellcheck:qe,autocorrect:qe,autocapitalize:qe,style:null,tabindex:null,title:null,translate:["yes","no"],rel:["stylesheet","alternate","author","bookmark","help","license","next","nofollow","noreferrer","prefetch","prev","search","tag"],role:"alert application article banner button cell checkbox complementary contentinfo dialog document feed figure form grid gridcell heading img list listbox listitem main navigation region row rowgroup search switch tab table tabpanel textbox timer".split(" "),"aria-activedescendant":null,"aria-atomic":qe,"aria-autocomplete":["inline","list","both","none"],"aria-busy":qe,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":qe,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":qe,"aria-hidden":qe,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":qe,"aria-multiselectable":qe,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":qe,"aria-relevant":null,"aria-required":qe,"aria-selected":["true","false","undefined"],"aria-setsize":null,"aria-sort":["ascending","descending","none","other"],"aria-valuemax":null,"aria-valuemin":null,"aria-valuenow":null,"aria-valuetext":null};const we=("beforeunload copy cut dragstart dragover dragleave dragenter dragend "+"drag paste focus blur change click load mousedown mouseenter mouseleave "+"mouseup keydown keyup resize scroll unload").split(" ").map((e=>"on"+e));for(let ze of we)$e[ze]=null;class Qe{constructor(e,t){this.tags=Object.assign(Object.assign({},Te),e);this.globalAttrs=Object.assign(Object.assign({},$e),t);this.allTags=Object.keys(this.tags);this.globalAttrNames=Object.keys(this.globalAttrs)}}Qe.default=new Qe;function Xe(e,t,a=e.length){if(!t)return"";let n=t.firstChild;let l=n&&n.getChild("TagName");return l?e.sliceString(l.from,Math.min(l.to,a)):""}function Ae(e,t=false){for(let a=e.parent;a;a=a.parent)if(a.name=="Element"){if(t)t=false;else return a}return null}function Ce(e,t,a){let n=a.tags[Xe(e,Ae(t,true))];return(n===null||n===void 0?void 0:n.children)||a.allTags}function ke(e,t){let a=[];for(let n=t;n=Ae(n);){let l=Xe(e,n);if(l&&n.lastChild.name=="CloseTag")break;if(l&&a.indexOf(l)<0&&(t.name=="EndTag"||t.from>=n.firstChild.to))a.push(l)}return a}const Ye=/^[:\-\.\w\u00b7-\uffff]*$/;function Me(e,t,a,n,l){let r=/\s*>/.test(e.sliceDoc(l,l+5))?"":">";return{from:n,to:l,options:Ce(e.doc,a,t).map((e=>({label:e,type:"type"}))).concat(ke(e.doc,a).map(((e,t)=>({label:"/"+e,apply:"/"+e+r,type:"type",boost:99-t})))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function Be(e,t,a,n){let l=/\s*>/.test(e.sliceDoc(n,n+5))?"":">";return{from:a,to:n,options:ke(e.doc,t).map(((e,t)=>({label:e,apply:e+l,type:"type",boost:99-t}))),validFor:Ye}}function Ge(e,t,a,n){let l=[],r=0;for(let s of Ce(e.doc,a,t))l.push({label:"<"+s,type:"type"});for(let s of ke(e.doc,a))l.push({label:"",type:"type",boost:99-r++});return{from:n,to:n,options:l,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function Ze(e,t,a,n,l){let r=Ae(a),s=r?t.tags[Xe(e.doc,r)]:null;let o=s&&s.attrs?Object.keys(s.attrs):[];let u=s&&s.globalAttrs===false?o:o.length?o.concat(t.globalAttrNames):t.globalAttrNames;return{from:n,to:l,options:u.map((e=>({label:e,type:"property"}))),validFor:Ye}}function De(e,t,a,n,l){var r;let s=(r=a.parent)===null||r===void 0?void 0:r.getChild("AttributeName");let o=[],u=undefined;if(s){let r=e.sliceDoc(s.from,s.to);let O=t.globalAttrs[r];if(!O){let n=Ae(a),l=n?t.tags[Xe(e.doc,n)]:null;O=(l===null||l===void 0?void 0:l.attrs)&&l.attrs[r]}if(O){let t=e.sliceDoc(n,l).toLowerCase(),a='"',r='"';if(/^['"]/.test(t)){u=t[0]=='"'?/^[^"]*$/:/^[^']*$/;a="";r=e.sliceDoc(l,l+1)==t[0]?"":t[0];t=t.slice(1);n++}else{u=/^[^\s<>='"]*$/}for(let e of O)o.push({label:e,apply:a+e+r,type:"constant"})}}return{from:n,to:l,options:o,validFor:u}}function Ee(e,t){let{state:a,pos:n}=t,l=(0,xe.syntaxTree)(a).resolveInner(n),r=l.resolve(n,-1);for(let s=n,o;l==r&&(o=r.childBefore(s));){let e=o.lastChild;if(!e||!e.type.isError||e.fromEe(n,e)}const He=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:Se.typescriptLanguage.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:Se.jsxLanguage.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:Se.tsxLanguage.parser},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:Se.javascriptLanguage.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:me.cssLanguage.parser}];const Ne=[{name:"style",parser:me.cssLanguage.parser.configure({top:"Styles"})}].concat(we.map((e=>({name:e,parser:Se.javascriptLanguage.parser}))));const Ie=xe.LRLanguage.define({name:"html",parser:pe.configure({props:[xe.indentNodeProp.add({Element(e){let t=/^(\s*)(<\/)?/.exec(e.textAfter);if(e.node.to<=e.pos+t[0].length)return e.continue();return e.lineIndent(e.node.from)+(t[2]?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit},Document(e){if(e.pos+/\s*/.exec(e.textAfter)[0].lengthe.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/\w+\W$/,wordChars:"-._"}});const Ue=Ie.configure({wrap:he(He,Ne)});function je(e={}){let t="",a;if(e.matchClosingTags===false)t="noMatch";if(e.selfClosingTags===true)t=(t?t+" ":"")+"selfClosing";if(e.nestedLanguages&&e.nestedLanguages.length||e.nestedAttributes&&e.nestedAttributes.length)a=he((e.nestedLanguages||[]).concat(He),(e.nestedAttributes||[]).concat(Ne));let n=a?Ie.configure({wrap:a,dialect:t}):t?Ue.configure({dialect:t}):Ue;return new xe.LanguageSupport(n,[Ue.data.of({autocomplete:We(e)}),e.autoCloseTags!==false?Le:[],(0,Se.javascript)().support,(0,me.css)().support])}const Je=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" "));const Le=ge.EditorView.inputHandler.of(((e,t,a,n)=>{if(e.composing||e.state.readOnly||t!=a||n!=">"&&n!="/"||!Ue.isActiveAt(e.state,t,-1))return false;let{state:l}=e;let r=l.changeByRange((t=>{var a,r,s;let{head:o}=t,u=(0,xe.syntaxTree)(l).resolveInner(o,-1),O;if(u.name=="TagName"||u.name=="StartTag")u=u.parent;if(n==">"&&u.name=="OpenTag"){if(((r=(a=u.parent)===null||a===void 0?void 0:a.lastChild)===null||r===void 0?void 0:r.name)!="CloseTag"&&(O=Xe(l.doc,u.parent,o))&&!Je.has(O)){let t=e.state.doc.sliceString(o,o+1)===">";let a=`${t?"":">"}`;return{range:Pe.EditorSelection.cursor(o+1),changes:{from:o+(t?1:0),insert:a}}}}else if(n=="/"&&u.name=="OpenTag"){let t=u.parent,a=t===null||t===void 0?void 0:t.parent;if(t.from==o-1&&((s=a.lastChild)===null||s===void 0?void 0:s.name)!="CloseTag"&&(O=Xe(l.doc,a,o))&&!Je.has(O)){let t=e.state.doc.sliceString(o,o+1)===">";let a=`/${O}${t?"":">"}`;let n=o+a.length+(t?1:0);return{range:Pe.EditorSelection.cursor(n),changes:{from:o,insert:a}}}}return{range:t}}));if(r.changes.empty)return false;e.dispatch(r,{userEvent:"input.type",scrollIntoView:true});return true}))}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/4986.a497cdda4b7152902568.js b/bootcamp/share/jupyter/lab/static/4986.a497cdda4b7152902568.js new file mode 100644 index 0000000..012949e --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/4986.a497cdda4b7152902568.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[4986],{54986:(t,e,i)=>{i.r(e);i.d(e,{BidiSpan:()=>we,BlockInfo:()=>Fi,BlockType:()=>Mt,Decoration:()=>kt,Direction:()=>le,EditorView:()=>Os,GutterMarker:()=>Mn,MatchDecorator:()=>wo,RectangleMarker:()=>$s,ViewPlugin:()=>Qt,ViewUpdate:()=>re,WidgetType:()=>xt,__test:()=>tr,closeHoverTooltips:()=>pn,crosshairCursor:()=>$o,drawSelection:()=>so,dropCursor:()=>po,getPanel:()=>vn,getTooltip:()=>fn,gutter:()=>Dn,gutterLineClass:()=>kn,gutters:()=>On,hasHoverTooltips:()=>dn,highlightActiveLine:()=>Lo,highlightActiveLineGutter:()=>$n,highlightSpecialChars:()=>ko,highlightTrailingWhitespace:()=>Zn,highlightWhitespace:()=>Qn,hoverTooltip:()=>cn,keymap:()=>Ws,layer:()=>to,lineNumberMarkers:()=>Nn,lineNumbers:()=>Kn,logException:()=>_t,panels:()=>wn,placeholder:()=>No,rectangularSelection:()=>qo,repositionTooltips:()=>gn,runScopeHandlers:()=>Is,scrollPastEnd:()=>Bo,showPanel:()=>xn,showTooltip:()=>sn,tooltips:()=>Xo});var s=i(37496);var o=i(67737);var n={8:"Backspace",9:"Tab",10:"Enter",12:"NumLock",13:"Enter",16:"Shift",17:"Control",18:"Alt",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",44:"PrintScreen",45:"Insert",46:"Delete",59:";",61:"=",91:"Meta",92:"Meta",106:"*",107:"+",108:",",109:"-",110:".",111:"/",144:"NumLock",145:"ScrollLock",160:"Shift",161:"Shift",162:"Control",163:"Control",164:"Alt",165:"Alt",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"};var r={48:")",49:"!",50:"@",51:"#",52:"$",53:"%",54:"^",55:"&",56:"*",57:"(",59:":",61:"+",173:"_",186:":",187:"+",188:"<",189:"_",190:">",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'};var l=typeof navigator!="undefined"&&/Chrome\/(\d+)/.exec(navigator.userAgent);var h=typeof navigator!="undefined"&&/Gecko\/\d+/.test(navigator.userAgent);var a=typeof navigator!="undefined"&&/Mac/.test(navigator.platform);var c=typeof navigator!="undefined"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);var f=a||l&&+l[1]<57;for(var d=0;d<10;d++)n[48+d]=n[96+d]=String(d);for(var d=1;d<=24;d++)n[d+111]="F"+d;for(var d=65;d<=90;d++){n[d]=String.fromCharCode(d+32);r[d]=String.fromCharCode(d)}for(var u in n)if(!r.hasOwnProperty(u))r[u]=n[u];function p(t){var e=f&&(t.ctrlKey||t.altKey||t.metaKey)||c&&t.shiftKey&&t.key&&t.key.length==1||t.key=="Unidentified";var i=!e&&t.key||(t.shiftKey?r:n)[t.keyCode]||t.key||"Unidentified";if(i=="Esc")i="Escape";if(i=="Del")i="Delete";if(i=="Left")i="ArrowLeft";if(i=="Up")i="ArrowUp";if(i=="Right")i="ArrowRight";if(i=="Down")i="ArrowDown";return i}function g(t){let e;if(t.nodeType==11){e=t.getSelection?t:t.ownerDocument}else{e=t}return e.getSelection()}function m(t,e){return e?t==e||t.contains(e.nodeType!=1?e.parentNode:e):false}function w(t){let e=t.activeElement;while(e&&e.shadowRoot)e=e.shadowRoot.activeElement;return e}function v(t,e){if(!e.anchorNode)return false;try{return m(t,e.anchorNode)}catch(i){return false}}function b(t){if(t.nodeType==3)return L(t,0,t.nodeValue.length).getClientRects();else if(t.nodeType==1)return t.getClientRects();else return[]}function y(t,e,i,s){return i?x(t,e,i,s,-1)||x(t,e,i,s,1):false}function S(t){for(var e=0;;e++){t=t.previousSibling;if(!t)return e}}function x(t,e,i,s,o){for(;;){if(t==i&&e==s)return true;if(e==(o<0?0:M(t))){if(t.nodeName=="DIV")return false;let i=t.parentNode;if(!i||i.nodeType!=1)return false;e=S(t)+(o<0?0:1);t=i}else if(t.nodeType==1){t=t.childNodes[e+(o<0?-1:0)];if(t.nodeType==1&&t.contentEditable=="false")return false;e=o<0?M(t):0}else{return false}}}function M(t){return t.nodeType==3?t.nodeValue.length:t.childNodes.length}const k={left:0,right:0,top:0,bottom:0};function C(t,e){let i=e?t.left:t.right;return{left:i,right:i,top:t.top,bottom:t.bottom}}function A(t){return{left:0,right:t.innerWidth,top:0,bottom:t.innerHeight}}function D(t,e,i,s,o,n,r,l){let h=t.ownerDocument,a=h.defaultView||window;for(let c=t;c;){if(c.nodeType==1){let t,f=c==h.body;if(f){t=A(a)}else{if(c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let e=c.getBoundingClientRect();t={left:e.left,right:e.left+c.clientWidth,top:e.top,bottom:e.top+c.clientHeight}}let d=0,u=0;if(o=="nearest"){if(e.top0&&e.bottom>t.bottom+u)u=e.bottom-t.bottom+u+r}else if(e.bottom>t.bottom){u=e.bottom-t.bottom+r;if(i<0&&e.top-u0&&e.right>t.right+d)d=e.right-t.right+d+n}else if(e.right>t.right){d=e.right-t.right+n;if(i<0&&e.lefti.clientHeight||i.scrollWidth>i.clientWidth)return i;i=i.assignedSlot||i.parentNode}else if(i.nodeType==11){i=i.host}else{break}}return null}class O{constructor(){this.anchorNode=null;this.anchorOffset=0;this.focusNode=null;this.focusOffset=0}eq(t){return this.anchorNode==t.anchorNode&&this.anchorOffset==t.anchorOffset&&this.focusNode==t.focusNode&&this.focusOffset==t.focusOffset}setRange(t){this.set(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset)}set(t,e,i,s){this.anchorNode=t;this.anchorOffset=e;this.focusNode=i;this.focusOffset=s}}let E=null;function R(t){if(t.setActive)return t.setActive();if(E)return t.focus(E);let e=[];for(let i=t;i;i=i.parentNode){e.push(i,i.scrollTop,i.scrollLeft);if(i==i.ownerDocument)break}t.focus(E==null?{get preventScroll(){E={preventScroll:true};return true}}:undefined);if(!E){E=false;for(let t=0;te)return i.domBoundsAround(t,e,h);if(c>=t&&s==-1){s=l;o=h}if(h>e&&i.dom.parentNode==this.dom){n=l;r=a;break}a=c;h=c+i.breakAfter}return{from:o,to:r<0?i+this.length:r,startDOM:(s?this.children[s-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:n=0?this.children[n].dom:null}}markDirty(t=false){this.dirty|=2;this.markParentsDirty(t)}markParentsDirty(t){for(let e=this.parent;e;e=e.parent){if(t)e.dirty|=2;if(e.dirty&1)return;e.dirty|=1;t=false}}setParent(t){if(this.parent!=t){this.parent=t;if(this.dirty)this.markParentsDirty(true)}}setDOM(t){if(this.dom)this.dom.cmView=null;this.dom=t;t.cmView=this}get rootView(){for(let t=this;;){let e=t.parent;if(!e)return t;t=e}}replaceChildren(t,e,i=F){this.markDirty();for(let s=t;sthis.pos||t==this.pos&&(e>0||this.i==0||this.children[this.i-1].breakAfter)){this.off=t-this.pos;return this}let i=this.children[--this.i];this.pos-=i.length+i.breakAfter}}}function q(t,e,i,s,o,n,r,l,h){let{children:a}=t;let c=a.length?a[e]:null;let f=n.length?n[n.length-1]:null;let d=f?f.breakAfter:r;if(e==s&&c&&!r&&!d&&n.length<2&&c.merge(i,o,n.length?f:null,i==0,l,h))return;if(s0){if(!r&&n.length&&c.merge(i,c.length,n[0],false,l,0)){c.breakAfter=n.shift().breakAfter}else if(i2);var it={mac:et||/Mac/.test(j.platform),windows:/Win/.test(j.platform),linux:/Linux|X11/.test(j.platform),ie:Y,ie_version:U?$.documentMode||6:X?+X[1]:_?+_[1]:0,gecko:Q,gecko_version:Q?+(/Firefox\/(\d+)/.exec(j.userAgent)||[0,0])[1]:0,chrome:!!J,chrome_version:J?+J[1]:0,ios:et,android:/Android\b/.test(j.userAgent),webkit:Z,safari:tt,webkit_version:Z?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:$.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const st=256;class ot extends z{constructor(t){super();this.text=t}get length(){return this.text.length}createDOM(t){this.setDOM(t||document.createTextNode(this.text))}sync(t,e){if(!this.dom)this.createDOM();if(this.dom.nodeValue!=this.text){if(e&&e.node==this.dom)e.written=true;this.dom.nodeValue=this.text}}reuseDOM(t){if(t.nodeType==3)this.createDOM(t)}merge(t,e,i){if(i&&(!(i instanceof ot)||this.length-(e-t)+i.length>st))return false;this.text=this.text.slice(0,t)+(i?i.text:"")+this.text.slice(e);this.markDirty();return true}split(t){let e=new ot(this.text.slice(t));this.text=this.text.slice(0,t);this.markDirty();return e}localPosFromDOM(t,e){return t==this.dom?e:e?this.text.length:0}domAtPos(t){return new W(this.dom,t)}domBoundsAround(t,e,i){return{from:i,to:i+this.length,startDOM:this.dom,endDOM:this.dom.nextSibling}}coordsAt(t,e){return rt(this.dom,t,e)}}class nt extends z{constructor(t,e=[],i=0){super();this.mark=t;this.children=e;this.length=i;for(let s of e)s.setParent(this)}setAttrs(t){V(t);if(this.mark.class)t.className=this.mark.class;if(this.mark.attrs)for(let e in this.mark.attrs)t.setAttribute(e,this.mark.attrs[e]);return t}reuseDOM(t){if(t.nodeName==this.mark.tagName.toUpperCase()){this.setDOM(t);this.dirty|=4|2}}sync(t,e){if(!this.dom)this.setDOM(this.setAttrs(document.createElement(this.mark.tagName)));else if(this.dirty&4)this.setAttrs(this.dom);super.sync(t,e)}merge(t,e,i,s,o,n){if(i&&(!(i instanceof nt&&i.mark.eq(this.mark))||t&&o<=0||et)e.push(i=t)s=o;i=n;o++}let n=this.length-t;this.length=t;if(s>-1){this.children.length=s;this.markDirty()}return new nt(this.mark,e,n)}domAtPos(t){return gt(this,t)}coordsAt(t,e){return wt(this,t,e)}}function rt(t,e,i){let s=t.nodeValue.length;if(e>s)e=s;let o=e,n=e,r=0;if(e==0&&i<0||e==s&&i>=0){if(!(it.chrome||it.gecko)){if(e){o--;r=1}else if(n=0)?0:l.length-1];if(it.safari&&!r&&h.width==0)h=Array.prototype.find.call(l,(t=>t.width))||h;return r?C(h,r<0):h||null}class lt extends z{constructor(t,e,i){super();this.widget=t;this.length=e;this.side=i;this.prevWidget=null}static create(t,e,i){return new(t.customView||lt)(t,e,i)}split(t){let e=lt.create(this.widget,this.length-t,this.side);this.length-=t;return e}sync(t){if(!this.dom||!this.widget.updateDOM(this.dom,t)){if(this.dom&&this.prevWidget)this.prevWidget.destroy(this.dom);this.prevWidget=null;this.setDOM(this.widget.toDOM(t));this.dom.contentEditable="false"}}getSide(){return this.side}merge(t,e,i,s,o,n){if(i&&(!(i instanceof lt)||!this.widget.compare(i.widget)||t>0&&o<=0||e0)?W.before(this.dom):W.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,e){let i=this.dom.getClientRects(),s=null;if(!i.length)return k;for(let o=t>0?i.length-1:0;;o+=t>0?-1:1){s=i[o];if(t>0?o==0:o==i.length-1||s.top0)}get isEditable(){return false}get isWidget(){return true}get isHidden(){return this.widget.isHidden}destroy(){super.destroy();if(this.dom)this.widget.destroy(this.dom)}}class ht extends lt{domAtPos(t){let{topView:e,text:i}=this.widget;if(!e)return new W(i,Math.min(t,i.nodeValue.length));return at(t,0,e,i,this.length-e.length,((t,e)=>t.domAtPos(e)),((t,e)=>new W(t,Math.min(e,t.nodeValue.length))))}sync(){this.setDOM(this.widget.toDOM())}localPosFromDOM(t,e){let{topView:i,text:s}=this.widget;if(!i)return Math.min(e,this.length);return ft(t,e,i,s,this.length-i.length)}ignoreMutation(){return false}get overrideDOMText(){return null}coordsAt(t,e){let{topView:i,text:s}=this.widget;if(!i)return rt(s,t,e);return at(t,e,i,s,this.length-i.length,((t,e,i)=>t.coordsAt(e,i)),((t,e,i)=>rt(t,e,i)))}destroy(){var t;super.destroy();(t=this.widget.topView)===null||t===void 0?void 0:t.destroy()}get isEditable(){return true}canReuseDOM(){return true}}function at(t,e,i,s,o,n,r){if(i instanceof nt){for(let l=i.dom.firstChild;l;l=l.nextSibling){let i=z.get(l);if(!i){let i=ct(t,e,l,r);if(typeof i!="number")return i;t=i}else{let h=m(l,s);let a=i.length+(h?o:0);if(t0?W.before(this.dom):W.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){let e=this.dom.getBoundingClientRect();let i=pt(this,this.side>0?-1:1);return i&&i.tope.top?{left:e.left,right:e.right,top:i.top,bottom:i.bottom}:e}get overrideDOMText(){return s.Text.empty}get isHidden(){return true}}ot.prototype.children=lt.prototype.children=ut.prototype.children=F;function pt(t,e){let i=t.parent,s=i?i.children.indexOf(t):-1;while(i&&s>=0){if(e<0?s>0:sn&&e0;n--){let t=s[n-1];if(t.dom.parentNode==i)return t.domAtPos(t.length)}for(let n=o;n0&&e instanceof nt&&o.length&&(s=o[o.length-1])instanceof nt&&s.mark.eq(e.mark)){mt(s,e.children[0],i-1)}else{o.push(e);e.setParent(t)}t.length+=e.length}function wt(t,e,i){let s=null,o=-1,n=null,r=-1;function l(t,e){for(let h=0,a=0;h=e){if(c.children.length){l(c,e-a)}else if((!n||n instanceof ut&&i>0)&&(f>e||a==f&&c.getSide()>0)){n=c;r=e-a}else if(a0?3e8:-4e8:e>0?1e8:-1e8;return new Dt(t,e,e,i,t.widget||null,false)}static replace(t){let e=!!t.block,i,s;if(t.isBlockGap){i=-5e8;s=4e8}else{let{start:o,end:n}=Tt(t,e);i=(o?e?-3e8:-1:5e8)-1;s=(n?e?2e8:1:-6e8)+1}return new Dt(t,i,s,e,t.widget||null,true)}static line(t){return new At(t)}static set(t,e=false){return s.RangeSet.of(t,e)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:false}}kt.none=s.RangeSet.empty;class Ct extends kt{constructor(t){let{start:e,end:i}=Tt(t);super(e?-1:5e8,i?1:-6e8,null,t);this.tagName=t.tagName||"span";this.class=t.class||"";this.attrs=t.attributes||null}eq(t){return this==t||t instanceof Ct&&this.tagName==t.tagName&&this.class==t.class&&yt(this.attrs,t.attrs)}range(t,e=t){if(t>=e)throw new RangeError("Mark decorations may not be empty");return super.range(t,e)}}Ct.prototype.point=false;class At extends kt{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof At&&this.spec.class==t.spec.class&&yt(this.spec.attributes,t.spec.attributes)}range(t,e=t){if(e!=t)throw new RangeError("Line decoration ranges must be zero-length");return super.range(t,e)}}At.prototype.mapMode=s.MapMode.TrackBefore;At.prototype.point=true;class Dt extends kt{constructor(t,e,i,o,n,r){super(e,i,n,t);this.block=o;this.isReplace=r;this.mapMode=!o?s.MapMode.TrackDel:e<=0?s.MapMode.TrackBefore:s.MapMode.TrackAfter}get type(){return this.startSide=5}eq(t){return t instanceof Dt&&Ot(this.widget,t.widget)&&this.block==t.block&&this.startSide==t.startSide&&this.endSide==t.endSide}range(t,e=t){if(this.isReplace&&(t>e||t==e&&this.startSide>0&&this.endSide<=0))throw new RangeError("Invalid range for replacement decoration");if(!this.isReplace&&e!=t)throw new RangeError("Widget decorations can only have zero-length ranges");return super.range(t,e)}}Dt.prototype.point=true;function Tt(t,e=false){let{inclusiveStart:i,inclusiveEnd:s}=t;if(i==null)i=t.inclusive;if(s==null)s=t.inclusive;return{start:i!==null&&i!==void 0?i:e,end:s!==null&&s!==void 0?s:e}}function Ot(t,e){return t==e||!!(t&&e&&t.compare(e))}function Et(t,e,i,s=0){let o=i.length-1;if(o>=0&&i[o]+s>=t)i[o]=Math.max(i[o],e);else i.push(t,e)}class Rt extends z{constructor(){super(...arguments);this.children=[];this.length=0;this.prevAttrs=undefined;this.attrs=null;this.breakAfter=0}merge(t,e,i,s,o,n){if(i){if(!(i instanceof Rt))return false;if(!this.dom)i.transferDOM(this)}if(s)this.setDeco(i?i.attrs:null);G(this,t,e,i?i.children:[],o,n);return true}split(t){let e=new Rt;e.breakAfter=this.breakAfter;if(this.length==0)return e;let{i,off:s}=this.childPos(t);if(s){e.append(this.children[i].split(s),0);this.children[i].merge(s,this.children[i].length,null,false,0,0);i++}for(let o=i;o0&&this.children[i-1].length==0)this.children[--i].destroy();this.children.length=i;this.markDirty();this.length=t;return e}transferDOM(t){if(!this.dom)return;this.markDirty();t.setDOM(this.dom);t.prevAttrs=this.prevAttrs===undefined?this.attrs:this.prevAttrs;this.prevAttrs=undefined;this.dom=null}setDeco(t){if(!yt(this.attrs,t)){if(this.dom){this.prevAttrs=this.attrs;this.markDirty()}this.attrs=t}}append(t,e){mt(this,t,e)}addLineDeco(t){let e=t.spec.attributes,i=t.spec.class;if(e)this.attrs=bt(e,this.attrs||{});if(i)this.attrs=bt({class:i},this.attrs||{})}domAtPos(t){return gt(this,t)}reuseDOM(t){if(t.nodeName=="DIV"){this.setDOM(t);this.dirty|=4|2}}sync(t,e){var i;if(!this.dom){this.setDOM(document.createElement("div"));this.dom.className="cm-line";this.prevAttrs=this.attrs?null:undefined}else if(this.dirty&4){V(this.dom);this.dom.className="cm-line";this.prevAttrs=this.attrs?null:undefined}if(this.prevAttrs!==undefined){St(this.dom,this.prevAttrs,this.attrs);this.dom.classList.add("cm-line");this.prevAttrs=undefined}super.sync(t,e);let s=this.dom.lastChild;while(s&&z.get(s)instanceof nt)s=s.lastChild;if(!s||!this.length||s.nodeName!="BR"&&((i=z.get(s))===null||i===void 0?void 0:i.isEditable)==false&&(!it.ios||!this.children.some((t=>t instanceof ot)))){let t=document.createElement("BR");t.cmIgnore=true;this.dom.appendChild(t)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let t=0,e;for(let i of this.children){if(!(i instanceof ot)||/[^ -~]/.test(i.text))return null;let s=b(i.dom);if(s.length!=1)return null;t+=s[0].width;e=s[0].height}return!t?null:{lineHeight:this.dom.getBoundingClientRect().height,charWidth:t/this.length,textHeight:e}}coordsAt(t,e){let i=wt(this,t,e);if(!this.children.length&&i&&this.parent){let{heightOracle:t}=this.parent.view.viewState,e=i.bottom-i.top;if(Math.abs(e-t.lineHeight)<2&&t.textHeight=e){if(o instanceof Rt)return o;if(n>e)break}s=n+o.breakAfter}return null}}class Bt extends z{constructor(t,e,i){super();this.widget=t;this.length=e;this.type=i;this.breakAfter=0;this.prevWidget=null}merge(t,e,i,s,o,n){if(i&&(!(i instanceof Bt)||!this.widget.compare(i.widget)||t>0&&o<=0||e0){if(this.textOff==this.text.length){let{value:e,lineBreak:i,done:s}=this.cursor.next(this.skip);this.skip=0;if(s)throw new Error("Ran out of text content when drawing inline views");if(i){if(!this.posCovered())this.getLine();if(this.content.length)this.content[this.content.length-1].breakAfter=1;else this.breakAtStart=1;this.flushBuffer();this.curLine=null;this.atCursorPos=true;t--;continue}else{this.text=e;this.textOff=0}}let s=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(e.slice(e.length-i));this.getLine().append(Ht(new ot(this.text.slice(this.textOff,this.textOff+s)),e),i);this.atCursorPos=true;this.textOff+=s;t-=s;i=0}}span(t,e,i,s){this.buildText(e-t,i,s);this.pos=e;if(this.openStart<0)this.openStart=s}point(t,e,i,s,o,n){if(this.disallowBlockEffectsFor[n]&&i instanceof Dt){if(i.block)throw new RangeError("Block decorations may not be specified via plugins");if(e>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let r=e-t;if(i instanceof Dt){if(i.block){let{type:t}=i;if(t==Mt.WidgetAfter&&!this.posCovered())this.getLine();this.addBlockWidget(new Bt(i.widget||new Pt("div"),r,t))}else{let n=lt.create(i.widget||new Pt("span"),r,r?0:i.startSide);let l=this.atCursorPos&&!n.isEditable&&o<=s.length&&(t0);let h=!n.isEditable&&(ts.length||i.startSide<=0);let a=this.getLine();if(this.pendingBuffer==2&&!l&&!n.isEditable)this.pendingBuffer=0;this.flushBuffer(s);if(l){a.append(Ht(new ut(1),s),o);o=s.length+Math.max(0,o-s.length)}a.append(Ht(n,s),o);this.atCursorPos=h;this.pendingBuffer=!h?0:ts.length?1:2;if(this.pendingBuffer)this.bufferMarks=s.slice()}}else if(this.doc.lineAt(this.pos).from==this.pos){this.getLine().addLineDeco(i)}if(r){if(this.textOff+r<=this.text.length){this.textOff+=r}else{this.skip+=r-(this.text.length-this.textOff);this.text="";this.textOff=0}this.pos=e}if(this.openStart<0)this.openStart=o}static build(t,e,i,o,n){let r=new Lt(t,e,i,n);r.openEnd=s.RangeSet.spans(o,e,i,r);if(r.openStart<0)r.openStart=r.openEnd;r.finish(r.openEnd);return r}}function Ht(t,e){for(let i of e)t=new nt(i,[t],t.length);return t}class Pt extends xt{constructor(t){super();this.tag=t}eq(t){return t.tag==this.tag}toDOM(){return document.createElement(this.tag)}updateDOM(t){return t.nodeName.toLowerCase()==this.tag}get isHidden(){return true}}const Vt=s.Facet.define();const Nt=s.Facet.define();const Wt=s.Facet.define();const Ft=s.Facet.define();const zt=s.Facet.define();const It=s.Facet.define();const Kt=s.Facet.define();const qt=s.Facet.define({combine:t=>t.some((t=>t))});const Gt=s.Facet.define({combine:t=>t.some((t=>t))});class jt{constructor(t,e="nearest",i="nearest",s=5,o=5){this.range=t;this.y=e;this.x=i;this.yMargin=s;this.xMargin=o}map(t){return t.empty?this:new jt(this.range.map(t),this.y,this.x,this.yMargin,this.xMargin)}}const $t=s.StateEffect.define({map:(t,e)=>t.map(e)});function _t(t,e,i){let s=t.facet(Ft);if(s.length)s[0](e);else if(window.onerror)window.onerror(String(e),i,undefined,undefined,e);else if(i)console.error(i+":",e);else console.error(e)}const Ut=s.Facet.define({combine:t=>t.length?t[0]:true});let Xt=0;const Yt=s.Facet.define();class Qt{constructor(t,e,i,s){this.id=t;this.create=e;this.domEventHandlers=i;this.extension=s(this)}static define(t,e){const{eventHandlers:i,provide:s,decorations:o}=e||{};return new Qt(Xt++,t,i,(t=>{let e=[Yt.of(t)];if(o)e.push(ee.of((e=>{let i=e.plugin(t);return i?o(i):kt.none})));if(s)e.push(s(t));return e}))}static fromClass(t,e){return Qt.define((e=>new t(e)),e)}}class Jt{constructor(t){this.spec=t;this.mustUpdate=null;this.value=null}update(t){if(!this.value){if(this.spec){try{this.value=this.spec.create(t)}catch(e){_t(t.state,e,"CodeMirror plugin crashed");this.deactivate()}}}else if(this.mustUpdate){let t=this.mustUpdate;this.mustUpdate=null;if(this.value.update){try{this.value.update(t)}catch(e){_t(t.state,e,"CodeMirror plugin crashed");if(this.value.destroy)try{this.value.destroy()}catch(i){}this.deactivate()}}}return this}destroy(t){var e;if((e=this.value)===null||e===void 0?void 0:e.destroy){try{this.value.destroy()}catch(i){_t(t.state,i,"CodeMirror plugin crashed")}}}deactivate(){this.spec=this.value=null}}const Zt=s.Facet.define();const te=s.Facet.define();const ee=s.Facet.define();const ie=s.Facet.define();const se=s.Facet.define();const oe=s.Facet.define();class ne{constructor(t,e,i,s){this.fromA=t;this.toA=e;this.fromB=i;this.toB=s}join(t){return new ne(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let e=t.length,i=this;for(;e>0;e--){let s=t[e-1];if(s.fromA>i.toA)continue;if(s.toAa)break;else o+=2}if(!l)return i;new ne(l.fromA,l.toA,l.fromB,l.toB).addToSet(i);n=l.toA;r=l.toB}}}class re{constructor(t,e,i){this.view=t;this.state=e;this.transactions=i;this.flags=0;this.startState=t.state;this.changes=s.ChangeSet.empty(this.startState.doc.length);for(let s of i)this.changes=this.changes.compose(s.changes);let o=[];this.changes.iterChangedRanges(((t,e,i,s)=>o.push(new ne(t,e,i,s))));this.changedRanges=o}static create(t,e,i){return new re(t,e,i)}get viewportChanged(){return(this.flags&4)>0}get heightChanged(){return(this.flags&2)>0}get geometryChanged(){return this.docChanged||(this.flags&(8|2))>0}get focusChanged(){return(this.flags&1)>0}get docChanged(){return!this.changes.empty}get selectionSet(){return this.transactions.some((t=>t.selection))}get empty(){return this.flags==0&&this.transactions.length==0}}var le=function(t){t[t["LTR"]=0]="LTR";t[t["RTL"]=1]="RTL";return t}(le||(le={}));const he=le.LTR,ae=le.RTL;function ce(t){let e=[];for(let i=0;i=e){if(r.level==i)return n;if(o<0||(s!=0?s<0?r.frome:t[o].level>r.level))o=n}}if(o<0)throw new RangeError("Index out of range");return o}}const ve=[];function be(t,e){let i=t.length,s=e==he?1:2,o=e==he?2:1;if(!t||s==1&&!me.test(t))return ye(i);for(let r=0,l=s,h=s;r=0;t-=3){if(pe[t+1]==-c){let e=pe[t+2];let i=e&2?s:!(e&4)?0:e&1?o:s;if(i)ve[r]=ve[pe[t]]=i;l=t;break}}}else if(pe.length==189){break}else{pe[l++]=r;pe[l++]=a;pe[l++]=h}}else if((f=ve[r])==2||f==1){let t=f==s;h=t?0:1;for(let e=l-3;e>=0;e-=3){let i=pe[e+2];if(i&2)break;if(t){pe[e+2]|=2}else{if(i&4)break;pe[e+2]|=4}}}}for(let r=0;re;){let t=i,s=ve[--i]!=2;while(i>e&&s==(ve[i-1]!=2))i--;n.push(new we(i,t,s?2:1))}}else{n.push(new we(e,t,0))}}}else{for(let t=0;t1)for(let e of this.points)if(e.node==t&&e.pos>this.text.length)e.pos-=n-1;i=o+n}}readNode(t){if(t.cmIgnore)return;let e=z.get(t);let i=e&&e.overrideDOMText;if(i!=null){this.findPointInside(t,i.length);for(let t=i.iter();!t.next().done;){if(t.lineBreak)this.lineBreak();else this.append(t.value)}}else if(t.nodeType==3){this.readTextNode(t)}else if(t.nodeName=="BR"){if(t.nextSibling)this.lineBreak()}else if(t.nodeType==1){this.readRange(t.firstChild,null)}}findPointBefore(t,e){for(let i of this.points)if(i.node==t&&t.childNodes[i.offset]==e)i.pos=this.text.length}findPointInside(t,e){for(let i of this.points)if(t.nodeType==3?i.node==t:t.contains(i.node))i.pos=this.text.length+Math.min(e,i.offset)}}function Ce(t){return t.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(t.nodeName)}class Ae{constructor(t,e){this.node=t;this.offset=e;this.pos=-1}}class De extends z{constructor(t){super();this.view=t;this.compositionDeco=kt.none;this.decorations=[];this.dynamicDecorationMap=[];this.minWidth=0;this.minWidthFrom=0;this.minWidthTo=0;this.impreciseAnchor=null;this.impreciseHead=null;this.forceSelection=false;this.lastUpdate=Date.now();this.setDOM(t.contentDOM);this.children=[new Rt];this.children[0].setParent(this);this.updateDeco();this.updateInner([new ne(0,0,0,t.state.doc.length)],0)}get length(){return this.view.state.doc.length}update(t){let e=t.changedRanges;if(this.minWidth>0&&e.length){if(!e.every((({fromA:t,toA:e})=>ethis.minWidthTo))){this.minWidth=this.minWidthFrom=this.minWidthTo=0}else{this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1);this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)}}if(this.view.inputState.composing<0)this.compositionDeco=kt.none;else if(t.transactions.length||this.dirty)this.compositionDeco=Re(this.view,t.changes);if((it.ie||it.chrome)&&!this.compositionDeco.size&&t&&t.state.doc.lines!=t.startState.doc.lines)this.forceSelection=true;let i=this.decorations,s=this.updateDeco();let o=Ve(i,s,t.changes);e=ne.extendWithRanges(e,o);if(this.dirty==0&&e.length==0){return false}else{this.updateInner(e,t.startState.doc.length);if(t.transactions.length)this.lastUpdate=Date.now();return true}}updateInner(t,e){this.view.viewState.mustMeasureContent=true;this.updateChildren(t,e);let{observer:i}=this.view;i.ignore((()=>{this.dom.style.height=this.view.viewState.contentHeight+"px";this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let t=it.chrome||it.ios?{node:i.selectionRange.focusNode,written:false}:undefined;this.sync(this.view,t);this.dirty=0;if(t&&(t.written||i.selectionRange.focusNode!=t.node))this.forceSelection=true;this.dom.style.height=""}));let s=[];if(this.view.viewport.from||this.view.viewport.to=0?t[s]:null;if(!e)break;let{fromA:o,toA:n,fromB:r,toB:l}=e;let{content:h,breakAtStart:a,openStart:c,openEnd:f}=Lt.build(this.view.state.doc,r,l,this.decorations,this.dynamicDecorationMap);let{i:d,off:u}=i.findPos(n,1);let{i:p,off:g}=i.findPos(o,-1);q(this,p,g,d,u,h,a,c,f)}}updateSelection(t=false,e=false){if(t||!this.view.observer.selectionRange.focusNode)this.view.observer.readSelectionRange();let i=this.view.root.activeElement,s=i==this.dom;let o=!s&&v(this.dom,this.view.observer.selectionRange)&&!(i&&this.dom.contains(i));if(!(s||e||o))return;let n=this.forceSelection;this.forceSelection=false;let r=this.view.state.selection.main;let l=this.domAtPos(r.anchor);let h=r.empty?l:this.domAtPos(r.head);if(it.gecko&&r.empty&&!this.compositionDeco.size&&Te(l)){let t=document.createTextNode("");this.view.observer.ignore((()=>l.node.insertBefore(t,l.node.childNodes[l.offset]||null)));l=h=new W(t,0);n=true}let a=this.view.observer.selectionRange;if(n||!a.focusNode||!y(l.node,l.offset,a.anchorNode,a.anchorOffset)||!y(h.node,h.offset,a.focusNode,a.focusOffset)){this.view.observer.ignore((()=>{if(it.android&&it.chrome&&this.dom.contains(a.focusNode)&&Ne(a.focusNode,this.dom)){this.dom.blur();this.dom.focus({preventScroll:true})}let t=g(this.view.root);if(!t);else if(r.empty){if(it.gecko){let t=He(l.node,l.offset);if(t&&t!=(1|2)){let e=Le(l.node,l.offset,t==1?1:-1);if(e)l=new W(e,t==1?0:e.nodeValue.length)}}t.collapse(l.node,l.offset);if(r.bidiLevel!=null&&a.cursorBidiLevel!=null)a.cursorBidiLevel=r.bidiLevel}else if(t.extend){t.collapse(l.node,l.offset);try{t.extend(h.node,h.offset)}catch(e){}}else{let e=document.createRange();if(r.anchor>r.head)[l,h]=[h,l];e.setEnd(h.node,h.offset);e.setStart(l.node,l.offset);t.removeAllRanges();t.addRange(e)}if(o&&this.view.root.activeElement==this.dom){this.dom.blur();if(i)i.focus()}}));this.view.observer.setSelectionRange(l,h)}this.impreciseAnchor=l.precise?null:new W(a.anchorNode,a.anchorOffset);this.impreciseHead=h.precise?null:new W(a.focusNode,a.focusOffset)}enforceCursorAssoc(){if(this.compositionDeco.size)return;let{view:t}=this,e=t.state.selection.main;let i=g(t.root);let{anchorNode:s,anchorOffset:o}=t.observer.selectionRange;if(!i||!e.empty||!e.assoc||!i.modify)return;let n=Rt.find(this,e.head);if(!n)return;let r=n.posAtStart;if(e.head==r||e.head==r+n.length)return;let l=this.coordsAt(e.head,-1),h=this.coordsAt(e.head,1);if(!l||!h||l.bottom>h.top)return;let a=this.domAtPos(e.head+e.assoc);i.collapse(a.node,a.offset);i.modify("move",e.assoc<0?"forward":"backward","lineboundary");t.observer.readSelectionRange();let c=t.observer.selectionRange;if(t.docView.posFromDOM(c.anchorNode,c.anchorOffset)!=e.from)i.collapse(s,o)}nearest(t){for(let e=t;e;){let t=z.get(e);if(t&&t.rootView==this)return t;e=e.parentNode}return null}posFromDOM(t,e){let i=this.nearest(t);if(!i)throw new RangeError("Trying to find position for a DOM position outside of the document");return i.localPosFromDOM(t,e)+i.posAtStart}domAtPos(t){let{i:e,off:i}=this.childCursor().findPos(t,-1);for(;en||t==n&&o.type!=Mt.WidgetBefore&&o.type!=Mt.WidgetAfter&&(!s||e==2||this.children[s-1].breakAfter||this.children[s-1].type==Mt.WidgetBefore&&e>-2))return o.coordsAt(t-n,e);i=n}}measureVisibleLineHeights(t){let e=[],{from:i,to:s}=t;let o=this.view.contentDOM.clientWidth;let n=o>Math.max(this.view.scrollDOM.clientWidth,this.minWidth)+1;let r=-1,l=this.view.textDirection==le.LTR;for(let h=0,a=0;as)break;if(h>=i){let i=t.dom.getBoundingClientRect();e.push(i.height);if(n){let e=t.dom.lastChild;let s=e?b(e):[];if(s.length){let t=s[s.length-1];let e=l?t.right-i.left:i.right-t.left;if(e>r){r=e;this.minWidth=o;this.minWidthFrom=h;this.minWidthTo=c}}}}h=c+t.breakAfter}return e}textDirectionAt(t){let{i:e}=this.childPos(t,1);return getComputedStyle(this.children[e].dom).direction=="rtl"?le.RTL:le.LTR}measureTextSize(){for(let o of this.children){if(o instanceof Rt){let t=o.measureTextSize();if(t)return t}}let t=document.createElement("div"),e,i,s;t.className="cm-line";t.style.width="99999px";t.textContent="abc def ghi jkl mno pqr stu";this.view.observer.ignore((()=>{this.dom.appendChild(t);let o=b(t.firstChild)[0];e=t.getBoundingClientRect().height;i=o?o.width/27:7;s=o?o.height:e;t.remove()}));return{lineHeight:e,charWidth:i,textHeight:s}}childCursor(t=this.length){let e=this.children.length;if(e)t-=this.children[--e].length;return new K(this.children,t,e)}computeBlockGapDeco(){let t=[],e=this.view.viewState;for(let i=0,s=0;;s++){let o=s==e.viewports.length?null:e.viewports[s];let n=o?o.from-1:this.length;if(n>i){let s=e.lineBlockAt(n).bottom-e.lineBlockAt(i).top;t.push(kt.replace({widget:new Oe(s),block:true,inclusive:true,isBlockGap:true}).range(i,n))}if(!o)break;i=o.to+1}return kt.set(t)}updateDeco(){let t=this.view.state.facet(ee).map(((t,e)=>{let i=this.dynamicDecorationMap[e]=typeof t=="function";return i?t(this.view):t}));for(let e=t.length;ee.anchor?-1:1),s;if(!i)return;if(!e.empty&&(s=this.coordsAt(e.anchor,e.anchor>e.head?-1:1)))i={left:Math.min(i.left,s.left),top:Math.min(i.top,s.top),right:Math.max(i.right,s.right),bottom:Math.max(i.bottom,s.bottom)};let o=0,n=0,r=0,l=0;for(let a of this.view.state.facet(se).map((t=>t(this.view))))if(a){let{left:t,right:e,top:i,bottom:s}=a;if(t!=null)o=Math.max(o,t);if(e!=null)n=Math.max(n,e);if(i!=null)r=Math.max(r,i);if(s!=null)l=Math.max(l,s)}let h={left:i.left-o,top:i.top-r,right:i.right+n,bottom:i.bottom+l};D(this.view.scrollDOM,h,e.head0){s=s.childNodes[o-1];o=M(s)}else{break}}if(i>=0)for(let s=t,o=e;;){if(s.nodeType==3)return s;if(s.nodeType==1&&o=0){s=s.childNodes[o];o=0}else{break}}return null}function He(t,e){if(t.nodeType!=1)return 0;return(e&&t.childNodes[e-1].contentEditable=="false"?1:0)|(e0){let t=(0,s.findClusterBreak)(n.text,l,false);if(o(n.text.slice(t,l))!=a)break;l=t}while(ht?e.left-t:Math.max(0,t-e.right)}function ze(t,e){return e.top>t?e.top-t:Math.max(0,t-e.bottom)}function Ie(t,e){return t.tope.top+1}function Ke(t,e){return et.bottom?{top:t.top,left:t.left,right:t.right,bottom:e}:t}function Ge(t,e,i){let s,o,n,r,l=false;let h,a,c,f;for(let p=t.firstChild;p;p=p.nextSibling){let t=b(p);for(let d=0;dm||r==m&&n>g){s=p;o=u;n=g;r=m;let h=m?i0?d0)}if(g==0){if(i>u.bottom&&(!c||c.bottomu.top)){a=p;f=u}}else if(c&&Ie(c,u)){c=qe(c,u.bottom)}else if(f&&Ie(f,u)){f=Ke(f,u.top)}}}if(c&&c.bottom>=i){s=h;o=c}else if(f&&f.top<=i){s=a;o=f}if(!s)return{node:t,offset:0};let d=Math.max(o.left,Math.min(o.right,e));if(s.nodeType==3)return je(s,d,i);if(l&&s.contentEditable!="false")return Ge(s,d,i);let u=Array.prototype.indexOf.call(t.childNodes,s)+(e>=(o.left+o.right)/2?1:0);return{node:t,offset:u}}function je(t,e,i){let s=t.nodeValue.length;let o=-1,n=1e9,r=0;for(let l=0;li?a.top-i:i-a.bottom)-1;if(a.left-1<=e&&a.right+1>=e&&c=(a.left+a.right)/2,s=i;if(it.chrome||it.gecko){let e=L(t,l).getBoundingClientRect();if(e.left==a.right)s=!i}if(c<=0)return{node:t,offset:l+(s?1:0)};o=l+(s?1:0);n=c}}}return{node:t,offset:o>-1?o:r>0?t.nodeValue.length:0}}function $e(t,e,i,s=-1){var o,n;let r=t.contentDOM.getBoundingClientRect(),l=r.top+t.viewState.paddingTop;let h,{docHeight:a}=t.viewState;let{x:c,y:f}=e,d=f-l;if(d<0)return 0;if(d>a)return t.state.doc.length;for(let y=t.defaultLineHeight/2,S=false;;){h=t.elementAtHeight(d);if(h.type==Mt.Text)break;for(;;){d=s>0?h.bottom+y:h.top-y;if(d>=0&&d<=a)break;if(S)return i?null:0;S=true;s=-s}}f=l+d;let u=h.from;if(ut.viewport.to)return t.viewport.to==t.state.doc.length?t.state.doc.length:i?null:_e(t,r,h,c,f);let p=t.dom.ownerDocument;let g=t.root.elementFromPoint?t.root:p;let m=g.elementFromPoint(c,f);if(m&&!t.contentDOM.contains(m))m=null;if(!m){c=Math.max(r.left+1,Math.min(r.right-1,c));m=g.elementFromPoint(c,f);if(m&&!t.contentDOM.contains(m))m=null}let w,v=-1;if(m&&((o=t.docView.nearest(m))===null||o===void 0?void 0:o.isEditable)!=false){if(p.caretPositionFromPoint){let t=p.caretPositionFromPoint(c,f);if(t)({offsetNode:w,offset:v}=t)}else if(p.caretRangeFromPoint){let e=p.caretRangeFromPoint(c,f);if(e){({startContainer:w,startOffset:v}=e);if(!t.contentDOM.contains(w)||it.safari&&Ue(w,v,c)||it.chrome&&Xe(w,v,c))w=undefined}}}if(!w||!t.docView.dom.contains(w)){let e=Rt.find(t.docView,u);if(!e)return d>h.top+h.height/2?h.to:h.from;({node:w,offset:v}=Ge(e.dom,c,f))}let b=t.docView.nearest(w);if(!b)return null;if(b.isWidget&&((n=b.dom)===null||n===void 0?void 0:n.nodeType)==1){let t=b.dom.getBoundingClientRect();return e.yt.defaultLineHeight*1.5){let e=Math.floor((n-i.top)/t.defaultLineHeight);r+=e*t.viewState.heightOracle.lineLength}let l=t.state.sliceDoc(i.from,i.to);return i.from+(0,s.findColumn)(l,r,t.state.tabSize)}function Ue(t,e,i){let s;if(t.nodeType!=3||e!=(s=t.nodeValue.length))return false;for(let o=t.nextSibling;o;o=o.nextSibling)if(o.nodeType!=1||o.nodeName!="BR")return false;return L(t,s-1,s).getBoundingClientRect().left>i}function Xe(t,e,i){if(e!=0)return false;for(let o=t;;){let t=o.parentNode;if(!t||t.nodeType!=1||t.firstChild!=o)return false;if(t.classList.contains("cm-line"))break;o=t}let s=t.nodeType==1?t.getBoundingClientRect():L(t,0,Math.max(t.nodeValue.length,1)).getBoundingClientRect();return i-s.left>5}function Ye(t,e,i,o){let n=t.state.doc.lineAt(e.head);let r=!o||!t.lineWrapping?null:t.coordsAtPos(e.assoc<0&&e.head>n.from?e.head-1:e.head);if(r){let e=t.dom.getBoundingClientRect();let o=t.textDirectionAt(n.from);let l=t.posAtCoords({x:i==(o==le.LTR)?e.right-1:e.left+1,y:(r.top+r.bottom)/2});if(l!=null)return s.EditorSelection.cursor(l,i?-1:1)}let l=Rt.find(t.docView,e.head);let h=l?i?l.posAtEnd:l.posAtStart:i?n.to:n.from;return s.EditorSelection.cursor(h,i?-1:1)}function Qe(t,e,i,o){let n=t.state.doc.lineAt(e.head),r=t.bidiSpans(n);let l=t.textDirectionAt(n.from);for(let h=e,a=null;;){let e=xe(n,r,l,h,i),c=Se;if(!e){if(n.number==(i?t.state.doc.lines:1))return h;c="\n";n=t.state.doc.line(n.number+(i?1:-1));r=t.bidiSpans(n);e=s.EditorSelection.cursor(i?n.from:n.to)}if(!a){if(!o)return e;a=o(c)}else if(!a(c)){return h}h=e}}function Je(t,e,i){let o=t.state.charCategorizer(e);let n=o(i);return t=>{let e=o(t);if(n==s.CharCategory.Space)n=e;return n==e}}function Ze(t,e,i,o){let n=e.head,r=i?1:-1;if(n==(i?t.state.doc.length:0))return s.EditorSelection.cursor(n,e.assoc);let l=e.goalColumn,h;let a=t.contentDOM.getBoundingClientRect();let c=t.coordsAtPos(n),f=t.documentTop;if(c){if(l==null)l=c.left-a.left;h=r<0?c.top:c.bottom}else{let e=t.viewState.lineBlockAt(n);if(l==null)l=Math.min(a.right-a.left,t.defaultCharacterWidth*(n-e.from));h=(r<0?e.top:e.bottom)+f}let d=a.left+l;let u=o!==null&&o!==void 0?o:t.defaultLineHeight>>1;for(let p=0;;p+=10){let i=h+(u+p)*r;let o=$e(t,{x:d,y:i},false,r);if(ia.bottom||(r<0?on))return s.EditorSelection.cursor(o,e.assoc,undefined,l)}}function ti(t,e,i){let o=t.state.facet(ie).map((e=>e(t)));for(;;){let t=false;for(let n of o){n.between(i.from-1,i.from+1,((o,n,r)=>{if(i.from>o&&i.fromi.from?s.EditorSelection.cursor(o,1):s.EditorSelection.cursor(n,-1);t=true}}))}if(!t)return i}}class ei{constructor(t){this.lastKeyCode=0;this.lastKeyTime=0;this.lastTouchTime=0;this.lastFocusTime=0;this.lastScrollTop=0;this.lastScrollLeft=0;this.chromeScrollHack=-1;this.pendingIOSKey=undefined;this.lastSelectionOrigin=null;this.lastSelectionTime=0;this.lastEscPress=0;this.lastContextMenu=0;this.scrollHandlers=[];this.registeredEvents=[];this.customHandlers=[];this.composing=-1;this.compositionFirstChange=null;this.compositionEndedAt=0;this.compositionPendingKey=false;this.compositionPendingChange=false;this.mouseSelection=null;let e=(e,i)=>{if(this.ignoreDuringComposition(i))return;if(i.type=="keydown"&&this.keydown(t,i))return;if(this.mustFlushObserver(i))t.observer.forceFlush();if(this.runCustomHandlers(i.type,t,i))i.preventDefault();else e(t,i)};for(let i in di){let s=di[i];t.contentDOM.addEventListener(i,(i=>{if(fi(t,i))e(s,i)}),ui[i]);this.registeredEvents.push(i)}t.scrollDOM.addEventListener("mousedown",(i=>{if(i.target==t.scrollDOM&&i.clientY>t.contentDOM.getBoundingClientRect().bottom){e(di.mousedown,i);if(!i.defaultPrevented&&i.button==2){let e=t.contentDOM.style.minHeight;t.contentDOM.style.minHeight="100%";setTimeout((()=>t.contentDOM.style.minHeight=e),200)}}}));if(it.chrome&&it.chrome_version==102){t.scrollDOM.addEventListener("wheel",(()=>{if(this.chromeScrollHack<0)t.contentDOM.style.pointerEvents="none";else window.clearTimeout(this.chromeScrollHack);this.chromeScrollHack=setTimeout((()=>{this.chromeScrollHack=-1;t.contentDOM.style.pointerEvents=""}),100)}),{passive:true})}this.notifiedFocused=t.hasFocus;if(it.safari)t.contentDOM.addEventListener("input",(()=>null))}setSelectionOrigin(t){this.lastSelectionOrigin=t;this.lastSelectionTime=Date.now()}ensureHandlers(t,e){var i;let s;this.customHandlers=[];for(let o of e)if(s=(i=o.update(t).spec)===null||i===void 0?void 0:i.domEventHandlers){this.customHandlers.push({plugin:o.value,handlers:s});for(let e in s)if(this.registeredEvents.indexOf(e)<0&&e!="scroll"){this.registeredEvents.push(e);t.contentDOM.addEventListener(e,(i=>{if(!fi(t,i))return;if(this.runCustomHandlers(e,t,i))i.preventDefault()}))}}}runCustomHandlers(t,e,i){for(let o of this.customHandlers){let n=o.handlers[t];if(n){try{if(n.call(o.plugin,i,e)||i.defaultPrevented)return true}catch(s){_t(e.state,s)}}}return false}runScrollHandlers(t,e){this.lastScrollTop=t.scrollDOM.scrollTop;this.lastScrollLeft=t.scrollDOM.scrollLeft;for(let s of this.customHandlers){let o=s.handlers.scroll;if(o){try{o.call(s.plugin,e,t)}catch(i){_t(t.state,i)}}}}keydown(t,e){this.lastKeyCode=e.keyCode;this.lastKeyTime=Date.now();if(e.keyCode==9&&Date.now()t.keyCode==e.keyCode)))&&!e.ctrlKey||si.indexOf(e.key)>-1&&e.ctrlKey&&!e.shiftKey)){this.pendingIOSKey=i||e;setTimeout((()=>this.flushIOSKey(t)),250);return true}return false}flushIOSKey(t){let e=this.pendingIOSKey;if(!e)return false;this.pendingIOSKey=undefined;return H(t.contentDOM,e.key,e.keyCode)}ignoreDuringComposition(t){if(!/^key/.test(t.type))return false;if(this.composing>0)return true;if(it.safari&&!it.ios&&this.compositionPendingKey&&Date.now()-this.compositionEndedAt<100){this.compositionPendingKey=false;return true}return false}mustFlushObserver(t){return t.type=="keydown"&&t.keyCode!=229}startMouseSelection(t){if(this.mouseSelection)this.mouseSelection.destroy();this.mouseSelection=t}update(t){if(this.mouseSelection)this.mouseSelection.update(t);if(t.transactions.length)this.lastKeyCode=this.lastSelectionTime=0}destroy(){if(this.mouseSelection)this.mouseSelection.destroy()}}const ii=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}];const si="dthko";const oi=[16,17,18,20,91,92,224,225];const ni=6;function ri(t){return Math.max(0,t)*.7+8}class li{constructor(t,e,i,o){this.view=t;this.style=i;this.mustSelect=o;this.scrollSpeed={x:0,y:0};this.scrolling=-1;this.lastEvent=e;this.scrollParent=T(t.contentDOM);let n=t.contentDOM.ownerDocument;n.addEventListener("mousemove",this.move=this.move.bind(this));n.addEventListener("mouseup",this.up=this.up.bind(this));this.extend=e.shiftKey;this.multiple=t.state.facet(s.EditorState.allowMultipleSelections)&&hi(t,e);this.dragMove=ai(t,e);this.dragging=ci(t,e)&&Ai(e)==1?null:false}start(t){if(this.dragging===false){t.preventDefault();this.select(t)}}move(t){var e;if(t.buttons==0)return this.destroy();if(this.dragging!==false)return;this.select(this.lastEvent=t);let i=0,s=0;let o=((e=this.scrollParent)===null||e===void 0?void 0:e.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight};if(t.clientX<=o.left+ni)i=-ri(o.left-t.clientX);else if(t.clientX>=o.right-ni)i=ri(t.clientX-o.right);if(t.clientY<=o.top+ni)s=-ri(o.top-t.clientY);else if(t.clientY>=o.bottom-ni)s=ri(t.clientY-o.bottom);this.setScrollSpeed(i,s)}up(t){if(this.dragging==null)this.select(this.lastEvent);if(!this.dragging)t.preventDefault();this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move);t.removeEventListener("mouseup",this.up);this.view.inputState.mouseSelection=null}setScrollSpeed(t,e){this.scrollSpeed={x:t,y:e};if(t||e){if(this.scrolling<0)this.scrolling=setInterval((()=>this.scroll()),50)}else if(this.scrolling>-1){clearInterval(this.scrolling);this.scrolling=-1}}scroll(){if(this.scrollParent){this.scrollParent.scrollLeft+=this.scrollSpeed.x;this.scrollParent.scrollTop+=this.scrollSpeed.y}else{this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y)}if(this.dragging===false)this.select(this.lastEvent)}select(t){let e=this.style.get(t,this.extend,this.multiple);if(this.mustSelect||!e.eq(this.view.state.selection)||e.main.assoc!=this.view.state.selection.main.assoc)this.view.dispatch({selection:e,userEvent:"select.pointer"});this.mustSelect=false}update(t){if(t.docChanged&&this.dragging)this.dragging=this.dragging.map(t.changes);if(this.style.update(t))setTimeout((()=>this.select(this.lastEvent)),20)}}function hi(t,e){let i=t.state.facet(Vt);return i.length?i[0](e):it.mac?e.metaKey:e.ctrlKey}function ai(t,e){let i=t.state.facet(Nt);return i.length?i[0](e):it.mac?!e.altKey:!e.ctrlKey}function ci(t,e){let{main:i}=t.state.selection;if(i.empty)return false;let s=g(t.root);if(!s||s.rangeCount==0)return true;let o=s.getRangeAt(0).getClientRects();for(let n=0;n=e.clientX&&t.top<=e.clientY&&t.bottom>=e.clientY)return true}return false}function fi(t,e){if(!e.bubbles)return true;if(e.defaultPrevented)return false;for(let i=e.target,s;i!=t.contentDOM;i=i.parentNode)if(!i||i.nodeType==11||(s=z.get(i))&&s.ignoreEvent(e))return false;return true}const di=Object.create(null);const ui=Object.create(null);const pi=it.ie&&it.ie_version<15||it.ios&&it.webkit_version<604;function gi(t){let e=t.dom.parentNode;if(!e)return;let i=e.appendChild(document.createElement("textarea"));i.style.cssText="position: fixed; left: -10000px; top: 10px";i.focus();setTimeout((()=>{t.focus();i.remove();mi(t,i.value)}),50)}function mi(t,e){let{state:i}=t,o,n=1,r=i.toText(e);let l=r.lines==i.selection.ranges.length;let h=Bi!=null&&i.selection.ranges.every((t=>t.empty))&&Bi==r.toString();if(h){let t=-1;o=i.changeByRange((o=>{let h=i.doc.lineAt(o.from);if(h.from==t)return{range:o};t=h.from;let a=i.toText((l?r.line(n++).text:e)+i.lineBreak);return{changes:{from:h.from,insert:a},range:s.EditorSelection.cursor(o.from+a.length)}}))}else if(l){o=i.changeByRange((t=>{let e=r.line(n++);return{changes:{from:t.from,to:t.to,insert:e.text},range:s.EditorSelection.cursor(t.from+e.length)}}))}else{o=i.replaceSelection(r)}t.dispatch(o,{userEvent:"input.paste",scrollIntoView:true})}di.keydown=(t,e)=>{t.inputState.setSelectionOrigin("select");if(e.keyCode==27)t.inputState.lastEscPress=Date.now()};di.touchstart=(t,e)=>{t.inputState.lastTouchTime=Date.now();t.inputState.setSelectionOrigin("select.pointer")};di.touchmove=t=>{t.inputState.setSelectionOrigin("select.pointer")};ui.touchstart=ui.touchmove={passive:true};di.mousedown=(t,e)=>{t.observer.flush();if(t.inputState.lastTouchTime>Date.now()-2e3)return;let i=null;for(let s of t.state.facet(Wt)){i=s(t,e);if(i)break}if(!i&&e.button==0)i=Di(t,e);if(i){let s=t.root.activeElement!=t.contentDOM;t.inputState.startMouseSelection(new li(t,e,i,s));if(s)t.observer.ignore((()=>R(t.contentDOM)));if(t.inputState.mouseSelection)t.inputState.mouseSelection.start(e)}};function wi(t,e,i,o){if(o==1){return s.EditorSelection.cursor(e,i)}else if(o==2){return We(t.state,e,i)}else{let i=Rt.find(t.docView,e),o=t.state.doc.lineAt(i?i.posAtEnd:e);let n=i?i.posAtStart:o.from,r=i?i.posAtEnd:o.to;if(rt>=e.top&&t<=e.bottom;let bi=(t,e,i)=>vi(e,i)&&t>=i.left&&t<=i.right;function yi(t,e,i,s){let o=Rt.find(t.docView,e);if(!o)return 1;let n=e-o.posAtStart;if(n==0)return 1;if(n==o.length)return-1;let r=o.coordsAt(n,-1);if(r&&bi(i,s,r))return-1;let l=o.coordsAt(n,1);if(l&&bi(i,s,l))return 1;return r&&vi(s,r)?-1:1}function Si(t,e){let i=t.posAtCoords({x:e.clientX,y:e.clientY},false);return{pos:i,bias:yi(t,i,e.clientX,e.clientY)}}const xi=it.ie&&it.ie_version<=11;let Mi=null,ki=0,Ci=0;function Ai(t){if(!xi)return t.detail;let e=Mi,i=Ci;Mi=t;Ci=Date.now();return ki=!e||i>Date.now()-400&&Math.abs(e.clientX-t.clientX)<2&&Math.abs(e.clientY-t.clientY)<2?(ki+1)%3:1}function Di(t,e){let i=Si(t,e),o=Ai(e);let n=t.state.selection;return{update(t){if(t.docChanged){i.pos=t.changes.mapPos(i.pos);n=n.map(t.changes)}},get(e,r,l){let h=Si(t,e),a;let c=wi(t,h.pos,h.bias,o);if(i.pos!=h.pos&&!r){let e=wi(t,i.pos,i.bias,o);let n=Math.min(e.from,c.from),r=Math.max(e.to,c.to);c=n1&&(a=Ti(n,h.pos)))return a;else if(l)return n.addRange(c);else return s.EditorSelection.create([c])}}}function Ti(t,e){for(let i=0;i=e)return s.EditorSelection.create(t.ranges.slice(0,i).concat(t.ranges.slice(i+1)),t.mainIndex==i?0:t.mainIndex-(t.mainIndex>i?1:0))}return null}di.dragstart=(t,e)=>{let{selection:{main:i}}=t.state;let{mouseSelection:s}=t.inputState;if(s)s.dragging=i;if(e.dataTransfer){e.dataTransfer.setData("Text",t.state.sliceDoc(i.from,i.to));e.dataTransfer.effectAllowed="copyMove"}};function Oi(t,e,i,s){if(!i)return;let o=t.posAtCoords({x:e.clientX,y:e.clientY},false);e.preventDefault();let{mouseSelection:n}=t.inputState;let r=s&&n&&n.dragging&&n.dragMove?{from:n.dragging.from,to:n.dragging.to}:null;let l={from:o,insert:i};let h=t.state.changes(r?[r,l]:l);t.focus();t.dispatch({changes:h,selection:{anchor:h.mapPos(o,-1),head:h.mapPos(o,1)},userEvent:r?"move.drop":"input.drop"})}di.drop=(t,e)=>{if(!e.dataTransfer)return;if(t.state.readOnly)return e.preventDefault();let i=e.dataTransfer.files;if(i&&i.length){e.preventDefault();let s=Array(i.length),o=0;let n=()=>{if(++o==i.length)Oi(t,e,s.filter((t=>t!=null)).join(t.state.lineBreak),false)};for(let t=0;t{if(!/[\x00-\x08\x0e-\x1f]{2}/.test(e.result))s[t]=e.result;n()};e.readAsText(i[t])}}else{Oi(t,e,e.dataTransfer.getData("Text"),true)}};di.paste=(t,e)=>{if(t.state.readOnly)return e.preventDefault();t.observer.flush();let i=pi?null:e.clipboardData;if(i){mi(t,i.getData("text/plain")||i.getData("text/uri-text"));e.preventDefault()}else{gi(t)}};function Ei(t,e){let i=t.dom.parentNode;if(!i)return;let s=i.appendChild(document.createElement("textarea"));s.style.cssText="position: fixed; left: -10000px; top: 10px";s.value=e;s.focus();s.selectionEnd=e.length;s.selectionStart=0;setTimeout((()=>{s.remove();t.focus()}),50)}function Ri(t){let e=[],i=[],s=false;for(let o of t.selection.ranges)if(!o.empty){e.push(t.sliceDoc(o.from,o.to));i.push(o)}if(!e.length){let o=-1;for(let{from:s}of t.selection.ranges){let n=t.doc.lineAt(s);if(n.number>o){e.push(n.text);i.push({from:n.from,to:Math.min(t.doc.length,n.to+1)})}o=n.number}s=true}return{text:e.join(t.lineBreak),ranges:i,linewise:s}}let Bi=null;di.copy=di.cut=(t,e)=>{let{text:i,ranges:s,linewise:o}=Ri(t.state);if(!i&&!o)return;Bi=o?i:null;let n=pi?null:e.clipboardData;if(n){e.preventDefault();n.clearData();n.setData("text/plain",i)}else{Ei(t,i)}if(e.type=="cut"&&!t.state.readOnly)t.dispatch({changes:s,scrollIntoView:true,userEvent:"delete.cut"})};const Li=s.Annotation.define();function Hi(t,e){let i=[];for(let s of t.facet(Kt)){let o=s(t,e);if(o)i.push(o)}return i?t.update({effects:i,annotations:Li.of(true)}):null}function Pi(t){setTimeout((()=>{let e=t.hasFocus;if(e!=t.inputState.notifiedFocused){let i=Hi(t.state,e);if(i)t.dispatch(i);else t.update([])}}),10)}di.focus=t=>{t.inputState.lastFocusTime=Date.now();if(!t.scrollDOM.scrollTop&&(t.inputState.lastScrollTop||t.inputState.lastScrollLeft)){t.scrollDOM.scrollTop=t.inputState.lastScrollTop;t.scrollDOM.scrollLeft=t.inputState.lastScrollLeft}Pi(t)};di.blur=t=>{t.observer.clearSelectionRange();Pi(t)};di.compositionstart=di.compositionupdate=t=>{if(t.inputState.compositionFirstChange==null)t.inputState.compositionFirstChange=true;if(t.inputState.composing<0){t.inputState.composing=0}};di.compositionend=t=>{t.inputState.composing=-1;t.inputState.compositionEndedAt=Date.now();t.inputState.compositionPendingKey=true;t.inputState.compositionPendingChange=t.observer.pendingRecords().length>0;t.inputState.compositionFirstChange=null;if(it.chrome&&it.android){t.observer.flushSoon()}else if(t.inputState.compositionPendingChange){Promise.resolve().then((()=>t.observer.flush()))}else{setTimeout((()=>{if(t.inputState.composing<0&&t.docView.compositionDeco.size)t.update([])}),50)}};di.contextmenu=t=>{t.inputState.lastContextMenu=Date.now()};di.beforeinput=(t,e)=>{var i;let s;if(it.chrome&&it.android&&(s=ii.find((t=>t.inputType==e.inputType)))){t.observer.delayAndroidKey(s.key,s.keyCode);if(s.key=="Backspace"||s.key=="Delete"){let e=((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0;setTimeout((()=>{var i;if((((i=window.visualViewport)===null||i===void 0?void 0:i.height)||0)>e+10&&t.hasFocus){t.contentDOM.blur();t.focus()}}),100)}}};const Vi=["pre-wrap","normal","pre-line","break-spaces"];class Ni{constructor(t){this.lineWrapping=t;this.doc=s.Text.empty;this.heightSamples={};this.lineHeight=14;this.charWidth=7;this.textHeight=14;this.lineLength=30;this.heightChanged=false}heightForGap(t,e){let i=this.doc.lineAt(e).number-this.doc.lineAt(t).number+1;if(this.lineWrapping)i+=Math.max(0,Math.ceil((e-t-i*this.lineLength*.5)/this.lineLength));return this.lineHeight*i}heightForLine(t){if(!this.lineWrapping)return this.lineHeight;let e=1+Math.max(0,Math.ceil((t-this.lineLength)/(this.lineLength-5)));return e*this.lineHeight}setDoc(t){this.doc=t;return this}mustRefreshForWrapping(t){return Vi.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let e=false;for(let i=0;i-1;let l=Math.round(e)!=Math.round(this.lineHeight)||this.lineWrapping!=r;this.lineWrapping=r;this.lineHeight=e;this.charWidth=i;this.textHeight=s;this.lineLength=o;if(l){this.heightSamples={};for(let t=0;t0}set outdated(t){this.flags=(t?2:0)|this.flags&~2}setHeight(t,e){if(this.height!=e){if(Math.abs(this.height-e)>Ii)t.heightChanged=true;this.height=e}}replace(t,e,i){return Ki.of(i)}decomposeLeft(t,e){e.push(this)}decomposeRight(t,e){e.push(this)}applyChanges(t,e,i,s){let o=this,n=i.doc;for(let r=s.length-1;r>=0;r--){let{fromA:l,toA:h,fromB:a,toB:c}=s[r];let f=o.lineAt(l,zi.ByPosNoHeight,i.setDoc(e),0,0);let d=f.to>=h?f:o.lineAt(h,zi.ByPosNoHeight,i,0,0);c+=d.to-h;h=d.to;while(r>0&&f.from<=s[r-1].toA){l=s[r-1].fromA;a=s[r-1].fromB;r--;if(lo*2){let o=t[e-1];if(o.break)t.splice(--e,1,o.left,null,o.right);else t.splice(--e,1,o.left,o.right);i+=1+o.break;s-=o.size}else if(o>s*2){let e=t[i];if(e.break)t.splice(i,1,e.left,null,e.right);else t.splice(i,1,e.left,e.right);i+=2+e.break;o-=e.size}else{break}}else if(s=o)n(this.blockAt(0,i,s,o))}updateHeight(t,e=0,i=false,s){if(s&&s.from<=e&&s.more)this.setHeight(t,s.heights[s.index++]);this.outdated=false;return this}toString(){return`block(${this.length})`}}class Gi extends qi{constructor(t,e){super(t,e,Mt.Text);this.collapsed=0;this.widgetHeight=0}replace(t,e,i){let s=i[0];if(i.length==1&&(s instanceof Gi||s instanceof ji&&s.flags&4)&&Math.abs(this.length-s.length)<10){if(s instanceof ji)s=new Gi(s.length,this.height);else s.height=this.height;if(!this.outdated)s.outdated=false;return s}else{return Ki.of(i)}}updateHeight(t,e=0,i=false,s){if(s&&s.from<=e&&s.more)this.setHeight(t,s.heights[s.index++]);else if(i||this.outdated)this.setHeight(t,Math.max(this.widgetHeight,t.heightForLine(this.length-this.collapsed)));this.outdated=false;return this}toString(){return`line(${this.length}${this.collapsed?-this.collapsed:""}${this.widgetHeight?":"+this.widgetHeight:""})`}}class ji extends Ki{constructor(t){super(t,0)}heightMetrics(t,e){let i=t.doc.lineAt(e).number,s=t.doc.lineAt(e+this.length).number;let o=s-i+1;let n,r=0;if(t.lineWrapping){let e=Math.min(this.height,t.lineHeight*o);n=e/o;if(this.length>o+1)r=(this.height-e)/(this.length-o-1)}else{n=this.height/o}return{firstLine:i,lastLine:s,perLine:n,perChar:r}}blockAt(t,e,i,s){let{firstLine:o,lastLine:n,perLine:r,perChar:l}=this.heightMetrics(e,s);if(e.lineWrapping){let o=s+Math.round(Math.max(0,Math.min(1,(t-i)/this.height))*this.length);let n=e.doc.lineAt(o),h=r+n.length*l;let a=Math.max(i,t-h/2);return new Fi(n.from,n.length,a,h,Mt.Text)}else{let s=Math.max(0,Math.min(n-o,Math.floor((t-i)/r)));let{from:l,length:h}=e.doc.line(o+s);return new Fi(l,h,i+r*s,r,Mt.Text)}}lineAt(t,e,i,s,o){if(e==zi.ByHeight)return this.blockAt(t,i,s,o);if(e==zi.ByPosNoHeight){let{from:e,to:s}=i.doc.lineAt(t);return new Fi(e,s-e,0,0,Mt.Text)}let{firstLine:n,perLine:r,perChar:l}=this.heightMetrics(i,o);let h=i.doc.lineAt(t),a=r+h.length*l;let c=h.number-n;let f=s+r*c+l*(h.from-o-c);return new Fi(h.from,h.length,Math.max(s,Math.min(f,s+this.height-a)),a,Mt.Text)}forEachLine(t,e,i,s,o,n){t=Math.max(t,o);e=Math.min(e,o+this.length);let{firstLine:r,perLine:l,perChar:h}=this.heightMetrics(i,o);for(let a=t,c=s;a<=e;){let e=i.doc.lineAt(a);if(a==t){let i=e.number-r;c+=l*i+h*(t-o-i)}let s=l+h*e.length;n(new Fi(e.from,e.length,c,s,Mt.Text));c+=s;a=e.to+1}}replace(t,e,i){let s=this.length-e;if(s>0){let t=i[i.length-1];if(t instanceof ji)i[i.length-1]=new ji(t.length+s);else i.push(null,new ji(s-1))}if(t>0){let e=i[0];if(e instanceof ji)i[0]=new ji(t+e.length);else i.unshift(new ji(t-1),null)}return Ki.of(i)}decomposeLeft(t,e){e.push(new ji(t-1),null)}decomposeRight(t,e){e.push(null,new ji(this.length-t-1))}updateHeight(t,e=0,i=false,s){let o=e+this.length;if(s&&s.from<=e+this.length&&s.more){let i=[],n=Math.max(e,s.from),r=-1;if(s.from>e)i.push(new ji(s.from-e-1).updateHeight(t,e));while(n<=o&&s.more){let e=t.doc.lineAt(n).length;if(i.length)i.push(null);let o=s.heights[s.index++];if(r==-1)r=o;else if(Math.abs(o-r)>=Ii)r=-2;let l=new Gi(e,o);l.outdated=false;i.push(l);n+=e+1}if(n<=o)i.push(null,new ji(o-n).updateHeight(t,n));let l=Ki.of(i);if(r<0||Math.abs(l.height-this.height)>=Ii||Math.abs(r-this.heightMetrics(t,e).perLine)>=Ii)t.heightChanged=true;return l}else if(i||this.outdated){this.setHeight(t,t.heightForGap(e,e+this.length));this.outdated=false}return this}toString(){return`gap(${this.length})`}}class $i extends Ki{constructor(t,e,i){super(t.length+e+i.length,t.height+i.height,e|(t.outdated||i.outdated?2:0));this.left=t;this.right=i;this.size=t.size+i.size}get break(){return this.flags&1}blockAt(t,e,i,s){let o=i+this.left.height;return tr))return h;let a=e==zi.ByPosNoHeight?zi.ByPosNoHeight:zi.ByPos;if(l)return h.join(this.right.lineAt(r,a,i,n,r));else return this.left.lineAt(r,a,i,s,o).join(h)}forEachLine(t,e,i,s,o,n){let r=s+this.left.height,l=o+this.left.length+this.break;if(this.break){if(t=l)this.right.forEachLine(t,e,i,r,l,n)}else{let h=this.lineAt(l,zi.ByPos,i,s,o);if(t=t&&h.from<=e)n(h);if(e>h.to)this.right.forEachLine(h.to+1,e,i,r,l,n)}}replace(t,e,i){let s=this.left.length+this.break;if(ethis.left.length)return this.balanced(this.left,this.right.replace(t-s,e-s,i));let o=[];if(t>0)this.decomposeLeft(t,o);let n=o.length;for(let r of i)o.push(r);if(t>0)_i(o,n-1);if(e=i)e.push(null)}if(t>i)this.right.decomposeLeft(t-i,e)}decomposeRight(t,e){let i=this.left.length,s=i+this.break;if(t>=s)return this.right.decomposeRight(t-s,e);if(t2*e.size||e.size>2*t.size)return Ki.of(this.break?[t,null,e]:[t,e]);this.left=t;this.right=e;this.height=t.height+e.height;this.outdated=t.outdated||e.outdated;this.size=t.size+e.size;this.length=t.length+this.break+e.length;return this}updateHeight(t,e=0,i=false,s){let{left:o,right:n}=this,r=e+o.length+this.break,l=null;if(s&&s.from<=e+o.length&&s.more)l=o=o.updateHeight(t,e,i,s);else o.updateHeight(t,e,i);if(s&&s.from<=r+n.length&&s.more)l=n=n.updateHeight(t,r,i,s);else n.updateHeight(t,r,i);if(l)return this.balanced(o,n);this.height=this.left.height+this.right.height;this.outdated=false;return this}toString(){return this.left+(this.break?" ":"-")+this.right}}function _i(t,e){let i,s;if(t[e]==null&&(i=t[e-1])instanceof ji&&(s=t[e+1])instanceof ji)t.splice(e-1,3,new ji(i.length+1+s.length))}const Ui=5;class Xi{constructor(t,e){this.pos=t;this.oracle=e;this.nodes=[];this.lineStart=-1;this.lineEnd=-1;this.covering=null;this.writtenTo=t}get isCovered(){return this.covering&&this.nodes[this.nodes.length-1]==this.covering}span(t,e){if(this.lineStart>-1){let t=Math.min(e,this.lineEnd),i=this.nodes[this.nodes.length-1];if(i instanceof Gi)i.length+=t-this.pos;else if(t>this.pos||!this.isCovered)this.nodes.push(new Gi(t-this.pos,-1));this.writtenTo=t;if(e>t){this.nodes.push(null);this.writtenTo++;this.lineStart=-1}}this.pos=e}point(t,e,i){if(t=Ui){this.addLineDeco(s,o)}}else if(e>t){this.span(t,e)}if(this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:e}=this.oracle.doc.lineAt(this.pos);this.lineStart=t;this.lineEnd=e;if(this.writtenTot)this.nodes.push(new Gi(this.pos-t,-1));this.writtenTo=this.pos}blankContent(t,e){let i=new ji(e-t);if(this.oracle.doc.lineAt(t).to==e)i.flags|=4;return i}ensureLine(){this.enterLine();let t=this.nodes.length?this.nodes[this.nodes.length-1]:null;if(t instanceof Gi)return t;let e=new Gi(0,-1);this.nodes.push(e);return e}addBlock(t){this.enterLine();if(t.type==Mt.WidgetAfter&&!this.isCovered)this.ensureLine();this.nodes.push(t);this.writtenTo=this.pos=this.pos+t.length;if(t.type!=Mt.WidgetBefore)this.covering=t}addLineDeco(t,e){let i=this.ensureLine();i.length+=e;i.collapsed+=e;i.widgetHeight=Math.max(i.widgetHeight,t);this.writtenTo=this.pos=this.pos+e}finish(t){let e=this.nodes.length==0?null:this.nodes[this.nodes.length-1];if(this.lineStart>-1&&!(e instanceof Gi)&&!this.isCovered)this.nodes.push(new Gi(0,-1));else if(this.writtenToe.clientHeight||e.scrollWidth>e.clientWidth)&&i.overflow!="visible"){let i=e.getBoundingClientRect();n=Math.max(n,i.left);r=Math.min(r,i.right);l=Math.max(l,i.top);h=a==t.parentNode?i.bottom:Math.min(h,i.bottom)}a=i.position=="absolute"||i.position=="fixed"?e.offsetParent:e.parentNode}else if(a.nodeType==11){a=a.host}else{break}}return{left:n-i.left,right:Math.max(n,r)-i.left,top:l-(i.top+e),bottom:Math.max(l,h)-(i.top+e)}}function Zi(t,e){let i=t.getBoundingClientRect();return{left:0,right:i.right-i.left,top:e,bottom:i.bottom-(i.top+e)}}class ts{constructor(t,e,i){this.from=t;this.to=e;this.size=i}static same(t,e){if(t.length!=e.length)return false;for(let i=0;itypeof t!="function"&&t.class=="cm-lineWrapping"));this.heightOracle=new Ni(e);this.stateDeco=t.facet(ee).filter((t=>typeof t!="function"));this.heightMap=Ki.empty().applyChanges(this.stateDeco,s.Text.empty,this.heightOracle.setDoc(t.doc),[new ne(0,0,0,t.doc.length)]);this.viewport=this.getViewport(0,null);this.updateViewportLines();this.updateForViewport();this.lineGaps=this.ensureLineGaps([]);this.lineGapDeco=kt.set(this.lineGaps.map((t=>t.draw(false))));this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:e}=this.state.selection;for(let i=0;i<=1;i++){let s=i?e.head:e.anchor;if(!t.some((({from:t,to:e})=>s>=t&&s<=e))){let{from:e,to:i}=this.lineBlockAt(s);t.push(new ss(e,i))}}this.viewports=t.sort(((t,e)=>t.from-e.from));this.scaler=this.heightMap.height<=7e6?hs:new as(this.heightOracle,this.heightMap,this.viewports)}updateViewportLines(){this.viewportLines=[];this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,(t=>{this.viewportLines.push(this.scaler.scale==1?t:cs(t,this.scaler))}))}update(t,e=null){this.state=t.state;let i=this.stateDeco;this.stateDeco=this.state.facet(ee).filter((t=>typeof t!="function"));let o=t.changedRanges;let n=ne.extendWithRanges(o,Yi(i,this.stateDeco,t?t.changes:s.ChangeSet.empty(this.state.doc.length)));let r=this.heightMap.height;this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),n);if(this.heightMap.height!=r)t.flags|=2;let l=n.length?this.mapViewport(this.viewport,t.changes):this.viewport;if(e&&(e.range.headl.to)||!this.viewportIsAppropriate(l))l=this.getViewport(0,e);let h=!t.changes.empty||t.flags&2||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l;this.updateForViewport();if(h)this.updateViewportLines();if(this.lineGaps.length||this.viewport.to-this.viewport.from>2e3<<1)this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes)));t.flags|=this.computeVisibleRanges();if(e)this.scrollTarget=e;if(!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(Gt))this.mustEnforceCursorAssoc=true}measure(t){let e=t.contentDOM,i=window.getComputedStyle(e);let o=this.heightOracle;let n=i.whiteSpace;this.defaultTextDirection=i.direction=="rtl"?le.RTL:le.LTR;let r=this.heightOracle.mustRefreshForWrapping(n);let l=e.getBoundingClientRect();let h=r||this.mustMeasureContent||this.contentDOMHeight!=l.height;this.contentDOMHeight=l.height;this.mustMeasureContent=false;let a=0,c=0;let f=parseInt(i.paddingTop)||0,d=parseInt(i.paddingBottom)||0;if(this.paddingTop!=f||this.paddingBottom!=d){this.paddingTop=f;this.paddingBottom=d;a|=8|2}if(this.editorWidth!=t.scrollDOM.clientWidth){if(o.lineWrapping)h=true;this.editorWidth=t.scrollDOM.clientWidth;a|=8}let u=(this.printing?Zi:Ji)(e,this.paddingTop);let p=u.top-this.pixelViewport.top,g=u.bottom-this.pixelViewport.bottom;this.pixelViewport=u;let m=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(m!=this.inView){this.inView=m;if(m)h=true}if(!this.inView&&!this.scrollTarget)return 0;let w=l.width;if(this.contentDOMWidth!=w||this.editorHeight!=t.scrollDOM.clientHeight){this.contentDOMWidth=l.width;this.editorHeight=t.scrollDOM.clientHeight;a|=8}if(h){let e=t.docView.measureVisibleLineHeights(this.viewport);if(o.mustRefreshForHeights(e))r=true;if(r||o.lineWrapping&&Math.abs(w-this.contentDOMWidth)>o.charWidth){let{lineHeight:i,charWidth:s,textHeight:l}=t.docView.measureTextSize();r=i>0&&o.refresh(n,i,s,l,w/s,e);if(r){t.docView.minWidth=0;a|=8}}if(p>0&&g>0)c=Math.max(p,g);else if(p<0&&g<0)c=Math.min(p,g);o.heightChanged=false;for(let i of this.viewports){let n=i.from==this.viewport.from?e:t.docView.measureVisibleLineHeights(i);this.heightMap=(r?Ki.empty().applyChanges(this.stateDeco,s.Text.empty,this.heightOracle,[new ne(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(o,0,r,new Wi(i.from,n))}if(o.heightChanged)a|=2}let v=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);if(v)this.viewport=this.getViewport(c,this.scrollTarget);this.updateForViewport();if(a&2||v)this.updateViewportLines();if(this.lineGaps.length||this.viewport.to-this.viewport.from>2e3<<1)this.updateLineGaps(this.ensureLineGaps(r?[]:this.lineGaps,t));a|=this.computeVisibleRanges();if(this.mustEnforceCursorAssoc){this.mustEnforceCursorAssoc=false;t.docView.enforceCursorAssoc()}return a}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,e){let i=.5-Math.max(-.5,Math.min(.5,t/1e3/2));let s=this.heightMap,o=this.heightOracle;let{visibleTop:n,visibleBottom:r}=this;let l=new ss(s.lineAt(n-i*1e3,zi.ByHeight,o,0,0).from,s.lineAt(r+(1-i)*1e3,zi.ByHeight,o,0,0).to);if(e){let{head:t}=e.range;if(tl.to){let i=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top);let n=s.lineAt(t,zi.ByPos,o,0,0),r;if(e.y=="center")r=(n.top+n.bottom)/2-i/2;else if(e.y=="start"||e.y=="nearest"&&t=r+Math.max(10,Math.min(i,250)))&&(s>n-2*1e3&&o>1,r=o<<1;if(this.defaultTextDirection!=le.LTR&&!i)return[];let l=[];let h=(o,r,a,c)=>{if(r-oo&&tt.from>=a.from&&t.to<=a.to&&Math.abs(t.from-o)t.frome))));if(!u){if(rt.from<=r&&t.to>=r))){let t=e.moveToLineBoundary(s.EditorSelection.cursor(r),false,true).head;if(t>o)r=t}u=new ts(o,r,this.gapSize(a,o,r,c))}l.push(u)};for(let s of this.viewportLines){if(s.lengths.from)h(s.from,n,s,t);if(lt.draw(this.heightOracle.lineWrapping))))}}computeVisibleRanges(){let t=this.stateDeco;if(this.lineGaps.length)t=t.concat(this.lineGapDeco);let e=[];s.RangeSet.spans(t,this.viewport.from,this.viewport.to,{span(t,i){e.push({from:t,to:i})},point(){}},20);let i=e.length!=this.visibleRanges.length||this.visibleRanges.some(((t,i)=>t.from!=e[i].from||t.to!=e[i].to));this.visibleRanges=e;return i?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find((e=>e.from<=t&&e.to>=t))||cs(this.heightMap.lineAt(t,zi.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return cs(this.heightMap.lineAt(this.scaler.fromDOM(t),zi.ByHeight,this.heightOracle,0,0),this.scaler)}elementAtHeight(t){return cs(this.heightMap.blockAt(this.scaler.fromDOM(t),this.heightOracle,0,0),this.scaler)}get docHeight(){return this.scaler.toDOM(this.heightMap.height)}get contentHeight(){return this.docHeight+this.paddingTop+this.paddingBottom}}class ss{constructor(t,e){this.from=t;this.to=e}}function os(t,e,i){let o=[],n=t,r=0;s.RangeSet.spans(i,t,e,{span(){},point(t,e){if(t>n){o.push({from:n,to:t});r+=t-n}n=e}},20);if(n=1)return e[e.length-1].to;let s=Math.floor(t*i);for(let o=0;;o++){let{from:t,to:i}=e[o],n=i-t;if(s<=n)return t+s;s-=n}}function rs(t,e){let i=0;for(let{from:s,to:o}of t.ranges){if(e<=o){i+=e-s;break}i+=o-s}return i/t.total}function ls(t,e){for(let i of t)if(e(i))return i;return undefined}const hs={toDOM(t){return t},fromDOM(t){return t},scale:1};class as{constructor(t,e,i){let s=0,o=0,n=0;this.viewports=i.map((({from:i,to:o})=>{let n=e.lineAt(i,zi.ByPos,t,0,0).top;let r=e.lineAt(o,zi.ByPos,t,0,0).bottom;s+=r-n;return{from:i,to:o,top:n,bottom:r,domTop:0,domBottom:0}}));this.scale=(7e6-s)/(e.height-s);for(let r of this.viewports){r.domTop=n+(r.top-o)*this.scale;n=r.domBottom=r.domTop+(r.bottom-r.top);o=r.bottom}}toDOM(t){for(let e=0,i=0,s=0;;e++){let o=ecs(t,e))):t.type)}const fs=s.Facet.define({combine:t=>t.join(" ")});const ds=s.Facet.define({combine:t=>t.indexOf(true)>-1});const us=o.StyleModule.newName(),ps=o.StyleModule.newName(),gs=o.StyleModule.newName();const ms={"&light":"."+ps,"&dark":"."+gs};function ws(t,e,i){return new o.StyleModule(e,{finish(e){return/&/.test(e)?e.replace(/&\w*/,(e=>{if(e=="&")return t;if(!i||!i[e])throw new RangeError(`Unsupported selector: ${e}`);return i[e]})):t+" "+e}})}const vs=ws("."+us,{"&":{position:"relative !important",boxSizing:"border-box","&.cm-focused":{outline:"1px dotted #212121"},display:"flex !important",flexDirection:"column"},".cm-scroller":{display:"flex !important",alignItems:"flex-start !important",fontFamily:"monospace",lineHeight:1.4,height:"100%",overflowX:"auto",position:"relative",zIndex:0},".cm-content":{margin:0,flexGrow:2,flexShrink:0,display:"block",whiteSpace:"pre",wordWrap:"normal",boxSizing:"border-box",padding:"4px 0",outline:"none","&[contenteditable=true]":{WebkitUserModify:"read-write-plaintext-only"}},".cm-lineWrapping":{whiteSpace_fallback:"pre-wrap",whiteSpace:"break-spaces",wordBreak:"break-word",overflowWrap:"anywhere",flexShrink:1},"&light .cm-content":{caretColor:"black"},"&dark .cm-content":{caretColor:"white"},".cm-line":{display:"block",padding:"0 2px 0 6px"},".cm-layer":{position:"absolute",left:0,top:0,contain:"size style","& > *":{position:"absolute"}},"&light .cm-selectionBackground":{background:"#d9d9d9"},"&dark .cm-selectionBackground":{background:"#222"},"&light.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#d7d4f0"},"&dark.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{background:"#233"},".cm-cursorLayer":{pointerEvents:"none"},"&.cm-focused > .cm-scroller > .cm-cursorLayer":{animation:"steps(1) cm-blink 1.2s infinite"},"@keyframes cm-blink":{"0%":{},"50%":{opacity:0},"100%":{}},"@keyframes cm-blink2":{"0%":{},"50%":{opacity:0},"100%":{}},".cm-cursor, .cm-dropCursor":{borderLeft:"1.2px solid black",marginLeft:"-0.6px",pointerEvents:"none"},".cm-cursor":{display:"none"},"&dark .cm-cursor":{borderLeftColor:"#444"},".cm-dropCursor":{position:"absolute"},"&.cm-focused > .cm-scroller > .cm-cursorLayer .cm-cursor":{display:"block"},"&light .cm-activeLine":{backgroundColor:"#cceeff44"},"&dark .cm-activeLine":{backgroundColor:"#99eeff33"},"&light .cm-specialChar":{color:"red"},"&dark .cm-specialChar":{color:"#f78"},".cm-gutters":{flexShrink:0,display:"flex",height:"100%",boxSizing:"border-box",left:0,zIndex:200},"&light .cm-gutters":{backgroundColor:"#f5f5f5",color:"#6c6c6c",borderRight:"1px solid #ddd"},"&dark .cm-gutters":{backgroundColor:"#333338",color:"#ccc"},".cm-gutter":{display:"flex !important",flexDirection:"column",flexShrink:0,boxSizing:"border-box",minHeight:"100%",overflow:"hidden"},".cm-gutterElement":{boxSizing:"border-box"},".cm-lineNumbers .cm-gutterElement":{padding:"0 3px 0 5px",minWidth:"20px",textAlign:"right",whiteSpace:"nowrap"},"&light .cm-activeLineGutter":{backgroundColor:"#e2f2ff"},"&dark .cm-activeLineGutter":{backgroundColor:"#222227"},".cm-panels":{boxSizing:"border-box",position:"sticky",left:0,right:0},"&light .cm-panels":{backgroundColor:"#f5f5f5",color:"black"},"&light .cm-panels-top":{borderBottom:"1px solid #ddd"},"&light .cm-panels-bottom":{borderTop:"1px solid #ddd"},"&dark .cm-panels":{backgroundColor:"#333338",color:"white"},".cm-tab":{display:"inline-block",overflow:"hidden",verticalAlign:"bottom"},".cm-widgetBuffer":{verticalAlign:"text-top",height:"1em",width:0,display:"inline"},".cm-placeholder":{color:"#888",display:"inline-block",verticalAlign:"top"},".cm-highlightSpace:before":{content:"attr(data-display)",position:"absolute",pointerEvents:"none",color:"#888"},".cm-highlightTab":{backgroundImage:`url('data:image/svg+xml,')`,backgroundSize:"auto 100%",backgroundPosition:"right 90%",backgroundRepeat:"no-repeat"},".cm-trailingSpace":{backgroundColor:"#ff332255"},".cm-button":{verticalAlign:"middle",color:"inherit",fontSize:"70%",padding:".2em 1em",borderRadius:"1px"},"&light .cm-button":{backgroundImage:"linear-gradient(#eff1f5, #d9d9df)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#b4b4b4, #d0d3d6)"}},"&dark .cm-button":{backgroundImage:"linear-gradient(#393939, #111)",border:"1px solid #888","&:active":{backgroundImage:"linear-gradient(#111, #333)"}},".cm-textfield":{verticalAlign:"middle",color:"inherit",fontSize:"70%",border:"1px solid silver",padding:".2em .5em"},"&light .cm-textfield":{backgroundColor:"white"},"&dark .cm-textfield":{border:"1px solid #555",backgroundColor:"inherit"}},ms);class bs{constructor(t,e,i,o){this.typeOver=o;this.bounds=null;this.text="";let{impreciseHead:n,impreciseAnchor:r}=t.docView;if(t.state.readOnly&&e>-1){this.newSel=null}else if(e>-1&&(this.bounds=t.docView.domBoundsAround(e,i,0))){let e=n||r?[]:xs(t);let i=new ke(e,t.state);i.readRange(this.bounds.startDOM,this.bounds.endDOM);this.text=i.text;this.newSel=Ms(e,this.bounds.from)}else{let e=t.observer.selectionRange;let i=n&&n.node==e.focusNode&&n.offset==e.focusOffset||!m(t.contentDOM,e.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(e.focusNode,e.focusOffset);let o=r&&r.node==e.anchorNode&&r.offset==e.anchorOffset||!m(t.contentDOM,e.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(e.anchorNode,e.anchorOffset);this.newSel=s.EditorSelection.single(o,i)}}}function ys(t,e){let i;let{newSel:o}=e,n=t.state.selection.main;if(e.bounds){let{from:o,to:r}=e.bounds;let l=n.from,h=null;if(t.inputState.lastKeyCode===8&&t.inputState.lastKeyTime>Date.now()-100||it.android&&e.text.length=n.from&&i.to<=n.to&&(i.from!=n.from||i.to!=n.to)&&n.to-n.from-(i.to-i.from)<=4){i={from:n.from,to:n.to,insert:t.state.doc.slice(n.from,i.from).append(i.insert).append(t.state.doc.slice(i.to,n.to))}}else if((it.mac||it.android)&&i&&i.from==i.to&&i.from==n.head-1&&/^\. ?$/.test(i.insert.toString())&&t.contentDOM.getAttribute("autocorrect")=="off"){if(o&&i.insert.length==2)o=s.EditorSelection.single(o.main.anchor-1,o.main.head-1);i={from:n.from,to:n.to,insert:s.Text.of([" "])}}else if(it.chrome&&i&&i.from==i.to&&i.from==n.head&&i.insert.toString()=="\n "&&t.lineWrapping){if(o)o=s.EditorSelection.single(o.main.anchor-1,o.main.head-1);i={from:n.from,to:n.to,insert:s.Text.of([" "])}}if(i){let e=t.state;if(it.ios&&t.inputState.flushIOSKey(t))return true;if(it.android&&(i.from==n.from&&i.to==n.to&&i.insert.length==1&&i.insert.lines==2&&H(t.contentDOM,"Enter",13)||i.from==n.from-1&&i.to==n.to&&i.insert.length==0&&H(t.contentDOM,"Backspace",8)||i.from==n.from&&i.to==n.to+1&&i.insert.length==0&&H(t.contentDOM,"Delete",46)))return true;let r=i.insert.toString();if(t.state.facet(It).some((e=>e(t,i.from,i.to,r))))return true;if(t.inputState.composing>=0)t.inputState.composing++;let l;if(i.from>=n.from&&i.to<=n.to&&i.to-i.from>=(n.to-n.from)/3&&(!o||o.main.empty&&o.main.from==i.from+i.insert.length)&&t.inputState.composing<0){let s=n.fromi.to?e.sliceDoc(i.to,n.to):"";l=e.replaceSelection(t.state.toText(s+i.insert.sliceString(0,undefined,t.state.lineBreak)+o))}else{let r=e.changes(i);let h=o&&o.main.to<=r.newLength?o.main:undefined;if(e.selection.ranges.length>1&&t.inputState.composing>=0&&i.to<=n.to&&i.to>=n.to-10){let o=t.state.sliceDoc(i.from,i.to);let a=Ee(t)||t.state.doc.lineAt(n.head);let c=n.to-i.to,f=n.to-n.from;l=e.changeByRange((l=>{if(l.from==n.from&&l.to==n.to)return{changes:r,range:h||l.map(r)};let d=l.to-c,u=d-o.length;if(l.to-l.from!=f||t.state.sliceDoc(u,d)!=o||a&&l.to>=a.from&&l.from<=a.to)return{range:l};let p=e.changes({from:u,to:d,insert:i.insert}),g=l.to-n.to;return{changes:p,range:!h?l.map(p):s.EditorSelection.range(Math.max(0,h.anchor+g),Math.max(0,h.head+g))}}))}else{l={changes:r,selection:h&&e.selection.replaceRange(h)}}}let h="input.type";if(t.composing||t.inputState.compositionPendingChange&&t.inputState.compositionEndedAt>Date.now()-50){t.inputState.compositionPendingChange=false;h+=".compose";if(t.inputState.compositionFirstChange){h+=".start";t.inputState.compositionFirstChange=false}}t.dispatch(l,{scrollIntoView:true,userEvent:h});return true}else if(o&&!o.main.eq(n)){let e=false,i="select";if(t.inputState.lastSelectionTime>Date.now()-50){if(t.inputState.lastSelectionOrigin=="select")e=true;i=t.inputState.lastSelectionOrigin}t.dispatch({selection:o,scrollIntoView:e,userEvent:i});return true}else{return false}}function Ss(t,e,i,s){let o=Math.min(t.length,e.length);let n=0;while(n0&&l>0&&t.charCodeAt(r-1)==e.charCodeAt(l-1)){r--;l--}if(s=="end"){let t=Math.max(0,n-Math.min(r,l));i-=r+t-n}if(r=r?n-i:0;n-=t;l=n+(l-r);r=n}else if(l=l?n-i:0;n-=t;r=n+(r-l);l=n}return{from:n,toA:r,toB:l}}function xs(t){let e=[];if(t.root.activeElement!=t.contentDOM)return e;let{anchorNode:i,anchorOffset:s,focusNode:o,focusOffset:n}=t.observer.selectionRange;if(i){e.push(new Ae(i,s));if(o!=i||n!=s)e.push(new Ae(o,n))}return e}function Ms(t,e){if(t.length==0)return null;let i=t[0].pos,o=t.length==2?t[1].pos:i;return i>-1&&o>-1?s.EditorSelection.single(i+e,o+e):null}const ks={childList:true,characterData:true,subtree:true,attributes:true,characterDataOldValue:true};const Cs=it.ie&&it.ie_version<=11;class As{constructor(t){this.view=t;this.active=false;this.selectionRange=new O;this.selectionChanged=false;this.delayedFlush=-1;this.resizeTimeout=-1;this.queue=[];this.delayedAndroidKey=null;this.flushingAndroidKey=-1;this.lastChange=0;this.scrollTargets=[];this.intersection=null;this.resizeScroll=null;this.resizeContent=null;this.intersecting=false;this.gapIntersection=null;this.gaps=[];this.parentCheck=-1;this.dom=t.contentDOM;this.observer=new MutationObserver((e=>{for(let t of e)this.queue.push(t);if((it.ie&&it.ie_version<=11||it.ios&&t.composing)&&e.some((t=>t.type=="childList"&&t.removedNodes.length||t.type=="characterData"&&t.oldValue.length>t.target.nodeValue.length)))this.flushSoon();else this.flush()}));if(Cs)this.onCharData=t=>{this.queue.push({target:t.target,type:"characterData",oldValue:t.prevValue});this.flushSoon()};this.onSelectionChange=this.onSelectionChange.bind(this);this.onResize=this.onResize.bind(this);this.onPrint=this.onPrint.bind(this);this.onScroll=this.onScroll.bind(this);if(typeof ResizeObserver=="function"){this.resizeScroll=new ResizeObserver((()=>{var t;if(((t=this.view.docView)===null||t===void 0?void 0:t.lastUpdate)this.view.requestMeasure()));this.resizeContent.observe(t.contentDOM)}this.addWindowListeners(this.win=t.win);this.start();if(typeof IntersectionObserver=="function"){this.intersection=new IntersectionObserver((t=>{if(this.parentCheck<0)this.parentCheck=setTimeout(this.listenForScroll.bind(this),1e3);if(t.length>0&&t[t.length-1].intersectionRatio>0!=this.intersecting){this.intersecting=!this.intersecting;if(this.intersecting!=this.view.inView)this.onScrollChanged(document.createEvent("Event"))}}),{});this.intersection.observe(this.dom);this.gapIntersection=new IntersectionObserver((t=>{if(t.length>0&&t[t.length-1].intersectionRatio>0)this.onScrollChanged(document.createEvent("Event"))}),{})}this.listenForScroll();this.readSelectionRange()}onScrollChanged(t){this.view.inputState.runScrollHandlers(this.view,t);if(this.intersecting)this.view.measure()}onScroll(t){if(this.intersecting)this.flush(false);this.onScrollChanged(t)}onResize(){if(this.resizeTimeout<0)this.resizeTimeout=setTimeout((()=>{this.resizeTimeout=-1;this.view.requestMeasure()}),50)}onPrint(){this.view.viewState.printing=true;this.view.measure();setTimeout((()=>{this.view.viewState.printing=false;this.view.requestMeasure()}),500)}updateGaps(t){if(this.gapIntersection&&(t.length!=this.gaps.length||this.gaps.some(((e,i)=>e!=t[i])))){this.gapIntersection.disconnect();for(let e of t)this.gapIntersection.observe(e);this.gaps=t}}onSelectionChange(t){let e=this.selectionChanged;if(!this.readSelectionRange()||this.delayedAndroidKey)return;let{view:i}=this,s=this.selectionRange;if(i.state.facet(Ut)?i.root.activeElement!=this.dom:!v(i.dom,s))return;let o=s.anchorNode&&i.docView.nearest(s.anchorNode);if(o&&o.ignoreEvent(t)){if(!e)this.selectionChanged=false;return}if((it.ie&&it.ie_version<=11||it.android&&it.chrome)&&!i.state.selection.main.empty&&s.focusNode&&y(s.focusNode,s.focusOffset,s.anchorNode,s.anchorOffset))this.flushSoon();else this.flush(false)}readSelectionRange(){let{view:t}=this;let e=it.safari&&t.root.nodeType==11&&w(this.dom.ownerDocument)==this.dom&&Ts(this.view)||g(t.root);if(!e||this.selectionRange.eq(e))return false;let i=v(this.dom,e);if(i&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let t=this.delayedAndroidKey;if(t){this.clearDelayedAndroidKey();if(!this.flush()&&t.force)H(this.dom,t.key,t.keyCode)}};this.flushingAndroidKey=this.view.win.requestAnimationFrame(t)}if(!this.delayedAndroidKey||t=="Enter")this.delayedAndroidKey={key:t,keyCode:e,force:this.lastChange{this.delayedFlush=-1;this.flush()}))}forceFlush(){if(this.delayedFlush>=0){this.view.win.cancelAnimationFrame(this.delayedFlush);this.delayedFlush=-1}this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();if(t.length)this.queue=[];let e=-1,i=-1,s=false;for(let o of t){let t=this.readMutation(o);if(!t)continue;if(t.typeOver)s=true;if(e==-1){({from:e,to:i}=t)}else{e=Math.min(t.from,e);i=Math.max(t.to,i)}}return{from:e,to:i,typeOver:s}}readChange(){let{from:t,to:e,typeOver:i}=this.processRecords();let s=this.selectionChanged&&v(this.dom,this.selectionRange);if(t<0&&!s)return null;if(t>-1)this.lastChange=Date.now();this.view.inputState.lastFocusTime=0;this.selectionChanged=false;return new bs(this.view,t,e,i)}flush(t=true){if(this.delayedFlush>=0||this.delayedAndroidKey)return false;if(t)this.readSelectionRange();let e=this.readChange();if(!e)return false;let i=this.view.state;let s=ys(this.view,e);if(this.view.state==i)this.view.update([]);return s}readMutation(t){let e=this.view.docView.nearest(t.target);if(!e||e.ignoreMutation(t))return null;e.markDirty(t.type=="attributes");if(t.type=="attributes")e.dirty|=4;if(t.type=="childList"){let i=Ds(e,t.previousSibling||t.target.previousSibling,-1);let s=Ds(e,t.nextSibling||t.target.nextSibling,1);return{from:i?e.posAfter(i):e.posAtStart,to:s?e.posBefore(s):e.posAtEnd,typeOver:false}}else if(t.type=="characterData"){return{from:e.posAtStart,to:e.posAtEnd,typeOver:t.target.nodeValue==t.oldValue}}else{return null}}setWindow(t){if(t!=this.win){this.removeWindowListeners(this.win);this.win=t;this.addWindowListeners(this.win)}}addWindowListeners(t){t.addEventListener("resize",this.onResize);t.addEventListener("beforeprint",this.onPrint);t.addEventListener("scroll",this.onScroll);t.document.addEventListener("selectionchange",this.onSelectionChange)}removeWindowListeners(t){t.removeEventListener("scroll",this.onScroll);t.removeEventListener("resize",this.onResize);t.removeEventListener("beforeprint",this.onPrint);t.document.removeEventListener("selectionchange",this.onSelectionChange)}destroy(){var t,e,i,s;this.stop();(t=this.intersection)===null||t===void 0?void 0:t.disconnect();(e=this.gapIntersection)===null||e===void 0?void 0:e.disconnect();(i=this.resizeScroll)===null||i===void 0?void 0:i.disconnect();(s=this.resizeContent)===null||s===void 0?void 0:s.disconnect();for(let o of this.scrollTargets)o.removeEventListener("scroll",this.onScroll);this.removeWindowListeners(this.win);clearTimeout(this.parentCheck);clearTimeout(this.resizeTimeout);this.win.cancelAnimationFrame(this.delayedFlush);this.win.cancelAnimationFrame(this.flushingAndroidKey)}}function Ds(t,e,i){while(e){let s=z.get(e);if(s&&s.parent==t)return s;let o=e.parentNode;e=o!=t.dom?o:i>0?e.nextSibling:e.previousSibling}return null}function Ts(t){let e=null;function i(t){t.preventDefault();t.stopImmediatePropagation();e=t.getTargetRanges()[0]}t.contentDOM.addEventListener("beforeinput",i,true);t.dom.ownerDocument.execCommand("indent");t.contentDOM.removeEventListener("beforeinput",i,true);if(!e)return null;let s=e.startContainer,o=e.startOffset;let n=e.endContainer,r=e.endOffset;let l=t.docView.domAtPos(t.state.selection.main.anchor);if(y(l.node,l.offset,n,r))[s,o,n,r]=[n,r,s,o];return{anchorNode:s,anchorOffset:o,focusNode:n,focusOffset:r}}class Os{constructor(t={}){this.plugins=[];this.pluginMap=new Map;this.editorAttrs={};this.contentAttrs={};this.bidiCache=[];this.destroyed=false;this.updateState=2;this.measureScheduled=-1;this.measureRequests=[];this.contentDOM=document.createElement("div");this.scrollDOM=document.createElement("div");this.scrollDOM.tabIndex=-1;this.scrollDOM.className="cm-scroller";this.scrollDOM.appendChild(this.contentDOM);this.announceDOM=document.createElement("div");this.announceDOM.style.cssText="position: fixed; top: -10000px";this.announceDOM.setAttribute("aria-live","polite");this.dom=document.createElement("div");this.dom.appendChild(this.announceDOM);this.dom.appendChild(this.scrollDOM);this._dispatch=t.dispatch||(t=>this.update([t]));this.dispatch=this.dispatch.bind(this);this._root=t.root||P(t.parent)||document;this.viewState=new is(t.state||s.EditorState.create(t));this.plugins=this.state.facet(Yt).map((t=>new Jt(t)));for(let e of this.plugins)e.update(this);this.observer=new As(this);this.inputState=new ei(this);this.inputState.ensureHandlers(this,this.plugins);this.docView=new De(this);this.mountStyles();this.updateAttrs();this.updateState=0;this.requestMeasure();if(t.parent)t.parent.appendChild(this.dom)}get state(){return this.viewState.state}get viewport(){return this.viewState.viewport}get visibleRanges(){return this.viewState.visibleRanges}get inView(){return this.viewState.inView}get composing(){return this.inputState.composing>0}get compositionStarted(){return this.inputState.composing>=0}get root(){return this._root}get win(){return this.dom.ownerDocument.defaultView||window}dispatch(...t){this._dispatch(t.length==1&&t[0]instanceof s.Transaction?t[0]:this.state.update(...t))}update(t){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let e=false,i=false,o;let n=this.state;for(let s of t){if(s.startState!=n)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");n=s.state}if(this.destroyed){this.viewState.state=n;return}let r=this.hasFocus,l=0,h=null;if(t.some((t=>t.annotation(Li)))){this.inputState.notifiedFocused=r;l=1}else if(r!=this.inputState.notifiedFocused){this.inputState.notifiedFocused=r;h=Hi(n,r);if(!h)l=1}let a=this.observer.delayedAndroidKey,c=null;if(a){this.observer.clearDelayedAndroidKey();c=this.observer.readChange();if(c&&!this.state.doc.eq(n.doc)||!this.state.selection.eq(n.selection))c=null}else{this.observer.clear()}if(n.facet(s.EditorState.phrases)!=this.state.facet(s.EditorState.phrases))return this.setState(n);o=re.create(this,n,t);o.flags|=l;let f=this.viewState.scrollTarget;try{this.updateState=2;for(let e of t){if(f)f=f.map(e.changes);if(e.scrollIntoView){let{main:t}=e.state.selection;f=new jt(t.empty?t:s.EditorSelection.cursor(t.head,t.head>t.anchor?-1:1))}for(let t of e.effects)if(t.is($t))f=t.value}this.viewState.update(o,f);this.bidiCache=Bs.update(this.bidiCache,o.changes);if(!o.empty){this.updatePlugins(o);this.inputState.update(o)}e=this.docView.update(o);if(this.state.facet(oe)!=this.styleModules)this.mountStyles();i=this.updateAttrs();this.showAnnouncements(t);this.docView.updateSelection(e,t.some((t=>t.isUserEvent("select.pointer"))))}finally{this.updateState=0}if(o.startState.facet(fs)!=o.state.facet(fs))this.viewState.mustMeasureContent=true;if(e||i||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)this.requestMeasure();if(!o.empty)for(let s of this.state.facet(zt))s(o);if(h||c)Promise.resolve().then((()=>{if(h&&this.state==h.startState)this.dispatch(h);if(c){if(!ys(this,c)&&a.force)H(this.contentDOM,a.key,a.keyCode)}}))}setState(t){if(this.updateState!=0)throw new Error("Calls to EditorView.setState are not allowed while an update is in progress");if(this.destroyed){this.viewState.state=t;return}this.updateState=2;let e=this.hasFocus;try{for(let t of this.plugins)t.destroy(this);this.viewState=new is(t);this.plugins=t.facet(Yt).map((t=>new Jt(t)));this.pluginMap.clear();for(let t of this.plugins)t.update(this);this.docView=new De(this);this.inputState.ensureHandlers(this,this.plugins);this.mountStyles();this.updateAttrs();this.bidiCache=[]}finally{this.updateState=0}if(e)this.focus();this.requestMeasure()}updatePlugins(t){let e=t.startState.facet(Yt),i=t.state.facet(Yt);if(e!=i){let s=[];for(let o of i){let i=e.indexOf(o);if(i<0){s.push(new Jt(o))}else{let e=this.plugins[i];e.mustUpdate=t;s.push(e)}}for(let e of this.plugins)if(e.mustUpdate!=t)e.destroy(this);this.plugins=s;this.pluginMap.clear();this.inputState.ensureHandlers(this,this.plugins)}else{for(let e of this.plugins)e.mustUpdate=t}for(let s=0;s-1)this.win.cancelAnimationFrame(this.measureScheduled);this.measureScheduled=0;if(t)this.observer.forceFlush();let e=null;let{scrollHeight:i,scrollTop:s,clientHeight:o}=this.scrollDOM;let n=s>i-o-4?i:s;try{for(let t=0;;t++){this.updateState=1;let i=this.viewport;let s=this.viewState.lineBlockAtHeight(n);let o=this.viewState.measure(this);if(!o&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(t>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let l=[];if(!(o&4))[this.measureRequests,l]=[l,this.measureRequests];let h=l.map((t=>{try{return t.read(this)}catch(e){_t(this.state,e);return Rs}}));let a=re.create(this,this.state,[]),c=false,f=false;a.flags|=o;if(!e)e=a;else e.flags|=o;this.updateState=2;if(!a.empty){this.updatePlugins(a);this.inputState.update(a);this.updateAttrs();c=this.docView.update(a)}for(let t=0;t1||t<-1){this.scrollDOM.scrollTop+=t;f=true}}}if(c)this.docView.updateSelection(true);if(this.viewport.from==i.from&&this.viewport.to==i.to&&!f&&this.measureRequests.length==0)break}}finally{this.updateState=0;this.measureScheduled=-1}if(e&&!e.empty)for(let l of this.state.facet(zt))l(e)}get themeClasses(){return us+" "+(this.state.facet(ds)?gs:ps)+" "+this.state.facet(fs)}updateAttrs(){let t=Ls(this,Zt,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses});let e={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:!this.state.facet(Ut)?"false":"true",class:"cm-content",style:`${it.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};if(this.state.readOnly)e["aria-readonly"]="true";Ls(this,te,e);let i=this.observer.ignore((()=>{let i=St(this.contentDOM,this.contentAttrs,e);let s=St(this.dom,this.editorAttrs,t);return i||s}));this.editorAttrs=t;this.contentAttrs=e;return i}showAnnouncements(t){let e=true;for(let i of t)for(let t of i.effects)if(t.is(Os.announce)){if(e)this.announceDOM.textContent="";e=false;let i=this.announceDOM.appendChild(document.createElement("div"));i.textContent=t.value}}mountStyles(){this.styleModules=this.state.facet(oe);o.StyleModule.mount(this.root,this.styleModules.concat(vs).reverse())}readMeasured(){if(this.updateState==2)throw new Error("Reading the editor layout isn't allowed during an update");if(this.updateState==0&&this.measureScheduled>-1)this.measure(false)}requestMeasure(t){if(this.measureScheduled<0)this.measureScheduled=this.win.requestAnimationFrame((()=>this.measure()));if(t){if(this.measureRequests.indexOf(t)>-1)return;if(t.key!=null)for(let e=0;ee.spec==t))||null);return e&&e.update(this).value}get documentTop(){return this.contentDOM.getBoundingClientRect().top+this.viewState.paddingTop}get documentPadding(){return{top:this.viewState.paddingTop,bottom:this.viewState.paddingBottom}}elementAtHeight(t){this.readMeasured();return this.viewState.elementAtHeight(t)}lineBlockAtHeight(t){this.readMeasured();return this.viewState.lineBlockAtHeight(t)}get viewportLineBlocks(){return this.viewState.viewportLines}lineBlockAt(t){return this.viewState.lineBlockAt(t)}get contentHeight(){return this.viewState.contentHeight}moveByChar(t,e,i){return ti(this,t,Qe(this,t,e,i))}moveByGroup(t,e){return ti(this,t,Qe(this,t,e,(e=>Je(this,t.head,e))))}moveToLineBoundary(t,e,i=true){return Ye(this,t,e,i)}moveVertically(t,e,i){return ti(this,t,Ze(this,t,e,i))}domAtPos(t){return this.docView.domAtPos(t)}posAtDOM(t,e=0){return this.docView.posFromDOM(t,e)}posAtCoords(t,e=true){this.readMeasured();return $e(this,t,e)}coordsAtPos(t,e=1){this.readMeasured();let i=this.docView.coordsAt(t,e);if(!i||i.left==i.right)return i;let s=this.state.doc.lineAt(t),o=this.bidiSpans(s);let n=o[we.find(o,t-s.from,-1,e)];return C(i,n.dir==le.LTR==e>0)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){let e=this.state.facet(qt);if(!e||tthis.viewport.to)return this.textDirection;this.readMeasured();return this.docView.textDirectionAt(t)}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>Es)return ye(t.length);let e=this.textDirectionAt(t.from);for(let s of this.bidiCache)if(s.from==t.from&&s.dir==e)return s.order;let i=be(t.text,e);this.bidiCache.push(new Bs(t.from,t.to,e,i));return i}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||it.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore((()=>{R(this.contentDOM);this.docView.updateSelection()}))}setRoot(t){if(this._root!=t){this._root=t;this.observer.setWindow((t.nodeType==9?t:t.ownerDocument).defaultView||window);this.mountStyles()}}destroy(){for(let t of this.plugins)t.destroy(this);this.plugins=[];this.inputState.destroy();this.dom.remove();this.observer.destroy();if(this.measureScheduled>-1)this.win.cancelAnimationFrame(this.measureScheduled);this.destroyed=true}static scrollIntoView(t,e={}){return $t.of(new jt(typeof t=="number"?s.EditorSelection.cursor(t):t,e.y,e.x,e.yMargin,e.xMargin))}static domEventHandlers(t){return Qt.define((()=>({})),{eventHandlers:t})}static theme(t,e){let i=o.StyleModule.newName();let s=[fs.of(i),oe.of(ws(`.${i}`,t))];if(e&&e.dark)s.push(ds.of(true));return s}static baseTheme(t){return s.Prec.lowest(oe.of(ws("."+us,t,ms)))}static findFromDOM(t){var e;let i=t.querySelector(".cm-content");let s=i&&z.get(i)||z.get(t);return((e=s===null||s===void 0?void 0:s.rootView)===null||e===void 0?void 0:e.view)||null}}Os.styleModule=oe;Os.inputHandler=It;Os.focusChangeEffect=Kt;Os.perLineTextDirection=qt;Os.exceptionSink=Ft;Os.updateListener=zt;Os.editable=Ut;Os.mouseSelectionStyle=Wt;Os.dragMovesSelection=Nt;Os.clickAddsSelectionRange=Vt;Os.decorations=ee;Os.atomicRanges=ie;Os.scrollMargins=se;Os.darkTheme=ds;Os.contentAttributes=te;Os.editorAttributes=Zt;Os.lineWrapping=Os.contentAttributes.of({class:"cm-lineWrapping"});Os.announce=s.StateEffect.define();const Es=4096;const Rs={};class Bs{constructor(t,e,i,s){this.from=t;this.to=e;this.dir=i;this.order=s}static update(t,e){if(e.empty)return t;let i=[],s=t.length?t[t.length-1].dir:le.LTR;for(let o=Math.max(0,t.length-10);o=0;o--){let e=s[o],n=typeof e=="function"?e(t):e;if(n)bt(n,i)}return i}const Hs=it.mac?"mac":it.windows?"win":it.linux?"linux":"key";function Ps(t,e){const i=t.split(/-(?!$)/);let s=i[i.length-1];if(s=="Space")s=" ";let o,n,r,l;for(let h=0;ht.concat(e)),[])));return i}function Is(t,e,i){return js(zs(t.state),e,t,i)}let Ks=null;const qs=4e3;function Gs(t,e=Hs){let i=Object.create(null);let s=Object.create(null);let o=(t,e)=>{let i=s[t];if(i==null)s[t]=e;else if(i!=e)throw new Error("Key binding "+t+" is used both as a regular binding and as a multi-stroke prefix")};let n=(t,s,n,r)=>{var l,h;let a=i[t]||(i[t]=Object.create(null));let c=s.split(/ (?!$)/).map((t=>Ps(t,e)));for(let e=1;e{let s=Ks={view:e,prefix:i,scope:t};setTimeout((()=>{if(Ks==s)Ks=null}),qs);return true}]}}let f=c.join(" ");o(f,false);let d=a[f]||(a[f]={preventDefault:false,run:((h=(l=a._any)===null||l===void 0?void 0:l.run)===null||h===void 0?void 0:h.slice())||[]});if(n)d.run.push(n);if(r)d.preventDefault=true};for(let r of t){let t=r.scope?r.scope.split(" "):["editor"];if(r.any)for(let e of t){let t=i[e]||(i[e]=Object.create(null));if(!t._any)t._any={preventDefault:false,run:[]};for(let e in t)t[e].run.push(r.any)}let s=r[e]||r.key;if(!s)continue;for(let e of t){n(e,s,r.run,r.preventDefault);if(r.shift)n(e,"Shift-"+s,r.shift,r.preventDefault)}}return i}function js(t,e,i,o){let l=p(e);let h=(0,s.codePointAt)(l,0),a=(0,s.codePointSize)(h)==l.length&&l!=" ";let c="",f=false;if(Ks&&Ks.view==i&&Ks.scope==o){c=Ks.prefix+" ";if(f=oi.indexOf(e.keyCode)<0)Ks=null}let d=new Set;let u=t=>{if(t){for(let s of t.run)if(!d.has(s)){d.add(s);if(s(i,e))return true}if(t.preventDefault)f=true}return false};let g=t[o],m,w;if(g){if(u(g[c+Vs(l,e,!a)]))return true;if(a&&(e.altKey||e.metaKey||e.ctrlKey)&&!(it.windows&&e.ctrlKey&&e.altKey)&&(m=n[e.keyCode])&&m!=l){if(u(g[c+Vs(m,e,true)]))return true;else if(e.shiftKey&&(w=r[e.keyCode])!=l&&w!=m&&u(g[c+Vs(w,e,false)]))return true}else if(a&&e.shiftKey){if(u(g[c+Vs(l,e,true)]))return true}if(u(g._any))return true}return f}class $s{constructor(t,e,i,s,o){this.className=t;this.left=e;this.top=i;this.width=s;this.height=o}draw(){let t=document.createElement("div");t.className=this.className;this.adjust(t);return t}update(t,e){if(e.className!=this.className)return false;this.adjust(t);return true}adjust(t){t.style.left=this.left+"px";t.style.top=this.top+"px";if(this.width!=null)t.style.width=this.width+"px";t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,e,i){if(i.empty){let s=t.coordsAtPos(i.head,i.assoc||1);if(!s)return[];let o=_s(t);return[new $s(e,s.left-o.left,s.top-o.top,null,s.bottom-s.top)]}else{return Ys(t,e,i)}}}function _s(t){let e=t.scrollDOM.getBoundingClientRect();let i=t.textDirection==le.LTR?e.left:e.right-t.scrollDOM.clientWidth;return{left:i-t.scrollDOM.scrollLeft,top:e.top-t.scrollDOM.scrollTop}}function Us(t,e,i){let o=s.EditorSelection.cursor(e);return{from:Math.max(i.from,t.moveToLineBoundary(o,false,true).from),to:Math.min(i.to,t.moveToLineBoundary(o,true,true).from),type:Mt.Text}}function Xs(t,e){let i=t.lineBlockAt(e);if(Array.isArray(i.type))for(let s of i.type){if(s.to>e||s.to==e&&(s.to==i.to||s.type==Mt.Text))return s}return i}function Ys(t,e,i){if(i.to<=t.viewport.from||i.from>=t.viewport.to)return[];let s=Math.max(i.from,t.viewport.from),o=Math.min(i.to,t.viewport.to);let n=t.textDirection==le.LTR;let r=t.contentDOM,l=r.getBoundingClientRect(),h=_s(t);let a=r.querySelector(".cm-line"),c=a&&window.getComputedStyle(a);let f=l.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0);let d=l.right-(c?parseInt(c.paddingRight):0);let u=Xs(t,s),p=Xs(t,o);let g=u.type==Mt.Text?u:null;let m=p.type==Mt.Text?p:null;if(t.lineWrapping){if(g)g=Us(t,s,g);if(m)m=Us(t,o,m)}if(g&&m&&g.from==m.from){return v(b(i.from,i.to,g))}else{let e=g?b(i.from,null,g):y(u,false);let s=m?b(null,i.to,m):y(p,true);let o=[];if((g||u).to<(m||p).from-1)o.push(w(f,e.bottom,d,s.top));else if(e.bottoma&&n.from=o)break;if(l>s)h(Math.max(t,s),e==null&&t<=a,Math.min(l,o),i==null&&l>=c,r.dir)}s=n.to+1;if(s>=o)break}}if(l.length==0)h(a,e==null,c,i==null,t.textDirection);return{top:o,bottom:r,horizontal:l}}function y(t,e){let i=l.top+(e?t.top:t.bottom);return{top:i,bottom:i,horizontal:[]}}}function Qs(t,e){return t.constructor==e.constructor&&t.eq(e)}class Js{constructor(t,e){this.view=t;this.layer=e;this.drawn=[];this.measureReq={read:this.measure.bind(this),write:this.draw.bind(this)};this.dom=t.scrollDOM.appendChild(document.createElement("div"));this.dom.classList.add("cm-layer");if(e.above)this.dom.classList.add("cm-layer-above");if(e.class)this.dom.classList.add(e.class);this.dom.setAttribute("aria-hidden","true");this.setOrder(t.state);t.requestMeasure(this.measureReq);if(e.mount)e.mount(this.dom,t)}update(t){if(t.startState.facet(Zs)!=t.state.facet(Zs))this.setOrder(t.state);if(this.layer.update(t,this.dom)||t.geometryChanged)t.view.requestMeasure(this.measureReq)}setOrder(t){let e=0,i=t.facet(Zs);while(e!Qs(t,this.drawn[e])))){let e=this.dom.firstChild,i=0;for(let s of t){if(s.update&&e&&s.constructor&&this.drawn[i].constructor&&s.update(e,this.drawn[i])){e=e.nextSibling;i++}else{this.dom.insertBefore(s.draw(),e)}}while(e){let t=e.nextSibling;e.remove();e=t}this.drawn=t}}destroy(){if(this.layer.destroy)this.layer.destroy(this.dom,this.view);this.dom.remove()}}const Zs=s.Facet.define();function to(t){return[Qt.define((e=>new Js(e,t))),Zs.of(t)]}const eo=!it.ios;const io=s.Facet.define({combine(t){return(0,s.combineConfig)(t,{cursorBlinkRate:1200,drawRangeCursor:true},{cursorBlinkRate:(t,e)=>Math.min(t,e),drawRangeCursor:(t,e)=>t||e})}});function so(t={}){return[io.of(t),no,lo,ao,Gt.of(true)]}function oo(t){return t.startState.facet(io)!=t.state.facet(io)}const no=to({above:true,markers(t){let{state:e}=t,i=e.facet(io);let o=[];for(let n of e.selection.ranges){let r=n==e.selection.main;if(n.empty?!r||eo:i.drawRangeCursor){let e=r?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary";let i=n.empty?n:s.EditorSelection.cursor(n.head,n.head>n.anchor?-1:1);for(let s of $s.forRange(t,e,i))o.push(s)}}return o},update(t,e){if(t.transactions.some((t=>t.selection)))e.style.animationName=e.style.animationName=="cm-blink"?"cm-blink2":"cm-blink";let i=oo(t);if(i)ro(t.state,e);return t.docChanged||t.selectionSet||i},mount(t,e){ro(e.state,t)},class:"cm-cursorLayer"});function ro(t,e){e.style.animationDuration=t.facet(io).cursorBlinkRate+"ms"}const lo=to({above:false,markers(t){return t.state.selection.ranges.map((e=>e.empty?[]:$s.forRange(t,"cm-selectionBackground",e))).reduce(((t,e)=>t.concat(e)))},update(t,e){return t.docChanged||t.selectionSet||t.viewportChanged||oo(t)},class:"cm-selectionLayer"});const ho={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};if(eo)ho[".cm-line"].caretColor="transparent !important";const ao=s.Prec.highest(Os.theme(ho));const co=s.StateEffect.define({map(t,e){return t==null?null:e.mapPos(t)}});const fo=s.StateField.define({create(){return null},update(t,e){if(t!=null)t=e.changes.mapPos(t);return e.effects.reduce(((t,e)=>e.is(co)?e.value:t),t)}});const uo=Qt.fromClass(class{constructor(t){this.view=t;this.cursor=null;this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(t){var e;let i=t.state.field(fo);if(i==null){if(this.cursor!=null){(e=this.cursor)===null||e===void 0?void 0:e.remove();this.cursor=null}}else{if(!this.cursor){this.cursor=this.view.scrollDOM.appendChild(document.createElement("div"));this.cursor.className="cm-dropCursor"}if(t.startState.field(fo)!=i||t.docChanged||t.geometryChanged)this.view.requestMeasure(this.measureReq)}}readPos(){let t=this.view.state.field(fo);let e=t!=null&&this.view.coordsAtPos(t);if(!e)return null;let i=this.view.scrollDOM.getBoundingClientRect();return{left:e.left-i.left+this.view.scrollDOM.scrollLeft,top:e.top-i.top+this.view.scrollDOM.scrollTop,height:e.bottom-e.top}}drawCursor(t){if(this.cursor){if(t){this.cursor.style.left=t.left+"px";this.cursor.style.top=t.top+"px";this.cursor.style.height=t.height+"px"}else{this.cursor.style.left="-100000px"}}}destroy(){if(this.cursor)this.cursor.remove()}setDropPos(t){if(this.view.state.field(fo)!=t)this.view.dispatch({effects:co.of(t)})}},{eventHandlers:{dragover(t){this.setDropPos(this.view.posAtCoords({x:t.clientX,y:t.clientY}))},dragleave(t){if(t.target==this.view.contentDOM||!this.view.contentDOM.contains(t.relatedTarget))this.setDropPos(null)},dragend(){this.setDropPos(null)},drop(){this.setDropPos(null)}}});function po(){return[fo,uo]}function go(t,e,i,s,o){e.lastIndex=0;for(let n=t.iterRange(i,s),r=i,l;!n.next().done;r+=n.value.length){if(!n.lineBreak)while(l=e.exec(n.value))o(r+l.index,l)}}function mo(t,e){let i=t.visibleRanges;if(i.length==1&&i[0].from==t.viewport.from&&i[0].to==t.viewport.to)return i;let s=[];for(let{from:o,to:n}of i){o=Math.max(t.state.doc.lineAt(o).from,o-e);n=Math.min(t.state.doc.lineAt(n).to,n+e);if(s.length&&s[s.length-1].to>=o)s[s.length-1].to=n;else s.push({from:o,to:n})}return s}class wo{constructor(t){const{regexp:e,decoration:i,decorate:s,boundary:o,maxLength:n=1e3}=t;if(!e.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");this.regexp=e;if(s){this.addMatch=(t,e,i,o)=>s(o,i,i+t[0].length,t,e)}else if(typeof i=="function"){this.addMatch=(t,e,s,o)=>{let n=i(t,e,s);if(n)o(s,s+t[0].length,n)}}else if(i){this.addMatch=(t,e,s,o)=>o(s,s+t[0].length,i)}else{throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator")}this.boundary=o;this.maxLength=n}createDeco(t){let e=new s.RangeSetBuilder,i=e.add.bind(e);for(let{from:s,to:o}of mo(t,this.maxLength))go(t.state.doc,this.regexp,s,o,((e,s)=>this.addMatch(s,t,e,i)));return e.finish()}updateDeco(t,e){let i=1e9,s=-1;if(t.docChanged)t.changes.iterChanges(((e,o,n,r)=>{if(r>t.view.viewport.from&&n1e3)return this.createDeco(t.view);if(s>-1)return this.updateRange(t.view,e.map(t.changes),i,s);return e}updateRange(t,e,i,s){for(let o of t.visibleRanges){let n=Math.max(o.from,i),r=Math.min(o.to,s);if(r>n){let i=t.state.doc.lineAt(n),s=i.toi.from;n--)if(this.boundary.test(i.text[n-1-i.from])){l=n;break}for(;ra.push(i.range(t,e));if(i==s){this.regexp.lastIndex=l-i.from;while((c=this.regexp.exec(i.text))&&c.indexthis.addMatch(i,t,e,f)))}e=e.update({filterFrom:l,filterTo:h,filter:(t,e)=>th,add:a})}}return e}}const vo=/x/.unicode!=null?"gu":"g";const bo=new RegExp("[\0-\b\n--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\ufeff-]",vo);const yo={0:"null",7:"bell",8:"backspace",10:"newline",11:"vertical tab",13:"carriage return",27:"escape",8203:"zero width space",8204:"zero width non-joiner",8205:"zero width joiner",8206:"left-to-right mark",8207:"right-to-left mark",8232:"line separator",8237:"left-to-right override",8238:"right-to-left override",8294:"left-to-right isolate",8295:"right-to-left isolate",8297:"pop directional isolate",8233:"paragraph separator",65279:"zero width no-break space",65532:"object replacement"};let So=null;function xo(){var t;if(So==null&&typeof document!="undefined"&&document.body){let e=document.body.style;So=((t=e.tabSize)!==null&&t!==void 0?t:e.MozTabSize)!=null}return So||false}const Mo=s.Facet.define({combine(t){let e=(0,s.combineConfig)(t,{render:null,specialChars:bo,addSpecialChars:null});if(e.replaceTabs=!xo())e.specialChars=new RegExp("\t|"+e.specialChars.source,vo);if(e.addSpecialChars)e.specialChars=new RegExp(e.specialChars.source+"|"+e.addSpecialChars.source,vo);return e}});function ko(t={}){return[Mo.of(t),Ao()]}let Co=null;function Ao(){return Co||(Co=Qt.fromClass(class{constructor(t){this.view=t;this.decorations=kt.none;this.decorationCache=Object.create(null);this.decorator=this.makeDecorator(t.state.facet(Mo));this.decorations=this.decorator.createDeco(t)}makeDecorator(t){return new wo({regexp:t.specialChars,decoration:(e,i,o)=>{let{doc:n}=i.state;let r=(0,s.codePointAt)(e[0],0);if(r==9){let t=n.lineAt(o);let e=i.state.tabSize,r=(0,s.countColumn)(t.text,e,o-t.from);return kt.replace({widget:new Eo((e-r%e)*this.view.defaultCharacterWidth)})}return this.decorationCache[r]||(this.decorationCache[r]=kt.replace({widget:new Oo(t,r)}))},boundary:t.replaceTabs?undefined:/[^]/})}update(t){let e=t.state.facet(Mo);if(t.startState.facet(Mo)!=e){this.decorator=this.makeDecorator(e);this.decorations=this.decorator.createDeco(t.view)}else{this.decorations=this.decorator.updateDeco(t,this.decorations)}}},{decorations:t=>t.decorations}))}const Do="•";function To(t){if(t>=32)return Do;if(t==10)return"␤";return String.fromCharCode(9216+t)}class Oo extends xt{constructor(t,e){super();this.options=t;this.code=e}eq(t){return t.code==this.code}toDOM(t){let e=To(this.code);let i=t.state.phrase("Control character")+" "+(yo[this.code]||"0x"+this.code.toString(16));let s=this.options.render&&this.options.render(this.code,i,e);if(s)return s;let o=document.createElement("span");o.textContent=e;o.title=i;o.setAttribute("aria-label",i);o.className="cm-specialChar";return o}ignoreEvent(){return false}}class Eo extends xt{constructor(t){super();this.width=t}eq(t){return t.width==this.width}toDOM(){let t=document.createElement("span");t.textContent="\t";t.className="cm-tab";t.style.width=this.width+"px";return t}ignoreEvent(){return false}}const Ro=Qt.fromClass(class{constructor(){this.height=1e3;this.attrs={style:"padding-bottom: 1000px"}}update(t){let{view:e}=t;let i=e.viewState.editorHeight-e.defaultLineHeight-e.documentPadding.top-.5;if(i!=this.height){this.height=i;this.attrs={style:`padding-bottom: ${i}px`}}}});function Bo(){return[Ro,te.of((t=>{var e;return((e=t.plugin(Ro))===null||e===void 0?void 0:e.attrs)||null}))]}function Lo(){return Po}const Ho=kt.line({class:"cm-activeLine"});const Po=Qt.fromClass(class{constructor(t){this.decorations=this.getDeco(t)}update(t){if(t.docChanged||t.selectionSet)this.decorations=this.getDeco(t.view)}getDeco(t){let e=-1,i=[];for(let s of t.state.selection.ranges){let o=t.lineBlockAt(s.head);if(o.from>e){i.push(Ho.range(o.from));e=o.from}}return kt.set(i)}},{decorations:t=>t.decorations});class Vo extends xt{constructor(t){super();this.content=t}toDOM(){let t=document.createElement("span");t.className="cm-placeholder";t.style.pointerEvents="none";t.appendChild(typeof this.content=="string"?document.createTextNode(this.content):this.content);if(typeof this.content=="string")t.setAttribute("aria-label","placeholder "+this.content);else t.setAttribute("aria-hidden","true");return t}ignoreEvent(){return false}}function No(t){return Qt.fromClass(class{constructor(e){this.view=e;this.placeholder=kt.set([kt.widget({widget:new Vo(t),side:1}).range(0)])}get decorations(){return this.view.state.doc.length?kt.none:this.placeholder}},{decorations:t=>t.decorations})}const Wo=2e3;function Fo(t,e,i){let o=Math.min(e.line,i.line),n=Math.max(e.line,i.line);let r=[];if(e.off>Wo||i.off>Wo||e.col<0||i.col<0){let l=Math.min(e.off,i.off),h=Math.max(e.off,i.off);for(let e=o;e<=n;e++){let i=t.doc.line(e);if(i.length<=h)r.push(s.EditorSelection.range(i.from+l,i.to+h))}}else{let l=Math.min(e.col,i.col),h=Math.max(e.col,i.col);for(let e=o;e<=n;e++){let i=t.doc.line(e);let o=(0,s.findColumn)(i.text,l,t.tabSize,true);if(o<0){r.push(s.EditorSelection.cursor(i.to))}else{let e=(0,s.findColumn)(i.text,h,t.tabSize);r.push(s.EditorSelection.range(i.from+o,i.from+e))}}}return r}function zo(t,e){let i=t.coordsAtPos(t.viewport.from);return i?Math.round(Math.abs((i.left-e)/t.defaultCharacterWidth)):-1}function Io(t,e){let i=t.posAtCoords({x:e.clientX,y:e.clientY},false);let o=t.state.doc.lineAt(i),n=i-o.from;let r=n>Wo?-1:n==o.length?zo(t,e.clientX):(0,s.countColumn)(o.text,t.state.tabSize,i-o.from);return{line:o.number,col:r,off:n}}function Ko(t,e){let i=Io(t,e),o=t.state.selection;if(!i)return null;return{update(t){if(t.docChanged){let e=t.changes.mapPos(t.startState.doc.line(i.line).from);let s=t.state.doc.lineAt(e);i={line:s.number,col:i.col,off:Math.min(i.off,s.length)};o=o.map(t.changes)}},get(e,n,r){let l=Io(t,e);if(!l)return o;let h=Fo(t.state,i,l);if(!h.length)return o;if(r)return s.EditorSelection.create(h.concat(o.ranges));else return s.EditorSelection.create(h)}}}function qo(t){let e=(t===null||t===void 0?void 0:t.eventFilter)||(t=>t.altKey&&t.button==0);return Os.mouseSelectionStyle.of(((t,i)=>e(i)?Ko(t,i):null))}const Go={Alt:[18,t=>t.altKey],Control:[17,t=>t.ctrlKey],Shift:[16,t=>t.shiftKey],Meta:[91,t=>t.metaKey]};const jo={style:"cursor: crosshair"};function $o(t={}){let[e,i]=Go[t.key||"Alt"];let s=Qt.fromClass(class{constructor(t){this.view=t;this.isDown=false}set(t){if(this.isDown!=t){this.isDown=t;this.view.update([])}}},{eventHandlers:{keydown(t){this.set(t.keyCode==e||i(t))},keyup(t){if(t.keyCode==e||!i(t))this.set(false)},mousemove(t){this.set(i(t))}}});return[s,Os.contentAttributes.of((t=>{var e;return((e=t.plugin(s))===null||e===void 0?void 0:e.isDown)?jo:null}))]}const _o="-10000px";class Uo{constructor(t,e,i){this.facet=e;this.createTooltipView=i;this.input=t.state.facet(e);this.tooltips=this.input.filter((t=>t));this.tooltipViews=this.tooltips.map(i)}update(t){var e;let i=t.state.facet(this.facet);let s=i.filter((t=>t));if(i===this.input){for(let e of this.tooltipViews)if(e.update)e.update(t);return false}let o=[];for(let n=0;n{var e,i,s;return{position:it.ios?"absolute":((e=t.find((t=>t.position)))===null||e===void 0?void 0:e.position)||"fixed",parent:((i=t.find((t=>t.parent)))===null||i===void 0?void 0:i.parent)||null,tooltipSpace:((s=t.find((t=>t.tooltipSpace)))===null||s===void 0?void 0:s.tooltipSpace)||Yo}}});const Jo=new WeakMap;const Zo=Qt.fromClass(class{constructor(t){this.view=t;this.inView=true;this.lastTransaction=0;this.measureTimeout=-1;let e=t.state.facet(Qo);this.position=e.position;this.parent=e.parent;this.classes=t.themeClasses;this.createContainer();this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this};this.manager=new Uo(t,sn,(t=>this.createTooltip(t)));this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver((t=>{if(Date.now()>this.lastTransaction-50&&t.length>0&&t[t.length-1].intersectionRatio<1)this.measureSoon()}),{threshold:[1]}):null;this.observeIntersection();t.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this));this.maybeMeasure()}createContainer(){if(this.parent){this.container=document.createElement("div");this.container.style.position="relative";this.container.className=this.view.themeClasses;this.parent.appendChild(this.container)}else{this.container=this.view.dom}}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let t of this.manager.tooltipViews)this.intersectionObserver.observe(t.dom)}}measureSoon(){if(this.measureTimeout<0)this.measureTimeout=setTimeout((()=>{this.measureTimeout=-1;this.maybeMeasure()}),50)}update(t){if(t.transactions.length)this.lastTransaction=Date.now();let e=this.manager.update(t);if(e)this.observeIntersection();let i=e||t.geometryChanged;let s=t.state.facet(Qo);if(s.position!=this.position){this.position=s.position;for(let t of this.manager.tooltipViews)t.dom.style.position=this.position;i=true}if(s.parent!=this.parent){if(this.parent)this.container.remove();this.parent=s.parent;this.createContainer();for(let t of this.manager.tooltipViews)this.container.appendChild(t.dom);i=true}else if(this.parent&&this.view.themeClasses!=this.classes){this.classes=this.container.className=this.view.themeClasses}if(i)this.maybeMeasure()}createTooltip(t){let e=t.create(this.view);e.dom.classList.add("cm-tooltip");if(t.arrow&&!e.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let t=document.createElement("div");t.className="cm-tooltip-arrow";e.dom.appendChild(t)}e.dom.style.position=this.position;e.dom.style.top=_o;this.container.appendChild(e.dom);if(e.mount)e.mount(this.view);return e}destroy(){var t,e;this.view.win.removeEventListener("resize",this.measureSoon);for(let i of this.manager.tooltipViews){i.dom.remove();(t=i.destroy)===null||t===void 0?void 0:t.call(i)}(e=this.intersectionObserver)===null||e===void 0?void 0:e.disconnect();clearTimeout(this.measureTimeout)}readMeasure(){let t=this.view.dom.getBoundingClientRect();return{editor:t,parent:this.parent?this.container.getBoundingClientRect():t,pos:this.manager.tooltips.map(((t,e)=>{let i=this.manager.tooltipViews[e];return i.getCoords?i.getCoords(t.pos):this.view.coordsAtPos(t.pos)})),size:this.manager.tooltipViews.map((({dom:t})=>t.getBoundingClientRect())),space:this.view.state.facet(Qo).tooltipSpace(this.view)}}writeMeasure(t){var e;let{editor:i,space:s}=t;let o=[];for(let n=0;n=Math.min(i.bottom,s.bottom)||a.rightMath.min(i.right,s.right)+.1){h.style.top=_o;continue}let f=r.arrow?l.dom.querySelector(".cm-tooltip-arrow"):null;let d=f?7:0;let u=c.right-c.left,p=(e=Jo.get(l))!==null&&e!==void 0?e:c.bottom-c.top;let g=l.offset||en,m=this.view.textDirection==le.LTR;let w=c.width>s.right-s.left?m?s.left:s.right-c.width:m?Math.min(a.left-(f?14:0)+g.x,s.right-u):Math.max(s.left,a.left-u+(f?14:0)-g.x);let v=!!r.above;if(!r.strictSide&&(v?a.top-(c.bottom-c.top)-g.ys.bottom)&&v==s.bottom-a.bottom>a.top-s.top)v=!v;let b=(v?a.top-s.top:s.bottom-a.bottom)-d;if(bw&&t.topy)y=v?t.top-p-2-d:t.bottom+d+2;if(this.position=="absolute"){h.style.top=y-t.parent.top+"px";h.style.left=w-t.parent.left+"px"}else{h.style.top=y+"px";h.style.left=w+"px"}if(f)f.style.left=`${a.left+(m?g.x:-g.x)-(w+14-7)}px`;if(l.overlap!==true)o.push({left:w,top:y,right:S,bottom:y+p});h.classList.toggle("cm-tooltip-above",v);h.classList.toggle("cm-tooltip-below",!v);if(l.positioned)l.positioned(t.space)}}maybeMeasure(){if(this.manager.tooltips.length){if(this.view.inView)this.view.requestMeasure(this.measureReq);if(this.inView!=this.view.inView){this.inView=this.view.inView;if(!this.inView)for(let t of this.manager.tooltipViews)t.dom.style.top=_o}}}},{eventHandlers:{scroll(){this.maybeMeasure()}}});const tn=Os.baseTheme({".cm-tooltip":{zIndex:100,boxSizing:"border-box"},"&light .cm-tooltip":{border:"1px solid #bbb",backgroundColor:"#f5f5f5"},"&light .cm-tooltip-section:not(:first-child)":{borderTop:"1px solid #bbb"},"&dark .cm-tooltip":{backgroundColor:"#333338",color:"white"},".cm-tooltip-arrow":{height:`${7}px`,width:`${7*2}px`,position:"absolute",zIndex:-1,overflow:"hidden","&:before, &:after":{content:"''",position:"absolute",width:0,height:0,borderLeft:`${7}px solid transparent`,borderRight:`${7}px solid transparent`},".cm-tooltip-above &":{bottom:`-${7}px`,"&:before":{borderTop:`${7}px solid #bbb`},"&:after":{borderTop:`${7}px solid #f5f5f5`,bottom:"1px"}},".cm-tooltip-below &":{top:`-${7}px`,"&:before":{borderBottom:`${7}px solid #bbb`},"&:after":{borderBottom:`${7}px solid #f5f5f5`,top:"1px"}}},"&dark .cm-tooltip .cm-tooltip-arrow":{"&:before":{borderTopColor:"#333338",borderBottomColor:"#333338"},"&:after":{borderTopColor:"transparent",borderBottomColor:"transparent"}}});const en={x:0,y:0};const sn=s.Facet.define({enables:[Zo,tn]});const on=s.Facet.define();class nn{constructor(t){this.view=t;this.mounted=false;this.dom=document.createElement("div");this.dom.classList.add("cm-tooltip-hover");this.manager=new Uo(t,on,(t=>this.createHostedView(t)))}static create(t){return new nn(t)}createHostedView(t){let e=t.create(this.view);e.dom.classList.add("cm-tooltip-section");this.dom.appendChild(e.dom);if(this.mounted&&e.mount)e.mount(this.view);return e}mount(t){for(let e of this.manager.tooltipViews){if(e.mount)e.mount(t)}this.mounted=true}positioned(t){for(let e of this.manager.tooltipViews){if(e.positioned)e.positioned(t)}}update(t){this.manager.update(t)}destroy(){var t;for(let e of this.manager.tooltipViews)(t=e.destroy)===null||t===void 0?void 0:t.call(e)}}const rn=sn.compute([on],(t=>{let e=t.facet(on).filter((t=>t));if(e.length===0)return null;return{pos:Math.min(...e.map((t=>t.pos))),end:Math.max(...e.filter((t=>t.end!=null)).map((t=>t.end))),create:nn.create,above:e[0].above,arrow:e.some((t=>t.arrow))}}));class ln{constructor(t,e,i,s,o){this.view=t;this.source=e;this.field=i;this.setHover=s;this.hoverTime=o;this.hoverTimeout=-1;this.restartTimeout=-1;this.pending=null;this.lastMove={x:0,y:0,target:t.dom,time:0};this.checkHover=this.checkHover.bind(this);t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this));t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){if(this.pending){this.pending=null;clearTimeout(this.restartTimeout);this.restartTimeout=setTimeout((()=>this.startHover()),20)}}get active(){return this.view.state.field(this.field)}checkHover(){this.hoverTimeout=-1;if(this.active)return;let t=Date.now()-this.lastMove.time;if(ti.bottom||t.xi.right+this.view.defaultCharacterWidth)return;let s=this.view.bidiSpans(this.view.state.doc.lineAt(e)).find((t=>t.from<=e&&t.to>=e));let o=s&&s.dir==le.RTL?-1:1;let n=this.source(this.view,e,t.x{if(this.pending==t){this.pending=null;if(e)this.view.dispatch({effects:this.setHover.of(e)})}}),(t=>_t(this.view.state,t,"hover tooltip")))}else if(n){this.view.dispatch({effects:this.setHover.of(n)})}}mousemove(t){var e;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()};if(this.hoverTimeout<0)this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime);let i=this.active;if(i&&!hn(this.lastMove.target)||this.pending){let{pos:s}=i||this.pending,o=(e=i===null||i===void 0?void 0:i.end)!==null&&e!==void 0?e:s;if(s==o?this.view.posAtCoords(this.lastMove)!=s:!an(this.view,s,o,t.clientX,t.clientY,6)){this.view.dispatch({effects:this.setHover.of(null)});this.pending=null}}}mouseleave(t){clearTimeout(this.hoverTimeout);this.hoverTimeout=-1;if(this.active&&!hn(t.relatedTarget))this.view.dispatch({effects:this.setHover.of(null)})}destroy(){clearTimeout(this.hoverTimeout);this.view.dom.removeEventListener("mouseleave",this.mouseleave);this.view.dom.removeEventListener("mousemove",this.mousemove)}}function hn(t){for(let e=t;e;e=e.parentNode)if(e.nodeType==1&&e.classList.contains("cm-tooltip"))return true;return false}function an(t,e,i,s,o,n){let r=document.createRange();let l=t.domAtPos(e),h=t.domAtPos(i);r.setEnd(h.node,h.offset);r.setStart(l.node,l.offset);let a=r.getClientRects();r.detach();for(let c=0;con.from(t)});return[o,Qt.define((s=>new ln(s,t,o,i,e.hoverTime||300))),rn]}function fn(t,e){let i=t.plugin(Zo);if(!i)return null;let s=i.manager.tooltips.indexOf(e);return s<0?null:i.manager.tooltipViews[s]}function dn(t){return t.facet(on).some((t=>t))}const un=s.StateEffect.define();const pn=un.of(null);function gn(t){var e;(e=t.plugin(Zo))===null||e===void 0?void 0:e.maybeMeasure()}const mn=s.Facet.define({combine(t){let e,i;for(let s of t){e=e||s.topContainer;i=i||s.bottomContainer}return{topContainer:e,bottomContainer:i}}});function wn(t){return t?[mn.of(t)]:[]}function vn(t,e){let i=t.plugin(bn);let s=i?i.specs.indexOf(e):-1;return s>-1?i.panels[s]:null}const bn=Qt.fromClass(class{constructor(t){this.input=t.state.facet(xn);this.specs=this.input.filter((t=>t));this.panels=this.specs.map((e=>e(t)));let e=t.state.facet(mn);this.top=new yn(t,true,e.topContainer);this.bottom=new yn(t,false,e.bottomContainer);this.top.sync(this.panels.filter((t=>t.top)));this.bottom.sync(this.panels.filter((t=>!t.top)));for(let i of this.panels){i.dom.classList.add("cm-panel");if(i.mount)i.mount()}}update(t){let e=t.state.facet(mn);if(this.top.container!=e.topContainer){this.top.sync([]);this.top=new yn(t.view,true,e.topContainer)}if(this.bottom.container!=e.bottomContainer){this.bottom.sync([]);this.bottom=new yn(t.view,false,e.bottomContainer)}this.top.syncClasses();this.bottom.syncClasses();let i=t.state.facet(xn);if(i!=this.input){let e=i.filter((t=>t));let s=[],o=[],n=[],r=[];for(let i of e){let e=this.specs.indexOf(i),l;if(e<0){l=i(t.view);r.push(l)}else{l=this.panels[e];if(l.update)l.update(t)}s.push(l);(l.top?o:n).push(l)}this.specs=e;this.panels=s;this.top.sync(o);this.bottom.sync(n);for(let t of r){t.dom.classList.add("cm-panel");if(t.mount)t.mount()}}else{for(let e of this.panels)if(e.update)e.update(t)}}destroy(){this.top.sync([]);this.bottom.sync([])}},{provide:t=>Os.scrollMargins.of((e=>{let i=e.plugin(t);return i&&{top:i.top.scrollMargin(),bottom:i.bottom.scrollMargin()}}))});class yn{constructor(t,e,i){this.view=t;this.top=e;this.container=i;this.dom=undefined;this.classes="";this.panels=[];this.syncClasses()}sync(t){for(let e of this.panels)if(e.destroy&&t.indexOf(e)<0)e.destroy();this.panels=t;this.syncDOM()}syncDOM(){if(this.panels.length==0){if(this.dom){this.dom.remove();this.dom=undefined}return}if(!this.dom){this.dom=document.createElement("div");this.dom.className=this.top?"cm-panels cm-panels-top":"cm-panels cm-panels-bottom";this.dom.style[this.top?"top":"bottom"]="0";let t=this.container||this.view.dom;t.insertBefore(this.dom,this.top?t.firstChild:null)}let t=this.dom.firstChild;for(let e of this.panels){if(e.dom.parentNode==this.dom){while(t!=e.dom)t=Sn(t);t=t.nextSibling}else{this.dom.insertBefore(e.dom,t)}}while(t)t=Sn(t)}scrollMargin(){return!this.dom||this.container?0:Math.max(0,this.top?this.dom.getBoundingClientRect().bottom-Math.max(0,this.view.scrollDOM.getBoundingClientRect().top):Math.min(innerHeight,this.view.scrollDOM.getBoundingClientRect().bottom)-this.dom.getBoundingClientRect().top)}syncClasses(){if(!this.container||this.classes==this.view.themeClasses)return;for(let t of this.classes.split(" "))if(t)this.container.classList.remove(t);for(let t of(this.classes=this.view.themeClasses).split(" "))if(t)this.container.classList.add(t)}}function Sn(t){let e=t.nextSibling;t.remove();return e}const xn=s.Facet.define({enables:bn});class Mn extends s.RangeValue{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return false}destroy(t){}}Mn.prototype.elementClass="";Mn.prototype.toDOM=undefined;Mn.prototype.mapMode=s.MapMode.TrackBefore;Mn.prototype.startSide=Mn.prototype.endSide=-1;Mn.prototype.point=true;const kn=s.Facet.define();const Cn={class:"",renderEmptyElements:false,elementStyle:"",markers:()=>s.RangeSet.empty,lineMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}};const An=s.Facet.define();function Dn(t){return[On(),An.of(Object.assign(Object.assign({},Cn),t))]}const Tn=s.Facet.define({combine:t=>t.some((t=>t))});function On(t){let e=[En];if(t&&t.fixed===false)e.push(Tn.of(true));return e}const En=Qt.fromClass(class{constructor(t){this.view=t;this.prevViewport=t.viewport;this.dom=document.createElement("div");this.dom.className="cm-gutters";this.dom.setAttribute("aria-hidden","true");this.dom.style.minHeight=this.view.contentHeight+"px";this.gutters=t.state.facet(An).map((e=>new Hn(t,e)));for(let e of this.gutters)this.dom.appendChild(e.dom);this.fixed=!t.state.facet(Tn);if(this.fixed){this.dom.style.position="sticky"}this.syncGutters(false);t.scrollDOM.insertBefore(this.dom,t.contentDOM)}update(t){if(this.updateGutters(t)){let e=this.prevViewport,i=t.view.viewport;let s=Math.min(e.to,i.to)-Math.max(e.from,i.from);this.syncGutters(s<(i.to-i.from)*.8)}if(t.geometryChanged)this.dom.style.minHeight=this.view.contentHeight+"px";if(this.view.state.facet(Tn)!=!this.fixed){this.fixed=!this.fixed;this.dom.style.position=this.fixed?"sticky":""}this.prevViewport=t.view.viewport}syncGutters(t){let e=this.dom.nextSibling;if(t)this.dom.remove();let i=s.RangeSet.iter(this.view.state.facet(kn),this.view.viewport.from);let o=[];let n=this.gutters.map((t=>new Ln(t,this.view.viewport,-this.view.documentPadding.top)));for(let s of this.view.viewportLineBlocks){let t;if(Array.isArray(s.type)){for(let e of s.type)if(e.type==Mt.Text){t=e;break}}else{t=s.type==Mt.Text?s:undefined}if(!t)continue;if(o.length)o=[];Bn(i,o,s.from);for(let e of n)e.line(this.view,t,o)}for(let s of n)s.finish();if(t)this.view.scrollDOM.insertBefore(this.dom,e)}updateGutters(t){let e=t.startState.facet(An),i=t.state.facet(An);let o=t.docChanged||t.heightChanged||t.viewportChanged||!s.RangeSet.eq(t.startState.facet(kn),t.state.facet(kn),t.view.viewport.from,t.view.viewport.to);if(e==i){for(let e of this.gutters)if(e.update(t))o=true}else{o=true;let s=[];for(let o of i){let i=e.indexOf(o);if(i<0){s.push(new Hn(this.view,o))}else{this.gutters[i].update(t);s.push(this.gutters[i])}}for(let t of this.gutters){t.dom.remove();if(s.indexOf(t)<0)t.destroy()}for(let t of s)this.dom.appendChild(t.dom);this.gutters=s}return o}destroy(){for(let t of this.gutters)t.destroy();this.dom.remove()}},{provide:t=>Os.scrollMargins.of((e=>{let i=e.plugin(t);if(!i||i.gutters.length==0||!i.fixed)return null;return e.textDirection==le.LTR?{left:i.dom.offsetWidth}:{right:i.dom.offsetWidth}}))});function Rn(t){return Array.isArray(t)?t:[t]}function Bn(t,e,i){while(t.value&&t.from<=i){if(t.from==i)e.push(t.value);t.next()}}class Ln{constructor(t,e,i){this.gutter=t;this.height=i;this.i=0;this.cursor=s.RangeSet.iter(t.markers,e.from)}line(t,e,i){let s=[];Bn(this.cursor,s,e.from);if(i.length)s=s.concat(i);let o=this.gutter.config.lineMarker(t,e,s);if(o)s.unshift(o);let n=this.gutter;if(s.length==0&&!n.config.renderEmptyElements)return;let r=e.top-this.height;if(this.i==n.elements.length){let i=new Pn(t,e.height,r,s);n.elements.push(i);n.dom.appendChild(i.dom)}else{n.elements[this.i].update(t,e.height,r,s)}this.height=e.bottom;this.i++}finish(){let t=this.gutter;while(t.elements.length>this.i){let e=t.elements.pop();t.dom.removeChild(e.dom);e.destroy()}}}class Hn{constructor(t,e){this.view=t;this.config=e;this.elements=[];this.spacer=null;this.dom=document.createElement("div");this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let i in e.domEventHandlers){this.dom.addEventListener(i,(s=>{let o=s.target,n;if(o!=this.dom&&this.dom.contains(o)){while(o.parentNode!=this.dom)o=o.parentNode;let t=o.getBoundingClientRect();n=(t.top+t.bottom)/2}else{n=s.clientY}let r=t.lineBlockAtHeight(n-t.documentTop);if(e.domEventHandlers[i](t,r,s))s.preventDefault()}))}this.markers=Rn(e.markers(t));if(e.initialSpacer){this.spacer=new Pn(t,0,0,[e.initialSpacer(t)]);this.dom.appendChild(this.spacer.dom);this.spacer.dom.style.cssText+="visibility: hidden; pointer-events: none"}}update(t){let e=this.markers;this.markers=Rn(this.config.markers(t.view));if(this.spacer&&this.config.updateSpacer){let e=this.config.updateSpacer(this.spacer.markers[0],t);if(e!=this.spacer.markers[0])this.spacer.update(t.view,0,0,[e])}let i=t.view.viewport;return!s.RangeSet.eq(this.markers,e,i.from,i.to)||(this.config.lineMarkerChange?this.config.lineMarkerChange(t):false)}destroy(){for(let t of this.elements)t.destroy()}}class Pn{constructor(t,e,i,s){this.height=-1;this.above=0;this.markers=[];this.dom=document.createElement("div");this.dom.className="cm-gutterElement";this.update(t,e,i,s)}update(t,e,i,s){if(this.height!=e)this.dom.style.height=(this.height=e)+"px";if(this.above!=i)this.dom.style.marginTop=(this.above=i)?i+"px":"";if(!Vn(this.markers,s))this.setMarkers(t,s)}setMarkers(t,e){let i="cm-gutterElement",s=this.dom.firstChild;for(let o=0,n=0;;){let r=n,l=ot(e,i,s)||o(e,i,s):o}return i}})}});class Fn extends Mn{constructor(t){super();this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function zn(t,e){return t.state.facet(Wn).formatNumber(e,t.state)}const In=An.compute([Wn],(t=>({class:"cm-lineNumbers",renderEmptyElements:false,markers(t){return t.state.facet(Nn)},lineMarker(t,e,i){if(i.some((t=>t.toDOM)))return null;return new Fn(zn(t,t.state.doc.lineAt(e.from).number))},lineMarkerChange:t=>t.startState.facet(Wn)!=t.state.facet(Wn),initialSpacer(t){return new Fn(zn(t,qn(t.state.doc.lines)))},updateSpacer(t,e){let i=zn(e.view,qn(e.view.state.doc.lines));return i==t.number?t:new Fn(i)},domEventHandlers:t.facet(Wn).domEventHandlers})));function Kn(t={}){return[Wn.of(t),On(),In]}function qn(t){let e=9;while(e{let e=[],i=-1;for(let s of t.selection.ranges){let o=t.doc.lineAt(s.head).from;if(o>i){i=o;e.push(Gn.range(o))}}return s.RangeSet.of(e)}));function $n(){return jn}const _n=new Map;function Un(t){let e=_n.get(t);if(!e)_n.set(t,e=kt.mark({attributes:t==="\t"?{class:"cm-highlightTab"}:{class:"cm-highlightSpace","data-display":t.replace(/ /g,"·")}}));return e}function Xn(t){return Qt.define((e=>({decorations:t.createDeco(e),update(e){this.decorations=t.updateDeco(e,this.decorations)}})),{decorations:t=>t.decorations})}const Yn=Xn(new wo({regexp:/\t| +/g,decoration:t=>Un(t[0]),boundary:/\S/}));function Qn(){return Yn}const Jn=Xn(new wo({regexp:/\s+$/g,decoration:kt.mark({class:"cm-trailingSpace"}),boundary:/\S/}));function Zn(){return Jn}const tr={HeightMap:Ki,HeightOracle:Ni,MeasuredHeights:Wi,QueryType:zi,ChangedRange:ne,computeOrder:be,moveVisually:xe}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/5041.cdc120bda0a0dec4cfc2.js b/bootcamp/share/jupyter/lab/static/5041.cdc120bda0a0dec4cfc2.js new file mode 100644 index 0000000..6868abd --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/5041.cdc120bda0a0dec4cfc2.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5041],{95041:(e,t,n)=>{n.r(t);n.d(t,{d:()=>g});function r(e){var t={},n=e.split(" ");for(var r=0;r!?|\/]/;var m;function h(e,t){var n=e.next();if(c[n]){var r=c[n](e,t);if(r!==false)return r}if(n=='"'||n=="'"||n=="`"){t.tokenize=y(n);return t.tokenize(e,t)}if(/[\[\]{}\(\),;\:\.]/.test(n)){m=n;return null}if(/\d/.test(n)){e.eatWhile(/[\w\.]/);return"number"}if(n=="/"){if(e.eat("+")){t.tokenize=k;return k(e,t)}if(e.eat("*")){t.tokenize=b;return b(e,t)}if(e.eat("/")){e.skipToEnd();return"comment"}}if(d.test(n)){e.eatWhile(d);return"operator"}e.eatWhile(/[\w\$_\xa1-\uffff]/);var i=e.current();if(l.propertyIsEnumerable(i)){if(s.propertyIsEnumerable(i))m="newstatement";return"keyword"}if(u.propertyIsEnumerable(i)){if(s.propertyIsEnumerable(i))m="newstatement";return"builtin"}if(f.propertyIsEnumerable(i))return"atom";return"variable"}function y(e){return function(t,n){var r=false,i,a=false;while((i=t.next())!=null){if(i==e&&!r){a=true;break}r=!r&&i=="\\"}if(a||!(r||p))n.tokenize=null;return"string"}}function b(e,t){var n=false,r;while(r=e.next()){if(r=="/"&&n){t.tokenize=null;break}n=r=="*"}return"comment"}function k(e,t){var n=false,r;while(r=e.next()){if(r=="/"&&n){t.tokenize=null;break}n=r=="+"}return"comment"}function v(e,t,n,r,i){this.indented=e;this.column=t;this.type=n;this.align=r;this.prev=i}function w(e,t,n){var r=e.indented;if(e.context&&e.context.type=="statement")r=e.context.indented;return e.context=new v(r,t,n,null,e.context)}function _(e){var t=e.context.type;if(t==")"||t=="]"||t=="}")e.indented=e.context.indented;return e.context=e.context.prev}const g={name:"d",startState:function(e){return{tokenize:null,context:new v(-e,0,"top",false),indented:0,startOfLine:true}},token:function(e,t){var n=t.context;if(e.sol()){if(n.align==null)n.align=false;t.indented=e.indentation();t.startOfLine=true}if(e.eatSpace())return null;m=null;var r=(t.tokenize||h)(e,t);if(r=="comment"||r=="meta")return r;if(n.align==null)n.align=true;if((m==";"||m==":"||m==",")&&n.type=="statement")_(t);else if(m=="{")w(t,e.column(),"}");else if(m=="[")w(t,e.column(),"]");else if(m=="(")w(t,e.column(),")");else if(m=="}"){while(n.type=="statement")n=_(t);if(n.type=="}")n=_(t);while(n.type=="statement")n=_(t)}else if(m==n.type)_(t);else if((n.type=="}"||n.type=="top")&&m!=";"||n.type=="statement"&&m=="newstatement")w(t,e.column(),"statement");t.startOfLine=false;return r},indent:function(e,t,n){if(e.tokenize!=h&&e.tokenize!=null)return null;var r=e.context,i=t&&t.charAt(0);if(r.type=="statement"&&i=="}")r=r.prev;var a=i==r.type;if(r.type=="statement")return r.indented+(i=="{"?0:o||n.unit);else if(r.align)return r.column+(a?0:1);else return r.indented+(a?0:n.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/5157.9c77dc27a251d4135876.js b/bootcamp/share/jupyter/lab/static/5157.9c77dc27a251d4135876.js new file mode 100644 index 0000000..583811c --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/5157.9c77dc27a251d4135876.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5157],{45157:(O,Q,e)=>{e.r(Q);e.d(Q,{cpp:()=>R,cppLanguage:()=>m});var X=e(11705);var $=e(6016);const i=1,a=2,P=3;const r=82,Y=76,s=117,t=85,U=97,n=122,l=65,x=90,c=95,S=48,o=34,w=40,u=41,V=32,T=62;const W=new X.Jq((O=>{if(O.next==Y||O.next==t){O.advance()}else if(O.next==s){O.advance();if(O.next==S+8)O.advance()}if(O.next!=r)return;O.advance();if(O.next!=o)return;O.advance();let Q="";while(O.next!=w){if(O.next==V||O.next<=13||O.next==u)return;Q+=String.fromCharCode(O.next);O.advance()}O.advance();for(;;){if(O.next<0)return O.acceptToken(i);if(O.next==u){let e=true;for(let X=0;e&&X{if(O.next==T){if(O.peek(1)==T)O.acceptToken(a,1)}else{let Q=false,e=0;for(;;e++){if(O.next>=l&&O.next<=x)Q=true;else if(O.next>=U&&O.next<=n)return;else if(O.next!=c&&!(O.next>=S&&O.next<=S+9))break;O.advance()}if(Q&&e>1)O.acceptToken(P)}}),{extend:true});const g=(0,$.styleTags)({"typedef struct union enum class typename decltype auto template operator friend noexcept namespace using requires concept import export module __attribute__ __declspec __based":$.tags.definitionKeyword,"extern MsCallModifier MsPointerModifier extern static register thread_local inline const volatile restrict _Atomic mutable constexpr constinit consteval virtual explicit VirtualSpecifier Access":$.tags.modifier,"if else switch for while do case default return break continue goto throw try catch":$.tags.controlKeyword,"co_return co_yield co_await":$.tags.controlKeyword,"new sizeof delete static_assert":$.tags.operatorKeyword,"NULL nullptr":$.tags["null"],this:$.tags.self,"True False":$.tags.bool,"TypeSize PrimitiveType":$.tags.standard($.tags.typeName),TypeIdentifier:$.tags.typeName,FieldIdentifier:$.tags.propertyName,"CallExpression/FieldExpression/FieldIdentifier":$.tags["function"]($.tags.propertyName),"ModuleName/Identifier":$.tags.namespace,PartitionName:$.tags.labelName,StatementIdentifier:$.tags.labelName,"Identifier DestructorName":$.tags.variableName,"CallExpression/Identifier":$.tags["function"]($.tags.variableName),"CallExpression/ScopedIdentifier/Identifier":$.tags["function"]($.tags.variableName),"FunctionDeclarator/Identifier FunctionDeclarator/DestructorName":$.tags["function"]($.tags.definition($.tags.variableName)),NamespaceIdentifier:$.tags.namespace,OperatorName:$.tags.operator,ArithOp:$.tags.arithmeticOperator,LogicOp:$.tags.logicOperator,BitOp:$.tags.bitwiseOperator,CompareOp:$.tags.compareOperator,AssignOp:$.tags.definitionOperator,UpdateOp:$.tags.updateOperator,LineComment:$.tags.lineComment,BlockComment:$.tags.blockComment,Number:$.tags.number,String:$.tags.string,"RawString SystemLibString":$.tags.special($.tags.string),CharLiteral:$.tags.character,EscapeSequence:$.tags.escape,"UserDefinedLiteral/Identifier":$.tags.literal,PreProcArg:$.tags.meta,"PreprocDirectiveName #include #ifdef #ifndef #if #define #else #endif #elif":$.tags.processingInstruction,MacroName:$.tags.special($.tags.name),"( )":$.tags.paren,"[ ]":$.tags.squareBracket,"{ }":$.tags.brace,"< >":$.tags.angleBracket,". ->":$.tags.derefOperator,", ;":$.tags.separator});const q={__proto__:null,bool:34,char:34,int:34,float:34,double:34,void:34,size_t:34,ssize_t:34,intptr_t:34,uintptr_t:34,charptr_t:34,int8_t:34,int16_t:34,int32_t:34,int64_t:34,uint8_t:34,uint16_t:34,uint32_t:34,uint64_t:34,char8_t:34,char16_t:34,char32_t:34,char64_t:34,const:68,volatile:70,restrict:72,_Atomic:74,mutable:76,constexpr:78,constinit:80,consteval:82,struct:86,__declspec:90,final:148,override:148,public:152,private:152,protected:152,virtual:154,extern:160,static:162,register:164,inline:166,thread_local:168,__attribute__:172,__based:178,__restrict:180,__uptr:180,__sptr:180,_unaligned:180,__unaligned:180,noexcept:194,requires:198,TRUE:786,true:786,FALSE:788,false:788,typename:218,class:220,template:234,throw:248,__cdecl:256,__clrcall:256,__stdcall:256,__fastcall:256,__thiscall:256,__vectorcall:256,try:260,catch:264,export:284,import:288,case:298,default:300,if:310,else:316,switch:320,do:324,while:326,for:332,return:336,break:340,continue:344,goto:348,co_return:352,co_yield:356,using:364,typedef:368,namespace:382,new:400,delete:402,co_await:404,concept:408,enum:412,static_assert:416,friend:424,union:426,explicit:432,operator:446,module:458,signed:520,unsigned:520,long:520,short:520,decltype:530,auto:532,sizeof:568,NULL:574,nullptr:588,this:590};const Z={__proto__:null,"<":131};const p={__proto__:null,">":135};const d={__proto__:null,operator:390,new:578,delete:584};const b=X.WQ.deserialize({version:14,states:"$;fQ!QQVOOP'gOUOOO(XOWO'#CdO,RQUO'#CgO,]QUO'#FkO-sQbO'#CwO.UQUO'#CwO0TQUO'#K[O0[QUO'#CvO0gOpO'#DvO0oQ!dO'#D]OOQR'#JP'#JPO5XQVO'#GVO5fQUO'#JWOOQQ'#JW'#JWO8zQUO'#KnO{QVO'#E^O?]QUO'#E^OOQQ'#Ed'#EdOOQQ'#Ee'#EeO?bQVO'#EfO@XQVO'#EiOBUQUO'#FPOBvQUO'#FiOOQR'#Fk'#FkOB{QUO'#FkOOQR'#LR'#LROOQR'#LQ'#LQOETQVO'#KROFxQUO'#LWOGVQUO'#KrOGkQUO'#LWOH]QUO'#LYOOQR'#HV'#HVOOQR'#HW'#HWOOQR'#HX'#HXOOQR'#K}'#K}OOQR'#J`'#J`Q!QQVOOOHkQVO'#F^OIWQUO'#EhOI_QUOOOKZQVO'#HhOKkQUO'#HhONVQUO'#KrONaQUO'#KrOOQQ'#Kr'#KrO!!_QUO'#KrOOQQ'#Jr'#JrO!!lQUO'#HyOOQQ'#K['#K[O!&^QUO'#K[O!&zQUO'#KRO!(zQVO'#I^O!(zQVO'#IaOCQQUO'#KROOQQ'#Iq'#IqOOQQ'#KR'#KRO!,}QUO'#K[OOQR'#KZ'#KZO!-UQUO'#DYO!/mQUO'#KoOOQQ'#Ko'#KoO!/tQUO'#KoO!/{QUO'#ETO!0QQUO'#EWO!0VQUO'#FRO8zQUO'#FPO!QQVO'#F_O!0[Q#vO'#FaO!0gQUO'#FlO!0oQUO'#FqO!0tQVO'#FsO!0oQUO'#FvO!3sQUO'#FwO!3xQVO'#FyO!4SQUO'#F{O!4XQUO'#F}O!4^QUO'#GPO!4cQVO'#GRO!(zQVO'#GTO!4jQUO'#GqO!4xQUO'#GZO!(zQVO'#FfO!6VQUO'#FfO!6[QVO'#GaO!6cQUO'#GbO!6nQUO'#GoO!6sQUO'#GsO!6xQUO'#G{O!7jQ&lO'#HjO!:mQUO'#GvO!:}QUO'#HYO!;YQUO'#H[O!;bQUO'#DWO!;bQUO'#HvO!;bQUO'#HwO!;yQUO'#HxO!<[QUO'#H}O!=PQUO'#IOO!>uQVO'#IcO!(zQVO'#IeO!?PQUO'#IhO!?WQVO'#IkP!@}{,UO'#CbP!6n{,UO'#CbP!AY{7[O'#CbP!6n{,UO'#CbP!A_{,UO'#CbP!AjOSO'#I{POOO)CEo)CEoOOOO'#I}'#I}O!AtOWO,59OOOQR,59O,59OO!(zQVO,59UOOQQ,59W,59WO!(zQVO,5;ROOQR,5rOOQR'#IY'#IYOOQR'#IZ'#IZOOQR'#I['#I[OOQR'#I]'#I]O!(zQVO,5>sO!(zQVO,5>sO!(zQVO,5>sO!(zQVO,5>sO!(zQVO,5>sO!(zQVO,5>sO!(zQVO,5>sO!(zQVO,5>sO!(zQVO,5>sO!(zQVO,5>sO!DOQVO,5>{OOQQ,5?X,5?XO!EqQVO'#ChO!IjQUO'#CyOOQQ,59c,59cOOQQ,59b,59bOOQQ,5=O,5=OO!IwQ&lO,5=nO!?PQUO,5?SO!LkQVO,5?VO!LrQbO,59cO!L}QVO'#FYOOQQ,5?Q,5?QO!M_QVO,59VO!MfO`O,5:bO!MkQbO'#D^O!M|QbO'#K_O!N[QbO,59wO!NdQbO'#CwO!NuQUO'#CwO!NzQUO'#K[O# UQUO'#CvOOQR-E<}-E<}O# aQUO,5ApO# hQVO'#EfO@XQVO'#EiOBUQUO,5;kOOQR,5m,5>mO#3gQUO'#CgO#4]QUO,5>qO#6OQUO'#IfOOQR'#JO'#JOO#6WQUO,5:xO#6tQUO,5:xO#7eQUO,5:xO#8YQUO'#CtO!0QQUO'#ClOOQQ'#JX'#JXO#6tQUO,5:xO#8bQUO,5;QO!4xQUO'#C}O#9kQUO,5;QO#9pQUO,5>RO#:|QUO'#C}O#;dQUO,5>|O#;iQUO'#KxO#}QUO'#L]O#?UQUO,5>VO#?ZQbO'#CwO#?fQUO'#GdO#?kQUO'#E^O#@[QUO,5;kO#@sQUO'#LOO#@{QUO,5;rOKkQUO'#HgOBUQUO'#HhO#AQQUO'#KrO!6nQUO'#HkO#AxQUO'#CtO!0tQVO,5QO$(WQUO'#E[O$(eQUO,5>SOOQQ,5>T,5>TO$,RQVO'#C{OOQQ-E=p-E=pOOQQ,5>e,5>eOOQQ,59`,59`O$,]QUO,5>xO$.]QUO,5>{O!6nQUO,59tO$.pQUO,5;qO$.}QUO,5<|O!0QQUO,5:oOOQQ,5:r,5:rO$/YQUO,5;mO$/_QUO'#KnOBUQUO,5;kOOQR,5;y,5;yO$0OQUO'#FcO$0^QUO'#FcO$0cQUO,5;{O$3|QVO'#FnO!0tQVO,5eQUO,5pQUO,5=]O$>uQUO,5=]O!4xQUO,5}QUO,5uQUO,5<|O$DXQUO,5<|O$DdQUO,5=ZO!(zQVO,5=_O!(zQVO,5=gO#NeQUO,5=nOOQQ,5>U,5>UO$FiQUO,5>UO$FsQUO,5>UO$FxQUO,5>UO$F}QUO,5>UO!6nQUO,5>UO$H{QUO'#K[O$ISQUO,5=pO$I_QUO,5=bOKkQUO,5=pO$JXQUO,5=tOOQR,5=t,5=tO$JaQUO,5=tO$LlQVO'#H]OOQQ,5=v,5=vO!;]QUO,5=vO%#gQUO'#KkO%#nQUO'#K]O%$SQUO'#KkO%$^QUO'#DyO%$oQUO'#D|O%'lQUO'#K]OOQQ'#K]'#K]O%)_QUO'#K]O%#nQUO'#K]O%)dQUO'#K]OOQQ,59r,59rOOQQ,5>b,5>bOOQQ,5>c,5>cO%)lQUO'#H{O%)tQUO,5>dOOQQ,5>d,5>dO%-`QUO,5>dO%-kQUO,5>iO%1VQVO,5>jO%1^QUO,5>}O# hQVO'#EfO%4dQUO,5>}OOQQ,5>},5>}O%5TQUO,5?PO%7XQUO,5?SO!<[QUO,5?SO%9TQUO,5?VO%zQUO1G0mOOQQ1G0m1G0mO%@WQUO'#CoO%BgQbO'#CwO%BrQUO'#CrO%BwQUO'#CrO%B|QUO1G.tO#AxQUO'#CqOOQQ1G.t1G.tO%EPQUO1G4^O%FVQUO1G4_O%GxQUO1G4_O%IkQUO1G4_O%K^QUO1G4_O%MPQUO1G4_O%NrQUO1G4_O&!eQUO1G4_O&$WQUO1G4_O&%yQUO1G4_O&'lQUO1G4_O&)_QUO1G4_O&+QQUO'#KQO&,ZQUO'#KQO&,cQUO,59SOOQQ,5=Q,5=QO&.kQUO,5=QO&.uQUO,5=QO&.zQUO,5=QO&/PQUO,5=QO!6nQUO,5=QO#NeQUO1G3YO&/ZQUO1G4nO!<[QUO1G4nO&1VQUO1G4qO&2xQVO1G4qOOQQ1G.}1G.}OOQQ1G.|1G.|OOQQ1G2j1G2jO!IwQ&lO1G3YO&3PQUO'#LPO@XQVO'#EiO&4YQUO'#F]OOQQ'#Jb'#JbO&4_QUO'#FZO&4jQUO'#LPO&4rQUO,5;tO&4wQUO1G.qOOQQ1G.q1G.qOOQR1G/|1G/|O&6jQ!dO'#JQO&6oQbO,59xO&9QQ!eO'#D`O&9XQ!dO'#JSO&9^QbO,5@yO&9^QbO,5@yOOQR1G/c1G/cO&9iQbO1G/cO&9nQ&lO'#GfO&:lQbO,59cOOQR1G7[1G7[O#@[QUO1G1VO&:wQUO1G1^OBUQUO1G1VO&=YQUO'#CyO#*wQbO,59cO&@{QUO1G6tOOQR-E<|-E<|O&B_QUO1G0dO#6WQUO1G0dOOQQ-E=V-E=VO#6tQUO1G0dOOQQ1G0l1G0lO&CSQUO,59iOOQQ1G3m1G3mO&CjQUO,59iO&DQQUO,59iO!M_QVO1G4hO!(zQVO'#JZO&DlQUO,5AdOOQQ1G0o1G0oO!(zQVO1G0oO!6nQUO'#JoO&DtQUO,5AwOOQQ1G3q1G3qOOQR1G1V1G1VO&J]QVO'#FOO!M_QVO,5;sOOQQ,5;s,5;sOBUQUO'#JdO&JmQUO,5AjO&JuQVO'#E[OOQR1G1^1G1^O&MdQUO'#L]OOQR1G1o1G1oOOQR-E=g-E=gOOQR1G7^1G7^O#DhQUO1G7^OGVQUO1G7^O#DhQUO1G7`OOQR1G7`1G7`O&MlQUO'#HOO&MtQUO'#LXOOQQ,5=i,5=iO&NSQUO,5=kO&NXQUO,5=lOOQR1G7a1G7aO#EfQVO1G7aO&N^QUO1G7aO' dQVO,5=lOOQR1G1U1G1UO$.vQUO'#E]O'!YQUO'#E]OOQQ'#Kz'#KzO'!sQUO'#KyO'#OQUO,5;UO'#WQUO'#ElO'#kQUO'#ElO'$OQUO'#EtOOQQ'#J]'#J]O'$TQUO,5;cO'$zQUO,5;cO'%uQUO,5;dO'&{QVO,5;dOOQQ,5;d,5;dO''VQVO,5;dO'&{QVO,5;dO''^QUO,5;bO'(ZQUO,5;eO'(fQUO'#KqO'(nQUO,5:vO'(sQUO,5;fOOQQ1G0n1G0nOOQQ'#J^'#J^O''^QUO,5;bO!4xQUO'#E}OOQQ,5;b,5;bO')nQUO'#E`O'+hQUO'#E{OHrQUO1G0nO'+mQUO'#EbOOQQ'#JY'#JYO'-VQUO'#KsOOQQ'#Ks'#KsO'.PQUO1G0eO'.wQUO1G3lO'/}QVO1G3lOOQQ1G3l1G3lO'0XQVO1G3lO'0`QUO'#L`O'1lQUO'#KYO'1zQUO'#KXO'2VQUO,59gO'2_QUO1G/`O'2dQUO'#FPOOQR1G1]1G1]OOQR1G2h1G2hO$>uQUO1G2hO'2nQUO1G2hO'2yQUO1G0ZOOQR'#Ja'#JaO'3OQVO1G1XO'8wQUO'#FTO'8|QUO1G1VO!6nQUO'#JeO'9[QUO,5;}O$0^QUO,5;}OOQQ'#Fd'#FdOOQQ,5;},5;}O'9jQUO1G1gOOQR1G1g1G1gO'9rQUO,5}QUO1G2aOOQQ'#Cu'#CuO'DRQUO'#G]O'D|QUO'#G]O'ERQUO'#LSO'EaQUO'#G`OOQQ'#LT'#LTO'EoQUO1G2aO'EtQVO1G1lO'HVQVO'#GVOBUQUO'#FWOOQR'#Jf'#JfO'EtQVO1G1lO'HaQUO'#FwOOQR1G2g1G2gOOQR,5;x,5;xO'HfQVO,5;xO'HmQUO1G2hO'HrQUO'#JhO'2nQUO1G2hO!(zQVO1G2uO'HzQUO1G2yO'JTQUO1G3RO'KZQUO1G3YOOQQ1G3p1G3pO'KoQUO1G3pOOQR1G3[1G3[O'KtQUO'#K[O'2dQUO'#LUOGkQUO'#LWOOQR'#Gz'#GzO#DhQUO'#LYOOQR'#HR'#HRO'LOQUO'#GwO'$OQUO'#GvOOQR1G2|1G2|O'L{QUO1G2|O'MrQUO1G3[O'M}QUO1G3`O'NSQUO1G3`OOQR1G3`1G3`O'N[QUO'#H^OOQR'#H^'#H^O( eQUO'#H^O!(zQVO'#HaO!(zQVO'#H`OOQR'#L['#L[O( jQUO'#L[OOQR'#Jl'#JlO( oQVO,5=wOOQQ,5=w,5=wO( vQUO'#H_O(!OQUO'#H[OOQQ1G3b1G3bO(!YQUO,5@wOOQQ,5@w,5@wO%)_QUO,5@wO%)dQUO,5@wO%$^QUO,5:eO(%wQUO'#KlO(&VQUO'#KlOOQQ,5:e,5:eOOQQ'#JT'#JTO(&bQUO'#D}O(&lQUO'#KrOGkQUO'#LWO('hQUO'#D}OOQQ'#Hq'#HqOOQQ'#Hs'#HsOOQQ'#Ht'#HtOOQQ'#Km'#KmOOQQ'#JV'#JVO('rQUO,5:hOOQQ,5:h,5:hO((oQUO'#LWO((|QUO'#HuO()dQUO,5@wO()kQUO'#H|O()vQUO'#L_O(*OQUO,5>gO(*TQUO'#L^OOQQ1G4O1G4OO(-zQUO1G4OO(.RQUO1G4OO(.YQUO1G4UO(/`QUO1G4UO(/eQUO,5A}O!6nQUO1G4iO!(zQVO'#IjOOQQ1G4n1G4nO(/jQUO1G4nO(1mQVO1G4qPOOO1G.h1G.hP!A_{,UO1G.hP(3mQUO'#LfP(3x{,UO1G.hP(3}{7[O1G.hPO{O-E=t-E=tPOOO,5BO,5BOP(4V{,UO,5BOPOOO1G5R1G5RO!(zQVO7+$[O(4[QUO'#CyOOQQ,59^,59^O(4gQbO,59cO(4rQbO,59^OOQQ,59],59]OOQQ7+)x7+)xO!M_QVO'#JuO(4}QUO,5@lOOQQ1G.n1G.nOOQQ1G2l1G2lO(5VQUO1G2lO(5[QUO7+(tOOQQ7+*Y7+*YO(7pQUO7+*YO(7wQUO7+*YO(1mQVO7+*]O#NeQUO7+(tO(8UQVO'#JcO(8iQUO,5AkO(8qQUO,5;vOOQQ'#Co'#CoOOQQ,5;w,5;wO!(zQVO'#F[OOQQ-E=`-E=`O!M_QVO,5;uOOQQ1G1`1G1`OOQQ,5?l,5?lOOQQ-E=O-E=OOOQR'#Dg'#DgOOQR'#Di'#DiOOQR'#Dl'#DlO(9zQ!eO'#K`O(:RQMkO'#K`O(:YQ!eO'#K`OOQR'#K`'#K`OOQR'#JR'#JRO(:aQ!eO,59zOOQQ,59z,59zO(:hQbO,5?nOOQQ-E=Q-E=QO(:vQbO1G6eOOQR7+$}7+$}OOQR7+&q7+&qOOQR7+&x7+&xO'8|QUO7+&qO(;RQUO7+&OO#6WQUO7+&OO(;vQUO1G/TO(<^QUO1G/TO(kQUO,5?uOOQQ-E=X-E=XO(?tQUO7+&ZOOQQ,5@Z,5@ZOOQQ-E=m-E=mO(?yQUO'#LPO@XQVO'#EiO(AVQUO1G1_OOQQ1G1_1G1_O(B`QUO,5@OOOQQ,5@O,5@OOOQQ-E=b-E=bO(BtQUO'#KqOOQR7+,x7+,xO#DhQUO7+,xOOQR7+,z7+,zO(CRQUO,5=jO#DsQUO'#JkO(CdQUO,5AsOOQR1G3V1G3VOOQR1G3W1G3WO(CrQUO7+,{OOQR7+,{7+,{O(EjQUO,5:wO(GXQUO'#EwO!(zQVO,5;VO(GzQUO,5:wO(HUQUO'#EpO(HgQUO'#EzOOQQ,5;Z,5;ZO#K]QVO'#ExO(H}QUO,5:wO(IUQUO'#EyO#GgQUO'#J[O(JnQUO,5AeOOQQ1G0p1G0pO(JyQUO,5;WO!<[QUO,5;^O(KdQUO,5;_O(KrQUO,5;WO(NUQUO,5;`OOQQ-E=Z-E=ZO(N^QUO1G0}OOQQ1G1O1G1OO) XQUO1G1OO)!_QVO1G1OO)!fQVO1G1OO)!pQUO1G0|OOQQ1G0|1G0|OOQQ1G1P1G1PO)#mQUO'#JpO)#wQUO,5A]OOQQ1G0b1G0bOOQQ-E=[-E=[O)$PQUO,5;iO!<[QUO,5;iO)$|QVO,5:zO)%TQUO,5;gO$ mQUO7+&YOOQQ7+&Y7+&YO!(zQVO'#EfO)%[QUO,5:|OOQQ'#Kt'#KtOOQQ-E=W-E=WOOQQ,5A_,5A_OOQQ'#Jm'#JmO))PQUO7+&PPOQQ7+&P7+&POOQQ7+)W7+)WO))wQUO7+)WO)*}QVO7+)WOOQQ,5>n,5>nO$)YQVO'#JtO)+UQUO,5@sOOQQ1G/R1G/ROOQQ7+$z7+$zO)+aQUO7+(SO)+fQUO7+(SOOQR7+(S7+(SO$>uQUO7+(SOOQQ7+%u7+%uOOQR-E=_-E=_O!0VQUO,5;oOOQQ,5@P,5@POOQQ-E=c-E=cO$0^QUO1G1iOOQQ1G1i1G1iOOQR7+'R7+'ROOQR1G1t1G1tOBUQUO,5;rO),SQUO,5hQUO,5VQUO7+(aO)?]QUO7+(eO)?bQVO7+(eOOQQ7+(m7+(mOOQQ7+)[7+)[O)?jQUO'#KkO)?tQUO'#KkOOQR,5=c,5=cO)@RQUO,5=cO!;bQUO,5=cO!;bQUO,5=cO!;bQUO,5=cOOQR7+(h7+(hOOQR7+(v7+(vOOQR7+(z7+(zOOQR,5=x,5=xO)@WQUO,5={O)A^QUO,5=zOOQR,5Av,5AvOOQR-E=j-E=jOOQQ1G3c1G3cO)BdQUO,5=yO)BiQVO'#EfOOQQ1G6c1G6cO%)_QUO1G6cO%)dQUO1G6cOOQQ1G0P1G0POOQQ-E=R-E=RO)EQQUO,5AWO(%wQUO'#JUO)E]QUO,5AWO)E]QUO,5AWO)EeQUO,5:iO8zQUO,5:iOOQQ,5>^,5>^O)EoQUO,5ArO)EvQUO'#EVO)GQQUO'#EVO)GkQUO,5:iO)GuQUO'#HmO)GuQUO'#HnOOQQ'#Kp'#KpO)HdQUO'#KpO!(zQVO'#HoOOQQ,5:i,5:iO)IUQUO,5:iO!M_QVO,5:iOOQQ-E=T-E=TOOQQ1G0S1G0SOOQQ,5>a,5>aO)IZQUO1G6cO!(zQVO,5>hO)LxQUO'#JsO)MTQUO,5AyOOQQ1G4R1G4RO)M]QUO,5AxOOQQ,5Ax,5AxOOQQ7+)j7+)jO*!zQUO7+)jOOQQ7+)p7+)pO*'yQVO1G7iO*){QUO7+*TO**QQUO,5?UO*+WQUO7+*]POOO7+$S7+$SP*,yQUO'#LgP*-RQUO,5BQP*-W{,UO7+$SPOOO1G7j1G7jO*-]QUO<RQUO'#ElOOQQ1G0z1G0zOOQQ7+&j7+&jO*>gQUO7+&jO*?mQVO7+&jOOQQ7+&h7+&hOOQQ,5@[,5@[OOQQ-E=n-E=nO*@iQUO1G1TO*@sQUO1G1TO*A^QUO1G0fOOQQ1G0f1G0fO*BdQUO'#K|O*BlQUO1G1ROOQQ<OOOQQ-E=k-E=kPOQQ<uQUO<WO)GuQUO'#JqO*N`QUO1G0TO*NqQVO1G0TOOQQ1G3v1G3vO*NxQUO,5>XO+ TQUO,5>YO+ rQUO,5>ZO+!xQUO1G0TO%)dQUO7++}O+$OQUO1G4SOOQQ,5@_,5@_OOQQ-E=q-E=qOOQQ<o,5>oO+/wQUOANAYOOQRANAYANAYO+/|QUO7+'aOOQRAN@dAN@dO+1YQVOAN@oO+1aQUOAN@oO!0tQVOAN@oO+2jQUOAN@oO+2oQUOANAOO+2zQUOANAOO+4QQUOANAOOOQRAN@oAN@oO!M_QVOANAOOOQRANAPANAPO+4VQUO7+'}O)7eQUO7+'}OOQQ7+(P7+(PO+4hQUO7+(PO+5nQVO7+(PO+5uQVO7+'iO+5|QUOANAkOOQR7+(i7+(iOOQR7+)Q7+)QO+6RQUO7+)QO+6WQUO7+)QOOQQ<= i<= iO+6`QUO7+,^O+6hQUO1G5[OOQQ1G5[1G5[O+6sQUO7+%oOOQQ7+%o7+%oO+7UQUO7+%oO*NqQVO7+%oOOQQ7+)b7+)bO+7ZQUO7+%oO+8aQUO7+%oO!M_QVO7+%oO+8kQUO1G0]O*LyQUO1G0]O)EvQUO1G0]OOQQ1G0a1G0aO+9YQUO1G3rO+:`QVO1G3rOOQQ1G3r1G3rO+:jQVO1G3rO+:qQUO,5@]OOQQ-E=o-E=oOOQQ1G3s1G3sO%)_QUO<= iOOQQ7+*[7+*[POQQ,5@c,5@cPOQQ-E=u-E=uOOQQ1G/}1G/}OOQQ,5?y,5?yOOQQ-E=]-E=]OOQRG26tG26tO+;YQUOG26ZO!0tQVOG26ZO+UQUO<ZQUO<`QUO<uAN>uO+COQUOAN>uO+DUQUOAN>uO!M_QVOAN>uO+DZQUO<|QUO'#K[O,?^QUO'#CyO,?lQbO,59cO,6eQUO7+&OO,XP>r?U?jFdMf!&l!-UP!4Q!4u!5jP!6UPPPPPPPP!6oP!8ZPP!9n!;YP!;`PPPPPP!;cP!;cPP!;cPPPPPPPPP!;o!?XP!?[PP!?x!@mPPPPP!@qP>u!BUPP>u!D_!F`!Fn!HV!IxP!JTP!Jd!Jd!Mv##X#$q#(P#+]!F`#+gPP!F`#+n#+t#+g#+g#+wP#+{#,j#,j#,j#,j!IxP#-T#-f#/lP#0SP#1qP#1u#2P#2v#3R#5a#5i#5i#5p#1uP#1uP#6U#6[P#6fPP#7T#7t#8h#7TP#9[#9hP#7TP#7TPP#7T#7TP#7TP#7TP#7TP#7TP#7TP#7TP#9k#6f#:ZP#:rP#;Z#;Z#;Z#;Z#;h#1uP#u>u>u$%V!@m!@m!@m!@m!@m!@m!6o!6o!6o$%jP$'X$'g!6o$'mPP!6o$)}$*Q#B[$*T:{7o$-]$/W$0w$2g7oPP7o$4Z7oP7o7oP7oP$7c7oP7oPP7o$7oPPPPPPPPP*]P$:y$;P$=h$?p$?v$@^$@h$@s$AS$AY$Bj$Ci$Cp$Cw$C}$DV$Da$Dg$Dv$D|$EV$E_$Ej$Ep$Ez$FQ$F[$Fc$Ft$Fz$GQP$GW$G`$Gg$Gu$Ie$Ik$Iq$Ix$JRPPPPPPPP$JX$J]PPPPP%#a$)}%#d%&n%(xP%)V%)YPPPPPPPPPP%)f%*i%*o%*s%,l%-{%.n%.u%1W%1^PPP%1h%1s%1v%1|%3T%3W%3d%3n%3r%4x%5m%5s#BeP%6^%6p%6s%7V%7e%7i%7o%7u$)}$*Q$*Q%7x%7{P%8V%8YR#cP'dmO[aefwx{!W!X!g!k!n!r!s!v!x#X#Y#[#g#i#l#q#r#s#t#u#v#w#x#y#z#{#}$U$W$Y$e$f$k%]%m&Q&S&W&b&f&x&y&|'O'P'b'e'j'k'z(a(c(j)m)s*i*j*m*r*s*w+X+Z+i+k+l,Q,S,o,r,x-^-_-b-f-j.S.T.X/Q/T/_/f/o/q/v/x0k1O1T1d1e1o1s1}2P2f2i2l2x2}3Q3m4S4V4[4e5^5i5u6c6g6j6l6n6x6z7P7f7n7q8i8k8q8w8x9V9Z9a9c9p9s9t:P:S:Y:[:a:f:jU%om%p7UQ&m!`Q(k#]d0S*O0P0Q0R0U5R5S5T5W8UR7U3Xf}Oaewx{!g&S'e*r-f&v$i[!W!X!k!n!r!s!v!x#X#Y#[#g#i#l#q#r#s#t#u#v#w#x#y#z#{#}$U$W$Y$e$f$k%]%m&Q&W&b&f&x&y&|'O'P'b'j'k'z(a(c(j)m)s*i*j*m*s*w+X+Z+i+k+l,Q,S,o,r,x-^-_-b-j.S.T.X/Q/T/_/f/o/q/v/x1O1d1e1o1s1}2P2f2i2l2x2}3Q3m4S4V4[4e5^5i5u6c6g6j6l6n6x6z7P7f7n7q8i8k8q8w8x9V9Z9a9c9p9s9t:P:S:Y:[:a:f:jS%`f0k#d%jgnp|#O$g$|$}%S%d%h%i%w&s'u'v(R*Z*a*c*u+^,m,w-`-s-z.i.p.r0`0|0}1R1V2b2m5e6k;[;];^;d;e;f;s;t;u;v;z;{;|;}<[<]<^S%qm!YS&u!h#PQ']!tQ'h!yQ'i!zQ(k#`Q(l#]Q(m#^Q*y%kQ,X&lQ,^&nQ-T'^Q-g'gQ-n'rS.u([4]Q/i)hQ0h*nQ2T,]Q2[,dQ3S-hQ4f/PQ4j/WQ5j1QQ6`2WQ7R3TQ8e6_Q9i8OR;_1T$|#hS!]$y%Q%T%Z&j&k'Q'X'Z'a'c(b(f(i(x(y)S)T)U)V)W)X)Y)Z)[)])^)_)`)l)r)y+Y+h,P,T,k,v-k-l.P.|/s0c0e0j0l0z1c1|2d2k3V3g3h4g4h4n4q4w4y4}5O5h5t5{6Y6i6m6w7O7u7v7x8W8X8g8j8n8v9X9`9o9u:Q:X:^:d:mQ&p!dQ(h#ZQ(t#bQ)k$T[*t%e*X0n2c2j3OQ,_&oQ/R(gQ/V(lQ/^(uS/l)j/SQ0u+RS4u/m/nR8S4v'e![O[aefwx{!W!X!g!k!n!r!s!v!x#X#Y#[#g#i#l#q#r#s#t#u#v#w#x#y#z#{#}$U$W$Y$e$f$k%]%m&Q&S&W&b&f&x&y&|'O'P'b'e'j'k'z(a(c(j)m)s*i*j*m*r*s*w+X+Z+i+k+l,Q,S,o,r,x-^-_-b-f-j.S.T.X/Q/T/_/f/o/q/v/x0k1O1T1d1e1o1s1}2P2f2i2l2x2}3Q3m4S4V4[4e5^5i5u6c6g6j6l6n6x6z7P7f7n7q8i8k8q8w8x9V9Z9a9c9p9s9t:P:S:Y:[:a:f:j'e!VO[aefwx{!W!X!g!k!n!r!s!v!x#X#Y#[#g#i#l#q#r#s#t#u#v#w#x#y#z#{#}$U$W$Y$e$f$k%]%m&Q&S&W&b&f&x&y&|'O'P'b'e'j'k'z(a(c(j)m)s*i*j*m*r*s*w+X+Z+i+k+l,Q,S,o,r,x-^-_-b-f-j.S.T.X/Q/T/_/f/o/q/v/x0k1O1T1d1e1o1s1}2P2f2i2l2x2}3Q3m4S4V4[4e5^5i5u6c6g6j6l6n6x6z7P7f7n7q8i8k8q8w8x9V9Z9a9c9p9s9t:P:S:Y:[:a:f:jQ)P#kS+R%y0vQ/u)tk4R.j3w3{4O4P7g7i7j7l7o9]9^:VQ)R#kk4Q.j3w3{4O4P7g7i7j7l7o9]9^:Vl)Q#k.j3w3{4O4P7g7i7j7l7o9]9^:VT+R%y0v`UOwx!g&S'e*r-fW$`[e$e(c#l$p_!f!u!}#R#S#T#U#V#Z$S$T$l%U&U&Y&c&m'_(O(Q(V(_(h)k)q+]+b+c+u+z,Y,l,{-R-r-w.Z.[.b.c.g.t.x1W1[1i1n1p2o3`3a3b3t3x5n6R6T7`8_![%cg$g%d%i&s*Z*u+^,m,w-`0}1R2b;[;];^;e;f;s;t;u;v;z;{;}<[<]<^Y%snp%w-s.il(}#k.j3w3{4O4P7g7i7j7l7o9]9^:VS;i'u-zU;j(R.p.r&| MacroName LineComment BlockComment PreprocDirective #include String EscapeSequence SystemLibString Identifier ArgumentList ( ConditionalExpression AssignmentExpression CallExpression PrimitiveType FieldExpression FieldIdentifier DestructorName TemplateMethod ScopedFieldIdentifier NamespaceIdentifier TemplateType TypeIdentifier ScopedTypeIdentifier ScopedNamespaceIdentifier :: NamespaceIdentifier TypeIdentifier TemplateArgumentList < TypeDescriptor const volatile restrict _Atomic mutable constexpr constinit consteval StructSpecifier struct MsDeclspecModifier __declspec ) Attribute AttributeName Identifier AttributeArgs { } [ ] UpdateOp ArithOp ArithOp ArithOp LogicOp BitOp BitOp BitOp CompareOp CompareOp CompareOp > CompareOp BitOp UpdateOp , Number CharLiteral AttributeArgs VirtualSpecifier BaseClassClause Access virtual FieldDeclarationList FieldDeclaration extern static register inline thread_local AttributeSpecifier __attribute__ PointerDeclarator MsBasedModifier __based MsPointerModifier FunctionDeclarator ParameterList ParameterDeclaration PointerDeclarator FunctionDeclarator Noexcept noexcept RequiresClause requires True False ParenthesizedExpression CommaExpression LambdaExpression LambdaCaptureSpecifier TemplateParameterList OptionalParameterDeclaration TypeParameterDeclaration typename class VariadicParameterDeclaration VariadicDeclarator ReferenceDeclarator OptionalTypeParameterDeclaration VariadicTypeParameterDeclaration TemplateTemplateParameterDeclaration template AbstractFunctionDeclarator AbstractPointerDeclarator AbstractArrayDeclarator AbstractParenthesizedDeclarator AbstractReferenceDeclarator ThrowSpecifier throw TrailingReturnType CompoundStatement FunctionDefinition MsCallModifier TryStatement try CatchClause catch LinkageSpecification Declaration InitDeclarator InitializerList InitializerPair SubscriptDesignator FieldDesignator DeclarationList ExportDeclaration export ImportDeclaration import ModuleName PartitionName HeaderName CaseStatement case default LabeledStatement StatementIdentifier ExpressionStatement IfStatement if ConditionClause Declaration else SwitchStatement switch DoStatement do while WhileStatement ForStatement for ReturnStatement return BreakStatement break ContinueStatement continue GotoStatement goto CoReturnStatement co_return CoYieldStatement co_yield AttributeStatement ForRangeLoop AliasDeclaration using TypeDefinition typedef PointerDeclarator FunctionDeclarator ArrayDeclarator ParenthesizedDeclarator ThrowStatement NamespaceDefinition namespace ScopedIdentifier Identifier OperatorName operator ArithOp BitOp CompareOp LogicOp new delete co_await ConceptDefinition concept UsingDeclaration enum StaticAssertDeclaration static_assert ConcatenatedString TemplateDeclaration FriendDeclaration friend union FunctionDefinition ExplicitFunctionSpecifier explicit FieldInitializerList FieldInitializer DefaultMethodClause DeleteMethodClause FunctionDefinition OperatorCast operator TemplateInstantiation FunctionDefinition FunctionDefinition Declaration ModuleDeclaration module RequiresExpression RequirementList SimpleRequirement TypeRequirement CompoundRequirement ReturnTypeRequirement ConstraintConjuction LogicOp ConstraintDisjunction LogicOp ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator TemplateFunction OperatorName StructuredBindingDeclarator ArrayDeclarator ParenthesizedDeclarator ReferenceDeclarator BitfieldClause FunctionDefinition FunctionDefinition Declaration FunctionDefinition Declaration AccessSpecifier UnionSpecifier ClassSpecifier EnumSpecifier SizedTypeSpecifier TypeSize EnumeratorList Enumerator DependentType Decltype decltype auto PlaceholderTypeSpecifier ParameterPackExpansion ParameterPackExpansion FieldIdentifier PointerExpression SubscriptExpression BinaryExpression ArithOp LogicOp LogicOp BitOp UnaryExpression LogicOp BitOp UpdateExpression CastExpression SizeofExpression sizeof CoAwaitExpression CompoundLiteralExpression NULL NewExpression new NewDeclarator DeleteExpression delete ParameterPackExpansion nullptr this UserDefinedLiteral ParamPack #define PreprocArg #if #ifdef #ifndef #else #endif #elif PreprocDirectiveName Macro Program",maxTerm:426,nodeProps:[["group",-35,1,8,11,14,15,16,18,71,72,100,101,102,104,192,209,230,243,244,271,272,273,278,281,282,283,285,286,287,288,291,293,294,295,296,297,"Expression",-13,17,24,25,26,42,256,257,258,259,263,264,266,267,"Type",-19,126,129,148,151,153,154,159,161,164,165,167,169,171,173,175,177,179,180,189,"Statement"]],propSources:[g],skippedNodes:[0,3,4,5,6,7,10,298,299,300,301,302,303,304,305,306,307,348,349],repeatNodeCount:41,tokenData:"&*r7ZR!UOX$eXY({YZ.gZ]$e]^+P^p$epq({qr.}rs0}st2ktu$euv!7dvw!9bwx!;exy!O{|!?R|}!AV}!O!BQ!O!P!DX!P!Q#+y!Q!R#Az!R![$(x![!]$Ag!]!^$Cc!^!_$D^!_!`%1W!`!a%2X!a!b%5_!b!c$e!c!n%6Y!n!o%7q!o!w%6Y!w!x%7q!x!}%6Y!}#O%:n#O#P%u#Y#]4Y#]#^NZ#^#o4Y#o;'S$e;'S;=`(u<%lO$e4e4eb)[W(qQ'g&j'n.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#o4Y#o;'S$e;'S;=`(u<%lO$e4e5xd)[W(qQ'g&j'n.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#X4Y#X#Y7W#Y#o4Y#o;'S$e;'S;=`(u<%lO$e4e7cd)[W(qQ'g&j'n.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#Y4Y#Y#Z8q#Z#o4Y#o;'S$e;'S;=`(u<%lO$e4e8|d)[W(qQ'g&j'n.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#]4Y#]#^:[#^#o4Y#o;'S$e;'S;=`(u<%lO$e4e:gd)[W(qQ'g&j'n.oOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![4Y![!c$e!c!}4Y!}#O$e#O#P&f#P#R$e#R#S4Y#S#T$e#T#b4Y#b#c;u#c#o4Y#o;'S$e;'S;=`(u<%lO$e4e][)T,g)[W(qQ%[!b'g&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!?`^)[W(qQ%[!b!Y,g'g&jOY$eZr$ers%^sw$ewx(Ox{$e{|!@[|!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!@gY)[W!X-y(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!AbY!h,k)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!B__)[W(qQ%[!b!Y,g'g&jOY$eZr$ers%^sw$ewx(Ox}$e}!O!@[!O!_$e!_!`!8g!`!a!C^!a#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o!CiY(y-y)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!Dd^)[W(qQ'g&j(x,gOY$eZr$ers%^sw$ewx(Ox!O$e!O!P!E`!P!Q$e!Q![!GY![#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!Ei[)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox!O$e!O!P!F_!P#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2a!FjY)Y,k)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2]!Gen)[W(qQ!i,g'g&jOY$eZr$ers%^sw$ewx!Icx!Q$e!Q![!GY![!g$e!g!h#$w!h!i#*Y!i!n$e!n!o#*Y!o!r$e!r!s#$w!s!w$e!w!x#*Y!x#O$e#O#P&f#P#X$e#X#Y#$w#Y#Z#*Y#Z#`$e#`#a#*Y#a#d$e#d#e#$w#e#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e2T!IjY(qQ'g&jOY(OZr(Ors%}s!Q(O!Q![!JY![#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O2T!Jcn(qQ!i,g'g&jOY(OZr(Ors%}sw(Owx!Icx!Q(O!Q![!JY![!g(O!g!h!La!h!i##`!i!n(O!n!o##`!o!r(O!r!s!La!s!w(O!w!x##`!x#O(O#O#P&f#P#X(O#X#Y!La#Y#Z##`#Z#`(O#`#a##`#a#d(O#d#e!La#e#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2T!Ljl(qQ!i,g'g&jOY(OZr(Ors%}s{(O{|!Nb|}(O}!O!Nb!O!Q(O!Q![# e![!c(O!c!h# e!h!i# e!i!n(O!n!o##`!o!w(O!w!x##`!x#O(O#O#P&f#P#T(O#T#Y# e#Y#Z# e#Z#`(O#`#a##`#a#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2T!Ni^(qQ'g&jOY(OZr(Ors%}s!Q(O!Q![# e![!c(O!c!i# e!i#O(O#O#P&f#P#T(O#T#Z# e#Z;'S(O;'S;=`(o<%lO(O2T# nj(qQ!i,g'g&jOY(OZr(Ors%}sw(Owx!Nbx!Q(O!Q![# e![!c(O!c!h# e!h!i# e!i!n(O!n!o##`!o!w(O!w!x##`!x#O(O#O#P&f#P#T(O#T#Y# e#Y#Z# e#Z#`(O#`#a##`#a#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2T##id(qQ!i,g'g&jOY(OZr(Ors%}s!h(O!h!i##`!i!n(O!n!o##`!o!w(O!w!x##`!x#O(O#O#P&f#P#Y(O#Y#Z##`#Z#`(O#`#a##`#a#i(O#i#j##`#j;'S(O;'S;=`(o<%lO(O2]#%Sn)[W(qQ!i,g'g&jOY$eZr$ers%^sw$ewx(Ox{$e{|#'Q|}$e}!O#'Q!O!Q$e!Q![#(]![!c$e!c!h#(]!h!i#(]!i!n$e!n!o#*Y!o!w$e!w!x#*Y!x#O$e#O#P&f#P#T$e#T#Y#(]#Y#Z#(]#Z#`$e#`#a#*Y#a#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e2]#'Z`)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![#(]![!c$e!c!i#(]!i#O$e#O#P&f#P#T$e#T#Z#(]#Z;'S$e;'S;=`(u<%lO$e2]#(hj)[W(qQ!i,g'g&jOY$eZr$ers%^sw$ewx!Nbx!Q$e!Q![#(]![!c$e!c!h#(]!h!i#(]!i!n$e!n!o#*Y!o!w$e!w!x#*Y!x#O$e#O#P&f#P#T$e#T#Y#(]#Y#Z#(]#Z#`$e#`#a#*Y#a#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e2]#*ef)[W(qQ!i,g'g&jOY$eZr$ers%^sw$ewx(Ox!h$e!h!i#*Y!i!n$e!n!o#*Y!o!w$e!w!x#*Y!x#O$e#O#P&f#P#Y$e#Y#Z#*Y#Z#`$e#`#a#*Y#a#i$e#i#j#*Y#j;'S$e;'S;=`(u<%lO$e7Z#,W`)[W(qQ%[!b![,g'g&jOY$eZr$ers%^sw$ewx(Oxz$ez{#-Y{!P$e!P!Q#:s!Q!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z#-c])[W(qQ'g&jOY#-YYZ#.[Zr#-Yrs#/csw#-Ywx#5wxz#-Yz{#8j{#O#-Y#O#P#2`#P;'S#-Y;'S;=`#:m<%lO#-Y1e#._TOz#.[z{#.n{;'S#.[;'S;=`#/]<%lO#.[1e#.qVOz#.[z{#.n{!P#.[!P!Q#/W!Q;'S#.[;'S;=`#/]<%lO#.[1e#/]OT1e1e#/`P;=`<%l#.[7X#/jZ)[W'g&jOY#/cYZ#.[Zw#/cwx#0]xz#/cz{#4O{#O#/c#O#P#2`#P;'S#/c;'S;=`#5q<%lO#/c7P#0bX'g&jOY#0]YZ#.[Zz#0]z{#0}{#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#1SZ'g&jOY#0]YZ#.[Zz#0]z{#0}{!P#0]!P!Q#1u!Q#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#1|UT1e'g&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}7P#2eZ'g&jOY#0]YZ#0]Z]#0]]^#3W^z#0]z{#0}{#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#3]X'g&jOY#0]YZ#0]Zz#0]z{#0}{#O#0]#O#P#2`#P;'S#0];'S;=`#3x<%lO#0]7P#3{P;=`<%l#0]7X#4V])[W'g&jOY#/cYZ#.[Zw#/cwx#0]xz#/cz{#4O{!P#/c!P!Q#5O!Q#O#/c#O#P#2`#P;'S#/c;'S;=`#5q<%lO#/c7X#5XW)[WT1e'g&jOY%^Zw%^wx%}x#O%^#O#P&f#P;'S%^;'S;=`'x<%lO%^7X#5tP;=`<%l#/c7R#6OZ(qQ'g&jOY#5wYZ#.[Zr#5wrs#0]sz#5wz{#6q{#O#5w#O#P#2`#P;'S#5w;'S;=`#8d<%lO#5w7R#6x](qQ'g&jOY#5wYZ#.[Zr#5wrs#0]sz#5wz{#6q{!P#5w!P!Q#7q!Q#O#5w#O#P#2`#P;'S#5w;'S;=`#8d<%lO#5w7R#7zW(qQT1e'g&jOY(OZr(Ors%}s#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O7R#8gP;=`<%l#5w7Z#8s_)[W(qQ'g&jOY#-YYZ#.[Zr#-Yrs#/csw#-Ywx#5wxz#-Yz{#8j{!P#-Y!P!Q#9r!Q#O#-Y#O#P#2`#P;'S#-Y;'S;=`#:m<%lO#-Y7Z#9}Y)[W(qQT1e'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z#:pP;=`<%l#-Y7Z#;OY)[W(qQS1e'g&jOY#:sZr#:srs#;nsw#:swx#@{x#O#:s#O#P#[<%lO#b#P;'S#[<%lO#[<%lO#_P;=`<%l#i]S1e'g&jOY#b#P#b#[<%lO#[<%lO#b#P#b#[<%lO#t!R![$2V![!c$e!c!i$2V!i#O$e#O#P&f#P#T$e#T#Z$2V#Z;'S$e;'S;=`(u<%lO$e2]$?Pv)[W(qQ!i,g'g&jOY$eZr$ers%^sw$ewx$4lx!O$e!O!P$ m!P!Q$e!Q![$2V![!c$e!c!g$2V!g!h$:p!h!i$2V!i!n$e!n!o#*Y!o!r$e!r!s#$w!s!w$e!w!x#*Y!x#O$e#O#P&f#P#T$e#T#U$2V#U#V$2V#V#X$2V#X#Y$:p#Y#Z$2V#Z#`$e#`#a#*Y#a#d$e#d#e#$w#e#i$e#i#j#*Y#j#l$e#l#m$0z#m;'S$e;'S;=`(u<%lO$e4e$Ar[(w-X)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox![$e![!]$Bh!]#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3s$BsYl-})[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e2]$CnY)X,g)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7V$Dk_p,g%^!b)[W(qQ'g&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!^$Ej!^!_%+w!_!`%.U!`!a%0]!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej*[$Es])[W(qQ'g&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!`$Ej!`!a%*t!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ejp$FoTO!`$Fl!`!a$GO!a;'S$Fl;'S;=`$GT<%lO$Flp$GTO$Xpp$GWP;=`<%l$Fl*Y$GbZ)[W'g&jOY$GZYZ$FlZw$GZwx$HTx!`$GZ!`!a%(U!a#O$GZ#O#P$Ib#P;'S$GZ;'S;=`%(y<%lO$GZ*Q$HYX'g&jOY$HTYZ$FlZ!`$HT!`!a$Hu!a#O$HT#O#P$Ib#P;'S$HT;'S;=`$Mx<%lO$HT*Q$IOU$XpY#t'g&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}*Q$Ig['g&jOY$HTYZ$HTZ]$HT]^$J]^!`$HT!`!a$NO!a#O$HT#O#P%&n#P;'S$HT;'S;=`%'f;=`<%l%$z<%lO$HT*Q$JbX'g&jOY$HTYZ$J}Z!`$HT!`!a$Hu!a#O$HT#O#P$Ib#P;'S$HT;'S;=`$Mx<%lO$HT'[$KSX'g&jOY$J}YZ$FlZ!`$J}!`!a$Ko!a#O$J}#O#P$LY#P;'S$J};'S;=`$Mr<%lO$J}'[$KvU$Xp'g&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}'[$L_Z'g&jOY$J}YZ$J}Z]$J}]^$MQ^!`$J}!`!a$Ko!a#O$J}#O#P$LY#P;'S$J};'S;=`$Mr<%lO$J}'[$MVX'g&jOY$J}YZ$J}Z!`$J}!`!a$Ko!a#O$J}#O#P$LY#P;'S$J};'S;=`$Mr<%lO$J}'[$MuP;=`<%l$J}*Q$M{P;=`<%l$HT*Q$NVW$Xp'g&jOY$NoZ!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`$NtW'g&jOY$NoZ!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`% eUY#t'g&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%})`% |Y'g&jOY$NoYZ$NoZ]$No]^%!l^#O$No#O#P%#d#P;'S$No;'S;=`%$[;=`<%l%$z<%lO$No)`%!qX'g&jOY$NoYZ%}Z!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`%#aP;=`<%l$No)`%#iZ'g&jOY$NoYZ%}Z]$No]^%!l^!`$No!`!a% ^!a#O$No#O#P% w#P;'S$No;'S;=`%#^<%lO$No)`%$_XOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h;=`<%l$No<%lO%$z#t%$}WOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h<%lO%$z#t%%lOY#t#t%%oRO;'S%$z;'S;=`%%x;=`O%$z#t%%{XOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h;=`<%l%$z<%lO%$z#t%&kP;=`<%l%$z*Q%&sZ'g&jOY$HTYZ$J}Z]$HT]^$J]^!`$HT!`!a$Hu!a#O$HT#O#P$Ib#P;'S$HT;'S;=`$Mx<%lO$HT*Q%'iXOY%$zZ!`%$z!`!a%%g!a#O%$z#O#P%%l#P;'S%$z;'S;=`%&h;=`<%l$HT<%lO%$z*Y%(aW$XpY#t)[W'g&jOY%^Zw%^wx%}x#O%^#O#P&f#P;'S%^;'S;=`'x<%lO%^*Y%(|P;=`<%l$GZ*S%)WZ(qQ'g&jOY%)PYZ$FlZr%)Prs$HTs!`%)P!`!a%)y!a#O%)P#O#P$Ib#P;'S%)P;'S;=`%*n<%lO%)P*S%*UW$XpY#t(qQ'g&jOY(OZr(Ors%}s#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O*S%*qP;=`<%l%)P*[%+RY$XpY#t)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e*[%+tP;=`<%l$Ej7V%,U^)[W(qQ%]!b!f,g'g&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!_$Ej!_!`%-Q!`!a%*t!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej7V%-]]!g-y)[W(qQ'g&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!`$Ej!`!a%*t!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej7V%.c]%^!b!b,g)[W(qQ'g&jOY$EjYZ$FlZr$Ejrs$GZsw$Ejwx%)Px!`$Ej!`!a%/[!a#O$Ej#O#P$Ib#P;'S$Ej;'S;=`%+q<%lO$Ej7V%/mY%^!b!b,g$XpY#t)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e)j%0hYY#t)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%1c[)k!c)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`0Q!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%2f]%^!b)[W(qQ!d,g'g&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`%3_!`!a%4[!a#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%3lY%^!b!b,g)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%4i[)[W(qQ%]!b!f,g'g&jOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e&u%5jY(vP)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z%6ib)[W(zS(qQ!R,f(s%y'g&jOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![%6Y![!c$e!c!}%6Y!}#O$e#O#P&f#P#R$e#R#S%6Y#S#T$e#T#o%6Y#o;'S$e;'S;=`(u<%lO$e7Z%8Qb)[W(zS(qQ!R,f(s%y'g&jOY$eZr$ers%9Ysw$ewx%9{x!Q$e!Q![%6Y![!c$e!c!}%6Y!}#O$e#O#P&f#P#R$e#R#S%6Y#S#T$e#T#o%6Y#o;'S$e;'S;=`(u<%lO$e5P%9cW)[W(p/]'g&jOY%^Zw%^wx%}x#O%^#O#P&f#P;'S%^;'S;=`'x<%lO%^2T%:UW(qQ)Z,g'g&jOY(OZr(Ors%}s#O(O#O#P&f#P;'S(O;'S;=`(o<%lO(O3o%:yZ!V-y)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox!}$e!}#O%;l#O#P&f#P;'S$e;'S;=`(u<%lO$e&u%;wY)QP)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e4e%[Z]%=q]^%?Z^!Q%=q!Q![%?w![!w%=q!w!x%AX!x#O%=q#O#P%H_#P#i%=q#i#j%Ds#j#l%=q#l#m%IR#m;'S%=q;'S;=`%Kt<%lO%=q&t%=xUXY'g&jOY%}Z#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}4e%>e[XY(o.o'g&jOX%}XY-OYZ*[Z]%}]^-O^p%}pq-Oq#O%}#O#P,^#P;'S%};'S;=`'r<%lO%}4e%?bVXY'g&jOY%}YZ-OZ#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%@OWXY'g&jOY%}Z!Q%}!Q![%@h![#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%@oWXY'g&jOY%}Z!Q%}!Q![%=q![#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%A^['g&jOY%}Z!Q%}!Q![%BS![!c%}!c!i%BS!i#O%}#O#P&f#P#T%}#T#Z%BS#Z;'S%};'S;=`'r<%lO%}&t%BX['g&jOY%}Z!Q%}!Q![%B}![!c%}!c!i%B}!i#O%}#O#P&f#P#T%}#T#Z%B}#Z;'S%};'S;=`'r<%lO%}&t%CS['g&jOY%}Z!Q%}!Q![%Cx![!c%}!c!i%Cx!i#O%}#O#P&f#P#T%}#T#Z%Cx#Z;'S%};'S;=`'r<%lO%}&t%C}['g&jOY%}Z!Q%}!Q![%Ds![!c%}!c!i%Ds!i#O%}#O#P&f#P#T%}#T#Z%Ds#Z;'S%};'S;=`'r<%lO%}&t%Dx['g&jOY%}Z!Q%}!Q![%En![!c%}!c!i%En!i#O%}#O#P&f#P#T%}#T#Z%En#Z;'S%};'S;=`'r<%lO%}&t%Es['g&jOY%}Z!Q%}!Q![%Fi![!c%}!c!i%Fi!i#O%}#O#P&f#P#T%}#T#Z%Fi#Z;'S%};'S;=`'r<%lO%}&t%Fn['g&jOY%}Z!Q%}!Q![%Gd![!c%}!c!i%Gd!i#O%}#O#P&f#P#T%}#T#Z%Gd#Z;'S%};'S;=`'r<%lO%}&t%Gi['g&jOY%}Z!Q%}!Q![%=q![!c%}!c!i%=q!i#O%}#O#P&f#P#T%}#T#Z%=q#Z;'S%};'S;=`'r<%lO%}&t%HfXXY'g&jOY%}YZ%}Z]%}]^'W^#O%}#O#P&f#P;'S%};'S;=`'r<%lO%}&t%IW['g&jOY%}Z!Q%}!Q![%I|![!c%}!c!i%I|!i#O%}#O#P&f#P#T%}#T#Z%I|#Z;'S%};'S;=`'r<%lO%}&t%JR['g&jOY%}Z!Q%}!Q![%Jw![!c%}!c!i%Jw!i#O%}#O#P&f#P#T%}#T#Z%Jw#Z;'S%};'S;=`'r<%lO%}&t%KO[XY'g&jOY%}Z!Q%}!Q![%Jw![!c%}!c!i%Jw!i#O%}#O#P&f#P#T%}#T#Z%Jw#Z;'S%};'S;=`'r<%lO%}&t%KwP;=`<%l%=q2a%LVZ!W,V)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P#Q%Lx#Q;'S$e;'S;=`(u<%lO$e'Y%MTY)^d)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o%NQ[)[W(qQ%]!b'g&j!_,gOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e7Z& Vd)[W(zS(qQ!R,f(s%y'g&jOY$eZr$ers%9Ysw$ewx%9{x!Q$e!Q!Y%6Y!Y!Z%7q!Z![%6Y![!c$e!c!}%6Y!}#O$e#O#P&f#P#R$e#R#S%6Y#S#T$e#T#o%6Y#o;'S$e;'S;=`(u<%lO$e2]&!pY!T,g)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e3o&#m^)[W(qQ%]!b'g&j!^,gOY$eZr$ers%^sw$ewx(Ox!_$e!_!`!8g!`#O$e#O#P&f#P#p$e#p#q&$i#q;'S$e;'S;=`(u<%lO$e3o&$vY)U,g%_!b)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e'V&%qY!Ua)[W(qQ'g&jOY$eZr$ers%^sw$ewx(Ox#O$e#O#P&f#P;'S$e;'S;=`(u<%lO$e(]&&nc)[W(qQ%]!b'SP'g&jOX$eXY&'yZp$epq&'yqr$ers%^sw$ewx(Ox!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e&y&(Sc)[W(qQ'g&jOX$eXY&'yZp$epq&'yqr$ers%^sw$ewx(Ox!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e&y&)jb)[W(qQdT'g&jOY$eZr$ers%^sw$ewx(Ox!Q$e!Q![&)_![!c$e!c!}&)_!}#O$e#O#P&f#P#R$e#R#S&)_#S#T$e#T#o&)_#o;'S$e;'S;=`(u<%lO$e",tokenizers:[W,f,0,1,2,3,4,5,6,7,8,9],topRules:{Program:[0,308]},dynamicPrecedences:{87:1,94:1,119:1,185:1,188:-10,241:-10,242:1,245:-1,247:-10,248:1,263:-1,268:2,269:2,307:-10,366:3,418:1,419:3,420:1,421:1},specialized:[{term:357,get:O=>q[O]||-1},{term:32,get:O=>Z[O]||-1},{term:66,get:O=>p[O]||-1},{term:364,get:O=>d[O]||-1}],tokenPrec:24905});var y=e(24104);const m=y.LRLanguage.define({name:"cpp",parser:b.configure({props:[y.indentNodeProp.add({IfStatement:(0,y.continuedIndent)({except:/^\s*({|else\b)/}),TryStatement:(0,y.continuedIndent)({except:/^\s*({|catch)\b/}),LabeledStatement:y.flatIndent,CaseStatement:O=>O.baseIndent+O.unit,BlockComment:()=>null,CompoundStatement:(0,y.delimitedIndent)({closing:"}"}),Statement:(0,y.continuedIndent)({except:/^{/})}),y.foldNodeProp.add({"DeclarationList CompoundStatement EnumeratorList FieldDeclarationList InitializerList":y.foldInside,BlockComment(O){return{from:O.from+2,to:O.to-2}}})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/,closeBrackets:{stringPrefixes:["L","u","U","u8","LR","UR","uR","u8R","R"]}}});function R(){return new y.LanguageSupport(m)}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/5201.8866042bae350659528a.js b/bootcamp/share/jupyter/lab/static/5201.8866042bae350659528a.js new file mode 100644 index 0000000..55d9fc8 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/5201.8866042bae350659528a.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5201],{75201:(e,a,t)=>{t.r(a);t.d(a,{css:()=>I,cssCompletionSource:()=>E,cssLanguage:()=>D});var O=t(11705);var o=t(6016);const r=94,l=1,i=95,n=96,s=2;const d=[9,10,11,12,13,32,133,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288];const c=58,p=40,Q=95,u=91,S=45,m=46,g=35,f=37;function h(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function y(e){return e>=48&&e<=57}const b=new O.Jq(((e,a)=>{for(let t=false,O=0,o=0;;o++){let{next:r}=e;if(h(r)||r==S||r==Q||t&&y(r)){if(!t&&(r!=S||o>0))t=true;if(O===o&&r==S)O++;e.advance()}else{if(t)e.acceptToken(r==p?i:O==2&&a.canShift(s)?s:n);break}}}));const P=new O.Jq((e=>{if(d.includes(e.peek(-1))){let{next:a}=e;if(h(a)||a==Q||a==g||a==m||a==u||a==c||a==S)e.acceptToken(r)}}));const $=new O.Jq((e=>{if(!d.includes(e.peek(-1))){let{next:a}=e;if(a==f){e.advance();e.acceptToken(l)}if(h(a)){do{e.advance()}while(h(e.next));e.acceptToken(l)}}}));const X=(0,o.styleTags)({"AtKeyword import charset namespace keyframes media supports":o.tags.definitionKeyword,"from to selector":o.tags.keyword,NamespaceName:o.tags.namespace,KeyframeName:o.tags.labelName,TagName:o.tags.tagName,ClassName:o.tags.className,PseudoClassName:o.tags.constant(o.tags.className),IdName:o.tags.labelName,"FeatureName PropertyName":o.tags.propertyName,AttributeName:o.tags.attributeName,NumberLiteral:o.tags.number,KeywordQuery:o.tags.keyword,UnaryQueryOp:o.tags.operatorKeyword,"CallTag ValueName":o.tags.atom,VariableName:o.tags.variableName,Callee:o.tags.operatorKeyword,Unit:o.tags.unit,"UniversalSelector NestingSelector":o.tags.definitionOperator,MatchOp:o.tags.compareOperator,"ChildOp SiblingOp, LogicOp":o.tags.logicOperator,BinOp:o.tags.arithmeticOperator,Important:o.tags.modifier,Comment:o.tags.blockComment,ParenthesizedContent:o.tags.special(o.tags.name),ColorLiteral:o.tags.color,StringLiteral:o.tags.string,":":o.tags.punctuation,"PseudoOp #":o.tags.derefOperator,"; ,":o.tags.separator,"( )":o.tags.paren,"[ ]":o.tags.squareBracket,"{ }":o.tags.brace});const W={__proto__:null,lang:32,"nth-child":32,"nth-last-child":32,"nth-of-type":32,"nth-last-of-type":32,dir:32,"host-context":32,url:60,"url-prefix":60,domain:60,regexp:60,selector:134};const v={__proto__:null,"@import":114,"@media":138,"@charset":142,"@namespace":146,"@keyframes":152,"@supports":164};const k={__proto__:null,not:128,only:128,from:158,to:160};const w=O.WQ.deserialize({version:14,states:"7WQYQ[OOO#_Q[OOOOQP'#Cd'#CdOOQP'#Cc'#CcO#fQ[O'#CfO$YQXO'#CaO$aQ[O'#ChO$lQ[O'#DPO$qQ[O'#DTOOQP'#Ed'#EdO$vQdO'#DeO%bQ[O'#DrO$vQdO'#DtO%sQ[O'#DvO&OQ[O'#DyO&TQ[O'#EPO&cQ[O'#EROOQS'#Ec'#EcOOQS'#ET'#ETQYQ[OOO&jQXO'#CdO'_QWO'#DaO'dQWO'#EjO'oQ[O'#EjQOQWOOOOQP'#Cg'#CgOOQP,59Q,59QO#fQ[O,59QO'yQ[O'#EWO(eQWO,58{O(mQ[O,59SO$lQ[O,59kO$qQ[O,59oO'yQ[O,59sO'yQ[O,59uO'yQ[O,59vO(xQ[O'#D`OOQS,58{,58{OOQP'#Ck'#CkOOQO'#C}'#C}OOQP,59S,59SO)PQWO,59SO)UQWO,59SOOQP'#DR'#DROOQP,59k,59kOOQO'#DV'#DVO)ZQ`O,59oOOQS'#Cp'#CpO$vQdO'#CqO)cQvO'#CsO*pQtO,5:POOQO'#Cx'#CxO)UQWO'#CwO+UQWO'#CyOOQS'#Eg'#EgOOQO'#Dh'#DhO+ZQ[O'#DoO+iQWO'#EkO&TQ[O'#DmO+wQWO'#DpOOQO'#El'#ElO(hQWO,5:^O+|QpO,5:`OOQS'#Dx'#DxO,UQWO,5:bO,ZQ[O,5:bOOQO'#D{'#D{O,cQWO,5:eO,hQWO,5:kO,pQWO,5:mOOQS-E8R-E8RO$vQdO,59{O,xQ[O'#EYO-VQWO,5;UO-VQWO,5;UOOQP1G.l1G.lO-|QXO,5:rOOQO-E8U-E8UOOQS1G.g1G.gOOQP1G.n1G.nO)PQWO1G.nO)UQWO1G.nOOQP1G/V1G/VO.ZQ`O1G/ZO.tQXO1G/_O/[QXO1G/aO/rQXO1G/bO0YQWO,59zO0_Q[O'#DOO0fQdO'#CoOOQP1G/Z1G/ZO$vQdO1G/ZO0mQpO,59]OOQS,59_,59_O$vQdO,59aO0uQWO1G/kOOQS,59c,59cO0zQ!bO,59eO1SQWO'#DhO1_QWO,5:TO1dQWO,5:ZO&TQ[O,5:VO&TQ[O'#EZO1lQWO,5;VO1wQWO,5:XO'yQ[O,5:[OOQS1G/x1G/xOOQS1G/z1G/zOOQS1G/|1G/|O2YQWO1G/|O2_QdO'#D|OOQS1G0P1G0POOQS1G0V1G0VOOQS1G0X1G0XO2mQtO1G/gOOQO,5:t,5:tO3TQ[O,5:tOOQO-E8W-E8WO3bQWO1G0pOOQP7+$Y7+$YOOQP7+$u7+$uO$vQdO7+$uOOQS1G/f1G/fO3mQXO'#EiO3tQWO,59jO3yQtO'#EUO4nQdO'#EfO4xQWO,59ZO4}QpO7+$uOOQS1G.w1G.wOOQS1G.{1G.{OOQS7+%V7+%VO5VQWO1G/PO$vQdO1G/oOOQO1G/u1G/uOOQO1G/q1G/qO5[QWO,5:uOOQO-E8X-E8XO5jQXO1G/vOOQS7+%h7+%hO5qQYO'#CsO(hQWO'#E[O5yQdO,5:hOOQS,5:h,5:hO6XQtO'#EXO$vQdO'#EXO7VQdO7+%ROOQO7+%R7+%ROOQO1G0`1G0`O7jQpO<T![;'S%^;'S;=`%o<%lO%^^;TUoWOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^^;nYoW#[UOy%^z!Q%^!Q![;g![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^^[[oW#[UOy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^_?VSpVOy%^z;'S%^;'S;=`%o<%lO%^^?hWjSOy%^z!O%^!O!P;O!P!Q%^!Q![>T![;'S%^;'S;=`%o<%lO%^_@VU#XPOy%^z!Q%^!Q![;g![;'S%^;'S;=`%o<%lO%^~@nTjSOy%^z{@}{;'S%^;'S;=`%o<%lO%^~ASUoWOy@}yzAfz{Bm{;'S@};'S;=`Co<%lO@}~AiTOzAfz{Ax{;'SAf;'S;=`Bg<%lOAf~A{VOzAfz{Ax{!PAf!P!QBb!Q;'SAf;'S;=`Bg<%lOAf~BgOR~~BjP;=`<%lAf~BrWoWOy@}yzAfz{Bm{!P@}!P!QC[!Q;'S@};'S;=`Co<%lO@}~CcSoWR~Oy%^z;'S%^;'S;=`%o<%lO%^~CrP;=`<%l@}^Cz[#[UOy%^z!O%^!O!P;g!P!Q%^!Q![>T![!g%^!g!h<^!h#X%^#X#Y<^#Y;'S%^;'S;=`%o<%lO%^XDuU]POy%^z![%^![!]EX!];'S%^;'S;=`%o<%lO%^XE`S^PoWOy%^z;'S%^;'S;=`%o<%lO%^_EqS!WVOy%^z;'S%^;'S;=`%o<%lO%^YFSSzQOy%^z;'S%^;'S;=`%o<%lO%^XFeU|POy%^z!`%^!`!aFw!a;'S%^;'S;=`%o<%lO%^XGOS|PoWOy%^z;'S%^;'S;=`%o<%lO%^XG_WOy%^z!c%^!c!}Gw!}#T%^#T#oGw#o;'S%^;'S;=`%o<%lO%^XHO[!YPoWOy%^z}%^}!OGw!O!Q%^!Q![Gw![!c%^!c!}Gw!}#T%^#T#oGw#o;'S%^;'S;=`%o<%lO%^XHySxPOy%^z;'S%^;'S;=`%o<%lO%^^I[SvUOy%^z;'S%^;'S;=`%o<%lO%^XIkUOy%^z#b%^#b#cI}#c;'S%^;'S;=`%o<%lO%^XJSUoWOy%^z#W%^#W#XJf#X;'S%^;'S;=`%o<%lO%^XJmS!`PoWOy%^z;'S%^;'S;=`%o<%lO%^XJ|UOy%^z#f%^#f#gJf#g;'S%^;'S;=`%o<%lO%^XKeS!RPOy%^z;'S%^;'S;=`%o<%lO%^_KvS!QVOy%^z;'S%^;'S;=`%o<%lO%^ZLXU!PPOy%^z!_%^!_!`6y!`;'S%^;'S;=`%o<%lO%^WLnP;=`<%l$}",tokenizers:[P,$,b,0,1,2,3],topRules:{StyleSheet:[0,4],Styles:[1,84]},specialized:[{term:95,get:e=>W[e]||-1},{term:56,get:e=>v[e]||-1},{term:96,get:e=>k[e]||-1}],tokenPrec:1123});var z=t(24104);var x=t(73265);let R=null;function U(){if(!R&&typeof document=="object"&&document.body){let{style:e}=document.body,a=[],t=new Set;for(let O in e)if(O!="cssText"&&O!="cssFloat"){if(typeof e[O]=="string"){if(/[A-Z]/.test(O))O=O.replace(/[A-Z]/g,(e=>"-"+e.toLowerCase()));if(!t.has(O)){a.push(O);t.add(O)}}}R=a.sort().map((e=>({type:"property",label:e})))}return R||[]}const T=["active","after","any-link","autofill","backdrop","before","checked","cue","default","defined","disabled","empty","enabled","file-selector-button","first","first-child","first-letter","first-line","first-of-type","focus","focus-visible","focus-within","fullscreen","has","host","host-context","hover","in-range","indeterminate","invalid","is","lang","last-child","last-of-type","left","link","marker","modal","not","nth-child","nth-last-child","nth-last-of-type","nth-of-type","only-child","only-of-type","optional","out-of-range","part","placeholder","placeholder-shown","read-only","read-write","required","right","root","scope","selection","slotted","target","target-text","valid","visited","where"].map((e=>({type:"class",label:e})));const _=["above","absolute","activeborder","additive","activecaption","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","antialiased","appworkspace","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","button-bevel","buttonface","buttonhighlight","buttonshadow","buttontext","calc","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic-abegede-gez","ethiopic-halehame-aa-er","ethiopic-halehame-gez","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","graytext","grid","groove","hand","hard-light","help","hidden","hide","higher","highlight","highlighttext","horizontal","hsl","hsla","hue","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","justify","keep-all","landscape","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-hexadecimal","lower-latin","lower-norwegian","lowercase","ltr","luminosity","manipulation","match","matrix","matrix3d","medium","menu","menutext","message-box","middle","min-intrinsic","mix","monospace","move","multiple","multiple_mask_images","multiply","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","opacity","open-quote","optimizeLegibility","optimizeSpeed","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","self-start","self-end","semi-condensed","semi-expanded","separate","serif","show","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","text","text-bottom","text-top","textarea","textfield","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","to","top","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-latin","uppercase","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"].map((e=>({type:"keyword",label:e}))).concat(["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"].map((e=>({type:"constant",label:e}))));const V=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map((e=>({type:"type",label:e})));const Y=/^(\w[\w-]*|-\w[\w-]*|)$/,C=/^-(-[\w-]*)?$/;function Z(e,a){var t;if(e.name=="("||e.type.isError)e=e.parent||e;if(e.name!="ArgList")return false;let O=(t=e.parent)===null||t===void 0?void 0:t.firstChild;if((O===null||O===void 0?void 0:O.name)!="Callee")return false;return a.sliceString(O.from,O.to)=="var"}const G=new x.NodeWeakMap;const q=["Declaration"];function N(e){for(let a=e;;){if(a.type.isTop)return a;if(!(a=a.parent))return e}}function j(e,a){if(a.to-a.from>4096){let t=G.get(a);if(t)return t;let O=[],o=new Set,r=a.cursor(x.IterMode.IncludeAnonymous);if(r.firstChild())do{for(let a of j(e,r.node))if(!o.has(a.label)){o.add(a.label);O.push(a)}}while(r.nextSibling());G.set(a,O);return O}else{let t=[],O=new Set;a.cursor().iterate((a=>{var o;if(a.name=="VariableName"&&a.matchContext(q)&&((o=a.node.nextSibling)===null||o===void 0?void 0:o.name)==":"){let o=e.sliceString(a.from,a.to);if(!O.has(o)){O.add(o);t.push({label:o,type:"variable"})}}}));return t}}const E=e=>{let{state:a,pos:t}=e,O=(0,z.syntaxTree)(a).resolveInner(t,-1);let o=O.type.isError&&O.from==O.to-1&&a.doc.sliceString(O.from,O.to)=="-";if(O.name=="PropertyName"||(o||O.name=="TagName")&&/^(Block|Styles)$/.test(O.resolve(O.to).name))return{from:O.from,options:U(),validFor:Y};if(O.name=="ValueName")return{from:O.from,options:_,validFor:Y};if(O.name=="PseudoClassName")return{from:O.from,options:T,validFor:Y};if(O.name=="VariableName"||(e.explicit||o)&&Z(O,a.doc))return{from:O.name=="VariableName"?O.from:t,options:j(a.doc,N(O)),validFor:C};if(O.name=="TagName"){for(let{parent:e}=O;e;e=e.parent)if(e.name=="Block")return{from:O.from,options:U(),validFor:Y};return{from:O.from,options:V,validFor:Y}}if(!e.explicit)return null;let r=O.resolve(t),l=r.childBefore(t);if(l&&l.name==":"&&r.name=="PseudoClassSelector")return{from:t,options:T,validFor:Y};if(l&&l.name==":"&&r.name=="Declaration"||r.name=="ArgList")return{from:t,options:_,validFor:Y};if(r.name=="Block"||r.name=="Styles")return{from:t,options:U(),validFor:Y};return null};const D=z.LRLanguage.define({name:"css",parser:w.configure({props:[z.indentNodeProp.add({Declaration:(0,z.continuedIndent)()}),z.foldNodeProp.add({Block:z.foldInside})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function I(){return new z.LanguageSupport(D,D.data.of({autocomplete:E}))}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/5203.c002d40ac647dc6e1d61.js b/bootcamp/share/jupyter/lab/static/5203.c002d40ac647dc6e1d61.js new file mode 100644 index 0000000..bd7b715 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/5203.c002d40ac647dc6e1d61.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5203],{75203:(e,t,a)=>{a.r(t);a.d(t,{ebnf:()=>c});var s={slash:0,parenthesis:1};var r={comment:0,_string:1,characterClass:2};const c={name:"ebnf",startState:function(){return{stringType:null,commentType:null,braced:0,lhs:true,localState:null,stack:[],inDefinition:false}},token:function(e,t){if(!e)return;if(t.stack.length===0){if(e.peek()=='"'||e.peek()=="'"){t.stringType=e.peek();e.next();t.stack.unshift(r._string)}else if(e.match("/*")){t.stack.unshift(r.comment);t.commentType=s.slash}else if(e.match("(*")){t.stack.unshift(r.comment);t.commentType=s.parenthesis}}switch(t.stack[0]){case r._string:while(t.stack[0]===r._string&&!e.eol()){if(e.peek()===t.stringType){e.next();t.stack.shift()}else if(e.peek()==="\\"){e.next();e.next()}else{e.match(/^.[^\\\"\']*/)}}return t.lhs?"property":"string";case r.comment:while(t.stack[0]===r.comment&&!e.eol()){if(t.commentType===s.slash&&e.match("*/")){t.stack.shift();t.commentType=null}else if(t.commentType===s.parenthesis&&e.match("*)")){t.stack.shift();t.commentType=null}else{e.match(/^.[^\*]*/)}}return"comment";case r.characterClass:while(t.stack[0]===r.characterClass&&!e.eol()){if(!(e.match(/^[^\]\\]+/)||e.match("."))){t.stack.shift()}}return"operator"}var a=e.peek();switch(a){case"[":e.next();t.stack.unshift(r.characterClass);return"bracket";case":":case"|":case";":e.next();return"operator";case"%":if(e.match("%%")){return"header"}else if(e.match(/[%][A-Za-z]+/)){return"keyword"}else if(e.match(/[%][}]/)){return"bracket"}break;case"/":if(e.match(/[\/][A-Za-z]+/)){return"keyword"}case"\\":if(e.match(/[\][a-z]+/)){return"string.special"}case".":if(e.match(".")){return"atom"}case"*":case"-":case"+":case"^":if(e.match(a)){return"atom"}case"$":if(e.match("$$")){return"builtin"}else if(e.match(/[$][0-9]+/)){return"variableName.special"}case"<":if(e.match(/<<[a-zA-Z_]+>>/)){return"builtin"}}if(e.match("//")){e.skipToEnd();return"comment"}else if(e.match("return")){return"operator"}else if(e.match(/^[a-zA-Z_][a-zA-Z0-9_]*/)){if(e.match(/(?=[\(.])/)){return"variable"}else if(e.match(/(?=[\s\n]*[:=])/)){return"def"}return"variableName.special"}else if(["[","]","(",")"].indexOf(e.peek())!=-1){e.next();return"bracket"}else if(!e.eatSpace()){e.next()}return null}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/5331.0cd3f010bb08983ec3fd.js b/bootcamp/share/jupyter/lab/static/5331.0cd3f010bb08983ec3fd.js new file mode 100644 index 0000000..6980c88 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/5331.0cd3f010bb08983ec3fd.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5331],{45331:(t,a,r)=>{r.r(a);r.d(a,{troff:()=>i});var n={};function e(t){if(t.eatSpace())return null;var a=t.sol();var r=t.next();if(r==="\\"){if(t.match("fB")||t.match("fR")||t.match("fI")||t.match("u")||t.match("d")||t.match("%")||t.match("&")){return"string"}if(t.match("m[")){t.skipTo("]");t.next();return"string"}if(t.match("s+")||t.match("s-")){t.eatWhile(/[\d-]/);return"string"}if(t.match("(")||t.match("*(")){t.eatWhile(/[\w-]/);return"string"}return"string"}if(a&&(r==="."||r==="'")){if(t.eat("\\")&&t.eat('"')){t.skipToEnd();return"comment"}}if(a&&r==="."){if(t.match("B ")||t.match("I ")||t.match("R ")){return"attribute"}if(t.match("TH ")||t.match("SH ")||t.match("SS ")||t.match("HP ")){t.skipToEnd();return"quote"}if(t.match(/[A-Z]/)&&t.match(/[A-Z]/)||t.match(/[a-z]/)&&t.match(/[a-z]/)){return"attribute"}}t.eatWhile(/[\w-]/);var e=t.current();return n.hasOwnProperty(e)?n[e]:null}function c(t,a){return(a.tokens[0]||e)(t,a)}const i={name:"troff",startState:function(){return{tokens:[]}},token:function(t,a){return c(t,a)}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/5440.2541fcda12b661665148.js b/bootcamp/share/jupyter/lab/static/5440.2541fcda12b661665148.js new file mode 100644 index 0000000..6165d26 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/5440.2541fcda12b661665148.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5440,4155],{96562:e=>{"use strict";function t(e,t){var r=e;t.slice(0,-1).forEach((function(e){r=r[e]||{}}));var n=t[t.length-1];return n in r}function r(e){if(typeof e==="number"){return true}if(/^0x[0-9a-f]+$/i.test(e)){return true}return/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(e)}function n(e,t){return t==="constructor"&&typeof e[t]==="function"||t==="__proto__"}e.exports=function(e,o){if(!o){o={}}var i={bools:{},strings:{},unknownFn:null};if(typeof o.unknown==="function"){i.unknownFn=o.unknown}if(typeof o.boolean==="boolean"&&o.boolean){i.allBools=true}else{[].concat(o.boolean).filter(Boolean).forEach((function(e){i.bools[e]=true}))}var s={};function a(e){return s[e].some((function(e){return i.bools[e]}))}Object.keys(o.alias||{}).forEach((function(e){s[e]=[].concat(o.alias[e]);s[e].forEach((function(t){s[t]=[e].concat(s[e].filter((function(e){return t!==e})))}))}));[].concat(o.string).filter(Boolean).forEach((function(e){i.strings[e]=true;if(s[e]){[].concat(s[e]).forEach((function(e){i.strings[e]=true}))}}));var f=o.default||{};var l={_:[]};function u(e,t){return i.allBools&&/^--[^=]+$/.test(t)||i.strings[e]||i.bools[e]||s[e]}function c(e,t,r){var o=e;for(var s=0;s{"use strict";var n=r(34155);function o(e){if(typeof e!=="string"){throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}}function i(e,t){var r="";var n=0;var o=-1;var i=0;var s;for(var a=0;a<=e.length;++a){if(a2){var f=r.lastIndexOf("/");if(f!==r.length-1){if(f===-1){r="";n=0}else{r=r.slice(0,f);n=r.length-1-r.lastIndexOf("/")}o=a;i=0;continue}}else if(r.length===2||r.length===1){r="";n=0;o=a;i=0;continue}}if(t){if(r.length>0)r+="/..";else r="..";n=2}}else{if(r.length>0)r+="/"+e.slice(o+1,a);else r=e.slice(o+1,a);n=a-o-1}o=a;i=0}else if(s===46&&i!==-1){++i}else{i=-1}}return r}function s(e,t){var r=t.dir||t.root;var n=t.base||(t.name||"")+(t.ext||"");if(!r){return n}if(r===t.root){return r+n}return r+e+n}var a={resolve:function e(){var t="";var r=false;var s;for(var a=arguments.length-1;a>=-1&&!r;a--){var f;if(a>=0)f=arguments[a];else{if(s===undefined)s=n.cwd();f=s}o(f);if(f.length===0){continue}t=f+"/"+t;r=f.charCodeAt(0)===47}t=i(t,!r);if(r){if(t.length>0)return"/"+t;else return"/"}else if(t.length>0){return t}else{return"."}},normalize:function e(t){o(t);if(t.length===0)return".";var r=t.charCodeAt(0)===47;var n=t.charCodeAt(t.length-1)===47;t=i(t,!r);if(t.length===0&&!r)t=".";if(t.length>0&&n)t+="/";if(r)return"/"+t;return t},isAbsolute:function e(t){o(t);return t.length>0&&t.charCodeAt(0)===47},join:function e(){if(arguments.length===0)return".";var t;for(var r=0;r0){if(t===undefined)t=n;else t+="/"+n}}if(t===undefined)return".";return a.normalize(t)},relative:function e(t,r){o(t);o(r);if(t===r)return"";t=a.resolve(t);r=a.resolve(r);if(t===r)return"";var n=1;for(;nc){if(r.charCodeAt(f+p)===47){return r.slice(f+p+1)}else if(p===0){return r.slice(f+p)}}else if(s>c){if(t.charCodeAt(n+p)===47){h=p}else if(p===0){h=0}}break}var d=t.charCodeAt(n+p);var v=r.charCodeAt(f+p);if(d!==v)break;else if(d===47)h=p}var g="";for(p=n+h+1;p<=i;++p){if(p===i||t.charCodeAt(p)===47){if(g.length===0)g+="..";else g+="/.."}}if(g.length>0)return g+r.slice(f+h);else{f+=h;if(r.charCodeAt(f)===47)++f;return r.slice(f)}},_makeLong:function e(t){return t},dirname:function e(t){o(t);if(t.length===0)return".";var r=t.charCodeAt(0);var n=r===47;var i=-1;var s=true;for(var a=t.length-1;a>=1;--a){r=t.charCodeAt(a);if(r===47){if(!s){i=a;break}}else{s=false}}if(i===-1)return n?"/":".";if(n&&i===1)return"//";return t.slice(0,i)},basename:function e(t,r){if(r!==undefined&&typeof r!=="string")throw new TypeError('"ext" argument must be a string');o(t);var n=0;var i=-1;var s=true;var a;if(r!==undefined&&r.length>0&&r.length<=t.length){if(r.length===t.length&&r===t)return"";var f=r.length-1;var l=-1;for(a=t.length-1;a>=0;--a){var u=t.charCodeAt(a);if(u===47){if(!s){n=a+1;break}}else{if(l===-1){s=false;l=a+1}if(f>=0){if(u===r.charCodeAt(f)){if(--f===-1){i=a}}else{f=-1;i=l}}}}if(n===i)i=l;else if(i===-1)i=t.length;return t.slice(n,i)}else{for(a=t.length-1;a>=0;--a){if(t.charCodeAt(a)===47){if(!s){n=a+1;break}}else if(i===-1){s=false;i=a+1}}if(i===-1)return"";return t.slice(n,i)}},extname:function e(t){o(t);var r=-1;var n=0;var i=-1;var s=true;var a=0;for(var f=t.length-1;f>=0;--f){var l=t.charCodeAt(f);if(l===47){if(!s){n=f+1;break}continue}if(i===-1){s=false;i=f+1}if(l===46){if(r===-1)r=f;else if(a!==1)a=1}else if(r!==-1){a=-1}}if(r===-1||i===-1||a===0||a===1&&r===i-1&&r===n+1){return""}return t.slice(r,i)},format:function e(t){if(t===null||typeof t!=="object"){throw new TypeError('The "pathObject" argument must be of type Object. Received type '+typeof t)}return s("/",t)},parse:function e(t){o(t);var r={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return r;var n=t.charCodeAt(0);var i=n===47;var s;if(i){r.root="/";s=1}else{s=0}var a=-1;var f=0;var l=-1;var u=true;var c=t.length-1;var h=0;for(;c>=s;--c){n=t.charCodeAt(c);if(n===47){if(!u){f=c+1;break}continue}if(l===-1){u=false;l=c+1}if(n===46){if(a===-1)a=c;else if(h!==1)h=1}else if(a!==-1){h=-1}}if(a===-1||l===-1||h===0||h===1&&a===l-1&&a===f+1){if(l!==-1){if(f===0&&i)r.base=r.name=t.slice(1,l);else r.base=r.name=t.slice(f,l)}}else{if(f===0&&i){r.name=t.slice(1,a);r.base=t.slice(1,l)}else{r.name=t.slice(f,a);r.base=t.slice(f,l)}r.ext=t.slice(a,l)}if(f>0)r.dir=t.slice(0,f-1);else if(i)r.dir="/";return r},sep:"/",delimiter:":",win32:null,posix:null};a.posix=a;e.exports=a},34155:e=>{var t=e.exports={};var r;var n;function o(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){r=setTimeout}else{r=o}}catch(e){r=o}try{if(typeof clearTimeout==="function"){n=clearTimeout}else{n=i}}catch(e){n=i}})();function s(e){if(r===setTimeout){return setTimeout(e,0)}if((r===o||!r)&&setTimeout){r=setTimeout;return setTimeout(e,0)}try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}function a(e){if(n===clearTimeout){return clearTimeout(e)}if((n===i||!n)&&clearTimeout){n=clearTimeout;return clearTimeout(e)}try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}var f=[];var l=false;var u;var c=-1;function h(){if(!l||!u){return}l=false;if(u.length){f=u.concat(f)}else{c=-1}if(f.length){p()}}function p(){if(l){return}var e=s(h);l=true;var t=f.length;while(t){u=f;f=[];while(++c1){for(var r=1;r{"use strict";var r=Object.prototype.hasOwnProperty,n;function o(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return null}}function i(e){try{return encodeURIComponent(e)}catch(t){return null}}function s(e){var t=/([^=?#&]+)=?([^&]*)/g,r={},n;while(n=t.exec(e)){var i=o(n[1]),s=o(n[2]);if(i===null||s===null||i in r)continue;r[i]=s}return r}function a(e,t){t=t||"";var o=[],s,a;if("string"!==typeof t)t="?";for(a in e){if(r.call(e,a)){s=e[a];if(!s&&(s===null||s===n||isNaN(s))){s=""}a=i(a);s=i(s);if(a===null||s===null)continue;o.push(a+"="+s)}}return o.length?t+o.join("&"):""}t.stringify=a;t.parse=s},47418:e=>{"use strict";e.exports=function e(t,r){r=r.split(":")[0];t=+t;if(!t)return false;switch(r){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return false}return t!==0}},84564:(e,t,r)=>{"use strict";var n=r(47418),o=r(57129),i=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,s=/[\n\r\t]/g,a=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,f=/:\d+$/,l=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,u=/^[a-zA-Z]:/;function c(e){return(e?e:"").toString().replace(i,"")}var h=[["#","hash"],["?","query"],function e(t,r){return v(r.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",undefined,1,1],[/:(\d*)$/,"port",undefined,1],[NaN,"hostname",undefined,1,1]];var p={hash:1,query:1};function d(e){var t;if(typeof window!=="undefined")t=window;else if(typeof r.g!=="undefined")t=r.g;else if(typeof self!=="undefined")t=self;else t={};var n=t.location||{};e=e||n;var o={},i=typeof e,s;if("blob:"===e.protocol){o=new b(unescape(e.pathname),{})}else if("string"===i){o=new b(e,{});for(s in p)delete o[s]}else if("object"===i){for(s in e){if(s in p)continue;o[s]=e[s]}if(o.slashes===undefined){o.slashes=a.test(e.href)}}return o}function v(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function g(e,t){e=c(e);e=e.replace(s,"");t=t||{};var r=l.exec(e);var n=r[1]?r[1].toLowerCase():"";var o=!!r[2];var i=!!r[3];var a=0;var f;if(o){if(i){f=r[2]+r[3]+r[4];a=r[2].length+r[3].length}else{f=r[2]+r[4];a=r[2].length}}else{if(i){f=r[3]+r[4];a=r[3].length}else{f=r[4]}}if(n==="file:"){if(a>=2){f=f.slice(2)}}else if(v(n)){f=r[4]}else if(n){if(o){f=f.slice(2)}}else if(a>=2&&v(t.protocol)){f=r[4]}return{protocol:n,slashes:o||v(n),slashesCount:a,rest:f}}function m(e,t){if(e==="")return t;var r=(t||"/").split("/").slice(0,-1).concat(e.split("/")),n=r.length,o=r[n-1],i=false,s=0;while(n--){if(r[n]==="."){r.splice(n,1)}else if(r[n]===".."){r.splice(n,1);s++}else if(s){if(n===0)i=true;r.splice(n,1);s--}}if(i)r.unshift("");if(o==="."||o==="..")r.push("");return r.join("/")}function b(e,t,r){e=c(e);e=e.replace(s,"");if(!(this instanceof b)){return new b(e,t,r)}var i,a,f,l,p,y,w=h.slice(),C=typeof t,A=this,k=0;if("object"!==C&&"string"!==C){r=t;t=null}if(r&&"function"!==typeof r)r=o.parse;t=d(t);a=g(e||"",t);i=!a.protocol&&!a.slashes;A.slashes=a.slashes||i&&t.slashes;A.protocol=a.protocol||t.protocol||"";e=a.rest;if(a.protocol==="file:"&&(a.slashesCount!==2||u.test(e))||!a.slashes&&(a.protocol||a.slashesCount<2||!v(A.protocol))){w[3]=[/(.*)/,"pathname"]}for(;k{r.r(t);r.d(t,{perl:()=>_});function n(e,t){return e.string.charAt(e.pos+(t||0))}function i(e,t){if(t){var r=e.pos-t;return e.string.substr(r>=0?r:0,t)}else{return e.string.substr(0,e.pos-1)}}function s(e,t){var r=e.string.length;var n=r-e.pos+1;return e.string.substr(e.pos,t&&t=(n=e.string.length-1))e.pos=n;else e.pos=r}var a={"->":4,"++":4,"--":4,"**":4,"=~":4,"!~":4,"*":4,"/":4,"%":4,x:4,"+":4,"-":4,".":4,"<<":4,">>":4,"<":4,">":4,"<=":4,">=":4,lt:4,gt:4,le:4,ge:4,"==":4,"!=":4,"<=>":4,eq:4,ne:4,cmp:4,"~~":4,"&":4,"|":4,"^":4,"&&":4,"||":4,"//":4,"..":4,"...":4,"?":4,":":4,"=":4,"+=":4,"-=":4,"*=":4,",":4,"=>":4,"::":4,not:4,and:4,or:4,xor:4,BEGIN:[5,1],END:[5,1],PRINT:[5,1],PRINTF:[5,1],GETC:[5,1],READ:[5,1],READLINE:[5,1],DESTROY:[5,1],TIE:[5,1],TIEHANDLE:[5,1],UNTIE:[5,1],STDIN:5,STDIN_TOP:5,STDOUT:5,STDOUT_TOP:5,STDERR:5,STDERR_TOP:5,$ARG:5,$_:5,"@ARG":5,"@_":5,$LIST_SEPARATOR:5,'$"':5,$PROCESS_ID:5,$PID:5,$$:5,$REAL_GROUP_ID:5,$GID:5,"$(":5,$EFFECTIVE_GROUP_ID:5,$EGID:5,"$)":5,$PROGRAM_NAME:5,$0:5,$SUBSCRIPT_SEPARATOR:5,$SUBSEP:5,"$;":5,$REAL_USER_ID:5,$UID:5,"$<":5,$EFFECTIVE_USER_ID:5,$EUID:5,"$>":5,$a:5,$b:5,$COMPILING:5,"$^C":5,$DEBUGGING:5,"$^D":5,"${^ENCODING}":5,$ENV:5,"%ENV":5,$SYSTEM_FD_MAX:5,"$^F":5,"@F":5,"${^GLOBAL_PHASE}":5,"$^H":5,"%^H":5,"@INC":5,"%INC":5,$INPLACE_EDIT:5,"$^I":5,"$^M":5,$OSNAME:5,"$^O":5,"${^OPEN}":5,$PERLDB:5,"$^P":5,$SIG:5,"%SIG":5,$BASETIME:5,"$^T":5,"${^TAINT}":5,"${^UNICODE}":5,"${^UTF8CACHE}":5,"${^UTF8LOCALE}":5,$PERL_VERSION:5,"$^V":5,"${^WIN32_SLOPPY_STAT}":5,$EXECUTABLE_NAME:5,"$^X":5,$1:5,$MATCH:5,"$&":5,"${^MATCH}":5,$PREMATCH:5,"$`":5,"${^PREMATCH}":5,$POSTMATCH:5,"$'":5,"${^POSTMATCH}":5,$LAST_PAREN_MATCH:5,"$+":5,$LAST_SUBMATCH_RESULT:5,"$^N":5,"@LAST_MATCH_END":5,"@+":5,"%LAST_PAREN_MATCH":5,"%+":5,"@LAST_MATCH_START":5,"@-":5,"%LAST_MATCH_START":5,"%-":5,$LAST_REGEXP_CODE_RESULT:5,"$^R":5,"${^RE_DEBUG_FLAGS}":5,"${^RE_TRIE_MAXBUF}":5,$ARGV:5,"@ARGV":5,ARGV:5,ARGVOUT:5,$OUTPUT_FIELD_SEPARATOR:5,$OFS:5,"$,":5,$INPUT_LINE_NUMBER:5,$NR:5,"$.":5,$INPUT_RECORD_SEPARATOR:5,$RS:5,"$/":5,$OUTPUT_RECORD_SEPARATOR:5,$ORS:5,"$\\":5,$OUTPUT_AUTOFLUSH:5,"$|":5,$ACCUMULATOR:5,"$^A":5,$FORMAT_FORMFEED:5,"$^L":5,$FORMAT_PAGE_NUMBER:5,"$%":5,$FORMAT_LINES_LEFT:5,"$-":5,$FORMAT_LINE_BREAK_CHARACTERS:5,"$:":5,$FORMAT_LINES_PER_PAGE:5,"$=":5,$FORMAT_TOP_NAME:5,"$^":5,$FORMAT_NAME:5,"$~":5,"${^CHILD_ERROR_NATIVE}":5,$EXTENDED_OS_ERROR:5,"$^E":5,$EXCEPTIONS_BEING_CAUGHT:5,"$^S":5,$WARNING:5,"$^W":5,"${^WARNING_BITS}":5,$OS_ERROR:5,$ERRNO:5,"$!":5,"%OS_ERROR":5,"%ERRNO":5,"%!":5,$CHILD_ERROR:5,"$?":5,$EVAL_ERROR:5,"$@":5,$OFMT:5,"$#":5,"$*":5,$ARRAY_BASE:5,"$[":5,$OLD_PERL_VERSION:5,"$]":5,if:[1,1],elsif:[1,1],else:[1,1],while:[1,1],unless:[1,1],for:[1,1],foreach:[1,1],abs:1,accept:1,alarm:1,atan2:1,bind:1,binmode:1,bless:1,bootstrap:1,break:1,caller:1,chdir:1,chmod:1,chomp:1,chop:1,chown:1,chr:1,chroot:1,close:1,closedir:1,connect:1,continue:[1,1],cos:1,crypt:1,dbmclose:1,dbmopen:1,default:1,defined:1,delete:1,die:1,do:1,dump:1,each:1,endgrent:1,endhostent:1,endnetent:1,endprotoent:1,endpwent:1,endservent:1,eof:1,eval:1,exec:1,exists:1,exit:1,exp:1,fcntl:1,fileno:1,flock:1,fork:1,format:1,formline:1,getc:1,getgrent:1,getgrgid:1,getgrnam:1,gethostbyaddr:1,gethostbyname:1,gethostent:1,getlogin:1,getnetbyaddr:1,getnetbyname:1,getnetent:1,getpeername:1,getpgrp:1,getppid:1,getpriority:1,getprotobyname:1,getprotobynumber:1,getprotoent:1,getpwent:1,getpwnam:1,getpwuid:1,getservbyname:1,getservbyport:1,getservent:1,getsockname:1,getsockopt:1,given:1,glob:1,gmtime:1,goto:1,grep:1,hex:1,import:1,index:1,int:1,ioctl:1,join:1,keys:1,kill:1,last:1,lc:1,lcfirst:1,length:1,link:1,listen:1,local:2,localtime:1,lock:1,log:1,lstat:1,m:null,map:1,mkdir:1,msgctl:1,msgget:1,msgrcv:1,msgsnd:1,my:2,new:1,next:1,no:1,oct:1,open:1,opendir:1,ord:1,our:2,pack:1,package:1,pipe:1,pop:1,pos:1,print:1,printf:1,prototype:1,push:1,q:null,qq:null,qr:null,quotemeta:null,qw:null,qx:null,rand:1,read:1,readdir:1,readline:1,readlink:1,readpipe:1,recv:1,redo:1,ref:1,rename:1,require:1,reset:1,return:1,reverse:1,rewinddir:1,rindex:1,rmdir:1,s:null,say:1,scalar:1,seek:1,seekdir:1,select:1,semctl:1,semget:1,semop:1,send:1,setgrent:1,sethostent:1,setnetent:1,setpgrp:1,setpriority:1,setprotoent:1,setpwent:1,setservent:1,setsockopt:1,shift:1,shmctl:1,shmget:1,shmread:1,shmwrite:1,shutdown:1,sin:1,sleep:1,socket:1,socketpair:1,sort:1,splice:1,split:1,sprintf:1,sqrt:1,srand:1,stat:1,state:1,study:1,sub:1,substr:1,symlink:1,syscall:1,sysopen:1,sysread:1,sysseek:1,system:1,syswrite:1,tell:1,telldir:1,tie:1,tied:1,time:1,times:1,tr:null,truncate:1,uc:1,ucfirst:1,umask:1,undef:1,unlink:1,unpack:1,unshift:1,untie:1,use:1,utime:1,values:1,vec:1,wait:1,waitpid:1,wantarray:1,warn:1,when:1,write:1,y:null};var l="string.special";var f=/[goseximacplud]/;function o(e,t,r,n,i){t.chain=null;t.style=null;t.tail=null;t.tokenize=function(e,t){var s=false,u,a=0;while(u=e.next()){if(u===r[a]&&!s){if(r[++a]!==undefined){t.chain=r[a];t.style=n;t.tail=i}else if(i)e.eatWhile(i);t.tokenize=E;return n}s=!s&&u=="\\"}return n};return t.tokenize(e,t)}function $(e,t,r){t.tokenize=function(e,t){if(e.string==r)t.tokenize=E;e.skipToEnd();return"string"};return t.tokenize(e,t)}function E(e,t){if(e.eatSpace())return null;if(t.chain)return o(e,t,t.chain,t.style,t.tail);if(e.match(/^(\-?((\d[\d_]*)?\.\d+(e[+-]?\d+)?|\d+\.\d*)|0x[\da-fA-F_]+|0b[01_]+|\d[\d_]*(e[+-]?\d+)?)/))return"number";if(e.match(/^<<(?=[_a-zA-Z])/)){e.eatWhile(/\w/);return $(e,t,e.current().substr(2))}if(e.sol()&&e.match(/^\=item(?!\w)/)){return $(e,t,"=cut")}var r=e.next();if(r=='"'||r=="'"){if(i(e,3)=="<<"+r){var E=e.pos;e.eatWhile(/\w/);var _=e.current().substr(1);if(_&&e.eat(r))return $(e,t,_);e.pos=E}return o(e,t,[r],"string")}if(r=="q"){var p=n(e,-2);if(!(p&&/\w/.test(p))){p=n(e,0);if(p=="x"){p=n(e,1);if(p=="("){u(e,2);return o(e,t,[")"],l,f)}if(p=="["){u(e,2);return o(e,t,["]"],l,f)}if(p=="{"){u(e,2);return o(e,t,["}"],l,f)}if(p=="<"){u(e,2);return o(e,t,[">"],l,f)}if(/[\^'"!~\/]/.test(p)){u(e,1);return o(e,t,[e.eat(p)],l,f)}}else if(p=="q"){p=n(e,1);if(p=="("){u(e,2);return o(e,t,[")"],"string")}if(p=="["){u(e,2);return o(e,t,["]"],"string")}if(p=="{"){u(e,2);return o(e,t,["}"],"string")}if(p=="<"){u(e,2);return o(e,t,[">"],"string")}if(/[\^'"!~\/]/.test(p)){u(e,1);return o(e,t,[e.eat(p)],"string")}}else if(p=="w"){p=n(e,1);if(p=="("){u(e,2);return o(e,t,[")"],"bracket")}if(p=="["){u(e,2);return o(e,t,["]"],"bracket")}if(p=="{"){u(e,2);return o(e,t,["}"],"bracket")}if(p=="<"){u(e,2);return o(e,t,[">"],"bracket")}if(/[\^'"!~\/]/.test(p)){u(e,1);return o(e,t,[e.eat(p)],"bracket")}}else if(p=="r"){p=n(e,1);if(p=="("){u(e,2);return o(e,t,[")"],l,f)}if(p=="["){u(e,2);return o(e,t,["]"],l,f)}if(p=="{"){u(e,2);return o(e,t,["}"],l,f)}if(p=="<"){u(e,2);return o(e,t,[">"],l,f)}if(/[\^'"!~\/]/.test(p)){u(e,1);return o(e,t,[e.eat(p)],l,f)}}else if(/[\^'"!~\/(\[{<]/.test(p)){if(p=="("){u(e,1);return o(e,t,[")"],"string")}if(p=="["){u(e,1);return o(e,t,["]"],"string")}if(p=="{"){u(e,1);return o(e,t,["}"],"string")}if(p=="<"){u(e,1);return o(e,t,[">"],"string")}if(/[\^'"!~\/]/.test(p)){return o(e,t,[e.eat(p)],"string")}}}}if(r=="m"){var p=n(e,-2);if(!(p&&/\w/.test(p))){p=e.eat(/[(\[{<\^'"!~\/]/);if(p){if(/[\^'"!~\/]/.test(p)){return o(e,t,[p],l,f)}if(p=="("){return o(e,t,[")"],l,f)}if(p=="["){return o(e,t,["]"],l,f)}if(p=="{"){return o(e,t,["}"],l,f)}if(p=="<"){return o(e,t,[">"],l,f)}}}}if(r=="s"){var p=/[\/>\]})\w]/.test(n(e,-2));if(!p){p=e.eat(/[(\[{<\^'"!~\/]/);if(p){if(p=="[")return o(e,t,["]","]"],l,f);if(p=="{")return o(e,t,["}","}"],l,f);if(p=="<")return o(e,t,[">",">"],l,f);if(p=="(")return o(e,t,[")",")"],l,f);return o(e,t,[p,p],l,f)}}}if(r=="y"){var p=/[\/>\]})\w]/.test(n(e,-2));if(!p){p=e.eat(/[(\[{<\^'"!~\/]/);if(p){if(p=="[")return o(e,t,["]","]"],l,f);if(p=="{")return o(e,t,["}","}"],l,f);if(p=="<")return o(e,t,[">",">"],l,f);if(p=="(")return o(e,t,[")",")"],l,f);return o(e,t,[p,p],l,f)}}}if(r=="t"){var p=/[\/>\]})\w]/.test(n(e,-2));if(!p){p=e.eat("r");if(p){p=e.eat(/[(\[{<\^'"!~\/]/);if(p){if(p=="[")return o(e,t,["]","]"],l,f);if(p=="{")return o(e,t,["}","}"],l,f);if(p=="<")return o(e,t,[">",">"],l,f);if(p=="(")return o(e,t,[")",")"],l,f);return o(e,t,[p,p],l,f)}}}}if(r=="`"){return o(e,t,[r],"builtin")}if(r=="/"){if(!/~\s*$/.test(i(e)))return"operator";else return o(e,t,[r],l,f)}if(r=="$"){var E=e.pos;if(e.eatWhile(/\d/)||e.eat("{")&&e.eatWhile(/\d/)&&e.eat("}"))return"builtin";else e.pos=E}if(/[$@%]/.test(r)){var E=e.pos;if(e.eat("^")&&e.eat(/[A-Z]/)||!/[@$%&]/.test(n(e,-2))&&e.eat(/[=|\\\-#?@;:&`~\^!\[\]*'"$+.,\/<>()]/)){var p=e.current();if(a[p])return"builtin"}e.pos=E}if(/[$@%&]/.test(r)){if(e.eatWhile(/[\w$]/)||e.eat("{")&&e.eatWhile(/[\w$]/)&&e.eat("}")){var p=e.current();if(a[p])return"builtin";else return"variable"}}if(r=="#"){if(n(e,-2)!="$"){e.skipToEnd();return"comment"}}if(/[:+\-\^*$&%@=<>!?|\/~\.]/.test(r)){var E=e.pos;e.eatWhile(/[:+\-\^*$&%@=<>!?|\/~\.]/);if(a[e.current()])return"operator";else e.pos=E}if(r=="_"){if(e.pos==1){if(s(e,6)=="_END__"){return o(e,t,["\0"],"comment")}else if(s(e,7)=="_DATA__"){return o(e,t,["\0"],"builtin")}else if(s(e,7)=="_C__"){return o(e,t,["\0"],"string")}}}if(/\w/.test(r)){var E=e.pos;if(n(e,-2)=="{"&&(n(e,0)=="}"||e.eatWhile(/\w/)&&n(e,0)=="}"))return"string";else e.pos=E}if(/[A-Z]/.test(r)){var R=n(e,-2);var E=e.pos;e.eatWhile(/[A-Z_]/);if(/[\da-z]/.test(n(e,0))){e.pos=E}else{var p=a[e.current()];if(!p)return"meta";if(p[1])p=p[0];if(R!=":"){if(p==1)return"keyword";else if(p==2)return"def";else if(p==3)return"atom";else if(p==4)return"operator";else if(p==5)return"builtin";else return"meta"}else return"meta"}}if(/[a-zA-Z_]/.test(r)){var R=n(e,-2);e.eatWhile(/\w/);var p=a[e.current()];if(!p)return"meta";if(p[1])p=p[0];if(R!=":"){if(p==1)return"keyword";else if(p==2)return"def";else if(p==3)return"atom";else if(p==4)return"operator";else if(p==5)return"builtin";else return"meta"}else return"meta"}return null}const _={name:"perl",startState:function(){return{tokenize:E,chain:null,style:null,tail:null}},token:function(e,t){return(t.tokenize||E)(e,t)},languageData:{commentTokens:{line:"#"},wordChars:"$"}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/5746.e4434ef2027bcc5ed0c9.js b/bootcamp/share/jupyter/lab/static/5746.e4434ef2027bcc5ed0c9.js new file mode 100644 index 0000000..90ee310 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/5746.e4434ef2027bcc5ed0c9.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5746],{67476:function(e,r,t){var a=this&&this.__values||function(e){var r=typeof Symbol==="function"&&Symbol.iterator,t=r&&e[r],a=0;if(t)return t.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&a>=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r,"__esModule",{value:true});r.MathJax=r.combineWithMathJax=r.combineDefaults=r.combineConfig=r.isObject=void 0;var n=t(73132);function o(e){return typeof e==="object"&&e!==null}r.isObject=o;function i(e,r){var t,n;try{for(var s=a(Object.keys(r)),l=s.next();!l.done;l=s.next()){var f=l.value;if(f==="__esModule")continue;if(o(e[f])&&o(r[f])&&!(r[f]instanceof Promise)){i(e[f],r[f])}else if(r[f]!==null&&r[f]!==undefined){e[f]=r[f]}}}catch(c){t={error:c}}finally{try{if(l&&!l.done&&(n=s.return))n.call(s)}finally{if(t)throw t.error}}return e}r.combineConfig=i;function s(e,r,t){var n,i;if(!e[r]){e[r]={}}e=e[r];try{for(var l=a(Object.keys(t)),f=l.next();!f.done;f=l.next()){var c=f.value;if(o(e[c])&&o(t[c])){s(e,c,t[c])}else if(e[c]==null&&t[c]!=null){e[c]=t[c]}}}catch(u){n={error:u}}finally{try{if(f&&!f.done&&(i=l.return))i.call(l)}finally{if(n)throw n.error}}return e}r.combineDefaults=s;function l(e){return i(r.MathJax,e)}r.combineWithMathJax=l;if(typeof t.g.MathJax==="undefined"){t.g.MathJax={}}if(!t.g.MathJax.version){t.g.MathJax={version:n.VERSION,_:{},config:t.g.MathJax}}r.MathJax=t.g.MathJax},18457:function(e,r,t){var a="/";var n=this&&this.__values||function(e){var r=typeof Symbol==="function"&&Symbol.iterator,t=r&&e[r],a=0;if(t)return t.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&a>=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};var o,i;Object.defineProperty(r,"__esModule",{value:true});r.CONFIG=r.MathJax=r.Loader=r.PathFilters=r.PackageError=r.Package=void 0;var s=t(67476);var l=t(91777);var f=t(91777);Object.defineProperty(r,"Package",{enumerable:true,get:function(){return f.Package}});Object.defineProperty(r,"PackageError",{enumerable:true,get:function(){return f.PackageError}});var c=t(64905);r.PathFilters={source:function(e){if(r.CONFIG.source.hasOwnProperty(e.name)){e.name=r.CONFIG.source[e.name]}return true},normalize:function(e){var r=e.name;if(!r.match(/^(?:[a-z]+:\/)?\/|[a-z]:\\|\[/i)){e.name="[mathjax]/"+r.replace(/^\.\//,"")}if(e.addExtension&&!r.match(/\.[^\/]+$/)){e.name+=".js"}return true},prefix:function(e){var t;while(t=e.name.match(/^\[([^\]]*)\]/)){if(!r.CONFIG.paths.hasOwnProperty(t[1]))break;e.name=r.CONFIG.paths[t[1]]+e.name.substr(t[0].length)}return true}};var u;(function(e){var t=s.MathJax.version;e.versions=new Map;function o(){var e,r;var t=[];for(var a=0;a=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__read||function(e,r){var t=typeof Symbol==="function"&&e[Symbol.iterator];if(!t)return e;var a=t.call(e),n,o=[],i;try{while((r===void 0||r-- >0)&&!(n=a.next()).done)o.push(n.value)}catch(s){i={error:s}}finally{try{if(n&&!n.done&&(t=a["return"]))t.call(a)}finally{if(i)throw i.error}}return o};var i=this&&this.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var a=0,n=r.length,o;a=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__read||function(e,r){var t=typeof Symbol==="function"&&e[Symbol.iterator];if(!t)return e;var a=t.call(e),n,o=[],i;try{while((r===void 0||r-- >0)&&!(n=a.next()).done)o.push(n.value)}catch(s){i={error:s}}finally{try{if(n&&!n.done&&(t=a["return"]))t.call(a)}finally{if(i)throw i.error}}return o};var o=this&&this.__spreadArray||function(e,r,t){if(t||arguments.length===2)for(var a=0,n=r.length,o;a{n.r(t);n.d(t,{ttcn:()=>M});function r(e){var t={},n=e.split(" ");for(var r=0;r!\/]/;var E;function I(e,t){var n=e.next();if(n=='"'||n=="'"){t.tokenize=z(n);return t.tokenize(e,t)}if(/[\[\]{}\(\),;\\:\?\.]/.test(n)){E=n;return"punctuation"}if(n=="#"){e.skipToEnd();return"atom"}if(n=="%"){e.eatWhile(/\b/);return"atom"}if(/\d/.test(n)){e.eatWhile(/[\w\.]/);return"number"}if(n=="/"){if(e.eat("*")){t.tokenize=C;return C(e,t)}if(e.eat("/")){e.skipToEnd();return"comment"}}if(O.test(n)){if(n=="@"){if(e.match("try")||e.match("catch")||e.match("lazy")){return"keyword"}}e.eatWhile(O);return"operator"}e.eatWhile(/[\w\$_\xa1-\uffff]/);var r=e.current();if(s.propertyIsEnumerable(r))return"keyword";if(l.propertyIsEnumerable(r))return"builtin";if(u.propertyIsEnumerable(r))return"def";if(p.propertyIsEnumerable(r))return"def";if(f.propertyIsEnumerable(r))return"def";if(c.propertyIsEnumerable(r))return"def";if(m.propertyIsEnumerable(r))return"def";if(d.propertyIsEnumerable(r))return"def";if(h.propertyIsEnumerable(r))return"string";if(b.propertyIsEnumerable(r))return"string";if(y.propertyIsEnumerable(r))return"string";if(v.propertyIsEnumerable(r))return"typeName.standard";if(g.propertyIsEnumerable(r))return"modifier";if(x.propertyIsEnumerable(r))return"atom";return"variable"}function z(e){return function(t,n){var r=false,i,o=false;while((i=t.next())!=null){if(i==e&&!r){var a=t.peek();if(a){a=a.toLowerCase();if(a=="b"||a=="h"||a=="o")t.next()}o=true;break}r=!r&&i=="\\"}if(o||!(r||k))n.tokenize=null;return"string"}}function C(e,t){var n=false,r;while(r=e.next()){if(r=="/"&&n){t.tokenize=null;break}n=r=="*"}return"comment"}function L(e,t,n,r,i){this.indented=e;this.column=t;this.type=n;this.align=r;this.prev=i}function _(e,t,n){var r=e.indented;if(e.context&&e.context.type=="statement")r=e.context.indented;return e.context=new L(r,t,n,null,e.context)}function S(e){var t=e.context.type;if(t==")"||t=="]"||t=="}")e.indented=e.context.indented;return e.context=e.context.prev}const M={name:"ttcn",startState:function(){return{tokenize:null,context:new L(0,0,"top",false),indented:0,startOfLine:true}},token:function(e,t){var n=t.context;if(e.sol()){if(n.align==null)n.align=false;t.indented=e.indentation();t.startOfLine=true}if(e.eatSpace())return null;E=null;var r=(t.tokenize||I)(e,t);if(r=="comment")return r;if(n.align==null)n.align=true;if((E==";"||E==":"||E==",")&&n.type=="statement"){S(t)}else if(E=="{")_(t,e.column(),"}");else if(E=="[")_(t,e.column(),"]");else if(E=="(")_(t,e.column(),")");else if(E=="}"){while(n.type=="statement")n=S(t);if(n.type=="}")n=S(t);while(n.type=="statement")n=S(t)}else if(E==n.type)S(t);else if(w&&((n.type=="}"||n.type=="top")&&E!=";"||n.type=="statement"&&E=="newstatement"))_(t,e.column(),"statement");t.startOfLine=false;return r},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:o}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/5881.3946238aa4afdcf4f964.js b/bootcamp/share/jupyter/lab/static/5881.3946238aa4afdcf4f964.js new file mode 100644 index 0000000..a20dad2 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/5881.3946238aa4afdcf4f964.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5881],{95881:(e,a,n)=>{n.r(a);n.d(a,{gherkin:()=>i});const i={name:"gherkin",startState:function(){return{lineNumber:0,tableHeaderLine:false,allowFeature:true,allowBackground:false,allowScenario:false,allowSteps:false,allowPlaceholders:false,allowMultilineArgument:false,inMultilineString:false,inMultilineTable:false,inKeywordLine:false}},token:function(e,a){if(e.sol()){a.lineNumber++;a.inKeywordLine=false;if(a.inMultilineTable){a.tableHeaderLine=false;if(!e.match(/\s*\|/,false)){a.allowMultilineArgument=false;a.inMultilineTable=false}}}e.eatSpace();if(a.allowMultilineArgument){if(a.inMultilineString){if(e.match('"""')){a.inMultilineString=false;a.allowMultilineArgument=false}else{e.match(/.*/)}return"string"}if(a.inMultilineTable){if(e.match(/\|\s*/)){return"bracket"}else{e.match(/[^\|]*/);return a.tableHeaderLine?"header":"string"}}if(e.match('"""')){a.inMultilineString=true;return"string"}else if(e.match("|")){a.inMultilineTable=true;a.tableHeaderLine=true;return"bracket"}}if(e.match(/#.*/)){return"comment"}else if(!a.inKeywordLine&&e.match(/@\S+/)){return"tag"}else if(!a.inKeywordLine&&a.allowFeature&&e.match(/(機能|功能|フィーチャ|기능|โครงหลัก|ความสามารถ|ความต้องการทางธุรกิจ|ಹೆಚ್ಚಳ|గుణము|ਮੁਹਾਂਦਰਾ|ਨਕਸ਼ ਨੁਹਾਰ|ਖਾਸੀਅਤ|रूप लेख|وِیژگی|خاصية|תכונה|Функціонал|Функция|Функционалност|Функционал|Үзенчәлеклелек|Свойство|Особина|Мөмкинлек|Могућност|Λειτουργία|Δυνατότητα|Właściwość|Vlastnosť|Trajto|Tính năng|Savybė|Pretty much|Požiadavka|Požadavek|Potrzeba biznesowa|Özellik|Osobina|Ominaisuus|Omadus|OH HAI|Mogućnost|Mogucnost|Jellemző|Hwæt|Hwaet|Funzionalità|Funktionalitéit|Funktionalität|Funkcja|Funkcionalnost|Funkcionalitāte|Funkcia|Fungsi|Functionaliteit|Funcționalitate|Funcţionalitate|Functionalitate|Funcionalitat|Funcionalidade|Fonctionnalité|Fitur|Fīča|Feature|Eiginleiki|Egenskap|Egenskab|Característica|Caracteristica|Business Need|Aspekt|Arwedd|Ahoy matey!|Ability):/)){a.allowScenario=true;a.allowBackground=true;a.allowPlaceholders=false;a.allowSteps=false;a.allowMultilineArgument=false;a.inKeywordLine=true;return"keyword"}else if(!a.inKeywordLine&&a.allowBackground&&e.match(/(背景|배경|แนวคิด|ಹಿನ್ನೆಲೆ|నేపథ్యం|ਪਿਛੋਕੜ|पृष्ठभूमि|زمینه|الخلفية|רקע|Тарих|Предыстория|Предистория|Позадина|Передумова|Основа|Контекст|Кереш|Υπόβαθρο|Założenia|Yo\-ho\-ho|Tausta|Taust|Situācija|Rerefons|Pozadina|Pozadie|Pozadí|Osnova|Latar Belakang|Kontext|Konteksts|Kontekstas|Kontekst|Háttér|Hannergrond|Grundlage|Geçmiş|Fundo|Fono|First off|Dis is what went down|Dasar|Contexto|Contexte|Context|Contesto|Cenário de Fundo|Cenario de Fundo|Cefndir|Bối cảnh|Bakgrunnur|Bakgrunn|Bakgrund|Baggrund|Background|B4|Antecedents|Antecedentes|Ær|Aer|Achtergrond):/)){a.allowPlaceholders=false;a.allowSteps=true;a.allowBackground=false;a.allowMultilineArgument=false;a.inKeywordLine=true;return"keyword"}else if(!a.inKeywordLine&&a.allowScenario&&e.match(/(場景大綱|场景大纲|劇本大綱|剧本大纲|テンプレ|シナリオテンプレート|シナリオテンプレ|シナリオアウトライン|시나리오 개요|สรุปเหตุการณ์|โครงสร้างของเหตุการณ์|ವಿವರಣೆ|కథనం|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਟਕਥਾ ਢਾਂਚਾ|परिदृश्य रूपरेखा|سيناريو مخطط|الگوی سناریو|תבנית תרחיש|Сценарийның төзелеше|Сценарий структураси|Структура сценарію|Структура сценария|Структура сценарија|Скица|Рамка на сценарий|Концепт|Περιγραφή Σεναρίου|Wharrimean is|Template Situai|Template Senario|Template Keadaan|Tapausaihio|Szenariogrundriss|Szablon scenariusza|Swa hwær swa|Swa hwaer swa|Struktura scenarija|Structură scenariu|Structura scenariu|Skica|Skenario konsep|Shiver me timbers|Senaryo taslağı|Schema dello scenario|Scenariomall|Scenariomal|Scenario Template|Scenario Outline|Scenario Amlinellol|Scenārijs pēc parauga|Scenarijaus šablonas|Reckon it's like|Raamstsenaarium|Plang vum Szenario|Plan du Scénario|Plan du scénario|Osnova scénáře|Osnova Scenára|Náčrt Scenáru|Náčrt Scénáře|Náčrt Scenára|MISHUN SRSLY|Menggariskan Senario|Lýsing Dæma|Lýsing Atburðarásar|Konturo de la scenaro|Koncept|Khung tình huống|Khung kịch bản|Forgatókönyv vázlat|Esquema do Cenário|Esquema do Cenario|Esquema del escenario|Esquema de l'escenari|Esbozo do escenario|Delineação do Cenário|Delineacao do Cenario|All y'all|Abstrakt Scenario|Abstract Scenario):/)){a.allowPlaceholders=true;a.allowSteps=true;a.allowMultilineArgument=false;a.inKeywordLine=true;return"keyword"}else if(a.allowScenario&&e.match(/(例子|例|サンプル|예|ชุดของเหตุการณ์|ชุดของตัวอย่าง|ಉದಾಹರಣೆಗಳು|ఉదాహరణలు|ਉਦਾਹਰਨਾਂ|उदाहरण|نمونه ها|امثلة|דוגמאות|Үрнәкләр|Сценарији|Примеры|Примери|Приклади|Мисоллар|Мисаллар|Σενάρια|Παραδείγματα|You'll wanna|Voorbeelden|Variantai|Tapaukset|Se þe|Se the|Se ðe|Scenarios|Scenariji|Scenarijai|Przykłady|Primjeri|Primeri|Příklady|Príklady|Piemēri|Példák|Pavyzdžiai|Paraugs|Örnekler|Juhtumid|Exemplos|Exemples|Exemple|Exempel|EXAMPLZ|Examples|Esempi|Enghreifftiau|Ekzemploj|Eksempler|Ejemplos|Dữ liệu|Dead men tell no tales|Dæmi|Contoh|Cenários|Cenarios|Beispiller|Beispiele|Atburðarásir):/)){a.allowPlaceholders=false;a.allowSteps=true;a.allowBackground=false;a.allowMultilineArgument=true;return"keyword"}else if(!a.inKeywordLine&&a.allowScenario&&e.match(/(場景|场景|劇本|剧本|シナリオ|시나리오|เหตุการณ์|ಕಥಾಸಾರಾಂಶ|సన్నివేశం|ਪਟਕਥਾ|परिदृश्य|سيناريو|سناریو|תרחיש|Сценарій|Сценарио|Сценарий|Пример|Σενάριο|Tình huống|The thing of it is|Tapaus|Szenario|Swa|Stsenaarium|Skenario|Situai|Senaryo|Senario|Scenaro|Scenariusz|Scenariu|Scénario|Scenario|Scenarijus|Scenārijs|Scenarij|Scenarie|Scénář|Scenár|Primer|MISHUN|Kịch bản|Keadaan|Heave to|Forgatókönyv|Escenario|Escenari|Cenário|Cenario|Awww, look mate|Atburðarás):/)){a.allowPlaceholders=false;a.allowSteps=true;a.allowBackground=false;a.allowMultilineArgument=false;a.inKeywordLine=true;return"keyword"}else if(!a.inKeywordLine&&a.allowSteps&&e.match(/(那麼|那么|而且|當|当|并且|同時|同时|前提|假设|假設|假定|假如|但是|但し|並且|もし|ならば|ただし|しかし|かつ|하지만|조건|먼저|만일|만약|단|그리고|그러면|และ |เมื่อ |แต่ |ดังนั้น |กำหนดให้ |ಸ್ಥಿತಿಯನ್ನು |ಮತ್ತು |ನೀಡಿದ |ನಂತರ |ಆದರೆ |మరియు |చెప్పబడినది |కాని |ఈ పరిస్థితిలో |అప్పుడు |ਪਰ |ਤਦ |ਜੇਕਰ |ਜਿਵੇਂ ਕਿ |ਜਦੋਂ |ਅਤੇ |यदि |परन्तु |पर |तब |तदा |तथा |जब |चूंकि |किन्तु |कदा |और |अगर |و |هنگامی |متى |لكن |عندما |ثم |بفرض |با فرض |اما |اذاً |آنگاه |כאשר |וגם |בהינתן |אזי |אז |אבל |Якщо |Һәм |Унда |Тоді |Тогда |То |Также |Та |Пусть |Припустимо, що |Припустимо |Онда |Но |Нехай |Нәтиҗәдә |Лекин |Ләкин |Коли |Когда |Когато |Када |Кад |К тому же |І |И |Задато |Задати |Задате |Если |Допустим |Дано |Дадено |Вә |Ва |Бирок |Әмма |Әйтик |Әгәр |Аммо |Али |Але |Агар |А також |А |Τότε |Όταν |Και |Δεδομένου |Αλλά |Þurh |Þegar |Þa þe |Þá |Þa |Zatati |Zakładając |Zadato |Zadate |Zadano |Zadani |Zadan |Za předpokladu |Za predpokladu |Youse know when youse got |Youse know like when |Yna |Yeah nah |Y'know |Y |Wun |Wtedy |When y'all |When |Wenn |WEN |wann |Ve |Và |Und |Un |ugeholl |Too right |Thurh |Thì |Then y'all |Then |Tha the |Tha |Tetapi |Tapi |Tak |Tada |Tad |Stel |Soit |Siis |Și |Şi |Si |Sed |Se |Så |Quando |Quand |Quan |Pryd |Potom |Pokud |Pokiaľ |Però |Pero |Pak |Oraz |Onda |Ond |Oletetaan |Og |Och |O zaman |Niin |Nhưng |När |Når |Mutta |Men |Mas |Maka |Majd |Mając |Mais |Maar |mä |Ma |Lorsque |Lorsqu'|Logo |Let go and haul |Kun |Kuid |Kui |Kiedy |Khi |Ketika |Kemudian |Keď |Když |Kaj |Kai |Kada |Kad |Jeżeli |Jeśli |Ja |It's just unbelievable |Ir |I CAN HAZ |I |Ha |Givun |Givet |Given y'all |Given |Gitt |Gegeven |Gegeben seien |Gegeben sei |Gdy |Gangway! |Fakat |Étant donnés |Etant donnés |Étant données |Etant données |Étant donnée |Etant donnée |Étant donné |Etant donné |Et |És |Entonces |Entón |Então |Entao |En |Eğer ki |Ef |Eeldades |E |Ðurh |Duota |Dun |Donitaĵo |Donat |Donada |Do |Diyelim ki |Diberi |Dengan |Den youse gotta |DEN |De |Dato |Dați fiind |Daţi fiind |Dati fiind |Dati |Date fiind |Date |Data |Dat fiind |Dar |Dann |dann |Dan |Dados |Dado |Dadas |Dada |Ða ðe |Ða |Cuando |Cho |Cando |Când |Cand |Cal |But y'all |But at the end of the day I reckon |BUT |But |Buh |Blimey! |Biết |Bet |Bagi |Aye |awer |Avast! |Atunci |Atesa |Atès |Apabila |Anrhegedig a |Angenommen |And y'all |And |AN |An |an |Amikor |Amennyiben |Ama |Als |Alors |Allora |Ali |Aleshores |Ale |Akkor |Ak |Adott |Ac |Aber |A zároveň |A tiež |A taktiež |A také |A |a |7 |\* )/)){a.inStep=true;a.allowPlaceholders=true;a.allowMultilineArgument=true;a.inKeywordLine=true;return"keyword"}else if(e.match(/"[^"]*"?/)){return"string"}else if(a.allowPlaceholders&&e.match(/<[^>]*>?/)){return"variable"}else{e.next();e.eatWhile(/[^@"<#]/);return null}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/5959.a6b1fd3b03d3649ea8b1.js b/bootcamp/share/jupyter/lab/static/5959.a6b1fd3b03d3649ea8b1.js new file mode 100644 index 0000000..c9b0b36 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/5959.a6b1fd3b03d3649ea8b1.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[5959],{15959:(e,t,n)=>{n.r(t);n.d(t,{protobuf:()=>p});function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var a=["package","message","import","syntax","required","optional","repeated","reserved","default","extensions","packed","bool","bytes","double","enum","float","string","int32","int64","uint32","uint64","sint32","sint64","fixed32","fixed64","sfixed32","sfixed64","option","service","rpc","returns"];var i=r(a);var u=new RegExp("^[_A-Za-z¡-￿][_A-Za-z0-9¡-￿]*");function o(e){if(e.eatSpace())return null;if(e.match("//")){e.skipToEnd();return"comment"}if(e.match(/^[0-9\.+-]/,false)){if(e.match(/^[+-]?0x[0-9a-fA-F]+/))return"number";if(e.match(/^[+-]?\d*\.\d+([EeDd][+-]?\d+)?/))return"number";if(e.match(/^[+-]?\d+([EeDd][+-]?\d+)?/))return"number"}if(e.match(/^"([^"]|(""))*"/)){return"string"}if(e.match(/^'([^']|(''))*'/)){return"string"}if(e.match(i)){return"keyword"}if(e.match(u)){return"variable"}e.next();return null}const p={name:"protobuf",token:o,languageData:{autocomplete:a}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/5cda41563a095bd70c78.woff b/bootcamp/share/jupyter/lab/static/5cda41563a095bd70c78.woff new file mode 100644 index 0000000..8278e3f Binary files /dev/null and b/bootcamp/share/jupyter/lab/static/5cda41563a095bd70c78.woff differ diff --git a/bootcamp/share/jupyter/lab/static/6059.d83e7323b2ee1aa16009.js b/bootcamp/share/jupyter/lab/static/6059.d83e7323b2ee1aa16009.js new file mode 100644 index 0000000..f75d9d0 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/6059.d83e7323b2ee1aa16009.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6059],{36059:function(r,e){var t=this&&this.__values||function(r){var e=typeof Symbol==="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length==="number")return{next:function(){if(r&&n>=r.length)r=void 0;return{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__read||function(r,e){var t=typeof Symbol==="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,a=[],i;try{while((e===void 0||e-- >0)&&!(o=n.next()).done)a.push(o.value)}catch(l){i={error:l}}finally{try{if(o&&!o.done&&(t=n["return"]))t.call(n)}finally{if(i)throw i.error}}return a};var o=this&&this.__spreadArray||function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,a;n{t.r(n);t.d(n,{sieve:()=>p});function r(e){var n={},t=e.split(" ");for(var r=0;r{Q.r($);Q.d($,{php:()=>GO,phpLanguage:()=>_O});var i=Q(11705);var y=Q(6016);const a=1,z=2,S=263,P=3,W=264,e=265,s=266,T=4,n=5,X=6,d=7,q=8,t=9,o=10,l=11,R=12,x=13,V=14,u=15,r=16,U=17,v=18,b=19,m=20,p=21,k=22,c=23,Y=24,Z=25,h=26,w=27,j=28,g=29,_=30,G=31,f=32,E=33,I=34,N=35,F=36,C=37,L=38,A=39,K=40,H=41,D=42,B=43,M=44,J=45,OO=46,$O=47,QO=48,iO=49,yO=50,aO=51,zO=52,SO=53,PO=54,WO=55,eO=56,sO=57,TO=58,nO=59,XO=60,dO=61,qO=62,tO=63,oO=64,lO=65;const RO={abstract:T,and:n,array:X,as:d,true:q,false:q,break:t,case:o,catch:l,clone:R,const:x,continue:V,declare:r,default:u,do:U,echo:v,else:b,elseif:m,enddeclare:p,endfor:k,endforeach:c,endif:Y,endswitch:Z,endwhile:h,enum:w,extends:j,final:g,finally:_,fn:G,for:f,foreach:E,from:I,function:N,global:F,goto:C,if:L,implements:A,include:K,include_once:H,instanceof:D,insteadof:B,interface:M,list:J,match:OO,namespace:$O,new:QO,null:iO,or:yO,print:aO,require:zO,require_once:SO,return:PO,switch:WO,throw:eO,trait:sO,try:TO,unset:nO,use:XO,var:dO,public:qO,private:qO,protected:qO,while:tO,xor:oO,yield:lO,__proto__:null};function xO(O){let $=RO[O.toLowerCase()];return $==null?-1:$}function VO(O){return O==9||O==10||O==13||O==32}function uO(O){return O>=97&&O<=122||O>=65&&O<=90}function rO(O){return O==95||O>=128||uO(O)}function UO(O){return O>=48&&O<=55||O>=97&&O<=102||O>=65&&O<=70}const vO={int:true,integer:true,bool:true,boolean:true,float:true,double:true,real:true,string:true,array:true,object:true,unset:true,__proto__:null};const bO=new i.Jq((O=>{if(O.next==40){O.advance();let $=0;while(VO(O.peek($)))$++;let Q="",i;while(uO(i=O.peek($))){Q+=String.fromCharCode(i);$++}while(VO(O.peek($)))$++;if(O.peek($)==41&&vO[Q.toLowerCase()])O.acceptToken(a)}else if(O.next==60&&O.peek(1)==60&&O.peek(2)==60){for(let i=0;i<3;i++)O.advance();while(O.next==32||O.next==9)O.advance();let $=O.next==39;if($)O.advance();if(!rO(O.next))return;let Q=String.fromCharCode(O.next);for(;;){O.advance();if(!rO(O.next)&&!(O.next>=48&&O.next<=55))break;Q+=String.fromCharCode(O.next)}if($){if(O.next!=39)return;O.advance()}if(O.next!=10&&O.next!=13)return;for(;;){let $=O.next==10||O.next==13;O.advance();if(O.next<0)return;if($){while(O.next==32||O.next==9)O.advance();let $=true;for(let i=0;i{if(O.next<0)O.acceptToken(s)}));const pO=new i.Jq(((O,$)=>{if(O.next==63&&$.canShift(e)&&O.peek(1)==62)O.acceptToken(e)}));function kO(O){let $=O.peek(1);if($==110||$==114||$==116||$==118||$==101||$==102||$==92||$==36||$==34||$==123)return 2;if($>=48&&$<=55){let $=2,Q;while($<5&&(Q=O.peek($))>=48&&Q<=55)$++;return $}if($==120&&UO(O.peek(2))){return UO(O.peek(3))?4:3}if($==117&&O.peek(2)==123){for(let $=3;;$++){let Q=O.peek($);if(Q==125)return $==2?0:$+1;if(!UO(Q))break}}return 0}const cO=new i.Jq(((O,$)=>{let Q=false;for(;;Q=true){if(O.next==34||O.next<0||O.next==36&&(rO(O.peek(1))||O.peek(1)==123)||O.next==123&&O.peek(1)==36){break}else if(O.next==92){let $=kO(O);if($){if(Q)break;else return O.acceptToken(P,$)}}else if(!Q&&(O.next==91||O.next==45&&O.peek(1)==62&&rO(O.peek(2))||O.next==63&&O.peek(1)==45&&O.peek(2)==62&&rO(O.peek(3)))&&$.canShift(W)){break}O.advance()}if(Q)O.acceptToken(S)}));const YO=(0,y.styleTags)({"Visibility abstract final static":y.tags.modifier,"for foreach while do if else elseif switch try catch finally return throw break continue default case":y.tags.controlKeyword,"endif endfor endforeach endswitch endwhile declare enddeclare goto match":y.tags.controlKeyword,"and or xor yield unset clone instanceof insteadof":y.tags.operatorKeyword,"function fn class trait implements extends const enum global interface use var":y.tags.definitionKeyword,"include include_once require require_once namespace":y.tags.moduleKeyword,"new from echo print array list as":y.tags.keyword,null:y.tags["null"],Boolean:y.tags.bool,VariableName:y.tags.variableName,"NamespaceName/...":y.tags.namespace,"NamedType/...":y.tags.typeName,Name:y.tags.name,"CallExpression/Name":y.tags["function"](y.tags.variableName),"LabelStatement/Name":y.tags.labelName,"MemberExpression/Name":y.tags.propertyName,"MemberExpression/VariableName":y.tags.special(y.tags.propertyName),"ScopedExpression/ClassMemberName/Name":y.tags.propertyName,"ScopedExpression/ClassMemberName/VariableName":y.tags.special(y.tags.propertyName),"CallExpression/MemberExpression/Name":y.tags["function"](y.tags.propertyName),"CallExpression/ScopedExpression/ClassMemberName/Name":y.tags["function"](y.tags.propertyName),"MethodDeclaration/Name":y.tags["function"](y.tags.definition(y.tags.variableName)),"FunctionDefinition/Name":y.tags["function"](y.tags.definition(y.tags.variableName)),"ClassDeclaration/Name":y.tags.definition(y.tags.className),UpdateOp:y.tags.updateOperator,ArithOp:y.tags.arithmeticOperator,LogicOp:y.tags.logicOperator,BitOp:y.tags.bitwiseOperator,CompareOp:y.tags.compareOperator,ControlOp:y.tags.controlOperator,AssignOp:y.tags.definitionOperator,"$ ConcatOp":y.tags.operator,LineComment:y.tags.lineComment,BlockComment:y.tags.blockComment,Integer:y.tags.integer,Float:y.tags.float,String:y.tags.string,ShellExpression:y.tags.special(y.tags.string),"=> ->":y.tags.punctuation,"( )":y.tags.paren,"#[ [ ]":y.tags.squareBracket,"${ { }":y.tags.brace,"-> ?->":y.tags.derefOperator,", ; :: : \\":y.tags.separator,"PhpOpen PhpClose":y.tags.processingInstruction});const ZO={__proto__:null,static:311,STATIC:311,class:333,CLASS:333};const hO=i.WQ.deserialize({version:14,states:"$GSQ`OWOOQhQaOOP%oO`OOOOO#t'#H_'#H_O%tO#|O'#DtOOO#u'#Dw'#DwQ&SOWO'#DwO&XO$VOOOOQ#u'#Dx'#DxO&lQaO'#D|O(mQdO'#E}O(tQdO'#EQO*kQaO'#EWO,zQ`O'#ETO-PQ`O'#E^O/nQaO'#E^O/uQ`O'#EfO/zQ`O'#EoO*kQaO'#EoO0VQ`O'#HhO0[Q`O'#E{O0[Q`O'#E{OOQS'#Ic'#IcO0aQ`O'#EvOOQS'#IZ'#IZO2oQdO'#IWO6tQeO'#FUO*kQaO'#FeO*kQaO'#FfO*kQaO'#FgO*kQaO'#FhO*kQaO'#FhO*kQaO'#FkOOQO'#Id'#IdO7RQ`O'#FqOOQO'#Hi'#HiO7ZQ`O'#HOO7uQ`O'#FlO8QQ`O'#H]O8]Q`O'#FvO8eQaO'#FwO*kQaO'#GVO*kQaO'#GYO8}OrO'#G]OOQS'#Iq'#IqOOQS'#Ip'#IpOOQS'#IW'#IWO,zQ`O'#GdO,zQ`O'#GfO,zQ`O'#GkOhQaO'#GmO9UQ`O'#GnO9ZQ`O'#GqO9`Q`O'#GtO9eQeO'#GuO9eQeO'#GvO9eQeO'#GwO9oQ`O'#GxO9tQ`O'#GzO9yQaO'#G{OS,5>SOJ[QdO,5;gOOQO-E;f-E;fOL^Q`O,5;gOLcQpO,5;bO0aQ`O'#EyOLkQtO'#E}OOQS'#Ez'#EzOOQS'#Ib'#IbOM`QaO,5:wO*kQaO,5;nOOQS,5;p,5;pO*kQaO,5;pOMgQdO,5UQaO,5=hO!-eQ`O'#F}O!-jQdO'#IlO!&WQdO,5=iOOQ#u,5=j,5=jO!-uQ`O,5=lO!-xQ`O,5=mO!-}Q`O,5=nO!.YQdO,5=qOOQ#u,5=q,5=qO!.eQ`O,5=rO!.eQ`O,5=rO!.mQdO'#IwO!.{Q`O'#HXO!&WQdO,5=rO!/ZQ`O,5=rO!/fQdO'#IYO!&WQdO,5=vOOQ#u-E;_-E;_O!1RQ`O,5=kOOO#u,5:^,5:^O!1^O#|O,5:^OOO#u-E;^-E;^OOOO,5>p,5>pOOQ#y1G0S1G0SO!1fQ`O1G0XO*kQaO1G0XO!2xQ`O1G0pOOQS1G0p1G0pO!4[Q`O1G0pOOQS'#I_'#I_O*kQaO'#I_OOQS1G0q1G0qO!4cQ`O'#IaO!7lQ`O'#E}O!7yQaO'#EuOOQO'#Ia'#IaO!8TQ`O'#I`O!8]Q`O,5;_OOQS'#FQ'#FQOOQS1G1U1G1UO!8bQdO1G1]O!:dQdO1G1]O!wO#(fQaO'#HdO#(vQ`O,5>vOOQS1G0d1G0dO#)OQ`O1G0dO#)TQ`O'#I^O#*mQ`O'#I^O#*uQ`O,5;ROIbQaO,5;ROOQS1G0u1G0uPOQO'#E}'#E}O#+fQdO1G1RO0aQ`O'#HgO#-hQtO,5;cO#.YQaO1G0|OOQS,5;e,5;eO#0iQtO,5;gO#0vQdO1G0cO*kQaO1G0cO#2cQdO1G1YO#4OQdO1G1[OOQO,5<^,5<^O#4`Q`O'#HjO#4nQ`O,5?ROOQO1G1w1G1wO#4vQ`O,5?ZO!&WQdO1G3TO<_Q`O1G3TOOQ#u1G3U1G3UO#4{Q`O1G3YO!1RQ`O1G3VO#5WQ`O1G3VO#5]QpO'#FoO#5kQ`O'#FoO#5{Q`O'#FoO#6WQ`O'#FoO#6`Q`O'#FsO#6eQ`O'#FtOOQO'#If'#IfO#6lQ`O'#IeO#6tQ`O,5tOOQ#u1G3b1G3bOOQ#u1G3V1G3VO!-xQ`O1G3VO!1UQ`O1G3VOOO#u1G/x1G/xO*kQaO7+%sO#MuQdO7+%sOOQS7+&[7+&[O$ bQ`O,5>yO>UQaO,5;`O$ iQ`O,5;aO$#OQaO'#HfO$#YQ`O,5>zOOQS1G0y1G0yO$#bQ`O'#EYO$#gQ`O'#IXO$#oQ`O,5:sOOQS1G0e1G0eO$#tQ`O1G0eO$#yQ`O1G0iO9yQaO1G0iOOQO,5>O,5>OOOQO-E;b-E;bOOQS7+&O7+&OO>UQaO,5;SO$%`QaO'#HeO$%jQ`O,5>xOOQS1G0m1G0mO$%rQ`O1G0mOOQS,5>R,5>ROOQS-E;e-E;eO$%wQdO7+&hO$'yQtO1G1RO$(WQdO7+%}OOQS1G0i1G0iOOQO,5>U,5>UOOQO-E;h-E;hOOQ#u7+(o7+(oO!&WQdO7+(oOOQ#u7+(t7+(tO#KmQ`O7+(tO0aQ`O7+(tOOQ#u7+(q7+(qO!-xQ`O7+(qO!1UQ`O7+(qO!1RQ`O7+(qO$)sQ`O,5UQaO,5],5>]OOQS-E;o-E;oO$.iQdO7+'hO$.yQpO7+'hO$/RQdO'#IiOOQO,5dOOQ#u,5>d,5>dOOQ#u-E;v-E;vO$;lQaO7+(lO$cOOQS-E;u-E;uO!&WQdO7+(nO$=mQdO1G2TOOQS,5>[,5>[OOQS-E;n-E;nOOQ#u7+(r7+(rO$?nQ`O'#GQO$?uQ`O'#GQO$@ZQ`O'#HUOOQO'#Hy'#HyO$@`Q`O,5=oOOQ#u,5=o,5=oO$@gQpO7+(tOOQ#u7+(x7+(xO!&WQdO7+(xO$@rQdO,5>fOOQS-E;x-E;xO$AQQdO1G4}O$A]Q`O,5=tO$AbQ`O,5=tO$AmQ`O'#H{O$BRQ`O,5?dOOQS1G3_1G3_O#KrQ`O7+(xO$BZQdO,5=|OOQS-E;`-E;`O$CvQdO<Q,5>QOOQO-E;d-E;dO$8YQaO,5:tO$FxQaO'#HcO$GVQ`O,5>sOOQS1G0_1G0_OOQS7+&P7+&PO$G_Q`O7+&TO$HtQ`O1G0nO$JZQ`O,5>POOQO,5>P,5>POOQO-E;c-E;cOOQS7+&X7+&XOOQS7+&T7+&TOOQ#u<UQaO1G1uO$KsQ`O1G1uO$LOQ`O1G1yOOQO1G1y1G1yO$LTQ`O1G1uO$L]Q`O1G1uO$MrQ`O1G1zO>UQaO1G1zOOQO,5>V,5>VOOQO-E;i-E;iOOQS<`OOQ#u-E;r-E;rOhQaO<aOOQO-E;s-E;sO!&WQdO<g,5>gOOQO-E;y-E;yO!&WQdO<UQaO,5;TOOQ#uANAzANAzO#KmQ`OANAzOOQ#uANAwANAwO!-xQ`OANAwO%)vQ`O7+'aO>UQaO7+'aOOQO7+'e7+'eO%+]Q`O7+'aO%+hQ`O7+'eO>UQaO7+'fO%+mQ`O7+'fO%-SQ`O'#HlO%-bQ`O,5?SO%-bQ`O,5?SOOQO1G1{1G1{O$+qQpOAN@dOOQSAN@dAN@dO0aQ`OAN@dO%-jQtOANCgO%-xQ`OAN@dO*kQaOAN@nO%.QQdOAN@nO%.bQpOAN@nOOQS,5>X,5>XOOQS-E;k-E;kOOQO1G2U1G2UO!&WQdO1G2UO$/dQpO1G2UO<_Q`O1G2SO!.YQdO1G2WO!&WQdO1G2SOOQO1G2W1G2WOOQO1G2S1G2SO%.jQaO'#GSOOQO1G2X1G2XOOQSAN@oAN@oOOOQ<UQaO<W,5>WO%6wQ`O,5>WOOQO-E;j-E;jO%6|Q`O1G4nOOQSG26OG26OO$+qQpOG26OO0aQ`OG26OO%7UQdOG26YO*kQaOG26YOOQO7+'p7+'pO!&WQdO7+'pO!&WQdO7+'nOOQO7+'r7+'rOOQO7+'n7+'nO%7fQ`OLD+tO%8uQ`O'#E}O%9PQ`O'#IZO!&WQdO'#HrO%:|QaO,5^,5>^OOQP-E;p-E;pOOQO1G2Y1G2YOOQ#uLD,bLD,bOOQTG27RG27RO!&WQdOLD,xO!&WQdO<wO&EPQdO1G0cO#.YQaO1G0cO&F{QdO1G1YO&HwQdO1G1[O#.YQaO1G1|O#.YQaO7+%sO&JsQdO7+%sO&LoQdO7+%}O#.YQaO7+'hO&NkQdO7+'hO'!gQdO<lQdO,5>wO(@nQdO1G0cO'.QQaO1G0cO(BpQdO1G1YO(DrQdO1G1[O'.QQaO1G1|O'.QQaO7+%sO(FtQdO7+%sO(HvQdO7+%}O'.QQaO7+'hO(JxQdO7+'hO(LzQdO<wO*1sQaO'#HdO*2TQ`O,5>vO*2]QdO1G0cO9yQaO1G0cO*4XQdO1G1YO*6TQdO1G1[O9yQaO1G1|O>UQaO'#HwO*8PQ`O,5=[O*8XQaO'#HbO*8cQ`O,5>tO9yQaO7+%sO*8kQdO7+%sO*:gQ`O1G0iO>UQaO1G0iO*;|QdO7+%}O9yQaO7+'hO*=xQdO7+'hO*?tQ`O,5>cO*AZQ`O,5=|O*BpQdO<UQaO'#FeO>UQaO'#FfO>UQaO'#FgO>UQaO'#FhO>UQaO'#FhO>UQaO'#FkO+'XQaO'#FwO>UQaO'#GVO>UQaO'#GYO+'`QaO,5:mO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO>UQaO,5;qO+'gQ`O'#I]O$8YQaO'#EaO+)PQaOG26YO$8YQaO'#I]O+*{Q`O'#I[O++TQaO,5:wO>UQaO,5;nO>UQaO,5;pO++[Q`O,5UQaO1G0XO+9hQ`O1G1]O+;TQ`O1G1]O+]Q`O1G1]O+?xQ`O1G1]O+AeQ`O1G1]O+CQQ`O1G1]O+DmQ`O1G1]O+FYQ`O1G1]O+GuQ`O1G1]O+IbQ`O1G1]O+J}Q`O1G1]O+LjQ`O1G1]O+NVQ`O1G1]O, rQ`O1G1]O,#_Q`O1G0cO>UQaO1G0cO,$zQ`O1G1YO,&gQ`O1G1[O,(SQ`O1G1|O>UQaO1G1|O>UQaO7+%sO,([Q`O7+%sO,)wQ`O7+%}O>UQaO7+'hO,+dQ`O7+'hO,+lQ`O7+'hO,-XQpO7+'hO,-aQ`O<UQaO<UQaOAN@nO,0qQ`OAN@nO,2^QpOAN@nO,2fQ`OG26YO>UQaOG26YO,4RQ`OLD+tO,5nQaO,5:}O>UQaO1G0iO,5uQ`O'#I]O$8YQaO'#FeO$8YQaO'#FfO$8YQaO'#FgO$8YQaO'#FhO$8YQaO'#FhO+)PQaO'#FhO$8YQaO'#FkO,6SQaO'#FwO,6ZQaO'#FwO$8YQaO'#GVO+)PQaO'#GVO$8YQaO'#GYO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO$8YQaO,5;qO+)PQaO,5;qO,8YQ`O'#FlO>UQaO'#EaO>UQaO'#I]O,8bQaO,5:wO,8iQaO,5:wO$8YQaO,5;nO+)PQaO,5;nO$8YQaO,5;pO,:hQ`O,5wO-IcQ`O1G0cO-KOQ`O1G0cO$8YQaO1G0cO+)PQaO1G0cO-L_Q`O1G1YO-MzQ`O1G1YO. ZQ`O1G1[O$8YQaO1G1|O$8YQaO7+%sO+)PQaO7+%sO.!vQ`O7+%sO.$cQ`O7+%sO.%rQ`O7+%}O.'_Q`O7+%}O$8YQaO7+'hO.(nQ`O7+'hO.*ZQ`O<fQ`O,5>wO.@RQ`O1G1|O!%WQ`O1G1|O0aQ`O1G1|O0aQ`O7+'hO.@ZQ`O7+'hO.@cQpO7+'hO.@kQpO<UO#X&PO~P>UO!o&SO!s&RO#b&RO~OPgOQ|OU^OW}O[8lOo=yOs#hOx8jOy8jO}`O!O]O!Q8pO!R}O!T8oO!U8kO!V8kO!Y8rO!c8iO!s&VO!y[O#U&WO#W_O#bhO#daO#ebO#peO$T8nO$]8mO$^8nO$aqO$z8qO${!OO$}}O%O}O%V|O'g{O~O!x'SP~PAOO!s&[O#b&[O~OT#TOz#RO!S#UO!b#VO!o!{O!v!yO!y!}O#S#QO#W!zO#`!|O#a!|O#s#PO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dO~O!x&nO~PCqO!x'VX!}'VX#O'VX#X'VX!n'VXV'VX!q'VX#u'VX#w'VXw'VX~P&sO!y$hO#S&oO~Oo$mOs$lO~O!o&pO~O!}&sO#S;dO#U;cO!x'OP~P9yOT6iOz6gO!S6jO!b6kO!o!{O!v8sO!y!}O#S#QO#W!zO#`!|O#a!|O#s#PO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}'PX#X'PX~O#O&tO~PGSO!}&wO#X'OX~O#X&yO~O!}'OO!x'QP~P9yO!n'PO~PCqO!m#oa!o#oa#S#oa#p#qX&s#oa!x#oa#O#oaw#oa~OT#oaz#oa!S#oa!b#oa!v#oa!y#oa#W#oa#`#oa#a#oa#s#oa#z#oa#{#oa#|#oa#}#oa$O#oa$Q#oa$R#oa$S#oa$T#oa$U#oa$V#oa$W#oa$z#oa!}#oa#X#oa!n#oaV#oa!q#oa#u#oa#w#oa~PIpO!s'RO~O!x'UO#l'SO~O!x'VX#l'VX#p#qX#S'VX#U'VX#b'VX!o'VX#O'VXw'VX!m'VX&s'VX~O#S'YO~P*kO!m$Xa&s$Xa!x$Xa!n$Xa~PCqO!m$Ya&s$Ya!x$Ya!n$Ya~PCqO!m$Za&s$Za!x$Za!n$Za~PCqO!m$[a&s$[a!x$[a!n$[a~PCqO!o!{O!y!}O#W!zO#`!|O#a!|O#s#PO$z#dOT$[a!S$[a!b$[a!m$[a!v$[a#S$[a#z$[a#{$[a#|$[a#}$[a$O$[a$Q$[a$R$[a$S$[a$T$[a$U$[a$V$[a$W$[a&s$[a!x$[a!n$[a~Oz#RO~PNyO!m$_a&s$_a!x$_a!n$_a~PCqO!y!}O!}$fX#X$fX~O!}'^O#X'ZX~O#X'`O~O!s$kO#S'aO~O]'cO~O!s'eO~O!s'fO~O$l'gO~O!`'mO#S'kO#U'lO#b'jO$drO!x'XP~P0aO!^'sO!oXO!q'rO~O!s'uO!y$hO~O!y$hO#S'wO~O!y$hO#S'yO~O#u'zO!m$sX!}$sX&s$sX~O!}'{O!m'bX&s'bX~O!m#cO&s#cO~O!q(PO#O(OO~O!m$ka&s$ka!x$ka!n$ka~PCqOl(ROw(SO!o(TO!y!}O~O!o!{O!y!}O#W!zO#`!|O#a!|O#s#PO~OT$yaz$ya!S$ya!b$ya!m$ya!v$ya#S$ya#z$ya#{$ya#|$ya#}$ya$O$ya$Q$ya$R$ya$S$ya$T$ya$U$ya$V$ya$W$ya$z$ya&s$ya!x$ya!}$ya#O$ya#X$ya!n$ya!q$yaV$ya#u$ya#w$ya~P!'WO!m$|a&s$|a!x$|a!n$|a~PCqO#W([O#`(YO#a(YO&r(ZOR&gX!o&gX#b&gX#e&gX&q&gX'f&gX~O'f(_O~P8lO!q(`O~PhO!o(cO!q(dO~O!q(`O&s(gO~PhO!a(kO~O!m(lO~P9yOZ(wOn(xO~O!s(zO~OT6iOz6gO!S6jO!b6kO!v8sO!}({O#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m'jX&s'jX~P!'WO#u)PO~O!})QO!m'`X&s'`X~Ol(RO!o(TO~Ow(SO!o)WO!q)ZO~O!m#cO!oXO&s#cO~O!o%pO!s#yO~OV)aO!})_O!m'kX&s'kX~O])cOs)cO!s#gO#peO~O!o%pO!s#gO#p)hO~OT6iOz6gO!S6jO!b6kO!v8sO!})iO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m&|X&s&|X#O&|X~P!'WOl(ROw(SO!o(TO~O!i)oO&t)oO~OT8vOz8tO!S8wO!b8xO!q)pO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#X)rO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO~P!'WO!n)rO~PCqOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x'TX!}'TX~P!'WOT'VXz'VX!S'VX!b'VX!o'VX!v'VX!y'VX#S'VX#W'VX#`'VX#a'VX#p#qX#s'VX#z'VX#{'VX#|'VX#}'VX$O'VX$Q'VX$R'VX$S'VX$T'VX$U'VX$V'VX$W'VX$z'VX~O!q)tO!x'VX!}'VX~P!5xO!x#iX!}#iX~P>UO!})vO!x'SX~O!x)xO~O$z#dOT#yiz#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi$W#yi&s#yi!x#yi!}#yi#O#yi#X#yi!n#yi!q#yiV#yi#u#yi#w#yi~P!'WOz#RO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi&s#yi!x#yi!n#yi~P!'WOz#RO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi&s#yi!x#yi!n#yi~P!'WOT#TOz#RO!b#VO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dO!S#yi!m#yi&s#yi!x#yi!n#yi~P!'WOT#TOz#RO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dO!S#yi!b#yi!m#yi&s#yi!x#yi!n#yi~P!'WOz#RO#S#QO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#z#yi#{#yi&s#yi!x#yi!n#yi~P!'WOz#RO#S#QO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#z#yi#{#yi#|#yi&s#yi!x#yi!n#yi~P!'WOz#RO#S#QO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#z#yi#{#yi#|#yi#}#yi&s#yi!x#yi!n#yi~P!'WOz#RO#S#QO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#z#yi#{#yi#|#yi#}#yi$O#yi&s#yi!x#yi!n#yi~P!'WOz#RO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi&s#yi!x#yi!n#yi~P!'WOz#RO$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi&s#yi!x#yi!n#yi~P!'WOz#RO$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi&s#yi!x#yi!n#yi~P!'WOz#RO$T#`O$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$U#yi&s#yi!x#yi!n#yi~P!'WOz#RO$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi&s#yi!x#yi!n#yi~P!'WOz#RO$S#_O$T#`O$V#bO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$U#yi&s#yi!x#yi!n#yi~P!'WOz#RO$W#bO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi&s#yi!x#yi!n#yi~P!'WO_)yO~P9yO!x)|O~O#S*PO~P9yOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}#Ta#X#Ta#O#Ta!m#Ta&s#Ta!x#Ta!n#TaV#Ta!q#Ta~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}'Pa#X'Pa#O'Pa!m'Pa&s'Pa!x'Pa!n'PaV'Pa!q'Pa~P!'WO#S#oO#U#nO!}&WX#X&WX~P9yO!}&wO#X'Oa~O#X*SO~OT6iOz6gO!S6jO!b6kO!v8sO!}*UO#O*TO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!x'QX~P!'WO!}*UO!x'QX~O!x*WO~O!m#oi!o#oi#S#oi#p#qX&s#oi!x#oi#O#oiw#oi~OT#oiz#oi!S#oi!b#oi!v#oi!y#oi#W#oi#`#oi#a#oi#s#oi#z#oi#{#oi#|#oi#}#oi$O#oi$Q#oi$R#oi$S#oi$T#oi$U#oi$V#oi$W#oi$z#oi!}#oi#X#oi!n#oiV#oi!q#oi#u#oi#w#oi~P#*zO#l'SO!x#ka#S#ka#U#ka#b#ka!o#ka#O#kaw#ka!m#ka&s#ka~OPgOQ|OU^OW}O[4OOo5xOs#hOx3zOy3zO}`O!O]O!Q2^O!R}O!T4UO!U3|O!V3|O!Y2`O!c3xO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T4SO$]4QO$^4SO$aqO$z2_O${!OO$}}O%O}O%V|O'g{O~O#l#oa#U#oa#b#oa~PIpOz#RO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#Pi!S#Pi!b#Pi!m#Pi&s#Pi!x#Pi!n#Pi~P!'WOz#RO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#vi!S#vi!b#vi!m#vi&s#vi!x#vi!n#vi~P!'WO!m#xi&s#xi!x#xi!n#xi~PCqO!s#gO#peO!}&^X#X&^X~O!}'^O#X'Za~O!s'uO~Ow(SO!o)WO!q*fO~O!s*jO~O#S*lO#U*mO#b*kO#l'SO~O#S*lO#U*mO#b*kO$drO~P0aO#u*oO!x$cX!}$cX~O#U*mO#b*kO~O#b*pO~O#b*rO~P0aO!}*sO!x'XX~O!x*uO~O!y*wO~O!^*{O!oXO!q*zO~O!q*}O!o'ci!m'ci&s'ci~O!q+QO#O+PO~O#b$nO!m&eX!}&eX&s&eX~O!}'{O!m'ba&s'ba~OT$kiz$ki!S$ki!b$ki!m$ki!o$ki!v$ki!y$ki#S$ki#W$ki#`$ki#a$ki#s$ki#u#fa#w#fa#z$ki#{$ki#|$ki#}$ki$O$ki$Q$ki$R$ki$S$ki$T$ki$U$ki$V$ki$W$ki$z$ki&s$ki!x$ki!}$ki#O$ki#X$ki!n$ki!q$kiV$ki~OS+^O]+aOm+^Os$aO!^+dO!_+^O!`+^O!n+hO#b$nO$aqO$drO~P0aO!s+lO~O#W+nO#`+mO#a+mO~O!s+pO#b+pO$}+pO%T+oO~O!n+qO~PCqOc%XXd%XXh%XXj%XXf%XXg%XXe%XX~PhOc+uOd+sOP%WiQ%WiS%WiU%WiW%WiX%Wi[%Wi]%Wi^%Wi`%Wia%Wib%Wik%Wim%Wio%Wip%Wiq%Wis%Wit%Wiu%Wiv%Wix%Wiy%Wi|%Wi}%Wi!O%Wi!P%Wi!Q%Wi!R%Wi!T%Wi!U%Wi!V%Wi!W%Wi!X%Wi!Y%Wi!Z%Wi![%Wi!]%Wi!^%Wi!`%Wi!a%Wi!c%Wi!m%Wi!o%Wi!s%Wi!y%Wi#W%Wi#b%Wi#d%Wi#e%Wi#p%Wi$T%Wi$]%Wi$^%Wi$a%Wi$d%Wi$l%Wi$z%Wi${%Wi$}%Wi%O%Wi%V%Wi&p%Wi'g%Wi&t%Wi!n%Wih%Wij%Wif%Wig%WiY%Wi_%Wii%Wie%Wi~Oc+yOd+vOh+xO~OY+zO_+{O!n,OO~OY+zO_+{Oi%^X~Oi,QO~Oj,RO~O!m,TO~P9yO!m,VO~Of,WO~OT6iOV,XOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO~P!'WOg,YO~O!y,ZO~OZ(wOn(xOP%liQ%liS%liU%liW%liX%li[%li]%li^%li`%lia%lib%lik%lim%lio%lip%liq%lis%lit%liu%liv%lix%liy%li|%li}%li!O%li!P%li!Q%li!R%li!T%li!U%li!V%li!W%li!X%li!Y%li!Z%li![%li!]%li!^%li!`%li!a%li!c%li!m%li!o%li!s%li!y%li#W%li#b%li#d%li#e%li#p%li$T%li$]%li$^%li$a%li$d%li$l%li$z%li${%li$}%li%O%li%V%li&p%li'g%li&t%li!n%lic%lid%lih%lij%lif%lig%liY%li_%lii%lie%li~O#u,_O~O!}({O!m%da&s%da~O!x,bO~O!s%dO!m&dX!}&dX&s&dX~O!})QO!m'`a&s'`a~OS+^OY,iOm+^Os$aO!^+dO!_+^O!`+^O$aqO$drO~O!n,lO~P#JwO!o)WO~O!o%pO!s'RO~O!s#gO#peO!m&nX!}&nX&s&nX~O!})_O!m'ka&s'ka~O!s,rO~OV,sO!n%|X!}%|X~O!},uO!n'lX~O!n,wO~O!m&UX!}&UX&s&UX#O&UX~P9yO!})iO!m&|a&s&|a#O&|a~Oz#RO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT!uq!S!uq!b!uq!m!uq!v!uq&s!uq!x!uq!n!uq~P!'WO!n,|O~PCqOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x#ia!}#ia~P!'WO!x&YX!}&YX~PAOO!})vO!x'Sa~O#O-QO~O!}-RO!n&{X~O!n-TO~O!x-UO~OT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}#Vi#X#Vi~P!'WO!x&XX!}&XX~P9yO!}*UO!x'Qa~O!x-[O~OT#jqz#jq!S#jq!b#jq!m#jq!v#jq#S#jq#u#jq#w#jq#z#jq#{#jq#|#jq#}#jq$O#jq$Q#jq$R#jq$S#jq$T#jq$U#jq$V#jq$W#jq$z#jq&s#jq!x#jq!}#jq#O#jq#X#jq!n#jq!q#jqV#jq~P!'WO#l#oi#U#oi#b#oi~P#*zOz#RO!v!yO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT#Pq!S#Pq!b#Pq!m#Pq&s#Pq!x#Pq!n#Pq~P!'WO#u-dO!x$ca!}$ca~O#U-fO#b-eO~O#b-gO~O#S-hO#U-fO#b-eO#l'SO~O#b-jO#l'SO~O#u-kO!x$ha!}$ha~O!`'mO#S'kO#U'lO#b'jO$drO!x&_X!}&_X~P0aO!}*sO!x'Xa~O!oXO#l'SO~O#S-pO#b-oO!x'[P~O!oXO!q-rO~O!q-uO!o'cq!m'cq&s'cq~O!^-wO!oXO!q-rO~O!q-{O#O-zO~OT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m$si!}$si&s$si~P!'WO!m$jq&s$jq!x$jq!n$jq~PCqO#O-zO#l'SO~O!}-|Ow']X!o']X!m']X&s']X~O#b$nO#l'SO~OS+^O].ROm+^Os$aO!_+^O!`+^O#b$nO$aqO$drO~P0aOS+^O].ROm+^Os$aO!_+^O!`+^O#b$nO$aqO~P0aOS+^O]+aOm+^Os$aO!^+dO!_+^O!`+^O!n.ZO#b$nO$aqO$drO~P0aO!s.^O~O!s._O#b._O$}._O%T+oO~O$}.`O~O#X.aO~Oc%Xad%Xah%Xaj%Xaf%Xag%Xae%Xa~PhOc.dOd+sOP%WqQ%WqS%WqU%WqW%WqX%Wq[%Wq]%Wq^%Wq`%Wqa%Wqb%Wqk%Wqm%Wqo%Wqp%Wqq%Wqs%Wqt%Wqu%Wqv%Wqx%Wqy%Wq|%Wq}%Wq!O%Wq!P%Wq!Q%Wq!R%Wq!T%Wq!U%Wq!V%Wq!W%Wq!X%Wq!Y%Wq!Z%Wq![%Wq!]%Wq!^%Wq!`%Wq!a%Wq!c%Wq!m%Wq!o%Wq!s%Wq!y%Wq#W%Wq#b%Wq#d%Wq#e%Wq#p%Wq$T%Wq$]%Wq$^%Wq$a%Wq$d%Wq$l%Wq$z%Wq${%Wq$}%Wq%O%Wq%V%Wq&p%Wq'g%Wq&t%Wq!n%Wqh%Wqj%Wqf%Wqg%WqY%Wq_%Wqi%Wqe%Wq~Oc.iOd+vOh.hO~O!q(`O~OP6]OQ|OU^OW}O[:fOo>ROs#hOx:dOy:dO}`O!O]O!Q:kO!R}O!T:jO!U:eO!V:eO!Y:oO!c8gO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T:hO$]:gO$^:hO$aqO$z:mO${!OO$}}O%O}O%V|O'g{O~O!m.lO!q.lO~OY+zO_+{O!n.nO~OY+zO_+{Oi%^a~O!x.rO~P>UO!m.tO~O!m.tO~P9yOQ|OW}O!R}O$}}O%O}O%V|O'g{O~OT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m&ka!}&ka&s&ka~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m$qi!}$qi&s$qi~P!'WOS+^Om+^Os$aO!_+^O!`+^O$aqO$drO~OY/PO~P$?VOS+^Om+^Os$aO!_+^O!`+^O$aqO~O!s/QO~O!n/SO~P#JwOw(SO!o)WO#l'SO~OV/VO!m&na!}&na&s&na~O!})_O!m'ki&s'ki~O!s/XO~OV/YO!n%|a!}%|a~O]/[Os/[O!s#gO#peO!n&oX!}&oX~O!},uO!n'la~OT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m&Ua!}&Ua&s&Ua#O&Ua~P!'WOz#RO#S#QO#z#SO#{#WO#|#XO#}#YO$O#ZO$Q#]O$R#^O$S#_O$T#`O$U#aO$V#bO$W#bO$z#dOT!uy!S!uy!b!uy!m!uy!v!uy&s!uy!x!uy!n!uy~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x#hi!}#hi~P!'WO_)yO!n&VX!}&VX~P9yO!}-RO!n&{a~OT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}#Vq#X#Vq~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x#[i!}#[i~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#O/cO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!x&Xa!}&Xa~P!'WO#u/iO!x$ci!}$ci~O#b/jO~O#U/lO#b/kO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x$ci!}$ci~P!'WO#u/mO!x$hi!}$hi~O!}/oO!x'[X~O#b/qO~O!x/rO~O!oXO!q/uO~O#l'SO!o'cy!m'cy&s'cy~O!m$jy&s$jy!x$jy!n$jy~PCqO#O/xO#l'SO~O!s#gO#peOw&aX!o&aX!}&aX!m&aX&s&aX~O!}-|Ow']a!o']a!m']a&s']a~OU$PO]0QO!R$PO!s$OO!v#}O#b$nO#p2XO~P$?uO!m#cO!o0VO&s#cO~O#X0YO~Oh0_O~OT:tOz:pO!S:vO!b:xO!m0`O!q0`O!v=mO#S#QO#z:rO#{:zO#|:|O#};OO$O;QO$Q;UO$R;WO$S;YO$T;[O$U;^O$V;`O$W;`O$z#dO~P!'WOY%]a_%]a!n%]ai%]a~PhO!x0bO~O!x0bO~P>UO!m0dO~OT6iOz6gO!S6jO!b6kO!v8sO!x0fO#O0eO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO~P!'WO!x0fO~O!x0gO#b0hO#l'SO~O!x0iO~O!s0jO~O!m#cO#u0lO&s#cO~O!s0mO~O!})_O!m'kq&s'kq~O!s0nO~OV0oO!n%}X!}%}X~OT:tOz:pO!S:vO!b:xO!v=mO#S#QO#z:rO#{:zO#|:|O#};OO$O;QO$Q;UO$R;WO$S;YO$T;[O$U;^O$V;`O$W;`O$z#dO!n!|i!}!|i~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x$cq!}$cq~P!'WO#u0vO!x$cq!}$cq~O#b0wO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x$hq!}$hq~P!'WO#S0zO#b0yO!x&`X!}&`X~O!}/oO!x'[a~O#l'SO!o'c!R!m'c!R&s'c!R~O!oXO!q1PO~O!m$j!R&s$j!R!x$j!R!n$j!R~PCqO#O1RO#l'SO~OP6]OU^O[9WOo>SOs#hOx9WOy9WO}`O!O]O!Q:lO!T9WO!U9WO!V9WO!Y9WO!c8hO!n1^O!s1YO!y[O#W_O#bhO#daO#ebO#peO$T:iO$]9WO$^:iO$aqO$z:nO${!OO~P$;lOh1_O~OY%[i_%[i!n%[ii%[i~PhOY%]i_%]i!n%]ii%]i~PhO!x1bO~O!x1bO~P>UO!x1eO~O!m#cO#u1iO&s#cO~O$}1jO%V1jO~O!s1kO~OV1lO!n%}a!}%}a~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x#]i!}#]i~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x$cy!}$cy~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x$hy!}$hy~P!'WO#b1nO~O!}/oO!x'[i~O!m$j!Z&s$j!Z!x$j!Z!n$j!Z~PCqOT:uOz:qO!S:wO!b:yO!v=nO#S#QO#z:sO#{:{O#|:}O#};PO$O;RO$Q;VO$R;XO$S;ZO$T;]O$U;_O$V;aO$W;aO$z#dO~P!'WOV1uO{1tO~P!5xOV1uO{1tOT&}Xz&}X!S&}X!b&}X!o&}X!v&}X!y&}X#S&}X#W&}X#`&}X#a&}X#s&}X#u&}X#w&}X#z&}X#{&}X#|&}X#}&}X$O&}X$Q&}X$R&}X$S&}X$T&}X$U&}X$V&}X$W&}X$z&}X~OP6]OU^O[9WOo>SOs#hOx9WOy9WO}`O!O]O!Q:lO!T9WO!U9WO!V9WO!Y9WO!c8hO!n1xO!s1YO!y[O#W_O#bhO#daO#ebO#peO$T:iO$]9WO$^:iO$aqO$z:nO${!OO~P$;lOY%[q_%[q!n%[qi%[q~PhO!x1zO~O!x%gi~PCqOe1{O~O$}1|O%V1|O~O!s2OO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x$c!R!}$c!R~P!'WO!m$j!c&s$j!c!x$j!c!n$j!c~PCqO!s2QO~O!`2SO!s2RO~O!s2VO!m$xi&s$xi~O!s'WO~O!s*]O~OT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$ka#u$ka#w$ka&s$ka!x$ka!n$ka!q$ka#X$ka!}$ka~P!'WO#S2]O~P*kO$l$tO~P#.YOT6iOz6gO!S6jO!b6kO!v8sO#O2[O#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m'PX&s'PX!x'PX!n'PX~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#O3uO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}'PX#X'PX#u'PX#w'PX!m'PX&s'PX!x'PX!n'PXV'PX!q'PX~P!'WO#S3dO~P#.YOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$Xa#u$Xa#w$Xa&s$Xa!x$Xa!n$Xa!q$Xa#X$Xa!}$Xa~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$Ya#u$Ya#w$Ya&s$Ya!x$Ya!n$Ya!q$Ya#X$Ya!}$Ya~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$Za#u$Za#w$Za&s$Za!x$Za!n$Za!q$Za#X$Za!}$Za~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$[a#u$[a#w$[a&s$[a!x$[a!n$[a!q$[a#X$[a!}$[a~P!'WOz2aO#u$[a#w$[a!q$[a#X$[a!}$[a~PNyOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$_a#u$_a#w$_a&s$_a!x$_a!n$_a!q$_a#X$_a!}$_a~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$|a#u$|a#w$|a&s$|a!x$|a!n$|a!q$|a#X$|a!}$|a~P!'WOz2aO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#u#yi#w#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi#u#yi#w#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOT2cOz2aO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!S#yi!m#yi#u#yi#w#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOT2cOz2aO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!S#yi!b#yi!m#yi#u#yi#w#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO#S#QO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#u#yi#w#yi#z#yi#{#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO#S#QO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#u#yi#w#yi#z#yi#{#yi#|#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO#S#QO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO#S#QO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$T2nO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$U#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$S2mO$T2nO$V2pO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$U#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOz2aO$W2pO$z#dOT#yi!S#yi!b#yi!m#yi!v#yi#S#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi&s#yi!x#yi!n#yi!q#yi#X#yi!}#yi~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m#Ta#u#Ta#w#Ta&s#Ta!x#Ta!n#Ta!q#Ta#X#Ta!}#Ta~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m'Pa#u'Pa#w'Pa&s'Pa!x'Pa!n'Pa!q'Pa#X'Pa!}'Pa~P!'WOz2aO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#Pi!S#Pi!b#Pi!m#Pi#u#Pi#w#Pi&s#Pi!x#Pi!n#Pi!q#Pi#X#Pi!}#Pi~P!'WOz2aO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#vi!S#vi!b#vi!m#vi#u#vi#w#vi&s#vi!x#vi!n#vi!q#vi#X#vi!}#vi~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m#xi#u#xi#w#xi&s#xi!x#xi!n#xi!q#xi#X#xi!}#xi~P!'WOz2aO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT!uq!S!uq!b!uq!m!uq!v!uq#u!uq#w!uq&s!uq!x!uq!n!uq!q!uq#X!uq!}!uq~P!'WOz2aO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT#Pq!S#Pq!b#Pq!m#Pq#u#Pq#w#Pq&s#Pq!x#Pq!n#Pq!q#Pq#X#Pq!}#Pq~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$jq#u$jq#w$jq&s$jq!x$jq!n$jq!q$jq#X$jq!}$jq~P!'WOz2aO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dOT!uy!S!uy!b!uy!m!uy!v!uy#u!uy#w!uy&s!uy!x!uy!n!uy!q!uy#X!uy!}!uy~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$jy#u$jy#w$jy&s$jy!x$jy!n$jy!q$jy#X$jy!}$jy~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$j!R#u$j!R#w$j!R&s$j!R!x$j!R!n$j!R!q$j!R#X$j!R!}$j!R~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$j!Z#u$j!Z#w$j!Z&s$j!Z!x$j!Z!n$j!Z!q$j!Z#X$j!Z!}$j!Z~P!'WOT2cOz2aO!S2dO!b2eO!v4WO#S#QO#z2bO#{2fO#|2gO#}2hO$O2iO$Q2kO$R2lO$S2mO$T2nO$U2oO$V2pO$W2pO$z#dO!m$j!c#u$j!c#w$j!c&s$j!c!x$j!c!n$j!c!q$j!c#X$j!c!}$j!c~P!'WOP6]OU^O[4POo8^Os#hOx3{Oy3{O}`O!O]O!Q4aO!T4VO!U3}O!V3}O!Y4cO!c3yO!s#gO!y[O#S3vO#W_O#bhO#daO#ebO#peO$T4TO$]4RO$^4TO$aqO$z4bO${!OO~P$;lOP6]OU^O[4POo8^Os#hOx3{Oy3{O}`O!O]O!Q4aO!T4VO!U3}O!V3}O!Y4cO!c3yO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T4TO$]4RO$^4TO$aqO$z4bO${!OO~P$;lO#u2uO#w2vO!q&zX#X&zX!}&zX~P0rOP6]OU^O[4POo8^Or2wOs#hOx3{Oy3{O}`O!O]O!Q4aO!T4VO!U3}O!V3}O!Y4cO!c3yO!s#gO!y[O#S2tO#U2sO#W_O#bhO#daO#ebO#peO$T4TO$]4RO$^4TO$aqO$z4bO${!OOT#xXz#xX!S#xX!b#xX!m#xX!o#xX!v#xX#`#xX#a#xX#s#xX#u#xX#w#xX#z#xX#{#xX#|#xX#}#xX$O#xX$Q#xX$R#xX$S#xX$U#xX$V#xX$W#xX&s#xX!x#xX!n#xX!q#xX#X#xX!}#xX~P$;lOP6]OU^O[4POo8^Or4xOs#hOx3{Oy3{O}`O!O]O!Q4aO!T4VO!U3}O!V3}O!Y4cO!c3yO!s#gO!y[O#S4uO#U4tO#W_O#bhO#daO#ebO#peO$T4TO$]4RO$^4TO$aqO$z4bO${!OOT#xXz#xX!S#xX!b#xX!o#xX!v#xX!}#xX#O#xX#X#xX#`#xX#a#xX#s#xX#u#xX#w#xX#z#xX#{#xX#|#xX#}#xX$O#xX$Q#xX$R#xX$S#xX$U#xX$V#xX$W#xX!m#xX&s#xX!x#xX!n#xXV#xX!q#xX~P$;lO!q3PO~P>UO!q5}O#O3gO~OT8vOz8tO!S8wO!b8xO!q3hO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO~P!'WO!q6OO#O3kO~O!q6PO#O3oO~O#O3oO#l'SO~O#O3pO#l'SO~O#O3sO#l'SO~OP6]OU^O[4POo8^Os#hOx3{Oy3{O}`O!O]O!Q4aO!T4VO!U3}O!V3}O!Y4cO!c3yO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T4TO$]4RO$^4TO$aqO$l$tO$z4bO${!OO~P$;lOP6]OU^O[4POo8^Os#hOx3{Oy3{O}`O!O]O!Q4aO!T4VO!U3}O!V3}O!Y4cO!c3yO!s#gO!y[O#S5eO#W_O#bhO#daO#ebO#peO$T4TO$]4RO$^4TO$aqO$z4bO${!OO~P$;lOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$Xa#O$Xa#X$Xa#u$Xa#w$Xa!m$Xa&s$Xa!x$Xa!n$XaV$Xa!q$Xa~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$Ya#O$Ya#X$Ya#u$Ya#w$Ya!m$Ya&s$Ya!x$Ya!n$YaV$Ya!q$Ya~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$Za#O$Za#X$Za#u$Za#w$Za!m$Za&s$Za!x$Za!n$ZaV$Za!q$Za~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$[a#O$[a#X$[a#u$[a#w$[a!m$[a&s$[a!x$[a!n$[aV$[a!q$[a~P!'WOz4dO!}$[a#O$[a#X$[a#u$[a#w$[aV$[a!q$[a~PNyOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$_a#O$_a#X$_a#u$_a#w$_a!m$_a&s$_a!x$_a!n$_aV$_a!q$_a~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$|a#O$|a#X$|a#u$|a#w$|a!m$|a&s$|a!x$|a!n$|aV$|a!q$|a~P!'WOz4dO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#u#yi#w#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!}#yi#O#yi#X#yi#u#yi#w#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOT4fOz4dO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!S#yi!}#yi#O#yi#X#yi#u#yi#w#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOT4fOz4dO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!S#yi!b#yi!}#yi#O#yi#X#yi#u#yi#w#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO#S#QO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#u#yi#w#yi#z#yi#{#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO#S#QO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO#S#QO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO#S#QO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$T4qO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$S4pO$T4qO$V4sO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz4dO$W4sO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#u#yi#w#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}#Ta#O#Ta#X#Ta#u#Ta#w#Ta!m#Ta&s#Ta!x#Ta!n#TaV#Ta!q#Ta~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}'Pa#O'Pa#X'Pa#u'Pa#w'Pa!m'Pa&s'Pa!x'Pa!n'PaV'Pa!q'Pa~P!'WOz4dO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#Pi!S#Pi!b#Pi!}#Pi#O#Pi#X#Pi#u#Pi#w#Pi!m#Pi&s#Pi!x#Pi!n#PiV#Pi!q#Pi~P!'WOz4dO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#vi!S#vi!b#vi!}#vi#O#vi#X#vi#u#vi#w#vi!m#vi&s#vi!x#vi!n#viV#vi!q#vi~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}#xi#O#xi#X#xi#u#xi#w#xi!m#xi&s#xi!x#xi!n#xiV#xi!q#xi~P!'WOz4dO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT!uq!S!uq!b!uq!v!uq!}!uq#O!uq#X!uq#u!uq#w!uq!m!uq&s!uq!x!uq!n!uqV!uq!q!uq~P!'WOz4dO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT#Pq!S#Pq!b#Pq!}#Pq#O#Pq#X#Pq#u#Pq#w#Pq!m#Pq&s#Pq!x#Pq!n#PqV#Pq!q#Pq~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$jq#O$jq#X$jq#u$jq#w$jq!m$jq&s$jq!x$jq!n$jqV$jq!q$jq~P!'WOz4dO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dOT!uy!S!uy!b!uy!v!uy!}!uy#O!uy#X!uy#u!uy#w!uy!m!uy&s!uy!x!uy!n!uyV!uy!q!uy~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$jy#O$jy#X$jy#u$jy#w$jy!m$jy&s$jy!x$jy!n$jyV$jy!q$jy~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$j!R#O$j!R#X$j!R#u$j!R#w$j!R!m$j!R&s$j!R!x$j!R!n$j!RV$j!R!q$j!R~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$j!Z#O$j!Z#X$j!Z#u$j!Z#w$j!Z!m$j!Z&s$j!Z!x$j!Z!n$j!ZV$j!Z!q$j!Z~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$j!c#O$j!c#X$j!c#u$j!c#w$j!c!m$j!c&s$j!c!x$j!c!n$j!cV$j!c!q$j!c~P!'WO#S5wO~P#.YO!y$hO#S5{O~O!x4ZO#l'SO~O!y$hO#S5|O~OT4fOz4dO!S4gO!b4hO!v6TO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!}$ka#O$ka#X$ka#u$ka#w$ka!m$ka&s$ka!x$ka!n$kaV$ka!q$ka~P!'WOT4fOz4dO!S4gO!b4hO!v6TO#O5vO#S#QO#z4eO#{4iO#|4jO#}4kO$O4lO$Q4nO$R4oO$S4pO$T4qO$U4rO$V4sO$W4sO$z#dO!m'PX#u'PX#w'PX&s'PX!x'PX!n'PX!q'PX#X'PX!}'PX~P!'WO#u4vO#w4wO!}&zX#O&zX#X&zXV&zX!q&zX~P0rO!q5QO~P>UO!q8bO#O5hO~OT8vOz8tO!S8wO!b8xO!q5iO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO~P!'WO!q8cO#O5lO~O!q8dO#O5pO~O#O5pO#l'SO~O#O5qO#l'SO~O#O5tO#l'SO~O$l$tO~P9yOo5zOs$lO~O#S7oO~P9yOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$Xa#O$Xa#X$Xa!m$Xa&s$Xa!x$Xa!n$XaV$Xa!q$Xa~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$Ya#O$Ya#X$Ya!m$Ya&s$Ya!x$Ya!n$YaV$Ya!q$Ya~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$Za#O$Za#X$Za!m$Za&s$Za!x$Za!n$ZaV$Za!q$Za~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$[a#O$[a#X$[a!m$[a&s$[a!x$[a!n$[aV$[a!q$[a~P!'WOz6gO!}$[a#O$[a#X$[aV$[a!q$[a~PNyOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$_a#O$_a#X$_a!m$_a&s$_a!x$_a!n$_aV$_a!q$_a~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$ka#O$ka#X$ka!m$ka&s$ka!x$ka!n$kaV$ka!q$ka~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$|a#O$|a#X$|a!m$|a&s$|a!x$|a!n$|aV$|a!q$|a~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO!}7sO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x'jX~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO!}7uO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x&|X~P!'WOz6gO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!}#yi#O#yi#X#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOT6iOz6gO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!S#yi!}#yi#O#yi#X#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOT6iOz6gO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!S#yi!b#yi!}#yi#O#yi#X#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO#S#QO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#z#yi#{#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO#S#QO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#z#yi#{#yi#|#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO#S#QO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#z#yi#{#yi#|#yi#}#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO#S#QO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$T6tO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$S6sO$T6tO$V6vO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$U#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WOz6gO$W6vO$z#dOT#yi!S#yi!b#yi!v#yi!}#yi#O#yi#S#yi#X#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi!m#yi&s#yi!x#yi!n#yiV#yi!q#yi~P!'WO#S7zO~P>UO!m#Ta&s#Ta!x#Ta!n#Ta~PCqO!m'Pa&s'Pa!x'Pa!n'Pa~PCqO#S;dO#U;cO!x&WX!}&WX~P9yO!}7lO!x'Oa~Oz6gO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#Pi!S#Pi!b#Pi!}#Pi#O#Pi#X#Pi!m#Pi&s#Pi!x#Pi!n#PiV#Pi!q#Pi~P!'WOz6gO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#vi!S#vi!b#vi!}#vi#O#vi#X#vi!m#vi&s#vi!x#vi!n#viV#vi!q#vi~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}#xi#O#xi#X#xi!m#xi&s#xi!x#xi!n#xiV#xi!q#xi~P!'WO!}7sO!x%da~O!x&UX!}&UX~P>UO!}7uO!x&|a~Oz6gO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT!uq!S!uq!b!uq!v!uq!}!uq#O!uq#X!uq!m!uq&s!uq!x!uq!n!uqV!uq!q!uq~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x#Vi!}#Vi~P!'WOz6gO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT#Pq!S#Pq!b#Pq!}#Pq#O#Pq#X#Pq!m#Pq&s#Pq!x#Pq!n#PqV#Pq!q#Pq~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$jq#O$jq#X$jq!m$jq&s$jq!x$jq!n$jqV$jq!q$jq~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x&ka!}&ka~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x&Ua!}&Ua~P!'WOz6gO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dOT!uy!S!uy!b!uy!v!uy!}!uy#O!uy#X!uy!m!uy&s!uy!x!uy!n!uyV!uy!q!uy~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!x#Vq!}#Vq~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$jy#O$jy#X$jy!m$jy&s$jy!x$jy!n$jyV$jy!q$jy~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$j!R#O$j!R#X$j!R!m$j!R&s$j!R!x$j!R!n$j!RV$j!R!q$j!R~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$j!Z#O$j!Z#X$j!Z!m$j!Z&s$j!Z!x$j!Z!n$j!ZV$j!Z!q$j!Z~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!}$j!c#O$j!c#X$j!c!m$j!c&s$j!c!x$j!c!n$j!cV$j!c!q$j!c~P!'WO#S8[O~P9yO#O8ZO!m'PX&s'PX!x'PX!n'PXV'PX!q'PX~PGSO!y$hO#S8`O~O!y$hO#S8aO~O#u6zO#w6{O!}&zX#O&zX#X&zXV&zX!q&zX~P0rOr6|O#S#oO#U#nO!}#xX#O#xX#X#xXV#xX!q#xX~P2yOr;iO#S9XO#U9VOT#xXz#xX!S#xX!b#xX!m#xX!o#xX!q#xX!v#xX#`#xX#a#xX#s#xX#z#xX#{#xX#|#xX#}#xX$O#xX$Q#xX$R#xX$S#xX$U#xX$V#xX$W#xX!n#xX!}#xX~P9yOr9WO#S9WO#U9WOT#xXz#xX!S#xX!b#xX!o#xX!v#xX#`#xX#a#xX#s#xX#z#xX#{#xX#|#xX#}#xX$O#xX$Q#xX$R#xX$S#xX$U#xX$V#xX$W#xX~P9yOr9]O#S;dO#U;cOT#xXz#xX!S#xX!b#xX!o#xX!q#xX!v#xX#`#xX#a#xX#s#xX#z#xX#{#xX#|#xX#}#xX$O#xX$Q#xX$R#xX$S#xX$U#xX$V#xX$W#xX#X#xX!x#xX!}#xX~P9yO$l$tO~P>UO!q7XO~P>UOT6iOz6gO!S6jO!b6kO!v8sO#O7iO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!x'PX!}'PX~P!'WOP6]OU^O[9WOo>SOs#hOx9WOy9WO}`O!O]O!Q:lO!T9WO!U9WO!V9WO!Y9WO!c8hO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T:iO$]9WO$^:iO$aqO$z:nO${!OO~P$;lO!}7lO!x'OX~O#S9yO~P>UOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$Xa#X$Xa!x$Xa!}$Xa~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$Ya#X$Ya!x$Ya!}$Ya~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$Za#X$Za!x$Za!}$Za~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$[a#X$[a!x$[a!}$[a~P!'WOz8tO$z#dOT$[a!S$[a!b$[a!q$[a!v$[a#S$[a#z$[a#{$[a#|$[a#}$[a$O$[a$Q$[a$R$[a$S$[a$T$[a$U$[a$V$[a$W$[a#X$[a!x$[a!}$[a~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$_a#X$_a!x$_a!}$_a~P!'WO!q=dO#O7rO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$ka#X$ka!x$ka!}$ka~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$|a#X$|a!x$|a!}$|a~P!'WOT8vOz8tO!S8wO!b8xO!q7wO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO~P!'WOz8tO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#X#yi!x#yi!}#yi~P!'WOz8tO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi#X#yi!x#yi!}#yi~P!'WOT8vOz8tO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!S#yi!q#yi#X#yi!x#yi!}#yi~P!'WOT8vOz8tO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!S#yi!b#yi!q#yi#X#yi!x#yi!}#yi~P!'WOz8tO#S#QO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#z#yi#{#yi#X#yi!x#yi!}#yi~P!'WOz8tO#S#QO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#z#yi#{#yi#|#yi#X#yi!x#yi!}#yi~P!'WOz8tO#S#QO$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#z#yi#{#yi#|#yi#}#yi#X#yi!x#yi!}#yi~P!'WOz8tO#S#QO$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#z#yi#{#yi#|#yi#}#yi$O#yi#X#yi!x#yi!}#yi~P!'WOz8tO$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi#X#yi!x#yi!}#yi~P!'WOz8tO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi#X#yi!x#yi!}#yi~P!'WOz8tO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi#X#yi!x#yi!}#yi~P!'WOz8tO$T9RO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$U#yi#X#yi!x#yi!}#yi~P!'WOz8tO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi#X#yi!x#yi!}#yi~P!'WOz8tO$S9QO$T9RO$V9TO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$U#yi#X#yi!x#yi!}#yi~P!'WOz8tO$W9TO$z#dOT#yi!S#yi!b#yi!q#yi!v#yi#S#yi#z#yi#{#yi#|#yi#}#yi$O#yi$Q#yi$R#yi$S#yi$T#yi$U#yi$V#yi#X#yi!x#yi!}#yi~P!'WOz8tO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#Pi!S#Pi!b#Pi!q#Pi#X#Pi!x#Pi!}#Pi~P!'WOz8tO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#vi!S#vi!b#vi!q#vi#X#vi!x#vi!}#vi~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q#xi#X#xi!x#xi!}#xi~P!'WO!q=eO#O7|O~Oz8tO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT!uq!S!uq!b!uq!q!uq!v!uq#X!uq!x!uq!}!uq~P!'WOz8tO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT#Pq!S#Pq!b#Pq!q#Pq#X#Pq!x#Pq!}#Pq~P!'WO!q=iO#O8TO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$jq#X$jq!x$jq!}$jq~P!'WO#O8TO#l'SO~Oz8tO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dOT!uy!S!uy!b!uy!q!uy!v!uy#X!uy!x!uy!}!uy~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$jy#X$jy!x$jy!}$jy~P!'WO#O8UO#l'SO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$j!R#X$j!R!x$j!R!}$j!R~P!'WO#O8XO#l'SO~OT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$j!Z#X$j!Z!x$j!Z!}$j!Z~P!'WOT8vOz8tO!S8wO!b8xO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO!q$j!c#X$j!c!x$j!c!}$j!c~P!'WO#S:bO~P>UO#O:aO!q'PX!x'PX~PGSO$l$tO~P$8YOP6]OU^O[9WOo>SOs#hOx9WOy9WO}`O!O]O!Q:lO!T9WO!U9WO!V9WO!Y9WO!c8hO!s#gO!y[O#W_O#bhO#daO#ebO#peO$T:iO$]9WO$^:iO$aqO$l$tO$z:nO${!OO~P$;lOo8_Os$lO~O#SSOs#hOx9WOy9WO}`O!O]O!Q:lO!T9WO!U9WO!V9WO!Y9WO!c8hO!s#gO!y[O#SSOs#hOx9WOy9WO}`O!O]O!Q:lO!T9WO!U9WO!V9WO!Y9WO!c8hO!s#gO!y[O#S=UO#W_O#bhO#daO#ebO#peO$T:iO$]9WO$^:iO$aqO$z:nO${!OO~P$;lOT6iOz6gO!S6jO!b6kO!v8sO#O=SO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO~P!'WOT6iOz6gO!S6jO!b6kO!v8sO#O=RO#S#QO#z6hO#{6lO#|6mO#}6nO$O6oO$Q6qO$R6rO$S6sO$T6tO$U6uO$V6vO$W6vO$z#dO!m'PX!q'PX!n'PX!}'PX~P!'WOT&zXz&zX!S&zX!b&zX!o&zX!q&zX!v&zX!y&zX#S&zX#W&zX#`&zX#a&zX#s&zX#z&zX#{&zX#|&zX#}&zX$O&zX$Q&zX$R&zX$S&zX$T&zX$U&zX$V&zX$W&zX$z&zX!}&zX~O#u9ZO#w9[O#X&zX!x&zX~P.8oO!y$hO#S=^O~O!q9hO~P>UO!y$hO#S=cO~O!q>OO#O9}O~OT8vOz8tO!S8wO!b8xO!q:OO!v=ZO#S#QO#z8uO#{8yO#|8zO#}8{O$O8|O$Q9OO$R9PO$S9QO$T9RO$U9SO$V9TO$W9TO$z#dO~P!'WOT:tOz:pO!S:vO!b:xO!v=mO#S#QO#z:rO#{:zO#|:|O#};OO$O;QO$Q;UO$R;WO$S;YO$T;[O$U;^O$V;`O$W;`O$z#dO!m#Ta!q#Ta!n#Ta!}#Ta~P!'WOT:tOz:pO!S:vO!b:xO!v=mO#S#QO#z:rO#{:zO#|:|O#};OO$O;QO$Q;UO$R;WO$S;YO$T;[O$U;^O$V;`O$W;`O$z#dO!m'Pa!q'Pa!n'Pa!}'Pa~P!'WO!q>PO#O:RO~O!q>QO#O:YO~O#O:YO#l'SO~O#O:ZO#l'SO~O#O:_O#l'SO~O#u;eO#w;gO!m&zX!n&zX~P.8oO#u;fO#w;hOT&zXz&zX!S&zX!b&zX!o&zX!v&zX!y&zX#S&zX#W&zX#`&zX#a&zX#s&zX#z&zX#{&zX#|&zX#}&zX$O&zX$Q&zX$R&zX$S&zX$T&zX$U&zX$V&zX$W&zX$z&zX~O!q;tO~P>UO!q;uO~P>UO!q>XO#OYO#O9WO~OT8vOz8tO!S8wO!b8xO!qZO#O[O#O<{O~O#O<{O#l'SO~O#O9WO#l'SO~O#O<|O#l'SO~O#O=PO#l'SO~O!y$hO#S=|O~Oo=[Os$lO~O!y$hO#S=}O~O!y$hO#S>UO~O!y$hO#S>VO~O!y$hO#S>WO~Oo={Os$lO~Oo>TOs$lO~Oo>SOs$lO~O%O$U$}$d!d$V#b%V#e'g!s#d~",goto:"%&y'mPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPPP'nP'uPP'{(OPPP(hP(OP(O*ZP*ZPP2W:j:mPP*Z:sBpPBsPBsPP:sCSCVCZ:s:sPPPC^PP:sK^!$S!$S:s!$WP!$W!$W!%UP!.]!7pP!?oP*ZP*Z*ZPPPPP!?rPPPPPPP*Z*Z*Z*ZPP*Z*ZP!E]!GRP!GV!Gy!GR!GR!HP*Z*ZP!HY!Hl!Ib!J`!Jd!J`!Jo!J}!J}!KV!KY!KY*ZPP*ZPP!K^#%[#%[#%`P#%fP(O#%j(O#&S#&V#&V#&](O#&`(O(O#&f#&i(O#&r#&u(O(O(O(O(O#&x(O(O(O(O(O(O(O(O(O#&{!KR(O(O#'_#'o#'r(O(OP#'u#'|#(S#(o#(y#)P#)Z#)b#)h#*d#4X#5T#5Z#5a#5k#5q#5w#6]#6c#6i#6o#6u#6{#7R#7]#7g#7m#7s#7}PPPPPPPP#8T#8X#8}#NO#NR#N]$(f$(r$)X$)_$)b$)e$)k$,X$5v$>_$>b$>h$>k$>n$>w$>{$?X$?k$Bk$CO$C{$K{PP%%y%%}%&Z%&p%&vQ!nQT!qV!rQUOR%x!mRVO}!hPVX!S!j!r!s!w$}%P%S%U(`+r+u.b.d.l0`0a0i1a|!hPVX!S!j!r!s!w$}%P%S%U(`+r+u.b.d.l0`0a0i1aQ%^!ZQ%g!aQ%l!eQ'd$dQ'q$iQ)[%kQ*y'tQ,](xU-n*v*x+OQ.W+cQ.{,[S/t-s-tQ0T.SS0}/s/wQ1V0RQ1o1OR2P1p0u!OPVX[_bjklmnopxyz!S!W!X!Y!]!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t$R$S$U$y$}%P%R%S%T%U%c%}&S&W&p&s&t&w'O'U'Y'z(O(`(l({)P)i)p)t)v*P*T*U*o+P+r+u+z,T,V,X-Q-R-d-k-z.b.d.l.t/c/i/m/x0V0`0a0d0e0i0v1R1]1a2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3u3v3x3y3z3{3|3}4O4P4Q4R4S4T4U4V4W4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t5v5w6T6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6x6y6z6{6|7X7i7l7o7r7s7u7w7z7|8T8U8X8Z8[8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9V9W9X9Z9[9]9h9y9}:O:R:Y:Z:_:a:b:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;`;a;c;d;e;f;g;h;i;t;uO>P>Q>X>Y>Z>[3ZfPVX[_bgjklmnoprxyz!S!W!X!Y!]!e!f!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t#}$R$S$U$h$y$}%P%R%S%T%U%c%p%r%}&S&W&p&s&t&w'O'S'U'Y'^'i'm'r'z(O(P(R(S(T(`(l({)P)Z)_)c)i)p)t)v*P*T*U*f*o*s*z*}+P+Q+]+`+d+g+r+u+z,T,V,X,Z,u-Q-R-d-k-r-u-z-{-|.Q.b.d.l.t/[/c/i/m/u/x0V0`0a0d0e0i0v1P1R1]1a2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3u3v3x3y3z3{3|3}4O4P4Q4R4S4T4U4V4W4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t5v5w5}6O6P6T6]6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6x6y6z6{6|7X7i7l7o7r7s7u7w7z7|8T8U8X8Z8[8b8c8d8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9V9W9X9Z9[9]9h9y9}:O:R:Y:Z:_:a:b:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;`;a;c;d;e;f;g;h;i;t;uO>P>Q>X>Y>Z>[3scPVX[_bdegjklmnoprxyz!S!W!X!Y!]!e!f!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t#{#}$R$S$U$h$y$}%P%R%S%T%U%c%m%n%p%r%}&S&W&p&s&t&w'O'S'U'Y'^'i'm'r'z(O(P(R(S(T(`(l({)P)Z)^)_)c)g)h)i)p)t)v*P*T*U*f*o*s*z*}+P+Q+]+`+d+g+r+u+z,T,V,X,Z,u,x-Q-R-d-k-r-u-z-{-|.Q.b.d.l.t/[/c/i/m/u/x0V0`0a0d0e0i0v1P1R1]1a2W2X2Y2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3u3v3x3y3z3{3|3}4O4P4Q4R4S4T4U4V4W4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t5v5w5}6O6P6T6]6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6x6y6z6{6|7X7i7l7o7r7s7u7w7z7|8T8U8X8Z8[8b8c8d8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9V9W9X9Z9[9]9h9y9}:O:R:Y:Z:_:a:b:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;`;a;c;d;e;f;g;h;i;t;uO>P>Q>X>Y>Z>[0phPVX[_bjklmnopxyz!S!W!X!Y!]!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t$R$S$U$y$}%P%R%S%T%U%c%}&S&W&p&s&t&w'O'U'Y'z(O(`(l({)P)i)p)t)v*P*T*U*o+P+r+u+z,T,V,X-Q-R-d-k-z.b.d.l.t/c/i/m/x0`0a0d0e0i0v1R1a2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3u3v3x3y3z3{3|3}4O4P4Q4R4S4T4U4V4W4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t5v5w6T6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6x6y6z6{6|7X7i7l7o7r7s7u7w7z7|8T8U8X8Z8[8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9V9W9X9Z9[9]9h9y9}:O:R:Y:Z:_:a:b:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;`;a;c;d;e;f;g;h;i;t;uRS=p>S>VS=s>T>UR=t>WT'n$h*s!csPVXt!S!j!r!s!w$h$}%P%S%U'i(T(`)W*s+]+g+r+u,g,k.b.d.l0`0a0i1aQ$^rR*`'^Q*x'sQ-t*{R/w-wQ(W$tQ)U%hQ)n%vQ*i'fQ+k(XR-c*jQ(V$tQ)Y%jQ)m%vQ*e'eS*h'f)nS+j(W(XS-b*i*jQ.]+kQ/T,mQ/e-`R/g-cQ(U$tQ)T%hQ)V%iQ)l%vU*g'f)m)nU+i(V(W(XQ,f)UU-a*h*i*jS.[+j+kS/f-b-cQ0X.]R0t/gT+e(T+g[%e!_$b'c+a.R0QR,d)Qb$ov(T+[+]+`+g.P.Q0PR+T'{S+e(T+gT,j)W,kR0W.XT1[0V1]0w|PVX[_bjklmnopxyz!S!W!X!Y!]!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t$R$S$U$y$}%P%R%S%T%U%c%}&S&W&p&s&t&w'O'U'Y'z(O(`(l({)P)i)p)t)v*P*T*U*o+P+r+u+z,T,V,X,_-Q-R-d-k-z.b.d.l.t/c/i/m/x0V0`0a0d0e0i0v1R1]1a2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3u3v3x3y3z3{3|3}4O4P4Q4R4S4T4U4V4W4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t5v5w6T6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6x6y6z6{6|7X7i7l7o7r7s7u7w7z7|8T8U8X8Z8[8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9V9W9X9Z9[9]9h9y9}:O:R:Y:Z:_:a:b:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;`;a;c;d;e;f;g;h;i;t;uO>P>Q>X>Y>Z>[R2Y2X|tPVX!S!j!r!s!w$}%P%S%U(`+r+u.b.d.l0`0a0i1aW$`t'i+],gS'i$h*sS+](T+gT,g)W,kQ'_$^R*a'_Q*t'oR-m*tQ/p-oS0{/p0|R0|/qQ-}+XR/|-}Q+g(TR.Y+gS+`(T+gS,h)W,kQ.Q+]W.T+`,h.Q/OR/O,gQ)R%eR,e)RQ'|$oR+U'|Q1]0VR1w1]Q${{R(^${Q+t(aR.c+tQ+w(bR.g+wQ+}(cQ,P(dT.m+},PQ(|%`S,a(|7tR7t7VQ(y%^R,^(yQ,k)WR/R,kQ)`%oS,q)`/WR/W,rQ,v)dR/^,vT!uV!rj!iPVX!j!r!s!w(`+r.l0`0a1aQ%Q!SQ(a$}W(h%P%S%U0iQ.e+uQ0Z.bR0[.d|ZPVX!S!j!r!s!w$}%P%S%U(`+r+u.b.d.l0`0a0i1aQ#f[U#m_#s&wQ#wbQ$VkQ$WlQ$XmQ$YnQ$ZoQ$[pQ$sx^$uy2_4b6e8q:m:nQ$vzQ%W!WQ%Y!XQ%[!YW%`!]%R(l,VU%s!g&p-RQ%|!yQ&O!zQ&Q!{S&U!})v^&^#R2a4d6g8t:p:qQ&_#SQ&`#TQ&a#UQ&b#VQ&c#WQ&d#XQ&e#YQ&f#ZQ&g#[Q&h#]Q&i#^Q&j#_Q&k#`Q&l#aQ&m#bQ&u#nQ&v#oS&{#t'OQ'X$RQ'Z$SQ'[$UQ(]$yQ(p%TQ)q%}Q)s&SQ)u&WQ*O&tS*['U4ZQ*^'Y^*_2[3u5v8Z:a=R=SQ+S'zQ+V(OQ,`({Q,c)PQ,y)iQ,{)pQ,})tQ-V*PQ-W*TQ-X*U^-]2]3v5w8[:b=T=UQ-i*oQ-x+PQ.k+zQ.w,XQ/`-QQ/h-dQ/n-kQ/y-zQ0r/cQ0u/iQ0x/mQ1Q/xU1X0V1]9WQ1d0eQ1m0vQ1q1RQ2Z2^Q2qjQ2r3yQ2x3zQ2y3|Q2z4OQ2{4QQ2|4SQ2}4UQ3O2`Q3Q2bQ3R2cQ3S2dQ3T2eQ3U2fQ3V2gQ3W2hQ3X2iQ3Y2jQ3Z2kQ3[2lQ3]2mQ3^2nQ3_2oQ3`2pQ3a2sQ3b2tQ3c2uQ3e2vQ3f2wQ3i3PQ3j3dQ3l3gQ3m3hQ3n3kQ3q3oQ3r3pQ3t3sQ4Y4WQ4y3{Q4z3}Q4{4PQ4|4RQ4}4TQ5O4VQ5P4cQ5R4eQ5S4fQ5T4gQ5U4hQ5V4iQ5W4jQ5X4kQ5Y4lQ5Z4mQ5[4nQ5]4oQ5^4pQ5_4qQ5`4rQ5a4sQ5b4tQ5c4uQ5d4vQ5f4wQ5g4xQ5j5QQ5k5eQ5m5hQ5n5iQ5o5lQ5r5pQ5s5qQ5u5tQ6Q4aQ6R3xQ6V6TQ6}6^Q7O6_Q7P6`Q7Q6aQ7R6bQ7S6cQ7T6dQ7U6fU7V,T.t0dQ7W%cQ7Y6hQ7Z6iQ7[6jQ7]6kQ7^6lQ7_6mQ7`6nQ7a6oQ7b6pQ7c6qQ7d6rQ7e6sQ7f6tQ7g6uQ7h6vQ7j6xQ7k6yQ7n6zQ7p6{Q7q6|Q7x7XQ7y7iQ7{7oQ7}7rQ8O7sQ8P7uQ8Q7wQ8R7zQ8S7|Q8V8TQ8W8UQ8Y8XQ8]8fU9U#k&s7lQ9^8jQ9_8kQ9`8lQ9a8mQ9b8nQ9c8oQ9e8pQ9f8rQ9g8sQ9i8uQ9j8vQ9k8wQ9l8xQ9m8yQ9n8zQ9o8{Q9p8|Q9q8}Q9r9OQ9s9PQ9t9QQ9u9RQ9v9SQ9w9TQ9x9ZQ9z9[Q9{9]Q:P9hQ:Q9yQ:T9}Q:V:OQ:W:RQ:[:YQ:^:ZQ:`:_Q:c8iQ;j:dQ;k:eQ;l:fQ;m:gQ;n:hQ;o:iQ;p:jQ;q:kQ;r:lQ;s:oQ;v:rQ;w:sQ;x:tQ;y:uQ;z:vQ;{:wQ;|:xQ;}:yQOQ=h>PQ=j>QQ=u>XQ=v>YQ=w>ZR=x>[0t!OPVX[_bjklmnopxyz!S!W!X!Y!]!g!j!r!s!w!y!z!{!}#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b#k#n#o#s#t$R$S$U$y$}%P%R%S%T%U%c%}&S&W&p&s&t&w'O'U'Y'z(O(`(l({)P)i)p)t)v*P*T*U*o+P+r+u+z,T,V,X-Q-R-d-k-z.b.d.l.t/c/i/m/x0V0`0a0d0e0i0v1R1]1a2[2]2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3u3v3x3y3z3{3|3}4O4P4Q4R4S4T4U4V4W4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t5v5w6T6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6x6y6z6{6|7X7i7l7o7r7s7u7w7z7|8T8U8X8Z8[8f8g8h8i8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9V9W9X9Z9[9]9h9y9}:O:R:Y:Z:_:a:b:d:e:f:g:h:i:j:k:l:m:n:o:p:q:r:s:t:u:v:w:x:y:z:{:|:};O;P;Q;R;S;T;U;V;W;X;Y;Z;[;];^;_;`;a;c;d;e;f;g;h;i;t;uO>P>Q>X>Y>Z>[S$]r'^Q%k!eS%o!f%rQ)b%pU+X(R(S+dQ,p)_Q,t)cQ/Z,uQ/{-|R0p/[|vPVX!S!j!r!s!w$}%P%S%U(`+r+u.b.d.l0`0a0i1a#U#i[bklmnopxyz!W!X!Y!{#R#S#T#U#V#W#X#Y#Z#[#]#^#_#`#a#b$R$S$U$y%}&S'Y(O)p+P-z/x0e1R2[2]6x6yd+^(T)W+]+`+g,g,h,k.Q/O!t6w'U2^2_2`2a2b2c2d2e2f2g2h2i2j2k2l2m2n2o2p2s2t2u2v2w3P3d3g3h3k3o3p3s3z3|4O4Q4S4U5v5w!x;b3u3v3x3y3{3}4P4R4T4V4Z4a4b4c4d4e4f4g4h4i4j4k4l4m4n4o4p4q4r4s4t4u4v4w4x5Q5e5h5i5l5p5q5t$O=z_j!]!g#k#n#o#s#t%R%T&p&s&t&w'O'z(l({)P)i*P*U,V,X-R6^6_6`6a6b6c6d6e6f6g6h6i6j6k6l6m6n6o6p6q6r6s6t6u6v6z6{6|7X7l7o7r7w7|8T8U8X8Z8[8f8g8h8i#|>]!y!z!}%c&W)t)v*T*o,T-d-k.t/c/i/m0d0v4W6T7i7s7u7z8j8k8l8m8n8o8p8q8r8s8t8u8v8w8x8y8z8{8|8}9O9P9Q9R9S9T9Z9[9]9h9y9}:O:R:Y:Z:_:a:b;c;d=Z=m=n!v>^+z-Q9V9X:d:e:f:g:h:j:k:m:o:p:r:t:v:x:z:|;O;Q;S;U;W;Y;[;^;`;e;g;i;t_0V1]9W:i:l:n:q:s:u:w:y:{:};P;R;T;V;X;Z;];_;a;f;h;u AssignmentExpression ArrayExpression ValueList & VariadicUnpacking ... Pair [ ] ListExpression ValueList Pair Pair SubscriptExpression MemberExpression -> ?-> VariableName DynamicVariable $ ${ CallExpression ArgList NamedArgument SpreadArgument CastExpression UnionType LogicOp OptionalType NamedType QualifiedName \\ NamespaceName ScopedExpression :: ClassMemberName AssignOp UpdateExpression UpdateOp YieldExpression BinaryExpression LogicOp LogicOp LogicOp BitOp BitOp BitOp CompareOp CompareOp BitOp ArithOp ConcatOp ArithOp ArithOp IncludeExpression RequireExpression CloneExpression UnaryExpression ControlOp LogicOp PrintIntrinsic FunctionExpression static ParamList Parameter #[ Attributes Attribute VariadicParameter PropertyParameter UseList ArrowFunction NewExpression class BaseClause ClassInterfaceClause DeclarationList ConstDeclaration VariableDeclarator PropertyDeclaration VariableDeclarator MethodDeclaration UseDeclaration UseList UseInsteadOfClause UseAsClause UpdateExpression ArithOp ShellExpression ThrowExpression Integer Float String MemberExpression SubscriptExpression UnaryExpression ArithOp Interpolation String IfStatement ColonBlock SwitchStatement Block CaseStatement DefaultStatement ColonBlock WhileStatement EmptyStatement DoStatement ForStatement ForSpec SequenceExpression ForeachStatement ForSpec Pair GotoStatement ContinueStatement BreakStatement ReturnStatement TryStatement CatchDeclarator DeclareStatement EchoStatement UnsetStatement ConstDeclaration FunctionDefinition ClassDeclaration InterfaceDeclaration TraitDeclaration EnumDeclaration EnumBody EnumCase NamespaceDefinition NamespaceUseDeclaration UseGroup UseClause UseClause GlobalDeclaration FunctionStaticDeclaration Program",maxTerm:304,nodeProps:[["group",-36,2,8,49,81,83,85,88,93,94,102,106,107,110,111,114,118,123,126,130,132,133,147,148,149,150,153,154,164,165,179,181,182,183,184,185,191,"Expression",-28,74,78,80,82,192,194,199,201,202,205,208,209,210,211,212,214,215,216,217,218,219,220,221,222,225,226,230,231,"Statement",-3,119,121,122,"Type"],["openedBy",69,"phpOpen",76,"{",86,"(",101,"#["],["closedBy",71,"phpClose",77,"}",87,")",158,"]"]],propSources:[YO],skippedNodes:[0],repeatNodeCount:29,tokenData:"!F|_R!]OX$zXY&^YZ'sZ]$z]^&^^p$zpq&^qr)Rrs+Pst+otu2buv5evw6rwx8Vxy>]yz>yz{?g{|@}|}Bb}!OCO!O!PDh!P!QKT!Q!R!!o!R![!$q![!]!,P!]!^!-a!^!_!-}!_!`!1S!`!a!2d!a!b!3t!b!c!7^!c!d!7z!d!e!9W!e!}!7z!}#O!;^#O#P!;z#P#Q!V<%lO8VR9WV&wP%VQOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X<%lO9mQ9rV%VQOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X<%lO9mQ:^O%VQQ:aRO;'S9m;'S;=`:j;=`O9mQ:oW%VQOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X;=`<%l9m<%lO9mQ;[P;=`<%l9mR;fV&wP%VQOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zRV<%l~8V~O8V~~%fR=OW&wPOY8VYZ9PZ!^8V!^!_;{!_;'S8V;'S;=`=h;=`<%l9m<%lO8VR=mW%VQOw9mwx:Xx#O9m#O#P:^#P;'S9m;'S;=`;X;=`<%l8V<%lO9mR>YP;=`<%l8VR>dV!yQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV?QV!xU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR?nY&wP$VQOY$zYZ%fZz$zz{@^{!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zR@eW$WQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zRAUY$TQ&wPOY$zYZ%fZ{$z{|At|!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zRA{V$zQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zRBiV!}Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$z_CXZ$TQ%TW&wPOY$zYZ%fZ}$z}!OAt!O!^$z!^!_%k!_!`6U!`!aCz!a;'S$z;'S;=`&W<%lO$zVDRV#`U&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zVDo[&wP$UQOY$zYZ%fZ!O$z!O!PEe!P!Q$z!Q![Fs![!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zVEjX&wPOY$zYZ%fZ!O$z!O!PFV!P!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zVF^V#UU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zRFz_&wP%OQOY$zYZ%fZ!Q$z!Q![Fs![!^$z!^!_%k!_!g$z!g!hGy!h#R$z#R#SJc#S#X$z#X#YGy#Y;'S$z;'S;=`&W<%lO$zRHO]&wPOY$zYZ%fZ{$z{|Hw|}$z}!OHw!O!Q$z!Q![Ii![!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zRH|X&wPOY$zYZ%fZ!Q$z!Q![Ii![!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zRIpZ&wP%OQOY$zYZ%fZ!Q$z!Q![Ii![!^$z!^!_%k!_#R$z#R#SHw#S;'S$z;'S;=`&W<%lO$zRJhX&wPOY$zYZ%fZ!Q$z!Q![Fs![!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zVK[[&wP$VQOY$zYZ%fZz$zz{LQ{!P$z!P!Q,o!Q!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zVLVX&wPOYLQYZLrZzLQz{N_{!^LQ!^!_! s!_;'SLQ;'S;=`!!i<%lOLQVLwT&wPOzMWz{Mj{;'SMW;'S;=`NX<%lOMWUMZTOzMWz{Mj{;'SMW;'S;=`NX<%lOMWUMmVOzMWz{Mj{!PMW!P!QNS!Q;'SMW;'S;=`NX<%lOMWUNXO!eUUN[P;=`<%lMWVNdZ&wPOYLQYZLrZzLQz{N_{!PLQ!P!Q! V!Q!^LQ!^!_! s!_;'SLQ;'S;=`!!i<%lOLQV! ^V!eU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV! vZOYLQYZLrZzLQz{N_{!aLQ!a!bMW!b;'SLQ;'S;=`!!i<%l~LQ~OLQ~~%fV!!lP;=`<%lLQZ!!vm&wP$}YOY$zYZ%fZ!O$z!O!PFs!P!Q$z!Q![!$q![!^$z!^!_%k!_!d$z!d!e!&o!e!g$z!g!hGy!h!q$z!q!r!(a!r!z$z!z!{!){!{#R$z#R#S!%}#S#U$z#U#V!&o#V#X$z#X#YGy#Y#c$z#c#d!(a#d#l$z#l#m!){#m;'S$z;'S;=`&W<%lO$zZ!$xa&wP$}YOY$zYZ%fZ!O$z!O!PFs!P!Q$z!Q![!$q![!^$z!^!_%k!_!g$z!g!hGy!h#R$z#R#S!%}#S#X$z#X#YGy#Y;'S$z;'S;=`&W<%lO$zZ!&SX&wPOY$zYZ%fZ!Q$z!Q![!$q![!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zZ!&tY&wPOY$zYZ%fZ!Q$z!Q!R!'d!R!S!'d!S!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zZ!'k[&wP$}YOY$zYZ%fZ!Q$z!Q!R!'d!R!S!'d!S!^$z!^!_%k!_#R$z#R#S!&o#S;'S$z;'S;=`&W<%lO$zZ!(fX&wPOY$zYZ%fZ!Q$z!Q!Y!)R!Y!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zZ!)YZ&wP$}YOY$zYZ%fZ!Q$z!Q!Y!)R!Y!^$z!^!_%k!_#R$z#R#S!(a#S;'S$z;'S;=`&W<%lO$zZ!*Q]&wPOY$zYZ%fZ!Q$z!Q![!*y![!^$z!^!_%k!_!c$z!c!i!*y!i#T$z#T#Z!*y#Z;'S$z;'S;=`&W<%lO$zZ!+Q_&wP$}YOY$zYZ%fZ!Q$z!Q![!*y![!^$z!^!_%k!_!c$z!c!i!*y!i#R$z#R#S!){#S#T$z#T#Z!*y#Z;'S$z;'S;=`&W<%lO$zR!,WX!qQ&wPOY$zYZ%fZ![$z![!]!,s!]!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!,zV#sQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!-hV!mU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!.S[$RQOY$zYZ%fZ!^$z!^!_!.x!_!`!/i!`!a*c!a!b!0]!b;'S$z;'S;=`&W<%l~$z~O$z~~%fR!/PW$SQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zR!/pX$RQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`$z!`!a*c!a;'S$z;'S;=`&W<%lO$zP!0bR!iP!_!`!0k!r!s!0p#d#e!0pP!0pO!iPP!0sQ!j!k!0y#[#]!0yP!0|Q!r!s!0k#d#e!0kV!1ZX#uQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`)r!`!a!1v!a;'S$z;'S;=`&W<%lO$zV!1}V#OU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!2kX$RQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`!3W!`!a!.x!a;'S$z;'S;=`&W<%lO$zR!3_V$RQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!3{[!vQ&wPOY$zYZ%fZ}$z}!O!4q!O!^$z!^!_%k!_!`$z!`!a!6P!a!b!6m!b;'S$z;'S;=`&W<%lO$zV!4vX&wPOY$zYZ%fZ!^$z!^!_%k!_!`$z!`!a!5c!a;'S$z;'S;=`&W<%lO$zV!5jV#aU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!6WV!gU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!6tW#zQ&wPOY$zYZ%fZ!^$z!^!_%k!_!`6U!`;'S$z;'S;=`&W<%lO$zR!7eV$]Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$z_!8Ra&wP!s^OY$zYZ%fZ!Q$z!Q![!7z![!^$z!^!_%k!_!c$z!c!}!7z!}#R$z#R#S!7z#S#T$z#T#o!7z#o$g$z$g&j!7z&j;'S$z;'S;=`&W<%lO$z_!9_e&wP!s^OY$zYZ%fZr$zrs!:psw$zwx8Vx!Q$z!Q![!7z![!^$z!^!_%k!_!c$z!c!}!7z!}#R$z#R#S!7z#S#T$z#T#o!7z#o$g$z$g&j!7z&j;'S$z;'S;=`&W<%lO$zR!:wV&wP'gQOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!;eV#WU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!mZ!^!=u!^!_!@u!_#O!=u#O#P!Aq#P#S!=u#S#T!B{#T;'S!=u;'S;=`!Ci<%lO!=uR!>rV&wPO#O!?X#O#P!?q#P#S!?X#S#T!@j#T;'S!?X;'S;=`!@o<%lO!?XQ!?[VO#O!?X#O#P!?q#P#S!?X#S#T!@j#T;'S!?X;'S;=`!@o<%lO!?XQ!?tRO;'S!?X;'S;=`!?};=`O!?XQ!@QWO#O!?X#O#P!?q#P#S!?X#S#T!@j#T;'S!?X;'S;=`!@o;=`<%l!?X<%lO!?XQ!@oO${QQ!@rP;=`<%l!?XR!@x]OY!=uYZ!>mZ!a!=u!a!b!?X!b#O!=u#O#P!Aq#P#S!=u#S#T!B{#T;'S!=u;'S;=`!Ci<%l~!=u~O!=u~~%fR!AvW&wPOY!=uYZ!>mZ!^!=u!^!_!@u!_;'S!=u;'S;=`!B`;=`<%l!?X<%lO!=uR!BcWO#O!?X#O#P!?q#P#S!?X#S#T!@j#T;'S!?X;'S;=`!@o;=`<%l!=u<%lO!?XR!CSV${Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!ClP;=`<%l!=uV!CvV!oU&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zV!DfY#}Q#lS&wPOY$zYZ%fZ!^$z!^!_%k!_!`6U!`#p$z#p#q!EU#q;'S$z;'S;=`&W<%lO$zR!E]V#{Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!EyV!nQ&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$zR!FgV$^Q&wPOY$zYZ%fZ!^$z!^!_%k!_;'S$z;'S;=`&W<%lO$z",tokenizers:[bO,cO,pO,0,1,2,3,mO],topRules:{Template:[0,72],Program:[1,232]},dynamicPrecedences:{284:1},specialized:[{term:81,get:(O,$)=>xO(O)<<1,external:xO},{term:81,get:O=>ZO[O]||-1}],tokenPrec:29354});var wO=Q(73265);var jO=Q(60049);var gO=Q(24104);const _O=gO.LRLanguage.define({name:"php",parser:hO.configure({props:[gO.indentNodeProp.add({IfStatement:(0,gO.continuedIndent)({except:/^\s*({|else\b|elseif\b|endif\b)/}),TryStatement:(0,gO.continuedIndent)({except:/^\s*({|catch\b|finally\b)/}),SwitchBody:O=>{let $=O.textAfter,Q=/^\s*\}/.test($),i=/^\s*(case|default)\b/.test($);return O.baseIndent+(Q?0:i?1:2)*O.unit},ColonBlock:O=>O.baseIndent+O.unit,"Block EnumBody DeclarationList":(0,gO.delimitedIndent)({closing:"}"}),ArrowFunction:O=>O.baseIndent+O.unit,"String BlockComment":()=>null,Statement:(0,gO.continuedIndent)({except:/^({|end(for|foreach|switch|while)\b)/})}),gO.foldNodeProp.add({"Block EnumBody DeclarationList SwitchBody ArrayExpression ValueList":gO.foldInside,ColonBlock(O){return{from:O.from+1,to:O.to}},BlockComment(O){return{from:O.from+2,to:O.to-2}}})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"},line:"//"},indentOnInput:/^\s*(?:case |default:|end(?:if|for(?:each)?|switch|while)|else(?:if)?|\{|\})$/,wordChars:"$",closeBrackets:{stringPrefixes:["b","B"]}}});function GO(O={}){let $=[],Q;if(O.baseLanguage===null);else if(O.baseLanguage){Q=O.baseLanguage}else{let O=(0,jO.html)({matchClosingTags:false});$.push(O.support);Q=O.language}return new gO.LanguageSupport(_O.configure({wrap:Q&&(0,wO.parseMixed)((O=>{if(!O.type.isTop)return null;return{parser:Q.parser,overlay:O=>O.name=="Text"}})),top:O.plain?"Program":"Template"}),$)}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/6243.2efd673d1304c43b7b78.js b/bootcamp/share/jupyter/lab/static/6243.2efd673d1304c43b7b78.js new file mode 100644 index 0000000..1cde4ea --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/6243.2efd673d1304c43b7b78.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6243],{86243:(e,O,T)=>{T.r(O);T.d(O,{pig:()=>u});function E(e){var O={},T=e.split(" ");for(var E=0;E=&?:\/!|]/;function n(e,O,T){O.tokenize=T;return T(e,O)}function L(e,O){var T=false;var E;while(E=e.next()){if(E=="/"&&T){O.tokenize=i;break}T=E=="*"}return"comment"}function a(e){return function(O,T){var E=false,r,t=false;while((r=O.next())!=null){if(r==e&&!E){t=true;break}E=!E&&r=="\\"}if(t||!E)T.tokenize=i;return"error"}}function i(e,O){var T=e.next();if(T=='"'||T=="'")return n(e,O,a(T));else if(/[\[\]{}\(\),;\.]/.test(T))return null;else if(/\d/.test(T)){e.eatWhile(/[\w\.]/);return"number"}else if(T=="/"){if(e.eat("*")){return n(e,O,L)}else{e.eatWhile(S);return"operator"}}else if(T=="-"){if(e.eat("-")){e.skipToEnd();return"comment"}else{e.eatWhile(S);return"operator"}}else if(S.test(T)){e.eatWhile(S);return"operator"}else{e.eatWhile(/[\w\$_]/);if(A&&A.propertyIsEnumerable(e.current().toUpperCase())){if(!e.eat(")")&&!e.eat("."))return"keyword"}if(N&&N.propertyIsEnumerable(e.current().toUpperCase()))return"builtin";if(R&&R.propertyIsEnumerable(e.current().toUpperCase()))return"type";return"variable"}}const u={name:"pig",startState:function(){return{tokenize:i,startOfLine:true}},token:function(e,O){if(e.eatSpace())return null;var T=O.tokenize(e,O);return T},languageData:{autocomplete:(r+I+t).split(" ")}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/6267.1def2916929e185ab9fc.js b/bootcamp/share/jupyter/lab/static/6267.1def2916929e185ab9fc.js new file mode 100644 index 0000000..10277ab --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/6267.1def2916929e185ab9fc.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6267],{76267:(e,t,r)=>{r.r(t);r.d(t,{yacas:()=>h});function n(e){var t={},r=e.split(" ");for(var n=0;n|<|&|\||_|`|'|\^|\?|!|%|#)/,true,false)){return"operator"}return"error"}function p(e,t){var r,n=false,a=false;while((r=e.next())!=null){if(r==='"'&&!a){n=true;break}a=!a&&r==="\\"}if(n&&!a){t.tokenize=f}return"string"}function k(e,t){var r,n;while((n=e.next())!=null){if(r==="*"&&n==="/"){t.tokenize=f;break}r=n}return"comment"}function m(e){var t=null;if(e.scopes.length>0)t=e.scopes[e.scopes.length-1];return t}const h={name:"yacas",startState:function(){return{tokenize:f,scopes:[]}},token:function(e,t){if(e.eatSpace())return null;return t.tokenize(e,t)},indent:function(e,t,r){if(e.tokenize!==f&&e.tokenize!==null)return null;var n=0;if(t==="]"||t==="];"||t==="}"||t==="};"||t===");")n=-1;return(e.scopes.length+n)*r.unit},languageData:{electricInput:/[{}\[\]()\;]/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/6359.4b994bfd6b1dea2d6fe3.js b/bootcamp/share/jupyter/lab/static/6359.4b994bfd6b1dea2d6fe3.js new file mode 100644 index 0000000..546d943 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/6359.4b994bfd6b1dea2d6fe3.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6359],{6359:(e,t,n)=>{n.r(t);n.d(t,{vhdl:()=>b});function r(e){var t={},n=e.split(",");for(var r=0;r{n.r(t);n.d(t,{Bounce:()=>N,Flip:()=>k,Icons:()=>v,Slide:()=>R,ToastContainer:()=>M,Zoom:()=>w,collapseToast:()=>f,cssTransition:()=>m,toast:()=>H,useToast:()=>b,useToastContainer:()=>T});var o=n(28416);var s=n.n(o);function a(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t"number"==typeof e&&!isNaN(e),c=e=>"string"==typeof e,u=e=>"function"==typeof e,d=e=>c(e)||u(e)?e:null,p=e=>(0,o.isValidElement)(e)||c(e)||u(e)||l(e);function f(e,t,n){void 0===n&&(n=300);const{scrollHeight:o,style:s}=e;requestAnimationFrame((()=>{s.minHeight="initial",s.height=o+"px",s.transition=`all ${n}ms`,requestAnimationFrame((()=>{s.height="0",s.padding="0",s.margin="0",setTimeout(t,n)}))}))}function m(e){let{enter:t,exit:n,appendPosition:a=!1,collapse:i=!0,collapseDuration:r=300}=e;return function(e){let{children:l,position:c,preventExitTransition:u,done:d,nodeRef:p,isIn:m}=e;const g=a?`${t}--${c}`:t,h=a?`${n}--${c}`:n,y=(0,o.useRef)(0);return(0,o.useLayoutEffect)((()=>{const e=p.current,t=g.split(" "),n=o=>{o.target===p.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===y.current&&"animationcancel"!==o.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)}),[]),(0,o.useEffect)((()=>{const e=p.current,t=()=>{e.removeEventListener("animationend",t),i?f(e,d,r):d()};m||(u?t():(y.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))}),[m]),s().createElement(s().Fragment,null,l)}}function g(e,t){return{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}}const h={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter((e=>e!==t));return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach((t=>{const n=setTimeout((()=>{t(...[].slice.call(arguments,1))}),0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)}))}},y=e=>{let{theme:t,type:n,...o}=e;return s().createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${n})`,...o})},v={info:function(e){return s().createElement(y,{...e},s().createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return s().createElement(y,{...e},s().createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return s().createElement(y,{...e},s().createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return s().createElement(y,{...e},s().createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return s().createElement("div",{className:"Toastify__spinner"})}};function T(e){const[,t]=(0,o.useReducer)((e=>e+1),0),[n,s]=(0,o.useState)([]),a=(0,o.useRef)(null),i=(0,o.useRef)(new Map).current,r=e=>-1!==n.indexOf(e),f=(0,o.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:r,getToast:e=>i.get(e)}).current;function m(e){let{containerId:t}=e;const{limit:n}=f.props;!n||t&&f.containerId!==t||(f.count-=f.queue.length,f.queue=[])}function y(e){s((t=>null==e?[]:t.filter((t=>t!==e))))}function T(){const{toastContent:e,toastProps:t,staleId:n}=f.queue.shift();C(e,t,n)}function E(e,n){let{delay:s,staleId:r,...m}=n;if(!p(e)||function(e){return!a.current||f.props.enableMultiContainer&&e.containerId!==f.props.containerId||i.has(e.toastId)&&null==e.updateId}(m))return;const{toastId:E,updateId:b,data:_}=m,{props:I}=f,L=()=>y(E),O=null==b;O&&f.count++;const N={...I,style:I.toastStyle,key:f.toastKey++,...m,toastId:E,updateId:b,data:_,closeToast:L,isIn:!1,className:d(m.className||I.toastClassName),bodyClassName:d(m.bodyClassName||I.bodyClassName),progressClassName:d(m.progressClassName||I.progressClassName),autoClose:!m.isLoading&&(R=m.autoClose,w=I.autoClose,!1===R||l(R)&&R>0?R:w),deleteToast(){const e=g(i.get(E),"removed");i.delete(E),h.emit(4,e);const n=f.queue.length;if(f.count=null==E?f.count-f.displayedToast:f.count-1,f.count<0&&(f.count=0),n>0){const e=null==E?f.props.limit:1;if(1===n||1===e)f.displayedToast++,T();else{const t=e>n?n:e;f.displayedToast=t;for(let e=0;ee in v)(n)&&(i=v[n](r))),i}(N),u(m.onOpen)&&(N.onOpen=m.onOpen),u(m.onClose)&&(N.onClose=m.onClose),N.closeButton=I.closeButton,!1===m.closeButton||p(m.closeButton)?N.closeButton=m.closeButton:!0===m.closeButton&&(N.closeButton=!p(I.closeButton)||I.closeButton);let k=e;(0,o.isValidElement)(e)&&!c(e.type)?k=(0,o.cloneElement)(e,{closeToast:L,toastProps:N,data:_}):u(e)&&(k=e({closeToast:L,toastProps:N,data:_})),I.limit&&I.limit>0&&f.count>I.limit&&O?f.queue.push({toastContent:k,toastProps:N,staleId:r}):l(s)?setTimeout((()=>{C(k,N,r)}),s):C(k,N,r)}function C(e,t,n){const{toastId:o}=t;n&&i.delete(n);const a={content:e,props:t};i.set(o,a),s((e=>[...e,o].filter((e=>e!==n)))),h.emit(4,g(a,null==a.props.updateId?"added":"updated"))}return(0,o.useEffect)((()=>(f.containerId=e.containerId,h.cancelEmit(3).on(0,E).on(1,(e=>a.current&&y(e))).on(5,m).emit(2,f),()=>{i.clear(),h.emit(3,f)})),[]),(0,o.useEffect)((()=>{f.props=e,f.isToastActive=r,f.displayedToast=n.length})),{getToastToRender:function(t){const n=new Map,o=Array.from(i.values());return e.newestOnTop&&o.reverse(),o.forEach((e=>{const{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)})),Array.from(n,(e=>t(e[0],e[1])))},containerRef:a,isToastActive:r}}function E(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function C(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function b(e){const[t,n]=(0,o.useState)(!1),[s,a]=(0,o.useState)(!1),i=(0,o.useRef)(null),r=(0,o.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,l=(0,o.useRef)(e),{autoClose:c,pauseOnHover:d,closeToast:p,onClick:f,closeOnClick:m}=e;function g(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),r.didMove=!1,document.addEventListener("mousemove",T),document.addEventListener("mouseup",b),document.addEventListener("touchmove",T),document.addEventListener("touchend",b);const n=i.current;r.canCloseOnClick=!0,r.canDrag=!0,r.boundingRect=n.getBoundingClientRect(),n.style.transition="",r.x=E(t.nativeEvent),r.y=C(t.nativeEvent),"x"===e.draggableDirection?(r.start=r.x,r.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(r.start=r.y,r.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function h(t){if(r.boundingRect){const{top:n,bottom:o,left:s,right:a}=r.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&r.x>=s&&r.x<=a&&r.y>=n&&r.y<=o?v():y()}}function y(){n(!0)}function v(){n(!1)}function T(n){const o=i.current;r.canDrag&&o&&(r.didMove=!0,t&&v(),r.x=E(n),r.y=C(n),r.delta="x"===e.draggableDirection?r.x-r.start:r.y-r.start,r.start!==r.x&&(r.canCloseOnClick=!1),o.style.transform=`translate${e.draggableDirection}(${r.delta}px)`,o.style.opacity=""+(1-Math.abs(r.delta/r.removalDistance)))}function b(){document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",T),document.removeEventListener("touchend",b);const t=i.current;if(r.canDrag&&r.didMove&&t){if(r.canDrag=!1,Math.abs(r.delta)>r.removalDistance)return a(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity="1"}}(0,o.useEffect)((()=>{l.current=e})),(0,o.useEffect)((()=>(i.current&&i.current.addEventListener("d",y,{once:!0}),u(e.onOpen)&&e.onOpen((0,o.isValidElement)(e.children)&&e.children.props),()=>{const e=l.current;u(e.onClose)&&e.onClose((0,o.isValidElement)(e.children)&&e.children.props)})),[]),(0,o.useEffect)((()=>(e.pauseOnFocusLoss&&(document.hasFocus()||v(),window.addEventListener("focus",y),window.addEventListener("blur",v)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",y),window.removeEventListener("blur",v))})),[e.pauseOnFocusLoss]);const _={onMouseDown:g,onTouchStart:g,onMouseUp:h,onTouchEnd:h};return c&&d&&(_.onMouseEnter=v,_.onMouseLeave=y),m&&(_.onClick=e=>{f&&f(e),r.canCloseOnClick&&p()}),{playToast:y,pauseToast:v,isRunning:t,preventExitTransition:s,toastRef:i,eventHandlers:_}}function _(e){let{closeToast:t,theme:n,ariaLabel:o="close"}=e;return s().createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":o},s().createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},s().createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function I(e){let{delay:t,isRunning:n,closeToast:o,type:a="default",hide:i,className:l,style:c,controlledProgress:d,progress:p,rtl:f,isIn:m,theme:g}=e;const h=i||d&&0===p,y={...c,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:h?0:1};d&&(y.transform=`scaleX(${p})`);const v=r("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":f}),T=u(l)?l({rtl:f,type:a,defaultClassName:v}):r(v,l);return s().createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:T,style:y,[d&&p>=1?"onTransitionEnd":"onAnimationEnd"]:d&&p<1?null:()=>{m&&o()}})}const L=e=>{const{isRunning:t,preventExitTransition:n,toastRef:a,eventHandlers:i}=b(e),{closeButton:l,children:c,autoClose:d,onClick:p,type:f,hideProgressBar:m,closeToast:g,transition:h,position:y,className:v,style:T,bodyClassName:E,bodyStyle:C,progressClassName:L,progressStyle:O,updateId:N,role:R,progress:w,rtl:k,toastId:M,deleteToast:x,isIn:$,isLoading:B,iconOut:P,closeOnClick:A,theme:D}=e,z=r("Toastify__toast",`Toastify__toast-theme--${D}`,`Toastify__toast--${f}`,{"Toastify__toast--rtl":k},{"Toastify__toast--close-on-click":A}),F=u(v)?v({rtl:k,position:y,type:f,defaultClassName:z}):r(z,v),S=!!w||!d,H={closeToast:g,type:f,theme:D};let q=null;return!1===l||(q=u(l)?l(H):(0,o.isValidElement)(l)?(0,o.cloneElement)(l,H):_(H)),s().createElement(h,{isIn:$,done:x,position:y,preventExitTransition:n,nodeRef:a},s().createElement("div",{id:M,onClick:p,className:F,...i,style:T,ref:a},s().createElement("div",{...$&&{role:R},className:u(E)?E({type:f}):r("Toastify__toast-body",E),style:C},null!=P&&s().createElement("div",{className:r("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!B})},P),s().createElement("div",null,c)),q,s().createElement(I,{...N&&!S?{key:`pb-${N}`}:{},rtl:k,theme:D,delay:d,isRunning:t,isIn:$,closeToast:g,hide:m,type:f,style:O,className:L,controlledProgress:S,progress:w||0})))},O=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},N=m(O("bounce",!0)),R=m(O("slide",!0)),w=m(O("zoom")),k=m(O("flip")),M=(0,o.forwardRef)(((e,t)=>{const{getToastToRender:n,containerRef:a,isToastActive:i}=T(e),{className:l,style:c,rtl:p,containerId:f}=e;function m(e){const t=r("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":p});return u(l)?l({position:e,rtl:p,defaultClassName:t}):r(t,d(l))}return(0,o.useEffect)((()=>{t&&(t.current=a.current)}),[]),s().createElement("div",{ref:a,className:"Toastify",id:f},n(((e,t)=>{const n=t.length?{...c}:{...c,pointerEvents:"none"};return s().createElement("div",{className:m(e),style:n,key:`container-${e}`},t.map(((e,n)=>{let{content:o,props:a}=e;return s().createElement(L,{...a,isIn:i(a.toastId),style:{...a.style,"--nth":n+1,"--len":t.length},key:`toast-${a.key}`},o)})))})))}));M.displayName="ToastContainer",M.defaultProps={position:"top-right",transition:N,autoClose:5e3,closeButton:_,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let x,$=new Map,B=[],P=1;function A(){return""+P++}function D(e){return e&&(c(e.toastId)||l(e.toastId))?e.toastId:A()}function z(e,t){return $.size>0?h.emit(0,e,t):B.push({content:e,options:t}),t.toastId}function F(e,t){return{...t,type:t&&t.type||e,toastId:D(t)}}function S(e){return(t,n)=>z(t,F(e,n))}function H(e,t){return z(e,F("default",t))}H.loading=(e,t)=>z(e,F("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),H.promise=function(e,t,n){let o,{pending:s,error:a,success:i}=t;s&&(o=c(s)?H.loading(s,n):H.loading(s.render,{...n,...s}));const r={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null,delay:100},l=(e,t,s)=>{if(null==t)return void H.dismiss(o);const a={type:e,...r,...n,data:s},i=c(t)?{render:t}:t;return o?H.update(o,{...a,...i}):H(i.render,{...a,...i}),s},d=u(e)?e():e;return d.then((e=>l("success",i,e))).catch((e=>l("error",a,e))),d},H.success=S("success"),H.info=S("info"),H.error=S("error"),H.warning=S("warning"),H.warn=H.warning,H.dark=(e,t)=>z(e,F("default",{theme:"dark",...t})),H.dismiss=e=>{$.size>0?h.emit(1,e):B=B.filter((t=>null!=e&&t.options.toastId!==e))},H.clearWaitingQueue=function(e){return void 0===e&&(e={}),h.emit(5,e)},H.isActive=e=>{let t=!1;return $.forEach((n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},H.update=function(e,t){void 0===t&&(t={}),setTimeout((()=>{const n=function(e,t){let{containerId:n}=t;const o=$.get(n||x);return o&&o.getToast(e)}(e,t);if(n){const{props:o,content:s}=n,a={...o,...t,toastId:t.toastId||e,updateId:A()};a.toastId!==e&&(a.staleId=e);const i=a.render||s;delete a.render,z(i,a)}}),0)},H.done=e=>{H.update(e,{progress:1})},H.onChange=e=>(h.on(4,e),()=>{h.off(4,e)}),H.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},H.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},h.on(2,(e=>{x=e.containerId||e,$.set(x,e),B.forEach((e=>{h.emit(0,e.content,e.options)})),B=[]})).on(3,(e=>{$.delete(e.containerId||e),0===$.size&&h.off(0).off(1).off(5)}))}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/6532.bb7137729a2d6d4e6ddf.js b/bootcamp/share/jupyter/lab/static/6532.bb7137729a2d6d4e6ddf.js new file mode 100644 index 0000000..45d6128 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/6532.bb7137729a2d6d4e6ddf.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6532],{16532:(e,t,n)=>{n.r(t);n.d(t,{cython:()=>c,mkPython:()=>s,python:()=>u});function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var i=r(["and","or","not","is"]);var a=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"];var o=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];function l(e){return e.scopes[e.scopes.length-1]}function s(e){var t="error";var n=e.delimiters||e.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/;var s=[e.singleOperators,e.doubleOperators,e.doubleDelimiters,e.tripleDelimiters,e.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/];for(var f=0;fi)_(e,n);else if(a0&&z(e,n))o+=" "+t;return o}}return v(e,n)}function v(e,r,a){if(e.eatSpace())return null;if(!a&&e.match(/^#.*/))return"comment";if(e.match(/^[0-9\.]/,false)){var o=false;if(e.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)){o=true}if(e.match(/^[\d_]+\.\d*/)){o=true}if(e.match(/^\.\d+/)){o=true}if(o){e.eat(/J/i);return"number"}var l=false;if(e.match(/^0x[0-9a-f_]+/i))l=true;if(e.match(/^0b[01_]+/i))l=true;if(e.match(/^0o[0-7_]+/i))l=true;if(e.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)){e.eat(/J/i);l=true}if(e.match(/^0(?![\dx])/i))l=true;if(l){e.eat(/L/i);return"number"}}if(e.match(h)){var f=e.current().toLowerCase().indexOf("f")!==-1;if(!f){r.tokenize=x(e.current(),r.tokenize);return r.tokenize(e,r)}else{r.tokenize=k(e.current(),r.tokenize);return r.tokenize(e,r)}}for(var u=0;u=0)n=n.substr(1);var i=n.length==1;var a="string";function o(e){return function(t,n){var r=v(t,n,true);if(r=="punctuation"){if(t.current()=="{"){n.tokenize=o(e+1)}else if(t.current()=="}"){if(e>1)n.tokenize=o(e-1);else n.tokenize=l}}return r}}function l(l,s){while(!l.eol()){l.eatWhile(/[^'"\{\}\\]/);if(l.eat("\\")){l.next();if(i&&l.eol())return a}else if(l.match(n)){s.tokenize=r;return a}else if(l.match("{{")){return a}else if(l.match("{",false)){s.tokenize=o(0);if(l.current())return a;else return s.tokenize(l,s)}else if(l.match("}}")){return a}else if(l.match("}")){return t}else{l.eat(/['"]/)}}if(i){if(e.singleLineStringErrors)return t;else s.tokenize=r}return a}l.isString=true;return l}function x(n,r){while("rubf".indexOf(n.charAt(0).toLowerCase())>=0)n=n.substr(1);var i=n.length==1;var a="string";function o(o,l){while(!o.eol()){o.eatWhile(/[^'"\\]/);if(o.eat("\\")){o.next();if(i&&o.eol())return a}else if(o.match(n)){l.tokenize=r;return a}else{o.eat(/['"]/)}}if(i){if(e.singleLineStringErrors)return t;else l.tokenize=r}return a}o.isString=true;return o}function _(e,t){while(l(t).type!="py")t.scopes.pop();t.scopes.push({offset:l(t).offset+e.indentUnit,type:"py",align:null})}function w(e,t,n){var r=e.match(/^[\s\[\{\(]*(?:#|$)/,false)?null:e.column()+1;t.scopes.push({offset:t.indent+(u||e.indentUnit),type:n,align:r})}function z(e,t){var n=e.indentation();while(t.scopes.length>1&&l(t).offset>n){if(l(t).type!="py")return true;t.scopes.pop()}return l(t).offset!=n}function F(e,n){if(e.sol()){n.beginningOfLine=true;n.dedent=false}var r=n.tokenize(e,n);var i=e.current();if(n.beginningOfLine&&i=="@")return e.match(m,false)?"meta":d?"operator":t;if(/\S/.test(i))n.beginningOfLine=false;if((r=="variable"||r=="builtin")&&n.lastToken=="meta")r="meta";if(i=="pass"||i=="return")n.dedent=true;if(i=="lambda")n.lambda=true;if(i==":"&&!n.lambda&&l(n).type=="py"&&e.match(/^\s*(?:#|$)/,false))_(e,n);if(i.length==1&&!/string|comment/.test(r)){var a="[({".indexOf(i);if(a!=-1)w(e,n,"])}".slice(a,a+1));a="])}".indexOf(i);if(a!=-1){if(l(n).type==i)n.indent=n.scopes.pop().offset-(u||e.indentUnit);else return t}}if(n.dedent&&e.eol()&&l(n).type=="py"&&n.scopes.length>1)n.scopes.pop();return r}return{name:"python",startState:function(){return{tokenize:g,scopes:[{offset:0,type:"py",align:null}],indent:0,lastToken:null,lambda:false,dedent:0}},token:function(e,n){var r=n.errorToken;if(r)n.errorToken=false;var i=F(e,n);if(i&&i!="comment")n.lastToken=i=="keyword"||i=="punctuation"?e.current():i;if(i=="punctuation")i=null;if(e.eol()&&n.lambda)n.lambda=false;return r?t:i},indent:function(e,t,n){if(e.tokenize!=g)return e.tokenize.isString?null:0;var r=l(e);var i=r.type==t.charAt(0)||r.type=="py"&&!e.dedent&&/^(else:|elif |except |finally:)/.test(t);if(r.align!=null)return r.align-(i?1:0);else return r.offset-(i?u||n.unit:0)},languageData:{autocomplete:a.concat(o).concat(["exec","print"]),indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,commentTokens:{line:"#"},closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""']}}}}var f=function(e){return e.split(" ")};const u=s({});const c=s({extra_keywords:f("by cdef cimport cpdef ctypedef enum except "+"extern gil include nogil property public "+"readonly struct union DEF IF ELIF ELSE")})}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/6560.f42276a0b1b92aea515b.js b/bootcamp/share/jupyter/lab/static/6560.f42276a0b1b92aea515b.js new file mode 100644 index 0000000..b6d81fa --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/6560.f42276a0b1b92aea515b.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6560],{83663:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:true});e.AbstractFindMath=void 0;var i=r(36059);var n=function(){function t(t){var e=this.constructor;this.options=(0,i.userOptions)((0,i.defaultOptions)({},e.OPTIONS),t)}t.OPTIONS={};return t}();e.AbstractFindMath=n},19068:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:true});e.AbstractInputJax=void 0;var i=r(36059);var n=r(64905);var o=function(){function t(t){if(t===void 0){t={}}this.adaptor=null;this.mmlFactory=null;var e=this.constructor;this.options=(0,i.userOptions)((0,i.defaultOptions)({},e.OPTIONS),t);this.preFilters=new n.FunctionList;this.postFilters=new n.FunctionList}Object.defineProperty(t.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:false,configurable:true});t.prototype.setAdaptor=function(t){this.adaptor=t};t.prototype.setMmlFactory=function(t){this.mmlFactory=t};t.prototype.initialize=function(){};t.prototype.reset=function(){var t=[];for(var e=0;e{Object.defineProperty(e,"__esModule",{value:true});e.newState=e.STATE=e.AbstractMathItem=e.protoItem=void 0;function r(t,e,r,i,n,o,a){if(a===void 0){a=null}var s={open:t,math:e,close:r,n:i,start:{n},end:{n:o},display:a};return s}e.protoItem=r;var i=function(){function t(t,r,i,n,o){if(i===void 0){i=true}if(n===void 0){n={i:0,n:0,delim:""}}if(o===void 0){o={i:0,n:0,delim:""}}this.root=null;this.typesetRoot=null;this.metrics={};this.inputData={};this.outputData={};this._state=e.STATE.UNPROCESSED;this.math=t;this.inputJax=r;this.display=i;this.start=n;this.end=o;this.root=null;this.typesetRoot=null;this.metrics={};this.inputData={};this.outputData={}}Object.defineProperty(t.prototype,"isEscaped",{get:function(){return this.display===null},enumerable:false,configurable:true});t.prototype.render=function(t){t.renderActions.renderMath(this,t)};t.prototype.rerender=function(t,r){if(r===void 0){r=e.STATE.RERENDER}if(this.state()>=r){this.state(r-1)}t.renderActions.renderMath(this,t,r)};t.prototype.convert=function(t,r){if(r===void 0){r=e.STATE.LAST}t.renderActions.renderConvert(this,t,r)};t.prototype.compile=function(t){if(this.state()=e.STATE.INSERTED){this.removeFromDocument(r)}if(t=e.STATE.TYPESET){this.outputData={}}if(t=e.STATE.COMPILED){this.inputData={}}this._state=t}return this._state};t.prototype.reset=function(t){if(t===void 0){t=false}this.state(e.STATE.UNPROCESSED,t)};return t}();e.AbstractMathItem=i;e.STATE={UNPROCESSED:0,FINDMATH:10,COMPILED:20,CONVERT:100,METRICS:110,RERENDER:125,TYPESET:150,INSERTED:200,LAST:1e4};function n(t,r){if(t in e.STATE){throw Error("State "+t+" already exists")}e.STATE[t]=r}e.newState=n},36560:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__assign||function(){n=Object.assign||function(t){for(var e,r=1,i=arguments.length;r0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});e.TeX=void 0;var s=r(19068);var u=r(36059);var l=r(1791);var f=a(r(70503));var c=a(r(72895));var p=a(r(42880));var d=a(r(48406));var h=a(r(1331));var v=r(56711);var y=r(23644);r(19890);var m=function(t){i(e,t);function e(r){if(r===void 0){r={}}var i=this;var n=o((0,u.separateOptions)(r,e.OPTIONS,l.FindTeX.OPTIONS),3),a=n[0],s=n[1],c=n[2];i=t.call(this,s)||this;i.findTeX=i.options["FindTeX"]||new l.FindTeX(c);var p=i.options.packages;var d=i.configuration=e.configure(p);var y=i._parseOptions=new h.default(d,[i.options,v.TagsFactory.OPTIONS]);(0,u.userOptions)(y.options,a);d.config(i);e.tags(y,d);i.postFilters.add(f.default.cleanSubSup,-6);i.postFilters.add(f.default.setInherited,-5);i.postFilters.add(f.default.moveLimits,-4);i.postFilters.add(f.default.cleanStretchy,-3);i.postFilters.add(f.default.cleanAttributes,-2);i.postFilters.add(f.default.combineRelations,-1);return i}e.configure=function(t){var e=new y.ParserConfiguration(t,["tex"]);e.init();return e};e.tags=function(t,e){v.TagsFactory.addTags(e.tags);v.TagsFactory.setDefault(t.options.tags);t.tags=v.TagsFactory.getDefault();t.tags.configuration=t};e.prototype.setMmlFactory=function(e){t.prototype.setMmlFactory.call(this,e);this._parseOptions.nodeFactory.setMmlFactory(e)};Object.defineProperty(e.prototype,"parseOptions",{get:function(){return this._parseOptions},enumerable:false,configurable:true});e.prototype.reset=function(t){if(t===void 0){t=0}this.parseOptions.tags.reset(t)};e.prototype.compile=function(t,e){this.parseOptions.clear();this.executeFilters(this.preFilters,t,e,this.parseOptions);var r=t.display;this.latex=t.math;var i;this.parseOptions.tags.startEquation(t);var n;try{var o=new p.default(this.latex,{display:r,isInner:false},this.parseOptions);i=o.mml();n=o.stack.global}catch(a){if(!(a instanceof d.default)){throw a}this.parseOptions.error=true;i=this.options.formatError(this,a)}i=this.parseOptions.nodeFactory.create("node","math",[i]);if(n===null||n===void 0?void 0:n.indentalign){c.default.setAttribute(i,"indentalign",n.indentalign)}if(r){c.default.setAttribute(i,"display","block")}this.parseOptions.tags.finishEquation(t);this.parseOptions.root=i;this.executeFilters(this.postFilters,t,e,this.parseOptions);this.mathNode=this.parseOptions.root;return this.mathNode};e.prototype.findMath=function(t){return this.findTeX.findMath(t)};e.prototype.formatError=function(t){var e=t.message.replace(/\n.*/,"");return this.parseOptions.nodeFactory.create("error",e,t.id,this.latex)};e.NAME="TeX";e.OPTIONS=n(n({},s.AbstractInputJax.OPTIONS),{FindTeX:null,packages:["base"],digits:/^(?:[0-9]+(?:\{,\}[0-9]{3})*(?:\.[0-9]*)?|\.[0-9]+)/,maxBuffer:5*1024,formatError:function(t,e){return t.formatError(e)}});return e}(s.AbstractInputJax);e.TeX=m},70503:function(t,e,r){var i=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});var o=r(18426);var a=n(r(72895));var s;(function(t){t.cleanStretchy=function(t){var e,r;var n=t.data;try{for(var o=i(n.getList("fixStretchy")),s=o.next();!s.done;s=o.next()){var u=s.value;if(a.default.getProperty(u,"fixStretchy")){var l=a.default.getForm(u);if(l&&l[3]&&l[3]["stretchy"]){a.default.setAttribute(u,"stretchy",false)}var f=u.parent;if(!a.default.getTexClass(u)&&(!l||!l[2])){var c=n.nodeFactory.create("node","TeXAtom",[u]);f.replaceChild(c,u);c.inheritAttributesFrom(u)}a.default.removeProperties(u,"fixStretchy")}}}catch(p){e={error:p}}finally{try{if(s&&!s.done&&(r=o.return))r.call(o)}finally{if(e)throw e.error}}};t.cleanAttributes=function(t){var e=t.data.root;e.walkTree((function(t,e){var r,n;var o=t.attributes;if(!o){return}var a=new Set((o.get("mjx-keep-attrs")||"").split(/ /));delete o.getAllAttributes()["mjx-keep-attrs"];try{for(var s=i(o.getExplicitNames()),u=s.next();!u.done;u=s.next()){var l=u.value;if(!a.has(l)&&o.attributes[l]===t.attributes.getInherited(l)){delete o.attributes[l]}}}catch(f){r={error:f}}finally{try{if(u&&!u.done&&(n=s.return))n.call(s)}finally{if(r)throw r.error}}}),{})};t.combineRelations=function(t){var n,s,u,l;var f=[];try{for(var c=i(t.data.getList("mo")),p=c.next();!p.done;p=c.next()){var d=p.value;if(d.getProperty("relationsCombined")||!d.parent||d.parent&&!a.default.isType(d.parent,"mrow")||a.default.getTexClass(d)!==o.TEXCLASS.REL){continue}var h=d.parent;var v=void 0;var y=h.childNodes;var m=y.indexOf(d)+1;var b=a.default.getProperty(d,"variantForm");while(m0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.FindTeX=void 0;var o=r(83663);var a=r(33353);var s=r(59719);var u=function(t){i(e,t);function e(e){var r=t.call(this,e)||this;r.getPatterns();return r}e.prototype.getPatterns=function(){var t=this;var e=this.options;var r=[],i=[],n=[];this.end={};this.env=this.sub=0;var o=1;e["inlineMath"].forEach((function(e){return t.addPattern(r,e,false)}));e["displayMath"].forEach((function(e){return t.addPattern(r,e,true)}));if(r.length){i.push(r.sort(a.sortLength).join("|"))}if(e["processEnvironments"]){i.push("\\\\begin\\s*\\{([^}]*)\\}");this.env=o;o++}if(e["processEscapes"]){n.push("\\\\([\\\\$])")}if(e["processRefs"]){n.push("(\\\\(?:eq)?ref\\s*\\{[^}]*\\})")}if(n.length){i.push("("+n.join("|")+")");this.sub=o}this.start=new RegExp(i.join("|"),"g");this.hasPatterns=i.length>0};e.prototype.addPattern=function(t,e,r){var i=n(e,2),o=i[0],s=i[1];t.push((0,a.quotePattern)(o));this.end[o]=[s,r,this.endPattern(s)]};e.prototype.endPattern=function(t,e){return new RegExp((e||(0,a.quotePattern)(t))+"|\\\\(?:[a-zA-Z]|.)|[{}]","g")};e.prototype.findEnd=function(t,e,r,i){var o=n(i,3),a=o[0],u=o[1],l=o[2];var f=l.lastIndex=r.index+r[0].length;var c,p=0;while(c=l.exec(t)){if((c[1]||c[0])===a&&p===0){return(0,s.protoItem)(r[0],t.substr(f,c.index-f),c[0],e,r.index,c.index+c[0].length,u)}else if(c[0]==="{"){p++}else if(c[0]==="}"&&p){p--}}return null};e.prototype.findMathInString=function(t,e,r){var i,n;this.start.lastIndex=0;while(i=this.start.exec(r)){if(i[this.env]!==undefined&&this.env){var o="\\\\end\\s*(\\{"+(0,a.quotePattern)(i[this.env])+"\\})";n=this.findEnd(r,e,i,["{"+i[this.env]+"}",true,this.endPattern(null,o)]);if(n){n.math=n.open+n.math+n.close;n.open=n.close=""}}else if(i[this.sub]!==undefined&&this.sub){var u=i[this.sub];var o=i.index+i[this.sub].length;if(u.length===2){n=(0,s.protoItem)("",u.substr(1),"",e,i.index,o)}else{n=(0,s.protoItem)("",u,"",e,i.index,o,false)}}else{n=this.findEnd(r,e,i,this.end[i[0]])}if(n){t.push(n);this.start.lastIndex=n.end.n}}};e.prototype.findMath=function(t){var e=[];if(this.hasPatterns){for(var r=0,i=t.length;r{n.r(t);n.d(t,{lua:()=>d});function a(e){return new RegExp("^(?:"+e.join("|")+")","i")}function r(e){return new RegExp("^(?:"+e.join("|")+")$","i")}var i=r(["_G","_VERSION","assert","collectgarbage","dofile","error","getfenv","getmetatable","ipairs","load","loadfile","loadstring","module","next","pairs","pcall","print","rawequal","rawget","rawset","require","select","setfenv","setmetatable","tonumber","tostring","type","unpack","xpcall","coroutine.create","coroutine.resume","coroutine.running","coroutine.status","coroutine.wrap","coroutine.yield","debug.debug","debug.getfenv","debug.gethook","debug.getinfo","debug.getlocal","debug.getmetatable","debug.getregistry","debug.getupvalue","debug.setfenv","debug.sethook","debug.setlocal","debug.setmetatable","debug.setupvalue","debug.traceback","close","flush","lines","read","seek","setvbuf","write","io.close","io.flush","io.input","io.lines","io.open","io.output","io.popen","io.read","io.stderr","io.stdin","io.stdout","io.tmpfile","io.type","io.write","math.abs","math.acos","math.asin","math.atan","math.atan2","math.ceil","math.cos","math.cosh","math.deg","math.exp","math.floor","math.fmod","math.frexp","math.huge","math.ldexp","math.log","math.log10","math.max","math.min","math.modf","math.pi","math.pow","math.rad","math.random","math.randomseed","math.sin","math.sinh","math.sqrt","math.tan","math.tanh","os.clock","os.date","os.difftime","os.execute","os.exit","os.getenv","os.remove","os.rename","os.setlocale","os.time","os.tmpname","package.cpath","package.loaded","package.loaders","package.loadlib","package.path","package.preload","package.seeall","string.byte","string.char","string.dump","string.find","string.format","string.gmatch","string.gsub","string.len","string.lower","string.match","string.rep","string.reverse","string.sub","string.upper","table.concat","table.insert","table.maxn","table.remove","table.sort"]);var o=r(["and","break","elseif","false","nil","not","or","return","true","function","end","if","then","else","do","while","repeat","until","for","in","local"]);var u=r(["function","if","repeat","do","\\(","{"]);var l=r(["end","until","\\)","}"]);var s=a(["end","until","\\)","}","else","elseif"]);function c(e){var t=0;while(e.eat("="))++t;e.eat("[");return t}function g(e,t){var n=e.next();if(n=="-"&&e.eat("-")){if(e.eat("[")&&e.eat("["))return(t.cur=m(c(e),"comment"))(e,t);e.skipToEnd();return"comment"}if(n=='"'||n=="'")return(t.cur=p(n))(e,t);if(n=="["&&/[\[=]/.test(e.peek()))return(t.cur=m(c(e),"string"))(e,t);if(/\d/.test(n)){e.eatWhile(/[\w.%]/);return"number"}if(/[\w_]/.test(n)){e.eatWhile(/[\w\\\-_.]/);return"variable"}return null}function m(e,t){return function(n,a){var r=null,i;while((i=n.next())!=null){if(r==null){if(i=="]")r=0}else if(i=="=")++r;else if(i=="]"&&r==e){a.cur=g;break}else r=null}return t}}function p(e){return function(t,n){var a=false,r;while((r=t.next())!=null){if(r==e&&!a)break;a=!a&&r=="\\"}if(!a)n.cur=g;return"string"}}const d={name:"lua",startState:function(){return{basecol:0,indentDepth:0,cur:g}},token:function(e,t){if(e.eatSpace())return null;var n=t.cur(e,t);var a=e.current();if(n=="variable"){if(o.test(a))n="keyword";else if(i.test(a))n="builtin"}if(n!="comment"&&n!="string"){if(u.test(a))++t.indentDepth;else if(l.test(a))--t.indentDepth}return n},indent:function(e,t,n){var a=s.test(t);return e.basecol+n.unit*(e.indentDepth-(a?1:0))},languageData:{indentOnInput:/^\s*(?:end|until|else|\)|\})$/,commentTokens:{line:"--",block:{open:"--[[",close:"]]--"}}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/6686.3c518aa6e5f9785fb486.js b/bootcamp/share/jupyter/lab/static/6686.3c518aa6e5f9785fb486.js new file mode 100644 index 0000000..7171d59 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/6686.3c518aa6e5f9785fb486.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6686,786],{73132:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.VERSION=void 0;e.VERSION="3.2.2"},43582:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var i=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.HandlerList=void 0;var o=r(4180);var a=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.register=function(t){return this.add(t,t.priority)};e.prototype.unregister=function(t){this.remove(t)};e.prototype.handlesDocument=function(t){var e,r;try{for(var n=i(this),o=n.next();!o.done;o=n.next()){var a=o.value;var s=a.item;if(s.handlesDocument(t)){return s}}}catch(l){e={error:l}}finally{try{if(o&&!o.done&&(r=n.return))r.call(n)}finally{if(e)throw e.error}}throw new Error("Can't find handler for document")};e.prototype.document=function(t,e){if(e===void 0){e=null}return this.handlesDocument(t).create(t,e)};return e}(o.PrioritizedList);e.HandlerList=a},23644:function(t,e,r){var n=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.ParserConfiguration=e.ConfigurationHandler=e.Configuration=void 0;var o=r(36059);var a=r(84858);var s=r(64905);var l=r(4180);var u=r(56711);var c=function(){function t(t,e,r,n,i,o,a,s,l,u,c,f,h){if(e===void 0){e={}}if(r===void 0){r={}}if(n===void 0){n={}}if(i===void 0){i={}}if(o===void 0){o={}}if(a===void 0){a={}}if(s===void 0){s=[]}if(l===void 0){l=[]}if(u===void 0){u=null}if(c===void 0){c=null}this.name=t;this.handler=e;this.fallback=r;this.items=n;this.tags=i;this.options=o;this.nodes=a;this.preprocessors=s;this.postprocessors=l;this.initMethod=u;this.configMethod=c;this.priority=f;this.parser=h;this.handler=Object.assign({character:[],delimiter:[],macro:[],environment:[]},e)}t.makeProcessor=function(t,e){return Array.isArray(t)?t:[t,e]};t._create=function(e,r){var n=this;if(r===void 0){r={}}var i=r.priority||l.PrioritizedList.DEFAULTPRIORITY;var o=r.init?this.makeProcessor(r.init,i):null;var a=r.config?this.makeProcessor(r.config,i):null;var s=(r.preprocessors||[]).map((function(t){return n.makeProcessor(t,i)}));var u=(r.postprocessors||[]).map((function(t){return n.makeProcessor(t,i)}));var c=r.parser||"tex";return new t(e,r.handler||{},r.fallback||{},r.items||{},r.tags||{},r.options||{},r.nodes||{},s,u,o,a,i,c)};t.create=function(e,r){if(r===void 0){r={}}var n=t._create(e,r);f.set(e,n);return n};t.local=function(e){if(e===void 0){e={}}return t._create("",e)};Object.defineProperty(t.prototype,"init",{get:function(){return this.initMethod?this.initMethod[0]:null},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"config",{get:function(){return this.configMethod?this.configMethod[0]:null},enumerable:false,configurable:true});return t}();e.Configuration=c;var f;(function(t){var e=new Map;t.set=function(t,r){e.set(t,r)};t.get=function(t){return e.get(t)};t.keys=function(){return e.keys()}})(f=e.ConfigurationHandler||(e.ConfigurationHandler={}));var h=function(){function t(t,e){var r,i,o,u;if(e===void 0){e=["tex"]}this.initMethod=new s.FunctionList;this.configMethod=new s.FunctionList;this.configurations=new l.PrioritizedList;this.parsers=[];this.handlers=new a.SubHandlers;this.items={};this.tags={};this.options={};this.nodes={};this.parsers=e;try{for(var c=n(t.slice().reverse()),f=c.next();!f.done;f=c.next()){var h=f.value;this.addPackage(h)}}catch(m){r={error:m}}finally{try{if(f&&!f.done&&(i=c.return))i.call(c)}finally{if(r)throw r.error}}try{for(var p=n(this.configurations),d=p.next();!d.done;d=p.next()){var v=d.value,y=v.item,g=v.priority;this.append(y,g)}}catch(b){o={error:b}}finally{try{if(d&&!d.done&&(u=p.return))u.call(p)}finally{if(o)throw o.error}}}t.prototype.init=function(){this.initMethod.execute(this)};t.prototype.config=function(t){var e,r;this.configMethod.execute(this,t);try{for(var i=n(this.configurations),o=i.next();!o.done;o=i.next()){var a=o.value;this.addFilters(t,a.item)}}catch(s){e={error:s}}finally{try{if(o&&!o.done&&(r=i.return))r.call(i)}finally{if(e)throw e.error}}};t.prototype.addPackage=function(t){var e=typeof t==="string"?t:t[0];var r=this.getPackage(e);r&&this.configurations.add(r,typeof t==="string"?r.priority:t[1])};t.prototype.add=function(t,e,r){var i,a;if(r===void 0){r={}}var s=this.getPackage(t);this.append(s);this.configurations.add(s,s.priority);this.init();var l=e.parseOptions;l.nodeFactory.setCreators(s.nodes);try{for(var c=n(Object.keys(s.items)),f=c.next();!f.done;f=c.next()){var h=f.value;l.itemFactory.setNodeClass(h,s.items[h])}}catch(p){i={error:p}}finally{try{if(f&&!f.done&&(a=c.return))a.call(c)}finally{if(i)throw i.error}}u.TagsFactory.addTags(s.tags);(0,o.defaultOptions)(l.options,s.options);(0,o.userOptions)(l.options,r);this.addFilters(e,s);if(s.config){s.config(this,e)}};t.prototype.getPackage=function(t){var e=f.get(t);if(e&&this.parsers.indexOf(e.parser)<0){throw Error("Package ".concat(t," doesn't target the proper parser"))}return e};t.prototype.append=function(t,e){e=e||t.priority;if(t.initMethod){this.initMethod.add(t.initMethod[0],t.initMethod[1])}if(t.configMethod){this.configMethod.add(t.configMethod[0],t.configMethod[1])}this.handlers.add(t.handler,t.fallback,e);Object.assign(this.items,t.items);Object.assign(this.tags,t.tags);(0,o.defaultOptions)(this.options,t.options);Object.assign(this.nodes,t.nodes)};t.prototype.addFilters=function(t,e){var r,o,a,s;try{for(var l=n(e.preprocessors),u=l.next();!u.done;u=l.next()){var c=i(u.value,2),f=c[0],h=c[1];t.preFilters.add(f,h)}}catch(g){r={error:g}}finally{try{if(u&&!u.done&&(o=l.return))o.call(l)}finally{if(r)throw r.error}}try{for(var p=n(e.postprocessors),d=p.next();!d.done;d=p.next()){var v=i(d.value,2),y=v[0],h=v[1];t.postFilters.add(y,h)}}catch(m){a={error:m}}finally{try{if(d&&!d.done&&(s=p.return))s.call(p)}finally{if(a)throw a.error}}};return t}();e.ParserConfiguration=h},84858:function(t,e,r){var n=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.SubHandlers=e.SubHandler=e.MapHandler=void 0;var o=r(4180);var a=r(64905);var s;(function(t){var e=new Map;t.register=function(t){e.set(t.name,t)};t.getMap=function(t){return e.get(t)}})(s=e.MapHandler||(e.MapHandler={}));var l=function(){function t(){this._configuration=new o.PrioritizedList;this._fallback=new a.FunctionList}t.prototype.add=function(t,e,r){var i,a;if(r===void 0){r=o.PrioritizedList.DEFAULTPRIORITY}try{for(var l=n(t.slice().reverse()),u=l.next();!u.done;u=l.next()){var c=u.value;var f=s.getMap(c);if(!f){this.warn("Configuration "+c+" not found! Omitted.");return}this._configuration.add(f,r)}}catch(h){i={error:h}}finally{try{if(u&&!u.done&&(a=l.return))a.call(l)}finally{if(i)throw i.error}}if(e){this._fallback.add(e,r)}};t.prototype.parse=function(t){var e,r;try{for(var o=n(this._configuration),a=o.next();!a.done;a=o.next()){var s=a.value.item;var l=s.parse(t);if(l){return l}}}catch(h){e={error:h}}finally{try{if(a&&!a.done&&(r=o.return))r.call(o)}finally{if(e)throw e.error}}var u=i(t,2),c=u[0],f=u[1];Array.from(this._fallback)[0].item(c,f)};t.prototype.lookup=function(t){var e=this.applicable(t);return e?e.lookup(t):null};t.prototype.contains=function(t){return this.applicable(t)?true:false};t.prototype.toString=function(){var t,e;var r=[];try{for(var i=n(this._configuration),o=i.next();!o.done;o=i.next()){var a=o.value.item;r.push(a.name)}}catch(s){t={error:s}}finally{try{if(o&&!o.done&&(e=i.return))e.call(i)}finally{if(t)throw t.error}}return r.join(", ")};t.prototype.applicable=function(t){var e,r;try{for(var i=n(this._configuration),o=i.next();!o.done;o=i.next()){var a=o.value.item;if(a.contains(t)){return a}}}catch(s){e={error:s}}finally{try{if(o&&!o.done&&(r=i.return))r.call(i)}finally{if(e)throw e.error}}return null};t.prototype.retrieve=function(t){var e,r;try{for(var i=n(this._configuration),o=i.next();!o.done;o=i.next()){var a=o.value.item;if(a.name===t){return a}}}catch(s){e={error:s}}finally{try{if(o&&!o.done&&(r=i.return))r.call(i)}finally{if(e)throw e.error}}return null};t.prototype.warn=function(t){console.log("TexParser Warning: "+t)};return t}();e.SubHandler=l;var u=function(){function t(){this.map=new Map}t.prototype.add=function(t,e,r){var i,a;if(r===void 0){r=o.PrioritizedList.DEFAULTPRIORITY}try{for(var s=n(Object.keys(t)),u=s.next();!u.done;u=s.next()){var c=u.value;var f=c;var h=this.get(f);if(!h){h=new l;this.set(f,h)}h.add(t[f],e[f],r)}}catch(p){i={error:p}}finally{try{if(u&&!u.done&&(a=s.return))a.call(s)}finally{if(i)throw i.error}}};t.prototype.set=function(t,e){this.map.set(t,e)};t.prototype.get=function(t){return this.map.get(t)};t.prototype.retrieve=function(t){var e,r;try{for(var i=n(this.map.values()),o=i.next();!o.done;o=i.next()){var a=o.value;var s=a.retrieve(t);if(s){return s}}}catch(l){e={error:l}}finally{try{if(o&&!o.done&&(r=i.return))r.call(i)}finally{if(e)throw e.error}}return null};t.prototype.keys=function(){return this.map.keys()};return t}();e.SubHandlers=u},72895:function(t,e,r){var n=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};var i=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});var a=r(18426);var s=o(r(72895));var l=o(r(42880));var u=o(r(48406));var c=r(63411);var f;(function(t){var e=7.2;var r=72;var o={em:function(t){return t},ex:function(t){return t*.43},pt:function(t){return t/10},pc:function(t){return t*1.2},px:function(t){return t*e/r},in:function(t){return t*e},cm:function(t){return t*e/2.54},mm:function(t){return t*e/25.4},mu:function(t){return t/18}};var f="([-+]?([.,]\\d+|\\d+([.,]\\d*)?))";var h="(pt|em|ex|mu|px|mm|cm|in|pc)";var p=RegExp("^\\s*"+f+"\\s*"+h+"\\s*$");var d=RegExp("^\\s*"+f+"\\s*"+h+" ?");function v(t,e){if(e===void 0){e=false}var r=t.match(e?d:p);return r?y([r[1].replace(/,/,"."),r[4],r[0].length]):[null,null,0]}t.matchDimen=v;function y(t){var e=n(t,3),r=e[0],i=e[1],a=e[2];if(i!=="mu"){return[r,i,a]}var s=m(o[i](parseFloat(r||"1")));return[s.slice(0,-2),"em",a]}function g(t){var e=n(v(t),2),r=e[0],i=e[1];var a=parseFloat(r||"1");var s=o[i];return s?s(a):0}t.dimen2em=g;function m(t){if(Math.abs(t)<6e-4){return"0em"}return t.toFixed(3).replace(/\.?0+$/,"")+"em"}t.Em=m;function b(){var t=[];for(var e=0;e1){a=[t.create("node","mrow",a)]}return a}t.internalMath=S;function P(t,e,r){e=e.replace(/^\s+/,c.entities.nbsp).replace(/\s+$/,c.entities.nbsp);var n=t.create("text",e);return t.create("node","mtext",[],r,n)}t.internalText=P;function k(e,r,n,i,o){t.checkMovableLimits(r);if(s.default.isType(r,"munderover")&&s.default.isEmbellished(r)){s.default.setProperties(s.default.getCoreMO(r),{lspace:0,rspace:0});var l=e.create("node","mo",[],{rspace:0});r=e.create("node","mrow",[l,r])}var u=e.create("node","munderover",[r]);s.default.setChild(u,i==="over"?u.over:u.under,n);var c=u;if(o){c=e.create("node","TeXAtom",[u],{texClass:a.TEXCLASS.OP,movesupsub:true})}s.default.setProperty(c,"subsupOK",true);return c}t.underOver=k;function O(t){var e=s.default.isType(t,"mo")?s.default.getForm(t):null;if(s.default.getProperty(t,"movablelimits")||e&&e[3]&&e[3].movablelimits){s.default.setProperties(t,{movablelimits:false})}}t.checkMovableLimits=O;function M(t){if(typeof t!=="string"){return t}var e=t.trim();if(e.match(/\\$/)&&t.match(/ $/)){e+=" "}return e}t.trimSpaces=M;function E(e,r){r=t.trimSpaces(r||"");if(r==="t"){e.arraydef.align="baseline 1"}else if(r==="b"){e.arraydef.align="baseline -1"}else if(r==="c"){e.arraydef.align="axis"}else if(r){e.arraydef.align=r}return e}t.setArrayAlign=E;function C(t,e,r){var n="";var i="";var o=0;while(oe.length){throw new u.default("IllegalMacroParam","Illegal macro parameter reference")}i=A(t,A(t,i,n),e[parseInt(a,10)-1]);n=""}}else{n+=a}}return A(t,i,n)}t.substituteArgs=C;function A(t,e,r){if(r.match(/^[a-z]/i)&&e.match(/(^|[^\\])(\\\\)*\\[a-z]+$/i)){e+=" "}if(e.length+r.length>t.configuration.options["maxBuffer"]){throw new u.default("MaxBufferSize","MathJax internal buffer size exceeded; is there a"+" recursive macro call?")}return e+r}t.addArgs=A;function L(t,e){if(e===void 0){e=true}if(++t.macroCount<=t.configuration.options["maxMacros"]){return}if(e){throw new u.default("MaxMacroSub1","MathJax maximum macro substitution count exceeded; "+"is here a recursive macro call?")}else{throw new u.default("MaxMacroSub2","MathJax maximum substitution count exceeded; "+"is there a recursive latex environment?")}}t.checkMaxMacros=L;function j(t){if(t.stack.global.eqnenv){throw new u.default("ErroneousNestingEq","Erroneous nesting of equation structures")}t.stack.global.eqnenv=true}t.checkEqnEnv=j;function F(t,e){var r=t.copy();var n=e.configuration;r.walkTree((function(t){var e,r;n.addNode(t.kind,t);var o=(t.getProperty("in-lists")||"").split(/,/);try{for(var a=i(o),s=a.next();!s.done;s=a.next()){var l=s.value;l&&n.addNode(l,t)}}catch(u){e={error:u}}finally{try{if(s&&!s.done&&(r=a.return))r.call(a)}finally{if(e)throw e.error}}}));return r}t.copyNode=F;function I(t,e,r){return r}t.MmlFilterAttribute=I;function q(t){var e=t.stack.env["font"];return e?{mathvariant:e}:{}}t.getFontDef=q;function D(t,e,r){var n,o;if(e===void 0){e=null}if(r===void 0){r=false}var a=N(t);if(e){try{for(var s=i(Object.keys(a)),l=s.next();!l.done;l=s.next()){var c=l.value;if(!e.hasOwnProperty(c)){if(r){throw new u.default("InvalidOption","Invalid option: %1",c)}delete a[c]}}}catch(f){n={error:f}}finally{try{if(l&&!l.done&&(o=s.return))o.call(s)}finally{if(n)throw n.error}}}return a}t.keyvalOptions=D;function N(t){var e,r;var i={};var o=t;var a,s,l;while(o){e=n(G(o,["=",","]),3),s=e[0],a=e[1],o=e[2];if(a==="="){r=n(G(o,[","]),3),l=r[0],a=r[1],o=r[2];l=l==="false"||l==="true"?JSON.parse(l):l;i[s]=l}else if(s){i[s]=true}}return i}function R(t,e){while(e>0){t=t.trim().slice(1,-1);e--}return t.trim()}function G(t,e){var r=t.length;var n=0;var i="";var o=0;var a=0;var s=true;var l=false;while(on){a=n}}n++;break;case"}":if(n){n--}if(s||l){a--;l=true}s=false;break;default:if(!n&&e.indexOf(c)!==-1){return[l?"true":R(i,a),c,t.slice(o)]}s=false;l=false}i+=c}if(n){throw new u.default("ExtraOpenMissingClose","Extra open brace or missing close brace")}return[l?"true":R(i,a),"",t.slice(o)]}})(f||(f={}));e["default"]=f},14577:function(t,e,r){var n=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n{Object.defineProperty(e,"__esModule",{value:true});e.Macro=e.Symbol=void 0;var r=function(){function t(t,e,r){this._symbol=t;this._char=e;this._attributes=r}Object.defineProperty(t.prototype,"symbol",{get:function(){return this._symbol},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"char",{get:function(){return this._char},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"attributes",{get:function(){return this._attributes},enumerable:false,configurable:true});return t}();e.Symbol=r;var n=function(){function t(t,e,r){if(r===void 0){r=[]}this._symbol=t;this._func=e;this._args=r}Object.defineProperty(t.prototype,"symbol",{get:function(){return this._symbol},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"func",{get:function(){return this._func},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"args",{get:function(){return this._args},enumerable:false,configurable:true});return t}();e.Macro=n},92715:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};var o=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var a=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:true});e.TagsFactory=e.AllTags=e.NoTags=e.AbstractTags=e.TagInfo=e.Label=void 0;var a=o(r(42880));var s=function(){function t(t,e){if(t===void 0){t="???"}if(e===void 0){e=""}this.tag=t;this.id=e}return t}();e.Label=s;var l=function(){function t(t,e,r,n,i,o,a,s){if(t===void 0){t=""}if(e===void 0){e=false}if(r===void 0){r=false}if(n===void 0){n=null}if(i===void 0){i=""}if(o===void 0){o=""}if(a===void 0){a=false}if(s===void 0){s=""}this.env=t;this.taggable=e;this.defaultTags=r;this.tag=n;this.tagId=i;this.tagFormat=o;this.noTag=a;this.labelId=s}return t}();e.TagInfo=l;var u=function(){function t(){this.counter=0;this.allCounter=0;this.configuration=null;this.ids={};this.allIds={};this.labels={};this.allLabels={};this.redo=false;this.refUpdate=false;this.currentTag=new l;this.history=[];this.stack=[];this.enTag=function(t,e){var r=this.configuration.nodeFactory;var n=r.create("node","mtd",[t]);var i=r.create("node","mlabeledtr",[e,n]);var o=r.create("node","mtable",[i],{side:this.configuration.options["tagSide"],minlabelspacing:this.configuration.options["tagIndent"],displaystyle:true});return o}}t.prototype.start=function(t,e,r){if(this.currentTag){this.stack.push(this.currentTag)}this.currentTag=new l(t,e,r)};Object.defineProperty(t.prototype,"env",{get:function(){return this.currentTag.env},enumerable:false,configurable:true});t.prototype.end=function(){this.history.push(this.currentTag);this.currentTag=this.stack.pop()};t.prototype.tag=function(t,e){this.currentTag.tag=t;this.currentTag.tagFormat=e?t:this.formatTag(t);this.currentTag.noTag=false};t.prototype.notag=function(){this.tag("",true);this.currentTag.noTag=true};Object.defineProperty(t.prototype,"noTag",{get:function(){return this.currentTag.noTag},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"label",{get:function(){return this.currentTag.labelId},set:function(t){this.currentTag.labelId=t},enumerable:false,configurable:true});t.prototype.formatUrl=function(t,e){return e+"#"+encodeURIComponent(t)};t.prototype.formatTag=function(t){return"("+t+")"};t.prototype.formatId=function(t){return"mjx-eqn:"+t.replace(/\s/g,"_")};t.prototype.formatNumber=function(t){return t.toString()};t.prototype.autoTag=function(){if(this.currentTag.tag==null){this.counter++;this.tag(this.formatNumber(this.counter),false)}};t.prototype.clearTag=function(){this.label="";this.tag(null,true);this.currentTag.tagId=""};t.prototype.getTag=function(t){if(t===void 0){t=false}if(t){this.autoTag();return this.makeTag()}var e=this.currentTag;if(e.taggable&&!e.noTag){if(e.defaultTags){this.autoTag()}if(e.tag){return this.makeTag()}}return null};t.prototype.resetTag=function(){this.history=[];this.redo=false;this.refUpdate=false;this.clearTag()};t.prototype.reset=function(t){if(t===void 0){t=0}this.resetTag();this.counter=this.allCounter=t;this.allLabels={};this.allIds={}};t.prototype.startEquation=function(t){this.history=[];this.stack=[];this.clearTag();this.currentTag=new l("",undefined,undefined);this.labels={};this.ids={};this.counter=this.allCounter;this.redo=false;var e=t.inputData.recompile;if(e){this.refUpdate=true;this.counter=e.counter}};t.prototype.finishEquation=function(t){if(this.redo){t.inputData.recompile={state:t.state(),counter:this.allCounter}}if(!this.refUpdate){this.allCounter=this.counter}Object.assign(this.allIds,this.ids);Object.assign(this.allLabels,this.labels)};t.prototype.finalize=function(t,e){if(!e.display||this.currentTag.env||this.currentTag.tag==null){return t}var r=this.makeTag();var n=this.enTag(t,r);return n};t.prototype.makeId=function(){this.currentTag.tagId=this.formatId(this.configuration.options["useLabelIds"]?this.label||this.currentTag.tag:this.currentTag.tag)};t.prototype.makeTag=function(){this.makeId();if(this.label){this.labels[this.label]=new s(this.currentTag.tag,this.currentTag.tagId)}var t=new a.default("\\text{"+this.currentTag.tagFormat+"}",{},this.configuration).mml();return this.configuration.nodeFactory.create("node","mtd",[t],{id:this.currentTag.tagId})};return t}();e.AbstractTags=u;var c=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.autoTag=function(){};e.prototype.getTag=function(){return!this.currentTag.tag?null:t.prototype.getTag.call(this)};return e}(u);e.NoTags=c;var f=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.finalize=function(t,e){if(!e.display||this.history.find((function(t){return t.taggable}))){return t}var r=this.getTag(true);return this.enTag(t,r)};return e}(u);e.AllTags=f;var h;(function(t){var e=new Map([["none",c],["all",f]]);var r="none";t.OPTIONS={tags:r,tagSide:"right",tagIndent:"0.8em",useLabelIds:true,ignoreDuplicateLabels:false};t.add=function(t,r){e.set(t,r)};t.addTags=function(e){var r,n;try{for(var o=i(Object.keys(e)),a=o.next();!a.done;a=o.next()){var s=a.value;t.add(s,e[s])}}catch(l){r={error:l}}finally{try{if(a&&!a.done&&(n=o.return))n.call(o)}finally{if(r)throw r.error}}};t.create=function(t){var n=e.get(t)||e.get(r);if(!n){throw Error("Unknown tags class")}return new n};t.setDefault=function(t){r=t};t.getDefault=function(){return t.create(r)}})(h=e.TagsFactory||(e.TagsFactory={}))},48406:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});var r=function(){function t(e,r){var n=[];for(var i=2;i="0"&&a<="9"){n[i]=r[parseInt(n[i],10)-1];if(typeof n[i]==="number"){n[i]=n[i].toString()}}else if(a==="{"){a=n[i].substr(1);if(a>="0"&&a<="9"){n[i]=r[parseInt(n[i].substr(1,n[i].length-2),10)-1];if(typeof n[i]==="number"){n[i]=n[i].toString()}}else{var s=n[i].match(/^\{([a-z]+):%(\d+)\|(.*)\}$/);if(s){n[i]="%"+n[i]}}}if(n[i]==null){n[i]="???"}}return n.join("")};t.pattern=/%(\d+|\{\d+\}|\{[a-z]+:\%\d+(?:\|(?:%\{\d+\}|%.|[^\}])*)+\}|.)/g;return t}();e["default"]=r},42880:function(t,e,r){var n=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n{Object.defineProperty(e,"__esModule",{value:true});e.mathjax=void 0;var n=r(73132);var i=r(43582);var o=r(97e3);e.mathjax={version:n.VERSION,handlers:new i.HandlerList,document:function(t,r){return e.mathjax.handlers.document(t,r)},handleRetriesFor:o.handleRetriesFor,retryAfter:o.retryAfter,asyncLoad:null}},26859:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:true});e.asyncLoad=void 0;var n=r(90786);function i(t){if(!n.mathjax.asyncLoad){return Promise.reject("Can't load '".concat(t,"': No asyncLoad method specified"))}return new Promise((function(e,r){var i=n.mathjax.asyncLoad(t);if(i instanceof Promise){i.then((function(t){return e(t)})).catch((function(t){return r(t)}))}else{e(i)}}))}e.asyncLoad=i},63411:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:true});e.numeric=e.translate=e.remove=e.add=e.entities=e.options=void 0;var n=r(97e3);var i=r(26859);e.options={loadMissingEntities:true};e.entities={ApplyFunction:"⁡",Backslash:"∖",Because:"∵",Breve:"˘",Cap:"⋒",CenterDot:"·",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",Congruent:"≡",ContourIntegral:"∮",Coproduct:"∐",Cross:"⨯",Cup:"⋓",CupCap:"≍",Dagger:"‡",Del:"∇",Delta:"Δ",Diamond:"⋄",DifferentialD:"ⅆ",DotEqual:"≐",DoubleDot:"¨",DoubleRightTee:"⊨",DoubleVerticalBar:"∥",DownArrow:"↓",DownLeftVector:"↽",DownRightVector:"⇁",DownTee:"⊤",Downarrow:"⇓",Element:"∈",EqualTilde:"≂",Equilibrium:"⇌",Exists:"∃",ExponentialE:"ⅇ",FilledVerySmallSquare:"▪",ForAll:"∀",Gamma:"Γ",Gg:"⋙",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Hacek:"ˇ",Hat:"^",HumpDownHump:"≎",HumpEqual:"≏",Im:"ℑ",ImaginaryI:"ⅈ",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Lambda:"Λ",Larr:"↞",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDownVector:"⇃",LeftFloor:"⌊",LeftRightArrow:"↔",LeftTee:"⊣",LeftTriangle:"⊲",LeftTriangleEqual:"⊴",LeftUpVector:"↿",LeftVector:"↼",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessSlantEqual:"⩽",LessTilde:"≲",Ll:"⋘",Lleftarrow:"⇚",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lsh:"↰",MinusPlus:"∓",NestedGreaterGreater:"≫",NestedLessLess:"≪",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotLeftTriangle:"⋪",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotPrecedes:"⊀",NotPrecedesSlantEqual:"⋠",NotRightTriangle:"⋫",NotRightTriangleEqual:"⋭",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsSlantEqual:"⋡",NotSupersetEqual:"⊉",NotTilde:"≁",NotVerticalBar:"∤",Omega:"Ω",OverBar:"‾",OverBrace:"⏞",PartialD:"∂",Phi:"Φ",Pi:"Π",PlusMinus:"±",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Product:"∏",Proportional:"∝",Psi:"Ψ",Rarr:"↠",Re:"ℜ",ReverseEquilibrium:"⇋",RightAngleBracket:"⟩",RightArrow:"→",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDownVector:"⇂",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTriangle:"⊳",RightTriangleEqual:"⊵",RightUpVector:"↾",RightVector:"⇀",Rightarrow:"⇒",Rrightarrow:"⇛",Rsh:"↱",Sigma:"Σ",SmallCircle:"∘",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Star:"⋆",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",Therefore:"∴",Theta:"Θ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",UnderBar:"_",UnderBrace:"⏟",Union:"⋃",UnionPlus:"⊎",UpArrow:"↑",UpDownArrow:"↕",UpTee:"⊥",Uparrow:"⇑",Updownarrow:"⇕",Upsilon:"Υ",Vdash:"⊩",Vee:"⋁",VerticalBar:"∣",VerticalTilde:"≀",Vvdash:"⊪",Wedge:"⋀",Xi:"Ξ",amp:"&",acute:"´",aleph:"ℵ",alpha:"α",amalg:"⨿",and:"∧",ang:"∠",angmsd:"∡",angsph:"∢",ape:"≊",backprime:"‵",backsim:"∽",backsimeq:"⋍",beta:"β",beth:"ℶ",between:"≬",bigcirc:"◯",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",blacklozenge:"⧫",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",bowtie:"⋈",boxdl:"┐",boxdr:"┌",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxul:"┘",boxur:"└",bsol:"\\",bull:"•",cap:"∩",check:"✓",chi:"χ",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",clubs:"♣",colon:":",comp:"∁",ctdot:"⋯",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cup:"∪",curarr:"↷",curlyvee:"⋎",curlywedge:"⋏",dagger:"†",daleth:"ℸ",ddarr:"⇊",deg:"°",delta:"δ",digamma:"ϝ",div:"÷",divideontimes:"⋇",dot:"˙",doteqdot:"≑",dotplus:"∔",dotsquare:"⊡",dtdot:"⋱",ecir:"≖",efDot:"≒",egs:"⪖",ell:"ℓ",els:"⪕",empty:"∅",epsi:"ε",epsiv:"ϵ",erDot:"≓",eta:"η",eth:"ð",flat:"♭",fork:"⋔",frown:"⌢",gEl:"⪌",gamma:"γ",gap:"⪆",gimel:"ℷ",gnE:"≩",gnap:"⪊",gne:"⪈",gnsim:"⋧",gt:">",gtdot:"⋗",harrw:"↭",hbar:"ℏ",hellip:"…",hookleftarrow:"↩",hookrightarrow:"↪",imath:"ı",infin:"∞",intcal:"⊺",iota:"ι",jmath:"ȷ",kappa:"κ",kappav:"ϰ",lEg:"⪋",lambda:"λ",lap:"⪅",larrlp:"↫",larrtl:"↢",lbrace:"{",lbrack:"[",le:"≤",leftleftarrows:"⇇",leftthreetimes:"⋋",lessdot:"⋖",lmoust:"⎰",lnE:"≨",lnap:"⪉",lne:"⪇",lnsim:"⋦",longmapsto:"⟼",looparrowright:"↬",lowast:"∗",loz:"◊",lt:"<",ltimes:"⋉",ltri:"◃",macr:"¯",malt:"✠",mho:"℧",mu:"μ",multimap:"⊸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",natur:"♮",nearr:"↗",nharr:"↮",nlarr:"↚",not:"¬",nrarr:"↛",nu:"ν",nvDash:"⊭",nvdash:"⊬",nwarr:"↖",omega:"ω",omicron:"ο",or:"∨",osol:"⊘",period:".",phi:"φ",phiv:"ϕ",pi:"π",piv:"ϖ",prap:"⪷",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",prime:"′",psi:"ψ",quot:'"',rarrtl:"↣",rbrace:"}",rbrack:"]",rho:"ρ",rhov:"ϱ",rightrightarrows:"⇉",rightthreetimes:"⋌",ring:"˚",rmoust:"⎱",rtimes:"⋊",rtri:"▹",scap:"⪸",scnE:"⪶",scnap:"⪺",scnsim:"⋩",sdot:"⋅",searr:"↘",sect:"§",sharp:"♯",sigma:"σ",sigmav:"ς",simne:"≆",smile:"⌣",spades:"♠",sub:"⊂",subE:"⫅",subnE:"⫋",subne:"⊊",supE:"⫆",supnE:"⫌",supne:"⊋",swarr:"↙",tau:"τ",theta:"θ",thetav:"ϑ",tilde:"˜",times:"×",triangle:"▵",triangleq:"≜",upsi:"υ",upuparrows:"⇈",veebar:"⊻",vellip:"⋮",weierp:"℘",xi:"ξ",yen:"¥",zeta:"ζ",zigrarr:"⇝",nbsp:" ",rsquo:"’",lsquo:"‘"};var o={};function a(t,r){Object.assign(e.entities,t);o[r]=true}e.add=a;function s(t){delete e.entities[t]}e.remove=s;function l(t){return t.replace(/&([a-z][a-z0-9]*|#(?:[0-9]+|x[0-9a-f]+));/gi,u)}e.translate=l;function u(t,r){if(r.charAt(0)==="#"){return c(r.slice(1))}if(e.entities[r]){return e.entities[r]}if(e.options["loadMissingEntities"]){var a=r.match(/^[a-zA-Z](fr|scr|opf)$/)?RegExp.$1:r.charAt(0).toLowerCase();if(!o[a]){o[a]=true;(0,n.retryAfter)((0,i.asyncLoad)("./util/entities/"+a+".js"))}}return t}function c(t){var e=t.charAt(0)==="x"?parseInt(t.slice(1),16):parseInt(t);return String.fromCodePoint(e)}e.numeric=c},64905:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var i=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};var a=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n{Object.defineProperty(e,"__esModule",{value:true});e.PrioritizedList=void 0;var r=function(){function t(){this.items=[];this.items=[]}t.prototype[Symbol.iterator]=function(){var t=0;var e=this.items;return{next:function(){return{value:e[t++],done:t>e.length}}}};t.prototype.add=function(e,r){if(r===void 0){r=t.DEFAULTPRIORITY}var n=this.items.length;do{n--}while(n>=0&&r=0&&this.items[e].item!==t);if(e>=0){this.items.splice(e,1)}};t.DEFAULTPRIORITY=5;return t}();e.PrioritizedList=r},97e3:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.retryAfter=e.handleRetriesFor=void 0;function r(t){return new Promise((function e(r,n){try{r(t())}catch(i){if(i.retry&&i.retry instanceof Promise){i.retry.then((function(){return e(r,n)})).catch((function(t){return n(t)}))}else if(i.restart&&i.restart.isCallback){MathJax.Callback.After((function(){return e(r,n)}),i.restart)}else{n(i)}}}))}e.handleRetriesFor=r;function n(t){var e=new Error("MathJax retry");e.retry=t;throw e}e.retryAfter=n}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/6815.0b699f0c162a24b0dbe3.js b/bootcamp/share/jupyter/lab/static/6815.0b699f0c162a24b0dbe3.js new file mode 100644 index 0000000..da58d8c --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/6815.0b699f0c162a24b0dbe3.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6815],{96815:(e,t,n)=>{n.r(t);n.d(t,{xQuery:()=>w});var r=function(){function e(e){return{type:e,style:"keyword"}}var t=e("operator"),n={type:"atom",style:"atom"},r={type:"punctuation",style:null},i={type:"axis_specifier",style:"qualifier"};var a={",":r};var s=["after","all","allowing","ancestor","ancestor-or-self","any","array","as","ascending","at","attribute","base-uri","before","boundary-space","by","case","cast","castable","catch","child","collation","comment","construction","contains","content","context","copy","copy-namespaces","count","decimal-format","declare","default","delete","descendant","descendant-or-self","descending","diacritics","different","distance","document","document-node","element","else","empty","empty-sequence","encoding","end","entire","every","exactly","except","external","first","following","following-sibling","for","from","ftand","ftnot","ft-option","ftor","function","fuzzy","greatest","group","if","import","in","inherit","insensitive","insert","instance","intersect","into","invoke","is","item","language","last","lax","least","let","levels","lowercase","map","modify","module","most","namespace","next","no","node","nodes","no-inherit","no-preserve","not","occurs","of","only","option","order","ordered","ordering","paragraph","paragraphs","parent","phrase","preceding","preceding-sibling","preserve","previous","processing-instruction","relationship","rename","replace","return","revalidation","same","satisfies","schema","schema-attribute","schema-element","score","self","sensitive","sentence","sentences","sequence","skip","sliding","some","stable","start","stemming","stop","strict","strip","switch","text","then","thesaurus","times","to","transform","treat","try","tumbling","type","typeswitch","union","unordered","update","updating","uppercase","using","validate","value","variable","version","weight","when","where","wildcards","window","with","without","word","words","xquery"];for(var o=0,l=s.length;o",">=","<","<=",".","|","?","and","or","div","idiv","mod","*","/","+","-"];for(var o=0,l=c.length;o\"\'\/?]/))h+=v;return i(e,t,u(h,x))}else if(n=="{"){k(t,{type:"codeblock"});return null}else if(n=="}"){b(t);return null}else if(g(t)){if(n==">")return"tag";else if(n=="/"&&e.eat(">")){b(t);return"tag"}else return"variable"}else if(/\d/.test(n)){e.match(/^\d*(?:\.\d*)?(?:E[+\-]?\d+)?/);return"atom"}else if(n==="("&&e.eat(":")){k(t,{type:"comment"});return i(e,t,s)}else if(!c&&(n==='"'||n==="'"))return i(e,t,o(n));else if(n==="$"){return i(e,t,l)}else if(n===":"&&e.eat("=")){return"keyword"}else if(n==="("){k(t,{type:"paren"});return null}else if(n===")"){b(t);return null}else if(n==="["){k(t,{type:"bracket"});return null}else if(n==="]"){b(t);return null}else{var w=r.propertyIsEnumerable(n)&&r[n];if(c&&n==='"')while(e.next()!=='"'){}if(c&&n==="'")while(e.next()!=="'"){}if(!w)e.eatWhile(/[\w\$_-]/);var z=e.eat(":");if(!e.eat(":")&&z){e.eatWhile(/[\w\$_-]/)}if(e.match(/^[ \t]*\(/,false)){a=true}var I=e.current();w=r.propertyIsEnumerable(I)&&r[I];if(a&&!w)w={type:"function_call",style:"def"};if(d(t)){b(t);return"variable"}if(I=="element"||I=="attribute"||w.type=="axis_specifier")k(t,{type:"xmlconstructor"});return w?w.style:"variable"}}function s(e,t){var n=false,r=false,i=0,a;while(a=e.next()){if(a==")"&&n){if(i>0)i--;else{b(t);break}}else if(a==":"&&r){i++}n=a==":";r=a=="("}return"comment"}function o(e,t){return function(n,r){var i;if(h(r)&&n.current()==e){b(r);if(t)r.tokenize=t;return"string"}k(r,{type:"string",name:e,tokenize:o(e,t)});if(n.match("{",false)&&x(r)){r.tokenize=a;return"string"}while(i=n.next()){if(i==e){b(r);if(t)r.tokenize=t;break}else{if(n.match("{",false)&&x(r)){r.tokenize=a;return"string"}}}return"string"}}function l(e,t){var n=/[\w\$_-]/;if(e.eat('"')){while(e.next()!=='"'){}e.eat(":")}else{e.eatWhile(n);if(!e.match(":=",false))e.eat(":")}e.eatWhile(n);t.tokenize=a;return"variable"}function u(e,t){return function(n,r){n.eatSpace();if(t&&n.eat(">")){b(r);r.tokenize=a;return"tag"}if(!n.eat("/"))k(r,{type:"tag",name:e,tokenize:a});if(!n.eat(">")){r.tokenize=c;return"tag"}else{r.tokenize=a}return"tag"}}function c(e,t){var n=e.next();if(n=="/"&&e.eat(">")){if(x(t))b(t);if(g(t))b(t);return"tag"}if(n==">"){if(x(t))b(t);return"tag"}if(n=="=")return null;if(n=='"'||n=="'")return i(e,t,o(n,c));if(!x(t))k(t,{type:"attribute",tokenize:c});e.eat(/[a-zA-Z_:]/);e.eatWhile(/[-a-zA-Z0-9_:.]/);e.eatSpace();if(e.match(">",false)||e.match("/",false)){b(t);t.tokenize=a}return"attribute"}function f(e,t){var n;while(n=e.next()){if(n=="-"&&e.match("->",true)){t.tokenize=a;return"comment"}}}function p(e,t){var n;while(n=e.next()){if(n=="]"&&e.match("]",true)){t.tokenize=a;return"comment"}}}function m(e,t){var n;while(n=e.next()){if(n=="?"&&e.match(">",true)){t.tokenize=a;return"processingInstruction"}}}function g(e){return v(e,"tag")}function x(e){return v(e,"attribute")}function d(e){return v(e,"xmlconstructor")}function h(e){return v(e,"string")}function y(e){if(e.current()==='"')return e.match(/^[^\"]+\"\:/,false);else if(e.current()==="'")return e.match(/^[^\"]+\'\:/,false);else return false}function v(e,t){return e.stack.length&&e.stack[e.stack.length-1].type==t}function k(e,t){e.stack.push(t)}function b(e){e.stack.pop();var t=e.stack.length&&e.stack[e.stack.length-1].tokenize;e.tokenize=t||a}const w={name:"xquery",startState:function(){return{tokenize:a,cc:[],stack:[]}},token:function(e,t){if(e.eatSpace())return null;var n=t.tokenize(e,t);return n},languageData:{commentTokens:{block:{open:"(:",close:":)"}}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/6888.9d3914817f3290827a64.js b/bootcamp/share/jupyter/lab/static/6888.9d3914817f3290827a64.js new file mode 100644 index 0000000..756936d --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/6888.9d3914817f3290827a64.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[6888],{16888:(t,e,n)=>{n.r(e);n.d(e,{DocInput:()=>A,HighlightStyle:()=>Lt,IndentContext:()=>$,LRLanguage:()=>v,Language:()=>k,LanguageDescription:()=>L,LanguageSupport:()=>M,ParseContext:()=>C,StreamLanguage:()=>ue,StringStream:()=>ae,TreeIndentContext:()=>K,bracketMatching:()=>Zt,bracketMatchingHandle:()=>te,codeFolding:()=>It,continuedIndent:()=>et,defaultHighlightStyle:()=>zt,defineLanguageFacet:()=>g,delimitedIndent:()=>Y,ensureSyntaxTree:()=>x,flatIndent:()=>tt,foldAll:()=>yt,foldCode:()=>vt,foldEffect:()=>ut,foldGutter:()=>Bt,foldInside:()=>ot,foldKeymap:()=>Tt,foldNodeProp:()=>it,foldService:()=>st,foldState:()=>pt,foldable:()=>ht,foldedRanges:()=>gt,forceParsing:()=>S,getIndentUnit:()=>V,getIndentation:()=>W,highlightingFor:()=>Wt,indentNodeProp:()=>z,indentOnInput:()=>rt,indentRange:()=>U,indentService:()=>F,indentString:()=>j,indentUnit:()=>R,language:()=>B,languageDataProp:()=>p,matchBrackets:()=>re,sublanguageProp:()=>m,syntaxHighlighting:()=>jt,syntaxParserRunning:()=>P,syntaxTree:()=>b,syntaxTreeAvailable:()=>y,toggleFold:()=>At,unfoldAll:()=>St,unfoldCode:()=>bt,unfoldEffect:()=>ct});var r=n(73265);var s=n.n(r);var i=n(37496);var o=n.n(i);var a=n(66143);var l=n.n(a);var h=n(6016);var f=n.n(h);var u=n(67737);var c=n.n(u);var d;const p=new r.NodeProp;function g(t){return i.Facet.define({combine:t?e=>e.concat(t):undefined})}const m=new r.NodeProp;class k{constructor(t,e,n=[],r=""){this.data=t;this.name=r;if(!i.EditorState.prototype.hasOwnProperty("tree"))Object.defineProperty(i.EditorState.prototype,"tree",{get(){return b(this)}});this.parser=e;this.extension=[B.of(this),i.EditorState.languageData.of(((t,e,n)=>{let r=w(t,e,n),s=r.type.prop(p);if(!s)return[];let i=t.facet(s),o=r.type.prop(m);if(o){let s=r.resolve(e-r.from,n);for(let e of o)if(e.test(s,t)){let n=t.facet(e.facet);return e.type=="replace"?n:n.concat(i)}}return i}))].concat(n)}isActiveAt(t,e,n=-1){return w(t,e,n).type.prop(p)==this.data}findRegions(t){let e=t.facet(B);if((e===null||e===void 0?void 0:e.data)==this.data)return[{from:0,to:t.doc.length}];if(!e||!e.allowsNesting)return[];let n=[];let s=(t,e)=>{if(t.prop(p)==this.data){n.push({from:e,to:e+t.length});return}let i=t.prop(r.NodeProp.mounted);if(i){if(i.tree.prop(p)==this.data){if(i.overlay)for(let t of i.overlay)n.push({from:t.from+e,to:t.to+e});else n.push({from:e,to:e+t.length});return}else if(i.overlay){let t=n.length;s(i.tree,i.overlay[0].from+e);if(n.length>t)return}}for(let n=0;nt.isTop?e:undefined))]}),t.name)}configure(t,e){return new v(this.data,this.parser.configure(t),e||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function b(t){let e=t.field(k.state,false);return e?e.tree:r.Tree.empty}function x(t,e,n=50){var r;let s=(r=t.field(k.state,false))===null||r===void 0?void 0:r.context;if(!s)return null;let i=s.viewport;s.updateViewport({from:0,to:e});let o=s.isDone(e)||s.work(n,e)?s.tree:null;s.updateViewport(i);return o}function y(t,e=t.doc.length){var n;return((n=t.field(k.state,false))===null||n===void 0?void 0:n.context.isDone(e))||false}function S(t,e=t.viewport.to,n=100){let r=x(t.state,e,n);if(r!=b(t.state))t.dispatch({});return!!r}function P(t){var e;return((e=t.plugin(E))===null||e===void 0?void 0:e.isWorking())||false}class A{constructor(t){this.doc=t;this.cursorPos=0;this.string="";this.cursor=t.iter()}get length(){return this.doc.length}syncTo(t){this.string=this.cursor.next(t-this.cursorPos).value;this.cursorPos=t+this.string.length;return this.cursorPos-this.string.length}chunk(t){this.syncTo(t);return this.string}get lineChunks(){return true}read(t,e){let n=this.cursorPos-this.string.length;if(t=this.cursorPos)return this.doc.sliceString(t,e);else return this.string.slice(t-n,e-n)}}let T=null;class C{constructor(t,e,n=[],r,s,i,o,a){this.parser=t;this.state=e;this.fragments=n;this.tree=r;this.treeLen=s;this.viewport=i;this.skipped=o;this.scheduleOn=a;this.parse=null;this.tempSkipped=[]}static create(t,e,n){return new C(t,e,[],r.Tree.empty,0,n,[],null)}startParse(){return this.parser.startParse(new A(this.state.doc),this.fragments)}work(t,e){if(e!=null&&e>=this.state.doc.length)e=undefined;if(this.tree!=r.Tree.empty&&this.isDone(e!==null&&e!==void 0?e:this.state.doc.length)){this.takeTree();return true}return this.withContext((()=>{var n;if(typeof t=="number"){let e=Date.now()+t;t=()=>Date.now()>e}if(!this.parse)this.parse=this.startParse();if(e!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>e)&&e=this.treeLen){if(this.parse.stoppedAt==null||this.parse.stoppedAt>t)this.parse.stopAt(t);this.withContext((()=>{while(!(e=this.parse.advance())){}}));this.treeLen=t;this.tree=e;this.fragments=this.withoutTempSkipped(r.TreeFragment.addTree(this.tree,this.fragments,true));this.parse=null}}withContext(t){let e=T;T=this;try{return t()}finally{T=e}}withoutTempSkipped(t){for(let e;e=this.tempSkipped.pop();)t=D(t,e.from,e.to);return t}changes(t,e){let{fragments:n,tree:s,treeLen:i,viewport:o,skipped:a}=this;this.takeTree();if(!t.empty){let e=[];t.iterChangedRanges(((t,n,r,s)=>e.push({fromA:t,toA:n,fromB:r,toB:s})));n=r.TreeFragment.applyChanges(n,e);s=r.Tree.empty;i=0;o={from:t.mapPos(o.from,-1),to:t.mapPos(o.to,1)};if(this.skipped.length){a=[];for(let e of this.skipped){let n=t.mapPos(e.from,1),r=t.mapPos(e.to,-1);if(nt.from){this.fragments=D(this.fragments,e,r);this.skipped.splice(n--,1)}}if(this.skipped.length>=e)return false;this.reset();return true}reset(){if(this.parse){this.takeTree();this.parse=null}}skipUntilInView(t,e){this.skipped.push({from:t,to:e})}static getSkippingParser(t){return new class extends r.Parser{createParse(e,n,s){let i=s[0].from,o=s[s.length-1].to;let a={parsedPos:i,advance(){let e=T;if(e){for(let t of s)e.tempSkipped.push(t);if(t)e.scheduleOn=e.scheduleOn?Promise.all([e.scheduleOn,t]):t}this.parsedPos=o;return new r.Tree(r.NodeType.none,[],[],o-i)},stoppedAt:null,stopAt(){}};return a}}}isDone(t){t=Math.min(t,this.state.doc.length);let e=this.fragments;return this.treeLen>=t&&e.length&&e[0].from==0&&e[0].to>=t}static get(){return T}}function D(t,e,n){return r.TreeFragment.applyChanges(t,[{fromA:e,toA:n,fromB:e,toB:n}])}class I{constructor(t){this.context=t;this.tree=t.tree}apply(t){if(!t.docChanged&&this.tree==this.context.tree)return this;let e=this.context.changes(t.changes,t.state);let n=this.context.treeLen==t.startState.doc.length?undefined:Math.max(t.changes.mapPos(this.context.treeLen),e.viewport.to);if(!e.work(20,n))e.takeTree();return new I(e)}static init(t){let e=Math.min(3e3,t.doc.length);let n=C.create(t.facet(B).parser,t,{from:0,to:e});if(!n.work(20,e))n.takeTree();return new I(n)}}k.state=i.StateField.define({create:I.init,update(t,e){for(let n of e.effects)if(n.is(k.setState))return n.value;if(e.startState.facet(B)!=e.state.facet(B))return I.init(e.state);return t.apply(e)}});let N=t=>{let e=setTimeout((()=>t()),500);return()=>clearTimeout(e)};if(typeof requestIdleCallback!="undefined")N=t=>{let e=-1,n=setTimeout((()=>{e=requestIdleCallback(t,{timeout:500-100})}),100);return()=>e<0?clearTimeout(n):cancelIdleCallback(e)};const O=typeof navigator!="undefined"&&((d=navigator.scheduling)===null||d===void 0?void 0:d.isInputPending)?()=>navigator.scheduling.isInputPending():null;const E=a.ViewPlugin.fromClass(class t{constructor(t){this.view=t;this.working=null;this.workScheduled=0;this.chunkEnd=-1;this.chunkBudget=-1;this.work=this.work.bind(this);this.scheduleWork()}update(t){let e=this.view.state.field(k.state).context;if(e.updateViewport(t.view.viewport)||this.view.viewport.to>e.treeLen)this.scheduleWork();if(t.docChanged){if(this.view.hasFocus)this.chunkBudget+=50;this.scheduleWork()}this.checkAsyncSchedule(e)}scheduleWork(){if(this.working)return;let{state:t}=this.view,e=t.field(k.state);if(e.tree!=e.context.tree||!e.context.isDone(t.doc.length))this.working=N(this.work)}work(t){this.working=null;let e=Date.now();if(this.chunkEndr+1e3;let a=s.context.work((()=>O&&O()||Date.now()>i),r+(o?0:1e5));this.chunkBudget-=Date.now()-e;if(a||this.chunkBudget<=0){s.context.takeTree();this.view.dispatch({effects:k.setState.of(new I(s.context))})}if(this.chunkBudget>0&&!(a&&!o))this.scheduleWork();this.checkAsyncSchedule(s.context)}checkAsyncSchedule(t){if(t.scheduleOn){this.workScheduled++;t.scheduleOn.then((()=>this.scheduleWork())).catch((t=>(0,a.logException)(this.view.state,t))).then((()=>this.workScheduled--));t.scheduleOn=null}}destroy(){if(this.working)this.working()}isWorking(){return!!(this.working||this.workScheduled>0)}},{eventHandlers:{focus(){this.scheduleWork()}}});const B=i.Facet.define({combine(t){return t.length?t[0]:null},enables:t=>[k.state,E,a.EditorView.contentAttributes.compute([t],(e=>{let n=e.facet(t);return n&&n.name?{"data-language":n.name}:{}}))]});class M{constructor(t,e=[]){this.language=t;this.support=e;this.extension=[t,e]}}class L{constructor(t,e,n,r,s,i=undefined){this.name=t;this.alias=e;this.extensions=n;this.filename=r;this.loadFunc=s;this.support=i;this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then((t=>this.support=t),(t=>{this.loading=null;throw t})))}static of(t){let{load:e,support:n}=t;if(!e){if(!n)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");e=()=>Promise.resolve(n)}return new L(t.name,(t.alias||[]).concat(t.name).map((t=>t.toLowerCase())),t.extensions||[],t.filename,e,n)}static matchFilename(t,e){for(let r of t)if(r.filename&&r.filename.test(e))return r;let n=/\.([^.]+)$/.exec(e);if(n)for(let r of t)if(r.extensions.indexOf(n[1])>-1)return r;return null}static matchLanguageName(t,e,n=true){e=e.toLowerCase();for(let r of t)if(r.alias.some((t=>t==e)))return r;if(n)for(let r of t)for(let t of r.alias){let n=e.indexOf(t);if(n>-1&&(t.length>2||!/\w/.test(e[n-1])&&!/\w/.test(e[n+t.length])))return r}return null}}const F=i.Facet.define();const R=i.Facet.define({combine:t=>{if(!t.length)return" ";let e=t[0];if(!e||/\S/.test(e)||Array.from(e).some((t=>t!=e[0])))throw new Error("Invalid indent unit: "+JSON.stringify(t[0]));return e}});function V(t){let e=t.facet(R);return e.charCodeAt(0)==9?t.tabSize*e.length:e.length}function j(t,e){let n="",r=t.tabSize,s=t.facet(R)[0];if(s=="\t"){while(e>=r){n+="\t";e-=r}s=" "}for(let i=0;i{var e;return(e=r[t])!==null&&e!==void 0?e:-1}});let i=[];for(let o=e;o<=n;){let e=t.doc.lineAt(o);o=e.to+1;let n=W(s,e.from);if(n==null)continue;if(!/\S/.test(e.text))n=0;let a=/^\s*/.exec(e.text)[0];let l=j(t,n);if(a!=l){r[e.from]=n;i.push({from:e.from,to:e.from+a.length,insert:l})}}return t.changes(i)}class ${constructor(t,e={}){this.state=t;this.options=e;this.unit=V(t)}lineAt(t,e=1){let n=this.state.doc.lineAt(t);let{simulateBreak:r,simulateDoubleBreak:s}=this.options;if(r!=null&&r>=n.from&&r<=n.to){if(s&&r==t)return{text:"",from:t};else if(e<0?r-1)s+=i-this.countColumn(n,n.search(/\S|$/));return s}countColumn(t,e=t.length){return(0,i.countColumn)(t,this.state.tabSize,e)}lineIndent(t,e=1){let{text:n,from:r}=this.lineAt(t,e);let s=this.options.overrideIndentation;if(s){let t=s(r);if(t>-1)return t}return this.countColumn(n,n.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const z=new r.NodeProp;function H(t,e,n){return q(e.resolveInner(n).enterUnfinishedNodesBefore(n),n,t)}function G(t){return t.pos==t.options.simulateBreak&&t.options.simulateDoubleBreak}function _(t){let e=t.type.prop(z);if(e)return e;let n=t.firstChild,s;if(n&&(s=n.type.prop(r.NodeProp.closedBy))){let e=t.lastChild,n=e&&s.indexOf(e.name)>-1;return t=>Z(t,true,1,undefined,n&&!G(t)?e.from:undefined)}return t.parent==null?J:null}function q(t,e,n){for(;t;t=t.parent){let r=_(t);if(r)return r(K.create(n,e,t))}return null}function J(){return 0}class K extends ${constructor(t,e,n){super(t.state,t.options);this.base=t;this.pos=e;this.node=n}static create(t,e,n){return new K(t,e,n)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let e=this.state.doc.lineAt(t.from);for(;;){let n=t.resolve(e.from);while(n.parent&&n.parent.from==n.from)n=n.parent;if(Q(n,t))break;e=this.state.doc.lineAt(n.from)}return this.lineIndent(e.from)}continue(){let t=this.node.parent;return t?q(t,this.pos,this.base):0}}function Q(t,e){for(let n=e;n;n=n.parent)if(t==n)return true;return false}function X(t){let e=t.node;let n=e.childAfter(e.from),r=e.lastChild;if(!n)return null;let s=t.options.simulateBreak;let i=t.state.doc.lineAt(n.from);let o=s==null||s<=i.from?i.to:Math.min(i.to,s);for(let a=n.to;;){let t=e.childAfter(a);if(!t||t==r)return null;if(!t.type.isSkipped)return t.fromZ(r,e,n,t)}function Z(t,e,n,r,s){let i=t.textAfter,o=i.match(/^\s*/)[0].length;let a=r&&i.slice(o,o+r.length)==r||s==t.pos+o;let l=e?X(t):null;if(l)return a?t.column(l.from):t.column(l.to);return t.baseIndent+(a?0:t.unit*n)}const tt=t=>t.baseIndent;function et({except:t,units:e=1}={}){return n=>{let r=t&&t.test(n.textAfter);return n.baseIndent+(r?0:e*n.unit)}}const nt=200;function rt(){return i.EditorState.transactionFilter.of((t=>{if(!t.docChanged||!t.isUserEvent("input.type")&&!t.isUserEvent("input.complete"))return t;let e=t.startState.languageDataAt("indentOnInput",t.startState.selection.main.head);if(!e.length)return t;let n=t.newDoc,{head:r}=t.newSelection.main,s=n.lineAt(r);if(r>s.from+nt)return t;let i=n.sliceString(s.from,r);if(!e.some((t=>t.test(i))))return t;let{state:o}=t,a=-1,l=[];for(let{head:h}of o.selection.ranges){let t=o.doc.lineAt(h);if(t.from==a)continue;a=t.from;let e=W(o,t.from);if(e==null)continue;let n=/^\s*/.exec(t.text)[0];let r=j(o,e);if(n!=r)l.push({from:t.from,to:t.from+n.length,insert:r})}return l.length?[t,{changes:l,sequential:true}]:t}))}const st=i.Facet.define();const it=new r.NodeProp;function ot(t){let e=t.firstChild,n=t.lastChild;return e&&e.ton)continue;if(i&&o.from=e&&r.to>n)i=r}}return i}function lt(t){let e=t.lastChild;return e&&e.to==t.to&&e.type.isError}function ht(t,e,n){for(let r of t.facet(st)){let s=r(t,e,n);if(s)return s}return at(t,e,n)}function ft(t,e){let n=e.mapPos(t.from,1),r=e.mapPos(t.to,-1);return n>=r?undefined:{from:n,to:r}}const ut=i.StateEffect.define({map:ft});const ct=i.StateEffect.define({map:ft});function dt(t){let e=[];for(let{head:n}of t.state.selection.ranges){if(e.some((t=>t.from<=n&&t.to>=n)))continue;e.push(t.lineBlockAt(n))}return e}const pt=i.StateField.define({create(){return a.Decoration.none},update(t,e){t=t.map(e.changes);for(let n of e.effects){if(n.is(ut)&&!kt(t,n.value.from,n.value.to))t=t.update({add:[Nt.range(n.value.from,n.value.to)]});else if(n.is(ct))t=t.update({filter:(t,e)=>n.value.from!=t||n.value.to!=e,filterFrom:n.value.from,filterTo:n.value.to})}if(e.selection){let n=false,{head:r}=e.selection.main;t.between(r,r,((t,e)=>{if(tr)n=true}));if(n)t=t.update({filterFrom:r,filterTo:r,filter:(t,e)=>e<=r||t>=r})}return t},provide:t=>a.EditorView.decorations.from(t),toJSON(t,e){let n=[];t.between(0,e.doc.length,((t,e)=>{n.push(t,e)}));return n},fromJSON(t){if(!Array.isArray(t)||t.length%2)throw new RangeError("Invalid JSON for fold state");let e=[];for(let n=0;n{if(!s||s.from>t)s={from:t,to:e}}));return s}function kt(t,e,n){let r=false;t.between(e,e,((t,s)=>{if(t==e&&s==n)r=true}));return r}function wt(t,e){return t.field(pt,false)?e:e.concat(i.StateEffect.appendConfig.of(It()))}const vt=t=>{for(let e of dt(t)){let n=ht(t.state,e.from,e.to);if(n){t.dispatch({effects:wt(t.state,[ut.of(n),xt(t,n)])});return true}}return false};const bt=t=>{if(!t.state.field(pt,false))return false;let e=[];for(let n of dt(t)){let r=mt(t.state,n.from,n.to);if(r)e.push(ct.of(r),xt(t,r,false))}if(e.length)t.dispatch({effects:e});return e.length>0};function xt(t,e,n=true){let r=t.state.doc.lineAt(e.from).number,s=t.state.doc.lineAt(e.to).number;return a.EditorView.announce.of(`${t.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${t.state.phrase("to")} ${s}.`)}const yt=t=>{let{state:e}=t,n=[];for(let r=0;r{let e=t.state.field(pt,false);if(!e||!e.size)return false;let n=[];e.between(0,t.state.doc.length,((t,e)=>{n.push(ct.of({from:t,to:e}))}));t.dispatch({effects:n});return true};function Pt(t,e){for(let n=e;;){let r=ht(t.state,n.from,n.to);if(r&&r.to>e.from)return r;if(!n.from)return null;n=t.lineBlockAt(n.from-1)}}const At=t=>{let e=[];for(let n of dt(t)){let r=mt(t.state,n.from,n.to);if(r){e.push(ct.of(r),xt(t,r,false))}else{let r=Pt(t,n);if(r)e.push(ut.of(r),xt(t,r))}}if(e.length>0)t.dispatch({effects:wt(t.state,e)});return!!e.length};const Tt=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:vt},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:bt},{key:"Ctrl-Alt-[",run:yt},{key:"Ctrl-Alt-]",run:St}];const Ct={placeholderDOM:null,placeholderText:"…"};const Dt=i.Facet.define({combine(t){return(0,i.combineConfig)(t,Ct)}});function It(t){let e=[pt,Mt];if(t)e.push(Dt.of(t));return e}const Nt=a.Decoration.replace({widget:new class extends a.WidgetType{toDOM(t){let{state:e}=t,n=e.facet(Dt);let r=e=>{let n=t.lineBlockAt(t.posAtDOM(e.target));let r=mt(t.state,n.from,n.to);if(r)t.dispatch({effects:ct.of(r)});e.preventDefault()};if(n.placeholderDOM)return n.placeholderDOM(t,r);let s=document.createElement("span");s.textContent=n.placeholderText;s.setAttribute("aria-label",e.phrase("folded code"));s.title=e.phrase("unfold");s.className="cm-foldPlaceholder";s.onclick=r;return s}}});const Ot={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>false};class Et extends a.GutterMarker{constructor(t,e){super();this.config=t;this.open=e}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let e=document.createElement("span");e.textContent=this.open?this.config.openText:this.config.closedText;e.title=t.state.phrase(this.open?"Fold line":"Unfold line");return e}}function Bt(t={}){let e=Object.assign(Object.assign({},Ot),t);let n=new Et(e,true),r=new Et(e,false);let s=a.ViewPlugin.fromClass(class{constructor(t){this.from=t.viewport.from;this.markers=this.buildMarkers(t)}update(t){if(t.docChanged||t.viewportChanged||t.startState.facet(B)!=t.state.facet(B)||t.startState.field(pt,false)!=t.state.field(pt,false)||b(t.startState)!=b(t.state)||e.foldingChanged(t))this.markers=this.buildMarkers(t.view)}buildMarkers(t){let e=new i.RangeSetBuilder;for(let s of t.viewportLineBlocks){let i=mt(t.state,s.from,s.to)?r:ht(t.state,s.from,s.to)?n:null;if(i)e.add(s.from,s.from,i)}return e.finish()}});let{domEventHandlers:o}=e;return[s,(0,a.gutter)({class:"cm-foldGutter",markers(t){var e;return((e=t.plugin(s))===null||e===void 0?void 0:e.markers)||i.RangeSet.empty},initialSpacer(){return new Et(e,false)},domEventHandlers:Object.assign(Object.assign({},o),{click:(t,e,n)=>{if(o.click&&o.click(t,e,n))return true;let r=mt(t.state,e.from,e.to);if(r){t.dispatch({effects:ct.of(r)});return true}let s=ht(t.state,e.from,e.to);if(s){t.dispatch({effects:ut.of(s)});return true}return false}})}),It()]}const Mt=a.EditorView.baseTheme({".cm-foldPlaceholder":{backgroundColor:"#eee",border:"1px solid #ddd",color:"#888",borderRadius:".2em",margin:"0 1px",padding:"0 1px",cursor:"pointer"},".cm-foldGutter span":{padding:"0 1px",cursor:"pointer"}});class Lt{constructor(t,e){this.specs=t;let n;function r(t){let e=u.StyleModule.newName();(n||(n=Object.create(null)))["."+e]=t;return e}const s=typeof e.all=="string"?e.all:e.all?r(e.all):undefined;const i=e.scope;this.scope=i instanceof k?t=>t.prop(p)==i.data:i?t=>t==i:undefined;this.style=(0,h.tagHighlighter)(t.map((t=>({tag:t.tag,class:t.class||r(Object.assign({},t,{tag:null}))}))),{all:s}).style;this.module=n?new u.StyleModule(n):null;this.themeType=e.themeType}static define(t,e){return new Lt(t,e||{})}}const Ft=i.Facet.define();const Rt=i.Facet.define({combine(t){return t.length?[t[0]]:null}});function Vt(t){let e=t.facet(Ft);return e.length?e:t.facet(Rt)}function jt(t,e){let n=[$t],r;if(t instanceof Lt){if(t.module)n.push(a.EditorView.styleModule.of(t.module));r=t.themeType}if(e===null||e===void 0?void 0:e.fallback)n.push(Rt.of(t));else if(r)n.push(Ft.computeN([a.EditorView.darkTheme],(e=>e.facet(a.EditorView.darkTheme)==(r=="dark")?[t]:[])));else n.push(Ft.of(t));return n}function Wt(t,e,n){let r=Vt(t);let s=null;if(r)for(let i of r){if(!i.scope||n&&i.scope(n)){let t=i.style(e);if(t)s=s?s+" "+t:t}}return s}class Ut{constructor(t){this.markCache=Object.create(null);this.tree=b(t.state);this.decorations=this.buildDeco(t,Vt(t.state))}update(t){let e=b(t.state),n=Vt(t.state);let r=n!=Vt(t.startState);if(e.length{n.add(t,e,this.markCache[r]||(this.markCache[r]=a.Decoration.mark({class:r})))}),r,s)}return n.finish()}}const $t=i.Prec.high(a.ViewPlugin.fromClass(Ut,{decorations:t=>t.decorations}));const zt=Lt.define([{tag:h.tags.meta,color:"#404740"},{tag:h.tags.link,textDecoration:"underline"},{tag:h.tags.heading,textDecoration:"underline",fontWeight:"bold"},{tag:h.tags.emphasis,fontStyle:"italic"},{tag:h.tags.strong,fontWeight:"bold"},{tag:h.tags.strikethrough,textDecoration:"line-through"},{tag:h.tags.keyword,color:"#708"},{tag:[h.tags.atom,h.tags.bool,h.tags.url,h.tags.contentSeparator,h.tags.labelName],color:"#219"},{tag:[h.tags.literal,h.tags.inserted],color:"#164"},{tag:[h.tags.string,h.tags.deleted],color:"#a11"},{tag:[h.tags.regexp,h.tags.escape,h.tags.special(h.tags.string)],color:"#e40"},{tag:h.tags.definition(h.tags.variableName),color:"#00f"},{tag:h.tags.local(h.tags.variableName),color:"#30a"},{tag:[h.tags.typeName,h.tags.namespace],color:"#085"},{tag:h.tags.className,color:"#167"},{tag:[h.tags.special(h.tags.variableName),h.tags.macroName],color:"#256"},{tag:h.tags.definition(h.tags.propertyName),color:"#00c"},{tag:h.tags.comment,color:"#940"},{tag:h.tags.invalid,color:"#f00"}]);const Ht=a.EditorView.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}});const Gt=1e4,_t="()[]{}";const qt=i.Facet.define({combine(t){return(0,i.combineConfig)(t,{afterCursor:true,brackets:_t,maxScanDistance:Gt,renderMatch:Qt})}});const Jt=a.Decoration.mark({class:"cm-matchingBracket"}),Kt=a.Decoration.mark({class:"cm-nonmatchingBracket"});function Qt(t){let e=[];let n=t.matched?Jt:Kt;e.push(n.range(t.start.from,t.start.to));if(t.end)e.push(n.range(t.end.from,t.end.to));return e}const Xt=i.StateField.define({create(){return a.Decoration.none},update(t,e){if(!e.docChanged&&!e.selection)return t;let n=[];let r=e.state.facet(qt);for(let s of e.state.selection.ranges){if(!s.empty)continue;let t=re(e.state,s.head,-1,r)||s.head>0&&re(e.state,s.head-1,1,r)||r.afterCursor&&(re(e.state,s.head,1,r)||s.heada.EditorView.decorations.from(t)});const Yt=[Xt,Ht];function Zt(t={}){return[qt.of(t),Yt]}const te=new r.NodeProp;function ee(t,e,n){let s=t.prop(e<0?r.NodeProp.openedBy:r.NodeProp.closedBy);if(s)return s;if(t.name.length==1){let r=n.indexOf(t.name);if(r>-1&&r%2==(e<0?1:0))return[n[r+e]]}return null}function ne(t){let e=t.type.prop(te);return e?e(t.node):t}function re(t,e,n,r={}){let s=r.maxScanDistance||Gt,i=r.brackets||_t;let o=b(t),a=o.resolveInner(e,n);for(let l=a;l;l=l.parent){let r=ee(l.type,n,i);if(r&&l.from0?e>=s.from&&es.from&&e<=s.to))return se(t,e,n,l,s,r,i)}}return ie(t,e,n,o,a.type,s,i)}function se(t,e,n,r,s,i,o){let a=r.parent,l={from:s.from,to:s.to};let h=0,f=a===null||a===void 0?void 0:a.cursor();if(f&&(n<0?f.childBefore(r.from):f.childAfter(r.to)))do{if(n<0?f.to<=r.from:f.from>=r.to){if(h==0&&i.indexOf(f.type.name)>-1&&f.from0)return null;let h={from:n<0?e-1:e,to:n>0?e+1:e};let f=t.doc.iterRange(e,n>0?t.doc.length:0),u=0;for(let c=0;!f.next().done&&c<=i;){let t=f.value;if(n<0)c+=t.length;let i=e+c*n;for(let e=n>0?0:t.length-1,a=n>0?t.length:-1;e!=a;e+=n){let a=o.indexOf(t[e]);if(a<0||r.resolveInner(i+e,1).type!=s)continue;if(a%2==0==n>0){u++}else if(u==1){return{start:h,end:{from:i+e,to:i+e+1},matched:a>>1==l>>1}}else{u--}}if(n>0)c+=t.length}return f.done?{start:h,matched:false}:null}function oe(t,e,n,r=0,s=0){if(e==null){e=t.search(/[^\s\u00a0]/);if(e==-1)e=t.length}let i=s;for(let o=r;o=this.string.length}sol(){return this.pos==0}peek(){return this.string.charAt(this.pos)||undefined}next(){if(this.pose}eatSpace(){let t=this.pos;while(/[\s\u00a0]/.test(this.string.charAt(this.pos)))++this.pos;return this.pos>t}skipToEnd(){this.pos=this.string.length}skipTo(t){let e=this.string.indexOf(t,this.pos);if(e>-1){this.pos=e;return true}}backUp(t){this.pos-=t}column(){if(this.lastColumnPosn?t.toLowerCase():t;let s=this.string.substr(this.pos,t.length);if(r(s)==r(t)){if(e!==false)this.pos+=t.length;return true}else return null}else{let n=this.string.slice(this.pos).match(t);if(n&&n.index>0)return null;if(n&&e!==false)this.pos+=n[0].length;return n}}current(){return this.string.slice(this.start,this.pos)}}function le(t){return{name:t.name||"",token:t.token,blankLine:t.blankLine||(()=>{}),startState:t.startState||(()=>true),copyState:t.copyState||he,indent:t.indent||(()=>null),languageData:t.languageData||{},tokenTable:t.tokenTable||ke}}function he(t){if(typeof t!="object")return t;let e={};for(let n in t){let r=t[n];e[n]=r instanceof Array?r.slice():r}return e}const fe=new WeakMap;class ue extends k{constructor(t){let e=g(t.languageData);let n=le(t),s;let i=new class extends r.Parser{createParse(t,e,n){return new ge(s,t,e,n)}};super(e,i,[F.of(((t,e)=>this.getIndent(t,e)))],t.name);this.topNode=Te(e);s=this;this.streamParser=n;this.stateAfter=new r.NodeProp({perNode:true});this.tokenTable=t.tokenTable?new ye(n.tokenTable):Se}static define(t){return new ue(t)}getIndent(t,e){let n=b(t.state),r=n.resolve(e);while(r&&r.type!=this.topNode)r=r.parent;if(!r)return null;let s=undefined;let{overrideIndentation:i}=t.options;if(i){s=fe.get(t.state);if(s!=null&&s1e4)return null;while(a=s&&n+e.length<=i&&e.prop(t.stateAfter);if(o)return{state:t.streamParser.copyState(o),pos:n+e.length};for(let a=e.children.length-1;a>=0;a--){let o=e.children[a],l=n+e.positions[a];let h=o instanceof r.Tree&&l=e.length)return e;if(!i&&e.type==t.topNode)i=true;for(let o=e.children.length-1;o>=0;o--){let a=e.positions[o],l=e.children[o],h;if(an&&ce(t,r.tree,0-r.offset,n,s),o;if(i&&(o=de(t,r.tree,n+r.offset,i.pos+r.offset,false)))return{state:i.state,tree:o}}return{state:t.streamParser.startState(s?V(s):4),tree:r.Tree.empty}}class ge{constructor(t,e,n,r){this.lang=t;this.input=e;this.fragments=n;this.ranges=r;this.stoppedAt=null;this.chunks=[];this.chunkPos=[];this.chunk=[];this.chunkReused=undefined;this.rangeIndex=0;this.to=r[r.length-1].to;let s=C.get(),i=r[0].from;let{state:o,tree:a}=pe(t,n,i,s===null||s===void 0?void 0:s.state);this.state=o;this.parsedPos=this.chunkStart=i+a.length;for(let l=0;l=e)return this.finish();if(t&&this.parsedPos>=t.viewport.to){t.skipUntilInView(this.parsedPos,e);return this.finish()}return null}stopAt(t){this.stoppedAt=t}lineAfter(t){let e=this.input.chunk(t);if(!this.input.lineChunks){let t=e.indexOf("\n");if(t>-1)e=e.slice(0,t)}else if(e=="\n"){e=""}return t+e.length<=this.to?e:e.slice(0,this.to-t)}nextLine(){let t=this.parsedPos,e=this.lineAfter(t),n=t+e.length;for(let r=this.rangeIndex;;){let t=this.ranges[r].to;if(t>=n)break;e=e.slice(0,t-(n-e.length));r++;if(r==this.ranges.length)break;let s=this.ranges[r].from;let i=this.lineAfter(s);e+=i;n=s+i.length}return{line:e,end:n}}skipGapsTo(t,e,n){for(;;){let r=this.ranges[this.rangeIndex].to,s=t+e;if(n>0?r>s:r>=s)break;let i=this.ranges[++this.rangeIndex].from;e+=i-r}return e}moveRangeIndex(){while(this.ranges[this.rangeIndex].to1){s=this.skipGapsTo(e,s,1);e+=s;let t=this.chunk.length;s=this.skipGapsTo(n,s,-1);n+=s;r+=this.chunk.length-t}this.chunk.push(t,e,n,r);return s}parseLine(t){let{line:e,end:n}=this.nextLine(),r=0,{streamParser:s}=this.lang;let i=new ae(e,t?t.state.tabSize:4,t?V(t.state):2);if(i.eol()){s.blankLine(this.state,i.indentUnit)}else{while(!i.eol()){let t=me(s.token,i,this.state);if(t)r=this.emitToken(this.lang.tokenTable.resolve(t),this.parsedPos+i.start,this.parsedPos+i.pos,4,r);if(i.start>1e4)break}}this.parsedPos=n;this.moveRangeIndex();if(this.parsedPose.start)return r}throw new Error("Stream parser failed to advance stream.")}const ke=Object.create(null);const we=[r.NodeType.none];const ve=new r.NodeSet(we);const be=[];const xe=Object.create(null);for(let[Ce,De]of[["variable","variableName"],["variable-2","variableName.special"],["string-2","string.special"],["def","variableName.definition"],["tag","tagName"],["attribute","attributeName"],["type","typeName"],["builtin","variableName.standard"],["qualifier","modifier"],["error","invalid"],["header","heading"],["property","propertyName"]])xe[Ce]=Ae(ke,De);class ye{constructor(t){this.extra=t;this.table=Object.assign(Object.create(null),xe)}resolve(t){return!t?0:this.table[t]||(this.table[t]=Ae(this.extra,t))}}const Se=new ye(ke);function Pe(t,e){if(be.indexOf(t)>-1)return;be.push(t);console.warn(e)}function Ae(t,e){let n=null;for(let r of e.split(".")){let e=t[r]||h.tags[r];if(!e){Pe(r,`Unknown highlighting tag ${r}`)}else if(typeof e=="function"){if(!n)Pe(r,`Modifier ${r} used at start of tag`);else n=e(n)}else{if(n)Pe(r,`Tag ${r} used as modifier`);else n=e}}if(!n)return 0;let s=e.replace(/ /g,"_"),i=r.NodeType.define({id:we.length,name:s,props:[(0,h.styleTags)({[s]:n})]});we.push(i);return i.id}function Te(t){let e=r.NodeType.define({id:we.length,name:"Document",props:[p.add((()=>t))]});we.push(e);return e}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/7080.1330328bb6f46b4da81e.js b/bootcamp/share/jupyter/lab/static/7080.1330328bb6f46b4da81e.js new file mode 100644 index 0000000..0a4bcd0 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/7080.1330328bb6f46b4da81e.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7080],{97080:(e,t,n)=>{n.r(t);n.d(t,{oz:()=>g});function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var a=/[\^@!\|<>#~\.\*\-\+\\/,=]/;var i=/(<-)|(:=)|(=<)|(>=)|(<=)|(<:)|(>:)|(=:)|(\\=)|(\\=:)|(!!)|(==)|(::)/;var u=/(:::)|(\.\.\.)|(=<:)|(>=:)/;var o=["in","then","else","of","elseof","elsecase","elseif","catch","finally","with","require","prepare","import","export","define","do"];var c=["end"];var f=r(["true","false","nil","unit"]);var s=r(["andthen","at","attr","declare","feat","from","lex","mod","div","mode","orelse","parser","prod","prop","scanner","self","syn","token"]);var l=r(["local","proc","fun","case","class","if","cond","or","dis","choice","not","thread","try","raise","lock","for","suchthat","meth","functor"]);var h=r(o);var d=r(c);function m(e,t){if(e.eatSpace()){return null}if(e.match(/[{}]/)){return"bracket"}if(e.match("[]")){return"keyword"}if(e.match(u)||e.match(i)){return"operator"}if(e.match(f)){return"atom"}var n=e.match(l);if(n){if(!t.doInCurrentLine)t.currentIndent++;else t.doInCurrentLine=false;if(n[0]=="proc"||n[0]=="fun")t.tokenize=z;else if(n[0]=="class")t.tokenize=p;else if(n[0]=="meth")t.tokenize=k;return"keyword"}if(e.match(h)||e.match(s)){return"keyword"}if(e.match(d)){t.currentIndent--;return"keyword"}var r=e.next();if(r=='"'||r=="'"){t.tokenize=b(r);return t.tokenize(e,t)}if(/[~\d]/.test(r)){if(r=="~"){if(!/^[0-9]/.test(e.peek()))return null;else if(e.next()=="0"&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))return"number"}if(r=="0"&&e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^[0-9]*(\.[0-9]+)?([eE][~+]?[0-9]+)?/))return"number";return null}if(r=="%"){e.skipToEnd();return"comment"}else if(r=="/"){if(e.eat("*")){t.tokenize=v;return v(e,t)}}if(a.test(r)){return"operator"}e.eatWhile(/\w/);return"variable"}function p(e,t){if(e.eatSpace()){return null}e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)/);t.tokenize=m;return"type"}function k(e,t){if(e.eatSpace()){return null}e.match(/([a-zA-Z][A-Za-z0-9_]*)|(`.+`)/);t.tokenize=m;return"def"}function z(e,t){if(e.eatSpace()){return null}if(!t.hasPassedFirstStage&&e.eat("{")){t.hasPassedFirstStage=true;return"bracket"}else if(t.hasPassedFirstStage){e.match(/([A-Z][A-Za-z0-9_]*)|(`.+`)|\$/);t.hasPassedFirstStage=false;t.tokenize=m;return"def"}else{t.tokenize=m;return null}}function v(e,t){var n=false,r;while(r=e.next()){if(r=="/"&&n){t.tokenize=m;break}n=r=="*"}return"comment"}function b(e){return function(t,n){var r=false,a,i=false;while((a=t.next())!=null){if(a==e&&!r){i=true;break}r=!r&&a=="\\"}if(i||!r)n.tokenize=m;return"string"}}function w(){var e=o.concat(c);return new RegExp("[\\[\\]]|("+e.join("|")+")$")}const g={name:"oz",startState:function(){return{tokenize:m,currentIndent:0,doInCurrentLine:false,hasPassedFirstStage:false}},token:function(e,t){if(e.sol())t.doInCurrentLine=0;return t.tokenize(e,t)},indent:function(e,t,n){var r=t.replace(/^\s+|\s+$/g,"");if(r.match(d)||r.match(h)||r.match(/(\[])/))return n.unit*(e.currentIndent-1);if(e.currentIndent<0)return 0;return e.currentIndent*n.unit},languageData:{indentOnInut:w(),commentTokens:{line:"%",block:{open:"/*",close:"*/"}}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/7112.d5120c85ebd17620dda0.js b/bootcamp/share/jupyter/lab/static/7112.d5120c85ebd17620dda0.js new file mode 100644 index 0000000..8e187f8 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/7112.d5120c85ebd17620dda0.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7112],{77112:(e,t,r)=>{r.r(t);r.d(t,{mumps:()=>f});function n(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var a=new RegExp("^[\\+\\-\\*/&#!_?\\\\<>=\\'\\[\\]]");var o=new RegExp("^(('=)|(<=)|(>=)|('>)|('<)|([[)|(]])|(^$))");var $=new RegExp("^[\\.,:]");var i=new RegExp("[()]");var c=new RegExp("^[%A-Za-z][A-Za-z0-9]*");var l=["break","close","do","else","for","goto","halt","hang","if","job","kill","lock","merge","new","open","quit","read","set","tcommit","trollback","tstart","use","view","write","xecute","b","c","d","e","f","g","h","i","j","k","l","m","n","o","q","r","s","tc","tro","ts","u","v","w","x"];var s=["\\$ascii","\\$char","\\$data","\\$ecode","\\$estack","\\$etrap","\\$extract","\\$find","\\$fnumber","\\$get","\\$horolog","\\$io","\\$increment","\\$job","\\$justify","\\$length","\\$name","\\$next","\\$order","\\$piece","\\$qlength","\\$qsubscript","\\$query","\\$quit","\\$random","\\$reverse","\\$select","\\$stack","\\$test","\\$text","\\$translate","\\$view","\\$x","\\$y","\\$a","\\$c","\\$d","\\$e","\\$ec","\\$es","\\$et","\\$f","\\$fn","\\$g","\\$h","\\$i","\\$j","\\$l","\\$n","\\$na","\\$o","\\$p","\\$q","\\$ql","\\$qs","\\$r","\\$re","\\$s","\\$st","\\$t","\\$tr","\\$v","\\$z"];var m=n(s);var u=n(l);function d(e,t){if(e.sol()){t.label=true;t.commandMode=0}var r=e.peek();if(r==" "||r=="\t"){t.label=false;if(t.commandMode==0)t.commandMode=1;else if(t.commandMode<0||t.commandMode==2)t.commandMode=0}else if(r!="."&&t.commandMode>0){if(r==":")t.commandMode=-1;else t.commandMode=2}if(r==="("||r==="\t")t.label=false;if(r===";"){e.skipToEnd();return"comment"}if(e.match(/^[-+]?\d+(\.\d+)?([eE][-+]?\d+)?/))return"number";if(r=='"'){if(e.skipTo('"')){e.next();return"string"}else{e.skipToEnd();return"error"}}if(e.match(o)||e.match(a))return"operator";if(e.match($))return null;if(i.test(r)){e.next();return"bracket"}if(t.commandMode>0&&e.match(u))return"controlKeyword";if(e.match(m))return"builtin";if(e.match(c))return"variable";if(r==="$"||r==="^"){e.next();return"builtin"}if(r==="@"){e.next();return"string.special"}if(/[\w%]/.test(r)){e.eatWhile(/[\w%]/);return"variable"}e.next();return"error"}const f={name:"mumps",startState:function(){return{label:false,commandMode:0}},token:function(e,t){var r=d(e,t);if(t.label)return"tag";return r}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/7173.e28f63dbd553818e07d3.js b/bootcamp/share/jupyter/lab/static/7173.e28f63dbd553818e07d3.js new file mode 100644 index 0000000..d152dc1 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/7173.e28f63dbd553818e07d3.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7173],{67173:(e,t,r)=>{r.r(t);r.d(t,{vb:()=>O});var n="error";function a(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var i=new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]");var o=new RegExp("^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]");var c=new RegExp("^((==)|(<>)|(<=)|(>=)|(<>)|(<<)|(>>)|(//)|(\\*\\*))");var u=new RegExp("^((\\+=)|(\\-=)|(\\*=)|(%=)|(/=)|(&=)|(\\|=)|(\\^=))");var l=new RegExp("^((//=)|(>>=)|(<<=)|(\\*\\*=))");var s=new RegExp("^[_A-Za-z][_A-Za-z0-9]*");var f=["class","module","sub","enum","select","while","if","function","get","set","property","try","structure","synclock","using","with"];var d=["else","elseif","case","catch","finally"];var h=["next","loop"];var m=["and","andalso","or","orelse","xor","in","not","is","isnot","like"];var v=a(m);var p=["#const","#else","#elseif","#end","#if","#region","addhandler","addressof","alias","as","byref","byval","cbool","cbyte","cchar","cdate","cdbl","cdec","cint","clng","cobj","compare","const","continue","csbyte","cshort","csng","cstr","cuint","culng","cushort","declare","default","delegate","dim","directcast","each","erase","error","event","exit","explicit","false","for","friend","gettype","goto","handles","implements","imports","infer","inherits","interface","isfalse","istrue","lib","me","mod","mustinherit","mustoverride","my","mybase","myclass","namespace","narrowing","new","nothing","notinheritable","notoverridable","of","off","on","operator","option","optional","out","overloads","overridable","overrides","paramarray","partial","private","protected","public","raiseevent","readonly","redim","removehandler","resume","return","shadows","shared","static","step","stop","strict","then","throw","to","true","trycast","typeof","until","until","when","widening","withevents","writeonly"];var b=["object","boolean","char","string","byte","sbyte","short","ushort","int16","uint16","integer","uinteger","int32","uint32","long","ulong","int64","uint64","decimal","single","double","float","date","datetime","intptr","uintptr"];var g=a(p);var y=a(b);var k='"';var w=a(f);var x=a(d);var I=a(h);var z=a(["end"]);var L=a(["do"]);var E=null;function _(e,t){t.currentIndent++}function C(e,t){t.currentIndent--}function R(e,t){if(e.eatSpace()){return null}var r=e.peek();if(r==="'"){e.skipToEnd();return"comment"}if(e.match(/^((&H)|(&O))?[0-9\.a-f]/i,false)){var a=false;if(e.match(/^\d*\.\d+F?/i)){a=true}else if(e.match(/^\d+\.\d*F?/)){a=true}else if(e.match(/^\.\d+F?/)){a=true}if(a){e.eat(/J/i);return"number"}var f=false;if(e.match(/^&H[0-9a-f]+/i)){f=true}else if(e.match(/^&O[0-7]+/i)){f=true}else if(e.match(/^[1-9]\d*F?/)){e.eat(/J/i);f=true}else if(e.match(/^0(?![\dx])/i)){f=true}if(f){e.eat(/L/i);return"number"}}if(e.match(k)){t.tokenize=j(e.current());return t.tokenize(e,t)}if(e.match(l)||e.match(u)){return null}if(e.match(c)||e.match(i)||e.match(v)){return"operator"}if(e.match(o)){return null}if(e.match(L)){_(e,t);t.doInCurrentLine=true;return"keyword"}if(e.match(w)){if(!t.doInCurrentLine)_(e,t);else t.doInCurrentLine=false;return"keyword"}if(e.match(x)){return"keyword"}if(e.match(z)){C(e,t);C(e,t);return"keyword"}if(e.match(I)){C(e,t);return"keyword"}if(e.match(y)){return"keyword"}if(e.match(g)){return"keyword"}if(e.match(s)){return"variable"}e.next();return n}function j(e){var t=e.length==1;var r="string";return function(n,a){while(!n.eol()){n.eatWhile(/[^'"]/);if(n.match(e)){a.tokenize=R;return r}else{n.eat(/['"]/)}}if(t){a.tokenize=R}return r}}function F(e,t){var r=t.tokenize(e,t);var a=e.current();if(a==="."){r=t.tokenize(e,t);if(r==="variable"){return"variable"}else{return n}}var i="[({".indexOf(a);if(i!==-1){_(e,t)}if(E==="dedent"){if(C(e,t)){return n}}i="])}".indexOf(a);if(i!==-1){if(C(e,t)){return n}}return r}const O={name:"vb",startState:function(){return{tokenize:R,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:false}},token:function(e,t){if(e.sol()){t.currentIndent+=t.nextLineIndent;t.nextLineIndent=0;t.doInCurrentLine=0}var r=F(e,t);t.lastToken={style:r,content:e.current()};return r},indent:function(e,t,r){var n=t.replace(/^\s+|\s+$/g,"");if(n.match(I)||n.match(z)||n.match(x))return r.unit*(e.currentIndent-1);if(e.currentIndent<0)return 0;return e.currentIndent*r.unit},languageData:{closeBrackets:{brackets:["(","[","{",'"']},commentTokens:{line:"'"},autocomplete:f.concat(d).concat(h).concat(m).concat(p).concat(b)}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/721921bab0d001ebff02.woff b/bootcamp/share/jupyter/lab/static/721921bab0d001ebff02.woff new file mode 100644 index 0000000..f5df023 Binary files /dev/null and b/bootcamp/share/jupyter/lab/static/721921bab0d001ebff02.woff differ diff --git a/bootcamp/share/jupyter/lab/static/7245.c0cae8787dcd00b991b7.js b/bootcamp/share/jupyter/lab/static/7245.c0cae8787dcd00b991b7.js new file mode 100644 index 0000000..b289da2 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/7245.c0cae8787dcd00b991b7.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7245,745,9265],{20745:(a,e,t)=>{var p;var r=t(31051);if(true){e.s=r.createRoot;p=r.hydrateRoot}else{var o}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/7294.badf85a3180703d63f62.js b/bootcamp/share/jupyter/lab/static/7294.badf85a3180703d63f62.js new file mode 100644 index 0000000..8dfcf32 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/7294.badf85a3180703d63f62.js @@ -0,0 +1,2 @@ +/*! For license information please see 7294.badf85a3180703d63f62.js.LICENSE.txt */ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7294],{72408:(e,t)=>{var r=Symbol.for("react.element"),n=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),i=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),s=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),y=Symbol.iterator;function d(e){if(null===e||"object"!==typeof e)return null;e=y&&e[y]||e["@@iterator"];return"function"===typeof e?e:null}var _={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,b={};function m(e,t,r){this.props=e;this.context=t;this.refs=b;this.updater=r||_}m.prototype.isReactComponent={};m.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};m.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function v(){}v.prototype=m.prototype;function S(e,t,r){this.props=e;this.context=t;this.refs=b;this.updater=r||_}var k=S.prototype=new v;k.constructor=S;h(k,m.prototype);k.isPureReactComponent=!0;var w=Array.isArray,E=Object.prototype.hasOwnProperty,$={current:null},R={key:!0,ref:!0,__self:!0,__source:!0};function C(e,t,n){var o,u={},a=null,c=null;if(null!=t)for(o in void 0!==t.ref&&(c=t.ref),void 0!==t.key&&(a=""+t.key),t)E.call(t,o)&&!R.hasOwnProperty(o)&&(u[o]=t[o]);var i=arguments.length-2;if(1===i)u.children=n;else if(1{if(true){e.exports=r(72408)}else{}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/7294.badf85a3180703d63f62.js.LICENSE.txt b/bootcamp/share/jupyter/lab/static/7294.badf85a3180703d63f62.js.LICENSE.txt new file mode 100644 index 0000000..e932783 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/7294.badf85a3180703d63f62.js.LICENSE.txt @@ -0,0 +1,9 @@ +/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ diff --git a/bootcamp/share/jupyter/lab/static/72bc573386dd1d48c5bb.woff b/bootcamp/share/jupyter/lab/static/72bc573386dd1d48c5bb.woff new file mode 100644 index 0000000..9dcf84c Binary files /dev/null and b/bootcamp/share/jupyter/lab/static/72bc573386dd1d48c5bb.woff differ diff --git a/bootcamp/share/jupyter/lab/static/7317.af8a7da0f881a22752c1.js b/bootcamp/share/jupyter/lab/static/7317.af8a7da0f881a22752c1.js new file mode 100644 index 0000000..c2c6426 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/7317.af8a7da0f881a22752c1.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7317],{7317:(t,E,e)=>{e.r(E);e.d(E,{forth:()=>O});function r(t){var E=[];t.split(" ").forEach((function(t){E.push({name:t})}));return E}var n=r("INVERT AND OR XOR 2* 2/ LSHIFT RSHIFT 0= = 0< < > U< MIN MAX 2DROP 2DUP 2OVER 2SWAP ?DUP DEPTH DROP DUP OVER ROT SWAP >R R> R@ + - 1+ 1- ABS NEGATE S>D * M* UM* FM/MOD SM/REM UM/MOD */ */MOD / /MOD MOD HERE , @ ! CELL+ CELLS C, C@ C! CHARS 2@ 2! ALIGN ALIGNED +! ALLOT CHAR [CHAR] [ ] BL FIND EXECUTE IMMEDIATE COUNT LITERAL STATE ; DOES> >BODY EVALUATE SOURCE >IN <# # #S #> HOLD SIGN BASE >NUMBER HEX DECIMAL FILL MOVE . CR EMIT SPACE SPACES TYPE U. .R U.R ACCEPT TRUE FALSE <> U> 0<> 0> NIP TUCK ROLL PICK 2>R 2R@ 2R> WITHIN UNUSED MARKER I J TO COMPILE, [COMPILE] SAVE-INPUT RESTORE-INPUT PAD ERASE 2LITERAL DNEGATE D- D+ D0< D0= D2* D2/ D< D= DMAX DMIN D>S DABS M+ M*/ D. D.R 2ROT DU< CATCH THROW FREE RESIZE ALLOCATE CS-PICK CS-ROLL GET-CURRENT SET-CURRENT FORTH-WORDLIST GET-ORDER SET-ORDER PREVIOUS SEARCH-WORDLIST WORDLIST FIND ALSO ONLY FORTH DEFINITIONS ORDER -TRAILING /STRING SEARCH COMPARE CMOVE CMOVE> BLANK SLITERAL");var i=r("IF ELSE THEN BEGIN WHILE REPEAT UNTIL RECURSE [IF] [ELSE] [THEN] ?DO DO LOOP +LOOP UNLOOP LEAVE EXIT AGAIN CASE OF ENDOF ENDCASE");function R(t,E){var e;for(e=t.length-1;e>=0;e--){if(t[e].name===E.toUpperCase()){return t[e]}}return undefined}const O={name:"forth",startState:function(){return{state:"",base:10,coreWordList:n,immediateWordList:i,wordList:[]}},token:function(t,E){var e;if(t.eatSpace()){return null}if(E.state===""){if(t.match(/^(\]|:NONAME)(\s|$)/i)){E.state=" compilation";return"builtin"}e=t.match(/^(\:)\s+(\S+)(\s|$)+/);if(e){E.wordList.push({name:e[2].toUpperCase()});E.state=" compilation";return"def"}e=t.match(/^(VARIABLE|2VARIABLE|CONSTANT|2CONSTANT|CREATE|POSTPONE|VALUE|WORD)\s+(\S+)(\s|$)+/i);if(e){E.wordList.push({name:e[2].toUpperCase()});return"def"}e=t.match(/^(\'|\[\'\])\s+(\S+)(\s|$)+/);if(e){return"builtin"}}else{if(t.match(/^(\;|\[)(\s)/)){E.state="";t.backUp(1);return"builtin"}if(t.match(/^(\;|\[)($)/)){E.state="";return"builtin"}if(t.match(/^(POSTPONE)\s+\S+(\s|$)+/)){return"builtin"}}e=t.match(/^(\S+)(\s+|$)/);if(e){if(R(E.wordList,e[1])!==undefined){return"variable"}if(e[1]==="\\"){t.skipToEnd();return"comment"}if(R(E.coreWordList,e[1])!==undefined){return"builtin"}if(R(E.immediateWordList,e[1])!==undefined){return"keyword"}if(e[1]==="("){t.eatWhile((function(t){return t!==")"}));t.eat(")");return"comment"}if(e[1]===".("){t.eatWhile((function(t){return t!==")"}));t.eat(")");return"string"}if(e[1]==='S"'||e[1]==='."'||e[1]==='C"'){t.eatWhile((function(t){return t!=='"'}));t.eat('"');return"string"}if(e[1]-68719476735){return"number"}return"atom"}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/7318.397bf8e913e825b2be27.js b/bootcamp/share/jupyter/lab/static/7318.397bf8e913e825b2be27.js new file mode 100644 index 0000000..0d64d18 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/7318.397bf8e913e825b2be27.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7318],{27318:(e,r,t)=>{t.r(r);t.d(r,{javascript:()=>i,json:()=>a,jsonld:()=>u,typescript:()=>f});function n(e){var r=e.statementIndent;var t=e.jsonld;var n=e.json||t;var i=e.typescript;var a=e.wordCharacters||/[\w$\xa1-\uffff]/;var u=function(){function e(e){return{type:e,style:"keyword"}}var r=e("keyword a"),t=e("keyword b"),n=e("keyword c"),i=e("keyword d");var a=e("operator"),u={type:"atom",style:"atom"};return{if:e("if"),while:r,with:r,else:t,do:t,try:t,finally:t,return:i,break:i,continue:i,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:a,typeof:a,instanceof:a,true:u,false:u,null:u,undefined:u,NaN:u,Infinity:u,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}();var f=/[+\-*&%=<>!?|~^@]/;var s=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function o(e){var r=false,t,n=false;while((t=e.next())!=null){if(!r){if(t=="/"&&!n)return;if(t=="[")n=true;else if(n&&t=="]")n=false}r=!r&&t=="\\"}}var l,c;function d(e,r,t){l=e;c=t;return r}function m(e,r){var t=e.next();if(t=='"'||t=="'"){r.tokenize=p(t);return r.tokenize(e,r)}else if(t=="."&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/)){return d("number","number")}else if(t=="."&&e.match("..")){return d("spread","meta")}else if(/[\[\]{}\(\),;\:\.]/.test(t)){return d(t)}else if(t=="="&&e.eat(">")){return d("=>","operator")}else if(t=="0"&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/)){return d("number","number")}else if(/\d/.test(t)){e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/);return d("number","number")}else if(t=="/"){if(e.eat("*")){r.tokenize=k;return k(e,r)}else if(e.eat("/")){e.skipToEnd();return d("comment","comment")}else if(er(e,r,1)){o(e);e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/);return d("regexp","string.special")}else{e.eat("=");return d("operator","operator",e.current())}}else if(t=="`"){r.tokenize=v;return v(e,r)}else if(t=="#"&&e.peek()=="!"){e.skipToEnd();return d("meta","meta")}else if(t=="#"&&e.eatWhile(a)){return d("variable","property")}else if(t=="<"&&e.match("!--")||t=="-"&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start))){e.skipToEnd();return d("comment","comment")}else if(f.test(t)){if(t!=">"||!r.lexical||r.lexical.type!=">"){if(e.eat("=")){if(t=="!"||t=="=")e.eat("=")}else if(/[<>*+\-|&?]/.test(t)){e.eat(t);if(t==">")e.eat(t)}}if(t=="?"&&e.eat("."))return d(".");return d("operator","operator",e.current())}else if(a.test(t)){e.eatWhile(a);var n=e.current();if(r.lastType!="."){if(u.propertyIsEnumerable(n)){var i=u[n];return d(i.type,i.style,n)}if(n=="async"&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,false))return d("async","keyword",n)}return d("variable","variable",n)}}function p(e){return function(r,n){var i=false,a;if(t&&r.peek()=="@"&&r.match(s)){n.tokenize=m;return d("jsonld-keyword","meta")}while((a=r.next())!=null){if(a==e&&!i)break;i=!i&&a=="\\"}if(!i)n.tokenize=m;return d("string","string")}}function k(e,r){var t=false,n;while(n=e.next()){if(n=="/"&&t){r.tokenize=m;break}t=n=="*"}return d("comment","comment")}function v(e,r){var t=false,n;while((n=e.next())!=null){if(!t&&(n=="`"||n=="$"&&e.eat("{"))){r.tokenize=m;break}t=!t&&n=="\\"}return d("quasi","string.special",e.current())}var y="([{}])";function w(e,r){if(r.fatArrowAt)r.fatArrowAt=null;var t=e.string.indexOf("=>",e.start);if(t<0)return;if(i){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,t));if(n)t=n.index}var u=0,f=false;for(var s=t-1;s>=0;--s){var o=e.string.charAt(s);var l=y.indexOf(o);if(l>=0&&l<3){if(!u){++s;break}if(--u==0){if(o=="(")f=true;break}}else if(l>=3&&l<6){++u}else if(a.test(o)){f=true}else if(/["'\/`]/.test(o)){for(;;--s){if(s==0)return;var c=e.string.charAt(s-1);if(c==o&&e.string.charAt(s-2)!="\\"){s--;break}}}else if(f&&!u){++s;break}}if(f&&!u)r.fatArrowAt=s}var b={atom:true,number:true,variable:true,string:true,regexp:true,this:true,import:true,"jsonld-keyword":true};function h(e,r,t,n,i,a){this.indented=e;this.column=r;this.type=t;this.prev=i;this.info=a;if(n!=null)this.align=n}function x(e,r){for(var t=e.localVars;t;t=t.next)if(t.name==r)return true;for(var n=e.context;n;n=n.prev){for(var t=n.vars;t;t=t.next)if(t.name==r)return true}}function g(e,r,t,i,a){var u=e.cc;V.state=e;V.stream=a;V.marked=null;V.cc=u;V.style=r;if(!e.lexical.hasOwnProperty("align"))e.lexical.align=true;while(true){var f=u.length?u.pop():n?F:B;if(f(t,i)){while(u.length&&u[u.length-1].lex)u.pop()();if(V.marked)return V.marked;if(t=="variable"&&x(e,i))return"variableName.local";return r}}}var V={state:null,column:null,marked:null,cc:null};function A(){for(var e=arguments.length-1;e>=0;e--)V.cc.push(arguments[e])}function z(){A.apply(null,arguments);return true}function j(e,r){for(var t=r;t;t=t.next)if(t.name==e)return true;return false}function T(r){var t=V.state;V.marked="def";if(t.context){if(t.lexical.info=="var"&&t.context&&t.context.block){var n=_(r,t.context);if(n!=null){t.context=n;return}}else if(!j(r,t.localVars)){t.localVars=new q(r,t.localVars);return}}if(e.globalVars&&!j(r,t.globalVars))t.globalVars=new q(r,t.globalVars)}function _(e,r){if(!r){return null}else if(r.block){var t=_(e,r.prev);if(!t)return null;if(t==r.prev)return r;return new O(t,r.vars,true)}else if(j(e,r.vars)){return r}else{return new O(r.prev,new q(e,r.vars),false)}}function $(e){return e=="public"||e=="private"||e=="protected"||e=="abstract"||e=="readonly"}function O(e,r,t){this.prev=e;this.vars=r;this.block=t}function q(e,r){this.name=e;this.next=r}var E=new q("this",new q("arguments",null));function I(){V.state.context=new O(V.state.context,V.state.localVars,false);V.state.localVars=E}function C(){V.state.context=new O(V.state.context,V.state.localVars,true);V.state.localVars=null}I.lex=C.lex=true;function S(){V.state.localVars=V.state.context.vars;V.state.context=V.state.context.prev}S.lex=true;function N(e,r){var t=function(){var t=V.state,n=t.indented;if(t.lexical.type=="stat")n=t.lexical.indented;else for(var i=t.lexical;i&&i.type==")"&&i.align;i=i.prev)n=i.indented;t.lexical=new h(n,V.stream.column(),e,null,t.lexical,r)};t.lex=true;return t}function P(){var e=V.state;if(e.lexical.prev){if(e.lexical.type==")")e.indented=e.lexical.indented;e.lexical=e.lexical.prev}}P.lex=true;function W(e){function r(t){if(t==e)return z();else if(e==";"||t=="}"||t==")"||t=="]")return A();else return z(r)}return r}function B(e,r){if(e=="var")return z(N("vardef",r),Ae,W(";"),P);if(e=="keyword a")return z(N("form"),G,B,P);if(e=="keyword b")return z(N("form"),B,P);if(e=="keyword d")return V.stream.match(/^\s*$/,false)?z():z(N("stat"),J,W(";"),P);if(e=="debugger")return z(W(";"));if(e=="{")return z(N("}"),C,se,P,S);if(e==";")return z();if(e=="if"){if(V.state.lexical.info=="else"&&V.state.cc[V.state.cc.length-1]==P)V.state.cc.pop()();return z(N("form"),G,B,P,Oe)}if(e=="function")return z(Ce);if(e=="for")return z(N("form"),C,qe,B,S,P);if(e=="class"||i&&r=="interface"){V.marked="keyword";return z(N("form",e=="class"?e:r),Be,P)}if(e=="variable"){if(i&&r=="declare"){V.marked="keyword";return z(B)}else if(i&&(r=="module"||r=="enum"||r=="type")&&V.stream.match(/^\s*\w/,false)){V.marked="keyword";if(r=="enum")return z(Xe);else if(r=="type")return z(Ne,W("operator"),me,W(";"));else return z(N("form"),ze,W("{"),N("}"),se,P,P)}else if(i&&r=="namespace"){V.marked="keyword";return z(N("form"),F,B,P)}else if(i&&r=="abstract"){V.marked="keyword";return z(B)}else{return z(N("stat"),re)}}if(e=="switch")return z(N("form"),G,W("{"),N("}","switch"),C,se,P,P,S);if(e=="case")return z(F,W(":"));if(e=="default")return z(W(":"));if(e=="catch")return z(N("form"),I,D,B,P,S);if(e=="export")return z(N("stat"),Ge,P);if(e=="import")return z(N("stat"),Je,P);if(e=="async")return z(B);if(r=="@")return z(F,B);return A(N("stat"),F,W(";"),P)}function D(e){if(e=="(")return z(Pe,W(")"))}function F(e,r){return H(e,r,false)}function U(e,r){return H(e,r,true)}function G(e){if(e!="(")return A();return z(N(")"),J,W(")"),P)}function H(e,r,t){if(V.state.fatArrowAt==V.stream.start){var n=t?X:R;if(e=="(")return z(I,N(")"),ue(Pe,")"),P,W("=>"),n,S);else if(e=="variable")return A(I,ze,W("=>"),n,S)}var a=t?L:K;if(b.hasOwnProperty(e))return z(a);if(e=="function")return z(Ce,a);if(e=="class"||i&&r=="interface"){V.marked="keyword";return z(N("form"),We,P)}if(e=="keyword c"||e=="async")return z(t?U:F);if(e=="(")return z(N(")"),J,W(")"),P,a);if(e=="operator"||e=="spread")return z(t?U:F);if(e=="[")return z(N("]"),Re,P,a);if(e=="{")return fe(ne,"}",null,a);if(e=="quasi")return A(M,a);if(e=="new")return z(Y(t));return z()}function J(e){if(e.match(/[;\}\)\],]/))return A();return A(F)}function K(e,r){if(e==",")return z(J);return L(e,r,false)}function L(e,r,t){var n=t==false?K:L;var a=t==false?F:U;if(e=="=>")return z(I,t?X:R,S);if(e=="operator"){if(/\+\+|--/.test(r)||i&&r=="!")return z(n);if(i&&r=="<"&&V.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,false))return z(N(">"),ue(me,">"),P,n);if(r=="?")return z(F,W(":"),a);return z(a)}if(e=="quasi"){return A(M,n)}if(e==";")return;if(e=="(")return fe(U,")","call",n);if(e==".")return z(te,n);if(e=="[")return z(N("]"),J,W("]"),P,n);if(i&&r=="as"){V.marked="keyword";return z(me,n)}if(e=="regexp"){V.state.lastType=V.marked="operator";V.stream.backUp(V.stream.pos-V.stream.start-1);return z(a)}}function M(e,r){if(e!="quasi")return A();if(r.slice(r.length-2)!="${")return z(M);return z(J,Q)}function Q(e){if(e=="}"){V.marked="string.special";V.state.tokenize=v;return z(M)}}function R(e){w(V.stream,V.state);return A(e=="{"?B:F)}function X(e){w(V.stream,V.state);return A(e=="{"?B:U)}function Y(e){return function(r){if(r==".")return z(e?ee:Z);else if(r=="variable"&&i)return z(xe,e?L:K);else return A(e?U:F)}}function Z(e,r){if(r=="target"){V.marked="keyword";return z(K)}}function ee(e,r){if(r=="target"){V.marked="keyword";return z(L)}}function re(e){if(e==":")return z(P,B);return A(K,W(";"),P)}function te(e){if(e=="variable"){V.marked="property";return z()}}function ne(e,r){if(e=="async"){V.marked="property";return z(ne)}else if(e=="variable"||V.style=="keyword"){V.marked="property";if(r=="get"||r=="set")return z(ie);var n;if(i&&V.state.fatArrowAt==V.stream.start&&(n=V.stream.match(/^\s*:\s*/,false)))V.state.fatArrowAt=V.stream.pos+n[0].length;return z(ae)}else if(e=="number"||e=="string"){V.marked=t?"property":V.style+" property";return z(ae)}else if(e=="jsonld-keyword"){return z(ae)}else if(i&&$(r)){V.marked="keyword";return z(ne)}else if(e=="["){return z(F,oe,W("]"),ae)}else if(e=="spread"){return z(U,ae)}else if(r=="*"){V.marked="keyword";return z(ne)}else if(e==":"){return A(ae)}}function ie(e){if(e!="variable")return A(ae);V.marked="property";return z(Ce)}function ae(e){if(e==":")return z(U);if(e=="(")return A(Ce)}function ue(e,r,t){function n(i,a){if(t?t.indexOf(i)>-1:i==","){var u=V.state.lexical;if(u.info=="call")u.pos=(u.pos||0)+1;return z((function(t,n){if(t==r||n==r)return A();return A(e)}),n)}if(i==r||a==r)return z();if(t&&t.indexOf(";")>-1)return A(e);return z(W(r))}return function(t,i){if(t==r||i==r)return z();return A(e,n)}}function fe(e,r,t){for(var n=3;n"),me);if(e=="quasi")return A(ye,he)}function pe(e){if(e=="=>")return z(me)}function ke(e){if(e.match(/[\}\)\]]/))return z();if(e==","||e==";")return z(ke);return A(ve,ke)}function ve(e,r){if(e=="variable"||V.style=="keyword"){V.marked="property";return z(ve)}else if(r=="?"||e=="number"||e=="string"){return z(ve)}else if(e==":"){return z(me)}else if(e=="["){return z(W("variable"),le,W("]"),ve)}else if(e=="("){return A(Se,ve)}else if(!e.match(/[;\}\)\],]/)){return z()}}function ye(e,r){if(e!="quasi")return A();if(r.slice(r.length-2)!="${")return z(ye);return z(me,we)}function we(e){if(e=="}"){V.marked="string-2";V.state.tokenize=v;return z(ye)}}function be(e,r){if(e=="variable"&&V.stream.match(/^\s*[?:]/,false)||r=="?")return z(be);if(e==":")return z(me);if(e=="spread")return z(be);return A(me)}function he(e,r){if(r=="<")return z(N(">"),ue(me,">"),P,he);if(r=="|"||e=="."||r=="&")return z(me);if(e=="[")return z(me,W("]"),he);if(r=="extends"||r=="implements"){V.marked="keyword";return z(me)}if(r=="?")return z(me,W(":"),me)}function xe(e,r){if(r=="<")return z(N(">"),ue(me,">"),P,he)}function ge(){return A(me,Ve)}function Ve(e,r){if(r=="=")return z(me)}function Ae(e,r){if(r=="enum"){V.marked="keyword";return z(Xe)}return A(ze,oe,_e,$e)}function ze(e,r){if(i&&$(r)){V.marked="keyword";return z(ze)}if(e=="variable"){T(r);return z()}if(e=="spread")return z(ze);if(e=="[")return fe(Te,"]");if(e=="{")return fe(je,"}")}function je(e,r){if(e=="variable"&&!V.stream.match(/^\s*:/,false)){T(r);return z(_e)}if(e=="variable")V.marked="property";if(e=="spread")return z(ze);if(e=="}")return A();if(e=="[")return z(F,W("]"),W(":"),je);return z(W(":"),ze,_e)}function Te(){return A(ze,_e)}function _e(e,r){if(r=="=")return z(U)}function $e(e){if(e==",")return z(Ae)}function Oe(e,r){if(e=="keyword b"&&r=="else")return z(N("form","else"),B,P)}function qe(e,r){if(r=="await")return z(qe);if(e=="(")return z(N(")"),Ee,P)}function Ee(e){if(e=="var")return z(Ae,Ie);if(e=="variable")return z(Ie);return A(Ie)}function Ie(e,r){if(e==")")return z();if(e==";")return z(Ie);if(r=="in"||r=="of"){V.marked="keyword";return z(F,Ie)}return A(F,Ie)}function Ce(e,r){if(r=="*"){V.marked="keyword";return z(Ce)}if(e=="variable"){T(r);return z(Ce)}if(e=="(")return z(I,N(")"),ue(Pe,")"),P,ce,B,S);if(i&&r=="<")return z(N(">"),ue(ge,">"),P,Ce)}function Se(e,r){if(r=="*"){V.marked="keyword";return z(Se)}if(e=="variable"){T(r);return z(Se)}if(e=="(")return z(I,N(")"),ue(Pe,")"),P,ce,S);if(i&&r=="<")return z(N(">"),ue(ge,">"),P,Se)}function Ne(e,r){if(e=="keyword"||e=="variable"){V.marked="type";return z(Ne)}else if(r=="<"){return z(N(">"),ue(ge,">"),P)}}function Pe(e,r){if(r=="@")z(F,Pe);if(e=="spread")return z(Pe);if(i&&$(r)){V.marked="keyword";return z(Pe)}if(i&&e=="this")return z(oe,_e);return A(ze,oe,_e)}function We(e,r){if(e=="variable")return Be(e,r);return De(e,r)}function Be(e,r){if(e=="variable"){T(r);return z(De)}}function De(e,r){if(r=="<")return z(N(">"),ue(ge,">"),P,De);if(r=="extends"||r=="implements"||i&&e==","){if(r=="implements")V.marked="keyword";return z(i?me:F,De)}if(e=="{")return z(N("}"),Fe,P)}function Fe(e,r){if(e=="async"||e=="variable"&&(r=="static"||r=="get"||r=="set"||i&&$(r))&&V.stream.match(/^\s+#?[\w$\xa1-\uffff]/,false)){V.marked="keyword";return z(Fe)}if(e=="variable"||V.style=="keyword"){V.marked="property";return z(Ue,Fe)}if(e=="number"||e=="string")return z(Ue,Fe);if(e=="[")return z(F,oe,W("]"),Ue,Fe);if(r=="*"){V.marked="keyword";return z(Fe)}if(i&&e=="(")return A(Se,Fe);if(e==";"||e==",")return z(Fe);if(e=="}")return z();if(r=="@")return z(F,Fe)}function Ue(e,r){if(r=="!"||r=="?")return z(Ue);if(e==":")return z(me,_e);if(r=="=")return z(U);var t=V.state.lexical.prev,n=t&&t.info=="interface";return A(n?Se:Ce)}function Ge(e,r){if(r=="*"){V.marked="keyword";return z(Qe,W(";"))}if(r=="default"){V.marked="keyword";return z(F,W(";"))}if(e=="{")return z(ue(He,"}"),Qe,W(";"));return A(B)}function He(e,r){if(r=="as"){V.marked="keyword";return z(W("variable"))}if(e=="variable")return A(U,He)}function Je(e){if(e=="string")return z();if(e=="(")return A(F);if(e==".")return A(K);return A(Ke,Le,Qe)}function Ke(e,r){if(e=="{")return fe(Ke,"}");if(e=="variable")T(r);if(r=="*")V.marked="keyword";return z(Me)}function Le(e){if(e==",")return z(Ke,Le)}function Me(e,r){if(r=="as"){V.marked="keyword";return z(Ke)}}function Qe(e,r){if(r=="from"){V.marked="keyword";return z(F)}}function Re(e){if(e=="]")return z();return A(ue(U,"]"))}function Xe(){return A(N("form"),ze,W("{"),N("}"),ue(Ye,"}"),P,P)}function Ye(){return A(ze,_e)}function Ze(e,r){return e.lastType=="operator"||e.lastType==","||f.test(r.charAt(0))||/[,.]/.test(r.charAt(0))}function er(e,r,t){return r.tokenize==m&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(r.lastType)||r.lastType=="quasi"&&/\{\s*$/.test(e.string.slice(0,e.pos-(t||0)))}return{name:e.name,startState:function(r){var t={tokenize:m,lastType:"sof",cc:[],lexical:new h(-r,0,"block",false),localVars:e.localVars,context:e.localVars&&new O(null,null,false),indented:0};if(e.globalVars&&typeof e.globalVars=="object")t.globalVars=e.globalVars;return t},token:function(e,r){if(e.sol()){if(!r.lexical.hasOwnProperty("align"))r.lexical.align=false;r.indented=e.indentation();w(e,r)}if(r.tokenize!=k&&e.eatSpace())return null;var t=r.tokenize(e,r);if(l=="comment")return t;r.lastType=l=="operator"&&(c=="++"||c=="--")?"incdec":l;return g(r,t,l,c,e)},indent:function(t,n,i){if(t.tokenize==k||t.tokenize==v)return null;if(t.tokenize!=m)return 0;var a=n&&n.charAt(0),u=t.lexical,f;if(!/^\s*else\b/.test(n))for(var s=t.cc.length-1;s>=0;--s){var o=t.cc[s];if(o==P)u=u.prev;else if(o!=Oe&&o!=S)break}while((u.type=="stat"||u.type=="form")&&(a=="}"||(f=t.cc[t.cc.length-1])&&(f==K||f==L)&&!/^[,\.=+\-*:?[\(]/.test(n)))u=u.prev;if(r&&u.type==")"&&u.prev.type=="stat")u=u.prev;var l=u.type,c=a==l;if(l=="vardef")return u.indented+(t.lastType=="operator"||t.lastType==","?u.info.length+1:0);else if(l=="form"&&a=="{")return u.indented;else if(l=="form")return u.indented+i.unit;else if(l=="stat")return u.indented+(Ze(t,n)?r||i.unit:0);else if(u.info=="switch"&&!c&&e.doubleIndentSwitch!=false)return u.indented+(/^(?:case|default)\b/.test(n)?i.unit:2*i.unit);else if(u.align)return u.column+(c?0:1);else return u.indented+(c?0:i.unit)},languageData:{indentOnInput:/^\s*(?:case .*?:|default:|\{|\})$/,commentTokens:n?undefined:{line:"//",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]},wordChars:"$"}}}const i=n({name:"javascript"});const a=n({name:"json",json:true});const u=n({name:"json",jsonld:true});const f=n({name:"typescript",typescript:true})}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/7363.abe8e31a91e113753bae.js b/bootcamp/share/jupyter/lab/static/7363.abe8e31a91e113753bae.js new file mode 100644 index 0000000..0569088 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/7363.abe8e31a91e113753bae.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7363],{57363:(e,t,r)=>{r.r(t);r.d(t,{velocity:()=>p});function n(e){var t={},r=e.split(" ");for(var n=0;n!?:\/|]/;function o(e,t,r){t.tokenize=r;return r(e,t)}function u(e,t){var r=t.beforeParams;t.beforeParams=false;var n=e.next();if(n=="'"&&!t.inString&&t.inParams){t.lastTokenWasBuiltin=false;return o(e,t,f(n))}else if(n=='"'){t.lastTokenWasBuiltin=false;if(t.inString){t.inString=false;return"string"}else if(t.inParams)return o(e,t,f(n))}else if(/[\[\]{}\(\),;\.]/.test(n)){if(n=="("&&r)t.inParams=true;else if(n==")"){t.inParams=false;t.lastTokenWasBuiltin=true}return null}else if(/\d/.test(n)){t.lastTokenWasBuiltin=false;e.eatWhile(/[\w\.]/);return"number"}else if(n=="#"&&e.eat("*")){t.lastTokenWasBuiltin=false;return o(e,t,c)}else if(n=="#"&&e.match(/ *\[ *\[/)){t.lastTokenWasBuiltin=false;return o(e,t,k)}else if(n=="#"&&e.eat("#")){t.lastTokenWasBuiltin=false;e.skipToEnd();return"comment"}else if(n=="$"){e.eat("!");e.eatWhile(/[\w\d\$_\.{}-]/);if(s&&s.propertyIsEnumerable(e.current())){return"keyword"}else{t.lastTokenWasBuiltin=true;t.beforeParams=true;return"builtin"}}else if(l.test(n)){t.lastTokenWasBuiltin=false;e.eatWhile(l);return"operator"}else{e.eatWhile(/[\w\$_{}@]/);var u=e.current();if(a&&a.propertyIsEnumerable(u))return"keyword";if(i&&i.propertyIsEnumerable(u)||e.current().match(/^#@?[a-z0-9_]+ *$/i)&&e.peek()=="("&&!(i&&i.propertyIsEnumerable(u.toLowerCase()))){t.beforeParams=true;t.lastTokenWasBuiltin=false;return"keyword"}if(t.inString){t.lastTokenWasBuiltin=false;return"string"}if(e.pos>u.length&&e.string.charAt(e.pos-u.length-1)=="."&&t.lastTokenWasBuiltin)return"builtin";t.lastTokenWasBuiltin=false;return null}}function f(e){return function(t,r){var n=false,a,i=false;while((a=t.next())!=null){if(a==e&&!n){i=true;break}if(e=='"'&&t.peek()=="$"&&!n){r.inString=true;i=true;break}n=!n&&a=="\\"}if(i)r.tokenize=u;return"string"}}function c(e,t){var r=false,n;while(n=e.next()){if(n=="#"&&r){t.tokenize=u;break}r=n=="*"}return"comment"}function k(e,t){var r=0,n;while(n=e.next()){if(n=="#"&&r==2){t.tokenize=u;break}if(n=="]")r++;else if(n!=" ")r=0}return"meta"}const p={name:"velocity",startState:function(){return{tokenize:u,beforeParams:false,inParams:false,inString:false,lastTokenWasBuiltin:false}},token:function(e,t){if(e.eatSpace())return null;return t.tokenize(e,t)},languageData:{commentTokens:{line:"##",block:{open:"#*",close:"*#"}}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/7384.60351e008d8f687e8fcc.js b/bootcamp/share/jupyter/lab/static/7384.60351e008d8f687e8fcc.js new file mode 100644 index 0000000..84bb687 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/7384.60351e008d8f687e8fcc.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7384,6443],{86443:(e,t,n)=>{n.r(t);n.d(t,{Bounce:()=>N,Flip:()=>k,Icons:()=>v,Slide:()=>R,ToastContainer:()=>M,Zoom:()=>w,collapseToast:()=>f,cssTransition:()=>m,toast:()=>H,useToast:()=>b,useToastContainer:()=>T});var o=n(28416);var s=n.n(o);function a(e){var t,n,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t"number"==typeof e&&!isNaN(e),c=e=>"string"==typeof e,u=e=>"function"==typeof e,d=e=>c(e)||u(e)?e:null,p=e=>(0,o.isValidElement)(e)||c(e)||u(e)||l(e);function f(e,t,n){void 0===n&&(n=300);const{scrollHeight:o,style:s}=e;requestAnimationFrame((()=>{s.minHeight="initial",s.height=o+"px",s.transition=`all ${n}ms`,requestAnimationFrame((()=>{s.height="0",s.padding="0",s.margin="0",setTimeout(t,n)}))}))}function m(e){let{enter:t,exit:n,appendPosition:a=!1,collapse:i=!0,collapseDuration:r=300}=e;return function(e){let{children:l,position:c,preventExitTransition:u,done:d,nodeRef:p,isIn:m}=e;const g=a?`${t}--${c}`:t,h=a?`${n}--${c}`:n,y=(0,o.useRef)(0);return(0,o.useLayoutEffect)((()=>{const e=p.current,t=g.split(" "),n=o=>{o.target===p.current&&(e.dispatchEvent(new Event("d")),e.removeEventListener("animationend",n),e.removeEventListener("animationcancel",n),0===y.current&&"animationcancel"!==o.type&&e.classList.remove(...t))};e.classList.add(...t),e.addEventListener("animationend",n),e.addEventListener("animationcancel",n)}),[]),(0,o.useEffect)((()=>{const e=p.current,t=()=>{e.removeEventListener("animationend",t),i?f(e,d,r):d()};m||(u?t():(y.current=1,e.className+=` ${h}`,e.addEventListener("animationend",t)))}),[m]),s().createElement(s().Fragment,null,l)}}function g(e,t){return{content:e.content,containerId:e.props.containerId,id:e.props.toastId,theme:e.props.theme,type:e.props.type,data:e.props.data||{},isLoading:e.props.isLoading,icon:e.props.icon,status:t}}const h={list:new Map,emitQueue:new Map,on(e,t){return this.list.has(e)||this.list.set(e,[]),this.list.get(e).push(t),this},off(e,t){if(t){const n=this.list.get(e).filter((e=>e!==t));return this.list.set(e,n),this}return this.list.delete(e),this},cancelEmit(e){const t=this.emitQueue.get(e);return t&&(t.forEach(clearTimeout),this.emitQueue.delete(e)),this},emit(e){this.list.has(e)&&this.list.get(e).forEach((t=>{const n=setTimeout((()=>{t(...[].slice.call(arguments,1))}),0);this.emitQueue.has(e)||this.emitQueue.set(e,[]),this.emitQueue.get(e).push(n)}))}},y=e=>{let{theme:t,type:n,...o}=e;return s().createElement("svg",{viewBox:"0 0 24 24",width:"100%",height:"100%",fill:"colored"===t?"currentColor":`var(--toastify-icon-color-${n})`,...o})},v={info:function(e){return s().createElement(y,{...e},s().createElement("path",{d:"M12 0a12 12 0 1012 12A12.013 12.013 0 0012 0zm.25 5a1.5 1.5 0 11-1.5 1.5 1.5 1.5 0 011.5-1.5zm2.25 13.5h-4a1 1 0 010-2h.75a.25.25 0 00.25-.25v-4.5a.25.25 0 00-.25-.25h-.75a1 1 0 010-2h1a2 2 0 012 2v4.75a.25.25 0 00.25.25h.75a1 1 0 110 2z"}))},warning:function(e){return s().createElement(y,{...e},s().createElement("path",{d:"M23.32 17.191L15.438 2.184C14.728.833 13.416 0 11.996 0c-1.42 0-2.733.833-3.443 2.184L.533 17.448a4.744 4.744 0 000 4.368C1.243 23.167 2.555 24 3.975 24h16.05C22.22 24 24 22.044 24 19.632c0-.904-.251-1.746-.68-2.44zm-9.622 1.46c0 1.033-.724 1.823-1.698 1.823s-1.698-.79-1.698-1.822v-.043c0-1.028.724-1.822 1.698-1.822s1.698.79 1.698 1.822v.043zm.039-12.285l-.84 8.06c-.057.581-.408.943-.897.943-.49 0-.84-.367-.896-.942l-.84-8.065c-.057-.624.25-1.095.779-1.095h1.91c.528.005.84.476.784 1.1z"}))},success:function(e){return s().createElement(y,{...e},s().createElement("path",{d:"M12 0a12 12 0 1012 12A12.014 12.014 0 0012 0zm6.927 8.2l-6.845 9.289a1.011 1.011 0 01-1.43.188l-4.888-3.908a1 1 0 111.25-1.562l4.076 3.261 6.227-8.451a1 1 0 111.61 1.183z"}))},error:function(e){return s().createElement(y,{...e},s().createElement("path",{d:"M11.983 0a12.206 12.206 0 00-8.51 3.653A11.8 11.8 0 000 12.207 11.779 11.779 0 0011.8 24h.214A12.111 12.111 0 0024 11.791 11.766 11.766 0 0011.983 0zM10.5 16.542a1.476 1.476 0 011.449-1.53h.027a1.527 1.527 0 011.523 1.47 1.475 1.475 0 01-1.449 1.53h-.027a1.529 1.529 0 01-1.523-1.47zM11 12.5v-6a1 1 0 012 0v6a1 1 0 11-2 0z"}))},spinner:function(){return s().createElement("div",{className:"Toastify__spinner"})}};function T(e){const[,t]=(0,o.useReducer)((e=>e+1),0),[n,s]=(0,o.useState)([]),a=(0,o.useRef)(null),i=(0,o.useRef)(new Map).current,r=e=>-1!==n.indexOf(e),f=(0,o.useRef)({toastKey:1,displayedToast:0,count:0,queue:[],props:e,containerId:null,isToastActive:r,getToast:e=>i.get(e)}).current;function m(e){let{containerId:t}=e;const{limit:n}=f.props;!n||t&&f.containerId!==t||(f.count-=f.queue.length,f.queue=[])}function y(e){s((t=>null==e?[]:t.filter((t=>t!==e))))}function T(){const{toastContent:e,toastProps:t,staleId:n}=f.queue.shift();C(e,t,n)}function E(e,n){let{delay:s,staleId:r,...m}=n;if(!p(e)||function(e){return!a.current||f.props.enableMultiContainer&&e.containerId!==f.props.containerId||i.has(e.toastId)&&null==e.updateId}(m))return;const{toastId:E,updateId:b,data:_}=m,{props:I}=f,L=()=>y(E),O=null==b;O&&f.count++;const N={...I,style:I.toastStyle,key:f.toastKey++,...m,toastId:E,updateId:b,data:_,closeToast:L,isIn:!1,className:d(m.className||I.toastClassName),bodyClassName:d(m.bodyClassName||I.bodyClassName),progressClassName:d(m.progressClassName||I.progressClassName),autoClose:!m.isLoading&&(R=m.autoClose,w=I.autoClose,!1===R||l(R)&&R>0?R:w),deleteToast(){const e=g(i.get(E),"removed");i.delete(E),h.emit(4,e);const n=f.queue.length;if(f.count=null==E?f.count-f.displayedToast:f.count-1,f.count<0&&(f.count=0),n>0){const e=null==E?f.props.limit:1;if(1===n||1===e)f.displayedToast++,T();else{const t=e>n?n:e;f.displayedToast=t;for(let e=0;ee in v)(n)&&(i=v[n](r))),i}(N),u(m.onOpen)&&(N.onOpen=m.onOpen),u(m.onClose)&&(N.onClose=m.onClose),N.closeButton=I.closeButton,!1===m.closeButton||p(m.closeButton)?N.closeButton=m.closeButton:!0===m.closeButton&&(N.closeButton=!p(I.closeButton)||I.closeButton);let k=e;(0,o.isValidElement)(e)&&!c(e.type)?k=(0,o.cloneElement)(e,{closeToast:L,toastProps:N,data:_}):u(e)&&(k=e({closeToast:L,toastProps:N,data:_})),I.limit&&I.limit>0&&f.count>I.limit&&O?f.queue.push({toastContent:k,toastProps:N,staleId:r}):l(s)?setTimeout((()=>{C(k,N,r)}),s):C(k,N,r)}function C(e,t,n){const{toastId:o}=t;n&&i.delete(n);const a={content:e,props:t};i.set(o,a),s((e=>[...e,o].filter((e=>e!==n)))),h.emit(4,g(a,null==a.props.updateId?"added":"updated"))}return(0,o.useEffect)((()=>(f.containerId=e.containerId,h.cancelEmit(3).on(0,E).on(1,(e=>a.current&&y(e))).on(5,m).emit(2,f),()=>{i.clear(),h.emit(3,f)})),[]),(0,o.useEffect)((()=>{f.props=e,f.isToastActive=r,f.displayedToast=n.length})),{getToastToRender:function(t){const n=new Map,o=Array.from(i.values());return e.newestOnTop&&o.reverse(),o.forEach((e=>{const{position:t}=e.props;n.has(t)||n.set(t,[]),n.get(t).push(e)})),Array.from(n,(e=>t(e[0],e[1])))},containerRef:a,isToastActive:r}}function E(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientX:e.clientX}function C(e){return e.targetTouches&&e.targetTouches.length>=1?e.targetTouches[0].clientY:e.clientY}function b(e){const[t,n]=(0,o.useState)(!1),[s,a]=(0,o.useState)(!1),i=(0,o.useRef)(null),r=(0,o.useRef)({start:0,x:0,y:0,delta:0,removalDistance:0,canCloseOnClick:!0,canDrag:!1,boundingRect:null,didMove:!1}).current,l=(0,o.useRef)(e),{autoClose:c,pauseOnHover:d,closeToast:p,onClick:f,closeOnClick:m}=e;function g(t){if(e.draggable){"touchstart"===t.nativeEvent.type&&t.nativeEvent.preventDefault(),r.didMove=!1,document.addEventListener("mousemove",T),document.addEventListener("mouseup",b),document.addEventListener("touchmove",T),document.addEventListener("touchend",b);const n=i.current;r.canCloseOnClick=!0,r.canDrag=!0,r.boundingRect=n.getBoundingClientRect(),n.style.transition="",r.x=E(t.nativeEvent),r.y=C(t.nativeEvent),"x"===e.draggableDirection?(r.start=r.x,r.removalDistance=n.offsetWidth*(e.draggablePercent/100)):(r.start=r.y,r.removalDistance=n.offsetHeight*(80===e.draggablePercent?1.5*e.draggablePercent:e.draggablePercent/100))}}function h(t){if(r.boundingRect){const{top:n,bottom:o,left:s,right:a}=r.boundingRect;"touchend"!==t.nativeEvent.type&&e.pauseOnHover&&r.x>=s&&r.x<=a&&r.y>=n&&r.y<=o?v():y()}}function y(){n(!0)}function v(){n(!1)}function T(n){const o=i.current;r.canDrag&&o&&(r.didMove=!0,t&&v(),r.x=E(n),r.y=C(n),r.delta="x"===e.draggableDirection?r.x-r.start:r.y-r.start,r.start!==r.x&&(r.canCloseOnClick=!1),o.style.transform=`translate${e.draggableDirection}(${r.delta}px)`,o.style.opacity=""+(1-Math.abs(r.delta/r.removalDistance)))}function b(){document.removeEventListener("mousemove",T),document.removeEventListener("mouseup",b),document.removeEventListener("touchmove",T),document.removeEventListener("touchend",b);const t=i.current;if(r.canDrag&&r.didMove&&t){if(r.canDrag=!1,Math.abs(r.delta)>r.removalDistance)return a(!0),void e.closeToast();t.style.transition="transform 0.2s, opacity 0.2s",t.style.transform=`translate${e.draggableDirection}(0)`,t.style.opacity="1"}}(0,o.useEffect)((()=>{l.current=e})),(0,o.useEffect)((()=>(i.current&&i.current.addEventListener("d",y,{once:!0}),u(e.onOpen)&&e.onOpen((0,o.isValidElement)(e.children)&&e.children.props),()=>{const e=l.current;u(e.onClose)&&e.onClose((0,o.isValidElement)(e.children)&&e.children.props)})),[]),(0,o.useEffect)((()=>(e.pauseOnFocusLoss&&(document.hasFocus()||v(),window.addEventListener("focus",y),window.addEventListener("blur",v)),()=>{e.pauseOnFocusLoss&&(window.removeEventListener("focus",y),window.removeEventListener("blur",v))})),[e.pauseOnFocusLoss]);const _={onMouseDown:g,onTouchStart:g,onMouseUp:h,onTouchEnd:h};return c&&d&&(_.onMouseEnter=v,_.onMouseLeave=y),m&&(_.onClick=e=>{f&&f(e),r.canCloseOnClick&&p()}),{playToast:y,pauseToast:v,isRunning:t,preventExitTransition:s,toastRef:i,eventHandlers:_}}function _(e){let{closeToast:t,theme:n,ariaLabel:o="close"}=e;return s().createElement("button",{className:`Toastify__close-button Toastify__close-button--${n}`,type:"button",onClick:e=>{e.stopPropagation(),t(e)},"aria-label":o},s().createElement("svg",{"aria-hidden":"true",viewBox:"0 0 14 16"},s().createElement("path",{fillRule:"evenodd",d:"M7.71 8.23l3.75 3.75-1.48 1.48-3.75-3.75-3.75 3.75L1 11.98l3.75-3.75L1 4.48 2.48 3l3.75 3.75L9.98 3l1.48 1.48-3.75 3.75z"})))}function I(e){let{delay:t,isRunning:n,closeToast:o,type:a="default",hide:i,className:l,style:c,controlledProgress:d,progress:p,rtl:f,isIn:m,theme:g}=e;const h=i||d&&0===p,y={...c,animationDuration:`${t}ms`,animationPlayState:n?"running":"paused",opacity:h?0:1};d&&(y.transform=`scaleX(${p})`);const v=r("Toastify__progress-bar",d?"Toastify__progress-bar--controlled":"Toastify__progress-bar--animated",`Toastify__progress-bar-theme--${g}`,`Toastify__progress-bar--${a}`,{"Toastify__progress-bar--rtl":f}),T=u(l)?l({rtl:f,type:a,defaultClassName:v}):r(v,l);return s().createElement("div",{role:"progressbar","aria-hidden":h?"true":"false","aria-label":"notification timer",className:T,style:y,[d&&p>=1?"onTransitionEnd":"onAnimationEnd"]:d&&p<1?null:()=>{m&&o()}})}const L=e=>{const{isRunning:t,preventExitTransition:n,toastRef:a,eventHandlers:i}=b(e),{closeButton:l,children:c,autoClose:d,onClick:p,type:f,hideProgressBar:m,closeToast:g,transition:h,position:y,className:v,style:T,bodyClassName:E,bodyStyle:C,progressClassName:L,progressStyle:O,updateId:N,role:R,progress:w,rtl:k,toastId:M,deleteToast:x,isIn:$,isLoading:B,iconOut:P,closeOnClick:A,theme:D}=e,z=r("Toastify__toast",`Toastify__toast-theme--${D}`,`Toastify__toast--${f}`,{"Toastify__toast--rtl":k},{"Toastify__toast--close-on-click":A}),F=u(v)?v({rtl:k,position:y,type:f,defaultClassName:z}):r(z,v),S=!!w||!d,H={closeToast:g,type:f,theme:D};let q=null;return!1===l||(q=u(l)?l(H):(0,o.isValidElement)(l)?(0,o.cloneElement)(l,H):_(H)),s().createElement(h,{isIn:$,done:x,position:y,preventExitTransition:n,nodeRef:a},s().createElement("div",{id:M,onClick:p,className:F,...i,style:T,ref:a},s().createElement("div",{...$&&{role:R},className:u(E)?E({type:f}):r("Toastify__toast-body",E),style:C},null!=P&&s().createElement("div",{className:r("Toastify__toast-icon",{"Toastify--animate-icon Toastify__zoom-enter":!B})},P),s().createElement("div",null,c)),q,s().createElement(I,{...N&&!S?{key:`pb-${N}`}:{},rtl:k,theme:D,delay:d,isRunning:t,isIn:$,closeToast:g,hide:m,type:f,style:O,className:L,controlledProgress:S,progress:w||0})))},O=function(e,t){return void 0===t&&(t=!1),{enter:`Toastify--animate Toastify__${e}-enter`,exit:`Toastify--animate Toastify__${e}-exit`,appendPosition:t}},N=m(O("bounce",!0)),R=m(O("slide",!0)),w=m(O("zoom")),k=m(O("flip")),M=(0,o.forwardRef)(((e,t)=>{const{getToastToRender:n,containerRef:a,isToastActive:i}=T(e),{className:l,style:c,rtl:p,containerId:f}=e;function m(e){const t=r("Toastify__toast-container",`Toastify__toast-container--${e}`,{"Toastify__toast-container--rtl":p});return u(l)?l({position:e,rtl:p,defaultClassName:t}):r(t,d(l))}return(0,o.useEffect)((()=>{t&&(t.current=a.current)}),[]),s().createElement("div",{ref:a,className:"Toastify",id:f},n(((e,t)=>{const n=t.length?{...c}:{...c,pointerEvents:"none"};return s().createElement("div",{className:m(e),style:n,key:`container-${e}`},t.map(((e,n)=>{let{content:o,props:a}=e;return s().createElement(L,{...a,isIn:i(a.toastId),style:{...a.style,"--nth":n+1,"--len":t.length},key:`toast-${a.key}`},o)})))})))}));M.displayName="ToastContainer",M.defaultProps={position:"top-right",transition:N,autoClose:5e3,closeButton:_,pauseOnHover:!0,pauseOnFocusLoss:!0,closeOnClick:!0,draggable:!0,draggablePercent:80,draggableDirection:"x",role:"alert",theme:"light"};let x,$=new Map,B=[],P=1;function A(){return""+P++}function D(e){return e&&(c(e.toastId)||l(e.toastId))?e.toastId:A()}function z(e,t){return $.size>0?h.emit(0,e,t):B.push({content:e,options:t}),t.toastId}function F(e,t){return{...t,type:t&&t.type||e,toastId:D(t)}}function S(e){return(t,n)=>z(t,F(e,n))}function H(e,t){return z(e,F("default",t))}H.loading=(e,t)=>z(e,F("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...t})),H.promise=function(e,t,n){let o,{pending:s,error:a,success:i}=t;s&&(o=c(s)?H.loading(s,n):H.loading(s.render,{...n,...s}));const r={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null,delay:100},l=(e,t,s)=>{if(null==t)return void H.dismiss(o);const a={type:e,...r,...n,data:s},i=c(t)?{render:t}:t;return o?H.update(o,{...a,...i}):H(i.render,{...a,...i}),s},d=u(e)?e():e;return d.then((e=>l("success",i,e))).catch((e=>l("error",a,e))),d},H.success=S("success"),H.info=S("info"),H.error=S("error"),H.warning=S("warning"),H.warn=H.warning,H.dark=(e,t)=>z(e,F("default",{theme:"dark",...t})),H.dismiss=e=>{$.size>0?h.emit(1,e):B=B.filter((t=>null!=e&&t.options.toastId!==e))},H.clearWaitingQueue=function(e){return void 0===e&&(e={}),h.emit(5,e)},H.isActive=e=>{let t=!1;return $.forEach((n=>{n.isToastActive&&n.isToastActive(e)&&(t=!0)})),t},H.update=function(e,t){void 0===t&&(t={}),setTimeout((()=>{const n=function(e,t){let{containerId:n}=t;const o=$.get(n||x);return o&&o.getToast(e)}(e,t);if(n){const{props:o,content:s}=n,a={...o,...t,toastId:t.toastId||e,updateId:A()};a.toastId!==e&&(a.staleId=e);const i=a.render||s;delete a.render,z(i,a)}}),0)},H.done=e=>{H.update(e,{progress:1})},H.onChange=e=>(h.on(4,e),()=>{h.off(4,e)}),H.POSITION={TOP_LEFT:"top-left",TOP_RIGHT:"top-right",TOP_CENTER:"top-center",BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",BOTTOM_CENTER:"bottom-center"},H.TYPE={INFO:"info",SUCCESS:"success",WARNING:"warning",ERROR:"error",DEFAULT:"default"},h.on(2,(e=>{x=e.containerId||e,$.set(x,e),B.forEach((e=>{h.emit(0,e.content,e.options)})),B=[]})).on(3,(e=>{$.delete(e.containerId||e),0===$.size&&h.off(0).off(1).off(5)}))}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/7390.8253478b90f756692702.js b/bootcamp/share/jupyter/lab/static/7390.8253478b90f756692702.js new file mode 100644 index 0000000..e7bb367 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/7390.8253478b90f756692702.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7390],{87390:(e,_,I)=>{I.r(_);I.d(_,{ntriples:()=>t});var R={PRE_SUBJECT:0,WRITING_SUB_URI:1,WRITING_BNODE_URI:2,PRE_PRED:3,WRITING_PRED_URI:4,PRE_OBJ:5,WRITING_OBJ_URI:6,WRITING_OBJ_BNODE:7,WRITING_OBJ_LITERAL:8,WRITING_LIT_LANG:9,WRITING_LIT_TYPE:10,POST_OBJ:11,ERROR:12};function r(e,_){var I=e.location;var r;if(I==R.PRE_SUBJECT&&_=="<")r=R.WRITING_SUB_URI;else if(I==R.PRE_SUBJECT&&_=="_")r=R.WRITING_BNODE_URI;else if(I==R.PRE_PRED&&_=="<")r=R.WRITING_PRED_URI;else if(I==R.PRE_OBJ&&_=="<")r=R.WRITING_OBJ_URI;else if(I==R.PRE_OBJ&&_=="_")r=R.WRITING_OBJ_BNODE;else if(I==R.PRE_OBJ&&_=='"')r=R.WRITING_OBJ_LITERAL;else if(I==R.WRITING_SUB_URI&&_==">")r=R.PRE_PRED;else if(I==R.WRITING_BNODE_URI&&_==" ")r=R.PRE_PRED;else if(I==R.WRITING_PRED_URI&&_==">")r=R.PRE_OBJ;else if(I==R.WRITING_OBJ_URI&&_==">")r=R.POST_OBJ;else if(I==R.WRITING_OBJ_BNODE&&_==" ")r=R.POST_OBJ;else if(I==R.WRITING_OBJ_LITERAL&&_=='"')r=R.POST_OBJ;else if(I==R.WRITING_LIT_LANG&&_==" ")r=R.POST_OBJ;else if(I==R.WRITING_LIT_TYPE&&_==">")r=R.POST_OBJ;else if(I==R.WRITING_OBJ_LITERAL&&_=="@")r=R.WRITING_LIT_LANG;else if(I==R.WRITING_OBJ_LITERAL&&_=="^")r=R.WRITING_LIT_TYPE;else if(_==" "&&(I==R.PRE_SUBJECT||I==R.PRE_PRED||I==R.PRE_OBJ||I==R.POST_OBJ))r=I;else if(I==R.POST_OBJ&&_==".")r=R.PRE_SUBJECT;else r=R.ERROR;e.location=r}const t={name:"ntriples",startState:function(){return{location:R.PRE_SUBJECT,uris:[],anchors:[],bnodes:[],langs:[],types:[]}},token:function(e,_){var I=e.next();if(I=="<"){r(_,I);var R="";e.eatWhile((function(e){if(e!="#"&&e!=">"){R+=e;return true}return false}));_.uris.push(R);if(e.match("#",false))return"variable";e.next();r(_,">");return"variable"}if(I=="#"){var t="";e.eatWhile((function(e){if(e!=">"&&e!=" "){t+=e;return true}return false}));_.anchors.push(t);return"url"}if(I==">"){r(_,">");return"variable"}if(I=="_"){r(_,I);var i="";e.eatWhile((function(e){if(e!=" "){i+=e;return true}return false}));_.bnodes.push(i);e.next();r(_," ");return"builtin"}if(I=='"'){r(_,I);e.eatWhile((function(e){return e!='"'}));e.next();if(e.peek()!="@"&&e.peek()!="^"){r(_,'"')}return"string"}if(I=="@"){r(_,"@");var n="";e.eatWhile((function(e){if(e!=" "){n+=e;return true}return false}));_.langs.push(n);e.next();r(_," ");return"string.special"}if(I=="^"){e.next();r(_,"^");var T="";e.eatWhile((function(e){if(e!=">"){T+=e;return true}return false}));_.types.push(T);e.next();r(_,">");return"variable"}if(I==" "){r(_,I)}if(I=="."){r(_,I)}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/745.85516a9bb83bcd94d00d.js b/bootcamp/share/jupyter/lab/static/745.85516a9bb83bcd94d00d.js new file mode 100644 index 0000000..37ac86e --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/745.85516a9bb83bcd94d00d.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[745,9265,7245],{20745:(a,e,t)=>{var p;var r=t(31051);if(true){e.s=r.createRoot;p=r.hydrateRoot}else{var o}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/7451.c0257dbfdd320e2c21f5.js b/bootcamp/share/jupyter/lab/static/7451.c0257dbfdd320e2c21f5.js new file mode 100644 index 0000000..9952051 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/7451.c0257dbfdd320e2c21f5.js @@ -0,0 +1,2 @@ +/*! For license information please see 7451.c0257dbfdd320e2c21f5.js.LICENSE.txt */ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7451],{76672:u=>{const e={mode:"lazy"};u.exports=e},50045:(u,e,r)=>{const d=r(76672);const a=r(32666);const t=r(16262);const n=new WeakMap;function f(u){return d.mode==="spec-compliant"?c(this,u):i(this,u)}function i(u,e){const r=u.lastIndex;const d=a.call(u,e);if(d===null)return null;let t;Object.defineProperty(d,"indices",{enumerable:true,configurable:true,get(){if(t===undefined){const{measurementRegExp:n,groupInfos:f}=o(u);n.lastIndex=r;const i=a.call(n,e);if(i===null)throw new TypeError;l(d,"indices",t=s(i,f))}return t},set(u){l(d,"indices",u)}});return d}function c(u,e){const{measurementRegExp:r,groupInfos:d}=o(u);r.lastIndex=u.lastIndex;const t=a.call(r,e);if(t===null)return null;u.lastIndex=r.lastIndex;const n=[];l(n,0,t[0]);for(const a of d){l(n,a.oldGroupNumber,t[a.newGroupNumber])}l(n,"index",t.index);l(n,"input",t.input);l(n,"groups",t.groups);l(n,"indices",s(t,d));return n}function o(u){let e=n.get(u);if(!e){e=T(t.parse(`/${u.source}/${u.flags}`));n.set(u,e)}const r=e.getExtra();const d=e.toRegExp();return{measurementRegExp:d,groupInfos:r}}function s(u,e){const r=u.index;const d=r+u[0].length;const a=!!u.groups;const t=[];const n=a?Object.create(null):undefined;l(t,0,[r,d]);for(const f of e){let e;if(u[f.newGroupNumber]!==undefined){let d=r;if(f.measurementGroups){for(const e of f.measurementGroups){d+=u[e].length}}const a=d+u[f.newGroupNumber].length;e=[d,a]}l(t,f.oldGroupNumber,e);if(n&&f.groupName!==undefined){l(n,f.groupName,e)}}l(t,"groups",n);return t}function l(u,e,r){const d=Object.getOwnPropertyDescriptor(u,e);if(d?d.configurable:Object.isExtensible(u)){const a={enumerable:d?d.enumerable:true,configurable:d?d.configurable:true,writable:true,value:r};Object.defineProperty(u,e,a)}}let b;let p=false;let h=new Set;let v=[];let g=false;let y=1;let m=[];let _=new Map;let C=new Map;const S={init(){p=false;h.clear();v.length=0;g=false;y=1;m.length=0;_.clear();C.clear();b=[]},RegExp(u){t.traverse(u.node,A);if(h.size>0){t.transform(u.node,k);t.transform(u.node,P);if(p){t.transform(u.node,w)}}return false}};const x={pre(u){v.push(g);g=u.node.type==="Group"&&u.node.capturing},post(u){if(g){h.add(u.node)}g=v.pop()||g}};const A={Alternative:x,Disjunction:x,Assertion:x,Group:x,Repetition:x,Backreference(u){p=true}};const k={Alternative(u){if(h.has(u.node)){let e=0;let r=[];const d=[];const a=[];for(let n=0;ne){const u={type:"Group",capturing:true,number:-1,expression:r.length>1?{type:"Alternative",expressions:r}:r.length===1?r[0]:null};a.push(u);d.push(u);e=n;r=[]}m.push(d);t.transform(f,k);m.pop();r.push(f);continue}r.push(f)}u.update({expressions:a.concat(r)})}return false},Group(u){if(!u.node.capturing)return;_.set(u.node,E())}};const P={Group(u){if(!b)throw new Error("Not initialized.");if(!u.node.capturing)return;const e=u.node.number;const r=y++;const d=_.get(u.node);if(e!==-1){b.push({oldGroupNumber:e,newGroupNumber:r,measurementGroups:d&&d.map((u=>u.number)),groupName:u.node.name});C.set(e,r)}u.update({number:r})}};const w={Backreference(u){const e=C.get(u.node.number);if(e){if(u.node.kind==="number"){u.update({number:e,reference:e})}else{u.update({number:e})}}}};function E(){const u=[];for(const e of m){for(const r of e){u.push(r)}}return u}function T(u){const e=t.transform(u,S);return new t.TransformResult(e.getAST(),b)}u.exports=f},77451:(u,e,r)=>{const d=r(50045);const a=r(32666);const t=r(98468);const n=r(19698);const f=r(76672);const i=t();function c(u,e){return i.call(u,e)}c.implementation=d;c.native=a;c.getPolyfill=t;c.shim=n;c.config=f;(function(u){})(c||(c={}));u.exports=c},32666:u=>{const e=RegExp.prototype.exec;u.exports=e},98468:(u,e,r)=>{const d=r(32666);const a=r(50045);function t(){const u=new RegExp("a");const e=d.call(u,"a");if(e.indices){return d}return a}u.exports=t},19698:(u,e,r)=>{const d=r(98468);function a(){const u=d();if(RegExp.prototype.exec!==u){RegExp.prototype.exec=u}}u.exports=a},78355:(u,e,r)=>{var d=r(1264);var a=r(60045);u.exports={transform:function u(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var t=r.length>0?r:Object.keys(d);var n=void 0;var f={};t.forEach((function(u){if(!d.hasOwnProperty(u)){throw new Error("Unknown compat-transform: "+u+". "+"Available transforms are: "+Object.keys(d).join(", "))}var r=d[u];n=a.transform(e,r);e=n.getAST();if(typeof r.getExtra==="function"){f[u]=r.getExtra()}}));n.setExtra(f);return n}}},77460:u=>{var e=function(){function u(u,e){for(var r=0;r{u.exports={_hasUFlag:false,shouldRun:function u(e){var u=e.flags.includes("s");if(!u){return false}e.flags=e.flags.replace("s","");this._hasUFlag=e.flags.includes("u");return true},Char:function u(e){var r=e.node;if(r.kind!=="meta"||r.value!=="."){return}var d="\\uFFFF";var a="￿";if(this._hasUFlag){d="\\u{10FFFF}";a="􏿿"}e.replace({type:"CharacterClass",expressions:[{type:"ClassRange",from:{type:"Char",value:"\\0",kind:"decimal",symbol:"\0"},to:{type:"Char",value:d,kind:"unicode",symbol:a}}]})}}},305:u=>{u.exports={_groupNames:{},init:function u(){this._groupNames={}},getExtra:function u(){return this._groupNames},Group:function u(e){var r=e.node;if(!r.name){return}this._groupNames[r.name]=r.number;delete r.name;delete r.nameRaw},Backreference:function u(e){var r=e.node;if(r.kind!=="name"){return}r.kind="number";r.reference=r.number;delete r.referenceRaw}}},96437:u=>{u.exports={RegExp:function u(e){var r=e.node;if(r.flags.includes("x")){r.flags=r.flags.replace("x","")}}}},1264:(u,e,r)=>{u.exports={dotAll:r(98708),namedCapturingGroups:r(305),xFlag:r(96437)}},89702:u=>{function e(u){return u?r[u.type](u):""}var r={RegExp:function u(r){return"/"+e(r.body)+"/"+r.flags},Alternative:function u(r){return(r.expressions||[]).map(e).join("")},Disjunction:function u(r){return e(r.left)+"|"+e(r.right)},Group:function u(r){var d=e(r.expression);if(r.capturing){if(r.name){return"(?<"+(r.nameRaw||r.name)+">"+d+")"}return"("+d+")"}return"(?:"+d+")"},Backreference:function u(e){switch(e.kind){case"number":return"\\"+e.reference;case"name":return"\\k<"+(e.referenceRaw||e.reference)+">";default:throw new TypeError("Unknown Backreference kind: "+e.kind)}},Assertion:function u(r){switch(r.kind){case"^":case"$":case"\\b":case"\\B":return r.kind;case"Lookahead":{var d=e(r.assertion);if(r.negative){return"(?!"+d+")"}return"(?="+d+")"}case"Lookbehind":{var a=e(r.assertion);if(r.negative){return"(?{var e=function(){function u(u,e){var r=[];var d=true;var a=false;var t=undefined;try{for(var n=u[Symbol.iterator](),f;!(d=(f=n.next()).done);d=true){r.push(f.value);if(e&&r.length===e)break}}catch(i){a=true;t=i}finally{try{if(!d&&n["return"])n["return"]()}finally{if(a)throw t}}return r}return function(e,r){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return u(e,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();function r(u){return Array.isArray(u)?u:Array.from(u)}function d(u){if(Array.isArray(u)){for(var e=0,r=Array(u.length);e0}))];var b=void 0;var p=void 0;b=l[l.length-1];p=l[l.length-2];var h=function u(){var e={};var n=true;var i=false;var o=undefined;try{for(var s=b[Symbol.iterator](),h;!(n=(h=s.next()).done);n=true){var v=h.value;var g={};var y=r(v),m=y[0],_=y.slice(1);g[m]=new Set([m]);var C=true;var S=false;var x=undefined;try{u:for(var A=_[Symbol.iterator](),k;!(C=(k=A.next()).done);C=true){var P=k.value;var w=true;var E=false;var T=undefined;try{for(var O=Object.keys(g)[Symbol.iterator](),R;!(w=(R=O.next()).done);w=true){var N=R.value;if(f(P,N,t,c)){g[N].add(P);g[P]=g[N];continue u}}}catch(I){E=true;T=I}finally{try{if(!w&&O.return){O.return()}}finally{if(E){throw T}}}g[P]=new Set([P])}}catch(I){S=true;x=I}finally{try{if(!C&&A.return){A.return()}}finally{if(S){throw x}}}Object.assign(e,g)}}catch(I){i=true;o=I}finally{try{if(!n&&s.return){s.return()}}finally{if(i){throw o}}}a=e;var L=new Set(Object.keys(e).map((function(u){return e[u]})));l.push([].concat(d(L)));b=l[l.length-1];p=l[l.length-2]};while(!n(b,p)){h()}var v=new Map;var g=1;b.forEach((function(u){return v.set(u,g++)}));var y={};var m=new Set;var _=function u(e,r){var d=true;var a=false;var t=undefined;try{for(var n=e[Symbol.iterator](),f;!(d=(f=n.next()).done);d=true){var i=f.value;if(o.has(i)){m.add(r)}}}catch(c){a=true;t=c}finally{try{if(!d&&n.return){n.return()}}finally{if(a){throw t}}}};var C=true;var S=false;var x=undefined;try{for(var A=v.entries()[Symbol.iterator](),k;!(C=(k=A.next()).done);C=true){var P=k.value;var w=e(P,2);var E=w[0];var T=w[1];y[T]={};var O=true;var R=false;var N=undefined;try{for(var L=c[Symbol.iterator](),I;!(O=(I=L.next()).done);O=true){var F=I.value;_(E,T);var D=void 0;var M=true;var G=false;var j=undefined;try{for(var B=E[Symbol.iterator](),U;!(M=(U=B.next()).done);M=true){var H=U.value;D=t[H][F];if(D){break}}}catch(q){G=true;j=q}finally{try{if(!M&&B.return){B.return()}}finally{if(G){throw j}}}if(D){y[T][F]=v.get(a[D])}}}catch(q){R=true;N=q}finally{try{if(!O&&L.return){L.return()}}finally{if(R){throw N}}}}}catch(q){S=true;x=q}finally{try{if(!C&&A.return){A.return()}}finally{if(S){throw x}}}u.setTransitionTable(y);u.setAcceptingStateNumbers(m);return u}function n(u,e){if(!e){return false}if(u.length!==e.length){return false}for(var r=0;r{var d=function(){function u(u,e){for(var r=0;r0){var l=n.shift();var b=l.join(",");o[b]={};var p=true;var h=false;var v=undefined;try{for(var g=f[Symbol.iterator](),y;!(p=(y=g.next()).done);p=true){var m=y.value;var _=[];s(l);var C=true;var S=false;var x=undefined;try{for(var A=l[Symbol.iterator](),k;!(C=(k=A.next()).done);C=true){var P=k.value;var w=r[P][m];if(!w){continue}var E=true;var T=false;var O=undefined;try{for(var R=w[Symbol.iterator](),N;!(E=(N=R.next()).done);E=true){var L=N.value;if(!r[L]){continue}_.push.apply(_,a(r[L][i]))}}catch(M){T=true;O=M}finally{try{if(!E&&R.return){R.return()}}finally{if(T){throw O}}}}}catch(M){S=true;x=M}finally{try{if(!C&&A.return){A.return()}}finally{if(S){throw x}}}var I=new Set(_);var F=[].concat(a(I));if(F.length>0){var D=F.join(",");o[b][m]=D;if(!o.hasOwnProperty(D)){n.unshift(F)}}}}catch(M){h=true;v=M}finally{try{if(!p&&g.return){g.return()}}finally{if(h){throw v}}}}return this._transitionTable=this._remapStateNumbers(o)}},{key:"_remapStateNumbers",value:function u(e){var r={};this._originalTransitionTable=e;var d={};Object.keys(e).forEach((function(u,e){r[u]=e+1}));for(var a in e){var t=e[a];var n={};for(var f in t){n[f]=r[t[f]]}d[r[a]]=n}this._originalAcceptingStateNumbers=this._acceptingStateNumbers;this._acceptingStateNumbers=new Set;var i=true;var c=false;var o=undefined;try{for(var s=this._originalAcceptingStateNumbers[Symbol.iterator](),l;!(i=(l=s.next()).done);i=true){var b=l.value;this._acceptingStateNumbers.add(r[b])}}catch(p){c=true;o=p}finally{try{if(!i&&s.return){s.return()}}finally{if(c){throw o}}}return d}},{key:"getOriginalTransitionTable",value:function u(){if(!this._originalTransitionTable){this.getTransitionTable()}return this._originalTransitionTable}},{key:"matches",value:function u(e){var r=1;var d=0;var a=this.getTransitionTable();while(e[d]){r=a[r][e[d++]];if(!r){return false}}if(!this.getAcceptingStateNumbers().has(r)){return false}return true}}]);return u}();u.exports=c},22722:(u,e,r)=>{var d=r(95050);var a=r(13158);var t=r(39761);var n=r(2970);u.exports={NFA:d,DFA:a,builders:n,toNFA:function u(e){return t.build(e)},toDFA:function u(e){return new a(this.toNFA(e))},test:function u(e,r){return this.toDFA(e).matches(r)}}},2970:(u,e,r)=>{var d=r(95050);var a=r(81115);var t=r(3341),n=t.EPSILON;function f(u){var e=new a;var r=new a({accepting:true});return new d(e.addTransition(u,r),r)}function i(){return f(n)}function c(u,e){u.out.accepting=false;e.out.accepting=true;u.out.addTransition(n,e.in);return new d(u.in,e.out)}function o(u){for(var e=arguments.length,r=Array(e>1?e-1:0),d=1;d1?e-1:0),d=1;d{function d(u){if(Array.isArray(u)){for(var e=0,r=Array(u.length);e{var d=function(){function u(u,e){for(var r=0;r1&&arguments[1]!==undefined?arguments[1]:new Set;if(r.has(this)){return false}r.add(this);if(e.length===0){if(this.accepting){return true}var d=true;var a=false;var t=undefined;try{for(var n=this.getTransitionsOnSymbol(c)[Symbol.iterator](),f;!(d=(f=n.next()).done);d=true){var i=f.value;if(i.matches("",r)){return true}}}catch(k){a=true;t=k}finally{try{if(!d&&n.return){n.return()}}finally{if(a){throw t}}}return false}var o=e[0];var s=e.slice(1);var l=this.getTransitionsOnSymbol(o);var b=true;var p=false;var h=undefined;try{for(var v=l[Symbol.iterator](),g;!(b=(g=v.next()).done);b=true){var y=g.value;if(y.matches(s)){return true}}}catch(k){p=true;h=k}finally{try{if(!b&&v.return){v.return()}}finally{if(p){throw h}}}var m=true;var _=false;var C=undefined;try{for(var S=this.getTransitionsOnSymbol(c)[Symbol.iterator](),x;!(m=(x=S.next()).done);m=true){var A=x.value;if(A.matches(e,r)){return true}}}catch(k){_=true;C=k}finally{try{if(!m&&S.return){S.return()}}finally{if(_){throw C}}}return false}},{key:"getEpsilonClosure",value:function u(){var e=this;if(!this._epsilonClosure){(function(){var u=e.getTransitionsOnSymbol(c);var r=e._epsilonClosure=new Set;r.add(e);var d=true;var a=false;var t=undefined;try{for(var n=u[Symbol.iterator](),f;!(d=(f=n.next()).done);d=true){var i=f.value;if(!r.has(i)){r.add(i);var o=i.getEpsilonClosure();o.forEach((function(u){return r.add(u)}))}}}catch(s){a=true;t=s}finally{try{if(!d&&n.return){n.return()}}finally{if(a){throw t}}}})()}return this._epsilonClosure}}]);return e}(f);u.exports=o},95050:(u,e,r)=>{var d=function(){function u(u,e){var r=[];var d=true;var a=false;var t=undefined;try{for(var n=u[Symbol.iterator](),f;!(d=(f=n.next()).done);d=true){r.push(f.value);if(e&&r.length===e)break}}catch(i){a=true;t=i}finally{try{if(!d&&n["return"])n["return"]()}finally{if(a)throw t}}return r}return function(e,r){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return u(e,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();var a=function(){function u(u,e){for(var r=0;r{var e="ε";var r=e+"*";u.exports={EPSILON:e,EPSILON_CLOSURE:r}},74128:u=>{var e=function(){function u(u,e){for(var r=0;r0&&arguments[0]!==undefined?arguments[0]:{},d=e.accepting,a=d===undefined?false:d;r(this,u);this._transitions=new Map;this.accepting=a}e(u,[{key:"getTransitions",value:function u(){return this._transitions}},{key:"addTransition",value:function u(e,r){this.getTransitionsOnSymbol(e).add(r);return this}},{key:"getTransitionsOnSymbol",value:function u(e){var r=this._transitions.get(e);if(!r){r=new Set;this._transitions.set(e,r)}return r}}]);return u}();u.exports=d},47393:(u,e,r)=>{var d=r(60689);var a=r(37112);var t=r(60045);var n=r(55319);u.exports={optimize:function u(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},f=r.whitelist,i=f===undefined?[]:f,c=r.blacklist,o=c===undefined?[]:c;var s=i.length>0?i:Array.from(n.keys());var l=s.filter((function(u){return!o.includes(u)}));var b=e;if(e instanceof RegExp){e=""+e}if(typeof e==="string"){b=a.parse(e)}var p=new t.TransformResult(b);var h=void 0;do{h=p.toString();b=d(p.getAST());l.forEach((function(u){if(!n.has(u)){throw new Error("Unknown optimization-transform: "+u+". "+"Available transforms are: "+Array.from(n.keys()).join(", "))}var e=n.get(u);var r=t.transform(b,e);if(r.toString()!==p.toString()){if(r.toString().length<=p.toString().length){p=r}else{b=d(p.getAST())}}}))}while(p.toString()!==h);return p}}},98327:u=>{var e="A".codePointAt(0);var r="Z".codePointAt(0);u.exports={_AZClassRanges:null,_hasUFlag:false,init:function u(e){this._AZClassRanges=new Set;this._hasUFlag=e.flags.includes("u")},shouldRun:function u(e){return e.flags.includes("i")},Char:function u(e){var r=e.node,t=e.parent;if(isNaN(r.codePoint)){return}if(!this._hasUFlag&&r.codePoint>=4096){return}if(t.type==="ClassRange"){if(!this._AZClassRanges.has(t)&&!d(t)){return}this._AZClassRanges.add(t)}var n=r.symbol.toLowerCase();if(n!==r.symbol){r.value=a(n,r);r.symbol=n;r.codePoint=n.codePointAt(0)}}};function d(u){var d=u.from,a=u.to;return d.codePoint>=e&&d.codePoint<=r&&a.codePoint>=e&&a.codePoint<=r}function a(u,e){var r=u.codePointAt(0);if(e.kind==="decimal"){return"\\"+r}if(e.kind==="oct"){return"\\0"+r.toString(8)}if(e.kind==="hex"){return"\\x"+r.toString(16)}if(e.kind==="unicode"){if(e.isSurrogatePair){var d=t(r),a=d.lead,n=d.trail;return"\\u"+"0".repeat(4-a.length)+a+"\\u"+"0".repeat(4-n.length)+n}else if(e.value.includes("{")){return"\\u{"+r.toString(16)+"}"}else{var f=r.toString(16);return"\\u"+"0".repeat(4-f.length)+f}}return u}function t(u){var e=Math.floor((u-65536)/1024)+55296;var r=(u-65536)%1024+56320;return{lead:e.toString(16),trail:r.toString(16)}}},52445:u=>{u.exports={_hasIUFlags:false,init:function u(e){this._hasIUFlags=e.flags.includes("i")&&e.flags.includes("u")},CharacterClass:function u(r){var a=r.node;var n=a.expressions;var f=[];n.forEach((function(u){if(d(u)){f.push(u.value)}}));n.sort(e);for(var i=0;i1&&arguments[1]!==undefined?arguments[1]:null;return u.type==="Char"&&u.kind==="meta"&&(e?u.value===e:/^\\[dws]$/i.test(u.value))}function a(u){return u.type==="Char"&&u.kind==="control"}function t(u,e,r){for(var d=0;d=8192&&u.codePoint<=8202||u.codePoint===8232||u.codePoint===8233||u.codePoint===8239||u.codePoint===8287||u.codePoint===12288||u.codePoint===65279}function i(u){return u.codePoint>=48&&u.codePoint<=57}function c(u,e){return i(u)||u.codePoint>=65&&u.codePoint<=90||u.codePoint>=97&&u.codePoint<=122||u.value==="_"||e&&(u.codePoint===383||u.codePoint===8490)}function o(u,e){if(e&&e.type==="ClassRange"){if(l(u,e)){return true}else if(p(u)&&e.to.codePoint===u.codePoint-1){e.to=u;return true}else if(u.type==="ClassRange"&&u.from.codePoint<=e.to.codePoint+1&&u.to.codePoint>=e.from.codePoint-1){if(u.from.codePointe.to.codePoint){e.to=u.to}return true}}return false}function s(u,e){if(e&&e.type==="ClassRange"){if(p(u)&&e.from.codePoint===u.codePoint+1){e.from=u;return true}}return false}function l(u,e){if(u.type==="Char"&&isNaN(u.codePoint)){return false}if(u.type==="ClassRange"){return l(u.from,e)&&l(u.to,e)}return u.codePoint>=e.from.codePoint&&u.codePoint<=e.to.codePoint}function b(u,e,r){if(!p(u)){return 0}var d=0;while(e>0){var a=r[e];var t=r[e-1];if(p(t)&&t.codePoint===a.codePoint-1){d++;e--}else{break}}if(d>1){r[e]={type:"ClassRange",from:r[e],to:u};return d}return 0}function p(u){return u&&u.type==="Char"&&!isNaN(u.codePoint)&&(c(u,false)||u.kind==="unicode"||u.kind==="hex"||u.kind==="oct"||u.kind==="decimal")}},54122:u=>{u.exports={ClassRange:function u(e){var r=e.node;if(r.from.codePoint===r.to.codePoint){e.replace(r.from)}else if(r.from.codePoint===r.to.codePoint-1){e.getParent().insertChildAt(r.to,e.index+1);e.replace(r.from)}}}},71216:u=>{u.exports={CharacterClass:function u(e){var r=e.node;var d={};for(var a=0;a{function e(u){if(Array.isArray(u)){for(var e=0,r=Array(u.length);e2&&arguments[2]!==undefined?arguments[2]:"simple";return u.type==="Char"&&u.value===e&&u.kind===r}function i(u,e){return f(u,e,"meta")}function c(u){return u.type==="ClassRange"&&u.from.value==="a"&&u.to.value==="z"}function o(u){return u.type==="ClassRange"&&u.from.value==="A"&&u.to.value==="Z"}function s(u){return u.type==="Char"&&u.value==="_"&&u.kind==="simple"}function l(u,e){return u.type==="Char"&&u.kind==="unicode"&&u.codePoint===e}},1949:u=>{u.exports={CharacterClass:function u(n){var f=n.node;if(f.expressions.length!==1||!a(n)||!e(f.expressions[0])){return}var i=f.expressions[0],c=i.value,o=i.kind,s=i.escaped;if(f.negative){if(!r(c)){return}c=d(c)}n.replace({type:"Char",value:c,kind:o,escaped:s||t(c)})}};function e(u){return u.type==="Char"&&u.value!=="\\b"}function r(u){return/^\\[dwsDWS]$/.test(u)}function d(u){return/[dws]/.test(u)?u.toUpperCase():u.toLowerCase()}function a(u){var e=u.parent,r=u.index;if(e.type!=="Alternative"){return true}var d=e.expressions[r-1];if(d==null){return true}if(d.type==="Backreference"&&d.kind==="number"){return false}if(d.type==="Char"&&d.kind==="decimal"){return false}return true}function t(u){return/[*[()+?$./{}|]/.test(u)}},57335:u=>{var e="A".codePointAt(0);var r="Z".codePointAt(0);var d="a".codePointAt(0);var a="z".codePointAt(0);var t="0".codePointAt(0);var n="9".codePointAt(0);u.exports={Char:function u(e){var r=e.node,d=e.parent;if(isNaN(r.codePoint)||r.kind==="simple"){return}if(d.type==="ClassRange"){if(!f(d)){return}}if(!i(r.codePoint)){return}var a=String.fromCodePoint(r.codePoint);var t={type:"Char",kind:"simple",value:a,symbol:a,codePoint:r.codePoint};if(c(a,d.type)){t.escaped=true}e.replace(t)}};function f(u){var f=u.from,i=u.to;return f.codePoint>=t&&f.codePoint<=n&&i.codePoint>=t&&i.codePoint<=n||f.codePoint>=e&&f.codePoint<=r&&i.codePoint>=e&&i.codePoint<=r||f.codePoint>=d&&f.codePoint<=a&&i.codePoint>=d&&i.codePoint<=a}function i(u){return u>=32&&u<=126}function c(u,e){if(e==="ClassRange"||e==="CharacterClass"){return/[\]\\^-]/.test(u)}return/[*[()+?^$./\\|{}]/.test(u)}},29141:u=>{u.exports={_hasXFlag:false,init:function u(e){this._hasXFlag=e.flags.includes("x")},Char:function u(r){var d=r.node;if(!d.escaped){return}if(e(r,this._hasXFlag)){delete d.escaped}}};function e(u,e){var a=u.node.value,t=u.index,n=u.parent;if(n.type!=="CharacterClass"&&n.type!=="ClassRange"){return!d(a,t,n,e)}return!r(a,t,n)}function r(u,e,r){if(u==="^"){return e===0&&!r.negative}if(u==="-"){return true}return/[\]\\]/.test(u)}function d(u,e,r,d){if(u==="{"){return n(e,r)}if(u==="}"){return f(e,r)}if(d&&/[ #]/.test(u)){return true}return/[*[()+?^$./\\|]/.test(u)}function a(u,e,r){var d=u;var a=(r?d>=0:d=0:d=0&&e.expressions[d];if(r&&t(n,"{")){return true}if(t(n,",")){r=a(d-1,e,true);d=d-r-1;n=d{u.exports={shouldRun:function u(e){return e.flags.includes("u")},Char:function u(e){var r=e.node;if(r.kind!=="unicode"||!r.isSurrogatePair||isNaN(r.codePoint)){return}r.value="\\u{"+r.codePoint.toString(16)+"}";delete r.isSurrogatePair}}},61143:(u,e,r)=>{function d(u){if(Array.isArray(u)){for(var e=0,r=Array(u.length);e=r.expressions.length){break}a=e.getChild(d);d=Math.max(1,i(e,a,d));if(d>=r.expressions.length){break}a=e.getChild(d);d=Math.max(1,c(e,a,d));d++}}};function f(u,e,r){var t=u.node;var n=Math.ceil(r/2);var f=0;while(f{var d=r(27762);var a=r(26554),t=a.disjunctionToList,n=a.listToDisjunction;u.exports={Disjunction:function u(e){var r=e.node;var a={};var f=t(r).filter((function(u){var e=u?d.getForNode(u).jsonEncode():"null";if(a.hasOwnProperty(e)){return false}a[e]=u;return true}));e.replace(n(f))}}},40623:u=>{u.exports={Disjunction:function u(d){var a=d.node,t=d.parent;if(!e[t.type]){return}var n=new Map;if(!r(a,n)||!n.size){return}var f={type:"CharacterClass",expressions:Array.from(n.keys()).sort().map((function(u){return n.get(u)}))};e[t.type](d.getParent(),f)}};var e={RegExp:function u(e,r){var d=e.node;d.body=r},Group:function u(e,r){var d=e.node;if(d.capturing){d.expression=r}else{e.replace(r)}}};function r(u,e){if(!u){return false}var d=u.type;if(d==="Disjunction"){var a=u.left,t=u.right;return r(a,e)&&r(t,e)}else if(d==="Char"){var n=u.value;e.set(n,u);return true}else if(d==="CharacterClass"&&!u.negative){return u.expressions.every((function(u){return r(u,e)}))}return false}},55319:(u,e,r)=>{u.exports=new Map([["charSurrogatePairToSingleUnicode",r(93843)],["charCodeToSimpleChar",r(57335)],["charCaseInsensitiveLowerCaseTransform",r(98327)],["charClassRemoveDuplicates",r(71216)],["quantifiersMerge",r(58124)],["quantifierRangeToSymbol",r(81280)],["charClassClassrangesToChars",r(54122)],["charClassToMeta",r(94126)],["charClassToSingleChar",r(1949)],["charEscapeUnescape",r(29141)],["charClassClassrangesMerge",r(52445)],["disjunctionRemoveDuplicates",r(49895)],["groupSingleCharsToCharClass",r(40623)],["removeEmptyGroup",r(22223)],["ungroup",r(14952)],["combineRepeatingPatterns",r(61143)]])},81280:u=>{u.exports={Quantifier:function u(a){var t=a.node;if(t.kind!=="Range"){return}e(a);r(a);d(a)}};function e(u){var e=u.node;if(e.from!==0||e.to){return}e.kind="*";delete e.from}function r(u){var e=u.node;if(e.from!==1||e.to){return}e.kind="+";delete e.from}function d(u){var e=u.node;if(e.from!==1||e.to!==1){return}u.parentPath.replace(u.parentPath.node.expression)}},58124:(u,e,r)=>{var d=r(26554),a=d.increaseQuantifierByOne;u.exports={Repetition:function u(e){var r=e.node,d=e.parent;if(d.type!=="Alternative"||!e.index){return}var f=e.getPreviousSibling();if(!f){return}if(f.node.type==="Repetition"){if(!f.getChild().hasEqualSource(e.getChild())){return}var i=n(f.node.quantifier),c=i.from,o=i.to;var s=n(r.quantifier),l=s.from,b=s.to;if(f.node.quantifier.greedy!==r.quantifier.greedy&&!t(f.node.quantifier)&&!t(r.quantifier)){return}r.quantifier.kind="Range";r.quantifier.from=c+l;if(o&&b){r.quantifier.to=o+b}else{delete r.quantifier.to}if(t(f.node.quantifier)||t(r.quantifier)){r.quantifier.greedy=true}f.remove()}else{if(!f.hasEqualSource(e.getChild())){return}a(r.quantifier);f.remove()}}};function t(u){return u.greedy&&(u.kind==="+"||u.kind==="*"||u.kind==="Range"&&!u.to)}function n(u){var e=void 0,r=void 0;if(u.kind==="*"){e=0}else if(u.kind==="+"){e=1}else if(u.kind==="?"){e=0;r=1}else{e=u.from;if(u.to){r=u.to}}return{from:e,to:r}}},22223:u=>{u.exports={Group:function u(e){var r=e.node,d=e.parent;var a=e.getChild();if(r.capturing||a){return}if(d.type==="Repetition"){e.getParent().replace(r)}else if(d.type!=="RegExp"){e.remove()}}}},14952:u=>{function e(u){if(Array.isArray(u)){for(var e=0,r=Array(u.length);e{var d=function(){function u(u,e){var r=[];var d=true;var a=false;var t=undefined;try{for(var n=u[Symbol.iterator](),f;!(d=(f=n.next()).done);d=true){r.push(f.value);if(e&&r.length===e)break}}catch(i){a=true;t=i}finally{try{if(!d&&n["return"])n["return"]()}finally{if(a)throw t}}return r}return function(e,r){if(Array.isArray(e)){return e}else if(Symbol.iterator in Object(e)){return u(e,r)}else{throw new TypeError("Invalid attempt to destructure non-iterable instance")}}}();function a(u){if(Array.isArray(u)){for(var e=0,r=Array(u.length);e/,function(){var u=t.slice(3,-1);F(u,this.getCurrentState());return"NAMED_GROUP_REF"}],[/^\\b/,function(){return"ESC_b"}],[/^\\B/,function(){return"ESC_B"}],[/^\\c[a-zA-Z]/,function(){return"CTRL_CH"}],[/^\\0\d{1,2}/,function(){return"OCT_CODE"}],[/^\\0/,function(){return"DEC_CODE"}],[/^\\\d{1,3}/,function(){return"DEC_CODE"}],[/^\\u[dD][89abAB][0-9a-fA-F]{2}\\u[dD][c-fC-F][0-9a-fA-F]{2}/,function(){return"U_CODE_SURROGATE"}],[/^\\u\{[0-9a-fA-F]{1,}\}/,function(){return"U_CODE"}],[/^\\u[0-9a-fA-F]{4}/,function(){return"U_CODE"}],[/^\\[pP]\{\w+(?:=\w+)?\}/,function(){return"U_PROP_VALUE_EXP"}],[/^\\x[0-9a-fA-F]{2}/,function(){return"HEX_CODE"}],[/^\\[tnrdDsSwWvf]/,function(){return"META_CHAR"}],[/^\\\//,function(){return"ESC_CHAR"}],[/^\\[ #]/,function(){return"ESC_CHAR"}],[/^\\[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/,function(){return"ESC_CHAR"}],[/^\\[^*?+\[()\\|]/,function(){var u=this.getCurrentState();if(u==="u_class"&&t==="\\-"){return"ESC_CHAR"}else if(u==="u"||u==="xu"||u==="u_class"){throw new SyntaxError("invalid Unicode escape "+t)}return"ESC_CHAR"}],[/^\(/,function(){return"CHAR"}],[/^\)/,function(){return"CHAR"}],[/^\(\?=/,function(){return"POS_LA_ASSERT"}],[/^\(\?!/,function(){return"NEG_LA_ASSERT"}],[/^\(\?<=/,function(){return"POS_LB_ASSERT"}],[/^\(\?/,function(){t=t.slice(3,-1);F(t,this.getCurrentState());return"NAMED_CAPTURE_GROUP"}],[/^\(/,function(){return"L_PAREN"}],[/^\)/,function(){return"R_PAREN"}],[/^[*?+[^$]/,function(){return"CHAR"}],[/^\\\]/,function(){return"ESC_CHAR"}],[/^\]/,function(){this.popState();return"R_BRACKET"}],[/^\^/,function(){return"BOS"}],[/^\$/,function(){return"EOS"}],[/^\*/,function(){return"STAR"}],[/^\?/,function(){return"Q_MARK"}],[/^\+/,function(){return"PLUS"}],[/^\|/,function(){return"BAR"}],[/^\./,function(){return"ANY"}],[/^\//,function(){return"SLASH"}],[/^[^*?+\[()\\|]/,function(){return"CHAR"}],[/^\[\^/,function(){var u=this.getCurrentState();this.pushState(u==="u"||u==="xu"?"u_class":"class");return"NEG_CLASS"}],[/^\[/,function(){var u=this.getCurrentState();this.pushState(u==="u"||u==="xu"?"u_class":"class");return"L_BRACKET"}]];var y={INITIAL:[8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u:[8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],xu:[0,1,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],x:[0,1,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u_class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51]};var m={type:s,value:""};v={initString:function u(e){this._string=e;this._cursor=0;this._states=["INITIAL"];this._tokensQueue=[];this._currentLine=1;this._currentColumn=0;this._currentLineBeginOffset=0;this._tokenStartOffset=0;this._tokenEndOffset=0;this._tokenStartLine=1;this._tokenEndLine=1;this._tokenStartColumn=0;this._tokenEndColumn=0;return this},getStates:function u(){return this._states},getCurrentState:function u(){return this._states[this._states.length-1]},pushState:function u(e){this._states.push(e)},begin:function u(e){this.pushState(e)},popState:function u(){if(this._states.length>1){return this._states.pop()}return this._states[0]},getNextToken:function u(){if(this._tokensQueue.length>0){return this.onToken(this._toToken(this._tokensQueue.shift()))}if(!this.hasMoreTokens()){return this.onToken(m)}var e=this._string.slice(this._cursor);var r=y[this.getCurrentState()];for(var d=0;d0){var l;(l=this._tokensQueue).unshift.apply(l,a(s))}}return this.onToken(this._toToken(o,t))}}if(this.isEOF()){this._cursor++;return m}this.throwUnexpectedToken(e[0],this._currentLine,this._currentColumn)},throwUnexpectedToken:function u(e,r,d){var a=this._string.split("\n")[r-1];var t="";if(a){var n=" ".repeat(d);t="\n\n"+a+"\n"+n+"^\n"}throw new SyntaxError(t+'Unexpected token: "'+e+'" '+("at "+r+":"+d+"."))},getCursor:function u(){return this._cursor},getCurrentLine:function u(){return this._currentLine},getCurrentColumn:function u(){return this._currentColumn},_captureLocation:function u(e){var r=/\n/g;this._tokenStartOffset=this._cursor;this._tokenStartLine=this._currentLine;this._tokenStartColumn=this._tokenStartOffset-this._currentLineBeginOffset;var d=void 0;while((d=r.exec(e))!==null){this._currentLine++;this._currentLineBeginOffset=this._tokenStartOffset+d.index+1}this._tokenEndOffset=this._cursor+e.length;this._tokenEndLine=this._currentLine;this._tokenEndColumn=this._currentColumn=this._tokenEndOffset-this._currentLineBeginOffset},_toToken:function u(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"";return{type:e,value:r,startOffset:this._tokenStartOffset,endOffset:this._tokenEndOffset,startLine:this._tokenStartLine,endLine:this._tokenEndLine,startColumn:this._tokenStartColumn,endColumn:this._tokenEndColumn}},isEOF:function u(){return this._cursor===this._string.length},hasMoreTokens:function u(){return this._cursor<=this._string.length},_match:function u(e,r){var d=e.match(r);if(d){this._captureLocation(d[0]);this._cursor+=d[0].length;return d[0]}return null},onToken:function u(e){return e}};f.lexer=v;f.tokenizer=v;f.options={captureLocations:true};var _={setOptions:function u(e){f.options=e;return this},getOptions:function u(){return f.options},parse:function u(e,r){if(!v){throw new Error("Tokenizer instance wasn't specified.")}v.initString(e);var d=f.options;if(r){f.options=Object.assign({},f.options,r)}_.onParseBegin(e,v,f.options);h.length=0;h.push(0);var o=v.getNextToken();var s=null;do{if(!o){f.options=d;H()}var g=h[h.length-1];var y=b[o.type];if(!p[g].hasOwnProperty(y)){f.options=d;U(o)}var m=p[g][y];if(m[0]==="s"){var C=null;if(f.options.captureLocations){C={startOffset:o.startOffset,endOffset:o.endOffset,startLine:o.startLine,endLine:o.endLine,startColumn:o.startColumn,endColumn:o.endColumn}}s=this.onShift(o);h.push({symbol:b[s.type],semanticValue:s.value,loc:C},Number(m.slice(1)));o=v.getNextToken()}else if(m[0]==="r"){var S=m.slice(1);var x=l[S];var A=typeof x[2]==="function";var k=A?[]:null;var P=A&&f.options.captureLocations?[]:null;if(x[1]!==0){var w=x[1];while(w-- >0){h.pop();var E=h.pop();if(A){k.unshift(E.semanticValue);if(P){P.unshift(E.loc)}}}}var T={symbol:x[0]};if(A){t=s?s.value:null;n=s?s.value.length:null;var O=P!==null?k.concat(P):k;x[2].apply(x,a(O));T.semanticValue=i;if(P){T.loc=c}}var R=h[h.length-1];var N=x[0];h.push(T,p[R][N])}else if(m==="acc"){h.pop();var L=h.pop();if(h.length!==1||h[0]!==0||v.hasMoreTokens()){f.options=d;U(o)}if(L.hasOwnProperty("semanticValue")){f.options=d;_.onParseEnd(L.semanticValue);return L.semanticValue}_.onParseEnd();f.options=d;return true}}while(v.hasMoreTokens()||h.length>1)},setTokenizer:function u(e){v=e;return _},getTokenizer:function u(){return v},onParseBegin:function u(e,r,d){},onParseEnd:function u(e){},onShift:function u(e){return e}};var C=0;var S={};var x="";_.onParseBegin=function(u,e){x=u;C=0;S={};var r=u.lastIndexOf("/");var d=u.slice(r);if(d.includes("x")&&d.includes("u")){e.pushState("xu")}else{if(d.includes("x")){e.pushState("x")}if(d.includes("u")){e.pushState("u")}}};_.onShift=function(u){if(u.type==="L_PAREN"||u.type==="NAMED_CAPTURE_GROUP"){u.value=new String(u.value);u.value.groupNumber=++C}return u};function A(u){var e=u.match(/\d+/g).map(Number);if(Number.isFinite(e[1])&&e[1]e.codePoint){throw new SyntaxError("Range "+u.value+"-"+e.value+" out of order in character class")}}var P=r(24876);function w(u,e){var r=u[1]==="P";var d=u.indexOf("=");var a=u.slice(3,d!==-1?d:-1);var t=void 0;var n=d===-1&&P.isGeneralCategoryValue(a);var f=d===-1&&P.isBinaryPropertyName(a);if(n){t=a;a="General_Category"}else if(f){t=a}else{if(!P.isValidName(a)){throw new SyntaxError("Invalid unicode property name: "+a+".")}t=u.slice(d+1,-1);if(!P.isValidValue(a,t)){throw new SyntaxError("Invalid "+a+" unicode property value: "+t+".")}}return j({type:"UnicodeProperty",name:a,value:t,negative:r,shorthand:n,binary:f,canonicalName:P.getCanonicalName(a)||a,canonicalValue:P.getCanonicalValue(t)||t},e)}function E(u,e,r){var a=void 0;var t=void 0;switch(e){case"decimal":{t=Number(u.slice(1));a=String.fromCodePoint(t);break}case"oct":{t=parseInt(u.slice(1),8);a=String.fromCodePoint(t);break}case"hex":case"unicode":{if(u.lastIndexOf("\\u")>0){var n=u.split("\\u").slice(1),f=d(n,2),i=f[0],c=f[1];i=parseInt(i,16);c=parseInt(c,16);t=(i-55296)*1024+(c-56320)+65536;a=String.fromCodePoint(t)}else{var o=u.slice(2).replace("{","");t=parseInt(o,16);if(t>1114111){throw new SyntaxError("Bad character escape sequence: "+u)}a=String.fromCodePoint(t)}break}case"meta":{switch(u){case"\\t":a="\t";t=a.codePointAt(0);break;case"\\n":a="\n";t=a.codePointAt(0);break;case"\\r":a="\r";t=a.codePointAt(0);break;case"\\v":a="\v";t=a.codePointAt(0);break;case"\\f":a="\f";t=a.codePointAt(0);break;case"\\b":a="\b";t=a.codePointAt(0);case"\\0":a="\0";t=0;case".":a=".";t=NaN;break;default:t=NaN}break}case"simple":{a=u;t=a.codePointAt(0);break}}return j({type:"Char",value:u,kind:e,symbol:a,codePoint:t},r)}var T="gimsuxy";function O(u){var e=new Set;var r=true;var d=false;var a=undefined;try{for(var t=u[Symbol.iterator](),n;!(r=(n=t.next()).done);r=true){var f=n.value;if(e.has(f)||!T.includes(f)){throw new SyntaxError("Invalid flags: "+u)}e.add(f)}}catch(i){d=true;a=i}finally{try{if(!r&&t.return){t.return()}}finally{if(d){throw a}}}return u.split("").sort().join("")}function R(u,e){var r=Number(u.slice(1));if(r>0&&r<=C){return j({type:"Backreference",kind:"number",number:r,reference:r},e)}return E(u,"decimal",e)}var N=/^\\u[0-9a-fA-F]{4}/;var L=/^\\u\{[0-9a-fA-F]{1,}\}/;var I=/\\u\{[0-9a-fA-F]{1,}\}/;function F(u,e){var r=I.test(u);var d=e==="u"||e==="xu"||e==="u_class";if(r&&!d){throw new SyntaxError('invalid group Unicode name "'+u+'", use `u` flag.')}return u}var D=/\\u(?:([dD][89aAbB][0-9a-fA-F]{2})\\u([dD][c-fC-F][0-9a-fA-F]{2})|([dD][89aAbB][0-9a-fA-F]{2})|([dD][c-fC-F][0-9a-fA-F]{2})|([0-9a-ce-fA-CE-F][0-9a-fA-F]{3}|[dD][0-7][0-9a-fA-F]{2})|\{(0*(?:[0-9a-fA-F]{1,5}|10[0-9a-fA-F]{4}))\})/;function M(u){return u.replace(new RegExp(D,"g"),(function(u,e,r,d,a,t,n){if(e){return String.fromCodePoint(parseInt(e,16),parseInt(r,16))}if(d){return String.fromCodePoint(parseInt(d,16))}if(a){return String.fromCodePoint(parseInt(a,16))}if(t){return String.fromCodePoint(parseInt(t,16))}if(n){return String.fromCodePoint(parseInt(n,16))}return u}))}function G(u,e){var r=u.slice(3,-1);var d=M(r);if(S.hasOwnProperty(d)){return j({type:"Backreference",kind:"name",number:S[d],reference:d,referenceRaw:r},e)}var a=null;var t=null;var n=null;var f=null;if(e){a=e.startOffset;t=e.startLine;n=e.endLine;f=e.startColumn}var i=/^[\w$<>]/;var c=void 0;var o=[E(u.slice(1,2),"simple",a?{startLine:t,endLine:n,startColumn:f,startOffset:a,endOffset:a+=2,endColumn:f+=2}:null)];o[0].escaped=true;u=u.slice(2);while(u.length>0){var s=null;if((s=u.match(N))||(s=u.match(L))){if(a){c={startLine:t,endLine:n,startColumn:f,startOffset:a,endOffset:a+=s[0].length,endColumn:f+=s[0].length}}o.push(E(s[0],"unicode",c));u=u.slice(s[0].length)}else if(s=u.match(i)){if(a){c={startLine:t,endLine:n,startColumn:f,startOffset:a,endOffset:++a,endColumn:++f}}o.push(E(s[0],"simple",c));u=u.slice(1)}}return o}function j(u,e){if(f.options.captureLocations){u.loc={source:x.slice(e.startOffset,e.endOffset),start:{line:e.startLine,column:e.startColumn,offset:e.startOffset},end:{line:e.endLine,column:e.endColumn,offset:e.endOffset}}}return u}function B(u,e){if(!f.options.captureLocations){return null}return{startOffset:u.startOffset,endOffset:e.endOffset,startLine:u.startLine,endLine:e.endLine,startColumn:u.startColumn,endColumn:e.endColumn}}function U(u){if(u.type===s){H()}v.throwUnexpectedToken(u.value,u.startLine,u.startColumn)}function H(){q("Unexpected end of input.")}function q(u){throw new SyntaxError(u)}u.exports=_},37112:(u,e,r)=>{var d=r(42669);var a=d.parse.bind(d);d.parse=function(u,e){return a(""+u,e)};d.setOptions({captureLocations:false});u.exports=d},24876:u=>{var e={General_Category:"gc",Script:"sc",Script_Extensions:"scx"};var r=c(e);var d={ASCII:"ASCII",ASCII_Hex_Digit:"AHex",Alphabetic:"Alpha",Any:"Any",Assigned:"Assigned",Bidi_Control:"Bidi_C",Bidi_Mirrored:"Bidi_M",Case_Ignorable:"CI",Cased:"Cased",Changes_When_Casefolded:"CWCF",Changes_When_Casemapped:"CWCM",Changes_When_Lowercased:"CWL",Changes_When_NFKC_Casefolded:"CWKCF",Changes_When_Titlecased:"CWT",Changes_When_Uppercased:"CWU",Dash:"Dash",Default_Ignorable_Code_Point:"DI",Deprecated:"Dep",Diacritic:"Dia",Emoji:"Emoji",Emoji_Component:"Emoji_Component",Emoji_Modifier:"Emoji_Modifier",Emoji_Modifier_Base:"Emoji_Modifier_Base",Emoji_Presentation:"Emoji_Presentation",Extended_Pictographic:"Extended_Pictographic",Extender:"Ext",Grapheme_Base:"Gr_Base",Grapheme_Extend:"Gr_Ext",Hex_Digit:"Hex",IDS_Binary_Operator:"IDSB",IDS_Trinary_Operator:"IDST",ID_Continue:"IDC",ID_Start:"IDS",Ideographic:"Ideo",Join_Control:"Join_C",Logical_Order_Exception:"LOE",Lowercase:"Lower",Math:"Math",Noncharacter_Code_Point:"NChar",Pattern_Syntax:"Pat_Syn",Pattern_White_Space:"Pat_WS",Quotation_Mark:"QMark",Radical:"Radical",Regional_Indicator:"RI",Sentence_Terminal:"STerm",Soft_Dotted:"SD",Terminal_Punctuation:"Term",Unified_Ideograph:"UIdeo",Uppercase:"Upper",Variation_Selector:"VS",White_Space:"space",XID_Continue:"XIDC",XID_Start:"XIDS"};var a=c(d);var t={Cased_Letter:"LC",Close_Punctuation:"Pe",Connector_Punctuation:"Pc",Control:["Cc","cntrl"],Currency_Symbol:"Sc",Dash_Punctuation:"Pd",Decimal_Number:["Nd","digit"],Enclosing_Mark:"Me",Final_Punctuation:"Pf",Format:"Cf",Initial_Punctuation:"Pi",Letter:"L",Letter_Number:"Nl",Line_Separator:"Zl",Lowercase_Letter:"Ll",Mark:["M","Combining_Mark"],Math_Symbol:"Sm",Modifier_Letter:"Lm",Modifier_Symbol:"Sk",Nonspacing_Mark:"Mn",Number:"N",Open_Punctuation:"Ps",Other:"C",Other_Letter:"Lo",Other_Number:"No",Other_Punctuation:"Po",Other_Symbol:"So",Paragraph_Separator:"Zp",Private_Use:"Co",Punctuation:["P","punct"],Separator:"Z",Space_Separator:"Zs",Spacing_Mark:"Mc",Surrogate:"Cs",Symbol:"S",Titlecase_Letter:"Lt",Unassigned:"Cn",Uppercase_Letter:"Lu"};var n=c(t);var f={Adlam:"Adlm",Ahom:"Ahom",Anatolian_Hieroglyphs:"Hluw",Arabic:"Arab",Armenian:"Armn",Avestan:"Avst",Balinese:"Bali",Bamum:"Bamu",Bassa_Vah:"Bass",Batak:"Batk",Bengali:"Beng",Bhaiksuki:"Bhks",Bopomofo:"Bopo",Brahmi:"Brah",Braille:"Brai",Buginese:"Bugi",Buhid:"Buhd",Canadian_Aboriginal:"Cans",Carian:"Cari",Caucasian_Albanian:"Aghb",Chakma:"Cakm",Cham:"Cham",Cherokee:"Cher",Common:"Zyyy",Coptic:["Copt","Qaac"],Cuneiform:"Xsux",Cypriot:"Cprt",Cyrillic:"Cyrl",Deseret:"Dsrt",Devanagari:"Deva",Dogra:"Dogr",Duployan:"Dupl",Egyptian_Hieroglyphs:"Egyp",Elbasan:"Elba",Ethiopic:"Ethi",Georgian:"Geor",Glagolitic:"Glag",Gothic:"Goth",Grantha:"Gran",Greek:"Grek",Gujarati:"Gujr",Gunjala_Gondi:"Gong",Gurmukhi:"Guru",Han:"Hani",Hangul:"Hang",Hanifi_Rohingya:"Rohg",Hanunoo:"Hano",Hatran:"Hatr",Hebrew:"Hebr",Hiragana:"Hira",Imperial_Aramaic:"Armi",Inherited:["Zinh","Qaai"],Inscriptional_Pahlavi:"Phli",Inscriptional_Parthian:"Prti",Javanese:"Java",Kaithi:"Kthi",Kannada:"Knda",Katakana:"Kana",Kayah_Li:"Kali",Kharoshthi:"Khar",Khmer:"Khmr",Khojki:"Khoj",Khudawadi:"Sind",Lao:"Laoo",Latin:"Latn",Lepcha:"Lepc",Limbu:"Limb",Linear_A:"Lina",Linear_B:"Linb",Lisu:"Lisu",Lycian:"Lyci",Lydian:"Lydi",Mahajani:"Mahj",Makasar:"Maka",Malayalam:"Mlym",Mandaic:"Mand",Manichaean:"Mani",Marchen:"Marc",Medefaidrin:"Medf",Masaram_Gondi:"Gonm",Meetei_Mayek:"Mtei",Mende_Kikakui:"Mend",Meroitic_Cursive:"Merc",Meroitic_Hieroglyphs:"Mero",Miao:"Plrd",Modi:"Modi",Mongolian:"Mong",Mro:"Mroo",Multani:"Mult",Myanmar:"Mymr",Nabataean:"Nbat",New_Tai_Lue:"Talu",Newa:"Newa",Nko:"Nkoo",Nushu:"Nshu",Ogham:"Ogam",Ol_Chiki:"Olck",Old_Hungarian:"Hung",Old_Italic:"Ital",Old_North_Arabian:"Narb",Old_Permic:"Perm",Old_Persian:"Xpeo",Old_Sogdian:"Sogo",Old_South_Arabian:"Sarb",Old_Turkic:"Orkh",Oriya:"Orya",Osage:"Osge",Osmanya:"Osma",Pahawh_Hmong:"Hmng",Palmyrene:"Palm",Pau_Cin_Hau:"Pauc",Phags_Pa:"Phag",Phoenician:"Phnx",Psalter_Pahlavi:"Phlp",Rejang:"Rjng",Runic:"Runr",Samaritan:"Samr",Saurashtra:"Saur",Sharada:"Shrd",Shavian:"Shaw",Siddham:"Sidd",SignWriting:"Sgnw",Sinhala:"Sinh",Sogdian:"Sogd",Sora_Sompeng:"Sora",Soyombo:"Soyo",Sundanese:"Sund",Syloti_Nagri:"Sylo",Syriac:"Syrc",Tagalog:"Tglg",Tagbanwa:"Tagb",Tai_Le:"Tale",Tai_Tham:"Lana",Tai_Viet:"Tavt",Takri:"Takr",Tamil:"Taml",Tangut:"Tang",Telugu:"Telu",Thaana:"Thaa",Thai:"Thai",Tibetan:"Tibt",Tifinagh:"Tfng",Tirhuta:"Tirh",Ugaritic:"Ugar",Vai:"Vaii",Warang_Citi:"Wara",Yi:"Yiii",Zanabazar_Square:"Zanb"};var i=c(f);function c(u){var e={};for(var r in u){if(!u.hasOwnProperty(r)){continue}var d=u[r];if(Array.isArray(d)){for(var a=0;a{var d=r(78355);var a=r(89702);var t=r(47393);var n=r(37112);var f=r(60045);var i=r(8785);var c=r(22722);var o=r(77460),s=o.RegExpTree;var l={parser:n,fa:c,TransformResult:f.TransformResult,parse:function u(e,r){return n.parse(""+e,r)},traverse:function u(e,r,d){return i.traverse(e,r,d)},transform:function u(e,r){return f.transform(e,r)},generate:function u(e){return a.generate(e)},toRegExp:function u(e){var r=this.compatTranspile(e);return new RegExp(r.getSource(),r.getFlags())},optimize:function u(e,r){var d=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},a=d.blacklist;return t.optimize(e,{whitelist:r,blacklist:a})},compatTranspile:function u(e,r){return d.transform(e,r)},exec:function u(e,r){if(typeof e==="string"){var d=this.compatTranspile(e);var a=d.getExtra();if(a.namedCapturingGroups){e=new s(d.toRegExp(),{flags:d.getFlags(),source:d.getSource(),groups:a.namedCapturingGroups})}else{e=d.toRegExp()}}return e.exec(r)}};u.exports=l},60045:(u,e,r)=>{var d=function(){function u(u,e){for(var r=0;r1&&arguments[1]!==undefined?arguments[1]:null;a(this,u);this._ast=e;this._source=null;this._string=null;this._regexp=null;this._extra=r}d(u,[{key:"getAST",value:function u(){return this._ast}},{key:"setExtra",value:function u(e){this._extra=e}},{key:"getExtra",value:function u(){return this._extra}},{key:"toRegExp",value:function u(){if(!this._regexp){this._regexp=new RegExp(this.getSource(),this._ast.flags)}return this._regexp}},{key:"getSource",value:function u(){if(!this._source){this._source=t.generate(this._ast.body)}return this._source}},{key:"getFlags",value:function u(){return this._ast.flags}},{key:"toString",value:function u(){if(!this._string){this._string=t.generate(this._ast)}return this._string}}]);return u}();u.exports={TransformResult:i,transform:function u(e,r){var d=e;if(e instanceof RegExp){e=""+e}if(typeof e==="string"){d=n.parse(e,{captureLocations:true})}f.traverse(d,r);return new i(d)}}},26554:u=>{function e(u){if(Array.isArray(u)){for(var e=0,r=Array(u.length);e{var d=r(27762);function a(u){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var r=e.pre;var a=e.post;var t=e.skipProperty;function n(u,e,f,i){if(!u||typeof u.type!=="string"){return}var c=undefined;if(r){c=r(u,e,f,i)}if(c!==false){if(e&&e[f]){if(!isNaN(i)){u=e[f][i]}else{u=e[f]}}for(var o in u){if(u.hasOwnProperty(o)){if(t?t(o,u):o[0]==="$"){continue}var s=u[o];if(Array.isArray(s)){var l=0;d.traversingIndexStack.push(l);while(l2&&arguments[2]!==undefined?arguments[2]:{asNodes:false};if(!Array.isArray(r)){r=[r]}r=r.filter((function(u){if(typeof u.shouldRun!=="function"){return true}return u.shouldRun(e)}));d.initRegistry();r.forEach((function(u){if(typeof u.init==="function"){u.init(e)}}));function n(u,e,r,a){var t=d.getForNode(e);var n=d.getForNode(u,t,r,a);return n}a(e,{pre:function u(e,d,a,f){var i=void 0;if(!t.asNodes){i=n(e,d,a,f)}var c=true;var o=false;var s=undefined;try{for(var l=r[Symbol.iterator](),b;!(c=(b=l.next()).done);c=true){var p=b.value;if(typeof p["*"]==="function"){if(i){if(!i.isRemoved()){var h=p["*"](i);if(h===false){return false}}}else{p["*"](e,d,a,f)}}var v=void 0;if(typeof p[e.type]==="function"){v=p[e.type]}else if(typeof p[e.type]==="object"&&typeof p[e.type].pre==="function"){v=p[e.type].pre}if(v){if(i){if(!i.isRemoved()){var g=v.call(p,i);if(g===false){return false}}}else{v.call(p,e,d,a,f)}}}}catch(y){o=true;s=y}finally{try{if(!c&&l.return){l.return()}}finally{if(o){throw s}}}},post:function u(e,d,a,f){if(!e){return}var i=void 0;if(!t.asNodes){i=n(e,d,a,f)}var c=true;var o=false;var s=undefined;try{for(var l=r[Symbol.iterator](),b;!(c=(b=l.next()).done);c=true){var p=b.value;var h=void 0;if(typeof p[e.type]==="object"&&typeof p[e.type].post==="function"){h=p[e.type].post}if(h){if(i){if(!i.isRemoved()){var v=h.call(p,i);if(v===false){return false}}}else{h.call(p,e,d,a,f)}}}}catch(g){o=true;s=g}finally{try{if(!c&&l.return){l.return()}}finally{if(o){throw s}}}},skipProperty:function u(e){return e==="loc"}})}}},27762:u=>{var e=function(){function u(u,e){for(var r=0;r1&&arguments[1]!==undefined?arguments[1]:null;var a=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var t=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;r(this,u);this.node=e;this.parentPath=d;this.parent=d?d.node:null;this.property=a;this.index=t}e(u,[{key:"_enforceProp",value:function u(e){if(!this.node.hasOwnProperty(e)){throw new Error("Node of type "+this.node.type+" doesn't have \""+e+'" collection.')}}},{key:"setChild",value:function e(r){var t=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var f=void 0;if(t!=null){if(!n){n=d}this._enforceProp(n);this.node[n][t]=r;f=u.getForNode(r,this,n,t)}else{if(!n){n=a}this._enforceProp(n);this.node[n]=r;f=u.getForNode(r,this,n,null)}return f}},{key:"appendChild",value:function u(e){var r=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;if(!r){r=d}this._enforceProp(r);var a=this.node[r].length;return this.setChild(e,a,r)}},{key:"insertChildAt",value:function e(r,a){var t=arguments.length>2&&arguments[2]!==undefined?arguments[2]:d;this._enforceProp(t);this.node[t].splice(a,0,r);if(a<=u.getTraversingIndex()){u.updateTraversingIndex(+1)}this._rebuildIndex(this.node,t)}},{key:"remove",value:function e(){if(this.isRemoved()){return}u.registry.delete(this.node);this.node=null;if(!this.parent){return}if(this.index!==null){this.parent[this.property].splice(this.index,1);if(this.index<=u.getTraversingIndex()){u.updateTraversingIndex(-1)}this._rebuildIndex(this.parent,this.property);this.index=null;this.property=null;return}delete this.parent[this.property];this.property=null}},{key:"_rebuildIndex",value:function e(r,d){var a=u.getForNode(r);for(var t=0;t0&&arguments[0]!==undefined?arguments[0]:0;if(this.node.expressions){return u.getForNode(this.node.expressions[r],this,d,r)}else if(this.node.expression&&r==0){return u.getForNode(this.node.expression,this,a)}return null}},{key:"hasEqualSource",value:function u(e){return JSON.stringify(this.node,n)===JSON.stringify(e.node,n)}},{key:"jsonEncode",value:function u(){var e=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},r=e.format,d=e.useLoc;return JSON.stringify(this.node,d?null:n,r)}},{key:"getPreviousSibling",value:function e(){if(!this.parent||this.index==null){return null}return u.getForNode(this.parent[this.property][this.index-1],u.getForNode(this.parent),this.property,this.index-1)}},{key:"getNextSibling",value:function e(){if(!this.parent||this.index==null){return null}return u.getForNode(this.parent[this.property][this.index+1],u.getForNode(this.parent),this.property,this.index+1)}}],[{key:"getForNode",value:function e(r){var d=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var a=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var t=arguments.length>3&&arguments[3]!==undefined?arguments[3]:-1;if(!r){return null}if(!u.registry.has(r)){u.registry.set(r,new u(r,d,a,t==-1?null:t))}var n=u.registry.get(r);if(d!==null){n.parentPath=d;n.parent=n.parentPath.node}if(a!==null){n.property=a}if(t>=0){n.index=t}return n}},{key:"initRegistry",value:function e(){if(!u.registry){u.registry=new Map}u.registry.clear()}},{key:"updateTraversingIndex",value:function e(r){return u.traversingIndexStack[u.traversingIndexStack.length-1]+=r}},{key:"getTraversingIndex",value:function e(){return u.traversingIndexStack[u.traversingIndexStack.length-1]}}]);return u}();t.initRegistry();t.traversingIndexStack=[];function n(u,e){if(u==="loc"){return undefined}return e}u.exports=t},60689:u=>{u.exports=function u(e){if(e===null||typeof e!=="object"){return e}var r=void 0;if(Array.isArray(e)){r=[]}else{r={}}for(var d in e){r[d]=u(e[d])}return r}},16262:(u,e,r)=>{u.exports=r(51474)}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/7451.c0257dbfdd320e2c21f5.js.LICENSE.txt b/bootcamp/share/jupyter/lab/static/7451.c0257dbfdd320e2c21f5.js.LICENSE.txt new file mode 100644 index 0000000..5ef2b40 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/7451.c0257dbfdd320e2c21f5.js.LICENSE.txt @@ -0,0 +1,15 @@ +/*! +Copyright 2019 Ron Buckton + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ diff --git a/bootcamp/share/jupyter/lab/static/7472.58ba8647a489d019c2ef.js b/bootcamp/share/jupyter/lab/static/7472.58ba8647a489d019c2ef.js new file mode 100644 index 0000000..48b198f --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/7472.58ba8647a489d019c2ef.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7472],{37472:(O,r,e)=>{e.r(r);e.d(r,{globalCompletion:()=>yO,localCompletionSource:()=>gO,python:()=>GO,pythonLanguage:()=>hO});var a=e(11705);var i=e(6016);const x=1,Q=196,o=197,S=198,t=199,s=200,T=201,n=202,l=2,P=203,p=204,q=3,m=205,$=206,w=4,X=207,c=208,W=5,f=209,Y=26,d=27,b=51,V=52,g=57,u=58,R=59,y=61,Z=62,h=63,G=64,_=65,v=67,E=246,U=74,k=265,j=129,z=150,F=151,A=154;const N=10,C=13,I=32,L=9,D=35,M=40,H=46,B=123,J=39,K=34,OO=92;const rO=new Set([d,b,V,k,v,j,u,R,E,G,_,U,Z,h,z,F,A]);function eO(O){return O==N||O==C}const aO=new a.Jq(((O,r)=>{let e;if(O.next<0){O.acceptToken(T)}else if(r.context.depth<0){if(eO(O.next))O.acceptToken(s,1)}else if(((e=O.peek(-1))<0||eO(e))&&r.canShift(t)){let r=0;while(O.next==I||O.next==L){O.advance();r++}if(O.next==N||O.next==C||O.next==D)O.acceptToken(t,-r)}else if(eO(O.next)){O.acceptToken(S,1)}}),{contextual:true});const iO=new a.Jq(((O,r)=>{let e=r.context.depth;if(e<0)return;let a=O.peek(-1);if(a==N||a==C){let r=0,a=0;for(;;){if(O.next==I)r++;else if(O.next==L)r+=8-r%8;else break;O.advance();a++}if(r!=e&&O.next!=N&&O.next!=C&&O.next!=D){if(r{for(let r=0;r<5;r++){if(O.next!="print".charCodeAt(r))return;O.advance()}if(/\w/.test(String.fromCharCode(O.next)))return;for(let r=0;;r++){let e=O.peek(r);if(e==I||e==L)continue;if(e!=M&&e!=H&&e!=N&&e!=C&&e!=D)O.acceptToken(x);return}}));function sO(O,r,e,i,x){return new a.Jq((a=>{let Q=a.pos;for(;;){if(a.next<0){break}else if(a.next==B){if(a.peek(1)==B){a.advance(2)}else{if(a.pos==Q){a.acceptToken(i,1);return}break}}else if(a.next==OO){a.advance();if(a.next>=0)a.advance()}else if(a.next==O&&(r==1||a.peek(1)==O&&a.peek(2)==O)){if(a.pos==Q){a.acceptToken(x,r);return}break}else{a.advance()}}if(a.pos>Q)a.acceptToken(e)}))}const TO=sO(J,1,n,l,P);const nO=sO(K,1,p,q,m);const lO=sO(J,3,$,w,X);const PO=sO(K,3,c,W,f);const pO=(0,i.styleTags)({'async "*" "**" FormatConversion FormatSpec':i.tags.modifier,"for while if elif else try except finally return raise break continue with pass assert await yield match case":i.tags.controlKeyword,"in not and or is del":i.tags.operatorKeyword,"from def class global nonlocal lambda":i.tags.definitionKeyword,import:i.tags.moduleKeyword,"with as print":i.tags.keyword,Boolean:i.tags.bool,None:i.tags["null"],VariableName:i.tags.variableName,"CallExpression/VariableName":i.tags["function"](i.tags.variableName),"FunctionDefinition/VariableName":i.tags["function"](i.tags.definition(i.tags.variableName)),"ClassDefinition/VariableName":i.tags.definition(i.tags.className),PropertyName:i.tags.propertyName,"CallExpression/MemberExpression/PropertyName":i.tags["function"](i.tags.propertyName),Comment:i.tags.lineComment,Number:i.tags.number,String:i.tags.string,FormatString:i.tags.special(i.tags.string),UpdateOp:i.tags.updateOperator,"ArithOp!":i.tags.arithmeticOperator,BitOp:i.tags.bitwiseOperator,CompareOp:i.tags.compareOperator,AssignOp:i.tags.definitionOperator,Ellipsis:i.tags.punctuation,At:i.tags.meta,"( )":i.tags.paren,"[ ]":i.tags.squareBracket,"{ }":i.tags.brace,".":i.tags.derefOperator,", ;":i.tags.separator});const qO={__proto__:null,await:48,or:58,and:60,in:64,not:66,is:68,if:74,else:76,lambda:80,yield:98,from:100,async:106,for:108,None:168,True:170,False:170,del:184,pass:188,break:192,continue:196,return:200,raise:208,import:212,as:214,global:218,nonlocal:220,assert:224,elif:234,while:238,try:244,except:246,finally:248,with:252,def:256,class:266,match:277,case:283};const mO=a.WQ.deserialize({version:14,states:"#!OO`Q#yOOP$_OSOOO%hQ&nO'#H^OOQS'#Cq'#CqOOQS'#Cr'#CrO'WQ#xO'#CpO(yQ&nO'#H]OOQS'#H^'#H^OOQS'#DW'#DWOOQS'#H]'#H]O)gQ#xO'#DaO)zQ#xO'#DhO*[Q#xO'#DlOOQS'#Dw'#DwO*oO,UO'#DwO*wO7[O'#DwO+POWO'#DxO+[O`O'#DxO+gOpO'#DxO+rO!bO'#DxO-tQ&nO'#G}OOQS'#G}'#G}O'WQ#xO'#G|O/WQ&nO'#G|OOQS'#Ee'#EeO/oQ#xO'#EfOOQS'#G{'#G{O/yQ#xO'#GzOOQV'#Gz'#GzO0UQ#xO'#FXOOQS'#G`'#G`O0ZQ#xO'#FWOOQV'#IS'#ISOOQV'#Gy'#GyOOQV'#Fp'#FpQ`Q#yOOO'WQ#xO'#CsO0iQ#xO'#DPO0pQ#xO'#DTO1OQ#xO'#HbO1`Q&nO'#EYO'WQ#xO'#EZOOQS'#E]'#E]OOQS'#E_'#E_OOQS'#Ea'#EaO1tQ#xO'#EcO2[Q#xO'#EgO0UQ#xO'#EiO2oQ&nO'#EiO0UQ#xO'#ElO/oQ#xO'#EoO/oQ#xO'#EsO/oQ#xO'#EvO2zQ#xO'#ExO3RQ#xO'#E}O3^Q#xO'#EyO/oQ#xO'#E}O0UQ#xO'#FPO0UQ#xO'#FUO3cQ#xO'#FZP3jO#xO'#GxPOOO)CBl)CBlOOQS'#Cg'#CgOOQS'#Ch'#ChOOQS'#Ci'#CiOOQS'#Cj'#CjOOQS'#Ck'#CkOOQS'#Cl'#ClOOQS'#Cn'#CnO'WQ#xO,59QO'WQ#xO,59QO'WQ#xO,59QO'WQ#xO,59QO'WQ#xO,59QO'WQ#xO,59QO3uQ#xO'#DqOOQS,5:[,5:[O4YQ#xO'#HlOOQS,5:_,5:_O4gQMlO,5:_O4lQ&nO,59[O0iQ#xO,59dO0iQ#xO,59dO0iQ#xO,59dO7[Q#xO,59dO7aQ#xO,59dO7hQ#xO,59lO7oQ#xO'#H]O8uQ#xO'#H[OOQS'#H['#H[OOQS'#D^'#D^O9^Q#xO,59cO'WQ#xO,59cO9lQ#xO,59cOOQS,59{,59{O9qQ#xO,5:TO'WQ#xO,5:TOOQS,5:S,5:SO:PQ#xO,5:SO:UQ#xO,5:ZO'WQ#xO,5:ZO'WQ#xO,5:XOOQS,5:W,5:WO:gQ#xO,5:WO:lQ#xO,5:YOOOO'#Fx'#FxO:qO,UO,5:cOOQS,5:c,5:cOOOO'#Fy'#FyO:yO7[O,5:cO;RQ#xO'#DyOOOW'#Fz'#FzO;cOWO,5:dOOQS,5:d,5:dO;RQ#xO'#D}OOO`'#F}'#F}O;nO`O,5:dO;RQ#xO'#EOOOOp'#GO'#GOO;yOpO,5:dO;RQ#xO'#EPOOO!b'#GP'#GPOWOOQS'#Du'#DuOOQS1G/y1G/yOOQS1G/O1G/OO!-ZQ&nO1G/OO!-bQ&nO1G/OO0iQ#xO1G/OO!-}Q#xO1G/WOOQS'#D]'#D]O/oQ#xO,59vOOQS1G.}1G.}O!.UQ#xO1G/gO!.fQ#xO1G/gO!.nQ#xO1G/hO'WQ#xO'#HdO!.sQ#xO'#HdO!.xQ&nO1G.}O!/YQ#xO,59kO!0`Q#xO,5>SO!0pQ#xO,5>SO!0xQ#xO1G/oO!0}Q&nO1G/oOOQS1G/n1G/nO!1_Q#xO,5=}O!2UQ#xO,5=}O/oQ#xO1G/sO!2sQ#xO1G/uO!2xQ&nO1G/uO!3YQ&nO1G/sOOQS1G/r1G/rOOQS1G/t1G/tOOOO-E9v-E9vOOQS1G/}1G/}OOOO-E9w-E9wO!3jQ#xO'#HwO/oQ#xO'#HwO!3xQ#xO,5:eOOOW-E9x-E9xOOQS1G0O1G0OO!4TQ#xO,5:iOOO`-E9{-E9{O!4`Q#xO,5:jOOOp-E9|-E9|O!4kQ#xO,5:kOOO!b-E9}-E9}OOQS-E:O-E:OO!4vQ!LUO1G3SO!5gQ&nO1G3SO'WQ#xO,5jOOQS1G1_1G1_O!6gQ#xO1G1_OOQS'#DX'#DXO/oQ#xO,5=yOOQS,5=y,5=yO!6lQ#xO'#FqO!6wQ#xO,59qO!7PQ#xO1G/ZO!7ZQ&nO,5=}OOQS1G3h1G3hOOQS,5:p,5:pO!7zQ#xO'#G|OOQS,5PO!8{Q#xO,5>PO/oQ#xO1G0mO/oQ#xO1G0mO0UQ#xO1G0oOOQS-E:T-E:TO!9^Q#xO1G0oO!9iQ#xO1G0oO!9nQ#xO,5>mO!9|Q#xO,5>mO!:[Q#xO,5>iO!:rQ#xO,5>iO!;TQ#{O1G0yO!>cQ#{O1G0|O!AnQ#xO,5>oO!AxQ#xO,5>oO!BQQ&nO,5>oO/oQ#xO1G1OO!B[Q#xO1G1OO3^Q#xO1G1TO! RQ#xO1G1VOOQV,5;`,5;`O!BaQ#zO,5;`O!BfQ#{O1G1PO!EwQ#xO'#G]O3^Q#xO1G1PO3^Q#xO1G1PO!FUQ#xO,5>pO!FcQ#xO,5>pO0UQ#xO,5>pOOQV1G1T1G1TO!FkQ#xO'#FRO!F|QMlO1G1VOOQV1G1[1G1[O3^Q#xO1G1[O!GUQ#xO'#F]OOQV1G1a1G1aO! `Q&nO1G1aPOOO1G3O1G3OP!GZOSO1G3OOOQS,5>V,5>VOOQS'#Dr'#DrO/oQ#xO,5>VO!G`Q#xO,5>UO!GsQ#xO,5>UOOQS1G/w1G/wO!G{Q#xO,5>XO!H]Q#xO,5>XO!HeQ#xO,5>XO!HxQ#xO,5>XO!IYQ#xO,5>XOOQS1G3r1G3rOOQS7+$j7+$jO!7PQ#xO7+$rO!J{Q#xO1G/OO!KSQ#xO1G/OOOQS1G/b1G/bOOQS,5<_,5<_O'WQ#xO,5<_OOQS7+%R7+%RO!KZQ#xO7+%ROOQS-E9q-E9qOOQS7+%S7+%SO!KkQ#xO,5>OO'WQ#xO,5>OOOQS7+$i7+$iO!KpQ#xO7+%RO!KxQ#xO7+%SO!K}Q#xO1G3nOOQS7+%Z7+%ZO!L_Q#xO1G3nO!LgQ#xO7+%ZOOQS,5<^,5<^O'WQ#xO,5<^O!LlQ#xO1G3iOOQS-E9p-E9pO!McQ#xO7+%_OOQS7+%a7+%aO!MqQ#xO1G3iO!N`Q#xO7+%aO!NeQ#xO1G3oO!NuQ#xO1G3oO!N}Q#xO7+%_O# SQ#xO,5>cO# jQ#xO,5>cO# jQ#xO,5>cO# xO$ISO'#D{O#!TO#tO'#HxOOOW1G0P1G0PO#!YQ#xO1G0POOO`1G0T1G0TO#!bQ#xO1G0TOOOp1G0U1G0UO#!jQ#xO1G0UOOO!b1G0V1G0VO#!rQ#xO1G0VO#!zQ!LUO7+(nO##kQ&nO1G2XP#$UQ#xO'#GROOQS,5d,5>dOOOW7+%k7+%kOOO`7+%o7+%oOOOp7+%p7+%pOOO!b7+%q7+%qO#7{Q#xO1G3SO#8fQ#xO1G3SP'WQ#xO'#FtO/oQ#xO<lO#9YQ#xO,5>lO0UQ#xO,5>lO#9kQ#xO,5>kOOQS<rO#AdQ#xO,5>rOOQS,5>r,5>rO#AoQ#xO,5>qO#BQQ#xO,5>qOOQS1G1X1G1XOOQS,5;o,5;oO#BYQ#xO1G1cP#B_Q#xO'#FvO#BoQ#xO1G1}O#CSQ#xO1G1}O#CdQ#xO1G1}P#CoQ#xO'#FwO#C|Q#xO7+)_O#D^Q#xO7+)_O#D^Q#xO7+)_O#DfQ#xO7+)_O#DvQ#xO7+)UO7hQ#xO7+)UOOQSAN>XAN>XO#EaQ#xO<eAN>eO/oQ#xO1G1{O#EqQ&nO1G1{P#E{Q#xO'#FuOOQS1G2R1G2RP#FYQ#xO'#F{O#FgQ#xO7+)iO#F}Q#xO,5:hOOOO-E9z-E9zO#GYQ#xO7+(nOOQSAN?_AN?_O#GsQ#xO,5QOOQSANB[ANB[OOOO7+%n7+%nOOQS7+'x7+'xO$'{Q#xO<tO$*qQ#xO,5>tO0UQ#xO,5vO#MRQ#xO,5>vOOQS1G1o1G1oO$.iQ&nO,5wO$.wQ#xO,5>wOOQS1G1r1G1rOOQS7+'R7+'RP#MRQ#xO'#GfO$/PQ#xO1G4bO$/ZQ#xO1G4bO$/cQ#xO1G4bOOQS7+%V7+%VO$/qQ#xO1G1sO$0PQ&nO'#F`O$0WQ#xO,5=POOQS,5=P,5=PO$0fQ#xO1G4cOOQS-E:c-E:cO#MRQ#xO,5=OO$0mQ#xO,5=OO$0rQ#xO7+)|OOQS-E:b-E:bO$0|Q#xO7+)|O#MRQ#xO,5e>hPP'Z'ZPP?QPP'Z'ZPP'Z'Z'Z'Z'Z?U?{'ZP@OP@UD]GyPG}HZH_HcHg'ZPPPHkHq'RP'R'RP'RP'RP'RP'RP'R'R'RP'RPP'RPP'RPHwPIOIUPIOPIOIOPPPIOPKTPK^KdKjKTPIOKpPIOPKwK}PLRLgMUMoLRLRMuNSLRLRLRLRNhNnNqNvNy! T! Z! g! y!!P!!Z!!a!!}!#T!#Z!#a!#k!#q!#w!#}!$T!$Z!$m!$w!$}!%T!%Z!%e!%k!%q!%w!&R!&X!&c!&i!&r!&x!'X!'a!'k!'rPPPPPPPPPPPPPPPPP!'x!'{!(R!([!(f!(qPPPPPPPPPPPP!-e!.y!2s!6TPP!6]!6o!6x!7n!7e!7w!7}!8Q!8T!8W!8`!9PPPPPPPPPP!9S!9cPPPP!:R!:_!:k!:q!:z!:}!;T!;Z!;a!;dP!;l!;u!x|}#@S}!O#AW!O!P#Ci!P!Q#N_!Q!R$!y!R![$&w![!]$1e!]!^$3s!^!_$4w!_!`$7c!`!a$8m!a!b%T!b!c$;U!c!d$W!e!h$W#V#Y$Q<%lO$Xc&m!b&eS&hW%k!TOX%TXY=|Y[%T[]=|]p%Tpq=|qr%Trs&Vsw%Twx/Xx#O%T#O#P?d#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#s?i[&m!bOY%TYZ=|Z]%T]^=|^#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=P;=`<%l8^<%lO%T!q@hd&m!b&eS&hWOr%Trs&Vsw%Twx/Xx!_%T!_!`Av!`#O%T#O#P7o#P#T%T#T#UBz#U#f%T#f#gBz#g#hBz#h#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T!qBR]oR&m!b&eS&hWOr%Trs&Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T!qCV]!nR&m!b&eS&hWOr%Trs&Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#cDXa&m!b&eS&csOYE^YZ%TZ]E^]^%T^rE^rs!)|swE^wxGpx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cEia&m!b&eS&hW&csOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxGpx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cFw]&m!b&eS&csOr%Trs'Vsw%Twx/Xx#O%T#O#P7o#P#o%T#o#p8^#p#q%T#q#r8^#r;'S%T;'S;=`=v<%lO%T#cGya&m!b&hW&csOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxIOx#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#cIXa&m!b&hW&csOYE^YZ%TZ]E^]^%T^rE^rsFnswE^wxJ^x#OE^#O#P!!u#P#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!)v<%lOE^#_Jg_&m!b&hW&csOYJ^YZ1XZ]J^]^1X^rJ^rsKfs#OJ^#O#PL`#P#oJ^#o#pL}#p#qJ^#q#rL}#r;'SJ^;'S;=`!!o<%lOJ^#_KmZ&m!b&csOr1Xrs2ys#O1X#O#P3q#P#o1X#o#p4`#p#q1X#q#r4`#r;'S1X;'S;=`7i<%lO1X#_LeW&m!bO#oJ^#o#pL}#p#qJ^#q#rL}#r;'SJ^;'S;=`! r;=`<%lL}<%lOJ^{MUZ&hW&csOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l<%lOL}{M|V&csOr4`rs5ds#O4`#O#P5y#P;'S4`;'S;=`6t<%lO4`{NfRO;'SL};'S;=`No;=`OL}{Nv[&hW&csOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l;=`<%lL}<%lOL}{! oP;=`<%lL}#_! y[&hW&csOYL}YZ4`Z]L}]^4`^rL}rsMws#OL}#O#PNc#P;'SL};'S;=`! l;=`<%lJ^<%lOL}#_!!rP;=`<%lJ^#c!!zW&m!bO#oE^#o#p!#d#p#qE^#q#r!#d#r;'SE^;'S;=`!(q;=`<%l!#d<%lOE^!P!#m]&eS&hW&csOY!#dYZ8^Z]!#d]^8^^r!#drs!$fsw!#dwx!%Yx#O!#d#O#P!'Y#P;'S!#d;'S;=`!(k<%lO!#d!P!$mX&eS&csOr8^rs9rsw8^wx:dx#O8^#O#P;v#P;'S8^;'S;=`^s#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!>e_U!T&m!bOY!=UYZ1XZ]!=U]^1X^r!=Urs!?ds#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!?k_U!T&m!bOY!=UYZ1XZ]!=U]^1X^r!=Urs!3`s#O!=U#O#P!@j#P#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!FQ<%lO!=U#o!@q[U!T&m!bOY!=UYZ1XZ]!=U]^1X^#o!=U#o#p!Ag#p#q!=U#q#r!Ag#r;'S!=U;'S;=`!Ec;=`<%l4`<%lO!=U!]!AnZU!T&hWOY!AgYZ4`Z]!Ag]^4`^r!Agrs!Bas#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!BfZU!TOY!AgYZ4`Z]!Ag]^4`^r!Agrs!CXs#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!C^ZU!TOY!AgYZ4`Z]!Ag]^4`^r!Agrs!4Ys#O!Ag#O#P!DP#P;'S!Ag;'S;=`!E]<%lO!Ag!]!DUWU!TOY!AgYZ4`Z]!Ag]^4`^;'S!Ag;'S;=`!Dn;=`<%l4`<%lO!Ag!]!DsW&hWOr4`rs4zs#O4`#O#P5y#P;'S4`;'S;=`6t;=`<%l!Ag<%lO4`!]!E`P;=`<%l!Ag#o!EhW&hWOr4`rs4zs#O4`#O#P5y#P;'S4`;'S;=`6t;=`<%l!=U<%lO4`#o!FTP;=`<%l!=U#s!F_[U!T&m!bOY!+|YZ%TZ]!+|]^%T^#o!+|#o#p!GT#p#q!+|#q#r!GT#r;'S!+|;'S;=`!Mq;=`<%l8^<%lO!+|!a!G^]U!T&eS&hWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!H^]U!T&eSOY!GTYZ8^Z]!GT]^8^^r!GTrs!IVsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!I^]U!T&eSOY!GTYZ8^Z]!GT]^8^^r!GTrs!5wsw!GTwx!JVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!J^]U!T&hWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!KVx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!K^]U!T&hWOY!GTYZ8^Z]!GT]^8^^r!GTrs!HVsw!GTwx!Agx#O!GT#O#P!LV#P;'S!GT;'S;=`!Mk<%lO!GT!a!L[WU!TOY!GTYZ8^Z]!GT]^8^^;'S!GT;'S;=`!Lt;=`<%l8^<%lO!GT!a!L{Y&eS&hWOr8^rs9Qsw8^wx:dx#O8^#O#P;v#P;'S8^;'S;=`Q<%lO$TP;=`<%l$ei&m!b&eS&hW&b`%}sOr%Trs$@Ssw%Twx$C`x!Q%T!Q![$Q<%lO$Q<%lO$Q<%lO$Q<%lO$Q<%lO$qO[O]||-1}],tokenPrec:7205});var $O=e(24104);var wO=e(73265);var XO=e(1065);const cO=new wO.NodeWeakMap;const WO=new Set(["Script","Body","FunctionDefinition","ClassDefinition","LambdaExpression","ForStatement","MatchClause"]);function fO(O){return(r,e,a)=>{if(a)return false;let i=r.node.getChild("VariableName");if(i)e(i,O);return true}}const YO={FunctionDefinition:fO("function"),ClassDefinition:fO("class"),ForStatement(O,r,e){if(e)for(let a=O.node.firstChild;a;a=a.nextSibling){if(a.name=="VariableName")r(a,"variable");else if(a.name=="in")break}},ImportStatement(O,r){var e,a;let{node:i}=O;let x=((e=i.firstChild)===null||e===void 0?void 0:e.name)=="from";for(let Q=i.getChild("import");Q;Q=Q.nextSibling){if(Q.name=="VariableName"&&((a=Q.nextSibling)===null||a===void 0?void 0:a.name)!="as")r(Q,x?"variable":"namespace")}},AssignStatement(O,r){for(let e=O.node.firstChild;e;e=e.nextSibling){if(e.name=="VariableName")r(e,"variable");else if(e.name==":"||e.name=="AssignOp")break}},ParamList(O,r){for(let e=null,a=O.node.firstChild;a;a=a.nextSibling){if(a.name=="VariableName"&&(!e||!/\*|AssignOp/.test(e.name)))r(a,"variable");e=a}},CapturePattern:fO("variable"),AsPattern:fO("variable"),__proto__:null};function dO(O,r){let e=cO.get(r);if(e)return e;let a=[],i=true;function x(r,e){let i=O.sliceString(r.from,r.to);a.push({label:i,type:e})}r.cursor(wO.IterMode.IncludeAnonymous).iterate((r=>{if(r.name){let O=YO[r.name];if(O&&O(r,x,i)||!i&&WO.has(r.name))return false;i=false}else if(r.to-r.from>8192){for(let e of dO(O,r.node))a.push(e);return false}}));cO.set(r,a);return a}const bO=/^[\w\xa1-\uffff][\w\d\xa1-\uffff]*$/;const VO=["String","FormatString","Comment","PropertyName"];function gO(O){let r=(0,$O.syntaxTree)(O.state).resolveInner(O.pos,-1);if(VO.indexOf(r.name)>-1)return null;let e=r.name=="VariableName"||r.to-r.from<20&&bO.test(O.state.sliceDoc(r.from,r.to));if(!e&&!O.explicit)return null;let a=[];for(let i=r;i;i=i.parent){if(WO.has(i.name))a=a.concat(dO(O.state.doc,i))}return{options:a,from:e?r.from:O.pos,validFor:bO}}const uO=["__annotations__","__builtins__","__debug__","__doc__","__import__","__name__","__loader__","__package__","__spec__","False","None","True"].map((O=>({label:O,type:"constant"}))).concat(["ArithmeticError","AssertionError","AttributeError","BaseException","BlockingIOError","BrokenPipeError","BufferError","BytesWarning","ChildProcessError","ConnectionAbortedError","ConnectionError","ConnectionRefusedError","ConnectionResetError","DeprecationWarning","EOFError","Ellipsis","EncodingWarning","EnvironmentError","Exception","FileExistsError","FileNotFoundError","FloatingPointError","FutureWarning","GeneratorExit","IOError","ImportError","ImportWarning","IndentationError","IndexError","InterruptedError","IsADirectoryError","KeyError","KeyboardInterrupt","LookupError","MemoryError","ModuleNotFoundError","NameError","NotADirectoryError","NotImplemented","NotImplementedError","OSError","OverflowError","PendingDeprecationWarning","PermissionError","ProcessLookupError","RecursionError","ReferenceError","ResourceWarning","RuntimeError","RuntimeWarning","StopAsyncIteration","StopIteration","SyntaxError","SyntaxWarning","SystemError","SystemExit","TabError","TimeoutError","TypeError","UnboundLocalError","UnicodeDecodeError","UnicodeEncodeError","UnicodeError","UnicodeTranslateError","UnicodeWarning","UserWarning","ValueError","Warning","ZeroDivisionError"].map((O=>({label:O,type:"type"})))).concat(["bool","bytearray","bytes","classmethod","complex","float","frozenset","int","list","map","memoryview","object","range","set","staticmethod","str","super","tuple","type"].map((O=>({label:O,type:"class"})))).concat(["abs","aiter","all","anext","any","ascii","bin","breakpoint","callable","chr","compile","delattr","dict","dir","divmod","enumerate","eval","exec","exit","filter","format","getattr","globals","hasattr","hash","help","hex","id","input","isinstance","issubclass","iter","len","license","locals","max","min","next","oct","open","ord","pow","print","property","quit","repr","reversed","round","setattr","slice","sorted","sum","vars","zip"].map((O=>({label:O,type:"function"}))));const RO=[(0,XO.Gn)("def ${name}(${params}):\n\t${}",{label:"def",detail:"function",type:"keyword"}),(0,XO.Gn)("for ${name} in ${collection}:\n\t${}",{label:"for",detail:"loop",type:"keyword"}),(0,XO.Gn)("while ${}:\n\t${}",{label:"while",detail:"loop",type:"keyword"}),(0,XO.Gn)("try:\n\t${}\nexcept ${error}:\n\t${}",{label:"try",detail:"/ except block",type:"keyword"}),(0,XO.Gn)("if ${}:\n\t\n",{label:"if",detail:"block",type:"keyword"}),(0,XO.Gn)("if ${}:\n\t${}\nelse:\n\t${}",{label:"if",detail:"/ else block",type:"keyword"}),(0,XO.Gn)("class ${name}:\n\tdef __init__(self, ${params}):\n\t\t\t${}",{label:"class",detail:"definition",type:"keyword"}),(0,XO.Gn)("import ${module}",{label:"import",detail:"statement",type:"keyword"}),(0,XO.Gn)("from ${module} import ${names}",{label:"from",detail:"import",type:"keyword"})];const yO=(0,XO.eC)(VO,(0,XO.Mb)(uO.concat(RO)));function ZO(O,r){let e=O.baseIndentFor(r);let a=O.lineAt(O.pos,-1),i=a.from+a.text.length;if(/^\s*($|#)/.test(a.text)&&O.node.toe)return null;return e+O.unit}const hO=$O.LRLanguage.define({name:"python",parser:mO.configure({props:[$O.indentNodeProp.add({Body:O=>{var r;return(r=ZO(O,O.node))!==null&&r!==void 0?r:O.continue()},IfStatement:O=>/^\s*(else:|elif )/.test(O.textAfter)?O.baseIndent:O.continue(),TryStatement:O=>/^\s*(except |finally:|else:)/.test(O.textAfter)?O.baseIndent:O.continue(),"TupleExpression ComprehensionExpression ParamList ArgList ParenthesizedExpression":(0,$O.delimitedIndent)({closing:")"}),"DictionaryExpression DictionaryComprehensionExpression SetExpression SetComprehensionExpression":(0,$O.delimitedIndent)({closing:"}"}),"ArrayExpression ArrayComprehensionExpression":(0,$O.delimitedIndent)({closing:"]"}),"String FormatString":()=>null,Script:O=>{if(O.pos+/\s*/.exec(O.textAfter)[0].length>=O.node.to){let r=null;for(let e=O.node,a=e.to;;){e=e.lastChild;if(!e||e.to!=a)break;if(e.type.name=="Body")r=e}if(r){let e=ZO(O,r);if(e!=null)return e}}return O.continue()}}),$O.foldNodeProp.add({"ArrayExpression DictionaryExpression SetExpression TupleExpression":$O.foldInside,Body:(O,r)=>({from:O.from+1,to:O.to-(O.to==r.doc.length?0:1)})})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"'''",'"""'],stringPrefixes:["f","fr","rf","r","u","b","br","rb","F","FR","RF","R","U","B","BR","RB"]},commentTokens:{line:"#"},indentOnInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/}});function GO(){return new $O.LanguageSupport(hO,[hO.data.of({autocomplete:gO}),hO.data.of({autocomplete:yO})])}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/7473.5012397d10d3b945ecaa.js b/bootcamp/share/jupyter/lab/static/7473.5012397d10d3b945ecaa.js new file mode 100644 index 0000000..9499ac6 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/7473.5012397d10d3b945ecaa.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7473],{64063:e=>{"use strict";e.exports=function e(n,t){if(n===t)return true;if(n&&t&&typeof n=="object"&&typeof t=="object"){if(n.constructor!==t.constructor)return false;var i,r,s;if(Array.isArray(n)){i=n.length;if(i!=t.length)return false;for(r=i;r--!==0;)if(!e(n[r],t[r]))return false;return true}if(n.constructor===RegExp)return n.source===t.source&&n.flags===t.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===t.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===t.toString();s=Object.keys(n);i=s.length;if(i!==Object.keys(t).length)return false;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[r]))return false;for(r=i;r--!==0;){var o=s[r];if(!e(n[o],t[o]))return false}return true}return n!==n&&t!==t}},35035:e=>{"use strict";e.exports=function(e,n){if(!n)n={};if(typeof n==="function")n={cmp:n};var t=typeof n.cycles==="boolean"?n.cycles:false;var i=n.cmp&&function(e){return function(n){return function(t,i){var r={key:t,value:n[t]};var s={key:i,value:n[i]};return e(r,s)}}}(n.cmp);var r=[];return function e(n){if(n&&n.toJSON&&typeof n.toJSON==="function"){n=n.toJSON()}if(n===undefined)return;if(typeof n=="number")return isFinite(n)?""+n:"null";if(typeof n!=="object")return JSON.stringify(n);var s,o;if(Array.isArray(n)){o="[";for(s=0;s{"use strict";t.r(n);t.d(n,{accessPathDepth:()=>K,accessPathWithDatum:()=>H,compile:()=>EO,contains:()=>$,deepEqual:()=>h,deleteNestedProperty:()=>W,duplicate:()=>b,entries:()=>L,every:()=>S,fieldIntersection:()=>N,flatAccessWithDatum:()=>B,getFirstDefined:()=>Y,hasIntersection:()=>C,hash:()=>j,internalField:()=>ne,isBoolean:()=>q,isEmpty:()=>T,isEqual:()=>F,isInternalField:()=>te,isNullOrFalse:()=>w,isNumeric:()=>re,keys:()=>A,logicalExpr:()=>R,mergeDeep:()=>D,never:()=>y,normalize:()=>bd,normalizeAngle:()=>ie,omit:()=>O,pick:()=>v,prefixGenerator:()=>E,removePathFromField:()=>V,replaceAll:()=>X,replacePathInField:()=>G,resetIdCounter:()=>ee,setEqual:()=>z,some:()=>k,stringify:()=>x,titleCase:()=>U,unique:()=>P,uniqueId:()=>Z,vals:()=>M,varName:()=>I,version:()=>AO});const i={i8:"5.6.1"};var r=t(48823);var s=t(72886);var o=t.n(s);var a=t(64063);var c=t.n(a);var l=t(35035);var u=t.n(l);function f(e){return!!e.or}function d(e){return!!e.and}function p(e){return!!e.not}function g(e,n){if(p(e)){g(e.not,n)}else if(d(e)){for(const t of e.and){g(t,n)}}else if(f(e)){for(const t of e.or){g(t,n)}}else{n(e)}}function m(e,n){if(p(e)){return{not:m(e.not,n)}}else if(d(e)){return{and:e.and.map((e=>m(e,n)))}}else if(f(e)){return{or:e.or.map((e=>m(e,n)))}}else{return n(e)}}const h=c();const b=o();function y(e){throw new Error(e)}function v(e,n){const t={};for(const i of n){if((0,r.nr)(e,i)){t[i]=e[i]}}return t}function O(e,n){const t=Object.assign({},e);for(const i of n){delete t[i]}return t}Set.prototype["toJSON"]=function(){return`Set(${[...this].map((e=>u()(e))).join(",")})`};const x=u();function j(e){if((0,r.hj)(e)){return e}const n=(0,r.HD)(e)?e:u()(e);if(n.length<250){return n}let t=0;for(let i=0;in===0?e:`[${e}]`));const s=i.map(((e,n)=>i.slice(0,n+1).join("")));for(const t of s){n.add(t)}}return n}function N(e,n){if(e===undefined||n===undefined){return true}return C(E(e),E(n))}function T(e){return A(e).length===0}const A=Object.keys;const M=Object.values;const L=Object.entries;function q(e){return e===true||e===false}function I(e){const n=e.replace(/\W/g,"_");return(e.match(/^\d+/)?"_":"")+n}function R(e,n){if(p(e)){return`!(${R(e.not,n)})`}else if(d(e)){return`(${e.and.map((e=>R(e,n))).join(") && (")})`}else if(f(e)){return`(${e.or.map((e=>R(e,n))).join(") || (")})`}else{return n(e)}}function W(e,n){if(n.length===0){return true}const t=n.shift();if(t in e&&W(e[t],n)){delete e[t]}return T(e)}function U(e){return e.charAt(0).toUpperCase()+e.substr(1)}function H(e,n="datum"){const t=(0,r._k)(e);const i=[];for(let s=1;s<=t.length;s++){const e=`[${t.slice(0,s).map(r.m8).join("][")}]`;i.push(`${n}${e}`)}return i.join(" && ")}function B(e,n="datum"){return`${n}[${(0,r.m8)((0,r._k)(e).join("."))}]`}function J(e){return e.replace(/(\[|\]|\.|'|")/g,"\\$1")}function G(e){return`${(0,r._k)(e).map(J).join("\\.")}`}function X(e,n,t){return e.replace(new RegExp(n.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"g"),t)}function V(e){return`${(0,r._k)(e).join(".")}`}function K(e){if(!e){return 0}return(0,r._k)(e).length}function Y(...e){for(const n of e){if(n!==undefined){return n}}return undefined}let Q=42;function Z(e){const n=++Q;return e?String(e)+n:n}function ee(){Q=42}function ne(e){return te(e)?e:`__${e}`}function te(e){return e.startsWith("__")}function ie(e){if(e===undefined){return undefined}return(e%360+360)%360}function re(e){if((0,r.hj)(e)){return true}return!isNaN(e)&&!isNaN(parseFloat(e))}var se=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);rFt(e[n])?I(`_${n}_${L(e[n])}`):I(`_${n}_${e[n]}`))).join("")}function Dt(e){return e===true||Pt(e)&&!e.binned}function _t(e){return e==="binned"||Pt(e)&&e.binned===true}function Pt(e){return(0,r.Kn)(e)}function Ft(e){return e===null||e===void 0?void 0:e["param"]}function zt(e){switch(e){case oe:case ae:case De:case we:case $e:case ke:case Ce:case Pe:case Fe:case ze:case Se:return 6;case Ee:return 4;default:return 10}}function Ct(e){return!!(e===null||e===void 0?void 0:e.expr)}function Et(e){const n=A(e||{});const t={};for(const i of n){t[i]=Vt(e[i])}return t}var Nt=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r{var i;e.field.push(Sc(t,n));e.order.push((i=t.sort)!==null&&i!==void 0?i:"ascending");return e}),{field:[],order:[]})}function ci(e,n){const t=[...e];n.forEach((e=>{for(const n of t){if(h(n,e)){return}}t.push(e)}));return t}function li(e,n){if(h(e,n)||!n){return e}else if(!e){return n}else{return[...(0,r.IX)(e),...(0,r.IX)(n)].join(", ")}}function ui(e,n){const t=e.value;const i=n.value;if(t==null||i===null){return{explicit:e.explicit,value:null}}else if((At(t)||Mt(t))&&(At(i)||Mt(i))){return{explicit:e.explicit,value:li(t,i)}}else if(At(t)||Mt(t)){return{explicit:e.explicit,value:t}}else if(At(i)||Mt(i)){return{explicit:e.explicit,value:i}}else if(!At(t)&&!Mt(t)&&!At(i)&&!Mt(i)){return{explicit:e.explicit,value:ci(t,i)}}throw new Error("It should never reach here")}function fi(e){return`Invalid specification ${x(e)}. Make sure the specification includes at least one of the following properties: "mark", "layer", "facet", "hconcat", "vconcat", "concat", or "repeat".`}const di='Autosize "fit" only works for single views and layered views.';function pi(e){const n=e=="width"?"Width":"Height";return`${n} "container" only works for single views and layered views.`}function gi(e){const n=e=="width"?"Width":"Height";const t=e=="width"?"x":"y";return`${n} "container" only works well with autosize "fit" or "fit-${t}".`}function mi(e){return e?`Dropping "fit-${e}" because spec has discrete ${vn(e)}.`:`Dropping "fit" because spec has discrete size.`}function hi(e){return`Unknown field for ${e}. Cannot calculate view size.`}function bi(e){return`Cannot project a selection on encoding channel "${e}", which has no field.`}function yi(e,n){return`Cannot project a selection on encoding channel "${e}" as it uses an aggregate function ("${n}").`}function vi(e){return`The "nearest" transform is not supported for ${e} marks.`}function Oi(e){return`Selection not supported for ${e} yet.`}function xi(e){return`Cannot find a selection named "${e}".`}const ji="Scale bindings are currently only supported for scales with unbinned, continuous domains.";const wi="Legend bindings are only supported for selections over an individual field or encoding channel.";function $i(e){return`Lookups can only be performed on selection parameters. "${e}" is a variable parameter.`}function ki(e){return`Cannot define and lookup the "${e}" selection in the same view. `+`Try moving the lookup into a second, layered view?`}const Si="The same selection must be used to override scale domains in a layered view.";const Di='Interval selections should be initialized using "x" and/or "y" keys.';function _i(e){return`Unknown repeated value "${e}".`}function Pi(e){return`The "columns" property cannot be used when "${e}" has nested row/column.`}const Fi="Axes cannot be shared in concatenated or repeated views yet (https://github.com/vega/vega-lite/issues/2415).";function zi(e){return`Unrecognized parse "${e}".`}function Ci(e,n,t){return`An ancestor parsed field "${e}" as ${t} but a child wants to parse the field as ${n}.`}const Ei="Attempt to add the same child twice.";function Ni(e){return`Ignoring an invalid transform: ${x(e)}.`}const Ti='If "from.fields" is not specified, "as" has to be a string that specifies the key to be used for the data from the secondary source.';function Ai(e){return`Config.customFormatTypes is not true, thus custom format type and format for channel ${e} are dropped.`}function Mi(e){const{parentProjection:n,projection:t}=e;return`Layer's shared projection ${x(n)} is overridden by a child projection ${x(t)}.`}const Li="Arc marks uses theta channel rather than angle, replacing angle with theta.";function qi(e){return`${e}Offset dropped because ${e} is continuous`}function Ii(e){return`There is no ${e} encoding. Replacing ${e}Offset encoding as ${e}.`}function Ri(e,n,t){return`Channel ${e} is a ${n}. Converted to {value: ${x(t)}}.`}function Wi(e){return`Invalid field type "${e}".`}function Ui(e,n){return`Invalid field type "${e}" for aggregate: "${n}", using "quantitative" instead.`}function Hi(e){return`Invalid aggregation operator "${e}".`}function Bi(e,n){return`Missing type for channel "${e}", using "${n}" instead.`}function Ji(e,n){const{fill:t,stroke:i}=n;return`Dropping color ${e} as the plot also has ${t&&i?"fill and stroke":t?"fill":"stroke"}.`}function Gi(e){return`Position range does not support relative band size for ${e}.`}function Xi(e,n){return`Dropping ${x(e)} from channel "${n}" since it does not contain any data field, datum, value, or signal.`}const Vi="Line marks cannot encode size with a non-groupby field. You may want to use trail marks instead.";function Ki(e,n,t){return`${e} dropped as it is incompatible with "${n}"${t?` when ${t}`:""}.`}function Yi(e){return`${e} encoding has no scale, so specified scale is ignored.`}function Qi(e){return`${e}-encoding is dropped as ${e} is not a valid encoding channel.`}function Zi(e){return`${e} encoding should be discrete (ordinal / nominal / binned).`}function er(e){return`${e} encoding should be discrete (ordinal / nominal / binned) or use a discretizing scale (e.g. threshold).`}function nr(e){return`Facet encoding dropped as ${e.join(" and ")} ${e.length>1?"are":"is"} also specified.`}function tr(e,n){return`Using discrete channel "${e}" to encode "${n}" field can be misleading as it does not encode ${n==="ordinal"?"order":"magnitude"}.`}function ir(e){return`The ${e} for range marks cannot be an expression`}function rr(e,n){const t=e&&n?"x2 and y2":e?"x2":"y2";return`Line mark is for continuous lines and thus cannot be used with ${t}. We will use the rule mark (line segments) instead.`}function sr(e,n){return`Specified orient "${e}" overridden with "${n}".`}const or="Custom domain scale cannot be unioned with default field-based domain.";function ar(e){return`Cannot use the scale property "${e}" with non-color channel.`}function cr(e){return`Cannot use the relative band size with ${e} scale.`}function lr(e){return`Using unaggregated domain with raw field has no effect (${x(e)}).`}function ur(e){return`Unaggregated domain not applicable for "${e}" since it produces values outside the origin domain of the source data.`}function fr(e){return`Unaggregated domain is currently unsupported for log scale (${x(e)}).`}function dr(e){return`Cannot apply size to non-oriented mark "${e}".`}function pr(e,n,t){return`Channel "${e}" does not work with "${n}" scale. We are using "${t}" scale instead.`}function gr(e,n){return`FieldDef does not work with "${e}" scale. We are using "${n}" scale instead.`}function mr(e,n,t){return`${t}-scale's "${n}" is dropped as it does not work with ${e} scale.`}function hr(e,n){return`Scale type "${n}" does not work with mark "${e}".`}function br(e){return`The step for "${e}" is dropped because the ${e==="width"?"x":"y"} is continuous.`}function yr(e,n,t,i){return`Conflicting ${n.toString()} property "${e.toString()}" (${x(t)} and ${x(i)}). Using ${x(t)}.`}function vr(e,n,t,i){return`Conflicting ${n.toString()} property "${e.toString()}" (${x(t)} and ${x(i)}). Using the union of the two domains.`}function Or(e){return`Setting the scale to be independent for "${e}" means we also have to set the guide (axis or legend) to be independent.`}function xr(e){return`Dropping sort property ${x(e)} as unioned domains only support boolean or op "count", "min", and "max".`}const jr="Domains that should be unioned has conflicting sort properties. Sort will be set to true.";const wr="Detected faceted independent scales that union domain of multiple fields from different data sources. We will use the first field. The result view size may be incorrect.";const $r="Detected faceted independent scales that union domain of the same fields from different source. We will assume that this is the same field from a different fork of the same data source. However, if this is not the case, the result view size may be incorrect.";const kr="Detected faceted independent scales that union domain of multiple fields from the same data source. We will use the first field. The result view size may be incorrect.";const Sr="Invalid channel for axis.";function Dr(e){return`Cannot stack "${e}" if there is already "${e}2".`}function _r(e){return`Cannot stack non-linear scale (${e}).`}function Pr(e){return`Stacking is applied even though the aggregate function is non-summative ("${e}").`}function Fr(e,n){return`Invalid ${e}: ${x(n)}.`}function zr(e){return`Dropping day from datetime ${x(e)} as day cannot be combined with other units.`}function Cr(e,n){return`${n?"extent ":""}${n&&e?"and ":""}${e?"center ":""}${n&&e?"are ":"is "}not needed when data are aggregated.`}function Er(e,n,t){return`${e} is not usually used with ${n} for ${t}.`}function Nr(e,n){return`Continuous axis should not have customized aggregation function ${e}; ${n} already agregates the axis.`}function Tr(e){return`1D error band does not support ${e}.`}function Ar(e){return`Channel ${e} is required for "binned" bin.`}function Mr(e){return`Channel ${e} should not be used with "binned" bin.`}function Lr(e){return`Domain for ${e} is required for threshold scale.`}var qr=undefined&&undefined.__classPrivateFieldSet||function(e,n,t,i,r){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof n==="function"?e!==n||!r:!n.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?r.call(e,t):r?r.value=t:n.set(e,t),t};var Ir=undefined&&undefined.__classPrivateFieldGet||function(e,n,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof n==="function"?e!==n||!i:!n.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(e):i?i.value:n.get(e)};var Rr;const Wr=(0,r.kg)(r.uU);let Ur=Wr;class Hr{constructor(){this.warns=[];this.infos=[];this.debugs=[];Rr.set(this,Warn)}level(e){if(e){qr(this,Rr,e,"f");return this}return Ir(this,Rr,"f")}warn(...e){if(Ir(this,Rr,"f")>=Warn)this.warns.push(...e);return this}info(...e){if(Ir(this,Rr,"f")>=Info)this.infos.push(...e);return this}debug(...e){if(Ir(this,Rr,"f")>=Debug)this.debugs.push(...e);return this}error(...e){if(Ir(this,Rr,"f")>=ErrorLevel)throw Error(...e);return this}}Rr=new WeakMap;function Br(e){return()=>{Ur=new Hr;e(Ur);Gr()}}function Jr(e){Ur=e;return Ur}function Gr(){Ur=Wr;return Ur}function Xr(...e){Ur.error(...e)}function Vr(...e){Ur.warn(...e)}function Kr(...e){Ur.info(...e)}function Yr(...e){Ur.debug(...e)}function Qr(e){if(e&&(0,r.Kn)(e)){for(const n of ds){if(n in e){return true}}}return false}const Zr=["january","february","march","april","may","june","july","august","september","october","november","december"];const es=Zr.map((e=>e.substr(0,3)));const ns=["sunday","monday","tuesday","wednesday","thursday","friday","saturday"];const ts=ns.map((e=>e.substr(0,3)));function is(e){if(re(e)){e=+e}if((0,r.hj)(e)){if(e>4){Vr(Fr("quarter",e))}return e-1}else{throw new Error(Fr("quarter",e))}}function rs(e){if(re(e)){e=+e}if((0,r.hj)(e)){return e-1}else{const n=e.toLowerCase();const t=Zr.indexOf(n);if(t!==-1){return t}const i=n.substr(0,3);const r=es.indexOf(i);if(r!==-1){return r}throw new Error(Fr("month",e))}}function ss(e){if(re(e)){e=+e}if((0,r.hj)(e)){return e%7}else{const n=e.toLowerCase();const t=ns.indexOf(n);if(t!==-1){return t}const i=n.substr(0,3);const r=ts.indexOf(i);if(r!==-1){return r}throw new Error(Fr("day",e))}}function os(e,n){const t=[];if(n&&e.day!==undefined){if(A(e).length>1){Vr(zr(e));e=b(e);delete e.day}}if(e.year!==undefined){t.push(e.year)}else{t.push(2012)}if(e.month!==undefined){const i=n?rs(e.month):e.month;t.push(i)}else if(e.quarter!==undefined){const i=n?is(e.quarter):e.quarter;t.push((0,r.hj)(i)?i*3:`${i}*3`)}else{t.push(0)}if(e.date!==undefined){t.push(e.date)}else if(e.day!==undefined){const i=n?ss(e.day):e.day;t.push((0,r.hj)(i)?i+1:`${i}+1`)}else{t.push(1)}for(const i of["hours","minutes","seconds","milliseconds"]){const n=e[i];t.push(typeof n==="undefined"?0:n)}return t}function as(e){const n=os(e,true);const t=n.join(", ");if(e.utc){return`utc(${t})`}else{return`datetime(${t})`}}function cs(e){const n=os(e,false);const t=n.join(", ");if(e.utc){return`utc(${t})`}else{return`datetime(${t})`}}function ls(e){const n=os(e,true);if(e.utc){return+new Date(Date.UTC(...n))}else{return+new Date(...n)}}var us=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);rxs(e,n)))}function xs(e,n){const t=e.indexOf(n);if(t<0){return false}if(t>0&&n==="seconds"&&e.charAt(t-1)==="i"){return false}if(e.length>t+3&&n==="day"&&e.charAt(t+3)==="o"){return false}if(t>0&&n==="year"&&e.charAt(t-1)==="f"){return false}return true}function js(e,n,{end:t}={end:false}){const i=H(n);const r=bs(e)?"utc":"";function s(e){if(e==="quarter"){return`(${r}quarter(${i})-1)`}else{return`${r}${e}(${i})`}}let o;const a={};for(const c of ds){if(xs(e,c)){a[c]=s(c);o=c}}if(t){a[o]+="+1"}return cs(a)}function ws(e){if(!e){return undefined}const n=Os(e);return`timeUnitSpecifier(${x(n)}, ${x(vs)})`}function $s(e,n,t){if(!e){return undefined}const i=ws(e);const r=t||bs(e);return`${r?"utc":"time"}Format(${n}, ${i})`}function ks(e){if(!e){return undefined}let n;if((0,r.HD)(e)){n={unit:e}}else if((0,r.Kn)(e)){n=Object.assign(Object.assign({},e),e.unit?{unit:e.unit}:{})}if(bs(n.unit)){n.utc=true;n.unit=ys(n.unit)}return n}function Ss(e){const n=ks(e),{utc:t}=n,i=us(n,["utc"]);if(i.unit){return(t?"utc":"")+A(i).map((e=>I(`${e==="unit"?"":`_${e}_`}${i[e]}`))).join("")}else{return(t?"utc":"")+"timeunit"+A(i).map((e=>I(`_${e}_${i[e]}`))).join("")}}function Ds(e){return e===null||e===void 0?void 0:e["param"]}function _s(e){return!!(e===null||e===void 0?void 0:e.field)&&e.equal!==undefined}function Ps(e){return!!(e===null||e===void 0?void 0:e.field)&&e.lt!==undefined}function Fs(e){return!!(e===null||e===void 0?void 0:e.field)&&e.lte!==undefined}function zs(e){return!!(e===null||e===void 0?void 0:e.field)&&e.gt!==undefined}function Cs(e){return!!(e===null||e===void 0?void 0:e.field)&&e.gte!==undefined}function Es(e){if(e===null||e===void 0?void 0:e.field){if((0,r.kJ)(e.range)&&e.range.length===2){return true}else if(Mt(e.range)){return true}}return false}function Ns(e){return!!(e===null||e===void 0?void 0:e.field)&&((0,r.kJ)(e.oneOf)||(0,r.kJ)(e.in))}function Ts(e){return!!(e===null||e===void 0?void 0:e.field)&&e.valid!==undefined}function As(e){return Ns(e)||_s(e)||Es(e)||Ps(e)||zs(e)||Fs(e)||Cs(e)}function Ms(e,n){return Qc(e,{timeUnit:n,wrapTime:true})}function Ls(e,n){return e.map((e=>Ms(e,n)))}function qs(e,n=true){var t;const{field:i}=e;const r=(t=ks(e.timeUnit))===null||t===void 0?void 0:t.unit;const s=r?`time(${js(r,i)})`:Sc(e,{expr:"datum"});if(_s(e)){return`${s}===${Ms(e.equal,r)}`}else if(Ps(e)){const n=e.lt;return`${s}<${Ms(n,r)}`}else if(zs(e)){const n=e.gt;return`${s}>${Ms(n,r)}`}else if(Fs(e)){const n=e.lte;return`${s}<=${Ms(n,r)}`}else if(Cs(e)){const n=e.gte;return`${s}>=${Ms(n,r)}`}else if(Ns(e)){return`indexof([${Ls(e.oneOf,r).join(",")}], ${s}) !== -1`}else if(Ts(e)){return Is(s,e.valid)}else if(Es(e)){const{range:t}=e;const i=Mt(t)?{signal:`${t.signal}[0]`}:t[0];const o=Mt(t)?{signal:`${t.signal}[1]`}:t[1];if(i!==null&&o!==null&&n){return"inrange("+s+", ["+Ms(i,r)+", "+Ms(o,r)+"])"}const a=[];if(i!==null){a.push(`${s} >= ${Ms(i,r)}`)}if(o!==null){a.push(`${s} <= ${Ms(o,r)}`)}return a.length>0?a.join(" && "):"true"}throw new Error(`Invalid field predicate: ${x(e)}`)}function Is(e,n=true){if(n){return`isValid(${e}) && isFinite(+${e})`}else{return`!isValid(${e}) || !isFinite(+${e})`}}function Rs(e){var n;if(As(e)&&e.timeUnit){return Object.assign(Object.assign({},e),{timeUnit:(n=ks(e.timeUnit))===null||n===void 0?void 0:n.unit})}return e}var Ws=t(56498);const Us={quantitative:"quantitative",ordinal:"ordinal",temporal:"temporal",nominal:"nominal",geojson:"geojson"};function Hs(e){return e in Us}function Bs(e){return e==="quantitative"||e==="temporal"}function Js(e){return e==="ordinal"||e==="nominal"}const Gs=Us.quantitative;const Xs=Us.ordinal;const Vs=Us.temporal;const Ks=Us.nominal;const Ys=Us.geojson;const Qs=A(Us);function Zs(e){if(e){e=e.toLowerCase();switch(e){case"q":case Gs:return"quantitative";case"t":case Vs:return"temporal";case"o":case Xs:return"ordinal";case"n":case Ks:return"nominal";case Ys:return"geojson"}}return undefined}var eo=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r{switch(n.fieldTitle){case"plain":return e.field;case"functional":return zc(e);default:return Fc(e,n)}};let Ec=Cc;function Nc(e){Ec=e}function Tc(){Nc(Cc)}function Ac(e,n,{allowDisabling:t,includeDefault:i=true}){var r,s;const o=(r=Mc(e))===null||r===void 0?void 0:r.title;if(!fc(e)){return o!==null&&o!==void 0?o:e.title}const a=e;const c=i?Lc(a,n):undefined;if(t){return Y(o,a.title,c)}else{return(s=o!==null&&o!==void 0?o:a.title)!==null&&s!==void 0?s:c}}function Mc(e){if(xc(e)&&e.axis){return e.axis}else if(jc(e)&&e.legend){return e.legend}else if(Ya(e)&&e.header){return e.header}return undefined}function Lc(e,n){return Ec(e,n)}function qc(e){var n;if(wc(e)){const{format:n,formatType:t}=e;return{format:n,formatType:t}}else{const t=(n=Mc(e))!==null&&n!==void 0?n:{};const{format:i,formatType:r}=t;return{format:i,formatType:r}}}function Ic(e,n){var t;switch(n){case"latitude":case"longitude":return"quantitative";case"row":case"column":case"facet":case"shape":case"strokeDash":return"nominal";case"order":return"ordinal"}if(ic(e)&&(0,r.kJ)(e.sort)){return"ordinal"}const{aggregate:i,bin:s,timeUnit:o}=e;if(o){return"temporal"}if(s||i&&!vt(i)&&!yt(i)){return"quantitative"}if(Oc(e)&&((t=e.scale)===null||t===void 0?void 0:t.type)){switch(to[e.scale.type]){case"numeric":case"discretizing":return"quantitative";case"time":return"temporal"}}return"nominal"}function Rc(e){if(fc(e)){return e}else if(cc(e)){return e.condition}return undefined}function Wc(e){if(bc(e)){return e}else if(lc(e)){return e.condition}return undefined}function Uc(e,n,t,i={}){if((0,r.HD)(e)||(0,r.hj)(e)||(0,r.jn)(e)){const t=(0,r.HD)(e)?"string":(0,r.hj)(e)?"number":"boolean";Vr(Ri(n,t,e));return{value:e}}if(bc(e)){return Hc(e,n,t,i)}else if(lc(e)){return Object.assign(Object.assign({},e),{condition:Hc(e.condition,n,t,i)})}return e}function Hc(e,n,t,i){if(wc(e)){const{format:r,formatType:s}=e,o=Za(e,["format","formatType"]);if(Fa(s)&&!t.customFormatTypes){Vr(Ai(n));return Hc(o,n,t,i)}}else{const r=xc(e)?"axis":jc(e)?"legend":Ya(e)?"header":null;if(r&&e[r]){const s=e[r],{format:o,formatType:a}=s,c=Za(s,["format","formatType"]);if(Fa(a)&&!t.customFormatTypes){Vr(Ai(n));return Hc(Object.assign(Object.assign({},e),{[r]:c}),n,t,i)}}}if(fc(e)){return Jc(e,n,i)}return Bc(e)}function Bc(e){let n=e["type"];if(n){return e}const{datum:t}=e;n=(0,r.hj)(t)?"quantitative":(0,r.HD)(t)?"nominal":Qr(t)?"temporal":undefined;return Object.assign(Object.assign({},e),{type:n})}function Jc(e,n,{compositeMark:t=false}={}){const{aggregate:i,timeUnit:s,bin:o,field:a}=e;const c=Object.assign({},e);if(!t&&i&&!Ot(i)&&!vt(i)&&!yt(i)){Vr(Hi(i));delete c.aggregate}if(s){c.timeUnit=ks(s)}if(a){c.field=`${a}`}if(Dt(o)){c.bin=Gc(o,n)}if(_t(o)&&!Wn(n)){Vr(Mr(n))}if(yc(c)){const{type:e}=c;const n=Zs(e);if(e!==n){c.type=n}if(e!=="quantitative"){if(jt(i)){Vr(Ui(e,i));c.type="quantitative"}}}else if(!mn(n)){const e=Ic(c,n);c["type"]=e}if(yc(c)){const{compatible:e,warning:t}=Vc(c,n)||{};if(e===false){Vr(t)}}if(ic(c)&&(0,r.HD)(c.sort)){const{sort:e}=c;if(Ja(e)){return Object.assign(Object.assign({},c),{sort:{encoding:e}})}const n=e.substr(1);if(e.charAt(0)==="-"&&Ja(n)){return Object.assign(Object.assign({},c),{sort:{encoding:n,order:"descending"}})}}if(Ya(c)){const{header:e}=c;if(e){const{orient:n}=e,t=Za(e,["orient"]);if(n){return Object.assign(Object.assign({},c),{header:Object.assign(Object.assign({},t),{labelOrient:e.labelOrient||n,titleOrient:e.titleOrient||n})})}}}return c}function Gc(e,n){if((0,r.jn)(e)){return{maxbins:zt(n)}}else if(e==="binned"){return{binned:true}}else if(!e.maxbins&&!e.step){return Object.assign(Object.assign({},e),{maxbins:zt(n)})}else{return e}}const Xc={compatible:true};function Vc(e,n){const t=e.type;if(t==="geojson"&&n!=="shape"){return{compatible:false,warning:`Channel ${n} should not be used with a geojson data.`}}switch(n){case oe:case ae:case ce:if(!Dc(e)){return{compatible:false,warning:Zi(n)}}return Xc;case le:case ue:case pe:case ge:case we:case $e:case ke:case Ne:case Ae:case Me:case Le:case qe:case Ie:case _e:case be:case me:case Re:return Xc;case Oe:case je:case ve:case xe:if(t!==Gs){return{compatible:false,warning:`Channel ${n} should be used with a quantitative field only, not ${e.type} field.`}}return Xc;case Pe:case Fe:case ze:case Ce:case De:case ye:case he:case fe:case de:if(t==="nominal"&&!e["sort"]){return{compatible:false,warning:`Channel ${n} should not be used with an unsorted discrete field.`}}return Xc;case Se:case Ee:if(!Dc(e)&&!_c(e)){return{compatible:false,warning:er(n)}}return Xc;case Te:if(e.type==="nominal"&&!("sort"in e)){return{compatible:false,warning:`Channel order is inappropriate for nominal field, which has no inherent order.`}}return Xc}}function Kc(e){const{formatType:n}=qc(e);return n==="time"||!n&&Yc(e)}function Yc(e){return e&&(e["type"]==="temporal"||fc(e)&&!!e.timeUnit)}function Qc(e,{timeUnit:n,type:t,wrapTime:i,undefinedIfExprNotRequired:s}){var o;const a=n&&((o=ks(n))===null||o===void 0?void 0:o.unit);let c=a||t==="temporal";let l;if(Ct(e)){l=e.expr}else if(Mt(e)){l=e.signal}else if(Qr(e)){c=true;l=as(e)}else if((0,r.HD)(e)||(0,r.hj)(e)){if(c){l=`datetime(${x(e)})`;if(ps(a)){if((0,r.hj)(e)&&e<1e4||(0,r.HD)(e)&&isNaN(Date.parse(e))){l=as({[a]:e})}}}}if(l){return i&&c?`time(${l})`:l}return s?undefined:x(e)}function Zc(e,n){const{type:t}=e;return n.map((n=>{const i=Qc(n,{timeUnit:fc(e)?e.timeUnit:undefined,type:t,undefinedIfExprNotRequired:true});if(i!==undefined){return{signal:i}}return n}))}function el(e,n){if(!Dt(e.bin)){console.warn("Only call this method for binned field defs.");return false}return lt(n)&&["ordinal","nominal"].includes(e.type)}const nl={labelAlign:{part:"labels",vgProp:"align"},labelBaseline:{part:"labels",vgProp:"baseline"},labelColor:{part:"labels",vgProp:"fill"},labelFont:{part:"labels",vgProp:"font"},labelFontSize:{part:"labels",vgProp:"fontSize"},labelFontStyle:{part:"labels",vgProp:"fontStyle"},labelFontWeight:{part:"labels",vgProp:"fontWeight"},labelOpacity:{part:"labels",vgProp:"opacity"},labelOffset:null,labelPadding:null,gridColor:{part:"grid",vgProp:"stroke"},gridDash:{part:"grid",vgProp:"strokeDash"},gridDashOffset:{part:"grid",vgProp:"strokeDashOffset"},gridOpacity:{part:"grid",vgProp:"opacity"},gridWidth:{part:"grid",vgProp:"strokeWidth"},tickColor:{part:"ticks",vgProp:"stroke"},tickDash:{part:"ticks",vgProp:"strokeDash"},tickDashOffset:{part:"ticks",vgProp:"strokeDashOffset"},tickOpacity:{part:"ticks",vgProp:"opacity"},tickSize:null,tickWidth:{part:"ticks",vgProp:"strokeWidth"}};function tl(e){return e===null||e===void 0?void 0:e.condition}const il=["domain","grid","labels","ticks","title"];const rl={grid:"grid",gridCap:"grid",gridColor:"grid",gridDash:"grid",gridDashOffset:"grid",gridOpacity:"grid",gridScale:"grid",gridWidth:"grid",orient:"main",bandPosition:"both",aria:"main",description:"main",domain:"main",domainCap:"main",domainColor:"main",domainDash:"main",domainDashOffset:"main",domainOpacity:"main",domainWidth:"main",format:"main",formatType:"main",labelAlign:"main",labelAngle:"main",labelBaseline:"main",labelBound:"main",labelColor:"main",labelFlush:"main",labelFlushOffset:"main",labelFont:"main",labelFontSize:"main",labelFontStyle:"main",labelFontWeight:"main",labelLimit:"main",labelLineHeight:"main",labelOffset:"main",labelOpacity:"main",labelOverlap:"main",labelPadding:"main",labels:"main",labelSeparation:"main",maxExtent:"main",minExtent:"main",offset:"both",position:"main",tickCap:"main",tickColor:"main",tickDash:"main",tickDashOffset:"main",tickMinStep:"both",tickOffset:"both",tickOpacity:"main",tickRound:"both",ticks:"main",tickSize:"main",tickWidth:"both",title:"main",titleAlign:"main",titleAnchor:"main",titleAngle:"main",titleBaseline:"main",titleColor:"main",titleFont:"main",titleFontSize:"main",titleFontStyle:"main",titleFontWeight:"main",titleLimit:"main",titleLineHeight:"main",titleOpacity:"main",titlePadding:"main",titleX:"main",titleY:"main",encode:"both",scale:"both",tickBand:"both",tickCount:"both",tickExtra:"both",translate:"both",values:"both",zindex:"both"};const sl={orient:1,aria:1,bandPosition:1,description:1,domain:1,domainCap:1,domainColor:1,domainDash:1,domainDashOffset:1,domainOpacity:1,domainWidth:1,format:1,formatType:1,grid:1,gridCap:1,gridColor:1,gridDash:1,gridDashOffset:1,gridOpacity:1,gridWidth:1,labelAlign:1,labelAngle:1,labelBaseline:1,labelBound:1,labelColor:1,labelFlush:1,labelFlushOffset:1,labelFont:1,labelFontSize:1,labelFontStyle:1,labelFontWeight:1,labelLimit:1,labelLineHeight:1,labelOffset:1,labelOpacity:1,labelOverlap:1,labelPadding:1,labels:1,labelSeparation:1,maxExtent:1,minExtent:1,offset:1,position:1,tickBand:1,tickCap:1,tickColor:1,tickCount:1,tickDash:1,tickDashOffset:1,tickExtra:1,tickMinStep:1,tickOffset:1,tickOpacity:1,tickRound:1,ticks:1,tickSize:1,tickWidth:1,title:1,titleAlign:1,titleAnchor:1,titleAngle:1,titleBaseline:1,titleColor:1,titleFont:1,titleFontSize:1,titleFontStyle:1,titleFontWeight:1,titleLimit:1,titleLineHeight:1,titleOpacity:1,titlePadding:1,titleX:1,titleY:1,translate:1,values:1,zindex:1};const ol=Object.assign(Object.assign({},sl),{style:1,labelExpr:1,encoding:1});function al(e){return!!ol[e]}const cl=A(ol);const ll={axis:1,axisBand:1,axisBottom:1,axisDiscrete:1,axisLeft:1,axisPoint:1,axisQuantitative:1,axisRight:1,axisTemporal:1,axisTop:1,axisX:1,axisXBand:1,axisXDiscrete:1,axisXPoint:1,axisXQuantitative:1,axisXTemporal:1,axisY:1,axisYBand:1,axisYDiscrete:1,axisYPoint:1,axisYQuantitative:1,axisYTemporal:1};const ul=A(ll);function fl(e){return"mark"in e}class dl{constructor(e,n){this.name=e;this.run=n}hasMatchingType(e){if(fl(e)){return Oa(e.mark)===this.name}return false}}var pl=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r!!e.field))}else{return fc(t)||cc(t)}}return false}function ml(e,n){const t=e&&e[n];if(t){if((0,r.kJ)(t)){return k(t,(e=>!!e.field))}else{return fc(t)||pc(t)||lc(t)}}return false}function hl(e,n){if(Wn(n)){const t=e[n];if((fc(t)||pc(t))&&Js(t.type)){const t=xn(n);return ml(e,t)}}return false}function bl(e){return k(en,(n=>{if(gl(e,n)){const t=e[n];if((0,r.kJ)(t)){return k(t,(e=>!!e.aggregate))}else{const e=Rc(t);return e&&!!e.aggregate}}return false}))}function yl(e,n){const t=[];const i=[];const r=[];const s=[];const o={};wl(e,((a,c)=>{if(fc(a)){const{field:l,aggregate:u,bin:f,timeUnit:d}=a,p=pl(a,["field","aggregate","bin","timeUnit"]);if(u||d||f){const e=Mc(a);const g=e===null||e===void 0?void 0:e.title;let m=Sc(a,{forAs:true});const h=Object.assign(Object.assign(Object.assign({},g?[]:{title:Ac(a,n,{allowDisabling:true})}),p),{field:m});if(u){let e;if(vt(u)){e="argmax";m=Sc({op:"argmax",field:u.argmax},{forAs:true});h.field=`${m}.${l}`}else if(yt(u)){e="argmin";m=Sc({op:"argmin",field:u.argmin},{forAs:true});h.field=`${m}.${l}`}else if(u!=="boxplot"&&u!=="errorbar"&&u!=="errorband"){e=u}if(e){const n={op:e,as:m};if(l){n.field=l}s.push(n)}}else{t.push(m);if(yc(a)&&Dt(f)){i.push({bin:f,field:l,as:m});t.push(Sc(a,{binSuffix:"end"}));if(el(a,c)){t.push(Sc(a,{binSuffix:"range"}))}if(Wn(c)){const e={field:`${m}_end`};o[`${c}2`]=e}h.bin="binned";if(!mn(c)){h["type"]=Gs}}else if(d){r.push({timeUnit:d,field:l,as:m});const e=yc(a)&&a.type!==Vs&&"time";if(e){if(c===Ne||c===Le){h["formatType"]=e}else if(st(c)){h["legend"]=Object.assign({formatType:e},h["legend"])}else if(Wn(c)){h["axis"]=Object.assign({formatType:e},h["axis"])}}}}o[c]=h}else{t.push(l);o[c]=e[c]}}else{o[c]=e[c]}}));return{bins:i,timeUnits:r,aggregate:s,groupby:t,encoding:o}}function vl(e,n,t){const i=ut(n,t);if(!i){return false}else if(i==="binned"){const t=e[n===fe?le:ue];if(fc(t)&&fc(e[n])&&_t(t.bin)){return true}else{return false}}return true}function Ol(e,n,t,i){const s={};for(const r of A(e)){if(!pn(r)){Vr(Qi(r))}}for(let o of wn){if(!e[o]){continue}const a=e[o];if(Xn(o)){const e=jn(o);const n=s[e];if(fc(n)){if(Bs(n.type)){if(fc(a)){Vr(qi(e));continue}}}else{o=e;Vr(Ii(e))}}if(o==="angle"&&n==="arc"&&!e.theta){Vr(Li);o=be}if(!vl(e,o,n)){Vr(Ki(o,n));continue}if(o===De&&n==="line"){const n=Rc(e[o]);if(n===null||n===void 0?void 0:n.aggregate){Vr(Vi);continue}}if(o===we&&(t?"fill"in e:"stroke"in e)){Vr(Ji("encoding",{fill:"fill"in e,stroke:"stroke"in e}));continue}if(o===Ae||o===Te&&!(0,r.kJ)(a)&&!vc(a)||o===Le&&(0,r.kJ)(a)){if(a){s[o]=(0,r.IX)(a).reduce(((e,n)=>{if(!fc(n)){Vr(Xi(n,o))}else{e.push(Jc(n,o))}return e}),[])}}else{if(o===Le&&a===null){s[o]=null}else if(!fc(a)&&!pc(a)&&!vc(a)&&!ac(a)&&!Mt(a)){Vr(Xi(a,o));continue}s[o]=Uc(a,o,i)}}return s}function xl(e,n){const t={};for(const i of A(e)){const r=Uc(e[i],i,n,{compositeMark:true});t[i]=r}return t}function jl(e){const n=[];for(const t of A(e)){if(gl(e,t)){const i=e[t];const s=(0,r.IX)(i);for(const e of s){if(fc(e)){n.push(e)}else if(cc(e)){n.push(e.condition)}}}}return n}function wl(e,n,t){if(!e){return}for(const i of A(e)){const s=e[i];if((0,r.kJ)(s)){for(const e of s){n.call(t,e,i)}}else{n.call(t,s,i)}}}function $l(e,n,t,i){if(!e){return t}return A(e).reduce(((t,s)=>{const o=e[s];if((0,r.kJ)(o)){return o.reduce(((e,t)=>n.call(i,e,t,s)),t)}else{return n.call(i,t,o,s)}}),t)}function kl(e,n){return A(n).reduce(((t,i)=>{switch(i){case le:case ue:case qe:case Re:case Ie:case fe:case de:case pe:case ge:case be:case ye:case me:case he:case ve:case Oe:case xe:case je:case Ne:case Se:case _e:case Le:return t;case Te:if(e==="line"||e==="trail"){return t}case Ae:case Me:{const e=n[i];if((0,r.kJ)(e)||fc(e)){for(const n of(0,r.IX)(e)){if(!n.aggregate){t.push(Sc(n,{}))}}}return t}case De:if(e==="trail"){return t}case we:case $e:case ke:case Pe:case Fe:case ze:case Ee:case Ce:{const e=Rc(n[i]);if(e&&!e.aggregate){t.push(Sc(e,{}))}return t}}}),[])}var Sl=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r{const r=i?` of ${Pl(n)}`:"";return{field:e+n.field,type:n.type,title:Mt(t)?{signal:`${t}"${escape(r)}"`}:t+r}}));const s=jl(t).map($c);return{tooltip:[...r,...P(s,j)]}}function Pl(e){const{title:n,field:t}=e;return Y(n,t)}function Fl(e,n,t,i,s){const{scale:o,axis:a}=t;return({partName:c,mark:l,positionPrefix:u,endPositionPrefix:f=undefined,extraEncoding:d={}})=>{const p=Pl(t);return zl(e,c,s,{mark:l,encoding:Object.assign(Object.assign(Object.assign({[n]:Object.assign(Object.assign(Object.assign({field:`${u}_${t.field}`,type:t.type},p!==undefined?{title:p}:{}),o!==undefined?{scale:o}:{}),a!==undefined?{axis:a}:{})},(0,r.HD)(f)?{[`${n}2`]:{field:`${f}_${t.field}`}}:{}),i),d)})}}function zl(e,n,t,i){const{clip:s,color:o,opacity:a}=e;const c=e.type;if(e[n]||e[n]===undefined&&t[n]){return[Object.assign(Object.assign({},i),{mark:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t[n]),s?{clip:s}:{}),o?{color:o}:{}),a?{opacity:a}:{}),ia(i.mark)?i.mark:{type:i.mark}),{style:`${c}-${String(n)}`}),(0,r.jn)(e[n])?{}:e[n])})]}return[]}function Cl(e,n,t){const{encoding:i}=e;const r=n==="vertical"?"y":"x";const s=i[r];const o=i[`${r}2`];const a=i[`${r}Error`];const c=i[`${r}Error2`];return{continuousAxisChannelDef:El(s,t),continuousAxisChannelDef2:El(o,t),continuousAxisChannelDefError:El(a,t),continuousAxisChannelDefError2:El(c,t),continuousAxis:r}}function El(e,n){if(e===null||e===void 0?void 0:e.aggregate){const{aggregate:t}=e,i=Sl(e,["aggregate"]);if(t!==n){Vr(Nr(t,n))}return i}else{return e}}function Nl(e,n){const{mark:t,encoding:i}=e;const{x:r,y:s}=i;if(ia(t)&&t.orient){return t.orient}if(gc(r)){if(gc(s)){const e=fc(r)&&r.aggregate;const t=fc(s)&&s.aggregate;if(!e&&t===n){return"vertical"}else if(!t&&e===n){return"horizontal"}else if(e===n&&t===n){throw new Error("Both x and y cannot have aggregate")}else{if(Kc(s)&&!Kc(r)){return"horizontal"}return"vertical"}}return"horizontal"}else if(gc(s)){return"vertical"}else{throw new Error(`Need a valid continuous axis for ${n}s`)}}var Tl=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);rFl(u,v,y,e,n.boxplot);const z=F(P);const C=F(w);const E=F(Object.assign(Object.assign({},P),_?{size:_}:{}));const N=_l([{fieldPrefix:g==="min-max"?"upper_whisker_":"max_",titlePrefix:"Max"},{fieldPrefix:"upper_box_",titlePrefix:"Q3"},{fieldPrefix:"mid_box_",titlePrefix:"Median"},{fieldPrefix:"lower_box_",titlePrefix:"Q1"},{fieldPrefix:g==="min-max"?"lower_whisker_":"min_",titlePrefix:"Min"}],y,w);const A={type:"tick",color:"black",opacity:1,orient:$,invalid:p,aria:false};const M=g==="min-max"?N:_l([{fieldPrefix:"upper_whisker_",titlePrefix:"Upper Whisker"},{fieldPrefix:"lower_whisker_",titlePrefix:"Lower Whisker"}],y,w);const L=[...z({partName:"rule",mark:{type:"rule",invalid:p,aria:false},positionPrefix:"lower_whisker",endPositionPrefix:"lower_box",extraEncoding:M}),...z({partName:"rule",mark:{type:"rule",invalid:p,aria:false},positionPrefix:"upper_box",endPositionPrefix:"upper_whisker",extraEncoding:M}),...z({partName:"ticks",mark:A,positionPrefix:"lower_whisker",extraEncoding:M}),...z({partName:"ticks",mark:A,positionPrefix:"upper_whisker",extraEncoding:M})];const q=[...g!=="tukey"?L:[],...C({partName:"box",mark:Object.assign(Object.assign({type:"bar"},d?{size:d}:{}),{orient:k,invalid:p,ariaRoleDescription:"box"}),positionPrefix:"lower_box",endPositionPrefix:"upper_box",extraEncoding:N}),...E({partName:"median",mark:Object.assign(Object.assign(Object.assign({type:"tick",invalid:p},(0,r.Kn)(n.boxplot.median)&&n.boxplot.median.color?{color:n.boxplot.median.color}:{}),d?{size:d}:{}),{orient:$,aria:false}),positionPrefix:"mid_box",extraEncoding:N})];if(g==="min-max"){return Object.assign(Object.assign({},l),{transform:((i=l.transform)!==null&&i!==void 0?i:[]).concat(b),layer:q})}const I=`datum["lower_box_${y.field}"]`;const R=`datum["upper_box_${y.field}"]`;const W=`(${R} - ${I})`;const U=`${I} - ${f} * ${W}`;const H=`${R} + ${f} * ${W}`;const B=`datum["${y.field}"]`;const J={joinaggregate:Rl(y.field),groupby:x};const G={transform:[{filter:`(${U} <= ${B}) && (${B} <= ${H})`},{aggregate:[{op:"min",field:y.field,as:`lower_whisker_${y.field}`},{op:"max",field:y.field,as:`upper_whisker_${y.field}`},{op:"min",field:`lower_box_${y.field}`,as:`lower_box_${y.field}`},{op:"max",field:`upper_box_${y.field}`,as:`upper_box_${y.field}`},...j],groupby:x}],layer:L};const{tooltip:X}=P,V=Tl(P,["tooltip"]);const{scale:K,axis:Y}=y;const Q=Pl(y);const Z=O(Y,["title"]);const ee=zl(u,"outliers",n.boxplot,{transform:[{filter:`(${B} < ${U}) || (${B} > ${H})`}],mark:"point",encoding:Object.assign(Object.assign(Object.assign({[v]:Object.assign(Object.assign(Object.assign({field:y.field,type:y.type},Q!==undefined?{title:Q}:{}),K!==undefined?{scale:K}:{}),T(Z)?{}:{axis:Z})},V),D?{color:D}:{}),S?{tooltip:S}:{})})[0];let ne;const te=[...m,...h,J];if(ee){ne={transform:te,layer:[ee,G]}}else{ne=G;ne.transform.unshift(...te)}return Object.assign(Object.assign({},l),{layer:[ne,{transform:b,layer:q}]})}function Rl(e){return[{op:"q1",field:e,as:`lower_box_${e}`},{op:"q3",field:e,as:`upper_box_${e}`}]}function Wl(e,n,t){const i=Nl(e,Al);const{continuousAxisChannelDef:r,continuousAxis:s}=Cl(e,i,Al);const o=r.field;const a=ql(n);const c=[...Rl(o),{op:"median",field:o,as:`mid_box_${o}`},{op:"min",field:o,as:(a==="min-max"?"lower_whisker_":"min_")+o},{op:"max",field:o,as:(a==="min-max"?"upper_whisker_":"max_")+o}];const l=a==="min-max"||a==="tukey"?[]:[{calculate:`datum["upper_box_${o}"] - datum["lower_box_${o}"]`,as:`iqr_${o}`},{calculate:`min(datum["upper_box_${o}"] + datum["iqr_${o}"] * ${n}, datum["max_${o}"])`,as:`upper_whisker_${o}`},{calculate:`max(datum["lower_box_${o}"] - datum["iqr_${o}"] * ${n}, datum["min_${o}"])`,as:`lower_whisker_${o}`}];const u=e.encoding,f=s,d=u[f],p=Tl(u,[typeof f==="symbol"?f:f+""]);const{customTooltipWithoutAggregatedField:g,filteredEncoding:m}=Dl(p);const{bins:h,timeUnits:b,aggregate:y,groupby:v,encoding:O}=yl(m,t);const x=i==="vertical"?"horizontal":"vertical";const j=i;const w=[...h,...b,{aggregate:[...y,...c],groupby:v},...l];return{bins:h,timeUnits:b,transform:w,groupby:v,aggregate:y,continuousAxisChannelDef:r,continuousAxis:s,encodingWithoutContinuousAxis:O,ticksOrient:x,boxOrient:j,customTooltipWithoutAggregatedField:g}}var Ul=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r1?{layer:g}:Object.assign({},g[0]))}function Xl(e,n){const{encoding:t}=e;if(Vl(t)){return{orient:Nl(e,n),inputType:"raw"}}const i=Kl(t);const r=Yl(t);const s=t.x;const o=t.y;if(i){if(r){throw new Error(`${n} cannot be both type aggregated-upper-lower and aggregated-error`)}const e=t.x2;const i=t.y2;if(bc(e)&&bc(i)){throw new Error(`${n} cannot have both x2 and y2`)}else if(bc(e)){if(gc(s)){return{orient:"horizontal",inputType:"aggregated-upper-lower"}}else{throw new Error(`Both x and x2 have to be quantitative in ${n}`)}}else if(bc(i)){if(gc(o)){return{orient:"vertical",inputType:"aggregated-upper-lower"}}else{throw new Error(`Both y and y2 have to be quantitative in ${n}`)}}throw new Error("No ranged axis")}else{const e=t.xError;const i=t.xError2;const r=t.yError;const a=t.yError2;if(bc(i)&&!bc(e)){throw new Error(`${n} cannot have xError2 without xError`)}if(bc(a)&&!bc(r)){throw new Error(`${n} cannot have yError2 without yError`)}if(bc(e)&&bc(r)){throw new Error(`${n} cannot have both xError and yError with both are quantiative`)}else if(bc(e)){if(gc(s)){return{orient:"horizontal",inputType:"aggregated-error"}}else{throw new Error("All x, xError, and xError2 (if exist) have to be quantitative")}}else if(bc(r)){if(gc(o)){return{orient:"vertical",inputType:"aggregated-error"}}else{throw new Error("All y, yError, and yError2 (if exist) have to be quantitative")}}throw new Error("No ranged axis")}}function Vl(e){return(bc(e.x)||bc(e.y))&&!bc(e.x2)&&!bc(e.y2)&&!bc(e.xError)&&!bc(e.xError2)&&!bc(e.yError)&&!bc(e.yError2)}function Kl(e){return bc(e.x2)||bc(e.y2)}function Yl(e){return bc(e.xError)||bc(e.xError2)||bc(e.yError)||bc(e.yError2)}function Ql(e,n,t){var i;const{mark:r,encoding:s,params:o,projection:a}=e,c=Ul(e,["mark","encoding","params","projection"]);const l=ia(r)?r:{type:r};if(o){Vr(Oi(n))}const{orient:u,inputType:f}=Xl(e,n);const{continuousAxisChannelDef:d,continuousAxisChannelDef2:p,continuousAxisChannelDefError:g,continuousAxisChannelDefError2:m,continuousAxis:h}=Cl(e,u,n);const{errorBarSpecificAggregate:b,postAggregateCalculates:y,tooltipSummary:v,tooltipTitleWithFieldName:O}=Zl(l,d,p,g,m,f,n,t);const x=s,j=h,w=x[j],$=h==="x"?"x2":"y2",k=x[$],S=h==="x"?"xError":"yError",D=x[S],_=h==="x"?"xError2":"yError2",P=x[_],F=Ul(x,[typeof j==="symbol"?j:j+"",typeof $==="symbol"?$:$+"",typeof S==="symbol"?S:S+"",typeof _==="symbol"?_:_+""]);const{bins:z,timeUnits:C,aggregate:E,groupby:N,encoding:T}=yl(F,t);const A=[...E,...b];const M=f!=="raw"?[]:N;const L=_l(v,d,T,O);return{transform:[...(i=c.transform)!==null&&i!==void 0?i:[],...z,...C,...A.length===0?[]:[{aggregate:A,groupby:M}],...y],groupby:M,continuousAxisChannelDef:d,continuousAxis:h,encodingWithoutContinuousAxis:T,ticksOrient:u==="vertical"?"horizontal":"vertical",markDef:l,outerSpec:c,tooltipEncoding:L}}function Zl(e,n,t,i,r,s,o,a){let c=[];let l=[];const u=n.field;let f;let d=false;if(s==="raw"){const n=e.center?e.center:e.extent?e.extent==="iqr"?"median":"mean":a.errorbar.center;const t=e.extent?e.extent:n==="mean"?"stderr":"iqr";if(n==="median"!==(t==="iqr")){Vr(Er(n,t,o))}if(t==="stderr"||t==="stdev"){c=[{op:t,field:u,as:`extent_${u}`},{op:n,field:u,as:`center_${u}`}];l=[{calculate:`datum["center_${u}"] + datum["extent_${u}"]`,as:`upper_${u}`},{calculate:`datum["center_${u}"] - datum["extent_${u}"]`,as:`lower_${u}`}];f=[{fieldPrefix:"center_",titlePrefix:U(n)},{fieldPrefix:"upper_",titlePrefix:eu(n,t,"+")},{fieldPrefix:"lower_",titlePrefix:eu(n,t,"-")}];d=true}else{let e;let n;let i;if(t==="ci"){e="mean";n="ci0";i="ci1"}else{e="median";n="q1";i="q3"}c=[{op:n,field:u,as:`lower_${u}`},{op:i,field:u,as:`upper_${u}`},{op:e,field:u,as:`center_${u}`}];f=[{fieldPrefix:"upper_",titlePrefix:Ac({field:u,aggregate:i,type:"quantitative"},a,{allowDisabling:false})},{fieldPrefix:"lower_",titlePrefix:Ac({field:u,aggregate:n,type:"quantitative"},a,{allowDisabling:false})},{fieldPrefix:"center_",titlePrefix:Ac({field:u,aggregate:e,type:"quantitative"},a,{allowDisabling:false})}]}}else{if(e.center||e.extent){Vr(Cr(e.center,e.extent))}if(s==="aggregated-upper-lower"){f=[];l=[{calculate:`datum["${t.field}"]`,as:`upper_${u}`},{calculate:`datum["${u}"]`,as:`lower_${u}`}]}else if(s==="aggregated-error"){f=[{fieldPrefix:"",titlePrefix:u}];l=[{calculate:`datum["${u}"] + datum["${i.field}"]`,as:`upper_${u}`}];if(r){l.push({calculate:`datum["${u}"] + datum["${r.field}"]`,as:`lower_${u}`})}else{l.push({calculate:`datum["${u}"] - datum["${i.field}"]`,as:`lower_${u}`})}}for(const e of l){f.push({fieldPrefix:e.as.substring(0,6),titlePrefix:X(X(e.calculate,'datum["',""),'"]',"")})}}return{postAggregateCalculates:l,errorBarSpecificAggregate:c,tooltipSummary:f,tooltipTitleWithFieldName:d}}function eu(e,n,t){return`${U(e)} ${t} ${n}`}const nu="errorband";const tu=["band","borders"];const iu=new dl(nu,ru);function ru(e,{config:n}){e=Object.assign(Object.assign({},e),{encoding:xl(e.encoding,n)});const{transform:t,continuousAxisChannelDef:i,continuousAxis:r,encodingWithoutContinuousAxis:s,markDef:o,outerSpec:a,tooltipEncoding:c}=Ql(e,nu,n);const l=o;const u=Fl(l,r,i,s,n.errorband);const f=e.encoding.x!==undefined&&e.encoding.y!==undefined;let d={type:f?"area":"rect"};let p={type:f?"line":"rule"};const g=Object.assign(Object.assign({},l.interpolate?{interpolate:l.interpolate}:{}),l.tension&&l.interpolate?{tension:l.tension}:{});if(f){d=Object.assign(Object.assign(Object.assign({},d),g),{ariaRoleDescription:"errorband"});p=Object.assign(Object.assign(Object.assign({},p),g),{aria:false})}else if(l.interpolate){Vr(Tr("interpolate"))}else if(l.tension){Vr(Tr("tension"))}return Object.assign(Object.assign({},a),{transform:t,layer:[...u({partName:"band",mark:d,positionPrefix:"lower",endPositionPrefix:"upper",extraEncoding:c}),...u({partName:"borders",mark:p,positionPrefix:"lower",extraEncoding:c}),...u({partName:"borders",mark:p,positionPrefix:"upper",extraEncoding:c})]})}const su={};function ou(e,n,t){const i=new dl(e,n);su[e]={normalizer:i,parts:t}}function au(e){delete su[e]}function cu(){return A(su)}ou(Al,Il,Ml);ou(Hl,Gl,Bl);ou(nu,ru,tu);const lu=["gradientHorizontalMaxLength","gradientHorizontalMinLength","gradientVerticalMaxLength","gradientVerticalMinLength","unselectedOpacity"];const uu={titleAlign:"align",titleAnchor:"anchor",titleAngle:"angle",titleBaseline:"baseline",titleColor:"color",titleFont:"font",titleFontSize:"fontSize",titleFontStyle:"fontStyle",titleFontWeight:"fontWeight",titleLimit:"limit",titleLineHeight:"lineHeight",titleOrient:"orient",titlePadding:"offset"};const fu={labelAlign:"align",labelAnchor:"anchor",labelAngle:"angle",labelBaseline:"baseline",labelColor:"color",labelFont:"font",labelFontSize:"fontSize",labelFontStyle:"fontStyle",labelFontWeight:"fontWeight",labelLimit:"limit",labelLineHeight:"lineHeight",labelOrient:"orient",labelPadding:"offset"};const du=A(uu);const pu=A(fu);const gu={header:1,headerRow:1,headerColumn:1,headerFacet:1};const mu=A(gu);const hu=["size","shape","fill","stroke","strokeDash","strokeWidth","opacity"];const bu={gradientHorizontalMaxLength:200,gradientHorizontalMinLength:100,gradientVerticalMaxLength:200,gradientVerticalMinLength:64,unselectedOpacity:.35};const yu={aria:1,clipHeight:1,columnPadding:1,columns:1,cornerRadius:1,description:1,direction:1,fillColor:1,format:1,formatType:1,gradientLength:1,gradientOpacity:1,gradientStrokeColor:1,gradientStrokeWidth:1,gradientThickness:1,gridAlign:1,labelAlign:1,labelBaseline:1,labelColor:1,labelFont:1,labelFontSize:1,labelFontStyle:1,labelFontWeight:1,labelLimit:1,labelOffset:1,labelOpacity:1,labelOverlap:1,labelPadding:1,labelSeparation:1,legendX:1,legendY:1,offset:1,orient:1,padding:1,rowPadding:1,strokeColor:1,symbolDash:1,symbolDashOffset:1,symbolFillColor:1,symbolLimit:1,symbolOffset:1,symbolOpacity:1,symbolSize:1,symbolStrokeColor:1,symbolStrokeWidth:1,symbolType:1,tickCount:1,tickMinStep:1,title:1,titleAlign:1,titleAnchor:1,titleBaseline:1,titleColor:1,titleFont:1,titleFontSize:1,titleFontStyle:1,titleFontWeight:1,titleLimit:1,titleLineHeight:1,titleOpacity:1,titleOrient:1,titlePadding:1,type:1,values:1,zindex:1};const vu=A(yu);const Ou="_vgsid_";const xu={point:{on:"click",fields:[Ou],toggle:"event.shiftKey",resolve:"global",clear:"dblclick"},interval:{on:"[mousedown, window:mouseup] > window:mousemove!",encodings:["x","y"],translate:"[mousedown, window:mouseup] > window:mousemove!",zoom:"wheel!",mark:{fill:"#333",fillOpacity:.125,stroke:"white"},resolve:"global",clear:"dblclick"}};function ju(e){return e==="legend"||!!(e===null||e===void 0?void 0:e.legend)}function wu(e){return ju(e)&&(0,r.Kn)(e)}function $u(e){return!!(e===null||e===void 0?void 0:e["select"])}var ku=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);rthis.mapLayerOrUnit(e,n)))})}mapHConcat(e,n){return Object.assign(Object.assign({},e),{hconcat:e.hconcat.map((e=>this.map(e,n)))})}mapVConcat(e,n){return Object.assign(Object.assign({},e),{vconcat:e.vconcat.map((e=>this.map(e,n)))})}mapConcat(e,n){const{concat:t}=e,i=df(e,["concat"]);return Object.assign(Object.assign({},i),{concat:t.map((e=>this.map(e,n)))})}mapFacet(e,n){return Object.assign(Object.assign({},e),{spec:this.map(e.spec,n)})}mapRepeat(e,n){return Object.assign(Object.assign({},e),{spec:this.map(e.spec,n)})}}const gf={zero:1,center:1,normalize:1};function mf(e){return e in gf}const hf=new Set([qo,Ro,Io,Jo,Ho,Ko,Yo,Uo,Go,Xo]);const bf=new Set([Ro,Io,qo]);function yf(e){return fc(e)&&dc(e)==="quantitative"&&!e.bin}function vf(e,n){var t,i;const r=n==="x"?"y":"radius";const s=e[n];const o=e[r];if(fc(s)&&fc(o)){if(yf(s)&&yf(o)){if(s.stack){return n}else if(o.stack){return r}const e=fc(s)&&!!s.aggregate;const a=fc(o)&&!!o.aggregate;if(e!==a){return e?n:r}else{const e=(t=s.scale)===null||t===void 0?void 0:t.type;const a=(i=o.scale)===null||i===void 0?void 0:i.type;if(e&&e!=="linear"){return r}else if(a&&a!=="linear"){return n}}}else if(yf(s)){return n}else if(yf(o)){return r}}else if(yf(s)){return n}else if(yf(o)){return r}return undefined}function Of(e){switch(e){case"x":return"y";case"y":return"x";case"theta":return"radius";case"radius":return"theta"}}function xf(e,n){var t,i;const s=ia(e)?e.type:e;if(!hf.has(s)){return null}const o=vf(n,"x")||vf(n,"theta");if(!o){return null}const a=n[o];const c=fc(a)?Sc(a,{}):undefined;const l=Of(o);const u=[];const f=new Set;if(n[l]){const e=n[l];const t=fc(e)?Sc(e,{}):undefined;if(t&&t!==c){u.push(l);f.add(t)}const i=l==="x"?"xOffset":"yOffset";const r=n[i];const s=fc(r)?Sc(r,{}):undefined;if(s&&s!==c){u.push(i);f.add(s)}}const d=qn.reduce(((e,t)=>{if(t!=="tooltip"&&gl(n,t)){const i=n[t];for(const n of(0,r.IX)(i)){const i=Rc(n);if(i.aggregate){continue}const r=Sc(i,{});if(!r||!f.has(r)){e.push({channel:t,fieldDef:i})}}}return e}),[]);let p;if(a.stack!==undefined){if((0,r.jn)(a.stack)){p=a.stack?"zero":null}else{p=a.stack}}else if(bf.has(s)){p="zero"}if(!p||!mf(p)){return null}if(bl(n)&&d.length===0){return null}if(((t=a===null||a===void 0?void 0:a.scale)===null||t===void 0?void 0:t.type)&&((i=a===null||a===void 0?void 0:a.scale)===null||i===void 0?void 0:i.type)!==no.LINEAR){Vr(_r(a.scale.type));return null}if(bc(n[yn(o)])){if(a.stack!==undefined){Vr(Dr(o))}return null}if(fc(a)&&a.aggregate&&!$t.has(a.aggregate)){Vr(Pr(a.aggregate))}return{groupbyChannels:u,groupbyFields:f,fieldChannel:o,impute:a.impute===null?false:ea(s),stackBy:d,offset:p}}var jf=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r1?i:i.type}function $f(e){for(const n of["line","area","rule","trail"]){if(e[n]){e=Object.assign(Object.assign({},e),{[n]:O(e[n],["point","line"])})}}return e}function kf(e,n={},t){if(e.point==="transparent"){return{opacity:0}}else if(e.point){return(0,r.Kn)(e.point)?e.point:{}}else if(e.point!==undefined){return null}else{if(n.point||t.shape){return(0,r.Kn)(n.point)?n.point:{}}return undefined}}function Sf(e,n={}){if(e.line){return e.line===true?{}:e.line}else if(e.line!==undefined){return null}else{if(n.line){return n.line===true?{}:n.line}return undefined}}class Df{constructor(){this.name="path-overlay"}hasMatchingType(e,n){if(fl(e)){const{mark:t,encoding:i}=e;const r=ia(t)?t:{type:t};switch(r.type){case"line":case"rule":case"trail":return!!kf(r,n[r.type],i);case"area":return!!kf(r,n[r.type],i)||!!Sf(r,n[r.type])}}return false}run(e,n,t){const{config:i}=n;const{params:r,projection:s,mark:o,encoding:a}=e,c=jf(e,["params","projection","mark","encoding"]);const l=xl(a,i);const u=ia(o)?o:{type:o};const f=kf(u,i[u.type],l);const d=u.type==="area"&&Sf(u,i[u.type]);const p=[Object.assign(Object.assign({},r?{params:r}:{}),{mark:wf(Object.assign(Object.assign({},u.type==="area"&&u.opacity===undefined&&u.fillOpacity===undefined?{opacity:.7}:{}),u)),encoding:O(l,["shape"])})];const g=xf(u,l);let m=l;if(g){const{fieldChannel:e,offset:n}=g;m=Object.assign(Object.assign({},l),{[e]:Object.assign(Object.assign({},l[e]),n?{stack:n}:{})})}m=O(m,["y2","x2"]);if(d){p.push(Object.assign(Object.assign({},s?{projection:s}:{}),{mark:Object.assign(Object.assign({type:"line"},v(u,["clip","interpolate","tension","tooltip"])),d),encoding:m}))}if(f){p.push(Object.assign(Object.assign({},s?{projection:s}:{}),{mark:Object.assign(Object.assign({type:"point",opacity:1,filled:true},v(u,["clip","tooltip"])),f),encoding:m}))}return t(Object.assign(Object.assign({},c),{layer:p}),Object.assign(Object.assign({},n),{config:$f(i)}))}}var _f=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);rNf(e,n))).filter((e=>e))}else{const e=Nf(s,n);if(e!==undefined){t[i]=e}}}}return t}class Af{constructor(){this.name="RuleForRangedLine"}hasMatchingType(e){if(fl(e)){const{encoding:n,mark:t}=e;if(t==="line"||ia(t)&&t.type==="line"){for(const e of gn){const t=hn(e);const i=n[t];if(n[e]){if(fc(i)&&!_t(i.bin)||pc(i)){return true}}}}}return false}run(e,n,t){const{encoding:i,mark:s}=e;Vr(rr(!!i.x2,!!i.y2));return t(Object.assign(Object.assign({},e),{mark:(0,r.Kn)(s)?Object.assign(Object.assign({},s),{type:"rule"}):"rule"}),n)}}var Mf=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r{const t=Object.assign(Object.assign({},c),{layer:e});const r=`${(i.name||"")+l}child__layer_${I(e)}`;const s=this.mapLayerOrUnit(i,Object.assign(Object.assign({},n),{repeater:t,repeaterPrefix:r}));s.name=r;return s}))})}}mapNonLayerRepeat(e,n){var t;const{repeat:i,spec:s,data:o}=e,a=Mf(e,["repeat","spec","data"]);if(!(0,r.kJ)(i)&&e.columns){e=O(e,["columns"]);Vr(Pi("repeat"))}const c=[];const{repeater:l={},repeaterPrefix:u=""}=n;const f=!(0,r.kJ)(i)&&i.row||[l?l.row:null];const d=!(0,r.kJ)(i)&&i.column||[l?l.column:null];const p=(0,r.kJ)(i)&&i||[l?l.repeat:null];for(const m of p){for(const e of f){for(const t of d){const o={repeat:m,row:e,column:t,layer:l.layer};const a=(s.name||"")+u+"child__"+((0,r.kJ)(i)?`${I(m)}`:(i.row?`row_${I(e)}`:"")+(i.column?`column_${I(t)}`:""));const f=this.map(s,Object.assign(Object.assign({},n),{repeater:o,repeaterPrefix:a}));f.name=a;c.push(O(f,["data"]))}}}const g=(0,r.kJ)(i)?e.columns:i.column?i.column.length:1;return Object.assign(Object.assign({data:(t=s.data)!==null&&t!==void 0?t:o,align:"all"},a),{columns:g,concat:c})}mapFacet(e,n){const{facet:t}=e;if(Ka(t)&&e.columns){e=O(e,["columns"]);Vr(Pi("facet"))}return super.mapFacet(e,n)}mapUnitWithParentEncodingOrProjection(e,n){const{encoding:t,projection:i}=e;const{parentEncoding:r,parentProjection:s,config:o}=n;const a=If({parentProjection:s,projection:i});const c=qf({parentEncoding:r,encoding:Ff(t,n.repeater)});return this.mapUnit(Object.assign(Object.assign(Object.assign({},e),a?{projection:a}:{}),c?{encoding:c}:{}),{config:o})}mapFacetedUnit(e,n){const t=e.encoding,{row:i,column:r,facet:s}=t,o=Mf(t,["row","column","facet"]);const{mark:a,width:c,projection:l,height:u,view:f,params:d,encoding:p}=e,g=Mf(e,["mark","width","projection","height","view","params","encoding"]);const{facetMapping:m,layout:h}=this.getFacetMappingAndLayout({row:i,column:r,facet:s},n);const b=Ff(o,n.repeater);return this.mapFacet(Object.assign(Object.assign(Object.assign({},g),h),{facet:m,spec:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c?{width:c}:{}),u?{height:u}:{}),f?{view:f}:{}),l?{projection:l}:{}),{mark:a,encoding:b}),d?{params:d}:{})}),n)}getFacetMappingAndLayout(e,n){var t;const{row:i,column:r,facet:s}=e;if(i||r){if(s){Vr(nr([...i?[oe]:[],...r?[ae]:[]]))}const n={};const o={};for(const i of[oe,ae]){const r=e[i];if(r){const{align:e,center:s,spacing:a,columns:c}=r,l=Mf(r,["align","center","spacing","columns"]);n[i]=l;for(const n of["align","center","spacing"]){if(r[n]!==undefined){(t=o[n])!==null&&t!==void 0?t:o[n]={};o[n][i]=r[n]}}}}return{facetMapping:n,layout:o}}else{const{align:e,center:t,spacing:i,columns:r}=s,o=Mf(s,["align","center","spacing","columns"]);return{facetMapping:Pf(o,n.repeater),layout:Object.assign(Object.assign(Object.assign(Object.assign({},e?{align:e}:{}),t?{center:t}:{}),i?{spacing:i}:{}),r?{columns:r}:{})}}}mapLayer(e,n){var{parentEncoding:t,parentProjection:i}=n,r=Mf(n,["parentEncoding","parentProjection"]);const{encoding:s,projection:o}=e,a=Mf(e,["encoding","projection"]);const c=Object.assign(Object.assign({},r),{parentEncoding:qf({parentEncoding:t,encoding:s,layer:true}),parentProjection:If({parentProjection:i,projection:o})});return super.mapLayer(a,c)}}function qf({parentEncoding:e,encoding:n={},layer:t}){let i={};if(e){const s=new Set([...A(e),...A(n)]);for(const o of s){const s=n[o];const a=e[o];if(bc(s)){const e=Object.assign(Object.assign({},a),s);i[o]=e}else if(lc(s)){i[o]=Object.assign(Object.assign({},s),{condition:Object.assign(Object.assign({},a),s.condition)})}else if(s||s===null){i[o]=s}else if(t||vc(a)||Mt(a)||bc(a)||(0,r.kJ)(a)){i[o]=a}}}else{i=n}return!i||T(i)?undefined:i}function If(e){const{parentProjection:n,projection:t}=e;if(n&&t){Vr(Mi({parentProjection:n,projection:t}))}return t!==null&&t!==void 0?t:n}function Rf(e){return"filter"in e}function Wf(e){return(e===null||e===void 0?void 0:e["stop"])!==undefined}function Uf(e){return"lookup"in e}function Hf(e){return"data"in e}function Bf(e){return"param"in e}function Jf(e){return"pivot"in e}function Gf(e){return"density"in e}function Xf(e){return"quantile"in e}function Vf(e){return"regression"in e}function Kf(e){return"loess"in e}function Yf(e){return"sample"in e}function Qf(e){return"window"in e}function Zf(e){return"joinaggregate"in e}function ed(e){return"flatten"in e}function nd(e){return"calculate"in e}function td(e){return"bin"in e}function id(e){return"impute"in e}function rd(e){return"timeUnit"in e}function sd(e){return"aggregate"in e}function od(e){return"stack"in e}function ad(e){return"fold"in e}function cd(e){return e.map((e=>{if(Rf(e)){return{filter:m(e.filter,Rs)}}return e}))}var ld=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r{var i;const r=t,{init:s,bind:o,empty:a}=r,c=ld(r,["init","bind","empty"]);if(c.type==="single"){c.type="point";c.toggle=false}else if(c.type==="multi"){c.type="point"}n.emptySelections[e]=a!=="none";for(const l of M((i=n.selectionPredicates[e])!==null&&i!==void 0?i:{})){l.empty=a!=="none"}return{name:e,value:s,select:c,bind:o}}))})}return e}}function fd(e,n){const{transform:t}=e,i=ld(e,["transform"]);if(t){const e=t.map((e=>{if(Rf(e)){return{filter:gd(e,n)}}else if(td(e)&&Pt(e.bin)){return Object.assign(Object.assign({},e),{bin:pd(e.bin)})}else if(Uf(e)){const n=e.from,{selection:t}=n,i=ld(n,["selection"]);return t?Object.assign(Object.assign({},e),{from:Object.assign({param:t},i)}):e}return e}));return Object.assign(Object.assign({},i),{transform:e})}return e}function dd(e,n){var t,i;const r=b(e);if(fc(r)&&Pt(r.bin)){r.bin=pd(r.bin)}if(Oc(r)&&((i=(t=r.scale)===null||t===void 0?void 0:t.domain)===null||i===void 0?void 0:i.selection)){const e=r.scale.domain,{selection:n}=e,t=ld(e,["selection"]);r.scale.domain=Object.assign(Object.assign({},t),n?{param:n}:{})}if(ac(r)){if((0,Ws.isArray)(r.condition)){r.condition=r.condition.map((e=>{const{selection:t,param:i,test:r}=e,s=ld(e,["selection","param","test"]);return i?e:Object.assign(Object.assign({},s),{test:gd(e,n)})}))}else{const e=dd(r.condition,n),{selection:t,param:i,test:s}=e,o=ld(e,["selection","param","test"]);r.condition=i?r.condition:Object.assign(Object.assign({},o),{test:gd(r.condition,n)})}}return r}function pd(e){const n=e.extent;if(n===null||n===void 0?void 0:n.selection){const{selection:t}=n,i=ld(n,["selection"]);return Object.assign(Object.assign({},e),{extent:Object.assign(Object.assign({},i),{param:t})})}return e}function gd(e,n){const t=e=>m(e,(e=>{var t,i;var r;const s=(t=n.emptySelections[e])!==null&&t!==void 0?t:true;const o={param:e,empty:s};(i=(r=n.selectionPredicates)[e])!==null&&i!==void 0?i:r[e]=[];n.selectionPredicates[e].push(o);return o}));return e.selection?t(e.selection):m(e.test||e.filter,(e=>e.selection?t(e.selection):e))}class md extends pf{map(e,n){var t;const i=(t=n.selections)!==null&&t!==void 0?t:[];if(e.params&&!fl(e)){const n=[];for(const t of e.params){if($u(t)){i.push(t)}else{n.push(t)}}e.params=n}n.selections=i;return super.map(e,hd(e,n))}mapUnit(e,n){var t;const i=n.selections;if(!i||!i.length)return e;const r=((t=n.path)!==null&&t!==void 0?t:[]).concat(e.name);const s=[];for(const o of i){if(!o.views||!o.views.length){s.push(o)}else{for(const n of o.views){if((0,Ws.isString)(n)&&(n===e.name||r.indexOf(n)>=0)||(0,Ws.isArray)(n)&&n.map((e=>r.indexOf(e))).every(((e,n,t)=>e!==-1&&(n===0||e>t[n-1])))){s.push(o)}}}}if(s.length)e.params=s;return e}}for(const MO of["mapFacet","mapRepeat","mapHConcat","mapVConcat","mapLayer"]){const e=md.prototype[MO];md.prototype[MO]=function(n,t){return e.call(this,n,hd(n,t))}}function hd(e,n){var t;return e.name?Object.assign(Object.assign({},n),{path:((t=n.path)!==null&&t!==void 0?t:[]).concat(e.name)}):n}function bd(e,n){if(n===undefined){n=nf(e.config)}const t=xd(e,n);const{width:i,height:r}=e;const s=wd(t,{width:i,height:r,autosize:e.autosize},n);return Object.assign(Object.assign({},t),s?{autosize:s}:{})}const yd=new Lf;const vd=new ud;const Od=new md;function xd(e,n={}){const t={config:n};return Od.map(yd.map(vd.map(e,t),t),t)}function jd(e){return(0,r.HD)(e)?{type:e}:e!==null&&e!==void 0?e:{}}function wd(e,n,t){let{width:i,height:r}=n;const s=fl(e)||lf(e);const o={};if(!s){if(i=="container"){Vr(pi("width"));i=undefined}if(r=="container"){Vr(pi("height"));r=undefined}}else{if(i=="container"&&r=="container"){o.type="fit";o.contains="padding"}else if(i=="container"){o.type="fit-x";o.contains="padding"}else if(r=="container"){o.type="fit-y";o.contains="padding"}}const a=Object.assign(Object.assign(Object.assign({type:"pad"},o),t?jd(t.autosize):{}),jd(e.autosize));if(a.type==="fit"&&!s){Vr(di);a.type="pad"}if(i=="container"&&!(a.type=="fit"||a.type=="fit-x")){Vr(gi("width"))}if(r=="container"&&!(a.type=="fit"||a.type=="fit-y")){Vr(gi("height"))}if(h(a,{type:"pad"})){return undefined}return a}function $d(e){return e==="fit"||e==="fit-x"||e==="fit-y"}function kd(e){return e?`fit-${Bn(e)}`:"fit"}const Sd=["background","padding"];function Dd(e,n){const t={};for(const i of Sd){if(e&&e[i]!==undefined){t[i]=Vt(e[i])}}if(n){t.params=e.params}return t}class _d{constructor(e={},n={}){this.explicit=e;this.implicit=n}clone(){return new _d(b(this.explicit),b(this.implicit))}combine(){return Object.assign(Object.assign({},this.explicit),this.implicit)}get(e){return Y(this.explicit[e],this.implicit[e])}getWithExplicit(e){if(this.explicit[e]!==undefined){return{explicit:true,value:this.explicit[e]}}else if(this.implicit[e]!==undefined){return{explicit:false,value:this.implicit[e]}}return{explicit:false,value:undefined}}setWithExplicit(e,{value:n,explicit:t}){if(n!==undefined){this.set(e,n,t)}}set(e,n,t){delete this[t?"implicit":"explicit"][e];this[t?"explicit":"implicit"][e]=n;return this}copyKeyFromSplit(e,{explicit:n,implicit:t}){if(n[e]!==undefined){this.set(e,n[e],true)}else if(t[e]!==undefined){this.set(e,t[e],false)}}copyKeyFromObject(e,n){if(n[e]!==undefined){this.set(e,n[e],true)}}copyAll(e){for(const n of A(e.combine())){const t=e.getWithExplicit(n);this.setWithExplicit(n,t)}}}function Pd(e){return{explicit:true,value:e}}function Fd(e){return{explicit:false,value:e}}function zd(e){return(n,t,i,r)=>{const s=e(n.value,t.value);if(s>0){return n}else if(s<0){return t}return Cd(n,t,i,r)}}function Cd(e,n,t,i){if(e.explicit&&n.explicit){Vr(yr(t,i,e.value,n.value))}return e}function Ed(e,n,t,i,r=Cd){if(e===undefined||e.value===undefined){return n}if(e.explicit&&!n.explicit){return e}else if(n.explicit&&!e.explicit){return n}else if(h(e.value,n.value)){return e}else{return r(e,n,t,i)}}class Nd extends _d{constructor(e={},n={},t=false){super(e,n);this.explicit=e;this.implicit=n;this.parseNothing=t}clone(){const e=super.clone();e.parseNothing=this.parseNothing;return e}}function Td(e){return"url"in e}function Ad(e){return"values"in e}function Md(e){return"name"in e&&!Td(e)&&!Ad(e)&&!Ld(e)}function Ld(e){return e&&(qd(e)||Id(e)||Rd(e))}function qd(e){return"sequence"in e}function Id(e){return"sphere"in e}function Rd(e){return"graticule"in e}var Wd;(function(e){e[e["Raw"]=0]="Raw";e[e["Main"]=1]="Main";e[e["Row"]=2]="Row";e[e["Column"]=3]="Column";e[e["Lookup"]=4]="Lookup"})(Wd||(Wd={}));var Ud=t(83082);var Hd=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);rBd(e,n,t)));return n?`[${i.join(", ")}]`:i}else if(Qr(e)){if(n){return t(as(e))}else{return t(ls(e))}}return n?t(x(e)):e}function Jd(e,n){var t;for(const i of M((t=e.component.selection)!==null&&t!==void 0?t:{})){const t=i.name;let s=`${t}${Fg}, ${i.resolve==="global"?"true":`{unit: ${Ag(e)}}`}`;for(const r of Ng){if(!r.defined(i))continue;if(r.signals)n=r.signals(e,i,n);if(r.modifyExpr)s=r.modifyExpr(e,i,s)}n.push({name:t+zg,on:[{events:{signal:i.name+Fg},update:`modify(${(0,r.m8)(i.name+Pg)}, ${s})`}]})}return Zd(n)}function Gd(e,n){if(e.component.selection&&A(e.component.selection).length){const t=(0,r.m8)(e.getName("cell"));n.unshift({name:"facet",value:{},on:[{events:(0,Ud.r)("mousemove","scope"),update:`isTuple(facet) ? facet : group(${t}).datum`}]})}return Zd(n)}function Xd(e,n){var t;let i=false;for(const s of M((t=e.component.selection)!==null&&t!==void 0?t:{})){const t=s.name;const o=(0,r.m8)(t+Pg);const a=n.filter((e=>e.name===t));if(a.length===0){const e=s.resolve==="global"?"union":s.resolve;const t=s.type==="point"?", true, true)":")";n.push({name:s.name,update:`${Eg}(${o}, ${(0,r.m8)(e)}${t}`})}i=true;for(const i of Ng){if(i.defined(s)&&i.topLevelSignals){n=i.topLevelSignals(e,s,n)}}}if(i){const e=n.filter((e=>e.name==="unit"));if(e.length===0){n.unshift({name:"unit",value:{},on:[{events:"mousemove",update:"isTuple(group()) ? group() : unit"}]})}}return Zd(n)}function Vd(e,n){var t;const i=[...n];const r=Ag(e,{escape:false});for(const s of M((t=e.component.selection)!==null&&t!==void 0?t:{})){const e={name:s.name+Pg};if(s.project.hasSelectionId){e.transform=[{type:"collect",sort:{field:Ou}}]}if(s.init){const n=s.project.items.map((e=>{const{signals:n}=e,t=Hd(e,["signals"]);return t}));e.values=s.project.hasSelectionId?s.init.map((e=>({unit:r,[Ou]:Bd(e,false)[0]}))):s.init.map((e=>({unit:r,fields:n,values:Bd(e,false)})))}const n=i.filter((e=>e.name===s.name+Pg));if(!n.length){i.push(e)}}return i}function Kd(e,n){var t;for(const i of M((t=e.component.selection)!==null&&t!==void 0?t:{})){for(const t of Ng){if(t.defined(i)&&t.marks){n=t.marks(e,i,n)}}}return n}function Yd(e,n){for(const t of e.children){if(Uy(t)){n=Kd(t,n)}}return n}function Qd(e,n,t,i){const s=Jg(e,n.param,n);return{signal:ho(t.get("type"))&&(0,r.kJ)(i)&&i[0]>i[1]?`isValid(${s}) && reverse(${s})`:s}}function Zd(e){return e.map((e=>{if(e.on&&!e.on.length)delete e.on;return e}))}class ep{constructor(e,n){this.debugName=n;this._children=[];this._parent=null;if(e){this.parent=e}}clone(){throw new Error("Cannot clone node")}get parent(){return this._parent}set parent(e){this._parent=e;if(e){e.addChild(this)}}get children(){return this._children}numChildren(){return this._children.length}addChild(e,n){if(this._children.includes(e)){Vr(Ei);return}if(n!==undefined){this._children.splice(n,0,e)}else{this._children.push(e)}}removeChild(e){const n=this._children.indexOf(e);this._children.splice(n,1);return n}remove(){let e=this._parent.removeChild(this);for(const n of this._children){n._parent=this._parent;this._parent.addChild(n,e++)}}insertAsParentOf(e){const n=e.parent;n.removeChild(this);this.parent=n;e.parent=this}swapWithParent(){const e=this._parent;const n=e.parent;for(const i of this._children){i.parent=e}this._children=[];e.removeChild(this);const t=e.parent.removeChild(e);this._parent=n;n.addChild(this,t);e.parent=this}}class np extends ep{clone(){const e=new this.constructor;e.debugName=`clone_${this.debugName}`;e._source=this._source;e._name=`clone_${this._name}`;e.type=this.type;e.refCounts=this.refCounts;e.refCounts[e._name]=0;return e}constructor(e,n,t,i){super(e,n);this.type=t;this.refCounts=i;this._source=this._name=n;if(this.refCounts&&!(this._name in this.refCounts)){this.refCounts[this._name]=0}}dependentFields(){return new Set}producedFields(){return new Set}hash(){if(this._hash===undefined){this._hash=`Output ${Z()}`}return this._hash}getSource(){this.refCounts[this._name]++;return this._source}isRequired(){return!!this.refCounts[this._name]}setSource(e){this._source=e}}var tp=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r{const{field:t,timeUnit:i}=n;if(i){const r=Sc(n,{forAs:true});e[j({as:r,field:t,timeUnit:i})]={as:r,field:t,timeUnit:i}}return e}),{});if(T(t)){return null}return new ip(e,t)}static makeFromTransform(e,n){const t=Object.assign({},n),{timeUnit:i}=t,r=tp(t,["timeUnit"]);const s=ks(i);const o=Object.assign(Object.assign({},r),{timeUnit:s});return new ip(e,{[j(o)]:o})}merge(e){this.formula=Object.assign({},this.formula);for(const n in e.formula){if(!this.formula[n]){this.formula[n]=e.formula[n]}}for(const n of e.children){e.removeChild(n);n.parent=this}e.remove()}removeFormulas(e){const n={};for(const[t,i]of L(this.formula)){if(!e.has(i.as)){n[t]=i}}this.formula=n}producedFields(){return new Set(M(this.formula).map((e=>e.as)))}dependentFields(){return new Set(M(this.formula).map((e=>e.field)))}hash(){return`TimeUnit ${j(this.formula)}`}assemble(){const e=[];for(const n of M(this.formula)){const{field:t,as:i,timeUnit:r}=n;const s=ks(r),{unit:o,utc:a}=s,c=tp(s,["unit","utc"]);e.push(Object.assign(Object.assign(Object.assign(Object.assign({field:G(t),type:"timeunit"},o?{units:Os(o)}:{}),a?{timezone:"utc"}:{}),c),{as:[i,`${i}_end`]}))}return e}}var rp=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);rtrue,parse:(e,n,t)=>{var i;const s=n.name;const o=(i=n.project)!==null&&i!==void 0?i:n.project=new op;const a={};const c={};const l=new Set;const u=(e,n)=>{const t=n==="visual"?e.channel:e.field;let i=I(`${s}_${t}`);for(let r=1;l.has(i);r++){i=I(`${s}_${t}_${r}`)}l.add(i);return{[n]:i}};const f=n.type;const d=e.config.selection[f];const p=t.value!==undefined?(0,r.IX)(t.value):null;let{fields:g,encodings:m}=(0,r.Kn)(t.select)?t.select:{};if(!g&&!m&&p){for(const e of p){if(!(0,r.Kn)(e)){continue}for(const n of A(e)){if(dn(n)){(m||(m=[])).push(n)}else{if(f==="interval"){Vr(Di);m=d.encodings}else{(g||(g=[])).push(n)}}}}}if(!g&&!m){m=d.encodings;if("fields"in d){g=d.fields}}for(const r of m!==null&&m!==void 0?m:[]){const n=e.fieldDef(r);if(n){let t=n.field;if(n.aggregate){Vr(yi(r,n.aggregate));continue}else if(!t){Vr(bi(r));continue}if(n.timeUnit){t=e.vgField(r);const i={timeUnit:n.timeUnit,as:t,field:n.field};c[j(i)]=i}if(!a[t]){let i="E";if(f==="interval"){const n=e.getScaleComponent(r).get("type");if(ho(n)){i="R"}}else if(n.bin){i="R-RE"}const s={field:t,channel:r,type:i};s.signals=Object.assign(Object.assign({},u(s,"data")),u(s,"visual"));o.items.push(a[t]=s);o.hasField[t]=o.hasChannel[r]=a[t];o.hasSelectionId=o.hasSelectionId||t===Ou}}else{Vr(bi(r))}}for(const r of g!==null&&g!==void 0?g:[]){if(o.hasField[r])continue;const e={type:"E",field:r};e.signals=Object.assign({},u(e,"data"));o.items.push(e);o.hasField[r]=e;o.hasSelectionId=o.hasSelectionId||r===Ou}if(p){n.init=p.map((e=>o.items.map((n=>(0,r.Kn)(e)?e[n.channel]!==undefined?e[n.channel]:e[n.field]:e))))}if(!T(c)){o.timeUnit=new ip(null,c)}},signals:(e,n,t)=>{const i=n.name+sp;const r=t.filter((e=>e.name===i));return r.length>0||n.project.hasSelectionId?t:t.concat({name:i,value:n.project.items.map((e=>{const{signals:n,hasLegend:t}=e,i=rp(e,["signals","hasLegend"]);i.field=G(i.field);return i}))})}};const cp=ap;const lp={defined:e=>e.type==="interval"&&e.resolve==="global"&&e.bind&&e.bind==="scales",parse:(e,n)=>{const t=n.scales=[];for(const i of n.project.items){const r=i.channel;if(!lt(r)){continue}const s=e.getScaleComponent(r);const o=s?s.get("type"):undefined;if(!s||!ho(o)){Vr(ji);continue}s.set("selectionExtent",{param:n.name,field:i.field},true);t.push(i)}},topLevelSignals:(e,n,t)=>{const i=n.scales.filter((e=>t.filter((n=>n.name===e.signals.data)).length===0));if(!e.parent||dp(e)||i.length===0){return t}const s=t.filter((e=>e.name===n.name))[0];let o=s.update;if(o.indexOf(Eg)>=0){s.update=`{${i.map((e=>`${(0,r.m8)(G(e.field))}: ${e.signals.data}`)).join(", ")}}`}else{for(const e of i){const n=`${(0,r.m8)(G(e.field))}: ${e.signals.data}`;if(!o.includes(n)){o=`${o.substring(0,o.length-1)}, ${n}}`}}s.update=o}return t.concat(i.map((e=>({name:e.signals.data}))))},signals:(e,n,t)=>{if(e.parent&&!dp(e)){for(const e of n.scales){const n=t.filter((n=>n.name===e.signals.data))[0];n.push="outer";delete n.value;delete n.update}}return t}};const up=lp;function fp(e,n){const t=(0,r.m8)(e.scaleName(n));return`domain(${t})`}function dp(e){var n;return e.parent&&Jy(e.parent)&&((n=!e.parent.parent)!==null&&n!==void 0?n:dp(e.parent.parent))}var pp=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);re.type==="interval",signals:(e,n,t)=>{const i=n.name;const s=i+sp;const o=up.defined(n);const a=n.init?n.init[0]:null;const c=[];const l=[];if(n.translate&&!o){const e=`!event.item || event.item.mark.name !== ${(0,r.m8)(i+gp)}`;vp(n,((n,t)=>{var i;var s;const o=(0,r.IX)((i=(s=t.between[0]).filter)!==null&&i!==void 0?i:s.filter=[]);if(!o.includes(e)){o.push(e)}return n}))}n.project.items.forEach(((i,s)=>{const o=i.channel;if(o!==le&&o!==ue){Vr("Interval selections only support x and y encoding channels.");return}const u=a?a[s]:null;const f=yp(e,n,i,u);const d=i.signals.data;const p=i.signals.visual;const g=(0,r.m8)(e.scaleName(o));const m=e.getScaleComponent(o).get("type");const h=ho(m)?"+":"";t.push(...f);c.push(d);l.push({scaleName:e.scaleName(o),expr:`(!isArray(${d}) || `+`(${h}invert(${g}, ${p})[0] === ${h}${d}[0] && `+`${h}invert(${g}, ${p})[1] === ${h}${d}[1]))`})}));if(!o&&l.length){t.push({name:i+mp,value:{},on:[{events:l.map((e=>({scale:e.scaleName}))),update:`${l.map((e=>e.expr)).join(" && ")} ? ${i+mp} : {}`}]})}const u=`unit: ${Ag(e)}, fields: ${s}, values`;return t.concat(Object.assign(Object.assign({name:i+Fg},a?{init:`{${u}: ${Bd(a)}}`}:{}),c.length?{on:[{events:[{signal:c.join(" || ")}],update:`${c.join(" && ")} ? {${u}: [${c}]} : null`}]}:{}))},marks:(e,n,t)=>{const i=n.name;const{x:s,y:o}=n.project.hasChannel;const a=s===null||s===void 0?void 0:s.signals.visual;const c=o===null||o===void 0?void 0:o.signals.visual;const l=`data(${(0,r.m8)(n.name+Pg)})`;if(up.defined(n)||!s&&!o){return t}const u={x:s!==undefined?{signal:`${a}[0]`}:{value:0},y:o!==undefined?{signal:`${c}[0]`}:{value:0},x2:s!==undefined?{signal:`${a}[1]`}:{field:{group:"width"}},y2:o!==undefined?{signal:`${c}[1]`}:{field:{group:"height"}}};if(n.resolve==="global"){for(const n of A(u)){u[n]=[Object.assign({test:`${l}.length && ${l}[0].unit === ${Ag(e)}`},u[n]),{value:0}]}}const f=n.mark,{fill:d,fillOpacity:p,cursor:g}=f,m=pp(f,["fill","fillOpacity","cursor"]);const h=A(m).reduce(((e,n)=>{e[n]=[{test:[s!==undefined&&`${a}[0] !== ${a}[1]`,o!==undefined&&`${c}[0] !== ${c}[1]`].filter((e=>e)).join(" && "),value:m[n]},{value:null}];return e}),{});return[{name:`${i+gp}_bg`,type:"rect",clip:true,encode:{enter:{fill:{value:d},fillOpacity:{value:p}},update:u}},...t,{name:i+gp,type:"rect",clip:true,encode:{enter:Object.assign(Object.assign({},g?{cursor:{value:g}}:{}),{fill:{value:"transparent"}}),update:Object.assign(Object.assign({},u),h)}}]}};const bp=hp;function yp(e,n,t,i){const s=t.channel;const o=t.signals.visual;const a=t.signals.data;const c=up.defined(n);const l=(0,r.m8)(e.scaleName(s));const u=e.getScaleComponent(s);const f=u?u.get("type"):undefined;const d=e=>`scale(${l}, ${e})`;const p=e.getSizeSignalRef(s===le?"width":"height").signal;const g=`${s}(unit)`;const m=vp(n,((e,n)=>[...e,{events:n.between[0],update:`[${g}, ${g}]`},{events:n,update:`[${o}[0], clamp(${g}, 0, ${p})]`}]));m.push({events:{signal:n.name+mp},update:ho(f)?`[${d(`${a}[0]`)}, ${d(`${a}[1]`)}]`:`[0, 0]`});return c?[{name:a,on:[]}]:[Object.assign(Object.assign({name:o},i?{init:Bd(i,true,d)}:{value:[]}),{on:m}),Object.assign(Object.assign({name:a},i?{init:Bd(i)}:{}),{on:[{events:{signal:o},update:`${o}[0] === ${o}[1] ? null : invert(${l}, ${o})`}]})]}function vp(e,n){return e.events.reduce(((e,t)=>{if(!t.between){Vr(`${t} is not an ordered event stream for interval selections.`);return e}return n(e,t)}),[])}const Op={defined:e=>e.type==="point",signals:(e,n,t)=>{var i;const s=n.name;const o=s+sp;const a=n.project;const c="(item().isVoronoi ? datum.datum : datum)";const l=M((i=e.component.selection)!==null&&i!==void 0?i:{}).reduce(((e,n)=>n.type==="interval"?e.concat(n.name+gp):e),[]).map((e=>`indexof(item().mark.name, '${e}') < 0`)).join(" && ");const u=`datum && item().mark.marktype !== 'group' && indexof(item().mark.role, 'legend') < 0${l?` && ${l}`:""}`;let f=`unit: ${Ag(e)}, `;if(n.project.hasSelectionId){f+=`${Ou}: ${c}[${(0,r.m8)(Ou)}]`}else{const n=a.items.map((n=>{const t=e.fieldDef(n.channel);return(t===null||t===void 0?void 0:t.bin)?`[${c}[${(0,r.m8)(e.vgField(n.channel,{}))}], `+`${c}[${(0,r.m8)(e.vgField(n.channel,{binSuffix:"end"}))}]]`:`${c}[${(0,r.m8)(n.field)}]`})).join(", ");f+=`fields: ${o}, values: [${n}]`}const d=n.events;return t.concat([{name:s+Fg,on:d?[{events:d,update:`${u} ? {${f}} : null`,force:true}]:[]}])}};const xp=Op;function jp(e,n,t,i){const s=ac(n)&&n.condition;const o=i(n);if(s){const n=(0,r.IX)(s);const a=n.map((n=>{const t=i(n);if(ec(n)){const{param:i,empty:r}=n;const s=Bg(e,{param:i,empty:r});return Object.assign({test:s},t)}else{const i=Xg(e,n.test);return Object.assign({test:i},t)}}));return{[t]:[...a,...o!==undefined?[o]:[]]}}else{return o!==undefined?{[t]:o}:{}}}function wp(e,n="text"){const t=e.encoding[n];return jp(e,t,n,(n=>$p(n,e.config)))}function $p(e,n,t="datum"){if(e){if(vc(e)){return Yt(e.value)}if(bc(e)){const{format:i,formatType:r}=qc(e);return Ea({fieldOrDatumDef:e,format:i,formatType:r,expr:t,config:n})}}return undefined}function kp(e,n={}){const{encoding:t,markDef:i,config:s,stack:o}=e;const a=t.tooltip;if((0,r.kJ)(a)){return{tooltip:Dp({tooltip:a},o,s,n)}}else{const c=n.reactiveGeom?"datum.datum":"datum";return jp(e,a,"tooltip",(e=>{const a=$p(e,s,c);if(a){return a}if(e===null){return undefined}let l=ii("tooltip",i,s);if(l===true){l={content:"encoding"}}if((0,r.HD)(l)){return{value:l}}else if((0,r.Kn)(l)){if(Mt(l)){return l}else if(l.content==="encoding"){return Dp(t,o,s,n)}else{return{signal:c}}}return undefined}))}}function Sp(e,n,t,{reactiveGeom:i}={}){const s={};const o=i?"datum.datum":"datum";const a=[];function c(i,c){const l=hn(c);const u=yc(i)?i:Object.assign(Object.assign({},i),{type:e[l].type});const f=u.title||Lc(u,t);const d=(0,r.IX)(f).join(", ");let p;if(Wn(c)){const n=c==="x"?"x2":"y2";const i=Rc(e[n]);if(_t(u.bin)&&i){const e=Sc(u,{expr:o});const r=Sc(i,{expr:o});const{format:a,formatType:c}=qc(u);p=Wa(e,r,a,c,t);s[n]=true}}if((Wn(c)||c===be||c===me)&&n&&n.fieldChannel===c&&n.offset==="normalize"){const{format:e,formatType:n}=qc(u);p=Ea({fieldOrDatumDef:u,format:e,formatType:n,expr:o,config:t,normalizeStack:true}).signal}p!==null&&p!==void 0?p:p=$p(u,t,o).signal;a.push({channel:c,key:d,value:p})}wl(e,((e,n)=>{if(fc(e)){c(e,n)}else if(cc(e)){c(e.condition,n)}}));const l={};for(const{channel:r,key:u,value:f}of a){if(!s[r]&&!l[u]){l[u]=f}}return l}function Dp(e,n,t,{reactiveGeom:i}={}){const r=Sp(e,n,t,{reactiveGeom:i});const s=L(r).map((([e,n])=>`"${e}": ${n}`));return s.length>0?{signal:`{${s.join(", ")}}`}:undefined}function _p(e){const{markDef:n,config:t}=e;const i=ii("aria",n,t);if(i===false){return{}}return Object.assign(Object.assign(Object.assign({},i?{aria:i}:{}),Pp(e)),Fp(e))}function Pp(e){const{mark:n,markDef:t,config:i}=e;if(i.aria===false){return{}}const r=ii("ariaRoleDescription",t,i);if(r!=null){return{ariaRoleDescription:{value:r}}}return n in Ht?{}:{ariaRoleDescription:{value:n}}}function Fp(e){const{encoding:n,markDef:t,config:i,stack:r}=e;const s=n.description;if(s){return jp(e,s,"description",(n=>$p(n,e.config)))}const o=ii("description",t,i);if(o!=null){return{description:Yt(o)}}if(i.aria===false){return{}}const a=Sp(n,r,i);if(T(a)){return undefined}return{description:{signal:L(a).map((([e,n],t)=>`"${t>0?"; ":""}${e}: " + (${n})`)).join(" + ")}}}function zp(e,n,t={}){const{markDef:i,encoding:r,config:s}=n;const{vgChannel:o}=t;let{defaultRef:a,defaultValue:c}=t;if(a===undefined){c!==null&&c!==void 0?c:c=ii(e,i,s,{vgChannel:o,ignoreVgConfig:true});if(c!==undefined){a=Yt(c)}}const l=r[e];return jp(n,l,o!==null&&o!==void 0?o:e,(t=>_a({channel:e,channelDef:t,markDef:i,config:s,scaleName:n.scaleName(e),scale:n.getScaleComponent(e),stack:null,defaultRef:a})))}function Cp(e,n={filled:undefined}){var t,i,r,s;const{markDef:o,encoding:a,config:c}=e;const{type:l}=o;const u=(t=n.filled)!==null&&t!==void 0?t:ii("filled",o,c);const f=$(["bar","point","circle","square","geoshape"],l)?"transparent":undefined;const d=(r=(i=ii(u===true?"color":undefined,o,c,{vgChannel:"fill"}))!==null&&i!==void 0?i:c.mark[u===true&&"color"])!==null&&r!==void 0?r:f;const p=(s=ii(u===false?"color":undefined,o,c,{vgChannel:"stroke"}))!==null&&s!==void 0?s:c.mark[u===false&&"color"];const g=u?"fill":"stroke";const m=Object.assign(Object.assign({},d?{fill:Yt(d)}:{}),p?{stroke:Yt(p)}:{});if(o.color&&(u?o.fill:o.stroke)){Vr(Ji("property",{fill:"fill"in o,stroke:"stroke"in o}))}return Object.assign(Object.assign(Object.assign(Object.assign({},m),zp("color",e,{vgChannel:g,defaultValue:u?d:p})),zp("fill",e,{defaultValue:a.fill?d:undefined})),zp("stroke",e,{defaultValue:a.stroke?p:undefined}))}function Ep(e){const{encoding:n,mark:t}=e;const i=n.order;if(!ea(t)&&vc(i)){return jp(e,i,"zindex",(e=>Yt(e.value)))}return{}}function Np({channel:e,markDef:n,encoding:t={},model:i,bandPosition:r}){const s=`${e}Offset`;const o=n[s];const a=t[s];if((s==="xOffset"||s==="yOffset")&&a){const e=_a({channel:s,channelDef:a,markDef:n,config:i===null||i===void 0?void 0:i.config,scaleName:i.scaleName(s),scale:i.getScaleComponent(s),stack:null,defaultRef:Yt(o),bandPosition:r});return{offsetType:"encoding",offset:e}}const c=n[s];if(c){return{offsetType:"visual",offset:c}}return{}}function Tp(e,n,{defaultPos:t,vgChannel:i}){const{encoding:r,markDef:s,config:o,stack:a}=n;const c=r[e];const l=r[yn(e)];const u=n.scaleName(e);const f=n.getScaleComponent(e);const{offset:d,offsetType:p}=Np({channel:e,markDef:s,encoding:r,model:n,bandPosition:.5});const g=Mp({model:n,defaultPos:t,channel:e,scaleName:u,scale:f});const m=!c&&Wn(e)&&(r.latitude||r.longitude)?{field:n.getName(e)}:Ap({channel:e,channelDef:c,channel2Def:l,markDef:s,config:o,scaleName:u,scale:f,stack:a,offset:d,defaultRef:g,bandPosition:p==="encoding"?0:undefined});return m?{[i||e]:m}:undefined}function Ap(e){const{channel:n,channelDef:t,scaleName:i,stack:r,offset:s,markDef:o}=e;if(bc(t)&&r&&n===r.fieldChannel){if(fc(t)){let e=t.bandPosition;if(e===undefined&&o.type==="text"&&(n==="radius"||n==="theta")){e=.5}if(e!==undefined){return Da({scaleName:i,fieldOrDatumDef:t,startSuffix:"start",bandPosition:e,offset:s})}}return Sa(t,i,{suffix:"end"},{offset:s})}return xa(e)}function Mp({model:e,defaultPos:n,channel:t,scaleName:i,scale:r}){const{markDef:s,config:o}=e;return()=>{const a=hn(t);const c=bn(t);const l=ii(t,s,o,{vgChannel:c});if(l!==undefined){return Pa(t,l)}switch(n){case"zeroOrMin":case"zeroOrMax":if(i){const e=r.get("type");if($([no.LOG,no.TIME,no.UTC],e)){}else{if(r.domainDefinitelyIncludesZero()){return{scale:i,value:0}}}}if(n==="zeroOrMin"){return a==="y"?{field:{group:"height"}}:{value:0}}else{switch(a){case"radius":return{signal:`min(${e.width.signal},${e.height.signal})/2`};case"theta":return{signal:"2*PI"};case"x":return{field:{group:"width"}};case"y":return{value:0}}}break;case"mid":{const n=e[vn(t)];return Object.assign(Object.assign({},n),{mult:.5})}}return undefined}}const Lp={left:"x",center:"xc",right:"x2"};const qp={top:"y",middle:"yc",bottom:"y2"};function Ip(e,n,t,i="middle"){if(e==="radius"||e==="theta"){return bn(e)}const r=e==="x"?"align":"baseline";const s=ii(r,n,t);let o;if(Mt(s)){Vr(ir(r));o=undefined}else{o=s}if(e==="x"){return Lp[o||(i==="top"?"left":"center")]}else{return qp[o||i]}}function Rp(e,n,{defaultPos:t,defaultPos2:i,range:r}){if(r){return Wp(e,n,{defaultPos:t,defaultPos2:i})}return Tp(e,n,{defaultPos:t})}function Wp(e,n,{defaultPos:t,defaultPos2:i}){const{markDef:r,config:s}=n;const o=yn(e);const a=vn(e);const c=Up(n,i,o);const l=c[a]?Ip(e,r,s):bn(e);return Object.assign(Object.assign({},Tp(e,n,{defaultPos:t,vgChannel:l})),c)}function Up(e,n,t){const{encoding:i,mark:r,markDef:s,stack:o,config:a}=e;const c=hn(t);const l=vn(t);const u=bn(t);const f=i[c];const d=e.scaleName(c);const p=e.getScaleComponent(c);const{offset:g}=t in i||t in s?Np({channel:t,markDef:s,encoding:i,model:e}):Np({channel:c,markDef:s,encoding:i,model:e});if(!f&&(t==="x2"||t==="y2")&&(i.latitude||i.longitude)){const n=vn(t);const i=e.markDef[n];if(i!=null){return{[n]:{value:i}}}else{return{[u]:{field:e.getName(t)}}}}const m=Hp({channel:t,channelDef:f,channel2Def:i[t],markDef:s,config:a,scaleName:d,scale:p,stack:o,offset:g,defaultRef:undefined});if(m!==undefined){return{[u]:m}}return Bp(t,s)||Bp(t,{[t]:si(t,s,a.style),[l]:si(l,s,a.style)})||Bp(t,a[r])||Bp(t,a.mark)||{[u]:Mp({model:e,defaultPos:n,channel:t,scaleName:d,scale:p})()}}function Hp({channel:e,channelDef:n,channel2Def:t,markDef:i,config:r,scaleName:s,scale:o,stack:a,offset:c,defaultRef:l}){if(bc(n)&&a&&e.charAt(0)===a.fieldChannel.charAt(0)){return Sa(n,s,{suffix:"start"},{offset:c})}return xa({channel:e,channelDef:t,scaleName:s,scale:o,stack:a,markDef:i,config:r,offset:c,defaultRef:l})}function Bp(e,n){const t=vn(e);const i=bn(e);if(n[i]!==undefined){return{[i]:Pa(e,n[i])}}else if(n[e]!==undefined){return{[i]:Pa(e,n[e])}}else if(n[t]){const i=n[t];if(ga(i)){Vr(Gi(t))}else{return{[t]:Pa(e,i)}}}return undefined}function Jp(e,n){var t,i;const{config:r,encoding:s,markDef:o}=e;const a=o.type;const c=yn(n);const l=vn(n);const u=s[n];const f=s[c];const d=e.getScaleComponent(n);const p=d?d.get("type"):undefined;const g=o.orient;const m=(i=(t=s[l])!==null&&t!==void 0?t:s.size)!==null&&i!==void 0?i:ii("size",o,r,{vgChannel:l});const h=a==="bar"&&(n==="x"?g==="vertical":g==="horizontal");if(fc(u)&&(Dt(u.bin)||_t(u.bin)||u.timeUnit&&!f)&&!(m&&!ga(m))&&!mo(p)){return Kp({fieldDef:u,fieldDef2:f,channel:n,model:e})}else if((bc(u)&&mo(p)||h)&&!f){return Xp(u,n,e)}else{return Wp(n,e,{defaultPos:"zeroOrMax",defaultPos2:"zeroOrMin"})}}function Gp(e,n,t,i,s){if(ga(s)){if(t){const e=t.get("type");if(e==="band"){let e=`bandwidth('${n}')`;if(s.band!==1){e=`${s.band} * ${e}`}return{signal:`max(0.25, ${e})`}}else if(s.band!==1){Vr(cr(e));s=undefined}}else{return{mult:s.band,field:{group:e}}}}else if(Mt(s)){return s}else if(s){return{value:s}}if(t){const e=t.get("range");if(Lt(e)&&(0,r.hj)(e.step)){return{value:e.step-2}}}const o=Iu(i.view,e);return{value:o-2}}function Xp(e,n,t){const{markDef:i,encoding:s,config:o,stack:a}=t;const c=i.orient;const l=t.scaleName(n);const u=t.getScaleComponent(n);const f=vn(n);const d=yn(n);const p=On(n);const g=t.scaleName(p);const m=c==="horizontal"&&n==="y"||c==="vertical"&&n==="x";let h;if(s.size||i.size){if(m){h=zp("size",t,{vgChannel:f,defaultRef:Yt(i.size)})}else{Vr(dr(i.type))}}const b=!!h;const y=sc({channel:n,fieldDef:e,markDef:i,config:o,scaleType:u===null||u===void 0?void 0:u.get("type"),useVlSizeChannel:m});h=h||{[f]:Gp(f,g||l,u,o,y)};const v=(u===null||u===void 0?void 0:u.get("type"))==="band"&&ga(y)&&!b?"top":"middle";const O=Ip(n,i,o,v);const x=O==="xc"||O==="yc";const{offset:j,offsetType:w}=Np({channel:n,markDef:i,encoding:s,model:t,bandPosition:x?.5:0});const $=xa({channel:n,channelDef:e,markDef:i,config:o,scaleName:l,scale:u,stack:a,offset:j,defaultRef:Mp({model:t,defaultPos:"mid",channel:n,scaleName:l,scale:u}),bandPosition:x?w==="encoding"?0:.5:Mt(y)?{signal:`(1-${y})/2`}:ga(y)?(1-y.band)/2:0});if(f){return Object.assign({[O]:$},h)}else{const e=bn(d);const n=h[f];const t=j?Object.assign(Object.assign({},n),{offset:j}):n;return{[O]:$,[e]:(0,r.kJ)($)?[$[0],Object.assign(Object.assign({},$[1]),{offset:t})]:Object.assign(Object.assign({},$),{offset:t})}}}function Vp(e,n,t,i,r){if(He(e)){return 0}const s=e==="x"||e==="y2"?-n/2:n/2;if(Mt(t)||Mt(r)||Mt(i)){const e=ei(t);const n=ei(r);const o=ei(i);const a=o?`${o} + `:"";const c=e?`(${e} ? -1 : 1) * `:"";const l=n?`(${n} + ${s})`:s;return{signal:a+c+l}}else{r=r||0;return i+(t?-r-s:+r+s)}}function Kp({fieldDef:e,fieldDef2:n,channel:t,model:i}){var r,s,o;const{config:a,markDef:c,encoding:l}=i;const u=i.getScaleComponent(t);const f=i.scaleName(t);const d=u?u.get("type"):undefined;const p=u.get("reverse");const g=sc({channel:t,fieldDef:e,markDef:c,config:a,scaleType:d});const m=(r=i.component.axes[t])===null||r===void 0?void 0:r[0];const h=(s=m===null||m===void 0?void 0:m.get("translate"))!==null&&s!==void 0?s:.5;const b=Wn(t)?(o=ii("binSpacing",c,a))!==null&&o!==void 0?o:0:0;const y=yn(t);const v=bn(t);const O=bn(y);const{offset:x}=Np({channel:t,markDef:c,encoding:l,model:i,bandPosition:0});const j=Mt(g)?{signal:`(1-${g.signal})/2`}:ga(g)?(1-g.band)/2:.5;if(Dt(e.bin)||e.timeUnit){return{[O]:Yp({fieldDef:e,scaleName:f,bandPosition:j,offset:Vp(y,b,p,h,x)}),[v]:Yp({fieldDef:e,scaleName:f,bandPosition:Mt(j)?{signal:`1-${j.signal}`}:1-j,offset:Vp(t,b,p,h,x)})}}else if(_t(e.bin)){const i=Sa(e,f,{},{offset:Vp(y,b,p,h,x)});if(fc(n)){return{[O]:i,[v]:Sa(n,f,{},{offset:Vp(t,b,p,h,x)})}}else if(Pt(e.bin)&&e.bin.step){return{[O]:i,[v]:{signal:`scale("${f}", ${Sc(e,{expr:"datum"})} + ${e.bin.step})`,offset:Vp(t,b,p,h,x)}}}}Vr(Ar(y));return undefined}function Yp({fieldDef:e,scaleName:n,bandPosition:t,offset:i}){return Da({scaleName:n,fieldOrDatumDef:e,bandPosition:t,offset:i})}const Qp=new Set(["aria","width","height"]);function Zp(e,n){const{fill:t=undefined,stroke:i=undefined}=n.color==="include"?Cp(e):{};return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ng(e.markDef,n)),eg(e,"fill",t)),eg(e,"stroke",i)),zp("opacity",e)),zp("fillOpacity",e)),zp("strokeOpacity",e)),zp("strokeWidth",e)),zp("strokeDash",e)),Ep(e)),kp(e)),wp(e,"href")),_p(e))}function eg(e,n,t){const{config:i,mark:s,markDef:o}=e;const a=ii("invalid",o,i);if(a==="hide"&&t&&!ea(s)){const i=tg(e,{invalid:true,channels:ct});if(i){return{[n]:[{test:i,value:null},...(0,r.IX)(t)]}}}return t?{[n]:t}:{}}function ng(e,n){return Ut.reduce(((t,i)=>{if(!Qp.has(i)&&e[i]!==undefined&&n[i]!=="ignore"){t[i]=Yt(e[i])}return t}),{})}function tg(e,{invalid:n=false,channels:t}){const i=t.reduce(((n,t)=>{const i=e.getScaleComponent(t);if(i){const r=i.get("type");const s=e.vgField(t,{expr:"datum"});if(s&&ho(r)){n[s]=true}}return n}),{});const r=A(i);if(r.length>0){const e=n?"||":"&&";return r.map((e=>$a(e,n))).join(` ${e} `)}return undefined}function ig(e){const{config:n,markDef:t}=e;const i=ii("invalid",t,n);if(i){const n=rg(e,{channels:Rn});if(n){return{defined:{signal:n}}}}return{}}function rg(e,{invalid:n=false,channels:t}){const i=t.reduce(((n,t)=>{var i;const r=e.getScaleComponent(t);if(r){const s=r.get("type");const o=e.vgField(t,{expr:"datum",binSuffix:((i=e.stack)===null||i===void 0?void 0:i.impute)?"mid":undefined});if(o&&ho(s)){n[o]=true}}return n}),{});const r=A(i);if(r.length>0){const e=n?"||":"&&";return r.map((e=>$a(e,n))).join(` ${e} `)}return undefined}function sg(e,n){if(n!==undefined){return{[e]:Yt(n)}}return undefined}const og="voronoi";const ag={defined:e=>e.type==="point"&&e.nearest,parse:(e,n)=>{if(n.events){for(const t of n.events){t.markname=e.getName(og)}}},marks:(e,n,t)=>{const{x:i,y:r}=n.project.hasChannel;const s=e.mark;if(ea(s)){Vr(vi(s));return t}const o={name:e.getName(og),type:"path",interactive:true,from:{data:e.getName("marks")},encode:{update:Object.assign({fill:{value:"transparent"},strokeWidth:{value:.35},stroke:{value:"transparent"},isVoronoi:{value:true}},kp(e,{reactiveGeom:true}))},transform:[{type:"voronoi",x:{expr:i||!r?"datum.datum.x || 0":"0"},y:{expr:r||!i?"datum.datum.y || 0":"0"},size:[e.getSizeSignalRef("width"),e.getSizeSignalRef("height")]}]};let a=0;let c=false;t.forEach(((n,t)=>{var i;const r=(i=n.name)!==null&&i!==void 0?i:"";if(r===e.component.mark[0].name){a=t}else if(r.indexOf(og)>=0){c=true}}));if(!c){t.splice(a+1,0,o)}return t}};const cg=ag;const lg={defined:e=>e.type==="point"&&e.resolve==="global"&&e.bind&&e.bind!=="scales"&&!ju(e.bind),parse:(e,n,t)=>Lg(n,t),topLevelSignals:(e,n,t)=>{const i=n.name;const s=n.project;const o=n.bind;const a=n.init&&n.init[0];const c=cg.defined(n)?"(item().isVoronoi ? datum.datum : datum)":"datum";s.items.forEach(((e,s)=>{var l,u;const f=I(`${i}_${e.field}`);const d=t.filter((e=>e.name===f));if(!d.length){t.unshift(Object.assign(Object.assign({name:f},a?{init:Bd(a[s])}:{value:null}),{on:n.events?[{events:n.events,update:`datum && item().mark.marktype !== 'group' ? ${c}[${(0,r.m8)(e.field)}] : null`}]:[],bind:(u=(l=o[e.field])!==null&&l!==void 0?l:o[e.channel])!==null&&u!==void 0?u:o}))}}));return t},signals:(e,n,t)=>{const i=n.name;const r=n.project;const s=t.filter((e=>e.name===i+Fg))[0];const o=i+sp;const a=r.items.map((e=>I(`${i}_${e.field}`)));const c=a.map((e=>`${e} !== null`)).join(" && ");if(a.length){s.update=`${c} ? {fields: ${o}, values: [${a.join(", ")}]} : null`}delete s.value;delete s.on;return t}};const ug=lg;const fg="_toggle";const dg={defined:e=>e.type==="point"&&!!e.toggle,signals:(e,n,t)=>t.concat({name:n.name+fg,value:false,on:[{events:n.events,update:n.toggle}]}),modifyExpr:(e,n)=>{const t=n.name+Fg;const i=n.name+fg;return`${i} ? null : ${t}, `+(n.resolve==="global"?`${i} ? null : true, `:`${i} ? null : {unit: ${Ag(e)}}, `)+`${i} ? ${t} : null`}};const pg=dg;const gg={defined:e=>e.clear!==undefined&&e.clear!==false,parse:(e,n)=>{if(n.clear){n.clear=(0,r.HD)(n.clear)?(0,Ud.r)(n.clear,"view"):n.clear}},topLevelSignals:(e,n,t)=>{if(ug.defined(n)){for(const e of n.project.items){const i=t.findIndex((t=>t.name===I(`${n.name}_${e.field}`)));if(i!==-1){t[i].on.push({events:n.clear,update:"null"})}}}return t},signals:(e,n,t)=>{function i(e,i){if(e!==-1&&t[e].on){t[e].on.push({events:n.clear,update:i})}}if(n.type==="interval"){for(const e of n.project.items){const n=t.findIndex((n=>n.name===e.signals.visual));i(n,"[0, 0]");if(n===-1){const n=t.findIndex((n=>n.name===e.signals.data));i(n,"null")}}}else{let e=t.findIndex((e=>e.name===n.name+Fg));i(e,"null");if(pg.defined(n)){e=t.findIndex((e=>e.name===n.name+fg));i(e,"false")}}return t}};const mg=gg;const hg={defined:e=>{const n=e.resolve==="global"&&e.bind&&ju(e.bind);const t=e.project.items.length===1&&e.project.items[0].field!==Ou;if(n&&!t){Vr(wi)}return n&&t},parse:(e,n,t)=>{var i;const s=b(t);s.select=(0,r.HD)(s.select)?{type:s.select,toggle:n.toggle}:Object.assign(Object.assign({},s.select),{toggle:n.toggle});Lg(n,s);if((0,Ws.isObject)(t.select)&&(t.select.on||t.select.clear)){const e='event.item && indexof(event.item.mark.role, "legend") < 0';for(const t of n.events){t.filter=(0,r.IX)((i=t.filter)!==null&&i!==void 0?i:[]);if(!t.filter.includes(e)){t.filter.push(e)}}}const o=wu(n.bind)?n.bind.legend:"click";const a=(0,r.HD)(o)?(0,Ud.r)(o,"view"):(0,r.IX)(o);n.bind={legend:{merge:a}}},topLevelSignals:(e,n,t)=>{const i=n.name;const r=wu(n.bind)&&n.bind.legend;const s=e=>n=>{const t=b(n);t.markname=e;return t};for(const o of n.project.items){if(!o.hasLegend)continue;const e=`${I(o.field)}_legend`;const a=`${i}_${e}`;const c=t.filter((e=>e.name===a));if(c.length===0){const i=r.merge.map(s(`${e}_symbols`)).concat(r.merge.map(s(`${e}_labels`))).concat(r.merge.map(s(`${e}_entries`)));t.unshift(Object.assign(Object.assign({name:a},!n.init?{value:null}:{}),{on:[{events:i,update:"datum.value || item().items[0].items[0].datum.value",force:true},{events:r.merge,update:`!event.item || !datum ? null : ${a}`,force:true}]}))}}return t},signals:(e,n,t)=>{const i=n.name;const r=n.project;const s=t.find((e=>e.name===i+Fg));const o=i+sp;const a=r.items.filter((e=>e.hasLegend)).map((e=>I(`${i}_${I(e.field)}_legend`)));const c=a.map((e=>`${e} !== null`)).join(" && ");const l=`${c} ? {fields: ${o}, values: [${a.join(", ")}]} : null`;if(n.events&&a.length>0){s.on.push({events:a.map((e=>({signal:e}))),update:l})}else if(a.length>0){s.update=l;delete s.value;delete s.on}const u=t.find((e=>e.name===i+fg));const f=wu(n.bind)&&n.bind.legend;if(u){if(!n.events)u.on[0].events=f;else u.on.push(Object.assign(Object.assign({},u.on[0]),{events:f}))}return t}};const bg=hg;function yg(e,n,t){var i,r,s,o;const a=(i=e.fieldDef(n))===null||i===void 0?void 0:i.field;for(const c of M((r=e.component.selection)!==null&&r!==void 0?r:{})){const e=(s=c.project.hasField[a])!==null&&s!==void 0?s:c.project.hasChannel[n];if(e&&hg.defined(c)){const n=(o=t.get("selections"))!==null&&o!==void 0?o:[];n.push(c.name);t.set("selections",n,false);e.hasLegend=true}}}const vg="_translate_anchor";const Og="_translate_delta";const xg={defined:e=>e.type==="interval"&&e.translate,signals:(e,n,t)=>{const i=n.name;const r=up.defined(n);const s=i+vg;const{x:o,y:a}=n.project.hasChannel;let c=(0,Ud.r)(n.translate,"scope");if(!r){c=c.map((e=>(e.between[0].markname=i+gp,e)))}t.push({name:s,value:{},on:[{events:c.map((e=>e.between[0])),update:"{x: x(unit), y: y(unit)"+(o!==undefined?`, extent_x: ${r?fp(e,le):`slice(${o.signals.visual})`}`:"")+(a!==undefined?`, extent_y: ${r?fp(e,ue):`slice(${a.signals.visual})`}`:"")+"}"}]},{name:i+Og,value:{},on:[{events:c,update:`{x: ${s}.x - x(unit), y: ${s}.y - y(unit)}`}]});if(o!==undefined){wg(e,n,o,"width",t)}if(a!==undefined){wg(e,n,a,"height",t)}return t}};const jg=xg;function wg(e,n,t,i,r){var s,o;const a=n.name;const c=a+vg;const l=a+Og;const u=t.channel;const f=up.defined(n);const d=r.filter((e=>e.name===t.signals[f?"data":"visual"]))[0];const p=e.getSizeSignalRef(i).signal;const g=e.getScaleComponent(u);const m=g.get("type");const h=g.get("reverse");const b=!f?"":u===le?h?"":"-":h?"-":"";const y=`${c}.extent_${u}`;const v=`${b}${l}.${u} / ${f?`${p}`:`span(${y})`}`;const O=!f?"panLinear":m==="log"?"panLog":m==="symlog"?"panSymlog":m==="pow"?"panPow":"panLinear";const x=!f?"":m==="pow"?`, ${(s=g.get("exponent"))!==null&&s!==void 0?s:1}`:m==="symlog"?`, ${(o=g.get("constant"))!==null&&o!==void 0?o:1}`:"";const j=`${O}(${y}, ${v}${x})`;d.on.push({events:{signal:l},update:f?j:`clampRange(${j}, 0, ${p})`})}const $g="_zoom_anchor";const kg="_zoom_delta";const Sg={defined:e=>e.type==="interval"&&e.zoom,signals:(e,n,t)=>{const i=n.name;const s=up.defined(n);const o=i+kg;const{x:a,y:c}=n.project.hasChannel;const l=(0,r.m8)(e.scaleName(le));const u=(0,r.m8)(e.scaleName(ue));let f=(0,Ud.r)(n.zoom,"scope");if(!s){f=f.map((e=>(e.markname=i+gp,e)))}t.push({name:i+$g,on:[{events:f,update:!s?`{x: x(unit), y: y(unit)}`:"{"+[l?`x: invert(${l}, x(unit))`:"",u?`y: invert(${u}, y(unit))`:""].filter((e=>!!e)).join(", ")+"}"}]},{name:o,on:[{events:f,force:true,update:"pow(1.001, event.deltaY * pow(16, event.deltaMode))"}]});if(a!==undefined){_g(e,n,a,"width",t)}if(c!==undefined){_g(e,n,c,"height",t)}return t}};const Dg=Sg;function _g(e,n,t,i,r){var s,o;const a=n.name;const c=t.channel;const l=up.defined(n);const u=r.filter((e=>e.name===t.signals[l?"data":"visual"]))[0];const f=e.getSizeSignalRef(i).signal;const d=e.getScaleComponent(c);const p=d.get("type");const g=l?fp(e,c):u.name;const m=a+kg;const h=`${a}${$g}.${c}`;const b=!l?"zoomLinear":p==="log"?"zoomLog":p==="symlog"?"zoomSymlog":p==="pow"?"zoomPow":"zoomLinear";const y=!l?"":p==="pow"?`, ${(s=d.get("exponent"))!==null&&s!==void 0?s:1}`:p==="symlog"?`, ${(o=d.get("constant"))!==null&&o!==void 0?o:1}`:"";const v=`${b}(${g}, ${h}, ${m}${y})`;u.on.push({events:{signal:m},update:l?v:`clampRange(${v}, 0, ${f})`})}const Pg="_store";const Fg="_tuple";const zg="_modify";const Cg="_selection_domain_";const Eg="vlSelectionResolve";const Ng=[xp,bp,cp,pg,ug,up,bg,mg,jg,Dg,cg];function Tg(e){let n=e.parent;while(n){if(Hy(n))break;n=n.parent}return n}function Ag(e,{escape:n}={escape:true}){let t=n?(0,r.m8)(e.name):e.name;const i=Tg(e);if(i){const{facet:e}=i;for(const n of Qe){if(e[n]){t+=` + '__facet_${n}_' + (facet[${(0,r.m8)(i.vgField(n))}])`}}}return t}function Mg(e){var n;return M((n=e.component.selection)!==null&&n!==void 0?n:{}).reduce(((e,n)=>e||n.project.hasSelectionId),false)}function Lg(e,n){if((0,Ws.isString)(n.select)||!n.select.on)delete e.events;if((0,Ws.isString)(n.select)||!n.select.clear)delete e.clear;if((0,Ws.isString)(n.select)||!n.select.toggle)delete e.toggle}var qg=t(25693);function Ig(e){const n=[];if(e.type==="Identifier"){return[e.name]}if(e.type==="Literal"){return[e.value]}if(e.type==="MemberExpression"){n.push(...Ig(e.object));n.push(...Ig(e.property))}return n}function Rg(e){if(e.object.type==="MemberExpression"){return Rg(e.object)}return e.object.name==="datum"}function Wg(e){const n=(0,qg.BJ)(e);const t=new Set;n.visit((e=>{if(e.type==="MemberExpression"&&Rg(e)){t.add(Ig(e).slice(1).join("."))}}));return t}class Ug extends ep{clone(){return new Ug(null,this.model,b(this.filter))}constructor(e,n,t){super(e);this.model=n;this.filter=t;this.expr=Xg(this.model,this.filter,this);this._dependentFields=Wg(this.expr)}dependentFields(){return this._dependentFields}producedFields(){return new Set}assemble(){return{type:"filter",expr:this.expr}}hash(){return`Filter ${this.expr}`}}function Hg(e,n){var t;const i={};const s=e.config.selection;if(!n||!n.length)return i;for(const o of n){const n=I(o.name);const a=o.select;const c=(0,r.HD)(a)?a:a.type;const l=(0,r.Kn)(a)?b(a):{type:c};const u=s[c];for(const e in u){if(e==="fields"||e==="encodings"){continue}if(e==="mark"){l[e]=Object.assign(Object.assign({},u[e]),l[e])}if(l[e]===undefined||l[e]===true){l[e]=(t=u[e])!==null&&t!==void 0?t:l[e]}}const f=i[n]=Object.assign(Object.assign({},l),{name:n,type:c,init:o.value,bind:o.bind,events:(0,r.HD)(l.on)?(0,Ud.r)(l.on,"scope"):(0,r.IX)(b(l.on))});for(const t of Ng){if(t.defined(f)&&t.parse){t.parse(e,f,o)}}}return i}function Bg(e,n,t,i="datum"){const s=(0,r.HD)(n)?n:n.param;const o=I(s);const a=(0,r.m8)(o+Pg);let c;try{c=e.getSelectionComponent(o,s)}catch(p){return`!!${o}`}if(c.project.timeUnit){const n=t!==null&&t!==void 0?t:e.component.data.raw;const i=c.project.timeUnit.clone();if(n.parent){i.insertAsParentOf(n)}else{n.parent=i}}const l=c.project.hasSelectionId?"vlSelectionIdTest(":"vlSelectionTest(";const u=c.resolve==="global"?")":`, ${(0,r.m8)(c.resolve)})`;const f=`${l}${a}, ${i}${u}`;const d=`length(data(${a}))`;return n.empty===false?`${d} && ${f}`:`!${d} || ${f}`}function Jg(e,n,t){const i=I(n);const s=t["encoding"];let o=t["field"];let a;try{a=e.getSelectionComponent(i,n)}catch(c){return i}if(!s&&!o){o=a.project.items[0].field;if(a.project.items.length>1){Vr('A "field" or "encoding" must be specified when using a selection as a scale domain. '+`Using "field": ${(0,r.m8)(o)}.`)}}else if(s&&!o){const e=a.project.items.filter((e=>e.channel===s));if(!e.length||e.length>1){o=a.project.items[0].field;Vr((!e.length?"No ":"Multiple ")+`matching ${(0,r.m8)(s)} encoding found for selection ${(0,r.m8)(t.param)}. `+`Using "field": ${(0,r.m8)(o)}.`)}else{o=e[0].field}}return`${a.name}[${(0,r.m8)(G(o))}]`}function Gg(e,n){var t;for(const[i,r]of L((t=e.component.selection)!==null&&t!==void 0?t:{})){const t=e.getName(`lookup_${i}`);e.component.data.outputNodes[t]=r.materialized=new np(new Ug(n,e,{param:i}),t,Wd.Lookup,e.component.data.outputNodeRefCounts)}}function Xg(e,n,t){return R(n,(n=>{if((0,r.HD)(n)){return n}else if(Ds(n)){return Bg(e,n,t)}else{return qs(n)}}))}var Vg=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);rLc(e,n))).join(", ")}return e}function Yg(e,n,t,i){var r,s,o;var a,c;(r=e.encode)!==null&&r!==void 0?r:e.encode={};(s=(a=e.encode)[n])!==null&&s!==void 0?s:a[n]={};(o=(c=e.encode[n]).update)!==null&&o!==void 0?o:c.update={};e.encode[n].update[t]=i}function Qg(e,n,t,i={header:false}){var s,o;const a=e.combine(),{disable:c,orient:l,scale:u,labelExpr:f,title:d,zindex:p}=a,g=Vg(a,["disable","orient","scale","labelExpr","title","zindex"]);if(c){return undefined}for(const m in g){const e=rl[m];const t=g[m];if(e&&e!==n&&e!=="both"){delete g[m]}else if(tl(t)){const{condition:e}=t,n=Vg(t,["condition"]);const i=(0,r.IX)(e);const s=nl[m];if(s){const{vgProp:e,part:t}=s;const r=[...i.map((e=>{const{test:n}=e,t=Vg(e,["test"]);return Object.assign({test:Xg(null,n)},t)})),n];Yg(g,t,e,r);delete g[m]}else if(s===null){const e={signal:i.map((e=>{const{test:n}=e,t=Vg(e,["test"]);return`${Xg(null,n)} ? ${Zt(t)} : `})).join("")+Zt(n)};g[m]=e}}else if(Mt(t)){const e=nl[m];if(e){const{vgProp:n,part:i}=e;Yg(g,i,n,t);delete g[m]}}if($(["labelAlign","labelBaseline"],m)&&g[m]===null){delete g[m]}}if(n==="grid"){if(!g.grid){return undefined}if(g.encode){const{grid:e}=g.encode;g.encode=Object.assign({},e?{grid:e}:{});if(T(g.encode)){delete g.encode}}return Object.assign(Object.assign({scale:u,orient:l},g),{domain:false,labels:false,aria:false,maxExtent:0,minExtent:0,ticks:false,zindex:Y(p,0)})}else{if(!i.header&&e.mainExtracted){return undefined}if(f!==undefined){let e=f;if(((o=(s=g.encode)===null||s===void 0?void 0:s.labels)===null||o===void 0?void 0:o.update)&&Mt(g.encode.labels.update.text)){e=X(f,"datum.label",g.encode.labels.update.text.signal)}Yg(g,"labels","text",{signal:e})}if(g.labelAlign===null){delete g.labelAlign}if(g.encode){for(const n of il){if(!e.hasAxisPart(n)){delete g.encode[n]}}if(T(g.encode)){delete g.encode}}const n=Kg(d,t);return Object.assign(Object.assign(Object.assign(Object.assign({scale:u,orient:l,grid:false},n?{title:n}:{}),g),t.aria===false?{aria:false}:{}),{zindex:Y(p,0)})}}function Zg(e){const{axes:n}=e.component;const t=[];for(const i of Rn){if(n[i]){for(const r of n[i]){if(!r.get("disable")&&!r.get("gridScale")){const n=i==="x"?"height":"width";const r=e.getSizeSignalRef(n).signal;if(n!==r){t.push({name:n,update:r})}}}}}return t}function em(e,n){const{x:t=[],y:i=[]}=e;return[...t.map((e=>Qg(e,"grid",n))),...i.map((e=>Qg(e,"grid",n))),...t.map((e=>Qg(e,"main",n))),...i.map((e=>Qg(e,"main",n)))].filter((e=>e))}function nm(e,n,t,i){return Object.assign.apply(null,[{},...e.map((e=>{if(e==="axisOrient"){const e=t==="x"?"bottom":"left";const r=n[t==="x"?"axisBottom":"axisLeft"]||{};const s=n[t==="x"?"axisTop":"axisRight"]||{};const o=new Set([...A(r),...A(s)]);const a={};for(const n of o.values()){a[n]={signal:`${i["signal"]} === "${e}" ? ${ei(r[n])} : ${ei(s[n])}`}}return a}return n[e]}))])}function tm(e,n,t,i){const r=n==="band"?["axisDiscrete","axisBand"]:n==="point"?["axisDiscrete","axisPoint"]:lo(n)?["axisQuantitative"]:n==="time"||n==="utc"?["axisTemporal"]:[];const s=e==="x"?"axisX":"axisY";const o=Mt(t)?"axisOrient":`axis${U(t)}`;const a=[...r,...r.map((e=>s+e.substr(4)))];const c=["axis",o,s];return{vlOnlyAxisConfig:nm(a,i,e,t),vgAxisConfig:nm(c,i,e,t),axisConfigStyle:im([...c,...a],i)}}function im(e,n){var t;const i=[{}];for(const s of e){let e=(t=n[s])===null||t===void 0?void 0:t.style;if(e){e=(0,r.IX)(e);for(const t of e){i.push(n.style[t])}}}return Object.assign.apply(null,i)}function rm(e,n,t,i={}){var r;const s=oi(e,t,n);if(s!==undefined){return{configFrom:"style",configValue:s}}for(const o of["vlOnlyAxisConfig","vgAxisConfig","axisConfigStyle"]){if(((r=i[o])===null||r===void 0?void 0:r[e])!==undefined){return{configFrom:o,configValue:i[o][e]}}}return{}}const sm={scale:({model:e,channel:n})=>e.scaleName(n),format:({fieldOrDatumDef:e,config:n,axis:t})=>{const{format:i,formatType:r}=t;return Aa(e,e.type,i,r,n,true)},formatType:({axis:e,fieldOrDatumDef:n,scaleType:t})=>{const{formatType:i}=e;return Ma(i,n,t)},grid:({fieldOrDatumDef:e,axis:n,scaleType:t})=>{var i;return(i=n.grid)!==null&&i!==void 0?i:om(t,e)},gridScale:({model:e,channel:n})=>am(e,n),labelAlign:({axis:e,labelAngle:n,orient:t,channel:i})=>e.labelAlign||fm(n,t,i),labelAngle:({labelAngle:e})=>e,labelBaseline:({axis:e,labelAngle:n,orient:t,channel:i})=>e.labelBaseline||um(n,t,i),labelFlush:({axis:e,fieldOrDatumDef:n,channel:t})=>{var i;return(i=e.labelFlush)!==null&&i!==void 0?i:dm(n.type,t)},labelOverlap:({axis:e,fieldOrDatumDef:n,scaleType:t})=>{var i;return(i=e.labelOverlap)!==null&&i!==void 0?i:pm(n.type,t,fc(n)&&!!n.timeUnit,fc(n)?n.sort:undefined)},orient:({orient:e})=>e,tickCount:({channel:e,model:n,axis:t,fieldOrDatumDef:i,scaleType:r})=>{var s;const o=e==="x"?"width":e==="y"?"height":undefined;const a=o?n.getSizeSignalRef(o):undefined;return(s=t.tickCount)!==null&&s!==void 0?s:mm({fieldOrDatumDef:i,scaleType:r,size:a,values:t.values})},title:({axis:e,model:n,channel:t})=>{if(e.title!==undefined){return e.title}const i=hm(n,t);if(i!==undefined){return i}const r=n.typedFieldDef(t);const s=t==="x"?"x2":"y2";const o=n.fieldDef(s);return ci(r?[tc(r)]:[],fc(o)?[tc(o)]:[])},values:({axis:e,fieldOrDatumDef:n})=>bm(e,n),zindex:({axis:e,fieldOrDatumDef:n,mark:t})=>{var i;return(i=e.zindex)!==null&&i!==void 0?i:ym(t,n)}};function om(e,n){return!mo(e)&&fc(n)&&!Dt(n===null||n===void 0?void 0:n.bin)&&!_t(n===null||n===void 0?void 0:n.bin)}function am(e,n){const t=n==="x"?"y":"x";if(e.getScaleComponent(t)){return e.scaleName(t)}return undefined}function cm(e,n,t,i,r){const s=n===null||n===void 0?void 0:n.labelAngle;if(s!==undefined){return Mt(s)?s:ie(s)}else{const{configValue:s}=rm("labelAngle",i,n===null||n===void 0?void 0:n.style,r);if(s!==undefined){return ie(s)}else{if(t===le&&$([Ks,Xs],e.type)&&!(fc(e)&&e.timeUnit)){return 270}return undefined}}}function lm(e){return`(((${e.signal} % 360) + 360) % 360)`}function um(e,n,t,i){if(e!==undefined){if(t==="x"){if(Mt(e)){const t=lm(e);const i=Mt(n)?`(${n.signal} === "top")`:n==="top";return{signal:`(45 < ${t} && ${t} < 135) || (225 < ${t} && ${t} < 315) ? "middle" :`+`(${t} <= 45 || 315 <= ${t}) === ${i} ? "bottom" : "top"`}}if(45{if(!Oc(n)){return}if(Va(n.sort)){const{field:i,timeUnit:r}=n;const s=n.sort;const o=s.map(((e,n)=>`${qs({field:i,timeUnit:r,equal:e})} ? ${n} : `)).join("")+s.length;e=new vm(e,{calculate:o,as:Om(n,t,{forAs:true})})}}));return e}producedFields(){return new Set([this.transform.as])}dependentFields(){return this._dependentFields}assemble(){return{type:"formula",expr:this.transform.calculate,as:this.transform.as}}hash(){return`Calculate ${j(this.transform)}`}}function Om(e,n,t){return Sc(e,Object.assign({prefix:n,suffix:"sort_index"},t!==null&&t!==void 0?t:{}))}function xm(e,n){if($(["top","bottom"],n)){return"column"}else if($(["left","right"],n)){return"row"}return e==="row"?"row":"column"}function jm(e,n,t,i){const r=i==="row"?t.headerRow:i==="column"?t.headerColumn:t.headerFacet;return Y((n||{})[e],r[e],t.header[e])}function wm(e,n,t,i){const r={};for(const s of e){const e=jm(s,n||{},t,i);if(e!==undefined){r[s]=e}}return r}const $m=["row","column"];const km=["header","footer"];function Sm(e,n){const t=e.component.layoutHeaders[n].title;const i=e.config?e.config:undefined;const r=e.component.layoutHeaders[n].facetFieldDef?e.component.layoutHeaders[n].facetFieldDef:undefined;const{titleAnchor:s,titleAngle:o,titleOrient:a}=wm(["titleAnchor","titleAngle","titleOrient"],r.header,i,n);const c=xm(n,a);const l=ie(o);return{name:`${n}-title`,type:"group",role:`${c}-title`,title:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({text:t},n==="row"?{orient:"left"}:{}),{style:"guide-title"}),_m(l,c)),Dm(c,l,s)),Am(i,r,n,du,uu))}}function Dm(e,n,t="middle"){switch(t){case"start":return{align:"left"};case"end":return{align:"right"}}const i=fm(n,e==="row"?"left":"top",e==="row"?"y":"x");return i?{align:i}:{}}function _m(e,n){const t=um(e,n==="row"?"left":"top",n==="row"?"y":"x",true);return t?{baseline:t}:{}}function Pm(e,n){const t=e.component.layoutHeaders[n];const i=[];for(const r of km){if(t[r]){for(const s of t[r]){const o=Cm(e,n,r,t,s);if(o!=null){i.push(o)}}}}return i}function Fm(e,n){var t;const{sort:i}=e;if(Xa(i)){return{field:Sc(i,{expr:"datum"}),order:(t=i.order)!==null&&t!==void 0?t:"ascending"}}else if((0,r.kJ)(i)){return{field:Om(e,n,{expr:"datum"}),order:"ascending"}}else{return{field:Sc(e,{expr:"datum"}),order:i!==null&&i!==void 0?i:"ascending"}}}function zm(e,n,t){const{format:i,formatType:r,labelAngle:s,labelAnchor:o,labelOrient:a,labelExpr:c}=wm(["format","formatType","labelAngle","labelAnchor","labelOrient","labelExpr"],e.header,t,n);const l=Ea({fieldOrDatumDef:e,format:i,formatType:r,expr:"parent",config:t}).signal;const u=xm(n,a);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({text:{signal:c?X(X(c,"datum.label",l),"datum.value",Sc(e,{expr:"parent"})):l}},n==="row"?{orient:"left"}:{}),{style:"guide-label",frame:"group"}),_m(s,u)),Dm(u,s,o)),Am(t,e,n,pu,fu))}function Cm(e,n,t,i,r){if(r){let s=null;const{facetFieldDef:o}=i;const a=e.config?e.config:undefined;if(o&&r.labels){const{labelOrient:e}=wm(["labelOrient"],o.header,a,n);if(n==="row"&&!$(["top","bottom"],e)||n==="column"&&!$(["left","right"],e)){s=zm(o,n,a)}}const c=Hy(e)&&!Ka(e.facet);const l=r.axes;const u=(l===null||l===void 0?void 0:l.length)>0;if(s||u){const a=n==="row"?"height":"width";return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:e.getName(`${n}_${t}`),type:"group",role:`${n}-${t}`},i.facetFieldDef?{from:{data:e.getName(`${n}_domain`)},sort:Fm(o,n)}:{}),u&&c?{from:{data:e.getName(`facet_domain_${n}`)}}:{}),s?{title:s}:{}),r.sizeSignal?{encode:{update:{[a]:r.sizeSignal}}}:{}),u?{axes:l}:{})}}return null}const Em={column:{start:0,end:1},row:{start:1,end:0}};function Nm(e,n){return Em[n][e]}function Tm(e,n){const t={};for(const i of Qe){const r=e[i];if(r===null||r===void 0?void 0:r.facetFieldDef){const{titleAnchor:e,titleOrient:s}=wm(["titleAnchor","titleOrient"],r.facetFieldDef.header,n,i);const o=xm(i,s);const a=Nm(e,o);if(a!==undefined){t[o]=a}}}return T(t)?undefined:t}function Am(e,n,t,i,r){const s={};for(const o of i){if(!r[o]){continue}const i=jm(o,n===null||n===void 0?void 0:n.header,e,t);if(i!==undefined){s[r[o]]=i}}return s}function Mm(e){return[...Lm(e,"width"),...Lm(e,"height"),...Lm(e,"childWidth"),...Lm(e,"childHeight")]}function Lm(e,n){const t=n==="width"?"x":"y";const i=e.component.layoutSize.get(n);if(!i||i==="merged"){return[]}const r=e.getSizeSignalRef(n).signal;if(i==="step"){const n=e.getScaleComponent(t);if(n){const i=n.get("type");const s=n.get("range");if(mo(i)&&Lt(s)){const i=e.scaleName(t);if(Hy(e.parent)){const n=e.parent.component.resolve;if(n.scale[t]==="independent"){return[qm(i,s)]}}return[qm(i,s),{name:r,update:Im(i,n,`domain('${i}').length`)}]}}throw new Error("layout size is step although width/height is not step.")}else if(i=="container"){const n=r.endsWith("width");const t=n?"containerSize()[0]":"containerSize()[1]";const i=qu(e.config.view,n?"width":"height");const s=`isFinite(${t}) ? ${t} : ${i}`;return[{name:r,init:s,on:[{update:s,events:"window:resize"}]}]}else{return[{name:r,value:i}]}}function qm(e,n){const t=`${e}_step`;if(Mt(n.step)){return{name:t,update:n.step.signal}}else{return{name:t,value:n.step}}}function Im(e,n,t){const i=n.get("type");const r=n.get("padding");const s=Y(n.get("paddingOuter"),r);let o=n.get("paddingInner");o=i==="band"?o!==undefined?o:r:1;return`bandspace(${t}, ${ei(o)}, ${ei(s)}) * ${e}_step`}function Rm(e){return e==="childWidth"?"width":e==="childHeight"?"height":e}function Wm(e,n){return A(e).reduce(((t,i)=>{const r=e[i];return Object.assign(Object.assign({},t),jp(n,r,i,(e=>Yt(e.value))))}),{})}function Um(e,n){if(Hy(n)){return e==="theta"?"independent":"shared"}else if(Jy(n)){return"shared"}else if(By(n)){return Wn(e)||e==="theta"||e==="radius"?"independent":"shared"}throw new Error("invalid model type for resolve")}function Hm(e,n){const t=e.scale[n];const i=Wn(n)?"axis":"legend";if(t==="independent"){if(e[i][n]==="shared"){Vr(Or(n))}return"independent"}return e[i][n]||"shared"}const Bm=Object.assign(Object.assign({},yu),{disable:1,labelExpr:1,selections:1,opacity:1,shape:1,stroke:1,fill:1,size:1,strokeWidth:1,strokeDash:1,encode:1});const Jm=A(Bm);class Gm extends _d{}const Xm={symbols:Vm,gradient:Km,labels:Ym,entries:Qm};function Vm(e,{fieldOrDatumDef:n,model:t,channel:i,legendCmpt:s,legendType:o}){var a,c,l,u,f,d,p,g;if(o!=="symbol"){return undefined}const{markDef:m,encoding:h,config:b,mark:y}=t;const v=m.filled&&y!=="trail";let O=Object.assign(Object.assign({},ni({},t,aa)),Cp(t,{filled:v}));const x=(a=s.get("symbolOpacity"))!==null&&a!==void 0?a:b.legend.symbolOpacity;const j=(c=s.get("symbolFillColor"))!==null&&c!==void 0?c:b.legend.symbolFillColor;const w=(l=s.get("symbolStrokeColor"))!==null&&l!==void 0?l:b.legend.symbolStrokeColor;const $=x===undefined?(u=Zm(h.opacity))!==null&&u!==void 0?u:m.opacity:undefined;if(O.fill){if(i==="fill"||v&&i===we){delete O.fill}else{if(O.fill["field"]){if(j){delete O.fill}else{O.fill=Yt((f=b.legend.symbolBaseFillColor)!==null&&f!==void 0?f:"black");O.fillOpacity=Yt($!==null&&$!==void 0?$:1)}}else if((0,r.kJ)(O.fill)){const e=(g=(p=eh((d=h.fill)!==null&&d!==void 0?d:h.color))!==null&&p!==void 0?p:m.fill)!==null&&g!==void 0?g:v&&m.color;if(e){O.fill=Yt(e)}}}}if(O.stroke){if(i==="stroke"||!v&&i===we){delete O.stroke}else{if(O.stroke["field"]||w){delete O.stroke}else if((0,r.kJ)(O.stroke)){const e=Y(eh(h.stroke||h.color),m.stroke,v?m.color:undefined);if(e){O.stroke={value:e}}}}}if(i!==Pe){const e=fc(n)&&th(t,s,n);if(e){O.opacity=[Object.assign({test:e},Yt($!==null&&$!==void 0?$:1)),Yt(b.legend.unselectedOpacity)]}else if($){O.opacity=Yt($)}}O=Object.assign(Object.assign({},O),e);return T(O)?undefined:O}function Km(e,{model:n,legendType:t,legendCmpt:i}){var r;if(t!=="gradient"){return undefined}const{config:s,markDef:o,encoding:a}=n;let c={};const l=(r=i.get("gradientOpacity"))!==null&&r!==void 0?r:s.legend.gradientOpacity;const u=l===undefined?Zm(a.opacity)||o.opacity:undefined;if(u){c.opacity=Yt(u)}c=Object.assign(Object.assign({},c),e);return T(c)?undefined:c}function Ym(e,{fieldOrDatumDef:n,model:t,channel:i,legendCmpt:r}){const s=t.legend(i)||{};const o=t.config;const a=fc(n)?th(t,r,n):undefined;const c=a?[{test:a,value:1},{value:o.legend.unselectedOpacity}]:undefined;const{format:l,formatType:u}=s;let f=undefined;if(Fa(u)){f=Ta({fieldOrDatumDef:n,field:"datum.value",format:l,formatType:u,config:o})}else if(l===undefined&&u===undefined&&o.customFormatTypes){if(n.type==="quantitative"&&o.numberFormatType){f=Ta({fieldOrDatumDef:n,field:"datum.value",format:o.numberFormat,formatType:o.numberFormatType,config:o})}else if(n.type==="temporal"&&o.timeFormatType&&fc(n)&&n.timeUnit===undefined){f=Ta({fieldOrDatumDef:n,field:"datum.value",format:o.timeFormat,formatType:o.timeFormatType,config:o})}}const d=Object.assign(Object.assign(Object.assign({},c?{opacity:c}:{}),f?{text:f}:{}),e);return T(d)?undefined:d}function Qm(e,{legendCmpt:n}){const t=n.get("selections");return(t===null||t===void 0?void 0:t.length)?Object.assign(Object.assign({},e),{fill:{value:"transparent"}}):e}function Zm(e){return nh(e,((e,n)=>Math.max(e,n.value)))}function eh(e){return nh(e,((e,n)=>Y(e,n.value)))}function nh(e,n){if(uc(e)){return(0,r.IX)(e.condition).reduce(n,e.value)}else if(vc(e)){return e.value}return undefined}function th(e,n,t){const i=n.get("selections");if(!(i===null||i===void 0?void 0:i.length))return undefined;const s=(0,r.m8)(t.field);return i.map((e=>{const n=(0,r.m8)(I(e)+Pg);return`(!length(data(${n})) || (${e}[${s}] && indexof(${e}[${s}], datum.value) >= 0))`})).join(" || ")}const ih={direction:({direction:e})=>e,format:({fieldOrDatumDef:e,legend:n,config:t})=>{const{format:i,formatType:r}=n;return Aa(e,e.type,i,r,t,false)},formatType:({legend:e,fieldOrDatumDef:n,scaleType:t})=>{const{formatType:i}=e;return Ma(i,n,t)},gradientLength:e=>{var n,t;const{legend:i,legendConfig:r}=e;return(t=(n=i.gradientLength)!==null&&n!==void 0?n:r.gradientLength)!==null&&t!==void 0?t:fh(e)},labelOverlap:({legend:e,legendConfig:n,scaleType:t})=>{var i,r;return(r=(i=e.labelOverlap)!==null&&i!==void 0?i:n.labelOverlap)!==null&&r!==void 0?r:ph(t)},symbolType:({legend:e,markDef:n,channel:t,encoding:i})=>{var r;return(r=e.symbolType)!==null&&r!==void 0?r:sh(n.type,t,i.shape,n.shape)},title:({fieldOrDatumDef:e,config:n})=>Ac(e,n,{allowDisabling:true}),type:({legendType:e,scaleType:n,channel:t})=>{if(Ke(t)&&bo(n)){if(e==="gradient"){return undefined}}else if(e==="symbol"){return undefined}return e},values:({fieldOrDatumDef:e,legend:n})=>rh(n,e)};function rh(e,n){const t=e.values;if((0,r.kJ)(t)){return Zc(n,t)}else if(Mt(t)){return t}return undefined}function sh(e,n,t,i){var r;if(n!=="shape"){const e=(r=eh(t))!==null&&r!==void 0?r:i;if(e){return e}}switch(e){case"bar":case"rect":case"image":case"square":return"square";case"line":case"trail":case"rule":return"stroke";case"arc":case"point":case"circle":case"tick":case"geoshape":case"area":case"text":return"circle"}}function oh(e){if(e==="gradient"){return 20}return undefined}function ah(e){const{legend:n}=e;return Y(n.type,ch(e))}function ch({channel:e,timeUnit:n,scaleType:t}){if(Ke(e)){if($(["quarter","month","day"],n)){return"symbol"}if(bo(t)){return"gradient"}}return"symbol"}function lh({legendConfig:e,legendType:n,orient:t,legend:i}){var r,s;return(s=(r=i.direction)!==null&&r!==void 0?r:e[n?"gradientDirection":"symbolDirection"])!==null&&s!==void 0?s:uh(t,n)}function uh(e,n){switch(e){case"top":case"bottom":return"horizontal";case"left":case"right":case"none":case undefined:return undefined;default:return n==="gradient"?"horizontal":undefined}}function fh({legendConfig:e,model:n,direction:t,orient:i,scaleType:r}){const{gradientHorizontalMaxLength:s,gradientHorizontalMinLength:o,gradientVerticalMaxLength:a,gradientVerticalMinLength:c}=e;if(bo(r)){if(t==="horizontal"){if(i==="top"||i==="bottom"){return dh(n,"width",o,s)}else{return o}}else{return dh(n,"height",c,a)}}return undefined}function dh(e,n,t,i){const r=e.getSizeSignalRef(n).signal;return{signal:`clamp(${r}, ${t}, ${i})`}}function ph(e){if($(["quantile","threshold","log","symlog"],e)){return"greedy"}return undefined}function gh(e){const n=Uy(e)?mh(e):vh(e);e.component.legends=n;return n}function mh(e){const{encoding:n}=e;const t={};for(const i of[we,...hu]){const r=Wc(n[i]);if(!r||!e.getScaleComponent(i)){continue}if(i===Se&&fc(r)&&r.type===Ys){continue}t[i]=yh(e,i)}return t}function hh(e,n){const t=e.scaleName(n);if(e.mark==="trail"){if(n==="color"){return{stroke:t}}else if(n==="size"){return{strokeWidth:t}}}if(n==="color"){return e.markDef.filled?{fill:t}:{stroke:t}}return{[n]:t}}function bh(e,n,t,i){switch(n){case"disable":return t!==undefined;case"values":return!!(t===null||t===void 0?void 0:t.values);case"title":if(n==="title"&&e===(i===null||i===void 0?void 0:i.title)){return true}}return e===(t||{})[n]}function yh(e,n){var t,i,r;let s=e.legend(n);const{markDef:o,encoding:a,config:c}=e;const l=c.legend;const u=new Gm({},hh(e,n));yg(e,n,u);const f=s!==undefined?!s:l.disable;u.set("disable",f,s!==undefined);if(f){return u}s=s||{};const d=e.getScaleComponent(n).get("type");const p=Wc(a[n]);const g=fc(p)?(t=ks(p.timeUnit))===null||t===void 0?void 0:t.unit:undefined;const m=s.orient||c.legend.orient||"right";const h=ah({legend:s,channel:n,timeUnit:g,scaleType:d});const b=lh({legend:s,legendType:h,orient:m,legendConfig:l});const y={legend:s,channel:n,model:e,markDef:o,encoding:a,fieldOrDatumDef:p,legendConfig:l,config:c,scaleType:d,orient:m,legendType:h,direction:b};for(const w of Jm){if(h==="gradient"&&w.startsWith("symbol")||h==="symbol"&&w.startsWith("gradient")){continue}const t=w in ih?ih[w](y):s[w];if(t!==undefined){const i=bh(t,w,s,e.fieldDef(n));if(i||c.legend[w]===undefined){u.set(w,t,i)}}}const v=(i=s===null||s===void 0?void 0:s.encoding)!==null&&i!==void 0?i:{};const O=u.get("selections");const x={};const j={fieldOrDatumDef:p,model:e,channel:n,legendCmpt:u,legendType:h};for(const w of["labels","legend","title","symbols","gradient","entries"]){const n=Wm((r=v[w])!==null&&r!==void 0?r:{},e);const t=w in Xm?Xm[w](n,j):n;if(t!==undefined&&!T(t)){x[w]=Object.assign(Object.assign(Object.assign({},(O===null||O===void 0?void 0:O.length)&&fc(p)?{name:`${I(p.field)}_legend_${w}`}:{}),(O===null||O===void 0?void 0:O.length)?{interactive:!!O}:{}),{update:t})}}if(!T(x)){u.set("encode",x,!!(s===null||s===void 0?void 0:s.encoding))}return u}function vh(e){const{legends:n,resolve:t}=e.component;for(const i of e.children){gh(i);for(const r of A(i.component.legends)){t.legend[r]=Hm(e.component.resolve,r);if(t.legend[r]==="shared"){n[r]=Oh(n[r],i.component.legends[r]);if(!n[r]){t.legend[r]="independent";delete n[r]}}}}for(const i of A(n)){for(const n of e.children){if(!n.component.legends[i]){continue}if(t.legend[i]==="shared"){delete n.component.legends[i]}}}return n}function Oh(e,n){var t,i,r,s;if(!e){return n.clone()}const o=e.getWithExplicit("orient");const a=n.getWithExplicit("orient");if(o.explicit&&a.explicit&&o.value!==a.value){return undefined}let c=false;for(const l of Jm){const t=Ed(e.getWithExplicit(l),n.getWithExplicit(l),l,"legend",((e,n)=>{switch(l){case"symbolType":return xh(e,n);case"title":return ui(e,n);case"type":c=true;return Fd("symbol")}return Cd(e,n,l,"legend")}));e.setWithExplicit(l,t)}if(c){if((i=(t=e.implicit)===null||t===void 0?void 0:t.encode)===null||i===void 0?void 0:i.gradient){W(e.implicit,["encode","gradient"])}if((s=(r=e.explicit)===null||r===void 0?void 0:r.encode)===null||s===void 0?void 0:s.gradient){W(e.explicit,["encode","gradient"])}}return e}function xh(e,n){if(n.value==="circle"){return n}return e}var jh=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);rkh(n,e.config))).filter((e=>e!==undefined));return i}function kh(e,n){var t,i,r;const s=e.combine(),{disable:o,labelExpr:a,selections:c}=s,l=jh(s,["disable","labelExpr","selections"]);if(o){return undefined}if(n.aria===false&&l.aria==undefined){l.aria=false}if((t=l.encode)===null||t===void 0?void 0:t.symbols){const e=l.encode.symbols.update;if(e.fill&&e.fill["value"]!=="transparent"&&!e.stroke&&!l.stroke){e.stroke={value:"transparent"}}for(const n of hu){if(l[n]){delete e[n]}}}if(!l.title){delete l.title}if(a!==undefined){let e=a;if(((r=(i=l.encode)===null||i===void 0?void 0:i.labels)===null||r===void 0?void 0:r.update)&&Mt(l.encode.labels.update.text)){e=X(a,"datum.label",l.encode.labels.update.text.signal)}wh(l,"labels","text",{signal:e})}return l}function Sh(e){if(Jy(e)||By(e)){return Dh(e)}else{return _h(e)}}function Dh(e){return e.children.reduce(((e,n)=>e.concat(n.assembleProjections())),_h(e))}function _h(e){const n=e.component.projection;if(!n||n.merged){return[]}const t=n.combine();const{name:i}=t;if(!n.data){return[Object.assign(Object.assign({name:i},{translate:{signal:"[width / 2, height / 2]"}}),t)]}else{const r={signal:`[${n.size.map((e=>e.signal)).join(", ")}]`};const s=n.data.reduce(((n,t)=>{const i=Mt(t)?t.signal:`data('${e.lookupDataSource(t)}')`;if(!$(n,i)){n.push(i)}return n}),[]);if(s.length<=0){throw new Error("Projection's fit didn't find any data sources")}return[Object.assign({name:i,size:r,fit:{signal:s.length>1?`[${s.join(", ")}]`:s[0]}},t)]}}const Ph=["type","clipAngle","clipExtent","center","rotate","precision","reflectX","reflectY","coefficient","distance","fraction","lobes","parallel","radius","ratio","spacing","tilt"];class Fh extends _d{constructor(e,n,t,i){super(Object.assign({},n),{name:e});this.specifiedProjection=n;this.size=t;this.data=i;this.merged=false}get isFit(){return!!this.data}}function zh(e){e.component.projection=Uy(e)?Ch(e):Th(e)}function Ch(e){var n;if(e.hasProjection){const t=Et(e.specifiedProjection);const i=!(t&&(t.scale!=null||t.translate!=null));const r=i?[e.getSizeSignalRef("width"),e.getSizeSignalRef("height")]:undefined;const s=i?Eh(e):undefined;const o=new Fh(e.projectionName(true),Object.assign(Object.assign({},(n=Et(e.config.projection))!==null&&n!==void 0?n:{}),t!==null&&t!==void 0?t:{}),r,s);if(!o.get("type")){o.set("type","equalEarth",false)}return o}return undefined}function Eh(e){const n=[];const{encoding:t}=e;for(const i of[[Oe,ve],[je,xe]]){if(Wc(t[i[0]])||Wc(t[i[1]])){n.push({signal:e.getName(`geojson_${n.length}`)})}}if(e.channelHasField(Se)&&e.typedFieldDef(Se).type===Ys){n.push({signal:e.getName(`geojson_${n.length}`)})}if(n.length===0){n.push(e.requestDataName(Wd.Main))}return n}function Nh(e,n){const t=S(Ph,(t=>{if(!(0,r.nr)(e.explicit,t)&&!(0,r.nr)(n.explicit,t)){return true}if((0,r.nr)(e.explicit,t)&&(0,r.nr)(n.explicit,t)&&h(e.get(t),n.get(t))){return true}return false}));const i=h(e.size,n.size);if(i){if(t){return e}else if(h(e.explicit,{})){return n}else if(h(n.explicit,{})){return e}}return null}function Th(e){if(e.children.length===0){return undefined}let n;for(const i of e.children){zh(i)}const t=S(e.children,(e=>{const t=e.component.projection;if(!t){return true}else if(!n){n=t;return true}else{const e=Nh(n,t);if(e){n=e}return!!e}}));if(n&&t){const t=e.projectionName(true);const i=new Fh(t,n.specifiedProjection,n.size,b(n.data));for(const n of e.children){const e=n.component.projection;if(e){if(e.isFit){i.data.push(...n.component.projection.data)}n.renameProjection(e.get("name"),t);e.merged=true}}return i}return undefined}var Ah=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r{if(yc(t)&&Dt(t.bin)){const{key:r,binComponent:s}=Wh(t,t.bin,n);e[r]=Object.assign(Object.assign(Object.assign({},s),e[r]),Mh(n,t,i,n.config))}return e}),{});if(T(t)){return null}return new Uh(e,t)}static makeFromTransform(e,n,t){const{key:i,binComponent:r}=Wh(n,n.bin,t);return new Uh(e,{[i]:r})}merge(e,n){for(const t of A(e.bins)){if(t in this.bins){n(e.bins[t].signal,this.bins[t].signal);this.bins[t].as=P([...this.bins[t].as,...e.bins[t].as],j)}else{this.bins[t]=e.bins[t]}}for(const t of e.children){e.removeChild(t);t.parent=this}e.remove()}producedFields(){return new Set(M(this.bins).map((e=>e.as)).flat(2))}dependentFields(){return new Set(M(this.bins).map((e=>e.field)))}hash(){return`Bin ${j(this.bins)}`}assemble(){return M(this.bins).flatMap((e=>{const n=[];const[t,...i]=e.as;const r=e.bin,{extent:s}=r,o=Ah(r,["extent"]);const a=Object.assign(Object.assign(Object.assign({type:"bin",field:G(e.field),as:t,signal:e.signal},!Ft(s)?{extent:s}:{extent:null}),e.span?{span:{signal:`span(${e.span})`}}:{}),o);if(!s&&e.extentSignal){n.push({type:"extent",field:G(e.field),signal:e.extentSignal});a.extent={signal:e.extentSignal}}n.push(a);for(const c of i){for(let e=0;e<2;e++){n.push({type:"formula",expr:Sc({field:t[e]},{expr:"datum"}),as:c[e]})}}if(e.formula){n.push({type:"formula",expr:e.formula,as:e.formulaAs})}return n}))}}function Hh(e,n,t,i){var r;const s=Uy(i)?i.encoding[yn(n)]:undefined;if(yc(t)&&Uy(i)&&oc(t,s,i.markDef,i.config)){e.add(Sc(t,{}));e.add(Sc(t,{suffix:"end"}));if(t.bin&&el(t,n)){e.add(Sc(t,{binSuffix:"range"}))}}else if(Ge(n)){const t=Je(n);e.add(i.getName(t))}else{e.add(Sc(t))}if(Oc(t)&&wo((r=t.scale)===null||r===void 0?void 0:r.range)){e.add(t.scale.range.field)}return e}function Bh(e,n){var t;for(const i of A(n)){const r=n[i];for(const n of A(r)){if(i in e){e[i][n]=new Set([...(t=e[i][n])!==null&&t!==void 0?t:[],...r[n]])}else{e[i]={[n]:r[n]}}}}}class Jh extends ep{clone(){return new Jh(null,new Set(this.dimensions),b(this.measures))}constructor(e,n,t){super(e);this.dimensions=n;this.measures=t}get groupBy(){return this.dimensions}static makeFromEncoding(e,n){let t=false;n.forEachFieldDef((e=>{if(e.aggregate){t=true}}));const i={};const r=new Set;if(!t){return null}n.forEachFieldDef(((e,t)=>{var s,o,a,c;const{aggregate:l,field:u}=e;if(l){if(l==="count"){(s=i["*"])!==null&&s!==void 0?s:i["*"]={};i["*"]["count"]=new Set([Sc(e,{forAs:true})])}else{if(yt(l)||vt(l)){const e=yt(l)?"argmin":"argmax";const n=l[e];(o=i[n])!==null&&o!==void 0?o:i[n]={};i[n][e]=new Set([Sc({op:e,field:n},{forAs:true})])}else{(a=i[u])!==null&&a!==void 0?a:i[u]={};i[u][l]=new Set([Sc(e,{forAs:true})])}if(lt(t)&&n.scaleDomain(t)==="unaggregated"){(c=i[u])!==null&&c!==void 0?c:i[u]={};i[u]["min"]=new Set([Sc({field:u,aggregate:"min"},{forAs:true})]);i[u]["max"]=new Set([Sc({field:u,aggregate:"max"},{forAs:true})])}}}else{Hh(r,t,e,n)}}));if(r.size+A(i).length===0){return null}return new Jh(e,r,i)}static makeFromTransform(e,n){var t,i,r;const s=new Set;const o={};for(const a of n.aggregate){const{op:e,field:n,as:r}=a;if(e){if(e==="count"){(t=o["*"])!==null&&t!==void 0?t:o["*"]={};o["*"]["count"]=new Set([r?r:Sc(a,{forAs:true})])}else{(i=o[n])!==null&&i!==void 0?i:o[n]={};o[n][e]=new Set([r?r:Sc(a,{forAs:true})])}}}for(const a of(r=n.groupby)!==null&&r!==void 0?r:[]){s.add(a)}if(s.size+A(o).length===0){return null}return new Jh(e,s,o)}merge(e){if(z(this.dimensions,e.dimensions)){Bh(this.measures,e.measures);return true}Yr("different dimensions, cannot merge");return false}addDimensions(e){e.forEach(this.dimensions.add,this.dimensions)}dependentFields(){return new Set([...this.dimensions,...A(this.measures)])}producedFields(){const e=new Set;for(const n of A(this.measures)){for(const t of A(this.measures[n])){const i=this.measures[n][t];if(i.size===0){e.add(`${t}_${n}`)}else{i.forEach(e.add,e)}}}return e}hash(){return`Aggregate ${j({dimensions:this.dimensions,measures:this.measures})}`}assemble(){const e=[];const n=[];const t=[];for(const r of A(this.measures)){for(const i of A(this.measures[r])){for(const s of this.measures[r][i]){t.push(s);e.push(i);n.push(r==="*"?null:G(r))}}}const i={type:"aggregate",groupby:[...this.dimensions].map(G),ops:e,fields:n,as:t};return i}}class Gh extends ep{constructor(e,n,t,i){super(e);this.model=n;this.name=t;this.data=i;for(const s of Qe){const e=n.facet[s];if(e){const{bin:t,sort:i}=e;this[s]=Object.assign({name:n.getName(`${s}_domain`),fields:[Sc(e),...Dt(t)?[Sc(e,{binSuffix:"end"})]:[]]},Xa(i)?{sortField:i}:(0,r.kJ)(i)?{sortIndexField:Om(e,s)}:{})}}this.childModel=n.child}hash(){let e=`Facet`;for(const n of Qe){if(this[n]){e+=` ${n.charAt(0)}:${j(this[n])}`}}return e}get fields(){var e;const n=[];for(const t of Qe){if((e=this[t])===null||e===void 0?void 0:e.fields){n.push(...this[t].fields)}}return n}dependentFields(){const e=new Set(this.fields);for(const n of Qe){if(this[n]){if(this[n].sortField){e.add(this[n].sortField.field)}if(this[n].sortIndexField){e.add(this[n].sortIndexField)}}}return e}producedFields(){return new Set}getSource(){return this.name}getChildIndependentFieldsWithStep(){const e={};for(const n of Rn){const t=this.childModel.component.scales[n];if(t&&!t.merged){const i=t.get("type");const r=t.get("range");if(mo(i)&&Lt(r)){const t=Zb(this.childModel,n);const i=Qb(t);if(i){e[n]=i}else{Vr(hi(n))}}}}return e}assembleRowColumnHeaderData(e,n,t){const i={row:"y",column:"x",facet:undefined}[e];const r=[];const s=[];const o=[];if(i&&t&&t[i]){if(n){r.push(`distinct_${t[i]}`);s.push("max")}else{r.push(t[i]);s.push("distinct")}o.push(`distinct_${t[i]}`)}const{sortField:a,sortIndexField:c}=this[e];if(a){const{op:e=Ha,field:n}=a;r.push(n);s.push(e);o.push(Sc(a,{forAs:true}))}else if(c){r.push(c);s.push("max");o.push(c)}return{name:this[e].name,source:n!==null&&n!==void 0?n:this.data,transform:[Object.assign({type:"aggregate",groupby:this[e].fields},r.length?{fields:r,ops:s,as:o}:{})]}}assembleFacetHeaderData(e){var n,t;const{columns:i}=this.model.layout;const{layoutHeaders:r}=this.model.component;const s=[];const o={};for(const l of $m){for(const e of km){const i=(n=r[l]&&r[l][e])!==null&&n!==void 0?n:[];for(const e of i){if(((t=e.axes)===null||t===void 0?void 0:t.length)>0){o[l]=true;break}}}if(o[l]){const e=`length(data("${this.facet.name}"))`;const n=l==="row"?i?{signal:`ceil(${e} / ${i})`}:1:i?{signal:`min(${e}, ${i})`}:{signal:e};s.push({name:`${this.facet.name}_${l}`,transform:[{type:"sequence",start:0,stop:n}]})}}const{row:a,column:c}=o;if(a||c){s.unshift(this.assembleRowColumnHeaderData("facet",null,e))}return s}assemble(){var e,n;const t=[];let i=null;const r=this.getChildIndependentFieldsWithStep();const{column:s,row:o,facet:a}=this;if(s&&o&&(r.x||r.y)){i=`cross_${this.column.name}_${this.row.name}`;const s=[].concat((e=r.x)!==null&&e!==void 0?e:[],(n=r.y)!==null&&n!==void 0?n:[]);const o=s.map((()=>"distinct"));t.push({name:i,source:this.data,transform:[{type:"aggregate",groupby:this.fields,fields:s,ops:o}]})}for(const c of[ae,oe]){if(this[c]){t.push(this.assembleRowColumnHeaderData(c,i,r))}}if(a){const e=this.assembleFacetHeaderData(r);if(e){t.push(...e)}}return t}}function Xh(e){if(e.startsWith("'")&&e.endsWith("'")||e.startsWith('"')&&e.endsWith('"')){return e.slice(1,-1)}return e}function Vh(e,n){const t=H(e);if(n==="number"){return`toNumber(${t})`}else if(n==="boolean"){return`toBoolean(${t})`}else if(n==="string"){return`toString(${t})`}else if(n==="date"){return`toDate(${t})`}else if(n==="flatten"){return t}else if(n.startsWith("date:")){const e=Xh(n.slice(5,n.length));return`timeParse(${t},'${e}')`}else if(n.startsWith("utc:")){const e=Xh(n.slice(4,n.length));return`utcParse(${t},'${e}')`}else{Vr(zi(n));return null}}function Kh(e){const n={};g(e.filter,(e=>{var t;if(As(e)){let i=null;if(_s(e)){i=Vt(e.equal)}else if(Fs(e)){i=Vt(e.lte)}else if(Ps(e)){i=Vt(e.lt)}else if(zs(e)){i=Vt(e.gt)}else if(Cs(e)){i=Vt(e.gte)}else if(Es(e)){i=e.range[0]}else if(Ns(e)){i=((t=e.oneOf)!==null&&t!==void 0?t:e["in"])[0]}if(i){if(Qr(i)){n[e.field]="date"}else if((0,r.hj)(i)){n[e.field]="number"}else if((0,r.HD)(i)){n[e.field]="string"}}if(e.timeUnit){n[e.field]="date"}}}));return n}function Yh(e){const n={};function t(e){if(Kc(e)){n[e.field]="date"}else if(e.type==="quantitative"&&wt(e.aggregate)){n[e.field]="number"}else if(K(e.field)>1){if(!(e.field in n)){n[e.field]="flatten"}}else if(Oc(e)&&Xa(e.sort)&&K(e.sort.field)>1){if(!(e.sort.field in n)){n[e.sort.field]="flatten"}}}if(Uy(e)||Hy(e)){e.forEachFieldDef(((n,i)=>{if(yc(n)){t(n)}else{const r=hn(i);const s=e.fieldDef(r);t(Object.assign(Object.assign({},n),{type:s.type}))}}))}if(Uy(e)){const{mark:t,markDef:i,encoding:r}=e;if(ea(t)&&!e.encoding.order){const e=i.orient==="horizontal"?"y":"x";const t=r[e];if(fc(t)&&t.type==="quantitative"&&!(t.field in n)){n[t.field]="number"}}}return n}function Qh(e){const n={};if(Uy(e)&&e.component.selection){for(const t of A(e.component.selection)){const i=e.component.selection[t];for(const e of i.project.items){if(!e.channel&&K(e.field)>1){n[e.field]="flatten"}}}}return n}class Zh extends ep{clone(){return new Zh(null,b(this._parse))}constructor(e,n){super(e);this._parse=n}hash(){return`Parse ${j(this._parse)}`}static makeExplicit(e,n,t){var i;let r={};const s=n.data;if(!Ld(s)&&((i=s===null||s===void 0?void 0:s.format)===null||i===void 0?void 0:i.parse)){r=s.format.parse}return this.makeWithAncestors(e,r,{},t)}static makeWithAncestors(e,n,t,i){for(const o of A(t)){const e=i.getWithExplicit(o);if(e.value!==undefined){if(e.explicit||e.value===t[o]||e.value==="derived"||t[o]==="flatten"){delete t[o]}else{Vr(Ci(o,t[o],e.value))}}}for(const o of A(n)){const e=i.get(o);if(e!==undefined){if(e===n[o]){delete n[o]}else{Vr(Ci(o,n[o],e))}}}const r=new _d(n,t);i.copyAll(r);const s={};for(const o of A(r.combine())){const e=r.get(o);if(e!==null){s[o]=e}}if(A(s).length===0||i.parseNothing){return null}return new Zh(e,s)}get parse(){return this._parse}merge(e){this._parse=Object.assign(Object.assign({},this._parse),e.parse);e.remove()}assembleFormatParse(){const e={};for(const n of A(this._parse)){const t=this._parse[n];if(K(n)===1){e[n]=t}}return e}producedFields(){return new Set(A(this._parse))}dependentFields(){return new Set(A(this._parse))}assembleTransforms(e=false){return A(this._parse).filter((n=>e?K(n)>1:true)).map((e=>{const n=Vh(e,this._parse[e]);if(!n){return null}const t={type:"formula",expr:n,as:V(e)};return t})).filter((e=>e!==null))}}class eb extends ep{clone(){return new eb(null)}constructor(e){super(e)}dependentFields(){return new Set}producedFields(){return new Set([Ou])}hash(){return"Identifier"}assemble(){return{type:"identifier",as:Ou}}}class nb extends ep{clone(){return new nb(null,this.params)}constructor(e,n){super(e);this.params=n}dependentFields(){return new Set}producedFields(){return undefined}hash(){return`Graticule ${j(this.params)}`}assemble(){return Object.assign({type:"graticule"},this.params===true?{}:this.params)}}class tb extends ep{clone(){return new tb(null,this.params)}constructor(e,n){super(e);this.params=n}dependentFields(){return new Set}producedFields(){var e;return new Set([(e=this.params.as)!==null&&e!==void 0?e:"data"])}hash(){return`Hash ${j(this.params)}`}assemble(){return Object.assign({type:"sequence"},this.params)}}class ib extends ep{constructor(e){super(null);e!==null&&e!==void 0?e:e={name:"source"};let n;if(!Ld(e)){n=e.format?Object.assign({},O(e.format,["parse"])):{}}if(Ad(e)){this._data={values:e.values}}else if(Td(e)){this._data={url:e.url};if(!n.type){let t=/(?:\.([^.]+))?$/.exec(e.url)[1];if(!$(["json","csv","tsv","dsv","topojson"],t)){t="json"}n.type=t}}else if(Id(e)){this._data={values:[{type:"Sphere"}]}}else if(Md(e)||Ld(e)){this._data={}}this._generator=Ld(e);if(e.name){this._name=e.name}if(n&&!T(n)){this._data.format=n}}dependentFields(){return new Set}producedFields(){return undefined}get data(){return this._data}hasName(){return!!this._name}get isGenerator(){return this._generator}get dataName(){return this._name}set dataName(e){this._name=e}set parent(e){throw new Error("Source nodes have to be roots.")}remove(){throw new Error("Source nodes are roots and cannot be removed.")}hash(){throw new Error("Cannot hash sources")}assemble(){return Object.assign(Object.assign({name:this._name},this._data),{transform:[]})}}var rb=undefined&&undefined.__classPrivateFieldSet||function(e,n,t,i,r){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!r)throw new TypeError("Private accessor was defined without a setter");if(typeof n==="function"?e!==n||!r:!n.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?r.call(e,t):r?r.value=t:n.set(e,t),t};var sb=undefined&&undefined.__classPrivateFieldGet||function(e,n,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof n==="function"?e!==n||!i:!n.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(e):i?i.value:n.get(e)};var ob;function ab(e){return e instanceof ib||e instanceof nb||e instanceof tb}class cb{constructor(){ob.set(this,void 0);rb(this,ob,false,"f")}setModified(){rb(this,ob,true,"f")}get modifiedFlag(){return sb(this,ob,"f")}}ob=new WeakMap;class lb extends cb{getNodeDepths(e,n,t){t.set(e,n);for(const i of e.children){this.getNodeDepths(i,n+1,t)}return t}optimize(e){const n=this.getNodeDepths(e,0,new Map);const t=[...n.entries()].sort(((e,n)=>n[1]-e[1]));for(const i of t){this.run(i[0])}return this.modifiedFlag}}class ub extends cb{optimize(e){this.run(e);for(const n of e.children){this.optimize(n)}return this.modifiedFlag}}class fb extends ub{mergeNodes(e,n){const t=n.shift();for(const i of n){e.removeChild(i);i.parent=t;i.remove()}}run(e){const n=e.children.map((e=>e.hash()));const t={};for(let i=0;i1){this.setModified();this.mergeNodes(e,t[i])}}}}class db extends ub{constructor(e){super();this.requiresSelectionId=e&&Mg(e)}run(e){if(e instanceof eb){if(!(this.requiresSelectionId&&(ab(e.parent)||e.parent instanceof Jh||e.parent instanceof Zh))){this.setModified();e.remove()}}}}class pb extends cb{optimize(e){this.run(e,new Set);return this.modifiedFlag}run(e,n){let t=new Set;if(e instanceof ip){t=e.producedFields();if(C(t,n)){this.setModified();e.removeFormulas(n);if(e.producedFields.length===0){e.remove()}}}for(const i of e.children){this.run(i,new Set([...n,...t]))}}}class gb extends ub{constructor(){super()}run(e){if(e instanceof np&&!e.isRequired()){this.setModified();e.remove()}}}class mb extends lb{run(e){if(ab(e)){return}if(e.numChildren()>1){return}for(const n of e.children){if(n instanceof Zh){if(e instanceof Zh){this.setModified();e.merge(n)}else{if(N(e.producedFields(),n.dependentFields())){continue}this.setModified();n.swapWithParent()}}}return}}class hb extends lb{run(e){const n=[...e.children];const t=e.children.filter((e=>e instanceof Zh));if(e.numChildren()>1&&t.length>=1){const i={};const r=new Set;for(const e of t){const n=e.parse;for(const e of A(n)){if(!(e in i)){i[e]=n[e]}else if(i[e]!==n[e]){r.add(e)}}}for(const e of r){delete i[e]}if(!T(i)){this.setModified();const t=new Zh(e,i);for(const r of n){if(r instanceof Zh){for(const e of A(i)){delete r.parse[e]}}e.removeChild(r);r.parent=t;if(r instanceof Zh&&A(r.parse).length===0){r.remove()}}}}}}class bb extends lb{run(e){if(e instanceof np||e.numChildren()>0||e instanceof Gh){}else if(e instanceof ib){}else{this.setModified();e.remove()}}}class yb extends lb{run(e){const n=e.children.filter((e=>e instanceof ip));const t=n.pop();for(const i of n){this.setModified();t.merge(i)}}}class vb extends lb{run(e){const n=e.children.filter((e=>e instanceof Jh));const t={};for(const i of n){const e=j(i.groupBy);if(!(e in t)){t[e]=[]}t[e].push(i)}for(const i of A(t)){const n=t[i];if(n.length>1){const t=n.pop();for(const i of n){if(t.merge(i)){e.removeChild(i);i.parent=t;i.remove();this.setModified()}}}}}}class Ob extends lb{constructor(e){super();this.model=e}run(e){const n=!(ab(e)||e instanceof Ug||e instanceof Zh||e instanceof eb);const t=[];const i=[];for(const r of e.children){if(r instanceof Uh){if(n&&!N(e.producedFields(),r.dependentFields())){t.push(r)}else{i.push(r)}}}if(t.length>0){const n=t.pop();for(const e of t){n.merge(e,this.model.renameSignal.bind(this.model))}this.setModified();if(e instanceof Uh){e.merge(n,this.model.renameSignal.bind(this.model))}else{n.swapWithParent()}}if(i.length>1){const e=i.pop();for(const n of i){e.merge(n,this.model.renameSignal.bind(this.model))}this.setModified()}}}class xb extends lb{run(e){const n=[...e.children];const t=k(n,(e=>e instanceof np));if(!t||e.numChildren()<=1){return}const i=[];let r;for(const s of n){if(s instanceof np){let n=s;while(n.numChildren()===1){const[e]=n.children;if(e instanceof np){n=e}else{break}}i.push(...n.children);if(r){e.removeChild(s);s.parent=r.parent;r.parent.removeChild(r);r.parent=n;this.setModified()}else{r=n}}else{i.push(s)}}if(i.length){this.setModified();for(const e of i){e.parent.removeChild(e);e.parent=r}}}}class jb extends ep{clone(){return new jb(null,b(this.transform))}constructor(e,n){super(e);this.transform=n}addDimensions(e){this.transform.groupby=P(this.transform.groupby.concat(e),(e=>e))}dependentFields(){const e=new Set;if(this.transform.groupby){this.transform.groupby.forEach(e.add,e)}this.transform.joinaggregate.map((e=>e.field)).filter((e=>e!==undefined)).forEach(e.add,e);return e}producedFields(){return new Set(this.transform.joinaggregate.map(this.getDefaultName))}getDefaultName(e){var n;return(n=e.as)!==null&&n!==void 0?n:Sc(e)}hash(){return`JoinAggregateTransform ${j(this.transform)}`}assemble(){const e=[];const n=[];const t=[];for(const r of this.transform.joinaggregate){n.push(r.op);t.push(this.getDefaultName(r));e.push(r.field===undefined?null:r.field)}const i=this.transform.groupby;return Object.assign({type:"joinaggregate",as:t,ops:n,fields:e},i!==undefined?{groupby:i}:{})}}function wb(e){return e.stack.stackBy.reduce(((e,n)=>{const t=n.fieldDef;const i=Sc(t);if(i){e.push(i)}return e}),[])}function $b(e){return(0,r.kJ)(e)&&e.every((e=>(0,r.HD)(e)))&&e.length>1}class kb extends ep{clone(){return new kb(null,b(this._stack))}constructor(e,n){super(e);this._stack=n}static makeFromTransform(e,n){const{stack:t,groupby:i,as:s,offset:o="zero"}=n;const a=[];const c=[];if(n.sort!==undefined){for(const e of n.sort){a.push(e.field);c.push(Y(e.order,"ascending"))}}const l={field:a,order:c};let u;if($b(s)){u=s}else if((0,r.HD)(s)){u=[s,`${s}_end`]}else{u=[`${n.stack}_start`,`${n.stack}_end`]}return new kb(e,{dimensionFieldDefs:[],stackField:t,groupby:i,offset:o,sort:l,facetby:[],as:u})}static makeFromEncoding(e,n){const t=n.stack;const{encoding:i}=n;if(!t){return null}const{groupbyChannels:s,fieldChannel:o,offset:a,impute:c}=t;const l=s.map((e=>{const n=i[e];return Rc(n)})).filter((e=>!!e));const u=wb(n);const f=n.encoding.order;let d;if((0,r.kJ)(f)||fc(f)){d=ai(f)}else{d=u.reduce(((e,n)=>{e.field.push(n);e.order.push(o==="y"?"descending":"ascending");return e}),{field:[],order:[]})}return new kb(e,{dimensionFieldDefs:l,stackField:n.vgField(o),facetby:[],stackby:u,sort:d,offset:a,impute:c,as:[n.vgField(o,{suffix:"start",forAs:true}),n.vgField(o,{suffix:"end",forAs:true})]})}get stack(){return this._stack}addDimensions(e){this._stack.facetby.push(...e)}dependentFields(){const e=new Set;e.add(this._stack.stackField);this.getGroupbyFields().forEach(e.add,e);this._stack.facetby.forEach(e.add,e);this._stack.sort.field.forEach(e.add,e);return e}producedFields(){return new Set(this._stack.as)}hash(){return`Stack ${j(this._stack)}`}getGroupbyFields(){const{dimensionFieldDefs:e,impute:n,groupby:t}=this._stack;if(e.length>0){return e.map((e=>{if(e.bin){if(n){return[Sc(e,{binSuffix:"mid"})]}return[Sc(e,{}),Sc(e,{binSuffix:"end"})]}return[Sc(e)]})).flat()}return t!==null&&t!==void 0?t:[]}assemble(){const e=[];const{facetby:n,dimensionFieldDefs:t,stackField:i,stackby:r,sort:s,offset:o,impute:a,as:c}=this._stack;if(a){for(const s of t){const{bandPosition:t=.5,bin:o}=s;if(o){const n=Sc(s,{expr:"datum"});const i=Sc(s,{expr:"datum",binSuffix:"end"});e.push({type:"formula",expr:`${t}*${n}+${1-t}*${i}`,as:Sc(s,{binSuffix:"mid",forAs:true})})}e.push({type:"impute",field:i,groupby:[...r,...n],key:Sc(s,{binSuffix:"mid"}),method:"value",value:0})}}e.push({type:"stack",groupby:[...this.getGroupbyFields(),...n],field:i,sort:s,as:c,offset:o});return e}}class Sb extends ep{clone(){return new Sb(null,b(this.transform))}constructor(e,n){super(e);this.transform=n}addDimensions(e){this.transform.groupby=P(this.transform.groupby.concat(e),(e=>e))}dependentFields(){var e,n;const t=new Set;((e=this.transform.groupby)!==null&&e!==void 0?e:[]).forEach(t.add,t);((n=this.transform.sort)!==null&&n!==void 0?n:[]).forEach((e=>t.add(e.field)));this.transform.window.map((e=>e.field)).filter((e=>e!==undefined)).forEach(t.add,t);return t}producedFields(){return new Set(this.transform.window.map(this.getDefaultName))}getDefaultName(e){var n;return(n=e.as)!==null&&n!==void 0?n:Sc(e)}hash(){return`WindowTransform ${j(this.transform)}`}assemble(){var e;const n=[];const t=[];const i=[];const r=[];for(const f of this.transform.window){t.push(f.op);i.push(this.getDefaultName(f));r.push(f.param===undefined?null:f.param);n.push(f.field===undefined?null:f.field)}const s=this.transform.frame;const o=this.transform.groupby;if(s&&s[0]===null&&s[1]===null&&t.every((e=>Ot(e)))){return Object.assign({type:"joinaggregate",as:i,ops:t,fields:n},o!==undefined?{groupby:o}:{})}const a=[];const c=[];if(this.transform.sort!==undefined){for(const n of this.transform.sort){a.push(n.field);c.push((e=n.order)!==null&&e!==void 0?e:"ascending")}}const l={field:a,order:c};const u=this.transform.ignorePeers;return Object.assign(Object.assign(Object.assign({type:"window",params:r,as:i,ops:t,fields:n,sort:l},u!==undefined?{ignorePeers:u}:{}),o!==undefined?{groupby:o}:{}),s!==undefined?{frame:s}:{})}}function Db(e){function n(t){if(!(t instanceof Gh)){const i=t.clone();if(i instanceof np){const n=Fb+i.getSource();i.setSource(n);e.model.component.data.outputNodes[n]=i}else if(i instanceof Jh||i instanceof kb||i instanceof Sb||i instanceof jb){i.addDimensions(e.fields)}for(const e of t.children.flatMap(n)){e.parent=i}return[i]}return t.children.flatMap(n)}return n}function _b(e){if(e instanceof Gh){if(e.numChildren()===1&&!(e.children[0]instanceof np)){const n=e.children[0];if(n instanceof Jh||n instanceof kb||n instanceof Sb||n instanceof jb){n.addDimensions(e.fields)}n.swapWithParent();_b(e)}else{const n=e.model.component.data.main;Pb(n);const t=Db(e);const i=e.children.map(t).flat();for(const e of i){e.parent=n}}}else{e.children.map(_b)}}function Pb(e){if(e instanceof np&&e.type===Wd.Main){if(e.numChildren()===1){const n=e.children[0];if(!(n instanceof Gh)){n.swapWithParent();Pb(e)}}}}const Fb="scale_";const zb=5;function Cb(e){for(const n of e){for(const e of n.children){if(e.parent!==n){return false}}if(!Cb(n.children)){return false}}return true}function Eb(e,n){let t=false;for(const i of n){t=e.optimize(i)||t}return t}function Nb(e,n,t){let i=e.sources;let r=false;r=Eb(new gb,i)||r;r=Eb(new db(n),i)||r;i=i.filter((e=>e.numChildren()>0));r=Eb(new bb,i)||r;i=i.filter((e=>e.numChildren()>0));if(!t){r=Eb(new mb,i)||r;r=Eb(new Ob(n),i)||r;r=Eb(new pb,i)||r;r=Eb(new hb,i)||r;r=Eb(new vb,i)||r;r=Eb(new yb,i)||r;r=Eb(new fb,i)||r;r=Eb(new xb,i)||r}e.sources=i;return r}function Tb(e,n){Cb(e.sources);let t=0;let i=0;for(let r=0;re(n)))}}var Mb=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r{const i=Qc(e,{timeUnit:t,type:n});return{signal:`{data: ${i}}`}}))}function Hb(e,n,t){var i;const r=(i=ks(t))===null||i===void 0?void 0:i.unit;if(n==="temporal"||r){return Ub(e,n,r)}return[e]}function Bb(e,n,t,i){const{encoding:s}=t;const o=Wc(s[i]);const{type:a}=o;const c=o["timeUnit"];if(jo(n)){const r=Bb(e,undefined,t,i);const s=Hb(n.unionWith,a,c);return Pd([...s,...r.value])}else if(Mt(n)){return Pd([n])}else if(n&&n!=="unaggregated"&&!xo(n)){return Pd(Hb(n,a,c))}const l=t.stack;if(l&&i===l.fieldChannel){if(l.offset==="normalize"){return Fd([[0,1]])}const e=t.requestDataName(Wd.Main);return Fd([{data:e,field:t.vgField(i,{suffix:"start"})},{data:e,field:t.vgField(i,{suffix:"end"})}])}const u=lt(i)&&fc(o)?Xb(t,i,e):undefined;if(pc(o)){const e=Hb([o.datum],a,c);return Fd(e)}const f=o;if(n==="unaggregated"){const e=t.requestDataName(Wd.Main);const{field:n}=o;return Fd([{data:e,field:Sc({field:n,aggregate:"min"})},{data:e,field:Sc({field:n,aggregate:"max"})}])}else if(Dt(f.bin)){if(mo(e)){if(e==="bin-ordinal"){return Fd([])}return Fd([{data:q(u)?t.requestDataName(Wd.Main):t.requestDataName(Wd.Raw),field:t.vgField(i,el(f,i)?{binSuffix:"range"}:{}),sort:u===true||!(0,r.Kn)(u)?{field:t.vgField(i,{}),op:"min"}:u}])}else{const{bin:e}=f;if(Dt(e)){const n=Ih(t,f.field,e);return Fd([new Ab((()=>{const e=t.getSignalName(n);return`[${e}.start, ${e}.stop]`}))])}else{return Fd([{data:t.requestDataName(Wd.Main),field:t.vgField(i,{})}])}}}else if(f.timeUnit&&$(["time","utc"],e)&&oc(f,Uy(t)?t.encoding[yn(i)]:undefined,t.markDef,t.config)){const e=t.requestDataName(Wd.Main);return Fd([{data:e,field:t.vgField(i)},{data:e,field:t.vgField(i,{suffix:"end"})}])}else if(u){return Fd([{data:q(u)?t.requestDataName(Wd.Main):t.requestDataName(Wd.Raw),field:t.vgField(i),sort:u}])}else{return Fd([{data:t.requestDataName(Wd.Main),field:t.vgField(i)}])}}function Jb(e,n){const{op:t,field:i,order:r}=e;return Object.assign(Object.assign({op:t!==null&&t!==void 0?t:n?"sum":Ha},i?{field:G(i)}:{}),r?{order:r}:{})}function Gb(e,n){var t;const i=e.component.scales[n];const r=e.specifiedScales[n].domain;const s=(t=e.fieldDef(n))===null||t===void 0?void 0:t.bin;const o=xo(r)&&r;const a=Pt(s)&&Ft(s.extent)&&s.extent;if(o||a){i.set("selectionExtent",o!==null&&o!==void 0?o:a,true)}}function Xb(e,n,t){if(!mo(t)){return undefined}const i=e.fieldDef(n);const r=i.sort;if(Va(r)){return{op:"min",field:Om(i,n),order:"ascending"}}const{stack:s}=e;const o=s?new Set([...s.groupbyFields,...s.stackBy.map((e=>e.fieldDef.field))]):undefined;if(Xa(r)){const e=s&&!o.has(r.field);return Jb(r,e)}else if(Ga(r)){const{encoding:n,order:t}=r;const i=e.fieldDef(n);const{aggregate:a,field:c}=i;const l=s&&!o.has(c);if(yt(a)||vt(a)){return Jb({field:Sc(i),order:t},l)}else if(Ot(a)||!a){return Jb({op:a,field:c,order:t},l)}}else if(r==="descending"){return{op:"min",field:e.vgField(n),order:"descending"}}else if($(["ascending",undefined],r)){return true}return undefined}function Vb(e,n){const{aggregate:t,type:i}=e;if(!t){return{valid:false,reason:lr(e)}}if((0,r.HD)(t)&&!kt.has(t)){return{valid:false,reason:ur(t)}}if(i==="quantitative"){if(n==="log"){return{valid:false,reason:fr(e)}}}return{valid:true}}function Kb(e,n,t,i){if(e.explicit&&n.explicit){Vr(vr(t,i,e.value,n.value))}return{explicit:e.explicit,value:[...e.value,...n.value]}}function Yb(e){const n=P(e.map((e=>{if(Rt(e)){const{sort:n}=e,t=Mb(e,["sort"]);return t}return e})),j);const t=P(e.map((e=>{if(Rt(e)){const n=e.sort;if(n!==undefined&&!q(n)){if("op"in n&&n.op==="count"){delete n.field}if(n.order==="ascending"){delete n.order}}return n}return undefined})).filter((e=>e!==undefined)),j);if(n.length===0){return undefined}else if(n.length===1){const n=e[0];if(Rt(n)&&t.length>0){let e=t[0];if(t.length>1){Vr(jr);e=true}else{if((0,r.Kn)(e)&&"field"in e){const t=e.field;if(n.field===t){e=e.order?{order:e.order}:true}}}return Object.assign(Object.assign({},n),{sort:e})}return n}const i=P(t.map((e=>{if(q(e)||!("op"in e)||(0,r.HD)(e.op)&&e.op in bt){return e}Vr(xr(e));return true})),j);let s;if(i.length===1){s=i[0]}else if(i.length>1){Vr(jr);s=true}const o=P(e.map((e=>{if(Rt(e)){return e.data}return null})),(e=>e));if(o.length===1&&o[0]!==null){const e=Object.assign({data:o[0],fields:n.map((e=>e.field))},s?{sort:s}:{});return e}return Object.assign({fields:n},s?{sort:s}:{})}function Qb(e){if(Rt(e)&&(0,r.HD)(e.field)){return e.field}else if(qt(e)){let n;for(const t of e.fields){if(Rt(t)&&(0,r.HD)(t.field)){if(!n){n=t.field}else if(n!==t.field){Vr(wr);return n}}}Vr($r);return n}else if(It(e)){Vr(kr);const n=e.fields[0];return(0,r.HD)(n)?n:undefined}return undefined}function Zb(e,n){const t=e.component.scales[n];const i=t.get("domains").map((n=>{if(Rt(n)){n.data=e.lookupDataSource(n.data)}return n}));return Yb(i)}var ey=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);re.concat(ny(n))),ty(e))}else{return ty(e)}}function ty(e){return A(e.component.scales).reduce(((n,t)=>{const i=e.component.scales[t];if(i.merged){return n}const r=i.combine();const{name:s,type:o,selectionExtent:a,domains:c,range:l,reverse:u}=r,f=ey(r,["name","type","selectionExtent","domains","range","reverse"]);const d=iy(r.range,s,t,e);const p=Zb(e,t);const g=a?Qd(e,a,i,p):null;n.push(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:s,type:o},p?{domain:p}:{}),g?{domainRaw:g}:{}),{range:d}),u!==undefined?{reverse:u}:{}),f));return n}),[])}function iy(e,n,t,i){if(Wn(t)){if(Lt(e)){return{step:{signal:`${n}_step`}}}}else if((0,r.Kn)(e)&&Rt(e)){return Object.assign(Object.assign({},e),{data:i.lookupDataSource(e.data)})}return e}class ry extends _d{constructor(e,n){super({},{name:e});this.merged=false;this.setWithExplicit("type",n)}domainDefinitelyIncludesZero(){if(this.get("zero")!==false){return true}return k(this.get("domains"),(e=>(0,r.kJ)(e)&&e.length===2&&e[0]<=0&&e[1]>=0))}}const sy=["range","scheme"];function oy(e){const n=e.component.scales;for(const t of ct){const i=n[t];if(!i){continue}const r=cy(t,e);i.setWithExplicit("range",r)}}function ay(e,n){const t=e.fieldDef(n);if(t===null||t===void 0?void 0:t.bin){const{bin:i,field:s}=t;const o=vn(n);const a=e.getName(o);if((0,r.Kn)(i)&&i.binned&&i.step!==undefined){return new Ab((()=>{const t=e.scaleName(n);const r=`(domain("${t}")[1] - domain("${t}")[0]) / ${i.step}`;return`${e.getSignalName(a)} / (${r})`}))}else if(Dt(i)){const n=Ih(e,s,i);return new Ab((()=>{const t=e.getSignalName(n);const i=`(${t}.stop - ${t}.start) / ${t}.step`;return`${e.getSignalName(a)} / (${i})`}))}}return undefined}function cy(e,n){const t=n.specifiedScales[e];const{size:i}=n;const s=n.getScaleComponent(e);const o=s.get("type");for(const d of sy){if(t[d]!==undefined){const i=No(o,d);const s=To(e,d);if(!i){Vr(mr(o,d,e))}else if(s){Vr(s)}else{switch(d){case"range":{const i=t.range;if((0,r.kJ)(i)){if(Wn(e)){return Pd(i.map((e=>{if(e==="width"||e==="height"){const t=n.getName(e);const i=n.getSignalName.bind(n);return Ab.fromName(i,t)}return e})))}}else if((0,r.Kn)(i)){return Pd({data:n.requestDataName(Wd.Main),field:i.field,sort:{op:"min",field:n.vgField(e)}})}return Pd(i)}case"scheme":return Pd(ly(t[d]))}}}}const a=e===le||e==="xOffset"?"width":"height";const c=i[a];if(Cu(c)){if(Wn(e)){if(mo(o)){const t=fy(c,n,e);if(t){return Pd({step:t})}}else{Vr(br(a))}}else if(Xn(e)){const t=e===pe?"x":"y";const i=n.getScaleComponent(t);const r=i.get("type");if(r==="band"){const e=dy(c,o);if(e){return Pd(e)}}}}const{rangeMin:l,rangeMax:u}=t;const f=uy(e,n);if((l!==undefined||u!==undefined)&&No(o,"rangeMin")&&(0,r.kJ)(f)&&f.length===2){return Pd([l!==null&&l!==void 0?l:f[0],u!==null&&u!==void 0?u:f[1]])}return Fd(f)}function ly(e){if(Oo(e)){return Object.assign({scheme:e.name},O(e,["name"]))}return{scheme:e}}function uy(e,n){const{size:t,config:i,mark:r,encoding:s}=n;const o=n.getSignalName.bind(n);const{type:a}=Wc(s[e]);const c=n.getScaleComponent(e);const l=c.get("type");const{domain:u,domainMid:f}=n.specifiedScales[e];switch(e){case le:case ue:{if($(["point","band"],l)){const r=gy(e,t,i.view);if(Cu(r)){const t=fy(r,n,e);return{step:t}}}const r=vn(e);const s=n.getName(r);if(e===ue&&ho(l)){return[Ab.fromName(o,s),0]}else{return[0,Ab.fromName(o,s)]}}case pe:case ge:return py(e,n,l);case De:{const s=n.component.scales[e].get("zero");const o=by(r,s,i);const a=vy(r,t,n,i);if(yo(l)){return hy(o,a,my(l,i,u,e))}else{return[o,a]}}case be:return[0,Math.PI*2];case _e:return[0,360];case me:{return[0,new Ab((()=>{const e=n.getSignalName("width");const t=n.getSignalName("height");return`min(${e},${t})/2`}))]}case Ce:return[i.scale.minStrokeWidth,i.scale.maxStrokeWidth];case Ee:return[[1,0],[4,2],[2,1],[1,1],[1,2,4,2]];case Se:return"symbol";case we:case $e:case ke:if(l==="ordinal"){return a==="nominal"?"category":"ordinal"}else{if(f!==undefined){return"diverging"}else{return r==="rect"||r==="geoshape"?"heatmap":"ramp"}}case Pe:case Fe:case ze:return[i.scale.minOpacity,i.scale.maxOpacity]}}function fy(e,n,t){var i,r,s,o,a;const{encoding:c}=n;const l=n.getScaleComponent(t);const u=xn(t);const f=c[u];const d=zu({step:e,offsetIsDiscrete:bc(f)&&Js(f.type)});if(d==="offset"&&ml(c,u)){const t=n.getScaleComponent(u);const c=n.scaleName(u);let f=`domain('${c}').length`;if(t.get("type")==="band"){const e=(r=(i=t.get("paddingInner"))!==null&&i!==void 0?i:t.get("padding"))!==null&&r!==void 0?r:0;const n=(o=(s=t.get("paddingOuter"))!==null&&s!==void 0?s:t.get("padding"))!==null&&o!==void 0?o:0;f=`bandspace(${f}, ${e}, ${n})`}const d=(a=l.get("paddingInner"))!==null&&a!==void 0?a:l.get("padding");return{signal:`${e.step} * ${f} / (1-${Qt(d)})`}}else{return e.step}}function dy(e,n){const t=zu({step:e,offsetIsDiscrete:mo(n)});if(t==="offset"){return{step:e.step}}return undefined}function py(e,n,t){const i=e===pe?"x":"y";const r=n.getScaleComponent(i);const s=r.get("type");const o=n.scaleName(i);if(s==="band"){const e=gy(i,n.size,n.config.view);if(Cu(e)){const n=dy(e,t);if(n){return n}}return[0,{signal:`bandwidth('${o}')`}]}else{return y(`Cannot use ${e} scale if ${i} scale is not discrete.`)}}function gy(e,n,t){const i=e===le?"width":"height";const r=n[i];if(r){return r}return Ru(t,i)}function my(e,n,t,i){switch(e){case"quantile":return n.scale.quantileCount;case"quantize":return n.scale.quantizeCount;case"threshold":if(t!==undefined&&(0,r.kJ)(t)){return t.length+1}else{Vr(Lr(i));return 3}}}function hy(e,n,t){const i=()=>{const i=ei(n);const r=ei(e);const s=`(${i} - ${r}) / (${t} - 1)`;return`sequence(${r}, ${i} + ${s}, ${s})`};if(Mt(n)){return new Ab(i)}else{return{signal:i()}}}function by(e,n,t){if(n){if(Mt(n)){return{signal:`${n.signal} ? 0 : ${by(e,false,t)}`}}else{return 0}}switch(e){case"bar":case"tick":return t.scale.minBandSize;case"line":case"trail":case"rule":return t.scale.minStrokeWidth;case"text":return t.scale.minFontSize;case"point":case"square":case"circle":return t.scale.minSize}throw new Error(Ki("size",e))}const yy=.95;function vy(e,n,t,i){const s={x:ay(t,"x"),y:ay(t,"y")};switch(e){case"bar":case"tick":{if(i.scale.maxBandSize!==undefined){return i.scale.maxBandSize}const e=Oy(n,s,i.view);if((0,r.hj)(e)){return e-1}else{return new Ab((()=>`${e.signal} - 1`))}}case"line":case"trail":case"rule":return i.scale.maxStrokeWidth;case"text":return i.scale.maxFontSize;case"point":case"square":case"circle":{if(i.scale.maxSize){return i.scale.maxSize}const e=Oy(n,s,i.view);if((0,r.hj)(e)){return Math.pow(yy*e,2)}else{return new Ab((()=>`pow(${yy} * ${e.signal}, 2)`))}}}throw new Error(Ki("size",e))}function Oy(e,n,t){const i=Cu(e.width)?e.width.step:Iu(t,"width");const r=Cu(e.height)?e.height.step:Iu(t,"height");if(n.x||n.y){return new Ab((()=>{const e=[n.x?n.x.signal:i,n.y?n.y.signal:r];return`min(${e.join(", ")})`}))}return Math.min(i,r)}function xy(e,n){if(Uy(e)){jy(e,n)}else{ky(e,n)}}function jy(e,n){const t=e.component.scales;const{config:i,encoding:r,markDef:s,specifiedScales:o}=e;for(const a of A(t)){const c=o[a];const l=t[a];const u=e.getScaleComponent(a);const f=Wc(r[a]);const d=c[n];const p=u.get("type");const g=u.get("padding");const m=u.get("paddingInner");const h=No(p,n);const b=To(a,n);if(d!==undefined){if(!h){Vr(mr(p,n,a))}else if(b){Vr(b)}}if(h&&b===undefined){if(d!==undefined){const e=f["timeUnit"];const t=f.type;switch(n){case"domainMax":case"domainMin":if(Qr(c[n])||t==="temporal"||e){l.set(n,{signal:Qc(c[n],{type:t,timeUnit:e})},true)}else{l.set(n,c[n],true)}break;default:l.copyKeyFromObject(n,c)}}else{const t=n in wy?wy[n]({model:e,channel:a,fieldOrDatumDef:f,scaleType:p,scalePadding:g,scalePaddingInner:m,domain:c.domain,domainMin:c.domainMin,domainMax:c.domainMax,markDef:s,config:i,hasNestedOffsetScale:hl(r,a),hasSecondaryRangeChannel:!!r[yn(a)]}):i.scale[n];if(t!==undefined){l.set(n,t,false)}}}}}const wy={bins:({model:e,fieldOrDatumDef:n})=>fc(n)?Sy(e,n):undefined,interpolate:({channel:e,fieldOrDatumDef:n})=>Dy(e,n.type),nice:({scaleType:e,channel:n,domain:t,domainMin:i,domainMax:r,fieldOrDatumDef:s})=>_y(e,n,t,i,r,s),padding:({channel:e,scaleType:n,fieldOrDatumDef:t,markDef:i,config:r})=>Py(e,n,r.scale,t,i,r.bar),paddingInner:({scalePadding:e,channel:n,markDef:t,scaleType:i,config:r,hasNestedOffsetScale:s})=>Fy(e,n,t.type,i,r.scale,s),paddingOuter:({scalePadding:e,channel:n,scaleType:t,scalePaddingInner:i,config:r,hasNestedOffsetScale:s})=>zy(e,n,t,i,r.scale,s),reverse:({fieldOrDatumDef:e,scaleType:n,channel:t,config:i})=>{const r=fc(e)?e.sort:undefined;return Cy(n,r,t,i.scale)},zero:({channel:e,fieldOrDatumDef:n,domain:t,markDef:i,scaleType:r,config:s,hasSecondaryRangeChannel:o})=>Ey(e,n,t,i,r,s.scale,o)};function $y(e){if(Uy(e)){oy(e)}else{ky(e,"range")}}function ky(e,n){const t=e.component.scales;for(const i of e.children){if(n==="range"){$y(i)}else{xy(i,n)}}for(const i of A(t)){let r;for(const t of e.children){const e=t.component.scales[i];if(e){const t=e.getWithExplicit(n);r=Ed(r,t,n,"scale",zd(((e,t)=>{switch(n){case"range":if(e.step&&t.step){return e.step-t.step}return 0}return 0})))}}t[i].setWithExplicit(n,r)}}function Sy(e,n){const t=n.bin;if(Dt(t)){const i=Ih(e,n.field,t);return new Ab((()=>e.getSignalName(i)))}else if(_t(t)&&Pt(t)&&t.step!==undefined){return{step:t.step}}return undefined}function Dy(e,n){if($([we,$e,ke],e)&&n!=="nominal"){return"hcl"}return undefined}function _y(e,n,t,i,s,o){var a;if(((a=Rc(o))===null||a===void 0?void 0:a.bin)||(0,r.kJ)(t)||s!=null||i!=null||$([no.TIME,no.UTC],e)){return undefined}return Wn(n)?true:undefined}function Py(e,n,t,i,r,s){if(Wn(e)){if(bo(n)){if(t.continuousPadding!==undefined){return t.continuousPadding}const{type:n,orient:o}=r;if(n==="bar"&&!(fc(i)&&(i.bin||i.timeUnit))){if(o==="vertical"&&e==="x"||o==="horizontal"&&e==="y"){return s.continuousBandSize}}}if(n===no.POINT){return t.pointPadding}}return undefined}function Fy(e,n,t,i,r,s=false){if(e!==undefined){return undefined}if(Wn(n)){const{bandPaddingInner:e,barBandPaddingInner:n,rectBandPaddingInner:i,bandWithNestedOffsetPaddingInner:o}=r;if(s){return o}return Y(e,t==="bar"?n:i)}else if(Xn(n)){if(i===no.BAND){return r.offsetBandPaddingInner}}return undefined}function zy(e,n,t,i,r,s=false){if(e!==undefined){return undefined}if(Wn(n)){const{bandPaddingOuter:e,bandWithNestedOffsetPaddingOuter:n}=r;if(s){return n}if(t===no.BAND){return Y(e,Mt(i)?{signal:`${i.signal}/2`}:i/2)}}else if(Xn(n)){if(t===no.POINT){return.5}else if(t===no.BAND){return r.offsetBandPaddingOuter}}return undefined}function Cy(e,n,t,i){if(t==="x"&&i.xReverse!==undefined){if(ho(e)&&n==="descending"){if(Mt(i.xReverse)){return{signal:`!${i.xReverse.signal}`}}else{return!i.xReverse}}return i.xReverse}if(ho(e)&&n==="descending"){return true}return undefined}function Ey(e,n,t,i,s,o,a){const c=!!t&&t!=="unaggregated";if(c){if(ho(s)){if((0,r.kJ)(t)){const e=t[0];const n=t[t.length-1];if(e<=0&&n>=0){return true}}return false}}if(e==="size"&&n.type==="quantitative"&&!yo(s)){return true}if(!(fc(n)&&n.bin)&&$([...Rn,...Hn],e)){const{orient:n,type:t}=i;if($(["bar","area","line","trail"],t)){if(n==="horizontal"&&e==="y"||n==="vertical"&&e==="x"){return false}}if($(["bar","area"],t)&&!a){return true}return o===null||o===void 0?void 0:o.zero}return false}function Ny(e,n,t,i,r=false){const s=Ty(n,t,i,r);const{type:o}=e;if(!lt(n)){return null}if(o!==undefined){if(!Mo(n,o)){Vr(pr(n,o,s));return s}if(fc(t)&&!Ao(o,t.type)){Vr(gr(o,s));return s}return o}return s}function Ty(e,n,t,i){var r;switch(n.type){case"nominal":case"ordinal":{if(Ke(e)||mt(e)==="discrete"){if(e==="shape"&&n.type==="ordinal"){Vr(tr(e,"ordinal"))}return"ordinal"}if(Wn(e)||Xn(e)){if($(["rect","bar","image","rule"],t.type)){return"band"}if(i){return"band"}}else if(t.type==="arc"&&e in Un){return"band"}const s=t[vn(e)];if(ga(s)){return"band"}if(xc(n)&&((r=n.axis)===null||r===void 0?void 0:r.tickBand)){return"band"}return"point"}case"temporal":if(Ke(e)){return"time"}else if(mt(e)==="discrete"){Vr(tr(e,"temporal"));return"ordinal"}else if(fc(n)&&n.timeUnit&&ks(n.timeUnit).utc){return"utc"}return"time";case"quantitative":if(Ke(e)){if(fc(n)&&Dt(n.bin)){return"bin-ordinal"}return"linear"}else if(mt(e)==="discrete"){Vr(tr(e,"quantitative"));return"ordinal"}return"linear";case"geojson":return undefined}throw new Error(Wi(n.type))}function Ay(e,{ignoreRange:n}={}){My(e);Lb(e);for(const t of Eo){xy(e,t)}if(!n){$y(e)}}function My(e){if(Uy(e)){e.component.scales=Ly(e)}else{e.component.scales=Iy(e)}}function Ly(e){const{encoding:n,mark:t,markDef:i}=e;const r={};for(const s of ct){const o=Wc(n[s]);if(o&&t===Qo&&s===Se&&o.type===Ys){continue}let a=o&&o["scale"];if(Xn(s)){const e=jn(s);if(!hl(n,e)){if(a){Vr(Yi(s))}continue}}if(o&&a!==null&&a!==false){a!==null&&a!==void 0?a:a={};const t=hl(n,s);const c=Ny(a,s,o,i,t);r[s]=new ry(e.scaleName(`${s}`,true),{value:c,explicit:a.type===c})}}return r}const qy=zd(((e,n)=>oo(e)-oo(n)));function Iy(e){var n;var t;const i=e.component.scales={};const r={};const s=e.component.resolve;for(const o of e.children){My(o);for(const i of A(o.component.scales)){(n=(t=s.scale)[i])!==null&&n!==void 0?n:t[i]=Um(i,e);if(s.scale[i]==="shared"){const e=r[i];const n=o.component.scales[i].getWithExplicit("type");if(e){if(ro(e.value,n.value)){r[i]=Ed(e,n,"type","scale",qy)}else{s.scale[i]="independent";delete r[i]}}else{r[i]=n}}}}for(const o of A(r)){const n=e.scaleName(o,true);const t=r[o];i[o]=new ry(n,t);for(const i of e.children){const e=i.component.scales[o];if(e){i.renameScale(e.get("name"),n);e.merged=true}}}return i}var Ry=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r{var n,t,i;if((n=e.from)===null||n===void 0?void 0:n.data){e.from.data=this.lookupDataSource(e.from.data)}if((i=(t=e.from)===null||t===void 0?void 0:t.facet)===null||i===void 0?void 0:i.data){e.from.facet.data=this.lookupDataSource(e.from.facet.data)}return e};this.parent=t;this.config=r;this.view=Et(o);this.name=(a=e.name)!==null&&a!==void 0?a:i;this.title=At(e.title)?{text:e.title}:e.title?Et(e.title):undefined;this.scaleNameMap=t?t.scaleNameMap:new Wy;this.projectionNameMap=t?t.projectionNameMap:new Wy;this.signalNameMap=t?t.signalNameMap:new Wy;this.data=e.data;this.description=e.description;this.transforms=cd((c=e.transform)!==null&&c!==void 0?c:[]);this.layout=n==="layer"||n==="unit"?{}:Mu(e,n,r);this.component={data:{sources:t?t.component.data.sources:[],outputNodes:t?t.component.data.outputNodes:{},outputNodeRefCounts:t?t.component.data.outputNodeRefCounts:{},isFaceted:Qa(e)||(t===null||t===void 0?void 0:t.component.data.isFaceted)&&e.data===undefined},layoutSize:new _d,layoutHeaders:{row:{},column:{},facet:{}},mark:null,resolve:Object.assign({scale:{},axis:{},legend:{}},s?b(s):{}),selection:null,scales:null,projection:null,axes:{},legends:{}}}get width(){return this.getSizeSignalRef("width")}get height(){return this.getSizeSignalRef("height")}parse(){this.parseScale();this.parseLayoutSize();this.renameTopLevelLayoutSizeSignal();this.parseSelections();this.parseProjection();this.parseData();this.parseAxesAndHeaders();this.parseLegends();this.parseMarkGroup()}parseScale(){Ay(this)}parseProjection(){zh(this)}renameTopLevelLayoutSizeSignal(){if(this.getName("width")!=="width"){this.renameSignal(this.getName("width"),"width")}if(this.getName("height")!=="height"){this.renameSignal(this.getName("height"),"height")}}parseLegends(){gh(this)}assembleEncodeFromView(e){const{style:n}=e,t=Ry(e,["style"]);const i={};for(const r of A(t)){const e=t[r];if(e!==undefined){i[r]=Yt(e)}}return i}assembleGroupEncodeEntry(e){let n={};if(this.view){n=this.assembleEncodeFromView(this.view)}if(!e){if(this.description){n["description"]=Yt(this.description)}if(this.type==="unit"||this.type==="layer"){return Object.assign({width:this.getSizeSignalRef("width"),height:this.getSizeSignalRef("height")},n!==null&&n!==void 0?n:{})}}return T(n)?undefined:n}assembleLayout(){if(!this.layout){return undefined}const e=this.layout,{spacing:n}=e,t=Ry(e,["spacing"]);const{component:i,config:r}=this;const s=Tm(i.layoutHeaders,r);return Object.assign(Object.assign(Object.assign({padding:n},this.assembleDefaultLayout()),t),s?{titleBand:s}:{})}assembleDefaultLayout(){return{}}assembleHeaderMarks(){const{layoutHeaders:e}=this.component;let n=[];for(const t of Qe){if(e[t].title){n.push(Sm(this,t))}}for(const t of $m){n=n.concat(Pm(this,t))}return n}assembleAxes(){return em(this.component.axes,this.config)}assembleLegends(){return $h(this)}assembleProjections(){return Sh(this)}assembleTitle(){var e,n,t;const i=(e=this.title)!==null&&e!==void 0?e:{},{encoding:r}=i,s=Ry(i,["encoding"]);const o=Object.assign(Object.assign(Object.assign({},Tt(this.config.title).nonMarkTitleProperties),s),r?{encode:{update:r}}:{});if(o.text){if($(["unit","layer"],this.type)){if($(["middle",undefined],o.anchor)){(n=o.frame)!==null&&n!==void 0?n:o.frame="group"}}else{(t=o.anchor)!==null&&t!==void 0?t:o.anchor="start"}return T(o)?undefined:o}return undefined}assembleGroup(e=[]){const n={};e=e.concat(this.assembleSignals());if(e.length>0){n.signals=e}const t=this.assembleLayout();if(t){n.layout=t}n.marks=[].concat(this.assembleHeaderMarks(),this.assembleMarks());const i=!this.parent||Hy(this.parent)?ny(this):[];if(i.length>0){n.scales=i}const r=this.assembleAxes();if(r.length>0){n.axes=r}const s=this.assembleLegends();if(s.length>0){n.legends=s}return n}getName(e){return I((this.name?`${this.name}_`:"")+e)}getDataName(e){return this.getName(Wd[e].toLowerCase())}requestDataName(e){const n=this.getDataName(e);const t=this.component.data.outputNodeRefCounts;t[n]=(t[n]||0)+1;return n}getSizeSignalRef(e){if(Hy(this.parent)){const n=Rm(e);const t=Bn(n);const i=this.component.scales[t];if(i&&!i.merged){const e=i.get("type");const n=i.get("range");if(mo(e)&&Lt(n)){const e=i.get("name");const n=Zb(this,t);const r=Qb(n);if(r){const n=Sc({aggregate:"distinct",field:r},{expr:"datum"});return{signal:Im(e,i,n)}}else{Vr(hi(t));return null}}}}return{signal:this.signalNameMap.get(this.getName(e))}}lookupDataSource(e){const n=this.component.data.outputNodes[e];if(!n){return e}return n.getSource()}getSignalName(e){return this.signalNameMap.get(e)}renameSignal(e,n){this.signalNameMap.rename(e,n)}renameScale(e,n){this.scaleNameMap.rename(e,n)}renameProjection(e,n){this.projectionNameMap.rename(e,n)}scaleName(e,n){if(n){return this.getName(e)}if(pn(e)&<(e)&&this.component.scales[e]||this.scaleNameMap.has(this.getName(e))){return this.scaleNameMap.get(this.getName(e))}return undefined}projectionName(e){if(e){return this.getName("projection")}if(this.component.projection&&!this.component.projection.merged||this.projectionNameMap.has(this.getName("projection"))){return this.projectionNameMap.get(this.getName("projection"))}return undefined}getScaleComponent(e){if(!this.component.scales){throw new Error("getScaleComponent cannot be called before parseScale(). Make sure you have called parseScale or use parseUnitModelWithScale().")}const n=this.component.scales[e];if(n&&!n.merged){return n}return this.parent?this.parent.getScaleComponent(e):undefined}getSelectionComponent(e,n){let t=this.component.selection[e];if(!t&&this.parent){t=this.parent.getSelectionComponent(e,n)}if(!t){throw new Error(xi(n))}return t}hasAxisOrientSignalRef(){var e,n;return((e=this.component.axes.x)===null||e===void 0?void 0:e.some((e=>e.hasOrientSignalRef())))||((n=this.component.axes.y)===null||n===void 0?void 0:n.some((e=>e.hasOrientSignalRef())))}}class Xy extends Gy{vgField(e,n={}){const t=this.fieldDef(e);if(!t){return undefined}return Sc(t,n)}reduceFieldDef(e,n){return $l(this.getMapping(),((n,t,i)=>{const r=Rc(t);if(r){return e(n,r,i)}return n}),n)}forEachFieldDef(e,n){wl(this.getMapping(),((n,t)=>{const i=Rc(n);if(i){e(i,t)}}),n)}}var Vy=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r{const s=lt(r)&&n.getScaleComponent(r);if(s){const n=s.get("type");if(ho(n)&&t.aggregate!=="count"&&!ea(i)){e[t.field]=t}}return e}),{});if(!A(o).length){return null}return new Yy(e,o)}dependentFields(){return new Set(A(this.filter))}producedFields(){return new Set}hash(){return`FilterInvalid ${j(this.filter)}`}assemble(){const e=A(this.filter).reduce(((e,n)=>{const t=this.filter[n];const i=Sc(t,{expr:"datum"});if(t!==null){if(t.type==="temporal"){e.push(`(isDate(${i}) || (isValid(${i}) && isFinite(+${i})))`)}else if(t.type==="quantitative"){e.push(`isValid(${i})`);e.push(`isFinite(+${i})`)}else{}}return e}),[]);return e.length>0?{type:"filter",expr:e.join(" && ")}:null}}class Qy extends ep{clone(){return new Qy(this.parent,b(this.transform))}constructor(e,n){super(e);this.transform=n;this.transform=b(n);const{flatten:t,as:i=[]}=this.transform;this.transform.as=t.map(((e,n)=>{var t;return(t=i[n])!==null&&t!==void 0?t:e}))}dependentFields(){return new Set(this.transform.flatten)}producedFields(){return new Set(this.transform.as)}hash(){return`FlattenTransform ${j(this.transform)}`}assemble(){const{flatten:e,as:n}=this.transform;const t={type:"flatten",fields:e,as:n};return t}}class Zy extends ep{clone(){return new Zy(null,b(this.transform))}constructor(e,n){var t,i,r;super(e);this.transform=n;this.transform=b(n);const s=(t=this.transform.as)!==null&&t!==void 0?t:[undefined,undefined];this.transform.as=[(i=s[0])!==null&&i!==void 0?i:"key",(r=s[1])!==null&&r!==void 0?r:"value"]}dependentFields(){return new Set(this.transform.fold)}producedFields(){return new Set(this.transform.as)}hash(){return`FoldTransform ${j(this.transform)}`}assemble(){const{fold:e,as:n}=this.transform;const t={type:"fold",fields:e,as:n};return t}}class ev extends ep{clone(){return new ev(null,b(this.fields),this.geojson,this.signal)}static parseAll(e,n){if(n.component.projection&&!n.component.projection.isFit){return e}let t=0;for(const i of[[Oe,ve],[je,xe]]){const r=i.map((e=>{const t=Wc(n.encoding[e]);return fc(t)?t.field:pc(t)?{expr:`${t.datum}`}:vc(t)?{expr:`${t["value"]}`}:undefined}));if(r[0]||r[1]){e=new ev(e,r,null,n.getName(`geojson_${t++}`))}}if(n.channelHasField(Se)){const i=n.typedFieldDef(Se);if(i.type===Ys){e=new ev(e,null,i.field,n.getName(`geojson_${t++}`))}}return e}constructor(e,n,t,i){super(e);this.fields=n;this.geojson=t;this.signal=i}dependentFields(){var e;const n=((e=this.fields)!==null&&e!==void 0?e:[]).filter(r.HD);return new Set([...this.geojson?[this.geojson]:[],...n])}producedFields(){return new Set}hash(){return`GeoJSON ${this.geojson} ${this.signal} ${j(this.fields)}`}assemble(){return[...this.geojson?[{type:"filter",expr:`isValid(datum["${this.geojson}"])`}]:[],Object.assign(Object.assign(Object.assign({type:"geojson"},this.fields?{fields:this.fields}:{}),this.geojson?{geojson:this.geojson}:{}),{signal:this.signal})]}}class nv extends ep{clone(){return new nv(null,this.projection,b(this.fields),b(this.as))}constructor(e,n,t,i){super(e);this.projection=n;this.fields=t;this.as=i}static parseAll(e,n){if(!n.projectionName()){return e}for(const t of[[Oe,ve],[je,xe]]){const i=t.map((e=>{const t=Wc(n.encoding[e]);return fc(t)?t.field:pc(t)?{expr:`${t.datum}`}:vc(t)?{expr:`${t["value"]}`}:undefined}));const r=t[0]===je?"2":"";if(i[0]||i[1]){e=new nv(e,n.projectionName(),i,[n.getName(`x${r}`),n.getName(`y${r}`)])}}return e}dependentFields(){return new Set(this.fields.filter(r.HD))}producedFields(){return new Set(this.as)}hash(){return`Geopoint ${this.projection} ${j(this.fields)} ${j(this.as)}`}assemble(){return{type:"geopoint",projection:this.projection,fields:this.fields,as:this.as}}}class tv extends ep{clone(){return new tv(null,b(this.transform))}constructor(e,n){super(e);this.transform=n}dependentFields(){var e;return new Set([this.transform.impute,this.transform.key,...(e=this.transform.groupby)!==null&&e!==void 0?e:[]])}producedFields(){return new Set([this.transform.impute])}processSequence(e){const{start:n=0,stop:t,step:i}=e;const r=[n,t,...i?[i]:[]].join(",");return{signal:`sequence(${r})`}}static makeFromTransform(e,n){return new tv(e,n)}static makeFromEncoding(e,n){const t=n.encoding;const i=t.x;const r=t.y;if(fc(i)&&fc(r)){const s=i.impute?i:r.impute?r:undefined;if(s===undefined){return undefined}const o=i.impute?r:r.impute?i:undefined;const{method:a,value:c,frame:l,keyvals:u}=s.impute;const f=kl(n.mark,t);return new tv(e,Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({impute:s.field,key:o.field},a?{method:a}:{}),c!==undefined?{value:c}:{}),l?{frame:l}:{}),u!==undefined?{keyvals:u}:{}),f.length?{groupby:f}:{}))}return null}hash(){return`Impute ${j(this.transform)}`}assemble(){const{impute:e,key:n,keyvals:t,method:i,groupby:r,value:s,frame:o=[null,null]}=this.transform;const a=Object.assign(Object.assign(Object.assign(Object.assign({type:"impute",field:e,key:n},t?{keyvals:Wf(t)?this.processSequence(t):t}:{}),{method:"value"}),r?{groupby:r}:{}),{value:!i||i==="value"?s:null});if(i&&i!=="value"){const n=Object.assign({type:"window",as:[`imputed_${e}_value`],ops:[i],fields:[e],frame:o,ignorePeers:false},r?{groupby:r}:{});const t={type:"formula",expr:`datum.${e} === null ? datum.imputed_${e}_value : datum.${e}`,as:e};return[a,n,t]}else{return[a]}}}var iv=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);re))}producedFields(){return undefined}dependentFields(){var e;return new Set([this.transform.pivot,this.transform.value,...(e=this.transform.groupby)!==null&&e!==void 0?e:[]])}hash(){return`PivotTransform ${j(this.transform)}`}assemble(){const{pivot:e,value:n,groupby:t,limit:i,op:r}=this.transform;return Object.assign(Object.assign(Object.assign({type:"pivot",field:e,value:n},i!==undefined?{limit:i}:{}),r!==undefined?{op:r}:{}),t!==undefined?{groupby:t}:{})}}class fv extends ep{clone(){return new fv(null,b(this.transform))}constructor(e,n){super(e);this.transform=n}dependentFields(){return new Set}producedFields(){return new Set}hash(){return`SampleTransform ${j(this.transform)}`}assemble(){return{type:"sample",size:this.transform.sample}}}function dv(e){let n=0;function t(i,r){var s;if(i instanceof ib){if(!i.isGenerator&&!Td(i.data)){e.push(r);const n={name:null,source:r.name,transform:[]};r=n}}if(i instanceof Zh){if(i.parent instanceof ib&&!r.source){r.format=Object.assign(Object.assign({},(s=r.format)!==null&&s!==void 0?s:{}),{parse:i.assembleFormatParse()});r.transform.push(...i.assembleTransforms(true))}else{r.transform.push(...i.assembleTransforms())}}if(i instanceof Gh){if(!r.name){r.name=`data_${n++}`}if(!r.source||r.transform.length>0){e.push(r);i.data=r.name}else{i.data=r.source}e.push(...i.assemble());return}if(i instanceof nb||i instanceof tb||i instanceof Yy||i instanceof Ug||i instanceof vm||i instanceof nv||i instanceof Jh||i instanceof sv||i instanceof Sb||i instanceof jb||i instanceof Zy||i instanceof Qy||i instanceof Ky||i instanceof rv||i instanceof av||i instanceof lv||i instanceof eb||i instanceof fv||i instanceof uv){r.transform.push(i.assemble())}if(i instanceof Uh||i instanceof ip||i instanceof tv||i instanceof kb||i instanceof ev){r.transform.push(...i.assemble())}if(i instanceof np){if(r.source&&r.transform.length===0){i.setSource(r.source)}else if(i.parent instanceof np){i.setSource(r.name)}else{if(!r.name){r.name=`data_${n++}`}i.setSource(r.name);if(i.numChildren()===1){e.push(r);const n={name:null,source:r.name,transform:[]};r=n}}}switch(i.numChildren()){case 0:if(i instanceof np&&(!r.source||r.transform.length>0)){e.push(r)}break;case 1:t(i.children[0],r);break;default:{if(!r.name){r.name=`data_${n++}`}let s=r.name;if(!r.source||r.transform.length>0){e.push(r)}else{s=r.source}for(const e of i.children){const n={name:null,source:s,transform:[]};t(e,n)}break}}}return t}function pv(e){const n=[];const t=dv(n);for(const i of e.children){t(i,{source:e.name,name:null,transform:[]})}return n}function gv(e,n){var t,i;const r=[];const s=dv(r);let o=0;for(const c of e.sources){if(!c.hasName()){c.dataName=`source_${o++}`}const e=c.assemble();s(c,e)}for(const c of r){if(c.transform.length===0){delete c.transform}}let a=0;for(const[c,l]of r.entries()){if(((t=l.transform)!==null&&t!==void 0?t:[]).length===0&&!l.source){r.splice(a++,0,r.splice(c,1)[0])}}for(const c of r){for(const n of(i=c.transform)!==null&&i!==void 0?i:[]){if(n.type==="lookup"){n.from=e.outputNodes[n.from].getSource()}}}for(const c of r){if(c.name in n){c.values=n[c.name]}}return r}function mv(e){if(e==="top"||e==="left"||Mt(e)){return"header"}return"footer"}function hv(e){for(const n of Qe){bv(e,n)}vv(e,"x");vv(e,"y")}function bv(e,n){var t;const{facet:i,config:s,child:o,component:a}=e;if(e.channelHasField(n)){const c=i[n];const l=jm("title",null,s,n);let u=Ac(c,s,{allowDisabling:true,includeDefault:l===undefined||!!l});if(o.component.layoutHeaders[n].title){u=(0,r.kJ)(u)?u.join(", "):u;u+=` / ${o.component.layoutHeaders[n].title}`;o.component.layoutHeaders[n].title=null}const f=jm("labelOrient",c.header,s,n);const d=c.header!==null?Y((t=c.header)===null||t===void 0?void 0:t.labels,s.header.labels,true):false;const p=$(["bottom","right"],f)?"footer":"header";a.layoutHeaders[n]={title:c.header!==null?u:null,facetFieldDef:c,[p]:n==="facet"?[]:[yv(e,n,d)]}}}function yv(e,n,t){const i=n==="row"?"height":"width";return{labels:t,sizeSignal:e.child.component.layoutSize.get(i)?e.child.getSizeSignalRef(i):undefined,axes:[]}}function vv(e,n){var t;const{child:i}=e;if(i.component.axes[n]){const{layoutHeaders:r,resolve:s}=e.component;s.axis[n]=Hm(s,n);if(s.axis[n]==="shared"){const s=n==="x"?"column":"row";const o=r[s];for(const r of i.component.axes[n]){const n=mv(r.get("orient"));(t=o[n])!==null&&t!==void 0?t:o[n]=[yv(e,s,false)];const i=Qg(r,"main",e.config,{header:true});if(i){o[n][0].axes.push(i)}r.mainExtracted=true}}else{}}}function Ov(e){jv(e);wv(e,"width");wv(e,"height")}function xv(e){jv(e);const n=e.layout.columns===1?"width":"childWidth";const t=e.layout.columns===undefined?"height":"childHeight";wv(e,n);wv(e,t)}function jv(e){for(const n of e.children){n.parseLayoutSize()}}function wv(e,n){var t;const i=Rm(n);const r=Bn(i);const s=e.component.resolve;const o=e.component.layoutSize;let a;for(const c of e.children){const n=c.component.layoutSize.getWithExplicit(i);const o=(t=s.scale[r])!==null&&t!==void 0?t:Um(r,e);if(o==="independent"&&n.value==="step"){a=undefined;break}if(a){if(o==="independent"&&a.value!==n.value){a=undefined;break}a=Ed(a,n,i,"")}else{a=n}}if(a){for(const t of e.children){e.renameSignal(t.getName(i),e.getName(n));t.component.layoutSize.set(i,"merged",false)}o.setWithExplicit(n,a)}else{o.setWithExplicit(n,{explicit:false,value:undefined})}}function $v(e){const{size:n,component:t}=e;for(const i of Rn){const r=vn(i);if(n[r]){const e=n[r];t.layoutSize.set(r,Cu(e)?"step":e,true)}else{const n=kv(e,r);t.layoutSize.set(r,n,false)}}}function kv(e,n){const t=n==="width"?"x":"y";const i=e.config;const r=e.getScaleComponent(t);if(r){const e=r.get("type");const t=r.get("range");if(mo(e)){const e=Ru(i.view,n);if(Lt(t)||Cu(e)){return"step"}else{return e}}else{return qu(i.view,n)}}else if(e.hasProjection||e.mark==="arc"){return qu(i.view,n)}else{const e=Ru(i.view,n);return Cu(e)?e.step:e}}function Sv(e,n,t){return Sc(n,Object.assign({suffix:`by_${Sc(e)}`},t!==null&&t!==void 0?t:{}))}class Dv extends Xy{constructor(e,n,t,i){super(e,"facet",n,t,i,e.resolve);this.child=zO(e.spec,this,this.getName("child"),undefined,i);this.children=[this.child];this.facet=this.initFacet(e.facet)}initFacet(e){if(!Ka(e)){return{facet:this.initFacetFieldDef(e,"facet")}}const n=A(e);const t={};for(const i of n){if(![oe,ae].includes(i)){Vr(Ki(i,"facet"));break}const n=e[i];if(n.field===undefined){Vr(Xi(n,i));break}t[i]=this.initFacetFieldDef(n,i)}return t}initFacetFieldDef(e,n){const t=Jc(e,n);if(t.header){t.header=Et(t.header)}else if(t.header===null){t.header=null}return t}channelHasField(e){return!!this.facet[e]}fieldDef(e){return this.facet[e]}parseData(){this.component.data=Cv(this);this.child.parseData()}parseLayoutSize(){jv(this)}parseSelections(){this.child.parseSelections();this.component.selection=this.child.component.selection}parseMarkGroup(){this.child.parseMarkGroup()}parseAxesAndHeaders(){this.child.parseAxesAndHeaders();hv(this)}assembleSelectionTopLevelSignals(e){return this.child.assembleSelectionTopLevelSignals(e)}assembleSignals(){this.child.assembleSignals();return[]}assembleSelectionData(e){return this.child.assembleSelectionData(e)}getHeaderLayoutMixins(){var e,n,t;const i={};for(const r of Qe){for(const s of km){const o=this.component.layoutHeaders[r];const a=o[s];const{facetFieldDef:c}=o;if(c){const n=jm("titleOrient",c.header,this.config,r);if(["right","bottom"].includes(n)){const t=xm(r,n);(e=i.titleAnchor)!==null&&e!==void 0?e:i.titleAnchor={};i.titleAnchor[t]="end"}}if(a===null||a===void 0?void 0:a[0]){const e=r==="row"?"height":"width";const a=s==="header"?"headerBand":"footerBand";if(r!=="facet"&&!this.child.component.layoutSize.get(e)){(n=i[a])!==null&&n!==void 0?n:i[a]={};i[a][r]=.5}if(o.title){(t=i.offset)!==null&&t!==void 0?t:i.offset={};i.offset[r==="row"?"rowTitle":"columnTitle"]=10}}}}return i}assembleDefaultLayout(){const{column:e,row:n}=this.facet;const t=e?this.columnDistinctSignal():n?1:undefined;let i="all";if(!n&&this.component.resolve.scale.x==="independent"){i="none"}else if(!e&&this.component.resolve.scale.y==="independent"){i="none"}return Object.assign(Object.assign(Object.assign({},this.getHeaderLayoutMixins()),t?{columns:t}:{}),{bounds:"full",align:i})}assembleLayoutSignals(){return this.child.assembleLayoutSignals()}columnDistinctSignal(){if(this.parent&&this.parent instanceof Dv){return undefined}else{const e=this.getName("column_domain");return{signal:`length(data('${e}'))`}}}assembleGroupStyle(){return undefined}assembleGroup(e){if(this.parent&&this.parent instanceof Dv){return Object.assign(Object.assign({},this.channelHasField("column")?{encode:{update:{columns:{field:Sc(this.facet.column,{prefix:"distinct"})}}}}:{}),super.assembleGroup(e))}return super.assembleGroup(e)}getCardinalityAggregateForChild(){const e=[];const n=[];const t=[];if(this.child instanceof Dv){if(this.child.channelHasField("column")){const i=Sc(this.child.facet.column);e.push(i);n.push("distinct");t.push(`distinct_${i}`)}}else{for(const i of Rn){const r=this.child.component.scales[i];if(r&&!r.merged){const s=r.get("type");const o=r.get("range");if(mo(s)&&Lt(o)){const r=Zb(this.child,i);const s=Qb(r);if(s){e.push(s);n.push("distinct");t.push(`distinct_${s}`)}else{Vr(hi(i))}}}}}return{fields:e,ops:n,as:t}}assembleFacet(){const{name:e,data:n}=this.component.data.facetRoot;const{row:t,column:i}=this.facet;const{fields:s,ops:o,as:a}=this.getCardinalityAggregateForChild();const c=[];for(const u of Qe){const e=this.facet[u];if(e){c.push(Sc(e));const{bin:n,sort:l}=e;if(Dt(n)){c.push(Sc(e,{binSuffix:"end"}))}if(Xa(l)){const{field:n,op:r=Ha}=l;const c=Sv(e,l);if(t&&i){s.push(c);o.push("max");a.push(c)}else{s.push(n);o.push(r);a.push(c)}}else if((0,r.kJ)(l)){const n=Om(e,u);s.push(n);o.push("max");a.push(n)}}}const l=!!t&&!!i;return Object.assign({name:e,data:n,groupby:c},l||s.length>0?{aggregate:Object.assign(Object.assign({},l?{cross:l}:{}),s.length?{fields:s,ops:o,as:a}:{})}:{})}facetSortFields(e){const{facet:n}=this;const t=n[e];if(t){if(Xa(t.sort)){return[Sv(t,t.sort,{expr:"datum"})]}else if((0,r.kJ)(t.sort)){return[Om(t,e,{expr:"datum"})]}return[Sc(t,{expr:"datum"})]}return[]}facetSortOrder(e){const{facet:n}=this;const t=n[e];if(t){const{sort:e}=t;const n=(Xa(e)?e.order:!(0,r.kJ)(e)&&e)||"ascending";return[n]}return[]}assembleLabelTitle(){var e;const{facet:n,config:t}=this;if(n.facet){return zm(n.facet,"facet",t)}const i={row:["top","bottom"],column:["left","right"]};for(const r of $m){if(n[r]){const s=jm("labelOrient",(e=n[r])===null||e===void 0?void 0:e.header,t,r);if(i[r].includes(s)){return zm(n[r],r,t)}}}return undefined}assembleMarks(){const{child:e}=this;const n=this.component.data.facetRoot;const t=pv(n);const i=e.assembleGroupEncodeEntry(false);const r=this.assembleLabelTitle()||e.assembleTitle();const s=e.assembleGroupStyle();const o=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:this.getName("cell"),type:"group"},r?{title:r}:{}),s?{style:s}:{}),{from:{facet:this.assembleFacet()},sort:{field:Qe.map((e=>this.facetSortFields(e))).flat(),order:Qe.map((e=>this.facetSortOrder(e))).flat()}}),t.length>0?{data:t}:{}),i?{encode:{update:i}}:{}),e.assembleGroup(Gd(this,[])));return[o]}getMapping(){return this.facet}}function _v(e,n){const{row:t,column:i}=n;if(t&&i){let n=null;for(const r of[t,i]){if(Xa(r.sort)){const{field:t,op:i=Ha}=r.sort;e=n=new jb(e,{joinaggregate:[{op:i,field:t,as:Sv(r,r.sort,{forAs:true})}],groupby:[Sc(r)]})}}return n}return null}function Pv(e,n){var t,i,r,s;for(const o of n){const n=o.data;if(e.name&&o.hasName()&&e.name!==o.dataName){continue}const a=(t=e["format"])===null||t===void 0?void 0:t.mesh;const c=(i=n.format)===null||i===void 0?void 0:i.feature;if(a&&c){continue}const l=(r=e["format"])===null||r===void 0?void 0:r.feature;if((l||c)&&l!==c){continue}const u=(s=n.format)===null||s===void 0?void 0:s.mesh;if((a||u)&&a!==u){continue}if(Ad(e)&&Ad(n)){if(h(e.values,n.values)){return o}}else if(Td(e)&&Td(n)){if(e.url===n.url){return o}}else if(Md(e)){if(e.name===o.dataName){return o}}}return null}function Fv(e,n){if(e.data||!e.parent){if(e.data===null){const e=new ib({values:[]});n.push(e);return e}const t=Pv(e.data,n);if(t){if(!Ld(e.data)){t.data.format=D({},e.data.format,t.data.format)}if(!t.hasName()&&e.data.name){t.dataName=e.data.name}return t}else{const t=new ib(e.data);n.push(t);return t}}else{return e.parent.component.data.facetRoot?e.parent.component.data.facetRoot:e.parent.component.data.main}}function zv(e,n,t){var i,r;let s=0;for(const o of n.transforms){let a=undefined;let c;if(nd(o)){c=e=new vm(e,o);a="derived"}else if(Rf(o)){const r=Kh(o);c=e=(i=Zh.makeWithAncestors(e,{},r,t))!==null&&i!==void 0?i:e;e=new Ug(e,n,o.filter)}else if(td(o)){c=e=Uh.makeFromTransform(e,o,n);a="number"}else if(rd(o)){a="date";const n=t.getWithExplicit(o.field);if(n.value===undefined){e=new Zh(e,{[o.field]:a});t.set(o.field,a,false)}c=e=ip.makeFromTransform(e,o)}else if(sd(o)){c=e=Jh.makeFromTransform(e,o);a="number";if(Mg(n)){e=new eb(e)}}else if(Uf(o)){c=e=sv.make(e,n,o,s++);a="derived"}else if(Qf(o)){c=e=new Sb(e,o);a="number"}else if(Zf(o)){c=e=new jb(e,o);a="number"}else if(od(o)){c=e=kb.makeFromTransform(e,o);a="derived"}else if(ad(o)){c=e=new Zy(e,o);a="derived"}else if(ed(o)){c=e=new Qy(e,o);a="derived"}else if(Jf(o)){c=e=new uv(e,o);a="derived"}else if(Yf(o)){e=new fv(e,o)}else if(id(o)){c=e=tv.makeFromTransform(e,o);a="derived"}else if(Gf(o)){c=e=new Ky(e,o);a="derived"}else if(Xf(o)){c=e=new av(e,o);a="derived"}else if(Vf(o)){c=e=new lv(e,o);a="derived"}else if(Kf(o)){c=e=new rv(e,o);a="derived"}else{Vr(Ni(o));continue}if(c&&a!==undefined){for(const e of(r=c.producedFields())!==null&&r!==void 0?r:[]){t.set(e,a,false)}}}return e}function Cv(e){var n,t,i,r,s,o,a,c,l,u;let f=Fv(e,e.component.data.sources);const{outputNodes:d,outputNodeRefCounts:p}=e.component.data;const g=e.data;const m=g&&(Ld(g)||Td(g)||Ad(g));const h=!m&&e.parent?e.parent.component.data.ancestorParse.clone():new Nd;if(Ld(g)){if(qd(g)){f=new tb(f,g.sequence)}else if(Rd(g)){f=new nb(f,g.graticule)}h.parseNothing=true}else if(((n=g===null||g===void 0?void 0:g.format)===null||n===void 0?void 0:n.parse)===null){h.parseNothing=true}f=(t=Zh.makeExplicit(f,e,h))!==null&&t!==void 0?t:f;f=new eb(f);const b=e.parent&&Jy(e.parent);if(Uy(e)||Hy(e)){if(b){f=(i=Uh.makeFromEncoding(f,e))!==null&&i!==void 0?i:f}}if(e.transforms.length>0){f=zv(f,e,h)}const y=Qh(e);const v=Yh(e);f=(r=Zh.makeWithAncestors(f,{},Object.assign(Object.assign({},y),v),h))!==null&&r!==void 0?r:f;if(Uy(e)){f=ev.parseAll(f,e);f=nv.parseAll(f,e)}if(Uy(e)||Hy(e)){if(!b){f=(s=Uh.makeFromEncoding(f,e))!==null&&s!==void 0?s:f}f=(o=ip.makeFromEncoding(f,e))!==null&&o!==void 0?o:f;f=vm.parseAllForSortIndex(f,e)}const O=e.getDataName(Wd.Raw);const x=new np(f,O,Wd.Raw,p);d[O]=x;f=x;if(Uy(e)){const n=Jh.makeFromEncoding(f,e);if(n){f=n;if(Mg(e)){f=new eb(f)}}f=(a=tv.makeFromEncoding(f,e))!==null&&a!==void 0?a:f;f=(c=kb.makeFromEncoding(f,e))!==null&&c!==void 0?c:f}if(Uy(e)){f=(l=Yy.make(f,e))!==null&&l!==void 0?l:f}const j=e.getDataName(Wd.Main);const w=new np(f,j,Wd.Main,p);d[j]=w;f=w;if(Uy(e)){Gg(e,w)}let $=null;if(Hy(e)){const n=e.getName("facet");f=(u=_v(f,e.facet))!==null&&u!==void 0?u:f;$=new Gh(f,e,n,w.getSource());d[n]=$}return Object.assign(Object.assign({},e.component.data),{outputNodes:d,outputNodeRefCounts:p,raw:x,main:w,facetRoot:$,ancestorParse:h})}class Ev extends Gy{constructor(e,n,t,i){var r,s,o,a;super(e,"concat",n,t,i,e.resolve);if(((s=(r=e.resolve)===null||r===void 0?void 0:r.axis)===null||s===void 0?void 0:s.x)==="shared"||((a=(o=e.resolve)===null||o===void 0?void 0:o.axis)===null||a===void 0?void 0:a.y)==="shared"){Vr(Fi)}this.children=this.getChildren(e).map(((e,n)=>zO(e,this,this.getName(`concat_${n}`),undefined,i)))}parseData(){this.component.data=Cv(this);for(const e of this.children){e.parseData()}}parseSelections(){this.component.selection={};for(const e of this.children){e.parseSelections();for(const n of A(e.component.selection)){this.component.selection[n]=e.component.selection[n]}}}parseMarkGroup(){for(const e of this.children){e.parseMarkGroup()}}parseAxesAndHeaders(){for(const e of this.children){e.parseAxesAndHeaders()}}getChildren(e){if(Pu(e)){return e.vconcat}else if(Fu(e)){return e.hconcat}return e.concat}parseLayoutSize(){xv(this)}parseAxisGroup(){return null}assembleSelectionTopLevelSignals(e){return this.children.reduce(((e,n)=>n.assembleSelectionTopLevelSignals(e)),e)}assembleSignals(){this.children.forEach((e=>e.assembleSignals()));return[]}assembleLayoutSignals(){const e=Mm(this);for(const n of this.children){e.push(...n.assembleLayoutSignals())}return e}assembleSelectionData(e){return this.children.reduce(((e,n)=>n.assembleSelectionData(e)),e)}assembleMarks(){return this.children.map((e=>{const n=e.assembleTitle();const t=e.assembleGroupStyle();const i=e.assembleGroupEncodeEntry(false);return Object.assign(Object.assign(Object.assign(Object.assign({type:"group",name:e.getName("group")},n?{title:n}:{}),t?{style:t}:{}),i?{encode:{update:i}}:{}),e.assembleGroup())}))}assembleGroupStyle(){return undefined}assembleDefaultLayout(){const e=this.layout.columns;return Object.assign(Object.assign({},e!=null?{columns:e}:{}),{bounds:"full",align:"each"})}}function Nv(e){return e===false||e===null}const Tv=Object.assign(Object.assign({disable:1,gridScale:1,scale:1},sl),{labelExpr:1,encode:1});const Av=A(Tv);class Mv extends _d{constructor(e={},n={},t=false){super();this.explicit=e;this.implicit=n;this.mainExtracted=t}clone(){return new Mv(b(this.explicit),b(this.implicit),this.mainExtracted)}hasAxisPart(e){if(e==="axis"){return true}if(e==="grid"||e==="title"){return!!this.get(e)}return!Nv(this.get(e))}hasOrientSignalRef(){return Mt(this.explicit.orient)}}function Lv(e,n,t){var i;const{encoding:r,config:s}=e;const o=(i=Wc(r[n]))!==null&&i!==void 0?i:Wc(r[yn(n)]);const a=e.axis(n)||{};const{format:c,formatType:l}=a;if(Fa(l)){return Object.assign({text:Ta({fieldOrDatumDef:o,field:"datum.value",format:c,formatType:l,config:s})},t)}else if(c===undefined&&l===undefined&&s.customFormatTypes){if(dc(o)==="quantitative"){if(xc(o)&&o.stack==="normalize"&&s.normalizedNumberFormatType){return Object.assign({text:Ta({fieldOrDatumDef:o,field:"datum.value",format:s.normalizedNumberFormat,formatType:s.normalizedNumberFormatType,config:s})},t)}else if(s.numberFormatType){return Object.assign({text:Ta({fieldOrDatumDef:o,field:"datum.value",format:s.numberFormat,formatType:s.numberFormatType,config:s})},t)}}if(dc(o)==="temporal"&&s.timeFormatType&&fc(o)&&!o.timeUnit){return Object.assign({text:Ta({fieldOrDatumDef:o,field:"datum.value",format:s.timeFormat,formatType:s.timeFormatType,config:s})},t)}}return t}function qv(e){return Rn.reduce(((n,t)=>{if(e.component.scales[t]){n[t]=[Jv(t,e)]}return n}),{})}const Iv={bottom:"top",top:"bottom",left:"right",right:"left"};function Rv(e){var n;const{axes:t,resolve:i}=e.component;const r={top:0,bottom:0,right:0,left:0};for(const s of e.children){s.parseAxesAndHeaders();for(const n of A(s.component.axes)){i.axis[n]=Hm(e.component.resolve,n);if(i.axis[n]==="shared"){t[n]=Wv(t[n],s.component.axes[n]);if(!t[n]){i.axis[n]="independent";delete t[n]}}}}for(const s of Rn){for(const o of e.children){if(!o.component.axes[s]){continue}if(i.axis[s]==="independent"){t[s]=((n=t[s])!==null&&n!==void 0?n:[]).concat(o.component.axes[s]);for(const e of o.component.axes[s]){const{value:n,explicit:t}=e.getWithExplicit("orient");if(Mt(n)){continue}if(r[n]>0&&!t){const t=Iv[n];if(r[n]>r[t]){e.set("orient",t,false)}}r[n]++}}delete o.component.axes[s]}if(i.axis[s]==="independent"&&t[s]&&t[s].length>1){for(const e of t[s]){if(!!e.get("grid")&&!e.explicit.grid){e.implicit.grid=false}}}}}function Wv(e,n){if(e){if(e.length!==n.length){return undefined}const t=e.length;for(let i=0;ie.clone()))}return e}function Uv(e,n){for(const t of Av){const i=Ed(e.getWithExplicit(t),n.getWithExplicit(t),t,"axis",((e,n)=>{switch(t){case"title":return ui(e,n);case"gridScale":return{explicit:e.explicit,value:Y(e.value,n.value)}}return Cd(e,n,t,"axis")}));e.setWithExplicit(t,i)}return e}function Hv(e,n,t,i,r){if(n==="disable"){return t!==undefined}t=t||{};switch(n){case"titleAngle":case"labelAngle":return e===(Mt(t.labelAngle)?t.labelAngle:ie(t.labelAngle));case"values":return!!t.values;case"encode":return!!t.encoding||!!t.labelAngle;case"title":if(e===hm(i,r)){return true}}return e===t[n]}const Bv=new Set(["grid","translate","format","formatType","orient","labelExpr","tickCount","position","tickMinStep"]);function Jv(e,n){var t,i,r;let s=n.axis(e);const o=new Mv;const a=Wc(n.encoding[e]);const{mark:c,config:l}=n;const u=(s===null||s===void 0?void 0:s.orient)||((t=l[e==="x"?"axisX":"axisY"])===null||t===void 0?void 0:t.orient)||((i=l.axis)===null||i===void 0?void 0:i.orient)||gm(e);const f=n.getScaleComponent(e).get("type");const d=tm(e,f,u,n.config);const p=s!==undefined?!s:rm("disable",l.style,s===null||s===void 0?void 0:s.style,d).configValue;o.set("disable",p,s!==undefined);if(p){return o}s=s||{};const g=cm(a,s,e,l.style,d);const m={fieldOrDatumDef:a,axis:s,channel:e,model:n,scaleType:f,orient:u,labelAngle:g,mark:c,config:l};for(const y of Av){const t=y in sm?sm[y](m):al(y)?s[y]:undefined;const i=t!==undefined;const r=Hv(t,y,s,n,e);if(i&&r){o.set(y,t,r)}else{const{configValue:e=undefined,configFrom:n=undefined}=al(y)&&y!=="values"?rm(y,l.style,s.style,d):{};const a=e!==undefined;if(i&&!a){o.set(y,t,r)}else if(!(n==="vgAxisConfig")||Bv.has(y)&&a||tl(e)||Mt(e)){o.set(y,e,false)}}}const h=(r=s.encoding)!==null&&r!==void 0?r:{};const b=il.reduce(((t,i)=>{var r;if(!o.hasAxisPart(i)){return t}const s=Wm((r=h[i])!==null&&r!==void 0?r:{},n);const a=i==="labels"?Lv(n,e,s):s;if(a!==undefined&&!T(a)){t[i]={update:a}}return t}),{});if(!T(b)){o.set("encode",b,!!s.encoding||s.labelAngle!==undefined)}return o}function Gv({encoding:e,size:n}){for(const t of Rn){const i=vn(t);if(Cu(n[i])){if(gc(e[t])){delete n[i];Vr(br(i))}}}return n}function Xv(e,n,t){const i=Et(e);const r=ii("orient",i,t);i.orient=Qv(i.type,n,r);if(r!==undefined&&r!==i.orient){Vr(sr(i.orient,r))}if(i.type==="bar"&&i.orient){const e=ii("cornerRadiusEnd",i,t);if(e!==undefined){const t=i.orient==="horizontal"&&n.x2||i.orient==="vertical"&&n.y2?["cornerRadius"]:ma[i.orient];for(const n of t){i[n]=e}if(i.cornerRadiusEnd!==undefined){delete i.cornerRadiusEnd}}}const s=ii("opacity",i,t);if(s===undefined){i.opacity=Kv(i.type,n)}const o=ii("cursor",i,t);if(o===undefined){i.cursor=Vv(i,n,t)}return i}function Vv(e,n,t){if(n.href||e.href||ii("href",e,t)){return"pointer"}return e.cursor}function Kv(e,n){if($([Ho,Xo,Ko,Yo],e)){if(!bl(n)){return.7}}return undefined}function Yv(e,n,{graticule:t}){if(t){return false}const i=ri("filled",e,n);const r=e.type;return Y(i,r!==Ho&&r!==Uo&&r!==Jo)}function Qv(e,n,t){switch(e){case Ho:case Ko:case Yo:case Go:case Bo:case Wo:return undefined}const{x:i,y:r,x2:s,y2:o}=n;switch(e){case Ro:if(fc(i)&&(_t(i.bin)||fc(r)&&r.aggregate&&!i.aggregate)){return"vertical"}if(fc(r)&&(_t(r.bin)||fc(i)&&i.aggregate&&!r.aggregate)){return"horizontal"}if(o||s){if(t){return t}if(!s){if(fc(i)&&i.type===Gs&&!Dt(i.bin)||hc(i)){if(fc(r)&&_t(r.bin)){return"horizontal"}}return"vertical"}if(!o){if(fc(r)&&r.type===Gs&&!Dt(r.bin)||hc(r)){if(fc(i)&&_t(i.bin)){return"vertical"}}return"horizontal"}}case Jo:if(s&&!(fc(i)&&_t(i.bin))&&o&&!(fc(r)&&_t(r.bin))){return undefined}case Io:if(o){if(fc(r)&&_t(r.bin)){return"horizontal"}else{return"vertical"}}else if(s){if(fc(i)&&_t(i.bin)){return"vertical"}else{return"horizontal"}}else if(e===Jo){if(i&&!r){return"vertical"}else if(r&&!i){return"horizontal"}}case Uo:case Xo:{const n=gc(i);const s=gc(r);if(t){return t}else if(n&&!s){return e!=="tick"?"horizontal":"vertical"}else if(!n&&s){return e!=="tick"?"vertical":"horizontal"}else if(n&&s){const n=i;const t=r;const s=n.type===Vs;const o=t.type===Vs;if(s&&!o){return e!=="tick"?"vertical":"horizontal"}else if(!s&&o){return e!=="tick"?"horizontal":"vertical"}if(!n.aggregate&&t.aggregate){return e!=="tick"?"vertical":"horizontal"}else if(n.aggregate&&!t.aggregate){return e!=="tick"?"horizontal":"vertical"}return"vertical"}else{return undefined}}}return"vertical"}const Zv={vgMark:"arc",encodeEntry:e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zp(e,{align:"ignore",baseline:"ignore",color:"include",size:"ignore",orient:"ignore",theta:"ignore"})),Tp("x",e,{defaultPos:"mid"})),Tp("y",e,{defaultPos:"mid"})),Jp(e,"radius")),Jp(e,"theta"))};const eO={vgMark:"area",encodeEntry:e=>Object.assign(Object.assign(Object.assign(Object.assign({},Zp(e,{align:"ignore",baseline:"ignore",color:"include",orient:"include",size:"ignore",theta:"ignore"})),Rp("x",e,{defaultPos:"zeroOrMin",defaultPos2:"zeroOrMin",range:e.markDef.orient==="horizontal"})),Rp("y",e,{defaultPos:"zeroOrMin",defaultPos2:"zeroOrMin",range:e.markDef.orient==="vertical"})),ig(e))};const nO={vgMark:"rect",encodeEntry:e=>Object.assign(Object.assign(Object.assign({},Zp(e,{align:"ignore",baseline:"ignore",color:"include",orient:"ignore",size:"ignore",theta:"ignore"})),Jp(e,"x")),Jp(e,"y"))};const tO={vgMark:"shape",encodeEntry:e=>Object.assign({},Zp(e,{align:"ignore",baseline:"ignore",color:"include",size:"ignore",orient:"ignore",theta:"ignore"})),postEncodingTransform:e=>{const{encoding:n}=e;const t=n.shape;const i=Object.assign({type:"geoshape",projection:e.projectionName()},t&&fc(t)&&t.type===Ys?{field:Sc(t,{expr:"datum"})}:{});return[i]}};const iO={vgMark:"image",encodeEntry:e=>Object.assign(Object.assign(Object.assign(Object.assign({},Zp(e,{align:"ignore",baseline:"ignore",color:"ignore",orient:"ignore",size:"ignore",theta:"ignore"})),Jp(e,"x")),Jp(e,"y")),wp(e,"url"))};const rO={vgMark:"line",encodeEntry:e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zp(e,{align:"ignore",baseline:"ignore",color:"include",size:"ignore",orient:"ignore",theta:"ignore"})),Tp("x",e,{defaultPos:"mid"})),Tp("y",e,{defaultPos:"mid"})),zp("size",e,{vgChannel:"strokeWidth"})),ig(e))};const sO={vgMark:"trail",encodeEntry:e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zp(e,{align:"ignore",baseline:"ignore",color:"include",size:"include",orient:"ignore",theta:"ignore"})),Tp("x",e,{defaultPos:"mid"})),Tp("y",e,{defaultPos:"mid"})),zp("size",e)),ig(e))};function oO(e,n){const{config:t}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zp(e,{align:"ignore",baseline:"ignore",color:"include",size:"include",orient:"ignore",theta:"ignore"})),Tp("x",e,{defaultPos:"mid"})),Tp("y",e,{defaultPos:"mid"})),zp("size",e)),zp("angle",e)),aO(e,t,n))}function aO(e,n,t){if(t){return{shape:{value:t}}}return zp("shape",e)}const cO={vgMark:"symbol",encodeEntry:e=>oO(e)};const lO={vgMark:"symbol",encodeEntry:e=>oO(e,"circle")};const uO={vgMark:"symbol",encodeEntry:e=>oO(e,"square")};const fO={vgMark:"rect",encodeEntry:e=>Object.assign(Object.assign(Object.assign({},Zp(e,{align:"ignore",baseline:"ignore",color:"include",orient:"ignore",size:"ignore",theta:"ignore"})),Jp(e,"x")),Jp(e,"y"))};const dO={vgMark:"rule",encodeEntry:e=>{const{markDef:n}=e;const t=n.orient;if(!e.encoding.x&&!e.encoding.y&&!e.encoding.latitude&&!e.encoding.longitude){return{}}return Object.assign(Object.assign(Object.assign(Object.assign({},Zp(e,{align:"ignore",baseline:"ignore",color:"include",orient:"ignore",size:"ignore",theta:"ignore"})),Rp("x",e,{defaultPos:t==="horizontal"?"zeroOrMax":"mid",defaultPos2:"zeroOrMin",range:t!=="vertical"})),Rp("y",e,{defaultPos:t==="vertical"?"zeroOrMax":"mid",defaultPos2:"zeroOrMin",range:t!=="horizontal"})),zp("size",e,{vgChannel:"strokeWidth"}))}};const pO={vgMark:"text",encodeEntry:e=>{const{config:n,encoding:t}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zp(e,{align:"include",baseline:"include",color:"include",size:"ignore",orient:"ignore",theta:"include"})),Tp("x",e,{defaultPos:"mid"})),Tp("y",e,{defaultPos:"mid"})),wp(e)),zp("size",e,{vgChannel:"fontSize"})),zp("angle",e)),sg("align",gO(e.markDef,t,n))),sg("baseline",mO(e.markDef,t,n))),Tp("radius",e,{defaultPos:null})),Tp("theta",e,{defaultPos:null}))}};function gO(e,n,t){const i=ii("align",e,t);if(i===undefined){return"center"}return undefined}function mO(e,n,t){const i=ii("baseline",e,t);if(i===undefined){return"middle"}return undefined}const hO={vgMark:"rect",encodeEntry:e=>{const{config:n,markDef:t}=e;const i=t.orient;const r=i==="horizontal"?"width":"height";const s=i==="horizontal"?"height":"width";return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zp(e,{align:"ignore",baseline:"ignore",color:"include",orient:"ignore",size:"ignore",theta:"ignore"})),Tp("x",e,{defaultPos:"mid",vgChannel:"xc"})),Tp("y",e,{defaultPos:"mid",vgChannel:"yc"})),zp("size",e,{defaultValue:bO(e),vgChannel:r})),{[s]:Yt(ii("thickness",t,n))})}};function bO(e){var n;const{config:t,markDef:i}=e;const{orient:s}=i;const o=s==="horizontal"?"width":"height";const a=e.getScaleComponent(s==="horizontal"?"x":"y");const c=(n=ii("size",i,t,{vgChannel:o}))!==null&&n!==void 0?n:t.tick.bandSize;if(c!==undefined){return c}else{const e=a?a.get("range"):undefined;if(e&&Lt(e)&&(0,r.hj)(e.step)){return e.step*3/4}const n=Iu(t.view,o);return n*3/4}}const yO={arc:Zv,area:eO,bar:nO,circle:lO,geoshape:tO,image:iO,line:rO,point:cO,rect:fO,rule:dO,square:uO,text:pO,tick:hO,trail:sO};function vO(e){if($([Uo,Io,Vo],e.mark)){const n=kl(e.mark,e.encoding);if(n.length>0){return xO(e,n)}}else if(e.mark===Ro){const n=Bt.some((n=>ii(n,e.markDef,e.config)));if(e.stack&&!e.fieldDef("size")&&n){return wO(e)}}return kO(e)}const OO="faceted_path_";function xO(e,n){return[{name:e.getName("pathgroup"),type:"group",from:{facet:{name:OO+e.requestDataName(Wd.Main),data:e.requestDataName(Wd.Main),groupby:n}},encode:{update:{width:{field:{group:"width"}},height:{field:{group:"height"}}}},marks:kO(e,{fromPrefix:OO})}]}const jO="stack_group_";function wO(e){var n;const[t]=kO(e,{fromPrefix:jO});const i=e.scaleName(e.stack.fieldChannel);const r=(n={})=>e.vgField(e.stack.fieldChannel,n);const s=(e,n)=>{const t=[r({prefix:"min",suffix:"start",expr:n}),r({prefix:"max",suffix:"start",expr:n}),r({prefix:"min",suffix:"end",expr:n}),r({prefix:"max",suffix:"end",expr:n})];return`${e}(${t.map((e=>`scale('${i}',${e})`)).join(",")})`};let o;let a;if(e.stack.fieldChannel==="x"){o=Object.assign(Object.assign({},v(t.encode.update,["y","yc","y2","height",...Bt])),{x:{signal:s("min","datum")},x2:{signal:s("max","datum")},clip:{value:true}});a={x:{field:{group:"x"},mult:-1},height:{field:{group:"height"}}};t.encode.update=Object.assign(Object.assign({},O(t.encode.update,["y","yc","y2"])),{height:{field:{group:"height"}}})}else{o=Object.assign(Object.assign({},v(t.encode.update,["x","xc","x2","width"])),{y:{signal:s("min","datum")},y2:{signal:s("max","datum")},clip:{value:true}});a={y:{field:{group:"y"},mult:-1},width:{field:{group:"width"}}};t.encode.update=Object.assign(Object.assign({},O(t.encode.update,["x","xc","x2"])),{width:{field:{group:"width"}}})}for(const u of Bt){const n=ri(u,e.markDef,e.config);if(t.encode.update[u]){o[u]=t.encode.update[u];delete t.encode.update[u]}else if(n){o[u]=Yt(n)}if(n){t.encode.update[u]={value:0}}}const c=[];if(((n=e.stack.groupbyChannels)===null||n===void 0?void 0:n.length)>0){for(const n of e.stack.groupbyChannels){const t=e.fieldDef(n);const i=Sc(t);if(i){c.push(i)}if((t===null||t===void 0?void 0:t.bin)||(t===null||t===void 0?void 0:t.timeUnit)){c.push(Sc(t,{binSuffix:"end"}))}}}const l=["stroke","strokeWidth","strokeJoin","strokeCap","strokeDash","strokeDashOffset","strokeMiterLimit","strokeOpacity"];o=l.reduce(((n,i)=>{if(t.encode.update[i]){return Object.assign(Object.assign({},n),{[i]:t.encode.update[i]})}else{const t=ri(i,e.markDef,e.config);if(t!==undefined){return Object.assign(Object.assign({},n),{[i]:Yt(t)})}else{return n}}}),o);if(o.stroke){o.strokeForeground={value:true};o.strokeOffset={value:0}}return[{type:"group",from:{facet:{data:e.requestDataName(Wd.Main),name:jO+e.requestDataName(Wd.Main),groupby:c,aggregate:{fields:[r({suffix:"start"}),r({suffix:"start"}),r({suffix:"end"}),r({suffix:"end"})],ops:["min","max","min","max"]}}},encode:{update:o},marks:[{type:"group",encode:{update:a},marks:[t]}]}]}function $O(e){var n;const{encoding:t,stack:i,mark:s,markDef:o,config:a}=e;const c=t.order;if(!(0,r.kJ)(c)&&vc(c)&&w(c.value)||!c&&w(ii("order",o,a))){return undefined}else if(((0,r.kJ)(c)||fc(c))&&!i){return ai(c,{expr:"datum"})}else if(ea(s)){const i=o.orient==="horizontal"?"y":"x";const s=t[i];if(fc(s)){const t=s.sort;if((0,r.kJ)(t)){return{field:Sc(s,{prefix:i,suffix:"sort_index",expr:"datum"})}}else if(Xa(t)){return{field:Sc({aggregate:bl(e.encoding)?t.op:undefined,field:t.field},{expr:"datum"})}}else if(Ga(t)){const n=e.fieldDef(t.encoding);return{field:Sc(n,{expr:"datum"}),order:t.order}}else if(t===null){return undefined}else{return{field:Sc(s,{binSuffix:((n=e.stack)===null||n===void 0?void 0:n.impute)?"mid":undefined,expr:"datum"})}}}return undefined}return undefined}function kO(e,n={fromPrefix:""}){const{mark:t,markDef:i,encoding:r,config:s}=e;const o=Y(i.clip,SO(e),DO(e));const a=ti(i);const c=r.key;const l=$O(e);const u=_O(e);const f=ii("aria",i,s);const d=yO[t].postEncodingTransform?yO[t].postEncodingTransform(e):null;return[Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({name:e.getName("marks"),type:yO[t].vgMark},o?{clip:true}:{}),a?{style:a}:{}),c?{key:c.field}:{}),l?{sort:l}:{}),u?u:{}),f===false?{aria:f}:{}),{from:{data:n.fromPrefix+e.requestDataName(Wd.Main)},encode:{update:yO[t].encodeEntry(e)}}),d?{transform:d}:{})]}function SO(e){const n=e.getScaleComponent("x");const t=e.getScaleComponent("y");return(n===null||n===void 0?void 0:n.get("selectionExtent"))||(t===null||t===void 0?void 0:t.get("selectionExtent"))?true:undefined}function DO(e){const n=e.component.projection;return n&&!n.isFit?true:undefined}function _O(e){if(!e.component.selection)return null;const n=A(e.component.selection).length;let t=n;let i=e.parent;while(i&&t===0){t=A(i.component.selection).length;i=i.parent}return t?{interactive:n>0||!!e.encoding.tooltip}:null}class PO extends Xy{constructor(e,n,t,i={},r){var s;super(e,"unit",n,t,r,undefined,Eu(e)?e.view:undefined);this.specifiedScales={};this.specifiedAxes={};this.specifiedLegends={};this.specifiedProjection={};this.selection=[];this.children=[];const o=ia(e.mark)?Object.assign({},e.mark):{type:e.mark};const a=o.type;if(o.filled===undefined){o.filled=Yv(o,r,{graticule:e.data&&Rd(e.data)})}const c=this.encoding=Ol(e.encoding||{},a,o.filled,r);this.markDef=Xv(o,c,r);this.size=Gv({encoding:c,size:Eu(e)?Object.assign(Object.assign(Object.assign({},i),e.width?{width:e.width}:{}),e.height?{height:e.height}:{}):i});this.stack=xf(a,c);this.specifiedScales=this.initScales(a,c);this.specifiedAxes=this.initAxes(c);this.specifiedLegends=this.initLegends(c);this.specifiedProjection=e.projection;this.selection=((s=e.params)!==null&&s!==void 0?s:[]).filter((e=>$u(e)))}get hasProjection(){const{encoding:e}=this;const n=this.mark===Qo;const t=e&&Xe.some((n=>bc(e[n])));return n||t}scaleDomain(e){const n=this.specifiedScales[e];return n?n.domain:undefined}axis(e){return this.specifiedAxes[e]}legend(e){return this.specifiedLegends[e]}initScales(e,n){return ct.reduce(((e,t)=>{var i;const r=Wc(n[t]);if(r){e[t]=this.initScale((i=r.scale)!==null&&i!==void 0?i:{})}return e}),{})}initScale(e){const{domain:n,range:t}=e;const i=Et(e);if((0,r.kJ)(n)){i.domain=n.map(Vt)}if((0,r.kJ)(t)){i.range=t.map(Vt)}return i}initAxes(e){return Rn.reduce(((n,t)=>{const i=e[t];if(bc(i)||t===le&&bc(e.x2)||t===ue&&bc(e.y2)){const e=bc(i)?i.axis:undefined;n[t]=e?this.initAxis(Object.assign({},e)):e}return n}),{})}initAxis(e){const n=A(e);const t={};for(const i of n){const n=e[i];t[i]=tl(n)?Xt(n):Vt(n)}return t}initLegends(e){return rt.reduce(((n,t)=>{const i=Wc(e[t]);if(i&&ot(t)){const e=i.legend;n[t]=e?Et(e):e}return n}),{})}parseData(){this.component.data=Cv(this)}parseLayoutSize(){$v(this)}parseSelections(){this.component.selection=Hg(this,this.selection)}parseMarkGroup(){this.component.mark=vO(this)}parseAxesAndHeaders(){this.component.axes=qv(this)}assembleSelectionTopLevelSignals(e){return Xd(this,e)}assembleSignals(){return[...Zg(this),...Jd(this,[])]}assembleSelectionData(e){return Vd(this,e)}assembleLayout(){return null}assembleLayoutSignals(){return Mm(this)}assembleMarks(){var e;let n=(e=this.component.mark)!==null&&e!==void 0?e:[];if(!this.parent||!Jy(this.parent)){n=Kd(this,n)}return n.map(this.correctDataNames)}assembleGroupStyle(){const{style:e}=this.view||{};if(e!==undefined){return e}if(this.encoding.x||this.encoding.y){return"cell"}else{return undefined}}getMapping(){return this.encoding}get mark(){return this.markDef.type}channelHasField(e){return gl(this.encoding,e)}fieldDef(e){const n=this.encoding[e];return Rc(n)}typedFieldDef(e){const n=this.fieldDef(e);if(yc(n)){return n}return null}}class FO extends Gy{constructor(e,n,t,i,r){super(e,"layer",n,t,r,e.resolve,e.view);const s=Object.assign(Object.assign(Object.assign({},i),e.width?{width:e.width}:{}),e.height?{height:e.height}:{});this.children=e.layer.map(((e,n)=>{if(lf(e)){return new FO(e,this,this.getName(`layer_${n}`),s,r)}else if(fl(e)){return new PO(e,this,this.getName(`layer_${n}`),s,r)}throw new Error(fi(e))}))}parseData(){this.component.data=Cv(this);for(const e of this.children){e.parseData()}}parseLayoutSize(){Ov(this)}parseSelections(){this.component.selection={};for(const e of this.children){e.parseSelections();for(const n of A(e.component.selection)){this.component.selection[n]=e.component.selection[n]}}}parseMarkGroup(){for(const e of this.children){e.parseMarkGroup()}}parseAxesAndHeaders(){Rv(this)}assembleSelectionTopLevelSignals(e){return this.children.reduce(((e,n)=>n.assembleSelectionTopLevelSignals(e)),e)}assembleSignals(){return this.children.reduce(((e,n)=>e.concat(n.assembleSignals())),Zg(this))}assembleLayoutSignals(){return this.children.reduce(((e,n)=>e.concat(n.assembleLayoutSignals())),Mm(this))}assembleSelectionData(e){return this.children.reduce(((e,n)=>n.assembleSelectionData(e)),e)}assembleGroupStyle(){const e=new Set;for(const t of this.children){for(const n of(0,r.IX)(t.assembleGroupStyle())){e.add(n)}}const n=Array.from(e);return n.length>1?n:n.length===1?n[0]:undefined}assembleTitle(){let e=super.assembleTitle();if(e){return e}for(const n of this.children){e=n.assembleTitle();if(e){return e}}return undefined}assembleLayout(){return null}assembleMarks(){return Yd(this,this.children.flatMap((e=>e.assembleMarks())))}assembleLegends(){return this.children.reduce(((e,n)=>e.concat(n.assembleLegends())),$h(this))}}function zO(e,n,t,i,r){if(Qa(e)){return new Dv(e,n,t,r)}else if(lf(e)){return new FO(e,n,t,i,r)}else if(fl(e)){return new PO(e,n,t,i,r)}else if(Du(e)){return new Ev(e,n,t,r)}throw new Error(fi(e))}var CO=undefined&&undefined.__rest||function(e,n){var t={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&n.indexOf(i)<0)t[i]=e[i];if(e!=null&&typeof Object.getOwnPropertySymbols==="function")for(var r=0,i=Object.getOwnPropertySymbols(e);r{if((e.name==="width"||e.name==="height")&&e.value!==undefined){n[e.name]=+e.value;return false}return true}));const{params:f}=n,d=CO(n,["params"]);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({$schema:"https://vega.github.io/schema/vega/v5.json"},e.description?{description:e.description}:{}),d),a?{title:a}:{}),c?{style:c}:{}),l?{encode:{update:l}}:{}),{data:s}),o.length>0?{projections:o}:{}),e.assembleGroup([...u,...e.assembleSelectionTopLevelSignals([]),...Su(f)])),r?{config:r}:{}),i?{usermeta:i}:{})}const AO=i.i8},72886:e=>{var n=function(){"use strict";function e(e,n){return n!=null&&e instanceof n}var n;try{n=Map}catch(u){n=function(){}}var t;try{t=Set}catch(u){t=function(){}}var i;try{i=Promise}catch(u){i=function(){}}function r(s,o,a,c,u){if(typeof o==="object"){a=o.depth;c=o.prototype;u=o.includeNonEnumerable;o=o.circular}var f=[];var d=[];var p=typeof Buffer!="undefined";if(typeof o=="undefined")o=true;if(typeof a=="undefined")a=Infinity;function g(s,a){if(s===null)return null;if(a===0)return s;var m;var h;if(typeof s!="object"){return s}if(e(s,n)){m=new n}else if(e(s,t)){m=new t}else if(e(s,i)){m=new i((function(e,n){s.then((function(n){e(g(n,a-1))}),(function(e){n(g(e,a-1))}))}))}else if(r.__isArray(s)){m=[]}else if(r.__isRegExp(s)){m=new RegExp(s.source,l(s));if(s.lastIndex)m.lastIndex=s.lastIndex}else if(r.__isDate(s)){m=new Date(s.getTime())}else if(p&&Buffer.isBuffer(s)){if(Buffer.allocUnsafe){m=Buffer.allocUnsafe(s.length)}else{m=new Buffer(s.length)}s.copy(m);return m}else if(e(s,Error)){m=Object.create(s)}else{if(typeof c=="undefined"){h=Object.getPrototypeOf(s);m=Object.create(h)}else{m=Object.create(c);h=c}}if(o){var b=f.indexOf(s);if(b!=-1){return d[b]}f.push(s);d.push(m)}if(e(s,n)){s.forEach((function(e,n){var t=g(n,a-1);var i=g(e,a-1);m.set(t,i)}))}if(e(s,t)){s.forEach((function(e){var n=g(e,a-1);m.add(n)}))}for(var y in s){var v;if(h){v=Object.getOwnPropertyDescriptor(h,y)}if(v&&v.set==null){continue}m[y]=g(s[y],a-1)}if(Object.getOwnPropertySymbols){var O=Object.getOwnPropertySymbols(s);for(var y=0;y{Object.defineProperty(e,"__esModule",{value:true});e.AbstractOutputJax=void 0;var i=r(36059);var n=r(64905);var o=function(){function t(t){if(t===void 0){t={}}this.adaptor=null;var e=this.constructor;this.options=(0,i.userOptions)((0,i.defaultOptions)({},e.OPTIONS),t);this.postFilters=new n.FunctionList}Object.defineProperty(t.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:false,configurable:true});t.prototype.setAdaptor=function(t){this.adaptor=t};t.prototype.initialize=function(){};t.prototype.reset=function(){var t=[];for(var e=0;e{Object.defineProperty(e,"__esModule",{value:true});e.AbstractWrapper=void 0;var r=function(){function t(t,e){this.factory=t;this.node=e}Object.defineProperty(t.prototype,"kind",{get:function(){return this.node.kind},enumerable:false,configurable:true});t.prototype.wrap=function(t){return this.factory.wrap(t)};return t}();e.AbstractWrapper=r},56586:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CHTML=void 0;var h=r(90247);var c=r(24219);var u=r(65008);var f=r(92931);var p=r(59230);var d=s(r(77130));var y=r(33353);var v=function(t){i(e,t);function e(e){if(e===void 0){e=null}var r=t.call(this,e,u.CHTMLWrapperFactory,p.TeXFont)||this;r.chtmlStyles=null;r.font.adaptiveCSS(r.options.adaptiveCSS);r.wrapperUsage=new f.Usage;return r}e.prototype.escaped=function(t,e){this.setDocument(e);return this.html("span",{},[this.text(t.math)])};e.prototype.styleSheet=function(r){if(this.chtmlStyles){if(this.options.adaptiveCSS){var i=new c.CssStyles;this.addWrapperStyles(i);this.updateFontStyles(i);this.adaptor.insertRules(this.chtmlStyles,i.getStyleRules())}return this.chtmlStyles}var n=this.chtmlStyles=t.prototype.styleSheet.call(this,r);this.adaptor.setAttribute(n,"id",e.STYLESHEETID);this.wrapperUsage.update();return n};e.prototype.updateFontStyles=function(t){t.addStyles(this.font.updateStyles({}))};e.prototype.addWrapperStyles=function(e){var r,i;if(!this.options.adaptiveCSS){t.prototype.addWrapperStyles.call(this,e);return}try{for(var n=l(this.wrapperUsage.update()),o=n.next();!o.done;o=n.next()){var a=o.value;var s=this.factory.getNodeClass(a);s&&this.addClassStyles(s,e)}}catch(h){r={error:h}}finally{try{if(o&&!o.done&&(i=n.return))i.call(n)}finally{if(r)throw r.error}}};e.prototype.addClassStyles=function(e,r){var i;var n=e;if(n.autoStyle&&n.kind!=="unknown"){r.addStyles((i={},i["mjx-"+n.kind]={display:"inline-block","text-align":"left"},i))}this.wrapperUsage.add(n.kind);t.prototype.addClassStyles.call(this,e,r)};e.prototype.processMath=function(t,e){this.factory.wrap(t).toCHTML(e)};e.prototype.clearCache=function(){this.cssStyles.clear();this.font.clearCache();this.wrapperUsage.clear();this.chtmlStyles=null};e.prototype.reset=function(){this.clearCache()};e.prototype.unknownText=function(t,e,r){if(r===void 0){r=null}var i={};var n=100/this.math.metrics.scale;if(n!==100){i["font-size"]=this.fixed(n,1)+"%";i.padding=d.em(75/n)+" 0 "+d.em(20/n)+" 0"}if(e!=="-explicitFont"){var o=(0,y.unicodeChars)(t);if(o.length!==1||o[0]<119808||o[0]>120831){this.cssFontStyles(this.font.getCssFont(e),i)}}if(r!==null){var a=this.math.metrics;i.width=Math.round(r*a.em*a.scale)+"px"}return this.html("mjx-utext",{variant:e,style:i},[this.text(t)])};e.prototype.measureTextNode=function(t){var e=this.adaptor;var r=e.clone(t);e.setStyle(r,"font-family",e.getStyle(r,"font-family").replace(/MJXZERO, /g,""));var i={position:"absolute","white-space":"nowrap"};var n=this.html("mjx-measure-text",{style:i},[r]);e.append(e.parent(this.math.start.node),this.container);e.append(this.container,n);var o=e.nodeSize(r,this.math.metrics.em)[0]/this.math.metrics.scale;e.remove(this.container);e.remove(n);return{w:o,h:.75,d:.2}};e.NAME="CHTML";e.OPTIONS=n(n({},h.CommonOutputJax.OPTIONS),{adaptiveCSS:true,matchFontHeight:true});e.commonStyles={'mjx-container[jax="CHTML"]':{"line-height":0},'mjx-container [space="1"]':{"margin-left":".111em"},'mjx-container [space="2"]':{"margin-left":".167em"},'mjx-container [space="3"]':{"margin-left":".222em"},'mjx-container [space="4"]':{"margin-left":".278em"},'mjx-container [space="5"]':{"margin-left":".333em"},'mjx-container [rspace="1"]':{"margin-right":".111em"},'mjx-container [rspace="2"]':{"margin-right":".167em"},'mjx-container [rspace="3"]':{"margin-right":".222em"},'mjx-container [rspace="4"]':{"margin-right":".278em"},'mjx-container [rspace="5"]':{"margin-right":".333em"},'mjx-container [size="s"]':{"font-size":"70.7%"},'mjx-container [size="ss"]':{"font-size":"50%"},'mjx-container [size="Tn"]':{"font-size":"60%"},'mjx-container [size="sm"]':{"font-size":"85%"},'mjx-container [size="lg"]':{"font-size":"120%"},'mjx-container [size="Lg"]':{"font-size":"144%"},'mjx-container [size="LG"]':{"font-size":"173%"},'mjx-container [size="hg"]':{"font-size":"207%"},'mjx-container [size="HG"]':{"font-size":"249%"},'mjx-container [width="full"]':{width:"100%"},"mjx-box":{display:"inline-block"},"mjx-block":{display:"block"},"mjx-itable":{display:"inline-table"},"mjx-row":{display:"table-row"},"mjx-row > *":{display:"table-cell"},"mjx-mtext":{display:"inline-block"},"mjx-mstyle":{display:"inline-block"},"mjx-merror":{display:"inline-block",color:"red","background-color":"yellow"},"mjx-mphantom":{visibility:"hidden"},"_::-webkit-full-page-media, _:future, :root mjx-container":{"will-change":"opacity"}};e.STYLESHEETID="MJX-CHTML-styles";return e}(h.CommonOutputJax);e.CHTML=v},55043:function(t,e,r){var i=this&&this.__createBinding||(Object.create?function(t,e,r,i){if(i===undefined)i=r;var n=Object.getOwnPropertyDescriptor(e,r);if(!n||("get"in n?!e.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return e[r]}}}Object.defineProperty(t,i,n)}:function(t,e,r,i){if(i===undefined)i=r;t[i]=e[r]});var n=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:true,value:e})}:function(t,e){t["default"]=e});var o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)if(r!=="default"&&Object.prototype.hasOwnProperty.call(t,r))i(e,t,r);n(e,t);return e};var a=this&&this.__exportStar||function(t,e){for(var r in t)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r))i(e,t,r)};var s=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.Arrow=e.DiagonalArrow=e.DiagonalStrike=e.Border2=e.Border=e.RenderElement=void 0;var l=o(r(77988));a(r(77988),e);var h=function(t,e){if(e===void 0){e=""}return function(r,i){var n=r.adjustBorder(r.html("mjx-"+t));if(e){var o=r.getOffset(e);if(r.thickness!==l.THICKNESS||o){var a="translate".concat(e,"(").concat(r.em(r.thickness/2-o),")");r.adaptor.setStyle(n,"transform",a)}}r.adaptor.append(r.chtml,n)}};e.RenderElement=h;var c=function(t){return l.CommonBorder((function(e,r){e.adaptor.setStyle(r,"border-"+t,e.em(e.thickness)+" solid")}))(t)};e.Border=c;var u=function(t,e,r){return l.CommonBorder2((function(t,i){var n=t.em(t.thickness)+" solid";t.adaptor.setStyle(i,"border-"+e,n);t.adaptor.setStyle(i,"border-"+r,n)}))(t,e,r)};e.Border2=u;var f=function(t,e){return l.CommonDiagonalStrike((function(t){return function(r,i){var n=r.getBBox(),o=n.w,a=n.h,l=n.d;var h=s(r.getArgMod(o,a+l),2),c=h[0],u=h[1];var f=e*r.thickness/2;var p=r.adjustBorder(r.html(t,{style:{width:r.em(u),transform:"rotate("+r.fixed(-e*c)+"rad) translateY("+f+"em)"}}));r.adaptor.append(r.chtml,p)}}))(t)};e.DiagonalStrike=f;var p=function(t){return l.CommonDiagonalArrow((function(t,e){t.adaptor.append(t.chtml,e)}))(t)};e.DiagonalArrow=p;var d=function(t){return l.CommonArrow((function(t,e){t.adaptor.append(t.chtml,e)}))(t)};e.Arrow=d},81129:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__createBinding||(Object.create?function(t,e,r,i){if(i===undefined)i=r;var n=Object.getOwnPropertyDescriptor(e,r);if(!n||("get"in n?!e.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return e[r]}}}Object.defineProperty(t,i,n)}:function(t,e,r,i){if(i===undefined)i=r;t[i]=e[r]});var o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:true,value:e})}:function(t,e){t["default"]=e});var a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)if(r!=="default"&&Object.prototype.hasOwnProperty.call(t,r))n(e,t,r);o(e,t);return e};var s=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var l=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var h;Object.defineProperty(e,"__esModule",{value:true});e.CHTMLWrapper=e.SPACE=e.FONTSIZE=void 0;var c=a(r(77130));var u=r(56757);var f=r(83292);e.FONTSIZE={"70.7%":"s","70%":"s","50%":"ss","60%":"Tn","85%":"sm","120%":"lg","144%":"Lg","173%":"LG","207%":"hg","249%":"HG"};e.SPACE=(h={},h[c.em(2/18)]="1",h[c.em(3/18)]="2",h[c.em(4/18)]="3",h[c.em(5/18)]="4",h[c.em(6/18)]="5",h);var p=function(t){i(r,t);function r(){var e=t!==null&&t.apply(this,arguments)||this;e.chtml=null;return e}r.prototype.toCHTML=function(t){var e,r;var i=this.standardCHTMLnode(t);try{for(var n=s(this.childNodes),o=n.next();!o.done;o=n.next()){var a=o.value;a.toCHTML(i)}}catch(l){e={error:l}}finally{try{if(o&&!o.done&&(r=n.return))r.call(n)}finally{if(e)throw e.error}}};r.prototype.standardCHTMLnode=function(t){this.markUsed();var e=this.createCHTMLnode(t);this.handleStyles();this.handleVariant();this.handleScale();this.handleColor();this.handleSpace();this.handleAttributes();this.handlePWidth();return e};r.prototype.markUsed=function(){this.jax.wrapperUsage.add(this.kind)};r.prototype.createCHTMLnode=function(t){var e=this.node.attributes.get("href");if(e){t=this.adaptor.append(t,this.html("a",{href:e}))}this.chtml=this.adaptor.append(t,this.html("mjx-"+this.node.kind));return this.chtml};r.prototype.handleStyles=function(){if(!this.styles)return;var t=this.styles.cssText;if(t){this.adaptor.setAttribute(this.chtml,"style",t);var e=this.styles.get("font-family");if(e){this.adaptor.setStyle(this.chtml,"font-family","MJXZERO, "+e)}}};r.prototype.handleVariant=function(){if(this.node.isToken&&this.variant!=="-explicitFont"){this.adaptor.setAttribute(this.chtml,"class",(this.font.getVariant(this.variant)||this.font.getVariant("normal")).classes)}};r.prototype.handleScale=function(){this.setScale(this.chtml,this.bbox.rscale)};r.prototype.setScale=function(t,r){var i=Math.abs(r-1)<.001?1:r;if(t&&i!==1){var n=this.percent(i);if(e.FONTSIZE[n]){this.adaptor.setAttribute(t,"size",e.FONTSIZE[n])}else{this.adaptor.setStyle(t,"fontSize",n)}}return t};r.prototype.handleSpace=function(){var t,r;try{for(var i=s([[this.bbox.L,"space","marginLeft"],[this.bbox.R,"rspace","marginRight"]]),n=i.next();!n.done;n=i.next()){var o=n.value;var a=l(o,3),h=a[0],c=a[1],u=a[2];if(h){var f=this.em(h);if(e.SPACE[f]){this.adaptor.setAttribute(this.chtml,c,e.SPACE[f])}else{this.adaptor.setStyle(this.chtml,u,f)}}}}catch(p){t={error:p}}finally{try{if(n&&!n.done&&(r=i.return))r.call(i)}finally{if(t)throw t.error}}};r.prototype.handleColor=function(){var t=this.node.attributes;var e=t.getExplicit("mathcolor");var r=t.getExplicit("color");var i=t.getExplicit("mathbackground");var n=t.getExplicit("background");if(e||r){this.adaptor.setStyle(this.chtml,"color",e||r)}if(i||n){this.adaptor.setStyle(this.chtml,"backgroundColor",i||n)}};r.prototype.handleAttributes=function(){var t,e,i,n;var o=this.node.attributes;var a=o.getAllDefaults();var l=r.skipAttributes;try{for(var h=s(o.getExplicitNames()),c=h.next();!c.done;c=h.next()){var u=c.value;if(l[u]===false||!(u in a)&&!l[u]&&!this.adaptor.hasAttribute(this.chtml,u)){this.adaptor.setAttribute(this.chtml,u,o.getExplicit(u))}}}catch(v){t={error:v}}finally{try{if(c&&!c.done&&(e=h.return))e.call(h)}finally{if(t)throw t.error}}if(o.get("class")){var f=o.get("class").trim().split(/ +/);try{for(var p=s(f),d=p.next();!d.done;d=p.next()){var y=d.value;this.adaptor.addClass(this.chtml,y)}}catch(m){i={error:m}}finally{try{if(d&&!d.done&&(n=p.return))n.call(p)}finally{if(i)throw i.error}}}};r.prototype.handlePWidth=function(){if(this.bbox.pwidth){if(this.bbox.pwidth===f.BBox.fullWidth){this.adaptor.setAttribute(this.chtml,"width","full")}else{this.adaptor.setStyle(this.chtml,"width",this.bbox.pwidth)}}};r.prototype.setIndent=function(t,e,r){var i=this.adaptor;if(e==="center"||e==="left"){var n=this.getBBox().L;i.setStyle(t,"margin-left",this.em(r+n))}if(e==="center"||e==="right"){var o=this.getBBox().R;i.setStyle(t,"margin-right",this.em(-r+o))}};r.prototype.drawBBox=function(){var t=this.getBBox(),e=t.w,r=t.h,i=t.d,n=t.R;var o=this.html("mjx-box",{style:{opacity:.25,"margin-left":this.em(-e-n)}},[this.html("mjx-box",{style:{height:this.em(r),width:this.em(e),"background-color":"red"}}),this.html("mjx-box",{style:{height:this.em(i),width:this.em(e),"margin-left":this.em(-e),"vertical-align":this.em(-i),"background-color":"green"}})]);var a=this.chtml||this.parent.chtml;var s=this.adaptor.getAttribute(a,"size");if(s){this.adaptor.setAttribute(o,"size",s)}var l=this.adaptor.getStyle(a,"fontSize");if(l){this.adaptor.setStyle(o,"fontSize",l)}this.adaptor.append(this.adaptor.parent(a),o);this.adaptor.setStyle(a,"backgroundColor","#FFEE00")};r.prototype.html=function(t,e,r){if(e===void 0){e={}}if(r===void 0){r=[]}return this.jax.html(t,e,r)};r.prototype.text=function(t){return this.jax.text(t)};r.prototype.char=function(t){return this.font.charSelector(t).substr(1)};r.kind="unknown";r.autoStyle=true;return r}(u.CommonWrapper);e.CHTMLWrapper=p},65008:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLWrapperFactory=void 0;var n=r(49557);var o=r(2166);var a=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.defaultNodes=o.CHTMLWrappers;return e}(n.CommonWrapperFactory);e.CHTMLWrapperFactory=a},2166:(t,e,r)=>{var i;Object.defineProperty(e,"__esModule",{value:true});e.CHTMLWrappers=void 0;var n=r(81129);var o=r(5229);var a=r(91307);var s=r(53241);var l=r(61422);var h=r(16851);var c=r(90659);var u=r(48929);var f=r(74926);var p=r(49469);var d=r(86255);var y=r(7233);var v=r(72929);var m=r(10128);var b=r(32829);var g=r(37717);var x=r(94987);var w=r(7331);var _=r(48582);var M=r(93594);var j=r(82132);var C=r(64677);var S=r(47354);var O=r(8044);var T=r(51534);var B=r(12853);e.CHTMLWrappers=(i={},i[o.CHTMLmath.kind]=o.CHTMLmath,i[d.CHTMLmrow.kind]=d.CHTMLmrow,i[d.CHTMLinferredMrow.kind]=d.CHTMLinferredMrow,i[a.CHTMLmi.kind]=a.CHTMLmi,i[s.CHTMLmo.kind]=s.CHTMLmo,i[l.CHTMLmn.kind]=l.CHTMLmn,i[h.CHTMLms.kind]=h.CHTMLms,i[c.CHTMLmtext.kind]=c.CHTMLmtext,i[u.CHTMLmspace.kind]=u.CHTMLmspace,i[f.CHTMLmpadded.kind]=f.CHTMLmpadded,i[p.CHTMLmenclose.kind]=p.CHTMLmenclose,i[v.CHTMLmfrac.kind]=v.CHTMLmfrac,i[m.CHTMLmsqrt.kind]=m.CHTMLmsqrt,i[b.CHTMLmroot.kind]=b.CHTMLmroot,i[g.CHTMLmsub.kind]=g.CHTMLmsub,i[g.CHTMLmsup.kind]=g.CHTMLmsup,i[g.CHTMLmsubsup.kind]=g.CHTMLmsubsup,i[x.CHTMLmunder.kind]=x.CHTMLmunder,i[x.CHTMLmover.kind]=x.CHTMLmover,i[x.CHTMLmunderover.kind]=x.CHTMLmunderover,i[w.CHTMLmmultiscripts.kind]=w.CHTMLmmultiscripts,i[y.CHTMLmfenced.kind]=y.CHTMLmfenced,i[_.CHTMLmtable.kind]=_.CHTMLmtable,i[M.CHTMLmtr.kind]=M.CHTMLmtr,i[M.CHTMLmlabeledtr.kind]=M.CHTMLmlabeledtr,i[j.CHTMLmtd.kind]=j.CHTMLmtd,i[C.CHTMLmaction.kind]=C.CHTMLmaction,i[S.CHTMLmglyph.kind]=S.CHTMLmglyph,i[O.CHTMLsemantics.kind]=O.CHTMLsemantics,i[O.CHTMLannotation.kind]=O.CHTMLannotation,i[O.CHTMLannotationXML.kind]=O.CHTMLannotationXML,i[O.CHTMLxml.kind]=O.CHTMLxml,i[T.CHTMLTeXAtom.kind]=T.CHTMLTeXAtom,i[B.CHTMLTextNode.kind]=B.CHTMLTextNode,i[n.CHTMLWrapper.kind]=n.CHTMLWrapper,i)},51534:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLTeXAtom=void 0;var n=r(81129);var o=r(28324);var a=r(66846);var s=r(18426);var l=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(e){t.prototype.toCHTML.call(this,e);this.adaptor.setAttribute(this.chtml,"texclass",s.TEXCLASSNAMES[this.node.texClass]);if(this.node.texClass===s.TEXCLASS.VCENTER){var r=this.childNodes[0].getBBox();var i=r.h,n=r.d;var o=this.font.params.axis_height;var a=(i+n)/2+o-i;this.adaptor.setStyle(this.chtml,"verticalAlign",this.em(a))}};e.kind=a.TeXAtom.prototype.kind;return e}((0,o.CommonTeXAtomMixin)(n.CHTMLWrapper));e.CHTMLTeXAtom=l},12853:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLTextNode=void 0;var o=r(18426);var a=r(81129);var s=r(2169);var l=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e,r;this.markUsed();var i=this.adaptor;var o=this.parent.variant;var a=this.node.getText();if(a.length===0)return;if(o==="-explicitFont"){i.append(t,this.jax.unknownText(a,o,this.getBBox().w))}else{var s=this.remappedText(a,o);try{for(var l=n(s),h=l.next();!h.done;h=l.next()){var c=h.value;var u=this.getVariantChar(o,c)[3];var f=u.f?" TEX-"+u.f:"";var p=u.unknown?this.jax.unknownText(String.fromCodePoint(c),o):this.html("mjx-c",{class:this.char(c)+f});i.append(t,p);!u.unknown&&this.font.charUsage.add([o,c])}}catch(d){e={error:d}}finally{try{if(h&&!h.done&&(r=l.return))r.call(l)}finally{if(e)throw e.error}}}};e.kind=o.TextNode.prototype.kind;e.autoStyle=false;e.styles={"mjx-c":{display:"inline-block"},"mjx-utext":{display:"inline-block",padding:".75em 0 .2em 0"}};return e}((0,s.CommonTextNodeMixin)(a.CHTMLWrapper));e.CHTMLTextNode=l},64677:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmaction=void 0;var n=r(81129);var o=r(86561);var a=r(86561);var s=r(79024);var l=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e=this.standardCHTMLnode(t);var r=this.selected;r.toCHTML(e);this.action(this,this.data)};e.prototype.setEventHandler=function(t,e){this.chtml.addEventListener(t,e)};e.kind=s.MmlMaction.prototype.kind;e.styles={"mjx-maction":{position:"relative"},"mjx-maction > mjx-tool":{display:"none",position:"absolute",bottom:0,right:0,width:0,height:0,"z-index":500},"mjx-tool > mjx-tip":{display:"inline-block",padding:".2em",border:"1px solid #888","font-size":"70%","background-color":"#F8F8F8",color:"black","box-shadow":"2px 2px 5px #AAAAAA"},"mjx-maction[toggle]":{cursor:"pointer"},"mjx-status":{display:"block",position:"fixed",left:"1em",bottom:"1em","min-width":"25%",padding:".2em .4em",border:"1px solid #888","font-size":"90%","background-color":"#F8F8F8",color:"black"}};e.actions=new Map([["toggle",[function(t,e){t.adaptor.setAttribute(t.chtml,"toggle",t.node.attributes.get("selection"));var r=t.factory.jax.math;var i=t.factory.jax.document;var n=t.node;t.setEventHandler("click",(function(t){if(!r.end.node){r.start.node=r.end.node=r.typesetRoot;r.start.n=r.end.n=0}n.nextToggleSelection();r.rerender(i);t.stopPropagation()}))},{}]],["tooltip",[function(t,e){var r=t.childNodes[1];if(!r)return;if(r.node.isKind("mtext")){var i=r.node.getText();t.adaptor.setAttribute(t.chtml,"title",i)}else{var n=t.adaptor;var o=n.append(t.chtml,t.html("mjx-tool",{style:{bottom:t.em(-t.dy),right:t.em(-t.dx)}},[t.html("mjx-tip")]));r.toCHTML(n.firstChild(o));t.setEventHandler("mouseover",(function(r){e.stopTimers(t,e);var i=setTimeout((function(){return n.setStyle(o,"display","block")}),e.postDelay);e.hoverTimer.set(t,i);r.stopPropagation()}));t.setEventHandler("mouseout",(function(r){e.stopTimers(t,e);var i=setTimeout((function(){return n.setStyle(o,"display","")}),e.clearDelay);e.clearTimer.set(t,i);r.stopPropagation()}))}},a.TooltipData]],["statusline",[function(t,e){var r=t.childNodes[1];if(!r)return;if(r.node.isKind("mtext")){var i=t.adaptor;var n=r.node.getText();i.setAttribute(t.chtml,"statusline",n);t.setEventHandler("mouseover",(function(r){if(e.status===null){var o=i.body(i.document);e.status=i.append(o,t.html("mjx-status",{},[t.text(n)]))}r.stopPropagation()}));t.setEventHandler("mouseout",(function(t){if(e.status){i.remove(e.status);e.status=null}t.stopPropagation()}))}},{status:null}]]]);return e}((0,o.CommonMactionMixin)(n.CHTMLWrapper));e.CHTMLmaction=l},5229:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmath=void 0;var o=r(81129);var a=r(68467);var s=r(27225);var l=r(83292);var h=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(e){t.prototype.toCHTML.call(this,e);var r=this.chtml;var i=this.adaptor;var n=this.node.attributes.get("display")==="block";if(n){i.setAttribute(r,"display","true");i.setAttribute(e,"display","true");this.handleDisplay(e)}else{this.handleInline(e)}i.addClass(r,"MJX-TEX")};e.prototype.handleDisplay=function(t){var e=this.adaptor;var r=n(this.getAlignShift(),2),i=r[0],o=r[1];if(i!=="center"){e.setAttribute(t,"justify",i)}if(this.bbox.pwidth===l.BBox.fullWidth){e.setAttribute(t,"width","full");if(this.jax.table){var a=this.jax.table.getOuterBBox(),s=a.L,h=a.w,c=a.R;if(i==="right"){c=Math.max(c||-o,-o)}else if(i==="left"){s=Math.max(s||o,o)}else if(i==="center"){h+=2*Math.abs(o)}var u=this.em(Math.max(0,s+h+c));e.setStyle(t,"min-width",u);e.setStyle(this.jax.table.chtml,"min-width",u)}}else{this.setIndent(this.chtml,i,o)}};e.prototype.handleInline=function(t){var e=this.adaptor;var r=e.getStyle(this.chtml,"margin-right");if(r){e.setStyle(this.chtml,"margin-right","");e.setStyle(t,"margin-right",r);e.setStyle(t,"width","0")}};e.prototype.setChildPWidths=function(e,r,i){if(r===void 0){r=null}if(i===void 0){i=true}return this.parent?t.prototype.setChildPWidths.call(this,e,r,i):false};e.kind=s.MmlMath.prototype.kind;e.styles={"mjx-math":{"line-height":0,"text-align":"left","text-indent":0,"font-style":"normal","font-weight":"normal","font-size":"100%","font-size-adjust":"none","letter-spacing":"normal","border-collapse":"collapse","word-wrap":"normal","word-spacing":"normal","white-space":"nowrap",direction:"ltr",padding:"1px 0"},'mjx-container[jax="CHTML"][display="true"]':{display:"block","text-align":"center",margin:"1em 0"},'mjx-container[jax="CHTML"][display="true"][width="full"]':{display:"flex"},'mjx-container[jax="CHTML"][display="true"] mjx-math':{padding:0},'mjx-container[jax="CHTML"][justify="left"]':{"text-align":"left"},'mjx-container[jax="CHTML"][justify="right"]':{"text-align":"right"}};return e}((0,a.CommonMathMixin)(o.CHTMLWrapper));e.CHTMLmath=h},49469:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__createBinding||(Object.create?function(t,e,r,i){if(i===undefined)i=r;var n=Object.getOwnPropertyDescriptor(e,r);if(!n||("get"in n?!e.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return e[r]}}}Object.defineProperty(t,i,n)}:function(t,e,r,i){if(i===undefined)i=r;t[i]=e[r]});var o=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:true,value:e})}:function(t,e){t["default"]=e});var a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)if(r!=="default"&&Object.prototype.hasOwnProperty.call(t,r))n(e,t,r);o(e,t);return e};var s=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var l=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmenclose=void 0;var h=r(81129);var c=r(32306);var u=a(r(55043));var f=r(22599);var p=r(77130);function d(t,e){return Math.atan2(t,e).toFixed(3).replace(/\.?0+$/,"")}var y=d(u.ARROWDX,u.ARROWY);var v=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e,r,i,n;var o=this.adaptor;var a=this.standardCHTMLnode(t);var l=o.append(a,this.html("mjx-box"));if(this.renderChild){this.renderChild(this,l)}else{this.childNodes[0].toCHTML(l)}try{for(var h=s(Object.keys(this.notations)),c=h.next();!c.done;c=h.next()){var f=c.value;var p=this.notations[f];!p.renderChild&&p.renderer(this,l)}}catch(g){e={error:g}}finally{try{if(c&&!c.done&&(r=h.return))r.call(h)}finally{if(e)throw e.error}}var d=this.getPadding();try{for(var y=s(u.sideNames),v=y.next();!v.done;v=y.next()){var m=v.value;var b=u.sideIndex[m];d[b]>0&&o.setStyle(l,"padding-"+m,this.em(d[b]))}}catch(x){i={error:x}}finally{try{if(v&&!v.done&&(n=y.return))n.call(y)}finally{if(i)throw i.error}}};e.prototype.arrow=function(t,e,r,i,n){if(i===void 0){i=""}if(n===void 0){n=0}var o=this.getBBox().w;var a={width:this.em(t)};if(o!==t){a.left=this.em((o-t)/2)}if(e){a.transform="rotate("+this.fixed(e)+"rad)"}var s=this.html("mjx-arrow",{style:a},[this.html("mjx-aline"),this.html("mjx-rthead"),this.html("mjx-rbhead")]);if(r){this.adaptor.append(s,this.html("mjx-lthead"));this.adaptor.append(s,this.html("mjx-lbhead"));this.adaptor.setAttribute(s,"double","true")}this.adjustArrow(s,r);this.moveArrow(s,i,n);return s};e.prototype.adjustArrow=function(t,e){var r=this;var i=this.thickness;var n=this.arrowhead;if(n.x===u.ARROWX&&n.y===u.ARROWY&&n.dx===u.ARROWDX&&i===u.THICKNESS)return;var o=l([i*n.x,i*n.y].map((function(t){return r.em(t)})),2),a=o[0],s=o[1];var h=d(n.dx,n.y);var c=l(this.adaptor.childNodes(t),5),f=c[0],p=c[1],y=c[2],v=c[3],m=c[4];this.adjustHead(p,[s,"0","1px",a],h);this.adjustHead(y,["1px","0",s,a],"-"+h);this.adjustHead(v,[s,a,"1px","0"],"-"+h);this.adjustHead(m,["1px",a,s,"0"],h);this.adjustLine(f,i,n.x,e)};e.prototype.adjustHead=function(t,e,r){if(t){this.adaptor.setStyle(t,"border-width",e.join(" "));this.adaptor.setStyle(t,"transform","skewX("+r+"rad)")}};e.prototype.adjustLine=function(t,e,r,i){this.adaptor.setStyle(t,"borderTop",this.em(e)+" solid");this.adaptor.setStyle(t,"top",this.em(-e/2));this.adaptor.setStyle(t,"right",this.em(e*(r-1)));if(i){this.adaptor.setStyle(t,"left",this.em(e*(r-1)))}};e.prototype.moveArrow=function(t,e,r){if(!r)return;var i=this.adaptor.getStyle(t,"transform");this.adaptor.setStyle(t,"transform","translate".concat(e,"(").concat(this.em(-r),")").concat(i?" "+i:""))};e.prototype.adjustBorder=function(t){if(this.thickness!==u.THICKNESS){this.adaptor.setStyle(t,"borderWidth",this.em(this.thickness))}return t};e.prototype.adjustThickness=function(t){if(this.thickness!==u.THICKNESS){this.adaptor.setStyle(t,"strokeWidth",this.fixed(this.thickness))}return t};e.prototype.fixed=function(t,e){if(e===void 0){e=3}if(Math.abs(t)<6e-4){return"0"}return t.toFixed(e).replace(/\.?0+$/,"")};e.prototype.em=function(e){return t.prototype.em.call(this,e)};e.kind=f.MmlMenclose.prototype.kind;e.styles={"mjx-menclose":{position:"relative"},"mjx-menclose > mjx-dstrike":{display:"inline-block",left:0,top:0,position:"absolute","border-top":u.SOLID,"transform-origin":"top left"},"mjx-menclose > mjx-ustrike":{display:"inline-block",left:0,bottom:0,position:"absolute","border-top":u.SOLID,"transform-origin":"bottom left"},"mjx-menclose > mjx-hstrike":{"border-top":u.SOLID,position:"absolute",left:0,right:0,bottom:"50%",transform:"translateY("+(0,p.em)(u.THICKNESS/2)+")"},"mjx-menclose > mjx-vstrike":{"border-left":u.SOLID,position:"absolute",top:0,bottom:0,right:"50%",transform:"translateX("+(0,p.em)(u.THICKNESS/2)+")"},"mjx-menclose > mjx-rbox":{position:"absolute",top:0,bottom:0,right:0,left:0,border:u.SOLID,"border-radius":(0,p.em)(u.THICKNESS+u.PADDING)},"mjx-menclose > mjx-cbox":{position:"absolute",top:0,bottom:0,right:0,left:0,border:u.SOLID,"border-radius":"50%"},"mjx-menclose > mjx-arrow":{position:"absolute",left:0,bottom:"50%",height:0,width:0},"mjx-menclose > mjx-arrow > *":{display:"block",position:"absolute","transform-origin":"bottom","border-left":(0,p.em)(u.THICKNESS*u.ARROWX)+" solid","border-right":0,"box-sizing":"border-box"},"mjx-menclose > mjx-arrow > mjx-aline":{left:0,top:(0,p.em)(-u.THICKNESS/2),right:(0,p.em)(u.THICKNESS*(u.ARROWX-1)),height:0,"border-top":(0,p.em)(u.THICKNESS)+" solid","border-left":0},"mjx-menclose > mjx-arrow[double] > mjx-aline":{left:(0,p.em)(u.THICKNESS*(u.ARROWX-1)),height:0},"mjx-menclose > mjx-arrow > mjx-rthead":{transform:"skewX("+y+"rad)",right:0,bottom:"-1px","border-bottom":"1px solid transparent","border-top":(0,p.em)(u.THICKNESS*u.ARROWY)+" solid transparent"},"mjx-menclose > mjx-arrow > mjx-rbhead":{transform:"skewX(-"+y+"rad)","transform-origin":"top",right:0,top:"-1px","border-top":"1px solid transparent","border-bottom":(0,p.em)(u.THICKNESS*u.ARROWY)+" solid transparent"},"mjx-menclose > mjx-arrow > mjx-lthead":{transform:"skewX(-"+y+"rad)",left:0,bottom:"-1px","border-left":0,"border-right":(0,p.em)(u.THICKNESS*u.ARROWX)+" solid","border-bottom":"1px solid transparent","border-top":(0,p.em)(u.THICKNESS*u.ARROWY)+" solid transparent"},"mjx-menclose > mjx-arrow > mjx-lbhead":{transform:"skewX("+y+"rad)","transform-origin":"top",left:0,top:"-1px","border-left":0,"border-right":(0,p.em)(u.THICKNESS*u.ARROWX)+" solid","border-top":"1px solid transparent","border-bottom":(0,p.em)(u.THICKNESS*u.ARROWY)+" solid transparent"},"mjx-menclose > dbox":{position:"absolute",top:0,bottom:0,left:(0,p.em)(-1.5*u.PADDING),width:(0,p.em)(3*u.PADDING),border:(0,p.em)(u.THICKNESS)+" solid","border-radius":"50%","clip-path":"inset(0 0 0 "+(0,p.em)(1.5*u.PADDING)+")","box-sizing":"border-box"}};e.notations=new Map([u.Border("top"),u.Border("right"),u.Border("bottom"),u.Border("left"),u.Border2("actuarial","top","right"),u.Border2("madruwb","bottom","right"),u.DiagonalStrike("up",1),u.DiagonalStrike("down",-1),["horizontalstrike",{renderer:u.RenderElement("hstrike","Y"),bbox:function(t){return[0,t.padding,0,t.padding]}}],["verticalstrike",{renderer:u.RenderElement("vstrike","X"),bbox:function(t){return[t.padding,0,t.padding,0]}}],["box",{renderer:function(t,e){t.adaptor.setStyle(e,"border",t.em(t.thickness)+" solid")},bbox:u.fullBBox,border:u.fullBorder,remove:"left right top bottom"}],["roundedbox",{renderer:u.RenderElement("rbox"),bbox:u.fullBBox}],["circle",{renderer:u.RenderElement("cbox"),bbox:u.fullBBox}],["phasorangle",{renderer:function(t,e){var r=t.getBBox(),i=r.h,n=r.d;var o=l(t.getArgMod(1.75*t.padding,i+n),2),a=o[0],s=o[1];var h=t.thickness*Math.sin(a)*.9;t.adaptor.setStyle(e,"border-bottom",t.em(t.thickness)+" solid");var c=t.adjustBorder(t.html("mjx-ustrike",{style:{width:t.em(s),transform:"translateX("+t.em(h)+") rotate("+t.fixed(-a)+"rad)"}}));t.adaptor.append(t.chtml,c)},bbox:function(t){var e=t.padding/2;var r=t.thickness;return[2*e,e,e+r,3*e+r]},border:function(t){return[0,0,t.thickness,0]},remove:"bottom"}],u.Arrow("up"),u.Arrow("down"),u.Arrow("left"),u.Arrow("right"),u.Arrow("updown"),u.Arrow("leftright"),u.DiagonalArrow("updiagonal"),u.DiagonalArrow("northeast"),u.DiagonalArrow("southeast"),u.DiagonalArrow("northwest"),u.DiagonalArrow("southwest"),u.DiagonalArrow("northeastsouthwest"),u.DiagonalArrow("northwestsoutheast"),["longdiv",{renderer:function(t,e){var r=t.adaptor;r.setStyle(e,"border-top",t.em(t.thickness)+" solid");var i=r.append(t.chtml,t.html("dbox"));var n=t.thickness;var o=t.padding;if(n!==u.THICKNESS){r.setStyle(i,"border-width",t.em(n))}if(o!==u.PADDING){r.setStyle(i,"left",t.em(-1.5*o));r.setStyle(i,"width",t.em(3*o));r.setStyle(i,"clip-path","inset(0 0 0 "+t.em(1.5*o)+")")}},bbox:function(t){var e=t.padding;var r=t.thickness;return[e+r,e,e,2*e+r/2]}}],["radical",{renderer:function(t,e){t.msqrt.toCHTML(e);var r=t.sqrtTRBL();t.adaptor.setStyle(t.msqrt.chtml,"margin",r.map((function(e){return t.em(-e)})).join(" "))},init:function(t){t.msqrt=t.createMsqrt(t.childNodes[0])},bbox:function(t){return t.sqrtTRBL()},renderChild:true}]]);return e}((0,c.CommonMencloseMixin)(h.CHTMLWrapper));e.CHTMLmenclose=v},7233:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmfenced=void 0;var n=r(81129);var o=r(5043);var a=r(90719);var s=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e=this.standardCHTMLnode(t);this.mrow.toCHTML(e)};e.kind=a.MmlMfenced.prototype.kind;return e}((0,o.CommonMfencedMixin)(n.CHTMLWrapper));e.CHTMLmfenced=s},72929:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__assign||function(){n=Object.assign||function(t){for(var e,r=1,i=arguments.length;r *":{"font-size":"2000%"},"mjx-dbox":{display:"block","font-size":"5%"},"mjx-num":{display:"block","text-align":"center"},"mjx-den":{display:"block","text-align":"center"},"mjx-mfrac[bevelled] > mjx-num":{display:"inline-block"},"mjx-mfrac[bevelled] > mjx-den":{display:"inline-block"},'mjx-den[align="right"], mjx-num[align="right"]':{"text-align":"right"},'mjx-den[align="left"], mjx-num[align="left"]':{"text-align":"left"},"mjx-nstrut":{display:"inline-block",height:".054em",width:0,"vertical-align":"-.054em"},'mjx-nstrut[type="d"]':{height:".217em","vertical-align":"-.217em"},"mjx-dstrut":{display:"inline-block",height:".505em",width:0},'mjx-dstrut[type="d"]':{height:".726em"},"mjx-line":{display:"block","box-sizing":"border-box","min-height":"1px",height:".06em","border-top":".06em solid",margin:".06em -.1em",overflow:"hidden"},'mjx-line[type="d"]':{margin:".18em -.1em"}};return e}((0,a.CommonMfracMixin)(o.CHTMLWrapper));e.CHTMLmfrac=l},47354:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmglyph=void 0;var n=r(81129);var o=r(981);var a=r(83954);var s=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e=this.standardCHTMLnode(t);if(this.charWrapper){this.charWrapper.toCHTML(e);return}var r=this.node.attributes.getList("src","alt"),i=r.src,n=r.alt;var o={width:this.em(this.width),height:this.em(this.height)};if(this.valign){o.verticalAlign=this.em(this.valign)}var a=this.html("img",{src:i,style:o,alt:n,title:n});this.adaptor.append(e,a)};e.kind=a.MmlMglyph.prototype.kind;e.styles={"mjx-mglyph > img":{display:"inline-block",border:0,padding:0}};return e}((0,o.CommonMglyphMixin)(n.CHTMLWrapper));e.CHTMLmglyph=s},91307:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmi=void 0;var n=r(81129);var o=r(98296);var a=r(16689);var s=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.kind=a.MmlMi.prototype.kind;return e}((0,o.CommonMiMixin)(n.CHTMLWrapper));e.CHTMLmi=s},7331:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmmultiscripts=void 0;var o=r(37717);var a=r(86720);var s=r(13195);var l=r(33353);var h=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e=this.standardCHTMLnode(t);var r=this.scriptData;var i=this.node.getProperty("scriptalign")||"right left";var o=n((0,l.split)(i+" "+i),2),a=o[0],s=o[1];var h=this.combinePrePost(r.sub,r.psub);var c=this.combinePrePost(r.sup,r.psup);var u=n(this.getUVQ(h,c),2),f=u[0],p=u[1];if(r.numPrescripts){var d=this.addScripts(f,-p,true,r.psub,r.psup,this.firstPrescript,r.numPrescripts);a!=="right"&&this.adaptor.setAttribute(d,"script-align",a)}this.childNodes[0].toCHTML(e);if(r.numScripts){var d=this.addScripts(f,-p,false,r.sub,r.sup,1,r.numScripts);s!=="left"&&this.adaptor.setAttribute(d,"script-align",s)}};e.prototype.addScripts=function(t,e,r,i,n,o,a){var s=this.adaptor;var l=t-n.d+(e-i.h);var h=t<0&&e===0?i.h+t:t;var c=l>0?{style:{height:this.em(l)}}:{};var u=h?{style:{"vertical-align":this.em(h)}}:{};var f=this.html("mjx-row");var p=this.html("mjx-row",c);var d=this.html("mjx-row");var y="mjx-"+(r?"pre":"")+"scripts";var v=o+2*a;while(o mjx-row > mjx-cell":{"text-align":"right"},'[script-align="left"] > mjx-row > mjx-cell':{"text-align":"left"},'[script-align="center"] > mjx-row > mjx-cell':{"text-align":"center"},'[script-align="right"] > mjx-row > mjx-cell':{"text-align":"right"}};return e}((0,a.CommonMmultiscriptsMixin)(o.CHTMLmsubsup));e.CHTMLmmultiscripts=h},61422:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmn=void 0;var n=r(81129);var o=r(72309);var a=r(94411);var s=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.kind=a.MmlMn.prototype.kind;return e}((0,o.CommonMnMixin)(n.CHTMLWrapper));e.CHTMLmn=s},53241:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmo=void 0;var o=r(81129);var a=r(9579);var s=r(5213);var l=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e,r;var i=this.node.attributes;var o=i.get("symmetric")&&this.stretch.dir!==2;var a=this.stretch.dir!==0;if(a&&this.size===null){this.getStretchedVariant([])}var s=this.standardCHTMLnode(t);if(a&&this.size<0){this.stretchHTML(s)}else{if(o||i.get("largeop")){var l=this.em(this.getCenterOffset());if(l!=="0"){this.adaptor.setStyle(s,"verticalAlign",l)}}if(this.node.getProperty("mathaccent")){this.adaptor.setStyle(s,"width","0");this.adaptor.setStyle(s,"margin-left",this.em(this.getAccentOffset()))}try{for(var h=n(this.childNodes),c=h.next();!c.done;c=h.next()){var u=c.value;u.toCHTML(s)}}catch(f){e={error:f}}finally{try{if(c&&!c.done&&(r=h.return))r.call(h)}finally{if(e)throw e.error}}}};e.prototype.stretchHTML=function(t){var e=this.getText().codePointAt(0);this.font.delimUsage.add(e);this.childNodes[0].markUsed();var r=this.stretch;var i=r.stretch;var n=[];if(i[0]){n.push(this.html("mjx-beg",{},[this.html("mjx-c")]))}n.push(this.html("mjx-ext",{},[this.html("mjx-c")]));if(i.length===4){n.push(this.html("mjx-mid",{},[this.html("mjx-c")]),this.html("mjx-ext",{},[this.html("mjx-c")]))}if(i[2]){n.push(this.html("mjx-end",{},[this.html("mjx-c")]))}var o={};var s=this.bbox,l=s.h,h=s.d,c=s.w;if(r.dir===1){n.push(this.html("mjx-mark"));o.height=this.em(l+h);o.verticalAlign=this.em(-h)}else{o.width=this.em(c)}var u=a.DirectionVH[r.dir];var f={class:this.char(r.c||e),style:o};var p=this.html("mjx-stretchy-"+u,f,n);this.adaptor.append(t,p)};e.kind=s.MmlMo.prototype.kind;e.styles={"mjx-stretchy-h":{display:"inline-table",width:"100%"},"mjx-stretchy-h > *":{display:"table-cell",width:0},"mjx-stretchy-h > * > mjx-c":{display:"inline-block",transform:"scalex(1.0000001)"},"mjx-stretchy-h > * > mjx-c::before":{display:"inline-block",width:"initial"},"mjx-stretchy-h > mjx-ext":{"/* IE */ overflow":"hidden","/* others */ overflow":"clip visible",width:"100%"},"mjx-stretchy-h > mjx-ext > mjx-c::before":{transform:"scalex(500)"},"mjx-stretchy-h > mjx-ext > mjx-c":{width:0},"mjx-stretchy-h > mjx-beg > mjx-c":{"margin-right":"-.1em"},"mjx-stretchy-h > mjx-end > mjx-c":{"margin-left":"-.1em"},"mjx-stretchy-v":{display:"inline-block"},"mjx-stretchy-v > *":{display:"block"},"mjx-stretchy-v > mjx-beg":{height:0},"mjx-stretchy-v > mjx-end > mjx-c":{display:"block"},"mjx-stretchy-v > * > mjx-c":{transform:"scaley(1.0000001)","transform-origin":"left center",overflow:"hidden"},"mjx-stretchy-v > mjx-ext":{display:"block",height:"100%","box-sizing":"border-box",border:"0px solid transparent","/* IE */ overflow":"hidden","/* others */ overflow":"visible clip"},"mjx-stretchy-v > mjx-ext > mjx-c::before":{width:"initial","box-sizing":"border-box"},"mjx-stretchy-v > mjx-ext > mjx-c":{transform:"scaleY(500) translateY(.075em)",overflow:"visible"},"mjx-mark":{display:"inline-block",height:"0px"}};return e}((0,a.CommonMoMixin)(o.CHTMLWrapper));e.CHTMLmo=l},74926:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var o=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmpadded=void 0;var a=r(81129);var s=r(50303);var l=r(38480);var h=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e,r;var i=this.standardCHTMLnode(t);var a=[];var s={};var l=n(this.getDimens(),9),h=l[2],c=l[3],u=l[4],f=l[5],p=l[6],d=l[7],y=l[8];if(f){s.width=this.em(h+f)}if(c||u){s.margin=this.em(c)+" 0 "+this.em(u)}if(p+y||d){s.position="relative";var v=this.html("mjx-rbox",{style:{left:this.em(p+y),top:this.em(-d),"max-width":s.width}});if(p+y&&this.childNodes[0].getBBox().pwidth){this.adaptor.setAttribute(v,"width","full");this.adaptor.setStyle(v,"left",this.em(p))}a.push(v)}i=this.adaptor.append(i,this.html("mjx-block",{style:s},a));try{for(var m=o(this.childNodes),b=m.next();!b.done;b=m.next()){var g=b.value;g.toCHTML(a[0]||i)}}catch(x){e={error:x}}finally{try{if(b&&!b.done&&(r=m.return))r.call(m)}finally{if(e)throw e.error}}};e.kind=l.MmlMpadded.prototype.kind;e.styles={"mjx-mpadded":{display:"inline-block"},"mjx-rbox":{display:"inline-block",position:"relative"}};return e}((0,s.CommonMpaddedMixin)(a.CHTMLWrapper));e.CHTMLmpadded=h},32829:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmroot=void 0;var o=r(10128);var a=r(62315);var s=r(68091);var l=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.addRoot=function(t,e,r,i){e.toCHTML(t);var o=n(this.getRootDimens(r,i),3),a=o[0],s=o[1],l=o[2];this.adaptor.setStyle(t,"verticalAlign",this.em(s));this.adaptor.setStyle(t,"width",this.em(a));if(l){this.adaptor.setStyle(this.adaptor.firstChild(t),"paddingLeft",this.em(l))}};e.kind=s.MmlMroot.prototype.kind;return e}((0,a.CommonMrootMixin)(o.CHTMLmsqrt));e.CHTMLmroot=l},86255:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLinferredMrow=e.CHTMLmrow=void 0;var o=r(81129);var a=r(33257);var s=r(33257);var l=r(68550);var h=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e,r;var i=this.node.isInferred?this.chtml=t:this.standardCHTMLnode(t);var o=false;try{for(var a=n(this.childNodes),s=a.next();!s.done;s=a.next()){var l=s.value;l.toCHTML(i);if(l.bbox.w<0){o=true}}}catch(c){e={error:c}}finally{try{if(s&&!s.done&&(r=a.return))r.call(a)}finally{if(e)throw e.error}}if(o){var h=this.getBBox().w;if(h){this.adaptor.setStyle(i,"width",this.em(Math.max(0,h)));if(h<0){this.adaptor.setStyle(i,"marginRight",this.em(h))}}}};e.kind=l.MmlMrow.prototype.kind;return e}((0,a.CommonMrowMixin)(o.CHTMLWrapper));e.CHTMLmrow=h;var c=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.kind=l.MmlInferredMrow.prototype.kind;return e}((0,s.CommonInferredMrowMixin)(h));e.CHTMLinferredMrow=c},16851:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLms=void 0;var n=r(81129);var o=r(23745);var a=r(17931);var s=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.kind=a.MmlMs.prototype.kind;return e}((0,o.CommonMsMixin)(n.CHTMLWrapper));e.CHTMLms=s},48929:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmspace=void 0;var n=r(81129);var o=r(84533);var a=r(4254);var s=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e=this.standardCHTMLnode(t);var r=this.getBBox(),i=r.w,n=r.h,o=r.d;if(i<0){this.adaptor.setStyle(e,"marginRight",this.em(i));i=0}if(i){this.adaptor.setStyle(e,"width",this.em(i))}n=Math.max(0,n+o);if(n){this.adaptor.setStyle(e,"height",this.em(Math.max(0,n)))}if(o){this.adaptor.setStyle(e,"verticalAlign",this.em(-o))}};e.kind=a.MmlMspace.prototype.kind;return e}((0,o.CommonMspaceMixin)(n.CHTMLWrapper));e.CHTMLmspace=s},10128:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmsqrt=void 0;var o=r(81129);var a=r(29266);var s=r(53162);var l=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e=this.childNodes[this.surd];var r=this.childNodes[this.base];var i=e.getBBox();var o=r.getOuterBBox();var a=n(this.getPQ(i),2),s=a[1];var l=this.font.params.rule_thickness;var h=o.h+s+l;var c=this.standardCHTMLnode(t);var u,f,p,d;if(this.root!=null){p=this.adaptor.append(c,this.html("mjx-root"));d=this.childNodes[this.root]}var y=this.adaptor.append(c,this.html("mjx-sqrt",{},[u=this.html("mjx-surd"),f=this.html("mjx-box",{style:{paddingTop:this.em(s)}})]));this.addRoot(p,d,i,h);e.toCHTML(u);r.toCHTML(f);if(e.size<0){this.adaptor.addClass(y,"mjx-tall")}};e.prototype.addRoot=function(t,e,r,i){};e.kind=s.MmlMsqrt.prototype.kind;e.styles={"mjx-root":{display:"inline-block","white-space":"nowrap"},"mjx-surd":{display:"inline-block","vertical-align":"top"},"mjx-sqrt":{display:"inline-block","padding-top":".07em"},"mjx-sqrt > mjx-box":{"border-top":".07em solid"},"mjx-sqrt.mjx-tall > mjx-box":{"padding-left":".3em","margin-left":"-.3em"}};return e}((0,a.CommonMsqrtMixin)(o.CHTMLWrapper));e.CHTMLmsqrt=l},37717:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmsubsup=e.CHTMLmsup=e.CHTMLmsub=void 0;var o=r(90949);var a=r(27726);var s=r(27726);var l=r(27726);var h=r(74529);var c=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.kind=h.MmlMsub.prototype.kind;return e}((0,a.CommonMsubMixin)(o.CHTMLscriptbase));e.CHTMLmsub=c;var u=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.kind=h.MmlMsup.prototype.kind;return e}((0,s.CommonMsupMixin)(o.CHTMLscriptbase));e.CHTMLmsup=u;var f=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){var e=this.adaptor;var r=this.standardCHTMLnode(t);var i=n([this.baseChild,this.supChild,this.subChild],3),o=i[0],a=i[1],s=i[2];var l=n(this.getUVQ(),3),h=l[1],c=l[2];var u={"vertical-align":this.em(h)};o.toCHTML(r);var f=e.append(r,this.html("mjx-script",{style:u}));a.toCHTML(f);e.append(f,this.html("mjx-spacer",{style:{"margin-top":this.em(c)}}));s.toCHTML(f);var p=this.getAdjustedIc();if(p){e.setStyle(a.chtml,"marginLeft",this.em(p/a.bbox.rscale))}if(this.baseRemoveIc){e.setStyle(f,"marginLeft",this.em(-this.baseIc))}};e.kind=h.MmlMsubsup.prototype.kind;e.styles={"mjx-script":{display:"inline-block","padding-right":".05em","padding-left":".033em"},"mjx-script > mjx-spacer":{display:"block"}};return e}((0,l.CommonMsubsupMixin)(o.CHTMLscriptbase));e.CHTMLmsubsup=f},48582:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmtable=void 0;var a=r(81129);var s=r(8747);var l=r(7252);var h=r(33353);var c=function(t){i(e,t);function e(e,r,i){if(i===void 0){i=null}var n=t.call(this,e,r,i)||this;n.itable=n.html("mjx-itable");n.labels=n.html("mjx-itable");return n}e.prototype.getAlignShift=function(){var e=t.prototype.getAlignShift.call(this);if(!this.isTop){e[1]=0}return e};e.prototype.toCHTML=function(t){var e,r;var i=this.standardCHTMLnode(t);this.adaptor.append(i,this.html("mjx-table",{},[this.itable]));try{for(var o=n(this.childNodes),a=o.next();!a.done;a=o.next()){var s=a.value;s.toCHTML(this.itable)}}catch(l){e={error:l}}finally{try{if(a&&!a.done&&(r=o.return))r.call(o)}finally{if(e)throw e.error}}this.padRows();this.handleColumnSpacing();this.handleColumnLines();this.handleColumnWidths();this.handleRowSpacing();this.handleRowLines();this.handleRowHeights();this.handleFrame();this.handleWidth();this.handleLabels();this.handleAlign();this.handleJustify();this.shiftColor()};e.prototype.shiftColor=function(){var t=this.adaptor;var e=t.getStyle(this.chtml,"backgroundColor");if(e){t.setStyle(this.chtml,"backgroundColor","");t.setStyle(this.itable,"backgroundColor",e)}};e.prototype.padRows=function(){var t,e;var r=this.adaptor;try{for(var i=n(r.childNodes(this.itable)),o=i.next();!o.done;o=i.next()){var a=o.value;while(r.childNodes(a).length1&&y!=="0.4em"||s&&u===1){this.adaptor.setStyle(m,"paddingLeft",y)}if(u1&&f!=="0.215em"||s&&l===1){this.adaptor.setStyle(v.chtml,"paddingTop",f)}if(l mjx-itable":{"vertical-align":"middle","text-align":"left","box-sizing":"border-box"},"mjx-labels > mjx-itable":{position:"absolute",top:0},'mjx-mtable[justify="left"]':{"text-align":"left"},'mjx-mtable[justify="right"]':{"text-align":"right"},'mjx-mtable[justify="left"][side="left"]':{"padding-right":"0 ! important"},'mjx-mtable[justify="left"][side="right"]':{"padding-left":"0 ! important"},'mjx-mtable[justify="right"][side="left"]':{"padding-right":"0 ! important"},'mjx-mtable[justify="right"][side="right"]':{"padding-left":"0 ! important"},"mjx-mtable[align]":{"vertical-align":"baseline"},'mjx-mtable[align="top"] > mjx-table':{"vertical-align":"top"},'mjx-mtable[align="bottom"] > mjx-table':{"vertical-align":"bottom"},'mjx-mtable[side="right"] mjx-labels':{"min-width":"100%"}};return e}((0,s.CommonMtableMixin)(a.CHTMLWrapper));e.CHTMLmtable=c},82132:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmtd=void 0;var n=r(81129);var o=r(32506);var a=r(49016);var s=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(e){t.prototype.toCHTML.call(this,e);var r=this.node.attributes.get("rowalign");var i=this.node.attributes.get("columnalign");var n=this.parent.node.attributes.get("rowalign");if(r!==n){this.adaptor.setAttribute(this.chtml,"rowalign",r)}if(i!=="center"&&(this.parent.kind!=="mlabeledtr"||this!==this.parent.childNodes[0]||i!==this.parent.parent.node.attributes.get("side"))){this.adaptor.setStyle(this.chtml,"textAlign",i)}if(this.parent.parent.node.getProperty("useHeight")){this.adaptor.append(this.chtml,this.html("mjx-tstrut"))}};e.kind=a.MmlMtd.prototype.kind;e.styles={"mjx-mtd":{display:"table-cell","text-align":"center",padding:".215em .4em"},"mjx-mtd:first-child":{"padding-left":0},"mjx-mtd:last-child":{"padding-right":0},"mjx-mtable > * > mjx-itable > *:first-child > mjx-mtd":{"padding-top":0},"mjx-mtable > * > mjx-itable > *:last-child > mjx-mtd":{"padding-bottom":0},"mjx-tstrut":{display:"inline-block",height:"1em","vertical-align":"-.25em"},'mjx-labels[align="left"] > mjx-mtr > mjx-mtd':{"text-align":"left"},'mjx-labels[align="right"] > mjx-mtr > mjx-mtd':{"text-align":"right"},"mjx-mtd[extra]":{padding:0},'mjx-mtd[rowalign="top"]':{"vertical-align":"top"},'mjx-mtd[rowalign="center"]':{"vertical-align":"middle"},'mjx-mtd[rowalign="bottom"]':{"vertical-align":"bottom"},'mjx-mtd[rowalign="baseline"]':{"vertical-align":"baseline"},'mjx-mtd[rowalign="axis"]':{"vertical-align":".25em"}};return e}((0,o.CommonMtdMixin)(n.CHTMLWrapper));e.CHTMLmtd=s},90659:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmtext=void 0;var n=r(81129);var o=r(84894);var a=r(86237);var s=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.kind=a.MmlMtext.prototype.kind;return e}((0,o.CommonMtextMixin)(n.CHTMLWrapper));e.CHTMLmtext=s},93594:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmlabeledtr=e.CHTMLmtr=void 0;var n=r(81129);var o=r(19208);var a=r(19208);var s=r(2117);var l=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(e){t.prototype.toCHTML.call(this,e);var r=this.node.attributes.get("rowalign");if(r!=="baseline"){this.adaptor.setAttribute(this.chtml,"rowalign",r)}};e.kind=s.MmlMtr.prototype.kind;e.styles={"mjx-mtr":{display:"table-row"},'mjx-mtr[rowalign="top"] > mjx-mtd':{"vertical-align":"top"},'mjx-mtr[rowalign="center"] > mjx-mtd':{"vertical-align":"middle"},'mjx-mtr[rowalign="bottom"] > mjx-mtd':{"vertical-align":"bottom"},'mjx-mtr[rowalign="baseline"] > mjx-mtd':{"vertical-align":"baseline"},'mjx-mtr[rowalign="axis"] > mjx-mtd':{"vertical-align":".25em"}};return e}((0,o.CommonMtrMixin)(n.CHTMLWrapper));e.CHTMLmtr=l;var h=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(e){t.prototype.toCHTML.call(this,e);var r=this.adaptor.firstChild(this.chtml);if(r){this.adaptor.remove(r);var i=this.node.attributes.get("rowalign");var n=i!=="baseline"&&i!=="axis"?{rowalign:i}:{};var o=this.html("mjx-mtr",n,[r]);this.adaptor.append(this.parent.labels,o)}};e.prototype.markUsed=function(){t.prototype.markUsed.call(this);this.jax.wrapperUsage.add(l.kind)};e.kind=s.MmlMlabeledtr.prototype.kind;e.styles={"mjx-mlabeledtr":{display:"table-row"},'mjx-mlabeledtr[rowalign="top"] > mjx-mtd':{"vertical-align":"top"},'mjx-mlabeledtr[rowalign="center"] > mjx-mtd':{"vertical-align":"middle"},'mjx-mlabeledtr[rowalign="bottom"] > mjx-mtd':{"vertical-align":"bottom"},'mjx-mlabeledtr[rowalign="baseline"] > mjx-mtd':{"vertical-align":"baseline"},'mjx-mlabeledtr[rowalign="axis"] > mjx-mtd':{"vertical-align":".25em"}};return e}((0,a.CommonMlabeledtrMixin)(l));e.CHTMLmlabeledtr=h},94987:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CHTMLmunderover=e.CHTMLmover=e.CHTMLmunder=void 0;var n=r(37717);var o=r(17358);var a=r(17358);var s=r(17358);var l=r(75723);var h=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(e){if(this.hasMovableLimits()){t.prototype.toCHTML.call(this,e);this.adaptor.setAttribute(this.chtml,"limits","false");return}this.chtml=this.standardCHTMLnode(e);var r=this.adaptor.append(this.adaptor.append(this.chtml,this.html("mjx-row")),this.html("mjx-base"));var i=this.adaptor.append(this.adaptor.append(this.chtml,this.html("mjx-row")),this.html("mjx-under"));this.baseChild.toCHTML(r);this.scriptChild.toCHTML(i);var n=this.baseChild.getOuterBBox();var o=this.scriptChild.getOuterBBox();var a=this.getUnderKV(n,o)[0];var s=this.isLineBelow?0:this.getDelta(true);this.adaptor.setStyle(i,"paddingTop",this.em(a));this.setDeltaW([r,i],this.getDeltaW([n,o],[0,-s]));this.adjustUnderDepth(i,o)};e.kind=l.MmlMunder.prototype.kind;e.styles={"mjx-over":{"text-align":"left"},'mjx-munder:not([limits="false"])':{display:"inline-table"},"mjx-munder > mjx-row":{"text-align":"left"},"mjx-under":{"padding-bottom":".1em"}};return e}((0,o.CommonMunderMixin)(n.CHTMLmsub));e.CHTMLmunder=h;var c=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(e){if(this.hasMovableLimits()){t.prototype.toCHTML.call(this,e);this.adaptor.setAttribute(this.chtml,"limits","false");return}this.chtml=this.standardCHTMLnode(e);var r=this.adaptor.append(this.chtml,this.html("mjx-over"));var i=this.adaptor.append(this.chtml,this.html("mjx-base"));this.scriptChild.toCHTML(r);this.baseChild.toCHTML(i);var n=this.scriptChild.getOuterBBox();var o=this.baseChild.getOuterBBox();this.adjustBaseHeight(i,o);var a=this.getOverKU(o,n)[0];var s=this.isLineAbove?0:this.getDelta();this.adaptor.setStyle(r,"paddingBottom",this.em(a));this.setDeltaW([i,r],this.getDeltaW([o,n],[0,s]));this.adjustOverDepth(r,n)};e.kind=l.MmlMover.prototype.kind;e.styles={'mjx-mover:not([limits="false"])':{"padding-top":".1em"},'mjx-mover:not([limits="false"]) > *':{display:"block","text-align":"left"}};return e}((0,a.CommonMoverMixin)(n.CHTMLmsup));e.CHTMLmover=c;var u=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(e){if(this.hasMovableLimits()){t.prototype.toCHTML.call(this,e);this.adaptor.setAttribute(this.chtml,"limits","false");return}this.chtml=this.standardCHTMLnode(e);var r=this.adaptor.append(this.chtml,this.html("mjx-over"));var i=this.adaptor.append(this.adaptor.append(this.chtml,this.html("mjx-box")),this.html("mjx-munder"));var n=this.adaptor.append(this.adaptor.append(i,this.html("mjx-row")),this.html("mjx-base"));var o=this.adaptor.append(this.adaptor.append(i,this.html("mjx-row")),this.html("mjx-under"));this.overChild.toCHTML(r);this.baseChild.toCHTML(n);this.underChild.toCHTML(o);var a=this.overChild.getOuterBBox();var s=this.baseChild.getOuterBBox();var l=this.underChild.getOuterBBox();this.adjustBaseHeight(n,s);var h=this.getOverKU(s,a)[0];var c=this.getUnderKV(s,l)[0];var u=this.getDelta();this.adaptor.setStyle(r,"paddingBottom",this.em(h));this.adaptor.setStyle(o,"paddingTop",this.em(c));this.setDeltaW([n,o,r],this.getDeltaW([s,l,a],[0,this.isLineBelow?0:-u,this.isLineAbove?0:u]));this.adjustOverDepth(r,a);this.adjustUnderDepth(o,l)};e.prototype.markUsed=function(){t.prototype.markUsed.call(this);this.jax.wrapperUsage.add(n.CHTMLmsubsup.kind)};e.kind=l.MmlMunderover.prototype.kind;e.styles={'mjx-munderover:not([limits="false"])':{"padding-top":".1em"},'mjx-munderover:not([limits="false"]) > *':{display:"block"}};return e}((0,s.CommonMunderoverMixin)(n.CHTMLmsubsup));e.CHTMLmunderover=u},90949:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var o=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CHTMLscriptbase=void 0;var a=r(81129);var s=r(78214);var l=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.toCHTML=function(t){this.chtml=this.standardCHTMLnode(t);var e=n(this.getOffset(),2),r=e[0],i=e[1];var o=r-(this.baseRemoveIc?this.baseIc:0);var a={"vertical-align":this.em(i)};if(o){a["margin-left"]=this.em(o)}this.baseChild.toCHTML(this.chtml);this.scriptChild.toCHTML(this.adaptor.append(this.chtml,this.html("mjx-script",{style:a})))};e.prototype.setDeltaW=function(t,e){for(var r=0;r=0)return;this.adaptor.setStyle(t,"marginBottom",this.em(e.d*e.rscale))};e.prototype.adjustUnderDepth=function(t,e){var r,i;if(e.d>=0)return;var n=this.adaptor;var a=this.em(e.d);var s=this.html("mjx-box",{style:{"margin-bottom":a,"vertical-align":a}});try{for(var l=o(n.childNodes(n.firstChild(t))),h=l.next();!h.done;h=l.next()){var c=h.value;n.append(s,c)}}catch(u){r={error:u}}finally{try{if(h&&!h.done&&(i=l.return))i.call(l)}finally{if(r)throw r.error}}n.append(n.firstChild(t),s)};e.prototype.adjustBaseHeight=function(t,e){if(this.node.attributes.get("accent")){var r=this.font.params.x_height*e.scale;if(e.h0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.CommonArrow=e.CommonDiagonalArrow=e.CommonDiagonalStrike=e.CommonBorder2=e.CommonBorder=e.arrowBBox=e.diagonalArrowDef=e.arrowDef=e.arrowBBoxW=e.arrowBBoxHD=e.arrowHead=e.fullBorder=e.fullPadding=e.fullBBox=e.sideNames=e.sideIndex=e.SOLID=e.PADDING=e.THICKNESS=e.ARROWY=e.ARROWDX=e.ARROWX=void 0;e.ARROWX=4,e.ARROWDX=1,e.ARROWY=2;e.THICKNESS=.067;e.PADDING=.2;e.SOLID=e.THICKNESS+"em solid";e.sideIndex={top:0,right:1,bottom:2,left:3};e.sideNames=Object.keys(e.sideIndex);e.fullBBox=function(t){return new Array(4).fill(t.thickness+t.padding)};e.fullPadding=function(t){return new Array(4).fill(t.padding)};e.fullBorder=function(t){return new Array(4).fill(t.thickness)};var i=function(t){return Math.max(t.padding,t.thickness*(t.arrowhead.x+t.arrowhead.dx+1))};e.arrowHead=i;var n=function(t,e){if(t.childNodes[0]){var r=t.childNodes[0].getBBox(),i=r.h,n=r.d;e[0]=e[2]=Math.max(0,t.thickness*t.arrowhead.y-(i+n)/2)}return e};e.arrowBBoxHD=n;var o=function(t,e){if(t.childNodes[0]){var r=t.childNodes[0].getBBox().w;e[1]=e[3]=Math.max(0,t.thickness*t.arrowhead.y-r/2)}return e};e.arrowBBoxW=o;e.arrowDef={up:[-Math.PI/2,false,true,"verticalstrike"],down:[Math.PI/2,false,true,"verticakstrike"],right:[0,false,false,"horizontalstrike"],left:[Math.PI,false,false,"horizontalstrike"],updown:[Math.PI/2,true,true,"verticalstrike uparrow downarrow"],leftright:[0,true,false,"horizontalstrike leftarrow rightarrow"]};e.diagonalArrowDef={updiagonal:[-1,0,false,"updiagonalstrike northeastarrow"],northeast:[-1,0,false,"updiagonalstrike updiagonalarrow"],southeast:[1,0,false,"downdiagonalstrike"],northwest:[1,Math.PI,false,"downdiagonalstrike"],southwest:[-1,Math.PI,false,"updiagonalstrike"],northeastsouthwest:[-1,0,true,"updiagonalstrike northeastarrow updiagonalarrow southwestarrow"],northwestsoutheast:[1,0,true,"downdiagonalstrike northwestarrow southeastarrow"]};e.arrowBBox={up:function(t){return(0,e.arrowBBoxW)(t,[(0,e.arrowHead)(t),0,t.padding,0])},down:function(t){return(0,e.arrowBBoxW)(t,[t.padding,0,(0,e.arrowHead)(t),0])},right:function(t){return(0,e.arrowBBoxHD)(t,[0,(0,e.arrowHead)(t),0,t.padding])},left:function(t){return(0,e.arrowBBoxHD)(t,[0,t.padding,0,(0,e.arrowHead)(t)])},updown:function(t){return(0,e.arrowBBoxW)(t,[(0,e.arrowHead)(t),0,(0,e.arrowHead)(t),0])},leftright:function(t){return(0,e.arrowBBoxHD)(t,[0,(0,e.arrowHead)(t),0,(0,e.arrowHead)(t)])}};var a=function(t){return function(r){var i=e.sideIndex[r];return[r,{renderer:t,bbox:function(t){var e=[0,0,0,0];e[i]=t.thickness+t.padding;return e},border:function(t){var e=[0,0,0,0];e[i]=t.thickness;return e}}]}};e.CommonBorder=a;var s=function(t){return function(r,i,n){var o=e.sideIndex[i];var a=e.sideIndex[n];return[r,{renderer:t,bbox:function(t){var e=t.thickness+t.padding;var r=[0,0,0,0];r[o]=r[a]=e;return r},border:function(t){var e=[0,0,0,0];e[o]=e[a]=t.thickness;return e},remove:i+" "+n}]}};e.CommonBorder2=s;var l=function(t){return function(r){var i="mjx-"+r.charAt(0)+"strike";return[r+"diagonalstrike",{renderer:t(i),bbox:e.fullBBox}]}};e.CommonDiagonalStrike=l;var h=function(t){return function(i){var n=r(e.diagonalArrowDef[i],4),o=n[0],a=n[1],s=n[2],l=n[3];return[i+"arrow",{renderer:function(e,i){var n=r(e.arrowAW(),2),l=n[0],h=n[1];var c=e.arrow(h,o*(l-a),s);t(e,c)},bbox:function(t){var e=t.arrowData(),i=e.a,n=e.x,o=e.y;var a=r([t.arrowhead.x,t.arrowhead.y,t.arrowhead.dx],3),s=a[0],l=a[1],h=a[2];var c=r(t.getArgMod(s+h,l),2),u=c[0],f=c[1];var p=o+(u>i?t.thickness*f*Math.sin(u-i):0);var d=n+(u>Math.PI/2-i?t.thickness*f*Math.sin(u+i-Math.PI/2):0);return[p,d,p,d]},remove:l}]}};e.CommonDiagonalArrow=h;var c=function(t){return function(i){var n=r(e.arrowDef[i],4),o=n[0],a=n[1],s=n[2],l=n[3];return[i+"arrow",{renderer:function(e,i){var n=e.getBBox(),l=n.w,h=n.h,c=n.d;var u=r(s?[h+c,"X"]:[l,"Y"],2),f=u[0],p=u[1];var d=e.getOffset(p);var y=e.arrow(f,o,a,p,d);t(e,y)},bbox:e.arrowBBox[i],remove:l}]}};e.CommonArrow=c},90247:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__assign||function(){n=Object.assign||function(t){for(var e,r=1,i=arguments.length;r0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var a=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CommonOutputJax=void 0;var s=r(73290);var l=r(59719);var h=r(36059);var c=r(77130);var u=r(30502);var f=r(24219);var p=function(t){i(e,t);function e(e,r,i){if(e===void 0){e=null}if(r===void 0){r=null}if(i===void 0){i=null}var n=this;var a=o((0,h.separateOptions)(e,i.OPTIONS),2),s=a[0],l=a[1];n=t.call(this,s)||this;n.factory=n.options.wrapperFactory||new r;n.factory.jax=n;n.cssStyles=n.options.cssStyles||new f.CssStyles;n.font=n.options.font||new i(l);n.unknownCache=new Map;return n}e.prototype.typeset=function(t,e){this.setDocument(e);var r=this.createNode();this.toDOM(t,r,e);return r};e.prototype.createNode=function(){var t=this.constructor.NAME;return this.html("mjx-container",{class:"MathJax",jax:t})};e.prototype.setScale=function(t){var e=this.math.metrics.scale*this.options.scale;if(e!==1){this.adaptor.setStyle(t,"fontSize",(0,c.percent)(e))}};e.prototype.toDOM=function(t,e,r){if(r===void 0){r=null}this.setDocument(r);this.math=t;this.pxPerEm=t.metrics.ex/this.font.params.x_height;t.root.setTeXclass(null);this.setScale(e);this.nodeMap=new Map;this.container=e;this.processMath(t.root,e);this.nodeMap=null;this.executeFilters(this.postFilters,t,r,e)};e.prototype.getBBox=function(t,e){this.setDocument(e);this.math=t;t.root.setTeXclass(null);this.nodeMap=new Map;var r=this.factory.wrap(t.root).getOuterBBox();this.nodeMap=null;return r};e.prototype.getMetrics=function(t){var e,r;this.setDocument(t);var i=this.adaptor;var n=this.getMetricMaps(t);try{for(var o=a(t.math),s=o.next();!s.done;s=o.next()){var h=s.value;var c=i.parent(h.start.node);if(h.state()=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var l=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var h=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i600?"bold":"normal"}if(i.family){r=this.explicitVariant(i.family,i.weight,i.style)}else{if(this.node.getProperty("variantForm"))r="-tex-variant";r=(e.BOLDVARIANTS[i.weight]||{})[r]||r;r=(e.ITALICVARIANTS[i.style]||{})[r]||r}}this.variant=r};e.prototype.explicitVariant=function(t,e,r){var i=this.styles;if(!i)i=this.styles=new d.Styles;i.set("fontFamily",t);if(e)i.set("fontWeight",e);if(r)i.set("fontStyle",r);return"-explicitFont"};e.prototype.getScale=function(){var t=1,e=this.parent;var r=e?e.bbox.scale:1;var i=this.node.attributes;var n=Math.min(i.get("scriptlevel"),2);var o=i.get("fontsize");var a=this.node.isToken||this.node.isKind("mstyle")?i.get("mathsize"):i.getInherited("mathsize");if(n!==0){t=Math.pow(i.get("scriptsizemultiplier"),n);var s=this.length2em(i.get("scriptminsize"),.8,1);if(t0;this.bbox.L=i.isSet("lspace")?Math.max(0,this.length2em(i.get("lspace"))):b(n,t.lspace);this.bbox.R=i.isSet("rspace")?Math.max(0,this.length2em(i.get("rspace"))):b(n,t.rspace);var o=r.childIndex(e);if(o===0)return;var a=r.childNodes[o-1];if(!a.isEmbellished)return;var s=this.jax.nodeMap.get(a).getBBox();if(s.R){this.bbox.L=Math.max(0,this.bbox.L-s.R)}};e.prototype.getTeXSpacing=function(t,e){if(!e){var r=this.node.texSpacing();if(r){this.bbox.L=this.length2em(r)}}if(t||e){var i=this.node.coreMO().attributes;if(i.isSet("lspace")){this.bbox.L=Math.max(0,this.length2em(i.get("lspace")))}if(i.isSet("rspace")){this.bbox.R=Math.max(0,this.length2em(i.get("rspace")))}}};e.prototype.isTopEmbellished=function(){return this.node.isEmbellished&&!(this.node.parent&&this.node.parent.isEmbellished)};e.prototype.core=function(){return this.jax.nodeMap.get(this.node.core())};e.prototype.coreMO=function(){return this.jax.nodeMap.get(this.node.coreMO())};e.prototype.getText=function(){var t,e;var r="";if(this.node.isToken){try{for(var i=s(this.node.childNodes),n=i.next();!n.done;n=i.next()){var o=n.value;if(o instanceof u.TextNode){r+=o.getText()}}}catch(a){t={error:a}}finally{try{if(n&&!n.done&&(e=i.return))e.call(i)}finally{if(t)throw t.error}}}return r};e.prototype.canStretch=function(t){this.stretch=v.NOSTRETCH;if(this.node.isEmbellished){var e=this.core();if(e&&e.node!==this.node){if(e.canStretch(t)){this.stretch=e.stretch}}}return this.stretch.dir!==0};e.prototype.getAlignShift=function(){var t;var e=(t=this.node.attributes).getList.apply(t,h([],l(u.indentAttributes),false)),r=e.indentalign,i=e.indentshift,n=e.indentalignfirst,o=e.indentshiftfirst;if(n!=="indentalign"){r=n}if(r==="auto"){r=this.jax.options.displayAlign}if(o!=="indentshift"){i=o}if(i==="auto"){i=this.jax.options.displayIndent;if(r==="right"&&!i.match(/^\s*0[a-z]*\s*$/)){i=("-"+i.trim()).replace(/^--/,"")}}var a=this.length2em(i,this.metrics.containerWidth);return[r,a]};e.prototype.getAlignX=function(t,e,r){return r==="right"?t-(e.w+e.R)*e.rscale:r==="left"?e.L*e.rscale:(t-e.w*e.rscale)/2};e.prototype.getAlignY=function(t,e,r,i,n){return n==="top"?t-r:n==="bottom"?i-e:n==="center"?(t-r-(e-i))/2:0};e.prototype.getWrapWidth=function(t){return this.childNodes[t].getBBox().w};e.prototype.getChildAlign=function(t){return"left"};e.prototype.percent=function(t){return p.percent(t)};e.prototype.em=function(t){return p.em(t)};e.prototype.px=function(t,e){if(e===void 0){e=-p.BIGDIMEN}return p.px(t,e,this.metrics.em)};e.prototype.length2em=function(t,e,r){if(e===void 0){e=1}if(r===void 0){r=null}if(r===null){r=this.bbox.scale}return p.length2em(t,e,r,this.jax.pxPerEm)};e.prototype.unicodeChars=function(t,e){if(e===void 0){e=this.variant}var r=(0,f.unicodeChars)(t);var i=this.font.getVariant(e);if(i&&i.chars){var n=i.chars;r=r.map((function(t){return((n[t]||[])[3]||{}).smp||t}))}return r};e.prototype.remapChars=function(t){return t};e.prototype.mmlText=function(t){return this.node.factory.create("text").setText(t)};e.prototype.mmlNode=function(t,e,r){if(e===void 0){e={}}if(r===void 0){r=[]}return this.node.factory.create(t,e,r)};e.prototype.createMo=function(t){var e=this.node.factory;var r=e.create("text").setText(t);var i=e.create("mo",{stretchy:true},[r]);i.inheritAttributesFrom(this.node);var n=this.wrap(i);n.parent=this;return n};e.prototype.getVariantChar=function(t,e){var r=this.font.getChar(t,e)||[0,0,0,{unknown:true}];if(r.length===3){r[3]={}}return r};e.kind="unknown";e.styles={};e.removeStyles=["fontSize","fontFamily","fontWeight","fontStyle","fontVariant","font"];e.skipAttributes={fontfamily:true,fontsize:true,fontweight:true,fontstyle:true,color:true,background:true,class:true,href:true,style:true,xmlns:true};e.BOLDVARIANTS={bold:{normal:"bold",italic:"bold-italic",fraktur:"bold-fraktur",script:"bold-script","sans-serif":"bold-sans-serif","sans-serif-italic":"sans-serif-bold-italic"},normal:{bold:"normal","bold-italic":"italic","bold-fraktur":"fraktur","bold-script":"script","bold-sans-serif":"sans-serif","sans-serif-bold-italic":"sans-serif-italic"}};e.ITALICVARIANTS={italic:{normal:"italic",bold:"bold-italic","sans-serif":"sans-serif-italic","bold-sans-serif":"sans-serif-bold-italic"},normal:{italic:"normal","bold-italic":"bold","sans-serif-italic":"sans-serif","sans-serif-bold-italic":"bold-sans-serif"}};return e}(c.AbstractWrapper);e.CommonWrapper=g},49557:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CommonWrapperFactory=void 0;var n=r(56586);var o=function(t){i(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e.jax=null;return e}Object.defineProperty(e.prototype,"Wrappers",{get:function(){return this.node},enumerable:false,configurable:true});e.defaultNodes={};return e}(n.AbstractWrapperFactory);e.CommonWrapperFactory=o},28324:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CommonTeXAtomMixin=void 0;var n=r(18426);function o(t){return function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.computeBBox=function(e,r){if(r===void 0){r=false}t.prototype.computeBBox.call(this,e,r);if(this.childNodes[0]&&this.childNodes[0].bbox.ic){e.ic=this.childNodes[0].bbox.ic}if(this.node.texClass===n.TEXCLASS.VCENTER){var i=e.h,o=e.d;var a=this.font.params.axis_height;var s=(i+o)/2+a-i;e.h+=s;e.d-=s}};return e}(t)}e.CommonTeXAtomMixin=o},2169:function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var i=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.CommonTextNodeMixin=void 0;function o(t){return function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.computeBBox=function(t,e){var r,o;if(e===void 0){e=false}var a=this.parent.variant;var s=this.node.getText();if(a==="-explicitFont"){var l=this.jax.getFontData(this.parent.styles);var h=this.jax.measureText(s,a,l),c=h.w,u=h.h,f=h.d;t.h=u;t.d=f;t.w=c}else{var p=this.remappedText(s,a);t.empty();try{for(var d=i(p),y=d.next();!y.done;y=d.next()){var v=y.value;var m=n(this.getVariantChar(a,v),4),u=m[0],f=m[1],c=m[2],b=m[3];if(b.unknown){var g=this.jax.measureText(String.fromCodePoint(v),a);c=g.w;u=g.h;f=g.d}t.w+=c;if(u>t.h)t.h=u;if(f>t.d)t.d=f;t.ic=b.ic||0;t.sk=b.sk||0;t.dx=b.dx||0}}catch(x){r={error:x}}finally{try{if(y&&!y.done&&(o=d.return))o.call(d)}finally{if(r)throw r.error}}if(p.length>1){t.sk=0}t.clean()}};e.prototype.remappedText=function(t,e){var r=this.parent.stretch.c;return r?[r]:this.parent.remapChars(this.unicodeChars(t,e))};e.prototype.getStyles=function(){};e.prototype.getVariant=function(){};e.prototype.getScale=function(){};e.prototype.getSpace=function(){};return e}(t)}e.CommonTextNodeMixin=o},86561:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var l=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CommonMencloseMixin=void 0;var c=a(r(77988));var u=r(33353);function f(t){return function(t){i(e,t);function e(){var e=[];for(var r=0;r.001?a:0};e.prototype.getArgMod=function(t,e){return[Math.atan2(e,t),Math.sqrt(t*t+e*e)]};e.prototype.arrow=function(t,e,r,i,n){if(i===void 0){i=""}if(n===void 0){n=0}return null};e.prototype.arrowData=function(){var t=s([this.padding,this.thickness],2),e=t[0],r=t[1];var i=r*(this.arrowhead.x+Math.max(1,this.arrowhead.dx));var n=this.childNodes[0].getBBox(),o=n.h,a=n.d,l=n.w;var h=o+a;var c=Math.sqrt(h*h+l*l);var u=Math.max(e,i*l/c);var f=Math.max(e,i*h/c);var p=s(this.getArgMod(l+2*u,h+2*f),2),d=p[0],y=p[1];return{a:d,W:y,x:u,y:f}};e.prototype.arrowAW=function(){var t=this.childNodes[0].getBBox(),e=t.h,r=t.d,i=t.w;var n=s(this.TRBL,4),o=n[0],a=n[1],l=n[2],h=n[3];return this.getArgMod(h+i+a,o+e+r+l)};e.prototype.createMsqrt=function(t){var e=this.node.factory;var r=e.create("msqrt");r.inheritAttributesFrom(this.node);r.childNodes[0]=t.node;var i=this.wrap(r);i.parent=this;return i};e.prototype.sqrtTRBL=function(){var t=this.msqrt.getBBox();var e=this.msqrt.childNodes[0].getBBox();return[t.h-e.h,0,t.d-e.d,t.w-e.w]};return e}(t)}e.CommonMencloseMixin=f},5043:function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var n=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CommonMfencedMixin=void 0;function a(t){return function(t){r(e,t);function e(){var e=[];for(var r=0;r0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var n=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var n=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CommonMmultiscriptsMixin=e.ScriptNames=e.NextScript=void 0;var s=r(83292);e.NextScript={base:"subList",subList:"supList",supList:"subList",psubList:"psupList",psupList:"psubList"};e.ScriptNames=["sup","sup","psup","psub"];function l(t){return function(t){i(r,t);function r(){var e=[];for(var r=0;re.length){e.push(s.BBox.empty())}};r.prototype.combineBBoxLists=function(t,e,r,i){for(var o=0;ot.h)t.h=l;if(h>t.d)t.d=h;if(f>e.h)e.h=f;if(p>e.d)e.d=p}};r.prototype.getScaledWHD=function(t){var e=t.w,r=t.h,i=t.d,n=t.rscale;return[e*n,r*n,i*n]};r.prototype.getUVQ=function(e,r){var i;if(!this.UVQ){var o=n([0,0,0],3),a=o[0],s=o[1],l=o[2];if(e.h===0&&e.d===0){a=this.getU()}else if(r.h===0&&r.d===0){a=-this.getV()}else{i=n(t.prototype.getUVQ.call(this,e,r),3),a=i[0],s=i[1],l=i[2]}this.UVQ=[a,s,l]}return this.UVQ};return r}(t)}e.CommonMmultiscriptsMixin=l},72309:function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CommonMnMixin=void 0;function i(t){return function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.remapChars=function(t){if(t.length){var e=this.font.getRemappedChar("mn",t[0]);if(e){var r=this.unicodeChars(e,this.variant);if(r.length===1){t[0]=r[0]}else{t=r.concat(t.slice(1))}}}return t};return e}(t)}e.CommonMnMixin=i},9579:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__assign||function(){n=Object.assign||function(t){for(var e,r=1,i=arguments.length;r0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var a=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var l;Object.defineProperty(e,"__esModule",{value:true});e.CommonMoMixin=e.DirectionVH=void 0;var h=r(83292);var c=r(33353);var u=r(88284);e.DirectionVH=(l={},l[1]="v",l[2]="h",l);function f(t){return function(t){i(e,t);function e(){var e=[];for(var r=0;r=0)){t.w=0}};e.prototype.protoBBox=function(e){var r=this.stretch.dir!==0;if(r&&this.size===null){this.getStretchedVariant([0])}if(r&&this.size<0)return;t.prototype.computeBBox.call(this,e);this.copySkewIC(e)};e.prototype.getAccentOffset=function(){var t=h.BBox.empty();this.protoBBox(t);return-t.w/2};e.prototype.getCenterOffset=function(e){if(e===void 0){e=null}if(!e){e=h.BBox.empty();t.prototype.computeBBox.call(this,e)}return(e.h+e.d)/2+this.font.params.axis_height-e.h};e.prototype.getVariant=function(){if(this.node.attributes.get("largeop")){this.variant=this.node.attributes.get("displaystyle")?"-largeop":"-smallop";return}if(!this.node.attributes.getExplicit("mathvariant")&&this.node.getProperty("pseudoscript")===false){this.variant="-tex-variant";return}t.prototype.getVariant.call(this)};e.prototype.canStretch=function(t){if(this.stretch.dir!==0){return this.stretch.dir===t}var e=this.node.attributes;if(!e.get("stretchy"))return false;var r=this.getText();if(Array.from(r).length!==1)return false;var i=this.font.getDelimiter(r.codePointAt(0));this.stretch=i&&i.dir===t?i:u.NOSTRETCH;return this.stretch.dir!==0};e.prototype.getStretchedVariant=function(t,e){var r,i;if(e===void 0){e=false}if(this.stretch.dir!==0){var o=this.getWH(t);var a=this.getSize("minsize",0);var l=this.getSize("maxsize",Infinity);var h=this.node.getProperty("mathaccent");o=Math.max(a,Math.min(l,o));var c=this.font.params.delimiterfactor/1e3;var u=this.font.params.delimitershortfall;var f=a||e?o:h?Math.min(o/c,o+u):Math.max(o*c,o-u);var p=this.stretch;var d=p.c||this.getText().codePointAt(0);var y=0;if(p.sizes){try{for(var v=s(p.sizes),m=v.next();!m.done;m=v.next()){var b=m.value;if(b>=f){if(h&&y){y--}this.variant=this.font.getSizeVariant(d,y);this.size=y;if(p.schar&&p.schar[y]){this.stretch=n(n({},this.stretch),{c:p.schar[y]})}return}y++}}catch(g){r={error:g}}finally{try{if(m&&!m.done&&(i=v.return))i.call(v)}finally{if(r)throw r.error}}}if(p.stretch){this.size=-1;this.invalidateBBox();this.getStretchBBox(t,this.checkExtendedHeight(o,p),p)}else{this.variant=this.font.getSizeVariant(d,y-1);this.size=y-1}}};e.prototype.getSize=function(t,e){var r=this.node.attributes;if(r.isSet(t)){e=this.length2em(r.get(t),1,1)}return e};e.prototype.getWH=function(t){if(t.length===0)return 0;if(t.length===1)return t[0];var e=o(t,2),r=e[0],i=e[1];var n=this.font.params.axis_height;return this.node.attributes.get("symmetric")?2*Math.max(r-n,i+n):r+i};e.prototype.getStretchBBox=function(t,e,r){var i;if(r.hasOwnProperty("min")&&r.min>e){e=r.min}var n=o(r.HDW,3),a=n[0],s=n[1],l=n[2];if(this.stretch.dir===1){i=o(this.getBaseline(t,e,r),2),a=i[0],s=i[1]}else{l=e}this.bbox.h=a;this.bbox.d=s;this.bbox.w=l};e.prototype.getBaseline=function(t,e,r){var i=t.length===2&&t[0]+t[1]===e;var n=this.node.attributes.get("symmetric");var a=o(i?t:[e,0],2),s=a[0],l=a[1];var h=o([s+l,0],2),c=h[0],u=h[1];if(n){var f=this.font.params.axis_height;if(i){c=2*Math.max(s-f,l+f)}u=c/2-f}else if(i){u=l}else{var p=o(r.HDW||[.75,.25],2),d=p[0],y=p[1];u=y*(c/(d+y))}return[c-u,u]};e.prototype.checkExtendedHeight=function(t,e){if(e.fullExt){var r=o(e.fullExt,2),i=r[0],n=r[1];var a=Math.ceil(Math.max(0,t-n)/i);t=n+a*i}return t};e.prototype.remapChars=function(t){var e=this.node.getProperty("primes");if(e){return(0,c.unicodeChars)(e)}if(t.length===1){var r=this.node.coreParent().parent;var i=this.isAccent&&!r.isKind("mrow");var n=i?"accent":"mo";var o=this.font.getRemappedChar(n,t[0]);if(o){t=this.unicodeChars(o,this.variant)}}return t};return e}(t)}e.CommonMoMixin=f},50303:function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.CommonMpaddedMixin=void 0;function n(t){return function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.getDimens=function(){var t=this.node.attributes.getList("width","height","depth","lspace","voffset");var e=this.childNodes[0].getBBox();var r=e.w,i=e.h,n=e.d;var o=r,a=i,s=n,l=0,h=0,c=0;if(t.width!=="")r=this.dimen(t.width,e,"w",0);if(t.height!=="")i=this.dimen(t.height,e,"h",0);if(t.depth!=="")n=this.dimen(t.depth,e,"d",0);if(t.voffset!=="")h=this.dimen(t.voffset,e);if(t.lspace!=="")l=this.dimen(t.lspace,e);var u=this.node.attributes.get("data-align");if(u){c=this.getAlignX(r,e,u)}return[a,s,o,i-a,n-s,r-o,l,h,c]};e.prototype.dimen=function(t,e,r,i){if(r===void 0){r=""}if(i===void 0){i=null}t=String(t);var n=t.match(/width|height|depth/);var o=n?e[n[0].charAt(0)]:r?e[r]:0;var a=this.length2em(t,o)||0;if(t.match(/^[-+]/)&&r){a+=o}if(i!=null){a=Math.max(i,a)}return a};e.prototype.computeBBox=function(t,e){if(e===void 0){e=false}var r=i(this.getDimens(),6),n=r[0],o=r[1],a=r[2],s=r[3],l=r[4],h=r[5];t.w=a+h;t.h=n+s;t.d=o+l;this.setChildPWidths(e,t.w)};e.prototype.getWrapWidth=function(t){return this.getBBox().w};e.prototype.getChildAlign=function(t){return this.node.attributes.get("data-align")||"left"};return e}(t)}e.CommonMpaddedMixin=n},62315:function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CommonMrootMixin=void 0;function i(t){return function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"surd",{get:function(){return 2},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"root",{get:function(){return 1},enumerable:false,configurable:true});e.prototype.combineRootBBox=function(t,e,r){var i=this.childNodes[this.root].getOuterBBox();var n=this.getRootDimens(e,r)[1];t.combine(i,0,n)};e.prototype.getRootDimens=function(t,e){var r=this.childNodes[this.surd];var i=this.childNodes[this.root].getOuterBBox();var n=(r.size<0?.5:.6)*t.w;var o=i.w,a=i.rscale;var s=Math.max(o,n/a);var l=Math.max(0,s-o);var h=this.rootHeight(i,t,r.size,e);var c=s*a-n;return[c,h,l]};e.prototype.rootHeight=function(t,e,r,i){var n=e.h+e.d;var o=(r<0?1.9:.55*n)-(n-i);return o+Math.max(0,t.d*t.rscale)};return e}(t)}e.CommonMrootMixin=i},33257:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CommonInferredMrowMixin=e.CommonMrowMixin=void 0;var s=r(83292);function l(t){return function(t){i(e,t);function e(){var e,r;var i=[];for(var l=0;l1){var p=0,d=0;var y=u>1&&u===f;try{for(var v=a(this.childNodes),m=v.next();!m.done;m=v.next()){var c=m.value;var b=c.stretch.dir===0;if(y||b){var g=c.getOuterBBox(b),x=g.h,w=g.d,_=g.rscale;x*=_;w*=_;if(x>p)p=x;if(w>d)d=w}}}catch(S){r={error:S}}finally{try{if(m&&!m.done&&(i=v.return))i.call(v)}finally{if(r)throw r.error}}try{for(var M=a(s),j=M.next();!j.done;j=M.next()){var c=j.value;c.coreMO().getStretchedVariant([p,d])}}catch(O){n={error:O}}finally{try{if(j&&!j.done&&(o=M.return))o.call(M)}finally{if(n)throw n.error}}}};return e}(t)}e.CommonMrowMixin=l;function h(t){return function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.getScale=function(){this.bbox.scale=this.parent.bbox.scale;this.bbox.rscale=1};return e}(t)}e.CommonInferredMrowMixin=h},23745:function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var n=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;ithis.surdH?(t.h+t.d-(this.surdH-2*e-r/2))/2:e+r/4;return[r,i]};e.prototype.getRootDimens=function(t,e){return[0,0,0,0]};return e}(t)}e.CommonMsqrtMixin=s},27726:function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.CommonMsubsupMixin=e.CommonMsupMixin=e.CommonMsubMixin=void 0;function n(t){var e;return e=function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"scriptChild",{get:function(){return this.childNodes[this.node.sub]},enumerable:false,configurable:true});e.prototype.getOffset=function(){return[0,-this.getV()]};return e}(t),e.useIC=false,e}e.CommonMsubMixin=n;function o(t){return function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"scriptChild",{get:function(){return this.childNodes[this.node.sup]},enumerable:false,configurable:true});e.prototype.getOffset=function(){var t=this.getAdjustedIc()-(this.baseRemoveIc?0:this.baseIc);return[t,this.getU()]};return e}(t)}e.CommonMsupMixin=o;function a(t){var e;return e=function(t){r(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e.UVQ=null;return e}Object.defineProperty(e.prototype,"subChild",{get:function(){return this.childNodes[this.node.sub]},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"supChild",{get:function(){return this.childNodes[this.node.sup]},enumerable:false,configurable:true});e.prototype.computeBBox=function(t,e){if(e===void 0){e=false}var r=this.baseChild.getOuterBBox();var n=i([this.subChild.getOuterBBox(),this.supChild.getOuterBBox()],2),o=n[0],a=n[1];t.empty();t.append(r);var s=this.getBaseWidth();var l=this.getAdjustedIc();var h=i(this.getUVQ(),2),c=h[0],u=h[1];t.combine(o,s,u);t.combine(a,s+l,c);t.w+=this.font.params.scriptspace;t.clean();this.setChildPWidths(e)};e.prototype.getUVQ=function(t,e){if(t===void 0){t=this.subChild.getOuterBBox()}if(e===void 0){e=this.supChild.getOuterBBox()}var r=this.baseCore.getOuterBBox();if(this.UVQ)return this.UVQ;var n=this.font.params;var o=3*n.rule_thickness;var a=this.length2em(this.node.attributes.get("subscriptshift"),n.sub2);var s=this.baseCharZero(r.d*this.baseScale+n.sub_drop*t.rscale);var l=i([this.getU(),Math.max(s,a)],2),h=l[0],c=l[1];var u=h-e.d*e.rscale-(t.h*t.rscale-c);if(u0){h+=f;c-=f}}h=Math.max(this.length2em(this.node.attributes.get("superscriptshift"),h),h);c=Math.max(this.length2em(this.node.attributes.get("subscriptshift"),c),c);u=h-e.d*e.rscale-(t.h*t.rscale-c);this.UVQ=[h,-c,u];return this.UVQ};return e}(t),e.useIC=false,e}e.CommonMsubsupMixin=a},8747:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CommonMtableMixin=void 0;var s=r(83292);var l=r(33353);var h=r(72125);function c(t){return function(t){i(e,t);function e(){var e=[];for(var r=0;r1){if(e===null){e=0;var m=y>1&&y===v;try{for(var b=a(this.tableRows),g=b.next();!g.done;g=b.next()){var f=g.value;var p=f.getChild(t);if(p){var d=p.childNodes[0];var x=d.stretch.dir===0;if(m||x){var w=d.getBBox(x).w;if(w>e){e=w}}}}}catch(C){n={error:C}}finally{try{if(g&&!g.done&&(o=b.return))o.call(b)}finally{if(n)throw n.error}}}try{for(var _=a(h),M=_.next();!M.done;M=_.next()){var d=M.value;d.coreMO().getStretchedVariant([e])}}catch(S){s={error:S}}finally{try{if(M&&!M.done&&(l=_.return))l.call(_)}finally{if(s)throw s.error}}}};e.prototype.getTableData=function(){if(this.data){return this.data}var t=new Array(this.numRows).fill(0);var e=new Array(this.numRows).fill(0);var r=new Array(this.numCols).fill(0);var i=new Array(this.numRows);var n=new Array(this.numRows);var o=[0];var a=this.tableRows;for(var s=0;sn[r])n[r]=h;if(c>o[r])o[r]=c;if(p>s)s=p;if(a&&u>a[e])a[e]=u;return s};e.prototype.extendHD=function(t,e,r,i){var n=(i-(e[t]+r[t]))/2;if(n<1e-5)return;e[t]+=n;r[t]+=n};e.prototype.recordPWidthCell=function(t,e){if(t.childNodes[0]&&t.childNodes[0].getBBox().pwidth){this.pwidthCells.push([t,e])}};e.prototype.computeBBox=function(t,e){if(e===void 0){e=false}var r=this.getTableData(),i=r.H,o=r.D;var a,s;if(this.node.attributes.get("equalrows")){var c=this.getEqualRowHeight();a=(0,h.sum)([].concat(this.rLines,this.rSpace))+c*this.numRows}else{a=(0,h.sum)(i.concat(o,this.rLines,this.rSpace))}a+=2*(this.fLine+this.fSpace[1]);var u=this.getComputedWidths();s=(0,h.sum)(u.concat(this.cLines,this.cSpace))+2*(this.fLine+this.fSpace[0]);var f=this.node.attributes.get("width");if(f!=="auto"){s=Math.max(this.length2em(f,0)+2*this.fLine,s)}var p=n(this.getBBoxHD(a),2),d=p[0],y=p[1];t.h=d;t.d=y;t.w=s;var v=n(this.getBBoxLR(),2),m=v[0],b=v[1];t.L=m;t.R=b;if(!(0,l.isPercent)(f)){this.setColumnPWidths()}};e.prototype.setChildPWidths=function(t,e,r){var i=this.node.attributes.get("width");if(!(0,l.isPercent)(i))return false;if(!this.hasLabels){this.bbox.pwidth="";this.container.bbox.pwidth=""}var n=this.bbox,o=n.w,a=n.L,s=n.R;var c=this.node.attributes.get("data-width-includes-label");var u=Math.max(o,this.length2em(i,Math.max(e,a+o+s)))-(c?a+s:0);var f=this.node.attributes.get("equalcolumns")?Array(this.numCols).fill(this.percent(1/Math.max(1,this.numCols))):this.getColumnAttributes("columnwidth",0);this.cWidths=this.getColumnWidthsFixed(f,u);var p=this.getComputedWidths();this.pWidth=(0,h.sum)(p.concat(this.cLines,this.cSpace))+2*(this.fLine+this.fSpace[0]);if(this.isTop){this.bbox.w=this.pWidth}this.setColumnPWidths();if(this.pWidth!==o){this.parent.invalidateBBox()}return this.pWidth!==o};e.prototype.setColumnPWidths=function(){var t,e;var r=this.cWidths;try{for(var i=a(this.pwidthCells),o=i.next();!o.done;o=i.next()){var s=n(o.value,2),l=s[0],h=s[1];if(l.setChildPWidths(false,r[h])){l.invalidateBBox();l.getBBox()}}}catch(c){t={error:c}}finally{try{if(o&&!o.done&&(e=i.return))e.call(i)}finally{if(t)throw t.error}}};e.prototype.getBBoxHD=function(t){var e=n(this.getAlignmentRow(),2),r=e[0],i=e[1];if(i===null){var o=this.font.params.axis_height;var a=t/2;var s={top:[0,t],center:[a,a],bottom:[t,0],baseline:[a,a],axis:[a+o,a-o]};return s[r]||[a,a]}else{var l=this.getVerticalPosition(i,r);return[l,t-l]}};e.prototype.getBBoxLR=function(){if(this.hasLabels){var t=this.node.attributes;var e=t.get("side");var r=n(this.getPadAlignShift(e),2),i=r[0],o=r[1];var a=this.hasLabels&&!!t.get("data-width-includes-label");if(a&&this.frame&&this.fSpace[0]){i-=this.fSpace[0]}return o==="center"&&!a?[i,i]:e==="left"?[i,0]:[0,i]}return[0,0]};e.prototype.getPadAlignShift=function(t){var e=this.getTableData().L;var r=this.length2em(this.node.attributes.get("minlabelspacing"));var i=e+r;var o=n(this.styles==null?["",""]:[this.styles.get("padding-left"),this.styles.get("padding-right")],2),a=o[0],s=o[1];if(a||s){i=Math.max(i,this.length2em(a||"0"),this.length2em(s||"0"))}var l=n(this.getAlignShift(),2),h=l[0],c=l[1];if(h===t){c=t==="left"?Math.max(i,c)-i:Math.min(-i,c)+i}return[i,h,c]};e.prototype.getAlignShift=function(){return this.isTop?t.prototype.getAlignShift.call(this):[this.container.getChildAlign(this.containerI),0]};e.prototype.getWidth=function(){return this.pWidth||this.getBBox().w};e.prototype.getEqualRowHeight=function(){var t=this.getTableData(),e=t.H,r=t.D;var i=Array.from(e.keys()).map((function(t){return e[t]+r[t]}));return Math.max.apply(Math,i)};e.prototype.getComputedWidths=function(){var t=this;var e=this.getTableData().W;var r=Array.from(e.keys()).map((function(r){return typeof t.cWidths[r]==="number"?t.cWidths[r]:e[r]}));if(this.node.attributes.get("equalcolumns")){r=Array(r.length).fill((0,h.max)(r))}return r};e.prototype.getColumnWidths=function(){var t=this.node.attributes.get("width");if(this.node.attributes.get("equalcolumns")){return this.getEqualColumns(t)}var e=this.getColumnAttributes("columnwidth",0);if(t==="auto"){return this.getColumnWidthsAuto(e)}if((0,l.isPercent)(t)){return this.getColumnWidthsPercent(e)}return this.getColumnWidthsFixed(e,this.length2em(t))};e.prototype.getEqualColumns=function(t){var e=Math.max(1,this.numCols);var r;if(t==="auto"){var i=this.getTableData().W;r=(0,h.max)(i)}else if((0,l.isPercent)(t)){r=this.percent(1/e)}else{var n=(0,h.sum)([].concat(this.cLines,this.cSpace))+2*this.fSpace[0];r=Math.max(0,this.length2em(t)-n)/e}return Array(this.numCols).fill(r)};e.prototype.getColumnWidthsAuto=function(t){var e=this;return t.map((function(t){if(t==="auto"||t==="fit")return null;if((0,l.isPercent)(t))return t;return e.length2em(t)}))};e.prototype.getColumnWidthsPercent=function(t){var e=this;var r=t.indexOf("fit")>=0;var i=(r?this.getTableData():{W:null}).W;return Array.from(t.keys()).map((function(n){var o=t[n];if(o==="fit")return null;if(o==="auto")return r?i[n]:null;if((0,l.isPercent)(o))return o;return e.length2em(o)}))};e.prototype.getColumnWidthsFixed=function(t,e){var r=this;var i=Array.from(t.keys());var n=i.filter((function(e){return t[e]==="fit"}));var o=i.filter((function(e){return t[e]==="auto"}));var a=n.length||o.length;var s=(a?this.getTableData():{W:null}).W;var l=e-(0,h.sum)([].concat(this.cLines,this.cSpace))-2*this.fSpace[0];var c=l;i.forEach((function(e){var i=t[e];c-=i==="fit"||i==="auto"?s[e]:r.length2em(i,l)}));var u=a&&c>0?c/a:0;return i.map((function(e){var i=t[e];if(i==="fit")return s[e]+u;if(i==="auto")return s[e]+(n.length===0?u:0);return r.length2em(i,l)}))};e.prototype.getVerticalPosition=function(t,e){var r=this.node.attributes.get("equalrows");var i=this.getTableData(),o=i.H,a=i.D;var s=r?this.getEqualRowHeight():0;var l=this.getRowHalfSpacing();var h=this.fLine;for(var c=0;cthis.numRows?null:i-1]};e.prototype.getColumnAttributes=function(t,e){if(e===void 0){e=1}var r=this.numCols-e;var i=this.getAttributeArray(t);if(i.length===0)return null;while(i.lengthr){i.splice(r)}return i};e.prototype.getRowAttributes=function(t,e){if(e===void 0){e=1}var r=this.numRows-e;var i=this.getAttributeArray(t);if(i.length===0)return null;while(i.lengthr){i.splice(r)}return i};e.prototype.getAttributeArray=function(t){var e=this.node.attributes.get(t);if(!e)return[this.node.attributes.getDefault(t)];return(0,l.split)(e)};e.prototype.addEm=function(t,e){var r=this;if(e===void 0){e=1}if(!t)return null;return t.map((function(t){return r.em(t/e)}))};e.prototype.convertLengths=function(t){var e=this;if(!t)return null;return t.map((function(t){return e.length2em(t)}))};return e}(t)}e.CommonMtableMixin=c},32506:function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CommonMtdMixin=void 0;function i(t){return function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"fixesPWidth",{get:function(){return false},enumerable:false,configurable:true});e.prototype.invalidateBBox=function(){this.bboxComputed=false};e.prototype.getWrapWidth=function(t){var e=this.parent.parent;var r=this.parent;var i=this.node.childPosition()-(r.labeled?1:0);return typeof e.cWidths[i]==="number"?e.cWidths[i]:e.getTableData().W[i]};e.prototype.getChildAlign=function(t){return this.node.attributes.get("columnalign")};return e}(t)}e.CommonMtdMixin=i},84894:function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CommonMtextMixin=void 0;function i(t){var e;return e=function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.getVariant=function(){var e=this.jax.options;var r=this.jax.math.outputData;var i=(!!r.merrorFamily||!!e.merrorFont)&&this.node.Parent.isKind("merror");if(!!r.mtextFamily||!!e.mtextFont||i){var n=this.node.attributes.get("mathvariant");var o=this.constructor.INHERITFONTS[n]||this.jax.font.getCssFont(n);var a=o[0]||(i?r.merrorFamily||e.merrorFont:r.mtextFamily||e.mtextFont);this.variant=this.explicitVariant(a,o[2]?"bold":"",o[1]?"italic":"");return}t.prototype.getVariant.call(this)};return e}(t),e.INHERITFONTS={normal:["",false,false],bold:["",false,true],italic:["",true,false],"bold-italic":["",true,true]},e}e.CommonMtextMixin=i},19208:function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var i=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CommonMlabeledtrMixin=e.CommonMtrMixin=void 0;function n(t){return function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"fixesPWidth",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"numCells",{get:function(){return this.childNodes.length},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"labeled",{get:function(){return false},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"tableCells",{get:function(){return this.childNodes},enumerable:false,configurable:true});e.prototype.getChild=function(t){return this.childNodes[t]};e.prototype.getChildBBoxes=function(){return this.childNodes.map((function(t){return t.getBBox()}))};e.prototype.stretchChildren=function(t){var e,r,n,o,a,s;if(t===void 0){t=null}var l=[];var h=this.labeled?this.childNodes.slice(1):this.childNodes;try{for(var c=i(h),u=c.next();!u.done;u=c.next()){var f=u.value;var p=f.childNodes[0];if(p.canStretch(1)){l.push(p)}}}catch(O){e={error:O}}finally{try{if(u&&!u.done&&(r=c.return))r.call(c)}finally{if(e)throw e.error}}var d=l.length;var y=this.childNodes.length;if(d&&y>1){if(t===null){var v=0,m=0;var b=d>1&&d===y;try{for(var g=i(h),x=g.next();!x.done;x=g.next()){var f=x.value;var p=f.childNodes[0];var w=p.stretch.dir===0;if(b||w){var _=p.getBBox(w),M=_.h,j=_.d;if(M>v){v=M}if(j>m){m=j}}}}catch(T){n={error:T}}finally{try{if(x&&!x.done&&(o=g.return))o.call(g)}finally{if(n)throw n.error}}t=[v,m]}try{for(var C=i(l),S=C.next();!S.done;S=C.next()){var p=S.value;p.coreMO().getStretchedVariant(t)}}catch(B){a={error:B}}finally{try{if(S&&!S.done&&(s=C.return))s.call(C)}finally{if(a)throw a.error}}}};return e}(t)}e.CommonMtrMixin=n;function o(t){return function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"numCells",{get:function(){return Math.max(0,this.childNodes.length-1)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"labeled",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"tableCells",{get:function(){return this.childNodes.slice(1)},enumerable:false,configurable:true});e.prototype.getChild=function(t){return this.childNodes[t+1]};e.prototype.getChildBBoxes=function(){return this.childNodes.slice(1).map((function(t){return t.getBBox()}))};return e}(t)}e.CommonMlabeledtrMixin=o},17358:function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var n=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CommonScriptbaseMixin=void 0;var s=r(18426);function l(t){var e;return e=function(t){i(e,t);function e(){var e=[];for(var r=0;r1){var p=0;var d=u>1&&u===f;try{for(var y=a(this.childNodes),v=y.next();!v.done;v=y.next()){var c=v.value;var m=c.stretch.dir===0;if(d||m){var b=c.getOuterBBox(m),g=b.w,x=b.rscale;if(g*x>p)p=g*x}}}catch(j){r={error:j}}finally{try{if(v&&!v.done&&(i=y.return))i.call(y)}finally{if(r)throw r.error}}try{for(var w=a(s),_=w.next();!_.done;_=w.next()){var c=_.value;c.coreMO().getStretchedVariant([p/c.bbox.rscale])}}catch(C){n={error:C}}finally{try{if(_&&!_.done&&(o=w.return))o.call(w)}finally{if(n)throw n.error}}}};return e}(t),e.useIC=true,e}e.CommonScriptbaseMixin=l},44974:function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();Object.defineProperty(e,"__esModule",{value:true});e.CommonSemanticsMixin=void 0;function i(t){return function(t){r(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.computeBBox=function(t,e){if(e===void 0){e=false}if(this.childNodes.length){var r=this.childNodes[0].getBBox(),i=r.w,n=r.h,o=r.d;t.w=i;t.h=n;t.d=o}};return e}(t)}e.CommonSemanticsMixin=i},83292:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:true});e.BBox=void 0;var i=r(77130);var n=function(){function t(t){if(t===void 0){t={w:0,h:-i.BIGDIMEN,d:-i.BIGDIMEN}}this.w=t.w||0;this.h="h"in t?t.h:-i.BIGDIMEN;this.d="d"in t?t.d:-i.BIGDIMEN;this.L=this.R=this.ic=this.sk=this.dx=0;this.scale=this.rscale=1;this.pwidth=""}t.zero=function(){return new t({h:0,d:0,w:0})};t.empty=function(){return new t};t.prototype.empty=function(){this.w=0;this.h=this.d=-i.BIGDIMEN;return this};t.prototype.clean=function(){if(this.w===-i.BIGDIMEN)this.w=0;if(this.h===-i.BIGDIMEN)this.h=0;if(this.d===-i.BIGDIMEN)this.d=0};t.prototype.rescale=function(t){this.w*=t;this.h*=t;this.d*=t};t.prototype.combine=function(t,e,r){if(e===void 0){e=0}if(r===void 0){r=0}var i=t.rscale;var n=e+i*(t.w+t.L+t.R);var o=r+i*t.h;var a=i*t.d-r;if(n>this.w)this.w=n;if(o>this.h)this.h=o;if(a>this.d)this.d=a};t.prototype.append=function(t){var e=t.rscale;this.w+=e*(t.w+t.L+t.R);if(e*t.h>this.h){this.h=e*t.h}if(e*t.d>this.d){this.d=e*t.d}};t.prototype.updateFrom=function(t){this.h=t.h;this.d=t.d;this.w=t.w;if(t.pwidth){this.pwidth=t.pwidth}};t.fullWidth="100%";t.StyleAdjust=[["borderTopWidth","h"],["borderRightWidth","w"],["borderBottomWidth","d"],["borderLeftWidth","w",0],["paddingTop","h"],["paddingRight","w"],["paddingBottom","d"],["paddingLeft","w",0]];return t}();e.BBox=n},64905:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var n=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var a=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i{Object.defineProperty(e,"__esModule",{value:true});e.PrioritizedList=void 0;var r=function(){function t(){this.items=[];this.items=[]}t.prototype[Symbol.iterator]=function(){var t=0;var e=this.items;return{next:function(){return{value:e[t++],done:t>e.length}}}};t.prototype.add=function(e,r){if(r===void 0){r=t.DEFAULTPRIORITY}var i=this.items.length;do{i--}while(i>=0&&r=0&&this.items[e].item!==t);if(e>=0){this.items.splice(e,1)}};t.DEFAULTPRIORITY=5;return t}();e.PrioritizedList=r},24219:function(t,e){var r=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.CssStyles=void 0;var i=function(){function t(t){if(t===void 0){t=null}this.styles={};this.addStyles(t)}Object.defineProperty(t.prototype,"cssText",{get:function(){return this.getStyleString()},enumerable:false,configurable:true});t.prototype.addStyles=function(t){var e,i;if(!t)return;try{for(var n=r(Object.keys(t)),o=n.next();!o.done;o=n.next()){var a=o.value;if(!this.styles[a]){this.styles[a]={}}Object.assign(this.styles[a],t[a])}}catch(s){e={error:s}}finally{try{if(o&&!o.done&&(i=n.return))i.call(n)}finally{if(e)throw e.error}}};t.prototype.removeStyles=function(){var t,e;var i=[];for(var n=0;n=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),n,o=[],a;try{while((e===void 0||e-- >0)&&!(n=i.next()).done)o.push(n.value)}catch(s){a={error:s}}finally{try{if(n&&!n.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return o};var n=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,n=e.length,o;i1){e.shift();r.push(e.shift())}return r}function l(t){var e,i;var n=s(this.styles[t]);if(n.length===0){n.push("")}if(n.length===1){n.push(n[0])}if(n.length===2){n.push(n[0])}if(n.length===3){n.push(n[1])}try{for(var o=r(g.connect[t].children),a=o.next();!a.done;a=o.next()){var l=a.value;this.setStyle(this.childName(t,l),n.shift())}}catch(h){e={error:h}}finally{try{if(a&&!a.done&&(i=o.return))i.call(o)}finally{if(e)throw e.error}}}function h(t){var e,i;var n=g.connect[t].children;var o=[];try{for(var a=r(n),s=a.next();!s.done;s=a.next()){var l=s.value;var h=this.styles[t+"-"+l];if(!h){delete this.styles[t];return}o.push(h)}}catch(c){e={error:c}}finally{try{if(s&&!s.done&&(i=a.return))i.call(a)}finally{if(e)throw e.error}}if(o[3]===o[1]){o.pop();if(o[2]===o[0]){o.pop();if(o[1]===o[0]){o.pop()}}}this.styles[t]=o.join(" ")}function c(t){var e,i;try{for(var n=r(g.connect[t].children),o=n.next();!o.done;o=n.next()){var a=o.value;this.setStyle(this.childName(t,a),this.styles[t])}}catch(s){e={error:s}}finally{try{if(o&&!o.done&&(i=n.return))i.call(n)}finally{if(e)throw e.error}}}function u(t){var e,o;var a=n([],i(g.connect[t].children),false);var s=this.styles[this.childName(t,a.shift())];try{for(var l=r(a),h=l.next();!h.done;h=l.next()){var c=h.value;if(this.styles[this.childName(t,c)]!==s){delete this.styles[t];return}}}catch(u){e={error:u}}finally{try{if(h&&!h.done&&(o=l.return))o.call(l)}finally{if(e)throw e.error}}this.styles[t]=s}var f={width:/^(?:[\d.]+(?:[a-z]+)|thin|medium|thick|inherit|initial|unset)$/,style:/^(?:none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|inherit|initial|unset)$/};function p(t){var e,i,n,o;var a={width:"",style:"",color:""};try{for(var l=r(s(this.styles[t])),h=l.next();!h.done;h=l.next()){var c=h.value;if(c.match(f.width)&&a.width===""){a.width=c}else if(c.match(f.style)&&a.style===""){a.style=c}else{a.color=c}}}catch(y){e={error:y}}finally{try{if(h&&!h.done&&(i=l.return))i.call(l)}finally{if(e)throw e.error}}try{for(var u=r(g.connect[t].children),p=u.next();!p.done;p=u.next()){var d=p.value;this.setStyle(this.childName(t,d),a[d])}}catch(v){n={error:v}}finally{try{if(p&&!p.done&&(o=u.return))o.call(u)}finally{if(n)throw n.error}}}function d(t){var e,i;var n=[];try{for(var o=r(g.connect[t].children),a=o.next();!a.done;a=o.next()){var s=a.value;var l=this.styles[this.childName(t,s)];if(l){n.push(l)}}}catch(h){e={error:h}}finally{try{if(a&&!a.done&&(i=o.return))i.call(o)}finally{if(e)throw e.error}}if(n.length){this.styles[t]=n.join(" ")}else{delete this.styles[t]}}var y={style:/^(?:normal|italic|oblique|inherit|initial|unset)$/,variant:new RegExp("^(?:"+["normal|none","inherit|initial|unset","common-ligatures|no-common-ligatures","discretionary-ligatures|no-discretionary-ligatures","historical-ligatures|no-historical-ligatures","contextual|no-contextual","(?:stylistic|character-variant|swash|ornaments|annotation)\\([^)]*\\)","small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","lining-nums|oldstyle-nums|proportional-nums|tabular-nums","diagonal-fractions|stacked-fractions","ordinal|slashed-zero","jis78|jis83|jis90|jis04|simplified|traditional","full-width|proportional-width","ruby"].join("|")+")$"),weight:/^(?:normal|bold|bolder|lighter|[1-9]00|inherit|initial|unset)$/,stretch:new RegExp("^(?:"+["normal","(?:(?:ultra|extra|semi)-)?condensed","(?:(?:semi|extra|ulta)-)?expanded","inherit|initial|unset"].join("|")+")$"),size:new RegExp("^(?:"+["xx-small|x-small|small|medium|large|x-large|xx-large|larger|smaller","[d.]+%|[d.]+[a-z]+","inherit|initial|unset"].join("|")+")"+"(?:/(?:normal|[d.+](?:%|[a-z]+)?))?$")};function v(t){var e,n,o,a;var l=s(this.styles[t]);var h={style:"",variant:[],weight:"",stretch:"",size:"",family:"","line-height":""};try{for(var c=r(l),u=c.next();!u.done;u=c.next()){var f=u.value;h.family=f;try{for(var p=(o=void 0,r(Object.keys(y))),d=p.next();!d.done;d=p.next()){var v=d.value;if((Array.isArray(h[v])||h[v]==="")&&f.match(y[v])){if(v==="size"){var b=i(f.split(/\//),2),g=b[0],x=b[1];h[v]=g;if(x){h["line-height"]=x}}else if(h.size===""){if(Array.isArray(h[v])){h[v].push(f)}else{h[v]=f}}}}}catch(w){o={error:w}}finally{try{if(d&&!d.done&&(a=p.return))a.call(p)}finally{if(o)throw o.error}}}}catch(_){e={error:_}}finally{try{if(u&&!u.done&&(n=c.return))n.call(c)}finally{if(e)throw e.error}}m(t,h);delete this.styles[t]}function m(t,e){var i,n;try{for(var o=r(g.connect[t].children),a=o.next();!a.done;a=o.next()){var s=a.value;var l=this.childName(t,s);if(Array.isArray(e[s])){var h=e[s];if(h.length){this.styles[l]=h.join(" ")}}else if(e[s]!==""){this.styles[l]=e[s]}}}catch(c){i={error:c}}finally{try{if(a&&!a.done&&(n=o.return))n.call(o)}finally{if(i)throw i.error}}}function b(t){}var g=function(){function t(t){if(t===void 0){t=""}this.parse(t)}Object.defineProperty(t.prototype,"cssText",{get:function(){var t,e;var i=[];try{for(var n=r(Object.keys(this.styles)),o=n.next();!o.done;o=n.next()){var a=o.value;var s=this.parentName(a);if(!this.styles[s]){i.push(a+": "+this.styles[a]+";")}}}catch(l){t={error:l}}finally{try{if(o&&!o.done&&(e=n.return))e.call(n)}finally{if(t)throw t.error}}return i.join(" ")},enumerable:false,configurable:true});t.prototype.set=function(e,r){e=this.normalizeName(e);this.setStyle(e,r);if(t.connect[e]&&!t.connect[e].combine){this.combineChildren(e);delete this.styles[e]}while(e.match(/-/)){e=this.parentName(e);if(!t.connect[e])break;t.connect[e].combine.call(this,e)}};t.prototype.get=function(t){t=this.normalizeName(t);return this.styles.hasOwnProperty(t)?this.styles[t]:""};t.prototype.setStyle=function(e,r){this.styles[e]=r;if(t.connect[e]&&t.connect[e].children){t.connect[e].split.call(this,e)}if(r===""){delete this.styles[e]}};t.prototype.combineChildren=function(e){var i,n;var o=this.parentName(e);try{for(var a=r(t.connect[e].children),s=a.next();!s.done;s=a.next()){var l=s.value;var h=this.childName(o,l);t.connect[h].combine.call(this,h)}}catch(c){i={error:c}}finally{try{if(s&&!s.done&&(n=a.return))n.call(a)}finally{if(i)throw i.error}}};t.prototype.parentName=function(t){var e=t.replace(/-[^-]*$/,"");return t===e?"":e};t.prototype.childName=function(e,r){if(r.match(/-/)){return r}if(t.connect[e]&&!t.connect[e].combine){r+=e.replace(/.*-/,"-");e=this.parentName(e)}return e+"-"+r};t.prototype.normalizeName=function(t){return t.replace(/[A-Z]/g,(function(t){return"-"+t.toLowerCase()}))};t.prototype.parse=function(t){if(t===void 0){t=""}var e=this.constructor.pattern;this.styles={};var r=t.replace(e.comment,"").split(e.style);while(r.length>1){var n=i(r.splice(0,3),3),o=n[0],a=n[1],s=n[2];if(o.match(/[^\s\n]/))return;this.set(a,s)}};t.pattern={style:/([-a-z]+)[\s\n]*:[\s\n]*((?:'[^']*'|"[^"]*"|\n|.)*?)[\s\n]*(?:;|$)/g,comment:/\/\*[^]*?\*\//g};t.connect={padding:{children:o,split:l,combine:h},border:{children:o,split:c,combine:u},"border-top":{children:a,split:p,combine:d},"border-right":{children:a,split:p,combine:d},"border-bottom":{children:a,split:p,combine:d},"border-left":{children:a,split:p,combine:d},"border-width":{children:o,split:l,combine:null},"border-style":{children:o,split:l,combine:null},"border-color":{children:o,split:l,combine:null},font:{children:["style","variant","weight","stretch","line-height","size","family"],split:v,combine:b}};return t}();e.Styles=g},72125:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.max=e.sum=void 0;function r(t){return t.reduce((function(t,e){return t+e}),0)}e.sum=r;function i(t){return t.reduce((function(t,e){return Math.max(t,e)}),0)}e.max=i}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/7511.b381a696cf806983c654.js b/bootcamp/share/jupyter/lab/static/7511.b381a696cf806983c654.js new file mode 100644 index 0000000..c871e49 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/7511.b381a696cf806983c654.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7511],{67511:e=>{!function(t,n){true?e.exports=n():0}(self,(function(){return(()=>{"use strict";var e={6:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LinkComputer=t.WebLinkProvider=void 0,t.WebLinkProvider=class{constructor(e,t,n,i={}){this._terminal=e,this._regex=t,this._handler=n,this._options=i}provideLinks(e,t){const i=n.computeLink(e,this._regex,this._terminal,this._handler);t(this._addCallbacks(i))}_addCallbacks(e){return e.map((e=>(e.leave=this._options.leave,e.hover=(t,n)=>{if(this._options.hover){const{range:i}=e;this._options.hover(t,n,i)}},e)))}};class n{static computeLink(e,t,i,r){const s=new RegExp(t.source,(t.flags||"")+"g"),[o,a]=n._getWindowedLineStrings(e-1,i),l=o.join("");let c;const p=[];for(;c=s.exec(l);){const t=c[0];try{const e=new URL(t),n=decodeURI(e.toString());if(t!==n&&t+"/"!==n)continue}catch(e){continue}const[s,o]=n._mapStrIdx(i,a,0,c.index),[l,d]=n._mapStrIdx(i,s,o,t.length);if(-1===s||-1===o||-1===l||-1===d)continue;const u={start:{x:o+1,y:s+1},end:{x:d,y:l+1}};p.push({range:u,text:t,activate:r})}return p}static _getWindowedLineStrings(e,t){let n,i=e,r=e,s=0,o="";const a=[];if(n=t.buffer.active.getLine(e)){const e=n.translateToString(!0);if(n.isWrapped&&" "!==e[0]){for(s=0;(n=t.buffer.active.getLine(--i))&&s<2048&&(o=n.translateToString(!0),s+=o.length,a.push(o),n.isWrapped&&-1===o.indexOf(" ")););a.reverse()}for(a.push(e),s=0;(n=t.buffer.active.getLine(++r))&&n.isWrapped&&s<2048&&(o=n.translateToString(!0),s+=o.length,a.push(o),-1===o.indexOf(" ")););}return[a,i]}static _mapStrIdx(e,t,n,i){const r=e.buffer.active,s=r.getNullCell();let o=n;for(;i;){const e=r.getLine(t);if(!e)return[-1,-1];for(let n=o;n{var e=i;Object.defineProperty(e,"__esModule",{value:!0}),e.WebLinksAddon=void 0;const t=n(6),r=/https?:[/]{2}[^\s"'!*(){}|\\\^<>`]*[^\s"':,.!?{}|\\\^~\[\]`()<>]/;function s(e,t){const n=window.open();if(n){try{n.opener=null}catch(e){}n.location.href=t}else console.warn("Opening link blocked as opener could not be cleared")}e.WebLinksAddon=class{constructor(e=s,t={}){this._handler=e,this._options=t}activate(e){this._terminal=e;const n=this._options,i=n.urlRegex||r;this._linkProvider=this._terminal.registerLinkProvider(new t.WebLinkProvider(this._terminal,i,this._handler,n))}dispose(){var e;null===(e=this._linkProvider)||void 0===e||e.dispose()}}})(),i})()}))}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/7517.f3e5d420f4af90d442dd.js b/bootcamp/share/jupyter/lab/static/7517.f3e5d420f4af90d442dd.js new file mode 100644 index 0000000..c0f09b8 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/7517.f3e5d420f4af90d442dd.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7517],{27594:(e,f,o)=>{o.d(f,{Z:()=>X});var t=o(8081);var n=o.n(t);var a=o(23645);var r=o.n(a);var c=o(61667);var i=o.n(c);var b=new URL(o(3669),o.b);var s=new URL(o(32966),o.b);var l=new URL(o(35229),o.b);var d=new URL(o(49025),o.b);var m=new URL(o(28116),o.b);var p=new URL(o(50965),o.b);var h=new URL(o(76637),o.b);var u=new URL(o(1338),o.b);var g=new URL(o(36901),o.b);var w=new URL(o(5255),o.b);var y=new URL(o(88231),o.b);var v=new URL(o(86165),o.b);var F=new URL(o(33983),o.b);var x=new URL(o(15778),o.b);var k=new URL(o(21369),o.b);var _=r()(n());var A=i()(b);var T=i()(b,{hash:"?#iefix"});var q=i()(s);var I=i()(l);var z=i()(d);var B=i()(m,{hash:"#fontawesome"});var O=i()(p);var R=i()(p,{hash:"?#iefix"});var j=i()(h);var L=i()(u);var E=i()(g);var S=i()(w,{hash:"#fontawesome"});var C=i()(y);var N=i()(y,{hash:"?#iefix"});var U=i()(v);var M=i()(F);var D=i()(x);var Z=i()(k,{hash:"#fontawesome"});_.push([e.id,'/*!\n * Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com\n * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)\n */\n.fa,.fab,.fad,.fal,.far,.fas{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-block;font-style:normal;font-variant:normal;text-rendering:auto;line-height:1}.fa-lg{font-size:1.33333em;line-height:.75em;vertical-align:-.0667em}.fa-xs{font-size:.75em}.fa-sm{font-size:.875em}.fa-1x{font-size:1em}.fa-2x{font-size:2em}.fa-3x{font-size:3em}.fa-4x{font-size:4em}.fa-5x{font-size:5em}.fa-6x{font-size:6em}.fa-7x{font-size:7em}.fa-8x{font-size:8em}.fa-9x{font-size:9em}.fa-10x{font-size:10em}.fa-fw{text-align:center;width:1.25em}.fa-ul{list-style-type:none;margin-left:2.5em;padding-left:0}.fa-ul>li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical,.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1);transform:scale(-1)}:root .fa-flip-both,:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{-webkit-filter:none;filter:none}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-500px:before{content:"\\f26e"}.fa-accessible-icon:before{content:"\\f368"}.fa-accusoft:before{content:"\\f369"}.fa-acquisitions-incorporated:before{content:"\\f6af"}.fa-ad:before{content:"\\f641"}.fa-address-book:before{content:"\\f2b9"}.fa-address-card:before{content:"\\f2bb"}.fa-adjust:before{content:"\\f042"}.fa-adn:before{content:"\\f170"}.fa-adversal:before{content:"\\f36a"}.fa-affiliatetheme:before{content:"\\f36b"}.fa-air-freshener:before{content:"\\f5d0"}.fa-airbnb:before{content:"\\f834"}.fa-algolia:before{content:"\\f36c"}.fa-align-center:before{content:"\\f037"}.fa-align-justify:before{content:"\\f039"}.fa-align-left:before{content:"\\f036"}.fa-align-right:before{content:"\\f038"}.fa-alipay:before{content:"\\f642"}.fa-allergies:before{content:"\\f461"}.fa-amazon:before{content:"\\f270"}.fa-amazon-pay:before{content:"\\f42c"}.fa-ambulance:before{content:"\\f0f9"}.fa-american-sign-language-interpreting:before{content:"\\f2a3"}.fa-amilia:before{content:"\\f36d"}.fa-anchor:before{content:"\\f13d"}.fa-android:before{content:"\\f17b"}.fa-angellist:before{content:"\\f209"}.fa-angle-double-down:before{content:"\\f103"}.fa-angle-double-left:before{content:"\\f100"}.fa-angle-double-right:before{content:"\\f101"}.fa-angle-double-up:before{content:"\\f102"}.fa-angle-down:before{content:"\\f107"}.fa-angle-left:before{content:"\\f104"}.fa-angle-right:before{content:"\\f105"}.fa-angle-up:before{content:"\\f106"}.fa-angry:before{content:"\\f556"}.fa-angrycreative:before{content:"\\f36e"}.fa-angular:before{content:"\\f420"}.fa-ankh:before{content:"\\f644"}.fa-app-store:before{content:"\\f36f"}.fa-app-store-ios:before{content:"\\f370"}.fa-apper:before{content:"\\f371"}.fa-apple:before{content:"\\f179"}.fa-apple-alt:before{content:"\\f5d1"}.fa-apple-pay:before{content:"\\f415"}.fa-archive:before{content:"\\f187"}.fa-archway:before{content:"\\f557"}.fa-arrow-alt-circle-down:before{content:"\\f358"}.fa-arrow-alt-circle-left:before{content:"\\f359"}.fa-arrow-alt-circle-right:before{content:"\\f35a"}.fa-arrow-alt-circle-up:before{content:"\\f35b"}.fa-arrow-circle-down:before{content:"\\f0ab"}.fa-arrow-circle-left:before{content:"\\f0a8"}.fa-arrow-circle-right:before{content:"\\f0a9"}.fa-arrow-circle-up:before{content:"\\f0aa"}.fa-arrow-down:before{content:"\\f063"}.fa-arrow-left:before{content:"\\f060"}.fa-arrow-right:before{content:"\\f061"}.fa-arrow-up:before{content:"\\f062"}.fa-arrows-alt:before{content:"\\f0b2"}.fa-arrows-alt-h:before{content:"\\f337"}.fa-arrows-alt-v:before{content:"\\f338"}.fa-artstation:before{content:"\\f77a"}.fa-assistive-listening-systems:before{content:"\\f2a2"}.fa-asterisk:before{content:"\\f069"}.fa-asymmetrik:before{content:"\\f372"}.fa-at:before{content:"\\f1fa"}.fa-atlas:before{content:"\\f558"}.fa-atlassian:before{content:"\\f77b"}.fa-atom:before{content:"\\f5d2"}.fa-audible:before{content:"\\f373"}.fa-audio-description:before{content:"\\f29e"}.fa-autoprefixer:before{content:"\\f41c"}.fa-avianex:before{content:"\\f374"}.fa-aviato:before{content:"\\f421"}.fa-award:before{content:"\\f559"}.fa-aws:before{content:"\\f375"}.fa-baby:before{content:"\\f77c"}.fa-baby-carriage:before{content:"\\f77d"}.fa-backspace:before{content:"\\f55a"}.fa-backward:before{content:"\\f04a"}.fa-bacon:before{content:"\\f7e5"}.fa-bacteria:before{content:"\\e059"}.fa-bacterium:before{content:"\\e05a"}.fa-bahai:before{content:"\\f666"}.fa-balance-scale:before{content:"\\f24e"}.fa-balance-scale-left:before{content:"\\f515"}.fa-balance-scale-right:before{content:"\\f516"}.fa-ban:before{content:"\\f05e"}.fa-band-aid:before{content:"\\f462"}.fa-bandcamp:before{content:"\\f2d5"}.fa-barcode:before{content:"\\f02a"}.fa-bars:before{content:"\\f0c9"}.fa-baseball-ball:before{content:"\\f433"}.fa-basketball-ball:before{content:"\\f434"}.fa-bath:before{content:"\\f2cd"}.fa-battery-empty:before{content:"\\f244"}.fa-battery-full:before{content:"\\f240"}.fa-battery-half:before{content:"\\f242"}.fa-battery-quarter:before{content:"\\f243"}.fa-battery-three-quarters:before{content:"\\f241"}.fa-battle-net:before{content:"\\f835"}.fa-bed:before{content:"\\f236"}.fa-beer:before{content:"\\f0fc"}.fa-behance:before{content:"\\f1b4"}.fa-behance-square:before{content:"\\f1b5"}.fa-bell:before{content:"\\f0f3"}.fa-bell-slash:before{content:"\\f1f6"}.fa-bezier-curve:before{content:"\\f55b"}.fa-bible:before{content:"\\f647"}.fa-bicycle:before{content:"\\f206"}.fa-biking:before{content:"\\f84a"}.fa-bimobject:before{content:"\\f378"}.fa-binoculars:before{content:"\\f1e5"}.fa-biohazard:before{content:"\\f780"}.fa-birthday-cake:before{content:"\\f1fd"}.fa-bitbucket:before{content:"\\f171"}.fa-bitcoin:before{content:"\\f379"}.fa-bity:before{content:"\\f37a"}.fa-black-tie:before{content:"\\f27e"}.fa-blackberry:before{content:"\\f37b"}.fa-blender:before{content:"\\f517"}.fa-blender-phone:before{content:"\\f6b6"}.fa-blind:before{content:"\\f29d"}.fa-blog:before{content:"\\f781"}.fa-blogger:before{content:"\\f37c"}.fa-blogger-b:before{content:"\\f37d"}.fa-bluetooth:before{content:"\\f293"}.fa-bluetooth-b:before{content:"\\f294"}.fa-bold:before{content:"\\f032"}.fa-bolt:before{content:"\\f0e7"}.fa-bomb:before{content:"\\f1e2"}.fa-bone:before{content:"\\f5d7"}.fa-bong:before{content:"\\f55c"}.fa-book:before{content:"\\f02d"}.fa-book-dead:before{content:"\\f6b7"}.fa-book-medical:before{content:"\\f7e6"}.fa-book-open:before{content:"\\f518"}.fa-book-reader:before{content:"\\f5da"}.fa-bookmark:before{content:"\\f02e"}.fa-bootstrap:before{content:"\\f836"}.fa-border-all:before{content:"\\f84c"}.fa-border-none:before{content:"\\f850"}.fa-border-style:before{content:"\\f853"}.fa-bowling-ball:before{content:"\\f436"}.fa-box:before{content:"\\f466"}.fa-box-open:before{content:"\\f49e"}.fa-box-tissue:before{content:"\\e05b"}.fa-boxes:before{content:"\\f468"}.fa-braille:before{content:"\\f2a1"}.fa-brain:before{content:"\\f5dc"}.fa-bread-slice:before{content:"\\f7ec"}.fa-briefcase:before{content:"\\f0b1"}.fa-briefcase-medical:before{content:"\\f469"}.fa-broadcast-tower:before{content:"\\f519"}.fa-broom:before{content:"\\f51a"}.fa-brush:before{content:"\\f55d"}.fa-btc:before{content:"\\f15a"}.fa-buffer:before{content:"\\f837"}.fa-bug:before{content:"\\f188"}.fa-building:before{content:"\\f1ad"}.fa-bullhorn:before{content:"\\f0a1"}.fa-bullseye:before{content:"\\f140"}.fa-burn:before{content:"\\f46a"}.fa-buromobelexperte:before{content:"\\f37f"}.fa-bus:before{content:"\\f207"}.fa-bus-alt:before{content:"\\f55e"}.fa-business-time:before{content:"\\f64a"}.fa-buy-n-large:before{content:"\\f8a6"}.fa-buysellads:before{content:"\\f20d"}.fa-calculator:before{content:"\\f1ec"}.fa-calendar:before{content:"\\f133"}.fa-calendar-alt:before{content:"\\f073"}.fa-calendar-check:before{content:"\\f274"}.fa-calendar-day:before{content:"\\f783"}.fa-calendar-minus:before{content:"\\f272"}.fa-calendar-plus:before{content:"\\f271"}.fa-calendar-times:before{content:"\\f273"}.fa-calendar-week:before{content:"\\f784"}.fa-camera:before{content:"\\f030"}.fa-camera-retro:before{content:"\\f083"}.fa-campground:before{content:"\\f6bb"}.fa-canadian-maple-leaf:before{content:"\\f785"}.fa-candy-cane:before{content:"\\f786"}.fa-cannabis:before{content:"\\f55f"}.fa-capsules:before{content:"\\f46b"}.fa-car:before{content:"\\f1b9"}.fa-car-alt:before{content:"\\f5de"}.fa-car-battery:before{content:"\\f5df"}.fa-car-crash:before{content:"\\f5e1"}.fa-car-side:before{content:"\\f5e4"}.fa-caravan:before{content:"\\f8ff"}.fa-caret-down:before{content:"\\f0d7"}.fa-caret-left:before{content:"\\f0d9"}.fa-caret-right:before{content:"\\f0da"}.fa-caret-square-down:before{content:"\\f150"}.fa-caret-square-left:before{content:"\\f191"}.fa-caret-square-right:before{content:"\\f152"}.fa-caret-square-up:before{content:"\\f151"}.fa-caret-up:before{content:"\\f0d8"}.fa-carrot:before{content:"\\f787"}.fa-cart-arrow-down:before{content:"\\f218"}.fa-cart-plus:before{content:"\\f217"}.fa-cash-register:before{content:"\\f788"}.fa-cat:before{content:"\\f6be"}.fa-cc-amazon-pay:before{content:"\\f42d"}.fa-cc-amex:before{content:"\\f1f3"}.fa-cc-apple-pay:before{content:"\\f416"}.fa-cc-diners-club:before{content:"\\f24c"}.fa-cc-discover:before{content:"\\f1f2"}.fa-cc-jcb:before{content:"\\f24b"}.fa-cc-mastercard:before{content:"\\f1f1"}.fa-cc-paypal:before{content:"\\f1f4"}.fa-cc-stripe:before{content:"\\f1f5"}.fa-cc-visa:before{content:"\\f1f0"}.fa-centercode:before{content:"\\f380"}.fa-centos:before{content:"\\f789"}.fa-certificate:before{content:"\\f0a3"}.fa-chair:before{content:"\\f6c0"}.fa-chalkboard:before{content:"\\f51b"}.fa-chalkboard-teacher:before{content:"\\f51c"}.fa-charging-station:before{content:"\\f5e7"}.fa-chart-area:before{content:"\\f1fe"}.fa-chart-bar:before{content:"\\f080"}.fa-chart-line:before{content:"\\f201"}.fa-chart-pie:before{content:"\\f200"}.fa-check:before{content:"\\f00c"}.fa-check-circle:before{content:"\\f058"}.fa-check-double:before{content:"\\f560"}.fa-check-square:before{content:"\\f14a"}.fa-cheese:before{content:"\\f7ef"}.fa-chess:before{content:"\\f439"}.fa-chess-bishop:before{content:"\\f43a"}.fa-chess-board:before{content:"\\f43c"}.fa-chess-king:before{content:"\\f43f"}.fa-chess-knight:before{content:"\\f441"}.fa-chess-pawn:before{content:"\\f443"}.fa-chess-queen:before{content:"\\f445"}.fa-chess-rook:before{content:"\\f447"}.fa-chevron-circle-down:before{content:"\\f13a"}.fa-chevron-circle-left:before{content:"\\f137"}.fa-chevron-circle-right:before{content:"\\f138"}.fa-chevron-circle-up:before{content:"\\f139"}.fa-chevron-down:before{content:"\\f078"}.fa-chevron-left:before{content:"\\f053"}.fa-chevron-right:before{content:"\\f054"}.fa-chevron-up:before{content:"\\f077"}.fa-child:before{content:"\\f1ae"}.fa-chrome:before{content:"\\f268"}.fa-chromecast:before{content:"\\f838"}.fa-church:before{content:"\\f51d"}.fa-circle:before{content:"\\f111"}.fa-circle-notch:before{content:"\\f1ce"}.fa-city:before{content:"\\f64f"}.fa-clinic-medical:before{content:"\\f7f2"}.fa-clipboard:before{content:"\\f328"}.fa-clipboard-check:before{content:"\\f46c"}.fa-clipboard-list:before{content:"\\f46d"}.fa-clock:before{content:"\\f017"}.fa-clone:before{content:"\\f24d"}.fa-closed-captioning:before{content:"\\f20a"}.fa-cloud:before{content:"\\f0c2"}.fa-cloud-download-alt:before{content:"\\f381"}.fa-cloud-meatball:before{content:"\\f73b"}.fa-cloud-moon:before{content:"\\f6c3"}.fa-cloud-moon-rain:before{content:"\\f73c"}.fa-cloud-rain:before{content:"\\f73d"}.fa-cloud-showers-heavy:before{content:"\\f740"}.fa-cloud-sun:before{content:"\\f6c4"}.fa-cloud-sun-rain:before{content:"\\f743"}.fa-cloud-upload-alt:before{content:"\\f382"}.fa-cloudflare:before{content:"\\e07d"}.fa-cloudscale:before{content:"\\f383"}.fa-cloudsmith:before{content:"\\f384"}.fa-cloudversify:before{content:"\\f385"}.fa-cocktail:before{content:"\\f561"}.fa-code:before{content:"\\f121"}.fa-code-branch:before{content:"\\f126"}.fa-codepen:before{content:"\\f1cb"}.fa-codiepie:before{content:"\\f284"}.fa-coffee:before{content:"\\f0f4"}.fa-cog:before{content:"\\f013"}.fa-cogs:before{content:"\\f085"}.fa-coins:before{content:"\\f51e"}.fa-columns:before{content:"\\f0db"}.fa-comment:before{content:"\\f075"}.fa-comment-alt:before{content:"\\f27a"}.fa-comment-dollar:before{content:"\\f651"}.fa-comment-dots:before{content:"\\f4ad"}.fa-comment-medical:before{content:"\\f7f5"}.fa-comment-slash:before{content:"\\f4b3"}.fa-comments:before{content:"\\f086"}.fa-comments-dollar:before{content:"\\f653"}.fa-compact-disc:before{content:"\\f51f"}.fa-compass:before{content:"\\f14e"}.fa-compress:before{content:"\\f066"}.fa-compress-alt:before{content:"\\f422"}.fa-compress-arrows-alt:before{content:"\\f78c"}.fa-concierge-bell:before{content:"\\f562"}.fa-confluence:before{content:"\\f78d"}.fa-connectdevelop:before{content:"\\f20e"}.fa-contao:before{content:"\\f26d"}.fa-cookie:before{content:"\\f563"}.fa-cookie-bite:before{content:"\\f564"}.fa-copy:before{content:"\\f0c5"}.fa-copyright:before{content:"\\f1f9"}.fa-cotton-bureau:before{content:"\\f89e"}.fa-couch:before{content:"\\f4b8"}.fa-cpanel:before{content:"\\f388"}.fa-creative-commons:before{content:"\\f25e"}.fa-creative-commons-by:before{content:"\\f4e7"}.fa-creative-commons-nc:before{content:"\\f4e8"}.fa-creative-commons-nc-eu:before{content:"\\f4e9"}.fa-creative-commons-nc-jp:before{content:"\\f4ea"}.fa-creative-commons-nd:before{content:"\\f4eb"}.fa-creative-commons-pd:before{content:"\\f4ec"}.fa-creative-commons-pd-alt:before{content:"\\f4ed"}.fa-creative-commons-remix:before{content:"\\f4ee"}.fa-creative-commons-sa:before{content:"\\f4ef"}.fa-creative-commons-sampling:before{content:"\\f4f0"}.fa-creative-commons-sampling-plus:before{content:"\\f4f1"}.fa-creative-commons-share:before{content:"\\f4f2"}.fa-creative-commons-zero:before{content:"\\f4f3"}.fa-credit-card:before{content:"\\f09d"}.fa-critical-role:before{content:"\\f6c9"}.fa-crop:before{content:"\\f125"}.fa-crop-alt:before{content:"\\f565"}.fa-cross:before{content:"\\f654"}.fa-crosshairs:before{content:"\\f05b"}.fa-crow:before{content:"\\f520"}.fa-crown:before{content:"\\f521"}.fa-crutch:before{content:"\\f7f7"}.fa-css3:before{content:"\\f13c"}.fa-css3-alt:before{content:"\\f38b"}.fa-cube:before{content:"\\f1b2"}.fa-cubes:before{content:"\\f1b3"}.fa-cut:before{content:"\\f0c4"}.fa-cuttlefish:before{content:"\\f38c"}.fa-d-and-d:before{content:"\\f38d"}.fa-d-and-d-beyond:before{content:"\\f6ca"}.fa-dailymotion:before{content:"\\e052"}.fa-dashcube:before{content:"\\f210"}.fa-database:before{content:"\\f1c0"}.fa-deaf:before{content:"\\f2a4"}.fa-deezer:before{content:"\\e077"}.fa-delicious:before{content:"\\f1a5"}.fa-democrat:before{content:"\\f747"}.fa-deploydog:before{content:"\\f38e"}.fa-deskpro:before{content:"\\f38f"}.fa-desktop:before{content:"\\f108"}.fa-dev:before{content:"\\f6cc"}.fa-deviantart:before{content:"\\f1bd"}.fa-dharmachakra:before{content:"\\f655"}.fa-dhl:before{content:"\\f790"}.fa-diagnoses:before{content:"\\f470"}.fa-diaspora:before{content:"\\f791"}.fa-dice:before{content:"\\f522"}.fa-dice-d20:before{content:"\\f6cf"}.fa-dice-d6:before{content:"\\f6d1"}.fa-dice-five:before{content:"\\f523"}.fa-dice-four:before{content:"\\f524"}.fa-dice-one:before{content:"\\f525"}.fa-dice-six:before{content:"\\f526"}.fa-dice-three:before{content:"\\f527"}.fa-dice-two:before{content:"\\f528"}.fa-digg:before{content:"\\f1a6"}.fa-digital-ocean:before{content:"\\f391"}.fa-digital-tachograph:before{content:"\\f566"}.fa-directions:before{content:"\\f5eb"}.fa-discord:before{content:"\\f392"}.fa-discourse:before{content:"\\f393"}.fa-disease:before{content:"\\f7fa"}.fa-divide:before{content:"\\f529"}.fa-dizzy:before{content:"\\f567"}.fa-dna:before{content:"\\f471"}.fa-dochub:before{content:"\\f394"}.fa-docker:before{content:"\\f395"}.fa-dog:before{content:"\\f6d3"}.fa-dollar-sign:before{content:"\\f155"}.fa-dolly:before{content:"\\f472"}.fa-dolly-flatbed:before{content:"\\f474"}.fa-donate:before{content:"\\f4b9"}.fa-door-closed:before{content:"\\f52a"}.fa-door-open:before{content:"\\f52b"}.fa-dot-circle:before{content:"\\f192"}.fa-dove:before{content:"\\f4ba"}.fa-download:before{content:"\\f019"}.fa-draft2digital:before{content:"\\f396"}.fa-drafting-compass:before{content:"\\f568"}.fa-dragon:before{content:"\\f6d5"}.fa-draw-polygon:before{content:"\\f5ee"}.fa-dribbble:before{content:"\\f17d"}.fa-dribbble-square:before{content:"\\f397"}.fa-dropbox:before{content:"\\f16b"}.fa-drum:before{content:"\\f569"}.fa-drum-steelpan:before{content:"\\f56a"}.fa-drumstick-bite:before{content:"\\f6d7"}.fa-drupal:before{content:"\\f1a9"}.fa-dumbbell:before{content:"\\f44b"}.fa-dumpster:before{content:"\\f793"}.fa-dumpster-fire:before{content:"\\f794"}.fa-dungeon:before{content:"\\f6d9"}.fa-dyalog:before{content:"\\f399"}.fa-earlybirds:before{content:"\\f39a"}.fa-ebay:before{content:"\\f4f4"}.fa-edge:before{content:"\\f282"}.fa-edge-legacy:before{content:"\\e078"}.fa-edit:before{content:"\\f044"}.fa-egg:before{content:"\\f7fb"}.fa-eject:before{content:"\\f052"}.fa-elementor:before{content:"\\f430"}.fa-ellipsis-h:before{content:"\\f141"}.fa-ellipsis-v:before{content:"\\f142"}.fa-ello:before{content:"\\f5f1"}.fa-ember:before{content:"\\f423"}.fa-empire:before{content:"\\f1d1"}.fa-envelope:before{content:"\\f0e0"}.fa-envelope-open:before{content:"\\f2b6"}.fa-envelope-open-text:before{content:"\\f658"}.fa-envelope-square:before{content:"\\f199"}.fa-envira:before{content:"\\f299"}.fa-equals:before{content:"\\f52c"}.fa-eraser:before{content:"\\f12d"}.fa-erlang:before{content:"\\f39d"}.fa-ethereum:before{content:"\\f42e"}.fa-ethernet:before{content:"\\f796"}.fa-etsy:before{content:"\\f2d7"}.fa-euro-sign:before{content:"\\f153"}.fa-evernote:before{content:"\\f839"}.fa-exchange-alt:before{content:"\\f362"}.fa-exclamation:before{content:"\\f12a"}.fa-exclamation-circle:before{content:"\\f06a"}.fa-exclamation-triangle:before{content:"\\f071"}.fa-expand:before{content:"\\f065"}.fa-expand-alt:before{content:"\\f424"}.fa-expand-arrows-alt:before{content:"\\f31e"}.fa-expeditedssl:before{content:"\\f23e"}.fa-external-link-alt:before{content:"\\f35d"}.fa-external-link-square-alt:before{content:"\\f360"}.fa-eye:before{content:"\\f06e"}.fa-eye-dropper:before{content:"\\f1fb"}.fa-eye-slash:before{content:"\\f070"}.fa-facebook:before{content:"\\f09a"}.fa-facebook-f:before{content:"\\f39e"}.fa-facebook-messenger:before{content:"\\f39f"}.fa-facebook-square:before{content:"\\f082"}.fa-fan:before{content:"\\f863"}.fa-fantasy-flight-games:before{content:"\\f6dc"}.fa-fast-backward:before{content:"\\f049"}.fa-fast-forward:before{content:"\\f050"}.fa-faucet:before{content:"\\e005"}.fa-fax:before{content:"\\f1ac"}.fa-feather:before{content:"\\f52d"}.fa-feather-alt:before{content:"\\f56b"}.fa-fedex:before{content:"\\f797"}.fa-fedora:before{content:"\\f798"}.fa-female:before{content:"\\f182"}.fa-fighter-jet:before{content:"\\f0fb"}.fa-figma:before{content:"\\f799"}.fa-file:before{content:"\\f15b"}.fa-file-alt:before{content:"\\f15c"}.fa-file-archive:before{content:"\\f1c6"}.fa-file-audio:before{content:"\\f1c7"}.fa-file-code:before{content:"\\f1c9"}.fa-file-contract:before{content:"\\f56c"}.fa-file-csv:before{content:"\\f6dd"}.fa-file-download:before{content:"\\f56d"}.fa-file-excel:before{content:"\\f1c3"}.fa-file-export:before{content:"\\f56e"}.fa-file-image:before{content:"\\f1c5"}.fa-file-import:before{content:"\\f56f"}.fa-file-invoice:before{content:"\\f570"}.fa-file-invoice-dollar:before{content:"\\f571"}.fa-file-medical:before{content:"\\f477"}.fa-file-medical-alt:before{content:"\\f478"}.fa-file-pdf:before{content:"\\f1c1"}.fa-file-powerpoint:before{content:"\\f1c4"}.fa-file-prescription:before{content:"\\f572"}.fa-file-signature:before{content:"\\f573"}.fa-file-upload:before{content:"\\f574"}.fa-file-video:before{content:"\\f1c8"}.fa-file-word:before{content:"\\f1c2"}.fa-fill:before{content:"\\f575"}.fa-fill-drip:before{content:"\\f576"}.fa-film:before{content:"\\f008"}.fa-filter:before{content:"\\f0b0"}.fa-fingerprint:before{content:"\\f577"}.fa-fire:before{content:"\\f06d"}.fa-fire-alt:before{content:"\\f7e4"}.fa-fire-extinguisher:before{content:"\\f134"}.fa-firefox:before{content:"\\f269"}.fa-firefox-browser:before{content:"\\e007"}.fa-first-aid:before{content:"\\f479"}.fa-first-order:before{content:"\\f2b0"}.fa-first-order-alt:before{content:"\\f50a"}.fa-firstdraft:before{content:"\\f3a1"}.fa-fish:before{content:"\\f578"}.fa-fist-raised:before{content:"\\f6de"}.fa-flag:before{content:"\\f024"}.fa-flag-checkered:before{content:"\\f11e"}.fa-flag-usa:before{content:"\\f74d"}.fa-flask:before{content:"\\f0c3"}.fa-flickr:before{content:"\\f16e"}.fa-flipboard:before{content:"\\f44d"}.fa-flushed:before{content:"\\f579"}.fa-fly:before{content:"\\f417"}.fa-folder:before{content:"\\f07b"}.fa-folder-minus:before{content:"\\f65d"}.fa-folder-open:before{content:"\\f07c"}.fa-folder-plus:before{content:"\\f65e"}.fa-font:before{content:"\\f031"}.fa-font-awesome:before{content:"\\f2b4"}.fa-font-awesome-alt:before{content:"\\f35c"}.fa-font-awesome-flag:before{content:"\\f425"}.fa-font-awesome-logo-full:before{content:"\\f4e6"}.fa-fonticons:before{content:"\\f280"}.fa-fonticons-fi:before{content:"\\f3a2"}.fa-football-ball:before{content:"\\f44e"}.fa-fort-awesome:before{content:"\\f286"}.fa-fort-awesome-alt:before{content:"\\f3a3"}.fa-forumbee:before{content:"\\f211"}.fa-forward:before{content:"\\f04e"}.fa-foursquare:before{content:"\\f180"}.fa-free-code-camp:before{content:"\\f2c5"}.fa-freebsd:before{content:"\\f3a4"}.fa-frog:before{content:"\\f52e"}.fa-frown:before{content:"\\f119"}.fa-frown-open:before{content:"\\f57a"}.fa-fulcrum:before{content:"\\f50b"}.fa-funnel-dollar:before{content:"\\f662"}.fa-futbol:before{content:"\\f1e3"}.fa-galactic-republic:before{content:"\\f50c"}.fa-galactic-senate:before{content:"\\f50d"}.fa-gamepad:before{content:"\\f11b"}.fa-gas-pump:before{content:"\\f52f"}.fa-gavel:before{content:"\\f0e3"}.fa-gem:before{content:"\\f3a5"}.fa-genderless:before{content:"\\f22d"}.fa-get-pocket:before{content:"\\f265"}.fa-gg:before{content:"\\f260"}.fa-gg-circle:before{content:"\\f261"}.fa-ghost:before{content:"\\f6e2"}.fa-gift:before{content:"\\f06b"}.fa-gifts:before{content:"\\f79c"}.fa-git:before{content:"\\f1d3"}.fa-git-alt:before{content:"\\f841"}.fa-git-square:before{content:"\\f1d2"}.fa-github:before{content:"\\f09b"}.fa-github-alt:before{content:"\\f113"}.fa-github-square:before{content:"\\f092"}.fa-gitkraken:before{content:"\\f3a6"}.fa-gitlab:before{content:"\\f296"}.fa-gitter:before{content:"\\f426"}.fa-glass-cheers:before{content:"\\f79f"}.fa-glass-martini:before{content:"\\f000"}.fa-glass-martini-alt:before{content:"\\f57b"}.fa-glass-whiskey:before{content:"\\f7a0"}.fa-glasses:before{content:"\\f530"}.fa-glide:before{content:"\\f2a5"}.fa-glide-g:before{content:"\\f2a6"}.fa-globe:before{content:"\\f0ac"}.fa-globe-africa:before{content:"\\f57c"}.fa-globe-americas:before{content:"\\f57d"}.fa-globe-asia:before{content:"\\f57e"}.fa-globe-europe:before{content:"\\f7a2"}.fa-gofore:before{content:"\\f3a7"}.fa-golf-ball:before{content:"\\f450"}.fa-goodreads:before{content:"\\f3a8"}.fa-goodreads-g:before{content:"\\f3a9"}.fa-google:before{content:"\\f1a0"}.fa-google-drive:before{content:"\\f3aa"}.fa-google-pay:before{content:"\\e079"}.fa-google-play:before{content:"\\f3ab"}.fa-google-plus:before{content:"\\f2b3"}.fa-google-plus-g:before{content:"\\f0d5"}.fa-google-plus-square:before{content:"\\f0d4"}.fa-google-wallet:before{content:"\\f1ee"}.fa-gopuram:before{content:"\\f664"}.fa-graduation-cap:before{content:"\\f19d"}.fa-gratipay:before{content:"\\f184"}.fa-grav:before{content:"\\f2d6"}.fa-greater-than:before{content:"\\f531"}.fa-greater-than-equal:before{content:"\\f532"}.fa-grimace:before{content:"\\f57f"}.fa-grin:before{content:"\\f580"}.fa-grin-alt:before{content:"\\f581"}.fa-grin-beam:before{content:"\\f582"}.fa-grin-beam-sweat:before{content:"\\f583"}.fa-grin-hearts:before{content:"\\f584"}.fa-grin-squint:before{content:"\\f585"}.fa-grin-squint-tears:before{content:"\\f586"}.fa-grin-stars:before{content:"\\f587"}.fa-grin-tears:before{content:"\\f588"}.fa-grin-tongue:before{content:"\\f589"}.fa-grin-tongue-squint:before{content:"\\f58a"}.fa-grin-tongue-wink:before{content:"\\f58b"}.fa-grin-wink:before{content:"\\f58c"}.fa-grip-horizontal:before{content:"\\f58d"}.fa-grip-lines:before{content:"\\f7a4"}.fa-grip-lines-vertical:before{content:"\\f7a5"}.fa-grip-vertical:before{content:"\\f58e"}.fa-gripfire:before{content:"\\f3ac"}.fa-grunt:before{content:"\\f3ad"}.fa-guilded:before{content:"\\e07e"}.fa-guitar:before{content:"\\f7a6"}.fa-gulp:before{content:"\\f3ae"}.fa-h-square:before{content:"\\f0fd"}.fa-hacker-news:before{content:"\\f1d4"}.fa-hacker-news-square:before{content:"\\f3af"}.fa-hackerrank:before{content:"\\f5f7"}.fa-hamburger:before{content:"\\f805"}.fa-hammer:before{content:"\\f6e3"}.fa-hamsa:before{content:"\\f665"}.fa-hand-holding:before{content:"\\f4bd"}.fa-hand-holding-heart:before{content:"\\f4be"}.fa-hand-holding-medical:before{content:"\\e05c"}.fa-hand-holding-usd:before{content:"\\f4c0"}.fa-hand-holding-water:before{content:"\\f4c1"}.fa-hand-lizard:before{content:"\\f258"}.fa-hand-middle-finger:before{content:"\\f806"}.fa-hand-paper:before{content:"\\f256"}.fa-hand-peace:before{content:"\\f25b"}.fa-hand-point-down:before{content:"\\f0a7"}.fa-hand-point-left:before{content:"\\f0a5"}.fa-hand-point-right:before{content:"\\f0a4"}.fa-hand-point-up:before{content:"\\f0a6"}.fa-hand-pointer:before{content:"\\f25a"}.fa-hand-rock:before{content:"\\f255"}.fa-hand-scissors:before{content:"\\f257"}.fa-hand-sparkles:before{content:"\\e05d"}.fa-hand-spock:before{content:"\\f259"}.fa-hands:before{content:"\\f4c2"}.fa-hands-helping:before{content:"\\f4c4"}.fa-hands-wash:before{content:"\\e05e"}.fa-handshake:before{content:"\\f2b5"}.fa-handshake-alt-slash:before{content:"\\e05f"}.fa-handshake-slash:before{content:"\\e060"}.fa-hanukiah:before{content:"\\f6e6"}.fa-hard-hat:before{content:"\\f807"}.fa-hashtag:before{content:"\\f292"}.fa-hat-cowboy:before{content:"\\f8c0"}.fa-hat-cowboy-side:before{content:"\\f8c1"}.fa-hat-wizard:before{content:"\\f6e8"}.fa-hdd:before{content:"\\f0a0"}.fa-head-side-cough:before{content:"\\e061"}.fa-head-side-cough-slash:before{content:"\\e062"}.fa-head-side-mask:before{content:"\\e063"}.fa-head-side-virus:before{content:"\\e064"}.fa-heading:before{content:"\\f1dc"}.fa-headphones:before{content:"\\f025"}.fa-headphones-alt:before{content:"\\f58f"}.fa-headset:before{content:"\\f590"}.fa-heart:before{content:"\\f004"}.fa-heart-broken:before{content:"\\f7a9"}.fa-heartbeat:before{content:"\\f21e"}.fa-helicopter:before{content:"\\f533"}.fa-highlighter:before{content:"\\f591"}.fa-hiking:before{content:"\\f6ec"}.fa-hippo:before{content:"\\f6ed"}.fa-hips:before{content:"\\f452"}.fa-hire-a-helper:before{content:"\\f3b0"}.fa-history:before{content:"\\f1da"}.fa-hive:before{content:"\\e07f"}.fa-hockey-puck:before{content:"\\f453"}.fa-holly-berry:before{content:"\\f7aa"}.fa-home:before{content:"\\f015"}.fa-hooli:before{content:"\\f427"}.fa-hornbill:before{content:"\\f592"}.fa-horse:before{content:"\\f6f0"}.fa-horse-head:before{content:"\\f7ab"}.fa-hospital:before{content:"\\f0f8"}.fa-hospital-alt:before{content:"\\f47d"}.fa-hospital-symbol:before{content:"\\f47e"}.fa-hospital-user:before{content:"\\f80d"}.fa-hot-tub:before{content:"\\f593"}.fa-hotdog:before{content:"\\f80f"}.fa-hotel:before{content:"\\f594"}.fa-hotjar:before{content:"\\f3b1"}.fa-hourglass:before{content:"\\f254"}.fa-hourglass-end:before{content:"\\f253"}.fa-hourglass-half:before{content:"\\f252"}.fa-hourglass-start:before{content:"\\f251"}.fa-house-damage:before{content:"\\f6f1"}.fa-house-user:before{content:"\\e065"}.fa-houzz:before{content:"\\f27c"}.fa-hryvnia:before{content:"\\f6f2"}.fa-html5:before{content:"\\f13b"}.fa-hubspot:before{content:"\\f3b2"}.fa-i-cursor:before{content:"\\f246"}.fa-ice-cream:before{content:"\\f810"}.fa-icicles:before{content:"\\f7ad"}.fa-icons:before{content:"\\f86d"}.fa-id-badge:before{content:"\\f2c1"}.fa-id-card:before{content:"\\f2c2"}.fa-id-card-alt:before{content:"\\f47f"}.fa-ideal:before{content:"\\e013"}.fa-igloo:before{content:"\\f7ae"}.fa-image:before{content:"\\f03e"}.fa-images:before{content:"\\f302"}.fa-imdb:before{content:"\\f2d8"}.fa-inbox:before{content:"\\f01c"}.fa-indent:before{content:"\\f03c"}.fa-industry:before{content:"\\f275"}.fa-infinity:before{content:"\\f534"}.fa-info:before{content:"\\f129"}.fa-info-circle:before{content:"\\f05a"}.fa-innosoft:before{content:"\\e080"}.fa-instagram:before{content:"\\f16d"}.fa-instagram-square:before{content:"\\e055"}.fa-instalod:before{content:"\\e081"}.fa-intercom:before{content:"\\f7af"}.fa-internet-explorer:before{content:"\\f26b"}.fa-invision:before{content:"\\f7b0"}.fa-ioxhost:before{content:"\\f208"}.fa-italic:before{content:"\\f033"}.fa-itch-io:before{content:"\\f83a"}.fa-itunes:before{content:"\\f3b4"}.fa-itunes-note:before{content:"\\f3b5"}.fa-java:before{content:"\\f4e4"}.fa-jedi:before{content:"\\f669"}.fa-jedi-order:before{content:"\\f50e"}.fa-jenkins:before{content:"\\f3b6"}.fa-jira:before{content:"\\f7b1"}.fa-joget:before{content:"\\f3b7"}.fa-joint:before{content:"\\f595"}.fa-joomla:before{content:"\\f1aa"}.fa-journal-whills:before{content:"\\f66a"}.fa-js:before{content:"\\f3b8"}.fa-js-square:before{content:"\\f3b9"}.fa-jsfiddle:before{content:"\\f1cc"}.fa-kaaba:before{content:"\\f66b"}.fa-kaggle:before{content:"\\f5fa"}.fa-key:before{content:"\\f084"}.fa-keybase:before{content:"\\f4f5"}.fa-keyboard:before{content:"\\f11c"}.fa-keycdn:before{content:"\\f3ba"}.fa-khanda:before{content:"\\f66d"}.fa-kickstarter:before{content:"\\f3bb"}.fa-kickstarter-k:before{content:"\\f3bc"}.fa-kiss:before{content:"\\f596"}.fa-kiss-beam:before{content:"\\f597"}.fa-kiss-wink-heart:before{content:"\\f598"}.fa-kiwi-bird:before{content:"\\f535"}.fa-korvue:before{content:"\\f42f"}.fa-landmark:before{content:"\\f66f"}.fa-language:before{content:"\\f1ab"}.fa-laptop:before{content:"\\f109"}.fa-laptop-code:before{content:"\\f5fc"}.fa-laptop-house:before{content:"\\e066"}.fa-laptop-medical:before{content:"\\f812"}.fa-laravel:before{content:"\\f3bd"}.fa-lastfm:before{content:"\\f202"}.fa-lastfm-square:before{content:"\\f203"}.fa-laugh:before{content:"\\f599"}.fa-laugh-beam:before{content:"\\f59a"}.fa-laugh-squint:before{content:"\\f59b"}.fa-laugh-wink:before{content:"\\f59c"}.fa-layer-group:before{content:"\\f5fd"}.fa-leaf:before{content:"\\f06c"}.fa-leanpub:before{content:"\\f212"}.fa-lemon:before{content:"\\f094"}.fa-less:before{content:"\\f41d"}.fa-less-than:before{content:"\\f536"}.fa-less-than-equal:before{content:"\\f537"}.fa-level-down-alt:before{content:"\\f3be"}.fa-level-up-alt:before{content:"\\f3bf"}.fa-life-ring:before{content:"\\f1cd"}.fa-lightbulb:before{content:"\\f0eb"}.fa-line:before{content:"\\f3c0"}.fa-link:before{content:"\\f0c1"}.fa-linkedin:before{content:"\\f08c"}.fa-linkedin-in:before{content:"\\f0e1"}.fa-linode:before{content:"\\f2b8"}.fa-linux:before{content:"\\f17c"}.fa-lira-sign:before{content:"\\f195"}.fa-list:before{content:"\\f03a"}.fa-list-alt:before{content:"\\f022"}.fa-list-ol:before{content:"\\f0cb"}.fa-list-ul:before{content:"\\f0ca"}.fa-location-arrow:before{content:"\\f124"}.fa-lock:before{content:"\\f023"}.fa-lock-open:before{content:"\\f3c1"}.fa-long-arrow-alt-down:before{content:"\\f309"}.fa-long-arrow-alt-left:before{content:"\\f30a"}.fa-long-arrow-alt-right:before{content:"\\f30b"}.fa-long-arrow-alt-up:before{content:"\\f30c"}.fa-low-vision:before{content:"\\f2a8"}.fa-luggage-cart:before{content:"\\f59d"}.fa-lungs:before{content:"\\f604"}.fa-lungs-virus:before{content:"\\e067"}.fa-lyft:before{content:"\\f3c3"}.fa-magento:before{content:"\\f3c4"}.fa-magic:before{content:"\\f0d0"}.fa-magnet:before{content:"\\f076"}.fa-mail-bulk:before{content:"\\f674"}.fa-mailchimp:before{content:"\\f59e"}.fa-male:before{content:"\\f183"}.fa-mandalorian:before{content:"\\f50f"}.fa-map:before{content:"\\f279"}.fa-map-marked:before{content:"\\f59f"}.fa-map-marked-alt:before{content:"\\f5a0"}.fa-map-marker:before{content:"\\f041"}.fa-map-marker-alt:before{content:"\\f3c5"}.fa-map-pin:before{content:"\\f276"}.fa-map-signs:before{content:"\\f277"}.fa-markdown:before{content:"\\f60f"}.fa-marker:before{content:"\\f5a1"}.fa-mars:before{content:"\\f222"}.fa-mars-double:before{content:"\\f227"}.fa-mars-stroke:before{content:"\\f229"}.fa-mars-stroke-h:before{content:"\\f22b"}.fa-mars-stroke-v:before{content:"\\f22a"}.fa-mask:before{content:"\\f6fa"}.fa-mastodon:before{content:"\\f4f6"}.fa-maxcdn:before{content:"\\f136"}.fa-mdb:before{content:"\\f8ca"}.fa-medal:before{content:"\\f5a2"}.fa-medapps:before{content:"\\f3c6"}.fa-medium:before{content:"\\f23a"}.fa-medium-m:before{content:"\\f3c7"}.fa-medkit:before{content:"\\f0fa"}.fa-medrt:before{content:"\\f3c8"}.fa-meetup:before{content:"\\f2e0"}.fa-megaport:before{content:"\\f5a3"}.fa-meh:before{content:"\\f11a"}.fa-meh-blank:before{content:"\\f5a4"}.fa-meh-rolling-eyes:before{content:"\\f5a5"}.fa-memory:before{content:"\\f538"}.fa-mendeley:before{content:"\\f7b3"}.fa-menorah:before{content:"\\f676"}.fa-mercury:before{content:"\\f223"}.fa-meteor:before{content:"\\f753"}.fa-microblog:before{content:"\\e01a"}.fa-microchip:before{content:"\\f2db"}.fa-microphone:before{content:"\\f130"}.fa-microphone-alt:before{content:"\\f3c9"}.fa-microphone-alt-slash:before{content:"\\f539"}.fa-microphone-slash:before{content:"\\f131"}.fa-microscope:before{content:"\\f610"}.fa-microsoft:before{content:"\\f3ca"}.fa-minus:before{content:"\\f068"}.fa-minus-circle:before{content:"\\f056"}.fa-minus-square:before{content:"\\f146"}.fa-mitten:before{content:"\\f7b5"}.fa-mix:before{content:"\\f3cb"}.fa-mixcloud:before{content:"\\f289"}.fa-mixer:before{content:"\\e056"}.fa-mizuni:before{content:"\\f3cc"}.fa-mobile:before{content:"\\f10b"}.fa-mobile-alt:before{content:"\\f3cd"}.fa-modx:before{content:"\\f285"}.fa-monero:before{content:"\\f3d0"}.fa-money-bill:before{content:"\\f0d6"}.fa-money-bill-alt:before{content:"\\f3d1"}.fa-money-bill-wave:before{content:"\\f53a"}.fa-money-bill-wave-alt:before{content:"\\f53b"}.fa-money-check:before{content:"\\f53c"}.fa-money-check-alt:before{content:"\\f53d"}.fa-monument:before{content:"\\f5a6"}.fa-moon:before{content:"\\f186"}.fa-mortar-pestle:before{content:"\\f5a7"}.fa-mosque:before{content:"\\f678"}.fa-motorcycle:before{content:"\\f21c"}.fa-mountain:before{content:"\\f6fc"}.fa-mouse:before{content:"\\f8cc"}.fa-mouse-pointer:before{content:"\\f245"}.fa-mug-hot:before{content:"\\f7b6"}.fa-music:before{content:"\\f001"}.fa-napster:before{content:"\\f3d2"}.fa-neos:before{content:"\\f612"}.fa-network-wired:before{content:"\\f6ff"}.fa-neuter:before{content:"\\f22c"}.fa-newspaper:before{content:"\\f1ea"}.fa-nimblr:before{content:"\\f5a8"}.fa-node:before{content:"\\f419"}.fa-node-js:before{content:"\\f3d3"}.fa-not-equal:before{content:"\\f53e"}.fa-notes-medical:before{content:"\\f481"}.fa-npm:before{content:"\\f3d4"}.fa-ns8:before{content:"\\f3d5"}.fa-nutritionix:before{content:"\\f3d6"}.fa-object-group:before{content:"\\f247"}.fa-object-ungroup:before{content:"\\f248"}.fa-octopus-deploy:before{content:"\\e082"}.fa-odnoklassniki:before{content:"\\f263"}.fa-odnoklassniki-square:before{content:"\\f264"}.fa-oil-can:before{content:"\\f613"}.fa-old-republic:before{content:"\\f510"}.fa-om:before{content:"\\f679"}.fa-opencart:before{content:"\\f23d"}.fa-openid:before{content:"\\f19b"}.fa-opera:before{content:"\\f26a"}.fa-optin-monster:before{content:"\\f23c"}.fa-orcid:before{content:"\\f8d2"}.fa-osi:before{content:"\\f41a"}.fa-otter:before{content:"\\f700"}.fa-outdent:before{content:"\\f03b"}.fa-page4:before{content:"\\f3d7"}.fa-pagelines:before{content:"\\f18c"}.fa-pager:before{content:"\\f815"}.fa-paint-brush:before{content:"\\f1fc"}.fa-paint-roller:before{content:"\\f5aa"}.fa-palette:before{content:"\\f53f"}.fa-palfed:before{content:"\\f3d8"}.fa-pallet:before{content:"\\f482"}.fa-paper-plane:before{content:"\\f1d8"}.fa-paperclip:before{content:"\\f0c6"}.fa-parachute-box:before{content:"\\f4cd"}.fa-paragraph:before{content:"\\f1dd"}.fa-parking:before{content:"\\f540"}.fa-passport:before{content:"\\f5ab"}.fa-pastafarianism:before{content:"\\f67b"}.fa-paste:before{content:"\\f0ea"}.fa-patreon:before{content:"\\f3d9"}.fa-pause:before{content:"\\f04c"}.fa-pause-circle:before{content:"\\f28b"}.fa-paw:before{content:"\\f1b0"}.fa-paypal:before{content:"\\f1ed"}.fa-peace:before{content:"\\f67c"}.fa-pen:before{content:"\\f304"}.fa-pen-alt:before{content:"\\f305"}.fa-pen-fancy:before{content:"\\f5ac"}.fa-pen-nib:before{content:"\\f5ad"}.fa-pen-square:before{content:"\\f14b"}.fa-pencil-alt:before{content:"\\f303"}.fa-pencil-ruler:before{content:"\\f5ae"}.fa-penny-arcade:before{content:"\\f704"}.fa-people-arrows:before{content:"\\e068"}.fa-people-carry:before{content:"\\f4ce"}.fa-pepper-hot:before{content:"\\f816"}.fa-perbyte:before{content:"\\e083"}.fa-percent:before{content:"\\f295"}.fa-percentage:before{content:"\\f541"}.fa-periscope:before{content:"\\f3da"}.fa-person-booth:before{content:"\\f756"}.fa-phabricator:before{content:"\\f3db"}.fa-phoenix-framework:before{content:"\\f3dc"}.fa-phoenix-squadron:before{content:"\\f511"}.fa-phone:before{content:"\\f095"}.fa-phone-alt:before{content:"\\f879"}.fa-phone-slash:before{content:"\\f3dd"}.fa-phone-square:before{content:"\\f098"}.fa-phone-square-alt:before{content:"\\f87b"}.fa-phone-volume:before{content:"\\f2a0"}.fa-photo-video:before{content:"\\f87c"}.fa-php:before{content:"\\f457"}.fa-pied-piper:before{content:"\\f2ae"}.fa-pied-piper-alt:before{content:"\\f1a8"}.fa-pied-piper-hat:before{content:"\\f4e5"}.fa-pied-piper-pp:before{content:"\\f1a7"}.fa-pied-piper-square:before{content:"\\e01e"}.fa-piggy-bank:before{content:"\\f4d3"}.fa-pills:before{content:"\\f484"}.fa-pinterest:before{content:"\\f0d2"}.fa-pinterest-p:before{content:"\\f231"}.fa-pinterest-square:before{content:"\\f0d3"}.fa-pizza-slice:before{content:"\\f818"}.fa-place-of-worship:before{content:"\\f67f"}.fa-plane:before{content:"\\f072"}.fa-plane-arrival:before{content:"\\f5af"}.fa-plane-departure:before{content:"\\f5b0"}.fa-plane-slash:before{content:"\\e069"}.fa-play:before{content:"\\f04b"}.fa-play-circle:before{content:"\\f144"}.fa-playstation:before{content:"\\f3df"}.fa-plug:before{content:"\\f1e6"}.fa-plus:before{content:"\\f067"}.fa-plus-circle:before{content:"\\f055"}.fa-plus-square:before{content:"\\f0fe"}.fa-podcast:before{content:"\\f2ce"}.fa-poll:before{content:"\\f681"}.fa-poll-h:before{content:"\\f682"}.fa-poo:before{content:"\\f2fe"}.fa-poo-storm:before{content:"\\f75a"}.fa-poop:before{content:"\\f619"}.fa-portrait:before{content:"\\f3e0"}.fa-pound-sign:before{content:"\\f154"}.fa-power-off:before{content:"\\f011"}.fa-pray:before{content:"\\f683"}.fa-praying-hands:before{content:"\\f684"}.fa-prescription:before{content:"\\f5b1"}.fa-prescription-bottle:before{content:"\\f485"}.fa-prescription-bottle-alt:before{content:"\\f486"}.fa-print:before{content:"\\f02f"}.fa-procedures:before{content:"\\f487"}.fa-product-hunt:before{content:"\\f288"}.fa-project-diagram:before{content:"\\f542"}.fa-pump-medical:before{content:"\\e06a"}.fa-pump-soap:before{content:"\\e06b"}.fa-pushed:before{content:"\\f3e1"}.fa-puzzle-piece:before{content:"\\f12e"}.fa-python:before{content:"\\f3e2"}.fa-qq:before{content:"\\f1d6"}.fa-qrcode:before{content:"\\f029"}.fa-question:before{content:"\\f128"}.fa-question-circle:before{content:"\\f059"}.fa-quidditch:before{content:"\\f458"}.fa-quinscape:before{content:"\\f459"}.fa-quora:before{content:"\\f2c4"}.fa-quote-left:before{content:"\\f10d"}.fa-quote-right:before{content:"\\f10e"}.fa-quran:before{content:"\\f687"}.fa-r-project:before{content:"\\f4f7"}.fa-radiation:before{content:"\\f7b9"}.fa-radiation-alt:before{content:"\\f7ba"}.fa-rainbow:before{content:"\\f75b"}.fa-random:before{content:"\\f074"}.fa-raspberry-pi:before{content:"\\f7bb"}.fa-ravelry:before{content:"\\f2d9"}.fa-react:before{content:"\\f41b"}.fa-reacteurope:before{content:"\\f75d"}.fa-readme:before{content:"\\f4d5"}.fa-rebel:before{content:"\\f1d0"}.fa-receipt:before{content:"\\f543"}.fa-record-vinyl:before{content:"\\f8d9"}.fa-recycle:before{content:"\\f1b8"}.fa-red-river:before{content:"\\f3e3"}.fa-reddit:before{content:"\\f1a1"}.fa-reddit-alien:before{content:"\\f281"}.fa-reddit-square:before{content:"\\f1a2"}.fa-redhat:before{content:"\\f7bc"}.fa-redo:before{content:"\\f01e"}.fa-redo-alt:before{content:"\\f2f9"}.fa-registered:before{content:"\\f25d"}.fa-remove-format:before{content:"\\f87d"}.fa-renren:before{content:"\\f18b"}.fa-reply:before{content:"\\f3e5"}.fa-reply-all:before{content:"\\f122"}.fa-replyd:before{content:"\\f3e6"}.fa-republican:before{content:"\\f75e"}.fa-researchgate:before{content:"\\f4f8"}.fa-resolving:before{content:"\\f3e7"}.fa-restroom:before{content:"\\f7bd"}.fa-retweet:before{content:"\\f079"}.fa-rev:before{content:"\\f5b2"}.fa-ribbon:before{content:"\\f4d6"}.fa-ring:before{content:"\\f70b"}.fa-road:before{content:"\\f018"}.fa-robot:before{content:"\\f544"}.fa-rocket:before{content:"\\f135"}.fa-rocketchat:before{content:"\\f3e8"}.fa-rockrms:before{content:"\\f3e9"}.fa-route:before{content:"\\f4d7"}.fa-rss:before{content:"\\f09e"}.fa-rss-square:before{content:"\\f143"}.fa-ruble-sign:before{content:"\\f158"}.fa-ruler:before{content:"\\f545"}.fa-ruler-combined:before{content:"\\f546"}.fa-ruler-horizontal:before{content:"\\f547"}.fa-ruler-vertical:before{content:"\\f548"}.fa-running:before{content:"\\f70c"}.fa-rupee-sign:before{content:"\\f156"}.fa-rust:before{content:"\\e07a"}.fa-sad-cry:before{content:"\\f5b3"}.fa-sad-tear:before{content:"\\f5b4"}.fa-safari:before{content:"\\f267"}.fa-salesforce:before{content:"\\f83b"}.fa-sass:before{content:"\\f41e"}.fa-satellite:before{content:"\\f7bf"}.fa-satellite-dish:before{content:"\\f7c0"}.fa-save:before{content:"\\f0c7"}.fa-schlix:before{content:"\\f3ea"}.fa-school:before{content:"\\f549"}.fa-screwdriver:before{content:"\\f54a"}.fa-scribd:before{content:"\\f28a"}.fa-scroll:before{content:"\\f70e"}.fa-sd-card:before{content:"\\f7c2"}.fa-search:before{content:"\\f002"}.fa-search-dollar:before{content:"\\f688"}.fa-search-location:before{content:"\\f689"}.fa-search-minus:before{content:"\\f010"}.fa-search-plus:before{content:"\\f00e"}.fa-searchengin:before{content:"\\f3eb"}.fa-seedling:before{content:"\\f4d8"}.fa-sellcast:before{content:"\\f2da"}.fa-sellsy:before{content:"\\f213"}.fa-server:before{content:"\\f233"}.fa-servicestack:before{content:"\\f3ec"}.fa-shapes:before{content:"\\f61f"}.fa-share:before{content:"\\f064"}.fa-share-alt:before{content:"\\f1e0"}.fa-share-alt-square:before{content:"\\f1e1"}.fa-share-square:before{content:"\\f14d"}.fa-shekel-sign:before{content:"\\f20b"}.fa-shield-alt:before{content:"\\f3ed"}.fa-shield-virus:before{content:"\\e06c"}.fa-ship:before{content:"\\f21a"}.fa-shipping-fast:before{content:"\\f48b"}.fa-shirtsinbulk:before{content:"\\f214"}.fa-shoe-prints:before{content:"\\f54b"}.fa-shopify:before{content:"\\e057"}.fa-shopping-bag:before{content:"\\f290"}.fa-shopping-basket:before{content:"\\f291"}.fa-shopping-cart:before{content:"\\f07a"}.fa-shopware:before{content:"\\f5b5"}.fa-shower:before{content:"\\f2cc"}.fa-shuttle-van:before{content:"\\f5b6"}.fa-sign:before{content:"\\f4d9"}.fa-sign-in-alt:before{content:"\\f2f6"}.fa-sign-language:before{content:"\\f2a7"}.fa-sign-out-alt:before{content:"\\f2f5"}.fa-signal:before{content:"\\f012"}.fa-signature:before{content:"\\f5b7"}.fa-sim-card:before{content:"\\f7c4"}.fa-simplybuilt:before{content:"\\f215"}.fa-sink:before{content:"\\e06d"}.fa-sistrix:before{content:"\\f3ee"}.fa-sitemap:before{content:"\\f0e8"}.fa-sith:before{content:"\\f512"}.fa-skating:before{content:"\\f7c5"}.fa-sketch:before{content:"\\f7c6"}.fa-skiing:before{content:"\\f7c9"}.fa-skiing-nordic:before{content:"\\f7ca"}.fa-skull:before{content:"\\f54c"}.fa-skull-crossbones:before{content:"\\f714"}.fa-skyatlas:before{content:"\\f216"}.fa-skype:before{content:"\\f17e"}.fa-slack:before{content:"\\f198"}.fa-slack-hash:before{content:"\\f3ef"}.fa-slash:before{content:"\\f715"}.fa-sleigh:before{content:"\\f7cc"}.fa-sliders-h:before{content:"\\f1de"}.fa-slideshare:before{content:"\\f1e7"}.fa-smile:before{content:"\\f118"}.fa-smile-beam:before{content:"\\f5b8"}.fa-smile-wink:before{content:"\\f4da"}.fa-smog:before{content:"\\f75f"}.fa-smoking:before{content:"\\f48d"}.fa-smoking-ban:before{content:"\\f54d"}.fa-sms:before{content:"\\f7cd"}.fa-snapchat:before{content:"\\f2ab"}.fa-snapchat-ghost:before{content:"\\f2ac"}.fa-snapchat-square:before{content:"\\f2ad"}.fa-snowboarding:before{content:"\\f7ce"}.fa-snowflake:before{content:"\\f2dc"}.fa-snowman:before{content:"\\f7d0"}.fa-snowplow:before{content:"\\f7d2"}.fa-soap:before{content:"\\e06e"}.fa-socks:before{content:"\\f696"}.fa-solar-panel:before{content:"\\f5ba"}.fa-sort:before{content:"\\f0dc"}.fa-sort-alpha-down:before{content:"\\f15d"}.fa-sort-alpha-down-alt:before{content:"\\f881"}.fa-sort-alpha-up:before{content:"\\f15e"}.fa-sort-alpha-up-alt:before{content:"\\f882"}.fa-sort-amount-down:before{content:"\\f160"}.fa-sort-amount-down-alt:before{content:"\\f884"}.fa-sort-amount-up:before{content:"\\f161"}.fa-sort-amount-up-alt:before{content:"\\f885"}.fa-sort-down:before{content:"\\f0dd"}.fa-sort-numeric-down:before{content:"\\f162"}.fa-sort-numeric-down-alt:before{content:"\\f886"}.fa-sort-numeric-up:before{content:"\\f163"}.fa-sort-numeric-up-alt:before{content:"\\f887"}.fa-sort-up:before{content:"\\f0de"}.fa-soundcloud:before{content:"\\f1be"}.fa-sourcetree:before{content:"\\f7d3"}.fa-spa:before{content:"\\f5bb"}.fa-space-shuttle:before{content:"\\f197"}.fa-speakap:before{content:"\\f3f3"}.fa-speaker-deck:before{content:"\\f83c"}.fa-spell-check:before{content:"\\f891"}.fa-spider:before{content:"\\f717"}.fa-spinner:before{content:"\\f110"}.fa-splotch:before{content:"\\f5bc"}.fa-spotify:before{content:"\\f1bc"}.fa-spray-can:before{content:"\\f5bd"}.fa-square:before{content:"\\f0c8"}.fa-square-full:before{content:"\\f45c"}.fa-square-root-alt:before{content:"\\f698"}.fa-squarespace:before{content:"\\f5be"}.fa-stack-exchange:before{content:"\\f18d"}.fa-stack-overflow:before{content:"\\f16c"}.fa-stackpath:before{content:"\\f842"}.fa-stamp:before{content:"\\f5bf"}.fa-star:before{content:"\\f005"}.fa-star-and-crescent:before{content:"\\f699"}.fa-star-half:before{content:"\\f089"}.fa-star-half-alt:before{content:"\\f5c0"}.fa-star-of-david:before{content:"\\f69a"}.fa-star-of-life:before{content:"\\f621"}.fa-staylinked:before{content:"\\f3f5"}.fa-steam:before{content:"\\f1b6"}.fa-steam-square:before{content:"\\f1b7"}.fa-steam-symbol:before{content:"\\f3f6"}.fa-step-backward:before{content:"\\f048"}.fa-step-forward:before{content:"\\f051"}.fa-stethoscope:before{content:"\\f0f1"}.fa-sticker-mule:before{content:"\\f3f7"}.fa-sticky-note:before{content:"\\f249"}.fa-stop:before{content:"\\f04d"}.fa-stop-circle:before{content:"\\f28d"}.fa-stopwatch:before{content:"\\f2f2"}.fa-stopwatch-20:before{content:"\\e06f"}.fa-store:before{content:"\\f54e"}.fa-store-alt:before{content:"\\f54f"}.fa-store-alt-slash:before{content:"\\e070"}.fa-store-slash:before{content:"\\e071"}.fa-strava:before{content:"\\f428"}.fa-stream:before{content:"\\f550"}.fa-street-view:before{content:"\\f21d"}.fa-strikethrough:before{content:"\\f0cc"}.fa-stripe:before{content:"\\f429"}.fa-stripe-s:before{content:"\\f42a"}.fa-stroopwafel:before{content:"\\f551"}.fa-studiovinari:before{content:"\\f3f8"}.fa-stumbleupon:before{content:"\\f1a4"}.fa-stumbleupon-circle:before{content:"\\f1a3"}.fa-subscript:before{content:"\\f12c"}.fa-subway:before{content:"\\f239"}.fa-suitcase:before{content:"\\f0f2"}.fa-suitcase-rolling:before{content:"\\f5c1"}.fa-sun:before{content:"\\f185"}.fa-superpowers:before{content:"\\f2dd"}.fa-superscript:before{content:"\\f12b"}.fa-supple:before{content:"\\f3f9"}.fa-surprise:before{content:"\\f5c2"}.fa-suse:before{content:"\\f7d6"}.fa-swatchbook:before{content:"\\f5c3"}.fa-swift:before{content:"\\f8e1"}.fa-swimmer:before{content:"\\f5c4"}.fa-swimming-pool:before{content:"\\f5c5"}.fa-symfony:before{content:"\\f83d"}.fa-synagogue:before{content:"\\f69b"}.fa-sync:before{content:"\\f021"}.fa-sync-alt:before{content:"\\f2f1"}.fa-syringe:before{content:"\\f48e"}.fa-table:before{content:"\\f0ce"}.fa-table-tennis:before{content:"\\f45d"}.fa-tablet:before{content:"\\f10a"}.fa-tablet-alt:before{content:"\\f3fa"}.fa-tablets:before{content:"\\f490"}.fa-tachometer-alt:before{content:"\\f3fd"}.fa-tag:before{content:"\\f02b"}.fa-tags:before{content:"\\f02c"}.fa-tape:before{content:"\\f4db"}.fa-tasks:before{content:"\\f0ae"}.fa-taxi:before{content:"\\f1ba"}.fa-teamspeak:before{content:"\\f4f9"}.fa-teeth:before{content:"\\f62e"}.fa-teeth-open:before{content:"\\f62f"}.fa-telegram:before{content:"\\f2c6"}.fa-telegram-plane:before{content:"\\f3fe"}.fa-temperature-high:before{content:"\\f769"}.fa-temperature-low:before{content:"\\f76b"}.fa-tencent-weibo:before{content:"\\f1d5"}.fa-tenge:before{content:"\\f7d7"}.fa-terminal:before{content:"\\f120"}.fa-text-height:before{content:"\\f034"}.fa-text-width:before{content:"\\f035"}.fa-th:before{content:"\\f00a"}.fa-th-large:before{content:"\\f009"}.fa-th-list:before{content:"\\f00b"}.fa-the-red-yeti:before{content:"\\f69d"}.fa-theater-masks:before{content:"\\f630"}.fa-themeco:before{content:"\\f5c6"}.fa-themeisle:before{content:"\\f2b2"}.fa-thermometer:before{content:"\\f491"}.fa-thermometer-empty:before{content:"\\f2cb"}.fa-thermometer-full:before{content:"\\f2c7"}.fa-thermometer-half:before{content:"\\f2c9"}.fa-thermometer-quarter:before{content:"\\f2ca"}.fa-thermometer-three-quarters:before{content:"\\f2c8"}.fa-think-peaks:before{content:"\\f731"}.fa-thumbs-down:before{content:"\\f165"}.fa-thumbs-up:before{content:"\\f164"}.fa-thumbtack:before{content:"\\f08d"}.fa-ticket-alt:before{content:"\\f3ff"}.fa-tiktok:before{content:"\\e07b"}.fa-times:before{content:"\\f00d"}.fa-times-circle:before{content:"\\f057"}.fa-tint:before{content:"\\f043"}.fa-tint-slash:before{content:"\\f5c7"}.fa-tired:before{content:"\\f5c8"}.fa-toggle-off:before{content:"\\f204"}.fa-toggle-on:before{content:"\\f205"}.fa-toilet:before{content:"\\f7d8"}.fa-toilet-paper:before{content:"\\f71e"}.fa-toilet-paper-slash:before{content:"\\e072"}.fa-toolbox:before{content:"\\f552"}.fa-tools:before{content:"\\f7d9"}.fa-tooth:before{content:"\\f5c9"}.fa-torah:before{content:"\\f6a0"}.fa-torii-gate:before{content:"\\f6a1"}.fa-tractor:before{content:"\\f722"}.fa-trade-federation:before{content:"\\f513"}.fa-trademark:before{content:"\\f25c"}.fa-traffic-light:before{content:"\\f637"}.fa-trailer:before{content:"\\e041"}.fa-train:before{content:"\\f238"}.fa-tram:before{content:"\\f7da"}.fa-transgender:before{content:"\\f224"}.fa-transgender-alt:before{content:"\\f225"}.fa-trash:before{content:"\\f1f8"}.fa-trash-alt:before{content:"\\f2ed"}.fa-trash-restore:before{content:"\\f829"}.fa-trash-restore-alt:before{content:"\\f82a"}.fa-tree:before{content:"\\f1bb"}.fa-trello:before{content:"\\f181"}.fa-trophy:before{content:"\\f091"}.fa-truck:before{content:"\\f0d1"}.fa-truck-loading:before{content:"\\f4de"}.fa-truck-monster:before{content:"\\f63b"}.fa-truck-moving:before{content:"\\f4df"}.fa-truck-pickup:before{content:"\\f63c"}.fa-tshirt:before{content:"\\f553"}.fa-tty:before{content:"\\f1e4"}.fa-tumblr:before{content:"\\f173"}.fa-tumblr-square:before{content:"\\f174"}.fa-tv:before{content:"\\f26c"}.fa-twitch:before{content:"\\f1e8"}.fa-twitter:before{content:"\\f099"}.fa-twitter-square:before{content:"\\f081"}.fa-typo3:before{content:"\\f42b"}.fa-uber:before{content:"\\f402"}.fa-ubuntu:before{content:"\\f7df"}.fa-uikit:before{content:"\\f403"}.fa-umbraco:before{content:"\\f8e8"}.fa-umbrella:before{content:"\\f0e9"}.fa-umbrella-beach:before{content:"\\f5ca"}.fa-uncharted:before{content:"\\e084"}.fa-underline:before{content:"\\f0cd"}.fa-undo:before{content:"\\f0e2"}.fa-undo-alt:before{content:"\\f2ea"}.fa-uniregistry:before{content:"\\f404"}.fa-unity:before{content:"\\e049"}.fa-universal-access:before{content:"\\f29a"}.fa-university:before{content:"\\f19c"}.fa-unlink:before{content:"\\f127"}.fa-unlock:before{content:"\\f09c"}.fa-unlock-alt:before{content:"\\f13e"}.fa-unsplash:before{content:"\\e07c"}.fa-untappd:before{content:"\\f405"}.fa-upload:before{content:"\\f093"}.fa-ups:before{content:"\\f7e0"}.fa-usb:before{content:"\\f287"}.fa-user:before{content:"\\f007"}.fa-user-alt:before{content:"\\f406"}.fa-user-alt-slash:before{content:"\\f4fa"}.fa-user-astronaut:before{content:"\\f4fb"}.fa-user-check:before{content:"\\f4fc"}.fa-user-circle:before{content:"\\f2bd"}.fa-user-clock:before{content:"\\f4fd"}.fa-user-cog:before{content:"\\f4fe"}.fa-user-edit:before{content:"\\f4ff"}.fa-user-friends:before{content:"\\f500"}.fa-user-graduate:before{content:"\\f501"}.fa-user-injured:before{content:"\\f728"}.fa-user-lock:before{content:"\\f502"}.fa-user-md:before{content:"\\f0f0"}.fa-user-minus:before{content:"\\f503"}.fa-user-ninja:before{content:"\\f504"}.fa-user-nurse:before{content:"\\f82f"}.fa-user-plus:before{content:"\\f234"}.fa-user-secret:before{content:"\\f21b"}.fa-user-shield:before{content:"\\f505"}.fa-user-slash:before{content:"\\f506"}.fa-user-tag:before{content:"\\f507"}.fa-user-tie:before{content:"\\f508"}.fa-user-times:before{content:"\\f235"}.fa-users:before{content:"\\f0c0"}.fa-users-cog:before{content:"\\f509"}.fa-users-slash:before{content:"\\e073"}.fa-usps:before{content:"\\f7e1"}.fa-ussunnah:before{content:"\\f407"}.fa-utensil-spoon:before{content:"\\f2e5"}.fa-utensils:before{content:"\\f2e7"}.fa-vaadin:before{content:"\\f408"}.fa-vector-square:before{content:"\\f5cb"}.fa-venus:before{content:"\\f221"}.fa-venus-double:before{content:"\\f226"}.fa-venus-mars:before{content:"\\f228"}.fa-vest:before{content:"\\e085"}.fa-vest-patches:before{content:"\\e086"}.fa-viacoin:before{content:"\\f237"}.fa-viadeo:before{content:"\\f2a9"}.fa-viadeo-square:before{content:"\\f2aa"}.fa-vial:before{content:"\\f492"}.fa-vials:before{content:"\\f493"}.fa-viber:before{content:"\\f409"}.fa-video:before{content:"\\f03d"}.fa-video-slash:before{content:"\\f4e2"}.fa-vihara:before{content:"\\f6a7"}.fa-vimeo:before{content:"\\f40a"}.fa-vimeo-square:before{content:"\\f194"}.fa-vimeo-v:before{content:"\\f27d"}.fa-vine:before{content:"\\f1ca"}.fa-virus:before{content:"\\e074"}.fa-virus-slash:before{content:"\\e075"}.fa-viruses:before{content:"\\e076"}.fa-vk:before{content:"\\f189"}.fa-vnv:before{content:"\\f40b"}.fa-voicemail:before{content:"\\f897"}.fa-volleyball-ball:before{content:"\\f45f"}.fa-volume-down:before{content:"\\f027"}.fa-volume-mute:before{content:"\\f6a9"}.fa-volume-off:before{content:"\\f026"}.fa-volume-up:before{content:"\\f028"}.fa-vote-yea:before{content:"\\f772"}.fa-vr-cardboard:before{content:"\\f729"}.fa-vuejs:before{content:"\\f41f"}.fa-walking:before{content:"\\f554"}.fa-wallet:before{content:"\\f555"}.fa-warehouse:before{content:"\\f494"}.fa-watchman-monitoring:before{content:"\\e087"}.fa-water:before{content:"\\f773"}.fa-wave-square:before{content:"\\f83e"}.fa-waze:before{content:"\\f83f"}.fa-weebly:before{content:"\\f5cc"}.fa-weibo:before{content:"\\f18a"}.fa-weight:before{content:"\\f496"}.fa-weight-hanging:before{content:"\\f5cd"}.fa-weixin:before{content:"\\f1d7"}.fa-whatsapp:before{content:"\\f232"}.fa-whatsapp-square:before{content:"\\f40c"}.fa-wheelchair:before{content:"\\f193"}.fa-whmcs:before{content:"\\f40d"}.fa-wifi:before{content:"\\f1eb"}.fa-wikipedia-w:before{content:"\\f266"}.fa-wind:before{content:"\\f72e"}.fa-window-close:before{content:"\\f410"}.fa-window-maximize:before{content:"\\f2d0"}.fa-window-minimize:before{content:"\\f2d1"}.fa-window-restore:before{content:"\\f2d2"}.fa-windows:before{content:"\\f17a"}.fa-wine-bottle:before{content:"\\f72f"}.fa-wine-glass:before{content:"\\f4e3"}.fa-wine-glass-alt:before{content:"\\f5ce"}.fa-wix:before{content:"\\f5cf"}.fa-wizards-of-the-coast:before{content:"\\f730"}.fa-wodu:before{content:"\\e088"}.fa-wolf-pack-battalion:before{content:"\\f514"}.fa-won-sign:before{content:"\\f159"}.fa-wordpress:before{content:"\\f19a"}.fa-wordpress-simple:before{content:"\\f411"}.fa-wpbeginner:before{content:"\\f297"}.fa-wpexplorer:before{content:"\\f2de"}.fa-wpforms:before{content:"\\f298"}.fa-wpressr:before{content:"\\f3e4"}.fa-wrench:before{content:"\\f0ad"}.fa-x-ray:before{content:"\\f497"}.fa-xbox:before{content:"\\f412"}.fa-xing:before{content:"\\f168"}.fa-xing-square:before{content:"\\f169"}.fa-y-combinator:before{content:"\\f23b"}.fa-yahoo:before{content:"\\f19e"}.fa-yammer:before{content:"\\f840"}.fa-yandex:before{content:"\\f413"}.fa-yandex-international:before{content:"\\f414"}.fa-yarn:before{content:"\\f7e3"}.fa-yelp:before{content:"\\f1e9"}.fa-yen-sign:before{content:"\\f157"}.fa-yin-yang:before{content:"\\f6ad"}.fa-yoast:before{content:"\\f2b1"}.fa-youtube:before{content:"\\f167"}.fa-youtube-square:before{content:"\\f431"}.fa-zhihu:before{content:"\\f63f"}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}@font-face{font-family:"Font Awesome 5 Brands";font-style:normal;font-weight:400;font-display:block;src:url('+A+");src:url("+T+') format("embedded-opentype"),url('+q+') format("woff2"),url('+I+') format("woff"),url('+z+') format("truetype"),url('+B+') format("svg")}.fab{font-family:"Font Awesome 5 Brands"}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:400;font-display:block;src:url('+O+");src:url("+R+') format("embedded-opentype"),url('+j+') format("woff2"),url('+L+') format("woff"),url('+E+') format("truetype"),url('+S+') format("svg")}.fab,.far{font-weight:400}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:900;font-display:block;src:url('+C+");src:url("+N+') format("embedded-opentype"),url('+U+') format("woff2"),url('+M+') format("woff"),url('+D+') format("truetype"),url('+Z+') format("svg")}.fa,.far,.fas{font-family:"Font Awesome 5 Free"}.fa,.fas{font-weight:900}',""]);const X=_},6846:(e,f,o)=>{o.d(f,{Z:()=>i});var t=o(8081);var n=o.n(t);var a=o(23645);var r=o.n(a);var c=r()(n());c.push([e.id,'/*!\n * Font Awesome Free 5.15.4 by @fontawesome - https://fontawesome.com\n * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)\n */\n.fa.fa-glass:before{content:"\\f000"}.fa.fa-meetup{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-star-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-star-o:before{content:"\\f005"}.fa.fa-close:before,.fa.fa-remove:before{content:"\\f00d"}.fa.fa-gear:before{content:"\\f013"}.fa.fa-trash-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-trash-o:before{content:"\\f2ed"}.fa.fa-file-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-o:before{content:"\\f15b"}.fa.fa-clock-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-clock-o:before{content:"\\f017"}.fa.fa-arrow-circle-o-down{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-arrow-circle-o-down:before{content:"\\f358"}.fa.fa-arrow-circle-o-up{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-arrow-circle-o-up:before{content:"\\f35b"}.fa.fa-play-circle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-play-circle-o:before{content:"\\f144"}.fa.fa-repeat:before,.fa.fa-rotate-right:before{content:"\\f01e"}.fa.fa-refresh:before{content:"\\f021"}.fa.fa-list-alt{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-dedent:before{content:"\\f03b"}.fa.fa-video-camera:before{content:"\\f03d"}.fa.fa-picture-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-picture-o:before{content:"\\f03e"}.fa.fa-photo{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-photo:before{content:"\\f03e"}.fa.fa-image{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-image:before{content:"\\f03e"}.fa.fa-pencil:before{content:"\\f303"}.fa.fa-map-marker:before{content:"\\f3c5"}.fa.fa-pencil-square-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-pencil-square-o:before{content:"\\f044"}.fa.fa-share-square-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-share-square-o:before{content:"\\f14d"}.fa.fa-check-square-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-check-square-o:before{content:"\\f14a"}.fa.fa-arrows:before{content:"\\f0b2"}.fa.fa-times-circle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-times-circle-o:before{content:"\\f057"}.fa.fa-check-circle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-check-circle-o:before{content:"\\f058"}.fa.fa-mail-forward:before{content:"\\f064"}.fa.fa-expand:before{content:"\\f424"}.fa.fa-compress:before{content:"\\f422"}.fa.fa-eye,.fa.fa-eye-slash{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-warning:before{content:"\\f071"}.fa.fa-calendar:before{content:"\\f073"}.fa.fa-arrows-v:before{content:"\\f338"}.fa.fa-arrows-h:before{content:"\\f337"}.fa.fa-bar-chart{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-bar-chart:before{content:"\\f080"}.fa.fa-bar-chart-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-bar-chart-o:before{content:"\\f080"}.fa.fa-facebook-square,.fa.fa-twitter-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-gears:before{content:"\\f085"}.fa.fa-thumbs-o-up{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-thumbs-o-up:before{content:"\\f164"}.fa.fa-thumbs-o-down{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-thumbs-o-down:before{content:"\\f165"}.fa.fa-heart-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-heart-o:before{content:"\\f004"}.fa.fa-sign-out:before{content:"\\f2f5"}.fa.fa-linkedin-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-linkedin-square:before{content:"\\f08c"}.fa.fa-thumb-tack:before{content:"\\f08d"}.fa.fa-external-link:before{content:"\\f35d"}.fa.fa-sign-in:before{content:"\\f2f6"}.fa.fa-github-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-lemon-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-lemon-o:before{content:"\\f094"}.fa.fa-square-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-square-o:before{content:"\\f0c8"}.fa.fa-bookmark-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-bookmark-o:before{content:"\\f02e"}.fa.fa-facebook,.fa.fa-twitter{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-facebook:before{content:"\\f39e"}.fa.fa-facebook-f{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-facebook-f:before{content:"\\f39e"}.fa.fa-github{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-credit-card{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-feed:before{content:"\\f09e"}.fa.fa-hdd-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hdd-o:before{content:"\\f0a0"}.fa.fa-hand-o-right{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-o-right:before{content:"\\f0a4"}.fa.fa-hand-o-left{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-o-left:before{content:"\\f0a5"}.fa.fa-hand-o-up{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-o-up:before{content:"\\f0a6"}.fa.fa-hand-o-down{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-o-down:before{content:"\\f0a7"}.fa.fa-arrows-alt:before{content:"\\f31e"}.fa.fa-group:before{content:"\\f0c0"}.fa.fa-chain:before{content:"\\f0c1"}.fa.fa-scissors:before{content:"\\f0c4"}.fa.fa-files-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-files-o:before{content:"\\f0c5"}.fa.fa-floppy-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-floppy-o:before{content:"\\f0c7"}.fa.fa-navicon:before,.fa.fa-reorder:before{content:"\\f0c9"}.fa.fa-google-plus,.fa.fa-google-plus-square,.fa.fa-pinterest,.fa.fa-pinterest-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-google-plus:before{content:"\\f0d5"}.fa.fa-money{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-money:before{content:"\\f3d1"}.fa.fa-unsorted:before{content:"\\f0dc"}.fa.fa-sort-desc:before{content:"\\f0dd"}.fa.fa-sort-asc:before{content:"\\f0de"}.fa.fa-linkedin{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-linkedin:before{content:"\\f0e1"}.fa.fa-rotate-left:before{content:"\\f0e2"}.fa.fa-legal:before{content:"\\f0e3"}.fa.fa-dashboard:before,.fa.fa-tachometer:before{content:"\\f3fd"}.fa.fa-comment-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-comment-o:before{content:"\\f075"}.fa.fa-comments-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-comments-o:before{content:"\\f086"}.fa.fa-flash:before{content:"\\f0e7"}.fa.fa-clipboard,.fa.fa-paste{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-paste:before{content:"\\f328"}.fa.fa-lightbulb-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-lightbulb-o:before{content:"\\f0eb"}.fa.fa-exchange:before{content:"\\f362"}.fa.fa-cloud-download:before{content:"\\f381"}.fa.fa-cloud-upload:before{content:"\\f382"}.fa.fa-bell-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-bell-o:before{content:"\\f0f3"}.fa.fa-cutlery:before{content:"\\f2e7"}.fa.fa-file-text-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-text-o:before{content:"\\f15c"}.fa.fa-building-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-building-o:before{content:"\\f1ad"}.fa.fa-hospital-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hospital-o:before{content:"\\f0f8"}.fa.fa-tablet:before{content:"\\f3fa"}.fa.fa-mobile-phone:before,.fa.fa-mobile:before{content:"\\f3cd"}.fa.fa-circle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-circle-o:before{content:"\\f111"}.fa.fa-mail-reply:before{content:"\\f3e5"}.fa.fa-github-alt{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-folder-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-folder-o:before{content:"\\f07b"}.fa.fa-folder-open-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-folder-open-o:before{content:"\\f07c"}.fa.fa-smile-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-smile-o:before{content:"\\f118"}.fa.fa-frown-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-frown-o:before{content:"\\f119"}.fa.fa-meh-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-meh-o:before{content:"\\f11a"}.fa.fa-keyboard-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-keyboard-o:before{content:"\\f11c"}.fa.fa-flag-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-flag-o:before{content:"\\f024"}.fa.fa-mail-reply-all:before{content:"\\f122"}.fa.fa-star-half-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-star-half-o:before{content:"\\f089"}.fa.fa-star-half-empty{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-star-half-empty:before{content:"\\f089"}.fa.fa-star-half-full{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-star-half-full:before{content:"\\f089"}.fa.fa-code-fork:before{content:"\\f126"}.fa.fa-chain-broken:before{content:"\\f127"}.fa.fa-shield:before{content:"\\f3ed"}.fa.fa-calendar-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-calendar-o:before{content:"\\f133"}.fa.fa-css3,.fa.fa-html5,.fa.fa-maxcdn{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-ticket:before{content:"\\f3ff"}.fa.fa-minus-square-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-minus-square-o:before{content:"\\f146"}.fa.fa-level-up:before{content:"\\f3bf"}.fa.fa-level-down:before{content:"\\f3be"}.fa.fa-pencil-square:before{content:"\\f14b"}.fa.fa-external-link-square:before{content:"\\f360"}.fa.fa-compass{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-caret-square-o-down{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-caret-square-o-down:before{content:"\\f150"}.fa.fa-toggle-down{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-toggle-down:before{content:"\\f150"}.fa.fa-caret-square-o-up{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-caret-square-o-up:before{content:"\\f151"}.fa.fa-toggle-up{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-toggle-up:before{content:"\\f151"}.fa.fa-caret-square-o-right{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-caret-square-o-right:before{content:"\\f152"}.fa.fa-toggle-right{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-toggle-right:before{content:"\\f152"}.fa.fa-eur:before,.fa.fa-euro:before{content:"\\f153"}.fa.fa-gbp:before{content:"\\f154"}.fa.fa-dollar:before,.fa.fa-usd:before{content:"\\f155"}.fa.fa-inr:before,.fa.fa-rupee:before{content:"\\f156"}.fa.fa-cny:before,.fa.fa-jpy:before,.fa.fa-rmb:before,.fa.fa-yen:before{content:"\\f157"}.fa.fa-rouble:before,.fa.fa-rub:before,.fa.fa-ruble:before{content:"\\f158"}.fa.fa-krw:before,.fa.fa-won:before{content:"\\f159"}.fa.fa-bitcoin,.fa.fa-btc{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-bitcoin:before{content:"\\f15a"}.fa.fa-file-text:before{content:"\\f15c"}.fa.fa-sort-alpha-asc:before{content:"\\f15d"}.fa.fa-sort-alpha-desc:before{content:"\\f881"}.fa.fa-sort-amount-asc:before{content:"\\f160"}.fa.fa-sort-amount-desc:before{content:"\\f884"}.fa.fa-sort-numeric-asc:before{content:"\\f162"}.fa.fa-sort-numeric-desc:before{content:"\\f886"}.fa.fa-xing,.fa.fa-xing-square,.fa.fa-youtube,.fa.fa-youtube-play,.fa.fa-youtube-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-youtube-play:before{content:"\\f167"}.fa.fa-adn,.fa.fa-bitbucket,.fa.fa-bitbucket-square,.fa.fa-dropbox,.fa.fa-flickr,.fa.fa-instagram,.fa.fa-stack-overflow{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-bitbucket-square:before{content:"\\f171"}.fa.fa-tumblr,.fa.fa-tumblr-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-long-arrow-down:before{content:"\\f309"}.fa.fa-long-arrow-up:before{content:"\\f30c"}.fa.fa-long-arrow-left:before{content:"\\f30a"}.fa.fa-long-arrow-right:before{content:"\\f30b"}.fa.fa-android,.fa.fa-apple,.fa.fa-dribbble,.fa.fa-foursquare,.fa.fa-gittip,.fa.fa-gratipay,.fa.fa-linux,.fa.fa-skype,.fa.fa-trello,.fa.fa-windows{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-gittip:before{content:"\\f184"}.fa.fa-sun-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-sun-o:before{content:"\\f185"}.fa.fa-moon-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-moon-o:before{content:"\\f186"}.fa.fa-pagelines,.fa.fa-renren,.fa.fa-stack-exchange,.fa.fa-vk,.fa.fa-weibo{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-arrow-circle-o-right{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-arrow-circle-o-right:before{content:"\\f35a"}.fa.fa-arrow-circle-o-left{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-arrow-circle-o-left:before{content:"\\f359"}.fa.fa-caret-square-o-left{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-caret-square-o-left:before{content:"\\f191"}.fa.fa-toggle-left{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-toggle-left:before{content:"\\f191"}.fa.fa-dot-circle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-dot-circle-o:before{content:"\\f192"}.fa.fa-vimeo-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-try:before,.fa.fa-turkish-lira:before{content:"\\f195"}.fa.fa-plus-square-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-plus-square-o:before{content:"\\f0fe"}.fa.fa-openid,.fa.fa-slack,.fa.fa-wordpress{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-bank:before,.fa.fa-institution:before{content:"\\f19c"}.fa.fa-mortar-board:before{content:"\\f19d"}.fa.fa-delicious,.fa.fa-digg,.fa.fa-drupal,.fa.fa-google,.fa.fa-joomla,.fa.fa-pied-piper-alt,.fa.fa-pied-piper-pp,.fa.fa-reddit,.fa.fa-reddit-square,.fa.fa-stumbleupon,.fa.fa-stumbleupon-circle,.fa.fa-yahoo{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-spoon:before{content:"\\f2e5"}.fa.fa-behance,.fa.fa-behance-square,.fa.fa-steam,.fa.fa-steam-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-automobile:before{content:"\\f1b9"}.fa.fa-envelope-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-envelope-o:before{content:"\\f0e0"}.fa.fa-deviantart,.fa.fa-soundcloud,.fa.fa-spotify{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-file-pdf-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-pdf-o:before{content:"\\f1c1"}.fa.fa-file-word-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-word-o:before{content:"\\f1c2"}.fa.fa-file-excel-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-excel-o:before{content:"\\f1c3"}.fa.fa-file-powerpoint-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-powerpoint-o:before{content:"\\f1c4"}.fa.fa-file-image-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-image-o:before{content:"\\f1c5"}.fa.fa-file-photo-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-photo-o:before{content:"\\f1c5"}.fa.fa-file-picture-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-picture-o:before{content:"\\f1c5"}.fa.fa-file-archive-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-archive-o:before{content:"\\f1c6"}.fa.fa-file-zip-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-zip-o:before{content:"\\f1c6"}.fa.fa-file-audio-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-audio-o:before{content:"\\f1c7"}.fa.fa-file-sound-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-sound-o:before{content:"\\f1c7"}.fa.fa-file-video-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-video-o:before{content:"\\f1c8"}.fa.fa-file-movie-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-movie-o:before{content:"\\f1c8"}.fa.fa-file-code-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-file-code-o:before{content:"\\f1c9"}.fa.fa-codepen,.fa.fa-jsfiddle,.fa.fa-vine{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-life-bouy,.fa.fa-life-ring{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-life-bouy:before{content:"\\f1cd"}.fa.fa-life-buoy{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-life-buoy:before{content:"\\f1cd"}.fa.fa-life-saver{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-life-saver:before{content:"\\f1cd"}.fa.fa-support{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-support:before{content:"\\f1cd"}.fa.fa-circle-o-notch:before{content:"\\f1ce"}.fa.fa-ra,.fa.fa-rebel{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-ra:before{content:"\\f1d0"}.fa.fa-resistance{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-resistance:before{content:"\\f1d0"}.fa.fa-empire,.fa.fa-ge{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-ge:before{content:"\\f1d1"}.fa.fa-git,.fa.fa-git-square,.fa.fa-hacker-news,.fa.fa-y-combinator-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-y-combinator-square:before{content:"\\f1d4"}.fa.fa-yc-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-yc-square:before{content:"\\f1d4"}.fa.fa-qq,.fa.fa-tencent-weibo,.fa.fa-wechat,.fa.fa-weixin{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-wechat:before{content:"\\f1d7"}.fa.fa-send:before{content:"\\f1d8"}.fa.fa-paper-plane-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-paper-plane-o:before{content:"\\f1d8"}.fa.fa-send-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-send-o:before{content:"\\f1d8"}.fa.fa-circle-thin{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-circle-thin:before{content:"\\f111"}.fa.fa-header:before{content:"\\f1dc"}.fa.fa-sliders:before{content:"\\f1de"}.fa.fa-futbol-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-futbol-o:before{content:"\\f1e3"}.fa.fa-soccer-ball-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-soccer-ball-o:before{content:"\\f1e3"}.fa.fa-slideshare,.fa.fa-twitch,.fa.fa-yelp{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-newspaper-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-newspaper-o:before{content:"\\f1ea"}.fa.fa-cc-amex,.fa.fa-cc-discover,.fa.fa-cc-mastercard,.fa.fa-cc-paypal,.fa.fa-cc-stripe,.fa.fa-cc-visa,.fa.fa-google-wallet,.fa.fa-paypal{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-bell-slash-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-bell-slash-o:before{content:"\\f1f6"}.fa.fa-trash:before{content:"\\f2ed"}.fa.fa-copyright{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-eyedropper:before{content:"\\f1fb"}.fa.fa-area-chart:before{content:"\\f1fe"}.fa.fa-pie-chart:before{content:"\\f200"}.fa.fa-line-chart:before{content:"\\f201"}.fa.fa-angellist,.fa.fa-ioxhost,.fa.fa-lastfm,.fa.fa-lastfm-square{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-cc{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-cc:before{content:"\\f20a"}.fa.fa-ils:before,.fa.fa-shekel:before,.fa.fa-sheqel:before{content:"\\f20b"}.fa.fa-meanpath{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-meanpath:before{content:"\\f2b4"}.fa.fa-buysellads,.fa.fa-connectdevelop,.fa.fa-dashcube,.fa.fa-forumbee,.fa.fa-leanpub,.fa.fa-sellsy,.fa.fa-shirtsinbulk,.fa.fa-simplybuilt,.fa.fa-skyatlas{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-diamond{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-diamond:before{content:"\\f3a5"}.fa.fa-intersex:before{content:"\\f224"}.fa.fa-facebook-official{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-facebook-official:before{content:"\\f09a"}.fa.fa-pinterest-p,.fa.fa-whatsapp{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-hotel:before{content:"\\f236"}.fa.fa-medium,.fa.fa-viacoin,.fa.fa-y-combinator,.fa.fa-yc{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-yc:before{content:"\\f23b"}.fa.fa-expeditedssl,.fa.fa-opencart,.fa.fa-optin-monster{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-battery-4:before,.fa.fa-battery:before{content:"\\f240"}.fa.fa-battery-3:before{content:"\\f241"}.fa.fa-battery-2:before{content:"\\f242"}.fa.fa-battery-1:before{content:"\\f243"}.fa.fa-battery-0:before{content:"\\f244"}.fa.fa-object-group,.fa.fa-object-ungroup,.fa.fa-sticky-note-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-sticky-note-o:before{content:"\\f249"}.fa.fa-cc-diners-club,.fa.fa-cc-jcb{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-clone,.fa.fa-hourglass-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hourglass-o:before{content:"\\f254"}.fa.fa-hourglass-1:before{content:"\\f251"}.fa.fa-hourglass-2:before{content:"\\f252"}.fa.fa-hourglass-3:before{content:"\\f253"}.fa.fa-hand-rock-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-rock-o:before{content:"\\f255"}.fa.fa-hand-grab-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-grab-o:before{content:"\\f255"}.fa.fa-hand-paper-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-paper-o:before{content:"\\f256"}.fa.fa-hand-stop-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-stop-o:before{content:"\\f256"}.fa.fa-hand-scissors-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-scissors-o:before{content:"\\f257"}.fa.fa-hand-lizard-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-lizard-o:before{content:"\\f258"}.fa.fa-hand-spock-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-spock-o:before{content:"\\f259"}.fa.fa-hand-pointer-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-pointer-o:before{content:"\\f25a"}.fa.fa-hand-peace-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-hand-peace-o:before{content:"\\f25b"}.fa.fa-registered{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-chrome,.fa.fa-creative-commons,.fa.fa-firefox,.fa.fa-get-pocket,.fa.fa-gg,.fa.fa-gg-circle,.fa.fa-internet-explorer,.fa.fa-odnoklassniki,.fa.fa-odnoklassniki-square,.fa.fa-opera,.fa.fa-safari,.fa.fa-tripadvisor,.fa.fa-wikipedia-w{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-television:before{content:"\\f26c"}.fa.fa-500px,.fa.fa-amazon,.fa.fa-contao{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-calendar-plus-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-calendar-plus-o:before{content:"\\f271"}.fa.fa-calendar-minus-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-calendar-minus-o:before{content:"\\f272"}.fa.fa-calendar-times-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-calendar-times-o:before{content:"\\f273"}.fa.fa-calendar-check-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-calendar-check-o:before{content:"\\f274"}.fa.fa-map-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-map-o:before{content:"\\f279"}.fa.fa-commenting:before{content:"\\f4ad"}.fa.fa-commenting-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-commenting-o:before{content:"\\f4ad"}.fa.fa-houzz,.fa.fa-vimeo{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-vimeo:before{content:"\\f27d"}.fa.fa-black-tie,.fa.fa-edge,.fa.fa-fonticons,.fa.fa-reddit-alien{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-credit-card-alt:before{content:"\\f09d"}.fa.fa-codiepie,.fa.fa-fort-awesome,.fa.fa-mixcloud,.fa.fa-modx,.fa.fa-product-hunt,.fa.fa-scribd,.fa.fa-usb{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-pause-circle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-pause-circle-o:before{content:"\\f28b"}.fa.fa-stop-circle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-stop-circle-o:before{content:"\\f28d"}.fa.fa-bluetooth,.fa.fa-bluetooth-b,.fa.fa-envira,.fa.fa-gitlab,.fa.fa-wheelchair-alt,.fa.fa-wpbeginner,.fa.fa-wpforms{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-wheelchair-alt:before{content:"\\f368"}.fa.fa-question-circle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-question-circle-o:before{content:"\\f059"}.fa.fa-volume-control-phone:before{content:"\\f2a0"}.fa.fa-asl-interpreting:before{content:"\\f2a3"}.fa.fa-deafness:before,.fa.fa-hard-of-hearing:before{content:"\\f2a4"}.fa.fa-glide,.fa.fa-glide-g{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-signing:before{content:"\\f2a7"}.fa.fa-first-order,.fa.fa-google-plus-official,.fa.fa-pied-piper,.fa.fa-snapchat,.fa.fa-snapchat-ghost,.fa.fa-snapchat-square,.fa.fa-themeisle,.fa.fa-viadeo,.fa.fa-viadeo-square,.fa.fa-yoast{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-google-plus-official:before{content:"\\f2b3"}.fa.fa-google-plus-circle{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-google-plus-circle:before{content:"\\f2b3"}.fa.fa-fa,.fa.fa-font-awesome{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-fa:before{content:"\\f2b4"}.fa.fa-handshake-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-handshake-o:before{content:"\\f2b5"}.fa.fa-envelope-open-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-envelope-open-o:before{content:"\\f2b6"}.fa.fa-linode{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-address-book-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-address-book-o:before{content:"\\f2b9"}.fa.fa-vcard:before{content:"\\f2bb"}.fa.fa-address-card-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-address-card-o:before{content:"\\f2bb"}.fa.fa-vcard-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-vcard-o:before{content:"\\f2bb"}.fa.fa-user-circle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-user-circle-o:before{content:"\\f2bd"}.fa.fa-user-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-user-o:before{content:"\\f007"}.fa.fa-id-badge{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-drivers-license:before{content:"\\f2c2"}.fa.fa-id-card-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-id-card-o:before{content:"\\f2c2"}.fa.fa-drivers-license-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-drivers-license-o:before{content:"\\f2c2"}.fa.fa-free-code-camp,.fa.fa-quora,.fa.fa-telegram{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-thermometer-4:before,.fa.fa-thermometer:before{content:"\\f2c7"}.fa.fa-thermometer-3:before{content:"\\f2c8"}.fa.fa-thermometer-2:before{content:"\\f2c9"}.fa.fa-thermometer-1:before{content:"\\f2ca"}.fa.fa-thermometer-0:before{content:"\\f2cb"}.fa.fa-bathtub:before,.fa.fa-s15:before{content:"\\f2cd"}.fa.fa-window-maximize,.fa.fa-window-restore{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-times-rectangle:before{content:"\\f410"}.fa.fa-window-close-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-window-close-o:before{content:"\\f410"}.fa.fa-times-rectangle-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-times-rectangle-o:before{content:"\\f410"}.fa.fa-bandcamp,.fa.fa-eercast,.fa.fa-etsy,.fa.fa-grav,.fa.fa-imdb,.fa.fa-ravelry{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-eercast:before{content:"\\f2da"}.fa.fa-snowflake-o{font-family:"Font Awesome 5 Free";font-weight:400}.fa.fa-snowflake-o:before{content:"\\f2dc"}.fa.fa-superpowers,.fa.fa-wpexplorer{font-family:"Font Awesome 5 Brands";font-weight:400}.fa.fa-cab:before{content:"\\f1ba"}',""]);const i=c},20688:(e,f,o)=>{o.d(f,{Z:()=>i});var t=o(8081);var n=o.n(t);var a=o(23645);var r=o.n(a);var c=r()(n());c.push([e.id,":root{--toastify-color-light:#fff;--toastify-color-dark:#121212;--toastify-color-info:#3498db;--toastify-color-success:#07bc0c;--toastify-color-warning:#f1c40f;--toastify-color-error:#e74c3c;--toastify-color-transparent:hsla(0,0%,100%,.7);--toastify-icon-color-info:var(--toastify-color-info);--toastify-icon-color-success:var(--toastify-color-success);--toastify-icon-color-warning:var(--toastify-color-warning);--toastify-icon-color-error:var(--toastify-color-error);--toastify-toast-width:320px;--toastify-toast-background:#fff;--toastify-toast-min-height:64px;--toastify-toast-max-height:800px;--toastify-font-family:sans-serif;--toastify-z-index:9999;--toastify-text-color-light:#757575;--toastify-text-color-dark:#fff;--toastify-text-color-info:#fff;--toastify-text-color-success:#fff;--toastify-text-color-warning:#fff;--toastify-text-color-error:#fff;--toastify-spinner-color:#616161;--toastify-spinner-color-empty-area:#e0e0e0;--toastify-color-progress-light:linear-gradient(90deg,#4cd964,#5ac8fa,#007aff,#34aadc,#5856d6,#ff2d55);--toastify-color-progress-dark:#bb86fc;--toastify-color-progress-info:var(--toastify-color-info);--toastify-color-progress-success:var(--toastify-color-success);--toastify-color-progress-warning:var(--toastify-color-warning);--toastify-color-progress-error:var(--toastify-color-error)}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translateZ(var(--toastify-z-index));position:fixed;padding:4px;width:var(--toastify-toast-width);box-sizing:border-box;color:#fff}.Toastify__toast-container--top-left{top:1em;left:1em}.Toastify__toast-container--top-center{top:1em;left:50%;transform:translateX(-50%)}.Toastify__toast-container--top-right{top:1em;right:1em}.Toastify__toast-container--bottom-left{bottom:1em;left:1em}.Toastify__toast-container--bottom-center{bottom:1em;left:50%;transform:translateX(-50%)}.Toastify__toast-container--bottom-right{bottom:1em;right:1em}@media only screen and (max-width:480px){.Toastify__toast-container{width:100vw;padding:0;left:0;margin:0}.Toastify__toast-container--top-center,.Toastify__toast-container--top-left,.Toastify__toast-container--top-right{top:0;transform:translateX(0)}.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-right{bottom:0;transform:translateX(0)}.Toastify__toast-container--rtl{right:0;left:auto}}.Toastify__toast{position:relative;min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:8px;border-radius:4px;box-shadow:0 1px 10px 0 rgba(0,0,0,.1),0 2px 15px 0 rgba(0,0,0,.05);display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;max-height:var(--toastify-toast-max-height);overflow:hidden;font-family:var(--toastify-font-family);cursor:default;direction:ltr;z-index:0}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-body{margin:auto 0;-ms-flex:1 1 auto;flex:1 1 auto;padding:6px;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.Toastify__toast-body>div:last-child{word-break:break-word;-ms-flex:1;flex:1}.Toastify__toast-icon{-webkit-margin-end:10px;margin-inline-end:10px;width:20px;-ms-flex-negative:0;flex-shrink:0;display:-ms-flexbox;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.7s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}@media only screen and (max-width:480px){.Toastify__toast{margin-bottom:0;border-radius:0}}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--colored.Toastify__toast--default,.Toastify__toast-theme--light{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;-ms-flex-item-align:start;align-self:flex-start}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:focus,.Toastify__close-button:hover{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:5px;z-index:var(--toastify-z-index);opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:auto;transform-origin:right}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,0,0)}to{opacity:0;transform:translate3d(2000px,0,0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,0,0)}to{opacity:0;transform:translate3d(-2000px,0,0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,-10px,0)}40%,45%{opacity:1;transform:translate3d(0,20px,0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,10px,0)}40%,45%{opacity:1;transform:translate3d(0,-20px,0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--bottom-left,.Toastify__bounce-enter--top-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--bottom-right,.Toastify__bounce-enter--top-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--bottom-left,.Toastify__bounce-exit--top-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--bottom-right,.Toastify__bounce-exit--top-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:perspective(400px)}30%{transform:perspective(400px) rotateX(-20deg);opacity:1}to{transform:perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translateZ(0)}}@keyframes Toastify__slideOutRight{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(110%,0,0)}}@keyframes Toastify__slideOutLeft{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(-110%,0,0)}}@keyframes Toastify__slideOutDown{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translateZ(0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--bottom-left,.Toastify__slide-enter--top-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--bottom-right,.Toastify__slide-enter--top-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--bottom-left,.Toastify__slide-exit--top-left{animation-name:Toastify__slideOutLeft}.Toastify__slide-exit--bottom-right,.Toastify__slide-exit--top-right{animation-name:Toastify__slideOutRight}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown}@keyframes Toastify__spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}",""]);const i=c},14850:(e,f,o)=>{o.d(f,{Z:()=>i});var t=o(8081);var n=o.n(t);var a=o(23645);var r=o.n(a);var c=r()(n());c.push([e.id,'/**\n * Copyright (c) 2014 The xterm.js authors. All rights reserved.\n * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)\n * https://github.com/chjj/term.js\n * @license MIT\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 * Originally forked from (with the author\'s permission):\n * Fabrice Bellard\'s javascript vt100 for jslinux:\n * http://bellard.org/jslinux/\n * Copyright (c) 2011 Fabrice Bellard\n * The original design remains. The terminal itself\n * has been extended to include xterm CSI codes, among\n * other features.\n */\n\n/**\n * Default styles for xterm.js\n */\n\n.xterm {\n cursor: text;\n position: relative;\n user-select: none;\n -ms-user-select: none;\n -webkit-user-select: none;\n}\n\n.xterm.focus,\n.xterm:focus {\n outline: none;\n}\n\n.xterm .xterm-helpers {\n position: absolute;\n top: 0;\n /**\n * The z-index of the helpers must be higher than the canvases in order for\n * IMEs to appear on top.\n */\n z-index: 5;\n}\n\n.xterm .xterm-helper-textarea {\n padding: 0;\n border: 0;\n margin: 0;\n /* Move textarea out of the screen to the far left, so that the cursor is not visible */\n position: absolute;\n opacity: 0;\n left: -9999em;\n top: 0;\n width: 0;\n height: 0;\n z-index: -5;\n /** Prevent wrapping so the IME appears against the textarea at the correct position */\n white-space: nowrap;\n overflow: hidden;\n resize: none;\n}\n\n.xterm .composition-view {\n /* TODO: Composition position got messed up somewhere */\n background: #000;\n color: #FFF;\n display: none;\n position: absolute;\n white-space: nowrap;\n z-index: 1;\n}\n\n.xterm .composition-view.active {\n display: block;\n}\n\n.xterm .xterm-viewport {\n /* On OS X this is required in order for the scroll bar to appear fully opaque */\n background-color: #000;\n overflow-y: scroll;\n cursor: default;\n position: absolute;\n right: 0;\n left: 0;\n top: 0;\n bottom: 0;\n}\n\n.xterm .xterm-screen {\n position: relative;\n}\n\n.xterm .xterm-screen canvas {\n position: absolute;\n left: 0;\n top: 0;\n}\n\n.xterm .xterm-scroll-area {\n visibility: hidden;\n}\n\n.xterm-char-measure-element {\n display: inline-block;\n visibility: hidden;\n position: absolute;\n top: 0;\n left: -9999em;\n line-height: normal;\n}\n\n.xterm.enable-mouse-events {\n /* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */\n cursor: default;\n}\n\n.xterm.xterm-cursor-pointer,\n.xterm .xterm-cursor-pointer {\n cursor: pointer;\n}\n\n.xterm.column-select.focus {\n /* Column selection mode */\n cursor: crosshair;\n}\n\n.xterm .xterm-accessibility,\n.xterm .xterm-message {\n position: absolute;\n left: 0;\n top: 0;\n bottom: 0;\n z-index: 10;\n color: transparent;\n}\n\n.xterm .live-region {\n position: absolute;\n left: -9999px;\n width: 1px;\n height: 1px;\n overflow: hidden;\n}\n\n.xterm-dim {\n opacity: 0.5;\n}\n\n.xterm-underline-1 { text-decoration: underline; }\n.xterm-underline-2 { text-decoration: double underline; }\n.xterm-underline-3 { text-decoration: wavy underline; }\n.xterm-underline-4 { text-decoration: dotted underline; }\n.xterm-underline-5 { text-decoration: dashed underline; }\n\n.xterm-strikethrough {\n text-decoration: line-through;\n}\n\n.xterm-screen .xterm-decoration-container .xterm-decoration {\n\tz-index: 6;\n\tposition: absolute;\n}\n\n.xterm-decoration-overview-ruler {\n z-index: 7;\n position: absolute;\n top: 0;\n right: 0;\n pointer-events: none;\n}\n\n.xterm-decoration-top {\n z-index: 2;\n position: relative;\n}\n',""]);const i=c},23645:e=>{e.exports=function(e){var f=[];f.toString=function f(){return this.map((function(f){var o="";var t=typeof f[5]!=="undefined";if(f[4]){o+="@supports (".concat(f[4],") {")}if(f[2]){o+="@media ".concat(f[2]," {")}if(t){o+="@layer".concat(f[5].length>0?" ".concat(f[5]):""," {")}o+=e(f);if(t){o+="}"}if(f[2]){o+="}"}if(f[4]){o+="}"}return o})).join("")};f.i=function e(o,t,n,a,r){if(typeof o==="string"){o=[[null,o,undefined]]}var c={};if(n){for(var i=0;i0?" ".concat(l[5]):""," {").concat(l[1],"}");l[5]=r}}if(t){if(!l[2]){l[2]=t}else{l[1]="@media ".concat(l[2]," {").concat(l[1],"}");l[2]=t}}if(a){if(!l[4]){l[4]="".concat(a)}else{l[1]="@supports (".concat(l[4],") {").concat(l[1],"}");l[4]=a}}f.push(l)}};return f}},61667:e=>{e.exports=function(e,f){if(!f){f={}}if(!e){return e}e=String(e.__esModule?e.default:e);if(/^['"].*['"]$/.test(e)){e=e.slice(1,-1)}if(f.hash){e+=f.hash}if(/["'() \t\n]|(%20)/.test(e)||f.needQuotes){return'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"')}return e}},8081:e=>{e.exports=function(e){return e[1]}},81802:(e,f,o)=>{var t=o(93379);var n=o.n(t);var a=o(7795);var r=o.n(a);var c=o(90569);var i=o.n(c);var b=o(3565);var s=o.n(b);var l=o(19216);var d=o.n(l);var m=o(44589);var p=o.n(m);var h=o(27594);var u={};u.styleTagTransform=p();u.setAttributes=s();u.insert=i().bind(null,"head");u.domAPI=r();u.insertStyleElement=d();var g=n()(h.Z,u);var w=h.Z&&h.Z.locals?h.Z.locals:undefined},76126:(e,f,o)=>{var t=o(93379);var n=o.n(t);var a=o(7795);var r=o.n(a);var c=o(90569);var i=o.n(c);var b=o(3565);var s=o.n(b);var l=o(19216);var d=o.n(l);var m=o(44589);var p=o.n(m);var h=o(6846);var u={};u.styleTagTransform=p();u.setAttributes=s();u.insert=i().bind(null,"head");u.domAPI=r();u.insertStyleElement=d();var g=n()(h.Z,u);var w=h.Z&&h.Z.locals?h.Z.locals:undefined},77502:(e,f,o)=>{var t=o(93379);var n=o.n(t);var a=o(7795);var r=o.n(a);var c=o(90569);var i=o.n(c);var b=o(3565);var s=o.n(b);var l=o(19216);var d=o.n(l);var m=o(44589);var p=o.n(m);var h=o(14850);var u={};u.styleTagTransform=p();u.setAttributes=s();u.insert=i().bind(null,"head");u.domAPI=r();u.insertStyleElement=d();var g=n()(h.Z,u);var w=h.Z&&h.Z.locals?h.Z.locals:undefined},93379:e=>{var f=[];function o(e){var o=-1;for(var t=0;t{var f={};function o(e){if(typeof f[e]==="undefined"){var o=document.querySelector(e);if(window.HTMLIFrameElement&&o instanceof window.HTMLIFrameElement){try{o=o.contentDocument.head}catch(t){o=null}}f[e]=o}return f[e]}function t(e,f){var t=o(e);if(!t){throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.")}t.appendChild(f)}e.exports=t},19216:e=>{function f(e){var f=document.createElement("style");e.setAttributes(f,e.attributes);e.insert(f,e.options);return f}e.exports=f},3565:(e,f,o)=>{function t(e){var f=true?o.nc:0;if(f){e.setAttribute("nonce",f)}}e.exports=t},7795:e=>{function f(e,f,o){var t="";if(o.supports){t+="@supports (".concat(o.supports,") {")}if(o.media){t+="@media ".concat(o.media," {")}var n=typeof o.layer!=="undefined";if(n){t+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")}t+=o.css;if(n){t+="}"}if(o.media){t+="}"}if(o.supports){t+="}"}var a=o.sourceMap;if(a&&typeof btoa!=="undefined"){t+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(a))))," */")}f.styleTagTransform(t,e,f.options)}function o(e){if(e.parentNode===null){return false}e.parentNode.removeChild(e)}function t(e){var t=e.insertStyleElement(e);return{update:function o(n){f(t,e,n)},remove:function e(){o(t)}}}e.exports=t},44589:e=>{function f(e,f){if(f.styleSheet){f.styleSheet.cssText=e}else{while(f.firstChild){f.removeChild(f.firstChild)}f.appendChild(document.createTextNode(e))}}e.exports=f},3669:(e,f,o)=>{e.exports=o.p+"e4299464e7b012968eed.eot"},49025:(e,f,o)=>{e.exports=o.p+"cda59d6efffa685830fd.ttf"},35229:(e,f,o)=>{e.exports=o.p+"f9217f66874b0c01cd8c.woff"},32966:(e,f,o)=>{e.exports=o.p+"8ea8791754915a898a31.woff2"},50965:(e,f,o)=>{e.exports=o.p+"79d088064beb3826054f.eot"},36901:(e,f,o)=>{e.exports=o.p+"e8711bbb871afd8e9dea.ttf"},1338:(e,f,o)=>{e.exports=o.p+"cb9e9e693192413cde2b.woff"},76637:(e,f,o)=>{e.exports=o.p+"e42a88444448ac3d6054.woff2"},88231:(e,f,o)=>{e.exports=o.p+"373c04fd2418f5c77eea.eot"},15778:(e,f,o)=>{e.exports=o.p+"af6397503fcefbd61397.ttf"},33983:(e,f,o)=>{e.exports=o.p+"3f6d3488cf65374f6f67.woff"},86165:(e,f,o)=>{e.exports=o.p+"9834b82ad26e2a37583d.woff2"},79153:(e,f,o)=>{e.exports=o.p+"3de784d07b9fa8f104c1.woff"},89345:(e,f,o)=>{e.exports=o.p+"af04542b29eaac04550a.woff"},71758:(e,f,o)=>{e.exports=o.p+"26683bf201fb258a2237.woff"},96039:(e,f,o)=>{e.exports=o.p+"721921bab0d001ebff02.woff"},36130:(e,f,o)=>{e.exports=o.p+"870673df72e70f87c91a.woff"},44987:(e,f,o)=>{e.exports=o.p+"88b98cad3688915e50da.woff"},33673:(e,f,o)=>{e.exports=o.p+"355254db9ca10a09a3b5.woff"},9078:(e,f,o)=>{e.exports=o.p+"1cb1c39ea642f26a4dfe.woff"},72018:(e,f,o)=>{e.exports=o.p+"8ea8dbb1b02e6f730f55.woff"},72245:(e,f,o)=>{e.exports=o.p+"a009bea404f7a500ded4.woff"},64335:(e,f,o)=>{e.exports=o.p+"32792104b5ef69eded90.woff"},45894:(e,f,o)=>{e.exports=o.p+"fc6ddf5df402b263cfb1.woff"},82750:(e,f,o)=>{e.exports=o.p+"b418136e3b384baaadec.woff"},26034:(e,f,o)=>{e.exports=o.p+"af96f67d7accf5fd2a4a.woff"},48963:(e,f,o)=>{e.exports=o.p+"c49810b53ecc0d87d802.woff"},67393:(e,f,o)=>{e.exports=o.p+"30e889b58cbc51adfbb0.woff"},47242:(e,f,o)=>{e.exports=o.p+"5cda41563a095bd70c78.woff"},22405:(e,f,o)=>{e.exports=o.p+"3bc6ecaae7ecf6f8d7f8.woff"},29350:(e,f,o)=>{e.exports=o.p+"c56da8d69f1a0208b8e0.woff"},84526:(e,f,o)=>{e.exports=o.p+"36e0d72d8a7afc696a3e.woff"},38772:(e,f,o)=>{e.exports=o.p+"72bc573386dd1d48c5bb.woff"},44946:(e,f,o)=>{e.exports=o.p+"481e39042508ae313a60.woff"},28116:(e,f,o)=>{e.exports=o.p+"a3b9817780214caf01e8.svg"},5255:(e,f,o)=>{e.exports=o.p+"be0a084962d8066884f7.svg"},21369:(e,f,o)=>{e.exports=o.p+"9674eb1bd55047179038.svg"}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/7669.343e259c4c8269479f5b.js b/bootcamp/share/jupyter/lab/static/7669.343e259c4c8269479f5b.js new file mode 100644 index 0000000..c67cb96 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/7669.343e259c4c8269479f5b.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7669],{17669:(e,t,n)=>{n.r(t);n.d(t,{solr:()=>p});var r=/[^\s\|\!\+\-\*\?\~\^\&\:\(\)\[\]\{\}\"\\]/;var i=/[\|\!\+\-\*\?\~\^\&]/;var o=/^(OR|AND|NOT|TO)$/i;function u(e){return parseFloat(e).toString()===e}function a(e){return function(t,n){var r=false,i;while((i=t.next())!=null){if(i==e&&!r)break;r=!r&&i=="\\"}if(!r)n.tokenize=s;return"string"}}function l(e){return function(t,n){if(e=="|")t.eat(/\|/);else if(e=="&")t.eat(/\&/);n.tokenize=s;return"operator"}}function f(e){return function(t,n){var i=e;while((e=t.peek())&&e.match(r)!=null){i+=t.next()}n.tokenize=s;if(o.test(i))return"operator";else if(u(i))return"number";else if(t.peek()==":")return"propertyName";else return"string"}}function s(e,t){var n=e.next();if(n=='"')t.tokenize=a(n);else if(i.test(n))t.tokenize=l(n);else if(r.test(n))t.tokenize=f(n);return t.tokenize!=s?t.tokenize(e,t):null}const p={name:"solr",startState:function(){return{tokenize:s}},token:function(e,t){if(e.eatSpace())return null;return t.tokenize(e,t)}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/7702.c479c69f7a532f7b3fd5.js b/bootcamp/share/jupyter/lab/static/7702.c479c69f7a532f7b3fd5.js new file mode 100644 index 0000000..528a12f --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/7702.c479c69f7a532f7b3fd5.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7702],{57702:(e,t,a)=>{a.r(t);a.d(t,{spreadsheet:()=>r});const r={name:"spreadsheet",startState:function(){return{stringType:null,stack:[]}},token:function(e,t){if(!e)return;if(t.stack.length===0){if(e.peek()=='"'||e.peek()=="'"){t.stringType=e.peek();e.next();t.stack.unshift("string")}}switch(t.stack[0]){case"string":while(t.stack[0]==="string"&&!e.eol()){if(e.peek()===t.stringType){e.next();t.stack.shift()}else if(e.peek()==="\\"){e.next();e.next()}else{e.match(/^.[^\\\"\']*/)}}return"string";case"characterClass":while(t.stack[0]==="characterClass"&&!e.eol()){if(!(e.match(/^[^\]\\]+/)||e.match(/^\\./)))t.stack.shift()}return"operator"}var a=e.peek();switch(a){case"[":e.next();t.stack.unshift("characterClass");return"bracket";case":":e.next();return"operator";case"\\":if(e.match(/\\[a-z]+/))return"string.special";else{e.next();return"atom"}case".":case",":case";":case"*":case"-":case"+":case"^":case"<":case"/":case"=":e.next();return"atom";case"$":e.next();return"builtin"}if(e.match(/\d+/)){if(e.match(/^\w+/))return"error";return"number"}else if(e.match(/^[a-zA-Z_]\w*/)){if(e.match(/(?=[\(.])/,false))return"keyword";return"variable"}else if(["[","]","(",")","{","}"].indexOf(a)!=-1){e.next();return"bracket"}else if(!e.eatSpace()){e.next()}return null}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/7730.7e3a9fb140d2d55a51fc.js b/bootcamp/share/jupyter/lab/static/7730.7e3a9fb140d2d55a51fc.js new file mode 100644 index 0000000..32cd441 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/7730.7e3a9fb140d2d55a51fc.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7730],{22868:()=>{},14777:()=>{},99830:()=>{},70209:()=>{},87414:()=>{}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/7731.26db150e967313b7a7e2.js b/bootcamp/share/jupyter/lab/static/7731.26db150e967313b7a7e2.js new file mode 100644 index 0000000..0bb878b --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/7731.26db150e967313b7a7e2.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7731],{47731:(e,r,a)=>{a.r(r);a.d(r,{mbox:()=>v});var t=["From","Sender","Reply-To","To","Cc","Bcc","Message-ID","In-Reply-To","References","Resent-From","Resent-Sender","Resent-To","Resent-Cc","Resent-Bcc","Resent-Message-ID","Return-Path","Received"];var n=["Date","Subject","Comments","Keywords","Resent-Date"];var i=/^[ \t]/;var s=/^From /;var u=new RegExp("^("+t.join("|")+"): ");var o=new RegExp("^("+n.join("|")+"): ");var l=/^[^:]+:/;var c=/^[^ ]+@[^ ]+/;var d=/^.*?(?=[^ ]+?@[^ ]+)/;var m=/^<.*?>/;var f=/^.*?(?=<.*>)/;function p(e){if(e==="Subject")return"header";return"string"}function h(e,r){if(e.sol()){r.inSeparator=false;if(r.inHeader&&e.match(i)){return null}else{r.inHeader=false;r.header=null}if(e.match(s)){r.inHeaders=true;r.inSeparator=true;return"atom"}var a;var t=false;if((a=e.match(o))||(t=true)&&(a=e.match(u))){r.inHeaders=true;r.inHeader=true;r.emailPermitted=t;r.header=a[1];return"atom"}if(r.inHeaders&&(a=e.match(l))){r.inHeader=true;r.emailPermitted=true;r.header=a[1];return"atom"}r.inHeaders=false;e.skipToEnd();return null}if(r.inSeparator){if(e.match(c))return"link";if(e.match(d))return"atom";e.skipToEnd();return"atom"}if(r.inHeader){var n=p(r.header);if(r.emailPermitted){if(e.match(m))return n+" link";if(e.match(f))return n}e.skipToEnd();return n}e.skipToEnd();return null}const v={name:"mbox",startState:function(){return{inSeparator:false,inHeader:false,emailPermitted:false,header:null,inHeaders:false}},token:h,blankLine:function(e){e.inHeaders=e.inSeparator=e.inHeader=false},languageData:{autocomplete:t.concat(n)}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/7763.19a095394000f9ef62bd.js b/bootcamp/share/jupyter/lab/static/7763.19a095394000f9ef62bd.js new file mode 100644 index 0000000..7b2978f --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/7763.19a095394000f9ef62bd.js @@ -0,0 +1,2 @@ +/*! For license information please see 7763.19a095394000f9ef62bd.js.LICENSE.txt */ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7763],{37763:(e,r,t)=>{e.exports=function(e){var r={};function t(n){if(r[n])return r[n].exports;var a=r[n]={exports:{},id:n,loaded:false};e[n].call(a.exports,a,a.exports,t);a.loaded=true;return a.exports}t.m=e;t.c=r;t.p="";return t(0)}([function(e,r,t){e.exports=t(1)},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:true});function n(e){return e&&e.__esModule?e:{default:e}}var a=t(2);var i=n(a);r["default"]=i["default"];e.exports=r["default"]},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:true});var n=Object.assign||function(e){for(var r=1;r=0)continue;if(!Object.prototype.hasOwnProperty.call(e,n))continue;t[n]=e[n]}return t}var u=t(3);var o=t(4);var s=a(o);var f=t(14);var l=t(15);var c=a(l);p.propTypes={activeClassName:s["default"].string,activeIndex:s["default"].number,activeStyle:s["default"].object,autoEscape:s["default"].bool,className:s["default"].string,findChunks:s["default"].func,highlightClassName:s["default"].oneOfType([s["default"].object,s["default"].string]),highlightStyle:s["default"].object,highlightTag:s["default"].oneOfType([s["default"].node,s["default"].func,s["default"].string]),sanitize:s["default"].func,searchWords:s["default"].arrayOf(s["default"].oneOfType([s["default"].string,s["default"].instanceOf(RegExp)])).isRequired,textToHighlight:s["default"].string.isRequired,unhighlightTag:s["default"].oneOfType([s["default"].node,s["default"].func,s["default"].string]),unhighlightClassName:s["default"].string,unhighlightStyle:s["default"].object};function p(e){var r=e.activeClassName;var t=r===undefined?"":r;var a=e.activeIndex;var o=a===undefined?-1:a;var s=e.activeStyle;var l=e.autoEscape;var p=e.caseSensitive;var d=p===undefined?false:p;var v=e.className;var h=e.findChunks;var y=e.highlightClassName;var g=y===undefined?"":y;var m=e.highlightStyle;var b=m===undefined?{}:m;var O=e.highlightTag;var x=O===undefined?"mark":O;var w=e.sanitize;var T=e.searchWords;var E=e.textToHighlight;var j=e.unhighlightTag;var k=j===undefined?"span":j;var N=e.unhighlightClassName;var _=N===undefined?"":N;var S=e.unhighlightStyle;var P=i(e,["activeClassName","activeIndex","activeStyle","autoEscape","caseSensitive","className","findChunks","highlightClassName","highlightStyle","highlightTag","sanitize","searchWords","textToHighlight","unhighlightTag","unhighlightClassName","unhighlightStyle"]);var C=(0,u.findAll)({autoEscape:l,caseSensitive:d,findChunks:h,sanitize:w,searchWords:T,textToHighlight:E});var I=x;var R=-1;var A="";var D=undefined;var q=function e(r){var t={};for(var n in r){t[n.toLowerCase()]=r[n]}return t};var L=(0,c["default"])(q);return(0,f.createElement)("span",n({className:v},P,{children:C.map((function(e,r){var n=E.substr(e.start,e.end-e.start);if(e.highlight){R++;var a=undefined;if(typeof g==="object"){if(!d){g=L(g);a=g[n.toLowerCase()]}else{a=g[n]}}else{a=g}var i=R===+o;A=a+" "+(i?t:"");D=i===true&&s!=null?Object.assign({},b,s):b;var u={children:n,className:A,key:r,style:D};if(typeof I!=="string"){u.highlightIndex=R}return(0,f.createElement)(I,u)}else{return(0,f.createElement)(k,{children:n,className:_,key:r,style:S})}}))}))}e.exports=r["default"]},function(e,r){e.exports=function(e){var r={};function t(n){if(r[n])return r[n].exports;var a=r[n]={exports:{},id:n,loaded:false};e[n].call(a.exports,a,a.exports,t);a.loaded=true;return a.exports}t.m=e;t.c=r;t.p="";return t(0)}([function(e,r,t){e.exports=t(1)},function(e,r,t){"use strict";Object.defineProperty(r,"__esModule",{value:true});var n=t(2);Object.defineProperty(r,"combineChunks",{enumerable:true,get:function e(){return n.combineChunks}});Object.defineProperty(r,"fillInChunks",{enumerable:true,get:function e(){return n.fillInChunks}});Object.defineProperty(r,"findAll",{enumerable:true,get:function e(){return n.findAll}});Object.defineProperty(r,"findChunks",{enumerable:true,get:function e(){return n.findChunks}})},function(e,r){"use strict";Object.defineProperty(r,"__esModule",{value:true});var t=r.findAll=function e(r){var t=r.autoEscape,u=r.caseSensitive,o=u===undefined?false:u,s=r.findChunks,f=s===undefined?a:s,l=r.sanitize,c=r.searchWords,p=r.textToHighlight;return i({chunksToHighlight:n({chunks:f({autoEscape:t,caseSensitive:o,sanitize:l,searchWords:c,textToHighlight:p})}),totalLength:p?p.length:0})};var n=r.combineChunks=function e(r){var t=r.chunks;t=t.sort((function(e,r){return e.start-r.start})).reduce((function(e,r){if(e.length===0){return[r]}else{var t=e.pop();if(r.start<=t.end){var n=Math.max(t.end,r.end);e.push({start:t.start,end:n})}else{e.push(t,r)}return e}}),[]);return t};var a=function e(r){var t=r.autoEscape,n=r.caseSensitive,a=r.sanitize,i=a===undefined?u:a,s=r.searchWords,f=r.textToHighlight;f=i(f);return s.filter((function(e){return e})).reduce((function(e,r){r=i(r);if(t){r=o(r)}var a=new RegExp(r,n?"g":"gi");var u=void 0;while(u=a.exec(f)){var s=u.index;var l=a.lastIndex;if(l>s){e.push({start:s,end:l})}if(u.index==a.lastIndex){a.lastIndex++}}return e}),[])};r.findChunks=a;var i=r.fillInChunks=function e(r){var t=r.chunksToHighlight,n=r.totalLength;var a=[];var i=function e(r,t,n){if(t-r>0){a.push({start:r,end:t,highlight:n})}};if(t.length===0){i(0,n,false)}else{var u=0;t.forEach((function(e){i(u,e.start,false);i(e.start,e.end,true);u=e.end}));i(u,n,false)}return a};function u(e){return e}function o(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}}])},function(e,r,t){(function(r){if(r.env.NODE_ENV!=="production"){var n=typeof Symbol==="function"&&Symbol.for&&Symbol.for("react.element")||60103;var a=function(e){return typeof e==="object"&&e!==null&&e.$$typeof===n};var i=true;e.exports=t(6)(a,i)}else{e.exports=t(13)()}}).call(r,t(5))},function(e,r){var t=e.exports={};var n;var a;function i(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}(function(){try{if(typeof setTimeout==="function"){n=setTimeout}else{n=i}}catch(e){n=i}try{if(typeof clearTimeout==="function"){a=clearTimeout}else{a=u}}catch(e){a=u}})();function o(e){if(n===setTimeout){return setTimeout(e,0)}if((n===i||!n)&&setTimeout){n=setTimeout;return setTimeout(e,0)}try{return n(e,0)}catch(r){try{return n.call(null,e,0)}catch(r){return n.call(this,e,0)}}}function s(e){if(a===clearTimeout){return clearTimeout(e)}if((a===u||!a)&&clearTimeout){a=clearTimeout;return clearTimeout(e)}try{return a(e)}catch(r){try{return a.call(null,e)}catch(r){return a.call(this,e)}}}var f=[];var l=false;var c;var p=-1;function d(){if(!l||!c){return}l=false;if(c.length){f=c.concat(f)}else{p=-1}if(f.length){v()}}function v(){if(l){return}var e=o(d);l=true;var r=f.length;while(r){c=f;f=[];while(++p1){for(var t=1;t1?t-1:0),a=1;a2?n-2:0),u=2;u1&&arguments[1]!==undefined?arguments[1]:t;var n=void 0;var a=[];var i=void 0;var u=false;var o=function e(t,n){return r(t,a[n])};var s=function r(){for(var t=arguments.length,s=Array(t),f=0;f=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var a=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),n,i=[],o;try{while((t===void 0||t-- >0)&&!(n=a.next()).done)i.push(n.value)}catch(s){o={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(o)throw o.error}}return i};var n=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var a=0,n=t.length,i;a0)&&!(n=a.next()).done)i.push(n.value)}catch(s){o={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(o)throw o.error}}return i};var n=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var a=0,n=t.length,i;a0)&&!(n=a.next()).done)i.push(n.value)}catch(s){o={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(o)throw o.error}}return i};var n=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var a=0,n=t.length,i;a1){r.autoOP=false}}var n=e.create("token","mi",r,t);e.Push(n)}e.variable=t;function r(e,t){var r;var a=e.configuration.options["digits"];var n=e.string.slice(e.i-1).match(a);var i=l.default.getFontDef(e);if(n){r=e.create("token","mn",i,n[0].replace(/[{}]/g,""));e.i+=n[0].length-1}else{r=e.create("token","mo",i,t)}e.Push(r)}e.digit=r;function i(e,t){var r=e.GetCS();e.parse("macro",[e,r])}e.controlSequence=i;function u(e,t){var r=t.attributes||{mathvariant:s.TexConstant.Variant.ITALIC};var a=e.create("token","mi",r,t.char);e.Push(a)}e.mathchar0mi=u;function c(e,t){var r=t.attributes||{};r["stretchy"]=false;var a=e.create("token","mo",r,t.char);o.default.setProperty(a,"fixStretchy",true);e.configuration.addNode("fixStretchy",a);e.Push(a)}e.mathchar0mo=c;function f(e,t){var r=t.attributes||{mathvariant:s.TexConstant.Variant.NORMAL};if(e.stack.env["font"]){r["mathvariant"]=e.stack.env["font"]}var a=e.create("token","mi",r,t.char);e.Push(a)}e.mathchar7=f;function p(e,t){var r=t.attributes||{};r=Object.assign({fence:false,stretchy:false},r);var a=e.create("token","mo",r,t.char);e.Push(a)}e.delimiter=p;function h(e,t,r,i){var o=i[0];var s=e.itemFactory.create("begin").setProperties({name:t,end:o});s=r.apply(void 0,n([e,s],a(i.slice(1)),false));e.Push(s)}e.environment=h})(u||(u={}));t["default"]=u},1331:function(e,t,r){var a=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),n,i=[],o;try{while((t===void 0||t-- >0)&&!(n=a.next()).done)i.push(n.value)}catch(s){o={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(o)throw o.error}}return i};var n=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var a=0,n=t.length,i;a=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var s=o(r(57394));var l=r(38624);var u=o(r(72895));var c=r(36059);var f=function(){function e(e,t){if(t===void 0){t=[]}this.options={};this.packageData=new Map;this.parsers=[];this.root=null;this.nodeLists={};this.error=false;this.handlers=e.handlers;this.nodeFactory=new l.NodeFactory;this.nodeFactory.configuration=this;this.nodeFactory.setCreators(e.nodes);this.itemFactory=new s.default(e.items);this.itemFactory.configuration=this;c.defaultOptions.apply(void 0,n([this.options],a(t),false));(0,c.defaultOptions)(this.options,e.options)}e.prototype.pushParser=function(e){this.parsers.unshift(e)};e.prototype.popParser=function(){this.parsers.shift()};Object.defineProperty(e.prototype,"parser",{get:function(){return this.parsers[0]},enumerable:false,configurable:true});e.prototype.clear=function(){this.parsers=[];this.root=null;this.nodeLists={};this.error=false;this.tags.resetTag()};e.prototype.addNode=function(e,t){var r=this.nodeLists[e];if(!r){r=this.nodeLists[e]=[]}r.push(t);if(t.kind!==e){var a=u.default.getProperty(t,"in-lists")||"";var n=(a?a.split(/,/):[]).concat(e).join(",");u.default.setProperty(t,"in-lists",n)}};e.prototype.getList=function(e){var t,r;var a=this.nodeLists[e]||[];var n=[];try{for(var o=i(a),s=o.next();!s.done;s=o.next()){var l=s.value;if(this.inTree(l)){n.push(l)}}}catch(u){t={error:u}}finally{try{if(s&&!s.done&&(r=o.return))r.call(o)}finally{if(t)throw t.error}}this.nodeLists[e]=n;return n};e.prototype.removeFromList=function(e,t){var r,a;var n=this.nodeLists[e]||[];try{for(var o=i(t),s=o.next();!s.done;s=o.next()){var l=s.value;var u=n.indexOf(l);if(u>=0){n.splice(u,1)}}}catch(c){r={error:c}}finally{try{if(s&&!s.done&&(a=o.return))a.call(o)}finally{if(r)throw r.error}}};e.prototype.inTree=function(e){while(e&&e!==this.root){e=e.parent}return!!e};return e}();t["default"]=f},34726:function(e,t,r){var a=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),n,i=[],o;try{while((t===void 0||t-- >0)&&!(n=a.next()).done)i.push(n.value)}catch(s){o={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(o)throw o.error}}return i};var i=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var a=0,n=t.length,i;a=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.BaseItem=t.MmlStack=void 0;var l=s(r(48406));var u=function(){function e(e){this._nodes=e}Object.defineProperty(e.prototype,"nodes",{get:function(){return this._nodes},enumerable:false,configurable:true});e.prototype.Push=function(){var e;var t=[];for(var r=0;r{Object.defineProperty(t,"__esModule",{value:true});t.TexConstant=void 0;var r;(function(e){e.Variant={NORMAL:"normal",BOLD:"bold",ITALIC:"italic",BOLDITALIC:"bold-italic",DOUBLESTRUCK:"double-struck",FRAKTUR:"fraktur",BOLDFRAKTUR:"bold-fraktur",SCRIPT:"script",BOLDSCRIPT:"bold-script",SANSSERIF:"sans-serif",BOLDSANSSERIF:"bold-sans-serif",SANSSERIFITALIC:"sans-serif-italic",SANSSERIFBOLDITALIC:"sans-serif-bold-italic",MONOSPACE:"monospace",INITIAL:"inital",TAILED:"tailed",LOOPED:"looped",STRETCHED:"stretched",CALLIGRAPHIC:"-tex-calligraphic",BOLDCALLIGRAPHIC:"-tex-bold-calligraphic",OLDSTYLE:"-tex-oldstyle",BOLDOLDSTYLE:"-tex-bold-oldstyle",MATHITALIC:"-tex-mathit"};e.Form={PREFIX:"prefix",INFIX:"infix",POSTFIX:"postfix"};e.LineBreak={AUTO:"auto",NEWLINE:"newline",NOBREAK:"nobreak",GOODBREAK:"goodbreak",BADBREAK:"badbreak"};e.LineBreakStyle={BEFORE:"before",AFTER:"after",DUPLICATE:"duplicate",INFIXLINBREAKSTYLE:"infixlinebreakstyle"};e.IndentAlign={LEFT:"left",CENTER:"center",RIGHT:"right",AUTO:"auto",ID:"id",INDENTALIGN:"indentalign"};e.IndentShift={INDENTSHIFT:"indentshift"};e.LineThickness={THIN:"thin",MEDIUM:"medium",THICK:"thick"};e.Notation={LONGDIV:"longdiv",ACTUARIAL:"actuarial",PHASORANGLE:"phasorangle",RADICAL:"radical",BOX:"box",ROUNDEDBOX:"roundedbox",CIRCLE:"circle",LEFT:"left",RIGHT:"right",TOP:"top",BOTTOM:"bottom",UPDIAGONALSTRIKE:"updiagonalstrike",DOWNDIAGONALSTRIKE:"downdiagonalstrike",VERTICALSTRIKE:"verticalstrike",HORIZONTALSTRIKE:"horizontalstrike",NORTHEASTARROW:"northeastarrow",MADRUWB:"madruwb",UPDIAGONALARROW:"updiagonalarrow"};e.Align={TOP:"top",BOTTOM:"bottom",CENTER:"center",BASELINE:"baseline",AXIS:"axis",LEFT:"left",RIGHT:"right"};e.Lines={NONE:"none",SOLID:"solid",DASHED:"dashed"};e.Side={LEFT:"left",RIGHT:"right",LEFTOVERLAP:"leftoverlap",RIGHTOVERLAP:"rightoverlap"};e.Width={AUTO:"auto",FIT:"fit"};e.Actiontype={TOGGLE:"toggle",STATUSLINE:"statusline",TOOLTIP:"tooltip",INPUT:"input"};e.Overflow={LINBREAK:"linebreak",SCROLL:"scroll",ELIDE:"elide",TRUNCATE:"truncate",SCALE:"scale"};e.Unit={EM:"em",EX:"ex",PX:"px",IN:"in",CM:"cm",MM:"mm",PT:"pt",PC:"pc"}})(r=t.TexConstant||(t.TexConstant={}))},19890:function(e,t,r){var a=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();var n=this&&this.__createBinding||(Object.create?function(e,t,r,a){if(a===undefined)a=r;var n=Object.getOwnPropertyDescriptor(t,r);if(!n||("get"in n?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,a,n)}:function(e,t,r,a){if(a===undefined)a=r;e[a]=t[r]});var i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);i(t,e);return t};var s=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],a=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&a>=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};var u;Object.defineProperty(t,"__esModule",{value:true});t.BaseConfiguration=t.BaseTags=t.Other=void 0;var c=r(23644);var f=r(84858);var p=l(r(48406));var h=l(r(72895));var d=r(92715);var m=o(r(5065));var v=r(56711);r(83031);var y=r(64432);new d.CharacterMap("remap",null,{"-":"−","*":"∗","`":"‘"});function g(e,t){var r=e.stack.env["font"];var a=r?{mathvariant:e.stack.env["font"]}:{};var n=f.MapHandler.getMap("remap").lookup(t);var i=(0,y.getRange)(t);var o=i?i[3]:"mo";var s=e.create("token",o,a,n?n.char:t);i[4]&&s.attributes.set("mathvariant",i[4]);if(o==="mo"){h.default.setProperty(s,"fixStretchy",true);e.configuration.addNode("fixStretchy",s)}e.Push(s)}t.Other=g;function b(e,t){throw new p.default("UndefinedControlSequence","Undefined control sequence %1","\\"+t)}function A(e,t){throw new p.default("UnknownEnv","Unknown environment '%1'",t)}function S(e){var t,r;var a=e.data;try{for(var n=s(a.getList("nonscript")),i=n.next();!i.done;i=n.next()){var o=i.value;if(o.attributes.get("scriptlevel")>0){var l=o.parent;l.childNodes.splice(l.childIndex(o),1);a.removeFromList(o.kind,[o]);if(o.isKind("mrow")){var u=o.childNodes[0];a.removeFromList("mstyle",[u]);a.removeFromList("mspace",u.childNodes[0].childNodes)}}else if(o.isKind("mrow")){o.parent.replaceChild(o.childNodes[0],o);a.removeFromList("mrow",[o])}}}catch(c){t={error:c}}finally{try{if(i&&!i.done&&(r=n.return))r.call(n)}finally{if(t)throw t.error}}}var P=function(e){a(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(v.AbstractTags);t.BaseTags=P;t.BaseConfiguration=c.Configuration.create("base",{handler:{character:["command","special","letter","digit"],delimiter:["delimiter"],macro:["delimiter","macros","mathchar0mi","mathchar0mo","mathchar7"],environment:["environment"]},fallback:{character:g,macro:b,environment:A},items:(u={},u[m.StartItem.prototype.kind]=m.StartItem,u[m.StopItem.prototype.kind]=m.StopItem,u[m.OpenItem.prototype.kind]=m.OpenItem,u[m.CloseItem.prototype.kind]=m.CloseItem,u[m.PrimeItem.prototype.kind]=m.PrimeItem,u[m.SubsupItem.prototype.kind]=m.SubsupItem,u[m.OverItem.prototype.kind]=m.OverItem,u[m.LeftItem.prototype.kind]=m.LeftItem,u[m.Middle.prototype.kind]=m.Middle,u[m.RightItem.prototype.kind]=m.RightItem,u[m.BeginItem.prototype.kind]=m.BeginItem,u[m.EndItem.prototype.kind]=m.EndItem,u[m.StyleItem.prototype.kind]=m.StyleItem,u[m.PositionItem.prototype.kind]=m.PositionItem,u[m.CellItem.prototype.kind]=m.CellItem,u[m.MmlItem.prototype.kind]=m.MmlItem,u[m.FnItem.prototype.kind]=m.FnItem,u[m.NotItem.prototype.kind]=m.NotItem,u[m.NonscriptItem.prototype.kind]=m.NonscriptItem,u[m.DotsItem.prototype.kind]=m.DotsItem,u[m.ArrayItem.prototype.kind]=m.ArrayItem,u[m.EqnArrayItem.prototype.kind]=m.EqnArrayItem,u[m.EquationItem.prototype.kind]=m.EquationItem,u),options:{maxMacros:1e3,baseURL:typeof document==="undefined"||document.getElementsByTagName("base").length===0?"":String(document.location).replace(/#.*$/,"")},tags:{base:P},postprocessors:[[S,-4]]})},5065:function(e,t,r){var a=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),n,i=[],o;try{while((t===void 0||t-- >0)&&!(n=a.next()).done)i.push(n.value)}catch(s){o={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(o)throw o.error}}return i};var i=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var a=0,n=t.length,i;athis.maxrow){this.maxrow=this.row.length}var e="mtr";var t=this.factory.configuration.tags.getTag();if(t){this.row=[t].concat(this.row);e="mlabeledtr"}this.factory.configuration.tags.clearTag();var r=this.create("node",e,this.row);this.table.push(r);this.row=[]};t.prototype.EndTable=function(){e.prototype.EndTable.call(this);this.factory.configuration.tags.end();this.extendArray("columnalign",this.maxrow);this.extendArray("columnwidth",this.maxrow);this.extendArray("columnspacing",this.maxrow-1)};t.prototype.extendArray=function(e,t){if(!this.arraydef[e])return;var r=this.arraydef[e].split(/ /);var a=i([],n(r),false);if(a.length>1){while(a.length",succ:"≻",prec:"≺",approx:"≈",succeq:"⪰",preceq:"⪯",supset:"⊃",subset:"⊂",supseteq:"⊇",subseteq:"⊆",in:"∈",ni:"∋",notin:"∉",owns:"∋",gg:"≫",ll:"≪",sim:"∼",simeq:"≃",perp:"⊥",equiv:"≡",asymp:"≍",smile:"⌣",frown:"⌢",ne:"≠",neq:"≠",cong:"≅",doteq:"≐",bowtie:"⋈",models:"⊨",notChar:"⧸",Leftrightarrow:"⇔",Leftarrow:"⇐",Rightarrow:"⇒",leftrightarrow:"↔",leftarrow:"←",gets:"←",rightarrow:"→",to:["→",{accent:false}],mapsto:"↦",leftharpoonup:"↼",leftharpoondown:"↽",rightharpoonup:"⇀",rightharpoondown:"⇁",nearrow:"↗",searrow:"↘",nwarrow:"↖",swarrow:"↙",rightleftharpoons:"⇌",hookrightarrow:"↪",hookleftarrow:"↩",longleftarrow:"⟵",Longleftarrow:"⟸",longrightarrow:"⟶",Longrightarrow:"⟹",Longleftrightarrow:"⟺",longleftrightarrow:"⟷",longmapsto:"⟼",ldots:"…",cdots:"⋯",vdots:"⋮",ddots:"⋱",dotsc:"…",dotsb:"⋯",dotsm:"⋯",dotsi:"⋯",dotso:"…",ldotp:[".",{texClass:p.TEXCLASS.PUNCT}],cdotp:["⋅",{texClass:p.TEXCLASS.PUNCT}],colon:[":",{texClass:p.TEXCLASS.PUNCT}]});new s.CharacterMap("mathchar7",c.default.mathchar7,{Gamma:"Γ",Delta:"Δ",Theta:"Θ",Lambda:"Λ",Xi:"Ξ",Pi:"Π",Sigma:"Σ",Upsilon:"Υ",Phi:"Φ",Psi:"Ψ",Omega:"Ω",_:"_","#":"#",$:"$","%":"%","&":"&",And:"&"});new s.DelimiterMap("delimiter",c.default.delimiter,{"(":"(",")":")","[":"[","]":"]","<":"⟨",">":"⟩","\\lt":"⟨","\\gt":"⟩","/":"/","|":["|",{texClass:p.TEXCLASS.ORD}],".":"","\\\\":"\\","\\lmoustache":"⎰","\\rmoustache":"⎱","\\lgroup":"⟮","\\rgroup":"⟯","\\arrowvert":"⏐","\\Arrowvert":"‖","\\bracevert":"⎪","\\Vert":["‖",{texClass:p.TEXCLASS.ORD}],"\\|":["‖",{texClass:p.TEXCLASS.ORD}],"\\vert":["|",{texClass:p.TEXCLASS.ORD}],"\\uparrow":"↑","\\downarrow":"↓","\\updownarrow":"↕","\\Uparrow":"⇑","\\Downarrow":"⇓","\\Updownarrow":"⇕","\\backslash":"\\","\\rangle":"⟩","\\langle":"⟨","\\rbrace":"}","\\lbrace":"{","\\}":"}","\\{":"{","\\rceil":"⌉","\\lceil":"⌈","\\rfloor":"⌋","\\lfloor":"⌊","\\lbrack":"[","\\rbrack":"]"});new s.CommandMap("macros",{displaystyle:["SetStyle","D",true,0],textstyle:["SetStyle","T",false,0],scriptstyle:["SetStyle","S",false,1],scriptscriptstyle:["SetStyle","SS",false,2],rm:["SetFont",l.TexConstant.Variant.NORMAL],mit:["SetFont",l.TexConstant.Variant.ITALIC],oldstyle:["SetFont",l.TexConstant.Variant.OLDSTYLE],cal:["SetFont",l.TexConstant.Variant.CALLIGRAPHIC],it:["SetFont",l.TexConstant.Variant.MATHITALIC],bf:["SetFont",l.TexConstant.Variant.BOLD],bbFont:["SetFont",l.TexConstant.Variant.DOUBLESTRUCK],scr:["SetFont",l.TexConstant.Variant.SCRIPT],frak:["SetFont",l.TexConstant.Variant.FRAKTUR],sf:["SetFont",l.TexConstant.Variant.SANSSERIF],tt:["SetFont",l.TexConstant.Variant.MONOSPACE],mathrm:["MathFont",l.TexConstant.Variant.NORMAL],mathup:["MathFont",l.TexConstant.Variant.NORMAL],mathnormal:["MathFont",""],mathbf:["MathFont",l.TexConstant.Variant.BOLD],mathbfup:["MathFont",l.TexConstant.Variant.BOLD],mathit:["MathFont",l.TexConstant.Variant.MATHITALIC],mathbfit:["MathFont",l.TexConstant.Variant.BOLDITALIC],mathbb:["MathFont",l.TexConstant.Variant.DOUBLESTRUCK],Bbb:["MathFont",l.TexConstant.Variant.DOUBLESTRUCK],mathfrak:["MathFont",l.TexConstant.Variant.FRAKTUR],mathbffrak:["MathFont",l.TexConstant.Variant.BOLDFRAKTUR],mathscr:["MathFont",l.TexConstant.Variant.SCRIPT],mathbfscr:["MathFont",l.TexConstant.Variant.BOLDSCRIPT],mathsf:["MathFont",l.TexConstant.Variant.SANSSERIF],mathsfup:["MathFont",l.TexConstant.Variant.SANSSERIF],mathbfsf:["MathFont",l.TexConstant.Variant.BOLDSANSSERIF],mathbfsfup:["MathFont",l.TexConstant.Variant.BOLDSANSSERIF],mathsfit:["MathFont",l.TexConstant.Variant.SANSSERIFITALIC],mathbfsfit:["MathFont",l.TexConstant.Variant.SANSSERIFBOLDITALIC],mathtt:["MathFont",l.TexConstant.Variant.MONOSPACE],mathcal:["MathFont",l.TexConstant.Variant.CALLIGRAPHIC],mathbfcal:["MathFont",l.TexConstant.Variant.BOLDCALLIGRAPHIC],symrm:["MathFont",l.TexConstant.Variant.NORMAL],symup:["MathFont",l.TexConstant.Variant.NORMAL],symnormal:["MathFont",""],symbf:["MathFont",l.TexConstant.Variant.BOLD],symbfup:["MathFont",l.TexConstant.Variant.BOLD],symit:["MathFont",l.TexConstant.Variant.ITALIC],symbfit:["MathFont",l.TexConstant.Variant.BOLDITALIC],symbb:["MathFont",l.TexConstant.Variant.DOUBLESTRUCK],symfrak:["MathFont",l.TexConstant.Variant.FRAKTUR],symbffrak:["MathFont",l.TexConstant.Variant.BOLDFRAKTUR],symscr:["MathFont",l.TexConstant.Variant.SCRIPT],symbfscr:["MathFont",l.TexConstant.Variant.BOLDSCRIPT],symsf:["MathFont",l.TexConstant.Variant.SANSSERIF],symsfup:["MathFont",l.TexConstant.Variant.SANSSERIF],symbfsf:["MathFont",l.TexConstant.Variant.BOLDSANSSERIF],symbfsfup:["MathFont",l.TexConstant.Variant.BOLDSANSSERIF],symsfit:["MathFont",l.TexConstant.Variant.SANSSERIFITALIC],symbfsfit:["MathFont",l.TexConstant.Variant.SANSSERIFBOLDITALIC],symtt:["MathFont",l.TexConstant.Variant.MONOSPACE],symcal:["MathFont",l.TexConstant.Variant.CALLIGRAPHIC],symbfcal:["MathFont",l.TexConstant.Variant.BOLDCALLIGRAPHIC],textrm:["HBox",null,l.TexConstant.Variant.NORMAL],textup:["HBox",null,l.TexConstant.Variant.NORMAL],textnormal:["HBox"],textit:["HBox",null,l.TexConstant.Variant.ITALIC],textbf:["HBox",null,l.TexConstant.Variant.BOLD],textsf:["HBox",null,l.TexConstant.Variant.SANSSERIF],texttt:["HBox",null,l.TexConstant.Variant.MONOSPACE],tiny:["SetSize",.5],Tiny:["SetSize",.6],scriptsize:["SetSize",.7],small:["SetSize",.85],normalsize:["SetSize",1],large:["SetSize",1.2],Large:["SetSize",1.44],LARGE:["SetSize",1.73],huge:["SetSize",2.07],Huge:["SetSize",2.49],arcsin:"NamedFn",arccos:"NamedFn",arctan:"NamedFn",arg:"NamedFn",cos:"NamedFn",cosh:"NamedFn",cot:"NamedFn",coth:"NamedFn",csc:"NamedFn",deg:"NamedFn",det:"NamedOp",dim:"NamedFn",exp:"NamedFn",gcd:"NamedOp",hom:"NamedFn",inf:"NamedOp",ker:"NamedFn",lg:"NamedFn",lim:"NamedOp",liminf:["NamedOp","lim inf"],limsup:["NamedOp","lim sup"],ln:"NamedFn",log:"NamedFn",max:"NamedOp",min:"NamedOp",Pr:"NamedOp",sec:"NamedFn",sin:"NamedFn",sinh:"NamedFn",sup:"NamedOp",tan:"NamedFn",tanh:"NamedFn",limits:["Limits",1],nolimits:["Limits",0],overline:["UnderOver","2015"],underline:["UnderOver","2015"],overbrace:["UnderOver","23DE",1],underbrace:["UnderOver","23DF",1],overparen:["UnderOver","23DC"],underparen:["UnderOver","23DD"],overrightarrow:["UnderOver","2192"],underrightarrow:["UnderOver","2192"],overleftarrow:["UnderOver","2190"],underleftarrow:["UnderOver","2190"],overleftrightarrow:["UnderOver","2194"],underleftrightarrow:["UnderOver","2194"],overset:"Overset",underset:"Underset",overunderset:"Overunderset",stackrel:["Macro","\\mathrel{\\mathop{#2}\\limits^{#1}}",2],stackbin:["Macro","\\mathbin{\\mathop{#2}\\limits^{#1}}",2],over:"Over",overwithdelims:"Over",atop:"Over",atopwithdelims:"Over",above:"Over",abovewithdelims:"Over",brace:["Over","{","}"],brack:["Over","[","]"],choose:["Over","(",")"],frac:"Frac",sqrt:"Sqrt",root:"Root",uproot:["MoveRoot","upRoot"],leftroot:["MoveRoot","leftRoot"],left:"LeftRight",right:"LeftRight",middle:"LeftRight",llap:"Lap",rlap:"Lap",raise:"RaiseLower",lower:"RaiseLower",moveleft:"MoveLeftRight",moveright:"MoveLeftRight",",":["Spacer",h.MATHSPACE.thinmathspace],":":["Spacer",h.MATHSPACE.mediummathspace],">":["Spacer",h.MATHSPACE.mediummathspace],";":["Spacer",h.MATHSPACE.thickmathspace],"!":["Spacer",h.MATHSPACE.negativethinmathspace],enspace:["Spacer",.5],quad:["Spacer",1],qquad:["Spacer",2],thinspace:["Spacer",h.MATHSPACE.thinmathspace],negthinspace:["Spacer",h.MATHSPACE.negativethinmathspace],hskip:"Hskip",hspace:"Hskip",kern:"Hskip",mskip:"Hskip",mspace:"Hskip",mkern:"Hskip",rule:"rule",Rule:["Rule"],Space:["Rule","blank"],nonscript:"Nonscript",big:["MakeBig",p.TEXCLASS.ORD,.85],Big:["MakeBig",p.TEXCLASS.ORD,1.15],bigg:["MakeBig",p.TEXCLASS.ORD,1.45],Bigg:["MakeBig",p.TEXCLASS.ORD,1.75],bigl:["MakeBig",p.TEXCLASS.OPEN,.85],Bigl:["MakeBig",p.TEXCLASS.OPEN,1.15],biggl:["MakeBig",p.TEXCLASS.OPEN,1.45],Biggl:["MakeBig",p.TEXCLASS.OPEN,1.75],bigr:["MakeBig",p.TEXCLASS.CLOSE,.85],Bigr:["MakeBig",p.TEXCLASS.CLOSE,1.15],biggr:["MakeBig",p.TEXCLASS.CLOSE,1.45],Biggr:["MakeBig",p.TEXCLASS.CLOSE,1.75],bigm:["MakeBig",p.TEXCLASS.REL,.85],Bigm:["MakeBig",p.TEXCLASS.REL,1.15],biggm:["MakeBig",p.TEXCLASS.REL,1.45],Biggm:["MakeBig",p.TEXCLASS.REL,1.75],mathord:["TeXAtom",p.TEXCLASS.ORD],mathop:["TeXAtom",p.TEXCLASS.OP],mathopen:["TeXAtom",p.TEXCLASS.OPEN],mathclose:["TeXAtom",p.TEXCLASS.CLOSE],mathbin:["TeXAtom",p.TEXCLASS.BIN],mathrel:["TeXAtom",p.TEXCLASS.REL],mathpunct:["TeXAtom",p.TEXCLASS.PUNCT],mathinner:["TeXAtom",p.TEXCLASS.INNER],vcenter:["TeXAtom",p.TEXCLASS.VCENTER],buildrel:"BuildRel",hbox:["HBox",0],text:"HBox",mbox:["HBox",0],fbox:"FBox",boxed:["Macro","\\fbox{$\\displaystyle{#1}$}",1],framebox:"FrameBox",strut:"Strut",mathstrut:["Macro","\\vphantom{(}"],phantom:"Phantom",vphantom:["Phantom",1,0],hphantom:["Phantom",0,1],smash:"Smash",acute:["Accent","00B4"],grave:["Accent","0060"],ddot:["Accent","00A8"],tilde:["Accent","007E"],bar:["Accent","00AF"],breve:["Accent","02D8"],check:["Accent","02C7"],hat:["Accent","005E"],vec:["Accent","2192"],dot:["Accent","02D9"],widetilde:["Accent","007E",1],widehat:["Accent","005E",1],matrix:"Matrix",array:"Matrix",pmatrix:["Matrix","(",")"],cases:["Matrix","{","","left left",null,".1em",null,true],eqalign:["Matrix",null,null,"right left",(0,h.em)(h.MATHSPACE.thickmathspace),".5em","D"],displaylines:["Matrix",null,null,"center",null,".5em","D"],cr:"Cr","\\":"CrLaTeX",newline:["CrLaTeX",true],hline:["HLine","solid"],hdashline:["HLine","dashed"],eqalignno:["Matrix",null,null,"right left",(0,h.em)(h.MATHSPACE.thickmathspace),".5em","D",null,"right"],leqalignno:["Matrix",null,null,"right left",(0,h.em)(h.MATHSPACE.thickmathspace),".5em","D",null,"left"],hfill:"HFill",hfil:"HFill",hfilll:"HFill",bmod:["Macro",'\\mmlToken{mo}[lspace="thickmathspace"'+' rspace="thickmathspace"]{mod}'],pmod:["Macro","\\pod{\\mmlToken{mi}{mod}\\kern 6mu #1}",1],mod:["Macro","\\mathchoice{\\kern18mu}{\\kern12mu}"+"{\\kern12mu}{\\kern12mu}\\mmlToken{mi}{mod}\\,\\,#1",1],pod:["Macro","\\mathchoice{\\kern18mu}{\\kern8mu}"+"{\\kern8mu}{\\kern8mu}(#1)",1],iff:["Macro","\\;\\Longleftrightarrow\\;"],skew:["Macro","{{#2{#3\\mkern#1mu}\\mkern-#1mu}{}}",3],pmb:["Macro","\\rlap{#1}\\kern1px{#1}",1],TeX:["Macro","T\\kern-.14em\\lower.5ex{E}\\kern-.115em X"],LaTeX:["Macro","L\\kern-.325em\\raise.21em"+"{\\scriptstyle{A}}\\kern-.17em\\TeX"]," ":["Macro","\\text{ }"],not:"Not",dots:"Dots",space:"Tilde"," ":"Tilde",begin:"BeginEnd",end:"BeginEnd",label:"HandleLabel",ref:"HandleRef",nonumber:"HandleNoTag",mathchoice:"MathChoice",mmlToken:"MmlToken"},u.default);new s.EnvironmentMap("environment",c.default.environment,{array:["AlignedArray"],equation:["Equation",null,true],eqnarray:["EqnArray",null,true,true,"rcl",f.default.cols(0,h.MATHSPACE.thickmathspace),".5em"]},u.default);new s.CharacterMap("not_remap",null,{"←":"↚","→":"↛","↔":"↮","⇐":"⇍","⇒":"⇏","⇔":"⇎","∈":"∉","∋":"∌","∣":"∤","∥":"∦","∼":"≁","~":"≁","≃":"≄","≅":"≇","≈":"≉","≍":"≭","=":"≠","≡":"≢","<":"≮",">":"≯","≤":"≰","≥":"≱","≲":"≴","≳":"≵","≶":"≸","≷":"≹","≺":"⊀","≻":"⊁","⊂":"⊄","⊃":"⊅","⊆":"⊈","⊇":"⊉","⊢":"⊬","⊨":"⊭","⊩":"⊮","⊫":"⊯","≼":"⋠","≽":"⋡","⊑":"⋢","⊒":"⋣","⊲":"⋪","⊳":"⋫","⊴":"⋬","⊵":"⋭","∃":"∄"})},40871:function(e,t,r){var a=this&&this.__assign||function(){a=Object.assign||function(e){for(var t,r=1,a=arguments.length;r0)&&!(n=a.next()).done)i.push(n.value)}catch(s){o={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(o)throw o.error}}return i};var l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var u=o(r(5065));var c=l(r(72895));var f=l(r(48406));var p=l(r(42880));var h=r(48948);var d=l(r(3378));var m=r(18426);var v=r(56711);var y=r(77130);var g=r(63411);var b=r(36059);var A={};var S=1.2/.85;var P={fontfamily:1,fontsize:1,fontweight:1,fontstyle:1,color:1,background:1,id:1,class:1,href:1,style:1};A.Open=function(e,t){e.Push(e.itemFactory.create("open"))};A.Close=function(e,t){e.Push(e.itemFactory.create("close"))};A.Tilde=function(e,t){e.Push(e.create("token","mtext",{},g.entities.nbsp))};A.Space=function(e,t){};A.Superscript=function(e,t){var r;if(e.GetNext().match(/\d/)){e.string=e.string.substr(0,e.i+1)+" "+e.string.substr(e.i+1)}var a;var n;var i=e.stack.Top();if(i.isKind("prime")){r=s(i.Peek(2),2),n=r[0],a=r[1];e.stack.Pop()}else{n=e.stack.Prev();if(!n){n=e.create("token","mi",{},"")}}var o=c.default.getProperty(n,"movesupsub");var l=c.default.isType(n,"msubsup")?n.sup:n.over;if(c.default.isType(n,"msubsup")&&!c.default.isType(n,"msup")&&c.default.getChildAt(n,n.sup)||c.default.isType(n,"munderover")&&!c.default.isType(n,"mover")&&c.default.getChildAt(n,n.over)&&!c.default.getProperty(n,"subsupOK")){throw new f.default("DoubleExponent","Double exponent: use braces to clarify")}if(!c.default.isType(n,"msubsup")||c.default.isType(n,"msup")){if(o){if(!c.default.isType(n,"munderover")||c.default.isType(n,"mover")||c.default.getChildAt(n,n.over)){n=e.create("node","munderover",[n],{movesupsub:true})}l=n.over}else{n=e.create("node","msubsup",[n]);l=n.sup}}e.Push(e.itemFactory.create("subsup",n).setProperties({position:l,primes:a,movesupsub:o}))};A.Subscript=function(e,t){var r;if(e.GetNext().match(/\d/)){e.string=e.string.substr(0,e.i+1)+" "+e.string.substr(e.i+1)}var a,n;var i=e.stack.Top();if(i.isKind("prime")){r=s(i.Peek(2),2),n=r[0],a=r[1];e.stack.Pop()}else{n=e.stack.Prev();if(!n){n=e.create("token","mi",{},"")}}var o=c.default.getProperty(n,"movesupsub");var l=c.default.isType(n,"msubsup")?n.sub:n.under;if(c.default.isType(n,"msubsup")&&!c.default.isType(n,"msup")&&c.default.getChildAt(n,n.sub)||c.default.isType(n,"munderover")&&!c.default.isType(n,"mover")&&c.default.getChildAt(n,n.under)&&!c.default.getProperty(n,"subsupOK")){throw new f.default("DoubleSubscripts","Double subscripts: use braces to clarify")}if(!c.default.isType(n,"msubsup")||c.default.isType(n,"msup")){if(o){if(!c.default.isType(n,"munderover")||c.default.isType(n,"mover")||c.default.getChildAt(n,n.under)){n=e.create("node","munderover",[n],{movesupsub:true})}l=n.under}else{n=e.create("node","msubsup",[n]);l=n.sub}}e.Push(e.itemFactory.create("subsup",n).setProperties({position:l,primes:a,movesupsub:o}))};A.Prime=function(e,t){var r=e.stack.Prev();if(!r){r=e.create("node","mi")}if(c.default.isType(r,"msubsup")&&!c.default.isType(r,"msup")&&c.default.getChildAt(r,r.sup)){throw new f.default("DoubleExponentPrime","Prime causes double exponent: use braces to clarify")}var a="";e.i--;do{a+=g.entities.prime;e.i++,t=e.GetNext()}while(t==="'"||t===g.entities.rsquo);a=["","′","″","‴","⁗"][a.length]||a;var n=e.create("token","mo",{variantForm:true},a);e.Push(e.itemFactory.create("prime",r,n))};A.Comment=function(e,t){while(e.i{Object.defineProperty(t,"__esModule",{value:true});t.px=t.emRounded=t.em=t.percent=t.length2em=t.MATHSPACE=t.RELUNITS=t.UNITS=t.BIGDIMEN=void 0;t.BIGDIMEN=1e6;t.UNITS={px:1,in:96,cm:96/2.54,mm:96/25.4};t.RELUNITS={em:1,ex:.431,pt:1/10,pc:12/10,mu:1/18};t.MATHSPACE={veryverythinmathspace:1/18,verythinmathspace:2/18,thinmathspace:3/18,mediummathspace:4/18,thickmathspace:5/18,verythickmathspace:6/18,veryverythickmathspace:7/18,negativeveryverythinmathspace:-1/18,negativeverythinmathspace:-2/18,negativethinmathspace:-3/18,negativemediummathspace:-4/18,negativethickmathspace:-5/18,negativeverythickmathspace:-6/18,negativeveryverythickmathspace:-7/18,thin:.04,medium:.06,thick:.1,normal:1,big:2,small:1/Math.sqrt(2),infinity:t.BIGDIMEN};function r(e,r,a,n){if(r===void 0){r=0}if(a===void 0){a=1}if(n===void 0){n=16}if(typeof e!=="string"){e=String(e)}if(e===""||e==null){return r}if(t.MATHSPACE[e]){return t.MATHSPACE[e]}var i=e.match(/^\s*([-+]?(?:\.\d+|\d+(?:\.\d*)?))?(pt|em|ex|mu|px|pc|in|mm|cm|%)?/);if(!i){return r}var o=parseFloat(i[1]||"1"),s=i[2];if(t.UNITS.hasOwnProperty(s)){return o*t.UNITS[s]/n/a}if(t.RELUNITS.hasOwnProperty(s)){return o*t.RELUNITS[s]}if(s==="%"){return o/100*r}return o*r}t.length2em=r;function a(e){return(100*e).toFixed(1).replace(/\.?0+$/,"")+"%"}t.percent=a;function n(e){if(Math.abs(e)<.001)return"0";return e.toFixed(3).replace(/\.?0+$/,"")+"em"}t.em=n;function i(e,t){if(t===void 0){t=16}e=(Math.round(e*t)+.05)/t;if(Math.abs(e)<.001)return"0em";return e.toFixed(3).replace(/\.?0+$/,"")+"em"}t.emRounded=i;function o(e,r,a){if(r===void 0){r=-t.BIGDIMEN}if(a===void 0){a=16}e*=a;if(r&&e{n.r(t);n.d(t,{nsis:()=>r});var i=n(11176);const r=(0,i.Q)({start:[{regex:/(?:[+-]?)(?:0x[\d,a-f]+)|(?:0o[0-7]+)|(?:0b[0,1]+)|(?:\d+.?\d*)/,token:"number"},{regex:/"(?:[^\\"]|\\.)*"?/,token:"string"},{regex:/'(?:[^\\']|\\.)*'?/,token:"string"},{regex:/`(?:[^\\`]|\\.)*`?/,token:"string"},{regex:/^\s*(?:\!(addincludedir|addplugindir|appendfile|cd|define|delfile|echo|error|execute|finalize|getdllversion|gettlbversion|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|uninstfinalize|verbose|warning))\b/i,token:"keyword"},{regex:/^\s*(?:\!(if(?:n?def)?|ifmacron?def|macro))\b/i,token:"keyword",indent:true},{regex:/^\s*(?:\!(else|endif|macroend))\b/i,token:"keyword",dedent:true},{regex:/^\s*(?:Abort|AddBrandingImage|AddSize|AllowRootDirInstall|AllowSkipFiles|AutoCloseWindow|BGFont|BGGradient|BrandingText|BringToFront|Call|CallInstDLL|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|CRCCheck|CreateDirectory|CreateFont|CreateShortCut|Delete|DeleteINISec|DeleteINIStr|DeleteRegKey|DeleteRegValue|DetailPrint|DetailsButtonText|DirText|DirVar|DirVerify|EnableWindow|EnumRegKey|EnumRegValue|Exch|Exec|ExecShell|ExecShellWait|ExecWait|ExpandEnvStrings|File|FileBufSize|FileClose|FileErrorText|FileOpen|FileRead|FileReadByte|FileReadUTF16LE|FileReadWord|FileWriteUTF16LE|FileSeek|FileWrite|FileWriteByte|FileWriteWord|FindClose|FindFirst|FindNext|FindWindow|FlushINI|GetCurInstType|GetCurrentAddress|GetDlgItem|GetDLLVersion|GetDLLVersionLocal|GetErrorLevel|GetFileTime|GetFileTimeLocal|GetFullPathName|GetFunctionAddress|GetInstDirError|GetKnownFolderPath|GetLabelAddress|GetTempFileName|GetWinVer|Goto|HideWindow|Icon|IfAbort|IfErrors|IfFileExists|IfRebootFlag|IfRtlLanguage|IfShellVarContextAll|IfSilent|InitPluginsDir|InstallButtonText|InstallColors|InstallDir|InstallDirRegKey|InstProgressFlags|InstType|InstTypeGetText|InstTypeSetText|Int64Cmp|Int64CmpU|Int64Fmt|IntCmp|IntCmpU|IntFmt|IntOp|IntPtrCmp|IntPtrCmpU|IntPtrOp|IsWindow|LangString|LicenseBkColor|LicenseData|LicenseForceSelection|LicenseLangString|LicenseText|LoadAndSetImage|LoadLanguageFile|LockWindow|LogSet|LogText|ManifestDPIAware|ManifestLongPathAware|ManifestMaxVersionTested|ManifestSupportedOS|MessageBox|MiscButtonText|Name|Nop|OutFile|Page|PageCallbacks|PEAddResource|PEDllCharacteristics|PERemoveResource|PESubsysVer|Pop|Push|Quit|ReadEnvStr|ReadINIStr|ReadRegDWORD|ReadRegStr|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|RMDir|SearchPath|SectionGetFlags|SectionGetInstTypes|SectionGetSize|SectionGetText|SectionIn|SectionSetFlags|SectionSetInstTypes|SectionSetSize|SectionSetText|SendMessage|SetAutoClose|SetBrandingImage|SetCompress|SetCompressor|SetCompressorDictSize|SetCtlColors|SetCurInstType|SetDatablockOptimize|SetDateSave|SetDetailsPrint|SetDetailsView|SetErrorLevel|SetErrors|SetFileAttributes|SetFont|SetOutPath|SetOverwrite|SetRebootFlag|SetRegView|SetShellVarContext|SetSilent|ShowInstDetails|ShowUninstDetails|ShowWindow|SilentInstall|SilentUnInstall|Sleep|SpaceTexts|StrCmp|StrCmpS|StrCpy|StrLen|SubCaption|Target|Unicode|UninstallButtonText|UninstallCaption|UninstallIcon|UninstallSubCaption|UninstallText|UninstPage|UnRegDLL|Var|VIAddVersionKey|VIFileVersion|VIProductVersion|WindowIcon|WriteINIStr|WriteRegBin|WriteRegDWORD|WriteRegExpandStr|WriteRegMultiStr|WriteRegNone|WriteRegStr|WriteUninstaller|XPStyle)\b/i,token:"keyword"},{regex:/^\s*(?:Function|PageEx|Section(?:Group)?)\b/i,token:"keyword",indent:true},{regex:/^\s*(?:(Function|PageEx|Section(?:Group)?)End)\b/i,token:"keyword",dedent:true},{regex:/\b(?:ARCHIVE|FILE_ATTRIBUTE_ARCHIVE|FILE_ATTRIBUTE_HIDDEN|FILE_ATTRIBUTE_NORMAL|FILE_ATTRIBUTE_OFFLINE|FILE_ATTRIBUTE_READONLY|FILE_ATTRIBUTE_SYSTEM|FILE_ATTRIBUTE_TEMPORARY|HIDDEN|HKCC|HKCR(32|64)?|HKCU(32|64)?|HKDD|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_DYN_DATA|HKEY_LOCAL_MACHINE|HKEY_PERFORMANCE_DATA|HKEY_USERS|HKLM(32|64)?|HKPD|HKU|IDABORT|IDCANCEL|IDD_DIR|IDD_INST|IDD_INSTFILES|IDD_LICENSE|IDD_SELCOM|IDD_UNINST|IDD_VERIFY|IDIGNORE|IDNO|IDOK|IDRETRY|IDYES|MB_ABORTRETRYIGNORE|MB_DEFBUTTON1|MB_DEFBUTTON2|MB_DEFBUTTON3|MB_DEFBUTTON4|MB_ICONEXCLAMATION|MB_ICONINFORMATION|MB_ICONQUESTION|MB_ICONSTOP|MB_OK|MB_OKCANCEL|MB_RETRYCANCEL|MB_RIGHT|MB_RTLREADING|MB_SETFOREGROUND|MB_TOPMOST|MB_USERICON|MB_YESNO|MB_YESNOCANCEL|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SW_HIDE|SW_SHOWDEFAULT|SW_SHOWMAXIMIZED|SW_SHOWMINIMIZED|SW_SHOWNORMAL|SYSTEM|TEMPORARY)\b/i,token:"atom"},{regex:/\b(?:admin|all|amd64-unicode|auto|both|bottom|bzip2|components|current|custom|directory|false|force|hide|highest|ifdiff|ifnewer|instfiles|lastused|leave|left|license|listonly|lzma|nevershow|none|normal|notset|off|on|right|show|silent|silentlog|textonly|top|true|try|un\.components|un\.custom|un\.directory|un\.instfiles|un\.license|uninstConfirm|user|Win10|Win7|Win8|WinVista|x-86-(ansi|unicode)|zlib)\b/i,token:"builtin"},{regex:/\$\{(?:And(?:If(?:Not)?|Unless)|Break|Case(?:2|3|4|5|Else)?|Continue|Default|Do(?:Until|While)?|Else(?:If(?:Not)?|Unless)?|End(?:If|Select|Switch)|Exit(?:Do|For|While)|For(?:Each)?|If(?:Cmd|Not(?:Then)?|Then)?|Loop(?:Until|While)?|Or(?:If(?:Not)?|Unless)|Select|Switch|Unless|While)\}/i,token:"variable-2",indent:true},{regex:/\$\{(?:BannerTrimPath|DirState|DriveSpace|Get(BaseName|Drives|ExeName|ExePath|FileAttributes|FileExt|FileName|FileVersion|Options|OptionsS|Parameters|Parent|Root|Size|Time)|Locate|RefreshShellIcons)\}/i,token:"variable-2",dedent:true},{regex:/\$\{(?:Memento(?:Section(?:Done|End|Restore|Save)?|UnselectedSection))\}/i,token:"variable-2",dedent:true},{regex:/\$\{(?:Config(?:Read|ReadS|Write|WriteS)|File(?:Join|ReadFromEnd|Recode)|Line(?:Find|Read|Sum)|Text(?:Compare|CompareS)|TrimNewLines)\}/i,token:"variable-2",dedent:true},{regex:/\$\{(?:(?:At(?:Least|Most)|Is)(?:ServicePack|Win(?:7|8|10|95|98|200(?:0|3|8(?:R2)?)|ME|NT4|Vista|XP))|Is(?:NT|Server))\}/i,token:"variable",dedent:true},{regex:/\$\{(?:StrFilterS?|Version(?:Compare|Convert)|Word(?:AddS?|Find(?:(?:2|3)X)?S?|InsertS?|ReplaceS?))\}/i,token:"keyword",dedent:true},{regex:/\$\{(?:RunningX64)\}/i,token:"variable",dedent:true},{regex:/\$\{(?:Disable|Enable)X64FSRedirection\}/i,token:"keyword",dedent:true},{regex:/(#|;).*/,token:"comment"},{regex:/\/\*/,token:"comment",next:"comment"},{regex:/[-+\/*=<>!]+/,token:"operator"},{regex:/\$\w[\w\.]*/,token:"variable"},{regex:/\${[\!\w\.:-]+}/,token:"variableName.constant"},{regex:/\$\([\!\w\.:-]+\)/,token:"atom"}],comment:[{regex:/.*?\*\//,token:"comment",next:"start"},{regex:/.*/,token:"comment"}],languageData:{name:"nsis",indentOnInput:/^\s*((Function|PageEx|Section|Section(Group)?)End|(\!(endif|macroend))|\$\{(End(If|Unless|While)|Loop(Until)|Next)\})$/i,commentTokens:{line:"#",block:{open:"/*",close:"*/"}}}})},11176:(e,t,n)=>{n.d(t,{Q:()=>i});function i(e){r(e,"start");var t={},n=e.languageData||{},i=false;for(var o in e)if(o!=n&&e.hasOwnProperty(o)){var a=t[o]=[],S=e[o];for(var c=0;c2&&a.token&&typeof a.token!="string"){n.pending=[];for(var d=2;d-1)return null;var r=n.indent.length-1,o=e[n.state];e:for(;;){for(var a=0;a{a.r(t);a.d(t,{asterisk:()=>o});var n=["exten","same","include","ignorepat","switch"],i=["#include","#exec"],r=["addqueuemember","adsiprog","aelsub","agentlogin","agentmonitoroutgoing","agi","alarmreceiver","amd","answer","authenticate","background","backgrounddetect","bridge","busy","callcompletioncancel","callcompletionrequest","celgenuserevent","changemonitor","chanisavail","channelredirect","chanspy","clearhash","confbridge","congestion","continuewhile","controlplayback","dahdiacceptr2call","dahdibarge","dahdiras","dahdiscan","dahdisendcallreroutingfacility","dahdisendkeypadfacility","datetime","dbdel","dbdeltree","deadagi","dial","dictate","directory","disa","dumpchan","eagi","echo","endwhile","exec","execif","execiftime","exitwhile","extenspy","externalivr","festival","flash","followme","forkcdr","getcpeid","gosub","gosubif","goto","gotoif","gotoiftime","hangup","iax2provision","ices","importvar","incomplete","ivrdemo","jabberjoin","jabberleave","jabbersend","jabbersendgroup","jabberstatus","jack","log","macro","macroexclusive","macroexit","macroif","mailboxexists","meetme","meetmeadmin","meetmechanneladmin","meetmecount","milliwatt","minivmaccmess","minivmdelete","minivmgreet","minivmmwi","minivmnotify","minivmrecord","mixmonitor","monitor","morsecode","mp3player","mset","musiconhold","nbscat","nocdr","noop","odbc","odbc","odbcfinish","originate","ospauth","ospfinish","osplookup","ospnext","page","park","parkandannounce","parkedcall","pausemonitor","pausequeuemember","pickup","pickupchan","playback","playtones","privacymanager","proceeding","progress","queue","queuelog","raiseexception","read","readexten","readfile","receivefax","receivefax","receivefax","record","removequeuemember","resetcdr","retrydial","return","ringing","sayalpha","saycountedadj","saycountednoun","saycountpl","saydigits","saynumber","sayphonetic","sayunixtime","senddtmf","sendfax","sendfax","sendfax","sendimage","sendtext","sendurl","set","setamaflags","setcallerpres","setmusiconhold","sipaddheader","sipdtmfmode","sipremoveheader","skel","slastation","slatrunk","sms","softhangup","speechactivategrammar","speechbackground","speechcreate","speechdeactivategrammar","speechdestroy","speechloadgrammar","speechprocessingsound","speechstart","speechunloadgrammar","stackpop","startmusiconhold","stopmixmonitor","stopmonitor","stopmusiconhold","stopplaytones","system","testclient","testserver","transfer","tryexec","trysystem","unpausemonitor","unpausequeuemember","userevent","verbose","vmauthenticate","vmsayname","voicemail","voicemailmain","wait","waitexten","waitfornoise","waitforring","waitforsilence","waitmusiconhold","waituntil","while","zapateller"];function s(e,t){var a="";var r=e.next();if(t.blockComment){if(r=="-"&&e.match("-;",true)){t.blockComment=false}else if(e.skipTo("--;")){e.next();e.next();e.next();t.blockComment=false}else{e.skipToEnd()}return"comment"}if(r==";"){if(e.match("--",true)){if(!e.match("-",false)){t.blockComment=true;return"comment"}}e.skipToEnd();return"comment"}if(r=="["){e.skipTo("]");e.eat("]");return"header"}if(r=='"'){e.skipTo('"');return"string"}if(r=="'"){e.skipTo("'");return"string.special"}if(r=="#"){e.eatWhile(/\w/);a=e.current();if(i.indexOf(a)!==-1){e.skipToEnd();return"strong"}}if(r=="$"){var s=e.peek();if(s=="{"){e.skipTo("}");e.eat("}");return"variableName.special"}}e.eatWhile(/\w/);a=e.current();if(n.indexOf(a)!==-1){t.extenStart=true;switch(a){case"same":t.extenSame=true;break;case"include":case"switch":case"ignorepat":t.extenInclude=true;break;default:break}return"atom"}}const o={name:"asterisk",startState:function(){return{blockComment:false,extenStart:false,extenSame:false,extenInclude:false,extenExten:false,extenPriority:false,extenApplication:false}},token:function(e,t){var a="";if(e.eatSpace())return null;if(t.extenStart){e.eatWhile(/[^\s]/);a=e.current();if(/^=>?$/.test(a)){t.extenExten=true;t.extenStart=false;return"strong"}else{t.extenStart=false;e.skipToEnd();return"error"}}else if(t.extenExten){t.extenExten=false;t.extenPriority=true;e.eatWhile(/[^,]/);if(t.extenInclude){e.skipToEnd();t.extenPriority=false;t.extenInclude=false}if(t.extenSame){t.extenPriority=false;t.extenSame=false;t.extenApplication=true}return"tag"}else if(t.extenPriority){t.extenPriority=false;t.extenApplication=true;e.next();if(t.extenSame)return null;e.eatWhile(/[^,]/);return"number"}else if(t.extenApplication){e.eatWhile(/,/);a=e.current();if(a===",")return null;e.eatWhile(/\w/);a=e.current().toLowerCase();t.extenApplication=false;if(r.indexOf(a)!==-1){return"def"}}else{return s(e,t)}return null},languageData:{commentTokens:{line:";",block:{open:";--",close:"--;"}}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/7848.e83aa4b90ae87209abb8.js b/bootcamp/share/jupyter/lab/static/7848.e83aa4b90ae87209abb8.js new file mode 100644 index 0000000..6b41a1c --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/7848.e83aa4b90ae87209abb8.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7848],{71269:(e,n,t)=>{t.r(n);t.d(n,{jinja2:()=>c});var a=["and","as","block","endblock","by","cycle","debug","else","elif","extends","filter","endfilter","firstof","do","for","endfor","if","endif","ifchanged","endifchanged","ifequal","endifequal","ifnotequal","set","raw","endraw","endifnotequal","in","include","load","not","now","or","parsed","regroup","reversed","spaceless","call","endcall","macro","endmacro","endspaceless","ssi","templatetag","openblock","closeblock","openvariable","closevariable","without","context","openbrace","closebrace","opencomment","closecomment","widthratio","url","with","endwith","get_current_language","trans","endtrans","noop","blocktrans","endblocktrans","get_available_languages","get_current_language_bidi","pluralize","autoescape","endautoescape"],i=/^[+\-*&%=<>!?|~^]/,r=/^[:\[\(\{]/,s=["true","false"],l=/^(\d[+\-\*\/])?\d+(\.\d+)?/;a=new RegExp("(("+a.join(")|(")+"))\\b");s=new RegExp("(("+s.join(")|(")+"))\\b");function o(e,n){var t=e.peek();if(n.incomment){if(!e.skipTo("#}")){e.skipToEnd()}else{e.eatWhile(/\#|}/);n.incomment=false}return"comment"}else if(n.intag){if(n.operator){n.operator=false;if(e.match(s)){return"atom"}if(e.match(l)){return"number"}}if(n.sign){n.sign=false;if(e.match(s)){return"atom"}if(e.match(l)){return"number"}}if(n.instring){if(t==n.instring){n.instring=false}e.next();return"string"}else if(t=="'"||t=='"'){n.instring=t;e.next();return"string"}else if(n.inbraces>0&&t==")"){e.next();n.inbraces--}else if(t=="("){e.next();n.inbraces++}else if(n.inbrackets>0&&t=="]"){e.next();n.inbrackets--}else if(t=="["){e.next();n.inbrackets++}else if(!n.lineTag&&(e.match(n.intag+"}")||e.eat("-")&&e.match(n.intag+"}"))){n.intag=false;return"tag"}else if(e.match(i)){n.operator=true;return"operator"}else if(e.match(r)){n.sign=true}else{if(e.column()==1&&n.lineTag&&e.match(a)){return"keyword"}if(e.eat(" ")||e.sol()){if(e.match(a)){return"keyword"}if(e.match(s)){return"atom"}if(e.match(l)){return"number"}if(e.sol()){e.next()}}else{e.next()}}return"variable"}else if(e.eat("{")){if(e.eat("#")){n.incomment=true;if(!e.skipTo("#}")){e.skipToEnd()}else{e.eatWhile(/\#|}/);n.incomment=false}return"comment"}else if(t=e.eat(/\{|%/)){n.intag=t;n.inbraces=0;n.inbrackets=0;if(t=="{"){n.intag="}"}e.eat("-");return"tag"}}else if(e.eat("#")){if(e.peek()=="#"){e.skipToEnd();return"comment"}else if(!e.eol()){n.intag=true;n.lineTag=true;n.inbraces=0;n.inbrackets=0;return"tag"}}e.next()}const c={name:"jinja2",startState:function(){return{tokenize:o,inbrackets:0,inbraces:0}},token:function(e,n){var t=n.tokenize(e,n);if(e.eol()&&n.lineTag&&!n.instring&&n.inbraces==0&&n.inbrackets==0){n.intag=false;n.lineTag=false}return t},languageData:{commentTokens:{block:{open:"{#",close:"#}",line:"##"}}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/786.8a99ee7dbd7bd0eb9dce.js b/bootcamp/share/jupyter/lab/static/786.8a99ee7dbd7bd0eb9dce.js new file mode 100644 index 0000000..42cf22a --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/786.8a99ee7dbd7bd0eb9dce.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[786],{73132:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.VERSION=void 0;e.VERSION="3.2.2"},43582:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var o=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.HandlerList=void 0;var i=r(4180);var a=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.register=function(t){return this.add(t,t.priority)};e.prototype.unregister=function(t){this.remove(t)};e.prototype.handlesDocument=function(t){var e,r;try{for(var n=o(this),i=n.next();!i.done;i=n.next()){var a=i.value;var u=a.item;if(u.handlesDocument(t)){return u}}}catch(s){e={error:s}}finally{try{if(i&&!i.done&&(r=n.return))r.call(n)}finally{if(e)throw e.error}}throw new Error("Can't find handler for document")};e.prototype.document=function(t,e){if(e===void 0){e=null}return this.handlesDocument(t).create(t,e)};return e}(i.PrioritizedList);e.HandlerList=a},90786:(t,e,r)=>{Object.defineProperty(e,"__esModule",{value:true});e.mathjax=void 0;var n=r(73132);var o=r(43582);var i=r(97e3);e.mathjax={version:n.VERSION,handlers:new o.HandlerList,document:function(t,r){return e.mathjax.handlers.document(t,r)},handleRetriesFor:i.handleRetriesFor,retryAfter:i.retryAfter,asyncLoad:null}},4180:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.PrioritizedList=void 0;var r=function(){function t(){this.items=[];this.items=[]}t.prototype[Symbol.iterator]=function(){var t=0;var e=this.items;return{next:function(){return{value:e[t++],done:t>e.length}}}};t.prototype.add=function(e,r){if(r===void 0){r=t.DEFAULTPRIORITY}var n=this.items.length;do{n--}while(n>=0&&r=0&&this.items[e].item!==t);if(e>=0){this.items.splice(e,1)}};t.DEFAULTPRIORITY=5;return t}();e.PrioritizedList=r},97e3:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.retryAfter=e.handleRetriesFor=void 0;function r(t){return new Promise((function e(r,n){try{r(t())}catch(o){if(o.retry&&o.retry instanceof Promise){o.retry.then((function(){return e(r,n)})).catch((function(t){return n(t)}))}else if(o.restart&&o.restart.isCallback){MathJax.Callback.After((function(){return e(r,n)}),o.restart)}else{n(o)}}}))}e.handleRetriesFor=r;function n(t){var e=new Error("MathJax retry");e.retry=t;throw e}e.retryAfter=n}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/7877.a4c46a784149533b91d4.js b/bootcamp/share/jupyter/lab/static/7877.a4c46a784149533b91d4.js new file mode 100644 index 0000000..403f3c2 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/7877.a4c46a784149533b91d4.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7877],{83082:(u,e,t)=>{t.d(e,{r:()=>f});const r="view",n="[",A="]",i="{",a="}",s=":",F=",",o="@",c=">",C=/[[\]{}]/,l={"*":1,arc:1,area:1,group:1,image:1,line:1,path:1,rect:1,rule:1,shape:1,symbol:1,text:1,trail:1};let D,B;function f(u,e,t){D=e||r;B=t||l;return h(u.trim()).map(d)}function E(u){return B[u]}function p(u,e,t,r,n){const A=u.length;let i=0,a;for(;e=0)--i;else if(r&&r.indexOf(a)>=0)++i}return e}function h(u){const e=[],t=u.length;let r=0,s=0;while(s' after between selector: "+u}r=r.map(d);const i=d(u.slice(1).trim());if(i.between){return{between:r,stream:i}}else{i.between=r}return i}function m(u){const e={source:D},t=[];let r=[0,0],F=0,c=0,l=u.length,B=0,f,h;if(u[l-1]===a){B=u.lastIndexOf(i);if(B>=0){try{r=w(u.substring(B+1,l-1))}catch(d){throw"Invalid throttle specification: "+u}u=u.slice(0,B).trim();l=u.length}else throw"Unmatched right brace: "+u;B=0}if(!l)throw u;if(u[0]===o)F=++B;f=p(u,B,s);if(f1){e.type=t[1];if(F){e.markname=t[0].slice(1)}else if(E(t[0])){e.marktype=t[0]}else{e.source=t[0]}}else{e.type=t[0]}if(e.type.slice(-1)==="!"){e.consume=true;e.type=e.type.slice(0,-1)}if(h!=null)e.filter=h;if(r[0])e.throttle=r[0];if(r[1])e.debounce=r[1];return e}function w(u){const e=u.split(F);if(!u.length||e.length>2)throw u;return e.map((e=>{const t=+e;if(t!==t)throw u;return t}))}},25693:(u,e,t)=>{t.d(e,{BJ:()=>oe,Lt:()=>o,YP:()=>De,_G:()=>ce,t$:()=>A,wk:()=>Ce});var r=t(48823);const n="RawCode";const A="Literal";const i="Property";const a="Identifier";const s="ArrayExpression";const F="BinaryExpression";const o="CallExpression";const c="ConditionalExpression";const C="LogicalExpression";const l="MemberExpression";const D="ObjectExpression";const B="UnaryExpression";function f(u){this.type=u}f.prototype.visit=function(u){let e,t,r;if(u(this))return 1;for(e=E(this),t=0,r=e.length;t";p[x]="Identifier";p[b]="Keyword";p[v]="Null";p[k]="Numeric";p[M]="Punctuator";p[U]="String";p[O]="RegularExpression";var L="ArrayExpression",I="BinaryExpression",S="CallExpression",N="ConditionalExpression",T="Identifier",j="Literal",R="LogicalExpression",_="MemberExpression",P="ObjectExpression",q="Property",G="UnaryExpression";var Q="Unexpected token %0",V="Unexpected number",$="Unexpected string",z="Unexpected identifier",H="Unexpected reserved word",X="Unexpected end of input",Y="Invalid regular expression",J="Invalid regular expression: missing /",K="Octal literals are not allowed in strict mode.",W="Duplicate data property in object literal not allowed in strict mode";var Z="ILLEGAL",uu="Disabled.";var eu=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0370-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0620-\\u064A\\u066E\\u066F\\u0671-\\u06D3\\u06D5\\u06E5\\u06E6\\u06EE\\u06EF\\u06FA-\\u06FC\\u06FF\\u0710\\u0712-\\u072F\\u074D-\\u07A5\\u07B1\\u07CA-\\u07EA\\u07F4\\u07F5\\u07FA\\u0800-\\u0815\\u081A\\u0824\\u0828\\u0840-\\u0858\\u08A0-\\u08B2\\u0904-\\u0939\\u093D\\u0950\\u0958-\\u0961\\u0971-\\u0980\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BD\\u09CE\\u09DC\\u09DD\\u09DF-\\u09E1\\u09F0\\u09F1\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A59-\\u0A5C\\u0A5E\\u0A72-\\u0A74\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABD\\u0AD0\\u0AE0\\u0AE1\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3D\\u0B5C\\u0B5D\\u0B5F-\\u0B61\\u0B71\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BD0\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D\\u0C58\\u0C59\\u0C60\\u0C61\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBD\\u0CDE\\u0CE0\\u0CE1\\u0CF1\\u0CF2\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D\\u0D4E\\u0D60\\u0D61\\u0D7A-\\u0D7F\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0E01-\\u0E30\\u0E32\\u0E33\\u0E40-\\u0E46\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB0\\u0EB2\\u0EB3\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EDC-\\u0EDF\\u0F00\\u0F40-\\u0F47\\u0F49-\\u0F6C\\u0F88-\\u0F8C\\u1000-\\u102A\\u103F\\u1050-\\u1055\\u105A-\\u105D\\u1061\\u1065\\u1066\\u106E-\\u1070\\u1075-\\u1081\\u108E\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1711\\u1720-\\u1731\\u1740-\\u1751\\u1760-\\u176C\\u176E-\\u1770\\u1780-\\u17B3\\u17D7\\u17DC\\u1820-\\u1877\\u1880-\\u18A8\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1950-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19C1-\\u19C7\\u1A00-\\u1A16\\u1A20-\\u1A54\\u1AA7\\u1B05-\\u1B33\\u1B45-\\u1B4B\\u1B83-\\u1BA0\\u1BAE\\u1BAF\\u1BBA-\\u1BE5\\u1C00-\\u1C23\\u1C4D-\\u1C4F\\u1C5A-\\u1C7D\\u1CE9-\\u1CEC\\u1CEE-\\u1CF1\\u1CF5\\u1CF6\\u1D00-\\u1DBF\\u1E00-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u2071\\u207F\\u2090-\\u209C\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CEE\\u2CF2\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D80-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2E2F\\u3005-\\u3007\\u3021-\\u3029\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA61F\\uA62A\\uA62B\\uA640-\\uA66E\\uA67F-\\uA69D\\uA6A0-\\uA6EF\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA801\\uA803-\\uA805\\uA807-\\uA80A\\uA80C-\\uA822\\uA840-\\uA873\\uA882-\\uA8B3\\uA8F2-\\uA8F7\\uA8FB\\uA90A-\\uA925\\uA930-\\uA946\\uA960-\\uA97C\\uA984-\\uA9B2\\uA9CF\\uA9E0-\\uA9E4\\uA9E6-\\uA9EF\\uA9FA-\\uA9FE\\uAA00-\\uAA28\\uAA40-\\uAA42\\uAA44-\\uAA4B\\uAA60-\\uAA76\\uAA7A\\uAA7E-\\uAAAF\\uAAB1\\uAAB5\\uAAB6\\uAAB9-\\uAABD\\uAAC0\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEA\\uAAF2-\\uAAF4\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABE2\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D\\uFB1F-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF21-\\uFF3A\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]"),tu=new RegExp("[\\xAA\\xB5\\xBA\\xC0-\\xD6\\xD8-\\xF6\\xF8-\\u02C1\\u02C6-\\u02D1\\u02E0-\\u02E4\\u02EC\\u02EE\\u0300-\\u0374\\u0376\\u0377\\u037A-\\u037D\\u037F\\u0386\\u0388-\\u038A\\u038C\\u038E-\\u03A1\\u03A3-\\u03F5\\u03F7-\\u0481\\u0483-\\u0487\\u048A-\\u052F\\u0531-\\u0556\\u0559\\u0561-\\u0587\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u05D0-\\u05EA\\u05F0-\\u05F2\\u0610-\\u061A\\u0620-\\u0669\\u066E-\\u06D3\\u06D5-\\u06DC\\u06DF-\\u06E8\\u06EA-\\u06FC\\u06FF\\u0710-\\u074A\\u074D-\\u07B1\\u07C0-\\u07F5\\u07FA\\u0800-\\u082D\\u0840-\\u085B\\u08A0-\\u08B2\\u08E4-\\u0963\\u0966-\\u096F\\u0971-\\u0983\\u0985-\\u098C\\u098F\\u0990\\u0993-\\u09A8\\u09AA-\\u09B0\\u09B2\\u09B6-\\u09B9\\u09BC-\\u09C4\\u09C7\\u09C8\\u09CB-\\u09CE\\u09D7\\u09DC\\u09DD\\u09DF-\\u09E3\\u09E6-\\u09F1\\u0A01-\\u0A03\\u0A05-\\u0A0A\\u0A0F\\u0A10\\u0A13-\\u0A28\\u0A2A-\\u0A30\\u0A32\\u0A33\\u0A35\\u0A36\\u0A38\\u0A39\\u0A3C\\u0A3E-\\u0A42\\u0A47\\u0A48\\u0A4B-\\u0A4D\\u0A51\\u0A59-\\u0A5C\\u0A5E\\u0A66-\\u0A75\\u0A81-\\u0A83\\u0A85-\\u0A8D\\u0A8F-\\u0A91\\u0A93-\\u0AA8\\u0AAA-\\u0AB0\\u0AB2\\u0AB3\\u0AB5-\\u0AB9\\u0ABC-\\u0AC5\\u0AC7-\\u0AC9\\u0ACB-\\u0ACD\\u0AD0\\u0AE0-\\u0AE3\\u0AE6-\\u0AEF\\u0B01-\\u0B03\\u0B05-\\u0B0C\\u0B0F\\u0B10\\u0B13-\\u0B28\\u0B2A-\\u0B30\\u0B32\\u0B33\\u0B35-\\u0B39\\u0B3C-\\u0B44\\u0B47\\u0B48\\u0B4B-\\u0B4D\\u0B56\\u0B57\\u0B5C\\u0B5D\\u0B5F-\\u0B63\\u0B66-\\u0B6F\\u0B71\\u0B82\\u0B83\\u0B85-\\u0B8A\\u0B8E-\\u0B90\\u0B92-\\u0B95\\u0B99\\u0B9A\\u0B9C\\u0B9E\\u0B9F\\u0BA3\\u0BA4\\u0BA8-\\u0BAA\\u0BAE-\\u0BB9\\u0BBE-\\u0BC2\\u0BC6-\\u0BC8\\u0BCA-\\u0BCD\\u0BD0\\u0BD7\\u0BE6-\\u0BEF\\u0C00-\\u0C03\\u0C05-\\u0C0C\\u0C0E-\\u0C10\\u0C12-\\u0C28\\u0C2A-\\u0C39\\u0C3D-\\u0C44\\u0C46-\\u0C48\\u0C4A-\\u0C4D\\u0C55\\u0C56\\u0C58\\u0C59\\u0C60-\\u0C63\\u0C66-\\u0C6F\\u0C81-\\u0C83\\u0C85-\\u0C8C\\u0C8E-\\u0C90\\u0C92-\\u0CA8\\u0CAA-\\u0CB3\\u0CB5-\\u0CB9\\u0CBC-\\u0CC4\\u0CC6-\\u0CC8\\u0CCA-\\u0CCD\\u0CD5\\u0CD6\\u0CDE\\u0CE0-\\u0CE3\\u0CE6-\\u0CEF\\u0CF1\\u0CF2\\u0D01-\\u0D03\\u0D05-\\u0D0C\\u0D0E-\\u0D10\\u0D12-\\u0D3A\\u0D3D-\\u0D44\\u0D46-\\u0D48\\u0D4A-\\u0D4E\\u0D57\\u0D60-\\u0D63\\u0D66-\\u0D6F\\u0D7A-\\u0D7F\\u0D82\\u0D83\\u0D85-\\u0D96\\u0D9A-\\u0DB1\\u0DB3-\\u0DBB\\u0DBD\\u0DC0-\\u0DC6\\u0DCA\\u0DCF-\\u0DD4\\u0DD6\\u0DD8-\\u0DDF\\u0DE6-\\u0DEF\\u0DF2\\u0DF3\\u0E01-\\u0E3A\\u0E40-\\u0E4E\\u0E50-\\u0E59\\u0E81\\u0E82\\u0E84\\u0E87\\u0E88\\u0E8A\\u0E8D\\u0E94-\\u0E97\\u0E99-\\u0E9F\\u0EA1-\\u0EA3\\u0EA5\\u0EA7\\u0EAA\\u0EAB\\u0EAD-\\u0EB9\\u0EBB-\\u0EBD\\u0EC0-\\u0EC4\\u0EC6\\u0EC8-\\u0ECD\\u0ED0-\\u0ED9\\u0EDC-\\u0EDF\\u0F00\\u0F18\\u0F19\\u0F20-\\u0F29\\u0F35\\u0F37\\u0F39\\u0F3E-\\u0F47\\u0F49-\\u0F6C\\u0F71-\\u0F84\\u0F86-\\u0F97\\u0F99-\\u0FBC\\u0FC6\\u1000-\\u1049\\u1050-\\u109D\\u10A0-\\u10C5\\u10C7\\u10CD\\u10D0-\\u10FA\\u10FC-\\u1248\\u124A-\\u124D\\u1250-\\u1256\\u1258\\u125A-\\u125D\\u1260-\\u1288\\u128A-\\u128D\\u1290-\\u12B0\\u12B2-\\u12B5\\u12B8-\\u12BE\\u12C0\\u12C2-\\u12C5\\u12C8-\\u12D6\\u12D8-\\u1310\\u1312-\\u1315\\u1318-\\u135A\\u135D-\\u135F\\u1380-\\u138F\\u13A0-\\u13F4\\u1401-\\u166C\\u166F-\\u167F\\u1681-\\u169A\\u16A0-\\u16EA\\u16EE-\\u16F8\\u1700-\\u170C\\u170E-\\u1714\\u1720-\\u1734\\u1740-\\u1753\\u1760-\\u176C\\u176E-\\u1770\\u1772\\u1773\\u1780-\\u17D3\\u17D7\\u17DC\\u17DD\\u17E0-\\u17E9\\u180B-\\u180D\\u1810-\\u1819\\u1820-\\u1877\\u1880-\\u18AA\\u18B0-\\u18F5\\u1900-\\u191E\\u1920-\\u192B\\u1930-\\u193B\\u1946-\\u196D\\u1970-\\u1974\\u1980-\\u19AB\\u19B0-\\u19C9\\u19D0-\\u19D9\\u1A00-\\u1A1B\\u1A20-\\u1A5E\\u1A60-\\u1A7C\\u1A7F-\\u1A89\\u1A90-\\u1A99\\u1AA7\\u1AB0-\\u1ABD\\u1B00-\\u1B4B\\u1B50-\\u1B59\\u1B6B-\\u1B73\\u1B80-\\u1BF3\\u1C00-\\u1C37\\u1C40-\\u1C49\\u1C4D-\\u1C7D\\u1CD0-\\u1CD2\\u1CD4-\\u1CF6\\u1CF8\\u1CF9\\u1D00-\\u1DF5\\u1DFC-\\u1F15\\u1F18-\\u1F1D\\u1F20-\\u1F45\\u1F48-\\u1F4D\\u1F50-\\u1F57\\u1F59\\u1F5B\\u1F5D\\u1F5F-\\u1F7D\\u1F80-\\u1FB4\\u1FB6-\\u1FBC\\u1FBE\\u1FC2-\\u1FC4\\u1FC6-\\u1FCC\\u1FD0-\\u1FD3\\u1FD6-\\u1FDB\\u1FE0-\\u1FEC\\u1FF2-\\u1FF4\\u1FF6-\\u1FFC\\u200C\\u200D\\u203F\\u2040\\u2054\\u2071\\u207F\\u2090-\\u209C\\u20D0-\\u20DC\\u20E1\\u20E5-\\u20F0\\u2102\\u2107\\u210A-\\u2113\\u2115\\u2119-\\u211D\\u2124\\u2126\\u2128\\u212A-\\u212D\\u212F-\\u2139\\u213C-\\u213F\\u2145-\\u2149\\u214E\\u2160-\\u2188\\u2C00-\\u2C2E\\u2C30-\\u2C5E\\u2C60-\\u2CE4\\u2CEB-\\u2CF3\\u2D00-\\u2D25\\u2D27\\u2D2D\\u2D30-\\u2D67\\u2D6F\\u2D7F-\\u2D96\\u2DA0-\\u2DA6\\u2DA8-\\u2DAE\\u2DB0-\\u2DB6\\u2DB8-\\u2DBE\\u2DC0-\\u2DC6\\u2DC8-\\u2DCE\\u2DD0-\\u2DD6\\u2DD8-\\u2DDE\\u2DE0-\\u2DFF\\u2E2F\\u3005-\\u3007\\u3021-\\u302F\\u3031-\\u3035\\u3038-\\u303C\\u3041-\\u3096\\u3099\\u309A\\u309D-\\u309F\\u30A1-\\u30FA\\u30FC-\\u30FF\\u3105-\\u312D\\u3131-\\u318E\\u31A0-\\u31BA\\u31F0-\\u31FF\\u3400-\\u4DB5\\u4E00-\\u9FCC\\uA000-\\uA48C\\uA4D0-\\uA4FD\\uA500-\\uA60C\\uA610-\\uA62B\\uA640-\\uA66F\\uA674-\\uA67D\\uA67F-\\uA69D\\uA69F-\\uA6F1\\uA717-\\uA71F\\uA722-\\uA788\\uA78B-\\uA78E\\uA790-\\uA7AD\\uA7B0\\uA7B1\\uA7F7-\\uA827\\uA840-\\uA873\\uA880-\\uA8C4\\uA8D0-\\uA8D9\\uA8E0-\\uA8F7\\uA8FB\\uA900-\\uA92D\\uA930-\\uA953\\uA960-\\uA97C\\uA980-\\uA9C0\\uA9CF-\\uA9D9\\uA9E0-\\uA9FE\\uAA00-\\uAA36\\uAA40-\\uAA4D\\uAA50-\\uAA59\\uAA60-\\uAA76\\uAA7A-\\uAAC2\\uAADB-\\uAADD\\uAAE0-\\uAAEF\\uAAF2-\\uAAF6\\uAB01-\\uAB06\\uAB09-\\uAB0E\\uAB11-\\uAB16\\uAB20-\\uAB26\\uAB28-\\uAB2E\\uAB30-\\uAB5A\\uAB5C-\\uAB5F\\uAB64\\uAB65\\uABC0-\\uABEA\\uABEC\\uABED\\uABF0-\\uABF9\\uAC00-\\uD7A3\\uD7B0-\\uD7C6\\uD7CB-\\uD7FB\\uF900-\\uFA6D\\uFA70-\\uFAD9\\uFB00-\\uFB06\\uFB13-\\uFB17\\uFB1D-\\uFB28\\uFB2A-\\uFB36\\uFB38-\\uFB3C\\uFB3E\\uFB40\\uFB41\\uFB43\\uFB44\\uFB46-\\uFBB1\\uFBD3-\\uFD3D\\uFD50-\\uFD8F\\uFD92-\\uFDC7\\uFDF0-\\uFDFB\\uFE00-\\uFE0F\\uFE20-\\uFE2D\\uFE33\\uFE34\\uFE4D-\\uFE4F\\uFE70-\\uFE74\\uFE76-\\uFEFC\\uFF10-\\uFF19\\uFF21-\\uFF3A\\uFF3F\\uFF41-\\uFF5A\\uFF66-\\uFFBE\\uFFC2-\\uFFC7\\uFFCA-\\uFFCF\\uFFD2-\\uFFD7\\uFFDA-\\uFFDC]");function ru(u,e){if(!u){throw new Error("ASSERT: "+e)}}function nu(u){return u>=48&&u<=57}function Au(u){return"0123456789abcdefABCDEF".indexOf(u)>=0}function iu(u){return"01234567".indexOf(u)>=0}function au(u){return u===32||u===9||u===11||u===12||u===160||u>=5760&&[5760,6158,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279].indexOf(u)>=0}function su(u){return u===10||u===13||u===8232||u===8233}function Fu(u){return u===36||u===95||u>=65&&u<=90||u>=97&&u<=122||u===92||u>=128&&eu.test(String.fromCharCode(u))}function ou(u){return u===36||u===95||u>=65&&u<=90||u>=97&&u<=122||u>=48&&u<=57||u===92||u>=128&&tu.test(String.fromCharCode(u))}const cu={if:1,in:1,do:1,var:1,for:1,new:1,try:1,let:1,this:1,else:1,case:1,void:1,with:1,enum:1,while:1,break:1,catch:1,throw:1,const:1,yield:1,class:1,super:1,return:1,typeof:1,delete:1,switch:1,export:1,import:1,public:1,static:1,default:1,finally:1,extends:1,package:1,private:1,function:1,continue:1,debugger:1,interface:1,protected:1,instanceof:1,implements:1};function Cu(){while(d1114111||u!=="}"){qu({},Q,Z)}if(e<=65535){return String.fromCharCode(e)}t=(e-65536>>10)+55296;r=(e-65536&1023)+56320;return String.fromCharCode(t,r)}function Bu(){var u,e;u=h.charCodeAt(d++);e=String.fromCharCode(u);if(u===92){if(h.charCodeAt(d)!==117){qu({},Q,Z)}++d;u=lu("u");if(!u||u==="\\"||!Fu(u.charCodeAt(0))){qu({},Q,Z)}e=u}while(d>>="){d+=4;return{type:M,value:i,start:u,end:d}}A=i.substr(0,3);if(A===">>>"||A==="<<="||A===">>="){d+=3;return{type:M,value:A,start:u,end:d}}n=A.substr(0,2);if(r===n[1]&&"+-<>&|".indexOf(r)>=0||n==="=>"){d+=2;return{type:M,value:n,start:u,end:d}}if(n==="//"){qu({},Q,Z)}if("<>=!+-*%&|^/".indexOf(r)>=0){++d;return{type:M,value:r,start:u,end:d}}qu({},Q,Z)}function hu(u){let e="";while(d=0&&d=0){t=t.replace(/\\u\{([0-9a-fA-F]+)\}/g,((u,e)=>{if(parseInt(e,16)<=1114111){return"x"}qu({},Y)})).replace(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,"x")}try{new RegExp(t)}catch(r){qu({},Y)}try{return new RegExp(u,e)}catch(n){return null}}function yu(){var u,e,t,r,n;u=h[d];ru(u==="/","Regular expression literal must start with a slash");e=h[d++];t=false;r=false;while(d=0){qu({},Y,t)}return{value:t,literal:e}}function bu(){var u,e,t,r;m=null;Cu();u=d;e=yu();t=xu();r=wu(e.value,t.value);return{literal:e.literal+t.literal,value:r,regex:{pattern:e.value,flags:t.value},start:u,end:d}}function vu(u){return u.type===x||u.type===b||u.type===w||u.type===v}function ku(){Cu();if(d>=g){return{type:y,start:d,end:d}}const u=h.charCodeAt(d);if(Fu(u)){return Eu()}if(u===40||u===41||u===59){return pu()}if(u===39||u===34){return mu()}if(u===46){if(nu(h.charCodeAt(d+1))){return gu()}return pu()}if(nu(u)){return gu()}return pu()}function Mu(){const u=m;d=u.end;m=ku();d=u.end;return u}function Uu(){const u=d;m=ku();d=u}function Ou(u){const e=new f(L);e.elements=u;return e}function Lu(u,e,t){const r=new f(u==="||"||u==="&&"?R:I);r.operator=u;r.left=e;r.right=t;return r}function Iu(u,e){const t=new f(S);t.callee=u;t.arguments=e;return t}function Su(u,e,t){const r=new f(N);r.test=u;r.consequent=e;r.alternate=t;return r}function Nu(u){const e=new f(T);e.name=u;return e}function Tu(u){const e=new f(j);e.value=u.value;e.raw=h.slice(u.start,u.end);if(u.regex){if(e.raw==="//"){e.raw="/(?:)/"}e.regex=u.regex}return e}function ju(u,e,t){const r=new f(_);r.computed=u==="[";r.object=e;r.property=t;if(!r.computed)t.member=true;return r}function Ru(u){const e=new f(P);e.properties=u;return e}function _u(u,e,t){const r=new f(q);r.key=e;r.value=t;r.kind=u;return r}function Pu(u,e){const t=new f(G);t.operator=u;t.argument=e;t.prefix=true;return t}function qu(u,e){var t,r=Array.prototype.slice.call(arguments,2),n=e.replace(/%(\d)/g,((u,e)=>{ru(e":case"<=":case">=":case"instanceof":case"in":e=7;break;case"<<":case">>":case">>>":e=8;break;case"+":case"-":e=9;break;case"*":case"/":case"%":e=11;break}return e}function ae(){var u,e,t,r,n,A,i,a,s,F;u=m;s=Ae();r=m;n=ie(r);if(n===0){return s}r.prec=n;Mu();e=[u,m];i=Ae();A=[s,r,i];while((n=ie(m))>0){while(A.length>2&&n<=A[A.length-2].prec){i=A.pop();a=A.pop().value;s=A.pop();e.pop();t=Lu(a,s,i);A.push(t)}r=Mu();r.prec=n;A.push(r);e.push(m);t=Ae();A.push(t)}F=A.length-1;t=A[F];e.pop();while(F>1){e.pop();t=Lu(A[F-1].value,A[F-2],t);F-=2}return t}function se(){var u,e,t;u=ae();if(Vu("?")){Mu();e=se();Qu(":");t=se();u=Su(u,e,t)}return u}function Fe(){const u=se();if(Vu(",")){throw new Error(uu)}return u}function oe(u){h=u;d=0;g=h.length;m=null;Uu();const e=Fe();if(m.type!==y){throw new Error("Unexpect token after expression.")}return e}var ce={NaN:"NaN",E:"Math.E",LN2:"Math.LN2",LN10:"Math.LN10",LOG2E:"Math.LOG2E",LOG10E:"Math.LOG10E",PI:"Math.PI",SQRT1_2:"Math.SQRT1_2",SQRT2:"Math.SQRT2",MIN_VALUE:"Number.MIN_VALUE",MAX_VALUE:"Number.MAX_VALUE"};function Ce(u){function e(e,t,r,n){let A=u(t[0]);if(r){A=r+"("+A+")";if(r.lastIndexOf("new ",0)===0)A="("+A+")"}return A+"."+e+(n<0?"":n===0?"()":"("+t.slice(1).map(u).join(",")+")")}function t(u,t,r){return n=>e(u,n,t,r)}const n="new Date",A="String",i="RegExp";return{isNaN:"Number.isNaN",isFinite:"Number.isFinite",abs:"Math.abs",acos:"Math.acos",asin:"Math.asin",atan:"Math.atan",atan2:"Math.atan2",ceil:"Math.ceil",cos:"Math.cos",exp:"Math.exp",floor:"Math.floor",log:"Math.log",max:"Math.max",min:"Math.min",pow:"Math.pow",random:"Math.random",round:"Math.round",sin:"Math.sin",sqrt:"Math.sqrt",tan:"Math.tan",clamp:function(e){if(e.length<3)(0,r.vU)("Missing arguments to clamp function.");if(e.length>3)(0,r.vU)("Too many arguments to clamp function.");const t=e.map(u);return"Math.max("+t[1]+", Math.min("+t[2]+","+t[0]+"))"},now:"Date.now",utc:"Date.UTC",datetime:n,date:t("getDate",n,0),day:t("getDay",n,0),year:t("getFullYear",n,0),month:t("getMonth",n,0),hours:t("getHours",n,0),minutes:t("getMinutes",n,0),seconds:t("getSeconds",n,0),milliseconds:t("getMilliseconds",n,0),time:t("getTime",n,0),timezoneoffset:t("getTimezoneOffset",n,0),utcdate:t("getUTCDate",n,0),utcday:t("getUTCDay",n,0),utcyear:t("getUTCFullYear",n,0),utcmonth:t("getUTCMonth",n,0),utchours:t("getUTCHours",n,0),utcminutes:t("getUTCMinutes",n,0),utcseconds:t("getUTCSeconds",n,0),utcmilliseconds:t("getUTCMilliseconds",n,0),length:t("length",null,-1),parseFloat:"parseFloat",parseInt:"parseInt",upper:t("toUpperCase",A,0),lower:t("toLowerCase",A,0),substring:t("substring",A),split:t("split",A),trim:t("trim",A,0),regexp:i,test:t("test",i),if:function(e){if(e.length<3)(0,r.vU)("Missing arguments to if function.");if(e.length>3)(0,r.vU)("Too many arguments to if function.");const t=e.map(u);return"("+t[0]+"?"+t[1]+":"+t[2]+")"}}}function le(u){const e=u&&u.length-1;return e&&(u[0]==='"'&&u[e]==='"'||u[0]==="'"&&u[e]==="'")?u.slice(1,-1):u}function De(u){u=u||{};const e=u.allowed?(0,r.Rg)(u.allowed):{},t=u.forbidden?(0,r.Rg)(u.forbidden):{},n=u.constants||ce,A=(u.functions||Ce)(C),i=u.globalvar,a=u.fieldvar,s=(0,r.mf)(i)?i:u=>`${i}["${u}"]`;let F={},o={},c=0;function C(u){if((0,r.HD)(u))return u;const e=l[u.type];if(e==null)(0,r.vU)("Unsupported type: "+u.type);return e(u)}const l={Literal:u=>u.raw,Identifier:u=>{const A=u.name;if(c>0){return A}else if((0,r.nr)(t,A)){return(0,r.vU)("Illegal identifier: "+A)}else if((0,r.nr)(n,A)){return n[A]}else if((0,r.nr)(e,A)){return A}else{F[A]=1;return s(A)}},MemberExpression:u=>{const e=!u.computed,t=C(u.object);if(e)c+=1;const r=C(u.property);if(t===a){o[le(r)]=1}if(e)c-=1;return t+(e?"."+r:"["+r+"]")},CallExpression:u=>{if(u.callee.type!=="Identifier"){(0,r.vU)("Illegal callee type: "+u.callee.type)}const e=u.callee.name,t=u.arguments,n=(0,r.nr)(A,e)&&A[e];if(!n)(0,r.vU)("Unrecognized function: "+e);return(0,r.mf)(n)?n(t):n+"("+t.map(C).join(",")+")"},ArrayExpression:u=>"["+u.elements.map(C).join(",")+"]",BinaryExpression:u=>"("+C(u.left)+" "+u.operator+" "+C(u.right)+")",UnaryExpression:u=>"("+u.operator+C(u.argument)+")",ConditionalExpression:u=>"("+C(u.test)+"?"+C(u.consequent)+":"+C(u.alternate)+")",LogicalExpression:u=>"("+C(u.left)+u.operator+C(u.right)+")",ObjectExpression:u=>"{"+u.properties.map(C).join(",")+"}",Property:u=>{c+=1;const e=C(u.key);c-=1;return e+":"+C(u.value)}};function D(u){const e={code:C(u),globals:Object.keys(F),fields:Object.keys(o)};F={};o={};return e}D.functions=A;D.constants=n;return D}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/7887.128a155df5d25e88c0ce.js b/bootcamp/share/jupyter/lab/static/7887.128a155df5d25e88c0ce.js new file mode 100644 index 0000000..afcc122 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/7887.128a155df5d25e88c0ce.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7887],{67887:(e,t,r)=>{r.r(t);r.d(t,{r:()=>_});function n(e){var t={};for(var r=0;r=!&|~$:]/;var m;function d(e,t){m=null;var r=e.next();if(r=="#"){e.skipToEnd();return"comment"}else if(r=="0"&&e.eat("x")){e.eatWhile(/[\da-f]/i);return"number"}else if(r=="."&&e.eat(/\d/)){e.match(/\d*(?:e[+\-]?\d+)?/);return"number"}else if(/\d/.test(r)){e.match(/\d*(?:\.\d+)?(?:e[+\-]\d+)?L?/);return"number"}else if(r=="'"||r=='"'){t.tokenize=v(r);return"string"}else if(r=="`"){e.match(/[^`]+`/);return"string.special"}else if(r=="."&&e.match(/.(?:[.]|\d+)/)){return"keyword"}else if(/[a-zA-Z\.]/.test(r)){e.eatWhile(/[\w\.]/);var n=e.current();if(u.propertyIsEnumerable(n))return"atom";if(s.propertyIsEnumerable(n)){if(o.propertyIsEnumerable(n)&&!e.match(/\s*if(\s+|$)/,false))m="block";return"keyword"}if(c.propertyIsEnumerable(n))return"builtin";return"variable"}else if(r=="%"){if(e.skipTo("%"))e.next();return"variableName.special"}else if(r=="<"&&e.eat("-")||r=="<"&&e.match("<-")||r=="-"&&e.match(/>>?/)){return"operator"}else if(r=="="&&t.ctx.argList){return"operator"}else if(p.test(r)){if(r=="$")return"operator";e.eatWhile(p);return"operator"}else if(/[\(\){}\[\];]/.test(r)){m=r;if(r==";")return"punctuation";return null}else{return null}}function v(e){return function(t,r){if(t.eat("\\")){var n=t.next();if(n=="x")t.match(/^[a-f0-9]{2}/i);else if((n=="u"||n=="U")&&t.eat("{")&&t.skipTo("}"))t.next();else if(n=="u")t.match(/^[a-f0-9]{4}/i);else if(n=="U")t.match(/^[a-f0-9]{8}/i);else if(/[0-7]/.test(n))t.match(/^[0-7]{1,2}/);return"string.special"}else{var i;while((i=t.next())!=null){if(i==e){r.tokenize=d;break}if(i=="\\"){t.backUp(1);break}}return"string"}}}var k=1,x=2,b=4;function h(e,t,r){e.ctx={type:t,indent:e.indent,flags:0,column:r.column(),prev:e.ctx}}function g(e,t){var r=e.ctx;e.ctx={type:r.type,indent:r.indent,flags:r.flags|t,column:r.column,prev:r.prev}}function y(e){e.indent=e.ctx.indent;e.ctx=e.ctx.prev}const _={name:"r",startState:function(e){return{tokenize:d,ctx:{type:"top",indent:-e,flags:x},indent:0,afterIdent:false}},token:function(e,t){if(e.sol()){if((t.ctx.flags&3)==0)t.ctx.flags|=x;if(t.ctx.flags&b)y(t);t.indent=e.indentation()}if(e.eatSpace())return null;var r=t.tokenize(e,t);if(r!="comment"&&(t.ctx.flags&x)==0)g(t,k);if((m==";"||m=="{"||m=="}")&&t.ctx.type=="block")y(t);if(m=="{")h(t,"}",e);else if(m=="("){h(t,")",e);if(t.afterIdent)t.ctx.argList=true}else if(m=="[")h(t,"]",e);else if(m=="block")h(t,"block",e);else if(m==t.ctx.type)y(t);else if(t.ctx.type=="block"&&r!="comment")g(t,b);t.afterIdent=r=="variable"||r=="keyword";return r},indent:function(e,t,r){if(e.tokenize!=d)return 0;var n=t&&t.charAt(0),i=e.ctx,a=n==i.type;if(i.flags&b)i=i.prev;if(i.type=="block")return i.indent+(n=="{"?0:r.unit);else if(i.flags&k)return i.column+(a?0:1);else return i.indent+(a?0:r.unit)},languageData:{wordChars:".",commentTokens:{line:"#"},autocomplete:i.concat(a,l)}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/795.47ab66037ef33f808f09.js b/bootcamp/share/jupyter/lab/static/795.47ab66037ef33f808f09.js new file mode 100644 index 0000000..2666df5 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/795.47ab66037ef33f808f09.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[795],{80795:(e,t,n)=>{n.r(t);n.d(t,{shell:()=>p});var r={};function i(e,t){for(var n=0;n1)e.eat("$");var n=e.next();if(/['"({]/.test(n)){t.tokens[0]=f(n,n=="("?"quote":n=="{"?"def":"string");return h(e,t)}if(!/\d/.test(n))e.eatWhile(/\w/);t.tokens.shift();return"def"};function k(e){return function(t,n){if(t.sol()&&t.string==e)n.tokens.shift();t.skipToEnd();return"string.special"}}function h(e,t){return(t.tokens[0]||a)(e,t)}const p={name:"shell",startState:function(){return{tokens:[]}},token:function(e,t){return h(e,t)},languageData:{autocomplete:s.concat(o,u),closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"#"}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/79d088064beb3826054f.eot b/bootcamp/share/jupyter/lab/static/79d088064beb3826054f.eot new file mode 100644 index 0000000..a4e5989 Binary files /dev/null and b/bootcamp/share/jupyter/lab/static/79d088064beb3826054f.eot differ diff --git a/bootcamp/share/jupyter/lab/static/8002.25f64485372af5158c83.js b/bootcamp/share/jupyter/lab/static/8002.25f64485372af5158c83.js new file mode 100644 index 0000000..496edb7 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/8002.25f64485372af5158c83.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8002],{8002:(e,t,r)=>{r.r(t);r.d(t,{fcl:()=>d});var n={term:true,method:true,accu:true,rule:true,then:true,is:true,and:true,or:true,if:true,default:true};var u={var_input:true,var_output:true,fuzzify:true,defuzzify:true,function_block:true,ruleblock:true};var i={end_ruleblock:true,end_defuzzify:true,end_function_block:true,end_fuzzify:true,end_var:true};var a={true:true,false:true,nan:true,real:true,min:true,max:true,cog:true,cogs:true};var o=/[+\-*&^%:=<>!|\/]/;function l(e,t){var r=e.next();if(/[\d\.]/.test(r)){if(r=="."){e.match(/^[0-9]+([eE][\-+]?[0-9]+)?/)}else if(r=="0"){e.match(/^[xX][0-9a-fA-F]+/)||e.match(/^0[0-7]+/)}else{e.match(/^[0-9]*\.?[0-9]*([eE][\-+]?[0-9]+)?/)}return"number"}if(r=="/"||r=="("){if(e.eat("*")){t.tokenize=f;return f(e,t)}if(e.eat("/")){e.skipToEnd();return"comment"}}if(o.test(r)){e.eatWhile(o);return"operator"}e.eatWhile(/[\w\$_\xa1-\uffff]/);var l=e.current().toLowerCase();if(n.propertyIsEnumerable(l)||u.propertyIsEnumerable(l)||i.propertyIsEnumerable(l)){return"keyword"}if(a.propertyIsEnumerable(l))return"atom";return"variable"}function f(e,t){var r=false,n;while(n=e.next()){if((n=="/"||n==")")&&r){t.tokenize=l;break}r=n=="*"}return"comment"}function c(e,t,r,n,u){this.indented=e;this.column=t;this.type=r;this.align=n;this.prev=u}function s(e,t,r){return e.context=new c(e.indented,t,r,null,e.context)}function p(e){if(!e.context.prev)return;var t=e.context.type;if(t=="end_block")e.indented=e.context.indented;return e.context=e.context.prev}const d={name:"fcl",startState:function(e){return{tokenize:null,context:new c(-e,0,"top",false),indented:0,startOfLine:true}},token:function(e,t){var r=t.context;if(e.sol()){if(r.align==null)r.align=false;t.indented=e.indentation();t.startOfLine=true}if(e.eatSpace())return null;var n=(t.tokenize||l)(e,t);if(n=="comment")return n;if(r.align==null)r.align=true;var a=e.current().toLowerCase();if(u.propertyIsEnumerable(a))s(t,e.column(),"end_block");else if(i.propertyIsEnumerable(a))p(t);t.startOfLine=false;return n},indent:function(e,t,r){if(e.tokenize!=l&&e.tokenize!=null)return 0;var n=e.context;var u=i.propertyIsEnumerable(t);if(n.align)return n.column+(u?0:1);else return n.indented+(u?0:r.unit)},languageData:{commentTokens:{line:"//",block:{open:"(*",close:"*)"}}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/8010.1cf8237e9def8404f355.js b/bootcamp/share/jupyter/lab/static/8010.1cf8237e9def8404f355.js new file mode 100644 index 0000000..485d9f5 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/8010.1cf8237e9def8404f355.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8010],{38010:(t,e,n)=>{n.r(e);n.d(e,{stex:()=>a,stexMath:()=>i});function r(t){function e(t,e){t.cmdState.push(e)}function n(t){if(t.cmdState.length>0){return t.cmdState[t.cmdState.length-1]}else{return null}}function r(t){var e=t.cmdState.pop();if(e){e.closeBracket()}}function a(t){var e=t.cmdState;for(var n=e.length-1;n>=0;n--){var r=e[n];if(r.name=="DEFAULT"){continue}return r}return{styleIdentifier:function(){return null}}}function i(t,e,n){return function(){this.name=t;this.bracketNo=0;this.style=e;this.styles=n;this.argument=null;this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null};this.openBracket=function(){this.bracketNo++;return"bracket"};this.closeBracket=function(){}}}var u={};u["importmodule"]=i("importmodule","tag",["string","builtin"]);u["documentclass"]=i("documentclass","tag",["","atom"]);u["usepackage"]=i("usepackage","tag",["atom"]);u["begin"]=i("begin","tag",["atom"]);u["end"]=i("end","tag",["atom"]);u["label"]=i("label","tag",["atom"]);u["ref"]=i("ref","tag",["atom"]);u["eqref"]=i("eqref","tag",["atom"]);u["cite"]=i("cite","tag",["atom"]);u["bibitem"]=i("bibitem","tag",["atom"]);u["Bibitem"]=i("Bibitem","tag",["atom"]);u["RBibitem"]=i("RBibitem","tag",["atom"]);u["DEFAULT"]=function(){this.name="DEFAULT";this.style="tag";this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function c(t,e){t.f=e}function f(t,r){var i;if(t.match(/^\\[a-zA-Z@\xc0-\u1fff\u2060-\uffff]+/)){var f=t.current().slice(1);i=u.hasOwnProperty(f)?u[f]:u["DEFAULT"];i=new i;e(r,i);c(r,s);return i.style}if(t.match(/^\\[$&%#{}_]/)){return"tag"}if(t.match(/^\\[,;!\/\\]/)){return"tag"}if(t.match("\\[")){c(r,(function(t,e){return o(t,e,"\\]")}));return"keyword"}if(t.match("\\(")){c(r,(function(t,e){return o(t,e,"\\)")}));return"keyword"}if(t.match("$$")){c(r,(function(t,e){return o(t,e,"$$")}));return"keyword"}if(t.match("$")){c(r,(function(t,e){return o(t,e,"$")}));return"keyword"}var m=t.next();if(m=="%"){t.skipToEnd();return"comment"}else if(m=="}"||m=="]"){i=n(r);if(i){i.closeBracket(m);c(r,s)}else{return"error"}return"bracket"}else if(m=="{"||m=="["){i=u["DEFAULT"];i=new i;e(r,i);return"bracket"}else if(/\d/.test(m)){t.eatWhile(/[\w.%]/);return"atom"}else{t.eatWhile(/[\w\-_]/);i=a(r);if(i.name=="begin"){i.argument=t.current()}return i.styleIdentifier()}}function o(t,e,n){if(t.eatSpace()){return null}if(n&&t.match(n)){c(e,f);return"keyword"}if(t.match(/^\\[a-zA-Z@]+/)){return"tag"}if(t.match(/^[a-zA-Z]+/)){return"variableName.special"}if(t.match(/^\\[$&%#{}_]/)){return"tag"}if(t.match(/^\\[,;!\/]/)){return"tag"}if(t.match(/^[\^_&]/)){return"tag"}if(t.match(/^[+\-<>|=,\/@!*:;'"`~#?]/)){return null}if(t.match(/^(\d+\.\d*|\d*\.\d+|\d+)/)){return"number"}var r=t.next();if(r=="{"||r=="}"||r=="["||r=="]"||r=="("||r==")"){return"bracket"}if(r=="%"){t.skipToEnd();return"comment"}return"error"}function s(t,e){var a=t.peek(),i;if(a=="{"||a=="["){i=n(e);i.openBracket(a);t.eat(a);c(e,f);return"bracket"}if(/[ \t\r]/.test(a)){t.eat(a);return null}c(e,f);r(e);return f(t,e)}return{name:"stex",startState:function(){var e=t?function(t,e){return o(t,e)}:f;return{cmdState:[],f:e}},copyState:function(t){return{cmdState:t.cmdState.slice(),f:t.f}},token:function(t,e){return e.f(t,e)},blankLine:function(t){t.f=f;t.cmdState.length=0},languageData:{commentTokens:{line:"%"}}}}const a=r(false);const i=r(true)}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/8012.40cb006f0c180ebafa91.js b/bootcamp/share/jupyter/lab/static/8012.40cb006f0c180ebafa91.js new file mode 100644 index 0000000..07bf0a3 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/8012.40cb006f0c180ebafa91.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8012],{28012:(e,t,n)=>{n.r(t);n.d(t,{smalltalk:()=>h});var a=/[+\-\/\\*~<>=@%|&?!.,:;^]/;var i=/true|false|nil|self|super|thisContext/;var r=function(e,t){this.next=e;this.parent=t};var s=function(e,t,n){this.name=e;this.context=t;this.eos=n};var l=function(){this.context=new r(o,null);this.expectVariable=true;this.indentation=0;this.userIndentationDelta=0};l.prototype.userIndent=function(e,t){this.userIndentationDelta=e>0?e/t-this.indentation:0};var o=function(e,t,n){var l=new s(null,t,false);var o=e.next();if(o==='"'){l=u(e,new r(u,t))}else if(o==="'"){l=c(e,new r(c,t))}else if(o==="#"){if(e.peek()==="'"){e.next();l=f(e,new r(f,t))}else{if(e.eatWhile(/[^\s.{}\[\]()]/))l.name="string.special";else l.name="meta"}}else if(o==="$"){if(e.next()==="<"){e.eatWhile(/[^\s>]/);e.next()}l.name="string.special"}else if(o==="|"&&n.expectVariable){l.context=new r(p,t)}else if(/[\[\]{}()]/.test(o)){l.name="bracket";l.eos=/[\[{(]/.test(o);if(o==="["){n.indentation++}else if(o==="]"){n.indentation=Math.max(0,n.indentation-1)}}else if(a.test(o)){e.eatWhile(a);l.name="operator";l.eos=o!==";"}else if(/\d/.test(o)){e.eatWhile(/[\w\d]/);l.name="number"}else if(/[\w_]/.test(o)){e.eatWhile(/[\w\d_]/);l.name=n.expectVariable?i.test(e.current())?"keyword":"variable":null}else{l.eos=n.expectVariable}return l};var u=function(e,t){e.eatWhile(/[^"]/);return new s("comment",e.eat('"')?t.parent:t,true)};var c=function(e,t){e.eatWhile(/[^']/);return new s("string",e.eat("'")?t.parent:t,false)};var f=function(e,t){e.eatWhile(/[^']/);return new s("string.special",e.eat("'")?t.parent:t,false)};var p=function(e,t){var n=new s(null,t,false);var a=e.next();if(a==="|"){n.context=t.parent;n.eos=true}else{e.eatWhile(/[^|]/);n.name="variable"}return n};const h={name:"smalltalk",startState:function(){return new l},token:function(e,t){t.userIndent(e.indentation(),e.indentUnit);if(e.eatSpace()){return null}var n=t.context.next(e,t.context,t);t.context=n.context;t.expectVariable=n.eos;return n.name},blankLine:function(e,t){e.userIndent(0,t)},indent:function(e,t,n){var a=e.context.next===o&&t&&t.charAt(0)==="]"?-1:e.userIndentationDelta;return(e.indentation+a)*n.unit},languageData:{indentOnInput:/^\s*\]$/}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/812.05ef136e28aa4f3db484.js b/bootcamp/share/jupyter/lab/static/812.05ef136e28aa4f3db484.js new file mode 100644 index 0000000..a8f135e --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/812.05ef136e28aa4f3db484.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[812],{37796:(e,r,t)=>{t.r(r);t.d(r,{main:()=>K});var o=t(20501);var n=t(95171);var s=t(48435);var l=t(69858);var a=t(48641);var i=t(64331);var c=t(55834);var u=t(28180);var f=t(2542);var A=t(7920);var p=t(38710);var h=t(81554);var y=t(67014);var d=t(77552);var v=t(71821);var b=t(13313);var x=t(23454);var g=t(34802);var j=t(42584);var m=t(54244);var w=t(93814);var C=t(64897);var E=t(94679);var P=t(92121);var O=t(83417);var k=t(83344);var S=t(52109);var _=t(96986);var N=t(63008);var R=t(39721);var J=t(55337);var L=t(32977);var Q=t(95528);var B=t(3268);var I=t(99204);var M=t(38970);var T=t(50168);var U=t(52714);var Y=t(4002);var z=t(57385);var G=t(65540);var V=t(1733);var D=t(30124);async function F(e,r){try{const t=await window._JUPYTERLAB[e].get(r);return t()}catch(t){console.warn(`Failed to create module: package: ${e}; module: ${r}`);throw t}}async function K(){var e=o.PageConfig.getOption("browserTest");if(e.toLowerCase()==="true"){var r=document.createElement("div");r.id="browserTest";document.body.appendChild(r);r.textContent="[]";r.style.display="none";var n=[];var s=false;var l=25e3;var a=function(){if(s){return}s=true;r.className="completed"};window.onerror=function(e,t,o,s,l){n.push(String(l));r.textContent=JSON.stringify(n)};console.error=function(e){n.push(String(e));r.textContent=JSON.stringify(n)}}var i=t(74574).JupyterLab;var c=[];var u=[];var f=[];var A=[];const p=[];const h=[];const y=[];const d=JSON.parse(o.PageConfig.getOption("federated_extensions"));const v=[];d.forEach((e=>{if(e.extension){v.push(e.name);p.push(F(e.name,e.extension))}if(e.mimeExtension){v.push(e.name);h.push(F(e.name,e.mimeExtension))}if(e.style&&!o.PageConfig.Extension.isDisabled(e.name)){y.push(F(e.name,e.style))}}));function*b(e){let r;if(e.hasOwnProperty("__esModule")){r=e.default}else{r=e}let t=Array.isArray(r)?r:[r];for(let n of t){if(o.PageConfig.Extension.isDisabled(n.id)){c.push(n.id);continue}if(o.PageConfig.Extension.isDeferred(n.id)){u.push(n.id);f.push(n.id)}yield n}}const x=[];if(!v.includes("@jupyterlab/javascript-extension")){try{let e=t(51699);for(let r of b(e)){x.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/json-extension")){try{let e=t(21717);for(let r of b(e)){x.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/pdf-extension")){try{let e=t(1655);for(let r of b(e)){x.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/vega5-extension")){try{let e=t(38885);for(let r of b(e)){x.push(r)}}catch(E){console.error(E)}}const g=await Promise.allSettled(h);g.forEach((e=>{if(e.status==="fulfilled"){for(let r of b(e.value)){x.push(r)}}else{console.error(e.reason)}}));if(!v.includes("@jupyterlab/application-extension")){try{let e=t(48112);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/apputils-extension")){try{let e=t(26321);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/cell-toolbar-extension")){try{let e=t(93103);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/celltags-extension")){try{let e=t(4371);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/codemirror-extension")){try{let e=t(45918);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/completer-extension")){try{let e=t(91909);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/console-extension")){try{let e=t(2096);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/csvviewer-extension")){try{let e=t(95505);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/debugger-extension")){try{let e=t(47751);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/docmanager-extension")){try{let e=t(40481);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/documentsearch-extension")){try{let e=t(44877);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/extensionmanager-extension")){try{let e=t(20017);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/filebrowser-extension")){try{let e=t(84846);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/fileeditor-extension")){try{let e=t(68025);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/help-extension")){try{let e=t(25391);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/htmlviewer-extension")){try{let e=t(1578);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/hub-extension")){try{let e=t(93194);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/imageviewer-extension")){try{let e=t(65177);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/inspector-extension")){try{let e=t(76550);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/launcher-extension")){try{let e=t(85209);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/logconsole-extension")){try{let e=t(18594);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/lsp-extension")){try{let e=t(94413);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/mainmenu-extension")){try{let e=t(22337);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/markdownviewer-extension")){try{let e=t(26887);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/markedparser-extension")){try{let e=t(76340);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/mathjax-extension")){try{let e=t(67405);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/metadataform-extension")){try{let e=t(84263);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/notebook-extension")){try{let e=t(75644);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/rendermime-extension")){try{let e=t(79598);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/running-extension")){try{let e=t(9482);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/settingeditor-extension")){try{let e=t(39230);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/shortcuts-extension")){try{let e=t(46658);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/statusbar-extension")){try{let e=t(79382);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/terminal-extension")){try{let e=t(46700);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/theme-dark-extension")){try{let e=t(28740);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/theme-light-extension")){try{let e=t(56098);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/toc-extension")){try{let e=t(52170);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/tooltip-extension")){try{let e=t(11572);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/translation-extension")){try{let e=t(98580);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}if(!v.includes("@jupyterlab/ui-components-extension")){try{let e=t(10461);for(let r of b(e)){A.push(r)}}catch(E){console.error(E)}}const j=await Promise.allSettled(p);j.forEach((e=>{if(e.status==="fulfilled"){for(let r of b(e.value)){A.push(r)}}else{console.error(e.reason)}}));(await Promise.allSettled(y)).filter((({status:e})=>e==="rejected")).forEach((({reason:e})=>{console.error(e)}));const m=new i({mimeExtensions:x,disabled:{matches:c,patterns:o.PageConfig.Extension.disabled.map((function(e){return e.raw}))},deferred:{matches:u,patterns:o.PageConfig.Extension.deferred.map((function(e){return e.raw}))}});A.forEach((function(e){m.registerPluginModule(e)}));m.start({ignorePlugins:f});var w=(o.PageConfig.getOption("exposeAppInBrowser")||"").toLowerCase()==="true";var C=(o.PageConfig.getOption("devMode")||"").toLowerCase()==="true";if(w||C){window.jupyterapp=m}if(e.toLowerCase()==="true"){m.restored.then((function(){a(n)})).catch((function(e){a([`RestoreError: ${e.message}`])}));window.setTimeout((function(){a(n)}),l)}}},7413:e=>{e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAsElEQVQIHQGlAFr/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA7+r3zKmT0/+pk9P/7+r3zAAAAAAAAAAABAAAAAAAAAAA6OPzM+/q9wAAAAAA6OPzMwAAAAAAAAAAAgAAAAAAAAAAGR8NiRQaCgAZIA0AGR8NiQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQyoYJ/SY80UAAAAASUVORK5CYII="}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/8285.1eac7b7582569be1c3a8.js b/bootcamp/share/jupyter/lab/static/8285.1eac7b7582569be1c3a8.js new file mode 100644 index 0000000..c6e736b --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/8285.1eac7b7582569be1c3a8.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8285],{98285:(r,e,t)=>{t.r(e);t.d(e,{rpmChanges:()=>c,rpmSpec:()=>m});var a=/^-+$/;var n=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ?\d{1,2} \d{2}:\d{2}(:\d{2})? [A-Z]{3,4} \d{4} - /;var i=/^[\w+.-]+@[\w.-]+/;const c={name:"rpmchanges",token:function(r){if(r.sol()){if(r.match(a)){return"tag"}if(r.match(n)){return"tag"}}if(r.match(i)){return"string"}r.next();return null}};var o=/^(i386|i586|i686|x86_64|ppc64le|ppc64|ppc|ia64|s390x|s390|sparc64|sparcv9|sparc|noarch|alphaev6|alpha|hppa|mipsel)/;var p=/^[a-zA-Z0-9()]+:/;var l=/^%(debug_package|package|description|prep|build|install|files|clean|changelog|preinstall|preun|postinstall|postun|pretrans|posttrans|pre|post|triggerin|triggerun|verifyscript|check|triggerpostun|triggerprein|trigger)/;var u=/^%(ifnarch|ifarch|if)/;var s=/^%(else|endif)/;var f=/^(\!|\?|\<\=|\<|\>\=|\>|\=\=|\&\&|\|\|)/;const m={name:"rpmspec",startState:function(){return{controlFlow:false,macroParameters:false,section:false}},token:function(r,e){var t=r.peek();if(t=="#"){r.skipToEnd();return"comment"}if(r.sol()){if(r.match(p)){return"header"}if(r.match(l)){return"atom"}}if(r.match(/^\$\w+/)){return"def"}if(r.match(/^\$\{\w+\}/)){return"def"}if(r.match(s)){return"keyword"}if(r.match(u)){e.controlFlow=true;return"keyword"}if(e.controlFlow){if(r.match(f)){return"operator"}if(r.match(/^(\d+)/)){return"number"}if(r.eol()){e.controlFlow=false}}if(r.match(o)){if(r.eol()){e.controlFlow=false}return"number"}if(r.match(/^%[\w]+/)){if(r.match("(")){e.macroParameters=true}return"keyword"}if(e.macroParameters){if(r.match(/^\d+/)){return"number"}if(r.match(")")){e.macroParameters=false;return"keyword"}}if(r.match(/^%\{\??[\w \-\:\!]+\}/)){if(r.eol()){e.controlFlow=false}return"def"}r.next();return null}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/830.8ddf7d2d91f66a8e4d36.js b/bootcamp/share/jupyter/lab/static/830.8ddf7d2d91f66a8e4d36.js new file mode 100644 index 0000000..ba704b6 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/830.8ddf7d2d91f66a8e4d36.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[830],{76632:(t,r,e)=>{e.d(r,{Z:()=>j});function n(){this.__data__=[];this.size=0}const o=n;var a=e(52373);function c(t,r){var e=t.length;while(e--){if((0,a.Z)(t[e][0],r)){return e}}return-1}const u=c;var i=Array.prototype;var s=i.splice;function v(t){var r=this.__data__,e=u(r,t);if(e<0){return false}var n=r.length-1;if(e==n){r.pop()}else{s.call(r,e,1)}--this.size;return true}const f=v;function l(t){var r=this.__data__,e=u(r,t);return e<0?undefined:r[e][1]}const Z=l;function p(t){return u(this.__data__,t)>-1}const d=p;function b(t,r){var e=this.__data__,n=u(e,t);if(n<0){++this.size;e.push([t,r])}else{e[n][1]=r}return this}const y=b;function h(t){var r=-1,e=t==null?0:t.length;this.clear();while(++r{e.d(r,{Z:()=>c});var n=e(48679);var o=e(56169);var a=(0,n.Z)(o.Z,"Map");const c=a},11412:(t,r,e)=>{e.d(r,{Z:()=>R});var n=e(48679);var o=(0,n.Z)(Object,"create");const a=o;function c(){this.__data__=a?a(null):{};this.size=0}const u=c;function i(t){var r=this.has(t)&&delete this.__data__[t];this.size-=r?1:0;return r}const s=i;var v="__lodash_hash_undefined__";var f=Object.prototype;var l=f.hasOwnProperty;function Z(t){var r=this.__data__;if(a){var e=r[t];return e===v?undefined:e}return l.call(r,t)?r[t]:undefined}const p=Z;var d=Object.prototype;var b=d.hasOwnProperty;function y(t){var r=this.__data__;return a?r[t]!==undefined:b.call(r,t)}const h=y;var j="__lodash_hash_undefined__";function _(t,r){var e=this.__data__;this.size+=this.has(t)?0:1;e[t]=a&&r===undefined?j:r;return this}const g=_;function w(t){var r=-1,e=t==null?0:t.length;this.clear();while(++r{e.d(r,{Z:()=>c});var n=e(48679);var o=e(56169);var a=(0,n.Z)(o.Z,"Set");const c=a},86717:(t,r,e)=>{e.d(r,{Z:()=>h});var n=e(76632);function o(){this.__data__=new n.Z;this.size=0}const a=o;function c(t){var r=this.__data__,e=r["delete"](t);this.size=r.size;return e}const u=c;function i(t){return this.__data__.get(t)}const s=i;function v(t){return this.__data__.has(t)}const f=v;var l=e(96686);var Z=e(11412);var p=200;function d(t,r){var e=this.__data__;if(e instanceof n.Z){var o=e.__data__;if(!l.Z||o.length{e.d(r,{Z:()=>a});var n=e(56169);var o=n.Z.Symbol;const a=o},51456:(t,r,e)=>{e.d(r,{Z:()=>a});var n=e(56169);var o=n.Z.Uint8Array;const a=o},71624:(t,r,e)=>{e.d(r,{Z:()=>l});var n=e(47754);var o=e(11963);var a=e(39350);var c=e(74002);var u=e(9638);var i=e(50226);var s=Object.prototype;var v=s.hasOwnProperty;function f(t,r){var e=(0,a.Z)(t),s=!e&&(0,o.Z)(t),f=!e&&!s&&(0,c.Z)(t),l=!e&&!s&&!f&&(0,i.Z)(t),Z=e||s||f||l,p=Z?(0,n.Z)(t.length,String):[],d=p.length;for(var b in t){if((r||v.call(t,b))&&!(Z&&(b=="length"||f&&(b=="offset"||b=="parent")||l&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||(0,u.Z)(b,d)))){p.push(b)}}return p}const l=f},80758:(t,r,e)=>{e.d(r,{Z:()=>o});function n(t,r){var e=-1,n=t==null?0:t.length,o=Array(n);while(++e{e.d(r,{Z:()=>o});function n(t,r){var e=-1,n=r.length,o=t.length;while(++e{e.d(r,{Z:()=>i});var n=e(20192);var o=e(52373);var a=Object.prototype;var c=a.hasOwnProperty;function u(t,r,e){var a=t[r];if(!(c.call(t,r)&&(0,o.Z)(a,e))||e===undefined&&!(r in t)){(0,n.Z)(t,r,e)}}const i=u},20192:(t,r,e)=>{e.d(r,{Z:()=>a});var n=e(14608);function o(t,r,e){if(r=="__proto__"&&n.Z){(0,n.Z)(t,r,{configurable:true,enumerable:true,value:e,writable:true})}else{t[r]=e}}const a=o},99895:(t,r,e)=>{e.d(r,{Z:()=>Zr});var n=e(86717);function o(t,r){var e=-1,n=t==null?0:t.length;while(++e{e.d(r,{Z:()=>c});var n=e(58204);var o=e(35429);function a(t,r){r=(0,n.Z)(r,t);var e=0,a=r.length;while(t!=null&&e{e.d(r,{Z:()=>c});var n=e(21059);var o=e(39350);function a(t,r,e){var a=r(t);return(0,o.Z)(t)?a:(0,n.Z)(a,e(t))}const c=a},73832:(t,r,e)=>{e.d(r,{Z:()=>h});var n=e(5876);var o=Object.prototype;var a=o.hasOwnProperty;var c=o.toString;var u=n.Z?n.Z.toStringTag:undefined;function i(t){var r=a.call(t,u),e=t[u];try{t[u]=undefined;var n=true}catch(i){}var o=c.call(t);if(n){if(r){t[u]=e}else{delete t[u]}}return o}const s=i;var v=Object.prototype;var f=v.toString;function l(t){return f.call(t)}const Z=l;var p="[object Null]",d="[object Undefined]";var b=n.Z?n.Z.toStringTag:undefined;function y(t){if(t==null){return t===undefined?d:p}return b&&b in Object(t)?s(t):Z(t)}const h=y},14926:(t,r,e)=>{e.d(r,{Z:()=>v});var n=e(9794);var o=e(4012);var a=(0,o.Z)(Object.keys,Object);const c=a;var u=Object.prototype;var i=u.hasOwnProperty;function s(t){if(!(0,n.Z)(t)){return c(t)}var r=[];for(var e in Object(t)){if(i.call(t,e)&&e!="constructor"){r.push(e)}}return r}const v=s},47754:(t,r,e)=>{e.d(r,{Z:()=>o});function n(t,r){var e=-1,n=Array(t);while(++e{e.d(r,{Z:()=>o});function n(t){return function(r){return t(r)}}const o=n},58204:(t,r,e)=>{e.d(r,{Z:()=>i});var n=e(39350);var o=e(8633);var a=e(66668);var c=e(39191);function u(t,r){if((0,n.Z)(t)){return t}return(0,o.Z)(t,r)?[t]:(0,a.Z)((0,c.Z)(t))}const i=u},42896:(t,r,e)=>{e.d(r,{Z:()=>v});var n=e(56169);t=e.hmd(t);var o=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var a=o&&"object"=="object"&&t&&!t.nodeType&&t;var c=a&&a.exports===o;var u=c?n.Z.Buffer:undefined,i=u?u.allocUnsafe:undefined;function s(t,r){if(r){return t.slice()}var e=t.length,n=i?i(e):new t.constructor(e);t.copy(n);return n}const v=s},65935:(t,r,e)=>{e.d(r,{Z:()=>o});function n(t,r){var e=-1,n=t.length;r||(r=Array(n));while(++e{e.d(r,{Z:()=>c});var n=e(47701);var o=e(20192);function a(t,r,e,a){var c=!e;e||(e={});var u=-1,i=r.length;while(++u{e.d(r,{Z:()=>a});var n=e(48679);var o=function(){try{var t=(0,n.Z)(Object,"defineProperty");t({},"",{});return t}catch(r){}}();const a=o},48277:(t,r,e)=>{e.d(r,{Z:()=>o});var n=typeof e.g=="object"&&e.g&&e.g.Object===Object&&e.g;const o=n},72975:(t,r,e)=>{e.d(r,{Z:()=>u});var n=e(72982);var o=e(77091);var a=e(88130);function c(t){return(0,n.Z)(t,a.Z,o.Z)}const u=c},71677:(t,r,e)=>{e.d(r,{Z:()=>u});var n=e(72982);var o=e(79213);var a=e(39789);function c(t){return(0,n.Z)(t,a.Z,o.Z)}const u=c},48679:(t,r,e)=>{e.d(r,{Z:()=>A});var n=e(25069);var o=e(56169);var a=o.Z["__core-js_shared__"];const c=a;var u=function(){var t=/[^.]+$/.exec(c&&c.keys&&c.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function i(t){return!!u&&u in t}const s=i;var v=e(89122);var f=e(48723);var l=/[\\^$.*+?()[\]{}|]/g;var Z=/^\[object .+?Constructor\]$/;var p=Function.prototype,d=Object.prototype;var b=p.toString;var y=d.hasOwnProperty;var h=RegExp("^"+b.call(y).replace(l,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function j(t){if(!(0,v.Z)(t)||s(t)){return false}var r=(0,n.Z)(t)?h:Z;return r.test((0,f.Z)(t))}const _=j;function g(t,r){return t==null?undefined:t[r]}const w=g;function O(t,r){var e=w(t,r);return _(e)?e:undefined}const A=O},67290:(t,r,e)=>{e.d(r,{Z:()=>a});var n=e(4012);var o=(0,n.Z)(Object.getPrototypeOf,Object);const a=o},77091:(t,r,e)=>{e.d(r,{Z:()=>v});function n(t,r){var e=-1,n=t==null?0:t.length,o=0,a=[];while(++e{e.d(r,{Z:()=>s});var n=e(21059);var o=e(67290);var a=e(77091);var c=e(39756);var u=Object.getOwnPropertySymbols;var i=!u?c.Z:function(t){var r=[];while(t){(0,n.Z)(r,(0,a.Z)(t));t=(0,o.Z)(t)}return r};const s=i},34010:(t,r,e)=>{e.d(r,{Z:()=>S});var n=e(48679);var o=e(56169);var a=(0,n.Z)(o.Z,"DataView");const c=a;var u=e(96686);var i=(0,n.Z)(o.Z,"Promise");const s=i;var v=e(81962);var f=(0,n.Z)(o.Z,"WeakMap");const l=f;var Z=e(73832);var p=e(48723);var d="[object Map]",b="[object Object]",y="[object Promise]",h="[object Set]",j="[object WeakMap]";var _="[object DataView]";var g=(0,p.Z)(c),w=(0,p.Z)(u.Z),O=(0,p.Z)(s),A=(0,p.Z)(v.Z),m=(0,p.Z)(l);var x=Z.Z;if(c&&x(new c(new ArrayBuffer(1)))!=_||u.Z&&x(new u.Z)!=d||s&&x(s.resolve())!=y||v.Z&&x(new v.Z)!=h||l&&x(new l)!=j){x=function(t){var r=(0,Z.Z)(t),e=r==b?t.constructor:undefined,n=e?(0,p.Z)(e):"";if(n){switch(n){case g:return _;case w:return d;case O:return y;case A:return h;case m:return j}}return r}}const S=x},9638:(t,r,e)=>{e.d(r,{Z:()=>c});var n=9007199254740991;var o=/^(?:0|[1-9]\d*)$/;function a(t,r){var e=typeof t;r=r==null?n:r;return!!r&&(e=="number"||e!="symbol"&&o.test(t))&&(t>-1&&t%1==0&&t{e.d(r,{Z:()=>i});var n=e(39350);var o=e(97828);var a=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/;function u(t,r){if((0,n.Z)(t)){return false}var e=typeof t;if(e=="number"||e=="symbol"||e=="boolean"||t==null||(0,o.Z)(t)){return true}return c.test(t)||!a.test(t)||r!=null&&t in Object(r)}const i=u},9794:(t,r,e)=>{e.d(r,{Z:()=>a});var n=Object.prototype;function o(t){var r=t&&t.constructor,e=typeof r=="function"&&r.prototype||n;return t===e}const a=o},79730:(t,r,e)=>{e.d(r,{Z:()=>s});var n=e(48277);t=e.hmd(t);var o=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var a=o&&"object"=="object"&&t&&!t.nodeType&&t;var c=a&&a.exports===o;var u=c&&n.Z.process;var i=function(){try{var t=a&&a.require&&a.require("util").types;if(t){return t}return u&&u.binding&&u.binding("util")}catch(r){}}();const s=i},4012:(t,r,e)=>{e.d(r,{Z:()=>o});function n(t,r){return function(e){return t(r(e))}}const o=n},56169:(t,r,e)=>{e.d(r,{Z:()=>c});var n=e(48277);var o=typeof self=="object"&&self&&self.Object===Object&&self;var a=n.Z||o||Function("return this")();const c=a},66668:(t,r,e)=>{e.d(r,{Z:()=>Z});var n=e(11412);var o="Expected a function";function a(t,r){if(typeof t!="function"||r!=null&&typeof r!="function"){throw new TypeError(o)}var e=function(){var n=arguments,o=r?r.apply(this,n):n[0],a=e.cache;if(a.has(o)){return a.get(o)}var c=t.apply(this,n);e.cache=a.set(o,c)||a;return c};e.cache=new(a.Cache||n.Z);return e}a.Cache=n.Z;const c=a;var u=500;function i(t){var r=c(t,(function(t){if(e.size===u){e.clear()}return t}));var e=r.cache;return r}const s=i;var v=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var f=/\\(\\)?/g;var l=s((function(t){var r=[];if(t.charCodeAt(0)===46){r.push("")}t.replace(v,(function(t,e,n,o){r.push(n?o.replace(f,"$1"):e||t)}));return r}));const Z=l},35429:(t,r,e)=>{e.d(r,{Z:()=>c});var n=e(97828);var o=1/0;function a(t){if(typeof t=="string"||(0,n.Z)(t)){return t}var r=t+"";return r=="0"&&1/t==-o?"-0":r}const c=a},48723:(t,r,e)=>{e.d(r,{Z:()=>c});var n=Function.prototype;var o=n.toString;function a(t){if(t!=null){try{return o.call(t)}catch(r){}try{return t+""}catch(r){}}return""}const c=a},52373:(t,r,e)=>{e.d(r,{Z:()=>o});function n(t,r){return t===r||t!==t&&r!==r}const o=n},77398:(t,r,e)=>{e.d(r,{Z:()=>a});var n=e(23791);function o(t,r,e){var o=t==null?undefined:(0,n.Z)(t,r);return o===undefined?e:o}const a=o},11963:(t,r,e)=>{e.d(r,{Z:()=>l});var n=e(73832);var o=e(23195);var a="[object Arguments]";function c(t){return(0,o.Z)(t)&&(0,n.Z)(t)==a}const u=c;var i=Object.prototype;var s=i.hasOwnProperty;var v=i.propertyIsEnumerable;var f=u(function(){return arguments}())?u:function(t){return(0,o.Z)(t)&&s.call(t,"callee")&&!v.call(t,"callee")};const l=f},39350:(t,r,e)=>{e.d(r,{Z:()=>o});var n=Array.isArray;const o=n},5710:(t,r,e)=>{e.d(r,{Z:()=>c});var n=e(25069);var o=e(20523);function a(t){return t!=null&&(0,o.Z)(t.length)&&!(0,n.Z)(t)}const c=a},74002:(t,r,e)=>{e.d(r,{Z:()=>l});var n=e(56169);function o(){return false}const a=o;t=e.hmd(t);var c=typeof exports=="object"&&exports&&!exports.nodeType&&exports;var u=c&&"object"=="object"&&t&&!t.nodeType&&t;var i=u&&u.exports===c;var s=i?n.Z.Buffer:undefined;var v=s?s.isBuffer:undefined;var f=v||a;const l=f},25069:(t,r,e)=>{e.d(r,{Z:()=>v});var n=e(73832);var o=e(89122);var a="[object AsyncFunction]",c="[object Function]",u="[object GeneratorFunction]",i="[object Proxy]";function s(t){if(!(0,o.Z)(t)){return false}var r=(0,n.Z)(t);return r==c||r==u||r==a||r==i}const v=s},20523:(t,r,e)=>{e.d(r,{Z:()=>a});var n=9007199254740991;function o(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=n}const a=o},89122:(t,r,e)=>{e.d(r,{Z:()=>o});function n(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}const o=n},23195:(t,r,e)=>{e.d(r,{Z:()=>o});function n(t){return t!=null&&typeof t=="object"}const o=n},97828:(t,r,e)=>{e.d(r,{Z:()=>u});var n=e(73832);var o=e(23195);var a="[object Symbol]";function c(t){return typeof t=="symbol"||(0,o.Z)(t)&&(0,n.Z)(t)==a}const u=c},50226:(t,r,e)=>{e.d(r,{Z:()=>$});var n=e(73832);var o=e(20523);var a=e(23195);var c="[object Arguments]",u="[object Array]",i="[object Boolean]",s="[object Date]",v="[object Error]",f="[object Function]",l="[object Map]",Z="[object Number]",p="[object Object]",d="[object RegExp]",b="[object Set]",y="[object String]",h="[object WeakMap]";var j="[object ArrayBuffer]",_="[object DataView]",g="[object Float32Array]",w="[object Float64Array]",O="[object Int8Array]",A="[object Int16Array]",m="[object Int32Array]",x="[object Uint8Array]",S="[object Uint8ClampedArray]",z="[object Uint16Array]",P="[object Uint32Array]";var F={};F[g]=F[w]=F[O]=F[A]=F[m]=F[x]=F[S]=F[z]=F[P]=true;F[c]=F[u]=F[j]=F[i]=F[_]=F[s]=F[v]=F[f]=F[l]=F[Z]=F[p]=F[d]=F[b]=F[y]=F[h]=false;function U(t){return(0,a.Z)(t)&&(0,o.Z)(t.length)&&!!F[(0,n.Z)(t)]}const I=U;var E=e(4827);var k=e(79730);var M=k.Z&&k.Z.isTypedArray;var T=M?(0,E.Z)(M):I;const $=T},88130:(t,r,e)=>{e.d(r,{Z:()=>u});var n=e(71624);var o=e(14926);var a=e(5710);function c(t){return(0,a.Z)(t)?(0,n.Z)(t):(0,o.Z)(t)}const u=c},39789:(t,r,e)=>{e.d(r,{Z:()=>p});var n=e(71624);var o=e(89122);var a=e(9794);function c(t){var r=[];if(t!=null){for(var e in Object(t)){r.push(e)}}return r}const u=c;var i=Object.prototype;var s=i.hasOwnProperty;function v(t){if(!(0,o.Z)(t)){return u(t)}var r=(0,a.Z)(t),e=[];for(var n in t){if(!(n=="constructor"&&(r||!s.call(t,n)))){e.push(n)}}return e}const f=v;var l=e(5710);function Z(t){return(0,l.Z)(t)?(0,n.Z)(t,true):f(t)}const p=Z},39756:(t,r,e)=>{e.d(r,{Z:()=>o});function n(){return[]}const o=n},39191:(t,r,e)=>{e.d(r,{Z:()=>Z});var n=e(5876);var o=e(80758);var a=e(39350);var c=e(97828);var u=1/0;var i=n.Z?n.Z.prototype:undefined,s=i?i.toString:undefined;function v(t){if(typeof t=="string"){return t}if((0,a.Z)(t)){return(0,o.Z)(t,v)+""}if((0,c.Z)(t)){return s?s.call(t):""}var r=t+"";return r=="0"&&1/t==-u?"-0":r}const f=v;function l(t){return t==null?"":f(t)}const Z=l}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/8302.4c190e10b00fe083570e.js b/bootcamp/share/jupyter/lab/static/8302.4c190e10b00fe083570e.js new file mode 100644 index 0000000..766fa55 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/8302.4c190e10b00fe083570e.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8302],{58302:(e,t,i)=>{i.r(t);i.d(t,{BasicKeyHandler:()=>p,BasicMouseHandler:()=>M,BasicSelectionModel:()=>R,BooleanCellEditor:()=>I,CellEditor:()=>W,CellEditorController:()=>V,CellGroup:()=>C,CellRenderer:()=>w,DataGrid:()=>J,DataModel:()=>Y,DateCellEditor:()=>A,DynamicOptionCellEditor:()=>N,GraphicsContext:()=>F,HyperlinkRenderer:()=>v,InputCellEditor:()=>T,IntegerCellEditor:()=>G,IntegerInputValidator:()=>E,JSONModel:()=>Q,MutableDataModel:()=>K,NumberCellEditor:()=>D,NumberInputValidator:()=>L,OptionCellEditor:()=>P,PassInputValidator:()=>O,RendererMap:()=>j,SectionList:()=>$,SelectionModel:()=>b,TextCellEditor:()=>B,TextInputValidator:()=>k,TextRenderer:()=>y,resolveOption:()=>X});var s=i(36044);var o=i.n(s);var r=i(71720);var n=i.n(r);var l=i(21299);var a=i.n(l);var h=i(58740);var c=i.n(h);var d=i(71372);var u=i.n(d);var f=i(85448);var _=i.n(f);var m=i(28821);var g=i.n(m);class p{constructor(){this._disposed=false}get isDisposed(){return this._disposed}dispose(){this._disposed=true}onKeyDown(e,t){if(e.editable&&e.selectionModel.cursorRow!==-1&&e.selectionModel.cursorColumn!==-1){const i=String.fromCharCode(t.keyCode);if(/[a-zA-Z0-9-_ ]/.test(i)){const i=e.selectionModel.cursorRow;const s=e.selectionModel.cursorColumn;const o={grid:e,row:i,column:s};e.editorController.edit(o);if((0,r.getKeyboardLayout)().keyForKeydownEvent(t)==="Space"){t.stopPropagation();t.preventDefault()}return}}switch((0,r.getKeyboardLayout)().keyForKeydownEvent(t)){case"ArrowLeft":this.onArrowLeft(e,t);break;case"ArrowRight":this.onArrowRight(e,t);break;case"ArrowUp":this.onArrowUp(e,t);break;case"ArrowDown":this.onArrowDown(e,t);break;case"PageUp":this.onPageUp(e,t);break;case"PageDown":this.onPageDown(e,t);break;case"Escape":this.onEscape(e,t);break;case"Delete":this.onDelete(e,t);break;case"C":this.onKeyC(e,t);break;case"Enter":if(e.selectionModel){e.moveCursor(t.shiftKey?"up":"down");e.scrollToCursor()}break;case"Tab":if(e.selectionModel){e.moveCursor(t.shiftKey?"left":"right");e.scrollToCursor();t.stopPropagation();t.preventDefault()}break}}onArrowLeft(e,t){t.preventDefault();t.stopPropagation();let i=e.selectionModel;let o=t.shiftKey;let r=s.Platform.accelKey(t);if(!i&&r){e.scrollTo(0,e.scrollY);return}if(!i){e.scrollByStep("left");return}let n=i.selectionMode;if(n==="row"&&r){e.scrollTo(0,e.scrollY);return}if(n==="row"){e.scrollByStep("left");return}let l=i.cursorRow;let a=i.cursorColumn;let h=i.currentSelection();let c;let d;let u;let f;let _;let m;let g;if(r&&o){c=h?h.r1:0;d=h?h.r2:0;u=h?h.c1:0;f=0;_=l;m=a;g="current"}else if(o){c=h?h.r1:0;d=h?h.r2:0;u=h?h.c1:0;f=h?h.c2-1:0;_=l;m=a;g="current"}else if(r){c=l;d=l;u=0;f=0;_=c;m=u;g="all"}else{c=l;d=l;u=a-1;f=a-1;_=c;m=u;g="all"}i.select({r1:c,c1:u,r2:d,c2:f,cursorRow:_,cursorColumn:m,clear:g});h=i.currentSelection();if(!h){return}if(o||n==="column"){e.scrollToColumn(h.c2)}else{e.scrollToCursor()}}onArrowRight(e,t){t.preventDefault();t.stopPropagation();let i=e.selectionModel;let o=t.shiftKey;let r=s.Platform.accelKey(t);if(!i&&r){e.scrollTo(e.maxScrollX,e.scrollY);return}if(!i){e.scrollByStep("right");return}let n=i.selectionMode;if(n==="row"&&r){e.scrollTo(e.maxScrollX,e.scrollY);return}if(n==="row"){e.scrollByStep("right");return}let l=i.cursorRow;let a=i.cursorColumn;let h=i.currentSelection();let c;let d;let u;let f;let _;let m;let g;if(r&&o){c=h?h.r1:0;d=h?h.r2:0;u=h?h.c1:0;f=Infinity;_=l;m=a;g="current"}else if(o){c=h?h.r1:0;d=h?h.r2:0;u=h?h.c1:0;f=h?h.c2+1:0;_=l;m=a;g="current"}else if(r){c=l;d=l;u=Infinity;f=Infinity;_=c;m=u;g="all"}else{c=l;d=l;u=a+1;f=a+1;_=c;m=u;g="all"}i.select({r1:c,c1:u,r2:d,c2:f,cursorRow:_,cursorColumn:m,clear:g});h=i.currentSelection();if(!h){return}if(o||n==="column"){e.scrollToColumn(h.c2)}else{e.scrollToCursor()}}onArrowUp(e,t){t.preventDefault();t.stopPropagation();let i=e.selectionModel;let o=t.shiftKey;let r=s.Platform.accelKey(t);if(!i&&r){e.scrollTo(e.scrollX,0);return}if(!i){e.scrollByStep("up");return}let n=i.selectionMode;if(n==="column"&&r){e.scrollTo(e.scrollX,0);return}if(n==="column"){e.scrollByStep("up");return}let l=i.cursorRow;let a=i.cursorColumn;let h=i.currentSelection();let c;let d;let u;let f;let _;let m;let g;if(r&&o){c=h?h.r1:0;d=0;u=h?h.c1:0;f=h?h.c2:0;_=l;m=a;g="current"}else if(o){c=h?h.r1:0;d=h?h.r2-1:0;u=h?h.c1:0;f=h?h.c2:0;_=l;m=a;g="current"}else if(r){c=0;d=0;u=a;f=a;_=c;m=u;g="all"}else{c=l-1;d=l-1;u=a;f=a;_=c;m=u;g="all"}i.select({r1:c,c1:u,r2:d,c2:f,cursorRow:_,cursorColumn:m,clear:g});h=i.currentSelection();if(!h){return}if(o||n==="row"){e.scrollToRow(h.r2)}else{e.scrollToCursor()}}onArrowDown(e,t){t.preventDefault();t.stopPropagation();let i=e.selectionModel;let o=t.shiftKey;let r=s.Platform.accelKey(t);if(!i&&r){e.scrollTo(e.scrollX,e.maxScrollY);return}if(!i){e.scrollByStep("down");return}let n=i.selectionMode;if(n==="column"&&r){e.scrollTo(e.scrollX,e.maxScrollY);return}if(n==="column"){e.scrollByStep("down");return}let l=i.cursorRow;let a=i.cursorColumn;let h=i.currentSelection();let c;let d;let u;let f;let _;let m;let g;if(r&&o){c=h?h.r1:0;d=Infinity;u=h?h.c1:0;f=h?h.c2:0;_=l;m=a;g="current"}else if(o){c=h?h.r1:0;d=h?h.r2+1:0;u=h?h.c1:0;f=h?h.c2:0;_=l;m=a;g="current"}else if(r){c=Infinity;d=Infinity;u=a;f=a;_=c;m=u;g="all"}else{c=l+1;d=l+1;u=a;f=a;_=c;m=u;g="all"}i.select({r1:c,c1:u,r2:d,c2:f,cursorRow:_,cursorColumn:m,clear:g});h=i.currentSelection();if(!h){return}if(o||n==="row"){e.scrollToRow(h.r2)}else{e.scrollToCursor()}}onPageUp(e,t){if(s.Platform.accelKey(t)){return}t.preventDefault();t.stopPropagation();let i=e.selectionModel;if(!i||i.selectionMode==="column"){e.scrollByPage("up");return}let o=Math.floor(e.pageHeight/e.defaultSizes.rowHeight);let r=i.cursorRow;let n=i.cursorColumn;let l=i.currentSelection();let a;let h;let c;let d;let u;let f;let _;if(t.shiftKey){a=l?l.r1:0;h=l?l.r2-o:0;c=l?l.c1:0;d=l?l.c2:0;u=r;f=n;_="current"}else{a=l?l.r1-o:0;h=a;c=n;d=n;u=a;f=n;_="all"}i.select({r1:a,c1:c,r2:h,c2:d,cursorRow:u,cursorColumn:f,clear:_});l=i.currentSelection();if(!l){return}e.scrollToRow(l.r2)}onPageDown(e,t){if(s.Platform.accelKey(t)){return}t.preventDefault();t.stopPropagation();let i=e.selectionModel;if(!i||i.selectionMode==="column"){e.scrollByPage("down");return}let o=Math.floor(e.pageHeight/e.defaultSizes.rowHeight);let r=i.cursorRow;let n=i.cursorColumn;let l=i.currentSelection();let a;let h;let c;let d;let u;let f;let _;if(t.shiftKey){a=l?l.r1:0;h=l?l.r2+o:0;c=l?l.c1:0;d=l?l.c2:0;u=r;f=n;_="current"}else{a=l?l.r1+o:0;h=a;c=n;d=n;u=a;f=n;_="all"}i.select({r1:a,c1:c,r2:h,c2:d,cursorRow:u,cursorColumn:f,clear:_});l=i.currentSelection();if(!l){return}e.scrollToRow(l.r2)}onEscape(e,t){if(e.selectionModel){e.selectionModel.clear()}}onDelete(e,t){if(e.editable&&!e.selectionModel.isEmpty){const t=e.dataModel;let i=t.rowCount("body")-1;let s=t.columnCount("body")-1;for(let o of e.selectionModel.selections()){let e=Math.max(0,Math.min(o.r1,i));let r=Math.max(0,Math.min(o.c1,s));let n=Math.max(0,Math.min(o.r2,i));let l=Math.max(0,Math.min(o.c2,s));for(let i=e;i<=n;++i){for(let e=r;e<=l;++e){t.setData("body",i,e,null)}}}}}onKeyC(e,t){if(t.shiftKey||!s.Platform.accelKey(t)){return}t.preventDefault();t.stopPropagation();e.copyToClipboard()}}class w{}(function(e){function t(e,t){return typeof e==="function"?e(t):e}e.resolveOption=t})(w||(w={}));class y extends w{constructor(e={}){super();this.font=e.font||"12px sans-serif";this.textColor=e.textColor||"#000000";this.backgroundColor=e.backgroundColor||"";this.verticalAlignment=e.verticalAlignment||"center";this.horizontalAlignment=e.horizontalAlignment||"left";this.horizontalPadding=e.horizontalPadding||8;this.format=e.format||y.formatGeneric();this.elideDirection=e.elideDirection||"none";this.wrapText=e.wrapText||false}paint(e,t){this.drawBackground(e,t);this.drawText(e,t)}drawBackground(e,t){let i=w.resolveOption(this.backgroundColor,t);if(!i){return}e.fillStyle=i;e.fillRect(t.x,t.y,t.width,t.height)}getText(e){return this.format(e)}drawText(e,t){let i=w.resolveOption(this.font,t);if(!i){return}let s=w.resolveOption(this.textColor,t);if(!s){return}let o=this.getText(t);if(!o){return}let r=w.resolveOption(this.verticalAlignment,t);let n=w.resolveOption(this.horizontalAlignment,t);let l=w.resolveOption(this.elideDirection,t);let a=w.resolveOption(this.wrapText,t);let h=t.height-(r==="center"?1:2);if(h<=0){return}let c=y.measureFontHeight(i);let d;let u;let f;switch(r){case"top":u=t.y+2+c;break;case"center":u=t.y+t.height/2+c/2;break;case"bottom":u=t.y+t.height-2;break;default:throw"unreachable"}switch(n){case"left":d=t.x+this.horizontalPadding;f=t.width-14;break;case"center":d=t.x+t.width/2;f=t.width;break;case"right":d=t.x+t.width-this.horizontalPadding;f=t.width-14;break;default:throw"unreachable"}if(c>h){e.beginPath();e.rect(t.x,t.y,t.width,t.height-1);e.clip()}e.font=i;e.fillStyle=s;e.textAlign=n;e.textBaseline="bottom";if(l==="none"&&!a){e.fillText(o,d,u);return}let _=e.measureText(o).width;if(a&&_>f){e.beginPath();e.rect(t.x,t.y,t.width,t.height-1);e.clip();const i=o.split(/\s(?=\b)/);let s=u;let r=i.shift();if(i.length===0){let t=e.measureText(r).width;while(t>f&&r!==""){for(let i=r.length;i>0;i--){const o=r.substring(0,i);const n=e.measureText(o).width;if(nf){e.fillText(r,d,s);s+=c;r=t}else{r=o}}}e.fillText(r,d,s);return}const m="…";while(_>f&&o.length>1){const t=[...o];if(l==="right"){if(t.length>4&&_>=2*f){o=t.slice(0,Math.floor(t.length/2+1)).join("")+m}else{o=t.slice(0,t.length-2).join("")+m}}else{if(t.length>4&&_>=2*f){o=m+t.slice(Math.floor(t.length/2)).join("")}else{o=m+t.slice(2).join("")}}_=e.measureText(o).width}e.fillText(o,d,u)}}(function(e){function t(e={}){let t=e.missing||"";return({value:e})=>{if(e===null||e===undefined){return t}return String(e)}}e.formatGeneric=t;function i(e={}){let t=e.digits;let i=e.missing||"";return({value:e})=>{if(e===null||e===undefined){return i}return Number(e).toFixed(t)}}e.formatFixed=i;function s(e={}){let t=e.digits;let i=e.missing||"";return({value:e})=>{if(e===null||e===undefined){return i}return Number(e).toPrecision(t)}}e.formatPrecision=s;function o(e={}){let t=e.digits;let i=e.missing||"";return({value:e})=>{if(e===null||e===undefined){return i}return Number(e).toExponential(t)}}e.formatExponential=o;function r(e={}){let t=e.missing||"";let i=new Intl.NumberFormat(e.locales,e.options);return({value:e})=>{if(e===null||e===undefined){return t}return i.format(e)}}e.formatIntlNumber=r;function n(e={}){let t=e.missing||"";return({value:e})=>{if(e===null||e===undefined){return t}if(e instanceof Date){return e.toDateString()}return new Date(e).toDateString()}}e.formatDate=n;function l(e={}){let t=e.missing||"";return({value:e})=>{if(e===null||e===undefined){return t}if(e instanceof Date){return e.toTimeString()}return new Date(e).toTimeString()}}e.formatTime=l;function a(e={}){let t=e.missing||"";return({value:e})=>{if(e===null||e===undefined){return t}if(e instanceof Date){return e.toISOString()}return new Date(e).toISOString()}}e.formatISODateTime=a;function h(e={}){let t=e.missing||"";return({value:e})=>{if(e===null||e===undefined){return t}if(e instanceof Date){return e.toUTCString()}return new Date(e).toUTCString()}}e.formatUTCDateTime=h;function c(e={}){let t=e.missing||"";let i=new Intl.DateTimeFormat(e.locales,e.options);return({value:e})=>{if(e===null||e===undefined){return t}return i.format(e)}}e.formatIntlDateTime=c;function d(e){let t=x.fontHeightCache[e];if(t!==undefined){return t}x.fontMeasurementGC.font=e;let i=x.fontMeasurementGC.font;x.fontMeasurementNode.style.font=i;document.body.appendChild(x.fontMeasurementNode);t=x.fontMeasurementNode.offsetHeight;document.body.removeChild(x.fontMeasurementNode);x.fontHeightCache[e]=t;x.fontHeightCache[i]=t;return t}e.measureFontHeight=d})(y||(y={}));var x;(function(e){e.fontHeightCache=Object.create(null);e.fontMeasurementNode=(()=>{let e=document.createElement("div");e.style.position="absolute";e.style.top="-99999px";e.style.left="-99999px";e.style.visibility="hidden";e.textContent="M";return e})();e.fontMeasurementGC=(()=>{let e=document.createElement("canvas");e.width=0;e.height=0;return e.getContext("2d")})()})(x||(x={}));class v extends y{constructor(e={}){e.textColor=e.textColor||"navy";e.font=e.font||"bold 12px sans-serif";super(e);this.url=e.url;this.urlName=e.urlName}getText(e){let t=w.resolveOption(this.urlName,e);if(t){return this.format({...e,value:t})}return this.format(e)}drawText(e,t){let i=w.resolveOption(this.font,t);if(!i){return}let s=w.resolveOption(this.textColor,t);if(!s){return}let o=this.getText(t);if(!o){return}let r=w.resolveOption(this.verticalAlignment,t);let n=w.resolveOption(this.horizontalAlignment,t);let l=w.resolveOption(this.elideDirection,t);let a=w.resolveOption(this.wrapText,t);let h=t.height-(r==="center"?1:2);if(h<=0){return}let c=v.measureFontHeight(i);let d;let u;let f;switch(r){case"top":u=t.y+2+c;break;case"center":u=t.y+t.height/2+c/2;break;case"bottom":u=t.y+t.height-2;break;default:throw"unreachable"}switch(n){case"left":d=t.x+8;f=t.width-14;break;case"center":d=t.x+t.width/2;f=t.width;break;case"right":d=t.x+t.width-8;f=t.width-14;break;default:throw"unreachable"}if(c>h){e.beginPath();e.rect(t.x,t.y,t.width,t.height-1);e.clip()}e.font=i;e.fillStyle=s;e.textAlign=n;e.textBaseline="bottom";if(l==="none"&&!a){e.fillText(o,d,u);return}let _=e.measureText(o).width;if(a&&_>f){e.beginPath();e.rect(t.x,t.y,t.width,t.height-1);e.clip();const i=o.split(/\s(?=\b)/);let s=u;let r=i.shift();if(i.length===0){let t=e.measureText(r).width;while(t>f&&r!==""){for(let i=r.length;i>0;i--){const o=r.substring(0,i);const n=e.measureText(o).width;if(nf){e.fillText(r,d,s);s+=c;r=t}else{r=o}}}e.fillText(r,d,s);return}let m="…";if(l==="right"){while(_>f&&o.length>1){if(o.length>4&&_>=2*f){o=o.substring(0,o.length/2+1)+m}else{o=o.substring(0,o.length-2)+m}_=e.measureText(o).width}}else{while(_>f&&o.length>1){if(o.length>4&&_>=2*f){o=m+o.substring(o.length/2)}else{o=m+o.substring(2)}_=e.measureText(o).width}}e.fillText(o,d,u)}}var C;(function(e){function t(e,t,i){if(i==="row"){return e.r1>=t.r1&&e.r1<=t.r2||e.r2>=t.r1&&e.r2<=t.r2||t.r1>=e.r1&&t.r1<=e.r2||t.r2>=e.r1&&t.r2<=e.r2}return e.c1>=t.c1&&e.c1<=t.c2||e.c2>=t.c1&&e.c2<=t.c2||t.c1>=e.c1&&t.c1<=e.c2||t.c2>=e.c1&&t.c2<=e.c2}e.areCellGroupsIntersectingAtAxis=t;function i(e,t){return(e.r1>=t.r1&&e.r1<=t.r2||e.r2>=t.r1&&e.r2<=t.r2||t.r1>=e.r1&&t.r1<=e.r2||t.r2>=e.r1&&t.r2<=e.r2)&&(e.c1>=t.c1&&e.c1<=t.c2||e.c2>=t.c1&&e.c2<=t.c2||t.c1>=e.c1&&t.c1<=e.c2||t.c2>=e.c1&&t.c2<=e.c2)}e.areCellGroupsIntersecting=i;function s(e,t,i,s){const o=e.groupCount(t);for(let r=0;r=o.r1&&i<=o.r2&&s>=o.c1&&s<=o.c2){return r}}return-1}e.getGroupIndex=s;function o(e,t,i,o){const r=s(e,t,i,o);if(r===-1){return null}return e.group(t,r)}e.getGroup=o;function r(e,t){let i=[];const s=e.groupCount(t);for(let o=0;o=o.r1&&i<=o.r2){s.push(o)}}return s}e.getCellGroupsAtRow=a;function h(e,t,i){let s=[];const o=e.groupCount(t);for(let r=0;r=o.c1&&i<=o.c2){s.push(o)}}return s}e.getCellGroupsAtColumn=h;function c(t,i,s,o){let r=[];if(s==="row"){for(const s of i){for(let i=o.r1;i<=o.r2;i++){r=r.concat(e.getCellGroupsAtRow(t,s,i))}}}else{for(const s of i){for(let i=o.c1;i<=o.c2;i++){r=r.concat(e.getCellGroupsAtColumn(t,s,i))}}}let n=e.joinCellGroups(r);if(r.length>0){let o=[];for(const s of i){o=o.concat(e.getCellGroupsAtRegion(t,s))}for(let t=0;t0){m=S.computeTimeout(l-r)}else if(r>=h&&d0){m=S.computeTimeout(n-o)}else if(o>=a&&c0){m=S.computeTimeout(n-o)}else if(o>=a&&c0){m=S.computeTimeout(l-r)}else if(r>=h&&d=0){if(i.timeout<0){i.timeout=m;setTimeout((()=>{S.autoselect(e,i)}),m)}else{i.timeout=m}return}i.timeout=-1;let{vx:g,vy:p}=e.mapToVirtual(t.clientX,t.clientY);g=Math.max(0,Math.min(g,e.bodyWidth-1));p=Math.max(0,Math.min(p,e.bodyHeight-1));let w;let y;let x;let v;let M=s.cursorRow;let b=s.cursorColumn;let H="current";if(i.region==="row-header"||_==="row"){w=i.row;x=e.rowAt("body",p);const t={r1:w,c1:0,r2:x,c2:0};const s=C.joinCellGroupsIntersectingAtAxis(e.dataModel,["row-header","body"],"row",t);if(s.r1!=Number.MAX_VALUE){w=Math.min(w,s.r1);x=Math.max(x,s.r2)}y=0;v=Infinity}else if(i.region==="column-header"||_==="column"){w=0;x=Infinity;y=i.column;v=e.columnAt("body",g);const t={r1:0,c1:y,r2:0,c2:v};const s=C.joinCellGroupsIntersectingAtAxis(e.dataModel,["column-header","body"],"column",t);if(s.c1!=Number.MAX_VALUE){y=s.c1;v=s.c2}}else{w=M;x=e.rowAt("body",p);y=b;v=e.columnAt("body",g)}s.select({r1:w,c1:y,r2:x,c2:v,cursorRow:M,cursorColumn:b,clear:H})}onMouseUp(e,t){this.release()}onMouseDoubleClick(e,t){if(!e.dataModel){this.release();return}let{clientX:i,clientY:s}=t;let o=e.hitTest(i,s);let{region:r,row:n,column:l}=o;if(r==="void"){this.release();return}if(r==="column-header"||r==="corner-header"){const t=S.resizeHandleForHitTest(o);if(t==="left"||t==="right"){let i=t==="left"?l-1:l;let s=r==="column-header"?"body":"row-header";if(i<0){if(r==="column-header"){i=e.dataModel.columnCount("row-header")-1;s="row-header"}else{return}}e.resizeColumn(s,i,null)}}if(r==="body"){if(e.editable){const t={grid:e,row:n,column:l};e.editorController.edit(t)}}this.release()}onContextMenu(e,t){}onWheel(e,t){if(this._pressData){return}let i=t.deltaX;let s=t.deltaY;switch(t.deltaMode){case 0:break;case 1:{let t=e.defaultSizes;i*=t.columnWidth;s*=t.rowHeight;break}case 2:i*=e.pageWidth;s*=e.pageHeight;break;default:throw"unreachable"}if(i<0&&e.scrollX!==0||i>0&&e.scrollX!==e.maxScrollX||s<0&&e.scrollY!==0||s>0&&e.scrollY!==e.maxScrollY){t.preventDefault();t.stopPropagation();e.scrollBy(i,s)}}cursorForHandle(e){return S.cursorMap[e]}get pressData(){return this._pressData}}var S;(function(e){function t(e,t){const{region:i,row:s,column:o}=t;if(i==="void"){return undefined}const r=e.dataModel.data(i,s,o);const n=e.dataModel.metadata(i,s,o);const l={...t,value:r,metadata:n};return l}e.createCellConfigObject=t;function i(e){let t=e.row;let i=e.column;let s=e.x;let o=e.y;let r=e.width-e.x;let n=e.height-e.y;let l;switch(e.region){case"corner-header":if(i>0&&s<=5){l="left"}else if(r<=6){l="right"}else if(t>0&&o<=5){l="top"}else if(n<=6){l="bottom"}else{l="none"}break;case"column-header":if(i>0&&s<=5){l="left"}else if(r<=6){l="right"}else if(t>0&&o<=5){l="top"}else if(n<=6){l="bottom"}else{l="none"}break;case"row-header":if(i>0&&s<=5){l="left"}else if(r<=6){l="right"}else if(t>0&&o<=5){l="top"}else if(n<=6){l="bottom"}else{l="none"}break;case"body":l="none";break;case"void":l="none";break;default:throw"unreachable"}return l}e.resizeHandleForHitTest=i;function s(e,t){if(t.timeout<0){return}let i=e.selectionModel;if(!i){return}let o=i.currentSelection();if(!o){return}let r=t.localX;let n=t.localY;let l=o.r1;let a=o.c1;let h=o.r2;let c=o.c2;let d=i.cursorRow;let u=i.cursorColumn;let f="current";let _=e.headerWidth;let m=e.headerHeight;let g=e.viewportWidth;let p=e.viewportHeight;let w=i.selectionMode;if(t.region==="row-header"||w==="row"){h+=n<=m?-1:n>=p?1:0}else if(t.region==="column-header"||w==="column"){c+=r<=_?-1:r>=g?1:0}else{h+=n<=m?-1:n>=p?1:0;c+=r<=_?-1:r>=g?1:0}i.select({r1:l,c1:a,r2:h,c2:c,cursorRow:d,cursorColumn:u,clear:f});o=i.currentSelection();if(!o){return}if(t.region==="row-header"||w==="row"){e.scrollToRow(o.r2)}else if(t.region==="column-header"||w=="column"){e.scrollToColumn(o.c2)}else if(w==="cell"){e.scrollToCell(o.r2,o.c2)}setTimeout((()=>{s(e,t)}),t.timeout)}e.autoselect=s;function o(e){return 5+120*(1-Math.min(128,Math.abs(e))/128)}e.computeTimeout=o;e.cursorMap={top:"ns-resize",left:"ew-resize",right:"ew-resize",bottom:"ns-resize",hyperlink:"pointer",none:"default"}})(S||(S={}));class b{constructor(e){this._changed=new d.Signal(this);this._selectionMode="cell";this.dataModel=e.dataModel;this._selectionMode=e.selectionMode||"cell";this.dataModel.changed.connect(this.onDataModelChanged,this)}get changed(){return this._changed}get selectionMode(){return this._selectionMode}set selectionMode(e){if(this._selectionMode===e){return}this._selectionMode=e;this.clear()}isRowSelected(e){return(0,h.some)(this.selections(),(t=>H.containsRow(t,e)))}isColumnSelected(e){return(0,h.some)(this.selections(),(t=>H.containsColumn(t,e)))}isCellSelected(e,t){return(0,h.some)(this.selections(),(i=>H.containsCell(i,e,t)))}onDataModelChanged(e,t){}emitChanged(){this._changed.emit(undefined)}}var H;(function(e){function t(e,t){let{r1:i,r2:s}=e;return t>=i&&t<=s||t>=s&&t<=i}e.containsRow=t;function i(e,t){let{c1:i,c2:s}=e;return t>=i&&t<=s||t>=s&&t<=i}e.containsColumn=i;function s(e,s,o){return t(e,s)&&i(e,o)}e.containsCell=s})(H||(H={}));class R extends b{constructor(){super(...arguments);this._cursorRow=-1;this._cursorColumn=-1;this._cursorRectIndex=-1;this._selections=[]}get isEmpty(){return this._selections.length===0}get cursorRow(){return this._cursorRow}get cursorColumn(){return this._cursorColumn}moveCursorWithinSelections(e){if(this.isEmpty||this.cursorRow===-1||this._cursorColumn===-1){return}const t=this._selections[0];if(this._selections.length===1&&t.r1===t.r2&&t.c1===t.c2){return}if(this._cursorRectIndex===-1){this._cursorRectIndex=this._selections.length-1}let i=this._selections[this._cursorRectIndex];const s=e==="down"?1:e==="up"?-1:0;const o=e==="right"?1:e==="left"?-1:0;let r=this._cursorRow+s;let n=this._cursorColumn+o;const l=Math.min(i.r1,i.r2);const a=Math.max(i.r1,i.r2);const h=Math.min(i.c1,i.c2);const c=Math.max(i.c1,i.c2);const d=()=>{this._cursorRectIndex=(this._cursorRectIndex+1)%this._selections.length;i=this._selections[this._cursorRectIndex];r=Math.min(i.r1,i.r2);n=Math.min(i.c1,i.c2)};const u=()=>{this._cursorRectIndex=this._cursorRectIndex===0?this._selections.length-1:this._cursorRectIndex-1;i=this._selections[this._cursorRectIndex];r=Math.max(i.r1,i.r2);n=Math.max(i.c1,i.c2)};if(r>a){r=l;n+=1;if(n>c){d()}}else if(rc){n=h;r+=1;if(r>a){d()}}else if(ne.r1===s)).length!==0;this._selections=c?this._selections.filter((e=>e.r1!==s)):this._selections}else if(this.selectionMode==="column"){s=0;r=t-1;c=this._selections.filter((e=>e.c1===o)).length!==0;this._selections=c?this._selections.filter((e=>e.c1!==o)):this._selections}let d=l;let u=a;if(d<0||ds&&d>r){d=s}if(u<0||uo&&u>n){u=o}this._cursorRow=d;this._cursorColumn=u;this._cursorRectIndex=this._selections.length;if(!c){this._selections.push({r1:s,c1:o,r2:r,c2:n})}this.emitChanged()}clear(){if(this._selections.length===0){return}this._cursorRow=-1;this._cursorColumn=-1;this._cursorRectIndex=-1;this._selections.length=0;this.emitChanged()}onDataModelChanged(e,t){if(this._selections.length===0){return}if(t.type==="cells-changed"){return}if(t.type==="rows-moved"||t.type==="columns-moved"){return}let i=e.rowCount("body")-1;let s=e.columnCount("body")-1;if(i<0||s<0){this._selections.length=0;this.emitChanged();return}let o=this.selectionMode;let r=0;for(let n=0,l=this._selections.length;nthis.maxLength){return{valid:false,message:`Text length must be less than ${this.maxLength}`}}if(this.pattern&&!this.pattern.test(t)){return{valid:false,message:`Text doesn't match the required pattern`}}return{valid:true}}}class E{constructor(){this.min=Number.NaN;this.max=Number.NaN}validate(e,t){if(t===null){return{valid:true}}if(isNaN(t)||t%1!==0){return{valid:false,message:"Input must be valid integer"}}if(!isNaN(this.min)&&tthis.max){return{valid:false,message:`Input must be less than ${this.max}`}}return{valid:true}}}class L{constructor(){this.min=Number.NaN;this.max=Number.NaN}validate(e,t){if(t===null){return{valid:true}}if(isNaN(t)){return{valid:false,message:"Input must be valid number"}}if(!isNaN(this.min)&&tthis.max){return{valid:false,message:`Input must be less than ${this.max}`}}return{valid:true}}}class W{constructor(){this.inputChanged=new d.Signal(this);this.validityNotification=null;this._disposed=false;this._validInput=true;this._gridWheelEventHandler=null;this.inputChanged.connect((()=>{this.validate()}))}get isDisposed(){return this._disposed}dispose(){if(this._disposed){return}if(this._gridWheelEventHandler){this.cell.grid.node.removeEventListener("wheel",this._gridWheelEventHandler);this._gridWheelEventHandler=null}this._closeValidityNotification();this._disposed=true;this.cell.grid.node.removeChild(this.viewportOccluder)}edit(e,t){this.cell=e;this.onCommit=t&&t.onCommit;this.onCancel=t&&t.onCancel;this.validator=t&&t.validator?t.validator:this.createValidatorBasedOnType();this._gridWheelEventHandler=()=>{this._closeValidityNotification();this.updatePosition()};e.grid.node.addEventListener("wheel",this._gridWheelEventHandler);this._addContainer();this.updatePosition();this.startEditing()}cancel(){if(this._disposed){return}this.dispose();if(this.onCancel){this.onCancel()}}get validInput(){return this._validInput}validate(){let e;try{e=this.getInput()}catch(t){console.log(`Input error: ${t.message}`);this.setValidity(false,t.message||z);return}if(this.validator){const t=this.validator.validate(this.cell,e);if(t.valid){this.setValidity(true)}else{this.setValidity(false,t.message||z)}}else{this.setValidity(true)}}setValidity(e,t=""){this._validInput=e;this._closeValidityNotification();if(e){this.editorContainer.classList.remove("lm-mod-invalid")}else{this.editorContainer.classList.add("lm-mod-invalid");if(t!==""){this.validityNotification=new W.Notification({target:this.editorContainer,message:t,placement:"bottom",timeout:5e3});this.validityNotification.show()}}}createValidatorBasedOnType(){const e=this.cell;const t=e.grid.dataModel.metadata("body",e.row,e.column);switch(t&&t.type){case"string":{const e=new k;if(typeof t.format==="string"){const i=t.format;switch(i){case"email":e.pattern=new RegExp("^([a-z0-9_.-]+)@([da-z.-]+).([a-z.]{2,6})$");break;case"uuid":e.pattern=new RegExp("[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}");break}}if(t.constraint){if(t.constraint.minLength!==undefined){e.minLength=t.constraint.minLength}if(t.constraint.maxLength!==undefined){e.maxLength=t.constraint.maxLength}if(typeof t.constraint.pattern==="string"){e.pattern=new RegExp(t.constraint.pattern)}}return e}case"number":{const e=new L;if(t.constraint){if(t.constraint.minimum!==undefined){e.min=t.constraint.minimum}if(t.constraint.maximum!==undefined){e.max=t.constraint.maximum}}return e}case"integer":{const e=new E;if(t.constraint){if(t.constraint.minimum!==undefined){e.min=t.constraint.minimum}if(t.constraint.maximum!==undefined){e.max=t.constraint.maximum}}return e}}return undefined}getCellInfo(e){const{grid:t,row:i,column:s}=e;let o,r,n,l,a;const h=C.getGroup(t.dataModel,"body",i,s);if(h){r=t.headerWidth-t.scrollX+t.columnOffset("body",h.c1);n=t.headerHeight-t.scrollY+t.rowOffset("body",h.r1);l=0;a=0;for(let e=h.r1;e<=h.r2;e++){a+=t.rowSize("body",e)}for(let e=h.c1;e<=h.c2;e++){l+=t.columnSize("body",e)}o=t.dataModel.data("body",h.r1,h.c1)}else{r=t.headerWidth-t.scrollX+t.columnOffset("body",s);n=t.headerHeight-t.scrollY+t.rowOffset("body",i);l=t.columnSize("body",s);a=t.rowSize("body",i);o=t.dataModel.data("body",i,s)}return{grid:t,row:i,column:s,data:o,x:r,y:n,width:l,height:a}}updatePosition(){const e=this.cell.grid;const t=this.getCellInfo(this.cell);const i=e.headerHeight;const s=e.headerWidth;this.viewportOccluder.style.top=i+"px";this.viewportOccluder.style.left=s+"px";this.viewportOccluder.style.width=e.viewportWidth-s+"px";this.viewportOccluder.style.height=e.viewportHeight-i+"px";this.viewportOccluder.style.position="absolute";this.editorContainer.style.left=t.x-1-s+"px";this.editorContainer.style.top=t.y-1-i+"px";this.editorContainer.style.width=t.width+1+"px";this.editorContainer.style.height=t.height+1+"px";this.editorContainer.style.visibility="visible";this.editorContainer.style.position="absolute"}commit(e="none"){this.validate();if(!this._validInput){return false}let t;try{t=this.getInput()}catch(i){console.log(`Input error: ${i.message}`);return false}this.dispose();if(this.onCommit){this.onCommit({cell:this.cell,value:t,cursorMovement:e})}return true}_addContainer(){this.viewportOccluder=document.createElement("div");this.viewportOccluder.className="lm-DataGrid-cellEditorOccluder";this.cell.grid.node.appendChild(this.viewportOccluder);this.editorContainer=document.createElement("div");this.editorContainer.className="lm-DataGrid-cellEditorContainer";this.viewportOccluder.appendChild(this.editorContainer);this.editorContainer.addEventListener("mouseleave",(e=>{this.viewportOccluder.style.pointerEvents=this._validInput?"none":"auto"}));this.editorContainer.addEventListener("mouseenter",(e=>{this.viewportOccluder.style.pointerEvents="none"}))}_closeValidityNotification(){if(this.validityNotification){this.validityNotification.close();this.validityNotification=null}}}class T extends W{handleEvent(e){switch(e.type){case"keydown":this._onKeyDown(e);break;case"blur":this._onBlur(e);break;case"input":this._onInput(e);break}}dispose(){if(this.isDisposed){return}this._unbindEvents();super.dispose()}startEditing(){this.createWidget();const e=this.cell;const t=this.getCellInfo(e);this.input.value=this.deserialize(t.data);this.editorContainer.appendChild(this.input);this.input.focus();this.input.select();this.bindEvents()}deserialize(e){if(e===null||e===undefined){return""}return e.toString()}createWidget(){const e=document.createElement("input");e.classList.add("lm-DataGrid-cellEditorWidget");e.classList.add("lm-DataGrid-cellEditorInput");e.spellcheck=false;e.type=this.inputType;this.input=e}bindEvents(){this.input.addEventListener("keydown",this);this.input.addEventListener("blur",this);this.input.addEventListener("input",this)}_unbindEvents(){this.input.removeEventListener("keydown",this);this.input.removeEventListener("blur",this);this.input.removeEventListener("input",this)}_onKeyDown(e){switch((0,r.getKeyboardLayout)().keyForKeydownEvent(e)){case"Enter":this.commit(e.shiftKey?"up":"down");break;case"Tab":this.commit(e.shiftKey?"left":"right");e.stopPropagation();e.preventDefault();break;case"Escape":this.cancel();break}}_onBlur(e){if(this.isDisposed){return}if(!this.commit()){e.preventDefault();e.stopPropagation();this.input.focus()}}_onInput(e){this.inputChanged.emit(void 0)}}class B extends T{constructor(){super(...arguments);this.inputType="text"}getInput(){return this.input.value}}class D extends T{constructor(){super(...arguments);this.inputType="number"}startEditing(){super.startEditing();this.input.step="any";const e=this.cell;const t=e.grid.dataModel.metadata("body",e.row,e.column);const i=t.constraint;if(i){if(i.minimum){this.input.min=i.minimum}if(i.maximum){this.input.max=i.maximum}}}getInput(){let e=this.input.value;if(e.trim()===""){return null}const t=parseFloat(e);if(isNaN(t)){throw new Error("Invalid input")}return t}}class G extends T{constructor(){super(...arguments);this.inputType="number"}startEditing(){super.startEditing();this.input.step="1";const e=this.cell;const t=e.grid.dataModel.metadata("body",e.row,e.column);const i=t.constraint;if(i){if(i.minimum){this.input.min=i.minimum}if(i.maximum){this.input.max=i.maximum}}}getInput(){let e=this.input.value;if(e.trim()===""){return null}let t=parseInt(e);if(isNaN(t)){throw new Error("Invalid input")}return t}}class A extends W{handleEvent(e){switch(e.type){case"keydown":this._onKeyDown(e);break;case"blur":this._onBlur(e);break}}dispose(){if(this.isDisposed){return}this._unbindEvents();super.dispose()}startEditing(){this._createWidget();const e=this.cell;const t=this.getCellInfo(e);this._input.value=this._deserialize(t.data);this.editorContainer.appendChild(this._input);this._input.focus();this._bindEvents()}getInput(){return this._input.value}_deserialize(e){if(e===null||e===undefined){return""}return e.toString()}_createWidget(){const e=document.createElement("input");e.type="date";e.pattern="d{4}-d{2}-d{2}";e.classList.add("lm-DataGrid-cellEditorWidget");e.classList.add("lm-DataGrid-cellEditorInput");this._input=e}_bindEvents(){this._input.addEventListener("keydown",this);this._input.addEventListener("blur",this)}_unbindEvents(){this._input.removeEventListener("keydown",this);this._input.removeEventListener("blur",this)}_onKeyDown(e){switch((0,r.getKeyboardLayout)().keyForKeydownEvent(e)){case"Enter":this.commit(e.shiftKey?"up":"down");break;case"Tab":this.commit(e.shiftKey?"left":"right");e.stopPropagation();e.preventDefault();break;case"Escape":this.cancel();break}}_onBlur(e){if(this.isDisposed){return}if(!this.commit()){e.preventDefault();e.stopPropagation();this._input.focus()}}}class I extends W{handleEvent(e){switch(e.type){case"keydown":this._onKeyDown(e);break;case"mousedown":this._input.focus();e.stopPropagation();e.preventDefault();break;case"blur":this._onBlur(e);break}}dispose(){if(this.isDisposed){return}this._unbindEvents();super.dispose()}startEditing(){this._createWidget();const e=this.cell;const t=this.getCellInfo(e);this._input.checked=this._deserialize(t.data);this.editorContainer.appendChild(this._input);this._input.focus();this._bindEvents()}getInput(){return this._input.checked}_deserialize(e){if(e===null||e===undefined){return false}return e==true}_createWidget(){const e=document.createElement("input");e.classList.add("lm-DataGrid-cellEditorWidget");e.classList.add("lm-DataGrid-cellEditorCheckbox");e.type="checkbox";e.spellcheck=false;this._input=e}_bindEvents(){this._input.addEventListener("keydown",this);this._input.addEventListener("mousedown",this);this._input.addEventListener("blur",this)}_unbindEvents(){this._input.removeEventListener("keydown",this);this._input.removeEventListener("mousedown",this);this._input.removeEventListener("blur",this)}_onKeyDown(e){switch((0,r.getKeyboardLayout)().keyForKeydownEvent(e)){case"Enter":this.commit(e.shiftKey?"up":"down");break;case"Tab":this.commit(e.shiftKey?"left":"right");e.stopPropagation();e.preventDefault();break;case"Escape":this.cancel();break}}_onBlur(e){if(this.isDisposed){return}if(!this.commit()){e.preventDefault();e.stopPropagation();this._input.focus()}}}class P extends W{constructor(){super(...arguments);this._isMultiSelect=false}dispose(){if(this.isDisposed){return}super.dispose();if(this._isMultiSelect){document.body.removeChild(this._select)}}startEditing(){const e=this.cell;const t=this.getCellInfo(e);const i=e.grid.dataModel.metadata("body",e.row,e.column);this._isMultiSelect=i.type==="array";this._createWidget();if(this._isMultiSelect){this._select.multiple=true;const e=this._deserialize(t.data);for(let t=0;t{const t=document.createElement("option");t.value=e;t.text=e;r.appendChild(t)}));this.editorContainer.appendChild(r);n.setAttribute("list",o);this._input=n}_bindEvents(){this._input.addEventListener("keydown",this);this._input.addEventListener("blur",this)}_unbindEvents(){this._input.removeEventListener("keydown",this);this._input.removeEventListener("blur",this)}_onKeyDown(e){switch((0,r.getKeyboardLayout)().keyForKeydownEvent(e)){case"Enter":this.commit(e.shiftKey?"up":"down");break;case"Tab":this.commit(e.shiftKey?"left":"right");e.stopPropagation();e.preventDefault();break;case"Escape":this.cancel();break}}_onBlur(e){if(this.isDisposed){return}if(!this.commit()){e.preventDefault();e.stopPropagation();this._input.focus()}}}(function(e){class t extends f.Widget{constructor(e){super({node:t.createNode()});this._message="";this.addClass("lm-DataGrid-notification");this.setFlag(f.Widget.Flag.DisallowLayout);this._target=e.target;this._message=e.message||"";this._placement=e.placement||"bottom";f.Widget.attach(this,document.body);if(e.timeout&&e.timeout>0){setTimeout((()=>{this.close()}),e.timeout)}}handleEvent(e){switch(e.type){case"mousedown":this._evtMouseDown(e);break;case"contextmenu":e.preventDefault();e.stopPropagation();break}}get placement(){return this._placement}set placement(e){if(this._placement===e){return}this._placement=e;this.update()}get message(){return this._message}set message(e){if(this._message===e){return}this._message=e;this.update()}get messageNode(){return this.node.getElementsByClassName("lm-DataGrid-notificationMessage")[0]}onBeforeAttach(e){this.node.addEventListener("mousedown",this);this.update()}onAfterDetach(e){this.node.removeEventListener("mousedown",this)}onUpdateRequest(e){const t=this._target.getBoundingClientRect();const i=this.node.style;switch(this._placement){case"bottom":i.left=t.left+"px";i.top=t.bottom+"px";break;case"top":i.left=t.left+"px";i.height=t.top+"px";i.top="0";i.alignItems="flex-end";i.justifyContent="flex-end";break;case"left":i.left="0";i.width=t.left+"px";i.top=t.top+"px";i.alignItems="flex-end";i.justifyContent="flex-end";break;case"right":i.left=t.right+"px";i.top=t.top+"px";break}this.messageNode.innerHTML=this._message}_evtMouseDown(e){if(e.button!==0){return}e.preventDefault();e.stopPropagation();this.close()}}e.Notification=t;(function(e){function t(){const e=document.createElement("div");const t=document.createElement("div");t.className="lm-DataGrid-notificationContainer";const i=document.createElement("span");i.className="lm-DataGrid-notificationMessage";t.appendChild(i);e.appendChild(t);return e}e.createNode=t})(t=e.Notification||(e.Notification={}))})(W||(W={}));function X(e,t){return typeof e==="function"?e(t):e}class V{constructor(){this._editor=null;this._cell=null;this._typeBasedOverrides=new Map;this._metadataBasedOverrides=new Map}setEditor(e,t){if(typeof e==="string"){this._typeBasedOverrides.set(e,t)}else{const i=this._metadataIdentifierToKey(e);this._metadataBasedOverrides.set(i,[e,t])}}edit(e,t){const i=e.grid;if(!i.editable){console.error("Grid cannot be edited!");return false}this.cancel();this._cell=e;t=t||{};t.onCommit=t.onCommit||this._onCommit.bind(this);t.onCancel=t.onCancel||this._onCancel.bind(this);if(t.editor){this._editor=t.editor;t.editor.edit(e,t);return true}const s=this._getEditor(e);if(s){this._editor=s;s.edit(e,t);return true}return false}cancel(){if(this._editor){this._editor.cancel();this._editor=null}this._cell=null}_onCommit(e){const t=this._cell;if(!t){return}const i=t.grid;const s=i.dataModel;let o=t.row;let r=t.column;const n=C.getGroup(i.dataModel,"body",o,r);if(n){o=n.r1;r=n.c1}s.setData("body",o,r,e.value);i.viewport.node.focus();if(e.cursorMovement!=="none"){i.moveCursor(e.cursorMovement);i.scrollToCursor()}}_onCancel(){if(!this._cell){return}this._cell.grid.viewport.node.focus()}_getDataTypeKey(e){const t=e.grid.dataModel?e.grid.dataModel.metadata("body",e.row,e.column):null;if(!t){return"default"}let i="";if(t){i=t.type}if(t.constraint&&t.constraint.enum){if(t.constraint.enum==="dynamic"){i+=":dynamic-option"}else{i+=":option"}}return i}_objectToKey(e){let t="";for(let i in e){const s=e[i];if(typeof s==="object"){t+=`${i}:${this._objectToKey(s)}`}else{t+=`[${i}:${s}]`}}return t}_metadataIdentifierToKey(e){return this._objectToKey(e)}_metadataMatchesIdentifier(e,t){for(let i in t){if(!e.hasOwnProperty(i)){return false}const s=t[i];const o=e[i];if(typeof s==="object"){if(!this._metadataMatchesIdentifier(o,s)){return false}}else if(o!==s){return false}}return true}_getMetadataBasedEditor(e){let t;const i=e.grid.dataModel.metadata("body",e.row,e.column);if(i){this._metadataBasedOverrides.forEach((s=>{if(!t){let[o,r]=s;if(this._metadataMatchesIdentifier(i,o)){t=X(r,e)}}}))}return t}_getEditor(e){const t=this._getDataTypeKey(e);if(this._typeBasedOverrides.has(t)){const i=this._typeBasedOverrides.get(t);return X(i,e)}else if(this._metadataBasedOverrides.size>0){const t=this._getMetadataBasedEditor(e);if(t){return t}}switch(t){case"string":return new B;case"number":return new D;case"integer":return new G;case"boolean":return new I;case"date":return new A;case"string:option":case"number:option":case"integer:option":case"date:option":case"array:option":return new P;case"string:dynamic-option":case"number:dynamic-option":case"integer:dynamic-option":case"date:dynamic-option":return new N}if(this._typeBasedOverrides.has("default")){const t=this._typeBasedOverrides.get("default");return X(t,e)}const i=e.grid.dataModel.data("body",e.row,e.column);if(!i||typeof i!=="object"){return new B}return undefined}}class Y{constructor(){this._changed=new d.Signal(this)}get changed(){return this._changed}groupCount(e){return 0}metadata(e,t,i){return Y.emptyMetadata}group(e,t){return null}emitChanged(e){this._changed.emit(e)}}class K extends Y{}(function(e){e.emptyMetadata=Object.freeze({})})(Y||(Y={}));class F{constructor(e){this._disposed=false;this._context=e;this._state=q.State.create(e)}dispose(){if(this._disposed){return}this._disposed=true;while(this._state.next){this._state=this._state.next;this._context.restore()}}get isDisposed(){return this._disposed}get fillStyle(){return this._context.fillStyle}set fillStyle(e){if(this._state.fillStyle!==e){this._state.fillStyle=e;this._context.fillStyle=e}}get strokeStyle(){return this._context.strokeStyle}set strokeStyle(e){if(this._state.strokeStyle!==e){this._state.strokeStyle=e;this._context.strokeStyle=e}}get font(){return this._context.font}set font(e){if(this._state.font!==e){this._state.font=e;this._context.font=e}}get textAlign(){return this._context.textAlign}set textAlign(e){if(this._state.textAlign!==e){this._state.textAlign=e;this._context.textAlign=e}}get textBaseline(){return this._context.textBaseline}set textBaseline(e){if(this._state.textBaseline!==e){this._state.textBaseline=e;this._context.textBaseline=e}}get lineCap(){return this._context.lineCap}set lineCap(e){if(this._state.lineCap!==e){this._state.lineCap=e;this._context.lineCap=e}}get lineDashOffset(){return this._context.lineDashOffset}set lineDashOffset(e){if(this._state.lineDashOffset!==e){this._state.lineDashOffset=e;this._context.lineDashOffset=e}}get lineJoin(){return this._context.lineJoin}set lineJoin(e){if(this._state.lineJoin!==e){this._state.lineJoin=e;this._context.lineJoin=e}}get lineWidth(){return this._context.lineWidth}set lineWidth(e){if(this._state.lineWidth!==e){this._state.lineWidth=e;this._context.lineWidth=e}}get miterLimit(){return this._context.miterLimit}set miterLimit(e){if(this._state.miterLimit!==e){this._state.miterLimit=e;this._context.miterLimit=e}}get shadowBlur(){return this._context.shadowBlur}set shadowBlur(e){if(this._state.shadowBlur!==e){this._state.shadowBlur=e;this._context.shadowBlur=e}}get shadowColor(){return this._context.shadowColor}set shadowColor(e){if(this._state.shadowColor!==e){this._state.shadowColor=e;this._context.shadowColor=e}}get shadowOffsetX(){return this._context.shadowOffsetX}set shadowOffsetX(e){if(this._state.shadowOffsetX!==e){this._state.shadowOffsetX=e;this._context.shadowOffsetX=e}}get shadowOffsetY(){return this._context.shadowOffsetY}set shadowOffsetY(e){if(this._state.shadowOffsetY!==e){this._state.shadowOffsetY=e;this._context.shadowOffsetY=e}}get imageSmoothingEnabled(){return this._context.imageSmoothingEnabled}set imageSmoothingEnabled(e){if(this._state.imageSmoothingEnabled!==e){this._state.imageSmoothingEnabled=e;this._context.imageSmoothingEnabled=e}}get globalAlpha(){return this._context.globalAlpha}set globalAlpha(e){if(this._state.globalAlpha!==e){this._state.globalAlpha=e;this._context.globalAlpha=e}}get globalCompositeOperation(){return this._context.globalCompositeOperation}set globalCompositeOperation(e){if(this._state.globalCompositeOperation!==e){this._state.globalCompositeOperation=e;this._context.globalCompositeOperation=e}}getLineDash(){return this._context.getLineDash()}setLineDash(e){this._context.setLineDash(e)}rotate(e){this._context.rotate(e)}scale(e,t){this._context.scale(e,t)}transform(e,t,i,s,o,r){this._context.transform(e,t,i,s,o,r)}translate(e,t){this._context.translate(e,t)}setTransform(e,t,i,s,o,r){this._context.setTransform(e,t,i,s,o,r)}save(){this._state=q.State.push(this._state);this._context.save()}restore(){if(!this._state.next){return}this._state=q.State.pop(this._state);this._context.restore()}beginPath(){return this._context.beginPath()}closePath(){this._context.closePath()}isPointInPath(e,t,i){let s;if(arguments.length===2){s=this._context.isPointInPath(e,t)}else{s=this._context.isPointInPath(e,t,i)}return s}arc(e,t,i,s,o,r){if(arguments.length===5){this._context.arc(e,t,i,s,o)}else{this._context.arc(e,t,i,s,o,r)}}arcTo(e,t,i,s,o){this._context.arcTo(e,t,i,s,o)}bezierCurveTo(e,t,i,s,o,r){this._context.bezierCurveTo(e,t,i,s,o,r)}ellipse(e,t,i,s,o,r,n,l){if(arguments.length===7){this._context.ellipse(e,t,i,s,o,r,n)}else{this._context.ellipse(e,t,i,s,o,r,n,l)}}lineTo(e,t){this._context.lineTo(e,t)}moveTo(e,t){this._context.moveTo(e,t)}quadraticCurveTo(e,t,i,s){this._context.quadraticCurveTo(e,t,i,s)}rect(e,t,i,s){this._context.rect(e,t,i,s)}clip(e){if(arguments.length===0){this._context.clip()}else{this._context.clip(e)}}fill(e){if(arguments.length===0){this._context.fill()}else{this._context.fill(e)}}stroke(){this._context.stroke()}clearRect(e,t,i,s){return this._context.clearRect(e,t,i,s)}fillRect(e,t,i,s){this._context.fillRect(e,t,i,s)}fillText(e,t,i,s){if(arguments.length===3){this._context.fillText(e,t,i)}else{this._context.fillText(e,t,i,s)}}strokeRect(e,t,i,s){this._context.strokeRect(e,t,i,s)}strokeText(e,t,i,s){if(arguments.length===3){this._context.strokeText(e,t,i)}else{this._context.strokeText(e,t,i,s)}}measureText(e){return this._context.measureText(e)}createLinearGradient(e,t,i,s){return this._context.createLinearGradient(e,t,i,s)}createRadialGradient(e,t,i,s,o,r){return this._context.createRadialGradient(e,t,i,s,o,r)}createPattern(e,t){return this._context.createPattern(e,t)}createImageData(){return this._context.createImageData.apply(this._context,arguments)}getImageData(e,t,i,s){return this._context.getImageData(e,t,i,s)}putImageData(){this._context.putImageData.apply(this._context,arguments)}drawImage(){this._context.drawImage.apply(this._context,arguments)}drawFocusIfNeeded(e){this._context.drawFocusIfNeeded(e)}}var q;(function(e){let t=-1;const i=[];class s{static create(e){let o=t<0?new s:i[t--];o.next=null;o.fillStyle=e.fillStyle;o.font=e.font;o.globalAlpha=e.globalAlpha;o.globalCompositeOperation=e.globalCompositeOperation;o.imageSmoothingEnabled=e.imageSmoothingEnabled;o.lineCap=e.lineCap;o.lineDashOffset=e.lineDashOffset;o.lineJoin=e.lineJoin;o.lineWidth=e.lineWidth;o.miterLimit=e.miterLimit;o.shadowBlur=e.shadowBlur;o.shadowColor=e.shadowColor;o.shadowOffsetX=e.shadowOffsetX;o.shadowOffsetY=e.shadowOffsetY;o.strokeStyle=e.strokeStyle;o.textAlign=e.textAlign;o.textBaseline=e.textBaseline;return o}static push(e){let o=t<0?new s:i[t--];o.next=e;o.fillStyle=e.fillStyle;o.font=e.font;o.globalAlpha=e.globalAlpha;o.globalCompositeOperation=e.globalCompositeOperation;o.imageSmoothingEnabled=e.imageSmoothingEnabled;o.lineCap=e.lineCap;o.lineDashOffset=e.lineDashOffset;o.lineJoin=e.lineJoin;o.lineWidth=e.lineWidth;o.miterLimit=e.miterLimit;o.shadowBlur=e.shadowBlur;o.shadowColor=e.shadowColor;o.shadowOffsetX=e.shadowOffsetX;o.shadowOffsetY=e.shadowOffsetY;o.strokeStyle=e.strokeStyle;o.textAlign=e.textAlign;o.textBaseline=e.textBaseline;return o}static pop(e){e.fillStyle="";e.strokeStyle="";i[++t]=e;return e.next}}e.State=s})(q||(q={}));class j{constructor(e={},t){this._changed=new d.Signal(this);this._values={...e};this._fallback=t||new y}get changed(){return this._changed}get(e){let t=this._values[e.region];if(typeof t==="function"){try{t=t(e)}catch(i){t=undefined;console.error(i)}}return t||this._fallback}update(e={},t){this._values={...this._values,...e};this._fallback=t||this._fallback;this._changed.emit(undefined)}}class ${constructor(e){this._count=0;this._length=0;this._sections=[];this._minimumSize=e.minimumSize||2;this._defaultSize=Math.max(this._minimumSize,Math.floor(e.defaultSize))}get length(){return this._length}get count(){return this._count}get minimumSize(){return this._minimumSize}set minimumSize(e){e=Math.max(2,Math.floor(e));if(this._minimumSize===e){return}this._minimumSize=e;if(e>this._defaultSize){this.defaultSize=e}}get defaultSize(){return this._defaultSize}set defaultSize(e){e=Math.max(this._minimumSize,Math.floor(e));if(this._defaultSize===e){return}let t=e-this._defaultSize;this._defaultSize=e;this._length+=t*(this._count-this._sections.length);if(this._sections.length===0){return}for(let i=0,s=this._sections.length;i=this._length||this._count===0){return-1}if(this._sections.length===0){return Math.floor(e/this._defaultSize)}let t=h.ArrayExt.lowerBound(this._sections,e,U.offsetCmp);if(t=this._count){return-1}if(this._sections.length===0){return e*this._defaultSize}let t=h.ArrayExt.lowerBound(this._sections,e,U.indexCmp);if(t=this._count){return-1}if(this._sections.length===0){return(e+1)*this._defaultSize-1}let t=h.ArrayExt.lowerBound(this._sections,e,U.indexCmp);if(t=this._count){return-1}if(this._sections.length===0){return this._defaultSize}let t=h.ArrayExt.lowerBound(this._sections,e,U.indexCmp);if(t=this._count){return}t=Math.max(this._minimumSize,Math.floor(t));let i=h.ArrayExt.lowerBound(this._sections,e,U.indexCmp);let s;if(i=this._count||t<=0){return}t=Math.min(this._count-e,t);if(this._sections.length===0){this._count-=t;this._length-=t*this._defaultSize;return}if(t===this._count){this._length=0;this._count=0;this._sections.length=0;return}let i=h.ArrayExt.lowerBound(this._sections,e,U.indexCmp);let s=h.ArrayExt.lowerBound(this._sections,e+t,U.indexCmp);let o=this._sections.splice(i,s-i);let r=(t-o.length)*this._defaultSize;for(let n=0,l=o.length;n=this._count||t<=0){return}if(this._sections.length===0){return}t=Math.min(t,this._count-e);i=Math.min(Math.max(0,i),this._count-t);if(e===i){return}let s=Math.min(e,i);let o=h.ArrayExt.lowerBound(this._sections,s,U.indexCmp);if(o===this._sections.length){return}let r=Math.max(e+t-1,i+t-1);let n=h.ArrayExt.upperBound(this._sections,r,U.indexCmp)-1;if(nr){n=s-r+10}if(n===0){return}this.scrollBy(0,n)}scrollToColumn(e){let t=this._columnSections.count;if(t===0){return}e=Math.floor(e);e=Math.max(0,Math.min(e,t-1));let i=this._columnSections.offsetOf(e);let s=this._columnSections.extentOf(e);let o=this._scrollX;let r=this._scrollX+this.pageWidth-1;let n=0;if(ir){n=s-r+10}if(n===0){return}this.scrollBy(n,0)}scrollToCell(e,t){let i=this._rowSections.count;let s=this._columnSections.count;if(i===0||s===0){return}e=Math.floor(e);t=Math.floor(t);e=Math.max(0,Math.min(e,i-1));t=Math.max(0,Math.min(t,s-1));let o=this._columnSections.offsetOf(t);let r=this._columnSections.extentOf(t);let n=this._rowSections.offsetOf(e);let l=this._rowSections.extentOf(e);let a=this._scrollX;let h=this._scrollX+this.pageWidth-1;let c=this._scrollY;let d=this._scrollY+this.pageHeight-1;let u=0;let f=0;if(oh){u=r-h+10}if(nd){f=l-d+10}if(u===0&&f===0){return}this.scrollBy(u,f)}moveCursor(e){if(!this.dataModel||!this._selectionModel||this._selectionModel.isEmpty){return}const t=this._selectionModel.selections();const i=t.next()&&!t.next();if(i){const t=this._selectionModel.currentSelection();if(t.r1===t.r2&&t.c1===t.c2){const i=e==="down"?1:e==="up"?-1:0;const s=e==="right"?1:e==="left"?-1:0;let o=t.r1+i;let r=t.c1+s;const n=this.dataModel.rowCount("body");const l=this.dataModel.columnCount("body");if(o>=n){o=0;r+=1}else if(o===-1){o=n-1;r-=1}if(r>=l){r=0;o+=1;if(o>=n){o=0}}else if(r===-1){r=l-1;o-=1;if(o===-1){o=n-1}}this._selectionModel.select({r1:o,c1:r,r2:o,c2:r,cursorRow:o,cursorColumn:r,clear:"all"});return}}this._selectionModel.moveCursorWithinSelections(e)}scrollToCursor(){if(!this._selectionModel){return}let e=this._selectionModel.cursorRow;let t=this._selectionModel.cursorColumn;this.scrollToCell(e,t)}scrollBy(e,t){this.scrollTo(this.scrollX+e,this.scrollY+t)}scrollByPage(e){let t=0;let i=0;switch(e){case"up":i=-this.pageHeight;break;case"down":i=this.pageHeight;break;case"left":t=-this.pageWidth;break;case"right":t=this.pageWidth;break;default:throw"unreachable"}this.scrollTo(this.scrollX+t,this.scrollY+i)}scrollByStep(e){let t;let i;let s=this.scrollX;let o=this.scrollY;let r=this._rowSections;let n=this._columnSections;switch(e){case"up":t=r.indexOf(o-1);o=t<0?o:r.offsetOf(t);break;case"down":t=r.indexOf(o);o=t<0?o:r.offsetOf(t)+r.sizeOf(t);break;case"left":i=n.indexOf(s-1);s=i<0?s:n.offsetOf(i);break;case"right":i=n.indexOf(s);s=i<0?s:n.offsetOf(i)+n.sizeOf(i);break;default:throw"unreachable"}this.scrollTo(s,o)}scrollTo(e,t){e=Math.max(0,Math.min(Math.floor(e),this.maxScrollX));t=Math.max(0,Math.min(Math.floor(t),this.maxScrollY));this._hScrollBar.value=e;this._vScrollBar.value=t;m.MessageLoop.postMessage(this._viewport,Z.ScrollRequest)}rowCount(e){let t;if(e==="body"){t=this._rowSections.count}else{t=this._columnHeaderSections.count}return t}columnCount(e){let t;if(e==="body"){t=this._columnSections.count}else{t=this._rowHeaderSections.count}return t}rowAt(e,t){if(t<0){return-1}if(e==="column-header"){return this._columnHeaderSections.indexOf(t)}let i=this._rowSections.indexOf(t);if(i>=0){return i}if(!this._stretchLastRow){return-1}let s=this.bodyHeight;let o=this.pageHeight;if(o<=s){return-1}if(t>=o){return-1}return this._rowSections.count-1}columnAt(e,t){if(t<0){return-1}if(e==="row-header"){return this._rowHeaderSections.indexOf(t)}let i=this._columnSections.indexOf(t);if(i>=0){return i}if(!this._stretchLastColumn){return-1}let s=this.bodyWidth;let o=this.pageWidth;if(o<=s){return-1}if(t>=o){return-1}return this._columnSections.count-1}rowOffset(e,t){let i;if(e==="body"){i=this._rowSections.offsetOf(t)}else{i=this._columnHeaderSections.offsetOf(t)}return i}columnOffset(e,t){let i;if(e==="body"){i=this._columnSections.offsetOf(t)}else{i=this._rowHeaderSections.offsetOf(t)}return i}rowSize(e,t){if(e==="column-header"){return this._columnHeaderSections.sizeOf(t)}let i=this._rowSections.sizeOf(t);if(i<0){return i}if(!this._stretchLastRow){return i}if(tn){n=h}if(this._stretchLastRow&&a>l){l=a}if(i>=0&&i=0&&s=0&&s=0&&i=0&&i=0&&s=o&&i=r&&s1){alert("Cannot copy multiple grid selections.");return}let o=e.rowCount("body");let r=e.columnCount("body");if(o===0||r===0){return}let{r1:n,c1:l,r2:a,c2:h}=i[0];n=Math.max(0,Math.min(n,o-1));l=Math.max(0,Math.min(l,r-1));a=Math.max(0,Math.min(a,o-1));h=Math.max(0,Math.min(h,r-1));if(am){let e=`Copying ${w} cells may take a while. Continue?`;if(!window.confirm(e)){return}}let y={region:"body",row:0,column:0,value:null,metadata:{}};let x=new Array(g);for(let s=0;se.join(u)));let C=v.join("\n");s.ClipboardExt.copyText(C)}processMessage(e){if(e.type==="child-shown"||e.type==="child-hidden"){return}if(e.type==="fit-request"){let e=s.ElementExt.sizeLimits(this._vScrollBar.node);let t=s.ElementExt.sizeLimits(this._hScrollBar.node);this._vScrollBarMinWidth=e.minWidth;this._hScrollBarMinHeight=t.minHeight}super.processMessage(e)}messageHook(e,t){if(e===this._viewport){this._processViewportMessage(t);return true}if(e===this._hScrollBar&&t.type==="activate-request"){this.activate();return false}if(e===this._vScrollBar&&t.type==="activate-request"){this.activate();return false}return true}handleEvent(e){switch(e.type){case"keydown":this._evtKeyDown(e);break;case"mousedown":this._evtMouseDown(e);break;case"mousemove":this._evtMouseMove(e);break;case"mouseup":this._evtMouseUp(e);break;case"dblclick":this._evtMouseDoubleClick(e);break;case"mouseleave":this._evtMouseLeave(e);break;case"contextmenu":this._evtContextMenu(e);break;case"wheel":this._evtWheel(e);break;case"resize":this._refreshDPI();break}}onActivateRequest(e){this.viewport.node.focus({preventScroll:true})}onBeforeAttach(e){window.addEventListener("resize",this);this.node.addEventListener("wheel",this);this._viewport.node.addEventListener("keydown",this);this._viewport.node.addEventListener("mousedown",this);this._viewport.node.addEventListener("mousemove",this);this._viewport.node.addEventListener("dblclick",this);this._viewport.node.addEventListener("mouseleave",this);this._viewport.node.addEventListener("contextmenu",this);this.repaintContent();this.repaintOverlay()}onAfterDetach(e){window.removeEventListener("resize",this);this.node.removeEventListener("wheel",this);this._viewport.node.removeEventListener("keydown",this);this._viewport.node.removeEventListener("mousedown",this);this._viewport.node.removeEventListener("mousemove",this);this._viewport.node.removeEventListener("mouseleave",this);this._viewport.node.removeEventListener("dblclick",this);this._viewport.node.removeEventListener("contextmenu",this);this._releaseMouse()}onBeforeShow(e){this.repaintContent();this.repaintOverlay()}onResize(e){if(this._editorController){this._editorController.cancel()}this._syncScrollState()}repaintContent(){let e=new Z.PaintRequest("all",0,0,0,0);m.MessageLoop.postMessage(this._viewport,e)}repaintRegion(e,t,i,s,o){let r=new Z.PaintRequest(e,t,i,s,o);m.MessageLoop.postMessage(this._viewport,r)}repaintOverlay(){m.MessageLoop.postMessage(this._viewport,Z.OverlayPaintRequest)}_getMaxWidthInColumn(e,t){const i=this.dataModel;if(!i){return null}const s=t=="row-header"?"corner-header":"column-header";return Math.max(this._getMaxWidthInArea(i,e,s,"column-header"),this._getMaxWidthInArea(i,e,t,"body"))}_getMaxWidthInArea(e,t,i,s){const o=e.rowCount(s);const r=Array.from({length:Math.min(o,1e6)},((s,o)=>J._getConfig(e,o,t,i)));if(o>1e5){r.sort((e=>-this._getTextToRender(e).length))}let n=0;for(let l=0;l=e&&r>=t&&o<=i&&r<=s){return}let n=i-512;let l=s-512;this._canvasGC.setTransform(1,0,0,1,0,0);this._bufferGC.setTransform(1,0,0,1,0,0);this._overlayGC.setTransform(1,0,0,1,0,0);if(oi){this._buffer.width=i}if(rs){this._buffer.height=s}let a=o>0&&r>0&&e>0&&t>0;if(a){this._bufferGC.drawImage(this._canvas,0,0)}if(oi){this._canvas.width=i;this._canvas.style.width=`${i/this._dpiRatio}px`}if(rs){this._canvas.height=s;this._canvas.style.height=`${s/this._dpiRatio}px`}if(a){this._canvasGC.drawImage(this._buffer,0,0)}if(a){this._bufferGC.drawImage(this._overlay,0,0)}if(oi){this._overlay.width=i;this._overlay.style.width=`${i/this._dpiRatio}px`}if(rs){this._overlay.height=s;this._overlay.style.height=`${s/this._dpiRatio}px`}if(a){this._overlayGC.drawImage(this._buffer,0,0)}}_syncScrollState(){let e=this.bodyWidth;let t=this.bodyHeight;let i=this.pageWidth;let s=this.pageHeight;let o=!this._vScrollBar.isHidden;let r=!this._hScrollBar.isHidden;let n=this._vScrollBarMinWidth;let l=this._hScrollBarMinHeight;let a=i+(o?n:0);let h=s+(r?l:0);let c=hthis.bodyWidth){let e=this._columnSections.offsetOf(this._columnSections.count-1);let o=Math.min(this.headerWidth+e,s);this.paintContent(o,0,t-o,i)}else if(t>s){this.paintContent(s,0,t-s+1,i)}if(this._stretchLastRow&&this.pageHeight>this.bodyHeight){let e=this._rowSections.offsetOf(this._rowSections.count-1);let s=Math.min(this.headerHeight+e,o);this.paintContent(0,s,t,i-s)}else if(i>o){this.paintContent(0,o,t,i-o+1)}this._paintOverlay()}_onViewportScrollRequest(e){this._scrollTo(this._hScrollBar.value,this._vScrollBar.value)}_onViewportPaintRequest(e){if(!this._viewport.isVisible){return}if(this._viewportWidth===0||this._viewportHeight===0){return}let t=0;let i=0;let s=this._viewportWidth-1;let o=this._viewportHeight-1;let r=this._scrollX;let n=this._scrollY;let l=this.headerWidth;let a=this.headerHeight;let h=this._rowSections;let c=this._columnSections;let d=this._rowHeaderSections;let u=this._columnHeaderSections;let{region:f,r1:_,c1:m,r2:g,c2:p}=e;let w;let y;let x;let v;switch(f){case"all":w=t;y=i;x=s;v=o;break;case"body":_=Math.max(0,Math.min(_,h.count));m=Math.max(0,Math.min(m,c.count));g=Math.max(0,Math.min(g,h.count));p=Math.max(0,Math.min(p,c.count));w=c.offsetOf(m)-r+l;y=h.offsetOf(_)-n+a;x=c.extentOf(p)-r+l;v=h.extentOf(g)-n+a;break;case"row-header":_=Math.max(0,Math.min(_,h.count));m=Math.max(0,Math.min(m,d.count));g=Math.max(0,Math.min(g,h.count));p=Math.max(0,Math.min(p,d.count));w=d.offsetOf(m);y=h.offsetOf(_)-n+a;x=d.extentOf(p);v=h.extentOf(g)-n+a;break;case"column-header":_=Math.max(0,Math.min(_,u.count));m=Math.max(0,Math.min(m,c.count));g=Math.max(0,Math.min(g,u.count));p=Math.max(0,Math.min(p,c.count));w=c.offsetOf(m)-r+l;y=u.offsetOf(_);x=c.extentOf(p)-r+l;v=u.extentOf(g);break;case"corner-header":_=Math.max(0,Math.min(_,u.count));m=Math.max(0,Math.min(m,d.count));g=Math.max(0,Math.min(g,u.count));p=Math.max(0,Math.min(p,d.count));w=d.offsetOf(m);y=u.offsetOf(_);x=d.extentOf(p);v=u.extentOf(g);break;default:throw"unreachable"}if(xs||y>o){return}w=Math.max(t,Math.min(w,s));y=Math.max(i,Math.min(y,o));x=Math.max(t,Math.min(x,s));v=Math.max(i,Math.min(v,o));this.paintContent(w,y,x-w+1,v-y+1)}_onViewportOverlayPaintRequest(e){if(!this._viewport.isVisible){return}if(this._viewportWidth===0||this._viewportHeight===0){return}this._paintOverlay()}_onViewportRowResizeRequest(e){if(e.region==="body"){this._resizeRow(e.index,e.size)}else{this._resizeColumnHeader(e.index,e.size)}}_onViewportColumnResizeRequest(e){if(e.region==="body"){this._resizeColumn(e.index,e.size)}else{this._resizeRowHeader(e.index,e.size)}}_onThumbMoved(e){m.MessageLoop.postMessage(this._viewport,Z.ScrollRequest)}_onPageRequested(e,t){if(e===this._vScrollBar){this.scrollByPage(t==="decrement"?"up":"down")}else{this.scrollByPage(t==="decrement"?"left":"right")}}_onStepRequested(e,t){if(e===this._vScrollBar){this.scrollByStep(t==="decrement"?"up":"down")}else{this.scrollByStep(t==="decrement"?"left":"right")}}_onDataModelChanged(e,t){switch(t.type){case"rows-inserted":this._onRowsInserted(t);break;case"columns-inserted":this._onColumnsInserted(t);break;case"rows-removed":this._onRowsRemoved(t);break;case"columns-removed":this._onColumnsRemoved(t);break;case"rows-moved":this._onRowsMoved(t);break;case"columns-moved":this._onColumnsMoved(t);break;case"cells-changed":this._onCellsChanged(t);break;case"model-reset":this._onModelReset(t);break;default:throw"unreachable"}}_onSelectionsChanged(e){this.repaintOverlay()}_onRowsInserted(e){let{region:t,index:i,span:s}=e;if(s<=0){return}let o;if(t==="body"){o=this._rowSections}else{o=this._columnHeaderSections}if(this._scrollY===this.maxScrollY&&this.maxScrollY>0){o.insert(i,s);this._scrollY=this.maxScrollY}else{o.insert(i,s)}this._syncViewport()}_onColumnsInserted(e){let{region:t,index:i,span:s}=e;if(s<=0){return}let o;if(t==="body"){o=this._columnSections}else{o=this._rowHeaderSections}if(this._scrollX===this.maxScrollX&&this.maxScrollX>0){o.insert(i,s);this._scrollX=this.maxScrollX}else{o.insert(i,s)}this._syncViewport()}_onRowsRemoved(e){let{region:t,index:i,span:s}=e;if(s<=0){return}let o;if(t==="body"){o=this._rowSections}else{o=this._columnHeaderSections}if(i<0||i>=o.count){return}if(this._scrollY===this.maxScrollY&&this.maxScrollY>0){o.remove(i,s);this._scrollY=this.maxScrollY}else{o.remove(i,s)}this._syncViewport()}_onColumnsRemoved(e){let{region:t,index:i,span:s}=e;if(s<=0){return}let o;if(t==="body"){o=this._columnSections}else{o=this._rowHeaderSections}if(i<0||i>=o.count){return}if(this._scrollX===this.maxScrollX&&this.maxScrollX>0){o.remove(i,s);this._scrollX=this.maxScrollX}else{o.remove(i,s)}this._syncViewport()}_onRowsMoved(e){let{region:t,index:i,span:s,destination:o}=e;if(s<=0){return}let r;if(t==="body"){r=this._rowSections}else{r=this._columnHeaderSections}if(i<0||i>=r.count){return}s=Math.min(s,r.count-i);o=Math.min(Math.max(0,o),r.count-s);if(i===o){return}let n=Math.min(i,o);let l=Math.max(i+s-1,o+s-1);r.move(i,s,o);if(t==="body"){this.repaintRegion("body",n,0,l,Infinity);this.repaintRegion("row-header",n,0,l,Infinity)}else{this.repaintRegion("column-header",n,0,l,Infinity);this.repaintRegion("corner-header",n,0,l,Infinity)}this._syncViewport()}_onColumnsMoved(e){let{region:t,index:i,span:s,destination:o}=e;if(s<=0){return}let r;if(t==="body"){r=this._columnSections}else{r=this._rowHeaderSections}if(i<0||i>=r.count){return}s=Math.min(s,r.count-i);o=Math.min(Math.max(0,o),r.count-s);if(i===o){return}r.move(i,s,o);let n=Math.min(i,o);let l=Math.max(i+s-1,o+s-1);if(t==="body"){this.repaintRegion("body",0,n,Infinity,l);this.repaintRegion("column-header",0,n,Infinity,l)}else{this.repaintRegion("row-header",0,n,Infinity,l);this.repaintRegion("corner-header",0,n,Infinity,l)}this._syncViewport()}_onCellsChanged(e){let{region:t,row:i,column:s,rowSpan:o,columnSpan:r}=e;if(o<=0&&r<=0){return}let n=i;let l=s;let a=n+o-1;let h=l+r-1;this.repaintRegion(t,n,l,a,h)}_onModelReset(e){let t=this._rowSections.count;let i=this._columnSections.count;let s=this._rowHeaderSections.count;let o=this._columnHeaderSections.count;let r=this._dataModel.rowCount("body")-t;let n=this._dataModel.columnCount("body")-i;let l=this._dataModel.columnCount("row-header")-s;let a=this._dataModel.rowCount("column-header")-o;if(r>0){this._rowSections.insert(t,r)}else if(r<0){this._rowSections.remove(t+r,-r)}if(n>0){this._columnSections.insert(i,n)}else if(n<0){this._columnSections.remove(i+n,-n)}if(l>0){this._rowHeaderSections.insert(s,l)}else if(l<0){this._rowHeaderSections.remove(s+l,-l)}if(a>0){this._columnHeaderSections.insert(o,a)}else if(a<0){this._columnHeaderSections.remove(o+a,-a)}this._syncViewport()}_onRenderersChanged(){this.repaintContent()}_evtKeyDown(e){if(this._mousedown){e.preventDefault();e.stopPropagation()}else if(this._keyHandler){this._keyHandler.onKeyDown(this,e)}}_evtMouseDown(e){if(e.button!==0){return}this.activate();e.preventDefault();e.stopPropagation();document.addEventListener("keydown",this,true);document.addEventListener("mouseup",this,true);document.addEventListener("mousedown",this,true);document.addEventListener("mousemove",this,true);document.addEventListener("contextmenu",this,true);this._mousedown=true;if(this._mouseHandler){this._mouseHandler.onMouseDown(this,e)}}_evtMouseMove(e){if(this._mousedown){e.preventDefault();e.stopPropagation()}if(!this._mouseHandler){return}if(this._mousedown){this._mouseHandler.onMouseMove(this,e)}else{this._mouseHandler.onMouseHover(this,e)}}_evtMouseUp(e){if(e.button!==0){return}e.preventDefault();e.stopPropagation();if(this._mouseHandler){this._mouseHandler.onMouseUp(this,e)}this._releaseMouse()}_evtMouseDoubleClick(e){if(e.button!==0){return}e.preventDefault();e.stopPropagation();if(this._mouseHandler){this._mouseHandler.onMouseDoubleClick(this,e)}this._releaseMouse()}_evtMouseLeave(e){if(this._mousedown){e.preventDefault();e.stopPropagation()}else if(this._mouseHandler){this._mouseHandler.onMouseLeave(this,e)}}_evtContextMenu(e){if(this._mousedown){e.preventDefault();e.stopPropagation()}else if(this._mouseHandler){this._mouseHandler.onContextMenu(this,e)}}_evtWheel(e){if(s.Platform.accelKey(e)){return}if(!this._mouseHandler){return}this._mouseHandler.onWheel(this,e)}_releaseMouse(){this._mousedown=false;if(this._mouseHandler){this._mouseHandler.release()}document.removeEventListener("keydown",this,true);document.removeEventListener("mouseup",this,true);document.removeEventListener("mousedown",this,true);document.removeEventListener("mousemove",this,true);document.removeEventListener("contextmenu",this,true)}_refreshDPI(){let e=Math.ceil(window.devicePixelRatio);if(this._dpiRatio===e){return}this._dpiRatio=e;this.repaintContent();this.repaintOverlay();this._resizeCanvasIfNeeded(this._viewportWidth,this._viewportHeight);this._canvas.style.width=`${this._canvas.width/this._dpiRatio}px`;this._canvas.style.height=`${this._canvas.height/this._dpiRatio}px`;this._overlay.style.width=`${this._overlay.width/this._dpiRatio}px`;this._overlay.style.height=`${this._overlay.height/this._dpiRatio}px`}_resizeRow(e,t){let i=this._rowSections;if(e<0||e>=i.count){return}let s=i.sizeOf(e);let o=i.clampSize(t);if(s===o){return}i.resize(e,o);let r=this._viewportWidth;let n=this._viewportHeight;if(!this._viewport.isVisible||r===0||n===0){this._syncScrollState();return}let l=o-s;let a=this.headerHeight;let h=i.offsetOf(e)+a-this._scrollY;if(a>=n||h>=n){this._syncScrollState();return}if(h+s<=a){this._scrollY+=l;this._syncScrollState();return}let c=Math.max(a,h);if(h+s>=n||h+o>=n){this.paintContent(0,c,r,n-c);this._paintOverlay();this._syncScrollState();return}let d=0;let u=r;let f=0;let _;let m;let g;if(h+o<=a){_=a-l;m=n-_;g=a}else{_=h+s;m=n-_;g=_+l}this._blitContent(this._canvas,d,_,u,m,f,g);if(o>0&&h+o>a){this.paintContent(0,c,r,h+o-c)}if(this._stretchLastRow&&this.pageHeight>this.bodyHeight){let e=this._rowSections.count-1;let t=a+this._rowSections.offsetOf(e);this.paintContent(0,t,r,n-t)}else if(l<0){this.paintContent(0,n+l,r,-l)}for(const p of["body","row-header"]){const t=C.getCellGroupsAtRow(this.dataModel,p,e);let i={region:p,xMin:0,xMax:0,yMin:0,yMax:0};let s=undefined;switch(p){case"body":i.xMin=this.headerWidth;i.xMax=this.headerWidth+this.bodyWidth;i.yMin=this.headerHeight;i.yMax=this.headerHeight+this.bodyHeight;s=this._style.backgroundColor;break;case"row-header":i.xMin=0;i.xMax=this.headerWidth;i.yMin=this.headerHeight;i.yMax=this.headerHeight+this.bodyHeight;s=this._style.headerBackgroundColor;break}this._paintMergedCells(t,i,s)}this._paintOverlay();this._syncScrollState()}_resizeColumn(e,t){let i=this._columnSections;if(e<0||e>=i.count){return}const s=t!==null&&t!==void 0?t:this._getMaxWidthInColumn(e,"body");if(!s||s==0){return}let o=i.sizeOf(e);let r=i.clampSize(s);if(o===r){return}i.resize(e,r);let n=this._viewportWidth;let l=this._viewportHeight;if(!this._viewport.isVisible||n===0||l===0){this._syncScrollState();return}let a=r-o;let h=this.headerWidth;let c=i.offsetOf(e)+h-this._scrollX;if(h>=n||c>=n){this._syncScrollState();return}if(c+o<=h){this._scrollX+=a;this._syncScrollState();return}let d=Math.max(h,c);if(c+o>=n||c+r>=n){this.paintContent(d,0,n-d,l);this._paintOverlay();this._syncScrollState();return}let u=0;let f=l;let _=0;let m;let g;let p;if(c+r<=h){m=h-a;g=n-m;p=h}else{m=c+o;g=n-m;p=m+a}this._blitContent(this._canvas,m,u,g,f,p,_);if(r>0&&c+r>h){this.paintContent(d,0,c+r-d,l)}if(this._stretchLastColumn&&this.pageWidth>this.bodyWidth){let e=this._columnSections.count-1;let t=h+this._columnSections.offsetOf(e);this.paintContent(t,0,n-t,l)}else if(a<0){this.paintContent(n+a,0,-a,l)}for(const w of["body","column-header"]){const t=C.getCellGroupsAtColumn(this.dataModel,w,e);let i={region:w,xMin:0,xMax:0,yMin:0,yMax:0};let s=undefined;switch(w){case"body":i.xMin=this.headerWidth;i.xMax=this.headerWidth+this.bodyWidth;i.yMin=this.headerHeight;i.yMax=this.headerHeight+this.bodyHeight;s=this._style.backgroundColor;break;case"column-header":i.xMin=this.headerWidth;i.xMax=this.headerWidth+this.bodyWidth;i.yMin=0;i.yMax=this.headerHeight;s=this._style.headerBackgroundColor;break}this._paintMergedCells(t,i,s)}this._paintOverlay();this._syncScrollState()}_resizeRowHeader(e,t){let i=this._rowHeaderSections;if(e<0||e>=i.count){return}const s=t!==null&&t!==void 0?t:this._getMaxWidthInColumn(e,"row-header");if(!s||s==0){return}let o=i.sizeOf(e);let r=i.clampSize(s);if(o===r){return}i.resize(e,r);let n=this._viewportWidth;let l=this._viewportHeight;if(!this._viewport.isVisible||n===0||l===0){this._syncScrollState();return}let a=r-o;let h=i.offsetOf(e);if(h>=n){this._syncScrollState();return}if(h+o>=n||h+r>=n){this.paintContent(h,0,n-h,l);this._paintOverlay();this._syncScrollState();return}let c=h+o;let d=0;let u=n-c;let f=l;let _=c+a;let m=0;this._blitContent(this._canvas,c,d,u,f,_,m);if(r>0){this.paintContent(h,0,r,l)}if(this._stretchLastColumn&&this.pageWidth>this.bodyWidth){let e=this._columnSections.count-1;let t=this.headerWidth+this._columnSections.offsetOf(e);this.paintContent(t,0,n-t,l)}else if(a<0){this.paintContent(n+a,0,-a,l)}for(const g of["corner-header","row-header"]){const t=C.getCellGroupsAtColumn(this.dataModel,g,e);let i={region:g,xMin:0,xMax:0,yMin:0,yMax:0};switch(g){case"corner-header":i.xMin=0;i.xMax=this.headerWidth;i.yMin=0;i.yMax=this.headerHeight;break;case"row-header":i.xMin=0;i.xMax=this.headerWidth;i.yMin=this.headerHeight;i.yMax=this.headerHeight+this.bodyHeight;break}this._paintMergedCells(t,i,this._style.headerBackgroundColor)}this._paintOverlay();this._syncScrollState()}_resizeColumnHeader(e,t){let i=this._columnHeaderSections;if(e<0||e>=i.count){return}let s=i.sizeOf(e);let o=i.clampSize(t);if(s===o){return}i.resize(e,o);let r=this._viewportWidth;let n=this._viewportHeight;if(!this._viewport.isVisible||r===0||n===0){this._syncScrollState();return}this._paintOverlay();let l=o-s;let a=i.offsetOf(e);if(a>=n){this._syncScrollState();return}if(a+s>=n||a+o>=n){this.paintContent(0,a,r,n-a);this._paintOverlay();this._syncScrollState();return}let h=0;let c=a+s;let d=r;let u=n-c;let f=0;let _=c+l;this._blitContent(this._canvas,h,c,d,u,f,_);if(o>0){this.paintContent(0,a,r,o)}if(this._stretchLastRow&&this.pageHeight>this.bodyHeight){let e=this._rowSections.count-1;let t=this.headerHeight+this._rowSections.offsetOf(e);this.paintContent(0,t,r,n-t)}else if(l<0){this.paintContent(0,n+l,r,-l)}for(const m of["corner-header","column-header"]){const t=C.getCellGroupsAtRow(this.dataModel,m,e);let i={region:m,xMin:0,xMax:0,yMin:0,yMax:0};switch(m){case"corner-header":i.xMin=0;i.xMax=this.headerWidth;i.yMin=0;i.yMax=this.headerHeight;break;case"column-header":i.xMin=this.headerWidth;i.xMax=this.headerWidth+this.bodyWidth;i.yMin=0;i.yMax=this.headerHeight;break}this._paintMergedCells(t,i,this._style.headerBackgroundColor)}this._paintOverlay();this._syncScrollState()}_scrollTo(e,t){if(!this.dataModel){return}e=Math.max(0,Math.min(Math.floor(e),this.maxScrollX));t=Math.max(0,Math.min(Math.floor(t),this.maxScrollY));this._hScrollBar.value=e;this._vScrollBar.value=t;let i=e-this._scrollX;let s=t-this._scrollY;if(i===0&&s===0){return}if(!this._viewport.isVisible){this._scrollX=e;this._scrollY=t;return}let o=this._viewportWidth;let r=this._viewportHeight;if(o===0||r===0){this._scrollX=e;this._scrollY=t;return}let n=this.headerWidth;let l=this.headerHeight;let a=o-n;let h=r-l;if(a<=0&&h<=0){this._scrollX=e;this._scrollY=t;return}let c=0;if(i!==0&&a>0){if(Math.abs(i)>=a){c=a*r}else{c=Math.abs(i)*r}}let d=0;if(s!==0&&h>0){if(Math.abs(s)>=h){d=o*h}else{d=o*Math.abs(s)}}if(c+d>=o*r){this._scrollX=e;this._scrollY=t;this.paintContent(0,0,o,r);this._paintOverlay();return}this._scrollY=t;if(s!==0&&h>0){if(Math.abs(s)>=h){this.paintContent(0,l,o,h)}else{const e=0;const t=s<0?l:l+s;const i=o;const n=h-Math.abs(s);this._blitContent(this._canvas,e,t,i,n,e,t-s);this.paintContent(0,s<0?l:r-s,o,Math.abs(s));for(const s of["body","row-header"]){const e=C.getCellGroupsAtRegion(this.dataModel,s);let t={region:s,xMin:0,xMax:0,yMin:0,yMax:0};let i=undefined;switch(s){case"body":t.xMin=this.headerWidth;t.xMax=this.headerWidth+this.bodyWidth;t.yMin=this.headerHeight;t.yMax=this.headerHeight+this.bodyHeight;i=this._style.backgroundColor;break;case"row-header":t.xMin=0;t.xMax=this.headerWidth;t.yMin=this.headerHeight;t.yMax=this.headerHeight+this.bodyHeight;i=this._style.headerBackgroundColor;break}this._paintMergedCells(e,t,i)}}}this._scrollX=e;if(i!==0&&a>0){if(Math.abs(i)>=a){this.paintContent(n,0,a,r)}else{const e=i<0?n:n+i;const t=0;const s=a-Math.abs(i);const l=r;this._blitContent(this._canvas,e,t,s,l,e-i,t);this.paintContent(i<0?n:o-i,0,Math.abs(i),r);for(const i of["body","column-header"]){const e=C.getCellGroupsAtRegion(this.dataModel,i);let t={region:i,xMin:0,xMax:0,yMin:0,yMax:0};let s=undefined;switch(i){case"body":t.xMin=this.headerWidth;t.xMax=this.headerWidth+this.bodyWidth;t.yMin=this.headerHeight;t.yMax=this.headerHeight+this.bodyHeight;s=this._style.backgroundColor;break;case"column-header":t.xMin=this.headerWidth;t.xMax=this.headerWidth+this.bodyWidth;t.yMin=0;t.yMax=this.headerHeight;s=this._style.headerBackgroundColor;break}this._paintMergedCells(e,t,s)}}}this._paintOverlay()}_blitContent(e,t,i,s,o,r,n){t*=this._dpiRatio;i*=this._dpiRatio;s*=this._dpiRatio;o*=this._dpiRatio;r*=this._dpiRatio;n*=this._dpiRatio;this._canvasGC.save();this._canvasGC.setTransform(1,0,0,1,0,0);this._canvasGC.drawImage(e,t,i,s,o,r,n,s,o);this._canvasGC.restore()}paintContent(e,t,i,s){this._canvasGC.setTransform(this._dpiRatio,0,0,this._dpiRatio,0,0);this._bufferGC.setTransform(this._dpiRatio,0,0,this._dpiRatio,0,0);this._canvasGC.clearRect(e,t,i,s);this._drawVoidRegion(e,t,i,s);this._drawBodyRegion(e,t,i,s);this._drawRowHeaderRegion(e,t,i,s);this._drawColumnHeaderRegion(e,t,i,s);this.drawCornerHeaderRegion(e,t,i,s)}_fitBodyColumnHeaders(e,t,i){const s=i===undefined?e.columnCount("body"):i;for(let o=0;o=n+o){return}if(t>=l+r){return}let a=this.bodyHeight;let h=this.bodyWidth;let c=this.pageHeight;let d=this.pageWidth;let u=Math.max(e,n);let f=Math.max(t,l);let _=Math.min(e+i-1,n+o-1);let m=Math.min(t+s-1,l+r-1);let g=this._rowSections.indexOf(f-l+this._scrollY);let p=this._columnSections.indexOf(u-n+this._scrollX);let w=this._rowSections.indexOf(m-l+this._scrollY);let y=this._columnSections.indexOf(_-n+this._scrollX);let x=this._rowSections.count-1;let v=this._columnSections.count-1;if(w<0){w=x}if(y<0){y=v}let M=this._columnSections.offsetOf(p)+n-this._scrollX;let S=this._rowSections.offsetOf(g)+l-this._scrollY;let b=0;let H=0;let R=new Array(w-g+1);let z=new Array(y-p+1);for(let C=g;C<=w;++C){let e=this._rowSections.sizeOf(C);R[C-g]=e;H+=e}for(let C=p;C<=y;++C){let e=this._columnSections.sizeOf(C);z[C-p]=e;b+=e}if(this._stretchLastRow&&c>a&&w===x){let e=this.pageHeight-this.bodyHeight;R[R.length-1]+=e;H+=e;m+=e}if(this._stretchLastColumn&&d>h&&y===v){let e=this.pageWidth-this.bodyWidth;z[z.length-1]+=e;b+=e;_+=e}let O={region:"body",xMin:u,yMin:f,xMax:_,yMax:m,x:M,y:S,width:b,height:H,row:g,column:p,rowSizes:R,columnSizes:z};this._drawBackground(O,this._style.backgroundColor);this._drawRowBackground(O,this._style.rowBackgroundColor);this._drawColumnBackground(O,this._style.columnBackgroundColor);this._drawCells(O);this._drawHorizontalGridLines(O,this._style.horizontalGridLineColor||this._style.gridLineColor);this._drawVerticalGridLines(O,this._style.verticalGridLineColor||this._style.gridLineColor);const k=C.getCellGroupsAtRegion(this.dataModel,O.region).filter((e=>this.cellGroupInteresectsRegion(e,O)));this._paintMergedCells(k,O,this._style.backgroundColor)}_drawRowHeaderRegion(e,t,i,s){let o=this.headerWidth;let r=this.bodyHeight-this._scrollY;if(o<=0||r<=0){return}let n=0;let l=this.headerHeight;if(e+i<=n){return}if(t+s<=l){return}if(e>=n+o){return}if(t>=l+r){return}let a=this.bodyHeight;let h=this.pageHeight;let c=e;let d=Math.max(t,l);let u=Math.min(e+i-1,n+o-1);let f=Math.min(t+s-1,l+r-1);let _=this._rowSections.indexOf(d-l+this._scrollY);let m=this._rowHeaderSections.indexOf(c);let g=this._rowSections.indexOf(f-l+this._scrollY);let p=this._rowHeaderSections.indexOf(u);let w=this._rowSections.count-1;let y=this._rowHeaderSections.count-1;if(g<0){g=w}if(p<0){p=y}let x=this._rowHeaderSections.offsetOf(m);let v=this._rowSections.offsetOf(_)+l-this._scrollY;let M=0;let S=0;let b=new Array(g-_+1);let H=new Array(p-m+1);for(let C=_;C<=g;++C){let e=this._rowSections.sizeOf(C);b[C-_]=e;S+=e}for(let C=m;C<=p;++C){let e=this._rowHeaderSections.sizeOf(C);H[C-m]=e;M+=e}if(this._stretchLastRow&&h>a&&g===w){let e=this.pageHeight-this.bodyHeight;b[b.length-1]+=e;S+=e;f+=e}let R={region:"row-header",xMin:c,yMin:d,xMax:u,yMax:f,x,y:v,width:M,height:S,row:_,column:m,rowSizes:b,columnSizes:H};this._drawBackground(R,this._style.headerBackgroundColor);this._drawCells(R);this._drawHorizontalGridLines(R,this._style.headerHorizontalGridLineColor||this._style.headerGridLineColor);this._drawVerticalGridLines(R,this._style.headerVerticalGridLineColor||this._style.headerGridLineColor);const z=C.getCellGroupsAtRegion(this.dataModel,R.region).filter((e=>this.cellGroupInteresectsRegion(e,R)));this._paintMergedCells(z,R,this._style.headerBackgroundColor)}_drawColumnHeaderRegion(e,t,i,s){let o=this.bodyWidth-this._scrollX;let r=this.headerHeight;if(o<=0||r<=0){return}let n=this.headerWidth;let l=0;if(e+i<=n){return}if(t+s<=l){return}if(e>=n+o){return}if(t>=l+r){return}let a=this.bodyWidth;let h=this.pageWidth;let c=Math.max(e,n);let d=t;let u=Math.min(e+i-1,n+o-1);let f=Math.min(t+s-1,l+r-1);let _=this._columnHeaderSections.indexOf(d);let m=this._columnSections.indexOf(c-n+this._scrollX);let g=this._columnHeaderSections.indexOf(f);let p=this._columnSections.indexOf(u-n+this._scrollX);let w=this._columnHeaderSections.count-1;let y=this._columnSections.count-1;if(g<0){g=w}if(p<0){p=y}let x=this._columnSections.offsetOf(m)+n-this._scrollX;let v=this._columnHeaderSections.offsetOf(_);let M=0;let S=0;let b=new Array(g-_+1);let H=new Array(p-m+1);for(let C=_;C<=g;++C){let e=this._columnHeaderSections.sizeOf(C);b[C-_]=e;S+=e}for(let C=m;C<=p;++C){let e=this._columnSections.sizeOf(C);H[C-m]=e;M+=e}if(this._stretchLastColumn&&h>a&&p===y){let e=this.pageWidth-this.bodyWidth;H[H.length-1]+=e;M+=e;u+=e}let R={region:"column-header",xMin:c,yMin:d,xMax:u,yMax:f,x,y:v,width:M,height:S,row:_,column:m,rowSizes:b,columnSizes:H};this._drawBackground(R,this._style.headerBackgroundColor);this._drawCells(R);this._drawHorizontalGridLines(R,this._style.headerHorizontalGridLineColor||this._style.headerGridLineColor);this._drawVerticalGridLines(R,this._style.headerVerticalGridLineColor||this._style.headerGridLineColor);const z=C.getCellGroupsAtRegion(this.dataModel,R.region).filter((e=>this.cellGroupInteresectsRegion(e,R)));this._paintMergedCells(z,R,this._style.headerBackgroundColor)}drawCornerHeaderRegion(e,t,i,s){let o=this.headerWidth;let r=this.headerHeight;if(o<=0||r<=0){return}let n=0;let l=0;if(e+i<=n){return}if(t+s<=l){return}if(e>=n+o){return}if(t>=l+r){return}let a=e;let h=t;let c=Math.min(e+i-1,n+o-1);let d=Math.min(t+s-1,l+r-1);let u=this._columnHeaderSections.indexOf(h);let f=this._rowHeaderSections.indexOf(a);let _=this._columnHeaderSections.indexOf(d);let m=this._rowHeaderSections.indexOf(c);if(_<0){_=this._columnHeaderSections.count-1}if(m<0){m=this._rowHeaderSections.count-1}let g=this._rowHeaderSections.offsetOf(f);let p=this._columnHeaderSections.offsetOf(u);let w=0;let y=0;let x=new Array(_-u+1);let v=new Array(m-f+1);for(let C=u;C<=_;++C){let e=this._columnHeaderSections.sizeOf(C);x[C-u]=e;y+=e}for(let C=f;C<=m;++C){let e=this._rowHeaderSections.sizeOf(C);v[C-f]=e;w+=e}let M={region:"corner-header",xMin:a,yMin:h,xMax:c,yMax:d,x:g,y:p,width:w,height:y,row:u,column:f,rowSizes:x,columnSizes:v};this._drawBackground(M,this._style.headerBackgroundColor);this._drawCells(M);this._drawHorizontalGridLines(M,this._style.headerHorizontalGridLineColor||this._style.headerGridLineColor);this._drawVerticalGridLines(M,this._style.headerVerticalGridLineColor||this._style.headerGridLineColor);const S=C.getCellGroupsAtRegion(this.dataModel,M.region).filter((e=>this.cellGroupInteresectsRegion(e,M)));this._paintMergedCells(S,M,this._style.headerBackgroundColor)}_drawBackground(e,t){if(!t){return}let{xMin:i,yMin:s,xMax:o,yMax:r}=e;this._canvasGC.fillStyle=t;this._canvasGC.fillRect(i,s,o-i+1,r-s+1)}_drawRowBackground(e,t){if(!t){return}let i=Math.max(e.xMin,e.x);let s=Math.min(e.x+e.width-1,e.xMax);for(let o=e.y,r=0,n=e.rowSizes.length;r=0&&l>=0}static _getCellValue(e,t,i,s){try{return e.data(t,i,s)}catch(o){console.error(o);return null}}static _getCellMetadata(e,t,i,s){try{return e.metadata(t,i,s)}catch(o){console.error(o);return Y.emptyMetadata}}_paintMergedCells(e,t,i){if(!this._dataModel){return}let s={x:0,y:0,width:0,height:0,region:t.region,row:0,column:0,value:null,metadata:Y.emptyMetadata};if(i){this._canvasGC.fillStyle=i}this._canvasGC.lineWidth=1;this._bufferGC.save();let o=new F(this._bufferGC);for(const n of e){let e=0;for(let i=n.c1;i<=n.c2;i++){e+=this._getColumnSize(t.region,i)}let l=0;for(let i=n.r1;i<=n.r2;i++){l+=this._getRowSize(t.region,i)}let a=J._getCellValue(this.dataModel,t.region,n.r1,n.c1);let h=J._getCellMetadata(this.dataModel,t.region,n.r1,n.c2);let c=0;let d=0;switch(t.region){case"body":c=this._columnSections.offsetOf(n.c1)+this.headerWidth-this._scrollX;d=this._rowSections.offsetOf(n.r1)+this.headerHeight-this._scrollY;break;case"column-header":c=this._columnSections.offsetOf(n.c1)+this.headerWidth-this._scrollX;d=this._rowSections.offsetOf(n.r1);break;case"row-header":c=this._columnSections.offsetOf(n.c1);d=this._rowSections.offsetOf(n.r1)+this.headerHeight-this._scrollY;break;case"corner-header":c=this._columnSections.offsetOf(n.c1);d=this._rowSections.offsetOf(n.r1);break}s.x=c;s.y=d;s.width=e;s.height=l;s.region=t.region;s.row=n.r1;s.column=n.c1;s.value=a;s.metadata=h;const u=Math.max(t.xMin,c);const f=Math.min(c+e-2,t.xMax);const _=Math.max(t.yMin,d);const m=Math.min(d+l-2,t.yMax);if(f<=u||m<=_){continue}if(i){this._canvasGC.fillRect(u,_,f-u+1,m-_+1)}let g=this._cellRenderers.get(s);o.clearRect(s.x,s.y,e,l);o.save();try{g.paint(o,s)}catch(r){console.error(r)}o.restore();this._blitContent(this._buffer,u,_,f-u+1,m-_+1,u,_)}o.dispose();this._bufferGC.restore()}_drawHorizontalGridLines(e,t){if(!t){return}const i=Math.max(e.xMin,e.x);const s=Math.min(e.x+e.width,e.xMax+1);this._canvasGC.beginPath();this._canvasGC.lineWidth=1;const o=this.bodyHeight;const r=this.pageHeight;let n=e.rowSizes.length;if(this._stretchLastRow&&r>o){if(e.row+n===this._rowSections.count){n-=1}}for(let l=e.y,a=0;a=e.yMin&&o<=e.yMax){this._canvasGC.moveTo(i,o+.5);this._canvasGC.lineTo(s,o+.5)}l+=t}this._canvasGC.strokeStyle=t;this._canvasGC.stroke()}_drawVerticalGridLines(e,t){if(!t){return}const i=Math.max(e.yMin,e.y);const s=Math.min(e.y+e.height,e.yMax+1);this._canvasGC.beginPath();this._canvasGC.lineWidth=1;const o=this.bodyWidth;const r=this.pageWidth;let n=e.columnSizes.length;if(this._stretchLastColumn&&r>o){if(e.column+n===this._columnSections.count){n-=1}}for(let l=e.x,a=0;a=e.xMin&&o<=e.xMax){this._canvasGC.moveTo(o+.5,i);this._canvasGC.lineTo(o+.5,s)}l+=t}this._canvasGC.strokeStyle=t;this._canvasGC.stroke()}_drawBodySelections(){let e=this._selectionModel;if(!e||e.isEmpty){return}let t=this._style.selectionFillColor;let i=this._style.selectionBorderColor;if(!t&&!i){return}let s=this._scrollX;let o=this._scrollY;let r=this._rowSections.indexOf(o);let n=this._columnSections.indexOf(s);if(r<0||n<0){return}let l=this.bodyWidth;let a=this.bodyHeight;let h=this.pageWidth;let c=this.pageHeight;let d=this.headerWidth;let u=this.headerHeight;let f=this._rowSections.indexOf(o+c);let _=this._columnSections.indexOf(s+h);let m=this._rowSections.count-1;let g=this._columnSections.count-1;f=f<0?m:f;_=_<0?g:_;let p=this._overlayGC;p.save();p.beginPath();p.rect(d,u,h,c);p.clip();if(t){p.fillStyle=t}if(i){p.strokeStyle=i;p.lineWidth=1}for(let w of e.selections()){if(w.r1f&&w.r2>f){continue}if(w.c1_&&w.c2>_){continue}let e=Math.max(0,Math.min(w.r1,m));let y=Math.max(0,Math.min(w.c1,g));let x=Math.max(0,Math.min(w.r2,m));let v=Math.max(0,Math.min(w.c2,g));let M;if(e>x){M=e;e=x;x=M}if(y>v){M=y;y=v;v=M}const S=C.joinCellGroupWithMergedCellGroups(this.dataModel,{r1:e,r2:x,c1:y,c2:v},"body");e=S.r1;x=S.r2;y=S.c1;v=S.c2;let b=this._columnSections.offsetOf(y)-s+d;let H=this._rowSections.offsetOf(e)-o+u;let R=this._columnSections.extentOf(v)-s+d;let z=this._rowSections.extentOf(x)-o+u;if(this._stretchLastColumn&&h>l&&v===g){R=d+h-1}if(this._stretchLastRow&&c>a&&x===m){z=u+c-1}b=Math.max(d-1,b);H=Math.max(u-1,H);R=Math.min(d+h+1,R);z=Math.min(u+c+1,z);if(Ro&&f===c){u=l+r-d}if(u===0){continue}if(t){h.fillRect(0,d,n,u)}if(i){h.beginPath();h.moveTo(n-.5,d-1);h.lineTo(n-.5,d+u);h.stroke()}}h.restore()}_drawColumnHeaderSelections(){let e=this._selectionModel;if(!e||e.isEmpty||e.selectionMode=="row"){return}if(this.headerHeight===0||this.pageWidth===0){return}let t=this._style.headerSelectionFillColor;let i=this._style.headerSelectionBorderColor;if(!t&&!i){return}let s=this._scrollX;let o=this.bodyWidth;let r=this.pageWidth;let n=this.headerWidth;let l=this.headerHeight;let a=this._columnSections;let h=this._overlayGC;h.save();h.beginPath();h.rect(n,0,r,l);h.clip();if(t){h.fillStyle=t}if(i){h.strokeStyle=i;h.lineWidth=1}let c=a.count-1;let d=a.indexOf(s);let u=a.indexOf(s+r-1);u=u<0?c:u;for(let f=d;f<=u;++f){if(!e.isColumnSelected(f)){continue}let d=a.offsetOf(f)-s+n;let u=a.sizeOf(f);if(this._stretchLastColumn&&r>o&&f===c){u=n+r-d}if(u===0){continue}if(t){h.fillRect(d,0,u,l)}if(i){h.beginPath();h.moveTo(d-1,l-.5);h.lineTo(d+u,l-.5);h.stroke()}}h.restore()}_drawCursor(){let e=this._selectionModel;if(!e||e.isEmpty||e.selectionMode!=="cell"){return}let t=this._style.cursorFillColor;let i=this._style.cursorBorderColor;if(!t&&!i){return}let s=e.cursorRow;let o=e.cursorColumn;let r=this._rowSections.count-1;let n=this._columnSections.count-1;if(s<0||s>r){return}if(o<0||o>n){return}let l=s;let a=o;const h=C.joinCellGroupWithMergedCellGroups(this.dataModel,{r1:s,r2:l,c1:o,c2:a},"body");s=h.r1;l=h.r2;o=h.c1;a=h.c2;let c=this._scrollX;let d=this._scrollY;let u=this.bodyWidth;let f=this.bodyHeight;let _=this.pageWidth;let m=this.pageHeight;let g=this.headerWidth;let p=this.headerHeight;let w=this._viewportWidth;let y=this._viewportHeight;let x=this._columnSections.offsetOf(o)-c+g;let v=this._columnSections.extentOf(a)-c+g;let M=this._rowSections.offsetOf(s)-d+p;let S=this._rowSections.extentOf(l)-d+p;if(this._stretchLastColumn&&_>u&&o===n){v=w-1}if(this._stretchLastRow&&m>f&&s===r){S=y-1}if(v=w||M-1>=y||v+1u){u=a}if(this._stretchLastColumn&&l>d){d=l}let f=this._overlayGC;f.save();if(i>0){let i=0;let s=n;let o=0;let a=s+e.size;let h=f.createLinearGradient(i,s,o,a);h.addColorStop(0,e.color1);h.addColorStop(.5,e.color2);h.addColorStop(1,e.color3);let c=0;let u=n;let _=r+Math.min(l,d-t);let m=e.size;f.fillStyle=h;f.fillRect(c,u,_,m)}if(t>0){let t=r;let s=0;let o=t+e.size;let l=0;let h=f.createLinearGradient(t,s,o,l);h.addColorStop(0,e.color1);h.addColorStop(.5,e.color2);h.addColorStop(1,e.color3);let c=r;let d=0;let _=e.size;let m=n+Math.min(a,u-i);f.fillStyle=h;f.fillRect(c,d,_,m)}if(i0}e.regionHasMergedCells=i;class s extends m.ConflatableMessage{constructor(e,t,i,s,o){super("paint-request");this._region=e;this._r1=t;this._c1=i;this._r2=s;this._c2=o}get region(){return this._region}get r1(){return this._r1}get c1(){return this._c1}get r2(){return this._r2}get c2(){return this._c2}conflate(e){if(this._region==="all"){return true}if(e._region==="all"){this._region="all";return true}if(this._region!==e._region){return false}this._r1=Math.min(this._r1,e._r1);this._c1=Math.min(this._c1,e._c1);this._r2=Math.max(this._r2,e._r2);this._c2=Math.max(this._c2,e._c2);return true}}e.PaintRequest=s;class o extends m.ConflatableMessage{constructor(e,t,i){super("row-resize-request");this._region=e;this._index=t;this._size=i}get region(){return this._region}get index(){return this._index}get size(){return this._size}conflate(e){if(this._region!==e._region||this._index!==e._index){return false}this._size=e._size;return true}}e.RowResizeRequest=o;class r extends m.ConflatableMessage{constructor(e,t,i){super("column-resize-request");this._region=e;this._index=t;this._size=i}get region(){return this._region}get index(){return this._index}get size(){return this._size}conflate(e){if(this._region!==e._region||this._index!==e._index){return false}this._size=e._size;return true}}e.ColumnResizeRequest=r})(Z||(Z={}));class Q extends Y{constructor(e){super();let t=ee.splitFields(e.schema);this._data=e.data;this._bodyFields=t.bodyFields;this._headerFields=t.headerFields;this._missingValues=ee.createMissingMap(e.schema)}rowCount(e){if(e==="body"){return this._data.length}return 1}columnCount(e){if(e==="body"){return this._bodyFields.length}return this._headerFields.length}data(e,t,i){let s;let o;switch(e){case"body":s=this._bodyFields[i];o=this._data[t][s.name];break;case"column-header":s=this._bodyFields[i];o=s.title||s.name;break;case"row-header":s=this._headerFields[i];o=this._data[t][s.name];break;case"corner-header":s=this._headerFields[i];o=s.title||s.name;break;default:throw"unreachable"}let r=this._missingValues!==null&&typeof o==="string"&&this._missingValues[o]===true;return r?null:o}metadata(e,t,i){if(e==="body"||e==="column-header"){return this._bodyFields[i]}return this._headerFields[i]}}var ee;(function(e){function t(e){let t;if(e.primaryKey===undefined){t=[]}else if(typeof e.primaryKey==="string"){t=[e.primaryKey]}else{t=e.primaryKey}let i=[];let s=[];for(let o of e.fields){if(t.indexOf(o.name)===-1){i.push(o)}else{s.push(o)}}return{bodyFields:i,headerFields:s}}e.splitFields=t;function i(e){if(!e.missingValues||e.missingValues.length===0){return null}let t=Object.create(null);for(let i of e.missingValues){t[i]=true}return t}e.createMissingMap=i})(ee||(ee={}))}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/8319.80fcbc832e1eb20b71e7.js b/bootcamp/share/jupyter/lab/static/8319.80fcbc832e1eb20b71e7.js new file mode 100644 index 0000000..10c9c61 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/8319.80fcbc832e1eb20b71e7.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8319],{38319:(e,_,t)=>{t.r(_);t.d(_,{nginx:()=>f});function r(e){var _={},t=e.split(" ");for(var r=0;r*\/]/.test(r)){return n(null,"select-op")}else if(/[;{}:\[\]]/.test(r)){return n(null,r)}else{e.eatWhile(/[\w\\\-]/);return n("variable","variable")}}function l(e,_){var t=false,r;while((r=e.next())!=null){if(t&&r=="/"){_.tokenize=c;break}t=r=="*"}return n("comment","comment")}function p(e,_){var t=0,r;while((r=e.next())!=null){if(t>=2&&r==">"){_.tokenize=c;break}t=r=="-"?t+1:0}return n("comment","comment")}function u(e){return function(_,t){var r=false,i;while((i=_.next())!=null){if(i==e&&!r)break;r=!r&&i=="\\"}if(!r)t.tokenize=c;return n("string","string")}}const f={name:"nginx",startState:function(){return{tokenize:c,baseIndent:0,stack:[]}},token:function(e,_){if(e.eatSpace())return null;o=null;var t=_.tokenize(e,_);var r=_.stack[_.stack.length-1];if(o=="hash"&&r=="rule")t="atom";else if(t=="variable"){if(r=="rule")t="number";else if(!r||r=="@media{")t="tag"}if(r=="rule"&&/^[\{\};]$/.test(o))_.stack.pop();if(o=="{"){if(r=="@media")_.stack[_.stack.length-1]="@media{";else _.stack.push("{")}else if(o=="}")_.stack.pop();else if(o=="@media")_.stack.push("@media");else if(r=="{"&&o!="comment")_.stack.push("rule");return t},indent:function(e,_,t){var r=e.stack.length;if(/^\}/.test(_))r-=e.stack[e.stack.length-1]=="rule"?2:1;return e.baseIndent+r*t.unit},languageData:{indentOnInput:/^\s*\}$/}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/8347.573b699e3590729bfa8a.js b/bootcamp/share/jupyter/lab/static/8347.573b699e3590729bfa8a.js new file mode 100644 index 0000000..9279906 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/8347.573b699e3590729bfa8a.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8347],{38347:(e,t,n)=>{n.r(t);n.d(t,{brainfuck:()=>r});var i="><+-.,[]".split("");const r={name:"brainfuck",startState:function(){return{commentLine:false,left:0,right:0,commentLoop:false}},token:function(e,t){if(e.eatSpace())return null;if(e.sol()){t.commentLine=false}var n=e.next().toString();if(i.indexOf(n)!==-1){if(t.commentLine===true){if(e.eol()){t.commentLine=false}return"comment"}if(n==="]"||n==="["){if(n==="["){t.left++}else{t.right++}return"bracket"}else if(n==="+"||n==="-"){return"keyword"}else if(n==="<"||n===">"){return"atom"}else if(n==="."||n===","){return"def"}}else{t.commentLine=true;if(e.eol()){t.commentLine=false}return"comment"}if(e.eol()){t.commentLine=false}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/8405.154ba4b17a2dec22a355.js b/bootcamp/share/jupyter/lab/static/8405.154ba4b17a2dec22a355.js new file mode 100644 index 0000000..f74ca0f --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/8405.154ba4b17a2dec22a355.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8405],{8405:(e,a,t)=>{t.r(a);t.d(a,{mathematica:()=>A});var r="[a-zA-Z\\$][a-zA-Z0-9\\$]*";var n="(?:\\d+)";var i="(?:\\.\\d+|\\d+\\.\\d*|\\d+)";var u="(?:\\.\\w+|\\w+\\.\\w*|\\w+)";var l="(?:`(?:`?"+i+")?)";var c=new RegExp("(?:"+n+"(?:\\^\\^"+u+l+"?(?:\\*\\^[+-]?\\d+)?))");var f=new RegExp("(?:"+i+l+"?(?:\\*\\^[+-]?\\d+)?)");var m=new RegExp("(?:`?)(?:"+r+")(?:`(?:"+r+"))*(?:`?)");function o(e,a){var t;t=e.next();if(t==='"'){a.tokenize=s;return a.tokenize(e,a)}if(t==="("){if(e.eat("*")){a.commentLevel++;a.tokenize=z;return a.tokenize(e,a)}}e.backUp(1);if(e.match(c,true,false)){return"number"}if(e.match(f,true,false)){return"number"}if(e.match(/(?:In|Out)\[[0-9]*\]/,true,false)){return"atom"}if(e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::usage)/,true,false)){return"meta"}if(e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*(?:`[a-zA-Z0-9\$]+)*::[a-zA-Z\$][a-zA-Z0-9\$]*):?/,true,false)){return"string.special"}if(e.match(/([a-zA-Z\$][a-zA-Z0-9\$]*\s*:)(?:(?:[a-zA-Z\$][a-zA-Z0-9\$]*)|(?:[^:=>~@\^\&\*\)\[\]'\?,\|])).*/,true,false)){return"variableName.special"}if(e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+[a-zA-Z\$][a-zA-Z0-9\$]*/,true,false)){return"variableName.special"}if(e.match(/[a-zA-Z\$][a-zA-Z0-9\$]*_+/,true,false)){return"variableName.special"}if(e.match(/_+[a-zA-Z\$][a-zA-Z0-9\$]*/,true,false)){return"variableName.special"}if(e.match(/\\\[[a-zA-Z\$][a-zA-Z0-9\$]*\]/,true,false)){return"character"}if(e.match(/(?:\[|\]|{|}|\(|\))/,true,false)){return"bracket"}if(e.match(/(?:#[a-zA-Z\$][a-zA-Z0-9\$]*|#+[0-9]?)/,true,false)){return"variableName.constant"}if(e.match(m,true,false)){return"keyword"}if(e.match(/(?:\\|\+|\-|\*|\/|,|;|\.|:|@|~|=|>|<|&|\||_|`|'|\^|\?|!|%)/,true,false)){return"operator"}e.next();return"error"}function s(e,a){var t,r=false,n=false;while((t=e.next())!=null){if(t==='"'&&!n){r=true;break}n=!n&&t==="\\"}if(r&&!n){a.tokenize=o}return"string"}function z(e,a){var t,r;while(a.commentLevel>0&&(r=e.next())!=null){if(t==="("&&r==="*")a.commentLevel++;if(t==="*"&&r===")")a.commentLevel--;t=r}if(a.commentLevel<=0){a.tokenize=o}return"comment"}const A={name:"mathematica",startState:function(){return{tokenize:o,commentLevel:0}},token:function(e,a){if(e.eatSpace())return null;return a.tokenize(e,a)},languageData:{commentTokens:{block:{open:"(*",close:"*)"}}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/8493.fc635229db38e6fc6aa2.js b/bootcamp/share/jupyter/lab/static/8493.fc635229db38e6fc6aa2.js new file mode 100644 index 0000000..e810cf2 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/8493.fc635229db38e6fc6aa2.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8493],{68493:(e,t,n)=>{n.r(t);n.d(t,{dtd:()=>f});var r;function l(e,t){r=t;return e}function a(e,t){var n=e.next();if(n=="<"&&e.eat("!")){if(e.eatWhile(/[\-]/)){t.tokenize=i;return i(e,t)}else if(e.eatWhile(/[\w]/))return l("keyword","doindent")}else if(n=="<"&&e.eat("?")){t.tokenize=s("meta","?>");return l("meta",n)}else if(n=="#"&&e.eatWhile(/[\w]/))return l("atom","tag");else if(n=="|")return l("keyword","separator");else if(n.match(/[\(\)\[\]\-\.,\+\?>]/))return l(null,n);else if(n.match(/[\[\]]/))return l("rule",n);else if(n=='"'||n=="'"){t.tokenize=u(n);return t.tokenize(e,t)}else if(e.eatWhile(/[a-zA-Z\?\+\d]/)){var r=e.current();if(r.substr(r.length-1,r.length).match(/\?|\+/)!==null)e.backUp(1);return l("tag","tag")}else if(n=="%"||n=="*")return l("number","number");else{e.eatWhile(/[\w\\\-_%.{,]/);return l(null,null)}}function i(e,t){var n=0,r;while((r=e.next())!=null){if(n>=2&&r==">"){t.tokenize=a;break}n=r=="-"?n+1:0}return l("comment","comment")}function u(e){return function(t,n){var r=false,i;while((i=t.next())!=null){if(i==e&&!r){n.tokenize=a;break}r=!r&&i=="\\"}return l("string","tag")}}function s(e,t){return function(n,r){while(!n.eol()){if(n.match(t)){r.tokenize=a;break}n.next()}return e}}const f={name:"dtd",startState:function(){return{tokenize:a,baseIndent:0,stack:[]}},token:function(e,t){if(e.eatSpace())return null;var n=t.tokenize(e,t);var l=t.stack[t.stack.length-1];if(e.current()=="["||r==="doindent"||r=="[")t.stack.push("rule");else if(r==="endtag")t.stack[t.stack.length-1]="endtag";else if(e.current()=="]"||r=="]"||r==">"&&l=="rule")t.stack.pop();else if(r=="[")t.stack.push("[");return n},indent:function(e,t,n){var l=e.stack.length;if(t.charAt(0)==="]")l--;else if(t.substr(t.length-1,t.length)===">"){if(t.substr(0,1)==="<"){}else if(r=="doindent"&&t.length>1){}else if(r=="doindent")l--;else if(r==">"&&t.length>1){}else if(r=="tag"&&t!==">"){}else if(r=="tag"&&e.stack[e.stack.length-1]=="rule")l--;else if(r=="tag")l++;else if(t===">"&&e.stack[e.stack.length-1]=="rule"&&r===">")l--;else if(t===">"&&e.stack[e.stack.length-1]=="rule"){}else if(t.substr(0,1)!=="<"&&t.substr(0,1)===">")l=l-1;else if(t===">"){}else l=l-1;if(r==null||r=="]")l--}return e.baseIndent+l*n.unit},languageData:{indentOnInput:/^\s*[\]>]$/}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/8498.27a245b23921914bf5c2.js b/bootcamp/share/jupyter/lab/static/8498.27a245b23921914bf5c2.js new file mode 100644 index 0000000..4fbcdde --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/8498.27a245b23921914bf5c2.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8498],{18498:(e,t,n)=>{n.r(t);n.d(t,{sas:()=>c});var r={};var s={eq:"operator",lt:"operator",le:"operator",gt:"operator",ge:"operator",in:"operator",ne:"operator",or:"operator"};var a=/(<=|>=|!=|<>)/;var o=/[=\(:\),{}.*<>+\-\/^\[\]]/;function i(e,t,n){if(n){var s=t.split(" ");for(var a=0;a{Object.defineProperty(e,"__esModule",{value:true});e.AbstractInputJax=void 0;var n=r(36059);var i=r(64905);var o=function(){function t(t){if(t===void 0){t={}}this.adaptor=null;this.mmlFactory=null;var e=this.constructor;this.options=(0,n.userOptions)((0,n.defaultOptions)({},e.OPTIONS),t);this.preFilters=new i.FunctionList;this.postFilters=new i.FunctionList}Object.defineProperty(t.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:false,configurable:true});t.prototype.setAdaptor=function(t){this.adaptor=t};t.prototype.setMmlFactory=function(t){this.mmlFactory=t};t.prototype.initialize=function(){};t.prototype.reset=function(){var t=[];for(var e=0;e=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};var a=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n=e){if(s.item.renderDoc(t))return}}}catch(l){r={error:l}}finally{try{if(a&&!a.done&&(n=o.return))n.call(o)}finally{if(r)throw r.error}}};e.prototype.renderMath=function(t,e,r){var n,o;if(r===void 0){r=p.STATE.UNPROCESSED}try{for(var a=i(this.items),s=a.next();!s.done;s=a.next()){var l=s.value;if(l.priority>=r){if(l.item.renderMath(t,e))return}}}catch(u){n={error:u}}finally{try{if(s&&!s.done&&(o=a.return))o.call(a)}finally{if(n)throw n.error}}};e.prototype.renderConvert=function(t,e,r){var n,o;if(r===void 0){r=p.STATE.LAST}try{for(var a=i(this.items),s=a.next();!s.done;s=a.next()){var l=s.value;if(l.priority>r)return;if(l.item.convert){if(l.item.renderMath(t,e))return}}}catch(u){n={error:u}}finally{try{if(s&&!s.done&&(o=a.return))o.call(a)}finally{if(n)throw n.error}}};e.prototype.findID=function(t){var e,r;try{for(var n=i(this.items),o=n.next();!o.done;o=n.next()){var a=o.value;if(a.item.id===t){return a.item}}}catch(s){e={error:s}}finally{try{if(o&&!o.done&&(r=n.return))r.call(n)}finally{if(e)throw e.error}}return null};return e}(d.PrioritizedList);e.RenderList=y;e.resetOptions={all:false,processed:false,inputJax:null,outputJax:null};e.resetAllOptions={all:true,processed:true,inputJax:[],outputJax:[]};var v=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.compile=function(t){return null};return e}(l.AbstractInputJax);var m=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.typeset=function(t,e){if(e===void 0){e=null}return null};e.prototype.escaped=function(t,e){return null};return e}(u.AbstractOutputJax);var x=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(c.AbstractMathList);var b=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(p.AbstractMathItem);var g=function(){function t(e,r,n){var i=this;var o=this.constructor;this.document=e;this.options=(0,s.userOptions)((0,s.defaultOptions)({},o.OPTIONS),n);this.math=new(this.options["MathList"]||x);this.renderActions=y.create(this.options["renderActions"]);this.processed=new t.ProcessBits;this.outputJax=this.options["OutputJax"]||new m;var a=this.options["InputJax"]||[new v];if(!Array.isArray(a)){a=[a]}this.inputJax=a;this.adaptor=r;this.outputJax.setAdaptor(r);this.inputJax.map((function(t){return t.setAdaptor(r)}));this.mmlFactory=this.options["MmlFactory"]||new f.MmlFactory;this.inputJax.map((function(t){return t.setMmlFactory(i.mmlFactory)}));this.outputJax.initialize();this.inputJax.map((function(t){return t.initialize()}))}Object.defineProperty(t.prototype,"kind",{get:function(){return this.constructor.KIND},enumerable:false,configurable:true});t.prototype.addRenderAction=function(t){var e=[];for(var r=1;r{Object.defineProperty(e,"__esModule",{value:true});e.AbstractOutputJax=void 0;var n=r(36059);var i=r(64905);var o=function(){function t(t){if(t===void 0){t={}}this.adaptor=null;var e=this.constructor;this.options=(0,n.userOptions)((0,n.defaultOptions)({},e.OPTIONS),t);this.postFilters=new i.FunctionList}Object.defineProperty(t.prototype,"name",{get:function(){return this.constructor.NAME},enumerable:false,configurable:true});t.prototype.setAdaptor=function(t){this.adaptor=t};t.prototype.initialize=function(){};t.prototype.reset=function(){var t=[];for(var e=0;e0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};var a=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.HTMLDocument=void 0;var s=r(14212);var l=r(36059);var u=r(25815);var c=r(43845);var p=r(19062);var f=r(59719);var h=function(t){n(e,t);function e(e,r,n){var i=this;var a=o((0,l.separateOptions)(n,p.HTMLDomStrings.OPTIONS),2),s=a[0],u=a[1];i=t.call(this,e,r,s)||this;i.domStrings=i.options["DomStrings"]||new p.HTMLDomStrings(u);i.domStrings.adaptor=r;i.styles=[];return i}e.prototype.findPosition=function(t,e,r,n){var i,s;var l=this.adaptor;try{for(var u=a(n[t]),c=u.next();!c.done;c=u.next()){var p=c.value;var f=o(p,2),h=f[0],d=f[1];if(e<=d&&l.kind(h)==="#text"){return{node:h,n:Math.max(e,0),delim:r}}e-=d}}catch(y){i={error:y}}finally{try{if(c&&!c.done&&(s=u.return))s.call(u)}finally{if(i)throw i.error}}return{node:null,n:0,delim:r}};e.prototype.mathItem=function(t,e,r){var n=t.math;var i=this.findPosition(t.n,t.start.n,t.open,r);var o=this.findPosition(t.n,t.end.n,t.close,r);return new this.options.MathItem(n,e,t.display,i,o)};e.prototype.findMath=function(t){var e,r,n,i,s,u,c,p,f;if(!this.processed.isSet("findMath")){this.adaptor.document=this.document;t=(0,l.userOptions)({elements:this.options.elements||[this.adaptor.body(this.document)]},t);try{for(var h=a(this.adaptor.getElements(t["elements"],this.document)),d=h.next();!d.done;d=h.next()){var y=d.value;var v=o([null,null],2),m=v[0],x=v[1];try{for(var b=(n=void 0,a(this.inputJax)),g=b.next();!g.done;g=b.next()){var _=g.value;var w=new this.options["MathList"];if(_.processStrings){if(m===null){s=o(this.domStrings.find(y),2),m=s[0],x=s[1]}try{for(var S=(u=void 0,a(_.findMath(m))),O=S.next();!O.done;O=S.next()){var T=O.value;w.push(this.mathItem(T,_,x))}}catch(D){u={error:D}}finally{try{if(O&&!O.done&&(c=S.return))c.call(S)}finally{if(u)throw u.error}}}else{try{for(var M=(p=void 0,a(_.findMath(y))),E=M.next();!E.done;E=M.next()){var T=E.value;var A=new this.options.MathItem(T.math,_,T.display,T.start,T.end);w.push(A)}}catch(P){p={error:P}}finally{try{if(E&&!E.done&&(f=M.return))f.call(M)}finally{if(p)throw p.error}}}this.math.merge(w)}}catch(j){n={error:j}}finally{try{if(g&&!g.done&&(i=b.return))i.call(b)}finally{if(n)throw n.error}}}}catch(I){e={error:I}}finally{try{if(d&&!d.done&&(r=h.return))r.call(h)}finally{if(e)throw e.error}}this.processed.set("findMath")}return this};e.prototype.updateDocument=function(){if(!this.processed.isSet("updateDocument")){this.addPageElements();this.addStyleSheet();t.prototype.updateDocument.call(this);this.processed.set("updateDocument")}return this};e.prototype.addPageElements=function(){var t=this.adaptor.body(this.document);var e=this.documentPageElements();if(e){this.adaptor.append(t,e)}};e.prototype.addStyleSheet=function(){var t=this.documentStyleSheet();var e=this.adaptor;if(t&&!e.parent(t)){var r=e.head(this.document);var n=this.findSheet(r,e.getAttribute(t,"id"));if(n){e.replace(t,n)}else{e.append(r,t)}}};e.prototype.findSheet=function(t,e){var r,n;if(e){try{for(var i=a(this.adaptor.tags(t,"style")),o=i.next();!o.done;o=i.next()){var s=o.value;if(this.adaptor.getAttribute(s,"id")===e){return s}}}catch(l){r={error:l}}finally{try{if(o&&!o.done&&(n=i.return))n.call(i)}finally{if(r)throw r.error}}}return null};e.prototype.removeFromDocument=function(t){var e,r;if(t===void 0){t=false}if(this.processed.isSet("updateDocument")){try{for(var n=a(this.math),i=n.next();!i.done;i=n.next()){var o=i.value;if(o.state()>=f.STATE.INSERTED){o.state(f.STATE.TYPESET,t)}}}catch(s){e={error:s}}finally{try{if(i&&!i.done&&(r=n.return))r.call(n)}finally{if(e)throw e.error}}}this.processed.clear("updateDocument");return this};e.prototype.documentStyleSheet=function(){return this.outputJax.styleSheet(this)};e.prototype.documentPageElements=function(){return this.outputJax.pageElements(this)};e.prototype.addStyles=function(t){this.styles.push(t)};e.prototype.getStyles=function(){return this.styles};e.KIND="HTML";e.OPTIONS=i(i({},s.AbstractMathDocument.OPTIONS),{renderActions:(0,l.expandable)(i(i({},s.AbstractMathDocument.OPTIONS.renderActions),{styles:[f.STATE.INSERTED+1,"","updateStyleSheet",false]})),MathList:c.HTMLMathList,MathItem:u.HTMLMathItem,DomStrings:null});return e}(s.AbstractMathDocument);e.HTMLDocument=h},19062:function(t,e,r){var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};Object.defineProperty(e,"__esModule",{value:true});e.HTMLDomStrings=void 0;var i=r(36059);var o=function(){function t(t){if(t===void 0){t=null}var e=this.constructor;this.options=(0,i.userOptions)((0,i.defaultOptions)({},e.OPTIONS),t);this.init();this.getPatterns()}t.prototype.init=function(){this.strings=[];this.string="";this.snodes=[];this.nodes=[];this.stack=[]};t.prototype.getPatterns=function(){var t=(0,i.makeArray)(this.options["skipHtmlTags"]);var e=(0,i.makeArray)(this.options["ignoreHtmlClass"]);var r=(0,i.makeArray)(this.options["processHtmlClass"]);this.skipHtmlTags=new RegExp("^(?:"+t.join("|")+")$","i");this.ignoreHtmlClass=new RegExp("(?:^| )(?:"+e.join("|")+")(?: |$)");this.processHtmlClass=new RegExp("(?:^| )(?:"+r+")(?: |$)")};t.prototype.pushString=function(){if(this.string.match(/\S/)){this.strings.push(this.string);this.nodes.push(this.snodes)}this.string="";this.snodes=[]};t.prototype.extendString=function(t,e){this.snodes.push([t,e.length]);this.string+=e};t.prototype.handleText=function(t,e){if(!e){this.extendString(t,this.adaptor.value(t))}return this.adaptor.next(t)};t.prototype.handleTag=function(t,e){if(!e){var r=this.options["includeHtmlTags"][this.adaptor.kind(t)];this.extendString(t,r)}return this.adaptor.next(t)};t.prototype.handleContainer=function(t,e){this.pushString();var r=this.adaptor.getAttribute(t,"class")||"";var n=this.adaptor.kind(t)||"";var i=this.processHtmlClass.exec(r);var o=t;if(this.adaptor.firstChild(t)&&!this.adaptor.getAttribute(t,"data-MJX")&&(i||!this.skipHtmlTags.exec(n))){if(this.adaptor.next(t)){this.stack.push([this.adaptor.next(t),e])}o=this.adaptor.firstChild(t);e=(e||this.ignoreHtmlClass.exec(r))&&!i}else{o=this.adaptor.next(t)}return[o,e]};t.prototype.handleOther=function(t,e){this.pushString();return this.adaptor.next(t)};t.prototype.find=function(t){var e,r;this.init();var i=this.adaptor.next(t);var o=false;var a=this.options["includeHtmlTags"];while(t&&t!==i){var s=this.adaptor.kind(t);if(s==="#text"){t=this.handleText(t,o)}else if(a.hasOwnProperty(s)){t=this.handleTag(t,o)}else if(s){e=n(this.handleContainer(t,o),2),t=e[0],o=e[1]}else{t=this.handleOther(t,o)}if(!t&&this.stack.length){this.pushString();r=n(this.stack.pop(),2),t=r[0],o=r[1]}}this.pushString();var l=[this.strings,this.nodes];this.init();return l};t.OPTIONS={skipHtmlTags:["script","noscript","style","textarea","pre","code","annotation","annotation-xml"],includeHtmlTags:{br:"\n",wbr:"","#comment":""},ignoreHtmlClass:"mathjax_ignore",processHtmlClass:"mathjax_process"};return t}();e.HTMLDomStrings=o},18512:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:true});e.HTMLHandler=void 0;var i=r(89733);var o=r(24577);var a=function(t){n(e,t);function e(){var e=t!==null&&t.apply(this,arguments)||this;e.documentClass=o.HTMLDocument;return e}e.prototype.handlesDocument=function(t){var e=this.adaptor;if(typeof t==="string"){try{t=e.parse(t,"text/html")}catch(r){}}if(t instanceof e.window.Document||t instanceof e.window.HTMLElement||t instanceof e.window.DocumentFragment){return true}return false};e.prototype.create=function(e,r){var n=this.adaptor;if(typeof e==="string"){e=n.parse(e,"text/html")}else if(e instanceof n.window.HTMLElement||e instanceof n.window.DocumentFragment){var i=e;e=n.parse("","text/html");n.append(n.body(e),i)}return t.prototype.create.call(this,e,r)};return e}(i.AbstractHandler);e.HTMLHandler=a},25815:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:true});e.HTMLMathItem=void 0;var i=r(59719);var o=function(t){n(e,t);function e(e,r,n,i,o){if(n===void 0){n=true}if(i===void 0){i={node:null,n:0,delim:""}}if(o===void 0){o={node:null,n:0,delim:""}}return t.call(this,e,r,n,i,o)||this}Object.defineProperty(e.prototype,"adaptor",{get:function(){return this.inputJax.adaptor},enumerable:false,configurable:true});e.prototype.updateDocument=function(t){if(this.state()=i.STATE.TYPESET){var e=this.adaptor;var r=this.start.node;var n=e.text("");if(t){var o=this.start.delim+this.math+this.end.delim;if(this.inputJax.processStrings){n=e.text(o)}else{var a=e.parse(o,"text/html");n=e.firstChild(e.body(a))}}if(e.parent(r)){e.replace(n,r)}this.start.node=this.end.node=n;this.start.n=this.end.n=0}};return e}(i.AbstractMathItem);e.HTMLMathItem=o},43845:function(t,e,r){var n=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();Object.defineProperty(e,"__esModule",{value:true});e.HTMLMathList=void 0;var i=r(70020);var o=function(t){n(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(i.AbstractMathList);e.HTMLMathList=o},11033:function(t,e){var r=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();var n=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&n>=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var i=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};var o=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),i,o=[],a;try{while((e===void 0||e-- >0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};var a=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n0&&o[o.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]0)&&!(i=n.next()).done)o.push(i.value)}catch(s){a={error:s}}finally{try{if(i&&!i.done&&(r=n["return"]))r.call(n)}finally{if(a)throw a.error}}return o};var i=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,o;n=t.length)t=void 0;return{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.LinkedList=e.ListItem=e.END=void 0;e.END=Symbol();var a=function(){function t(t){if(t===void 0){t=null}this.next=null;this.prev=null;this.data=t}return t}();e.ListItem=a;var s=function(){function t(){var t=[];for(var r=0;r1){var u=i.shift();var c=i.shift();u.merge(c,e);i.push(u)}if(i.length){this.list=i[0].list}return this};t.prototype.merge=function(t,r){var i,o,a,s,l;if(r===void 0){r=null}if(r===null){r=this.isBefore.bind(this)}var u=this.list.next;var c=t.list.next;while(u.data!==e.END&&c.data!==e.END){if(r(c.data,u.data)){i=n([u,c],2),c.prev.next=i[0],u.prev.next=i[1];o=n([u.prev,c.prev],2),c.prev=o[0],u.prev=o[1];a=n([t.list,this.list],2),this.list.prev.next=a[0],t.list.prev.next=a[1];s=n([t.list.prev,this.list.prev],2),this.list.prev=s[0],t.list.prev=s[1];l=n([c.next,u],2),u=l[0],c=l[1]}else{u=u.next}}if(c.data!==e.END){this.list.prev.next=t.list.next;t.list.next.prev=this.list.prev;t.list.prev.next=this.list;this.list.prev=t.list.prev;t.list.next=t.list.prev=t.list}return this};return t}();e.LinkedList=s},4180:(t,e)=>{Object.defineProperty(e,"__esModule",{value:true});e.PrioritizedList=void 0;var r=function(){function t(){this.items=[];this.items=[]}t.prototype[Symbol.iterator]=function(){var t=0;var e=this.items;return{next:function(){return{value:e[t++],done:t>e.length}}}};t.prototype.add=function(e,r){if(r===void 0){r=t.DEFAULTPRIORITY}var n=this.items.length;do{n--}while(n>=0&&r=0&&this.items[e].item!==t);if(e>=0){this.items.splice(e,1)}};t.DEFAULTPRIORITY=5;return t}();e.PrioritizedList=r}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/8678.dcd3dab9025b13eb9be8.js b/bootcamp/share/jupyter/lab/static/8678.dcd3dab9025b13eb9be8.js new file mode 100644 index 0000000..440f0b2 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/8678.dcd3dab9025b13eb9be8.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8678],{8678:function(t,e,r){var i=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function i(){this.constructor=e}e.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}}();var o=this&&this.__assign||function(){o=Object.assign||function(t){for(var e,r=1,i=arguments.length;r0)&&!(o=i.next()).done)n.push(o.value)}catch(s){a={error:s}}finally{try{if(o&&!o.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return n};var a=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,o=e.length,n;i=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(e,"__esModule",{value:true});e.AssistiveMmlHandler=e.AssistiveMmlMathDocumentMixin=e.AssistiveMmlMathItemMixin=e.LimitedMmlVisitor=void 0;var l=r(59719);var u=r(97810);var c=r(36059);var p=function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.getAttributes=function(e){return t.prototype.getAttributes.call(this,e).replace(/ ?id=".*?"/,"")};return e}(u.SerializedMmlVisitor);e.LimitedMmlVisitor=p;(0,l.newState)("ASSISTIVEMML",153);function f(t){return function(t){i(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}e.prototype.assistiveMml=function(t,e){if(e===void 0){e=false}if(this.state()>=l.STATE.ASSISTIVEMML)return;if(!this.isEscaped&&(t.options.enableAssistiveMml||e)){var r=t.adaptor;var i=t.toMML(this.root).replace(/\n */g,"").replace(//g,"");var o=r.firstChild(r.body(r.parse(i,"text/html")));var n=r.node("mjx-assistive-mml",{unselectable:"on",display:this.display?"block":"inline"},[o]);r.setAttribute(r.firstChild(this.typesetRoot),"aria-hidden","true");r.setStyle(this.typesetRoot,"position","relative");r.append(this.typesetRoot,n)}this.state(l.STATE.ASSISTIVEMML)};return e}(t)}e.AssistiveMmlMathItemMixin=f;function v(t){var e;return e=function(t){i(e,t);function e(){var e=[];for(var r=0;r=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),o,n=[],a;try{while((e===void 0||e-- >0)&&!(o=i.next()).done)n.push(o.value)}catch(s){a={error:s}}finally{try{if(o&&!o.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return n};Object.defineProperty(e,"__esModule",{value:true});e.SerializedMmlVisitor=e.toEntity=e.DATAMJX=void 0;var a=r(45626);var s=r(18426);var l=r(16689);e.DATAMJX="data-mjx-";var u=function(t){return"&#x"+t.codePointAt(0).toString(16).toUpperCase()+";"};e.toEntity=u;var c=function(t){i(r,t);function r(){return t!==null&&t.apply(this,arguments)||this}r.prototype.visitTree=function(t){return this.visitNode(t,"")};r.prototype.visitTextNode=function(t,e){return this.quoteHTML(t.getText())};r.prototype.visitXMLNode=function(t,e){return e+t.getSerializedXML()};r.prototype.visitInferredMrowNode=function(t,e){var r,i;var n=[];try{for(var a=o(t.childNodes),s=a.next();!s.done;s=a.next()){var l=s.value;n.push(this.visitNode(l,e))}}catch(u){r={error:u}}finally{try{if(s&&!s.done&&(i=a.return))i.call(a)}finally{if(r)throw r.error}}return n.join("\n")};r.prototype.visitTeXAtomNode=function(t,e){var r=this.childNodeMml(t,e+" ","\n");var i=e+""+(r.match(/\S/)?"\n"+r+e:"")+"";return i};r.prototype.visitAnnotationNode=function(t,e){return e+""+this.childNodeMml(t,"","")+""};r.prototype.visitDefault=function(t,e){var r=t.kind;var i=n(t.isToken||t.childNodes.length===0?["",""]:["\n",e],2),o=i[0],a=i[1];var s=this.childNodeMml(t,e+" ",o);return e+"<"+r+this.getAttributes(t)+">"+(s.match(/\S/)?o+s+a:"")+""};r.prototype.childNodeMml=function(t,e,r){var i,n;var a="";try{for(var s=o(t.childNodes),l=s.next();!l.done;l=s.next()){var u=l.value;a+=this.visitNode(u,e)+r}}catch(c){i={error:c}}finally{try{if(l&&!l.done&&(n=s.return))n.call(s)}finally{if(i)throw i.error}}return a};r.prototype.getAttributes=function(t){var e,r;var i=[];var n=this.constructor.defaultAttributes[t.kind]||{};var a=Object.assign({},n,this.getDataAttributes(t),t.attributes.getAllAttributes());var s=this.constructor.variants;if(a.hasOwnProperty("mathvariant")&&s.hasOwnProperty(a.mathvariant)){a.mathvariant=s[a.mathvariant]}try{for(var l=o(Object.keys(a)),u=l.next();!u.done;u=l.next()){var c=u.value;var p=String(a[c]);if(p===undefined)continue;i.push(c+'="'+this.quoteHTML(p)+'"')}}catch(f){e={error:f}}finally{try{if(u&&!u.done&&(r=l.return))r.call(l)}finally{if(e)throw e.error}}return i.length?" "+i.join(" "):""};r.prototype.getDataAttributes=function(t){var e={};var r=t.attributes.getExplicit("mathvariant");var i=this.constructor.variants;r&&i.hasOwnProperty(r)&&this.setDataAttribute(e,"variant",r);t.getProperty("variantForm")&&this.setDataAttribute(e,"alternate","1");t.getProperty("pseudoscript")&&this.setDataAttribute(e,"pseudoscript","true");t.getProperty("autoOP")===false&&this.setDataAttribute(e,"auto-op","false");var o=t.getProperty("scriptalign");o&&this.setDataAttribute(e,"script-align",o);var n=t.getProperty("texClass");if(n!==undefined){var a=true;if(n===s.TEXCLASS.OP&&t.isKind("mi")){var u=t.getText();a=!(u.length>1&&u.match(l.MmlMi.operatorName))}a&&this.setDataAttribute(e,"texclass",n<0?"NONE":s.TEXCLASSNAMES[n])}t.getProperty("scriptlevel")&&t.getProperty("useHeight")===false&&this.setDataAttribute(e,"smallmatrix","true");return e};r.prototype.setDataAttribute=function(t,r,i){t[e.DATAMJX+r]=i};r.prototype.quoteHTML=function(t){return t.replace(/&/g,"&").replace(//g,">").replace(/\"/g,""").replace(/[\uD800-\uDBFF]./g,e.toEntity).replace(/[\u0080-\uD7FF\uE000-\uFFFF]/g,e.toEntity)};r.variants={"-tex-calligraphic":"script","-tex-bold-calligraphic":"bold-script","-tex-oldstyle":"normal","-tex-bold-oldstyle":"bold","-tex-mathit":"italic"};r.defaultAttributes={math:{xmlns:"http://www.w3.org/1998/Math/MathML"}};return r}(a.MmlVisitor);e.SerializedMmlVisitor=c},91921:function(t,e,r){var i=this&&this.__values||function(t){var e=typeof Symbol==="function"&&Symbol.iterator,r=e&&t[e],i=0;if(r)return r.call(t);if(t&&typeof t.length==="number")return{next:function(){if(t&&i>=t.length)t=void 0;return{value:t&&t[i++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__read||function(t,e){var r=typeof Symbol==="function"&&t[Symbol.iterator];if(!r)return t;var i=r.call(t),o,n=[],a;try{while((e===void 0||e-- >0)&&!(o=i.next()).done)n.push(o.value)}catch(s){a={error:s}}finally{try{if(o&&!o.done&&(r=i["return"]))r.call(i)}finally{if(a)throw a.error}}return n};var n=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var i=0,o=e.length,n;i{n.r(t);n.d(t,{puppet:()=>c});var i={};var a=/({)?([a-z][a-z0-9_]*)?((::[a-z][a-z0-9_]*)*::)?[a-zA-Z0-9_]+(})?/;function r(e,t){var n=t.split(" ");for(var a=0;a.*/,false);var o=e.match(/(\s+)?[\w:_]+(\s+)?{/,false);var c=e.match(/(\s+)?[@]{1,2}[\w:_]+(\s+)?{/,false);var u=e.next();if(u==="$"){if(e.match(a)){return t.continueString?"variableName.special":"variable"}return"error"}if(t.continueString){e.backUp(1);return s(e,t)}if(t.inDefinition){if(e.match(/(\s+)?[\w:_]+(\s+)?/)){return"def"}e.match(/\s+{/);t.inDefinition=false}if(t.inInclude){e.match(/(\s+)?\S+(\s+)?/);t.inInclude=false;return"def"}if(e.match(/(\s+)?\w+\(/)){e.backUp(1);return"def"}if(r){e.match(/(\s+)?\w+/);return"tag"}if(n&&i.hasOwnProperty(n)){e.backUp(1);e.match(/[\w]+/);if(e.match(/\s+\S+\s+{/,false)){t.inDefinition=true}if(n=="include"){t.inInclude=true}return i[n]}if(/(^|\s+)[A-Z][\w:_]+/.test(n)){e.backUp(1);e.match(/(^|\s+)[A-Z][\w:_]+/);return"def"}if(o){e.match(/(\s+)?[\w:_]+/);return"def"}if(c){e.match(/(\s+)?[@]{1,2}/);return"atom"}if(u=="#"){e.skipToEnd();return"comment"}if(u=="'"||u=='"'){t.pending=u;return s(e,t)}if(u=="{"||u=="}"){return"bracket"}if(u=="/"){e.match(/^[^\/]*\//);return"string.special"}if(u.match(/[0-9]/)){e.eatWhile(/[0-9]+/);return"number"}if(u=="="){if(e.peek()==">"){e.next()}return"operator"}e.eatWhile(/[\w-]/);return null}const c={name:"puppet",startState:function(){var e={};e.inDefinition=false;e.inInclude=false;e.continueString=false;e.pending=false;return e},token:function(e,t){if(e.eatSpace())return null;return o(e,t)}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/8768.4a80caab00174c50eb10.js b/bootcamp/share/jupyter/lab/static/8768.4a80caab00174c50eb10.js new file mode 100644 index 0000000..b500167 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/8768.4a80caab00174c50eb10.js @@ -0,0 +1,2 @@ +/*! For license information please see 8768.4a80caab00174c50eb10.js.LICENSE.txt */ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8768],{48768:(r,e,t)=>{"use strict";t.r(e);t.d(e,{ADDITIONAL_PROPERTIES_KEY:()=>Bt,ADDITIONAL_PROPERTY_FLAG:()=>zt,ALL_OF_KEY:()=>Vt,ANY_OF_KEY:()=>Yt,CONST_KEY:()=>qt,DEFAULT_KEY:()=>Kt,DEFINITIONS_KEY:()=>Jt,DEPENDENCIES_KEY:()=>Ht,ENUM_KEY:()=>Gt,ERRORS_KEY:()=>Qt,ErrorSchemaBuilder:()=>hi,ID_KEY:()=>Xt,ITEMS_KEY:()=>rn,NAME_KEY:()=>en,ONE_OF_KEY:()=>tn,PROPERTIES_KEY:()=>nn,REF_KEY:()=>un,REQUIRED_KEY:()=>on,RJSF_ADDITONAL_PROPERTIES_FLAG:()=>fn,SUBMIT_BTN_OPTIONS_KEY:()=>an,TranslatableString:()=>Bi,UI_FIELD_KEY:()=>sn,UI_OPTIONS_KEY:()=>ln,UI_WIDGET_KEY:()=>cn,allowAdditionalItems:()=>Nt,ariaDescribedByIds:()=>ki,asNumber:()=>Ut,canExpand:()=>pn,createSchemaUtils:()=>ai,dataURItoBlob:()=>ui,deepEquals:()=>dn,descriptionId:()=>Ei,englishStringTranslator:()=>si,enumOptionsDeselectValue:()=>li,enumOptionsIndexForValue:()=>pi,enumOptionsIsSelected:()=>vi,enumOptionsSelectValue:()=>di,enumOptionsValueForIndex:()=>ci,errorId:()=>Ii,examplesId:()=>Zi,findSchemaDefinition:()=>yn,getClosestMatchingOption:()=>Cn,getDefaultFormState:()=>Hn,getDisplayLabel:()=>Xn,getFirstMatchingOption:()=>bn,getInputProps:()=>mi,getMatchingOption:()=>mn,getSchemaType:()=>xn,getSubmitButtonOptions:()=>gi,getTemplate:()=>xi,getUiOptions:()=>vn,getWidget:()=>Ai,guessType:()=>gn,hasWidget:()=>_i,helpId:()=>Pi,isConstant:()=>zn,isCustomWidget:()=>Gn,isFilesArray:()=>Qn,isFixedItems:()=>Rn,isMultiSelect:()=>Vn,isObject:()=>Dt,isSelect:()=>Bn,localToUTC:()=>Ni,mergeDefaultsWithFormData:()=>$n,mergeObjects:()=>Ln,mergeSchemas:()=>wn,mergeValidationData:()=>ri,optionId:()=>Di,optionsList:()=>Fi,orderProperties:()=>Mi,pad:()=>Wi,parseDateString:()=>Ci,rangeSpec:()=>yi,replaceStringParameters:()=>fi,retrieveSchema:()=>Tn,sanitizeDataForNewSchema:()=>ti,schemaRequiresTrueValue:()=>Ri,shouldRender:()=>$i,titleId:()=>Ti,toConstant:()=>Ui,toDateString:()=>Li,toIdSchema:()=>ni,toPathSchema:()=>ii,utcToLocal:()=>zi});var n=t(86717);var i=t(11412);var o="__lodash_hash_undefined__";function a(r){this.__data__.set(r,o);return this}const u=a;function f(r){return this.__data__.has(r)}const s=f;function c(r){var e=-1,t=r==null?0:r.length;this.__data__=new i.Z;while(++eu)){return false}var s=o.get(r);var c=o.get(e);if(s&&c){return s==e&&c==r}var v=-1,d=true,b=t&m?new l:undefined;o.set(r,e);o.set(e,r);while(++vCe){return[]}var t=Re,n=$e(r,Re);e=be(e);r-=Re;var i=(0,ye.Z)(n,e);while(++t-1}const ut=at;function ft(r,e,t){var n=-1,i=r==null?0:r.length;while(++n=yt){var s=e?null:ht(r);if(s){return S(s)}a=false;i=h;f=new l}else{f=e?[]:u}r:while(++n=0)continue;t[i]=r[i]}return t}function $t(r,e){if(typeof r!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==undefined){var n=t.call(r,e||"default");if(typeof n!=="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function Lt(r){var e=$t(r,"string");return typeof e==="symbol"?e:String(e)}var zt="__additional_property";var Bt="additionalProperties";var Vt="allOf";var Yt="anyOf";var qt="const";var Kt="default";var Jt="definitions";var Ht="dependencies";var Gt="enum";var Qt="__errors";var Xt="$id";var rn="items";var en="$name";var tn="oneOf";var nn="properties";var on="required";var an="submitButtonOptions";var un="$ref";var fn="__rjsf_additionalProperties";var sn="ui:field";var cn="ui:widget";var ln="ui:options";function vn(r){if(r===void 0){r={}}return Object.keys(r).filter((function(r){return r.indexOf("ui:")===0})).reduce((function(e,t){var n;var i=r[t];if(t===cn&&Dt(i)){console.error("Setting options via ui:widget object is no longer supported, use ui:options instead");return e}if(t===ln&&Dt(i)){return Wt({},e,i)}return Wt({},e,(n={},n[t.substring(3)]=i,n))}),{})}function pn(r,e,t){if(e===void 0){e={}}if(!r.additionalProperties){return false}var n=vn(e),i=n.expandable,o=i===void 0?true:i;if(o===false){return o}if(r.maxProperties!==undefined&&t){return Object.keys(t).length0){return Wt({},o,u)}return u}return n}function mn(r,e,t,n){if(e===undefined){return 0}for(var i=0;ia){return{bestIndex:o,bestScore:f}}return i}),{bestIndex:i,bestScore:0}),u=a.bestIndex;return u}function Rn(r){return Array.isArray(r.items)&&r.items.length>0&&r.items.every((function(r){return Dt(r)}))}function $n(r,e){if(Array.isArray(e)){var t=Array.isArray(r)?r:[];var n=e.map((function(r,e){if(t[e]){return $n(t[e],r)}return r}));return n}if(Dt(e)){var i=Object.assign({},r);return Object.keys(e).reduce((function(t,n){t[n]=$n(r?(0,pr.Z)(r,n):{},(0,pr.Z)(e,n));return t}),i)}return e}function Ln(r,e,t){if(t===void 0){t=false}return Object.keys(e).reduce((function(n,i){var o=r?r[i]:{},a=e[i];if(r&&i in r&&Dt(a)){n[i]=Ln(o,a,t)}else if(t&&Array.isArray(o)&&Array.isArray(a)){var u=a;if(t==="preventDuplicates"){u=a.reduce((function(r,e){if(!o.includes(e)){r.push(e)}return r}),[])}n[i]=o.concat(u)}else{n[i]=a}return n}),Object.assign({},r))}function zn(r){return Array.isArray(r["enum"])&&r["enum"].length===1||qt in r}function Bn(r,e,t){if(t===void 0){t={}}var n=Tn(r,e,t,undefined);var i=n.oneOf||n.anyOf;if(Array.isArray(n["enum"])){return true}if(Array.isArray(i)){return i.every((function(r){return typeof r!=="boolean"&&zn(r)}))}return false}function Vn(r,e,t){if(!e.uniqueItems||!e.items||typeof e.items==="boolean"){return false}return Bn(r,e.items,t)}var Yn;(function(r){r[r["Ignore"]=0]="Ignore";r[r["Invert"]=1]="Invert";r[r["Fallback"]=2]="Fallback"})(Yn||(Yn={}));function qn(r,e,t){if(e===void 0){e=Yn.Ignore}if(t===void 0){t=-1}if(t>=0){if(Array.isArray(r.items)&&td){var h=f||[];var y=qn(u,Yn.Invert);var m=y["default"];var b=new Array(u.minItems-d).fill(Jn(r,y,m,n));return h.concat(b)}}return f?f:[]}}return f}function Hn(r,e,t,n,i){if(i===void 0){i=false}if(!Dt(e)){throw new Error("Invalid schema: "+e)}var o=Tn(r,e,n,t);var a=Jn(r,o,undefined,n,t,i);if(typeof t==="undefined"||t===null||typeof t==="number"&&isNaN(t)){return a}if(Dt(t)){return $n(a,t)}if(Array.isArray(t)){return $n(a,t)}return t}function Gn(r){if(r===void 0){r={}}return"widget"in vn(r)&&vn(r)["widget"]!=="hidden"}function Qn(r,e,t,n){if(t===void 0){t={}}if(t[cn]==="files"){return true}if(e.items){var i=Tn(r,e.items,n);return i.type==="string"&&i.format==="data-url"}return false}function Xn(r,e,t,n){if(t===void 0){t={}}var i=vn(t);var o=i.label,a=o===void 0?true:o;var u=!!a;var f=xn(e);if(f==="array"){u=Vn(r,e,n)||Qn(r,e,t,n)||Gn(t)}if(f==="object"){u=false}if(f==="boolean"&&!t[cn]){u=false}if(t[sn]){u=false}return u}function ri(r,e,t){if(!t){return e}var n=e.errors,i=e.errorSchema;var o=r.toErrorList(t);var a=t;if(!(0,dr.Z)(i)){a=Ln(i,t,true);o=[].concat(n).concat(o)}return{errorSchema:a,errors:o}}var ei=Symbol("no Value");function ti(r,e,t,n,i){if(i===void 0){i={}}var o;if((0,mr.Z)(t,nn)){var a={};if((0,mr.Z)(n,nn)){var u=(0,pr.Z)(n,nn,{});Object.keys(u).forEach((function(r){if((0,mr.Z)(i,r)){a[r]=undefined}}))}var f=Object.keys((0,pr.Z)(t,nn,{}));var s={};f.forEach((function(o){var u=(0,pr.Z)(i,o);var f=(0,pr.Z)(n,[nn,o],{});var c=(0,pr.Z)(t,[nn,o],{});if((0,mr.Z)(f,un)){f=Tn(r,f,e,u)}if((0,mr.Z)(c,un)){c=Tn(r,c,e,u)}var l=(0,pr.Z)(f,"type");var v=(0,pr.Z)(c,"type");if(!l||l===v){if((0,mr.Z)(a,o)){delete a[o]}if(v==="object"||v==="array"&&Array.isArray(u)){var p=ti(r,e,c,f,u);if(p!==undefined||v==="array"){s[o]=p}}else{var d=(0,pr.Z)(c,"default",ei);var h=(0,pr.Z)(f,"default",ei);if(d!==ei&&d!==u){if(h===u){a[o]=d}else if((0,pr.Z)(c,"readOnly")===true){a[o]=undefined}}var y=(0,pr.Z)(c,"const",ei);var m=(0,pr.Z)(f,"const",ei);if(y!==ei&&y!==u){a[o]=m===u?y:undefined}}}}));o=Wt({},i,a,s)}else if((0,pr.Z)(n,"type")==="array"&&(0,pr.Z)(t,"type")==="array"&&Array.isArray(i)){var c=(0,pr.Z)(n,"items");var l=(0,pr.Z)(t,"items");if(typeof c==="object"&&typeof l==="object"&&!Array.isArray(c)&&!Array.isArray(l)){if((0,mr.Z)(c,un)){c=Tn(r,c,e,i)}if((0,mr.Z)(l,un)){l=Tn(r,l,e,i)}var v=(0,pr.Z)(c,"type");var p=(0,pr.Z)(l,"type");if(!v||v===p){var d=(0,pr.Z)(t,"maxItems",-1);if(p==="object"){o=i.reduce((function(t,n){var i=ti(r,e,l,c,n);if(i!==undefined&&(d<0||t.length0&&i.length>d?i.slice(0,d):i}}}else if(typeof c==="boolean"&&typeof l==="boolean"&&c===l){o=i}}return o}function ni(r,e,t,n,i,o,a){if(o===void 0){o="root"}if(a===void 0){a="_"}if(un in e||Ht in e||Vt in e){var u=Tn(r,e,n,i);return ni(r,u,t,n,i,o,a)}if(rn in e&&!(0,pr.Z)(e,[rn,un])){return ni(r,(0,pr.Z)(e,rn),t,n,i,o,a)}var f=t||o;var s={$id:f};if(e.type==="object"&&nn in e){for(var c in e.properties){var l=(0,pr.Z)(e,[nn,c]);var v=s[Xt]+a+c;s[c]=ni(r,Dt(l)?l:{},v,n,(0,pr.Z)(i,[c]),o,a)}}return s}function ii(r,e,t,n,i){var o;if(t===void 0){t=""}if(un in e||Ht in e||Vt in e){var a=Tn(r,e,n,i);return ii(r,a,t,n,i)}var u=(o={},o[en]=t.replace(/^\./,""),o);if(tn in e){var f=Cn(r,n,i,e.oneOf,0);var s=e.oneOf[f];return ii(r,s,t,n,i)}if(Yt in e){var c=Cn(r,n,i,e.anyOf,0);var l=e.anyOf[c];return ii(r,l,t,n,i)}if(Bt in e&&e[Bt]!==false){(0,Be.Z)(u,fn,true)}if(rn in e&&Array.isArray(i)){i.forEach((function(i,o){u[o]=ii(r,e.items,t+"."+o,n,i)}))}else if(nn in e){for(var v in e.properties){var p=(0,pr.Z)(e,[nn,v]);u[v]=ii(r,p,t+"."+v,n,(0,pr.Z)(i,[v]))}}return u}var oi=function(){function r(r,e){this.rootSchema=void 0;this.validator=void 0;this.rootSchema=e;this.validator=r}var e=r.prototype;e.getValidator=function r(){return this.validator};e.doesSchemaUtilsDiffer=function r(e,t){if(!e||!t){return false}return this.validator!==e||!dn(this.rootSchema,t)};e.getDefaultFormState=function r(e,t,n){if(n===void 0){n=false}return Hn(this.validator,e,t,this.rootSchema,n)};e.getDisplayLabel=function r(e,t){return Xn(this.validator,e,t,this.rootSchema)};e.getClosestMatchingOption=function r(e,t,n){return Cn(this.validator,this.rootSchema,e,t,n)};e.getFirstMatchingOption=function r(e,t){return bn(this.validator,e,t,this.rootSchema)};e.getMatchingOption=function r(e,t){return mn(this.validator,e,t,this.rootSchema)};e.isFilesArray=function r(e,t){return Qn(this.validator,e,t,this.rootSchema)};e.isMultiSelect=function r(e){return Vn(this.validator,e,this.rootSchema)};e.isSelect=function r(e){return Bn(this.validator,e,this.rootSchema)};e.mergeValidationData=function r(e,t){return ri(this.validator,e,t)};e.retrieveSchema=function r(e,t){return Tn(this.validator,e,this.rootSchema,t)};e.sanitizeDataForNewSchema=function r(e,t,n){return ti(this.validator,this.rootSchema,e,t,n)};e.toIdSchema=function r(e,t,n,i,o){if(i===void 0){i="root"}if(o===void 0){o="_"}return ni(this.validator,e,t,this.rootSchema,n,i,o)};e.toPathSchema=function r(e,t,n){return ii(this.validator,e,t,this.rootSchema,n)};return r}();function ai(r,e){return new oi(r,e)}function ui(r){var e=r.split(",");var t=e[0].split(";");var n=t[0].replace("data:","");var i=t.filter((function(r){return r.split("=")[0]==="name"}));var o;if(i.length!==1){o="unknown"}else{o=decodeURI(i[0].split("=")[1])}try{var a=atob(e[1]);var u=[];for(var f=0;f=0){n[t]=r}}));t=n.join("")}return t}function si(r,e){return fi(r,e)}function ci(r,e,t){if(e===void 0){e=[]}if(Array.isArray(r)){return r.map((function(r){return ci(r,e)})).filter((function(r){return r}))}var n=r===""||r===null?-1:Number(r);var i=e[n];return i?i.value:t}function li(r,e,t){if(t===void 0){t=[]}var n=ci(r,t);if(Array.isArray(e)){return e.filter((function(r){return!At(r,n)}))}return At(n,e)?undefined:e}function vi(r,e){if(Array.isArray(e)){return e.some((function(e){return At(e,r)}))}return At(e,r)}function pi(r,e,t){if(e===void 0){e=[]}if(t===void 0){t=false}var n=e.map((function(e,t){return vi(e.value,r)?String(t):undefined})).filter((function(r){return typeof r!=="undefined"}));if(!t){return n[0]}return n}function di(r,e,t){if(t===void 0){t=[]}var n=ci(r,t);if(n){var i=t.findIndex((function(r){return n===r.value}));var o=t.map((function(r){var e=r.value;return e}));var a=e.slice(0,i).concat(n,e.slice(i));return a.sort((function(r,e){return Number(o.indexOf(r)>o.indexOf(e))}))}return e}var hi=function(){function r(r){this.errorSchema={};this.resetAllErrors(r)}var e=r.prototype;e.getOrCreateErrorBlock=function r(e){var t=Array.isArray(e)&&e.length>0||typeof e==="string";var n=t?(0,pr.Z)(this.errorSchema,e):this.errorSchema;if(!n&&e){n={};(0,Be.Z)(this.errorSchema,e,n)}return n};e.resetAllErrors=function r(e){this.errorSchema=e?Zt(e):{};return this};e.addErrors=function r(e,t){var n=this.getOrCreateErrorBlock(t);var i=(0,pr.Z)(n,Qt);if(!Array.isArray(i)){i=[];n[Qt]=i}if(Array.isArray(e)){var o;(o=i).push.apply(o,e)}else{i.push(e)}return this};e.setErrors=function r(e,t){var n=this.getOrCreateErrorBlock(t);var i=Array.isArray(e)?[].concat(e):[e];(0,Be.Z)(n,Qt,i);return this};e.clearErrors=function r(e){var t=this.getOrCreateErrorBlock(e);(0,Be.Z)(t,Qt,[]);return this};Mt(r,[{key:"ErrorSchema",get:function r(){return this.errorSchema}}]);return r}();function yi(r){var e={};if(r.multipleOf){e.step=r.multipleOf}if(r.minimum||r.minimum===0){e.min=r.minimum}if(r.maximum||r.maximum===0){e.max=r.maximum}return e}function mi(r,e,t,n){if(t===void 0){t={}}if(n===void 0){n=true}var i=Wt({type:e||"text"},yi(r));if(t.inputType){i.type=t.inputType}else if(!e){if(r.type==="number"){i.type="number";if(n&&i.step===undefined){i.step="any"}}else if(r.type==="integer"){i.type="number";if(i.step===undefined){i.step=1}}}if(t.autocomplete){i.autoComplete=t.autocomplete}return i}var bi={props:{disabled:false},submitText:"Submit",norender:false};function gi(r){if(r===void 0){r={}}var e=vn(r);if(e&&e[an]){var t=e[an];return Wt({},bi,t)}return bi}function xi(r,e,t){if(t===void 0){t={}}var n=e.templates;if(r==="ButtonTemplates"){return n[r]}return t[r]||n[r]}var wi=["options"];var ji={boolean:{checkbox:"CheckboxWidget",radio:"RadioWidget",select:"SelectWidget",hidden:"HiddenWidget"},string:{text:"TextWidget",password:"PasswordWidget",email:"EmailWidget",hostname:"TextWidget",ipv4:"TextWidget",ipv6:"TextWidget",uri:"URLWidget","data-url":"FileWidget",radio:"RadioWidget",select:"SelectWidget",textarea:"TextareaWidget",hidden:"HiddenWidget",date:"DateWidget",datetime:"DateTimeWidget","date-time":"DateTimeWidget","alt-date":"AltDateWidget","alt-datetime":"AltDateTimeWidget",color:"ColorWidget",file:"FileWidget"},number:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},integer:{text:"TextWidget",select:"SelectWidget",updown:"UpDownWidget",range:"RangeWidget",radio:"RadioWidget",hidden:"HiddenWidget"},array:{select:"SelectWidget",checkboxes:"CheckboxesWidget",files:"FileWidget",hidden:"HiddenWidget"}};function Oi(r){var e=(0,pr.Z)(r,"MergedWidget");if(!e){var t=r.defaultProps&&r.defaultProps.options||{};e=function e(n){var i=n.options,o=Rt(n,wi);return(0,Pt.jsx)(r,Wt({options:Wt({},t,i)},o))};(0,Be.Z)(r,"MergedWidget",e)}return e}function Ai(r,e,t){if(t===void 0){t={}}var n=xn(r);if(typeof e==="function"||e&&kt.isForwardRef((0,Tt.createElement)(e))||kt.isMemo(e)){return Oi(e)}if(typeof e!=="string"){throw new Error("Unsupported widget definition: "+typeof e)}if(e in t){var i=t[e];return Ai(r,i,t)}if(typeof n==="string"){if(!(n in ji)){throw new Error("No widget for type '"+n+"'")}if(e in ji[n]){var o=t[ji[n][e]];return Ai(r,o,t)}}throw new Error("No widget '"+e+"' for type '"+n+"'")}function _i(r,e,t){if(t===void 0){t={}}try{Ai(r,e,t);return true}catch(i){var n=i;if(n.message&&(n.message.startsWith("No widget")||n.message.startsWith("Unsupported widget"))){return false}throw i}}function Si(r,e){var t=jr(r)?r:r[Xt];return t+"__"+e}function Ei(r){return Si(r,"description")}function Ii(r){return Si(r,"error")}function Zi(r){return Si(r,"examples")}function Pi(r){return Si(r,"help")}function Ti(r){return Si(r,"title")}function ki(r,e){if(e===void 0){e=false}var t=e?" "+Zi(r):"";return Ii(r)+" "+Ei(r)+" "+Pi(r)+t}function Di(r,e){return r+"-"+e}function Ni(r){return r?new Date(r).toJSON():undefined}function Ui(r){if(Gt in r&&Array.isArray(r["enum"])&&r["enum"].length===1){return r["enum"][0]}if(qt in r){return r["const"]}throw new Error("schema cannot be inferred as a constant")}function Fi(r){var e=r;if(e.enumNames&&"production"!=="production"){}if(r["enum"]){return r["enum"].map((function(r,t){var n=e.enumNames&&e.enumNames[t]||String(r);return{label:n,value:r}}))}var t=r.oneOf||r.anyOf;return t&&t.map((function(r){var e=r;var t=Ui(e);var n=e.title||String(t);return{schema:e,label:n,value:t}}))}function Mi(r,e){if(!Array.isArray(e)){return r}var t=function r(e){return e.reduce((function(r,e){r[e]=true;return r}),{})};var n=function r(e){return e.length>1?"properties '"+e.join("', '")+"'":"property '"+e[0]+"'"};var i=t(r);var o=e.filter((function(r){return r==="*"||i[r]}));var a=t(o);var u=r.filter((function(r){return!a[r]}));var f=o.indexOf("*");if(f===-1){if(u.length){throw new Error("uiSchema order list does not contain "+n(u))}return o}if(f!==o.lastIndexOf("*")){throw new Error("uiSchema order list contains more than one wildcard item")}var s=[].concat(o);s.splice.apply(s,[f,1].concat(u));return s}function Wi(r,e){var t=String(r);while(t.length{"use strict";var n=t(14653),i=t(59158),o=t(79882);var a=Math.pow(2,31)-1;function u(r,e){var t=1,n;if(r===0){return e}if(e===0){return r}while(r%2===0&&e%2===0){r=r/2;e=e/2;t=t*2}while(r%2===0){r=r/2}while(e){while(e%2===0){e=e/2}if(r>e){n=e;e=r;r=n}e=e-r}return t*r}function f(r,e){var t=0,n;if(r===0){return e}if(e===0){return r}while((r&1)===0&&(e&1)===0){r>>>=1;e>>>=1;t++}while((r&1)===0){r>>>=1}while(e){while((e&1)===0){e>>>=1}if(r>e){n=e;e=r;r=n}e=e-r}return r<1){s=e[0];t=e[1];if(!o(t)){throw new TypeError("gcd()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}}else{s=e[0]}c=s.length;if(c<2){return null}if(t){l=new Array(c);for(p=0;p{"use strict";var n=t(21252),i=t(14653),o=t(59158),a=t(79882);function u(){var r=arguments.length,e,t,u,f,s,c,l;e=new Array(r);for(l=0;l1){u=e[0];t=e[1];if(!a(t)){throw new TypeError("lcm()::invalid input argument. Accessor must be a function. Value: `"+t+"`.")}}else{u=e[0]}f=u.length;if(f<2){return null}if(t){s=new Array(f);for(l=0;l{var n=t(18446);var i=t(89734);var o=t(44908);var a=t(87185);var u=t(91747);var f=t(33856);var s=t(68630);var c=t(51584);var l=r=>Array.isArray(r)?r:[r];var v=r=>r===undefined;var p=r=>s(r)||Array.isArray(r)?Object.keys(r):[];var d=(r,e)=>r.hasOwnProperty(e);var h=r=>i(o(r));var y=r=>v(r)||Array.isArray(r)&&r.length===0;var m=(r,e,t,n)=>e&&d(e,t)&&r&&d(r,t)&&n(r[t],e[t]);var b=(r,e)=>v(r)&&e===0||v(e)&&r===0||n(r,e);var g=(r,e)=>v(r)&&e===false||v(e)&&r===false||n(r,e);var x=r=>v(r)||n(r,{})||r===true;var w=r=>v(r)||n(r,{});var j=r=>v(r)||s(r)||r===true||r===false;function O(r,e){if(y(r)&&y(e)){return true}else{return n(h(r),h(e))}}function A(r,e){r=l(r);e=l(e);return n(h(r),h(e))}function _(r,e,t,i){var a=o(p(r).concat(p(e)));if(w(r)&&w(e)){return true}else if(w(r)&&p(e).length){return false}else if(w(e)&&p(r).length){return false}return a.every((function(t){var o=r[t];var a=e[t];if(Array.isArray(o)&&Array.isArray(a)){return n(h(r),h(e))}else if(Array.isArray(o)&&!Array.isArray(a)){return false}else if(Array.isArray(a)&&!Array.isArray(o)){return false}return m(r,e,t,i)}))}function S(r,e,t,i){if(s(r)&&s(e)){return i(r,e)}else if(Array.isArray(r)&&Array.isArray(e)){return _(r,e,t,i)}else{return n(r,e)}}function E(r,e,t,n){var i=a(r,n);var o=a(e,n);var u=f(i,o,n);return u.length===Math.max(i.length,o.length)}var I={title:n,uniqueItems:g,minLength:b,minItems:b,minProperties:b,required:O,enum:O,type:A,items:S,anyOf:E,allOf:E,oneOf:E,properties:_,patternProperties:_,dependencies:_};var Z=["properties","patternProperties","dependencies","uniqueItems","minLength","minItems","minProperties","required"];var P=["additionalProperties","additionalItems","contains","propertyNames","not"];function T(r,e,t){t=u(t,{ignore:[]});if(x(r)&&x(e)){return true}if(!j(r)||!j(e)){throw new Error("Either of the values are not a JSON schema.")}if(r===e){return true}if(c(r)&&c(e)){return r===e}if(r===undefined&&e===false||e===undefined&&r===false){return false}if(v(r)&&!v(e)||!v(r)&&v(e)){return false}var i=o(Object.keys(r).concat(Object.keys(e)));if(t.ignore.length){i=i.filter((r=>t.ignore.indexOf(r)===-1))}if(!i.length){return true}function a(r,e){return T(r,e,t)}return i.every((function(i){var o=r[i];var u=e[i];if(P.indexOf(i)!==-1){return T(o,u,t)}var f=I[i];if(!f){f=n}if(n(o,u)){return true}if(Z.indexOf(i)===-1){if(!d(r,i)&&d(e,i)||d(r,i)&&!d(e,i)){return o===u}}var s=f(o,u,i,a);if(!c(s)){throw new Error("Comparer must return true or false")}return s}))}r.exports=T},68906:(r,e,t)=>{const n=t(85564);const i=t(42348);const o=t(68630);const a=t(44908);const u=t(87185);const f=t(82569);function s(r){for(const e in r){if(v(r,e)&&y(r[e])){delete r[e]}}return r}const c=r=>a(i(r.map(p)));const l=(r,e)=>r.map((r=>r&&r[e]));const v=(r,e)=>Object.prototype.hasOwnProperty.call(r,e);const p=r=>{if(o(r)||Array.isArray(r)){return Object.keys(r)}else{return[]}};const d=r=>r!==undefined;const h=r=>o(r)||r===true||r===false;const y=r=>!p(r).length&&r!==false&&r!==true;const m=(r,...e)=>f.apply(null,[r].concat(n(e)));r.exports={allUniqueKeys:c,deleteUndefinedProps:s,getValues:l,has:v,isEmptySchema:y,isSchema:h,keys:p,notUndefined:d,uniqWith:u,withoutArr:m}},51016:(r,e,t)=>{const n=t(36602);const i=t(84486);const{allUniqueKeys:o,deleteUndefinedProps:a,has:u,isSchema:f,notUndefined:s,uniqWith:c}=t(68906);function l(r){i(r,(function(e,t){if(e===false){r.splice(t,1)}}))}function v(r,e){return r.map((function(r){if(!r){return undefined}if(Array.isArray(r.items)){const t=r.items[e];if(f(t)){return t}else if(u(r,"additionalItems")){return r.additionalItems}}else{return r.items}return undefined}))}function p(r){return r.map((function(r){if(!r){return undefined}if(Array.isArray(r.items)){return r.additionalItems}return r.items}))}function d(r,e,t){const i=o(t);return i.reduce((function(t,i){const o=v(r,i);const a=c(o.filter(s),n);t[i]=e(a,i);return t}),[])}r.exports={keywords:["items","additionalItems"],resolver(r,e,t){const n=r.map((r=>r.items));const i=n.filter(s);const o={};if(i.every(f)){o.items=t.items(n)}else{o.items=d(r,t.items,n)}let u;if(i.every(Array.isArray)){u=r.map((r=>r.additionalItems))}else if(i.some(Array.isArray)){u=p(r)}if(u){o.additionalItems=t.additionalItems(u)}if(o.additionalItems===false&&Array.isArray(o.items)){l(o.items)}return a(o)}}},11915:(r,e,t)=>{const n=t(36602);const i=t(84486);const{allUniqueKeys:o,deleteUndefinedProps:a,getValues:u,keys:f,notUndefined:s,uniqWith:c,withoutArr:l}=t(68906);function v(r){i(r,(function(e,t){if(e===false){delete r[t]}}))}function p(r,e){const t=o(r);return t.reduce((function(t,i){const o=u(r,i);const a=c(o.filter(s),n);t[i]=e(a,i);return t}),{})}r.exports={keywords:["properties","patternProperties","additionalProperties"],resolver(r,e,t,n){if(!n.ignoreAdditionalProperties){r.forEach((function(e){const n=r.filter((r=>r!==e));const i=f(e.properties);const o=f(e.patternProperties);const a=o.map((r=>new RegExp(r)));n.forEach((function(r){const n=f(r.properties);const o=n.filter((r=>a.some((e=>e.test(r)))));const u=l(n,i,o);u.forEach((function(n){r.properties[n]=t.properties([r.properties[n],e.additionalProperties],n)}))}))}));r.forEach((function(e){const t=r.filter((r=>r!==e));const n=f(e.patternProperties);if(e.additionalProperties===false){t.forEach((function(r){const e=f(r.patternProperties);const t=l(e,n);t.forEach((e=>delete r.patternProperties[e]))}))}}))}const i={additionalProperties:t.additionalProperties(r.map((r=>r.additionalProperties))),patternProperties:p(r.map((r=>r.patternProperties)),t.patternProperties),properties:p(r.map((r=>r.properties)),t.properties)};if(i.additionalProperties===false){v(i.properties)}return a(i)}}},19830:(r,e,t)=>{const n=t(50361);const i=t(36602);const o=t(61735);const a=t(66913);const u=t(85564);const f=t(42348);const s=t(25325);const c=t(33856);const l=t(18446);const v=t(68630);const p=t(45604);const d=t(89734);const h=t(44908);const y=t(87185);const m=t(11915);const b=t(51016);const g=(r,e)=>r.indexOf(e)!==-1;const x=r=>v(r)||r===true||r===false;const w=r=>r===false;const j=r=>r===true;const O=(r,e,t)=>t(r);const A=r=>d(h(f(r)));const _=r=>r!==undefined;const S=r=>h(f(r.map(M)));const E=r=>r[0];const I=r=>A(r);const Z=r=>Math.max.apply(Math,r);const P=r=>Math.min.apply(Math,r);const T=r=>r.some(j);const k=r=>y(u(r),l);function D(r){return function(e,t){return i({[r]:e},{[r]:t})}}function N(r){let{allOf:e=[],...t}=r;t=v(r)?t:r;return[t,...e.map(N)]}function U(r,e){return r.map((r=>r&&r[e]))}function F(r,e){return r.map((function(r,t){try{return e(r,t)}catch(n){return undefined}})).filter(_)}function M(r){if(v(r)||Array.isArray(r)){return Object.keys(r)}else{return[]}}function W(r,e){e=e||[];if(!r.length){return e}const t=r.slice(0).shift();const n=r.slice(1);if(e.length){return W(n,u(e.map((r=>t.map((e=>[e].concat(r)))))))}return W(n,t.map((r=>r)))}function C(r,e){let t;try{t=r.map((function(r){return JSON.stringify(r,null,2)})).join("\n")}catch(n){t=r.join(", ")}throw new Error('Could not resolve values for path:"'+e.join(".")+'". They are probably incompatible. Values: \n'+t)}function R(r,e,t,n,o,a){if(r.length){const u=o.complexResolvers[e];if(!u||!u.resolver){throw new Error("No resolver found for "+e)}const f=t.map((e=>r.reduce(((r,t)=>{if(e[t]!==undefined)r[t]=e[t];return r}),{})));const s=y(f,i);const c=u.keywords.reduce(((r,e)=>({...r,[e]:(r,t=[])=>n(r,null,a.concat(e,t))})),{});const l=u.resolver(s,a.concat(e),c,o);if(!v(l)){C(s,a.concat(e))}return l}}function $(r){return{required:r}}const L=["properties","patternProperties","definitions","dependencies"];const z=["anyOf","oneOf"];const B=["additionalProperties","additionalItems","contains","propertyNames","not","items"];const V={type(r){if(r.some(Array.isArray)){const e=r.map((function(r){return Array.isArray(r)?r:[r]}));const t=s.apply(null,e);if(t.length===1){return t[0]}else if(t.length>1){return h(t)}}},dependencies(r,e,t){const n=S(r);return n.reduce((function(e,n){const o=U(r,n);let a=y(o.filter(_),l);const u=a.filter(Array.isArray);if(u.length){if(u.length===a.length){e[n]=A(a)}else{const r=a.filter(x);const i=u.map($);e[n]=t(r.concat(i),n)}return e}a=y(a,i);e[n]=t(a,n);return e}),{})},oneOf(r,e,t){const o=W(n(r));const a=F(o,t);const u=y(a,i);if(u.length){return u}},not(r){return{anyOf:r}},pattern(r){return r.map((r=>"(?="+r+")")).join("")},multipleOf(r){let e=r.slice(0);let t=1;while(e.some((r=>!Number.isInteger(r)))){e=e.map((r=>r*10));t=t*10}return o(e)/t},enum(r){const e=c.apply(null,r.concat(l));if(e.length){return d(e)}}};V.$id=E;V.$ref=E;V.$schema=E;V.additionalItems=O;V.additionalProperties=O;V.anyOf=V.oneOf;V.contains=O;V.default=E;V.definitions=V.dependencies;V.description=E;V.examples=k;V.exclusiveMaximum=P;V.exclusiveMinimum=Z;V.items=b;V.maximum=P;V.maxItems=P;V.maxLength=P;V.maxProperties=P;V.minimum=Z;V.minItems=Z;V.minLength=Z;V.minProperties=Z;V.properties=m;V.propertyNames=O;V.required=I;V.title=E;V.uniqueItems=T;const Y={properties:m,items:b};function q(r,e,t){t=t||[];e=a(e,{ignoreAdditionalProperties:false,resolvers:V,complexResolvers:Y,deep:true});const i=Object.entries(e.complexResolvers);function o(r,a,u){r=n(r.filter(_));u=u||[];const f=v(a)?a:{};if(!r.length){return}if(r.some(w)){return false}if(r.every(j)){return true}r=r.filter(v);const s=S(r);if(e.deep&&g(s,"allOf")){return q({allOf:r},e,t)}const c=i.map((([r,e])=>s.filter((r=>e.keywords.includes(r)))));c.forEach((r=>p(s,r)));s.forEach((function(t){const n=U(r,t);const i=y(n.filter(_),D(t));if(i.length===1&&g(z,t)){f[t]=i[0].map((r=>o([r],r)))}else if(i.length===1&&!g(L,t)&&!g(B,t)){f[t]=i[0]}else{const r=e.resolvers[t]||e.resolvers.defaultResolver;if(!r)throw new Error("No resolver found for key "+t+". You can provide a resolver for this keyword in the options, or provide a default resolver.");const n=(r,e=[])=>o(r,null,u.concat(t,e));f[t]=r(i,u.concat(t),n,e);if(f[t]===undefined){C(i,u.concat(t))}else if(f[t]===undefined){delete f[t]}}}));return i.reduce(((t,[n,i],a)=>({...t,...R(c[a],n,r,o,e,u)})),f)}const u=f(N(r));const s=o(u);return s}q.options={resolvers:V};r.exports=q},89038:(r,e)=>{var t=/~/;var n=/~[01]/g;function i(r){switch(r){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+r)}function o(r){if(!t.test(r))return r;return r.replace(n,i)}function a(r,e,t){var n;var i;for(var a=1,u=e.length;aa;if(typeof r[n]==="undefined"){if(Array.isArray(r)&&n==="-"){n=r.length}if(i){if(e[a]!==""&&e[a]{var n=t(10852),i=t(55639);var o=n(i,"DataView");r.exports=o},1989:(r,e,t)=>{var n=t(51789),i=t(80401),o=t(57667),a=t(21327),u=t(81866);function f(r){var e=-1,t=r==null?0:r.length;this.clear();while(++e{var n=t(27040),i=t(14125),o=t(82117),a=t(67518),u=t(54705);function f(r){var e=-1,t=r==null?0:r.length;this.clear();while(++e{var n=t(10852),i=t(55639);var o=n(i,"Map");r.exports=o},83369:(r,e,t)=>{var n=t(24785),i=t(11285),o=t(96e3),a=t(49916),u=t(95265);function f(r){var e=-1,t=r==null?0:r.length;this.clear();while(++e{var n=t(10852),i=t(55639);var o=n(i,"Promise");r.exports=o},58525:(r,e,t)=>{var n=t(10852),i=t(55639);var o=n(i,"Set");r.exports=o},88668:(r,e,t)=>{var n=t(83369),i=t(90619),o=t(72385);function a(r){var e=-1,t=r==null?0:r.length;this.__data__=new n;while(++e{var n=t(38407),i=t(37465),o=t(63779),a=t(67599),u=t(44758),f=t(34309);function s(r){var e=this.__data__=new n(r);this.size=e.size}s.prototype.clear=i;s.prototype["delete"]=o;s.prototype.get=a;s.prototype.has=u;s.prototype.set=f;r.exports=s},62705:(r,e,t)=>{var n=t(55639);var i=n.Symbol;r.exports=i},11149:(r,e,t)=>{var n=t(55639);var i=n.Uint8Array;r.exports=i},70577:(r,e,t)=>{var n=t(10852),i=t(55639);var o=n(i,"WeakMap");r.exports=o},96874:r=>{function e(r,e,t){switch(t.length){case 0:return r.call(e);case 1:return r.call(e,t[0]);case 2:return r.call(e,t[0],t[1]);case 3:return r.call(e,t[0],t[1],t[2])}return r.apply(e,t)}r.exports=e},77412:r=>{function e(r,e){var t=-1,n=r==null?0:r.length;while(++t{function e(r,e){var t=-1,n=r==null?0:r.length,i=0,o=[];while(++t{var n=t(42118);function i(r,e){var t=r==null?0:r.length;return!!t&&n(r,e,0)>-1}r.exports=i},1196:r=>{function e(r,e,t){var n=-1,i=r==null?0:r.length;while(++n{var n=t(22545),i=t(35694),o=t(1469),a=t(44144),u=t(65776),f=t(36719);var s=Object.prototype;var c=s.hasOwnProperty;function l(r,e){var t=o(r),s=!t&&i(r),l=!t&&!s&&a(r),v=!t&&!s&&!l&&f(r),p=t||s||l||v,d=p?n(r.length,String):[],h=d.length;for(var y in r){if((e||c.call(r,y))&&!(p&&(y=="length"||l&&(y=="offset"||y=="parent")||v&&(y=="buffer"||y=="byteLength"||y=="byteOffset")||u(y,h)))){d.push(y)}}return d}r.exports=l},29932:r=>{function e(r,e){var t=-1,n=r==null?0:r.length,i=Array(n);while(++t{function e(r,e){var t=-1,n=e.length,i=r.length;while(++t{function e(r,e){var t=-1,n=r==null?0:r.length;while(++t{var n=t(89465),i=t(77813);function o(r,e,t){if(t!==undefined&&!i(r[e],t)||t===undefined&&!(e in r)){n(r,e,t)}}r.exports=o},34865:(r,e,t)=>{var n=t(89465),i=t(77813);var o=Object.prototype;var a=o.hasOwnProperty;function u(r,e,t){var o=r[e];if(!(a.call(r,e)&&i(o,t))||t===undefined&&!(e in r)){n(r,e,t)}}r.exports=u},18470:(r,e,t)=>{var n=t(77813);function i(r,e){var t=r.length;while(t--){if(n(r[t][0],e)){return t}}return-1}r.exports=i},44037:(r,e,t)=>{var n=t(98363),i=t(3674);function o(r,e){return r&&n(e,i(e),r)}r.exports=o},63886:(r,e,t)=>{var n=t(98363),i=t(81704);function o(r,e){return r&&n(e,i(e),r)}r.exports=o},89465:(r,e,t)=>{var n=t(38777);function i(r,e,t){if(e=="__proto__"&&n){n(r,e,{configurable:true,enumerable:true,value:t,writable:true})}else{r[e]=t}}r.exports=i},85990:(r,e,t)=>{var n=t(46384),i=t(77412),o=t(34865),a=t(44037),u=t(63886),f=t(64626),s=t(278),c=t(18805),l=t(78133),v=t(58234),p=t(46904),d=t(64160),h=t(43824),y=t(29148),m=t(38517),b=t(1469),g=t(44144),x=t(56688),w=t(13218),j=t(72928),O=t(3674),A=t(81704);var _=1,S=2,E=4;var I="[object Arguments]",Z="[object Array]",P="[object Boolean]",T="[object Date]",k="[object Error]",D="[object Function]",N="[object GeneratorFunction]",U="[object Map]",F="[object Number]",M="[object Object]",W="[object RegExp]",C="[object Set]",R="[object String]",$="[object Symbol]",L="[object WeakMap]";var z="[object ArrayBuffer]",B="[object DataView]",V="[object Float32Array]",Y="[object Float64Array]",q="[object Int8Array]",K="[object Int16Array]",J="[object Int32Array]",H="[object Uint8Array]",G="[object Uint8ClampedArray]",Q="[object Uint16Array]",X="[object Uint32Array]";var rr={};rr[I]=rr[Z]=rr[z]=rr[B]=rr[P]=rr[T]=rr[V]=rr[Y]=rr[q]=rr[K]=rr[J]=rr[U]=rr[F]=rr[M]=rr[W]=rr[C]=rr[R]=rr[$]=rr[H]=rr[G]=rr[Q]=rr[X]=true;rr[k]=rr[D]=rr[L]=false;function er(r,e,t,Z,P,T){var k,U=e&_,F=e&S,W=e&E;if(t){k=P?t(r,Z,P,T):t(r)}if(k!==undefined){return k}if(!w(r)){return r}var C=b(r);if(C){k=h(r);if(!U){return s(r,k)}}else{var R=d(r),$=R==D||R==N;if(g(r)){return f(r,U)}if(R==M||R==I||$&&!P){k=F||$?{}:m(r);if(!U){return F?l(r,u(k,r)):c(r,a(k,r))}}else{if(!rr[R]){return P?r:{}}k=y(r,R,U)}}T||(T=new n);var L=T.get(r);if(L){return L}T.set(r,k);if(j(r)){r.forEach((function(n){k.add(er(n,e,t,n,r,T))}))}else if(x(r)){r.forEach((function(n,i){k.set(i,er(n,e,t,i,r,T))}))}var z=W?F?p:v:F?A:O;var B=C?undefined:z(r);i(B||r,(function(n,i){if(B){i=n;n=r[i]}o(k,i,er(n,e,t,i,r,T))}));return k}r.exports=er},3118:(r,e,t)=>{var n=t(13218);var i=Object.create;var o=function(){function r(){}return function(e){if(!n(e)){return{}}if(i){return i(e)}r.prototype=e;var t=new r;r.prototype=undefined;return t}}();r.exports=o},20731:(r,e,t)=>{var n=t(88668),i=t(47443),o=t(1196),a=t(29932),u=t(7518),f=t(74757);var s=200;function c(r,e,t,c){var l=-1,v=i,p=true,d=r.length,h=[],y=e.length;if(!d){return h}if(t){e=a(e,u(t))}if(c){v=o;p=false}else if(e.length>=s){v=f;p=false;e=new n(e)}r:while(++l{var n=t(47816),i=t(99291);var o=i(n);r.exports=o},41848:r=>{function e(r,e,t,n){var i=r.length,o=t+(n?1:-1);while(n?o--:++o{var n=t(62488),i=t(37285);function o(r,e,t,a,u){var f=-1,s=r.length;t||(t=i);u||(u=[]);while(++f0&&t(c)){if(e>1){o(c,e-1,t,a,u)}else{n(u,c)}}else if(!a){u[u.length]=c}}return u}r.exports=o},28483:(r,e,t)=>{var n=t(25063);var i=n();r.exports=i},47816:(r,e,t)=>{var n=t(28483),i=t(3674);function o(r,e){return r&&n(r,e,i)}r.exports=o},97786:(r,e,t)=>{var n=t(71811),i=t(40327);function o(r,e){e=n(e,r);var t=0,o=e.length;while(r!=null&&t{var n=t(62488),i=t(1469);function o(r,e,t){var o=e(r);return i(r)?o:n(o,t(r))}r.exports=o},44239:(r,e,t)=>{var n=t(62705),i=t(89607),o=t(2333);var a="[object Null]",u="[object Undefined]";var f=n?n.toStringTag:undefined;function s(r){if(r==null){return r===undefined?u:a}return f&&f in Object(r)?i(r):o(r)}r.exports=s},13:r=>{function e(r,e){return r!=null&&e in Object(r)}r.exports=e},42118:(r,e,t)=>{var n=t(41848),i=t(62722),o=t(42351);function a(r,e,t){return e===e?o(r,e,t):n(r,i,t)}r.exports=a},74221:r=>{function e(r,e,t,n){var i=t-1,o=r.length;while(++i{var n=t(88668),i=t(47443),o=t(1196),a=t(29932),u=t(7518),f=t(74757);var s=Math.min;function c(r,e,t){var c=t?o:i,l=r[0].length,v=r.length,p=v,d=Array(v),h=Infinity,y=[];while(p--){var m=r[p];if(p&&e){m=a(m,u(e))}h=s(m.length,h);d[p]=!t&&(e||l>=120&&m.length>=120)?new n(p&&m):undefined}m=r[0];var b=-1,g=d[0];r:while(++b{var n=t(44239),i=t(37005);var o="[object Arguments]";function a(r){return i(r)&&n(r)==o}r.exports=a},90939:(r,e,t)=>{var n=t(2492),i=t(37005);function o(r,e,t,a,u){if(r===e){return true}if(r==null||e==null||!i(r)&&!i(e)){return r!==r&&e!==e}return n(r,e,t,a,o,u)}r.exports=o},2492:(r,e,t)=>{var n=t(46384),i=t(67114),o=t(18351),a=t(16096),u=t(64160),f=t(1469),s=t(44144),c=t(36719);var l=1;var v="[object Arguments]",p="[object Array]",d="[object Object]";var h=Object.prototype;var y=h.hasOwnProperty;function m(r,e,t,h,m,b){var g=f(r),x=f(e),w=g?p:u(r),j=x?p:u(e);w=w==v?d:w;j=j==v?d:j;var O=w==d,A=j==d,_=w==j;if(_&&s(r)){if(!s(e)){return false}g=true;O=false}if(_&&!O){b||(b=new n);return g||c(r)?i(r,e,t,h,m,b):o(r,e,w,t,h,m,b)}if(!(t&l)){var S=O&&y.call(r,"__wrapped__"),E=A&&y.call(e,"__wrapped__");if(S||E){var I=S?r.value():r,Z=E?e.value():e;b||(b=new n);return m(I,Z,t,h,b)}}if(!_){return false}b||(b=new n);return a(r,e,t,h,m,b)}r.exports=m},25588:(r,e,t)=>{var n=t(64160),i=t(37005);var o="[object Map]";function a(r){return i(r)&&n(r)==o}r.exports=a},2958:(r,e,t)=>{var n=t(46384),i=t(90939);var o=1,a=2;function u(r,e,t,u){var f=t.length,s=f,c=!u;if(r==null){return!s}r=Object(r);while(f--){var l=t[f];if(c&&l[2]?l[1]!==r[l[0]]:!(l[0]in r)){return false}}while(++f{function e(r){return r!==r}r.exports=e},28458:(r,e,t)=>{var n=t(23560),i=t(15346),o=t(13218),a=t(80346);var u=/[\\^$.*+?()[\]{}|]/g;var f=/^\[object .+?Constructor\]$/;var s=Function.prototype,c=Object.prototype;var l=s.toString;var v=c.hasOwnProperty;var p=RegExp("^"+l.call(v).replace(u,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(r){if(!o(r)||i(r)){return false}var e=n(r)?p:f;return e.test(a(r))}r.exports=d},29221:(r,e,t)=>{var n=t(64160),i=t(37005);var o="[object Set]";function a(r){return i(r)&&n(r)==o}r.exports=a},38749:(r,e,t)=>{var n=t(44239),i=t(41780),o=t(37005);var a="[object Arguments]",u="[object Array]",f="[object Boolean]",s="[object Date]",c="[object Error]",l="[object Function]",v="[object Map]",p="[object Number]",d="[object Object]",h="[object RegExp]",y="[object Set]",m="[object String]",b="[object WeakMap]";var g="[object ArrayBuffer]",x="[object DataView]",w="[object Float32Array]",j="[object Float64Array]",O="[object Int8Array]",A="[object Int16Array]",_="[object Int32Array]",S="[object Uint8Array]",E="[object Uint8ClampedArray]",I="[object Uint16Array]",Z="[object Uint32Array]";var P={};P[w]=P[j]=P[O]=P[A]=P[_]=P[S]=P[E]=P[I]=P[Z]=true;P[a]=P[u]=P[g]=P[f]=P[x]=P[s]=P[c]=P[l]=P[v]=P[p]=P[d]=P[h]=P[y]=P[m]=P[b]=false;function T(r){return o(r)&&i(r.length)&&!!P[n(r)]}r.exports=T},67206:(r,e,t)=>{var n=t(91573),i=t(16432),o=t(6557),a=t(1469),u=t(39601);function f(r){if(typeof r=="function"){return r}if(r==null){return o}if(typeof r=="object"){return a(r)?i(r[0],r[1]):n(r)}return u(r)}r.exports=f},280:(r,e,t)=>{var n=t(25726),i=t(86916);var o=Object.prototype;var a=o.hasOwnProperty;function u(r){if(!n(r)){return i(r)}var e=[];for(var t in Object(r)){if(a.call(r,t)&&t!="constructor"){e.push(t)}}return e}r.exports=u},35014:(r,e,t)=>{var n=t(13218),i=t(25726),o=t(33498);var a=Object.prototype;var u=a.hasOwnProperty;function f(r){if(!n(r)){return o(r)}var e=i(r),t=[];for(var a in r){if(!(a=="constructor"&&(e||!u.call(r,a)))){t.push(a)}}return t}r.exports=f},69199:(r,e,t)=>{var n=t(89881),i=t(98612);function o(r,e){var t=-1,o=i(r)?Array(r.length):[];n(r,(function(r,n,i){o[++t]=e(r,n,i)}));return o}r.exports=o},91573:(r,e,t)=>{var n=t(2958),i=t(1499),o=t(42634);function a(r){var e=i(r);if(e.length==1&&e[0][2]){return o(e[0][0],e[0][1])}return function(t){return t===r||n(t,r,e)}}r.exports=a},16432:(r,e,t)=>{var n=t(90939),i=t(27361),o=t(79095),a=t(15403),u=t(89162),f=t(42634),s=t(40327);var c=1,l=2;function v(r,e){if(a(r)&&u(e)){return f(s(r),e)}return function(t){var a=i(t,r);return a===undefined&&a===e?o(t,r):n(e,a,c|l)}}r.exports=v},42980:(r,e,t)=>{var n=t(46384),i=t(86556),o=t(28483),a=t(59783),u=t(13218),f=t(81704),s=t(36390);function c(r,e,t,l,v){if(r===e){return}o(e,(function(o,f){v||(v=new n);if(u(o)){a(r,e,f,t,c,l,v)}else{var p=l?l(s(r,f),o,f+"",r,e,v):undefined;if(p===undefined){p=o}i(r,f,p)}}),f)}r.exports=c},59783:(r,e,t)=>{var n=t(86556),i=t(64626),o=t(77133),a=t(278),u=t(38517),f=t(35694),s=t(1469),c=t(29246),l=t(44144),v=t(23560),p=t(13218),d=t(68630),h=t(36719),y=t(36390),m=t(59881);function b(r,e,t,b,g,x,w){var j=y(r,t),O=y(e,t),A=w.get(O);if(A){n(r,t,A);return}var _=x?x(j,O,t+"",r,e,w):undefined;var S=_===undefined;if(S){var E=s(O),I=!E&&l(O),Z=!E&&!I&&h(O);_=O;if(E||I||Z){if(s(j)){_=j}else if(c(j)){_=a(j)}else if(I){S=false;_=i(O,true)}else if(Z){S=false;_=o(O,true)}else{_=[]}}else if(d(O)||f(O)){_=j;if(f(j)){_=m(j)}else if(!p(j)||v(j)){_=u(O)}}else{S=false}}if(S){w.set(O,_);g(_,O,b,x,w);w["delete"](O)}n(r,t,_)}r.exports=b},82689:(r,e,t)=>{var n=t(29932),i=t(97786),o=t(67206),a=t(69199),u=t(71131),f=t(7518),s=t(85022),c=t(6557),l=t(1469);function v(r,e,t){if(e.length){e=n(e,(function(r){if(l(r)){return function(e){return i(e,r.length===1?r[0]:r)}}return r}))}else{e=[c]}var v=-1;e=n(e,f(o));var p=a(r,(function(r,t,i){var o=n(e,(function(e){return e(r)}));return{criteria:o,index:++v,value:r}}));return u(p,(function(r,e){return s(r,e,t)}))}r.exports=v},40371:r=>{function e(r){return function(e){return e==null?undefined:e[r]}}r.exports=e},79152:(r,e,t)=>{var n=t(97786);function i(r){return function(e){return n(e,r)}}r.exports=i},65464:(r,e,t)=>{var n=t(29932),i=t(42118),o=t(74221),a=t(7518),u=t(278);var f=Array.prototype;var s=f.splice;function c(r,e,t,f){var c=f?o:i,l=-1,v=e.length,p=r;if(r===e){e=u(e)}if(t){p=n(r,a(t))}while(++l-1){if(p!==r){s.call(p,d,1)}s.call(r,d,1)}}return r}r.exports=c},5976:(r,e,t)=>{var n=t(6557),i=t(45357),o=t(30061);function a(r,e){return o(i(r,e,n),r+"")}r.exports=a},56560:(r,e,t)=>{var n=t(75703),i=t(38777),o=t(6557);var a=!i?o:function(r,e){return i(r,"toString",{configurable:true,enumerable:false,value:n(e),writable:true})};r.exports=a},71131:r=>{function e(r,e){var t=r.length;r.sort(e);while(t--){r[t]=r[t].value}return r}r.exports=e},22545:r=>{function e(r,e){var t=-1,n=Array(r);while(++t{var n=t(62705),i=t(29932),o=t(1469),a=t(33448);var u=1/0;var f=n?n.prototype:undefined,s=f?f.toString:undefined;function c(r){if(typeof r=="string"){return r}if(o(r)){return i(r,c)+""}if(a(r)){return s?s.call(r):""}var e=r+"";return e=="0"&&1/r==-u?"-0":e}r.exports=c},7518:r=>{function e(r){return function(e){return r(e)}}r.exports=e},45652:(r,e,t)=>{var n=t(88668),i=t(47443),o=t(1196),a=t(74757),u=t(23593),f=t(21814);var s=200;function c(r,e,t){var c=-1,l=i,v=r.length,p=true,d=[],h=d;if(t){p=false;l=o}else if(v>=s){var y=e?null:u(r);if(y){return f(y)}p=false;l=a;h=new n}else{h=e?[]:d}r:while(++c{function e(r,e){return r.has(e)}r.exports=e},24387:(r,e,t)=>{var n=t(29246);function i(r){return n(r)?r:[]}r.exports=i},54290:(r,e,t)=>{var n=t(6557);function i(r){return typeof r=="function"?r:n}r.exports=i},71811:(r,e,t)=>{var n=t(1469),i=t(15403),o=t(55514),a=t(79833);function u(r,e){if(n(r)){return r}return i(r,e)?[r]:o(a(r))}r.exports=u},74318:(r,e,t)=>{var n=t(11149);function i(r){var e=new r.constructor(r.byteLength);new n(e).set(new n(r));return e}r.exports=i},64626:(r,e,t)=>{r=t.nmd(r);var n=t(55639);var i=true&&e&&!e.nodeType&&e;var o=i&&"object"=="object"&&r&&!r.nodeType&&r;var a=o&&o.exports===i;var u=a?n.Buffer:undefined,f=u?u.allocUnsafe:undefined;function s(r,e){if(e){return r.slice()}var t=r.length,n=f?f(t):new r.constructor(t);r.copy(n);return n}r.exports=s},57157:(r,e,t)=>{var n=t(74318);function i(r,e){var t=e?n(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.byteLength)}r.exports=i},93147:r=>{var e=/\w*$/;function t(r){var t=new r.constructor(r.source,e.exec(r));t.lastIndex=r.lastIndex;return t}r.exports=t},40419:(r,e,t)=>{var n=t(62705);var i=n?n.prototype:undefined,o=i?i.valueOf:undefined;function a(r){return o?Object(o.call(r)):{}}r.exports=a},77133:(r,e,t)=>{var n=t(74318);function i(r,e){var t=e?n(r.buffer):r.buffer;return new r.constructor(t,r.byteOffset,r.length)}r.exports=i},26393:(r,e,t)=>{var n=t(33448);function i(r,e){if(r!==e){var t=r!==undefined,i=r===null,o=r===r,a=n(r);var u=e!==undefined,f=e===null,s=e===e,c=n(e);if(!f&&!c&&!a&&r>e||a&&u&&s&&!f&&!c||i&&u&&s||!t&&s||!o){return 1}if(!i&&!a&&!c&&r{var n=t(26393);function i(r,e,t){var i=-1,o=r.criteria,a=e.criteria,u=o.length,f=t.length;while(++i=f){return s}var c=t[i];return s*(c=="desc"?-1:1)}}return r.index-e.index}r.exports=i},278:r=>{function e(r,e){var t=-1,n=r.length;e||(e=Array(n));while(++t{var n=t(34865),i=t(89465);function o(r,e,t,o){var a=!t;t||(t={});var u=-1,f=e.length;while(++u{var n=t(98363),i=t(99551);function o(r,e){return n(r,i(r),e)}r.exports=o},78133:(r,e,t)=>{var n=t(98363),i=t(51442);function o(r,e){return n(r,i(r),e)}r.exports=o},14429:(r,e,t)=>{var n=t(55639);var i=n["__core-js_shared__"];r.exports=i},21463:(r,e,t)=>{var n=t(5976),i=t(16612);function o(r){return n((function(e,t){var n=-1,o=t.length,a=o>1?t[o-1]:undefined,u=o>2?t[2]:undefined;a=r.length>3&&typeof a=="function"?(o--,a):undefined;if(u&&i(t[0],t[1],u)){a=o<3?undefined:a;o=1}e=Object(e);while(++n{var n=t(98612);function i(r,e){return function(t,i){if(t==null){return t}if(!n(t)){return r(t,i)}var o=t.length,a=e?o:-1,u=Object(t);while(e?a--:++a{function e(r){return function(e,t,n){var i=-1,o=Object(e),a=n(e),u=a.length;while(u--){var f=a[r?u:++i];if(t(o[f],f,o)===false){break}}return e}}r.exports=e},23593:(r,e,t)=>{var n=t(58525),i=t(50308),o=t(21814);var a=1/0;var u=!(n&&1/o(new n([,-0]))[1]==a)?i:function(r){return new n(r)};r.exports=u},92052:(r,e,t)=>{var n=t(42980),i=t(13218);function o(r,e,t,a,u,f){if(i(r)&&i(e)){f.set(e,r);n(r,e,undefined,o,f);f["delete"](e)}return r}r.exports=o},38777:(r,e,t)=>{var n=t(10852);var i=function(){try{var r=n(Object,"defineProperty");r({},"",{});return r}catch(e){}}();r.exports=i},67114:(r,e,t)=>{var n=t(88668),i=t(82908),o=t(74757);var a=1,u=2;function f(r,e,t,f,s,c){var l=t&a,v=r.length,p=e.length;if(v!=p&&!(l&&p>v)){return false}var d=c.get(r);var h=c.get(e);if(d&&h){return d==e&&h==r}var y=-1,m=true,b=t&u?new n:undefined;c.set(r,e);c.set(e,r);while(++y{var n=t(62705),i=t(11149),o=t(77813),a=t(67114),u=t(68776),f=t(21814);var s=1,c=2;var l="[object Boolean]",v="[object Date]",p="[object Error]",d="[object Map]",h="[object Number]",y="[object RegExp]",m="[object Set]",b="[object String]",g="[object Symbol]";var x="[object ArrayBuffer]",w="[object DataView]";var j=n?n.prototype:undefined,O=j?j.valueOf:undefined;function A(r,e,t,n,j,A,_){switch(t){case w:if(r.byteLength!=e.byteLength||r.byteOffset!=e.byteOffset){return false}r=r.buffer;e=e.buffer;case x:if(r.byteLength!=e.byteLength||!A(new i(r),new i(e))){return false}return true;case l:case v:case h:return o(+r,+e);case p:return r.name==e.name&&r.message==e.message;case y:case b:return r==e+"";case d:var S=u;case m:var E=n&s;S||(S=f);if(r.size!=e.size&&!E){return false}var I=_.get(r);if(I){return I==e}n|=c;_.set(r,e);var Z=a(S(r),S(e),n,j,A,_);_["delete"](r);return Z;case g:if(O){return O.call(r)==O.call(e)}}return false}r.exports=A},16096:(r,e,t)=>{var n=t(58234);var i=1;var o=Object.prototype;var a=o.hasOwnProperty;function u(r,e,t,o,u,f){var s=t&i,c=n(r),l=c.length,v=n(e),p=v.length;if(l!=p&&!s){return false}var d=l;while(d--){var h=c[d];if(!(s?h in e:a.call(e,h))){return false}}var y=f.get(r);var m=f.get(e);if(y&&m){return y==e&&m==r}var b=true;f.set(r,e);f.set(e,r);var g=s;while(++d{var n=typeof t.g=="object"&&t.g&&t.g.Object===Object&&t.g;r.exports=n},58234:(r,e,t)=>{var n=t(68866),i=t(99551),o=t(3674);function a(r){return n(r,o,i)}r.exports=a},46904:(r,e,t)=>{var n=t(68866),i=t(51442),o=t(81704);function a(r){return n(r,o,i)}r.exports=a},45050:(r,e,t)=>{var n=t(37019);function i(r,e){var t=r.__data__;return n(e)?t[typeof e=="string"?"string":"hash"]:t.map}r.exports=i},1499:(r,e,t)=>{var n=t(89162),i=t(3674);function o(r){var e=i(r),t=e.length;while(t--){var o=e[t],a=r[o];e[t]=[o,a,n(a)]}return e}r.exports=o},10852:(r,e,t)=>{var n=t(28458),i=t(47801);function o(r,e){var t=i(r,e);return n(t)?t:undefined}r.exports=o},85924:(r,e,t)=>{var n=t(5569);var i=n(Object.getPrototypeOf,Object);r.exports=i},89607:(r,e,t)=>{var n=t(62705);var i=Object.prototype;var o=i.hasOwnProperty;var a=i.toString;var u=n?n.toStringTag:undefined;function f(r){var e=o.call(r,u),t=r[u];try{r[u]=undefined;var n=true}catch(f){}var i=a.call(r);if(n){if(e){r[u]=t}else{delete r[u]}}return i}r.exports=f},99551:(r,e,t)=>{var n=t(34963),i=t(70479);var o=Object.prototype;var a=o.propertyIsEnumerable;var u=Object.getOwnPropertySymbols;var f=!u?i:function(r){if(r==null){return[]}r=Object(r);return n(u(r),(function(e){return a.call(r,e)}))};r.exports=f},51442:(r,e,t)=>{var n=t(62488),i=t(85924),o=t(99551),a=t(70479);var u=Object.getOwnPropertySymbols;var f=!u?a:function(r){var e=[];while(r){n(e,o(r));r=i(r)}return e};r.exports=f},64160:(r,e,t)=>{var n=t(18552),i=t(57071),o=t(53818),a=t(58525),u=t(70577),f=t(44239),s=t(80346);var c="[object Map]",l="[object Object]",v="[object Promise]",p="[object Set]",d="[object WeakMap]";var h="[object DataView]";var y=s(n),m=s(i),b=s(o),g=s(a),x=s(u);var w=f;if(n&&w(new n(new ArrayBuffer(1)))!=h||i&&w(new i)!=c||o&&w(o.resolve())!=v||a&&w(new a)!=p||u&&w(new u)!=d){w=function(r){var e=f(r),t=e==l?r.constructor:undefined,n=t?s(t):"";if(n){switch(n){case y:return h;case m:return c;case b:return v;case g:return p;case x:return d}}return e}}r.exports=w},47801:r=>{function e(r,e){return r==null?undefined:r[e]}r.exports=e},222:(r,e,t)=>{var n=t(71811),i=t(35694),o=t(1469),a=t(65776),u=t(41780),f=t(40327);function s(r,e,t){e=n(e,r);var s=-1,c=e.length,l=false;while(++s{var n=t(94536);function i(){this.__data__=n?n(null):{};this.size=0}r.exports=i},80401:r=>{function e(r){var e=this.has(r)&&delete this.__data__[r];this.size-=e?1:0;return e}r.exports=e},57667:(r,e,t)=>{var n=t(94536);var i="__lodash_hash_undefined__";var o=Object.prototype;var a=o.hasOwnProperty;function u(r){var e=this.__data__;if(n){var t=e[r];return t===i?undefined:t}return a.call(e,r)?e[r]:undefined}r.exports=u},21327:(r,e,t)=>{var n=t(94536);var i=Object.prototype;var o=i.hasOwnProperty;function a(r){var e=this.__data__;return n?e[r]!==undefined:o.call(e,r)}r.exports=a},81866:(r,e,t)=>{var n=t(94536);var i="__lodash_hash_undefined__";function o(r,e){var t=this.__data__;this.size+=this.has(r)?0:1;t[r]=n&&e===undefined?i:e;return this}r.exports=o},43824:r=>{var e=Object.prototype;var t=e.hasOwnProperty;function n(r){var e=r.length,n=new r.constructor(e);if(e&&typeof r[0]=="string"&&t.call(r,"index")){n.index=r.index;n.input=r.input}return n}r.exports=n},29148:(r,e,t)=>{var n=t(74318),i=t(57157),o=t(93147),a=t(40419),u=t(77133);var f="[object Boolean]",s="[object Date]",c="[object Map]",l="[object Number]",v="[object RegExp]",p="[object Set]",d="[object String]",h="[object Symbol]";var y="[object ArrayBuffer]",m="[object DataView]",b="[object Float32Array]",g="[object Float64Array]",x="[object Int8Array]",w="[object Int16Array]",j="[object Int32Array]",O="[object Uint8Array]",A="[object Uint8ClampedArray]",_="[object Uint16Array]",S="[object Uint32Array]";function E(r,e,t){var E=r.constructor;switch(e){case y:return n(r);case f:case s:return new E(+r);case m:return i(r,t);case b:case g:case x:case w:case j:case O:case A:case _:case S:return u(r,t);case c:return new E;case l:case d:return new E(r);case v:return o(r);case p:return new E;case h:return a(r)}}r.exports=E},38517:(r,e,t)=>{var n=t(3118),i=t(85924),o=t(25726);function a(r){return typeof r.constructor=="function"&&!o(r)?n(i(r)):{}}r.exports=a},37285:(r,e,t)=>{var n=t(62705),i=t(35694),o=t(1469);var a=n?n.isConcatSpreadable:undefined;function u(r){return o(r)||i(r)||!!(a&&r&&r[a])}r.exports=u},65776:r=>{var e=9007199254740991;var t=/^(?:0|[1-9]\d*)$/;function n(r,n){var i=typeof r;n=n==null?e:n;return!!n&&(i=="number"||i!="symbol"&&t.test(r))&&(r>-1&&r%1==0&&r{var n=t(77813),i=t(98612),o=t(65776),a=t(13218);function u(r,e,t){if(!a(t)){return false}var u=typeof e;if(u=="number"?i(t)&&o(e,t.length):u=="string"&&e in t){return n(t[e],r)}return false}r.exports=u},15403:(r,e,t)=>{var n=t(1469),i=t(33448);var o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function u(r,e){if(n(r)){return false}var t=typeof r;if(t=="number"||t=="symbol"||t=="boolean"||r==null||i(r)){return true}return a.test(r)||!o.test(r)||e!=null&&r in Object(e)}r.exports=u},37019:r=>{function e(r){var e=typeof r;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?r!=="__proto__":r===null}r.exports=e},15346:(r,e,t)=>{var n=t(14429);var i=function(){var r=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function o(r){return!!i&&i in r}r.exports=o},25726:r=>{var e=Object.prototype;function t(r){var t=r&&r.constructor,n=typeof t=="function"&&t.prototype||e;return r===n}r.exports=t},89162:(r,e,t)=>{var n=t(13218);function i(r){return r===r&&!n(r)}r.exports=i},27040:r=>{function e(){this.__data__=[];this.size=0}r.exports=e},14125:(r,e,t)=>{var n=t(18470);var i=Array.prototype;var o=i.splice;function a(r){var e=this.__data__,t=n(e,r);if(t<0){return false}var i=e.length-1;if(t==i){e.pop()}else{o.call(e,t,1)}--this.size;return true}r.exports=a},82117:(r,e,t)=>{var n=t(18470);function i(r){var e=this.__data__,t=n(e,r);return t<0?undefined:e[t][1]}r.exports=i},67518:(r,e,t)=>{var n=t(18470);function i(r){return n(this.__data__,r)>-1}r.exports=i},54705:(r,e,t)=>{var n=t(18470);function i(r,e){var t=this.__data__,i=n(t,r);if(i<0){++this.size;t.push([r,e])}else{t[i][1]=e}return this}r.exports=i},24785:(r,e,t)=>{var n=t(1989),i=t(38407),o=t(57071);function a(){this.size=0;this.__data__={hash:new n,map:new(o||i),string:new n}}r.exports=a},11285:(r,e,t)=>{var n=t(45050);function i(r){var e=n(this,r)["delete"](r);this.size-=e?1:0;return e}r.exports=i},96e3:(r,e,t)=>{var n=t(45050);function i(r){return n(this,r).get(r)}r.exports=i},49916:(r,e,t)=>{var n=t(45050);function i(r){return n(this,r).has(r)}r.exports=i},95265:(r,e,t)=>{var n=t(45050);function i(r,e){var t=n(this,r),i=t.size;t.set(r,e);this.size+=t.size==i?0:1;return this}r.exports=i},68776:r=>{function e(r){var e=-1,t=Array(r.size);r.forEach((function(r,n){t[++e]=[n,r]}));return t}r.exports=e},42634:r=>{function e(r,e){return function(t){if(t==null){return false}return t[r]===e&&(e!==undefined||r in Object(t))}}r.exports=e},24523:(r,e,t)=>{var n=t(88306);var i=500;function o(r){var e=n(r,(function(r){if(t.size===i){t.clear()}return r}));var t=e.cache;return e}r.exports=o},94536:(r,e,t)=>{var n=t(10852);var i=n(Object,"create");r.exports=i},86916:(r,e,t)=>{var n=t(5569);var i=n(Object.keys,Object);r.exports=i},33498:r=>{function e(r){var e=[];if(r!=null){for(var t in Object(r)){e.push(t)}}return e}r.exports=e},31167:(r,e,t)=>{r=t.nmd(r);var n=t(31957);var i=true&&e&&!e.nodeType&&e;var o=i&&"object"=="object"&&r&&!r.nodeType&&r;var a=o&&o.exports===i;var u=a&&n.process;var f=function(){try{var r=o&&o.require&&o.require("util").types;if(r){return r}return u&&u.binding&&u.binding("util")}catch(e){}}();r.exports=f},2333:r=>{var e=Object.prototype;var t=e.toString;function n(r){return t.call(r)}r.exports=n},5569:r=>{function e(r,e){return function(t){return r(e(t))}}r.exports=e},45357:(r,e,t)=>{var n=t(96874);var i=Math.max;function o(r,e,t){e=i(e===undefined?r.length-1:e,0);return function(){var o=arguments,a=-1,u=i(o.length-e,0),f=Array(u);while(++a{var n=t(31957);var i=typeof self=="object"&&self&&self.Object===Object&&self;var o=n||i||Function("return this")();r.exports=o},36390:r=>{function e(r,e){if(e==="constructor"&&typeof r[e]==="function"){return}if(e=="__proto__"){return}return r[e]}r.exports=e},90619:r=>{var e="__lodash_hash_undefined__";function t(r){this.__data__.set(r,e);return this}r.exports=t},72385:r=>{function e(r){return this.__data__.has(r)}r.exports=e},21814:r=>{function e(r){var e=-1,t=Array(r.size);r.forEach((function(r){t[++e]=r}));return t}r.exports=e},30061:(r,e,t)=>{var n=t(56560),i=t(21275);var o=i(n);r.exports=o},21275:r=>{var e=800,t=16;var n=Date.now;function i(r){var i=0,o=0;return function(){var a=n(),u=t-(a-o);o=a;if(u>0){if(++i>=e){return arguments[0]}}else{i=0}return r.apply(undefined,arguments)}}r.exports=i},37465:(r,e,t)=>{var n=t(38407);function i(){this.__data__=new n;this.size=0}r.exports=i},63779:r=>{function e(r){var e=this.__data__,t=e["delete"](r);this.size=e.size;return t}r.exports=e},67599:r=>{function e(r){return this.__data__.get(r)}r.exports=e},44758:r=>{function e(r){return this.__data__.has(r)}r.exports=e},34309:(r,e,t)=>{var n=t(38407),i=t(57071),o=t(83369);var a=200;function u(r,e){var t=this.__data__;if(t instanceof n){var u=t.__data__;if(!i||u.length{function e(r,e,t){var n=t-1,i=r.length;while(++n{var n=t(24523);var i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g;var o=/\\(\\)?/g;var a=n((function(r){var e=[];if(r.charCodeAt(0)===46){e.push("")}r.replace(i,(function(r,t,n,i){e.push(n?i.replace(o,"$1"):t||r)}));return e}));r.exports=a},40327:(r,e,t)=>{var n=t(33448);var i=1/0;function o(r){if(typeof r=="string"||n(r)){return r}var e=r+"";return e=="0"&&1/r==-i?"-0":e}r.exports=o},80346:r=>{var e=Function.prototype;var t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch(e){}try{return r+""}catch(e){}}return""}r.exports=n},50361:(r,e,t)=>{var n=t(85990);var i=1,o=4;function a(r){return n(r,i|o)}r.exports=a},75703:r=>{function e(r){return function(){return r}}r.exports=e},91747:(r,e,t)=>{var n=t(5976),i=t(77813),o=t(16612),a=t(81704);var u=Object.prototype;var f=u.hasOwnProperty;var s=n((function(r,e){r=Object(r);var t=-1;var n=e.length;var s=n>2?e[2]:undefined;if(s&&o(e[0],e[1],s)){n=1}while(++t{var n=t(96874),i=t(5976),o=t(92052),a=t(30236);var u=i((function(r){r.push(undefined,o);return n(a,undefined,r)}));r.exports=u},77813:r=>{function e(r,e){return r===e||r!==r&&e!==e}r.exports=e},85564:(r,e,t)=>{var n=t(21078);function i(r){var e=r==null?0:r.length;return e?n(r,1):[]}r.exports=i},42348:(r,e,t)=>{var n=t(21078);var i=1/0;function o(r){var e=r==null?0:r.length;return e?n(r,i):[]}r.exports=o},84486:(r,e,t)=>{var n=t(77412),i=t(89881),o=t(54290),a=t(1469);function u(r,e){var t=a(r)?n:i;return t(r,o(e))}r.exports=u},27361:(r,e,t)=>{var n=t(97786);function i(r,e,t){var i=r==null?undefined:n(r,e);return i===undefined?t:i}r.exports=i},79095:(r,e,t)=>{var n=t(13),i=t(222);function o(r,e){return r!=null&&i(r,e,n)}r.exports=o},6557:r=>{function e(r){return r}r.exports=e},25325:(r,e,t)=>{var n=t(29932),i=t(47556),o=t(5976),a=t(24387);var u=o((function(r){var e=n(r,a);return e.length&&e[0]===r[0]?i(e):[]}));r.exports=u},33856:(r,e,t)=>{var n=t(29932),i=t(47556),o=t(5976),a=t(24387),u=t(10928);var f=o((function(r){var e=u(r),t=n(r,a);e=typeof e=="function"?e:undefined;if(e){t.pop()}return t.length&&t[0]===r[0]?i(t,undefined,e):[]}));r.exports=f},35694:(r,e,t)=>{var n=t(9454),i=t(37005);var o=Object.prototype;var a=o.hasOwnProperty;var u=o.propertyIsEnumerable;var f=n(function(){return arguments}())?n:function(r){return i(r)&&a.call(r,"callee")&&!u.call(r,"callee")};r.exports=f},1469:r=>{var e=Array.isArray;r.exports=e},98612:(r,e,t)=>{var n=t(23560),i=t(41780);function o(r){return r!=null&&i(r.length)&&!n(r)}r.exports=o},29246:(r,e,t)=>{var n=t(98612),i=t(37005);function o(r){return i(r)&&n(r)}r.exports=o},51584:(r,e,t)=>{var n=t(44239),i=t(37005);var o="[object Boolean]";function a(r){return r===true||r===false||i(r)&&n(r)==o}r.exports=a},44144:(r,e,t)=>{r=t.nmd(r);var n=t(55639),i=t(95062);var o=true&&e&&!e.nodeType&&e;var a=o&&"object"=="object"&&r&&!r.nodeType&&r;var u=a&&a.exports===o;var f=u?n.Buffer:undefined;var s=f?f.isBuffer:undefined;var c=s||i;r.exports=c},18446:(r,e,t)=>{var n=t(90939);function i(r,e){return n(r,e)}r.exports=i},23560:(r,e,t)=>{var n=t(44239),i=t(13218);var o="[object AsyncFunction]",a="[object Function]",u="[object GeneratorFunction]",f="[object Proxy]";function s(r){if(!i(r)){return false}var e=n(r);return e==a||e==u||e==o||e==f}r.exports=s},41780:r=>{var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}r.exports=t},56688:(r,e,t)=>{var n=t(25588),i=t(7518),o=t(31167);var a=o&&o.isMap;var u=a?i(a):n;r.exports=u},13218:r=>{function e(r){var e=typeof r;return r!=null&&(e=="object"||e=="function")}r.exports=e},37005:r=>{function e(r){return r!=null&&typeof r=="object"}r.exports=e},68630:(r,e,t)=>{var n=t(44239),i=t(85924),o=t(37005);var a="[object Object]";var u=Function.prototype,f=Object.prototype;var s=u.toString;var c=f.hasOwnProperty;var l=s.call(Object);function v(r){if(!o(r)||n(r)!=a){return false}var e=i(r);if(e===null){return true}var t=c.call(e,"constructor")&&e.constructor;return typeof t=="function"&&t instanceof t&&s.call(t)==l}r.exports=v},72928:(r,e,t)=>{var n=t(29221),i=t(7518),o=t(31167);var a=o&&o.isSet;var u=a?i(a):n;r.exports=u},33448:(r,e,t)=>{var n=t(44239),i=t(37005);var o="[object Symbol]";function a(r){return typeof r=="symbol"||i(r)&&n(r)==o}r.exports=a},36719:(r,e,t)=>{var n=t(38749),i=t(7518),o=t(31167);var a=o&&o.isTypedArray;var u=a?i(a):n;r.exports=u},3674:(r,e,t)=>{var n=t(14636),i=t(280),o=t(98612);function a(r){return o(r)?n(r):i(r)}r.exports=a},81704:(r,e,t)=>{var n=t(14636),i=t(35014),o=t(98612);function a(r){return o(r)?n(r,true):i(r)}r.exports=a},10928:r=>{function e(r){var e=r==null?0:r.length;return e?r[e-1]:undefined}r.exports=e},88306:(r,e,t)=>{var n=t(83369);var i="Expected a function";function o(r,e){if(typeof r!="function"||e!=null&&typeof e!="function"){throw new TypeError(i)}var t=function(){var n=arguments,i=e?e.apply(this,n):n[0],o=t.cache;if(o.has(i)){return o.get(i)}var a=r.apply(this,n);t.cache=o.set(i,a)||o;return a};t.cache=new(o.Cache||n);return t}o.Cache=n;r.exports=o},30236:(r,e,t)=>{var n=t(42980),i=t(21463);var o=i((function(r,e,t,i){n(r,e,t,i)}));r.exports=o},50308:r=>{function e(){}r.exports=e},39601:(r,e,t)=>{var n=t(40371),i=t(79152),o=t(15403),a=t(40327);function u(r){return o(r)?n(a(r)):i(r)}r.exports=u},45604:(r,e,t)=>{var n=t(65464);function i(r,e){return r&&r.length&&e&&e.length?n(r,e):r}r.exports=i},89734:(r,e,t)=>{var n=t(21078),i=t(82689),o=t(5976),a=t(16612);var u=o((function(r,e){if(r==null){return[]}var t=e.length;if(t>1&&a(r,e[0],e[1])){e=[]}else if(t>2&&a(e[0],e[1],e[2])){e=[e[0]]}return i(r,n(e,1),[])}));r.exports=u},70479:r=>{function e(){return[]}r.exports=e},95062:r=>{function e(){return false}r.exports=e},59881:(r,e,t)=>{var n=t(98363),i=t(81704);function o(r){return n(r,i(r))}r.exports=o},79833:(r,e,t)=>{var n=t(80531);function i(r){return r==null?"":n(r)}r.exports=i},44908:(r,e,t)=>{var n=t(45652);function i(r){return r&&r.length?n(r):[]}r.exports=i},87185:(r,e,t)=>{var n=t(45652);function i(r,e){e=typeof e=="function"?e:undefined;return r&&r.length?n(r,undefined,e):[]}r.exports=i},82569:(r,e,t)=>{var n=t(20731),i=t(5976),o=t(29246);var a=i((function(r,e){return o(r)?n(r,e):[]}));r.exports=a},69921:(r,e)=>{"use strict";var t=Symbol.for("react.element"),n=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),v=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),h=Symbol.for("react.offscreen"),y;y=Symbol.for("react.module.reference");function m(r){if("object"===typeof r&&null!==r){var e=r.$$typeof;switch(e){case t:switch(r=r.type,r){case i:case a:case o:case l:case v:return r;default:switch(r=r&&r.$$typeof,r){case s:case f:case c:case d:case p:case u:return r;default:return e}}case n:return e}}}e.ContextConsumer=f;e.ContextProvider=u;e.Element=t;e.ForwardRef=c;e.Fragment=i;e.Lazy=d;e.Memo=p;e.Portal=n;e.Profiler=a;e.StrictMode=o;e.Suspense=l;e.SuspenseList=v;e.isAsyncMode=function(){return!1};e.isConcurrentMode=function(){return!1};e.isContextConsumer=function(r){return m(r)===f};e.isContextProvider=function(r){return m(r)===u};e.isElement=function(r){return"object"===typeof r&&null!==r&&r.$$typeof===t};e.isForwardRef=function(r){return m(r)===c};e.isFragment=function(r){return m(r)===i};e.isLazy=function(r){return m(r)===d};e.isMemo=function(r){return m(r)===p};e.isPortal=function(r){return m(r)===n};e.isProfiler=function(r){return m(r)===a};e.isStrictMode=function(r){return m(r)===o};e.isSuspense=function(r){return m(r)===l};e.isSuspenseList=function(r){return m(r)===v};e.isValidElementType=function(r){return"string"===typeof r||"function"===typeof r||r===i||r===a||r===o||r===l||r===v||r===h||"object"===typeof r&&null!==r&&(r.$$typeof===d||r.$$typeof===p||r.$$typeof===u||r.$$typeof===f||r.$$typeof===c||r.$$typeof===y||void 0!==r.getModuleId)?!0:!1};e.typeOf=m},59864:(r,e,t)=>{"use strict";if(true){r.exports=t(69921)}else{}},14653:r=>{"use strict";function e(r){return Object.prototype.toString.call(r)==="[object Array]"}r.exports=Array.isArray||e},79882:r=>{"use strict";function e(r){return typeof r==="function"}r.exports=e},59158:(r,e,t)=>{"use strict";var n=t(14653),i=t(75647);function o(r){var e;if(!n(r)){return false}e=r.length;if(!e){return false}for(var t=0;t{"use strict";var n=t(84920);function i(r){return n(r)&&r%1===0}r.exports=i},84920:r=>{"use strict";function e(r){return(typeof r==="number"||Object.prototype.toString.call(r)==="[object Number]")&&r.valueOf()===r.valueOf()}r.exports=e}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/8768.4a80caab00174c50eb10.js.LICENSE.txt b/bootcamp/share/jupyter/lab/static/8768.4a80caab00174c50eb10.js.LICENSE.txt new file mode 100644 index 0000000..53dcf70 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/8768.4a80caab00174c50eb10.js.LICENSE.txt @@ -0,0 +1,9 @@ +/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */ diff --git a/bootcamp/share/jupyter/lab/static/8771.327a202178f82f3b15b8.js b/bootcamp/share/jupyter/lab/static/8771.327a202178f82f3b15b8.js new file mode 100644 index 0000000..7d83b13 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/8771.327a202178f82f3b15b8.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8771],{28771:(e,t,a)=>{a.r(t);a.d(t,{Cassandra:()=>qe,MSSQL:()=>Se,MariaSQL:()=>Ce,MySQL:()=>Qe,PLSQL:()=>Te,PostgreSQL:()=>ke,SQLDialect:()=>fe,SQLite:()=>Pe,StandardSQL:()=>ye,keywordCompletion:()=>he,keywordCompletionSource:()=>ge,schemaCompletion:()=>be,schemaCompletionSource:()=>_e,sql:()=>ve});var n=a(24104);var r=a.n(n);var i=a(6016);var s=a.n(i);var o=a(11705);var l=a(1065);const c=36,d=1,u=2,m=3,p=4,f=5,g=6,h=7,_=8,b=9,v=10,y=11,k=12,O=13,x=14,w=15,Q=16,C=17,S=18,P=19,q=20,T=21,U=22,z=23,X=24;function j(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57}function B(e){return e>=48&&e<=57||e>=97&&e<=102||e>=65&&e<=70}function R(e,t,a){for(let n=false;;){if(e.next<0)return;if(e.next==t&&!n){e.advance();return}n=a&&!n&&e.next==92;e.advance()}}function L(e){for(;;){if(e.next<0||e.peek(1)<0)return;if(e.next==36&&e.peek(1)==36){e.advance(2);return}e.advance()}}function Z(e,t){for(;;){if(e.next!=95&&!j(e.next))break;if(t!=null)t+=String.fromCharCode(e.next);e.advance()}return t}function V(e){if(e.next==39||e.next==34||e.next==96){let t=e.next;e.advance();R(e,t,false)}else{Z(e)}}function D(e,t){while(e.next==48||e.next==49)e.advance();if(t&&e.next==t)e.advance()}function I(e,t){for(;;){if(e.next==46){if(t)break;t=true}else if(e.next<48||e.next>57){break}e.advance()}if(e.next==69||e.next==101){e.advance();if(e.next==43||e.next==45)e.advance();while(e.next>=48&&e.next<=57)e.advance()}}function $(e){while(!(e.next<0||e.next==10))e.advance()}function N(e,t){for(let a=0;a!=&|~^/",specialVar:"?",identifierQuotes:'"',words:W(A,G)};function K(e,t,a,n){let r={};for(let i in Y)r[i]=(e.hasOwnProperty(i)?e:Y)[i];if(t)r.words=W(t,a||"",n);return r}function M(e){return new o.Jq((t=>{var a;let{next:n}=t;t.advance();if(N(n,E)){while(N(t.next,E))t.advance();t.acceptToken(c)}else if(n==36&&t.next==36&&e.doubleDollarQuotedStrings){L(t);t.acceptToken(m)}else if(n==39||n==34&&e.doubleQuotedStrings){R(t,n,e.backslashEscapes);t.acceptToken(m)}else if(n==35&&e.hashComments||n==47&&t.next==47&&e.slashComments){$(t);t.acceptToken(d)}else if(n==45&&t.next==45&&(!e.spaceAfterDashes||t.peek(1)==32)){$(t);t.acceptToken(d)}else if(n==47&&t.next==42){t.advance();for(let e=1;;){let a=t.next;if(t.next<0)break;t.advance();if(a==42&&t.next==47){e--;t.advance();if(!e)break}else if(a==47&&t.next==42){e++;t.advance()}}t.acceptToken(u)}else if((n==101||n==69)&&t.next==39){t.advance();R(t,39,true)}else if((n==110||n==78)&&t.next==39&&e.charSetCasts){t.advance();R(t,39,e.backslashEscapes);t.acceptToken(m)}else if(n==95&&e.charSetCasts){for(let a=0;;a++){if(t.next==39&&a>1){t.advance();R(t,39,e.backslashEscapes);t.acceptToken(m);break}if(!j(t.next))break;t.advance()}}else if(n==40){t.acceptToken(h)}else if(n==41){t.acceptToken(_)}else if(n==123){t.acceptToken(b)}else if(n==125){t.acceptToken(v)}else if(n==91){t.acceptToken(y)}else if(n==93){t.acceptToken(k)}else if(n==59){t.acceptToken(O)}else if(e.unquotedBitLiterals&&n==48&&t.next==98){t.advance();D(t);t.acceptToken(U)}else if((n==98||n==66)&&(t.next==39||t.next==34)){const a=t.next;t.advance();if(e.treatBitsAsBytes){R(t,a,e.backslashEscapes);t.acceptToken(z)}else{D(t,a);t.acceptToken(U)}}else if(n==48&&(t.next==120||t.next==88)||(n==120||n==88)&&t.next==39){let e=t.next==39;t.advance();while(B(t.next))t.advance();if(e&&t.next==39)t.advance();t.acceptToken(p)}else if(n==46&&t.next>=48&&t.next<=57){I(t,true);t.acceptToken(p)}else if(n==46){t.acceptToken(x)}else if(n>=48&&n<=57){I(t,false);t.acceptToken(p)}else if(N(n,e.operatorChars)){while(N(t.next,e.operatorChars))t.advance();t.acceptToken(w)}else if(N(n,e.specialVar)){if(t.next==n)t.advance();V(t);t.acceptToken(C)}else if(N(n,e.identifierQuotes)){R(t,n,false);t.acceptToken(P)}else if(n==58||n==44){t.acceptToken(Q)}else if(j(n)){let r=Z(t,String.fromCharCode(n));t.acceptToken(t.next==46?S:(a=e.words[r.toLowerCase()])!==null&&a!==void 0?a:S)}}))}const F=M(Y);const J=o.WQ.deserialize({version:14,states:"%vQ]QQOOO#wQRO'#DSO$OQQO'#CwO%eQQO'#CxO%lQQO'#CyO%sQQO'#CzOOQQ'#DS'#DSOOQQ'#C}'#C}O'UQRO'#C{OOQQ'#Cv'#CvOOQQ'#C|'#C|Q]QQOOQOQQOOO'`QQO'#DOO(xQRO,59cO)PQQO,59cO)UQQO'#DSOOQQ,59d,59dO)cQQO,59dOOQQ,59e,59eO)jQQO,59eOOQQ,59f,59fO)qQQO,59fOOQQ-E6{-E6{OOQQ,59b,59bOOQQ-E6z-E6zOOQQ,59j,59jOOQQ-E6|-E6|O+VQRO1G.}O+^QQO,59cOOQQ1G/O1G/OOOQQ1G/P1G/POOQQ1G/Q1G/QP+kQQO'#C}O+rQQO1G.}O)PQQO,59cO,PQQO'#Cw",stateData:",[~OtOSPOSQOS~ORUOSUOTUOUUOVROXSOZTO]XO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O^]ORvXSvXTvXUvXVvXXvXZvX]vX_vX`vXavXbvXcvXdvXevXfvXgvXhvX~OsvX~P!jOa_Ob_Oc_O~ORUOSUOTUOUUOVROXSOZTO^tO_UO`UOa`Ob`Oc`OdUOeUOfUOgUOhUO~OWaO~P$ZOYcO~P$ZO[eO~P$ZORUOSUOTUOUUOVROXSOZTO^QO_UO`UOaPObPOcPOdUOeUOfUOgUOhUO~O]hOsoX~P%zOajObjOcjO~O^]ORkaSkaTkaUkaVkaXkaZka]ka_ka`kaakabkackadkaekafkagkahka~Oska~P'kO^]O~OWvXYvX[vX~P!jOWnO~P$ZOYoO~P$ZO[pO~P$ZO^]ORkiSkiTkiUkiVkiXkiZki]ki_ki`kiakibkickidkiekifkigkihki~Oski~P)xOWkaYka[ka~P'kO]hO~P$ZOWkiYki[ki~P)xOasObsOcsO~O",goto:"#hwPPPPPPPPPPPPPPPPPPPPPPPPPPx||||!Y!^!d!xPPP#[TYOZeUORSTWZbdfqT[OZQZORiZSWOZQbRQdSQfTZgWbdfqQ^PWk^lmrQl_Qm`RrseVORSTWZbdfq",nodeNames:"⚠ LineComment BlockComment String Number Bool Null ( ) { } [ ] ; . Operator Punctuation SpecialVar Identifier QuotedIdentifier Keyword Type Bits Bytes Builtin Script Statement CompositeIdentifier Parens Braces Brackets Statement",maxTerm:38,skippedNodes:[0,1,2],repeatNodeCount:3,tokenData:"RORO",tokenizers:[0,F],topRules:{Script:[0,25]},tokenPrec:0});function H(e){let t=e.cursor().moveTo(e.from,-1);while(/Comment/.test(t.name))t.moveTo(t.from,-1);return t.node}function ee(e,t){let a=e.sliceString(t.from,t.to);let n=/^([`'"])(.*)\1$/.exec(a);return n?n[2]:a}function te(e){return e&&(e.name=="Identifier"||e.name=="QuotedIdentifier")}function ae(e,t){if(t.name=="CompositeIdentifier"){let a=[];for(let n=t.firstChild;n;n=n.nextSibling)if(te(n))a.push(ee(e,n));return a}return[ee(e,t)]}function ne(e,t){for(let a=[];;){if(!t||t.name!=".")return a;let n=H(t);if(!te(n))return a;a.unshift(ee(e,n));t=H(n)}}function re(e,t){let a=(0,n.syntaxTree)(e).resolveInner(t,-1);let r=se(e.doc,a);if(a.name=="Identifier"||a.name=="QuotedIdentifier"||a.name=="Keyword"){return{from:a.from,quoted:a.name=="QuotedIdentifier"?e.doc.sliceString(a.from,a.from+1):null,parents:ne(e.doc,H(a)),aliases:r}}if(a.name=="."){return{from:t,quoted:null,parents:ne(e.doc,a),aliases:r}}else{return{from:t,quoted:null,parents:[],empty:true,aliases:r}}}const ie=new Set("where group having order union intersect except all distinct limit offset fetch for".split(" "));function se(e,t){let a;for(let r=t;!a;r=r.parent){if(!r)return null;if(r.name=="Statement")a=r}let n=null;for(let r=a.firstChild,i=false,s=null;r;r=r.nextSibling){let t=r.name=="Keyword"?e.sliceString(r.from,r.to).toLowerCase():null;let a=null;if(!i){i=t=="from"}else if(t=="as"&&s&&te(r.nextSibling)){a=ee(e,r.nextSibling)}else if(t&&ie.has(t)){break}else if(s&&te(r)){a=ee(e,r)}if(a){if(!n)n=Object.create(null);n[a]=ae(e,s)}s=/Identifier$/.test(r.name)?r:null}return n}function oe(e,t){if(!e)return t;return t.map((t=>Object.assign(Object.assign({},t),{label:e+t.label+e,apply:undefined})))}const le=/^\w*$/,ce=/^[`'"]?\w*[`'"]?$/;class de{constructor(){this.list=[];this.children=undefined}child(e){let t=this.children||(this.children=Object.create(null));return t[e]||(t[e]=new de)}childCompletions(e){return this.children?Object.keys(this.children).filter((e=>e)).map((t=>({label:t,type:e}))):[]}}function ue(e,t,a,n,r){let i=new de;let s=i.child(r||"");for(let o in e){let t=o.indexOf(".");let a=t>-1?i.child(o.slice(0,t)):s;let n=a.child(t>-1?o.slice(t+1):o);n.list=e[o].map((e=>typeof e=="string"?{label:e,type:"property"}:e))}s.list=(t||s.childCompletions("type")).concat(n?s.child(n).list:[]);for(let o in i.children){let e=i.child(o);if(!e.list.length)e.list=e.childCompletions("type")}i.list=s.list.concat(a||i.childCompletions("type"));return e=>{let{parents:t,from:a,quoted:r,empty:o,aliases:l}=re(e.state,e.pos);if(o&&!e.explicit)return null;if(l&&t.length==1)t=l[t[0]]||t;let c=i;for(let m of t){while(!c.children||!c.children[m]){if(c==i)c=s;else if(c==s&&n)c=c.child(n);else return null}c=c.child(m)}let d=r&&e.state.sliceDoc(e.pos,e.pos+1)==r;let u=c.list;if(c==i&&l)u=u.concat(Object.keys(l).map((e=>({label:e,type:"constant"}))));return{from:a,to:d?e.pos+1:undefined,options:oe(r,u),validFor:r?ce:le}}}function me(e,t){let a=Object.keys(e).map((a=>({label:t?a.toUpperCase():a,type:e[a]==T?"type":e[a]==q?"keyword":"variable",boost:-1})));return(0,l.eC)(["QuotedIdentifier","SpecialVar","String","LineComment","BlockComment","."],(0,l.Mb)(a))}let pe=J.configure({props:[n.indentNodeProp.add({Statement:(0,n.continuedIndent)()}),n.foldNodeProp.add({Statement(e){return{from:e.firstChild.to,to:e.to}},BlockComment(e){return{from:e.from+2,to:e.to-2}}}),(0,i.styleTags)({Keyword:i.tags.keyword,Type:i.tags.typeName,Builtin:i.tags.standard(i.tags.name),Bits:i.tags.number,Bytes:i.tags.string,Bool:i.tags.bool,Null:i.tags["null"],Number:i.tags.number,String:i.tags.string,Identifier:i.tags.name,QuotedIdentifier:i.tags.special(i.tags.string),SpecialVar:i.tags.special(i.tags.name),LineComment:i.tags.lineComment,BlockComment:i.tags.blockComment,Operator:i.tags.operator,"Semi Punctuation":i.tags.punctuation,"( )":i.tags.paren,"{ }":i.tags.brace,"[ ]":i.tags.squareBracket})]});class fe{constructor(e,t){this.dialect=e;this.language=t}get extension(){return this.language.extension}static define(e){let t=K(e,e.keywords,e.types,e.builtin);let a=n.LRLanguage.define({name:"sql",parser:pe.configure({tokenizers:[{from:F,to:M(t)}]}),languageData:{commentTokens:{line:"--",block:{open:"/*",close:"*/"}},closeBrackets:{brackets:["(","[","{","'",'"',"`"]}}});return new fe(t,a)}}function ge(e,t=false){return me(e.dialect.words,t)}function he(e,t=false){return e.language.data.of({autocomplete:ge(e,t)})}function _e(e){return e.schema?ue(e.schema,e.tables,e.schemas,e.defaultTable,e.defaultSchema):()=>null}function be(e){return e.schema?(e.dialect||ye).language.data.of({autocomplete:_e(e)}):[]}function ve(e={}){let t=e.dialect||ye;return new n.LanguageSupport(t.language,[be(e),he(t,!!e.upperCaseKeywords)])}const ye=fe.define({});const ke=fe.define({charSetCasts:true,doubleDollarQuotedStrings:true,operatorChars:"+-*/<>=~!@#%^&|`?",specialVar:"",keywords:A+"a abort abs absent access according ada admin aggregate alias also always analyse analyze array_agg array_max_cardinality asensitive assert assignment asymmetric atomic attach attribute attributes avg backward base64 begin_frame begin_partition bernoulli bit_length blocked bom c cache called cardinality catalog_name ceil ceiling chain char_length character_length character_set_catalog character_set_name character_set_schema characteristics characters checkpoint class class_origin cluster coalesce cobol collation_catalog collation_name collation_schema collect column_name columns command_function command_function_code comment comments committed concurrently condition_number configuration conflict connection_name constant constraint_catalog constraint_name constraint_schema contains content control conversion convert copy corr cost covar_pop covar_samp csv cume_dist current_catalog current_row current_schema cursor_name database datalink datatype datetime_interval_code datetime_interval_precision db debug defaults defined definer degree delimiter delimiters dense_rank depends derived detach detail dictionary disable discard dispatch dlnewcopy dlpreviouscopy dlurlcomplete dlurlcompleteonly dlurlcompletewrite dlurlpath dlurlpathonly dlurlpathwrite dlurlscheme dlurlserver dlvalue document dump dynamic_function dynamic_function_code element elsif empty enable encoding encrypted end_frame end_partition endexec enforced enum errcode error event every exclude excluding exclusive exp explain expression extension extract family file filter final first_value flag floor following force foreach fortran forward frame_row freeze fs functions fusion g generated granted greatest groups handler header hex hierarchy hint id ignore ilike immediately immutable implementation implicit import include including increment indent index indexes info inherit inherits inline insensitive instance instantiable instead integrity intersection invoker isnull k key_member key_type label lag last_value lead leakproof least length library like_regex link listen ln load location lock locked log logged lower m mapping matched materialized max max_cardinality maxvalue member merge message message_length message_octet_length message_text min minvalue mod mode more move multiset mumps name namespace nfc nfd nfkc nfkd nil normalize normalized nothing notice notify notnull nowait nth_value ntile nullable nullif nulls number occurrences_regex octet_length octets off offset oids operator options ordering others over overlay overriding owned owner p parallel parameter_mode parameter_name parameter_ordinal_position parameter_specific_catalog parameter_specific_name parameter_specific_schema parser partition pascal passing passthrough password percent percent_rank percentile_cont percentile_disc perform period permission pg_context pg_datatype_name pg_exception_context pg_exception_detail pg_exception_hint placing plans pli policy portion position position_regex power precedes preceding prepared print_strict_params procedural procedures program publication query quote raise range rank reassign recheck recovery refresh regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy regr_syy reindex rename repeatable replace replica requiring reset respect restart restore result_oid returned_cardinality returned_length returned_octet_length returned_sqlstate returning reverse routine_catalog routine_name routine_schema routines row_count row_number rowtype rule scale schema_name schemas scope scope_catalog scope_name scope_schema security selective self sensitive sequence sequences serializable server server_name setof share show simple skip slice snapshot source specific_name sqlcode sqlerror sqrt stable stacked standalone statement statistics stddev_pop stddev_samp stdin stdout storage strict strip structure style subclass_origin submultiset subscription substring substring_regex succeeds sum symmetric sysid system system_time t table_name tables tablesample tablespace temp template ties token top_level_count transaction_active transactions_committed transactions_rolled_back transform transforms translate translate_regex trigger_catalog trigger_name trigger_schema trim trim_array truncate trusted type types uescape unbounded uncommitted unencrypted unlink unlisten unlogged unnamed untyped upper uri use_column use_variable user_defined_type_catalog user_defined_type_code user_defined_type_name user_defined_type_schema vacuum valid validate validator value_of var_pop var_samp varbinary variable_conflict variadic verbose version versioning views volatile warning whitespace width_bucket window within wrapper xmlagg xmlattributes xmlbinary xmlcast xmlcomment xmlconcat xmldeclaration xmldocument xmlelement xmlexists xmlforest xmliterate xmlnamespaces xmlparse xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltext xmlvalidate yes",types:G+"bigint int8 bigserial serial8 varbit bool box bytea cidr circle precision float8 inet int4 json jsonb line lseg macaddr macaddr8 money numeric pg_lsn point polygon float4 int2 smallserial serial2 serial serial4 text timetz timestamptz tsquery tsvector txid_snapshot uuid xml"});const Oe="accessible algorithm analyze asensitive authors auto_increment autocommit avg avg_row_length binlog btree cache catalog_name chain change changed checkpoint checksum class_origin client_statistics coalesce code collations columns comment committed completion concurrent consistent contains contributors convert database databases day_hour day_microsecond day_minute day_second delay_key_write delayed delimiter des_key_file dev_pop dev_samp deviance directory disable discard distinctrow div dual dumpfile enable enclosed ends engine engines enum errors escaped even event events every explain extended fast field fields flush force found_rows fulltext grants handler hash high_priority hosts hour_microsecond hour_minute hour_second ignore ignore_server_ids import index index_statistics infile innodb insensitive insert_method install invoker iterate keys kill linear lines list load lock logs low_priority master master_heartbeat_period master_ssl_verify_server_cert masters max max_rows maxvalue message_text middleint migrate min min_rows minute_microsecond minute_second mod mode modify mutex mysql_errno no_write_to_binlog offline offset one online optimize optionally outfile pack_keys parser partition partitions password phase plugin plugins prev processlist profile profiles purge query quick range read_write rebuild recover regexp relaylog remove rename reorganize repair repeatable replace require resume rlike row_format rtree schedule schema_name schemas second_microsecond security sensitive separator serializable server share show slave slow snapshot soname spatial sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_no_cache sql_small_result ssl starting starts std stddev stddev_pop stddev_samp storage straight_join subclass_origin sum suspend table_name table_statistics tables tablespace terminated triggers truncate uncommitted uninstall unlock upgrade use use_frm user_resources user_statistics utc_date utc_time utc_timestamp variables views warnings xa xor year_month zerofill";const xe=G+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int1 int2 int3 int4 int8 float4 float8 varbinary varcharacter precision datetime unsigned signed";const we="charset clear edit ego help nopager notee nowarning pager print prompt quit rehash source status system tee";const Qe=fe.define({operatorChars:"*+-%<>!=&|^",charSetCasts:true,doubleQuotedStrings:true,unquotedBitLiterals:true,hashComments:true,spaceAfterDashes:true,specialVar:"@?",identifierQuotes:"`",keywords:A+"group_concat "+Oe,types:xe,builtin:we});const Ce=fe.define({operatorChars:"*+-%<>!=&|^",charSetCasts:true,doubleQuotedStrings:true,unquotedBitLiterals:true,hashComments:true,spaceAfterDashes:true,specialVar:"@?",identifierQuotes:"`",keywords:A+"always generated groupby_concat hard persistent shutdown soft virtual "+Oe,types:xe,builtin:we});const Se=fe.define({keywords:A+"trigger proc view index for add constraint key primary foreign collate clustered nonclustered declare exec go if use index holdlock nolock nowait paglock pivot readcommitted readcommittedlock readpast readuncommitted repeatableread rowlock serializable snapshot tablock tablockx unpivot updlock with",types:G+"bigint smallint smallmoney tinyint money real text nvarchar ntext varbinary image hierarchyid uniqueidentifier sql_variant xml",builtin:"binary_checksum checksum connectionproperty context_info current_request_id error_line error_message error_number error_procedure error_severity error_state formatmessage get_filestream_transaction_context getansinull host_id host_name isnull isnumeric min_active_rowversion newid newsequentialid rowcount_big xact_state object_id",operatorChars:"*+-%<>!=^&|/",specialVar:"@"});const Pe=fe.define({keywords:A+"abort analyze attach autoincrement conflict database detach exclusive fail glob ignore index indexed instead isnull notnull offset plan pragma query raise regexp reindex rename replace temp vacuum virtual",types:G+"bool blob long longblob longtext medium mediumblob mediumint mediumtext tinyblob tinyint tinytext text bigint int2 int8 unsigned signed real",builtin:"auth backup bail changes clone databases dbinfo dump echo eqp explain fullschema headers help import imposter indexes iotrace lint load log mode nullvalue once print prompt quit restore save scanstats separator shell show stats system tables testcase timeout timer trace vfsinfo vfslist vfsname width",operatorChars:"*+-%<>!=&|/~",identifierQuotes:'`"',specialVar:"@:?$"});const qe=fe.define({keywords:"add all allow alter and any apply as asc authorize batch begin by clustering columnfamily compact consistency count create custom delete desc distinct drop each_quorum exists filtering from grant if in index insert into key keyspace keyspaces level limit local_one local_quorum modify nan norecursive nosuperuser not of on one order password permission permissions primary quorum rename revoke schema select set storage superuser table three to token truncate ttl two type unlogged update use user users using values where with writetime infinity NaN",types:G+"ascii bigint blob counter frozen inet list map static text timeuuid tuple uuid varint",slashComments:true});const Te=fe.define({keywords:A+"abort accept access add all alter and any arraylen as asc assert assign at attributes audit authorization avg base_table begin between binary_integer body by case cast char_base check close cluster clusters colauth column comment commit compress connected constant constraint crash create current currval cursor data_base database dba deallocate debugoff debugon declare default definition delay delete desc digits dispose distinct do drop else elseif elsif enable end entry exception exception_init exchange exclusive exists external fast fetch file for force form from function generic goto grant group having identified if immediate in increment index indexes indicator initial initrans insert interface intersect into is key level library like limited local lock log logging loop master maxextents maxtrans member minextents minus mislabel mode modify multiset new next no noaudit nocompress nologging noparallel not nowait number_base of off offline on online only option or order out package parallel partition pctfree pctincrease pctused pls_integer positive positiven pragma primary prior private privileges procedure public raise range raw rebuild record ref references refresh rename replace resource restrict return returning returns reverse revoke rollback row rowid rowlabel rownum rows run savepoint schema segment select separate set share snapshot some space split sql start statement storage subtype successful synonym tabauth table tables tablespace task terminate then to trigger truncate type union unique unlimited unrecoverable unusable update use using validate value values variable view views when whenever where while with work",builtin:"appinfo arraysize autocommit autoprint autorecovery autotrace blockterminator break btitle cmdsep colsep compatibility compute concat copycommit copytypecheck define echo editfile embedded feedback flagger flush heading headsep instance linesize lno loboffset logsource longchunksize markup native newpage numformat numwidth pagesize pause pno recsep recsepchar repfooter repheader serveroutput shiftinout show showmode spool sqlblanklines sqlcase sqlcode sqlcontinue sqlnumber sqlpluscompatibility sqlprefix sqlprompt sqlterminator suffix tab term termout timing trimout trimspool ttitle underline verify version wrap",types:G+"ascii bfile bfilename bigserial bit blob dec long number nvarchar nvarchar2 serial smallint string text uid varchar2 xml",operatorChars:"*/+-%<>!=~",doubleQuotedStrings:true,charSetCasts:true})}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/8787.4d36d28dcf94bf59cbfe.js b/bootcamp/share/jupyter/lab/static/8787.4d36d28dcf94bf59cbfe.js new file mode 100644 index 0000000..afa2a16 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/8787.4d36d28dcf94bf59cbfe.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8787],{68787:(e,t,r)=>{r.r(t);r.d(t,{vbScript:()=>a,vbScriptASP:()=>i});function n(e){var t="error";function r(e){return new RegExp("^(("+e.join(")|(")+"))\\b","i")}var n=new RegExp("^[\\+\\-\\*/&\\\\\\^<>=]");var a=new RegExp("^((<>)|(<=)|(>=))");var i=new RegExp("^[\\.,]");var o=new RegExp("^[\\(\\)]");var c=new RegExp("^[A-Za-z][_A-Za-z0-9]*");var u=["class","sub","select","while","if","function","property","with","for"];var l=["else","elseif","case"];var s=["next","loop","wend"];var v=r(["and","or","not","xor","is","mod","eqv","imp"]);var b=["dim","redim","then","until","randomize","byval","byref","new","property","exit","in","const","private","public","get","set","let","stop","on error resume next","on error goto 0","option explicit","call","me"];var d=["true","false","nothing","empty","null"];var f=["abs","array","asc","atn","cbool","cbyte","ccur","cdate","cdbl","chr","cint","clng","cos","csng","cstr","date","dateadd","datediff","datepart","dateserial","datevalue","day","escape","eval","execute","exp","filter","formatcurrency","formatdatetime","formatnumber","formatpercent","getlocale","getobject","getref","hex","hour","inputbox","instr","instrrev","int","fix","isarray","isdate","isempty","isnull","isnumeric","isobject","join","lbound","lcase","left","len","loadpicture","log","ltrim","rtrim","trim","maths","mid","minute","month","monthname","msgbox","now","oct","replace","rgb","right","rnd","round","scriptengine","scriptenginebuildversion","scriptenginemajorversion","scriptengineminorversion","second","setlocale","sgn","sin","space","split","sqr","strcomp","string","strreverse","tan","time","timer","timeserial","timevalue","typename","ubound","ucase","unescape","vartype","weekday","weekdayname","year"];var m=["vbBlack","vbRed","vbGreen","vbYellow","vbBlue","vbMagenta","vbCyan","vbWhite","vbBinaryCompare","vbTextCompare","vbSunday","vbMonday","vbTuesday","vbWednesday","vbThursday","vbFriday","vbSaturday","vbUseSystemDayOfWeek","vbFirstJan1","vbFirstFourDays","vbFirstFullWeek","vbGeneralDate","vbLongDate","vbShortDate","vbLongTime","vbShortTime","vbObjectError","vbOKOnly","vbOKCancel","vbAbortRetryIgnore","vbYesNoCancel","vbYesNo","vbRetryCancel","vbCritical","vbQuestion","vbExclamation","vbInformation","vbDefaultButton1","vbDefaultButton2","vbDefaultButton3","vbDefaultButton4","vbApplicationModal","vbSystemModal","vbOK","vbCancel","vbAbort","vbRetry","vbIgnore","vbYes","vbNo","vbCr","VbCrLf","vbFormFeed","vbLf","vbNewLine","vbNullChar","vbNullString","vbTab","vbVerticalTab","vbUseDefault","vbTrue","vbFalse","vbEmpty","vbNull","vbInteger","vbLong","vbSingle","vbDouble","vbCurrency","vbDate","vbString","vbObject","vbError","vbBoolean","vbVariant","vbDataObject","vbDecimal","vbByte","vbArray"];var p=["WScript","err","debug","RegExp"];var h=["description","firstindex","global","helpcontext","helpfile","ignorecase","length","number","pattern","source","value","count"];var y=["clear","execute","raise","replace","test","write","writeline","close","open","state","eof","update","addnew","end","createobject","quit"];var g=["server","response","request","session","application"];var k=["buffer","cachecontrol","charset","contenttype","expires","expiresabsolute","isclientconnected","pics","status","clientcertificate","cookies","form","querystring","servervariables","totalbytes","contents","staticobjects","codepage","lcid","sessionid","timeout","scripttimeout"];var w=["addheader","appendtolog","binarywrite","end","flush","redirect","binaryread","remove","removeall","lock","unlock","abandon","getlasterror","htmlencode","mappath","transfer","urlencode"];var x=y.concat(h);p=p.concat(m);if(e.isASP){p=p.concat(g);x=x.concat(w,k)}var C=r(b);var I=r(d);var L=r(f);var S=r(p);var D=r(x);var E='"';var j=r(u);var O=r(l);var T=r(s);var z=r(["end"]);var R=r(["do"]);var F=r(["on error resume next","exit"]);var A=r(["rem"]);function B(e,t){t.currentIndent++}function N(e,t){t.currentIndent--}function _(e,r){if(e.eatSpace()){return null}var u=e.peek();if(u==="'"){e.skipToEnd();return"comment"}if(e.match(A)){e.skipToEnd();return"comment"}if(e.match(/^((&H)|(&O))?[0-9\.]/i,false)&&!e.match(/^((&H)|(&O))?[0-9\.]+[a-z_]/i,false)){var l=false;if(e.match(/^\d*\.\d+/i)){l=true}else if(e.match(/^\d+\.\d*/)){l=true}else if(e.match(/^\.\d+/)){l=true}if(l){e.eat(/J/i);return"number"}var s=false;if(e.match(/^&H[0-9a-f]+/i)){s=true}else if(e.match(/^&O[0-7]+/i)){s=true}else if(e.match(/^[1-9]\d*F?/)){e.eat(/J/i);s=true}else if(e.match(/^0(?![\dx])/i)){s=true}if(s){e.eat(/L/i);return"number"}}if(e.match(E)){r.tokenize=W(e.current());return r.tokenize(e,r)}if(e.match(a)||e.match(n)||e.match(v)){return"operator"}if(e.match(i)){return null}if(e.match(o)){return"bracket"}if(e.match(F)){r.doInCurrentLine=true;return"keyword"}if(e.match(R)){B(e,r);r.doInCurrentLine=true;return"keyword"}if(e.match(j)){if(!r.doInCurrentLine)B(e,r);else r.doInCurrentLine=false;return"keyword"}if(e.match(O)){return"keyword"}if(e.match(z)){N(e,r);N(e,r);return"keyword"}if(e.match(T)){if(!r.doInCurrentLine)N(e,r);else r.doInCurrentLine=false;return"keyword"}if(e.match(C)){return"keyword"}if(e.match(I)){return"atom"}if(e.match(D)){return"variableName.special"}if(e.match(L)){return"builtin"}if(e.match(S)){return"builtin"}if(e.match(c)){return"variable"}e.next();return t}function W(e){var t=e.length==1;var r="string";return function(n,a){while(!n.eol()){n.eatWhile(/[^'"]/);if(n.match(e)){a.tokenize=_;return r}else{n.eat(/['"]/)}}if(t){a.tokenize=_}return r}}function q(e,r){var n=r.tokenize(e,r);var a=e.current();if(a==="."){n=r.tokenize(e,r);a=e.current();if(n&&(n.substr(0,8)==="variable"||n==="builtin"||n==="keyword")){if(n==="builtin"||n==="keyword")n="variable";if(x.indexOf(a.substr(1))>-1)n="keyword";return n}else{return t}}return n}return{name:"vbscript",startState:function(){return{tokenize:_,lastToken:null,currentIndent:0,nextLineIndent:0,doInCurrentLine:false,ignoreKeyword:false}},token:function(e,t){if(e.sol()){t.currentIndent+=t.nextLineIndent;t.nextLineIndent=0;t.doInCurrentLine=0}var r=q(e,t);t.lastToken={style:r,content:e.current()};if(r===null)r=null;return r},indent:function(e,t,r){var n=t.replace(/^\s+|\s+$/g,"");if(n.match(T)||n.match(z)||n.match(O))return r.unit*(e.currentIndent-1);if(e.currentIndent<0)return 0;return e.currentIndent*r.unit}}}const a=n({});const i=n({isASP:true})}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/8805.0f14a91b024b59c039a7.js b/bootcamp/share/jupyter/lab/static/8805.0f14a91b024b59c039a7.js new file mode 100644 index 0000000..c8c7a97 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/8805.0f14a91b024b59c039a7.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8805],{78805:(e,t,n)=>{n.r(t);n.d(t,{turtle:()=>p});var r;function i(e){return new RegExp("^(?:"+e.join("|")+")$","i")}var l=i([]);var a=i(["@prefix","@base","a"]);var o=/[*+\-<>=&|]/;function c(e,t){var n=e.next();r=null;if(n=="<"&&!e.match(/^[\s\u00a0=]/,false)){e.match(/^[^\s\u00a0>]*>?/);return"atom"}else if(n=='"'||n=="'"){t.tokenize=u(n);return t.tokenize(e,t)}else if(/[{}\(\),\.;\[\]]/.test(n)){r=n;return null}else if(n=="#"){e.skipToEnd();return"comment"}else if(o.test(n)){e.eatWhile(o);return null}else if(n==":"){return"operator"}else{e.eatWhile(/[_\w\d]/);if(e.peek()==":"){return"variableName.special"}else{var i=e.current();if(a.test(i)){return"meta"}if(n>="A"&&n<="Z"){return"comment"}else{return"keyword"}}var i=e.current();if(l.test(i))return null;else if(a.test(i))return"meta";else return"variable"}}function u(e){return function(t,n){var r=false,i;while((i=t.next())!=null){if(i==e&&!r){n.tokenize=c;break}r=!r&&i=="\\"}return"string"}}function s(e,t,n){e.context={prev:e.context,indent:e.indent,col:n,type:t}}function f(e){e.indent=e.context.indent;e.context=e.context.prev}const p={name:"turtle",startState:function(){return{tokenize:c,context:null,indent:0,col:0}},token:function(e,t){if(e.sol()){if(t.context&&t.context.align==null)t.context.align=false;t.indent=e.indentation()}if(e.eatSpace())return null;var n=t.tokenize(e,t);if(n!="comment"&&t.context&&t.context.align==null&&t.context.type!="pattern"){t.context.align=true}if(r=="(")s(t,")",e.column());else if(r=="[")s(t,"]",e.column());else if(r=="{")s(t,"}",e.column());else if(/[\]\}\)]/.test(r)){while(t.context&&t.context.type=="pattern")f(t);if(t.context&&r==t.context.type)f(t)}else if(r=="."&&t.context&&t.context.type=="pattern")f(t);else if(/atom|string|variable/.test(n)&&t.context){if(/[\}\]]/.test(t.context.type))s(t,"pattern",e.column());else if(t.context.type=="pattern"&&!t.context.align){t.context.align=true;t.context.col=e.column()}}return n},indent:function(e,t,n){var r=t&&t.charAt(0);var i=e.context;if(/[\]\}]/.test(r))while(i&&i.type=="pattern")i=i.prev;var l=i&&r==i.type;if(!i)return 0;else if(i.type=="pattern")return i.col;else if(i.align)return i.col+(l?0:1);else return i.indent+(l?0:n.unit)},languageData:{commentTokens:{line:"#"}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/8823.2ff947bcd96cc0723058.js b/bootcamp/share/jupyter/lab/static/8823.2ff947bcd96cc0723058.js new file mode 100644 index 0000000..4cc0e68 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/8823.2ff947bcd96cc0723058.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[8823,2990],{48823:(n,t,e)=>{e.d(t,{$G:()=>In,$m:()=>An,BB:()=>Un,Ds:()=>ln,Dw:()=>N,EP:()=>a,FP:()=>Nn,HD:()=>En,He:()=>S,Hq:()=>j,IX:()=>L,J_:()=>jn,Jy:()=>On,Kj:()=>kn,Kn:()=>D,N3:()=>F,Oj:()=>o,QA:()=>X,Rg:()=>Hn,TS:()=>vn,TW:()=>wn,We:()=>fn,XW:()=>yn,Xr:()=>pn,ZE:()=>r,ZU:()=>Tn,Zw:()=>$,_k:()=>s,a9:()=>on,ay:()=>B,bM:()=>p,bV:()=>K,cG:()=>E,dH:()=>C,dI:()=>sn,el:()=>u,fE:()=>v,fj:()=>z,hj:()=>Mn,iL:()=>R,id:()=>h,j2:()=>tn,jj:()=>w,jn:()=>dn,k:()=>m,kI:()=>k,kJ:()=>_,kX:()=>b,kg:()=>O,l$:()=>Q,l7:()=>cn,m8:()=>Sn,mJ:()=>W,mK:()=>G,mS:()=>Z,mf:()=>V,nr:()=>hn,qu:()=>nn,rx:()=>Rn,sw:()=>Jn,t7:()=>_n,u5:()=>mn,uU:()=>M,vU:()=>f,vk:()=>xn,yP:()=>zn,yR:()=>g,yb:()=>y,yl:()=>bn});function r(n,t,e){n.fields=t||[];n.fname=e;return n}function u(n){return n==null?null:n.fname}function o(n){return n==null?null:n.fields}function i(n){return n.length===1?l(n[0]):c(n)}const l=n=>function(t){return t[n]};const c=n=>{const t=n.length;return function(e){for(let r=0;ri){s()}else{i=l+1}}else if(c==="["){if(l>i)s();u=i=l+1}else if(c==="]"){if(!u)f("Access path missing open bracket: "+n);if(u>0)s();u=0;i=l+1}}if(u)f("Access path missing closing bracket: "+n);if(r)f("Access path missing closing quote: "+n);if(l>i){l++;s()}return t}function a(n,t,e){const u=s(n);n=u.length===1?u[0]:n;return r((e&&e.get||i)(u),[n],t||n)}const h=a("id");const g=r((n=>n),[],"identity");const p=r((()=>0),[],"zero");const b=r((()=>1),[],"one");const y=r((()=>true),[],"true");const m=r((()=>false),[],"false");function d(n,t,e){const r=[t].concat([].slice.call(e));console[n].apply(console,r)}const j=0;const w=1;const M=2;const k=3;const E=4;function O(n,t){let e=arguments.length>2&&arguments[2]!==undefined?arguments[2]:d;let r=n||j;return{level(n){if(arguments.length){r=+n;return this}else{return r}},error(){if(r>=w)e(t||"error","ERROR",arguments);return this},warn(){if(r>=M)e(t||"warn","WARN",arguments);return this},info(){if(r>=k)e(t||"log","INFO",arguments);return this},debug(){if(r>=E)e(t||"log","DEBUG",arguments);return this}}}var _=Array.isArray;function D(n){return n===Object(n)}const A=n=>n!=="__proto__";function v(){for(var n=arguments.length,t=new Array(n),e=0;e{for(const e in t){if(e==="signals"){n.signals=x(n.signals,t.signals)}else{const r=e==="legend"?{layout:1}:e==="style"?true:null;R(n,e,t[e],r)}}return n}),{})}function R(n,t,e,r){if(!A(t))return;let u,o;if(D(e)&&!_(e)){o=D(n[t])?n[t]:n[t]={};for(u in e){if(r&&(r===true||r[u])){R(o,u,e[u])}else if(A(u)){o[u]=e[u]}}}else{n[t]=e}}function x(n,t){if(n==null)return t;const e={},r=[];function u(n){if(!e[n.name]){e[n.name]=1;r.push(n)}}t.forEach(u);n.forEach(u);return r}function z(n){return n[n.length-1]}function S(n){return n==null||n===""?null:+n}const J=n=>t=>n*Math.exp(t);const P=n=>t=>Math.log(n*t);const T=n=>t=>Math.sign(t)*Math.log1p(Math.abs(t/n));const U=n=>t=>Math.sign(t)*Math.expm1(Math.abs(t))*n;const H=n=>t=>t<0?-Math.pow(-t,n):Math.pow(t,n);function I(n,t,e,r){const u=e(n[0]),o=e(z(n)),i=(o-u)*t;return[r(u-i),r(o-i)]}function N(n,t){return I(n,t,S,g)}function W(n,t){var e=Math.sign(n[0]);return I(n,t,P(e),J(e))}function X(n,t,e){return I(n,t,H(e),H(1/e))}function $(n,t,e){return I(n,t,T(e),U(e))}function q(n,t,e,r,u){const o=r(n[0]),i=r(z(n)),l=t!=null?r(t):(o+i)/2;return[u(l+(o-l)*e),u(l+(i-l)*e)]}function B(n,t,e){return q(n,t,e,S,g)}function C(n,t,e){const r=Math.sign(n[0]);return q(n,t,e,P(r),J(r))}function G(n,t,e,r){return q(n,t,e,H(r),H(1/r))}function K(n,t,e,r){return q(n,t,e,T(r),U(r))}function Z(n){return 1+~~(new Date(n).getMonth()/3)}function F(n){return 1+~~(new Date(n).getUTCMonth()/3)}function L(n){return n!=null?_(n)?n:[n]:[]}function Q(n,t,e){let r=n[0],u=n[1],o;if(u=e-t?[t,e]:[r=Math.min(Math.max(r,t),e-o),r+o]}function V(n){return typeof n==="function"}const Y="descending";function nn(n,t,e){e=e||{};t=L(t)||[];const u=[],i=[],l={},c=e.comparator||en;L(n).forEach(((n,r)=>{if(n==null)return;u.push(t[r]===Y?-1:1);i.push(n=V(n)?n:a(n,null,e));(o(n)||[]).forEach((n=>l[n]=1))}));return i.length===0?null:r(c(i,u),Object.keys(l))}const tn=(n,t)=>(nt||t==null)&&n!=null?1:(t=t instanceof Date?+t:t,n=n instanceof Date?+n:n)!==n&&t===t?-1:t!==t&&n===n?1:0;const en=(n,t)=>n.length===1?rn(n[0],t[0]):un(n,t,n.length);const rn=(n,t)=>function(e,r){return tn(n(e),n(r))*t};const un=(n,t,e)=>{t.push(0);return function(r,u){let o,i=0,l=-1;while(i===0&&++ln}function ln(n,t){let e;return r=>{if(e)clearTimeout(e);e=setTimeout((()=>(t(r),e=null)),n)}}function cn(n){for(let t,e,r=1,u=arguments.length;ri)i=u}}}else{for(u=t(n[e]);ei)i=u}}}}return[o,i]}function sn(n,t){const e=n.length;let r=-1,u,o,i,l,c;if(t==null){while(++r=o){u=i=o;break}}if(r===e)return[-1,-1];l=c=r;while(++ro){u=o;l=r}if(i=o){u=i=o;break}}if(r===e)return[-1,-1];l=c=r;while(++ro){u=o;l=r}if(i{u.set(t,n[t])}));return u}function bn(n,t,e,r,u,o){if(!e&&e!==0)return o;const i=+e;let l=n[0],c=z(n),f;if(co){i=u;u=o;o=i}e=e===undefined||e;r=r===undefined||r;return(e?u<=n:un.replace(/\\(.)/g,"$1"))):L(n)}const u=n&&n.length,o=e&&e.get||i,l=n=>o(t?[n]:s(n));let c;if(!u){c=function(){return""}}else if(u===1){const t=l(n[0]);c=function(n){return""+t(n)}}else{const t=n.map(l);c=function(n){let e=""+t[0](n),r=0;while(++r{t={};e={};r=0};const o=(u,o)=>{if(++r>n){e=t;t={};r=1}return t[u]=o};u();return{clear:u,has:n=>hn(t,n)||hn(e,n),get:n=>hn(t,n)?t[n]:hn(e,n)?o(n,e[n]):undefined,set:(n,e)=>hn(t,n)?t[n]=e:o(n,e)}}function vn(n,t,e,r){const u=t.length,o=e.length;if(!o)return t;if(!u)return e;const i=r||new t.constructor(u+o);let l=0,c=0,f=0;for(;l0?e[c++]:t[l++]}for(;l=0)e+=n;return e}function xn(n,t,e,r){const u=e||" ",o=n+"",i=t-o.length;return i<=0?o:r==="left"?Rn(u,i)+o:r==="center"?Rn(u,~~(i/2))+o+Rn(u,Math.ceil(i/2)):o+Rn(u,i)}function zn(n){return n&&z(n)-n[0]||0}function Sn(n){return _(n)?"["+n.map(Sn)+"]":D(n)||En(n)?JSON.stringify(n).replace("\u2028","\\u2028").replace("\u2029","\\u2029"):n}function Jn(n){return n==null||n===""?null:!n||n==="false"||n==="0"?false:!!n}const Pn=n=>Mn(n)?n:jn(n)?n:Date.parse(n);function Tn(n,t){t=t||Pn;return n==null||n===""?null:t(n)}function Un(n){return n==null||n===""?null:n+""}function Hn(n){const t={},e=n.length;for(let r=0;r{e=r.nmd(e);var n=200;var s="__lodash_hash_undefined__";var i=800,o=16;var a=9007199254740991;var c="[object Arguments]",u="[object Array]",f="[object AsyncFunction]",l="[object Boolean]",d="[object Date]",h="[object Error]",p="[object Function]",g="[object GeneratorFunction]",m="[object Map]",y="[object Number]",b="[object Null]",v="[object Object]",_="[object Proxy]",w="[object RegExp]",T="[object Set]",E="[object String]",S="[object Undefined]",C="[object WeakMap]";var R="[object ArrayBuffer]",k="[object DataView]",M="[object Float32Array]",j="[object Float64Array]",O="[object Int8Array]",P="[object Int16Array]",N="[object Int32Array]",x="[object Uint8Array]",L="[object Uint8ClampedArray]",q="[object Uint16Array]",A="[object Uint32Array]";var $=/[\\^$.*+?()[\]{}|]/g;var D=/^\[object .+?Constructor\]$/;var z=/^(?:0|[1-9]\d*)$/;var I={};I[M]=I[j]=I[O]=I[P]=I[N]=I[x]=I[L]=I[q]=I[A]=true;I[c]=I[u]=I[R]=I[l]=I[k]=I[d]=I[h]=I[p]=I[m]=I[y]=I[v]=I[w]=I[T]=I[E]=I[C]=false;var W=typeof r.g=="object"&&r.g&&r.g.Object===Object&&r.g;var B=typeof self=="object"&&self&&self.Object===Object&&self;var F=W||B||Function("return this")();var U=true&&t&&!t.nodeType&&t;var V=U&&"object"=="object"&&e&&!e.nodeType&&e;var J=V&&V.exports===U;var H=J&&W.process;var G=function(){try{var e=V&&V.require&&V.require("util").types;if(e){return e}return H&&H.binding&&H.binding("util")}catch(t){}}();var K=G&&G.isTypedArray;function Q(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}function X(e,t){var r=-1,n=Array(e);while(++r-1}function De(e,t){var r=this.__data__,n=et(r,e);if(n<0){++this.size;r.push([e,t])}else{r[n][1]=t}return this}xe.prototype.clear=Le;xe.prototype["delete"]=qe;xe.prototype.get=Ae;xe.prototype.has=$e;xe.prototype.set=De;function ze(e){var t=-1,r=e==null?0:e.length;this.clear();while(++t1?r[s-1]:undefined,o=s>2?r[2]:undefined;i=e.length>3&&typeof i=="function"?(s--,i):undefined;if(o&&St(r[0],r[1],o)){i=s<3?undefined:i;s=1}t=Object(t);while(++n-1&&e%1==0&&e0){if(++t>=i){return arguments[0]}}else{t=0}return e.apply(undefined,arguments)}}function Lt(e){if(e!=null){try{return ie.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function qt(e,t){return e===t||e!==e&&t!==t}var At=st(function(){return arguments}())?st:function(e){return Ut(e)&&oe.call(e,"callee")&&!ye.call(e,"callee")};var $t=Array.isArray;function Dt(e){return e!=null&&Bt(e.length)&&!Wt(e)}function zt(e){return Ut(e)&&Dt(e)}var It=we||Yt;function Wt(e){if(!Ft(e)){return false}var t=nt(e);return t==p||t==g||t==f||t==_}function Bt(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=a}function Ft(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ut(e){return e!=null&&typeof e=="object"}function Vt(e){if(!Ut(e)||nt(e)!=v){return false}var t=ge(e);if(t===null){return true}var r=oe.call(t,"constructor")&&t.constructor;return typeof r=="function"&&r instanceof r&&ie.call(r)==ue}var Jt=K?Y(K):ot;function Ht(e){return mt(e,Gt(e))}function Gt(e){return Dt(e)?Xe(e,true):at(e)}var Kt=yt((function(e,t,r,n){ct(e,t,r,n)}));function Qt(e){return function(){return e}}function Xt(e){return e}function Yt(){return false}e.exports=Kt},39054:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){if(n===undefined)n=r;var s=Object.getOwnPropertyDescriptor(t,r);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,n,s)}:function(e,t,r,n){if(n===undefined)n=r;e[n]=t[r]});var s=this&&this.__exportStar||function(e,t){for(var r in e)if(r!=="default"&&!Object.prototype.hasOwnProperty.call(t,r))n(t,e,r)};Object.defineProperty(t,"__esModule",{value:true});t.createMessageConnection=t.BrowserMessageWriter=t.BrowserMessageReader=void 0;const i=r(25669);i.default.install();const o=r(23870);s(r(23870),t);class a extends o.AbstractMessageReader{constructor(e){super();this._onData=new o.Emitter;this._messageListener=e=>{this._onData.fire(e.data)};e.addEventListener("error",(e=>this.fireError(e)));e.onmessage=this._messageListener}listen(e){return this._onData.event(e)}}t.BrowserMessageReader=a;class c extends o.AbstractMessageWriter{constructor(e){super();this.port=e;this.errorCount=0;e.addEventListener("error",(e=>this.fireError(e)))}write(e){try{this.port.postMessage(e);return Promise.resolve()}catch(t){this.handleError(t,e);return Promise.reject(t)}}handleError(e,t){this.errorCount++;this.fireError(e,t,this.errorCount)}end(){}}t.BrowserMessageWriter=c;function u(e,t,r,n){if(r===undefined){r=o.NullLogger}if(o.ConnectionStrategy.is(n)){n={connectionStrategy:n}}return(0,o.createMessageConnection)(e,t,r,n)}t.createMessageConnection=u},25669:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});const n=r(23870);class s extends n.AbstractMessageBuffer{constructor(e="utf-8"){super(e);this.asciiDecoder=new TextDecoder("ascii")}emptyBuffer(){return s.emptyBuffer}fromString(e,t){return(new TextEncoder).encode(e)}toString(e,t){if(t==="ascii"){return this.asciiDecoder.decode(e)}else{return new TextDecoder(t).decode(e)}}asNative(e,t){if(t===undefined){return e}else{return e.slice(0,t)}}allocNative(e){return new Uint8Array(e)}}s.emptyBuffer=new Uint8Array(0);class i{constructor(e){this.socket=e;this._onData=new n.Emitter;this._messageListener=e=>{const t=e.data;t.arrayBuffer().then((e=>{this._onData.fire(new Uint8Array(e))}),(()=>{(0,n.RAL)().console.error(`Converting blob to array buffer failed.`)}))};this.socket.addEventListener("message",this._messageListener)}onClose(e){this.socket.addEventListener("close",e);return n.Disposable.create((()=>this.socket.removeEventListener("close",e)))}onError(e){this.socket.addEventListener("error",e);return n.Disposable.create((()=>this.socket.removeEventListener("error",e)))}onEnd(e){this.socket.addEventListener("end",e);return n.Disposable.create((()=>this.socket.removeEventListener("end",e)))}onData(e){return this._onData.event(e)}}class o{constructor(e){this.socket=e}onClose(e){this.socket.addEventListener("close",e);return n.Disposable.create((()=>this.socket.removeEventListener("close",e)))}onError(e){this.socket.addEventListener("error",e);return n.Disposable.create((()=>this.socket.removeEventListener("error",e)))}onEnd(e){this.socket.addEventListener("end",e);return n.Disposable.create((()=>this.socket.removeEventListener("end",e)))}write(e,t){if(typeof e==="string"){if(t!==undefined&&t!=="utf-8"){throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t}`)}this.socket.send(e)}else{this.socket.send(e)}return Promise.resolve()}end(){this.socket.close()}}const a=new TextEncoder;const c=Object.freeze({messageBuffer:Object.freeze({create:e=>new s(e)}),applicationJson:Object.freeze({encoder:Object.freeze({name:"application/json",encode:(e,t)=>{if(t.charset!=="utf-8"){throw new Error(`In a Browser environments only utf-8 text encoding is supported. But got encoding: ${t.charset}`)}return Promise.resolve(a.encode(JSON.stringify(e,undefined,0)))}}),decoder:Object.freeze({name:"application/json",decode:(e,t)=>{if(!(e instanceof Uint8Array)){throw new Error(`In a Browser environments only Uint8Arrays are supported.`)}return Promise.resolve(JSON.parse(new TextDecoder(t.charset).decode(e)))}})}),stream:Object.freeze({asReadableStream:e=>new i(e),asWritableStream:e=>new o(e)}),console,timer:Object.freeze({setTimeout(e,t,...r){const n=setTimeout(e,t,...r);return{dispose:()=>clearTimeout(n)}},setImmediate(e,...t){const r=setTimeout(e,0,...t);return{dispose:()=>clearTimeout(r)}},setInterval(e,t,...r){const n=setInterval(e,t,...r);return{dispose:()=>clearInterval(n)}}})});function u(){return c}(function(e){function t(){n.RAL.install(c)}e.install=t})(u||(u={}));t["default"]=u},23870:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ProgressType=t.ProgressToken=t.createMessageConnection=t.NullLogger=t.ConnectionOptions=t.ConnectionStrategy=t.AbstractMessageBuffer=t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=t.CancellationToken=t.CancellationTokenSource=t.Emitter=t.Event=t.Disposable=t.LRUCache=t.Touch=t.LinkedMap=t.ParameterStructures=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.ErrorCodes=t.ResponseError=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType0=t.RequestType=t.Message=t.RAL=void 0;t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.Trace=void 0;const n=r(20839);Object.defineProperty(t,"Message",{enumerable:true,get:function(){return n.Message}});Object.defineProperty(t,"RequestType",{enumerable:true,get:function(){return n.RequestType}});Object.defineProperty(t,"RequestType0",{enumerable:true,get:function(){return n.RequestType0}});Object.defineProperty(t,"RequestType1",{enumerable:true,get:function(){return n.RequestType1}});Object.defineProperty(t,"RequestType2",{enumerable:true,get:function(){return n.RequestType2}});Object.defineProperty(t,"RequestType3",{enumerable:true,get:function(){return n.RequestType3}});Object.defineProperty(t,"RequestType4",{enumerable:true,get:function(){return n.RequestType4}});Object.defineProperty(t,"RequestType5",{enumerable:true,get:function(){return n.RequestType5}});Object.defineProperty(t,"RequestType6",{enumerable:true,get:function(){return n.RequestType6}});Object.defineProperty(t,"RequestType7",{enumerable:true,get:function(){return n.RequestType7}});Object.defineProperty(t,"RequestType8",{enumerable:true,get:function(){return n.RequestType8}});Object.defineProperty(t,"RequestType9",{enumerable:true,get:function(){return n.RequestType9}});Object.defineProperty(t,"ResponseError",{enumerable:true,get:function(){return n.ResponseError}});Object.defineProperty(t,"ErrorCodes",{enumerable:true,get:function(){return n.ErrorCodes}});Object.defineProperty(t,"NotificationType",{enumerable:true,get:function(){return n.NotificationType}});Object.defineProperty(t,"NotificationType0",{enumerable:true,get:function(){return n.NotificationType0}});Object.defineProperty(t,"NotificationType1",{enumerable:true,get:function(){return n.NotificationType1}});Object.defineProperty(t,"NotificationType2",{enumerable:true,get:function(){return n.NotificationType2}});Object.defineProperty(t,"NotificationType3",{enumerable:true,get:function(){return n.NotificationType3}});Object.defineProperty(t,"NotificationType4",{enumerable:true,get:function(){return n.NotificationType4}});Object.defineProperty(t,"NotificationType5",{enumerable:true,get:function(){return n.NotificationType5}});Object.defineProperty(t,"NotificationType6",{enumerable:true,get:function(){return n.NotificationType6}});Object.defineProperty(t,"NotificationType7",{enumerable:true,get:function(){return n.NotificationType7}});Object.defineProperty(t,"NotificationType8",{enumerable:true,get:function(){return n.NotificationType8}});Object.defineProperty(t,"NotificationType9",{enumerable:true,get:function(){return n.NotificationType9}});Object.defineProperty(t,"ParameterStructures",{enumerable:true,get:function(){return n.ParameterStructures}});const s=r(96184);Object.defineProperty(t,"LinkedMap",{enumerable:true,get:function(){return s.LinkedMap}});Object.defineProperty(t,"LRUCache",{enumerable:true,get:function(){return s.LRUCache}});Object.defineProperty(t,"Touch",{enumerable:true,get:function(){return s.Touch}});const i=r(83911);Object.defineProperty(t,"Disposable",{enumerable:true,get:function(){return i.Disposable}});const o=r(27135);Object.defineProperty(t,"Event",{enumerable:true,get:function(){return o.Event}});Object.defineProperty(t,"Emitter",{enumerable:true,get:function(){return o.Emitter}});const a=r(13881);Object.defineProperty(t,"CancellationTokenSource",{enumerable:true,get:function(){return a.CancellationTokenSource}});Object.defineProperty(t,"CancellationToken",{enumerable:true,get:function(){return a.CancellationToken}});const c=r(98211);Object.defineProperty(t,"SharedArraySenderStrategy",{enumerable:true,get:function(){return c.SharedArraySenderStrategy}});Object.defineProperty(t,"SharedArrayReceiverStrategy",{enumerable:true,get:function(){return c.SharedArrayReceiverStrategy}});const u=r(56525);Object.defineProperty(t,"MessageReader",{enumerable:true,get:function(){return u.MessageReader}});Object.defineProperty(t,"AbstractMessageReader",{enumerable:true,get:function(){return u.AbstractMessageReader}});Object.defineProperty(t,"ReadableStreamMessageReader",{enumerable:true,get:function(){return u.ReadableStreamMessageReader}});const f=r(96654);Object.defineProperty(t,"MessageWriter",{enumerable:true,get:function(){return f.MessageWriter}});Object.defineProperty(t,"AbstractMessageWriter",{enumerable:true,get:function(){return f.AbstractMessageWriter}});Object.defineProperty(t,"WriteableStreamMessageWriter",{enumerable:true,get:function(){return f.WriteableStreamMessageWriter}});const l=r(75530);Object.defineProperty(t,"AbstractMessageBuffer",{enumerable:true,get:function(){return l.AbstractMessageBuffer}});const d=r(61343);Object.defineProperty(t,"ConnectionStrategy",{enumerable:true,get:function(){return d.ConnectionStrategy}});Object.defineProperty(t,"ConnectionOptions",{enumerable:true,get:function(){return d.ConnectionOptions}});Object.defineProperty(t,"NullLogger",{enumerable:true,get:function(){return d.NullLogger}});Object.defineProperty(t,"createMessageConnection",{enumerable:true,get:function(){return d.createMessageConnection}});Object.defineProperty(t,"ProgressToken",{enumerable:true,get:function(){return d.ProgressToken}});Object.defineProperty(t,"ProgressType",{enumerable:true,get:function(){return d.ProgressType}});Object.defineProperty(t,"Trace",{enumerable:true,get:function(){return d.Trace}});Object.defineProperty(t,"TraceValues",{enumerable:true,get:function(){return d.TraceValues}});Object.defineProperty(t,"TraceFormat",{enumerable:true,get:function(){return d.TraceFormat}});Object.defineProperty(t,"SetTraceNotification",{enumerable:true,get:function(){return d.SetTraceNotification}});Object.defineProperty(t,"LogTraceNotification",{enumerable:true,get:function(){return d.LogTraceNotification}});Object.defineProperty(t,"ConnectionErrors",{enumerable:true,get:function(){return d.ConnectionErrors}});Object.defineProperty(t,"ConnectionError",{enumerable:true,get:function(){return d.ConnectionError}});Object.defineProperty(t,"CancellationReceiverStrategy",{enumerable:true,get:function(){return d.CancellationReceiverStrategy}});Object.defineProperty(t,"CancellationSenderStrategy",{enumerable:true,get:function(){return d.CancellationSenderStrategy}});Object.defineProperty(t,"CancellationStrategy",{enumerable:true,get:function(){return d.CancellationStrategy}});Object.defineProperty(t,"MessageStrategy",{enumerable:true,get:function(){return d.MessageStrategy}});const h=r(30147);t.RAL=h.default},13881:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.CancellationTokenSource=t.CancellationToken=void 0;const n=r(30147);const s=r(67574);const i=r(27135);var o;(function(e){e.None=Object.freeze({isCancellationRequested:false,onCancellationRequested:i.Event.None});e.Cancelled=Object.freeze({isCancellationRequested:true,onCancellationRequested:i.Event.None});function t(t){const r=t;return r&&(r===e.None||r===e.Cancelled||s.boolean(r.isCancellationRequested)&&!!r.onCancellationRequested)}e.is=t})(o=t.CancellationToken||(t.CancellationToken={}));const a=Object.freeze((function(e,t){const r=(0,n.default)().timer.setTimeout(e.bind(t),0);return{dispose(){r.dispose()}}}));class c{constructor(){this._isCancelled=false}cancel(){if(!this._isCancelled){this._isCancelled=true;if(this._emitter){this._emitter.fire(undefined);this.dispose()}}}get isCancellationRequested(){return this._isCancelled}get onCancellationRequested(){if(this._isCancelled){return a}if(!this._emitter){this._emitter=new i.Emitter}return this._emitter.event}dispose(){if(this._emitter){this._emitter.dispose();this._emitter=undefined}}}class u{get token(){if(!this._token){this._token=new c}return this._token}cancel(){if(!this._token){this._token=o.Cancelled}else{this._token.cancel()}}dispose(){if(!this._token){this._token=o.None}else if(this._token instanceof c){this._token.dispose()}}}t.CancellationTokenSource=u},61343:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.createMessageConnection=t.ConnectionOptions=t.MessageStrategy=t.CancellationStrategy=t.CancellationSenderStrategy=t.CancellationReceiverStrategy=t.RequestCancellationReceiverStrategy=t.IdCancellationReceiverStrategy=t.ConnectionStrategy=t.ConnectionError=t.ConnectionErrors=t.LogTraceNotification=t.SetTraceNotification=t.TraceFormat=t.TraceValues=t.Trace=t.NullLogger=t.ProgressType=t.ProgressToken=void 0;const n=r(30147);const s=r(67574);const i=r(20839);const o=r(96184);const a=r(27135);const c=r(13881);var u;(function(e){e.type=new i.NotificationType("$/cancelRequest")})(u||(u={}));var f;(function(e){function t(e){return typeof e==="string"||typeof e==="number"}e.is=t})(f=t.ProgressToken||(t.ProgressToken={}));var l;(function(e){e.type=new i.NotificationType("$/progress")})(l||(l={}));class d{constructor(){}}t.ProgressType=d;var h;(function(e){function t(e){return s.func(e)}e.is=t})(h||(h={}));t.NullLogger=Object.freeze({error:()=>{},warn:()=>{},info:()=>{},log:()=>{}});var p;(function(e){e[e["Off"]=0]="Off";e[e["Messages"]=1]="Messages";e[e["Compact"]=2]="Compact";e[e["Verbose"]=3]="Verbose"})(p=t.Trace||(t.Trace={}));var g;(function(e){e.Off="off";e.Messages="messages";e.Compact="compact";e.Verbose="verbose"})(g=t.TraceValues||(t.TraceValues={}));(function(e){function t(t){if(!s.string(t)){return e.Off}t=t.toLowerCase();switch(t){case"off":return e.Off;case"messages":return e.Messages;case"compact":return e.Compact;case"verbose":return e.Verbose;default:return e.Off}}e.fromString=t;function r(t){switch(t){case e.Off:return"off";case e.Messages:return"messages";case e.Compact:return"compact";case e.Verbose:return"verbose";default:return"off"}}e.toString=r})(p=t.Trace||(t.Trace={}));var m;(function(e){e["Text"]="text";e["JSON"]="json"})(m=t.TraceFormat||(t.TraceFormat={}));(function(e){function t(t){if(!s.string(t)){return e.Text}t=t.toLowerCase();if(t==="json"){return e.JSON}else{return e.Text}}e.fromString=t})(m=t.TraceFormat||(t.TraceFormat={}));var y;(function(e){e.type=new i.NotificationType("$/setTrace")})(y=t.SetTraceNotification||(t.SetTraceNotification={}));var b;(function(e){e.type=new i.NotificationType("$/logTrace")})(b=t.LogTraceNotification||(t.LogTraceNotification={}));var v;(function(e){e[e["Closed"]=1]="Closed";e[e["Disposed"]=2]="Disposed";e[e["AlreadyListening"]=3]="AlreadyListening"})(v=t.ConnectionErrors||(t.ConnectionErrors={}));class _ extends Error{constructor(e,t){super(t);this.code=e;Object.setPrototypeOf(this,_.prototype)}}t.ConnectionError=_;var w;(function(e){function t(e){const t=e;return t&&s.func(t.cancelUndispatched)}e.is=t})(w=t.ConnectionStrategy||(t.ConnectionStrategy={}));var T;(function(e){function t(e){const t=e;return t&&(t.kind===undefined||t.kind==="id")&&s.func(t.createCancellationTokenSource)&&(t.dispose===undefined||s.func(t.dispose))}e.is=t})(T=t.IdCancellationReceiverStrategy||(t.IdCancellationReceiverStrategy={}));var E;(function(e){function t(e){const t=e;return t&&t.kind==="request"&&s.func(t.createCancellationTokenSource)&&(t.dispose===undefined||s.func(t.dispose))}e.is=t})(E=t.RequestCancellationReceiverStrategy||(t.RequestCancellationReceiverStrategy={}));var S;(function(e){e.Message=Object.freeze({createCancellationTokenSource(e){return new c.CancellationTokenSource}});function t(e){return T.is(e)||E.is(e)}e.is=t})(S=t.CancellationReceiverStrategy||(t.CancellationReceiverStrategy={}));var C;(function(e){e.Message=Object.freeze({sendCancellation(e,t){return e.sendNotification(u.type,{id:t})},cleanup(e){}});function t(e){const t=e;return t&&s.func(t.sendCancellation)&&s.func(t.cleanup)}e.is=t})(C=t.CancellationSenderStrategy||(t.CancellationSenderStrategy={}));var R;(function(e){e.Message=Object.freeze({receiver:S.Message,sender:C.Message});function t(e){const t=e;return t&&S.is(t.receiver)&&C.is(t.sender)}e.is=t})(R=t.CancellationStrategy||(t.CancellationStrategy={}));var k;(function(e){function t(e){const t=e;return t&&s.func(t.handleMessage)}e.is=t})(k=t.MessageStrategy||(t.MessageStrategy={}));var M;(function(e){function t(e){const t=e;return t&&(R.is(t.cancellationStrategy)||w.is(t.connectionStrategy)||k.is(t.messageStrategy))}e.is=t})(M=t.ConnectionOptions||(t.ConnectionOptions={}));var j;(function(e){e[e["New"]=1]="New";e[e["Listening"]=2]="Listening";e[e["Closed"]=3]="Closed";e[e["Disposed"]=4]="Disposed"})(j||(j={}));function O(e,r,d,g){const w=d!==undefined?d:t.NullLogger;let E=0;let S=0;let C=0;const M="2.0";let O=undefined;const P=new Map;let N=undefined;const x=new Map;const L=new Map;let q;let A=new o.LinkedMap;let $=new Map;let D=new Set;let z=new Map;let I=p.Off;let W=m.Text;let B;let F=j.New;const U=new a.Emitter;const V=new a.Emitter;const J=new a.Emitter;const H=new a.Emitter;const G=new a.Emitter;const K=g&&g.cancellationStrategy?g.cancellationStrategy:R.Message;function Q(e){if(e===null){throw new Error(`Can't send requests with id null since the response can't be correlated.`)}return"req-"+e.toString()}function X(e){if(e===null){return"res-unknown-"+(++C).toString()}else{return"res-"+e.toString()}}function Y(){return"not-"+(++S).toString()}function Z(e,t){if(i.Message.isRequest(t)){e.set(Q(t.id),t)}else if(i.Message.isResponse(t)){e.set(X(t.id),t)}else{e.set(Y(),t)}}function ee(e){return undefined}function te(){return F===j.Listening}function re(){return F===j.Closed}function ne(){return F===j.Disposed}function se(){if(F===j.New||F===j.Listening){F=j.Closed;V.fire(undefined)}}function ie(e){U.fire([e,undefined,undefined])}function oe(e){U.fire(e)}e.onClose(se);e.onError(ie);r.onClose(se);r.onError(oe);function ae(){if(q||A.size===0){return}q=(0,n.default)().timer.setImmediate((()=>{q=undefined;ue()}))}function ce(e){if(i.Message.isRequest(e)){le(e)}else if(i.Message.isNotification(e)){he(e)}else if(i.Message.isResponse(e)){de(e)}else{pe(e)}}function ue(){if(A.size===0){return}const e=A.shift();try{const t=g?.messageStrategy;if(k.is(t)){t.handleMessage(e,ce)}else{ce(e)}}finally{ae()}}const fe=e=>{try{if(i.Message.isNotification(e)&&e.method===u.type.method){const t=e.params.id;const n=Q(t);const s=A.get(n);if(i.Message.isRequest(s)){const i=g?.connectionStrategy;const o=i&&i.cancelUndispatched?i.cancelUndispatched(s,ee):ee(s);if(o&&(o.error!==undefined||o.result!==undefined)){A.delete(n);z.delete(t);o.id=s.id;be(o,e.method,Date.now());r.write(o).catch((()=>w.error(`Sending response for canceled message failed.`)));return}}const o=z.get(t);if(o!==undefined){o.cancel();_e(e);return}else{D.add(t)}}Z(A,e)}finally{ae()}};function le(e){if(ne()){return}function t(t,n,s){const o={jsonrpc:M,id:e.id};if(t instanceof i.ResponseError){o.error=t.toJson()}else{o.result=t===undefined?null:t}be(o,n,s);r.write(o).catch((()=>w.error(`Sending response failed.`)))}function n(t,n,s){const i={jsonrpc:M,id:e.id,error:t.toJson()};be(i,n,s);r.write(i).catch((()=>w.error(`Sending response failed.`)))}function o(t,n,s){if(t===undefined){t=null}const i={jsonrpc:M,id:e.id,result:t};be(i,n,s);r.write(i).catch((()=>w.error(`Sending response failed.`)))}ve(e);const a=P.get(e.method);let c;let u;if(a){c=a.type;u=a.handler}const f=Date.now();if(u||O){const r=e.id??String(Date.now());const a=T.is(K.receiver)?K.receiver.createCancellationTokenSource(r):K.receiver.createCancellationTokenSource(e);if(e.id!==null&&D.has(e.id)){a.cancel()}if(e.id!==null){z.set(r,a)}try{let l;if(u){if(e.params===undefined){if(c!==undefined&&c.numberOfParams!==0){n(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${e.method} defines ${c.numberOfParams} params but received none.`),e.method,f);return}l=u(a.token)}else if(Array.isArray(e.params)){if(c!==undefined&&c.parameterStructures===i.ParameterStructures.byName){n(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by name but received parameters by position`),e.method,f);return}l=u(...e.params,a.token)}else{if(c!==undefined&&c.parameterStructures===i.ParameterStructures.byPosition){n(new i.ResponseError(i.ErrorCodes.InvalidParams,`Request ${e.method} defines parameters by position but received parameters by name`),e.method,f);return}l=u(e.params,a.token)}}else if(O){l=O(e.method,e.params,a.token)}const d=l;if(!l){z.delete(r);o(l,e.method,f)}else if(d.then){d.then((n=>{z.delete(r);t(n,e.method,f)}),(t=>{z.delete(r);if(t instanceof i.ResponseError){n(t,e.method,f)}else if(t&&s.string(t.message)){n(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${t.message}`),e.method,f)}else{n(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,f)}}))}else{z.delete(r);t(l,e.method,f)}}catch(l){z.delete(r);if(l instanceof i.ResponseError){t(l,e.method,f)}else if(l&&s.string(l.message)){n(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${e.method} failed with message: ${l.message}`),e.method,f)}else{n(new i.ResponseError(i.ErrorCodes.InternalError,`Request ${e.method} failed unexpectedly without providing any details.`),e.method,f)}}}else{n(new i.ResponseError(i.ErrorCodes.MethodNotFound,`Unhandled method ${e.method}`),e.method,f)}}function de(e){if(ne()){return}if(e.id===null){if(e.error){w.error(`Received response message without id: Error is: \n${JSON.stringify(e.error,undefined,4)}`)}else{w.error(`Received response message without id. No further error information provided.`)}}else{const r=e.id;const n=$.get(r);we(e,n);if(n!==undefined){$.delete(r);try{if(e.error){const t=e.error;n.reject(new i.ResponseError(t.code,t.message,t.data))}else if(e.result!==undefined){n.resolve(e.result)}else{throw new Error("Should never happen.")}}catch(t){if(t.message){w.error(`Response handler '${n.method}' failed with message: ${t.message}`)}else{w.error(`Response handler '${n.method}' failed unexpectedly.`)}}}}}function he(e){if(ne()){return}let t=undefined;let r;if(e.method===u.type.method){const t=e.params.id;D.delete(t);_e(e);return}else{const n=x.get(e.method);if(n){r=n.handler;t=n.type}}if(r||N){try{_e(e);if(r){if(e.params===undefined){if(t!==undefined){if(t.numberOfParams!==0&&t.parameterStructures!==i.ParameterStructures.byName){w.error(`Notification ${e.method} defines ${t.numberOfParams} params but received none.`)}}r()}else if(Array.isArray(e.params)){const n=e.params;if(e.method===l.type.method&&n.length===2&&f.is(n[0])){r({token:n[0],value:n[1]})}else{if(t!==undefined){if(t.parameterStructures===i.ParameterStructures.byName){w.error(`Notification ${e.method} defines parameters by name but received parameters by position`)}if(t.numberOfParams!==e.params.length){w.error(`Notification ${e.method} defines ${t.numberOfParams} params but received ${n.length} arguments`)}}r(...n)}}else{if(t!==undefined&&t.parameterStructures===i.ParameterStructures.byPosition){w.error(`Notification ${e.method} defines parameters by position but received parameters by name`)}r(e.params)}}else if(N){N(e.method,e.params)}}catch(n){if(n.message){w.error(`Notification handler '${e.method}' failed with message: ${n.message}`)}else{w.error(`Notification handler '${e.method}' failed unexpectedly.`)}}}else{J.fire(e)}}function pe(e){if(!e){w.error("Received empty message.");return}w.error(`Received message which is neither a response nor a notification message:\n${JSON.stringify(e,null,4)}`);const t=e;if(s.string(t.id)||s.number(t.id)){const e=t.id;const r=$.get(e);if(r){r.reject(new Error("The received response has neither a result nor an error property."))}}}function ge(e){if(e===undefined||e===null){return undefined}switch(I){case p.Verbose:return JSON.stringify(e,null,4);case p.Compact:return JSON.stringify(e);default:return undefined}}function me(e){if(I===p.Off||!B){return}if(W===m.Text){let t=undefined;if((I===p.Verbose||I===p.Compact)&&e.params){t=`Params: ${ge(e.params)}\n\n`}B.log(`Sending request '${e.method} - (${e.id})'.`,t)}else{Te("send-request",e)}}function ye(e){if(I===p.Off||!B){return}if(W===m.Text){let t=undefined;if(I===p.Verbose||I===p.Compact){if(e.params){t=`Params: ${ge(e.params)}\n\n`}else{t="No parameters provided.\n\n"}}B.log(`Sending notification '${e.method}'.`,t)}else{Te("send-notification",e)}}function be(e,t,r){if(I===p.Off||!B){return}if(W===m.Text){let n=undefined;if(I===p.Verbose||I===p.Compact){if(e.error&&e.error.data){n=`Error data: ${ge(e.error.data)}\n\n`}else{if(e.result){n=`Result: ${ge(e.result)}\n\n`}else if(e.error===undefined){n="No result returned.\n\n"}}}B.log(`Sending response '${t} - (${e.id})'. Processing request took ${Date.now()-r}ms`,n)}else{Te("send-response",e)}}function ve(e){if(I===p.Off||!B){return}if(W===m.Text){let t=undefined;if((I===p.Verbose||I===p.Compact)&&e.params){t=`Params: ${ge(e.params)}\n\n`}B.log(`Received request '${e.method} - (${e.id})'.`,t)}else{Te("receive-request",e)}}function _e(e){if(I===p.Off||!B||e.method===b.type.method){return}if(W===m.Text){let t=undefined;if(I===p.Verbose||I===p.Compact){if(e.params){t=`Params: ${ge(e.params)}\n\n`}else{t="No parameters provided.\n\n"}}B.log(`Received notification '${e.method}'.`,t)}else{Te("receive-notification",e)}}function we(e,t){if(I===p.Off||!B){return}if(W===m.Text){let r=undefined;if(I===p.Verbose||I===p.Compact){if(e.error&&e.error.data){r=`Error data: ${ge(e.error.data)}\n\n`}else{if(e.result){r=`Result: ${ge(e.result)}\n\n`}else if(e.error===undefined){r="No result returned.\n\n"}}}if(t){const n=e.error?` Request failed: ${e.error.message} (${e.error.code}).`:"";B.log(`Received response '${t.method} - (${e.id})' in ${Date.now()-t.timerStart}ms.${n}`,r)}else{B.log(`Received response ${e.id} without active response promise.`,r)}}else{Te("receive-response",e)}}function Te(e,t){if(!B||I===p.Off){return}const r={isLSPMessage:true,type:e,message:t,timestamp:Date.now()};B.log(r)}function Ee(){if(re()){throw new _(v.Closed,"Connection is closed.")}if(ne()){throw new _(v.Disposed,"Connection is disposed.")}}function Se(){if(te()){throw new _(v.AlreadyListening,"Connection is already listening")}}function Ce(){if(!te()){throw new Error("Call listen() first.")}}function Re(e){if(e===undefined){return null}else{return e}}function ke(e){if(e===null){return undefined}else{return e}}function Me(e){return e!==undefined&&e!==null&&!Array.isArray(e)&&typeof e==="object"}function je(e,t){switch(e){case i.ParameterStructures.auto:if(Me(t)){return ke(t)}else{return[Re(t)]}case i.ParameterStructures.byName:if(!Me(t)){throw new Error(`Received parameters by name but param is not an object literal.`)}return ke(t);case i.ParameterStructures.byPosition:return[Re(t)];default:throw new Error(`Unknown parameter structure ${e.toString()}`)}}function Oe(e,t){let r;const n=e.numberOfParams;switch(n){case 0:r=undefined;break;case 1:r=je(e.parameterStructures,t[0]);break;default:r=[];for(let e=0;e{Ee();let n;let o;if(s.string(e)){n=e;const r=t[0];let s=0;let a=i.ParameterStructures.auto;if(i.ParameterStructures.is(r)){s=1;a=r}let c=t.length;const u=c-s;switch(u){case 0:o=undefined;break;case 1:o=je(a,t[s]);break;default:if(a===i.ParameterStructures.byName){throw new Error(`Received ${u} parameters for 'by Name' notification parameter structure.`)}o=t.slice(s,c).map((e=>Re(e)));break}}else{const r=t;n=e.method;o=Oe(e,r)}const a={jsonrpc:M,method:n,params:o};ye(a);return r.write(a).catch((e=>{w.error(`Sending notification failed.`);throw e}))},onNotification:(e,t)=>{Ee();let r;if(s.func(e)){N=e}else if(t){if(s.string(e)){r=e;x.set(e,{type:undefined,handler:t})}else{r=e.method;x.set(e.method,{type:e,handler:t})}}return{dispose:()=>{if(r!==undefined){x.delete(r)}else{N=undefined}}}},onProgress:(e,t,r)=>{if(L.has(t)){throw new Error(`Progress handler for token ${t} already registered`)}L.set(t,r);return{dispose:()=>{L.delete(t)}}},sendProgress:(e,t,r)=>Pe.sendNotification(l.type,{token:t,value:r}),onUnhandledProgress:H.event,sendRequest:(e,...t)=>{Ee();Ce();let n;let o;let a=undefined;if(s.string(e)){n=e;const r=t[0];const s=t[t.length-1];let u=0;let f=i.ParameterStructures.auto;if(i.ParameterStructures.is(r)){u=1;f=r}let l=t.length;if(c.CancellationToken.is(s)){l=l-1;a=s}const d=l-u;switch(d){case 0:o=undefined;break;case 1:o=je(f,t[u]);break;default:if(f===i.ParameterStructures.byName){throw new Error(`Received ${d} parameters for 'by Name' request parameter structure.`)}o=t.slice(u,l).map((e=>Re(e)));break}}else{const r=t;n=e.method;o=Oe(e,r);const s=e.numberOfParams;a=c.CancellationToken.is(r[s])?r[s]:undefined}const u=E++;let f;if(a){f=a.onCancellationRequested((()=>{const e=K.sender.sendCancellation(Pe,u);if(e===undefined){w.log(`Received no promise from cancellation strategy when cancelling id ${u}`);return Promise.resolve()}else{return e.catch((()=>{w.log(`Sending cancellation messages for id ${u} failed`)}))}}))}const l={jsonrpc:M,id:u,method:n,params:o};me(l);if(typeof K.sender.enableCancellation==="function"){K.sender.enableCancellation(l)}return new Promise((async(e,t)=>{const s=t=>{e(t);K.sender.cleanup(u);f?.dispose()};const o=e=>{t(e);K.sender.cleanup(u);f?.dispose()};const a={method:n,timerStart:Date.now(),resolve:s,reject:o};try{await r.write(l);$.set(u,a)}catch(c){w.error(`Sending request failed.`);a.reject(new i.ResponseError(i.ErrorCodes.MessageWriteError,c.message?c.message:"Unknown reason"));throw c}}))},onRequest:(e,t)=>{Ee();let r=null;if(h.is(e)){r=undefined;O=e}else if(s.string(e)){r=null;if(t!==undefined){r=e;P.set(e,{handler:t,type:undefined})}}else{if(t!==undefined){r=e.method;P.set(e.method,{type:e,handler:t})}}return{dispose:()=>{if(r===null){return}if(r!==undefined){P.delete(r)}else{O=undefined}}}},hasPendingResponse:()=>$.size>0,trace:async(e,t,r)=>{let n=false;let i=m.Text;if(r!==undefined){if(s.boolean(r)){n=r}else{n=r.sendNotification||false;i=r.traceFormat||m.Text}}I=e;W=i;if(I===p.Off){B=undefined}else{B=t}if(n&&!re()&&!ne()){await Pe.sendNotification(y.type,{value:p.toString(e)})}},onError:U.event,onClose:V.event,onUnhandledNotification:J.event,onDispose:G.event,end:()=>{r.end()},dispose:()=>{if(ne()){return}F=j.Disposed;G.fire(undefined);const t=new i.ResponseError(i.ErrorCodes.PendingResponseRejected,"Pending response rejected since connection got disposed");for(const e of $.values()){e.reject(t)}$=new Map;z=new Map;D=new Set;A=new o.LinkedMap;if(s.func(r.dispose)){r.dispose()}if(s.func(e.dispose)){e.dispose()}},listen:()=>{Ee();Se();F=j.Listening;e.listen(fe)},inspect:()=>{(0,n.default)().console.log("inspect")}};Pe.onNotification(b.type,(e=>{if(I===p.Off||!B){return}const t=I===p.Verbose||I===p.Compact;B.log(e.message,t?e.verbose:undefined)}));Pe.onNotification(l.type,(e=>{const t=L.get(e.token);if(t){t(e.value)}else{H.fire(e)}}));return Pe}t.createMessageConnection=O},83911:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Disposable=void 0;var r;(function(e){function t(e){return{dispose:e}}e.create=t})(r=t.Disposable||(t.Disposable={}))},27135:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Emitter=t.Event=void 0;const n=r(30147);var s;(function(e){const t={dispose(){}};e.None=function(){return t}})(s=t.Event||(t.Event={}));class i{add(e,t=null,r){if(!this._callbacks){this._callbacks=[];this._contexts=[]}this._callbacks.push(e);this._contexts.push(t);if(Array.isArray(r)){r.push({dispose:()=>this.remove(e,t)})}}remove(e,t=null){if(!this._callbacks){return}let r=false;for(let n=0,s=this._callbacks.length;n{if(!this._callbacks){this._callbacks=new i}if(this._options&&this._options.onFirstListenerAdd&&this._callbacks.isEmpty()){this._options.onFirstListenerAdd(this)}this._callbacks.add(e,t);const n={dispose:()=>{if(!this._callbacks){return}this._callbacks.remove(e,t);n.dispose=o._noop;if(this._options&&this._options.onLastListenerRemove&&this._callbacks.isEmpty()){this._options.onLastListenerRemove(this)}}};if(Array.isArray(r)){r.push(n)}return n}}return this._event}fire(e){if(this._callbacks){this._callbacks.invoke.call(this._callbacks,e)}}dispose(){if(this._callbacks){this._callbacks.dispose();this._callbacks=undefined}}}t.Emitter=o;o._noop=function(){}},67574:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.stringArray=t.array=t.func=t.error=t.number=t.string=t.boolean=void 0;function r(e){return e===true||e===false}t.boolean=r;function n(e){return typeof e==="string"||e instanceof String}t.string=n;function s(e){return typeof e==="number"||e instanceof Number}t.number=s;function i(e){return e instanceof Error}t.error=i;function o(e){return typeof e==="function"}t.func=o;function a(e){return Array.isArray(e)}t.array=a;function c(e){return a(e)&&e.every((e=>n(e)))}t.stringArray=c},96184:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:true});t.LRUCache=t.LinkedMap=t.Touch=void 0;var n;(function(e){e.None=0;e.First=1;e.AsOld=e.First;e.Last=2;e.AsNew=e.Last})(n=t.Touch||(t.Touch={}));class s{constructor(){this[r]="LinkedMap";this._map=new Map;this._head=undefined;this._tail=undefined;this._size=0;this._state=0}clear(){this._map.clear();this._head=undefined;this._tail=undefined;this._size=0;this._state++}isEmpty(){return!this._head&&!this._tail}get size(){return this._size}get first(){return this._head?.value}get last(){return this._tail?.value}has(e){return this._map.has(e)}get(e,t=n.None){const r=this._map.get(e);if(!r){return undefined}if(t!==n.None){this.touch(r,t)}return r.value}set(e,t,r=n.None){let s=this._map.get(e);if(s){s.value=t;if(r!==n.None){this.touch(s,r)}}else{s={key:e,value:t,next:undefined,previous:undefined};switch(r){case n.None:this.addItemLast(s);break;case n.First:this.addItemFirst(s);break;case n.Last:this.addItemLast(s);break;default:this.addItemLast(s);break}this._map.set(e,s);this._size++}return this}delete(e){return!!this.remove(e)}remove(e){const t=this._map.get(e);if(!t){return undefined}this._map.delete(e);this.removeItem(t);this._size--;return t.value}shift(){if(!this._head&&!this._tail){return undefined}if(!this._head||!this._tail){throw new Error("Invalid list")}const e=this._head;this._map.delete(e.key);this.removeItem(e);this._size--;return e.value}forEach(e,t){const r=this._state;let n=this._head;while(n){if(t){e.bind(t)(n.value,n.key,this)}else{e(n.value,n.key,this)}if(this._state!==r){throw new Error(`LinkedMap got modified during iteration.`)}n=n.next}}keys(){const e=this._state;let t=this._head;const r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e){throw new Error(`LinkedMap got modified during iteration.`)}if(t){const e={value:t.key,done:false};t=t.next;return e}else{return{value:undefined,done:true}}}};return r}values(){const e=this._state;let t=this._head;const r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e){throw new Error(`LinkedMap got modified during iteration.`)}if(t){const e={value:t.value,done:false};t=t.next;return e}else{return{value:undefined,done:true}}}};return r}entries(){const e=this._state;let t=this._head;const r={[Symbol.iterator]:()=>r,next:()=>{if(this._state!==e){throw new Error(`LinkedMap got modified during iteration.`)}if(t){const e={value:[t.key,t.value],done:false};t=t.next;return e}else{return{value:undefined,done:true}}}};return r}[(r=Symbol.toStringTag,Symbol.iterator)](){return this.entries()}trimOld(e){if(e>=this.size){return}if(e===0){this.clear();return}let t=this._head;let r=this.size;while(t&&r>e){this._map.delete(t.key);t=t.next;r--}this._head=t;this._size=r;if(t){t.previous=undefined}this._state++}addItemFirst(e){if(!this._head&&!this._tail){this._tail=e}else if(!this._head){throw new Error("Invalid list")}else{e.next=this._head;this._head.previous=e}this._head=e;this._state++}addItemLast(e){if(!this._head&&!this._tail){this._head=e}else if(!this._tail){throw new Error("Invalid list")}else{e.previous=this._tail;this._tail.next=e}this._tail=e;this._state++}removeItem(e){if(e===this._head&&e===this._tail){this._head=undefined;this._tail=undefined}else if(e===this._head){if(!e.next){throw new Error("Invalid list")}e.next.previous=undefined;this._head=e.next}else if(e===this._tail){if(!e.previous){throw new Error("Invalid list")}e.previous.next=undefined;this._tail=e.previous}else{const t=e.next;const r=e.previous;if(!t||!r){throw new Error("Invalid list")}t.previous=r;r.next=t}e.next=undefined;e.previous=undefined;this._state++}touch(e,t){if(!this._head||!this._tail){throw new Error("Invalid list")}if(t!==n.First&&t!==n.Last){return}if(t===n.First){if(e===this._head){return}const t=e.next;const r=e.previous;if(e===this._tail){r.next=undefined;this._tail=r}else{t.previous=r;r.next=t}e.previous=undefined;e.next=this._head;this._head.previous=e;this._head=e;this._state++}else if(t===n.Last){if(e===this._tail){return}const t=e.next;const r=e.previous;if(e===this._head){t.previous=undefined;this._head=t}else{t.previous=r;r.next=t}e.next=undefined;e.previous=this._tail;this._tail.next=e;this._tail=e;this._state++}}toJSON(){const e=[];this.forEach(((t,r)=>{e.push([r,t])}));return e}fromJSON(e){this.clear();for(const[t,r]of e){this.set(t,r)}}}t.LinkedMap=s;class i extends s{constructor(e,t=1){super();this._limit=e;this._ratio=Math.min(Math.max(0,t),1)}get limit(){return this._limit}set limit(e){this._limit=e;this.checkTrim()}get ratio(){return this._ratio}set ratio(e){this._ratio=Math.min(Math.max(0,e),1);this.checkTrim()}get(e,t=n.AsNew){return super.get(e,t)}peek(e){return super.get(e,n.None)}set(e,t){super.set(e,t,n.Last);this.checkTrim();return this}checkTrim(){if(this.size>this._limit){this.trimOld(Math.round(this._limit*this._ratio))}}}t.LRUCache=i},75530:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.AbstractMessageBuffer=void 0;const r=13;const n=10;const s="\r\n";class i{constructor(e="utf-8"){this._encoding=e;this._chunks=[];this._totalLength=0}get encoding(){return this._encoding}append(e){const t=typeof e==="string"?this.fromString(e,this._encoding):e;this._chunks.push(t);this._totalLength+=t.byteLength}tryReadHeaders(e=false){if(this._chunks.length===0){return undefined}let t=0;let i=0;let o=0;let a=0;e:while(ithis._totalLength){throw new Error(`Cannot read so many bytes!`)}if(this._chunks[0].byteLength===e){const t=this._chunks[0];this._chunks.shift();this._totalLength-=e;return this.asNative(t)}if(this._chunks[0].byteLength>e){const t=this._chunks[0];const r=this.asNative(t,e);this._chunks[0]=t.slice(e);this._totalLength-=e;return r}const t=this.allocNative(e);let r=0;let n=0;while(e>0){const s=this._chunks[n];if(s.byteLength>e){const i=s.slice(0,e);t.set(i,r);r+=e;this._chunks[n]=s.slice(e);this._totalLength-=e;e-=e}else{t.set(s,r);r+=s.byteLength;this._chunks.shift();this._totalLength-=s.byteLength;e-=s.byteLength}}return t}}t.AbstractMessageBuffer=i},56525:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ReadableStreamMessageReader=t.AbstractMessageReader=t.MessageReader=void 0;const n=r(30147);const s=r(67574);const i=r(27135);const o=r(80142);var a;(function(e){function t(e){let t=e;return t&&s.func(t.listen)&&s.func(t.dispose)&&s.func(t.onError)&&s.func(t.onClose)&&s.func(t.onPartialMessage)}e.is=t})(a=t.MessageReader||(t.MessageReader={}));class c{constructor(){this.errorEmitter=new i.Emitter;this.closeEmitter=new i.Emitter;this.partialMessageEmitter=new i.Emitter}dispose(){this.errorEmitter.dispose();this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e){this.errorEmitter.fire(this.asError(e))}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(undefined)}get onPartialMessage(){return this.partialMessageEmitter.event}firePartialMessage(e){this.partialMessageEmitter.fire(e)}asError(e){if(e instanceof Error){return e}else{return new Error(`Reader received error. Reason: ${s.string(e.message)?e.message:"unknown"}`)}}}t.AbstractMessageReader=c;var u;(function(e){function t(e){let t;let r;let s;const i=new Map;let o;const a=new Map;if(e===undefined||typeof e==="string"){t=e??"utf-8"}else{t=e.charset??"utf-8";if(e.contentDecoder!==undefined){s=e.contentDecoder;i.set(s.name,s)}if(e.contentDecoders!==undefined){for(const t of e.contentDecoders){i.set(t.name,t)}}if(e.contentTypeDecoder!==undefined){o=e.contentTypeDecoder;a.set(o.name,o)}if(e.contentTypeDecoders!==undefined){for(const t of e.contentTypeDecoders){a.set(t.name,t)}}}if(o===undefined){o=(0,n.default)().applicationJson.decoder;a.set(o.name,o)}return{charset:t,contentDecoder:s,contentDecoders:i,contentTypeDecoder:o,contentTypeDecoders:a}}e.fromOptions=t})(u||(u={}));class f extends c{constructor(e,t){super();this.readable=e;this.options=u.fromOptions(t);this.buffer=(0,n.default)().messageBuffer.create(this.options.charset);this._partialMessageTimeout=1e4;this.nextMessageLength=-1;this.messageToken=0;this.readSemaphore=new o.Semaphore(1)}set partialMessageTimeout(e){this._partialMessageTimeout=e}get partialMessageTimeout(){return this._partialMessageTimeout}listen(e){this.nextMessageLength=-1;this.messageToken=0;this.partialMessageTimer=undefined;this.callback=e;const t=this.readable.onData((e=>{this.onData(e)}));this.readable.onError((e=>this.fireError(e)));this.readable.onClose((()=>this.fireClose()));return t}onData(e){this.buffer.append(e);while(true){if(this.nextMessageLength===-1){const e=this.buffer.tryReadHeaders(true);if(!e){return}const t=e.get("content-length");if(!t){this.fireError(new Error("Header must provide a Content-Length property."));return}const r=parseInt(t);if(isNaN(r)){this.fireError(new Error("Content-Length value must be a number."));return}this.nextMessageLength=r}const e=this.buffer.tryReadBody(this.nextMessageLength);if(e===undefined){this.setPartialMessageTimer();return}this.clearPartialMessageTimer();this.nextMessageLength=-1;this.readSemaphore.lock((async()=>{const t=this.options.contentDecoder!==undefined?await this.options.contentDecoder.decode(e):e;const r=await this.options.contentTypeDecoder.decode(t,this.options);this.callback(r)})).catch((e=>{this.fireError(e)}))}}clearPartialMessageTimer(){if(this.partialMessageTimer){this.partialMessageTimer.dispose();this.partialMessageTimer=undefined}}setPartialMessageTimer(){this.clearPartialMessageTimer();if(this._partialMessageTimeout<=0){return}this.partialMessageTimer=(0,n.default)().timer.setTimeout(((e,t)=>{this.partialMessageTimer=undefined;if(e===this.messageToken){this.firePartialMessage({messageToken:e,waitingTime:t});this.setPartialMessageTimer()}}),this._partialMessageTimeout,this.messageToken,this._partialMessageTimeout)}}t.ReadableStreamMessageReader=f},96654:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.WriteableStreamMessageWriter=t.AbstractMessageWriter=t.MessageWriter=void 0;const n=r(30147);const s=r(67574);const i=r(80142);const o=r(27135);const a="Content-Length: ";const c="\r\n";var u;(function(e){function t(e){let t=e;return t&&s.func(t.dispose)&&s.func(t.onClose)&&s.func(t.onError)&&s.func(t.write)}e.is=t})(u=t.MessageWriter||(t.MessageWriter={}));class f{constructor(){this.errorEmitter=new o.Emitter;this.closeEmitter=new o.Emitter}dispose(){this.errorEmitter.dispose();this.closeEmitter.dispose()}get onError(){return this.errorEmitter.event}fireError(e,t,r){this.errorEmitter.fire([this.asError(e),t,r])}get onClose(){return this.closeEmitter.event}fireClose(){this.closeEmitter.fire(undefined)}asError(e){if(e instanceof Error){return e}else{return new Error(`Writer received error. Reason: ${s.string(e.message)?e.message:"unknown"}`)}}}t.AbstractMessageWriter=f;var l;(function(e){function t(e){if(e===undefined||typeof e==="string"){return{charset:e??"utf-8",contentTypeEncoder:(0,n.default)().applicationJson.encoder}}else{return{charset:e.charset??"utf-8",contentEncoder:e.contentEncoder,contentTypeEncoder:e.contentTypeEncoder??(0,n.default)().applicationJson.encoder}}}e.fromOptions=t})(l||(l={}));class d extends f{constructor(e,t){super();this.writable=e;this.options=l.fromOptions(t);this.errorCount=0;this.writeSemaphore=new i.Semaphore(1);this.writable.onError((e=>this.fireError(e)));this.writable.onClose((()=>this.fireClose()))}async write(e){return this.writeSemaphore.lock((async()=>{const t=this.options.contentTypeEncoder.encode(e,this.options).then((e=>{if(this.options.contentEncoder!==undefined){return this.options.contentEncoder.encode(e)}else{return e}}));return t.then((t=>{const r=[];r.push(a,t.byteLength.toString(),c);r.push(c);return this.doWrite(e,r,t)}),(e=>{this.fireError(e);throw e}))}))}async doWrite(e,t,r){try{await this.writable.write(t.join(""),"ascii");return this.writable.write(r)}catch(n){this.handleError(n,e);return Promise.reject(n)}}handleError(e,t){this.errorCount++;this.fireError(e,t,this.errorCount)}end(){this.writable.end()}}t.WriteableStreamMessageWriter=d},20839:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Message=t.NotificationType9=t.NotificationType8=t.NotificationType7=t.NotificationType6=t.NotificationType5=t.NotificationType4=t.NotificationType3=t.NotificationType2=t.NotificationType1=t.NotificationType0=t.NotificationType=t.RequestType9=t.RequestType8=t.RequestType7=t.RequestType6=t.RequestType5=t.RequestType4=t.RequestType3=t.RequestType2=t.RequestType1=t.RequestType=t.RequestType0=t.AbstractMessageSignature=t.ParameterStructures=t.ResponseError=t.ErrorCodes=void 0;const n=r(67574);var s;(function(e){e.ParseError=-32700;e.InvalidRequest=-32600;e.MethodNotFound=-32601;e.InvalidParams=-32602;e.InternalError=-32603;e.jsonrpcReservedErrorRangeStart=-32099;e.serverErrorStart=-32099;e.MessageWriteError=-32099;e.MessageReadError=-32098;e.PendingResponseRejected=-32097;e.ConnectionInactive=-32096;e.ServerNotInitialized=-32002;e.UnknownErrorCode=-32001;e.jsonrpcReservedErrorRangeEnd=-32e3;e.serverErrorEnd=-32e3})(s=t.ErrorCodes||(t.ErrorCodes={}));class i extends Error{constructor(e,t,r){super(t);this.code=n.number(e)?e:s.UnknownErrorCode;this.data=r;Object.setPrototypeOf(this,i.prototype)}toJson(){const e={code:this.code,message:this.message};if(this.data!==undefined){e.data=this.data}return e}}t.ResponseError=i;class o{constructor(e){this.kind=e}static is(e){return e===o.auto||e===o.byName||e===o.byPosition}toString(){return this.kind}}t.ParameterStructures=o;o.auto=new o("auto");o.byPosition=new o("byPosition");o.byName=new o("byName");class a{constructor(e,t){this.method=e;this.numberOfParams=t}get parameterStructures(){return o.auto}}t.AbstractMessageSignature=a;class c extends a{constructor(e){super(e,0)}}t.RequestType0=c;class u extends a{constructor(e,t=o.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}}t.RequestType=u;class f extends a{constructor(e,t=o.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}}t.RequestType1=f;class l extends a{constructor(e){super(e,2)}}t.RequestType2=l;class d extends a{constructor(e){super(e,3)}}t.RequestType3=d;class h extends a{constructor(e){super(e,4)}}t.RequestType4=h;class p extends a{constructor(e){super(e,5)}}t.RequestType5=p;class g extends a{constructor(e){super(e,6)}}t.RequestType6=g;class m extends a{constructor(e){super(e,7)}}t.RequestType7=m;class y extends a{constructor(e){super(e,8)}}t.RequestType8=y;class b extends a{constructor(e){super(e,9)}}t.RequestType9=b;class v extends a{constructor(e,t=o.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}}t.NotificationType=v;class _ extends a{constructor(e){super(e,0)}}t.NotificationType0=_;class w extends a{constructor(e,t=o.auto){super(e,1);this._parameterStructures=t}get parameterStructures(){return this._parameterStructures}}t.NotificationType1=w;class T extends a{constructor(e){super(e,2)}}t.NotificationType2=T;class E extends a{constructor(e){super(e,3)}}t.NotificationType3=E;class S extends a{constructor(e){super(e,4)}}t.NotificationType4=S;class C extends a{constructor(e){super(e,5)}}t.NotificationType5=C;class R extends a{constructor(e){super(e,6)}}t.NotificationType6=R;class k extends a{constructor(e){super(e,7)}}t.NotificationType7=k;class M extends a{constructor(e){super(e,8)}}t.NotificationType8=M;class j extends a{constructor(e){super(e,9)}}t.NotificationType9=j;var O;(function(e){function t(e){const t=e;return t&&n.string(t.method)&&(n.string(t.id)||n.number(t.id))}e.isRequest=t;function r(e){const t=e;return t&&n.string(t.method)&&e.id===void 0}e.isNotification=r;function s(e){const t=e;return t&&(t.result!==void 0||!!t.error)&&(n.string(t.id)||n.number(t.id)||t.id===null)}e.isResponse=s})(O=t.Message||(t.Message={}))},30147:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});let r;function n(){if(r===undefined){throw new Error(`No runtime abstraction layer installed`)}return r}(function(e){function t(e){if(e===undefined){throw new Error(`No runtime abstraction layer provided`)}r=e}e.install=t})(n||(n={}));t["default"]=n},80142:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Semaphore=void 0;const n=r(30147);class s{constructor(e=1){if(e<=0){throw new Error("Capacity must be greater than 0")}this._capacity=e;this._active=0;this._waiting=[]}lock(e){return new Promise(((t,r)=>{this._waiting.push({thunk:e,resolve:t,reject:r});this.runNext()}))}get active(){return this._active}runNext(){if(this._waiting.length===0||this._active===this._capacity){return}(0,n.default)().timer.setImmediate((()=>this.doRunNext()))}doRunNext(){if(this._waiting.length===0||this._active===this._capacity){return}const e=this._waiting.shift();this._active++;if(this._active>this._capacity){throw new Error(`To many thunks active`)}try{const t=e.thunk();if(t instanceof Promise){t.then((t=>{this._active--;e.resolve(t);this.runNext()}),(t=>{this._active--;e.reject(t);this.runNext()}))}else{this._active--;e.resolve(t);this.runNext()}}catch(t){this._active--;e.reject(t);this.runNext()}}}t.Semaphore=s},98211:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SharedArrayReceiverStrategy=t.SharedArraySenderStrategy=void 0;const n=r(13881);var s;(function(e){e.Continue=0;e.Cancelled=1})(s||(s={}));class i{constructor(){this.buffers=new Map}enableCancellation(e){if(e.id===null){return}const t=new SharedArrayBuffer(4);const r=new Int32Array(t,0,1);r[0]=s.Continue;this.buffers.set(e.id,t);e.$cancellationData=t}async sendCancellation(e,t){const r=this.buffers.get(t);if(r===undefined){return}const n=new Int32Array(r,0,1);Atomics.store(n,0,s.Cancelled)}cleanup(e){this.buffers.delete(e)}dispose(){this.buffers.clear()}}t.SharedArraySenderStrategy=i;class o{constructor(e){this.data=new Int32Array(e,0,1)}get isCancellationRequested(){return Atomics.load(this.data,0)===s.Cancelled}get onCancellationRequested(){throw new Error(`Cancellation over SharedArrayBuffer doesn't support cancellation events`)}}class a{constructor(e){this.token=new o(e)}cancel(){}dispose(){}}class c{constructor(){this.kind="request"}createCancellationTokenSource(e){const t=e.$cancellationData;if(t===undefined){return new n.CancellationTokenSource}return new a(t)}}t.SharedArrayReceiverStrategy=c},97608:(e,t,r)=>{"use strict";r.d(t,{ConsoleLogger:()=>l,listen:()=>d});var n=r(39054);var s=r(20839);class i{constructor(){this.disposables=[]}dispose(){while(this.disposables.length!==0){this.disposables.pop().dispose()}}push(e){const t=this.disposables;t.push(e);return{dispose(){const r=t.indexOf(e);if(r!==-1){t.splice(r,1)}}}}}var o=r(56525);class a extends o.AbstractMessageReader{constructor(e){super();this.socket=e;this.state="initial";this.events=[];this.socket.onMessage((e=>this.readMessage(e)));this.socket.onError((e=>this.fireError(e)));this.socket.onClose(((e,t)=>{if(e!==1e3){const r={name:""+e,message:`Error during socket reconnect: code = ${e}, reason = ${t}`};this.fireError(r)}this.fireClose()}))}listen(e){if(this.state==="initial"){this.state="listening";this.callback=e;while(this.events.length!==0){const e=this.events.pop();if(e.message){this.readMessage(e.message)}else if(e.error){this.fireError(e.error)}else{this.fireClose()}}}return{dispose:()=>{if(this.callback===e){this.callback=undefined}}}}readMessage(e){if(this.state==="initial"){this.events.splice(0,0,{message:e})}else if(this.state==="listening"){const t=JSON.parse(e);this.callback(t)}}fireError(e){if(this.state==="initial"){this.events.splice(0,0,{error:e})}else if(this.state==="listening"){super.fireError(e)}}fireClose(){if(this.state==="initial"){this.events.splice(0,0,{})}else if(this.state==="listening"){super.fireClose()}this.state="closed"}}var c=r(96654);class u extends c.AbstractMessageWriter{constructor(e){super();this.socket=e;this.errorCount=0}end(){}async write(e){try{const t=JSON.stringify(e);this.socket.send(t)}catch(t){this.errorCount++;this.fireError(t,e,this.errorCount)}}}function f(e,t){const r=new a(e);const s=new u(e);const i=(0,n.createMessageConnection)(r,s,t);i.onClose((()=>i.dispose()));return i}class l{error(e){console.error(e)}warn(e){console.warn(e)}info(e){console.info(e)}log(e){console.log(e)}debug(e){console.debug(e)}}function d(e){const{webSocket:t,onConnection:r}=e;const n=e.logger||new l;t.onopen=()=>{const e=h(t);const s=f(e,n);r(s)}}function h(e){return{send:t=>e.send(t),onMessage:t=>{e.onmessage=e=>t(e.data)},onError:t=>{e.onerror=e=>{if("message"in e){t(e.message)}}},onClose:t=>{e.onclose=e=>t(e.code,e.reason)},dispose:()=>e.close()}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/88b98cad3688915e50da.woff b/bootcamp/share/jupyter/lab/static/88b98cad3688915e50da.woff new file mode 100644 index 0000000..2805af5 Binary files /dev/null and b/bootcamp/share/jupyter/lab/static/88b98cad3688915e50da.woff differ diff --git a/bootcamp/share/jupyter/lab/static/8ea8791754915a898a31.woff2 b/bootcamp/share/jupyter/lab/static/8ea8791754915a898a31.woff2 new file mode 100644 index 0000000..402f81c Binary files /dev/null and b/bootcamp/share/jupyter/lab/static/8ea8791754915a898a31.woff2 differ diff --git a/bootcamp/share/jupyter/lab/static/8ea8dbb1b02e6f730f55.woff b/bootcamp/share/jupyter/lab/static/8ea8dbb1b02e6f730f55.woff new file mode 100644 index 0000000..6496d17 Binary files /dev/null and b/bootcamp/share/jupyter/lab/static/8ea8dbb1b02e6f730f55.woff differ diff --git a/bootcamp/share/jupyter/lab/static/9.0e0cba0ccc2a4b670600.js b/bootcamp/share/jupyter/lab/static/9.0e0cba0ccc2a4b670600.js new file mode 100644 index 0000000..fb3993d --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/9.0e0cba0ccc2a4b670600.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9],{20009:(e,t,r)=>{r.r(t);r.d(t,{commonmarkLanguage:()=>De,deleteMarkupBackward:()=>Ke,insertNewlineContinueMarkup:()=>Ze,markdown:()=>Ye,markdownKeymap:()=>Je,markdownLanguage:()=>$e});var n=r(37496);var s=r(66143);var i=r(24104);var a=r(73265);var o=r(6016);class l{constructor(e,t,r,n,s,i,o){this.type=e;this.value=t;this.from=r;this.hash=n;this.end=s;this.children=i;this.positions=o;this.hashProp=[[a.NodeProp.contextHash,n]]}static create(e,t,r,n,s){let i=n+(n<<8)+e+(t<<4)|0;return new l(e,t,r,i,s,[],[])}addChild(e,t){if(e.prop(a.NodeProp.contextHash)!=this.hash)e=new a.Tree(e.type,e.children,e.positions,e.length,this.hashProp);this.children.push(e);this.positions.push(t)}toTree(e,t=this.end){let r=this.children.length-1;if(r>=0)t=Math.max(t,this.positions[r]+this.children[r].length+this.from);let n=new a.Tree(e.types[this.type],this.children,this.positions,t-this.from).balance({makeTree:(e,t,r)=>new a.Tree(a.NodeType.none,e,t,r,this.hashProp)});return n}}var h;(function(e){e[e["Document"]=1]="Document";e[e["CodeBlock"]=2]="CodeBlock";e[e["FencedCode"]=3]="FencedCode";e[e["Blockquote"]=4]="Blockquote";e[e["HorizontalRule"]=5]="HorizontalRule";e[e["BulletList"]=6]="BulletList";e[e["OrderedList"]=7]="OrderedList";e[e["ListItem"]=8]="ListItem";e[e["ATXHeading1"]=9]="ATXHeading1";e[e["ATXHeading2"]=10]="ATXHeading2";e[e["ATXHeading3"]=11]="ATXHeading3";e[e["ATXHeading4"]=12]="ATXHeading4";e[e["ATXHeading5"]=13]="ATXHeading5";e[e["ATXHeading6"]=14]="ATXHeading6";e[e["SetextHeading1"]=15]="SetextHeading1";e[e["SetextHeading2"]=16]="SetextHeading2";e[e["HTMLBlock"]=17]="HTMLBlock";e[e["LinkReference"]=18]="LinkReference";e[e["Paragraph"]=19]="Paragraph";e[e["CommentBlock"]=20]="CommentBlock";e[e["ProcessingInstructionBlock"]=21]="ProcessingInstructionBlock";e[e["Escape"]=22]="Escape";e[e["Entity"]=23]="Entity";e[e["HardBreak"]=24]="HardBreak";e[e["Emphasis"]=25]="Emphasis";e[e["StrongEmphasis"]=26]="StrongEmphasis";e[e["Link"]=27]="Link";e[e["Image"]=28]="Image";e[e["InlineCode"]=29]="InlineCode";e[e["HTMLTag"]=30]="HTMLTag";e[e["Comment"]=31]="Comment";e[e["ProcessingInstruction"]=32]="ProcessingInstruction";e[e["URL"]=33]="URL";e[e["HeaderMark"]=34]="HeaderMark";e[e["QuoteMark"]=35]="QuoteMark";e[e["ListMark"]=36]="ListMark";e[e["LinkMark"]=37]="LinkMark";e[e["EmphasisMark"]=38]="EmphasisMark";e[e["CodeMark"]=39]="CodeMark";e[e["CodeText"]=40]="CodeText";e[e["CodeInfo"]=41]="CodeInfo";e[e["LinkTitle"]=42]="LinkTitle";e[e["LinkLabel"]=43]="LinkLabel"})(h||(h={}));class f{constructor(e,t){this.start=e;this.content=t;this.marks=[];this.parsers=[]}}class u{constructor(){this.text="";this.baseIndent=0;this.basePos=0;this.depth=0;this.markers=[];this.pos=0;this.indent=0;this.next=-1}forward(){if(this.basePos>this.pos)this.forwardInner()}forwardInner(){let e=this.skipSpace(this.basePos);this.indent=this.countIndent(e,this.pos,this.indent);this.pos=e;this.next=e==this.text.length?-1:this.text.charCodeAt(e)}skipSpace(e){return g(this.text,e)}reset(e){this.text=e;this.baseIndent=this.basePos=this.pos=this.indent=0;this.forwardInner();this.depth=1;while(this.markers.length)this.markers.pop()}moveBase(e){this.basePos=e;this.baseIndent=this.countIndent(e,this.pos,this.indent)}moveBaseColumn(e){this.baseIndent=e;this.basePos=this.findColumn(e)}addMarker(e){this.markers.push(e)}countIndent(e,t=0,r=0){for(let n=t;n=t.stack[r.depth+1].value+r.baseIndent)return true;if(r.indent>=r.baseIndent+4)return false;let n=(e.type==h.OrderedList?w:S)(r,t,false);return n>0&&(e.type!=h.BulletList||b(r,t,false)<0)&&r.text.charCodeAt(r.pos+n-1)==e.value}const c={[h.Blockquote](e,t,r){if(r.next!=62)return false;r.markers.push(K(h.QuoteMark,t.lineStart+r.pos,t.lineStart+r.pos+1));r.moveBase(r.pos+(p(r.text.charCodeAt(r.pos+1))?2:1));e.end=t.lineStart+r.text.length;return true},[h.ListItem](e,t,r){if(r.indent-1)return false;r.moveBaseColumn(r.baseIndent+e.value);return true},[h.OrderedList]:d,[h.BulletList]:d,[h.Document](){return true}};function p(e){return e==32||e==9||e==10||e==13}function g(e,t=0){while(tr&&p(e.charCodeAt(t-1)))t--;return t}function k(e){if(e.next!=96&&e.next!=126)return-1;let t=e.pos+1;while(t-1&&e.depth==t.stack.length)return-1;return n<3?-1:1}function L(e,t){for(let r=e.stack.length-1;r>=0;r--)if(e.stack[r].type==t)return true;return false}function S(e,t,r){return(e.next==45||e.next==43||e.next==42)&&(e.pos==e.text.length-1||p(e.text.charCodeAt(e.pos+1)))&&(!r||L(t,h.BulletList)||e.skipSpace(e.pos+2)=48&&s<=57)n++;else break;if(n==e.text.length)return-1;s=e.text.charCodeAt(n)}if(n==e.pos||n>e.pos+9||s!=46&&s!=41||ne.pos+1||e.next!=49))return-1;return n+1-e.pos}function C(e){if(e.next!=35)return-1;let t=e.pos+1;while(t6?-1:r}function y(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;while(t/,I=/\?>/;const B=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(n);if(i)return e.append(K(h.Comment,r,r+1+i[0].length));let a=/^\?[^]*?\?>/.exec(n);if(a)return e.append(K(h.ProcessingInstruction,r,r+1+a[0].length));let o=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(n);if(!o)return-1;return e.append(K(h.HTMLTag,r,r+1+o[0].length))},Emphasis(e,t,r){if(t!=95&&t!=42)return-1;let n=r+1;while(e.char(n)==t)n++;let s=e.slice(r-1,r),i=e.slice(n,n+1);let a=ne.test(s),o=ne.test(i);let l=/\s|^$/.test(s),h=/\s|^$/.test(i);let f=!h&&(!o||l||a);let u=!l&&(!a||h||o);let d=f&&(t==42||!u||a);let c=u&&(t==42||!f||o);return e.append(new te(t==95?J:W,r,n,(d?1:0)|(c?2:0)))},HardBreak(e,t,r){if(t==92&&e.char(r+1)==10)return e.append(K(h.HardBreak,r,r+2));if(t==32){let t=r+1;while(e.char(t)==32)t++;if(e.char(t)==10&&t>=r+2)return e.append(K(h.HardBreak,r,t+1))}return-1},Link(e,t,r){return t==91?e.append(new te(Y,r,r+1,1)):-1},Image(e,t,r){return t==33&&e.char(r+1)==91?e.append(new te(ee,r,r+2,1)):-1},LinkEnd(e,t,r){if(t!=93)return-1;for(let n=e.parts.length-1;n>=0;n--){let t=e.parts[n];if(t instanceof te&&(t.type==Y||t.type==ee)){if(!t.side||e.skipSpace(t.to)==r&&!/[(\[]/.test(e.slice(r+1,r+2))){e.parts[n]=null;return-1}let s=e.takeContent(n);let i=e.parts[n]=ie(e,s,t.type==Y?h.Link:h.Image,t.from,r+1);if(t.type==Y)for(let t=0;tt?K(h.URL,t+r,s+r):s==e.length?null:false}}function oe(e,t,r){let n=e.charCodeAt(t);if(n!=39&&n!=34&&n!=40)return false;let s=n==40?41:n;for(let i=t+1,a=false;i=this.end?-1:this.text.charCodeAt(e-this.offset)}get end(){return this.offset+this.text.length}slice(e,t){return this.text.slice(e-this.offset,t-this.offset)}append(e){this.parts.push(e);return e.to}addDelimiter(e,t,r,n,s){return this.append(new te(e,t,r,(n?1:0)|(s?2:0)))}addElement(e){return this.append(e)}resolveMarkers(e){for(let r=e;r=e;a--){let e=this.parts[a];if(e instanceof te&&e.side&1&&e.type==t.type&&!(n&&(t.side&1||e.side&2)&&(e.to-e.from+s)%3==0&&((e.to-e.from)%3||s%3))){i=e;break}}if(!i)continue;let o=t.type.resolve,l=[];let h=i.from,f=t.to;if(n){let e=Math.min(2,i.to-i.from,s);h=i.to-e;f=t.from+e;o=e==1?"Emphasis":"StrongEmphasis"}if(i.type.mark)l.push(this.elt(i.type.mark,h,i.to));for(let e=a+1;e=0;t--){let r=this.parts[t];if(r instanceof te&&r.type==e)return t}return null}takeContent(e){let t=this.resolveMarkers(e);this.parts.length=e;return t}skipSpace(e){return g(this.text,e-this.offset)+this.offset}elt(e,t,r,n){if(typeof e=="string")return K(this.parser.getNodeType(e),t,r,n);return new G(e,t)}}function fe(e,t){if(!t.length)return e;if(!e.length)return t;let r=e.slice(),n=0;for(let s of t){while(n(e?e-1:0))return false;if(this.fragmentEnd<0){let e=this.fragment.to;while(e>0&&this.input.read(e-1,e)!="\n")e--;this.fragmentEnd=e?e-1:0}let r=this.cursor;if(!r){r=this.cursor=this.fragment.tree.cursor();r.firstChild()}let n=e+this.fragment.offset;while(r.to<=n)if(!r.parent())return false;for(;;){if(r.from>=n)return this.fragment.from<=t;if(!r.childAfter(n))return false}}matches(e){let t=this.cursor.tree;return t&&t.prop(a.NodeProp.contextHash)==e}takeNodes(e){let t=this.cursor,r=this.fragment.offset,n=this.fragmentEnd-(this.fragment.openEnd?1:0);let s=e.absoluteLineStart,i=s,a=e.block.children.length;let o=i,l=a;for(;;){if(t.to-r>n){if(t.type.isAnonymous&&t.firstChild())continue;break}e.dontInject.add(t.tree);e.addNode(t.tree,t.from-r);if(t.type.is("Block")){if(ue.indexOf(t.type.id)<0){i=t.to-r;a=e.block.children.length}else{i=o;a=l;o=t.to-r;l=e.block.children.length}}if(!t.nextSibling())break}while(e.block.children.length>a){e.block.children.pop();e.block.positions.pop()}return i-s}}const ce=(0,o.styleTags)({"Blockquote/...":o.tags.quote,HorizontalRule:o.tags.contentSeparator,"ATXHeading1/... SetextHeading1/...":o.tags.heading1,"ATXHeading2/... SetextHeading2/...":o.tags.heading2,"ATXHeading3/...":o.tags.heading3,"ATXHeading4/...":o.tags.heading4,"ATXHeading5/...":o.tags.heading5,"ATXHeading6/...":o.tags.heading6,"Comment CommentBlock":o.tags.comment,Escape:o.tags.escape,Entity:o.tags.character,"Emphasis/...":o.tags.emphasis,"StrongEmphasis/...":o.tags.strong,"Link/... Image/...":o.tags.link,"OrderedList/... BulletList/...":o.tags.list,"BlockQuote/...":o.tags.quote,"InlineCode CodeText":o.tags.monospace,URL:o.tags.url,"HeaderMark HardBreak QuoteMark ListMark LinkMark EmphasisMark CodeMark":o.tags.processingInstruction,"CodeInfo LinkLabel":o.tags.labelName,LinkTitle:o.tags.string,Paragraph:o.tags.content});const pe=new $(new a.NodeSet(U).extend(ce),Object.keys(P).map((e=>P[e])),Object.keys(P).map((e=>R[e])),Object.keys(P),X,c,Object.keys(se).map((e=>se[e])),Object.keys(se),[]);function ge(e,t,r){let n=[];for(let s=e.firstChild,i=t;;s=s.nextSibling){let e=s?s.from:r;if(e>i)n.push({from:i,to:e});if(!s)break;i=s.to}return n}function me(e){let{codeParser:t,htmlParser:r}=e;let n=(0,a.parseMixed)(((e,n)=>{let s=e.type.id;if(t&&(s==h.CodeBlock||s==h.FencedCode)){let r="";if(s==h.FencedCode){let t=e.node.getChild(h.CodeInfo);if(t)r=n.read(t.from,t.to)}let i=t(r);if(i)return{parser:i,overlay:e=>e.type.id==h.CodeText}}else if(r&&(s==h.HTMLBlock||s==h.HTMLTag)){return{parser:r,overlay:ge(e.node,e.from,e.to)}}return null}));return{wrap:n}}const ke={resolve:"Strikethrough",mark:"StrikethroughMark"};const xe={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":o.tags.strikethrough}},{name:"StrikethroughMark",style:o.tags.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,r){if(t!=126||e.char(r+1)!=126||e.char(r+2)==126)return-1;let n=e.slice(r-1,r),s=e.slice(r+2,r+3);let i=/\s|^$/.test(n),a=/\s|^$/.test(s);let o=ne.test(n),l=ne.test(s);return e.addDelimiter(ke,r,r+2,!a&&(!l||i||o),!i&&(!o||a||l))},after:"Emphasis"}]};function be(e,t,r=0,n,s=0){let i=0,a=true,o=-1,l=-1,h=false;let f=()=>{n.push(e.elt("TableCell",s+o,s+l,e.parser.parseInline(t.slice(o,l),s+o)))};for(let u=r;u-1)i++;a=false;if(n){if(o>-1)f();n.push(e.elt("TableDelimiter",u+s,u+s+1))}o=l=-1}else if(h||r!=32&&r!=9){if(o<0)o=u;l=u+1}h=!h&&r==92}if(o>-1){i++;if(n)f()}return i}function Le(e,t){for(let r=t;re instanceof we))||!Le(t.text,t.basePos))return false;let n=e.scanLine(e.absoluteLineEnd+1).text;return Se.test(n)&&be(e,t.text,t.basePos)==be(e,n,t.basePos)},before:"SetextHeading"}]};class ye{nextLine(){return false}finish(e,t){e.addLeafElement(t,e.elt("Task",t.start,t.start+t.content.length,[e.elt("TaskMarker",t.start,t.start+3),...e.parser.parseInline(t.content.slice(3),t.start+3)]));return true}}const Te={defineNodes:[{name:"Task",block:true,style:o.tags.list},{name:"TaskMarker",style:o.tags.atom}],parseBlock:[{name:"TaskList",leaf(e,t){return/^\[[ xX]\]/.test(t.content)&&e.parentType().name=="ListItem"?new ye:null},after:"SetextHeading"}]};const Ae=[Ce,Te,xe];function Ie(e,t,r){return(n,s,i)=>{if(s!=e||n.char(i+1)==e)return-1;let a=[n.elt(r,i,i+1)];for(let o=i+1;o!e.is("Block")||e.is("Document")||Oe(e)!=null?undefined:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to}))),ve.add(Oe),i.indentNodeProp.add({Document:()=>null}),i.languageDataProp.add({Document:Pe})]});function Oe(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:undefined}function Re(e,t){let r=e;for(;;){let e=r.nextSibling,n;if(!e||(n=Oe(e.type))!=null&&n<=t)break;r=e}return r.to}const Xe=i.foldService.of(((e,t,r)=>{for(let n=(0,i.syntaxTree)(e).resolveInner(r,-1);n;n=n.parent){if(n.fromr)return{from:r,to:s}}return null}));function ze(e){return new i.Language(Pe,e,[Xe],"markdown")}const De=ze(Ne);const je=Ne.configure([Ae,Ee,Be,Me]);const $e=ze(je);function qe(e,t){return r=>{if(r&&e){let t=null;r=/\S*/.exec(r)[0];if(typeof e=="function")t=e(r);else t=i.LanguageDescription.matchLanguageName(e,r,true);if(t instanceof i.LanguageDescription)return t.support?t.support.language.parser:i.ParseContext.getSkippingParser(t.load());else if(t)return t.parser}return t?t.parser:null}}class Fe{constructor(e,t,r,n,s,i,a){this.node=e;this.from=t;this.to=r;this.spaceBefore=n;this.spaceAfter=s;this.type=i;this.item=a}blank(e,t=true){let r=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(e!=null){while(r.length0;e--)r+=" ";return r+(t?this.spaceAfter:"")}}marker(e,t){let r=this.node.name=="OrderedList"?String(+Ue(this.item,e)[2]+t):"";return this.spaceBefore+r+this.type+this.spaceAfter}}function _e(e,t){let r=[];for(let s=e;s&&s.name!="Document";s=s.parent){if(s.name=="ListItem"||s.name=="Blockquote"||s.name=="FencedCode")r.push(s)}let n=[];for(let s=r.length-1;s>=0;s--){let e=r[s],i;let a=t.lineAt(e.from),o=e.from-a.from;if(e.name=="FencedCode"){n.push(new Fe(e,o,o,"","","",null))}else if(e.name=="Blockquote"&&(i=/^[ \t]*>( ?)/.exec(a.text.slice(o)))){n.push(new Fe(e,o,o+i[0].length,"",i[1],">",null))}else if(e.name=="ListItem"&&e.parent.name=="OrderedList"&&(i=/^([ \t]*)\d+([.)])([ \t]*)/.exec(a.text.slice(o)))){let t=i[3],r=i[0].length;if(t.length>=4){t=t.slice(0,t.length-4);r-=4}n.push(new Fe(e.parent,o,o+r,i[1],t,i[2],e))}else if(e.name=="ListItem"&&e.parent.name=="BulletList"&&(i=/^([ \t]*)([-+*])([ \t]{1,4}\[[ xX]\])?([ \t]+)/.exec(a.text.slice(o)))){let t=i[4],r=i[0].length;if(t.length>4){t=t.slice(0,t.length-4);r-=4}let s=i[2];if(i[3])s+=i[3].replace(/[xX]/," ");n.push(new Fe(e.parent,o,o+r,i[1],t,s,e))}}return n}function Ue(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function Qe(e,t,r,n=0){for(let s=-1,i=e;;){if(i.name=="ListItem"){let e=Ue(i,t);let a=+e[2];if(s>=0){if(a!=s+1)return;r.push({from:i.from+e[1].length,to:i.from+e[0].length,insert:String(s+2+n)})}s=a}let e=i.nextSibling;if(!e)break;i=e}}const Ze=({state:e,dispatch:t})=>{let r=(0,i.syntaxTree)(e),{doc:s}=e;let a=null,o=e.changeByRange((t=>{if(!t.empty||!$e.isActiveAt(e,t.from))return a={range:t};let i=t.from,o=s.lineAt(i);let l=_e(r.resolveInner(i,-1),s);while(l.length&&l[l.length-1].from>i-o.from)l.pop();if(!l.length)return a={range:t};let h=l[l.length-1];if(h.to-h.spaceAfter.length>i-o.from)return a={range:t};let f=i>=h.to-h.spaceAfter.length&&!/\S/.test(o.text.slice(h.to));if(h.item&&f){if(h.node.firstChild.to>=i||o.from>0&&!/[^\s>]/.test(s.lineAt(o.from-1).text)){let e=l.length>1?l[l.length-2]:null;let t,r="";if(e&&e.item){t=o.from+e.from;r=e.marker(s,1)}else{t=o.from+(e?e.to:0)}let a=[{from:t,to:i,insert:r}];if(h.node.name=="OrderedList")Qe(h.item,s,a,-2);if(e&&e.node.name=="OrderedList")Qe(e.item,s,a);return{range:n.EditorSelection.cursor(t+r.length),changes:a}}else{let t="";for(let e=0,r=l.length-2;e<=r;e++){t+=l[e].blank(e\s*$/.exec(r.text);if(n&&n.index==h.from){let s=e.changes([{from:r.from+n.index,to:r.to},{from:o.from+h.from,to:o.to}]);return{range:t.map(s),changes:s}}}let u=[];if(h.node.name=="OrderedList")Qe(h.item,s,u);let d=h.item&&h.item.from]*/.exec(o.text)[0].length>=h.to){for(let e=0,t=l.length-1;e<=t;e++){c+=e==t&&!d?l[e].marker(s,1):l[e].blank(eo.from&&/\s/.test(o.text.charAt(p-o.from-1)))p--;c=e.lineBreak+c;u.push({from:p,to:i,insert:c});return{range:n.EditorSelection.cursor(p+c.length),changes:u}}));if(a)return false;t(e.update(o,{scrollIntoView:true,userEvent:"input"}));return true};function Ve(e){return e.name=="QuoteMark"||e.name=="ListMark"}function Ge(e,t){let r=e.resolveInner(t,-1),n=t;if(Ve(r)){n=r.from;r=r.parent}for(let s;s=r.childBefore(n);){if(Ve(s)){n=s.from}else if(s.name=="OrderedList"||s.name=="BulletList"){r=s.lastChild;n=r.to}else{break}}return r}const Ke=({state:e,dispatch:t})=>{let r=(0,i.syntaxTree)(e);let s=null,a=e.changeByRange((t=>{let i=t.from,{doc:a}=e;if(t.empty&&$e.isActiveAt(e,t.from)){let e=a.lineAt(i);let s=_e(Ge(r,i),a);if(s.length){let r=s[s.length-1];let a=r.to-r.spaceAfter.length+(r.spaceAfter?1:0);if(i-e.from>a&&!/\S/.test(e.text.slice(a,i-e.from)))return{range:n.EditorSelection.cursor(e.from+a),changes:{from:e.from+a,to:i}};if(i-e.from==a&&(!r.item||e.from<=r.item.from||!/\S/.test(e.text.slice(0,r.to)))){let s=e.from+r.from;if(r.item&&r.node.from{O.r(t);O.d(t,{completeFromSchema:()=>q,xml:()=>Z,xmlLanguage:()=>A});var n=O(11705);var r=O(6016);const a=1,l=2,s=3,o=4,i=5,y=35,c=36,p=37,$=11,u=13;function f(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function S(e){return e==9||e==10||e==13||e==32}let m=null,g=null,d=0;function P(e,t){let O=e.pos+t;if(g==e&&d==O)return m;while(S(e.peek(t)))t++;let n="";for(;;){let O=e.peek(t);if(!f(O))break;n+=String.fromCharCode(O);t++}g=e;d=O;return m=n||null}function _(e,t){this.name=e;this.parent=t;this.hash=t?t.hash:0;for(let O=0;O{if(e.next!=60)return;e.advance();if(e.next==47){e.advance();let O=P(e,0);if(!O)return e.acceptToken(i);if(t.context&&O==t.context.name)return e.acceptToken(l);for(let n=t.context;n;n=n.parent)if(n.name==O)return e.acceptToken(s,-2);e.acceptToken(o)}else if(e.next!=33&&e.next!=63){return e.acceptToken(a)}}),{contextual:true});function T(e,t){return new n.Jq((O=>{for(let n=0,r=0;;r++){if(O.next<0){if(r)O.acceptToken(e);break}if(O.next==t.charCodeAt(n)){n++;if(n==t.length){if(r>=t.length)O.acceptToken(e,1-t.length);break}}else{n=O.next==t.charCodeAt(0)?1:0}O.advance()}}))}const b=T(y,"--\x3e");const w=T(c,"?>");const C=T(p,"]]>");const W=(0,r.styleTags)({Text:r.tags.content,"StartTag StartCloseTag EndTag SelfCloseEndTag":r.tags.angleBracket,TagName:r.tags.tagName,"MismatchedCloseTag/Tagname":[r.tags.tagName,r.tags.invalid],AttributeName:r.tags.attributeName,AttributeValue:r.tags.attributeValue,Is:r.tags.definitionOperator,"EntityReference CharacterReference":r.tags.character,Comment:r.tags.blockComment,ProcessingInst:r.tags.processingInstruction,DoctypeDecl:r.tags.documentMeta,Cdata:r.tags.special(r.tags.string)});const V=n.WQ.deserialize({version:14,states:",SOQOaOOOrOxO'#CfOzOpO'#CiO!tOaO'#CgOOOP'#Cg'#CgO!{OrO'#CrO#TOtO'#CsO#]OpO'#CtOOOP'#DS'#DSOOOP'#Cv'#CvQQOaOOOOOW'#Cw'#CwO#eOxO,59QOOOP,59Q,59QOOOO'#Cx'#CxO#mOpO,59TO#uO!bO,59TOOOP'#C{'#C{O$TOaO,59RO$[OpO'#CoOOOP,59R,59ROOOQ'#C|'#C|O$dOrO,59^OOOP,59^,59^OOOS'#C}'#C}O$lOtO,59_OOOP,59_,59_O$tOpO,59`O$|OpO,59`OOOP-E6t-E6tOOOW-E6u-E6uOOOP1G.l1G.lOOOO-E6v-E6vO%UO!bO1G.oO%UO!bO1G.oO%dOpO'#CkO%lO!bO'#CyO%zO!bO1G.oOOOP1G.o1G.oOOOP1G.w1G.wOOOP-E6y-E6yOOOP1G.m1G.mO&VOpO,59ZO&_OpO,59ZOOOQ-E6z-E6zOOOP1G.x1G.xOOOS-E6{-E6{OOOP1G.y1G.yO&gOpO1G.zO&gOpO1G.zOOOP1G.z1G.zO&oO!bO7+$ZO&}O!bO7+$ZOOOP7+$Z7+$ZOOOP7+$c7+$cO'YOpO,59VO'bOpO,59VO'jO!bO,59eOOOO-E6w-E6wO'xOpO1G.uO'xOpO1G.uOOOP1G.u1G.uO(QOpO7+$fOOOP7+$f7+$fO(YO!bO<`#X;'S%y;'S;=`&_<%lO%yX>eV{WOr%ysv%yw#T%y#T#U>z#U;'S%y;'S;=`&_<%lO%yX?PV{WOr%ysv%yw#h%y#h#i?f#i;'S%y;'S;=`&_<%lO%yX?kV{WOr%ysv%yw#T%y#T#Ue.from<=O&&e.to>=O));let r=n&&n.getChild("AttributeName");return r?e.sliceString(r.from,r.to):""}function G(e){for(let t=e&&e.parent;t;t=t.parent)if(t.name=="Element")return t;return null}function E(e,t){var O;let n=(0,x.syntaxTree)(e).resolveInner(t,-1),r=null;for(let a=n;!r&&a.parent;a=a.parent)if(a.name=="OpenTag"||a.name=="CloseTag"||a.name=="SelfClosingTag"||a.name=="MismatchedCloseTag")r=a;if(r&&(r.to>t||r.lastChild.type.isError)){let e=r.parent;if(n.name=="TagName")return r.name=="CloseTag"||r.name=="MismatchedCloseTag"?{type:"closeTag",from:n.from,context:e}:{type:"openTag",from:n.from,context:G(e)};if(n.name=="AttributeName")return{type:"attrName",from:n.from,context:r};if(n.name=="AttributeValue")return{type:"attrValue",from:n.from,context:r};let O=n==r||n.name=="Attribute"?n.childBefore(t):n;if((O===null||O===void 0?void 0:O.name)=="StartTag")return{type:"openTag",from:t,context:G(e)};if((O===null||O===void 0?void 0:O.name)=="StartCloseTag"&&O.to<=t)return{type:"closeTag",from:t,context:e};if((O===null||O===void 0?void 0:O.name)=="Is")return{type:"attrValue",from:t,context:r};if(O)return{type:"attrName",from:t,context:r};return null}else if(n.name=="StartCloseTag"){return{type:"closeTag",from:t,context:n.parent}}while(n.parent&&n.to==t&&!((O=n.lastChild)===null||O===void 0?void 0:O.type.isError))n=n.parent;if(n.name=="Element"||n.name=="Text"||n.name=="Document")return{type:"tag",from:t,context:n.name=="Element"?n:G(n)};return null}class R{constructor(e,t,O){this.attrs=t;this.attrValues=O;this.children=[];this.name=e.name;this.completion=Object.assign(Object.assign({type:"type"},e.completion||{}),{label:this.name});this.openCompletion=Object.assign(Object.assign({},this.completion),{label:"<"+this.name});this.closeCompletion=Object.assign(Object.assign({},this.completion),{label:"",boost:2});this.closeNameCompletion=Object.assign(Object.assign({},this.completion),{label:this.name+">"});this.text=e.textContent?e.textContent.map((e=>({label:e,type:"text"}))):[]}}const Y=/^[:\-\.\w\u00b7-\uffff]*$/;function z(e){return Object.assign(Object.assign({type:"property"},e.completion||{}),{label:e.name})}function j(e){return typeof e=="string"?{label:`"${e}"`,type:"constant"}:/^"/.test(e.label)?e:Object.assign(Object.assign({},e),{label:`"${e.label}"`})}function q(e,t){let O=[],n=[];let r=Object.create(null);for(let o of t){let e=z(o);O.push(e);if(o.global)n.push(e);if(o.values)r[o.name]=o.values.map(j)}let a=[],l=[];let s=Object.create(null);for(let o of e){let e=n,t=r;if(o.attributes)e=e.concat(o.attributes.map((e=>{if(typeof e=="string")return O.find((t=>t.label==e))||{label:e,type:"property"};if(e.values){if(t==r)t=Object.create(t);t[e.name]=e.values.map(j)}return z(e)})));let i=new R(o,e,t);s[i.name]=i;a.push(i);if(o.top)l.push(i)}if(!l.length)l=a;for(let o=0;o{var t;let{doc:O}=e.state,o=E(e.state,e.pos);if(!o||o.type=="tag"&&!e.explicit)return null;let{type:i,from:y,context:c}=o;if(i=="openTag"){let e=l;let t=Q(O,c);if(t){let O=s[t];e=(O===null||O===void 0?void 0:O.children)||a}return{from:y,options:e.map((e=>e.completion)),validFor:Y}}else if(i=="closeTag"){let n=Q(O,c);return n?{from:y,to:e.pos+(O.sliceString(e.pos,e.pos+1)==">"?1:0),options:[((t=s[n])===null||t===void 0?void 0:t.closeNameCompletion)||{label:n+">",type:"type"}],validFor:Y}:null}else if(i=="attrName"){let e=s[X(O,c)];return{from:y,options:(e===null||e===void 0?void 0:e.attrs)||n,validFor:Y}}else if(i=="attrValue"){let t=k(O,c,y);if(!t)return null;let n=s[X(O,c)];let a=((n===null||n===void 0?void 0:n.attrValues)||r)[t];if(!a||!a.length)return null;return{from:y,to:e.pos+(O.sliceString(e.pos,e.pos+1)=='"'?1:0),options:a,validFor:/^"[^"]*"?$/}}else if(i=="tag"){let t=Q(O,c),n=s[t];let r=[],o=c&&c.lastChild;if(t&&(!o||o.name!="CloseTag"||X(O,o)!=t))r.push(n?n.closeCompletion:{label:"",type:"type",boost:2});let i=r.concat(((n===null||n===void 0?void 0:n.children)||(c?a:l)).map((e=>e.openCompletion)));if(c&&(n===null||n===void 0?void 0:n.text.length)){let t=c.firstChild;if(t.to>e.pos-20&&!/\S/.test(e.state.sliceDoc(t.to,e.pos)))i=i.concat(n.text)}return{from:y,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}else{return null}}}const A=x.LRLanguage.define({name:"xml",parser:V.configure({props:[x.indentNodeProp.add({Element(e){let t=/^\s*<\//.test(e.textAfter);return e.lineIndent(e.node.from)+(t?0:e.unit)},"OpenTag CloseTag SelfClosingTag"(e){return e.column(e.node.from)+e.unit}}),x.foldNodeProp.add({Element(e){let t=e.firstChild,O=e.lastChild;if(!t||t.name!="OpenTag")return null;return{from:t.to,to:O.name=="CloseTag"?O.from:e.to}}}),x.bracketMatchingHandle.add({"OpenTag CloseTag":e=>e.getChild("TagName")})]}),languageData:{commentTokens:{block:{open:"\x3c!--",close:"--\x3e"}},indentOnInput:/^\s*<\/$/}});function Z(e={}){return new x.LanguageSupport(A,A.data.of({autocomplete:q(e.elements||[],e.attributes||[])}))}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/9041.df39043656c7233552e4.js b/bootcamp/share/jupyter/lab/static/9041.df39043656c7233552e4.js new file mode 100644 index 0000000..cd3d539 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/9041.df39043656c7233552e4.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9041],{19041:(e,t,s)=>{s.d(t,{pV:()=>os});var i=s(73265);var n=s.n(i);var r=s(11705);var l=s(34155);class a{constructor(e){this.start=e}}class o extends a{constructor(e,t,s,i,n,r,l,a,o,u,h,f,c,p,d){super(e);this.rules=t;this.topRules=s;this.tokens=i;this.localTokens=n;this.context=r;this.externalTokens=l;this.externalSpecializers=a;this.externalPropSources=o;this.precedences=u;this.mainSkip=h;this.scopedSkip=f;this.dialects=c;this.externalProps=p;this.autoDelim=d}toString(){return Object.values(this.rules).join("\n")}}class u extends a{constructor(e,t,s,i,n){super(e);this.id=t;this.props=s;this.params=i;this.expr=n}toString(){return this.id.name+(this.params.length?`<${this.params.join()}>`:"")+" -> "+this.expr}}class h extends a{constructor(e,t){super(e);this.items=t}}class f extends a{constructor(e,t){super(e);this.items=t}}class c extends a{constructor(e,t,s){super(e);this.a=t;this.b=s}}class p extends a{constructor(e,t,s,i,n){super(e);this.precedences=t;this.conflicts=s;this.rules=i;this.literals=n}}class d extends a{constructor(e,t,s,i){super(e);this.precedences=t;this.rules=s;this.fallback=i}}class m extends a{constructor(e,t,s){super(e);this.literal=t;this.props=s}}class g extends a{constructor(e,t,s){super(e);this.id=t;this.source=s}}class k extends a{constructor(e,t,s,i){super(e);this.id=t;this.source=s;this.tokens=i}}class x extends a{constructor(e,t,s,i,n,r){super(e);this.type=t;this.token=s;this.id=i;this.source=n;this.tokens=r}}class b extends a{constructor(e,t,s){super(e);this.id=t;this.source=s}}class w extends a{constructor(e,t,s,i){super(e);this.id=t;this.externalID=s;this.source=i}}class y extends a{constructor(e,t){super(e);this.name=t}toString(){return this.name}}class $ extends a{walk(e){return e(this)}eq(e){return false}}$.prototype.prec=10;class v extends ${constructor(e,t,s){super(e);this.id=t;this.args=s}toString(){return this.id.name+(this.args.length?`<${this.args.join()}>`:"")}eq(e){return this.id.name==e.id.name&&G(this.args,e.args)}walk(e){let t=I(this.args,e);return e(t==this.args?this:new v(this.start,this.id,t))}}class S extends ${constructor(e,t,s,i,n){super(e);this.type=t;this.props=s;this.token=i;this.content=n}toString(){return`@${this.type}[${this.props.join(",")}]<${this.token}, ${this.content}>`}eq(e){return this.type==e.type&&E.eqProps(this.props,e.props)&&D(this.token,e.token)&&D(this.content,e.content)}walk(e){let t=this.token.walk(e),s=this.content.walk(e);return e(t==this.token&&s==this.content?this:new S(this.start,this.type,this.props,t,s))}}class T extends ${constructor(e,t){super(e);this.rule=t}toString(){let e=this.rule;return`${e.id}${e.props.length?`[${e.props.join(",")}]`:""} { ${e.expr} }`}eq(e){let t=this.rule,s=e.rule;return D(t.expr,s.expr)&&t.id.name==s.id.name&&E.eqProps(t.props,s.props)}walk(e){let t=this.rule,s=t.expr.walk(e);return e(s==t.expr?this:new T(this.start,new u(t.start,t.id,t.props,[],s)))}}class O extends ${constructor(e,t){super(e);this.exprs=t}toString(){return this.exprs.map((e=>_(e,this))).join(" | ")}eq(e){return G(this.exprs,e.exprs)}walk(e){let t=I(this.exprs,e);return e(t==this.exprs?this:new O(this.start,t))}}O.prototype.prec=1;class R extends ${constructor(e,t,s,i=false){super(e);this.exprs=t;this.markers=s;this.empty=i}toString(){return this.empty?"()":this.exprs.map((e=>_(e,this))).join(" ")}eq(e){return G(this.exprs,e.exprs)&&this.markers.every(((t,s)=>{let i=e.markers[s];return t.length==i.length&&t.every(((e,t)=>e.eq(i[t])))}))}walk(e){let t=I(this.exprs,e);return e(t==this.exprs?this:new R(this.start,t,this.markers,this.empty&&!t.length))}}R.prototype.prec=2;class P extends a{constructor(e,t,s){super(e);this.id=t;this.type=s}toString(){return(this.type=="ambig"?"~":"!")+this.id.name}eq(e){return this.id.name==e.id.name&&this.type==e.type}}class j extends ${constructor(e,t,s){super(e);this.expr=t;this.kind=s}toString(){return _(this.expr,this)+this.kind}eq(e){return D(this.expr,e.expr)&&this.kind==e.kind}walk(e){let t=this.expr.walk(e);return e(t==this.expr?this:new j(this.start,t,this.kind))}}j.prototype.prec=3;class N extends ${constructor(e,t){super(e);this.value=t}toString(){return JSON.stringify(this.value)}eq(e){return this.value==e.value}}class A extends ${constructor(e,t,s){super(e);this.ranges=t;this.inverted=s}toString(){return`[${this.inverted?"^":""}${this.ranges.map((([e,t])=>String.fromCodePoint(e)+(t==e+1?"":"-"+String.fromCodePoint(t))))}]`}eq(e){return this.inverted==e.inverted&&this.ranges.length==e.ranges.length&&this.ranges.every((([t,s],i)=>{let[n,r]=e.ranges[i];return t==n&&s==r}))}}class z extends ${constructor(e){super(e)}toString(){return"_"}eq(){return true}}function I(e,t){let s=null;for(let i=0;iD(e,t[s])))}class E extends a{constructor(e,t,s,i){super(e);this.at=t;this.name=s;this.value=i}eq(e){return this.name==e.name&&this.value.length==e.value.length&&this.value.every(((t,s)=>t.value==e.value[s].value&&t.name==e.value[s].name))}toString(){let e=(this.at?"@":"")+this.name;if(this.value.length){e+="=";for(let{name:t,value:s}of this.value)e+=t?`{${t}}`:/[^\w-]/.test(s)?JSON.stringify(s):s}return e}static eqProps(e,t){return e.length==t.length&&e.every(((e,s)=>e.eq(t[s])))}}class J extends a{constructor(e,t,s){super(e);this.value=t;this.name=s}}function _(e,t){return e.prec0}get eof(){return(this.flags&4)>0}get error(){return"error"in this.props}get top(){return(this.flags&2)>0}get interesting(){return this.flags>0||this.nodeName!=null}get repeated(){return(this.flags&16)>0}set preserve(e){this.flags=e?this.flags|8:this.flags&~8}get preserve(){return(this.flags&8)>0}set inline(e){this.flags=e?this.flags|32:this.flags&~32}get inline(){return(this.flags&32)>0}cmp(e){return this.hash-e.hash}}class W{constructor(){this.terms=[];this.names=Object.create(null);this.tops=[];this.eof=this.term("␄",null,1|4);this.error=this.term("⚠","⚠",8)}term(e,t,s=0,i={}){let n=new F(e,s,t,i);this.terms.push(n);this.names[e]=n;return n}makeTop(e,t){const s=this.term("@top",e,2,t);this.tops.push(s);return s}makeTerminal(e,t,s={}){return this.term(e,t,1,s)}makeNonTerminal(e,t,s={}){return this.term(e,t,0,s)}makeRepeat(e){return this.term(e,null,16)}uniqueName(e){for(let t=0;;t++){let s=t?`${e}-${t}`:e;if(!this.names[s])return s}}finish(e){for(let r of e)r.name.rules.push(r);this.terms=this.terms.filter((t=>t.terminal||t.preserve||e.some((e=>e.name==t||e.parts.includes(t)))));let t={};let s=[this.error];this.error.id=0;let i=0+1;for(let r of this.terms)if(r.id<0&&r.nodeType&&!r.repeated){r.id=i++;s.push(r)}let n=i;for(let r of this.terms)if(r.repeated){r.id=i++;s.push(r)}this.eof.id=i++;for(let r of this.terms){if(r.id<0)r.id=i++;if(r.name)t[r.id]=r.name}if(i>=65534)throw new U("Too many terms");return{nodeTypes:s,names:t,minRepeatTerm:n,maxTerm:i-1}}}function L(e,t,s){if(e.length!=t.length)return e.length-t.length;for(let i=0;iet?1:0))||this.cut-e.cut}}V.none=new V(0);function Y(e,t){if(e.length==0||e==t)return t;if(t.length==0)return e;let s=e.slice();for(let i of t)if(!e.includes(i))s.push(i);return s.sort()}let H=0;class K{constructor(e,t,s,i){this.name=e;this.parts=t;this.conflicts=s;this.skip=i;this.id=H++}cmp(e){return this.id-e.id}cmpNoName(e){return this.parts.length-e.parts.length||this.skip.hash-e.skip.hash||this.parts.reduce(((t,s,i)=>t||s.cmp(e.parts[i])),0)||L(this.conflicts,e.conflicts,((e,t)=>e.cmp(t)))}toString(){return this.name+" -> "+this.parts.join(" ")}get isRepeatWrap(){return this.name.repeated&&this.parts.length==2&&this.parts[0]==this.name}sameReduce(e){return this.name==e.name&&this.parts.length==e.parts.length&&this.isRepeatWrap==e.isRepeatWrap}}const X=65535;class Z{constructor(e,t,s){this.from=e;this.to=t;this.target=s}toString(){return`-> ${this.target.id}[label=${JSON.stringify(this.from<0?"ε":ee(this.from)+(this.to>this.from+1?"-"+ee(this.to-1):""))}]`}}function ee(e){return e>X?"∞":e==10?"\\n":e==13?"\\r":e<32||e>=55296&&e<57343?"\\u{"+e.toString(16)+"}":String.fromCharCode(e)}function te(e,t){let s=Object.create(null);let i=Object.create(null);for(let n of e){let e=oe(n.accepting);let t=i[e]||(i[e]=[]);t.push(n);s[n.id]=t}for(;;){let i=false,n=Object.create(null);for(let t of e){if(n[t.id])continue;let e=s[t.id];if(e.length==1){n[e[0].id]=e;continue}let r=[];e:for(let t of e){for(let e of r){if(se(t,e[0],s)){e.push(t);continue e}}r.push([t])}if(r.length>1)i=true;for(let t of r)for(let e of t)n[e.id]=t}if(!i)return ie(e,t,s);s=n}}function se(e,t,s){if(e.edges.length!=t.edges.length)return false;for(let i=0;ie.id-t.id)));return te(Object.values(e),s);function i(s){let n=e[oe(s)]=new re(s.reduce(((e,t)=>Y(e,t.accepting)),[]),t++);let r=[];for(let e of s)for(let t of e.edges){if(t.from>=0)r.push(t)}let l=fe(r);for(let t of l){let s=t.targets.sort(((e,t)=>e.id-t.id));n.edge(t.from,t.to,e[oe(s)]||i(s))}return n}}closure(){let e=[],t=Object.create(null);function s(i){if(t[i.id])return;t[i.id]=true;if(i.edges.some((e=>e.from>=0))||i.accepting.length>0&&!i.edges.some((e=>ue(i.accepting,e.target.accepting))))e.push(i);for(let e of i.edges)if(e.from<0)s(e.target)}s(this);return e}findConflicts(e){let t=[],s=this.cycleTerms();function i(e,s,i,n,r){if(e.idt.a==e&&t.b==s));if(!l)t.push(new le(e,s,i,ae(n),r&&ae(r)));else if(l.soft!=i)l.soft=0}this.reachable(((t,n)=>{if(t.accepting.length==0)return;for(let e=0;e{if(r!=t)for(let a of r.accepting){let r=s.includes(a);for(let o of t.accepting)if(a!=o)i(a,o,r||s.includes(o)||!e(a,o)?0:1,n,n.concat(l))}}))}));return t}cycleTerms(){let e=[];this.reachable((t=>{for(let{target:s}of t.edges)e.push(t,s)}));let t=new Map;let s=[];for(let n=0;n{if(t.accepting.length)e+=` ${t.id} [label=${JSON.stringify(t.accepting.join())}];\n`;for(let s of t.edges)e+=` ${t.id} ${s};\n`}));return e+"}"}toArray(e,t){let s=[];let i=[];this.reachable((n=>{let r=i.length;let l=r+3+n.accepting.length*2;s[n.id]=r;i.push(n.stateMask(e),l,n.edges.length);n.accepting.sort(((e,s)=>t.indexOf(e.id)-t.indexOf(s.id)));for(let t of n.accepting)i.push(t.id,e[t.id]||65535);for(let e of n.edges)i.push(e.from,e.to,-e.target.id-1)}));for(let n=0;n2**16)throw new U("Tokenizer tables too big to represent with 16-bit offsets.");return Uint16Array.from(i)}stateMask(e){let t=0;this.reachable((s=>{for(let i of s.accepting)t|=e[i.id]||65535}));return t}}class le{constructor(e,t,s,i,n){this.a=e;this.b=t;this.soft=s;this.exampleA=i;this.exampleB=n}}function ae(e){let t="";for(let s=0;se-t));for(let n=1;ni&&t.frome.from==65535&&e.to==65535));if(i.length){let e=[];for(let t of i)for(let s of t.target.closure())if(!e.includes(s))e.push(s);if(e.length)s.push(new he(65535,65535,e))}return s}let ce=/[\w_-]+/gy;try{ce=/[\p{Alphabetic}\d_-]+/guy}catch(ps){}const pe=[];class de{constructor(e,t=null){this.string=e;this.fileName=t;this.type="sof";this.value=null;this.start=0;this.end=0;this.next()}lineInfo(e){for(let t=1,s=0;;){let i=this.string.indexOf("\n",s);if(i>-1&&i-1){let e=this.lineInfo(t);s+=(s?" ":"")+e.line+":"+e.ch}return s?e+` (${s})`:e}raise(e,t=-1){throw new U(this.message(e,t))}match(e,t){let s=t.exec(this.string.slice(e));return s?e+s[0].length:-1}next(){let e=this.match(this.end,/^(\s|\/\/.*|\/\*[^]*?\*\/)*/);if(e==this.string.length)return this.set("eof",null,e,e);let t=this.string[e];if(t=='"'){let t=this.match(e+1,/^(\\.|[^"\\])*"/);if(t==-1)this.raise("Unterminated string literal",e);return this.set("string",Je(this.string.slice(e+1,t-1)),e,t)}else if(t=="'"){let t=this.match(e+1,/^(\\.|[^'\\])*'/);if(t==-1)this.raise("Unterminated string literal",e);return this.set("string",Je(this.string.slice(e+1,t-1)),e,t)}else if(t=="@"){ce.lastIndex=e+1;let t=ce.exec(this.string);if(!t)return this.raise("@ without a name",e);return this.set("at",t[0],e,e+1+t[0].length)}else if((t=="$"||t=="!")&&this.string[e+1]=="["){let t=this.match(e+2,/^(?:\\.|[^\]\\])*\]/);if(t==-1)this.raise("Unterminated character set",e);return this.set("set",this.string.slice(e+2,t-1),e,t)}else if(/[\[\]()!~+*?{}<>\.,|:$=]/.test(t)){return this.set(t,null,e,e+1)}else{ce.lastIndex=e;let s=ce.exec(this.string);if(!s)return this.raise("Unexpected character "+JSON.stringify(t),e);return this.set("id",s[0],e,e+s[0].length)}}set(e,t,s,i){this.type=e;this.value=t;this.start=s;this.end=i}eat(e,t=null){if(this.type==e&&(t==null||this.value===t)){this.next();return true}else{return false}}unexpected(){return this.raise(`Unexpected token '${this.string.slice(this.start,this.end)}'`,this.start)}expect(e,t=null){let s=this.value;if(this.type!=e||!(t==null||s===t))this.unexpected();this.next();return s}parse(){return me(this)}}function me(e){let t=e.start;let s=[];let i=null;let n=null;let r=[];let l=null;let a=[];let u=[];let h=null;let f=[];let c=[];let p=[];let d=[];let m=[];let k=false;let x=false;while(e.type!="eof"){let t=e.start;if(e.eat("at","top")){if(e.type!="id")e.raise(`Top rules must have a name`,e.start);m.push(ge(e,Pe(e)));k=true}else if(e.type=="at"&&e.value=="tokens"){if(n)e.raise(`Multiple @tokens declaractions`,e.start);else n=Ne(e)}else if(e.eat("at","local")){e.expect("id","tokens");r.push(Ae(e,t))}else if(e.eat("at","context")){if(h)e.raise(`Multiple @context declarations`,t);let s=Pe(e);e.expect("id","from");let i=e.expect("string");h=new g(t,s,i)}else if(e.eat("at","external")){if(e.eat("id","tokens"))f.push(qe(e,t));else if(e.eat("id","prop"))p.push(Ee(e,t));else if(e.eat("id","extend"))c.push(De(e,"extend",t));else if(e.eat("id","specialize"))c.push(De(e,"specialize",t));else if(e.eat("id","propSource"))d.push(Ge(e,t));else e.unexpected()}else if(e.eat("at","dialects")){e.expect("{");for(let t=true;!e.eat("}");t=false){if(!t)e.eat(",");u.push(Pe(e))}}else if(e.type=="at"&&e.value=="precedence"){if(i)e.raise(`Multiple precedence declarations`,e.start);i=je(e)}else if(e.eat("at","detectDelim")){x=true}else if(e.eat("at","skip")){let t=be(e);if(e.type=="{"){e.next();let s=[],i=[];while(!e.eat("}")){if(e.eat("at","top")){i.push(ge(e,Pe(e)));k=true}else{s.push(ge(e))}}a.push({expr:t,topRules:i,rules:s})}else{if(l)e.raise(`Multiple top-level skip declarations`,e.start);l=t}}else{s.push(ge(e))}}if(!k)return e.raise(`Missing @top declaration`);return new o(t,s,m,n,r,h,f,c,d,i,l,a,u,p,x)}function ge(e,t){let s=t?t.start:e.start;let i=t||Pe(e);let n=ke(e);let r=[];if(e.eat("<"))while(!e.eat(">")){if(r.length)e.expect(",");r.push(Pe(e))}let l=be(e);return new u(s,i,n,r,l)}function ke(e){if(e.type!="[")return pe;let t=[];e.expect("[");while(!e.eat("]")){if(t.length)e.expect(",");t.push(xe(e))}return t}function xe(e){let t=e.start,s=[],i=e.value,n=e.type=="at";if(!e.eat("at")&&!e.eat("id"))e.unexpected();if(e.eat("="))for(;;){if(e.type=="string"||e.type=="id"){s.push(new J(e.start,e.value,null));e.next()}else if(e.eat(".")){s.push(new J(e.start,".",null))}else if(e.eat("{")){s.push(new J(e.start,null,e.expect("id")));e.expect("}")}else{break}}return new E(t,n,i,s)}function be(e){e.expect("{");let t=Re(e);e.expect("}");return t}const we="﷚";function ye(e){let t=e.start;if(e.eat("(")){if(e.eat(")"))return new R(t,pe,[pe,pe]);let s=Re(e);e.expect(")");return s}else if(e.type=="string"){let s=e.value;e.next();if(s.length==0)return new R(t,pe,[pe,pe]);return new N(t,s)}else if(e.eat("id","_")){return new z(t)}else if(e.type=="set"){let s=e.value,i=e.string[e.start]=="!";let n=Je(s.replace(/\\.|-|"/g,(e=>e=="-"?we:e=='"'?'\\"':e)));let r=[];for(let t=0;t65535?2:1;if(t65535?3:2;if(ie[0]-t[0])),i)}else if(e.type=="at"&&(e.value=="specialize"||e.value=="extend")){let{start:t,value:s}=e;e.next();let i=ke(e);e.expect("<");let n=Re(e),r;if(e.eat(",")){r=Re(e)}else if(n instanceof N){r=n}else{e.raise(`@${s} requires two arguments when its first argument isn't a literal string`)}e.expect(">");return new S(t,s,i,n,r)}else if(e.type=="at"&&C.hasOwnProperty(e.value)){let t=new q(e.start,e.value);e.next();return t}else if(e.type=="["){let s=ge(e,new y(t,"_anon"));if(s.params.length)e.raise(`Inline rules can't have parameters`,s.start);return new T(t,s)}else{let s=Pe(e);if(e.type=="["||e.type=="{"){let i=ge(e,s);if(i.params.length)e.raise(`Inline rules can't have parameters`,i.start);return new T(t,i)}else{if(e.eat(".")&&s.name=="std"&&C.hasOwnProperty(e.value)){let s=new q(t,e.value);e.next();return s}return new v(t,s,$e(e))}}}function $e(e){let t=[];if(e.eat("<"))while(!e.eat(">")){if(t.length)e.expect(",");t.push(Re(e))}return t}function ve(e,t,s,i){if(!t.every((([e,t])=>t<=s||e>=i)))e.raise("Overlapping character range",e.start);t.push([s,i])}function Se(e){let t=e.start;let s=ye(e);for(;;){let i=e.type;if(e.eat("*")||e.eat("?")||e.eat("+"))s=new j(t,s,i);else return s}}function Te(e){return e.type=="}"||e.type==")"||e.type=="|"||e.type=="/"||e.type=="/\\"||e.type=="{"||e.type==","||e.type==">"}function Oe(e){let t=e.start,s=[],i=[pe];do{for(;;){let t=e.start,s;if(e.eat("~"))s="ambig";else if(e.eat("!"))s="prec";else break;i[i.length-1]=i[i.length-1].concat(new P(t,Pe(e),s))}if(Te(e))break;s.push(Se(e));i.push(pe)}while(!Te(e));if(s.length==1&&i.every((e=>e.length==0)))return s[0];return new R(t,s,i,!s.length)}function Re(e){let t=e.start,s=Oe(e);if(!e.eat("|"))return s;let i=[s];do{i.push(Oe(e))}while(e.eat("|"));let n=i.find((e=>e instanceof R&&e.empty));if(n)e.raise("Empty expression in choice operator. If this is intentional, use () to make it explicit.",n.start);return new O(t,i)}function Pe(e){if(e.type!="id")e.unexpected();let t=e.start,s=e.value;e.next();return new y(t,s)}function je(e){let t=e.start;e.next();e.expect("{");let s=[];while(!e.eat("}")){if(s.length)e.eat(",");s.push({id:Pe(e),type:e.eat("at","left")?"left":e.eat("at","right")?"right":e.eat("at","cut")?"cut":null})}return new h(t,s)}function Ne(e){let t=e.start;e.next();e.expect("{");let s=[];let i=[];let n=[];let r=[];while(!e.eat("}")){if(e.type=="at"&&e.value=="precedence"){n.push(ze(e))}else if(e.type=="at"&&e.value=="conflict"){r.push(Ie(e))}else if(e.type=="string"){i.push(new m(e.start,e.expect("string"),ke(e)))}else{s.push(ge(e))}}return new p(t,n,r,s,i)}function Ae(e,t){e.expect("{");let s=[];let i=[];let n=null;while(!e.eat("}")){if(e.type=="at"&&e.value=="precedence"){i.push(ze(e))}else if(e.eat("at","else")&&!n){n={id:Pe(e),props:ke(e)}}else{s.push(ge(e))}}return new d(t,i,s,n)}function ze(e){let t=e.start;e.next();e.expect("{");let s=[];while(!e.eat("}")){if(s.length)e.eat(",");let t=ye(e);if(t instanceof N||t instanceof v)s.push(t);else e.raise(`Invalid expression in token precedences`,t.start)}return new f(t,s)}function Ie(e){let t=e.start;e.next();e.expect("{");let s=ye(e);if(!(s instanceof N||s instanceof v))e.raise(`Invalid expression in token conflict`,s.start);e.eat(",");let i=ye(e);if(!(i instanceof N||i instanceof v))e.raise(`Invalid expression in token conflict`,i.start);e.expect("}");return new c(t,s,i)}function Ce(e){let t=[];e.expect("{");while(!e.eat("}")){if(t.length)e.eat(",");let s=Pe(e);let i=ke(e);t.push({id:s,props:i})}return t}function qe(e,t){let s=Pe(e);e.expect("id","from");let i=e.expect("string");return new k(t,s,i,Ce(e))}function De(e,t,s){let i=be(e);let n=Pe(e);e.expect("id","from");let r=e.expect("string");return new x(s,t,i,n,r,Ce(e))}function Ge(e,t){let s=Pe(e);e.expect("id","from");return new b(t,s,e.expect("string"))}function Ee(e,t){let s=Pe(e);let i=e.eat("id","as")?Pe(e):s;e.expect("id","from");let n=e.expect("string");return new w(t,i,s,n)}function Je(e){let t=/\\(?:u\{([\da-f]+)\}|u([\da-f]{4})|x([\da-f]{2})|([ntbrf0])|(.))|[^]/giy;let s="",i;while(i=t.exec(e)){let[e,t,n,r,l,a]=i;if(t||n||r)s+=String.fromCodePoint(parseInt(t||n||r,16));else if(l)s+=l=="n"?"\n":l=="t"?"\t":l=="0"?"\0":l=="r"?"\r":l=="f"?"\f":"\b";else if(a)s+=a;else s+=e}return s}function _e(e,t){return(e<<5)+e+t}function Ue(e,t){for(let s=0;s{let s=Date.now();let i=t();console.log(`${e} (${((Date.now()-s)/1e3).toFixed(2)}s)`);return i}:(e,t)=>t();class We{constructor(e,t,s,i,n,r){this.rule=e;this.pos=t;this.ahead=s;this.ambigAhead=i;this.skipAhead=n;this.via=r;this.hash=0}finish(){let e=_e(_e(this.rule.id,this.pos),this.skipAhead.hash);for(let t of this.ahead)e=_e(e,t.hash);for(let t of this.ambigAhead)e=Ue(e,t);this.hash=e;return this}get next(){return this.pose.cmp(t)))||L(this.ambigAhead,e.ambigAhead,Ve)}eqSimple(e){return e.rule==this.rule&&e.pos==this.pos}toString(){let e=this.rule.parts.map((e=>e.name));e.splice(this.pos,0,"·");return`${this.rule.name} -> ${e.join(" ")}`}eq(e){return this==e||this.hash==e.hash&&this.rule==e.rule&&this.pos==e.pos&&this.skipAhead==e.skipAhead&&Ke(this.ahead,e.ahead)&&Ke(this.ambigAhead,e.ambigAhead)}trail(e=60){let t=[];for(let i=this;i;i=i.via){for(let e=i.pos-1;e>=0;e--)t.push(i.rule.parts[e])}let s=t.reverse().join(" ");if(s.length>e)s=s.slice(s.length-e).replace(/.*? /,"… ");return s}conflicts(e=this.pos){let t=this.rule.conflicts[e];if(e==this.rule.parts.length&&this.ambigAhead.length)t=t.join(new V(0,this.ambigAhead));return t}static addOrigins(e,t){let s=e.slice();for(let i=0;it?1:0}function Ye(e,t,s,i){let n=[];for(let r=t+1;re.term+"="+e)).join(",")+(this.goto.length?" | "+this.goto.map((e=>e.term+"="+e)).join(","):"");return this.id+": "+this.set.filter((e=>e.pos>0)).join()+(this.defaultReduce?`\n always ${this.defaultReduce.name}(${this.defaultReduce.parts.length})`:e.length?"\n "+e:"")}addActionInner(e,t){e:for(let s=0;s0){this.actions.splice(s,1);this.actionPositions.splice(s,1);s--;continue e}else if(o<0){return null}else if(l.ambigGroups.some((e=>a.ambigGroups.includes(e)))){continue e}else{return i}}}this.actions.push(e);this.actionPositions.push(t);return null}addAction(e,t,s){let i=this.addActionInner(e,t);if(i){let n=this.actionPositions[this.actions.indexOf(i)][0];let r=[t[0].rule.name,n.rule.name];if(s.some((e=>e.rules.some((e=>r.includes(e))))))return;let l;if(i instanceof Xe)l=`shift/reduce conflict between\n ${n}\nand\n ${t[0].rule}`;else l=`reduce/reduce conflict between\n ${n.rule}\nand\n ${t[0].rule}`;l+=`\nWith input:\n ${t[0].trail(70)} · ${e.term} …`;l+=at(n,t[0]);s.push(new lt(l,r))}}getGoto(e){return this.goto.find((t=>t.term==e))}hasSet(e){return He(this.set,e)}finish(){if(this.actions.length){let e=this.actions[0];if(e instanceof Ze){let{rule:t}=e;if(this.actions.every((e=>e instanceof Ze&&e.rule.sameReduce(t))))this.defaultReduce=t}}this.actions.sort(((e,t)=>e.cmp(t)));this.goto.sort(((e,t)=>e.cmp(t)))}eq(e){let t=this.defaultReduce,s=e.defaultReduce;if(t||s)return t&&s?t.sameReduce(s):false;return this.skip==e.skip&&this.tokenGroup==e.tokenGroup&&He(this.actions,e.actions)&&He(this.goto,e.goto)}}function st(e,t){let s=[],i=[];function n(t,n,r,l,a){for(let o of t.rules){let t=s.find((e=>e.rule==o));if(!t){let i=e.find((e=>e.pos==0&&e.rule==o));t=i?new We(o,0,i.ahead.slice(),i.ambigAhead,i.skipAhead,i.via):new We(o,0,[],kt,l,a);s.push(t)}if(t.skipAhead!=l)throw new U("Inconsistent skip sets after "+a.trail());t.ambigAhead=Y(t.ambigAhead,r);for(let e of n)if(!t.ahead.includes(e)){t.ahead.push(e);if(t.rule.parts.length&&!t.rule.parts[0].terminal)it(t,i)}}}for(let l of e){let e=l.next;if(e&&!e.terminal)n(e,Ye(l.rule,l.pos,l.ahead,t),l.conflicts(l.pos+1).ambigGroups,l.pos==l.rule.parts.length-1?l.skipAhead:l.rule.skip,l)}while(i.length){let e=i.pop();n(e.rule.parts[0],Ye(e.rule,0,e.ahead,t),Y(e.rule.conflicts[1].ambigGroups,e.rule.parts.length==1?e.ambigAhead:kt),e.rule.parts.length==1?e.skipAhead:e.rule.skip,e)}let r=e.slice();for(let l of s){l.ahead.sort(((e,t)=>e.hash-t.hash));l.finish();let t=e.findIndex((e=>e.pos==0&&e.rule==l.rule));if(t>-1)r[t]=l;else r.push(l)}return r.sort(((e,t)=>e.cmp(t)))}function it(e,t){if(!t.includes(e))t.push(e)}function nt(e){let t=Object.create(null);for(let s of e.terms)if(!s.terminal)t[s.name]=[];for(;;){let s=false;for(let i of e.terms)if(!i.terminal)for(let e of i.rules){let n=t[i.name];let r=false,l=n.length;for(let s of e.parts){r=true;if(s.terminal){it(s,n)}else{for(let e of t[s.name]){if(e==null)r=false;else it(e,n)}}if(r)break}if(!r)it(null,n);if(n.length>l)s=true}if(!s)return t}}class rt{constructor(e,t){this.set=e;this.state=t}}class lt{constructor(e,t){this.error=e;this.rules=t}}function at(e,t){if(e.eqSimple(t))return"";function s(e,t){let s=[];for(let i=t.via;!i.eqSimple(e);i=i.via)s.push(i);if(!s.length)return"";s.unshift(t);return s.reverse().map(((e,s)=>"\n"+" ".repeat(s+1)+(e==t?"":"via ")+e)).join("")}for(let i=e;i;i=i.via)for(let n=t;n;n=n.via){if(i.eqSimple(n))return"\nShared origin: "+i+s(i,e)+s(i,t)}return""}function ot(e,t,s){let i=[];let n={};let r=Date.now();function l(e,t){if(e.length==0)return null;let l=et(e),a=n[l];let o;for(let s of e){if(!o)o=s.skip;else if(o!=s.skip)throw new U("Inconsistent skip sets after "+s.trail())}if(a)for(let s of a)if(He(e,s.set)){if(s.state.skip!=o)throw new U("Inconsistent skip sets after "+s.set[0].trail());return s.state}let u=st(e,s);let h=et(u),f;if(!t)for(let s of i)if(s.hash==h&&s.hasSet(u))f=s;if(!f){f=new tt(i.length,u,0,o,h,t);i.push(f);if(Be&&i.length%500==0)console.log(`${i.length} states after ${((Date.now()-r)/1e3).toFixed(2)}s`)}(n[l]||(n[l]=[])).push(new rt(e,f));return f}for(const o of t){const t=o.rules.length?o.rules[0].skip:e.names["%noskip"];l(o.rules.map((s=>new We(s,0,[e.eof],kt,t,null).finish())),o)}let a=[];for(let o=0;oe.advance()));if(i.terminal){let t=ut(r);let o=l(t);if(o)e.addAction(new Xe(i,o),n[s],a)}else{let t=l(r);if(t)e.goto.push(new Xe(i,t))}}let u=false;for(let s of r)for(let t of s.ahead){let i=e.actions.length;e.addAction(new Ze(t,s.rule),[s],a);if(e.actions.length==i)u=true}if(u)for(let i=0;ie.actions.some((e=>e.term==t&&e instanceof Xe)))))e.goto.splice(i--,1)}}if(a.length)throw new U(a.map((e=>e.error)).join("\n\n"));for(let o of i)o.finish();if(Be)console.log(`${i.length} states total.`);return i}function ut(e){let t=null,s=1;for(let i of e){let e=i.rule.conflicts[i.pos-1].cut;if(es){s=e;t=[]}t.push(i)}return t||e}function ht(e,t,s){for(let i of e.goto)for(let e of t.goto){if(i.term==e.term&&s[i.target.id]!=s[e.target.id])return false}e:for(let i of e.actions){let e=false;for(let n of t.actions)if(n.term==i.term){if(i instanceof Xe?n instanceof Xe&&s[i.target.id]==s[n.target.id]:n.eq(i))continue e;e=true}if(e)return false}return true}function ft(e,t,s){return ht(e,t,s)&&ht(t,e,s)}function ct(e,t){let s=[];for(let i of e){let e=t[i.id];if(!s[e]){s[e]=new tt(e,i.set,0,i.skip,i.hash,i.startRule);s[e].tokenGroup=i.tokenGroup;s[e].defaultReduce=i.defaultReduce}}for(let i of e){let e=t[i.id],n=s[e];n.flags|=i.flags;for(let r=0;rt.eq(e)))){n.actions.push(e);n.actionPositions.push(i.actionPositions[r])}}for(let r of i.goto){let e=r.map(t,s);if(!n.goto.some((t=>t.eq(e))))n.goto.push(e)}}return s}class pt{constructor(e,t){this.origin=e;this.members=[t]}}function dt(e,t){if(e.length!=t.length)return false;for(let s=0;sft(l,e[s],t)))){s[o].members.push(l.id);return}}t[l.id]=s.length;s.push(new pt(r.origin,l.id))}for(let n=1;;n++){let r=false,l=Date.now();for(let n=0,a=s.length;nn.eq(e)));if(l<0){s[t]=r.length;r.push(n)}else{s[t]=l;i=true;let e=r[l],a=null;for(let t of n.set)if(!e.set.some((e=>e.eqSimple(t))))(a||(a=[])).push(t);if(a)e.set=a.concat(e.set).sort(((e,t)=>e.cmp(t)))}}if(Be)console.log(`Merge identical pass ${t}${i?"":", done"} (${((Date.now()-n)/1e3).toFixed(2)}s)`);if(!i)return e;for(let e of r)if(!e.defaultReduce){e.actions=e.actions.map((e=>e.map(s,r)));e.goto=e.goto.map((e=>e.map(s,r)))}for(let e=0;e=34)t++;if(t>=92)t++;return String.fromCharCode(t)}function wt(e,t=65535){if(e>t)throw new Error("Trying to encode a number that's too big: "+e);if(e==65535)return String.fromCharCode(126);let s="";for(let i=46;;i=0){let t=e%46,n=e-t;s=bt(t+i)+s;if(n==0)break;e=n/46}return s}function yt(e,t=65535){let s='"'+wt(e.length,4294967295);for(let i=0;i{this.input=new de(e,t.fileName);this.ast=this.input.parse()}));let s=i.NodeProp;for(let n in s){if(s[n]instanceof i.NodeProp&&!s[n].perNode)this.knownProps[n]={prop:s[n],source:{name:n,from:null}}}for(let n of this.ast.externalProps){this.knownProps[n.id.name]={prop:this.options.externalProp?this.options.externalProp(n.id.name):new i.NodeProp,source:{name:n.externalID.name,from:n.source}}}this.dialects=this.ast.dialects.map((e=>e.name));this.tokens=new Mt(this,this.ast.tokens);this.localTokens=this.ast.localTokens.map((e=>new Bt(this,e)));this.externalTokens=this.ast.externalTokens.map((e=>new is(this,e)));this.externalSpecializers=this.ast.externalSpecializers.map((e=>new ns(this,e)));Fe("Build rules",(()=>{let e=this.newName("%noskip",true);this.defineRule(e,[]);let t=this.ast.mainSkip?this.newName("%mainskip",true):e;let s=[],i=[];for(let n of this.ast.rules)this.astRules.push({skip:t,rule:n});for(let n of this.ast.topRules)i.push({skip:t,rule:n});for(let n of this.ast.scopedSkip){let r=e,l=this.ast.scopedSkip.findIndex(((e,t)=>t-1)r=s[l];else if(this.ast.mainSkip&&D(n.expr,this.ast.mainSkip))r=t;else if(!Zt(n.expr))r=this.newName("%skip",true);s.push(r);for(let e of n.rules)this.astRules.push({skip:r,rule:e});for(let e of n.topRules)i.push({skip:r,rule:e})}for(let{rule:n}of this.astRules){this.unique(n.id)}this.currentSkip.push(e);this.skipRules=t==e?[t]:[e,t];if(t!=e)this.defineRule(t,this.normalizeExpr(this.ast.mainSkip));for(let n=0;ne.rule.start-t.rule.start))){this.unique(n.id);this.used(n.id.name);this.currentSkip.push(r);let{name:e,props:t}=this.nodeInfo(n.props,"a",n.id.name,$t,$t,n.expr);let s=this.terms.makeTop(e,t);this.namedTerms[e]=s;this.defineRule(s,this.normalizeExpr(n.expr));this.currentSkip.pop()}for(let n of this.externalSpecializers)n.finish();for(let{skip:n,rule:r}of this.astRules){if(this.ruleNames[r.id.name]&&cs(r)&&!r.params.length){this.buildRule(r,[],n,false);if(r.expr instanceof R&&r.expr.exprs.length==0)this.used(r.id.name)}}}));for(let i in this.ruleNames){let e=this.ruleNames[i];if(e)this.warn(`Unused rule '${e.name}'`,e.start)}this.tokens.takePrecedences();this.tokens.takeConflicts();for(let{name:i,group:n,rule:r}of this.definedGroups)this.defineGroup(i,n,r);this.checkGroups()}unique(e){if(e.name in this.ruleNames)this.raise(`Duplicate definition of rule '${e.name}'`,e.start);this.ruleNames[e.name]=e}used(e){this.ruleNames[e]=null}newName(e,t=null,s={}){for(let i=t?0:1;;i++){let n=i?`${e}-${i}`:e;if(!this.terms.names[n])return this.terms.makeNonTerminal(n,t===true?null:t,s)}}prepareParser(){let e=Fe("Simplify rules",(()=>as(this.rules,[...this.skipRules,...this.terms.tops])));let{nodeTypes:t,names:s,minRepeatTerm:i,maxTerm:n}=this.terms.finish(e);for(let R in this.namedTerms)this.termTable[R]=this.namedTerms[R].id;if(/\bgrammar\b/.test(Me))console.log(e.join("\n"));let r=this.terms.tops.slice();let l=nt(this.terms);let a=this.skipRules.map(((e,t)=>{let s=[],i=[],n=[];for(let r of e.rules){if(!r.parts.length)continue;let e=r.parts[0];for(let t of e.terminal?[e]:l[e.name]||[])if(!i.includes(t))i.push(t);if(e.terminal&&r.parts.length==1&&!n.some((t=>t!=r&&t.parts[0]==e)))s.push(e);else n.push(r)}e.rules=n;if(n.length)r.push(e);return{skip:s,rule:n.length?e:null,startTokens:i,id:t}}));let o=Fe("Build full automaton",(()=>ot(this.terms,r,l)));let u=this.localTokens.map(((e,t)=>e.buildLocalGroup(o,a,t)));let{tokenGroups:h,tokenPrec:f,tokenData:c}=Fe("Build token groups",(()=>this.tokens.buildTokenGroups(o,a,u.length)));let p=Fe("Finish automaton",(()=>xt(o)));let d=It(p,this.terms.tops);if(/\blr\b/.test(Me))console.log(p.join("\n"));let m=[];for(let R of this.externalSpecializers)m.push(R);for(let R in this.specialized)m.push({token:this.terms.names[R],table:Nt(this.specialized[R])});let g=e=>{if(e instanceof is)return e.ast.start;return this.tokens.ast?this.tokens.ast.start:-1};let k=h.concat(this.externalTokens).sort(((e,t)=>g(e)-g(t))).concat(u);let x=new Ct;let b=a.map((e=>{let t=[];for(let s of e.skip)t.push(s.id,0,262144>>16);if(e.rule){let s=p.find((t=>t.startRule==e.rule));for(let e of s.actions)t.push(e.term.id,s.id,131072>>16)}t.push(65535,0);return x.storeArray(t)}));let w=Fe("Finish states",(()=>{let e=new Uint32Array(p.length*6);let t=this.computeForceReductions(p,a);let s=new Pt(k,x,e,b,a,p,this);for(let i of p)s.finish(i,d(i.id),t[i.id]);return e}));let y=Object.create(null);for(let R=0;Re.id)).concat(65535));let $=null;if(this.dynamicRulePrecedences.length){$=Object.create(null);for(let{rule:e,prec:t}of this.dynamicRulePrecedences)$[e.id]=t}let v=Object.create(null);for(let R of this.terms.tops)v[R.nodeName]=[p.find((e=>e.startRule==R)).id,R.id];let S=x.storeArray(f.concat(65535));let{nodeProps:T,skippedTypes:O}=this.gatherNodeProps(t);return{states:w,stateData:x.finish(),goto:qt(p),nodeNames:t.filter((e=>e.ide.nodeName)).join(" "),nodeProps:T,skippedTypes:O,maxTerm:n,repeatNodeCount:t.length-i,tokenizers:k,tokenData:c,topRules:v,dialects:y,dynamicPrecedences:$,specialized:m,tokenPrec:S,termNames:s}}getParser(){let{states:e,stateData:t,goto:s,nodeNames:i,nodeProps:n,skippedTypes:l,maxTerm:a,repeatNodeCount:o,tokenizers:u,tokenData:h,topRules:f,dialects:c,dynamicPrecedences:p,specialized:d,tokenPrec:m,termNames:g}=this.prepareParser();let k=d.map((e=>{if(e instanceof ns){let t=this.options.externalSpecializer(e.ast.id.name,this.termTable);return{term:e.term.id,get:(s,i)=>t(s,i)<<1|(e.ast.type=="extend"?1:0),external:t,extend:e.ast.type=="extend"}}else{return{term:e.token.id,get:t=>e.table[t]||-1}}}));return r.WQ.deserialize({version:14,states:e,stateData:t,goto:s,nodeNames:i,maxTerm:a,repeatNodeCount:o,nodeProps:n.map((({prop:e,terms:t})=>[this.knownProps[e].prop,...t])),propSources:!this.options.externalPropSource?undefined:this.ast.externalPropSources.map((e=>this.options.externalPropSource(e.id.name))),skippedNodes:l,tokenData:h,tokenizers:u.map((e=>e.create())),context:this.ast.context?this.options.contextTracker:undefined,topRules:f,dialects:c,dynamicPrecedences:p,specialized:k,tokenPrec:m,termNames:g})}getParserFile(){let{states:e,stateData:t,goto:s,nodeNames:i,nodeProps:n,skippedTypes:r,maxTerm:l,repeatNodeCount:a,tokenizers:o,tokenData:u,topRules:h,dialects:f,dynamicPrecedences:c,specialized:p,tokenPrec:d,termNames:m}=this.prepareParser();let g=this.options.moduleStyle||"es";let k="// This file was generated by lezer-generator. You probably shouldn't edit it.\n",x=k;let b={},w=Object.create(null);let y=Object.create(null);for(let G of us)y[G]=true;let $=this.options.exportName||"parser";y[$]=true;let v=e=>{for(let t=0;;t++){let s=e+(t?"_"+t:"");if(!y[s])return s}};let S=(e,t,s=e)=>{let i=e+" from "+t;if(w[i])return w[i];let n=JSON.stringify(t),r=e;if(e in y){r=v(s);e+=`${g=="cjs"?":":" as"} ${r}`}y[r]=true;(b[n]||(b[n]=[])).push(e);return w[i]=r};let T=S("LRParser","@lezer/lr");let O=o.map((e=>e.createSource(S)));let R=this.ast.context?S(this.ast.context.id.name,this.ast.context.source):null;let P=n.map((({prop:e,terms:t})=>{let{source:s}=this.knownProps[e];let i=s.from?S(s.name,s.from):JSON.stringify(s.name);return`[${i}, ${t.map(I).join(",")}]`}));function j(e){return"{__proto__:null,"+Object.keys(e).map((t=>`${/\W/.test(t)?JSON.stringify(t):t}:${e[t]}`)).join(", ")+"}"}let N="";let A=p.map((e=>{if(e instanceof ns){let t=S(e.ast.id.name,e.ast.source);return`{term: ${e.term.id}, get: (value, stack) => (${t}(value, stack) << 1)${e.ast.type=="extend"?` | ${1}`:""}, external: ${t}${e.ast.type=="extend"?", extend: true":""}}`}else{let t=v("spec_"+e.token.name.replace(/\W/g,""));y[t]=true;N+=`const ${t} = ${j(e.table)}\n`;return`{term: ${e.token.id}, get: value => ${t}[value] || -1}`}}));let z=this.ast.externalPropSources.map((e=>S(e.id.name,e.source)));for(let G in b){if(g=="cjs")x+=`const {${b[G].join(", ")}} = require(${G})\n`;else x+=`import {${b[G].join(", ")}} from ${G}\n`}x+=N;function I(e){return typeof e!="string"||/^(true|false|\d+(\.\d+)?|\.\d+)$/.test(e)?e:JSON.stringify(e)}let C=Object.keys(f).map((e=>`${e}: ${f[e]}`));let q=`${T}.deserialize({\n version: ${14},\n states: ${yt(e,4294967295)},\n stateData: ${yt(t)},\n goto: ${yt(s)},\n nodeNames: ${JSON.stringify(i)},\n maxTerm: ${l}${R?`,\n context: ${R}`:""}${P.length?`,\n nodeProps: [\n ${P.join(",\n ")}\n ]`:""}${z.length?`,\n propSources: [${z.join()}]`:""}${r.length?`,\n skippedNodes: ${JSON.stringify(r)}`:""},\n repeatNodeCount: ${a},\n tokenData: ${yt(u)},\n tokenizers: [${O.join(", ")}],\n topRules: ${JSON.stringify(h)}${C.length?`,\n dialects: {${C.join(", ")}}`:""}${c?`,\n dynamicPrecedences: ${JSON.stringify(c)}`:""}${A.length?`,\n specialized: [${A.join(",")}]`:""},\n tokenPrec: ${d}${this.options.includeNames?`,\n termNames: ${JSON.stringify(m)}`:""}\n})`;let D=[];for(let G in this.termTable){let e=G;if(us.includes(e))for(let t=1;;t++){e="_".repeat(t)+G;if(!(e in this.termTable))break}D.push(`${e}${g=="cjs"?":":" ="} ${this.termTable[G]}`)}for(let G=0;G{if(!e[s.id]){e[s.id]=true;t.push(s)}};this.terms.tops.forEach(s);for(let i=0;it.prop==e));if(!s)i.push(s={prop:e,values:{}});(s.values[n.props[e]]||(s.values[n.props[e]]=[])).push(n.id)}}return{nodeProps:i.map((({prop:e,values:t})=>{let s=[];for(let i in t){let e=t[i];if(e.length==1){s.push(e[0],i)}else{s.push(-e.length);for(let t of e)s.push(t);s.push(i)}}return{prop:e,terms:s}})),skippedTypes:s}}makeTerminal(e,t,s){return this.terms.makeTerminal(this.terms.uniqueName(e),t,s)}computeForceReductions(e,t){let s=[];let i=[];let n=Object.create(null);for(let a of e){s.push(0);for(let e of a.goto){let t=n[e.term.id]||(n[e.term.id]=[]);let s=t.find((t=>t.target==e.target.id));if(s)s.parents.push(a.id);else t.push({parents:[a.id],target:e.target.id})}i[a.id]=a.set.filter((e=>e.pos>0&&!e.rule.name.top)).sort(((e,t)=>t.pos-e.pos||e.rule.parts.length-t.rule.parts.length))}let r=Object.create(null);function l(e,t,s=null){let i=n[e];if(!i)return false;return i.some((e=>{let i=s?s.filter((t=>e.parents.includes(t))):e.parents;if(i.length==0)return false;if(e.target==t)return true;let n=r[e.target];return n!=null&&l(n,t,i)}))}for(let a of e){if(a.defaultReduce&&a.defaultReduce.parts.length>0){s[a.id]=At(a.defaultReduce,t);if(a.defaultReduce.parts.length==1)r[a.id]=a.defaultReduce.name.id}}for(let a=1;;a++){let n=true;for(let o of e){if(o.defaultReduce)continue;let e=i[o.id];if(e.length!=a){if(e.length>a)n=false;continue}for(let i of e){if(i.pos!=1||!l(i.rule.name.id,o.id)){s[o.id]=At(i.rule,t,i.pos);if(i.pos==1)r[o.id]=i.rule.name.id;break}}}if(n)break}return s}substituteArgs(e,t,s){if(t.length==0)return e;return e.walk((e=>{let i;if(e instanceof v&&(i=s.findIndex((t=>t.name==e.id.name)))>-1){let s=t[i];if(e.args.length){if(s instanceof v&&!s.args.length)return new v(e.start,s.id,e.args);this.raise(`Passing arguments to a parameter that already has arguments`,e.start)}return s}else if(e instanceof T){let i=e.rule,n=this.substituteArgsInProps(i.props,t,s);return n==i.props?e:new T(e.start,new u(i.start,i.id,n,i.params,i.expr))}else if(e instanceof S){let i=this.substituteArgsInProps(e.props,t,s);return i==e.props?e:new S(e.start,e.type,i,e.token,e.content)}return e}))}substituteArgsInProps(e,t,s){let i=e=>{let i=e;for(let n=0;ne.name==r.name));if(l<0)continue;if(i==e)i=e.slice();let a=t[l];if(a instanceof v&&!a.args.length)i[n]=new J(r.start,a.id.name,null);else if(a instanceof N)i[n]=new J(r.start,a.value,null);else this.raise(`Trying to interpolate expression '${a}' into a prop`,r.start)}return i};let n=e;for(let r=0;re.id.name==i.id.name)):-1;if(n<0)this.raise(`Reference to unknown precedence: '${i.id.name}'`,i.id.start);let r=e.items[n],l=e.items.length-n;if(r.type=="cut"){t=t.join(new V(0,$t,l))}else{t=t.join(new V(l<<2));s=s.join(new V((l<<2)+(r.type=="left"?1:r.type=="right"?-1:0)))}}}return{here:t,atEnd:s}}raise(e,t=1){return this.input.raise(e,t)}warn(e,t=-1){let s=this.input.message(e,t);if(this.options.warn)this.options.warn(s);else console.warn(s)}defineRule(e,t){let s=this.currentSkip[this.currentSkip.length-1];for(let i of t)this.rules.push(new K(e,i.terms,i.ensureConflicts(),s))}resolve(e){for(let i of this.built)if(i.matches(e))return[St(i.term)];let t=this.tokens.getToken(e);if(t)return[St(t)];for(let i of this.localTokens){let t=i.getToken(e);if(t)return[St(t)]}for(let i of this.externalTokens){let t=i.getToken(e);if(t)return[St(t)]}for(let i of this.externalSpecializers){let t=i.getToken(e);if(t)return[St(t)]}let s=this.astRules.find((t=>t.rule.id.name==e.id.name));if(!s)return this.raise(`Reference to undefined rule '${e.id.name}'`,e.start);if(s.rule.params.length!=e.args.length)this.raise(`Wrong number or arguments for '${e.id.name}'`,e.start);this.used(s.rule.id.name);return[St(this.buildRule(s.rule,e.args,s.skip))]}normalizeRepeat(e){let t=this.built.find((t=>t.matchesRepeat(e)));if(t)return St(t.term);let s=e.expr.precthis.normalizeExpr(e)));let s=this;function i(n,r,l){let{here:a,atEnd:o}=s.conflictsFor(e.markers[r]);if(r==t.length)return[n.withConflicts(n.terms.length,a.join(l))];let u=[];for(let e of t[r]){for(let t of i(n.concat(e).withConflicts(n.terms.length,a),r+1,l.join(o)))u.push(t)}return u}return i(vt.none,0,V.none)}normalizeExpr(e){if(e instanceof j&&e.kind=="?"){return[vt.none,...this.normalizeExpr(e.expr)]}else if(e instanceof j){let t=this.normalizeRepeat(e);return e.kind=="+"?[t]:[vt.none,t]}else if(e instanceof O){return e.exprs.reduce(((e,t)=>e.concat(this.normalizeExpr(t))),[])}else if(e instanceof R){return this.normalizeSequence(e)}else if(e instanceof N){return[St(this.tokens.getLiteral(e))]}else if(e instanceof v){return this.resolve(e)}else if(e instanceof S){return[St(this.resolveSpecialization(e))]}else if(e instanceof T){return[St(this.buildRule(e.rule,$t,this.currentSkip[this.currentSkip.length-1],true))]}else{return this.raise(`This type of expression ('${e}') may not occur in non-token rules`,e.start)}}buildRule(e,t,s,i=false){let n=this.substituteArgs(e.expr,t,e.params);let{name:r,props:l,dynamicPrec:a,inline:o,group:u,exported:h}=this.nodeInfo(e.props||$t,i?"pg":"pgi",e.id.name,t,e.params,e.expr);if(h&&e.params.length)this.warn(`Can't export parameterized rules`,e.start);if(h&&i)this.warn(`Can't export inline rule`,e.start);let f=this.newName(e.id.name+(t.length?"<"+t.join(",")+">":""),r||true,l);if(o)f.inline=true;if(a)this.registerDynamicPrec(f,a);if((f.nodeType||h)&&e.params.length==0){if(!r)f.preserve=true;if(!i)this.namedTerms[h||e.id.name]=f}if(!i)this.built.push(new Tt(e.id.name,t,f));this.currentSkip.push(s);this.defineRule(f,this.normalizeExpr(n));this.currentSkip.pop();if(u)this.definedGroups.push({name:f,group:u,rule:e});return f}nodeInfo(e,t,s=null,i=$t,n=$t,r,l){let a={};let o=s&&(t.indexOf("a")>-1||!fs(s))&&!/ /.test(s)?s:null;let u=null,h=0,f=false,c=null,p=null;for(let d of e){if(!d.at){if(!this.knownProps[d.name]){let e=["name","dialect","dynamicPrecedence","export","isGroup"].includes(d.name)?` (did you mean '@${d.name}'?)`:"";this.raise(`Unknown prop name '${d.name}'${e}`,d.start)}a[d.name]=this.finishProp(d,i,n)}else if(d.name=="name"){o=this.finishProp(d,i,n);if(/ /.test(o))this.raise(`Node names cannot have spaces ('${o}')`,d.start)}else if(d.name=="dialect"){if(t.indexOf("d")<0)this.raise("Can't specify a dialect on non-token rules",e[0].start);if(d.value.length!=1&&!d.value[0].value)this.raise("The '@dialect' rule prop must hold a plain string value");let s=this.dialects.indexOf(d.value[0].value);if(s<0)this.raise(`Unknown dialect '${d.value[0].value}'`,d.value[0].start);u=s}else if(d.name=="dynamicPrecedence"){if(t.indexOf("p")<0)this.raise("Dynamic precedence can only be specified on nonterminals");if(d.value.length!=1||!/^-?(?:10|\d)$/.test(d.value[0].value))this.raise("The '@dynamicPrecedence' rule prop must hold an integer between -10 and 10");h=+d.value[0].value}else if(d.name=="inline"){if(d.value.length)this.raise("'@inline' doesn't take a value",d.value[0].start);if(t.indexOf("i")<0)this.raise("Inline can only be specified on nonterminals");f=true}else if(d.name=="isGroup"){if(t.indexOf("g")<0)this.raise("'@isGroup' can only be specified on nonterminals");c=d.value.length?this.finishProp(d,i,n):s}else if(d.name=="export"){if(d.value.length)p=this.finishProp(d,i,n);else p=s}else{this.raise(`Unknown built-in prop name '@${d.name}'`,d.start)}}if(r&&this.ast.autoDelim&&(o||M(a))){let e=this.findDelimiters(r);if(e){jt(e[0],"closedBy",e[1].nodeName);jt(e[1],"openedBy",e[0].nodeName)}}if(l&&M(l)){for(let e in l)if(!(e in a))a[e]=l[e]}if(M(a)&&!o)this.raise(`Node has properties but no name`,e.length?e[0].start:r.start);if(f&&(M(a)||u||h))this.raise(`Inline nodes can't have props, dynamic precedence, or a dialect`,e[0].start);if(f&&o)o=null;return{name:o,props:a,dialect:u,dynamicPrec:h,inline:f,group:c,exported:p}}finishProp(e,t,s){return e.value.map((e=>{if(e.value)return e.value;let i=s.findIndex((t=>t.name==e.name));if(i<0)this.raise(`Property refers to '${e.name}', but no parameter by that name is in scope`,e.start);let n=t[i];if(n instanceof v&&!n.args.length)return n.id.name;if(n instanceof N)return n.value;return this.raise(`Expression '${n}' can not be used as part of a property value`,e.start)})).join("")}resolveSpecialization(e){let t=e.type;let{name:s,props:i,dialect:n}=this.nodeInfo(e.props,"d");let r=this.normalizeExpr(e.token);if(r.length!=1||r[0].terms.length!=1||!r[0].terms[0].terminal)this.raise(`The first argument to '${t}' must resolve to a token`,e.token.start);let l;if(e.content instanceof N)l=[e.content.value];else if(e.content instanceof O&&e.content.exprs.every((e=>e instanceof N)))l=e.content.exprs.map((e=>e.value));else return this.raise(`The second argument to '${e.type}' must be a literal or choice of literals`,e.content.start);let a=r[0].terms[0],o=null;let u=this.specialized[a.name]||(this.specialized[a.name]=[]);for(let h of l){let r=u.find((e=>e.value==h));if(r==null){if(!o){o=this.makeTerminal(a.name+"/"+JSON.stringify(h),s,i);if(n!=null)(this.tokens.byDialect[n]||(this.tokens.byDialect[n]=[])).push(o)}u.push({value:h,term:o,type:t,dialect:n,name:s});this.tokenOrigins[o.name]={spec:a}}else{if(r.type!=t)this.raise(`Conflicting specialization types for ${JSON.stringify(h)} of ${a.name} (${t} vs ${r.type})`,e.start);if(r.dialect!=n)this.raise(`Conflicting dialects for specialization ${JSON.stringify(h)} of ${a.name}`,e.start);if(r.name!=s)this.raise(`Conflicting names for specialization ${JSON.stringify(h)} of ${a.name}`,e.start);if(o&&r.term!=o)this.raise(`Conflicting specialization tokens for ${JSON.stringify(h)} of ${a.name}`,e.start);o=r.term}}return o}findDelimiters(e){if(!(e instanceof R)||e.exprs.length<2)return null;let t=e=>{if(e instanceof N)return{term:this.tokens.getLiteral(e),str:e.value};if(e instanceof v&&e.args.length==0){let s=this.ast.rules.find((t=>t.id.name==e.id.name));if(s)return t(s.expr);let i=this.tokens.rules.find((t=>t.id.name==e.id.name));if(i&&i.expr instanceof N)return{term:this.tokens.getToken(e),str:i.expr.value}}return null};let s=t(e.exprs[e.exprs.length-1]);if(!s||!s.term.nodeName)return null;const i=["()","[]","{}","<>"];let n=i.find((e=>s.str.indexOf(e[1])>-1&&s.str.indexOf(e[0])<0));if(!n)return null;let r=t(e.exprs[0]);if(!r||!r.term.nodeName||r.str.indexOf(n[0])<0||r.str.indexOf(n[1])>-1)return null;return[r.term,s.term]}registerDynamicPrec(e,t){this.dynamicRulePrecedences.push({rule:e,prec:t});e.preserve=true}defineGroup(e,t,s){var i;let n=[];let r=e=>{if(e.nodeName)return[e];if(n.includes(e))this.raise(`Rule '${s.id.name}' cannot define a group because it contains a non-named recursive rule ('${e.name}')`,s.start);let t=[];n.push(e);for(let i of this.rules)if(i.name==e){let e=i.parts.map(r).filter((e=>e.length));if(e.length>1)this.raise(`Rule '${s.id.name}' cannot define a group because some choices produce multiple named nodes`,s.start);if(e.length==1)for(let s of e[0])t.push(s)}n.pop();return t};for(let l of r(e))l.props["group"]=(((i=l.props["group"])===null||i===void 0?void 0:i.split(" "))||[]).concat(t).sort().join(" ")}checkGroups(){let e=Object.create(null),t=Object.create(null);for(let i of this.terms.terms)if(i.nodeName){t[i.nodeName]=true;if(i.props["group"])for(let t of i.props["group"].split(" ")){(e[t]||(e[t]=[])).push(i)}}let s=Object.keys(e);for(let i=0;ii.includes(e)))&&(r.length>i.length?i.some((e=>!r.includes(e))):r.some((e=>!i.includes(e)))))this.warn(`Groups '${n}' and '${s[t]}' overlap without one being a superset of the other`)}}}}const Rt=5;class Pt{constructor(e,t,s,i,n,r,l){this.tokenizers=e;this.data=t;this.stateArray=s;this.skipData=i;this.skipInfo=n;this.states=r;this.builder=l;this.sharedActions=[]}findSharedActions(e){if(e.actions.lengtht.actions.length)&&r.actions.every((t=>e.actions.some((e=>e.eq(t))))))t=r}if(t)return t;let s=null,i=[];for(let r=e.id+1;r=Rt&&(!s||s.lengthe.eq(n))))continue;if(n instanceof Xe){i.push(n.term.id,n.target.id,0)}else{let e=At(n.rule,this.skipInfo);if(e!=t)i.push(n.term.id,e&65535,e>>16)}}i.push(65535);if(t>-1)i.push(2,t&65535,t>>16);else if(s)i.push(1,s.addr&65535,s.addr>>16);else i.push(0);return this.data.storeArray(i)}finish(e,t,s){let i=this.builder;let n=i.skipRules.indexOf(e.skip);let r=this.skipData[n],l=this.skipInfo[n].startTokens;let a=e.defaultReduce?At(e.defaultReduce,this.skipInfo):0;let o=t?1:0;let u=-1,h=null;if(a==0){if(t)for(const t of e.actions)if(t instanceof Ze&&t.term.eof)u=At(t.rule,this.skipInfo);if(u<0)h=this.findSharedActions(e)}if(e.set.some((e=>e.rule.name.top&&e.pos==e.rule.parts.length)))o|=2;let f=[];for(let d=0;dt.rule==e.name))?262144:0)|s<<19}function zt(e,t){e:for(let s=0;;){let i=e.indexOf(t[0],s);if(i==-1||i+t.length>e.length)break;for(let n=1;n{if(!s[e.id]){s[e.id]=true;i.push(e)}};for(let r of e)if(r.startRule&&t.includes(r.startRule))n(r);for(let r=0;r!s[e]}class Ct{constructor(){this.data=[]}storeArray(e){let t=zt(this.data,e);if(t>-1)return t;let s=this.data.length;for(let i of e)this.data.push(i);return s}finish(){return Uint16Array.from(this.data)}}function qt(e){let t={};let s=0;for(let l of e){for(let e of l.goto){s=Math.max(e.term.id,s);let i=t[e.term.id]||(t[e.term.id]={});(i[e.target.id]||(i[e.target.id]=[])).push(l.id)}}let i=new Ct;let n=[];let r=s+2;for(let l=0;l<=s;l++){let e=t[l];if(!e){n.push(1);continue}let s=[];let a=Object.keys(e);for(let t of a){let i=e[t];s.push((t==a[a.length-1]?1:0)+(i.length<<1));s.push(+t);for(let e of i)s.push(e)}n.push(i.storeArray(s)+r)}if(n.some((e=>e>65535)))throw new U("Goto table too large");return Uint16Array.from([s+1,...n,...i.data])}class Dt{constructor(e,t){this.tokens=e;this.groupID=t}create(){return this.groupID}createSource(){return String(this.groupID)}}function Gt(e,t){if(!e.includes(t))e.push(t)}function Et(e){let t=Object.create(null);for(let s of e){let e=1<e.id.name==t));if(!s)return null;let{name:i,props:n,dialect:r,exported:l}=this.b.nodeInfo(s.props,"d",t,e.args,s.params.length!=e.args.length?$t:s.params);let a=this.b.makeTerminal(e.toString(),i,n);if(r!=null)(this.byDialect[r]||(this.byDialect[r]=[])).push(a);if((a.nodeType||l)&&s.params.length==0){if(!a.nodeType)a.preserve=true;this.b.namedTerms[l||t]=a}this.buildRule(s,e,this.startState,new re([a]));this.built.push(new Tt(t,e.args,a));return a}buildRule(e,t,s,i,n=$t){let r=t.id.name;if(e.params.length!=t.args.length)this.b.raise(`Incorrect number of arguments for token '${r}'`,t.start);let l=this.building.find((e=>e.name==r&&G(t.args,e.args)));if(l){if(l.to==i){s.nullEdge(l.start);return}let e=this.building.length-1;while(this.building[e].name!=r)e--;this.b.raise(`Invalid (non-tail) recursion in token rules: ${this.building.slice(e).map((e=>e.name)).join(" -> ")}`,t.start)}this.b.used(e.id.name);let a=new re;s.nullEdge(a);this.building.push(new _t(r,a,i,t.args));this.build(this.b.substituteArgs(e.expr,t.args,e.params),a,i,t.args.map(((t,s)=>new Jt(e.params[s].name,t,n))));this.building.pop()}build(e,t,s,i){if(e instanceof v){let n=e.id.name,r=i.find((e=>e.name==n));if(r)return this.build(r.expr,t,s,r.scope);let l;for(let e=0,t=this.b.localTokens;e<=t.length;e++){let s=e==t.length?this.b.tokens:t[e];l=s.rules.find((e=>e.id.name==n))}if(!l)return this.b.raise(`Reference to token rule '${e.id.name}', which isn't found`,e.start);this.buildRule(l,e,t,s,i)}else if(e instanceof q){for(let[i,n]of C[e.type])t.edge(i,n,s)}else if(e instanceof O){for(let n of e.exprs)this.build(n,t,s,i)}else if(Zt(e)){t.nullEdge(s)}else if(e instanceof R){let n=e.markers.find((e=>e.length>0));if(n)this.b.raise("Conflict marker in token expression",n[0].start);for(let r=0;rt.id==e));if(s)t.push(s.term)}if(!t.length)this.b.warn(`Precedence specified for unknown token ${i}`,i.start);for(let i of t)ss(e,i,s);s=s.concat(t)}}}precededBy(e,t){let s=this.precedenceRelations.find((t=>t.term==e));return s&&s.after.includes(t)}buildPrecTable(e){let t=[],s=this.precedenceRelations.slice();for(let{a:i,b:n,soft:r}of e)if(r){if(!s.some((e=>e.term==i))||!s.some((e=>e.term==n)))continue;if(r<0)[i,n]=[n,i];ss(s,n,[i]);ss(s,i,[])}e:while(s.length){for(let e=0;et.includes(e.id)))){t.push(i.term.id);if(s.length==1)break e;s[e]=s.pop();continue e}}this.b.raise(`Cyclic token precedence relation between ${s.map((e=>e.term)).join(", ")}`)}return t}}class Mt extends Ut{constructor(){super(...arguments);this.explicitConflicts=[]}getLiteral(e){let t=JSON.stringify(e.value);for(let o of this.built)if(o.id==t)return o.term;let s=null,i={},n=null,r=null;let l=this.ast?this.ast.literals.find((t=>t.literal==e.value)):null;if(l)({name:s,props:i,dialect:n,exported:r}=this.b.nodeInfo(l.props,"da",e.value));let a=this.b.makeTerminal(t,s,i);if(n!=null)(this.byDialect[n]||(this.byDialect[n]=[])).push(a);if(r)this.b.namedTerms[r]=a;this.build(e,this.startState,new re([a]),$t);this.built.push(new Tt(t,$t,a));return a}takeConflicts(){var e;let t=e=>{if(e instanceof v){for(let t of this.built)if(t.matches(e))return t.term}else{let t=JSON.stringify(e.value),s=this.built.find((e=>e.id==t));if(s)return s.term}this.b.warn(`Precedence specified for unknown token ${e}`,e.start);return null};for(let s of((e=this.ast)===null||e===void 0?void 0:e.conflicts)||[]){let e=t(s.a),i=t(s.b);if(e&&i){if(e.ide.id.name==i.accepting[0].name)).start);if(/\btokens\b/.test(Me))console.log(i.toString());let n=i.findConflicts(Ft(e,this.b,t)).filter((({a:e,b:t})=>!this.precededBy(e,t)&&!this.precededBy(t,e)));for(let{a:h,b:f}of this.explicitConflicts){if(!n.some((e=>e.a==h&&e.b==f)))n.push(new le(h,f,0,"",""))}let r=n.filter((e=>e.soft)),l=n.filter((e=>!e.soft));let a=[];let o=[];for(let h of e){if(h.defaultReduce||h.tokenGroup>-1)continue;let e=[],i=[];let n=t[this.b.skipRules.indexOf(h.skip)].startTokens;for(let t of n)if(h.actions.some((e=>e.term==t)))this.b.raise(`Use of token ${t.name} conflicts with skip rule`);let r=[];for(let t=0;te.conflict==s))){let e=s.exampleA?` (example: ${JSON.stringify(s.exampleA)}${s.exampleB?` vs ${JSON.stringify(s.exampleB)}`:""})`:"";a.push({error:`Overlapping tokens ${t.name} and ${n.name} used in same context${e}\n`+`After: ${h.set[0].trail()}`,conflict:s})}Gt(e,t);Gt(i,n)}}let u=null;for(let t of o){if(i.some((e=>t.tokens.includes(e))))continue;for(let s of e)Gt(t.tokens,s);u=t;break}if(!u){u=new Dt(e,o.length+s);o.push(u)}h.tokenGroup=u.groupID}if(a.length)this.b.raise(a.map((e=>e.error)).join("\n\n"));if(o.length+s>16)this.b.raise(`Too many different token groups (${o.length}) to represent them as a 16-bit bitfield`);let u=this.buildPrecTable(r);return{tokenGroups:o,tokenPrec:u,tokenData:i.toArray(Et(o),u)}}}class Bt extends Ut{constructor(e,t){super(e,t);this.fallback=null;if(t.fallback)e.unique(t.fallback.id)}getToken(e){let t=null;if(this.ast.fallback&&this.ast.fallback.id.name==e.id.name){if(e.args.length)this.b.raise(`Incorrect number of arguments for ${e.id.name}`,e.start);if(!this.fallback){let{name:t,props:s,exported:i}=this.b.nodeInfo(this.ast.fallback.props,"",e.id.name,$t,$t);let n=this.fallback=this.b.makeTerminal(e.id.name,t,s);if(n.nodeType||i){if(!n.nodeType)n.preserve=true;this.b.namedTerms[i||e.id.name]=n}this.b.used(e.id.name)}t=this.fallback}else{t=super.getToken(e)}if(t&&!this.b.tokenOrigins[t.name])this.b.tokenOrigins[t.name]={group:this};return t}buildLocalGroup(e,t,s){let i=this.startState.compile();if(i.accepting.length)this.b.raise(`Grammar contains zero-length tokens (in '${i.accepting[0].name}')`,this.rules.find((e=>e.id.name==i.accepting[0].name)).start);for(let{a:r,b:u,exampleA:h}of i.findConflicts((()=>true))){if(!this.precededBy(r,u)&&!this.precededBy(u,r))this.b.raise(`Overlapping tokens ${r.name} and ${u.name} in local token group${h?` (example: ${JSON.stringify(h)})`:""}`)}for(let r of e){if(r.defaultReduce)continue;let e=null;let i=t[this.b.skipRules.indexOf(r.skip)].startTokens[0];for(let{term:t}of r.actions){let s=this.b.tokenOrigins[t.name];if((s===null||s===void 0?void 0:s.group)==this)e=t;else i=t}if(e){if(i)this.b.raise(`Tokens from a local token group used together with other tokens (${e.name} with ${i.name})`);r.tokenGroup=s}}let n=this.buildPrecTable($t);let l=i.toArray({[s]:65535},n);let a=l.length;let o=new Uint16Array(l.length+n.length+1);o.set(l,0);o.set(n,a);o[o.length-1]=65535;return{groupID:s,create:()=>new r.RA(o,a,this.fallback?this.fallback.id:undefined),createSource:e=>`new ${e("LocalTokenGroup","@lezer/lr")}(${yt(o)}, ${a}${this.fallback?`, ${this.fallback.id}`:""})`}}}function Ft(e,t,s){let i=Object.create(null);function n(e,i){return e.actions.some((e=>e.term==i))||s[t.skipRules.indexOf(e.skip)].startTokens.includes(i)}return(t,s)=>{if(t.idn(e,t)&&n(e,s)))}}function Wt(e){let t=0,s=[];for(let[i,n]of e){if(i>t)s.push([t,i]);t=n}if(t<=Yt)s.push([t,Yt+1]);return s}const Lt=65536,Qt=55296,Vt=57344,Yt=1114111;const Ht=56320,Kt=57343;function Xt(e,t,s,i){if(sVt)e.edge(Math.max(s,Vt),Math.min(i,X+1),t);s=Lt}if(i<=Lt)return;let n=String.fromCodePoint(s),r=String.fromCodePoint(i-1);let l=n.charCodeAt(0),a=n.charCodeAt(1);let o=r.charCodeAt(0),u=r.charCodeAt(1);if(l==o){let s=new re;e.edge(l,l+1,s);s.edge(a,u+1,t)}else{let s=l,i=o;if(a>Ht){s++;let i=new re;e.edge(l,l+1,i);i.edge(a,Kt+1,t)}if(ue.term==t));if(i<0)e.push({term:t,after:s});else e[i]={term:t,after:e[i].after.concat(s)}}class is{constructor(e,t){this.b=e;this.ast=t;this.tokens=es(e,t.tokens);for(let s in this.tokens)this.b.tokenOrigins[this.tokens[s].name]={external:this}}getToken(e){return ts(this.b,this.tokens,e)}create(){return this.b.options.externalTokenizer(this.ast.id.name,this.b.termTable)}createSource(e){let{source:t,id:{name:s}}=this.ast;return e(s,t)}}class ns{constructor(e,t){this.b=e;this.ast=t;this.term=null;this.tokens=es(e,t.tokens)}finish(){let e=this.b.normalizeExpr(this.ast.token);if(e.length!=1||e[0].terms.length!=1||!e[0].terms[0].terminal)this.b.raise(`The token expression to '@external ${this.ast.type}' must resolve to a token`,this.ast.token.start);this.term=e[0].terms[0];for(let t in this.tokens)this.b.tokenOrigins[this.tokens[t].name]={spec:this.term,external:this}}getToken(e){return ts(this.b,this.tokens,e)}}function rs(e,t){for(let s=0;;s++){let i=Object.create(null),n;if(s==0)for(let l of e){if(l.name.inline&&!i[l.name.name]){let a=e.filter((e=>e.name==l.name));if(a.some((e=>e.parts.includes(l.name))))continue;n=i[l.name.name]=a}}for(let o=0;oe.skip==u.skip||!e.parts.includes(u.name))))&&!u.parts.some((e=>!!i[e.name]))&&!e.some(((e,t)=>t!=o&&e.name==u.name)))n=i[u.name.name]=[u]}if(!n)return e;let r=[];for(let h of e){if(i[h.name.name])continue;if(!h.parts.some((e=>!!i[e.name]))){r.push(h);continue}function f(e,t,s){if(e==h.parts.length){r.push(new K(h.name,s,t,h.skip));return}let n=h.parts[e],l=i[n.name];if(!l){f(e+1,t.concat(h.conflicts[e+1]),s.concat(n));return}for(let i of l)f(e+1,t.slice(0,t.length-1).concat(t[e].join(i.conflicts[0])).concat(i.conflicts.slice(1,i.conflicts.length-1)).concat(h.conflicts[e+1].join(i.conflicts[i.conflicts.length-1])),s.concat(i.parts))}f(0,[h.conflicts[0]],[])}e=r}}function ls(e){let t=Object.create(null),s;for(let n=0;n!t[e.name]))?n:new K(n.name,n.parts.map((e=>t[e.name]||e)),n.conflicts,n.skip))}return i}function as(e,t){return ls(rs(e,t))}function os(e,t={}){let s=new Ot(e,t),i=s.getParser();i.termTable=s.termTable;return i}const us=["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","while","with","null","true","false","instanceof","typeof","void","delete","new","in","this","const","class","extends","export","import","super","enum","implements","interface","let","package","private","protected","public","static","yield","require"];function hs(e,t={}){return new Ot(e,t).getParserFile()}function fs(e){let t=e[0];return t=="_"||t.toUpperCase()!=t}function cs(e){return e.props.some((e=>e.at&&e.name=="export"))}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/9055.bd710a8db8883a836b59.js b/bootcamp/share/jupyter/lab/static/9055.bd710a8db8883a836b59.js new file mode 100644 index 0000000..82842e4 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/9055.bd710a8db8883a836b59.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9055],{59055:(e,t,r)=>{r.r(t);r.d(t,{haxe:()=>ue,hxml:()=>le});function n(e){return{type:e,style:"keyword"}}var i=n("keyword a"),a=n("keyword b"),u=n("keyword c");var l=n("operator"),f={type:"atom",style:"atom"},o={type:"attribute",style:"attribute"};var c=n("typedef");var s={if:i,while:i,else:a,do:a,try:a,return:u,break:u,continue:u,new:u,throw:u,var:n("var"),inline:o,static:o,using:n("import"),public:o,private:o,cast:n("cast"),import:n("import"),macro:n("macro"),function:n("function"),catch:n("catch"),untyped:n("untyped"),callback:n("cb"),for:n("for"),switch:n("switch"),case:n("case"),default:n("default"),in:l,never:n("property_access"),trace:n("trace"),class:c,abstract:c,enum:c,interface:c,typedef:c,extends:c,implements:c,dynamic:c,true:f,false:f,null:f};var p=/[+\-*&%=<>!?|]/;function d(e,t,r){t.tokenize=r;return r(e,t)}function m(e,t){var r=false,n;while((n=e.next())!=null){if(n==t&&!r)return true;r=!r&&n=="\\"}}var c,v;function y(e,t,r){c=e;v=r;return t}function h(e,t){var r=e.next();if(r=='"'||r=="'"){return d(e,t,b(r))}else if(/[\[\]{}\(\),;\:\.]/.test(r)){return y(r)}else if(r=="0"&&e.eat(/x/i)){e.eatWhile(/[\da-f]/i);return y("number","number")}else if(/\d/.test(r)||r=="-"&&e.eat(/\d/)){e.match(/^\d*(?:\.\d*(?!\.))?(?:[eE][+\-]?\d+)?/);return y("number","number")}else if(t.reAllowed&&(r=="~"&&e.eat(/\//))){m(e,"/");e.eatWhile(/[gimsu]/);return y("regexp","string.special")}else if(r=="/"){if(e.eat("*")){return d(e,t,k)}else if(e.eat("/")){e.skipToEnd();return y("comment","comment")}else{e.eatWhile(p);return y("operator",null,e.current())}}else if(r=="#"){e.skipToEnd();return y("conditional","meta")}else if(r=="@"){e.eat(/:/);e.eatWhile(/[\w_]/);return y("metadata","meta")}else if(p.test(r)){e.eatWhile(p);return y("operator",null,e.current())}else{var n;if(/[A-Z]/.test(r)){e.eatWhile(/[\w_<>]/);n=e.current();return y("type","type",n)}else{e.eatWhile(/[\w_]/);var n=e.current(),i=s.propertyIsEnumerable(n)&&s[n];return i&&t.kwAllowed?y(i.type,i.style,n):y("variable","variable",n)}}}function b(e){return function(t,r){if(m(t,e))r.tokenize=h;return y("string","string")}}function k(e,t){var r=false,n;while(n=e.next()){if(n=="/"&&r){t.tokenize=h;break}r=n=="*"}return y("comment","comment")}var x={atom:true,number:true,variable:true,string:true,regexp:true};function w(e,t,r,n,i,a){this.indented=e;this.column=t;this.type=r;this.prev=i;this.info=a;if(n!=null)this.align=n}function g(e,t){for(var r=e.localVars;r;r=r.next)if(r.name==t)return true}function A(e,t,r,n,i){var a=e.cc;_.state=e;_.stream=i;_.marked=null,_.cc=a;if(!e.lexical.hasOwnProperty("align"))e.lexical.align=true;while(true){var u=a.length?a.pop():C;if(u(r,n)){while(a.length&&a[a.length-1].lex)a.pop()();if(_.marked)return _.marked;if(r=="variable"&&g(e,n))return"variableName.local";if(r=="variable"&&V(e,n))return"variableName.special";return t}}}function V(e,t){if(/[a-z]/.test(t.charAt(0)))return false;var r=e.importedtypes.length;for(var n=0;n=0;e--)_.cc.push(arguments[e])}function z(){W.apply(null,arguments);return true}function T(e,t){for(var r=t;r;r=r.next)if(r.name==e)return true;return false}function E(e){var t=_.state;if(t.context){_.marked="def";if(T(e,t.localVars))return;t.localVars={name:e,next:t.localVars}}else if(t.globalVars){if(T(e,t.globalVars))return;t.globalVars={name:e,next:t.globalVars}}}var D={name:"this",next:null};function O(){if(!_.state.context)_.state.localVars=D;_.state.context={prev:_.state.context,vars:_.state.localVars}}function Z(){_.state.localVars=_.state.context.vars;_.state.context=_.state.context.prev}Z.lex=true;function P(e,t){var r=function(){var r=_.state;r.lexical=new w(r.indented,_.stream.column(),e,null,r.lexical,t)};r.lex=true;return r}function I(){var e=_.state;if(e.lexical.prev){if(e.lexical.type==")")e.indented=e.lexical.indented;e.lexical=e.lexical.prev}}I.lex=true;function j(e){function t(r){if(r==e)return z();else if(e==";")return W();else return z(t)}return t}function C(e){if(e=="@")return z(q);if(e=="var")return z(P("vardef"),U,j(";"),I);if(e=="keyword a")return z(P("form"),N,C,I);if(e=="keyword b")return z(P("form"),C,I);if(e=="{")return z(P("}"),O,R,I,Z);if(e==";")return z();if(e=="attribute")return z(F);if(e=="function")return z(te);if(e=="for")return z(P("form"),j("("),P(")"),Y,j(")"),I,C,I);if(e=="variable")return z(P("stat"),K);if(e=="switch")return z(P("form"),N,P("}","switch"),j("{"),R,I,I);if(e=="case")return z(N,j(":"));if(e=="default")return z(j(":"));if(e=="catch")return z(P("form"),O,j("("),ae,j(")"),C,I,Z);if(e=="import")return z(H,j(";"));if(e=="typedef")return z(J);return W(P("stat"),N,j(";"),I)}function N(e){if(x.hasOwnProperty(e))return z(B);if(e=="type")return z(B);if(e=="function")return z(te);if(e=="keyword c")return z($);if(e=="(")return z(P(")"),$,j(")"),I,B);if(e=="operator")return z(N);if(e=="[")return z(P("]"),Q($,"]"),I,B);if(e=="{")return z(P("}"),Q(M,"}"),I,B);return z()}function $(e){if(e.match(/[;\}\)\],]/))return W();return W(N)}function B(e,t){if(e=="operator"&&/\+\+|--/.test(t))return z(B);if(e=="operator"||e==":")return z(N);if(e==";")return;if(e=="(")return z(P(")"),Q(N,")"),I,B);if(e==".")return z(L,B);if(e=="[")return z(P("]"),N,j("]"),I,B)}function F(e){if(e=="attribute")return z(F);if(e=="function")return z(te);if(e=="var")return z(U)}function q(e){if(e==":")return z(q);if(e=="variable")return z(q);if(e=="(")return z(P(")"),Q(G,")"),I,C)}function G(e){if(e=="variable")return z()}function H(e,t){if(e=="variable"&&/[A-Z]/.test(t.charAt(0))){S(t);return z()}else if(e=="variable"||e=="property"||e=="."||t=="*")return z(H)}function J(e,t){if(e=="variable"&&/[A-Z]/.test(t.charAt(0))){S(t);return z()}else if(e=="type"&&/[A-Z]/.test(t.charAt(0))){return z()}}function K(e){if(e==":")return z(I,C);return W(B,j(";"),I)}function L(e){if(e=="variable"){_.marked="property";return z()}}function M(e){if(e=="variable")_.marked="property";if(x.hasOwnProperty(e))return z(j(":"),N)}function Q(e,t){function r(n){if(n==",")return z(e,r);if(n==t)return z();return z(j(t))}return function(n){if(n==t)return z();else return W(e,r)}}function R(e){if(e=="}")return z();return W(C,R)}function U(e,t){if(e=="variable"){E(t);return z(re,X)}return z()}function X(e,t){if(t=="=")return z(N,X);if(e==",")return z(U)}function Y(e,t){if(e=="variable"){E(t);return z(ee,N)}else{return W()}}function ee(e,t){if(t=="in")return z()}function te(e,t){if(e=="variable"||e=="type"){E(t);return z(te)}if(t=="new")return z(te);if(e=="(")return z(P(")"),O,Q(ae,")"),I,re,C,Z)}function re(e){if(e==":")return z(ne)}function ne(e){if(e=="type")return z();if(e=="variable")return z();if(e=="{")return z(P("}"),Q(ie,"}"),I)}function ie(e){if(e=="variable")return z(re)}function ae(e,t){if(e=="variable"){E(t);return z(re)}}const ue={name:"haxe",startState:function(e){var t=["Int","Float","String","Void","Std","Bool","Dynamic","Array"];var r={tokenize:h,reAllowed:true,kwAllowed:true,cc:[],lexical:new w(-e,0,"block",false),importedtypes:t,context:null,indented:0};return r},token:function(e,t){if(e.sol()){if(!t.lexical.hasOwnProperty("align"))t.lexical.align=false;t.indented=e.indentation()}if(e.eatSpace())return null;var r=t.tokenize(e,t);if(c=="comment")return r;t.reAllowed=!!(c=="operator"||c=="keyword c"||c.match(/^[\[{}\(,;:]$/));t.kwAllowed=c!=".";return A(t,r,c,v,e)},indent:function(e,t,r){if(e.tokenize!=h)return 0;var n=t&&t.charAt(0),i=e.lexical;if(i.type=="stat"&&n=="}")i=i.prev;var a=i.type,u=n==a;if(a=="vardef")return i.indented+4;else if(a=="form"&&n=="{")return i.indented;else if(a=="stat"||a=="form")return i.indented+r.unit;else if(i.info=="switch"&&!u)return i.indented+(/^(?:case|default)\b/.test(t)?r.unit:2*r.unit);else if(i.align)return i.column+(u?0:1);else return i.indented+(u?0:r.unit)},languageData:{indentOnInput:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}};const le={name:"hxml",startState:function(){return{define:false,inString:false}},token:function(e,t){var r=e.peek();var n=e.sol();if(r=="#"){e.skipToEnd();return"comment"}if(n&&r=="-"){var i="variable-2";e.eat(/-/);if(e.peek()=="-"){e.eat(/-/);i="keyword a"}if(e.peek()=="D"){e.eat(/[D]/);i="keyword c";t.define=true}e.eatWhile(/[A-Z]/i);return i}var r=e.peek();if(t.inString==false&&r=="'"){t.inString=true;e.next()}if(t.inString==true){if(e.skipTo("'")){}else{e.skipToEnd()}if(e.peek()=="'"){e.next();t.inString=false}return"string"}e.next();return null},languageData:{commentTokens:{line:"#"}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/9065.5305259c65dfa1c99874.js b/bootcamp/share/jupyter/lab/static/9065.5305259c65dfa1c99874.js new file mode 100644 index 0000000..0d97dbb --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/9065.5305259c65dfa1c99874.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9065],{9065:(t,e,n)=>{n.r(e);n.d(e,{Bounds:()=>r_,CanvasHandler:()=>Mw,CanvasRenderer:()=>Rw,DATE:()=>Oe,DAY:()=>Ue,DAYOFYEAR:()=>Pe,Dataflow:()=>Cs,Debug:()=>m.cG,Error:()=>m.jj,EventStream:()=>jo,Gradient:()=>Oy,GroupItem:()=>s_,HOURS:()=>Ie,Handler:()=>Qb,Info:()=>m.kI,Item:()=>o_,MILLISECONDS:()=>Fe,MINUTES:()=>qe,MONTH:()=>Re,Marks:()=>Ub,MultiPulse:()=>vs,None:()=>m.Hq,Operator:()=>Po,Parameters:()=>No,Pulse:()=>ps,QUARTER:()=>ze,RenderType:()=>qk,Renderer:()=>ew,ResourceLoader:()=>a_,SECONDS:()=>Le,SVGHandler:()=>Pw,SVGRenderer:()=>gk,SVGStringRenderer:()=>Rk,Scenegraph:()=>Xb,TIME_UNITS:()=>je,Transform:()=>Us,View:()=>EH,WEEK:()=>Ce,Warn:()=>m.uU,YEAR:()=>Ne,accessor:()=>m.ZE,accessorFields:()=>m.Oj,accessorName:()=>m.el,array:()=>m.IX,ascending:()=>m.j2,bandwidthNRD:()=>oa,bin:()=>sa,bootstrapCI:()=>ua,boundClip:()=>Jk,boundContext:()=>D_,boundItem:()=>Pb,boundMark:()=>qb,boundStroke:()=>c_,changeset:()=>Do,clampRange:()=>m.l$,codegenExpression:()=>eL.YP,compare:()=>m.qu,constant:()=>m.a9,cumulativeLogNormal:()=>Ea,cumulativeNormal:()=>_a,cumulativeUniform:()=>za,dayofyear:()=>Ge,debounce:()=>m.Ds,defaultLocale:()=>Rr,definition:()=>Is,densityLogNormal:()=>Sa,densityNormal:()=>va,densityUniform:()=>Na,domChild:()=>Jb,domClear:()=>Gb,domCreate:()=>Bb,domFind:()=>Yb,dotbin:()=>ca,error:()=>m.vU,expressionFunction:()=>bW,extend:()=>m.l7,extent:()=>m.We,extentIndex:()=>m.dI,falsy:()=>m.k,fastmap:()=>m.Xr,field:()=>m.EP,flush:()=>m.yl,font:()=>Mb,fontFamily:()=>kb,fontSize:()=>mb,format:()=>uo,formatLocale:()=>Mr,formats:()=>co,hasOwnProperty:()=>m.nr,id:()=>m.id,identity:()=>m.yR,inferType:()=>to,inferTypes:()=>eo,ingest:()=>ko,inherits:()=>m.XW,inrange:()=>m.u5,interpolate:()=>Jg,interpolateColors:()=>Xg,interpolateRange:()=>Wg,intersect:()=>jk,intersectBoxLine:()=>L_,intersectPath:()=>U_,intersectPoint:()=>P_,intersectRule:()=>q_,isArray:()=>m.kJ,isBoolean:()=>m.jn,isDate:()=>m.J_,isFunction:()=>m.mf,isIterable:()=>m.TW,isNumber:()=>m.hj,isObject:()=>m.Kn,isRegExp:()=>m.Kj,isString:()=>m.HD,isTuple:()=>xo,key:()=>m.Jy,lerp:()=>m.t7,lineHeight:()=>gb,loader:()=>mo,locale:()=>zr,logger:()=>m.kg,lruCache:()=>m.$m,markup:()=>ak,merge:()=>m.TS,mergeConfig:()=>m.fE,multiLineOffset:()=>_b,one:()=>m.kX,pad:()=>m.vk,panLinear:()=>m.Dw,panLog:()=>m.mJ,panPow:()=>m.QA,panSymlog:()=>m.Zw,parse:()=>YV,parseExpression:()=>eL.BJ,parseSelector:()=>NH.r,path:()=>hf,pathCurves:()=>Py,pathEqual:()=>Kk,pathParse:()=>Wy,pathRectangle:()=>yv,pathRender:()=>iv,pathSymbols:()=>av,pathTrail:()=>vv,peek:()=>m.fj,point:()=>Kb,projection:()=>tN,quantileLogNormal:()=>Ta,quantileNormal:()=>xa,quantileUniform:()=>Ra,quantiles:()=>ia,quantizeInterpolator:()=>Hg,quarter:()=>m.mS,quartiles:()=>ra,random:()=>aa,randomInteger:()=>da,randomKDE:()=>ka,randomLCG:()=>ha,randomLogNormal:()=>$a,randomMixture:()=>Da,randomNormal:()=>wa,randomUniform:()=>Ca,read:()=>ho,regressionExp:()=>Fa,regressionLinear:()=>qa,regressionLoess:()=>Ga,regressionLog:()=>La,regressionPoly:()=>Xa,regressionPow:()=>ja,regressionQuad:()=>Wa,renderModule:()=>Fk,repeat:()=>m.rx,resetDefaultLocale:()=>Cr,resetSVGClipId:()=>n_,resetSVGDefIds:()=>Qk,responseType:()=>fo,runtimeContext:()=>ZW,sampleCurve:()=>tl,sampleLogNormal:()=>Ma,sampleNormal:()=>ya,sampleUniform:()=>Aa,scale:()=>zg,sceneEqual:()=>Vk,sceneFromJSON:()=>jb,scenePickVisit:()=>Z_,sceneToJSON:()=>Fb,sceneVisit:()=>K_,sceneZOrder:()=>V_,scheme:()=>ey,serializeXML:()=>lk,setRandom:()=>la,span:()=>m.yP,splitAccessPath:()=>m._k,stringValue:()=>m.m8,textMetrics:()=>ub,timeBin:()=>Wn,timeFloor:()=>dn,timeFormatLocale:()=>Ar,timeInterval:()=>_n,timeOffset:()=>wn,timeSequence:()=>Sn,timeUnitSpecifier:()=>Be,timeUnits:()=>Xe,toBoolean:()=>m.sw,toDate:()=>m.ZU,toNumber:()=>m.He,toSet:()=>m.Rg,toString:()=>m.BB,transform:()=>qs,transforms:()=>Ps,truncate:()=>m.$G,truthy:()=>m.yb,tupleid:()=>bo,typeParsers:()=>Kr,utcFloor:()=>gn,utcInterval:()=>xn,utcOffset:()=>kn,utcSequence:()=>En,utcdayofyear:()=>en,utcquarter:()=>m.N3,utcweek:()=>nn,version:()=>JV,visitArray:()=>m.FP,week:()=>Ve,writeConfig:()=>m.iL,zero:()=>m.bM,zoomLinear:()=>m.ay,zoomLog:()=>m.dH,zoomPow:()=>m.mK,zoomSymlog:()=>m.bV});var i={};n.r(i);n.d(i,{aggregate:()=>kl,bin:()=>Sl,collect:()=>Tl,compare:()=>$l,countpattern:()=>Al,cross:()=>zl,density:()=>ql,dotbin:()=>Bl,expression:()=>Jl,extent:()=>Vl,facet:()=>Zl,field:()=>Ql,filter:()=>eu,flatten:()=>nu,fold:()=>iu,formula:()=>ru,generate:()=>ou,impute:()=>lu,joinaggregate:()=>hu,kde:()=>du,key:()=>pu,load:()=>gu,lookup:()=>_u,multiextent:()=>xu,multivalues:()=>wu,params:()=>Mu,pivot:()=>Su,prefacet:()=>Du,project:()=>Au,proxy:()=>zu,quantile:()=>Ru,relay:()=>Ou,sample:()=>Uu,sequence:()=>Pu,sieve:()=>Iu,subflow:()=>Kl,timeunit:()=>qu,tupleindex:()=>Fu,values:()=>ju,window:()=>Vu});var r={};n.r(r);n.d(r,{interpolate:()=>bd,interpolateArray:()=>fd,interpolateBasis:()=>Kh,interpolateBasisClosed:()=>Zh,interpolateCubehelix:()=>Bm,interpolateCubehelixLong:()=>Ym,interpolateDate:()=>dd,interpolateDiscrete:()=>jp,interpolateHcl:()=>zm,interpolateHclLong:()=>Rm,interpolateHsl:()=>om,interpolateHslLong:()=>sm,interpolateHue:()=>Wp,interpolateLab:()=>Am,interpolateNumber:()=>pd,interpolateNumberArray:()=>ud,interpolateObject:()=>md,interpolateRgb:()=>od,interpolateRgbBasis:()=>ad,interpolateRgbBasisClosed:()=>ld,interpolateRound:()=>wd,interpolateString:()=>xd,interpolateTransformCss:()=>Kp,interpolateTransformSvg:()=>Zp,interpolateZoom:()=>im,piecewise:()=>Mp,quantize:()=>Jm});var o={};n.r(o);n.d(o,{bound:()=>PM,identifier:()=>LM,mark:()=>jM,overlap:()=>XM,render:()=>ZM,viewlayout:()=>$S});var s={};n.r(s);n.d(s,{axisticks:()=>RS,datajoin:()=>CS,encode:()=>PS,legendentries:()=>IS,linkpath:()=>WS,pie:()=>iE,scale:()=>lE,sortitems:()=>bE,stack:()=>EE});var a={};n.r(a);n.d(a,{contour:()=>AN,geojson:()=>CN,geopath:()=>ON,geopoint:()=>PN,geoshape:()=>IN,graticule:()=>LN,heatmap:()=>FN,isocontour:()=>yN,kde2d:()=>EN,projection:()=>BN});var l={};n.r(l);n.d(l,{force:()=>_R});var u={};n.r(u);n.d(u,{nest:()=>uO,pack:()=>yO,partition:()=>_O,stratify:()=>xO,tree:()=>kO,treelinks:()=>MO,treemap:()=>TO});var c={};n.r(c);n.d(c,{label:()=>dU});var f={};n.r(f);n.d(f,{loess:()=>mU,regression:()=>vU});var h={};n.r(h);n.d(h,{voronoi:()=>kq});var d={};n.r(d);n.d(d,{wordcloud:()=>Fq});var p={};n.r(p);n.d(p,{crossfilter:()=>Qq,resolvefilter:()=>tL});var m=n(48823);var g={},y={},v=34,_=10,x=13;function b(t){return new Function("d","return {"+t.map((function(t,e){return JSON.stringify(t)+": d["+e+'] || ""'})).join(",")+"}")}function w(t,e){var n=b(t);return function(i,r){return e(n(i),r,t)}}function k(t){var e=Object.create(null),n=[];t.forEach((function(t){for(var i in t){if(!(i in e)){n.push(e[i]=i)}}}));return n}function M(t,e){var n=t+"",i=n.length;return i9999?"+"+M(t,6):M(t,4)}function E(t){var e=t.getUTCHours(),n=t.getUTCMinutes(),i=t.getUTCSeconds(),r=t.getUTCMilliseconds();return isNaN(t)?"Invalid Date":S(t.getUTCFullYear(),4)+"-"+M(t.getUTCMonth()+1,2)+"-"+M(t.getUTCDate(),2)+(r?"T"+M(e,2)+":"+M(n,2)+":"+M(i,2)+"."+M(r,3)+"Z":i?"T"+M(e,2)+":"+M(n,2)+":"+M(i,2)+"Z":n||e?"T"+M(e,2)+":"+M(n,2)+"Z":"")}function T(t){var e=new RegExp('["'+t+"\n\r]"),n=t.charCodeAt(0);function i(t,e){var n,i,o=r(t,(function(t,r){if(n)return n(t,r-1);i=t,n=e?w(t,e):b(t)}));o.columns=i||[];return o}function r(t,e){var i=[],r=t.length,o=0,s=0,a,l=r<=0,u=false;if(t.charCodeAt(r-1)===_)--r;if(t.charCodeAt(r-1)===x)--r;function c(){if(l)return y;if(u)return u=false,g;var e,i=o,s;if(t.charCodeAt(i)===v){while(o++=r)l=true;else if((s=t.charCodeAt(o++))===_)u=true;else if(s===x){u=true;if(t.charCodeAt(o)===_)++o}return t.slice(i+1,e-1).replace(/""/g,'"')}while(o1)i=P(t,e,n);else for(r=0,i=new Array(o=t.arcs.length);r=I?10:o>=q?5:o>=L?2:1;let a,l,u;if(r<0){u=Math.pow(10,-r)/s;a=Math.round(t*u);l=Math.round(e*u);if(a/ue)--l;u=-u}else{u=Math.pow(10,r)*s;a=Math.round(t/u);l=Math.round(e/u);if(a*ue)--l}if(l0))return[];if(t===e)return[t];const i=e=r))return[];const a=o-r+1,l=new Array(a);if(i){if(s<0)for(let t=0;t=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function B(t){if(!(e=H.exec(t)))throw new Error("invalid format: "+t);var e;return new Y({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}B.prototype=Y.prototype;function Y(t){this.fill=t.fill===undefined?" ":t.fill+"";this.align=t.align===undefined?">":t.align+"";this.sign=t.sign===undefined?"-":t.sign+"";this.symbol=t.symbol===undefined?"":t.symbol+"";this.zero=!!t.zero;this.width=t.width===undefined?undefined:+t.width;this.comma=!!t.comma;this.precision=t.precision===undefined?undefined:+t.precision;this.trim=!!t.trim;this.type=t.type===undefined?"":t.type+""}Y.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===undefined?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===undefined?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function J(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}function G(t,e){if((n=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var n,i=t.slice(0,n);return[i.length>1?i[0]+i.slice(2):i,+t.slice(n+1)]}function V(t){return t=G(Math.abs(t)),t?t[1]:NaN}function K(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(V(e)/3)))*3-V(Math.abs(t)))}function Z(t,e){t=Math.abs(t),e=Math.abs(e)-t;return Math.max(0,V(e)-V(t))+1}function Q(t){return Math.max(0,-V(Math.abs(t)))}function tt(t,e){return function(n,i){var r=n.length,o=[],s=0,a=t[0],l=0;while(r>0&&a>0){if(l+a+1>i)a=Math.max(1,i-l);o.push(n.substring(r-=a,r+a));if((l+=a+1)>i)break;a=t[s=(s+1)%t.length]}return o.reverse().join(e)}}function et(t){return function(e){return e.replace(/[0-9]/g,(function(e){return t[+e]}))}}function nt(t){t:for(var e=t.length,n=1,i=-1,r;n0)i=0;break}}return i>0?t.slice(0,i)+t.slice(r+1):t}var it;function rt(t,e){var n=G(t,e);if(!n)return t+"";var i=n[0],r=n[1],o=r-(it=Math.max(-8,Math.min(8,Math.floor(r/3)))*3)+1,s=i.length;return o===s?i:o>s?i+new Array(o-s+1).join("0"):o>0?i.slice(0,o)+"."+i.slice(o):"0."+new Array(1-o).join("0")+G(t,Math.max(0,e+o-1))[0]}function ot(t,e){var n=G(t,e);if(!n)return t+"";var i=n[0],r=n[1];return r<0?"0."+new Array(-r).join("0")+i:i.length>r+1?i.slice(0,r+1)+"."+i.slice(r+1):i+new Array(r-i.length+2).join("0")}const st={"%":(t,e)=>(t*100).toFixed(e),b:t=>Math.round(t).toString(2),c:t=>t+"",d:J,e:(t,e)=>t.toExponential(e),f:(t,e)=>t.toFixed(e),g:(t,e)=>t.toPrecision(e),o:t=>Math.round(t).toString(8),p:(t,e)=>ot(t*100,e),r:ot,s:rt,X:t=>Math.round(t).toString(16).toUpperCase(),x:t=>Math.round(t).toString(16)};function at(t){return t}var lt=Array.prototype.map,ut=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function ct(t){var e=t.grouping===undefined||t.thousands===undefined?at:tt(lt.call(t.grouping,Number),t.thousands+""),n=t.currency===undefined?"":t.currency[0]+"",i=t.currency===undefined?"":t.currency[1]+"",r=t.decimal===undefined?".":t.decimal+"",o=t.numerals===undefined?at:et(lt.call(t.numerals,String)),s=t.percent===undefined?"%":t.percent+"",a=t.minus===undefined?"−":t.minus+"",l=t.nan===undefined?"NaN":t.nan+"";function u(t){t=B(t);var u=t.fill,c=t.align,f=t.sign,h=t.symbol,d=t.zero,p=t.width,m=t.comma,g=t.precision,y=t.trim,v=t.type;if(v==="n")m=true,v="g";else if(!st[v])g===undefined&&(g=12),y=true,v="g";if(d||u==="0"&&c==="=")d=true,u="0",c="=";var _=h==="$"?n:h==="#"&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",x=h==="$"?i:/[%p]/.test(v)?s:"";var b=st[v],w=/[defgprs%]/.test(v);g=g===undefined?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,g)):Math.max(0,Math.min(20,g));function k(t){var n=_,i=x,s,h,k;if(v==="c"){i=b(t)+i;t=""}else{t=+t;var M=t<0||1/t<0;t=isNaN(t)?l:b(Math.abs(t),g);if(y)t=nt(t);if(M&&+t===0&&f!=="+")M=false;n=(M?f==="("?f:a:f==="-"||f==="("?"":f)+n;i=(v==="s"?ut[8+it/3]:"")+i+(M&&f==="("?")":"");if(w){s=-1,h=t.length;while(++sk||k>57){i=(k===46?r+t.slice(s+1):t.slice(s))+i;t=t.slice(0,s);break}}}}if(m&&!d)t=e(t,Infinity);var S=n.length+t.length+i.length,E=S>1)+n+t+i+E.slice(S);break;default:t=E+n+t+i;break}return o(t)}k.toString=function(){return t+""};return k}function c(t,e){var n=u((t=B(t),t.type="f",t)),i=Math.max(-8,Math.min(8,Math.floor(V(e)/3)))*3,r=Math.pow(10,-i),o=ut[8+i/3];return function(t){return n(r*t)+o}}return{format:u,formatPrefix:c}}var ft;var ht;var dt;pt({thousands:",",grouping:[3],currency:["$",""]});function pt(t){ft=ct(t);ht=ft.format;dt=ft.formatPrefix;return ft}const mt=new Date,gt=new Date;function yt(t,e,n,i){function r(e){return t(e=arguments.length===0?new Date:new Date(+e)),e}r.floor=e=>(t(e=new Date(+e)),e);r.ceil=n=>(t(n=new Date(n-1)),e(n,1),t(n),n);r.round=t=>{const e=r(t),n=r.ceil(t);return t-e(e(t=new Date(+t),n==null?1:Math.floor(n)),t);r.range=(n,i,o)=>{const s=[];n=r.ceil(n);o=o==null?1:Math.floor(o);if(!(n0))return s;let a;do{s.push(a=new Date(+n)),e(n,o),t(n)}while(ayt((e=>{if(e>=e)while(t(e),!n(e))e.setTime(e-1)}),((t,i)=>{if(t>=t){if(i<0)while(++i<=0){while(e(t,-1),!n(t)){}}else while(--i>=0){while(e(t,+1),!n(t)){}}}}));if(n){r.count=(e,i)=>{mt.setTime(+e),gt.setTime(+i);t(mt),t(gt);return Math.floor(n(mt,gt))};r.every=t=>{t=Math.floor(t);return!isFinite(t)||!(t>0)?null:!(t>1)?r:r.filter(i?e=>i(e)%t===0:e=>r.count(0,e)%t===0)}}return r}const vt=1e3;const _t=vt*60;const xt=_t*60;const bt=xt*24;const wt=bt*7;const kt=bt*30;const Mt=bt*365;const St=yt((t=>t.setHours(0,0,0,0)),((t,e)=>t.setDate(t.getDate()+e)),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*_t)/bt),(t=>t.getDate()-1));const Et=St.range;const Tt=yt((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/bt),(t=>t.getUTCDate()-1));const $t=Tt.range;const Dt=yt((t=>{t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e)}),((t,e)=>(e-t)/bt),(t=>Math.floor(t/bt)));const At=Dt.range;function Nt(t){return yt((e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7);e.setHours(0,0,0,0)}),((t,e)=>{t.setDate(t.getDate()+e*7)}),((t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*_t)/wt))}const zt=Nt(0);const Rt=Nt(1);const Ct=Nt(2);const Ot=Nt(3);const Ut=Nt(4);const Pt=Nt(5);const It=Nt(6);const qt=zt.range;const Lt=Rt.range;const Ft=Ct.range;const jt=Ot.range;const Wt=Ut.range;const Xt=Pt.range;const Ht=It.range;function Bt(t){return yt((e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7);e.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCDate(t.getUTCDate()+e*7)}),((t,e)=>(e-t)/wt))}const Yt=Bt(0);const Jt=Bt(1);const Gt=Bt(2);const Vt=Bt(3);const Kt=Bt(4);const Zt=Bt(5);const Qt=Bt(6);const te=Yt.range;const ee=Jt.range;const ne=Gt.range;const ie=Vt.range;const re=Kt.range;const oe=Zt.range;const se=Qt.range;const ae=yt((t=>{t.setMonth(0,1);t.setHours(0,0,0,0)}),((t,e)=>{t.setFullYear(t.getFullYear()+e)}),((t,e)=>e.getFullYear()-t.getFullYear()),(t=>t.getFullYear()));ae.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:yt((e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t);e.setMonth(0,1);e.setHours(0,0,0,0)}),((e,n)=>{e.setFullYear(e.getFullYear()+n*t)}));const le=ae.range;const ue=yt((t=>{t.setUTCMonth(0,1);t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)}),((t,e)=>e.getUTCFullYear()-t.getUTCFullYear()),(t=>t.getUTCFullYear()));ue.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:yt((e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t);e.setUTCMonth(0,1);e.setUTCHours(0,0,0,0)}),((e,n)=>{e.setUTCFullYear(e.getUTCFullYear()+n*t)}));const ce=ue.range;const fe=yt((t=>{t.setDate(1);t.setHours(0,0,0,0)}),((t,e)=>{t.setMonth(t.getMonth()+e)}),((t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12),(t=>t.getMonth()));const he=fe.range;const de=yt((t=>{t.setUTCDate(1);t.setUTCHours(0,0,0,0)}),((t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)}),((t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12),(t=>t.getUTCMonth()));const pe=de.range;const me=yt((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*vt-t.getMinutes()*_t)}),((t,e)=>{t.setTime(+t+e*xt)}),((t,e)=>(e-t)/xt),(t=>t.getHours()));const ge=me.range;const ye=yt((t=>{t.setUTCMinutes(0,0,0)}),((t,e)=>{t.setTime(+t+e*xt)}),((t,e)=>(e-t)/xt),(t=>t.getUTCHours()));const ve=ye.range;const _e=yt((t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*vt)}),((t,e)=>{t.setTime(+t+e*_t)}),((t,e)=>(e-t)/_t),(t=>t.getMinutes()));const xe=_e.range;const be=yt((t=>{t.setUTCSeconds(0,0)}),((t,e)=>{t.setTime(+t+e*_t)}),((t,e)=>(e-t)/_t),(t=>t.getUTCMinutes()));const we=be.range;const ke=yt((t=>{t.setTime(t-t.getMilliseconds())}),((t,e)=>{t.setTime(+t+e*vt)}),((t,e)=>(e-t)/vt),(t=>t.getUTCSeconds()));const Me=ke.range;const Se=yt((()=>{}),((t,e)=>{t.setTime(+t+e)}),((t,e)=>e-t));Se.every=t=>{t=Math.floor(t);if(!isFinite(t)||!(t>0))return null;if(!(t>1))return Se;return yt((e=>{e.setTime(Math.floor(e/t)*t)}),((e,n)=>{e.setTime(+e+n*t)}),((e,n)=>(n-e)/t))};const Ee=Se.range;function Te(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}function $e(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}function De(t){let e,n,i;if(t.length!==2){e=Te;n=(e,n)=>Te(t(e),n);i=(e,n)=>t(e)-n}else{e=t===Te||t===$e?t:Ae;n=t;i=t}function r(t,i,r=0,o=t.length){if(r>>1;if(n(t[e],i)<0)r=e+1;else o=e}while(r>>1;if(n(t[e],i)<=0)r=e+1;else o=e}while(rn&&i(t[s-1],e)>-i(t[s],e)?s-1:s}return{left:r,center:s,right:o}}function Ae(){return 0}const Ne="year";const ze="quarter";const Re="month";const Ce="week";const Oe="date";const Ue="day";const Pe="dayofyear";const Ie="hours";const qe="minutes";const Le="seconds";const Fe="milliseconds";const je=[Ne,ze,Re,Ce,Oe,Ue,Pe,Ie,qe,Le,Fe];const We=je.reduce(((t,e,n)=>(t[e]=1+n,t)),{});function Xe(t){const e=(0,m.IX)(t).slice(),n={};if(!e.length)(0,m.vU)("Missing time unit.");e.forEach((t=>{if((0,m.nr)(We,t)){n[t]=1}else{(0,m.vU)(`Invalid time unit: ${t}.`)}}));const i=(n[Ce]||n[Ue]?1:0)+(n[ze]||n[Re]||n[Oe]?1:0)+(n[Pe]?1:0);if(i>1){(0,m.vU)(`Incompatible time units: ${t}`)}e.sort(((t,e)=>We[t]-We[e]));return e}const He={[Ne]:"%Y ",[ze]:"Q%q ",[Re]:"%b ",[Oe]:"%d ",[Ce]:"W%U ",[Ue]:"%a ",[Pe]:"%j ",[Ie]:"%H:00",[qe]:"00:%M",[Le]:":%S",[Fe]:".%L",[`${Ne}-${Re}`]:"%Y-%m ",[`${Ne}-${Re}-${Oe}`]:"%Y-%m-%d ",[`${Ie}-${qe}`]:"%H:%M"};function Be(t,e){const n=(0,m.l7)({},He,e),i=Xe(t),r=i.length;let o="",s=0,a,l;for(s=0;ss;--a){l=i.slice(s,a).join("-");if(n[l]!=null){o+=n[l];s=a;break}}}return o.trim()}const Ye=new Date;function Je(t){Ye.setFullYear(t);Ye.setMonth(0);Ye.setDate(1);Ye.setHours(0,0,0,0);return Ye}function Ge(t){return Ke(new Date(t))}function Ve(t){return Ze(new Date(t))}function Ke(t){return St.count(Je(t.getFullYear())-1,t)}function Ze(t){return zt.count(Je(t.getFullYear())-1,t)}function Qe(t){return Je(t).getDay()}function tn(t,e,n,i,r,o,s){if(0<=t&&t<100){const a=new Date(-1,e,n,i,r,o,s);a.setFullYear(t);return a}return new Date(t,e,n,i,r,o,s)}function en(t){return rn(new Date(t))}function nn(t){return on(new Date(t))}function rn(t){const e=Date.UTC(t.getUTCFullYear(),0,1);return Tt.count(e-1,t)}function on(t){const e=Date.UTC(t.getUTCFullYear(),0,1);return Yt.count(e-1,t)}function sn(t){Ye.setTime(Date.UTC(t,0,1));return Ye.getUTCDay()}function an(t,e,n,i,r,o,s){if(0<=t&&t<100){const t=new Date(Date.UTC(-1,e,n,i,r,o,s));t.setUTCFullYear(n.y);return t}return new Date(Date.UTC(t,e,n,i,r,o,s))}function ln(t,e,n,i,r){const o=e||1,s=(0,m.fj)(t),a=(t,e,r)=>{r=r||t;return un(n[r],i[r],t===s&&o,e)};const l=new Date,u=(0,m.Rg)(t),c=u[Ne]?a(Ne):(0,m.a9)(2012),f=u[Re]?a(Re):u[ze]?a(ze):m.bM,h=u[Ce]&&u[Ue]?a(Ue,1,Ce+Ue):u[Ce]?a(Ce,1):u[Ue]?a(Ue,1):u[Oe]?a(Oe,1):u[Pe]?a(Pe,1):m.kX,d=u[Ie]?a(Ie):m.bM,p=u[qe]?a(qe):m.bM,g=u[Le]?a(Le):m.bM,y=u[Fe]?a(Fe):m.bM;return function(t){l.setTime(+t);const e=c(l);return r(e,f(l),h(l,e),d(l),p(l),g(l),y(l))}}function un(t,e,n,i){const r=n<=1?t:i?(e,r)=>i+n*Math.floor((t(e,r)-i)/n):(e,i)=>n*Math.floor(t(e,i)/n);return e?(t,n)=>e(r(t,n),n):r}function cn(t,e,n){return e+t*7-(n+6)%7}const fn={[Ne]:t=>t.getFullYear(),[ze]:t=>Math.floor(t.getMonth()/3),[Re]:t=>t.getMonth(),[Oe]:t=>t.getDate(),[Ie]:t=>t.getHours(),[qe]:t=>t.getMinutes(),[Le]:t=>t.getSeconds(),[Fe]:t=>t.getMilliseconds(),[Pe]:t=>Ke(t),[Ce]:t=>Ze(t),[Ce+Ue]:(t,e)=>cn(Ze(t),t.getDay(),Qe(e)),[Ue]:(t,e)=>cn(1,t.getDay(),Qe(e))};const hn={[ze]:t=>3*t,[Ce]:(t,e)=>cn(t,0,Qe(e))};function dn(t,e){return ln(t,e||1,fn,hn,tn)}const pn={[Ne]:t=>t.getUTCFullYear(),[ze]:t=>Math.floor(t.getUTCMonth()/3),[Re]:t=>t.getUTCMonth(),[Oe]:t=>t.getUTCDate(),[Ie]:t=>t.getUTCHours(),[qe]:t=>t.getUTCMinutes(),[Le]:t=>t.getUTCSeconds(),[Fe]:t=>t.getUTCMilliseconds(),[Pe]:t=>rn(t),[Ce]:t=>on(t),[Ue]:(t,e)=>cn(1,t.getUTCDay(),sn(e)),[Ce+Ue]:(t,e)=>cn(on(t),t.getUTCDay(),sn(e))};const mn={[ze]:t=>3*t,[Ce]:(t,e)=>cn(t,0,sn(e))};function gn(t,e){return ln(t,e||1,pn,mn,an)}const yn={[Ne]:ae,[ze]:fe.every(3),[Re]:fe,[Ce]:zt,[Oe]:St,[Ue]:St,[Pe]:St,[Ie]:me,[qe]:_e,[Le]:ke,[Fe]:Se};const vn={[Ne]:ue,[ze]:de.every(3),[Re]:de,[Ce]:Yt,[Oe]:Tt,[Ue]:Tt,[Pe]:Tt,[Ie]:ye,[qe]:be,[Le]:ke,[Fe]:Se};function _n(t){return yn[t]}function xn(t){return vn[t]}function bn(t,e,n){return t?t.offset(e,n):undefined}function wn(t,e,n){return bn(_n(t),e,n)}function kn(t,e,n){return bn(xn(t),e,n)}function Mn(t,e,n,i){return t?t.range(e,n,i):undefined}function Sn(t,e,n,i){return Mn(_n(t),e,n,i)}function En(t,e,n,i){return Mn(xn(t),e,n,i)}const Tn=1e3,$n=Tn*60,Dn=$n*60,An=Dn*24,Nn=An*7,zn=An*30,Rn=An*365;const Cn=[Ne,Re,Oe,Ie,qe,Le,Fe],On=Cn.slice(0,-1),Un=On.slice(0,-1),Pn=Un.slice(0,-1),In=Pn.slice(0,-1),qn=[Ne,Ce],Ln=[Ne,Re],Fn=[Ne];const jn=[[On,1,Tn],[On,5,5*Tn],[On,15,15*Tn],[On,30,30*Tn],[Un,1,$n],[Un,5,5*$n],[Un,15,15*$n],[Un,30,30*$n],[Pn,1,Dn],[Pn,3,3*Dn],[Pn,6,6*Dn],[Pn,12,12*Dn],[In,1,An],[qn,1,Nn],[Ln,1,zn],[Ln,3,3*zn],[Fn,1,Rn]];function Wn(t){const e=t.extent,n=t.maxbins||40,i=Math.abs((0,m.yP)(e))/n;let r=De((t=>t[2])).right(jn,i),o,s;if(r===jn.length){o=Fn,s=X(e[0]/Rn,e[1]/Rn,n)}else if(r){r=jn[i/jn[r-1][2]53)return null;if(!("w"in i))i.w=1;if("Z"in i){o=Hn(Bn(i.y,0,1)),s=o.getUTCDay();o=s>4||s===0?Jt.ceil(o):Jt(o);o=Tt.offset(o,(i.V-1)*7);i.y=o.getUTCFullYear();i.m=o.getUTCMonth();i.d=o.getUTCDate()+(i.w+6)%7}else{o=Xn(Bn(i.y,0,1)),s=o.getDay();o=s>4||s===0?Rt.ceil(o):Rt(o);o=St.offset(o,(i.V-1)*7);i.y=o.getFullYear();i.m=o.getMonth();i.d=o.getDate()+(i.w+6)%7}}else if("W"in i||"U"in i){if(!("w"in i))i.w="u"in i?i.u%7:"W"in i?1:0;s="Z"in i?Hn(Bn(i.y,0,1)).getUTCDay():Xn(Bn(i.y,0,1)).getDay();i.m=0;i.d="W"in i?(i.w+6)%7+i.W*7-(s+5)%7:i.w+i.U*7-(s+6)%7}if("Z"in i){i.H+=i.Z/100|0;i.M+=i.Z%100;return Hn(i)}return Xn(i)}}function M(t,e,n,i){var r=0,o=e.length,s=n.length,a,l;while(r=s)return-1;a=e.charCodeAt(r++);if(a===37){a=e.charAt(r++);l=b[a in Jn?e.charAt(r++):a];if(!l||(i=l(t,n,i))<0)return-1}else if(a!=n.charCodeAt(i++)){return-1}}return i}function S(t,e,n){var i=u.exec(e.slice(n));return i?(t.p=c.get(i[0].toLowerCase()),n+i[0].length):-1}function E(t,e,n){var i=d.exec(e.slice(n));return i?(t.w=p.get(i[0].toLowerCase()),n+i[0].length):-1}function T(t,e,n){var i=f.exec(e.slice(n));return i?(t.w=h.get(i[0].toLowerCase()),n+i[0].length):-1}function $(t,e,n){var i=y.exec(e.slice(n));return i?(t.m=v.get(i[0].toLowerCase()),n+i[0].length):-1}function D(t,e,n){var i=m.exec(e.slice(n));return i?(t.m=g.get(i[0].toLowerCase()),n+i[0].length):-1}function A(t,n,i){return M(t,e,n,i)}function N(t,e,i){return M(t,n,e,i)}function z(t,e,n){return M(t,i,e,n)}function R(t){return s[t.getDay()]}function C(t){return o[t.getDay()]}function O(t){return l[t.getMonth()]}function U(t){return a[t.getMonth()]}function P(t){return r[+(t.getHours()>=12)]}function I(t){return 1+~~(t.getMonth()/3)}function q(t){return s[t.getUTCDay()]}function L(t){return o[t.getUTCDay()]}function F(t){return l[t.getUTCMonth()]}function j(t){return a[t.getUTCMonth()]}function W(t){return r[+(t.getUTCHours()>=12)]}function X(t){return 1+~~(t.getUTCMonth()/3)}return{format:function(t){var e=w(t+="",_);e.toString=function(){return t};return e},parse:function(t){var e=k(t+="",false);e.toString=function(){return t};return e},utcFormat:function(t){var e=w(t+="",x);e.toString=function(){return t};return e},utcParse:function(t){var e=k(t+="",true);e.toString=function(){return t};return e}}}var Jn={"-":"",_:" ",0:"0"},Gn=/^\s*\d+/,Vn=/^%/,Kn=/[\\^$*+?|[\]().{}]/g;function Zn(t,e,n){var i=t<0?"-":"",r=(i?-t:t)+"",o=r.length;return i+(o[t.toLowerCase(),e])))}function ni(t,e,n){var i=Gn.exec(e.slice(n,n+1));return i?(t.w=+i[0],n+i[0].length):-1}function ii(t,e,n){var i=Gn.exec(e.slice(n,n+1));return i?(t.u=+i[0],n+i[0].length):-1}function ri(t,e,n){var i=Gn.exec(e.slice(n,n+2));return i?(t.U=+i[0],n+i[0].length):-1}function oi(t,e,n){var i=Gn.exec(e.slice(n,n+2));return i?(t.V=+i[0],n+i[0].length):-1}function si(t,e,n){var i=Gn.exec(e.slice(n,n+2));return i?(t.W=+i[0],n+i[0].length):-1}function ai(t,e,n){var i=Gn.exec(e.slice(n,n+4));return i?(t.y=+i[0],n+i[0].length):-1}function li(t,e,n){var i=Gn.exec(e.slice(n,n+2));return i?(t.y=+i[0]+(+i[0]>68?1900:2e3),n+i[0].length):-1}function ui(t,e,n){var i=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(n,n+6));return i?(t.Z=i[1]?0:-(i[2]+(i[3]||"00")),n+i[0].length):-1}function ci(t,e,n){var i=Gn.exec(e.slice(n,n+1));return i?(t.q=i[0]*3-3,n+i[0].length):-1}function fi(t,e,n){var i=Gn.exec(e.slice(n,n+2));return i?(t.m=i[0]-1,n+i[0].length):-1}function hi(t,e,n){var i=Gn.exec(e.slice(n,n+2));return i?(t.d=+i[0],n+i[0].length):-1}function di(t,e,n){var i=Gn.exec(e.slice(n,n+3));return i?(t.m=0,t.d=+i[0],n+i[0].length):-1}function pi(t,e,n){var i=Gn.exec(e.slice(n,n+2));return i?(t.H=+i[0],n+i[0].length):-1}function mi(t,e,n){var i=Gn.exec(e.slice(n,n+2));return i?(t.M=+i[0],n+i[0].length):-1}function gi(t,e,n){var i=Gn.exec(e.slice(n,n+2));return i?(t.S=+i[0],n+i[0].length):-1}function yi(t,e,n){var i=Gn.exec(e.slice(n,n+3));return i?(t.L=+i[0],n+i[0].length):-1}function vi(t,e,n){var i=Gn.exec(e.slice(n,n+6));return i?(t.L=Math.floor(i[0]/1e3),n+i[0].length):-1}function _i(t,e,n){var i=Vn.exec(e.slice(n,n+1));return i?n+i[0].length:-1}function xi(t,e,n){var i=Gn.exec(e.slice(n));return i?(t.Q=+i[0],n+i[0].length):-1}function bi(t,e,n){var i=Gn.exec(e.slice(n));return i?(t.s=+i[0],n+i[0].length):-1}function wi(t,e){return Zn(t.getDate(),e,2)}function ki(t,e){return Zn(t.getHours(),e,2)}function Mi(t,e){return Zn(t.getHours()%12||12,e,2)}function Si(t,e){return Zn(1+St.count(ae(t),t),e,3)}function Ei(t,e){return Zn(t.getMilliseconds(),e,3)}function Ti(t,e){return Ei(t,e)+"000"}function $i(t,e){return Zn(t.getMonth()+1,e,2)}function Di(t,e){return Zn(t.getMinutes(),e,2)}function Ai(t,e){return Zn(t.getSeconds(),e,2)}function Ni(t){var e=t.getDay();return e===0?7:e}function zi(t,e){return Zn(zt.count(ae(t)-1,t),e,2)}function Ri(t){var e=t.getDay();return e>=4||e===0?Ut(t):Ut.ceil(t)}function Ci(t,e){t=Ri(t);return Zn(Ut.count(ae(t),t)+(ae(t).getDay()===4),e,2)}function Oi(t){return t.getDay()}function Ui(t,e){return Zn(Rt.count(ae(t)-1,t),e,2)}function Pi(t,e){return Zn(t.getFullYear()%100,e,2)}function Ii(t,e){t=Ri(t);return Zn(t.getFullYear()%100,e,2)}function qi(t,e){return Zn(t.getFullYear()%1e4,e,4)}function Li(t,e){var n=t.getDay();t=n>=4||n===0?Ut(t):Ut.ceil(t);return Zn(t.getFullYear()%1e4,e,4)}function Fi(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+Zn(e/60|0,"0",2)+Zn(e%60,"0",2)}function ji(t,e){return Zn(t.getUTCDate(),e,2)}function Wi(t,e){return Zn(t.getUTCHours(),e,2)}function Xi(t,e){return Zn(t.getUTCHours()%12||12,e,2)}function Hi(t,e){return Zn(1+Tt.count(ue(t),t),e,3)}function Bi(t,e){return Zn(t.getUTCMilliseconds(),e,3)}function Yi(t,e){return Bi(t,e)+"000"}function Ji(t,e){return Zn(t.getUTCMonth()+1,e,2)}function Gi(t,e){return Zn(t.getUTCMinutes(),e,2)}function Vi(t,e){return Zn(t.getUTCSeconds(),e,2)}function Ki(t){var e=t.getUTCDay();return e===0?7:e}function Zi(t,e){return Zn(Yt.count(ue(t)-1,t),e,2)}function Qi(t){var e=t.getUTCDay();return e>=4||e===0?Kt(t):Kt.ceil(t)}function tr(t,e){t=Qi(t);return Zn(Kt.count(ue(t),t)+(ue(t).getUTCDay()===4),e,2)}function er(t){return t.getUTCDay()}function nr(t,e){return Zn(Jt.count(ue(t)-1,t),e,2)}function ir(t,e){return Zn(t.getUTCFullYear()%100,e,2)}function rr(t,e){t=Qi(t);return Zn(t.getUTCFullYear()%100,e,2)}function or(t,e){return Zn(t.getUTCFullYear()%1e4,e,4)}function sr(t,e){var n=t.getUTCDay();t=n>=4||n===0?Kt(t):Kt.ceil(t);return Zn(t.getUTCFullYear()%1e4,e,4)}function ar(){return"+0000"}function lr(){return"%"}function ur(t){return+t}function cr(t){return Math.floor(+t/1e3)}var fr;var hr;var dr;var pr;var mr;gr({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function gr(t){fr=Yn(t);hr=fr.format;dr=fr.parse;pr=fr.utcFormat;mr=fr.utcParse;return fr}function yr(t){const e={};return n=>e[n]||(e[n]=t(n))}function vr(t,e){return n=>{const i=t(n),r=i.indexOf(e);if(r<0)return i;let o=_r(i,r);const s=or)if(i[o]!=="0"){++o;break}return i.slice(0,o)+s}}function _r(t,e){let n=t.lastIndexOf("e"),i;if(n>0)return n;for(n=t.length;--n>e;){i=t.charCodeAt(n);if(i>=48&&i<=57)return n+1}}function xr(t){const e=yr(t.format),n=t.formatPrefix;return{format:e,formatPrefix:n,formatFloat(t){const n=B(t||",");if(n.precision==null){n.precision=12;switch(n.type){case"%":n.precision-=2;break;case"e":n.precision-=1;break}return vr(e(n),e(".1f")(1)[1])}else{return e(n)}},formatSpan(t,i,r,o){o=B(o==null?",f":o);const s=X(t,i,r),a=Math.max(Math.abs(t),Math.abs(i));let l;if(o.precision==null){switch(o.type){case"s":{if(!isNaN(l=K(s,a))){o.precision=l}return n(o,a)}case"":case"e":case"g":case"p":case"r":{if(!isNaN(l=Z(s,a))){o.precision=l-(o.type==="e")}break}case"f":case"%":{if(!isNaN(l=Q(s))){o.precision=l-(o.type==="%")*2}break}}}return e(o)}}}let br;wr();function wr(){return br=xr({format:ht,formatPrefix:dt})}function kr(t){return xr(ct(t))}function Mr(t){return arguments.length?br=kr(t):br}function Sr(t,e,n){n=n||{};if(!(0,m.Kn)(n)){(0,m.vU)(`Invalid time multi-format specifier: ${n}`)}const i=e(Le),r=e(qe),o=e(Ie),s=e(Oe),a=e(Ce),l=e(Re),u=e(ze),c=e(Ne),f=t(n[Fe]||".%L"),h=t(n[Le]||":%S"),d=t(n[qe]||"%I:%M"),p=t(n[Ie]||"%I %p"),g=t(n[Oe]||n[Ue]||"%a %d"),y=t(n[Ce]||"%b %d"),v=t(n[Re]||"%B"),_=t(n[ze]||"%B"),x=t(n[Ne]||"%Y");return t=>(i(t)(0,m.HD)(t)?e(t):Sr(e,_n,t),utcFormat:t=>(0,m.HD)(t)?n(t):Sr(n,xn,t),timeParse:yr(t.parse),utcParse:yr(t.utcParse)}}let Tr;$r();function $r(){return Tr=Er({format:hr,parse:dr,utcFormat:pr,utcParse:mr})}function Dr(t){return Er(Yn(t))}function Ar(t){return arguments.length?Tr=Dr(t):Tr}const Nr=(t,e)=>(0,m.l7)({},t,e);function zr(t,e){const n=t?kr(t):Mr();const i=e?Dr(e):Ar();return Nr(n,i)}function Rr(t,e){const n=arguments.length;if(n&&n!==2){(0,m.vU)("defaultLocale expects either zero or two arguments.")}return n?Nr(Mr(t),Ar(e)):Nr(Mr(),Ar())}function Cr(){wr();$r();return Rr()}const Or=/^(data:|([A-Za-z]+:)?\/\/)/;const Ur=/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp|file|data):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i;const Pr=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g;const Ir="file://";function qr(t,e){return n=>({options:n||{},sanitize:Fr,load:Lr,fileAccess:!!e,file:jr(e),http:Xr(t)})}async function Lr(t,e){const n=await this.sanitize(t,e),i=n.href;return n.localFile?this.file(i):this.http(i,e)}async function Fr(t,e){e=(0,m.l7)({},this.options,e);const n=this.fileAccess,i={href:null};let r,o,s;const a=Ur.test(t.replace(Pr,""));if(t==null||typeof t!=="string"||!a){(0,m.vU)("Sanitize failure, invalid URI: "+(0,m.m8)(t))}const l=Or.test(t);if((s=e.baseURL)&&!l){if(!t.startsWith("/")&&!s.endsWith("/")){t="/"+t}t=s+t}o=(r=t.startsWith(Ir))||e.mode==="file"||e.mode!=="http"&&!l&&n;if(r){t=t.slice(Ir.length)}else if(t.startsWith("//")){if(e.defaultProtocol==="file"){t=t.slice(2);o=true}else{t=(e.defaultProtocol||"http")+":"+t}}Object.defineProperty(i,"localFile",{value:!!o});i.href=t;if(e.target){i.target=e.target+""}if(e.rel){i.rel=e.rel+""}if(e.context==="image"&&e.crossOrigin){i.crossOrigin=e.crossOrigin+""}return i}function jr(t){return t?e=>new Promise(((n,i)=>{t.readFile(e,((t,e)=>{if(t)i(t);else n(e)}))})):Wr}async function Wr(){(0,m.vU)("No file system access.")}function Xr(t){return t?async function(e,n){const i=(0,m.l7)({},this.options.http,n),r=n&&n.response,o=await t(e,i);return!o.ok?(0,m.vU)(o.status+""+o.statusText):(0,m.mf)(o[r])?o[r]():o.text()}:Hr}async function Hr(){(0,m.vU)("No HTTP fetch method available.")}const Br=t=>t!=null&&t===t;const Yr=t=>t==="true"||t==="false"||t===true||t===false;const Jr=t=>!Number.isNaN(Date.parse(t));const Gr=t=>!Number.isNaN(+t)&&!(t instanceof Date);const Vr=t=>Gr(t)&&Number.isInteger(+t);const Kr={boolean:m.sw,integer:m.He,number:m.He,date:m.ZU,string:m.BB,unknown:m.yR};const Zr=[Yr,Vr,Gr,Jr];const Qr=["boolean","integer","number","date"];function to(t,e){if(!t||!t.length)return"unknown";const n=t.length,i=Zr.length,r=Zr.map(((t,e)=>e+1));for(let o=0,s=0,a,l;ot===0?e:t),0)-1]}function eo(t,e){return e.reduce(((e,n)=>{e[n]=to(t,n);return e}),{})}function no(t){const e=function(e,n){const i={delimiter:t};return io(e,n?(0,m.l7)(n,i):i)};e.responseType="text";return e}function io(t,e){if(e.header){t=e.header.map(m.m8).join(e.delimiter)+"\n"+t}return T(e.delimiter).parse(t+"")}io.responseType="text";function ro(t){return typeof Buffer==="function"&&(0,m.mf)(Buffer.isBuffer)?Buffer.isBuffer(t):false}function oo(t,e){const n=e&&e.property?(0,m.EP)(e.property):m.yR;return(0,m.Kn)(t)&&!ro(t)?so(n(t),e):n(JSON.parse(t))}oo.responseType="json";function so(t,e){if(!(0,m.kJ)(t)&&(0,m.TW)(t)){t=[...t]}return e&&e.copy?JSON.parse(JSON.stringify(t)):t}const ao={interior:(t,e)=>t!==e,exterior:(t,e)=>t===e};function lo(t,e){let n,i,r,o;t=oo(t,e);if(e&&e.feature){n=N;r=e.feature}else if(e&&e.mesh){n=O;r=e.mesh;o=ao[e.filter]}else{(0,m.vU)("Missing TopoJSON feature or mesh parameter.")}i=(i=t.objects[r])?n(t,i,o):(0,m.vU)("Invalid TopoJSON object: "+r);return i&&i.features||[i]}lo.responseType="json";const uo={dsv:io,csv:no(","),tsv:no("\t"),json:oo,topojson:lo};function co(t,e){if(arguments.length>1){uo[t]=e;return this}else{return(0,m.nr)(uo,t)?uo[t]:null}}function fo(t){const e=co(t);return e&&e.responseType||"text"}function ho(t,e,n,i){e=e||{};const r=co(e.type||"json");if(!r)(0,m.vU)("Unknown data format type: "+e.type);t=r(t,e);if(e.parse)po(t,e.parse,n,i);if((0,m.nr)(t,"columns"))delete t.columns;return t}function po(t,e,n,i){if(!t.length)return;const r=Ar();n=n||r.timeParse;i=i||r.utcParse;let o=t.columns||Object.keys(t[0]),s,a,l,u,c,f;if(e==="auto")e=eo(t,o);o=Object.keys(e);const h=o.map((t=>{const r=e[t];let o,s;if(r&&(r.startsWith("date:")||r.startsWith("utc:"))){o=r.split(/:(.+)?/,2);s=o[1];if(s[0]==="'"&&s[s.length-1]==="'"||s[0]==='"'&&s[s.length-1]==='"'){s=s.slice(1,-1)}const t=o[0]==="utc"?i:n;return t(s)}if(!Kr[r]){throw Error("Illegal format pattern: "+t+":"+r)}return Kr[r]}));for(l=0,c=t.length,f=o.length;l{const r=e(t);if(!i[r]){i[r]=1;n.push(t)}return n};n.remove=t=>{const r=e(t);if(i[r]){i[r]=0;const e=n.indexOf(t);if(e>=0)n.splice(e,1)}return n};return n}async function yo(t,e){try{await e(t)}catch(n){t.error(n)}}const vo=Symbol("vega_id");let _o=1;function xo(t){return!!(t&&bo(t))}function bo(t){return t[vo]}function wo(t,e){t[vo]=e;return t}function ko(t){const e=t===Object(t)?t:{data:t};return bo(e)?e:wo(e,_o++)}function Mo(t){return So(t,ko({}))}function So(t,e){for(const n in t)e[n]=t[n];return e}function Eo(t,e){return wo(e,bo(t))}function To(t,e){return!t?null:e?(n,i)=>t(n,i)||bo(e(n))-bo(e(i)):(e,n)=>t(e,n)||bo(e)-bo(n)}function $o(t){return t&&t.constructor===Do}function Do(){const t=[],e=[],n=[],i=[],r=[];let o=null,s=false;return{constructor:Do,insert(e){const n=(0,m.IX)(e),i=n.length;for(let r=0;r{if(p(t))u[bo(t)]=-1}))}for(f=0,h=t.length;f0){y(m,p,d.value);a.modifies(p)}}for(f=0,h=r.length;f{if(p(t)&&u[bo(t)]>0){y(t,d.field,d.value)}}));a.modifies(d.field)}if(s){a.mod=e.length||i.length?l.filter((t=>u[bo(t)]>0)):l.slice()}else{for(g in c)a.mod.push(c[g])}if(o||o==null&&(e.length||i.length)){a.clean(true)}return a}}}const Ao="_:mod:_";function No(){Object.defineProperty(this,Ao,{writable:true,value:{}})}No.prototype={set(t,e,n,i){const r=this,o=r[t],s=r[Ao];if(e!=null&&e>=0){if(o[e]!==n||i){o[e]=n;s[e+":"+t]=-1;s[t]=-1}}else if(o!==n||i){r[t]=n;s[t]=(0,m.kJ)(n)?1+n.length:-1}return r},modified(t,e){const n=this[Ao];if(!arguments.length){for(const t in n){if(n[t])return true}return false}else if((0,m.kJ)(t)){for(let e=0;e=0?e+1{if(s instanceof Po){if(s!==this){if(e)s.targets().add(this);o.push(s)}r.push({op:s,name:t,index:n})}else{i.set(t,n,s)}};for(s in t){a=t[s];if(s===Ro){(0,m.IX)(a).forEach((t=>{if(!(t instanceof Po)){(0,m.vU)("Pulse parameters must be operator instances.")}else if(t!==this){t.targets().add(this);o.push(t)}}));this.source=a}else if((0,m.kJ)(a)){i.set(s,-1,Array(l=a.length));for(u=0;u{const n=Date.now();if(n-e>t){e=n;return 1}else{return 0}}))},debounce(t){const e=Wo();this.targets().add(Wo(null,null,(0,m.Ds)(t,(t=>{const n=t.dataflow;e.receive(t);if(n&&n.run)n.run()}))));return e},between(t,e){let n=false;t.targets().add(Wo(null,null,(()=>n=true)));e.targets().add(Wo(null,null,(()=>n=false)));return this.filter((()=>n))},detach(){this._filter=m.yb;this._targets=null}};function Xo(t,e,n,i){const r=this,o=Wo(n,i),s=function(t){t.dataflow=r;try{o.receive(t)}catch(e){r.error(e)}finally{r.run()}};let a;if(typeof t==="string"&&typeof document!=="undefined"){a=document.querySelectorAll(t)}else{a=(0,m.IX)(t)}const l=a.length;for(let u=0;ue=t));n.requests=0;n.done=()=>{if(--n.requests===0){t._pending=null;e(t)}};return t._pending=n}const Vo={skip:true};function Ko(t,e,n,i,r){const o=t instanceof Po?Qo:Zo;o(this,t,e,n,i,r);return this}function Zo(t,e,n,i,r,o){const s=(0,m.l7)({},o,Vo);let a,l;if(!(0,m.mf)(n))n=(0,m.a9)(n);if(i===undefined){a=e=>t.touch(n(e))}else if((0,m.mf)(i)){l=new Po(null,i,r,false);a=e=>{l.evaluate(e);const i=n(e),r=l.value;$o(r)?t.pulse(i,r,o):t.update(i,r,s)}}else{a=e=>t.update(n(e),i,s)}e.apply(a)}function Qo(t,e,n,i,r,o){if(i===undefined){e.targets().add(n)}else{const s=o||{},a=new Po(null,ts(n,i),r,false);a.modified(s.force);a.rank=e.rank;e.targets().add(a);if(n){a.skip(true);a.value=n.value;a.targets().add(n);t.connect(n,[a])}}}function ts(t,e){e=(0,m.mf)(e)?e:(0,m.a9)(e);return t?function(n,i){const r=e(n,i);if(!t.skip()){t.skip(r!==this.value).value=r}return r}:e}function es(t){t.rank=++this._rank}function ns(t){const e=[t];let n,i,r;while(e.length){this.rank(n=e.pop());if(i=n._targets){for(r=i.length;--r>=0;){e.push(n=i[r]);if(n===t)(0,m.vU)("Cycle detected in dataflow graph.")}}}}const is={};const rs=1<<0,os=1<<1,ss=1<<2,as=rs|os,ls=rs|ss,us=rs|os|ss,cs=1<<3,fs=1<<4,hs=1<<5,ds=1<<6;function ps(t,e,n){this.dataflow=t;this.stamp=e==null?-1:e;this.add=[];this.rem=[];this.mod=[];this.fields=null;this.encode=n||null}function ms(t,e){const n=[];(0,m.FP)(t,e,(t=>n.push(t)));return n}function gs(t,e){const n={};t.visit(e,(t=>{n[bo(t)]=1}));return t=>n[bo(t)]?null:t}function ys(t,e){return t?(n,i)=>t(n,i)&&e(n,i):e}ps.prototype={StopPropagation:is,ADD:rs,REM:os,MOD:ss,ADD_REM:as,ADD_MOD:ls,ALL:us,REFLOW:cs,SOURCE:fs,NO_SOURCE:hs,NO_FIELDS:ds,fork(t){return new ps(this.dataflow).init(this,t)},clone(){const t=this.fork(us);t.add=t.add.slice();t.rem=t.rem.slice();t.mod=t.mod.slice();if(t.source)t.source=t.source.slice();return t.materialize(us|fs)},addAll(){let t=this;const e=!t.source||t.add===t.rem||!t.rem.length&&t.source.length===t.add.length;if(e){return t}else{t=new ps(this.dataflow).init(this);t.add=t.source;t.rem=[];return t}},init(t,e){const n=this;n.stamp=t.stamp;n.encode=t.encode;if(t.fields&&!(e&ds)){n.fields=t.fields}if(e&rs){n.addF=t.addF;n.add=t.add}else{n.addF=null;n.add=[]}if(e&os){n.remF=t.remF;n.rem=t.rem}else{n.remF=null;n.rem=[]}if(e&ss){n.modF=t.modF;n.mod=t.mod}else{n.modF=null;n.mod=[]}if(e&hs){n.srcF=null;n.source=null}else{n.srcF=t.srcF;n.source=t.source;if(t.cleans)n.cleans=t.cleans}return n},runAfter(t){this.dataflow.runAfter(t)},changed(t){const e=t||us;return e&rs&&this.add.length||e&os&&this.rem.length||e&ss&&this.mod.length},reflow(t){if(t)return this.fork(us).reflow();const e=this.add.length,n=this.source&&this.source.length;if(n&&n!==e){this.mod=this.source;if(e)this.filter(ss,gs(this,rs))}return this},clean(t){if(arguments.length){this.cleans=!!t;return this}else{return this.cleans}},modifies(t){const e=this.fields||(this.fields={});if((0,m.kJ)(t)){t.forEach((t=>e[t]=true))}else{e[t]=true}return this},modified(t,e){const n=this.fields;return!((e||this.mod.length)&&n)?false:!arguments.length?!!n:(0,m.kJ)(t)?t.some((t=>n[t])):n[t]},filter(t,e){const n=this;if(t&rs)n.addF=ys(n.addF,e);if(t&os)n.remF=ys(n.remF,e);if(t&ss)n.modF=ys(n.modF,e);if(t&fs)n.srcF=ys(n.srcF,e);return n},materialize(t){t=t||us;const e=this;if(t&rs&&e.addF){e.add=ms(e.add,e.addF);e.addF=null}if(t&os&&e.remF){e.rem=ms(e.rem,e.remF);e.remF=null}if(t&ss&&e.modF){e.mod=ms(e.mod,e.modF);e.modF=null}if(t&fs&&e.srcF){e.source=e.source.filter(e.srcF);e.srcF=null}return e},visit(t,e){const n=this,i=e;if(t&fs){(0,m.FP)(n.source,n.srcF,i);return n}if(t&rs)(0,m.FP)(n.add,n.addF,i);if(t&os)(0,m.FP)(n.rem,n.remF,i);if(t&ss)(0,m.FP)(n.mod,n.modF,i);const r=n.source;if(t&cs&&r){const t=n.add.length+n.mod.length;if(t===r.length);else if(t){(0,m.FP)(r,gs(n,ls),i)}else{(0,m.FP)(r,n.srcF,i)}}return n}};function vs(t,e,n,i){const r=this;let o=0;this.dataflow=t;this.stamp=e;this.fields=null;this.encode=i||null;this.pulses=n;for(const s of n){if(s.stamp!==e)continue;if(s.fields){const t=r.fields||(r.fields={});for(const e in s.fields){t[e]=1}}if(s.changed(r.ADD))o|=r.ADD;if(s.changed(r.REM))o|=r.REM;if(s.changed(r.MOD))o|=r.MOD}this.changes=o}(0,m.XW)(vs,ps,{fork(t){const e=new ps(this.dataflow).init(this,t&this.NO_FIELDS);if(t!==undefined){if(t&e.ADD)this.visit(e.ADD,(t=>e.add.push(t)));if(t&e.REM)this.visit(e.REM,(t=>e.rem.push(t)));if(t&e.MOD)this.visit(e.MOD,(t=>e.mod.push(t)))}return e},changed(t){return this.changes&t},modified(t){const e=this,n=e.fields;return!(n&&e.changes&e.MOD)?0:(0,m.kJ)(t)?t.some((t=>n[t])):n[t]},filter(){(0,m.vU)("MultiPulse does not support filtering.")},materialize(){(0,m.vU)("MultiPulse does not support materialization.")},visit(t,e){const n=this,i=n.pulses,r=i.length;let o=0;if(t&n.SOURCE){for(;oi._enqueue(t,true)));i._touched=go(m.id);let s=0,a,l,u;try{while(i._heap.size()>0){a=i._heap.pop();if(a.rank!==a.qrank){i._enqueue(a,true);continue}l=a.run(i._getPulse(a,t));if(l.then){l=await l}else if(l.async){r.push(l.async);l=is}if(l!==is){if(a._targets)a._targets.forEach((t=>i._enqueue(t)))}++s}}catch(c){i._heap.clear();u=c}i._input={};i._pulse=null;i.debug(`Pulse ${o}: ${s} operators`);if(u){i._postrun=[];i.error(u)}if(i._postrun.length){const t=i._postrun.sort(((t,e)=>e.priority-t.priority));i._postrun=[];for(let e=0;ei.runAsync(null,(()=>{t.forEach((t=>{try{t(i)}catch(c){i.error(c)}}))}))))}return i}async function xs(t,e,n){while(this._running)await this._running;const i=()=>this._running=null;(this._running=this.evaluate(t,e,n)).then(i,i);return this._running}function bs(t,e,n){return this._pulse?ks(this):(this.evaluate(t,e,n),this)}function ws(t,e,n){if(this._pulse||e){this._postrun.push({priority:n||0,callback:t})}else{try{t(this)}catch(i){this.error(i)}}}function ks(t){t.error("Dataflow already running. Use runAsync() to chain invocations.");return t}function Ms(t,e){const n=t.stampt.pulse)),e):this._input[t.id]||Es(this._pulse,n&&n.pulse)}function Es(t,e){if(e&&e.stamp===t.stamp){return e}t=t.fork();if(e&&e!==is){t.source=e.source}return t}const Ts={skip:false,force:false};function $s(t,e){const n=e||Ts;if(this._pulse){this._enqueue(t)}else{this._touched.add(t)}if(n.skip)t.skip(true);return this}function Ds(t,e,n){const i=n||Ts;if(t.set(e)||i.force){this.touch(t,i)}return this}function As(t,e,n){this.touch(t,n||Ts);const i=new ps(this,this._clock+(this._pulse?0:1)),r=t.pulse&&t.pulse.source||[];i.target=t;this._input[t.id]=e.pulse(i,r);return this}function Ns(t){let e=[];return{clear:()=>e=[],size:()=>e.length,peek:()=>e[0],push:n=>{e.push(n);return zs(e,0,e.length-1,t)},pop:()=>{const n=e.pop();let i;if(e.length){i=e[0];e[0]=n;Rs(e,0,t)}else{i=n}return i}}}function zs(t,e,n,i){let r,o;const s=t[n];while(n>e){o=n-1>>1;r=t[o];if(i(s,r)<0){t[n]=r;n=o;continue}break}return t[n]=s}function Rs(t,e,n){const i=e,r=t.length,o=t[e];let s=(e<<1)+1,a;while(s=0){s=a}t[e]=t[s];e=s;s=(e<<1)+1}t[e]=o;return zs(t,i,e,n)}function Cs(){this.logger((0,m.kg)());this.logLevel(m.jj);this._clock=0;this._rank=0;this._locale=Rr();try{this._loader=mo()}catch(t){}this._touched=go(m.id);this._input={};this._pulse=null;this._heap=Ns(((t,e)=>t.qrank-e.qrank));this._postrun=[]}function Os(t){return function(){return this._log[t].apply(this,arguments)}}Cs.prototype={stamp(){return this._clock},loader(t){if(arguments.length){this._loader=t;return this}else{return this._loader}},locale(t){if(arguments.length){this._locale=t;return this}else{return this._locale}},logger(t){if(arguments.length){this._log=t;return this}else{return this._log}},error:Os("error"),warn:Os("warn"),info:Os("info"),debug:Os("debug"),logLevel:Os("level"),cleanThreshold:1e4,add:qo,connect:Lo,rank:es,rerank:ns,pulse:As,touch:$s,update:Ds,changeset:Do,ingest:Bo,parse:Ho,preload:Jo,request:Yo,events:Xo,on:Ko,evaluate:_s,run:bs,runAsync:xs,runAfter:ws,_enqueue:Ms,_getPulse:Ss};function Us(t,e){Po.call(this,t,null,e)}(0,m.XW)(Us,Po,{run(t){if(t.stampthis.pulse=t))}else if(e!==t.StopPropagation){this.pulse=e}return e},evaluate(t){const e=this.marshall(t.stamp),n=this.transform(e,t);e.clear();return n},transform(){}});const Ps={};function Is(t){const e=qs(t);return e&&e.Definition||null}function qs(t){t=t&&t.toLowerCase();return(0,m.nr)(Ps,t)?Ps[t]:null}function Ls(t,e){let n;if(e===undefined){for(const e of t){if(e!=null&&(n=e)){n=e}}}else{let i=-1;for(let r of t){if((r=e(r,++i,t))!=null&&(n=r)){n=r}}}return n}function Fs(t,e){let n;if(e===undefined){for(const e of t){if(e!=null&&(n>e||n===undefined&&e>=e)){n=e}}}else{let i=-1;for(let r of t){if((r=e(r,++i,t))!=null&&(n>r||n===undefined&&r>=r)){n=r}}}return n}function js(t,...e){if(typeof t[Symbol.iterator]!=="function")throw new TypeError("values is not iterable");t=Array.from(t);let[n]=e;if(n&&n.length!==2||e.length>1){const i=Uint32Array.from(t,((t,e)=>e));if(e.length>1){e=e.map((e=>t.map(e)));i.sort(((t,n)=>{for(const i of e){const e=Xs(i[t],i[n]);if(e)return e}}))}else{n=t.map(n);i.sort(((t,e)=>Xs(n[t],n[e])))}return permute(t,i)}return t.sort(Ws(n))}function Ws(t=Te){if(t===Te)return Xs;if(typeof t!=="function")throw new TypeError("compare is not a function");return(e,n)=>{const i=t(e,n);if(i||i===0)return i;return(t(n,n)===0)-(t(e,e)===0)}}function Xs(t,e){return(t==null||!(t>=t))-(e==null||!(e>=e))||(te?1:0)}function Hs(t,e,n=0,i=Infinity,r){e=Math.floor(e);n=Math.floor(Math.max(0,n));i=Math.floor(Math.min(t.length-1,i));if(!(n<=e&&e<=i))return t;r=r===undefined?Xs:Ws(r);while(i>n){if(i-n>600){const o=i-n+1;const s=e-n+1;const a=Math.log(o);const l=.5*Math.exp(2*a/3);const u=.5*Math.sqrt(a*l*(o-l)/o)*(s-o/2<0?-1:1);const c=Math.max(n,Math.floor(e-s*l/o+u));const f=Math.min(i,Math.floor(e+(o-s)*l/o+u));Hs(t,e,c,f,r)}const o=t[e];let s=n;let a=i;Bs(t,n,e);if(r(t[i],o)>0)Bs(t,n,i);while(s0)--a}if(r(t[n],o)===0)Bs(t,n,a);else++a,Bs(t,a,i);if(a<=e)n=a+1;if(e<=a)i=a-1}return t}function Bs(t,e,n){const i=t[e];t[e]=t[n];t[n]=i}function Ys(t){return t===null?NaN:+t}function*Js(t,e){if(e===undefined){for(let e of t){if(e!=null&&(e=+e)>=e){yield e}}}else{let n=-1;for(let i of t){if((i=e(i,++n,t))!=null&&(i=+i)>=i){yield i}}}}function Gs(t,e,n){t=Float64Array.from(Js(t,n));if(!(i=t.length)||isNaN(e=+e))return;if(e<=0||i<2)return Fs(t);if(e>=1)return Ls(t);var i,r=(i-1)*e,o=Math.floor(r),s=Ls(Hs(t,o).subarray(0,o+1)),a=Fs(t.subarray(o+1));return s+(a-s)*(r-o)}function Vs(t,e,n=Ys){if(!(i=t.length)||isNaN(e=+e))return;if(e<=0||i<2)return+n(t[0],0,t);if(e>=1)return+n(t[i-1],i-1,t);var i,r=(i-1)*e,o=Math.floor(r),s=+n(t[o],o,t),a=+n(t[o+1],o+1,t);return s+(a-s)*(r-o)}function Ks(t,e,n){t=Float64Array.from(numbers(t,n));if(!(i=t.length)||isNaN(e=+e))return;if(e<=0||i<2)return minIndex(t);if(e>=1)return maxIndex(t);var i,r=Math.floor((i-1)*e),o=(e,n)=>ascendingDefined(t[e],t[n]),s=quickselect(Uint32Array.from(t,((t,e)=>e)),r,0,i-1,o);return greatest(s.subarray(0,r+1),(e=>t[e]))}function Zs(t,e){let n=0;let i;let r=0;let o=0;if(e===undefined){for(let e of t){if(e!=null&&(e=+e)>=e){i=e-r;r+=i/++n;o+=i*(e-r)}}}else{let s=-1;for(let a of t){if((a=e(a,++s,t))!=null&&(a=+a)>=a){i=a-r;r+=i/++n;o+=i*(a-r)}}}if(n>1)return o/(n-1)}function Qs(t,e){const n=Zs(t,e);return n?Math.sqrt(n):n}function ta(t,e){return Gs(t,.5,e)}function ea(t,e){return quantileIndex(t,.5,e)}function*na(t,e){if(e==null){for(let e of t){if(e!=null&&e!==""&&(e=+e)>=e){yield e}}}else{let n=-1;for(let i of t){i=e(i,++n,t);if(i!=null&&i!==""&&(i=+i)>=i){yield i}}}}function ia(t,e,n){const i=Float64Array.from(na(t,n));i.sort(Te);return e.map((t=>Vs(i,t)))}function ra(t,e){return ia(t,[.25,.5,.75],e)}function oa(t,e){const n=t.length,i=Qs(t,e),r=ra(t,e),o=(r[2]-r[0])/1.34,s=Math.min(i,o)||i||Math.abs(r[0])||1;return 1.06*s*Math.pow(n,-.2)}function sa(t){const e=t.maxbins||20,n=t.base||10,i=Math.log(n),r=t.divide||[5,2];let o=t.extent[0],s=t.extent[1],a,l,u,c,f,h;const d=t.span||s-o||Math.abs(o)||1;if(t.step){a=t.step}else if(t.steps){c=d/e;for(f=0,h=t.steps.length;fe){a*=n}for(f=0,h=r.length;f=u&&d/c<=e)a=c}}c=Math.log(a);const p=c>=0?0:~~(-c/i)+1,m=Math.pow(n,-p-1);if(t.nice||t.nice===undefined){c=Math.floor(o/a+m)*a;o=ot);const r=t.length,o=new Float64Array(r);let s=0,a=1,l=i(t[0]),u=l,c=l+e,f;for(;a=c){u=(l+u)/2;for(;s>1);while(sr)t[s--]=t[i]}i=r;r=o}return t}function ha(t){return function(){t=(1103515245*t+12345)%2147483647;return t/2147483647}}function da(t,e){if(e==null){e=t;t=0}let n,i,r;const o={min(t){if(arguments.length){n=t||0;r=i-n;return o}else{return n}},max(t){if(arguments.length){i=t||0;r=i-n;return o}else{return i}},sample(){return n+Math.floor(r*aa())},pdf(t){return t===Math.floor(t)&&t>=n&&t=i?1:(e-n+1)/r},icdf(t){return t>=0&&t<=1?n-1+Math.floor(t*r):NaN}};return o.min(t).max(e)}const pa=Math.sqrt(2*Math.PI);const ma=Math.SQRT2;let ga=NaN;function ya(t,e){t=t||0;e=e==null?1:e;let n=0,i=0,r,o;if(ga===ga){n=ga;ga=NaN}else{do{n=aa()*2-1;i=aa()*2-1;r=n*n+i*i}while(r===0||r>1);o=Math.sqrt(-2*Math.log(r)/r);n*=o;ga=i*o}return t+n*e}function va(t,e,n){n=n==null?1:n;const i=(t-(e||0))/n;return Math.exp(-.5*i*i)/(n*pa)}function _a(t,e,n){e=e||0;n=n==null?1:n;const i=(t-e)/n,r=Math.abs(i);let o;if(r>37){o=0}else{const t=Math.exp(-r*r/2);let e;if(r<7.07106781186547){e=.0352624965998911*r+.700383064443688;e=e*r+6.37396220353165;e=e*r+33.912866078383;e=e*r+112.079291497871;e=e*r+221.213596169931;e=e*r+220.206867912376;o=t*e;e=.0883883476483184*r+1.75566716318264;e=e*r+16.064177579207;e=e*r+86.7807322029461;e=e*r+296.564248779674;e=e*r+637.333633378831;e=e*r+793.826512519948;e=e*r+440.413735824752;o=o/e}else{e=r+.65;e=r+4/e;e=r+3/e;e=r+2/e;e=r+1/e;o=t/e/2.506628274631}}return i>0?1-o:o}function xa(t,e,n){if(t<0||t>1)return NaN;return(e||0)+(n==null?1:n)*ma*ba(2*t-1)}function ba(t){let e=-Math.log((1-t)*(1+t)),n;if(e<6.25){e-=3.125;n=-364441206401782e-35;n=-16850591381820166e-35+n*e;n=128584807152564e-32+n*e;n=11157877678025181e-33+n*e;n=-1333171662854621e-31+n*e;n=20972767875968562e-33+n*e;n=6637638134358324e-30+n*e;n=-4054566272975207e-29+n*e;n=-8151934197605472e-29+n*e;n=26335093153082323e-28+n*e;n=-12975133253453532e-27+n*e;n=-5415412054294628e-26+n*e;n=1.0512122733215323e-9+n*e;n=-4.112633980346984e-9+n*e;n=-2.9070369957882005e-8+n*e;n=4.2347877827932404e-7+n*e;n=-13654692000834679e-22+n*e;n=-13882523362786469e-21+n*e;n=.00018673420803405714+n*e;n=-.000740702534166267+n*e;n=-.006033670871430149+n*e;n=.24015818242558962+n*e;n=1.6536545626831027+n*e}else if(e<16){e=Math.sqrt(e)-3.25;n=2.2137376921775787e-9;n=9.075656193888539e-8+n*e;n=-2.7517406297064545e-7+n*e;n=1.8239629214389228e-8+n*e;n=15027403968909828e-22+n*e;n=-4013867526981546e-21+n*e;n=29234449089955446e-22+n*e;n=12475304481671779e-21+n*e;n=-47318229009055734e-21+n*e;n=6828485145957318e-20+n*e;n=24031110387097894e-21+n*e;n=-.0003550375203628475+n*e;n=.0009532893797373805+n*e;n=-.0016882755560235047+n*e;n=.002491442096107851+n*e;n=-.003751208507569241+n*e;n=.005370914553590064+n*e;n=1.0052589676941592+n*e;n=3.0838856104922208+n*e}else if(Number.isFinite(e)){e=Math.sqrt(e)-5;n=-27109920616438573e-27;n=-2.555641816996525e-10+n*e;n=1.5076572693500548e-9+n*e;n=-3.789465440126737e-9+n*e;n=7.61570120807834e-9+n*e;n=-1.496002662714924e-8+n*e;n=2.914795345090108e-8+n*e;n=-6.771199775845234e-8+n*e;n=2.2900482228026655e-7+n*e;n=-9.9298272942317e-7+n*e;n=4526062597223154e-21+n*e;n=-1968177810553167e-20+n*e;n=7599527703001776e-20+n*e;n=-.00021503011930044477+n*e;n=-.00013871931833623122+n*e;n=1.0103004648645344+n*e;n=4.849906401408584+n*e}else{n=Infinity}return n*t}function wa(t,e){let n,i;const r={mean(t){if(arguments.length){n=t||0;return r}else{return n}},stdev(t){if(arguments.length){i=t==null?1:t;return r}else{return i}},sample:()=>ya(n,i),pdf:t=>va(t,n,i),cdf:t=>_a(t,n,i),icdf:t=>xa(t,n,i)};return r.mean(t).stdev(e)}function ka(t,e){const n=wa();let i=0;const r={data(n){if(arguments.length){t=n;i=n?n.length:0;return r.bandwidth(e)}else{return t}},bandwidth(n){if(!arguments.length)return e;e=n;if(!e&&t)e=oa(t);return r},sample(){return t[~~(aa()*i)]+e*n.sample()},pdf(r){let o=0,s=0;for(;sMa(n,i),pdf:t=>Sa(t,n,i),cdf:t=>Ea(t,n,i),icdf:t=>Ta(t,n,i)};return r.mean(t).stdev(e)}function Da(t,e){let n=0,i;function r(t){const e=[];let i=0,r;for(r=0;r=e&&t<=n?1/(n-e):0}function za(t,e,n){if(n==null){n=e==null?1:e;e=0}return tn?1:(t-e)/(n-e)}function Ra(t,e,n){if(n==null){n=e==null?1:e;e=0}return t>=0&&t<=1?e+t*(n-e):NaN}function Ca(t,e){let n,i;const r={min(t){if(arguments.length){n=t||0;return r}else{return n}},max(t){if(arguments.length){i=t==null?1:t;return r}else{return i}},sample:()=>Aa(n,i),pdf:t=>Na(t,n,i),cdf:t=>za(t,n,i),icdf:t=>Ra(t,n,i)};if(e==null){e=t==null?1:t;t=0}return r.min(t).max(e)}function Oa(t,e,n,i){const r=i-t*t,o=Math.abs(r)<1e-24?0:(n-t*e)/r,s=e-o*t;return[s,o]}function Ua(t,e,n,i){t=t.filter((t=>{let i=e(t),r=n(t);return i!=null&&(i=+i)>=i&&r!=null&&(r=+r)>=r}));if(i){t.sort(((t,n)=>e(t)-e(n)))}const r=t.length,o=new Float64Array(r),s=new Float64Array(r);let a=0,l=0,u=0,c,f,h;for(h of t){o[a]=c=+e(h);s[a]=f=+n(h);++a;l+=(c-l)/a;u+=(f-u)/a}for(a=0;a=o&&s!=null&&(s=+s)>=s){i(o,s,++r)}}}function Ia(t,e,n,i,r){let o=0,s=0;Pa(t,e,n,((t,e)=>{const n=e-r(t),a=e-i;o+=n*n;s+=a*a}));return 1-o/s}function qa(t,e,n){let i=0,r=0,o=0,s=0,a=0;Pa(t,e,n,((t,e)=>{++a;i+=(t-i)/a;r+=(e-r)/a;o+=(t*e-o)/a;s+=(t*t-s)/a}));const l=Oa(i,r,o,s),u=t=>l[0]+l[1]*t;return{coef:l,predict:u,rSquared:Ia(t,e,n,r,u)}}function La(t,e,n){let i=0,r=0,o=0,s=0,a=0;Pa(t,e,n,((t,e)=>{++a;t=Math.log(t);i+=(t-i)/a;r+=(e-r)/a;o+=(t*e-o)/a;s+=(t*t-s)/a}));const l=Oa(i,r,o,s),u=t=>l[0]+l[1]*Math.log(t);return{coef:l,predict:u,rSquared:Ia(t,e,n,r,u)}}function Fa(t,e,n){const[i,r,o,s]=Ua(t,e,n);let a=0,l=0,u=0,c=0,f=0,h,d,p;Pa(t,e,n,((t,e)=>{h=i[f++];d=Math.log(e);p=h*e;a+=(e*d-a)/f;l+=(p-l)/f;u+=(p*d-u)/f;c+=(h*p-c)/f}));const[m,g]=Oa(l/s,a/s,u/s,c/s),y=t=>Math.exp(m+g*(t-o));return{coef:[Math.exp(m-g*o),g],predict:y,rSquared:Ia(t,e,n,s,y)}}function ja(t,e,n){let i=0,r=0,o=0,s=0,a=0,l=0;Pa(t,e,n,((t,e)=>{const n=Math.log(t),u=Math.log(e);++l;i+=(n-i)/l;r+=(u-r)/l;o+=(n*u-o)/l;s+=(n*n-s)/l;a+=(e-a)/l}));const u=Oa(i,r,o,s),c=t=>u[0]*Math.pow(t,u[1]);u[0]=Math.exp(u[0]);return{coef:u,predict:c,rSquared:Ia(t,e,n,a,c)}}function Wa(t,e,n){const[i,r,o,s]=Ua(t,e,n),a=i.length;let l=0,u=0,c=0,f=0,h=0,d,p,m,g;for(d=0;d{t=t-o;return _*t*t+x*t+b+s};return{coef:[b-x*o+_*o*o+s,x-2*_*o,_],predict:w,rSquared:Ia(t,e,n,s,w)}}function Xa(t,e,n,i){if(i===1)return qa(t,e,n);if(i===2)return Wa(t,e,n);const[r,o,s,a]=Ua(t,e,n),l=r.length,u=[],c=[],f=i+1;let h,d,p,m,g;for(h=0;h{t-=s;let e=a+y[0]+y[1]*t+y[2]*t*t;for(h=3;h=0;--o){a=e[o];l=1;r[o]+=a;for(s=1;s<=o;++s){l*=(o+1-s)/s;r[o-s]+=a*Math.pow(n,s)*l}}r[0]+=i;return r}function Ba(t){const e=t.length-1,n=[];let i,r,o,s,a;for(i=0;iMath.abs(t[i][s])){s=r}}for(o=i;o=i;o--){t[o][r]-=t[o][i]*t[i][r]/t[i][i]}}}for(r=e-1;r>=0;--r){a=0;for(o=r+1;or[s]-e?i:s;let l=0,u=0,d=0,p=0,m=0;const g=1/Math.abs(r[a]-e||1);for(let t=i;t<=s;++t){const n=r[t],i=o[t],s=Va(Math.abs(e-n)*g)*h[t],a=n*s;l+=s;u+=a;d+=i*s;p+=i*a;m+=n*a}const[y,v]=Oa(u/l,d/l,p/l,m/l);c[n]=y+v*e;f[n]=Math.abs(o[n]-c[n]);Ka(r,n+1,t)}if(d===Ya){break}const e=ta(f);if(Math.abs(e)=1?Ja:(r=1-i*i)*r}}return Za(r,c,s,a)}function Va(t){return(t=1-t*t*t)*t*t}function Ka(t,e,n){const i=t[e];let r=n[0],o=n[1]+1;if(o>=t.length)return;while(e>r&&t[o]-i<=i-t[r]){n[0]=++r;n[1]=o;++o}}function Za(t,e,n,i){const r=t.length,o=[];let s=0,a=0,l=[],u;for(;s[e,t(e)],o=e[0],s=e[1],a=s-o,l=a/i,u=[r(o)],c=[];if(n===i){for(let t=1;t0;){c.push(r(o+t/n*a))}}let f=u[0];let h=c[c.length-1];const d=1/a;const p=el(f[1],c);while(h){const t=r((f[0]+h[0])/2);const e=t[0]-f[0]>=l;if(e&&nl(f,t,h,d,p)>Qa){c.push(t)}else{f=h;u.push(h);c.pop()}h=c[c.length-1]}return u}function el(t,e){let n=t;let i=t;const r=e.length;for(let o=0;oi)i=t}return 1/(i-n)}function nl(t,e,n,i,r){const o=Math.atan2(r*(n[1]-t[1]),i*(n[0]-t[0])),s=Math.atan2(r*(e[1]-t[1]),i*(e[0]-t[0]));return Math.abs(o-s)}function il(t,e){let n=0;let i=0;if(e===undefined){for(let e of t){if(e!=null&&(e=+e)>=e){++n,i+=e}}}else{let r=-1;for(let o of t){if((o=e(o,++r,t))!=null&&(o=+o)>=o){++n,i+=o}}}if(n)return i/n}function rl(t,e,n){t=+t,e=+e,n=(r=arguments.length)<2?(e=t,t=0,1):r<3?1:+n;var i=-1,r=Math.max(0,Math.ceil((e-t)/n))|0,o=new Array(r);while(++i{const n=t.length;let i=1,r=String(t[0](e));for(;i{};const ul={init:ll,add:ll,rem:ll,idx:0};const cl={values:{init:t=>t.cell.store=true,value:t=>t.cell.data.values(),idx:-1},count:{value:t=>t.cell.num},__count__:{value:t=>t.missing+t.valid},missing:{value:t=>t.missing},valid:{value:t=>t.valid},sum:{init:t=>t.sum=0,value:t=>t.sum,add:(t,e)=>t.sum+=+e,rem:(t,e)=>t.sum-=e},product:{init:t=>t.product=1,value:t=>t.valid?t.product:undefined,add:(t,e)=>t.product*=e,rem:(t,e)=>t.product/=e},mean:{init:t=>t.mean=0,value:t=>t.valid?t.mean:undefined,add:(t,e)=>(t.mean_d=e-t.mean,t.mean+=t.mean_d/t.valid),rem:(t,e)=>(t.mean_d=e-t.mean,t.mean-=t.valid?t.mean_d/t.valid:t.mean)},average:{value:t=>t.valid?t.mean:undefined,req:["mean"],idx:1},variance:{init:t=>t.dev=0,value:t=>t.valid>1?t.dev/(t.valid-1):undefined,add:(t,e)=>t.dev+=t.mean_d*(e-t.mean),rem:(t,e)=>t.dev-=t.mean_d*(e-t.mean),req:["mean"],idx:1},variancep:{value:t=>t.valid>1?t.dev/t.valid:undefined,req:["variance"],idx:2},stdev:{value:t=>t.valid>1?Math.sqrt(t.dev/(t.valid-1)):undefined,req:["variance"],idx:2},stdevp:{value:t=>t.valid>1?Math.sqrt(t.dev/t.valid):undefined,req:["variance"],idx:2},stderr:{value:t=>t.valid>1?Math.sqrt(t.dev/(t.valid*(t.valid-1))):undefined,req:["variance"],idx:2},distinct:{value:t=>t.cell.data.distinct(t.get),req:["values"],idx:3},ci0:{value:t=>t.cell.data.ci0(t.get),req:["values"],idx:3},ci1:{value:t=>t.cell.data.ci1(t.get),req:["values"],idx:3},median:{value:t=>t.cell.data.q2(t.get),req:["values"],idx:3},q1:{value:t=>t.cell.data.q1(t.get),req:["values"],idx:3},q3:{value:t=>t.cell.data.q3(t.get),req:["values"],idx:3},min:{init:t=>t.min=undefined,value:t=>t.min=Number.isNaN(t.min)?t.cell.data.min(t.get):t.min,add:(t,e)=>{if(e{if(e<=t.min)t.min=NaN},req:["values"],idx:4},max:{init:t=>t.max=undefined,value:t=>t.max=Number.isNaN(t.max)?t.cell.data.max(t.get):t.max,add:(t,e)=>{if(e>t.max||t.max===undefined)t.max=e},rem:(t,e)=>{if(e>=t.max)t.max=NaN},req:["values"],idx:4},argmin:{init:t=>t.argmin=undefined,value:t=>t.argmin||t.cell.data.argmin(t.get),add:(t,e,n)=>{if(e{if(e<=t.min)t.argmin=undefined},req:["min","values"],idx:3},argmax:{init:t=>t.argmax=undefined,value:t=>t.argmax||t.cell.data.argmax(t.get),add:(t,e,n)=>{if(e>t.max)t.argmax=n},rem:(t,e)=>{if(e>=t.max)t.argmax=undefined},req:["max","values"],idx:3}};const fl=Object.keys(cl).filter((t=>t!=="__count__"));function hl(t,e){return n=>(0,m.l7)({name:t,out:n||t},ul,e)}[...fl,"__count__"].forEach((t=>{cl[t]=hl(t,cl[t])}));function dl(t,e){return cl[t](e)}function pl(t,e){return t.idx-e.idx}function ml(t){const e={};t.forEach((t=>e[t.name]=t));const n=t=>{if(!t.req)return;t.req.forEach((t=>{if(!e[t])n(e[t]=cl[t]())}))};t.forEach(n);return Object.values(e).sort(pl)}function gl(){this.valid=0;this.missing=0;this._ops.forEach((t=>t.init(this)))}function yl(t,e){if(t==null||t===""){++this.missing;return}if(t!==t)return;++this.valid;this._ops.forEach((n=>n.add(this,t,e)))}function vl(t,e){if(t==null||t===""){--this.missing;return}if(t!==t)return;--this.valid;this._ops.forEach((n=>n.rem(this,t,e)))}function _l(t){this._out.forEach((e=>t[e.out]=e.value(this)));return t}function xl(t,e){const n=e||m.yR,i=ml(t),r=t.slice().sort(pl);function o(t){this._ops=i;this._out=r;this.cell=t;this.init()}o.prototype.init=gl;o.prototype.add=yl;o.prototype.rem=vl;o.prototype.set=_l;o.prototype.get=n;o.fields=t.map((t=>t.out));return o}function bl(t){this._key=t?(0,m.EP)(t):bo;this.reset()}const wl=bl.prototype;wl.reset=function(){this._add=[];this._rem=[];this._ext=null;this._get=null;this._q=null};wl.add=function(t){this._add.push(t)};wl.rem=function(t){this._rem.push(t)};wl.values=function(){this._get=null;if(this._rem.length===0)return this._add;const t=this._add,e=this._rem,n=this._key,i=t.length,r=e.length,o=Array(i-r),s={};let a,l,u;for(a=0;a=0){o=t(e[i])+"";if(!(0,m.nr)(n,o)){n[o]=1;++r}}return r};wl.extent=function(t){if(this._get!==t||!this._ext){const e=this.values(),n=(0,m.dI)(e,t);this._ext=[e[n[0]],e[n[1]]];this._get=t}return this._ext};wl.argmin=function(t){return this.extent(t)[0]||{}};wl.argmax=function(t){return this.extent(t)[1]||{}};wl.min=function(t){const e=this.extent(t)[0];return e!=null?t(e):undefined};wl.max=function(t){const e=this.extent(t)[1];return e!=null?t(e):undefined};wl.quartile=function(t){if(this._get!==t||!this._q){this._q=ra(this.values(),t);this._get=t}return this._q};wl.q1=function(t){return this.quartile(t)[0]};wl.q2=function(t){return this.quartile(t)[1]};wl.q3=function(t){return this.quartile(t)[2]};wl.ci=function(t){if(this._get!==t||!this._ci){this._ci=ua(this.values(),1e3,.05,t);this._get=t}return this._ci};wl.ci0=function(t){return this.ci(t)[0]};wl.ci1=function(t){return this.ci(t)[1]};function kl(t){Us.call(this,null,t);this._adds=[];this._mods=[];this._alen=0;this._mlen=0;this._drop=true;this._cross=false;this._dims=[];this._dnames=[];this._measures=[];this._countOnly=false;this._counts=null;this._prev=null;this._inputs=null;this._outputs=null}kl.Definition={type:"Aggregate",metadata:{generates:true,changes:true},params:[{name:"groupby",type:"field",array:true},{name:"ops",type:"enum",array:true,values:fl},{name:"fields",type:"field",null:true,array:true},{name:"as",type:"string",null:true,array:true},{name:"drop",type:"boolean",default:true},{name:"cross",type:"boolean",default:false},{name:"key",type:"field"}]};(0,m.XW)(kl,Us,{transform(t,e){const n=this,i=e.fork(e.NO_SOURCE|e.NO_FIELDS),r=t.modified();n.stamp=i.stamp;if(n.value&&(r||e.modified(n._inputs,true))){n._prev=n.value;n.value=r?n.init(t):{};e.visit(e.SOURCE,(t=>n.add(t)))}else{n.value=n.value||n.init(t);e.visit(e.REM,(t=>n.rem(t)));e.visit(e.ADD,(t=>n.add(t)))}i.modifies(n._outputs);n._drop=t.drop!==false;if(t.cross&&n._dims.length>1){n._drop=false;n.cross()}if(e.clean()&&n._drop){i.clean(true).runAfter((()=>this.clean()))}return n.changes(i)},cross(){const t=this,e=t.value,n=t._dnames,i=n.map((()=>({}))),r=n.length;function o(t){let e,o,s,a;for(e in t){s=t[e].tuple;for(o=0;o{const e=(0,m.el)(t);r(t);n.push(e);return e}));this.cellkey=t.key?t.key:sl(this._dims);this._countOnly=true;this._counts=[];this._measures=[];const o=t.fields||[null],s=t.ops||["count"],a=t.as||[],l=o.length,u={};let c,f,h,d,p,g;if(l!==s.length){(0,m.vU)("Unmatched number of fields and aggregate ops.")}for(g=0;gxl(t,t.field)));return{}},cellkey:sl(),cell(t,e){let n=this.value[t];if(!n){n=this.value[t]=this.newcell(t,e);this._adds[this._alen++]=n}else if(n.num===0&&this._drop&&n.stamp{const e=i(t);t[a]=e;t[l]=e==null?null:r+o*(1+(e-r)/o)}:t=>t[a]=i(t));return e.modifies(n?s:a)},_bins(t){if(this.value&&!t.modified()){return this.value}const e=t.field,n=sa(t),i=n.step;let r=n.start,o=r+Math.ceil((n.stop-r)/i)*i,s,a;if((s=t.anchor)!=null){a=s-(r+i*Math.floor((s-r)/i));r+=a;o+=a}const l=function(t){let n=(0,m.He)(e(t));return n==null?null:no?+Infinity:(n=Math.max(r,Math.min(n,o-i)),r+i*Math.floor(Ml+(n-r)/i))};l.start=r;l.stop=n.stop;l.step=i;return this.value=(0,m.ZE)(l,(0,m.Oj)(e),t.name||"bin_"+(0,m.el)(e))}});function El(t,e,n){const i=t;let r=e||[],o=n||[],s={},a=0;return{add:t=>o.push(t),remove:t=>s[i(t)]=++a,size:()=>r.length,data:(t,e)=>{if(a){r=r.filter((t=>!s[i(t)]));s={};a=0}if(e&&t){r.sort(t)}if(o.length){r=t?(0,m.TS)(t,r,o.sort(t)):r.concat(o);o=[]}return r}}}function Tl(t){Us.call(this,[],t)}Tl.Definition={type:"Collect",metadata:{source:true},params:[{name:"sort",type:"compare"}]};(0,m.XW)(Tl,Us,{transform(t,e){const n=e.fork(e.ALL),i=El(bo,this.value,n.materialize(n.ADD).add),r=t.sort,o=e.changed()||r&&(t.modified("sort")||e.modified(r.fields));n.visit(n.REM,i.remove);this.modified(o);this.value=n.source=i.data(To(r),o);if(e.source&&e.source.root){this.value.root=e.source.root}return n}});function $l(t){Po.call(this,null,Dl,t)}(0,m.XW)($l,Po);function Dl(t){return this.value&&!t.modified()?this.value:(0,m.qu)(t.fields,t.orders)}function Al(t){Us.call(this,null,t)}Al.Definition={type:"CountPattern",metadata:{generates:true,changes:true},params:[{name:"field",type:"field",required:true},{name:"case",type:"enum",values:["upper","lower","mixed"],default:"mixed"},{name:"pattern",type:"string",default:'[\\w"]+'},{name:"stopwords",type:"string",default:""},{name:"as",type:"string",array:true,length:2,default:["text","count"]}]};function Nl(t,e,n){switch(e){case"upper":t=t.toUpperCase();break;case"lower":t=t.toLowerCase();break}return t.match(n)}(0,m.XW)(Al,Us,{transform(t,e){const n=e=>n=>{var i=Nl(a(n),t.case,o)||[],r;for(var l=0,u=i.length;lr[t]=1+(r[t]||0))),c=n((t=>r[t]-=1));if(i){e.visit(e.SOURCE,u)}else{e.visit(e.ADD,u);e.visit(e.REM,c)}return this._finish(e,l)},_parameterCheck(t,e){let n=false;if(t.modified("stopwords")||!this._stop){this._stop=new RegExp("^"+(t.stopwords||"")+"$","i");n=true}if(t.modified("pattern")||!this._match){this._match=new RegExp(t.pattern||"[\\w']+","g");n=true}if(t.modified("field")||e.modified(t.field.fields)){n=true}if(n)this._counts={};return n},_finish(t,e){const n=this._counts,i=this._tuples||(this._tuples={}),r=e[0],o=e[1],s=t.fork(t.NO_SOURCE|t.NO_FIELDS);let a,l,u;for(a in n){l=i[a];u=n[a]||0;if(!l&&u){i[a]=l=ko({});l[r]=a;l[o]=u;s.add.push(l)}else if(u===0){if(l)s.rem.push(l);n[a]=null;i[a]=null}else if(l[o]!==u){l[o]=u;s.mod.push(l)}}return s.modifies(e)}});function zl(t){Us.call(this,null,t)}zl.Definition={type:"Cross",metadata:{generates:true},params:[{name:"filter",type:"expr"},{name:"as",type:"string",array:true,length:2,default:["a","b"]}]};(0,m.XW)(zl,Us,{transform(t,e){const n=e.fork(e.NO_SOURCE),i=t.as||["a","b"],r=i[0],o=i[1],s=!this.value||e.changed(e.ADD_REM)||t.modified("as")||t.modified("filter");let a=this.value;if(s){if(a)n.rem=a;a=e.materialize(e.SOURCE).source;n.add=this.value=Rl(a,r,o,t.filter||m.yb)}else{n.mod=a}n.source=this.value;return n.modifies(i)}});function Rl(t,e,n,i){var r=[],o={},s=t.length,a=0,l,u;for(;aIl(t,e))))}else if(typeof i[r]===Ul){i[r](t[r])}}return i}function ql(t){Us.call(this,null,t)}const Ll=[{key:{function:"normal"},params:[{name:"mean",type:"number",default:0},{name:"stdev",type:"number",default:1}]},{key:{function:"lognormal"},params:[{name:"mean",type:"number",default:0},{name:"stdev",type:"number",default:1}]},{key:{function:"uniform"},params:[{name:"min",type:"number",default:0},{name:"max",type:"number",default:1}]},{key:{function:"kde"},params:[{name:"field",type:"field",required:true},{name:"from",type:"data"},{name:"bandwidth",type:"number",default:0}]}];const Fl={key:{function:"mixture"},params:[{name:"distributions",type:"param",array:true,params:Ll},{name:"weights",type:"number",array:true}]};ql.Definition={type:"Density",metadata:{generates:true},params:[{name:"extent",type:"number",array:true,length:2},{name:"steps",type:"number"},{name:"minsteps",type:"number",default:25},{name:"maxsteps",type:"number",default:200},{name:"method",type:"string",default:"pdf",values:["pdf","cdf"]},{name:"distribution",type:"param",params:Ll.concat(Fl)},{name:"as",type:"string",array:true,default:["value","density"]}]};(0,m.XW)(ql,Us,{transform(t,e){const n=e.fork(e.NO_SOURCE|e.NO_FIELDS);if(!this.value||e.changed()||t.modified()){const i=Il(t.distribution,jl(e)),r=t.steps||t.minsteps||25,o=t.steps||t.maxsteps||200;let s=t.method||"pdf";if(s!=="pdf"&&s!=="cdf"){(0,m.vU)("Invalid density method: "+s)}if(!t.extent&&!i.data){(0,m.vU)("Missing density extent parameter.")}s=i[s];const a=t.as||["value","density"],l=t.extent||(0,m.We)(i.data()),u=tl(s,l,r,o).map((t=>{const e={};e[a[0]]=t[0];e[a[1]]=t[1];return ko(e)}));if(this.value)n.rem=this.value;this.value=n.add=n.source=u}return n}});function jl(t){return()=>t.materialize(t.SOURCE).source}function Wl(t,e){if(!t)return null;return t.map(((t,n)=>e[n]||(0,m.el)(t)))}function Xl(t,e,n){const i=[],r=t=>t(l);let o,s,a,l,u,c;if(e==null){i.push(t.map(n))}else{for(o={},s=0,a=t.length;s(0,m.yP)((0,m.We)(t,e))/30;(0,m.XW)(Bl,Us,{transform(t,e){if(this.value&&!(t.modified()||e.changed())){return e}const n=e.materialize(e.SOURCE).source,i=Xl(e.source,t.groupby,m.yR),r=t.smooth||false,o=t.field,s=t.step||Yl(n,o),a=To(((t,e)=>o(t)-o(e))),l=t.as||Hl,u=i.length;let c=Infinity,f=-Infinity,h=0,d;for(;hf)f=e;t[++d][l]=e}}this.value={start:c,stop:f,step:s};return e.reflow(true).modifies(l)}});function Jl(t){Po.call(this,null,Gl,t);this.modified(true)}(0,m.XW)(Jl,Po);function Gl(t){const e=t.expr;return this.value&&!t.modified("expr")?this.value:(0,m.ZE)((n=>e(n,t)),(0,m.Oj)(e),(0,m.el)(e))}function Vl(t){Us.call(this,[undefined,undefined],t)}Vl.Definition={type:"Extent",metadata:{},params:[{name:"field",type:"field",required:true}]};(0,m.XW)(Vl,Us,{transform(t,e){const n=this.value,i=t.field,r=e.changed()||e.modified(i.fields)||t.modified("field");let o=n[0],s=n[1];if(r||o==null){o=+Infinity;s=-Infinity}e.visit(r?e.SOURCE:e.ADD,(t=>{const e=(0,m.He)(i(t));if(e!=null){if(es)s=e}}));if(!Number.isFinite(o)||!Number.isFinite(s)){let t=(0,m.el)(i);if(t)t=` for field "${t}"`;e.dataflow.warn(`Infinite extent${t}: [${o}, ${s}]`);o=s=undefined}this.value=[o,s]}});function Kl(t,e){Po.call(this,t);this.parent=e;this.count=0}(0,m.XW)(Kl,Po,{connect(t){this.detachSubflow=t.detachSubflow;this.targets().add(t);return t.source=this},add(t){this.count+=1;this.value.add.push(t)},rem(t){this.count-=1;this.value.rem.push(t)},mod(t){this.value.mod.push(t)},init(t){this.value.init(t,t.NO_SOURCE)},evaluate(){return this.value}});function Zl(t){Us.call(this,{},t);this._keys=(0,m.Xr)();const e=this._targets=[];e.active=0;e.forEach=t=>{for(let n=0,i=e.active;nt&&t.count>0));this.initTargets(t)}},initTargets(t){const e=this._targets,n=e.length,i=t?t.length:0;let r=0;for(;rthis.subflow(t,r,e);this._group=t.group||{};this.initTargets();e.visit(e.REM,(t=>{const e=bo(t),n=o.get(e);if(n!==undefined){o.delete(e);a(n).rem(t)}}));e.visit(e.ADD,(t=>{const e=i(t);o.set(bo(t),e);a(e).add(t)}));if(s||e.modified(i.fields)){e.visit(e.MOD,(t=>{const e=bo(t),n=o.get(e),r=i(t);if(n===r){a(r).mod(t)}else{o.set(e,r);a(n).rem(t);a(r).add(t)}}))}else if(e.changed(e.MOD)){e.visit(e.MOD,(t=>{a(o.get(bo(t))).mod(t)}))}if(s){e.visit(e.REFLOW,(t=>{const e=bo(t),n=o.get(e),r=i(t);if(n!==r){o.set(e,r);a(n).rem(t);a(r).add(t)}}))}if(e.clean()){n.runAfter((()=>{this.clean();o.clean()}))}else if(o.empty>n.cleanThreshold){n.runAfter(o.clean)}return e}});function Ql(t){Po.call(this,null,tu,t)}(0,m.XW)(Ql,Po);function tu(t){return this.value&&!t.modified()?this.value:(0,m.kJ)(t.name)?(0,m.IX)(t.name).map((t=>(0,m.EP)(t))):(0,m.EP)(t.name,t.as)}function eu(t){Us.call(this,(0,m.Xr)(),t)}eu.Definition={type:"Filter",metadata:{changes:true},params:[{name:"expr",type:"expr",required:true}]};(0,m.XW)(eu,Us,{transform(t,e){const n=e.dataflow,i=this.value,r=e.fork(),o=r.add,s=r.rem,a=r.mod,l=t.expr;let u=true;e.visit(e.REM,(t=>{const e=bo(t);if(!i.has(e))s.push(t);else i.delete(e)}));e.visit(e.ADD,(e=>{if(l(e,t))o.push(e);else i.set(bo(e),1)}));function c(e){const n=bo(e),r=l(e,t),c=i.get(n);if(r&&c){i.delete(n);o.push(e)}else if(!r&&!c){i.set(n,1);s.push(e)}else if(u&&r&&!c){a.push(e)}}e.visit(e.MOD,c);if(t.modified()){u=false;e.visit(e.REFLOW,c)}if(i.empty>n.cleanThreshold)n.runAfter(i.clean);return r}});function nu(t){Us.call(this,[],t)}nu.Definition={type:"Flatten",metadata:{generates:true},params:[{name:"fields",type:"field",array:true,required:true},{name:"index",type:"string"},{name:"as",type:"string",array:true}]};(0,m.XW)(nu,Us,{transform(t,e){const n=e.fork(e.NO_SOURCE),i=t.fields,r=Wl(i,t.as||[]),o=t.index||null,s=r.length;n.rem=this.value;e.visit(e.SOURCE,(t=>{const e=i.map((e=>e(t))),a=e.reduce(((t,e)=>Math.max(t,e.length)),0);let l=0,u,c,f;for(;l{for(let e=0,o;ee[i]=n(e,t)))}});function ou(t){Us.call(this,[],t)}(0,m.XW)(ou,Us,{transform(t,e){const n=e.fork(e.ALL),i=t.generator;let r=this.value,o=t.size-r.length,s,a,l;if(o>0){for(s=[];--o>=0;){s.push(l=ko(i(t)));r.push(l)}n.add=n.add.length?n.materialize(n.ADD).add.concat(s):s}else{a=r.slice(0,-o);n.rem=n.rem.length?n.materialize(n.REM).rem.concat(a):a;r=r.slice(-o)}n.source=this.value=r;return n}});const su={value:"value",median:ta,mean:il,min:Fs,max:Ls};const au=[];function lu(t){Us.call(this,[],t)}lu.Definition={type:"Impute",metadata:{changes:true},params:[{name:"field",type:"field",required:true},{name:"key",type:"field",required:true},{name:"keyvals",array:true},{name:"groupby",type:"field",array:true},{name:"method",type:"enum",default:"value",values:["value","mean","median","max","min"]},{name:"value",default:0}]};function uu(t){var e=t.method||su.value,n;if(su[e]==null){(0,m.vU)("Unrecognized imputation method: "+e)}else if(e===su.value){n=t.value!==undefined?t.value:0;return()=>n}else{return su[e]}}function cu(t){const e=t.field;return t=>t?e(t):NaN}(0,m.XW)(lu,Us,{transform(t,e){var n=e.fork(e.ALL),i=uu(t),r=cu(t),o=(0,m.el)(t.field),s=(0,m.el)(t.key),a=(t.groupby||[]).map(m.el),l=fu(e.source,t.groupby,t.key,t.keyvals),u=[],c=this.value,f=l.domain.length,h,d,p,g,y,v,_,x,b,w;for(y=0,x=l.length;yt(g),o=[],s=i?i.slice():[],a={},l={},u,c,f,h,d,p,m,g;s.forEach(((t,e)=>a[t]=e+1));for(h=0,m=t.length;hn.add(t)))}else{r=n.value=n.value||this.init(t);e.visit(e.REM,(t=>n.rem(t)));e.visit(e.ADD,(t=>n.add(t)))}n.changes();e.visit(e.SOURCE,(t=>{(0,m.l7)(t,r[n.cellkey(t)].tuple)}));return e.reflow(i).modifies(this._outputs)},changes(){const t=this._adds,e=this._mods;let n,i;for(n=0,i=this._alen;n{const n=ka(e,s)[a],i=t.counts?e.length:1,r=c||(0,m.We)(e);tl(n,r,f,h).forEach((t=>{const n={};for(let i=0;i{this._pending=(0,m.IX)(t.data);return t=>t.touch(this)}));return{async:e}}else{return n.request(t.url,t.format).then((t=>vu(this,e,(0,m.IX)(t.data))))}}});function yu(t){return t.modified("async")&&!(t.modified("values")||t.modified("url")||t.modified("format"))}function vu(t,e,n){n.forEach(ko);const i=e.fork(e.NO_FIELDS&e.NO_SOURCE);i.rem=t.value;t.value=i.source=i.add=n;t._pending=null;if(i.rem.length)i.clean(true);return i}function _u(t){Us.call(this,{},t)}_u.Definition={type:"Lookup",metadata:{modifies:true},params:[{name:"index",type:"index",params:[{name:"from",type:"data",required:true},{name:"key",type:"field",required:true}]},{name:"values",type:"field",array:true},{name:"fields",type:"field",array:true,required:true},{name:"as",type:"string",array:true},{name:"default",default:null}]};(0,m.XW)(_u,Us,{transform(t,e){const n=t.fields,i=t.index,r=t.values,o=t.default==null?null:t.default,s=t.modified(),a=n.length;let l=s?e.SOURCE:e.ADD,u=e,c=t.as,f,h,d;if(r){h=r.length;if(a>1&&!c){(0,m.vU)('Multi-field lookup requires explicit "as" parameter.')}if(c&&c.length!==a*h){(0,m.vU)('The "as" parameter has too few output field names.')}c=c||r.map(m.el);f=function(t){for(var e=0,s=0,l,u;ee.modified(t.fields)));l|=d?e.MOD:0}e.visit(l,f);return u.modifies(c)}});function xu(t){Po.call(this,null,bu,t)}(0,m.XW)(xu,Po);function bu(t){if(this.value&&!t.modified()){return this.value}const e=t.extents,n=e.length;let i=+Infinity,r=-Infinity,o,s;for(o=0;or)r=s[1]}return[i,r]}function wu(t){Po.call(this,null,ku,t)}(0,m.XW)(wu,Po);function ku(t){return this.value&&!t.modified()?this.value:t.values.reduce(((t,e)=>t.concat(e)),[])}function Mu(t){Us.call(this,null,t)}(0,m.XW)(Mu,Us,{transform(t,e){this.modified(t.modified());this.value=t;return e.fork(e.NO_SOURCE|e.NO_FIELDS)}});function Su(t){kl.call(this,t)}Su.Definition={type:"Pivot",metadata:{generates:true,changes:true},params:[{name:"groupby",type:"field",array:true},{name:"field",type:"field",required:true},{name:"value",type:"field",required:true},{name:"op",type:"enum",values:fl,default:"sum"},{name:"limit",type:"number",default:0},{name:"key",type:"field"}]};(0,m.XW)(Su,kl,{_transform:kl.prototype.transform,transform(t,e){return this._transform(Eu(t,e),e)}});function Eu(t,e){const n=t.field,i=t.value,r=(t.op==="count"?"__count__":t.op)||"sum",o=(0,m.Oj)(n).concat((0,m.Oj)(i)),s=$u(n,t.limit||0,e);if(e.changed())t.set("__pivot__",null,null,true);return{key:t.key,groupby:t.groupby,ops:s.map((()=>r)),fields:s.map((t=>Tu(t,n,i,o))),as:s.map((t=>t+"")),modified:t.modified.bind(t)}}function Tu(t,e,n,i){return(0,m.ZE)((i=>e(i)===t?n(i):NaN),i,t+"")}function $u(t,e,n){const i={},r=[];n.visit(n.SOURCE,(e=>{const n=t(e);if(!i[n]){i[n]=1;r.push(n)}}));r.sort(m.j2);return e?r.slice(0,e):r}function Du(t){Zl.call(this,t)}(0,m.XW)(Du,Zl,{transform(t,e){const n=t.subflow,i=t.field,r=t=>this.subflow(bo(t),n,e,t);if(t.modified("field")||i&&e.modified((0,m.Oj)(i))){(0,m.vU)("PreFacet does not support field modification.")}this.initTargets();if(i){e.visit(e.MOD,(t=>{const e=r(t);i(t).forEach((t=>e.mod(t)))}));e.visit(e.ADD,(t=>{const e=r(t);i(t).forEach((t=>e.add(ko(t))))}));e.visit(e.REM,(t=>{const e=r(t);i(t).forEach((t=>e.rem(t)))}))}else{e.visit(e.MOD,(t=>r(t).mod(t)));e.visit(e.ADD,(t=>r(t).add(t)));e.visit(e.REM,(t=>r(t).rem(t)))}if(e.clean()){e.runAfter((()=>this.clean()))}return e}});function Au(t){Us.call(this,null,t)}Au.Definition={type:"Project",metadata:{generates:true,changes:true},params:[{name:"fields",type:"field",array:true},{name:"as",type:"string",null:true,array:true}]};(0,m.XW)(Au,Us,{transform(t,e){const n=e.fork(e.NO_SOURCE),i=t.fields,r=Wl(t.fields,t.as||[]),o=i?(t,e)=>Nu(t,e,i,r):So;let s;if(this.value){s=this.value}else{e=e.addAll();s=this.value={}}e.visit(e.REM,(t=>{const e=bo(t);n.rem.push(s[e]);s[e]=null}));e.visit(e.ADD,(t=>{const e=o(t,ko({}));s[bo(t)]=e;n.add.push(e)}));e.visit(e.MOD,(t=>{n.mod.push(o(t,s[bo(t)]))}));return n}});function Nu(t,e,n,i){for(let r=0,o=n.length;r{const e=ia(t,u);for(let n=0;n{const e=bo(t);n.rem.push(i[e]);i[e]=null}));e.visit(e.ADD,(t=>{const e=Mo(t);i[bo(t)]=e;n.add.push(e)}));e.visit(e.MOD,(t=>{const e=i[bo(t)];for(const i in t){e[i]=t[i];n.modifies(i)}n.mod.push(e)}))}return n}});function Uu(t){Us.call(this,[],t);this.count=0}Uu.Definition={type:"Sample",metadata:{},params:[{name:"size",type:"number",default:1e3}]};(0,m.XW)(Uu,Us,{transform(t,e){const n=e.fork(e.NO_SOURCE),i=t.modified("size"),r=t.size,o=this.value.reduce(((t,e)=>(t[bo(e)]=1,t)),{});let s=this.value,a=this.count,l=0;function u(t){let e,i;if(s.length=l){e=s[i];if(o[bo(e)])n.rem.push(e);s[i]=t}}++a}if(e.rem.length){e.visit(e.REM,(t=>{const e=bo(t);if(o[e]){o[e]=-1;n.rem.push(t)}--a}));s=s.filter((t=>o[bo(t)]!==-1))}if((e.rem.length||i)&&s.length{if(!o[bo(t)])u(t)}));l=-1}if(i&&s.length>r){const t=s.length-r;for(let e=0;e{if(o[bo(t)])n.mod.push(t)}))}if(e.add.length){e.visit(e.ADD,u)}if(e.add.length||l<0){n.add=s.filter((t=>!o[bo(t)]))}this.count=a;this.value=n.source=s;return n}});function Pu(t){Us.call(this,null,t)}Pu.Definition={type:"Sequence",metadata:{generates:true,changes:true},params:[{name:"start",type:"number",required:true},{name:"stop",type:"number",required:true},{name:"step",type:"number",default:1},{name:"as",type:"string",default:"data"}]};(0,m.XW)(Pu,Us,{transform(t,e){if(this.value&&!t.modified())return;const n=e.materialize().fork(e.MOD),i=t.as||"data";n.rem=this.value?e.rem.concat(this.value):e.rem;this.value=rl(t.start,t.stop,t.step||1).map((t=>{const e={};e[i]=t;return ko(e)}));n.add=e.add.concat(this.value);return n}});function Iu(t){Us.call(this,null,t);this.modified(true)}(0,m.XW)(Iu,Us,{transform(t,e){this.value=e.source;return e.changed()?e.fork(e.NO_SOURCE|e.NO_FIELDS):e.StopPropagation}});function qu(t){Us.call(this,null,t)}const Lu=["unit0","unit1"];qu.Definition={type:"TimeUnit",metadata:{modifies:true},params:[{name:"field",type:"field",required:true},{name:"interval",type:"boolean",default:true},{name:"units",type:"enum",values:je,array:true},{name:"step",type:"number",default:1},{name:"maxbins",type:"number",default:40},{name:"extent",type:"date",array:true},{name:"timezone",type:"enum",default:"local",values:["local","utc"]},{name:"as",type:"string",array:true,length:2,default:Lu}]};(0,m.XW)(qu,Us,{transform(t,e){const n=t.field,i=t.interval!==false,r=t.timezone==="utc",o=this._floor(t,e),s=(r?xn:_n)(o.unit).offset,a=t.as||Lu,l=a[0],u=a[1],c=o.step;let f=o.start||Infinity,h=o.stop||-Infinity,d=e.ADD;if(t.modified()||e.changed(e.REM)||e.modified((0,m.Oj)(n))){e=e.reflow(true);d=e.SOURCE;f=Infinity;h=-Infinity}e.visit(d,(t=>{const e=n(t);let r,a;if(e==null){t[l]=null;if(i)t[u]=null}else{t[l]=r=a=o(e);if(i)t[u]=a=s(r,c);if(rh)h=a}}));o.start=f;o.stop=h;return e.modifies(i?a:l)},_floor(t,e){const n=t.timezone==="utc";const{units:i,step:r}=t.units?{units:t.units,step:t.step||1}:Wn({extent:t.extent||(0,m.We)(e.materialize(e.SOURCE).source,t.field),maxbins:t.maxbins});const o=Xe(i),s=this.value||{},a=(n?gn:dn)(o,r);a.unit=(0,m.fj)(o);a.units=o;a.step=r;a.start=s.start;a.stop=s.stop;return this.value=a}});function Fu(t){Us.call(this,(0,m.Xr)(),t)}(0,m.XW)(Fu,Us,{transform(t,e){const n=e.dataflow,i=t.field,r=this.value,o=t=>r.set(i(t),t);let s=true;if(t.modified("field")||e.modified(i.fields)){r.clear();e.visit(e.SOURCE,o)}else if(e.changed()){e.visit(e.REM,(t=>r.delete(i(t))));e.visit(e.ADD,o)}else{s=false}this.modified(s);if(r.empty>n.cleanThreshold)n.runAfter(r.clean);return e.fork()}});function ju(t){Us.call(this,null,t)}(0,m.XW)(ju,Us,{transform(t,e){const n=!this.value||t.modified("field")||t.modified("sort")||e.changed()||t.sort&&e.modified(t.sort.fields);if(n){this.value=(t.sort?e.source.slice().sort(To(t.sort)):e.source).map(t.field)}}});function Wu(t,e,n,i){const r=Xu[t](e,n);return{init:r.init||m.bM,update:function(t,e){e[i]=r.next(t)}}}const Xu={row_number:function(){return{next:t=>t.index+1}},rank:function(){let t;return{init:()=>t=1,next:e=>{const n=e.index,i=e.data;return n&&e.compare(i[n-1],i[n])?t=n+1:t}}},dense_rank:function(){let t;return{init:()=>t=1,next:e=>{const n=e.index,i=e.data;return n&&e.compare(i[n-1],i[n])?++t:t}}},percent_rank:function(){const t=Xu.rank(),e=t.next;return{init:t.init,next:t=>(e(t)-1)/(t.data.length-1)}},cume_dist:function(){let t;return{init:()=>t=0,next:e=>{const n=e.data,i=e.compare;let r=e.index;if(t0))(0,m.vU)("ntile num must be greater than zero.");const n=Xu.cume_dist(),i=n.next;return{init:n.init,next:t=>Math.ceil(e*i(t))}},lag:function(t,e){e=+e||1;return{next:n=>{const i=n.index-e;return i>=0?t(n.data[i]):null}}},lead:function(t,e){e=+e||1;return{next:n=>{const i=n.index+e,r=n.data;return it(e.data[e.i0])}},last_value:function(t){return{next:e=>t(e.data[e.i1-1])}},nth_value:function(t,e){e=+e;if(!(e>0))(0,m.vU)("nth_value nth must be greater than zero.");return{next:n=>{const i=n.i0+(e-1);return ie=null,next:n=>{const i=t(n.data[n.index]);return i!=null?e=i:e}}},next_value:function(t){let e,n;return{init:()=>(e=null,n=-1),next:i=>{const r=i.data;return i.index<=n?e:(n=Hu(t,r,i.index))<0?(n=r.length,e=null):e=t(r[n])}}}};function Hu(t,e,n){for(let i=e.length;na[t]=1))}h(t.sort);e.forEach(((t,e)=>{const a=n[e],d=(0,m.el)(a),p=al(t,d,r[e]);h(a);o.push(p);if((0,m.nr)(Xu,t)){s.push(Wu(t,n[e],i[e],p))}else{if(a==null&&t!=="count"){(0,m.vU)("Null aggregate field specified.")}if(t==="count"){u.push(p);return}f=false;let e=l[d];if(!e){e=l[d]=[];e.field=a;c.push(e)}e.push(dl(t,p))}}));if(u.length||c.length){this.cell=Gu(c,u,f)}this.inputs=Object.keys(a)}const Ju=Yu.prototype;Ju.init=function(){this.windows.forEach((t=>t.init()));if(this.cell)this.cell.init()};Ju.update=function(t,e){const n=this.cell,i=this.windows,r=t.data,o=i&&i.length;let s;if(n){for(s=t.p0;sxl(t,t.field)));const i={num:0,agg:null,store:false,count:e};if(!n){var r=t.length,o=i.agg=Array(r),s=0;for(;sthis.group(r(t));let s=this.state;if(!s||n){s=this.state=new Yu(t)}if(n||e.modified(s.inputs)){this.value={};e.visit(e.SOURCE,(t=>o(t).add(t)))}else{e.visit(e.REM,(t=>o(t).remove(t)));e.visit(e.ADD,(t=>o(t).add(t)))}for(let a=0,l=this._mlen;a0&&!r(o[n],o[n-1]))t.i0=e.left(o,o[n]);if(i0){var i=t[0],r=e[0],o=t[n]-i,s=e[n]-r,a=-1,l;while(++a<=n){l=a/n;this._basis.point(this._beta*t[a]+(1-this._beta)*(i+l*o),this._beta*e[a]+(1-this._beta)*(r+l*s))}}this._x=this._y=null;this._basis.lineEnd()},point:function(t,e){this._x.push(+t);this._y.push(+e)}};const uc=function t(e){function n(t){return e===1?new ec(t):new lc(t,e)}n.beta=function(e){return t(+e)};return n}(.85);function cc(t,e,n){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-n),t._x2,t._y2)}function fc(t,e){this._context=t;this._k=(1-e)/6}fc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:cc(this,this._x1,this._y1);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(t,e){t=+t,e=+e;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;this._x1=t,this._y1=e;break;case 2:this._point=3;default:cc(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=e}};const hc=function t(e){function n(t){return new fc(t,e)}n.tension=function(e){return t(+e)};return n}(0);function dc(t,e){this._context=t;this._k=(1-e)/6}dc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(t,e){t=+t,e=+e;switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:cc(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=e}};const pc=function t(e){function n(t){return new dc(t,e)}n.tension=function(e){return t(+e)};return n}(0);function mc(t,e){this._context=t;this._k=(1-e)/6}mc.prototype={areaStart:ic,areaEnd:ic,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN;this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3);this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3);this._context.closePath();break}case 3:{this.point(this._x3,this._y3);this.point(this._x4,this._y4);this.point(this._x5,this._y5);break}}},point:function(t,e){t=+t,e=+e;switch(this._point){case 0:this._point=1;this._x3=t,this._y3=e;break;case 1:this._point=2;this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3;this._x5=t,this._y5=e;break;default:cc(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=e}};const gc=function t(e){function n(t){return new mc(t,e)}n.tension=function(e){return t(+e)};return n}(0);const yc=Math.abs;const vc=Math.atan2;const _c=Math.cos;const xc=Math.max;const bc=Math.min;const wc=Math.sin;const kc=Math.sqrt;const Mc=1e-12;const Sc=Math.PI;const Ec=Sc/2;const Tc=2*Sc;function $c(t){return t>1?0:t<-1?Sc:Math.acos(t)}function Dc(t){return t>=1?Ec:t<=-1?-Ec:Math.asin(t)}function Ac(t,e,n){var i=t._x1,r=t._y1,o=t._x2,s=t._y2;if(t._l01_a>Mc){var a=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,l=3*t._l01_a*(t._l01_a+t._l12_a);i=(i*a-t._x0*t._l12_2a+t._x2*t._l01_2a)/l;r=(r*a-t._y0*t._l12_2a+t._y2*t._l01_2a)/l}if(t._l23_a>Mc){var u=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,c=3*t._l23_a*(t._l23_a+t._l12_a);o=(o*u+t._x1*t._l23_2a-e*t._l12_2a)/c;s=(s*u+t._y1*t._l23_2a-n*t._l12_2a)/c}t._context.bezierCurveTo(i,r,o,s,t._x2,t._y2)}function Nc(t,e){this._context=t;this._alpha=e}Nc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(t,e){t=+t,e=+e;if(this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:Ac(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a;this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a;this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=e}};const zc=function t(e){function n(t){return e?new Nc(t,e):new fc(t,0)}n.alpha=function(e){return t(+e)};return n}(.5);function Rc(t,e){this._context=t;this._alpha=e}Rc.prototype={areaStart:ic,areaEnd:ic,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3);this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3);this._context.closePath();break}case 3:{this.point(this._x3,this._y3);this.point(this._x4,this._y4);this.point(this._x5,this._y5);break}}},point:function(t,e){t=+t,e=+e;if(this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;this._x3=t,this._y3=e;break;case 1:this._point=2;this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3;this._x5=t,this._y5=e;break;default:Ac(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a;this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a;this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Cc=function t(e){function n(t){return e?new Rc(t,e):new mc(t,0)}n.alpha=function(e){return t(+e)};return n}(.5);function Oc(t,e){this._context=t;this._alpha=e}Oc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN;this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===3)this._context.closePath();this._line=1-this._line},point:function(t,e){t=+t,e=+e;if(this._point){var n=this._x2-t,i=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+i*i,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Ac(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a;this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a;this._x0=this._x1,this._x1=this._x2,this._x2=t;this._y0=this._y1,this._y1=this._y2,this._y2=e}};const Uc=function t(e){function n(t){return e?new Oc(t,e):new dc(t,0)}n.alpha=function(e){return t(+e)};return n}(.5);function Pc(t){this._context=t}Pc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(t,e){t=+t,e=+e;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:this._context.lineTo(t,e);break}}};function Ic(t){return new Pc(t)}function qc(t){this._context=t}qc.prototype={areaStart:ic,areaEnd:ic,lineStart:function(){this._point=0},lineEnd:function(){if(this._point)this._context.closePath()},point:function(t,e){t=+t,e=+e;if(this._point)this._context.lineTo(t,e);else this._point=1,this._context.moveTo(t,e)}};function Lc(t){return new qc(t)}function Fc(t){return t<0?-1:1}function jc(t,e,n){var i=t._x1-t._x0,r=e-t._x1,o=(t._y1-t._y0)/(i||r<0&&-0),s=(n-t._y1)/(r||i<0&&-0),a=(o*r+s*i)/(i+r);return(Fc(o)+Fc(s))*Math.min(Math.abs(o),Math.abs(s),.5*Math.abs(a))||0}function Wc(t,e){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-e)/2:e}function Xc(t,e,n){var i=t._x0,r=t._y0,o=t._x1,s=t._y1,a=(o-i)/3;t._context.bezierCurveTo(i+a,r+a*e,o-a,s-a*n,o,s)}function Hc(t){this._context=t}Hc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN;this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Xc(this,this._t0,Wc(this,this._t0));break}if(this._line||this._line!==0&&this._point===1)this._context.closePath();this._line=1-this._line},point:function(t,e){var n=NaN;t=+t,e=+e;if(t===this._x1&&e===this._y1)return;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;Xc(this,Wc(this,n=jc(this,t,e)),n);break;default:Xc(this,this._t0,n=jc(this,t,e));break}this._x0=this._x1,this._x1=t;this._y0=this._y1,this._y1=e;this._t0=n}};function Bc(t){this._context=new Yc(t)}(Bc.prototype=Object.create(Hc.prototype)).point=function(t,e){Hc.prototype.point.call(this,e,t)};function Yc(t){this._context=t}Yc.prototype={moveTo:function(t,e){this._context.moveTo(e,t)},closePath:function(){this._context.closePath()},lineTo:function(t,e){this._context.lineTo(e,t)},bezierCurveTo:function(t,e,n,i,r,o){this._context.bezierCurveTo(e,t,i,n,o,r)}};function Jc(t){return new Hc(t)}function Gc(t){return new Bc(t)}function Vc(t){this._context=t}Vc.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[];this._y=[]},lineEnd:function(){var t=this._x,e=this._y,n=t.length;if(n){this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]);if(n===2){this._context.lineTo(t[1],e[1])}else{var i=Kc(t),r=Kc(e);for(var o=0,s=1;s=0;--e)r[e]=(s[e]-r[e+1])/o[e];o[n-1]=(t[n]+r[n-1])/2;for(e=0;e=0)this._t=1-this._t,this._line=1-this._line},point:function(t,e){t=+t,e=+e;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0){this._context.lineTo(this._x,e);this._context.lineTo(t,e)}else{var n=this._x*(1-this._t)+t*this._t;this._context.lineTo(n,this._y);this._context.lineTo(n,e)}break}}this._x=t,this._y=e}};function tf(t){return new Qc(t,.5)}function ef(t){return new Qc(t,0)}function nf(t){return new Qc(t,1)}function rf(t){return function e(){return t}}const of=Math.PI,sf=2*of,af=1e-6,lf=sf-af;function uf(t){this._+=t[0];for(let e=1,n=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return uf;const n=10**e;return function(t){this._+=t[0];for(let e=1,i=t.length;eaf));else if(!(Math.abs(c*a-l*u)>af)||!r){this._append`L${this._x1=t},${this._y1=e}`}else{let h=n-o,d=i-s,p=a*a+l*l,m=h*h+d*d,g=Math.sqrt(p),y=Math.sqrt(f),v=r*Math.tan((of-Math.acos((p+f-m)/(2*g*y)))/2),_=v/y,x=v/g;if(Math.abs(_-1)>af){this._append`L${t+_*u},${e+_*c}`}this._append`A${r},${r},0,0,${+(c*h>u*d)},${this._x1=t+x*a},${this._y1=e+x*l}`}}arc(t,e,n,i,r,o){t=+t,e=+e,n=+n,o=!!o;if(n<0)throw new Error(`negative radius: ${n}`);let s=n*Math.cos(i),a=n*Math.sin(i),l=t+s,u=e+a,c=1^o,f=o?i-r:r-i;if(this._x1===null){this._append`M${l},${u}`}else if(Math.abs(this._x1-l)>af||Math.abs(this._y1-u)>af){this._append`L${l},${u}`}if(!n)return;if(f<0)f=f%sf+sf;if(f>lf){this._append`A${n},${n},0,1,${c},${t-s},${e-a}A${n},${n},0,1,${c},${this._x1=l},${this._y1=u}`}else if(f>af){this._append`A${n},${n},0,${+(f>=of)},${c},${this._x1=t+n*Math.cos(r)},${this._y1=e+n*Math.sin(r)}`}}rect(t,e,n,i){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}}function hf(){return new ff}hf.prototype=ff.prototype;function df(t=3){return new ff(+t)}function pf(t){let e=3;t.digits=function(n){if(!arguments.length)return e;if(n==null){e=null}else{const t=Math.floor(n);if(!(t>=0))throw new RangeError(`invalid digits: ${n}`);e=t}return t};return()=>new ff(e)}function mf(t){return t.innerRadius}function gf(t){return t.outerRadius}function yf(t){return t.startAngle}function vf(t){return t.endAngle}function _f(t){return t&&t.padAngle}function xf(t,e,n,i,r,o,s,a){var l=n-t,u=i-e,c=s-r,f=a-o,h=f*l-c*u;if(h*hA*A+N*N)M=E,S=T;return{cx:M,cy:S,x01:-c,y01:-f,x11:M*(r/b-1),y11:S*(r/b-1)}}function wf(){var t=mf,e=gf,n=rf(0),i=null,r=yf,o=vf,s=_f,a=null,l=pf(u);function u(){var u,c,f=+t.apply(this,arguments),h=+e.apply(this,arguments),d=r.apply(this,arguments)-Ec,p=o.apply(this,arguments)-Ec,m=yc(p-d),g=p>d;if(!a)a=u=l();if(hMc))a.moveTo(0,0);else if(m>Tc-Mc){a.moveTo(h*_c(d),h*wc(d));a.arc(0,0,h,d,p,!g);if(f>Mc){a.moveTo(f*_c(p),f*wc(p));a.arc(0,0,f,p,d,g)}}else{var y=d,v=p,_=d,x=p,b=m,w=m,k=s.apply(this,arguments)/2,M=k>Mc&&(i?+i.apply(this,arguments):kc(f*f+h*h)),S=bc(yc(h-f)/2,+n.apply(this,arguments)),E=S,T=S,$,D;if(M>Mc){var A=Dc(M/f*wc(k)),N=Dc(M/h*wc(k));if((b-=A*2)>Mc)A*=g?1:-1,_+=A,x-=A;else b=0,_=x=(d+p)/2;if((w-=N*2)>Mc)N*=g?1:-1,y+=N,v-=N;else w=0,y=v=(d+p)/2}var z=h*_c(y),R=h*wc(y),C=f*_c(x),O=f*wc(x);if(S>Mc){var U=h*_c(v),P=h*wc(v),I=f*_c(_),q=f*wc(_),L;if(mMc))a.moveTo(z,R);else if(T>Mc){$=bf(I,q,z,R,h,T,g);D=bf(U,P,C,O,h,T,g);a.moveTo($.cx+$.x01,$.cy+$.y01);if(TMc)||!(b>Mc))a.lineTo(C,O);else if(E>Mc){$=bf(C,O,U,P,f,-E,g);D=bf(z,R,I,q,f,-E,g);a.lineTo($.cx+$.x01,$.cy+$.y01);if(E=f;--h){a.point(y[h],v[h])}a.lineEnd();a.areaEnd()}}if(m){y[c]=+t(p,c,u),v[c]=+e(p,c,u);a.point(i?+i(p,c,u):y[c],n?+n(p,c,u):v[c])}}if(g)return a=null,g+""||null}function c(){return Tf().defined(r).curve(s).context(o)}u.x=function(e){return arguments.length?(t=typeof e==="function"?e:rf(+e),i=null,u):t};u.x0=function(e){return arguments.length?(t=typeof e==="function"?e:rf(+e),u):t};u.x1=function(t){return arguments.length?(i=t==null?null:typeof t==="function"?t:rf(+t),u):i};u.y=function(t){return arguments.length?(e=typeof t==="function"?t:rf(+t),n=null,u):e};u.y0=function(t){return arguments.length?(e=typeof t==="function"?t:rf(+t),u):e};u.y1=function(t){return arguments.length?(n=t==null?null:typeof t==="function"?t:rf(+t),u):n};u.lineX0=u.lineY0=function(){return c().x(t).y(e)};u.lineY1=function(){return c().x(t).y(n)};u.lineX1=function(){return c().x(i).y(e)};u.defined=function(t){return arguments.length?(r=typeof t==="function"?t:rf(!!t),u):r};u.curve=function(t){return arguments.length?(s=t,o!=null&&(a=s(o)),u):s};u.context=function(t){return arguments.length?(t==null?o=a=null:a=s(o=t),u):o};return u}const Df=kc(3);const Af={draw(t,e){const n=kc(e+bc(e/28,.75))*.59436;const i=n/2;const r=i*Df;t.moveTo(0,n);t.lineTo(0,-n);t.moveTo(-r,-i);t.lineTo(r,i);t.moveTo(-r,i);t.lineTo(r,-i)}};const Nf={draw(t,e){const n=kc(e/Sc);t.moveTo(n,0);t.arc(0,0,n,0,Tc)}};const zf={draw(t,e){const n=kc(e/5)/2;t.moveTo(-3*n,-n);t.lineTo(-n,-n);t.lineTo(-n,-3*n);t.lineTo(n,-3*n);t.lineTo(n,-n);t.lineTo(3*n,-n);t.lineTo(3*n,n);t.lineTo(n,n);t.lineTo(n,3*n);t.lineTo(-n,3*n);t.lineTo(-n,n);t.lineTo(-3*n,n);t.closePath()}};const Rf=kc(1/3);const Cf=Rf*2;const Of={draw(t,e){const n=kc(e/Cf);const i=n*Rf;t.moveTo(0,-n);t.lineTo(i,0);t.lineTo(0,n);t.lineTo(-i,0);t.closePath()}};const Uf={draw(t,e){const n=kc(e)*.62625;t.moveTo(0,-n);t.lineTo(n,0);t.lineTo(0,n);t.lineTo(-n,0);t.closePath()}};const Pf={draw(t,e){const n=kc(e-bc(e/7,2))*.87559;t.moveTo(-n,0);t.lineTo(n,0);t.moveTo(0,n);t.lineTo(0,-n)}};const If={draw(t,e){const n=kc(e);const i=-n/2;t.rect(i,i,n,n)}};const qf={draw(t,e){const n=kc(e)*.4431;t.moveTo(n,n);t.lineTo(n,-n);t.lineTo(-n,-n);t.lineTo(-n,n);t.closePath()}};const Lf=.8908130915292852;const Ff=wc(Sc/10)/wc(7*Sc/10);const jf=wc(Tc/10)*Ff;const Wf=-_c(Tc/10)*Ff;const Xf={draw(t,e){const n=kc(e*Lf);const i=jf*n;const r=Wf*n;t.moveTo(0,-n);t.lineTo(i,r);for(let o=1;o<5;++o){const e=Tc*o/5;const s=_c(e);const a=wc(e);t.lineTo(a*n,-s*n);t.lineTo(s*i-a*r,a*i+s*r)}t.closePath()}};const Hf=kc(3);const Bf={draw(t,e){const n=-kc(e/(Hf*3));t.moveTo(0,n*2);t.lineTo(-Hf*n,-n);t.lineTo(Hf*n,-n);t.closePath()}};const Yf=kc(3);const Jf={draw(t,e){const n=kc(e)*.6824;const i=n/2;const r=n*Yf/2;t.moveTo(0,-n);t.lineTo(r,i);t.lineTo(-r,i);t.closePath()}};const Gf=-.5;const Vf=kc(3)/2;const Kf=1/kc(12);const Zf=(Kf/2+1)*3;const Qf={draw(t,e){const n=kc(e/Zf);const i=n/2,r=n*Kf;const o=i,s=n*Kf+n;const a=-o,l=s;t.moveTo(i,r);t.lineTo(o,s);t.lineTo(a,l);t.lineTo(Gf*i-Vf*r,Vf*i+Gf*r);t.lineTo(Gf*o-Vf*s,Vf*o+Gf*s);t.lineTo(Gf*a-Vf*l,Vf*a+Gf*l);t.lineTo(Gf*i+Vf*r,Gf*r-Vf*i);t.lineTo(Gf*o+Vf*s,Gf*s-Vf*o);t.lineTo(Gf*a+Vf*l,Gf*l-Vf*a);t.closePath()}};const th={draw(t,e){const n=kc(e-bc(e/6,1.7))*.6189;t.moveTo(-n,-n);t.lineTo(n,n);t.moveTo(-n,n);t.lineTo(n,-n)}};const eh=[Nf,zf,Of,If,Xf,Bf,Qf];const nh=[Nf,Pf,th,Jf,Af,qf,Uf];function ih(t,e){let n=null,i=pf(r);t=typeof t==="function"?t:rf(t||Nf);e=typeof e==="function"?e:rf(e===undefined?64:+e);function r(){let r;if(!n)n=r=i();t.apply(this,arguments).draw(n,+e.apply(this,arguments));if(r)return n=null,r+""||null}r.type=function(e){return arguments.length?(t=typeof e==="function"?e:rf(e),r):t};r.size=function(t){return arguments.length?(e=typeof t==="function"?t:rf(+t),r):e};r.context=function(t){return arguments.length?(n=t==null?null:t,r):n};return r}function rh(t,e){if(typeof document!=="undefined"&&document.createElement){const n=document.createElement("canvas");if(n&&n.getContext){n.width=t;n.height=e;return n}}return null}const oh=()=>typeof Image!=="undefined"?Image:null;const sh=De(Te);const ah=sh.right;const lh=sh.left;const uh=De(Ys).center;const ch=ah;function fh(t,e,n){t.prototype=e.prototype=n;n.constructor=t}function hh(t,e){var n=Object.create(t.prototype);for(var i in e)n[i]=e[i];return n}function dh(){}var ph=.7;var mh=1/ph;var gh="\\s*([+-]?\\d+)\\s*",yh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",vh="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_h=/^#([0-9a-f]{3,8})$/,xh=new RegExp(`^rgb\\(${gh},${gh},${gh}\\)$`),bh=new RegExp(`^rgb\\(${vh},${vh},${vh}\\)$`),wh=new RegExp(`^rgba\\(${gh},${gh},${gh},${yh}\\)$`),kh=new RegExp(`^rgba\\(${vh},${vh},${vh},${yh}\\)$`),Mh=new RegExp(`^hsl\\(${yh},${vh},${vh}\\)$`),Sh=new RegExp(`^hsla\\(${yh},${vh},${vh},${yh}\\)$`);var Eh={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};fh(dh,Nh,{copy(t){return Object.assign(new this.constructor,this,t)},displayable(){return this.rgb().displayable()},hex:Th,formatHex:Th,formatHex8:$h,formatHsl:Dh,formatRgb:Ah,toString:Ah});function Th(){return this.rgb().formatHex()}function $h(){return this.rgb().formatHex8()}function Dh(){return Xh(this).formatHsl()}function Ah(){return this.rgb().formatRgb()}function Nh(t){var e,n;t=(t+"").trim().toLowerCase();return(e=_h.exec(t))?(n=e[1].length,e=parseInt(e[1],16),n===6?zh(e):n===3?new Uh(e>>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):n===8?Rh(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):n===4?Rh(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=xh.exec(t))?new Uh(e[1],e[2],e[3],1):(e=bh.exec(t))?new Uh(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=wh.exec(t))?Rh(e[1],e[2],e[3],e[4]):(e=kh.exec(t))?Rh(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Mh.exec(t))?Wh(e[1],e[2]/100,e[3]/100,1):(e=Sh.exec(t))?Wh(e[1],e[2]/100,e[3]/100,e[4]):Eh.hasOwnProperty(t)?zh(Eh[t]):t==="transparent"?new Uh(NaN,NaN,NaN,0):null}function zh(t){return new Uh(t>>16&255,t>>8&255,t&255,1)}function Rh(t,e,n,i){if(i<=0)t=e=n=NaN;return new Uh(t,e,n,i)}function Ch(t){if(!(t instanceof dh))t=Nh(t);if(!t)return new Uh;t=t.rgb();return new Uh(t.r,t.g,t.b,t.opacity)}function Oh(t,e,n,i){return arguments.length===1?Ch(t):new Uh(t,e,n,i==null?1:i)}function Uh(t,e,n,i){this.r=+t;this.g=+e;this.b=+n;this.opacity=+i}fh(Uh,Oh,hh(dh,{brighter(t){t=t==null?mh:Math.pow(mh,t);return new Uh(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){t=t==null?ph:Math.pow(ph,t);return new Uh(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new Uh(Fh(this.r),Fh(this.g),Fh(this.b),Lh(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&(-.5<=this.g&&this.g<255.5)&&(-.5<=this.b&&this.b<255.5)&&(0<=this.opacity&&this.opacity<=1)},hex:Ph,formatHex:Ph,formatHex8:Ih,formatRgb:qh,toString:qh}));function Ph(){return`#${jh(this.r)}${jh(this.g)}${jh(this.b)}`}function Ih(){return`#${jh(this.r)}${jh(this.g)}${jh(this.b)}${jh((isNaN(this.opacity)?1:this.opacity)*255)}`}function qh(){const t=Lh(this.opacity);return`${t===1?"rgb(":"rgba("}${Fh(this.r)}, ${Fh(this.g)}, ${Fh(this.b)}${t===1?")":`, ${t})`}`}function Lh(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}function Fh(t){return Math.max(0,Math.min(255,Math.round(t)||0))}function jh(t){t=Fh(t);return(t<16?"0":"")+t.toString(16)}function Wh(t,e,n,i){if(i<=0)t=e=n=NaN;else if(n<=0||n>=1)t=e=NaN;else if(e<=0)t=NaN;return new Bh(t,e,n,i)}function Xh(t){if(t instanceof Bh)return new Bh(t.h,t.s,t.l,t.opacity);if(!(t instanceof dh))t=Nh(t);if(!t)return new Bh;if(t instanceof Bh)return t;t=t.rgb();var e=t.r/255,n=t.g/255,i=t.b/255,r=Math.min(e,n,i),o=Math.max(e,n,i),s=NaN,a=o-r,l=(o+r)/2;if(a){if(e===o)s=(n-i)/a+(n0&&l<1?0:s}return new Bh(s,a,l,t.opacity)}function Hh(t,e,n,i){return arguments.length===1?Xh(t):new Bh(t,e,n,i==null?1:i)}function Bh(t,e,n,i){this.h=+t;this.s=+e;this.l=+n;this.opacity=+i}fh(Bh,Hh,hh(dh,{brighter(t){t=t==null?mh:Math.pow(mh,t);return new Bh(this.h,this.s,this.l*t,this.opacity)},darker(t){t=t==null?ph:Math.pow(ph,t);return new Bh(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*e,r=2*n-i;return new Uh(Gh(t>=240?t-240:t+120,r,i),Gh(t,r,i),Gh(t<120?t+240:t-120,r,i),this.opacity)},clamp(){return new Bh(Yh(this.h),Jh(this.s),Jh(this.l),Lh(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&(0<=this.l&&this.l<=1)&&(0<=this.opacity&&this.opacity<=1)},formatHsl(){const t=Lh(this.opacity);return`${t===1?"hsl(":"hsla("}${Yh(this.h)}, ${Jh(this.s)*100}%, ${Jh(this.l)*100}%${t===1?")":`, ${t})`}`}}));function Yh(t){t=(t||0)%360;return t<0?t+360:t}function Jh(t){return Math.max(0,Math.min(1,t||0))}function Gh(t,e,n){return(t<60?e+(n-e)*t/60:t<180?n:t<240?e+(n-e)*(240-t)/60:e)*255}function Vh(t,e,n,i,r){var o=t*t,s=o*t;return((1-3*t+3*o-s)*e+(4-6*o+3*s)*n+(1+3*t+3*o-3*s)*i+s*r)/6}function Kh(t){var e=t.length-1;return function(n){var i=n<=0?n=0:n>=1?(n=1,e-1):Math.floor(n*e),r=t[i],o=t[i+1],s=i>0?t[i-1]:2*r-o,a=i()=>t;function td(t,e){return function(n){return t+n*e}}function ed(t,e,n){return t=Math.pow(t,n),e=Math.pow(e,n)-t,n=1/n,function(i){return Math.pow(t+i*e,n)}}function nd(t,e){var n=e-t;return n?td(t,n>180||n<-180?n-360*Math.round(n/360):n):Qh(isNaN(t)?e:t)}function id(t){return(t=+t)===1?rd:function(e,n){return n-e?ed(e,n,t):Qh(isNaN(e)?n:e)}}function rd(t,e){var n=e-t;return n?td(t,n):Qh(isNaN(t)?e:t)}const od=function t(e){var n=id(e);function i(t,e){var i=n((t=Oh(t)).r,(e=Oh(e)).r),r=n(t.g,e.g),o=n(t.b,e.b),s=rd(t.opacity,e.opacity);return function(e){t.r=i(e);t.g=r(e);t.b=o(e);t.opacity=s(e);return t+""}}i.gamma=t;return i}(1);function sd(t){return function(e){var n=e.length,i=new Array(n),r=new Array(n),o=new Array(n),s,a;for(s=0;sn){o=e.slice(n,o);if(a[s])a[s]+=o;else a[++s]=o}if((i=i[0])===(r=r[0])){if(a[s])a[s]+=r;else a[++s]=r}else{a[++s]=null;l.push({i:s,x:pd(i,r)})}n=yd.lastIndex}if(ne)n=t,t=e,e=n;return function(n){return Math.max(t,Math.min(e,n))}}function Dd(t,e,n){var i=t[0],r=t[1],o=e[0],s=e[1];if(r2?Ad:Dd;l=u=null;return f}function f(r){return r==null||isNaN(r=+r)?o:(l||(l=a(t.map(i),e,n)))(i(s(r)))}f.invert=function(n){return s(r((u||(u=a(e,t.map(i),pd)))(n)))};f.domain=function(e){return arguments.length?(t=Array.from(e,Md),c()):t.slice()};f.range=function(t){return arguments.length?(e=Array.from(t),c()):e.slice()};f.rangeRound=function(t){return e=Array.from(t),n=wd,c()};f.clamp=function(t){return arguments.length?(s=t?true:Ed,c()):s!==Ed};f.interpolate=function(t){return arguments.length?(n=t,c()):n};f.unknown=function(t){return arguments.length?(o=t,f):o};return function(t,e){i=t,r=e;return c()}}function Rd(){return zd()(Ed,Ed)}function Cd(t,e){switch(arguments.length){case 0:break;case 1:this.range(t);break;default:this.range(e).domain(t);break}return this}function Od(t,e){switch(arguments.length){case 0:break;case 1:{if(typeof t==="function")this.interpolator(t);else this.range(t);break}default:{this.domain(t);if(typeof e==="function")this.interpolator(e);else this.range(e);break}}return this}function Ud(t,e,n,i){var r=X(t,e,n),o;i=B(i==null?",f":i);switch(i.type){case"s":{var s=Math.max(Math.abs(t),Math.abs(e));if(i.precision==null&&!isNaN(o=K(r,s)))i.precision=o;return dt(i,s)}case"":case"e":case"g":case"p":case"r":{if(i.precision==null&&!isNaN(o=Z(r,Math.max(Math.abs(t),Math.abs(e)))))i.precision=o-(i.type==="e");break}case"f":case"%":{if(i.precision==null&&!isNaN(o=Q(r)))i.precision=o-(i.type==="%")*2;break}}return ht(i)}function Pd(t){var e=t.domain;t.ticks=function(t){var n=e();return j(n[0],n[n.length-1],t==null?10:t)};t.tickFormat=function(t,n){var i=e();return Ud(i[0],i[i.length-1],t==null?10:t,n)};t.nice=function(n){if(n==null)n=10;var i=e();var r=0;var o=i.length-1;var s=i[r];var a=i[o];var l;var u;var c=10;if(a0){u=W(s,a,n);if(u===l){i[r]=s;i[o]=a;return e(i)}else if(u>0){s=Math.floor(s/u)*u;a=Math.ceil(a/u)*u}else if(u<0){s=Math.ceil(s*u)/u;a=Math.floor(a*u)/u}else{break}l=u}return t};return t}function Id(){var t=Rd();t.copy=function(){return Nd(t,Id())};Cd.apply(t,arguments);return Pd(t)}function qd(t){var e;function n(t){return t==null||isNaN(t=+t)?e:t}n.invert=n;n.domain=n.range=function(e){return arguments.length?(t=Array.from(e,Md),n):t.slice()};n.unknown=function(t){return arguments.length?(e=t,n):e};n.copy=function(){return qd(t).unknown(e)};t=arguments.length?Array.from(t,Md):[0,1];return Pd(n)}function Ld(t,e){t=t.slice();var n=0,i=t.length-1,r=t[n],o=t[i],s;if(oMath.pow(t,e)}function Yd(t){return t===Math.E?Math.log:t===10&&Math.log10||t===2&&Math.log2||(t=Math.log(t),e=>Math.log(e)/t)}function Jd(t){return(e,n)=>-t(-e,n)}function Gd(t){const e=t(Fd,jd);const n=e.domain;let i=10;let r;let o;function s(){r=Yd(i),o=Bd(i);if(n()[0]<0){r=Jd(r),o=Jd(o);t(Wd,Xd)}else{t(Fd,jd)}return e}e.base=function(t){return arguments.length?(i=+t,s()):i};e.domain=function(t){return arguments.length?(n(t),s()):n()};e.ticks=t=>{const e=n();let s=e[0];let a=e[e.length-1];const l=a0)for(;u<=c;++u){for(f=1;fa)break;p.push(h)}}else for(;u<=c;++u){for(f=i-1;f>=1;--f){h=u>0?f/o(-u):f*o(u);if(ha)break;p.push(h)}}if(p.length*2{if(t==null)t=10;if(n==null)n=i===10?"s":",";if(typeof n!=="function"){if(!(i%1)&&(n=B(n)).precision==null)n.trim=true;n=ht(n)}if(t===Infinity)return n;const s=Math.max(1,i*t/e.ticks().length);return t=>{let e=t/o(Math.round(r(t)));if(e*in(Ld(n(),{floor:t=>o(Math.floor(r(t))),ceil:t=>o(Math.ceil(r(t)))}));return e}function Vd(){const t=Gd(zd()).domain([1,10]);t.copy=()=>Nd(t,Vd()).base(t.base());Cd.apply(t,arguments);return t}function Kd(t){return function(e){return e<0?-Math.pow(-e,t):Math.pow(e,t)}}function Zd(t){return t<0?-Math.sqrt(-t):Math.sqrt(t)}function Qd(t){return t<0?-t*t:t*t}function tp(t){var e=t(Ed,Ed),n=1;function i(){return n===1?t(Ed,Ed):n===.5?t(Zd,Qd):t(Kd(n),Kd(1/n))}e.exponent=function(t){return arguments.length?(n=+t,i()):n};return Pd(e)}function ep(){var t=tp(zd());t.copy=function(){return Nd(t,ep()).exponent(t.exponent())};Cd.apply(t,arguments);return t}function np(){return ep.apply(null,arguments).exponent(.5)}function ip(t){return function(e){return Math.sign(e)*Math.log1p(Math.abs(e/t))}}function rp(t){return function(e){return Math.sign(e)*Math.expm1(Math.abs(e))*t}}function op(t){var e=1,n=t(ip(e),rp(e));n.constant=function(n){return arguments.length?t(ip(e=+n),rp(e)):e};return Pd(n)}function sp(){var t=op(zd());t.copy=function(){return Nd(t,sp()).constant(t.constant())};return Cd.apply(t,arguments)}function ap(t,e,n,i,r,o){const s=[[ke,1,vt],[ke,5,5*vt],[ke,15,15*vt],[ke,30,30*vt],[o,1,_t],[o,5,5*_t],[o,15,15*_t],[o,30,30*_t],[r,1,xt],[r,3,3*xt],[r,6,6*xt],[r,12,12*xt],[i,1,bt],[i,2,2*bt],[n,1,wt],[e,1,kt],[e,3,3*kt],[t,1,Mt]];function a(t,e,n){const i=et)).right(s,r);if(o===s.length)return t.every(X(e/Mt,n/Mt,i));if(o===0)return Se.every(Math.max(X(e,n,i),1));const[a,l]=s[r/s[o-1][2]0?n[r-1]:t[0],r=n?[i[n-1],e]:[i[s-1],i[s]]};s.unknown=function(t){return arguments.length?(o=t,s):s};s.thresholds=function(){return i.slice()};s.copy=function(){return zp().domain([t,e]).range(r).unknown(o)};return Cd.apply(Pd(s),arguments)}function Rp(){var t=[.5],e=[0,1],n,i=1;function r(r){return r!=null&&r<=r?e[ch(t,r,0,i)]:n}r.domain=function(n){return arguments.length?(t=Array.from(n),i=Math.min(t.length,e.length-1),r):t.slice()};r.range=function(n){return arguments.length?(e=Array.from(n),i=Math.min(t.length,e.length-1),r):e.slice()};r.invertExtent=function(n){var i=e.indexOf(n);return[t[i-1],t[i]]};r.unknown=function(t){return arguments.length?(n=t,r):n};r.copy=function(){return Rp().domain(t).range(e).unknown(n)};return Cd.apply(r,arguments)}class Cp extends Map{constructor(t,e=qp){super();Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}});if(t!=null)for(const[n,i]of t)this.set(n,i)}get(t){return super.get(Up(this,t))}has(t){return super.has(Up(this,t))}set(t,e){return super.set(Pp(this,t),e)}delete(t){return super.delete(Ip(this,t))}}class Op extends Set{constructor(t,e=qp){super();Object.defineProperties(this,{_intern:{value:new Map},_key:{value:e}});if(t!=null)for(const n of t)this.add(n)}has(t){return super.has(Up(this,t))}add(t){return super.add(Pp(this,t))}delete(t){return super.delete(Ip(this,t))}}function Up({_intern:t,_key:e},n){const i=e(n);return t.has(i)?t.get(i):n}function Pp({_intern:t,_key:e},n){const i=e(n);if(t.has(i))return t.get(i);t.set(i,n);return n}function Ip({_intern:t,_key:e},n){const i=e(n);if(t.has(i)){n=t.get(i);t.delete(i)}return n}function qp(t){return t!==null&&typeof t==="object"?t.valueOf():t}const Lp=Symbol("implicit");function Fp(){var t=new Cp,e=[],n=[],i=Lp;function r(r){let o=t.get(r);if(o===undefined){if(i!==Lp)return i;t.set(r,o=e.push(r)-1)}return n[o%n.length]}r.domain=function(n){if(!arguments.length)return e.slice();e=[],t=new Cp;for(const i of n){if(t.has(i))continue;t.set(i,e.push(i)-1)}return r};r.range=function(t){return arguments.length?(n=Array.from(t),r):n.slice()};r.unknown=function(t){return arguments.length?(i=t,r):i};r.copy=function(){return Fp(e,n).unknown(i)};Cd.apply(r,arguments);return r}function jp(t){var e=t.length;return function(n){return t[Math.max(0,Math.min(e-1,Math.floor(n*e)))]}}function Wp(t,e){var n=nd(+t,+e);return function(t){var e=n(t);return e-360*Math.floor(e/360)}}var Xp=180/Math.PI;var Hp={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Bp(t,e,n,i,r,o){var s,a,l;if(s=Math.sqrt(t*t+e*e))t/=s,e/=s;if(l=t*n+e*i)n-=t*l,i-=e*l;if(a=Math.sqrt(n*n+i*i))n/=a,i/=a,l/=a;if(t*i180)e+=360;else if(e-t>180)t+=360;o.push({i:n.push(r(n)+"rotate(",null,i)-2,x:pd(t,e)})}else if(e){n.push(r(n)+"rotate("+e+i)}}function a(t,e,n,o){if(t!==e){o.push({i:n.push(r(n)+"skewX(",null,i)-2,x:pd(t,e)})}else if(e){n.push(r(n)+"skewX("+e+i)}}function l(t,e,n,i,o,s){if(t!==n||e!==i){var a=o.push(r(o)+"scale(",null,",",null,")");s.push({i:a-4,x:pd(t,n)},{i:a-2,x:pd(e,i)})}else if(n!==1||i!==1){o.push(r(o)+"scale("+n+","+i+")")}}return function(e,n){var i=[],r=[];e=t(e),n=t(n);o(e.translateX,e.translateY,n.translateX,n.translateY,i,r);s(e.rotate,n.rotate,i,r);a(e.skewX,n.skewX,i,r);l(e.scaleX,e.scaleY,n.scaleX,n.scaleY,i,r);e=n=null;return function(t){var e=-1,n=r.length,o;while(++egm?Math.pow(t,1/3):t/mm+dm}function wm(t){return t>pm?t*t*t:mm*(t-dm)}function km(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}function Mm(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}function Sm(t){if(t instanceof $m)return new $m(t.h,t.c,t.l,t.opacity);if(!(t instanceof xm))t=ym(t);if(t.a===0&&t.b===0)return new $m(NaN,00?i:1:0}const Vm="identity";const Km="linear";const Zm="log";const Qm="pow";const tg="sqrt";const eg="symlog";const ng="time";const ig="utc";const rg="sequential";const og="diverging";const sg="quantile";const ag="quantize";const lg="threshold";const ug="ordinal";const cg="point";const fg="band";const hg="bin-ordinal";const dg="continuous";const pg="discrete";const mg="discretizing";const gg="interpolating";const yg="temporal";function vg(t){return function(e){let n=e[0],i=e[1],r;if(i=i&&n[l]<=r){if(o<0)o=l;s=l}}if(o<0)return undefined;i=t.invertExtent(n[o]);r=t.invertExtent(n[s]);return[i[0]===undefined?i[1]:i[0],r[1]===undefined?r[0]:r[1]]}}function xg(){const t=Fp().unknown(undefined),e=t.domain,n=t.range;let i=[0,1],r,o,s=false,a=0,l=0,u=.5;delete t.unknown;function c(){const t=e().length,c=i[1]d+r*t));return n(c?p.reverse():p)}t.domain=function(t){if(arguments.length){e(t);return c()}else{return e()}};t.range=function(t){if(arguments.length){i=[+t[0],+t[1]];return c()}else{return i.slice()}};t.rangeRound=function(t){i=[+t[0],+t[1]];s=true;return c()};t.bandwidth=function(){return o};t.step=function(){return r};t.round=function(t){if(arguments.length){s=!!t;return c()}else{return s}};t.padding=function(t){if(arguments.length){l=Math.max(0,Math.min(1,t));a=l;return c()}else{return a}};t.paddingInner=function(t){if(arguments.length){a=Math.max(0,Math.min(1,t));return c()}else{return a}};t.paddingOuter=function(t){if(arguments.length){l=Math.max(0,Math.min(1,t));return c()}else{return l}};t.align=function(t){if(arguments.length){u=Math.max(0,Math.min(1,t));return c()}else{return u}};t.invertRange=function(t){if(t[0]==null||t[1]==null)return;const r=i[1]i[1-r])return;c=Math.max(0,ah(s,l)-1);f=l===u?c:ah(s,u)-1;if(l-s[c]>o+1e-10)++c;if(r){h=c;c=a-f;f=a-h}return c>f?undefined:e().slice(c,f+1)};t.invert=function(e){const n=t.invertRange([e,e]);return n?n[0]:n};t.copy=function(){return xg().domain(e()).range(i).round(s).paddingInner(a).paddingOuter(l).align(u)};return c()}function bg(t){const e=t.copy;t.padding=t.paddingOuter;delete t.paddingInner;t.copy=function(){return bg(e())};return t}function wg(){return bg(xg().paddingInner(1))}var kg=Array.prototype.map;function Mg(t){return kg.call(t,m.He)}const Sg=Array.prototype.slice;function Eg(){let t=[],e=[];function n(n){return n==null||n!==n?undefined:e[(ch(t,n)-1)%e.length]}n.domain=function(e){if(arguments.length){t=Mg(e);return n}else{return t.slice()}};n.range=function(t){if(arguments.length){e=Sg.call(t);return n}else{return e.slice()}};n.tickFormat=function(e,n){return Ud(t[0],(0,m.fj)(t),e==null?10:e,n)};n.copy=function(){return Eg().domain(n.domain()).range(n.range())};return n}const Tg=new Map;const $g=Symbol("vega_scale");function Dg(t){t[$g]=true;return t}function Ag(t){return t&&t[$g]===true}function Ng(t,e,n){const i=function n(){const i=e();if(!i.invertRange){i.invertRange=i.invert?vg(i):i.invertExtent?_g(i):undefined}i.type=t;return Dg(i)};i.metadata=(0,m.Rg)((0,m.IX)(n));return i}function zg(t,e,n){if(arguments.length>1){Tg.set(t,Ng(t,e,n));return this}else{return Rg(t)?Tg.get(t):undefined}}zg(Vm,qd);zg(Km,Id,dg);zg(Zm,Vd,[dg,Zm]);zg(Qm,ep,dg);zg(tg,np,dg);zg(eg,sp,dg);zg(ng,mp,[dg,yg]);zg(ig,gp,[dg,yg]);zg(rg,_p,[dg,gg]);zg(`${rg}-${Km}`,_p,[dg,gg]);zg(`${rg}-${Zm}`,xp,[dg,gg,Zm]);zg(`${rg}-${Qm}`,wp,[dg,gg]);zg(`${rg}-${tg}`,kp,[dg,gg]);zg(`${rg}-${eg}`,bp,[dg,gg]);zg(`${og}-${Km}`,Ep,[dg,gg]);zg(`${og}-${Zm}`,Tp,[dg,gg,Zm]);zg(`${og}-${Qm}`,Dp,[dg,gg]);zg(`${og}-${tg}`,Ap,[dg,gg]);zg(`${og}-${eg}`,$p,[dg,gg]);zg(sg,Np,[mg,sg]);zg(ag,zp,mg);zg(lg,Rp,mg);zg(hg,Eg,[pg,mg]);zg(ug,Fp,pg);zg(fg,xg,pg);zg(cg,wg,pg);function Rg(t){return Tg.has(t)}function Cg(t,e){const n=Tg.get(t);return n&&n.metadata[e]}function Og(t){return Cg(t,dg)}function Ug(t){return Cg(t,pg)}function Pg(t){return Cg(t,mg)}function Ig(t){return Cg(t,Zm)}function qg(t){return Cg(t,yg)}function Lg(t){return Cg(t,gg)}function Fg(t){return Cg(t,sg)}const jg=["clamp","base","constant","exponent"];function Wg(t,e){const n=e[0],i=(0,m.fj)(e)-n;return function(e){return t(n+e*i)}}function Xg(t,e,n){return Mp(Jg(e||"rgb",n),t)}function Hg(t,e){const n=new Array(e),i=e+1;for(let r=0;rt[e]?s[e](t[e]()):0));return s}}function Jg(t,e){const n=r[Gg(t)];return e!=null&&n&&n.gamma?n.gamma(e):n}function Gg(t){return"interpolate"+t.toLowerCase().split("-").map((t=>t[0].toUpperCase()+t.slice(1))).join("")}const Vg={blues:"cfe1f2bed8eca8cee58fc1de74b2d75ba3cf4592c63181bd206fb2125ca40a4a90",greens:"d3eecdc0e6baabdda594d3917bc77d60ba6c46ab5e329a512089430e7735036429",greys:"e2e2e2d4d4d4c4c4c4b1b1b19d9d9d8888887575756262624d4d4d3535351e1e1e",oranges:"fdd8b3fdc998fdb87bfda55efc9244f87f2cf06b18e4580bd14904b93d029f3303",purples:"e2e1efd4d4e8c4c5e0b4b3d6a3a0cc928ec3827cb97566ae684ea25c3696501f8c",reds:"fdc9b4fcb49afc9e80fc8767fa7051f6573fec3f2fdc2a25c81b1db21218970b13",blueGreen:"d5efedc1e8e0a7ddd18bd2be70c6a958ba9144ad77319c5d2089460e7736036429",bluePurple:"ccddecbad0e4a8c2dd9ab0d4919cc98d85be8b6db28a55a6873c99822287730f71",greenBlue:"d3eecec5e8c3b1e1bb9bd8bb82cec269c2ca51b2cd3c9fc7288abd1675b10b60a1",orangeRed:"fddcaffdcf9bfdc18afdad77fb9562f67d53ee6545e24932d32d1ebf130da70403",purpleBlue:"dbdaebc8cee4b1c3de97b7d87bacd15b9fc93a90c01e7fb70b70ab056199045281",purpleBlueGreen:"dbd8eac8cee4b0c3de93b7d872acd1549fc83892bb1c88a3097f8702736b016353",purpleRed:"dcc9e2d3b3d7ce9eccd186c0da6bb2e14da0e23189d91e6fc61159ab07498f023a",redPurple:"fccfccfcbec0faa9b8f98faff571a5ec539ddb3695c41b8aa908808d0179700174",yellowGreen:"e4f4acd1eca0b9e2949ed68880c97c62bb6e47aa5e3297502083440e723b036034",yellowOrangeBrown:"feeaa1fedd84fecc63feb746fca031f68921eb7215db5e0bc54c05ab3d038f3204",yellowOrangeRed:"fee087fed16ffebd59fea849fd903efc7335f9522bee3423de1b20ca0b22af0225",blueOrange:"134b852f78b35da2cb9dcae1d2e5eff2f0ebfce0bafbbf74e8932fc5690d994a07",brownBlueGreen:"704108a0651ac79548e3c78af3e6c6eef1eac9e9e48ed1c74da79e187a72025147",purpleGreen:"5b1667834792a67fb6c9aed3e6d6e8eff0efd9efd5aedda971bb75368e490e5e29",purpleOrange:"4114696647968f83b7b9b4d6dadbebf3eeeafce0bafbbf74e8932fc5690d994a07",redBlue:"8c0d25bf363adf745ef4ae91fbdbc9f2efeed2e5ef9dcae15da2cb2f78b3134b85",redGrey:"8c0d25bf363adf745ef4ae91fcdccbfaf4f1e2e2e2c0c0c0969696646464343434",yellowGreenBlue:"eff9bddbf1b4bde5b594d5b969c5be45b4c22c9ec02182b82163aa23479c1c3185",redYellowBlue:"a50026d4322cf16e43fcac64fedd90faf8c1dcf1ecabd6e875abd04a74b4313695",redYellowGreen:"a50026d4322cf16e43fcac63fedd8df9f7aed7ee8ea4d86e64bc6122964f006837",pinkYellowGreen:"8e0152c0267edd72adf0b3d6faddedf5f3efe1f2cab6de8780bb474f9125276419",spectral:"9e0142d13c4bf0704afcac63fedd8dfbf8b0e0f3a1a9dda269bda94288b55e4fa2",viridis:"440154470e61481a6c482575472f7d443a834144873d4e8a39568c35608d31688e2d708e2a788e27818e23888e21918d1f988b1fa08822a8842ab07f35b77943bf7154c56866cc5d7ad1518fd744a5db36bcdf27d2e21be9e51afde725",magma:"0000040404130b0924150e3720114b2c11603b0f704a107957157e651a80721f817f24828c29819a2e80a8327db6377ac43c75d1426fde4968e95462f1605df76f5cfa7f5efc8f65fe9f6dfeaf78febf84fece91fddea0fcedaffcfdbf",inferno:"0000040403130c0826170c3b240c4f330a5f420a68500d6c5d126e6b176e781c6d86216b932667a12b62ae305cbb3755c73e4cd24644dd513ae65c30ed6925f3771af8850ffb9506fca50afcb519fac62df6d645f2e661f3f484fcffa4",plasma:"0d088723069033059742039d5002a25d01a66a00a87801a88405a7900da49c179ea72198b12a90ba3488c33d80cb4779d35171da5a69e16462e76e5bed7953f2834cf68f44fa9a3dfca636fdb32ffec029fcce25f9dc24f5ea27f0f921",cividis:"00205100235800265d002961012b65042e670831690d346b11366c16396d1c3c6e213f6e26426e2c456e31476e374a6e3c4d6e42506e47536d4c566d51586e555b6e5a5e6e5e616e62646f66676f6a6a706e6d717270717573727976737c79747f7c75827f758682768985778c8877908b78938e789691789a94789e9778a19b78a59e77a9a177aea575b2a874b6ab73bbaf71c0b26fc5b66dc9b96acebd68d3c065d8c462ddc85fe2cb5ce7cf58ebd355f0d652f3da4ff7de4cfae249fce647",rainbow:"6e40aa883eb1a43db3bf3cafd83fa4ee4395fe4b83ff576eff6659ff7847ff8c38f3a130e2b72fcfcc36bee044aff05b8ff4576ff65b52f6673af27828ea8d1ddfa319d0b81cbecb23abd82f96e03d82e14c6edb5a5dd0664dbf6e40aa",sinebow:"ff4040fc582af47218e78d0bd5a703bfbf00a7d5038de70b72f41858fc2a40ff402afc5818f4720be78d03d5a700bfbf03a7d50b8de71872f42a58fc4040ff582afc7218f48d0be7a703d5bf00bfd503a7e70b8df41872fc2a58ff4040",turbo:"23171b32204a3e2a71453493493eae4b49c54a53d7485ee44569ee4074f53c7ff8378af93295f72e9ff42ba9ef28b3e926bce125c5d925cdcf27d5c629dcbc2de3b232e9a738ee9d3ff39347f68950f9805afc7765fd6e70fe667cfd5e88fc5795fb51a1f84badf545b9f140c5ec3cd0e637dae034e4d931ecd12ef4c92bfac029ffb626ffad24ffa223ff9821ff8d1fff821dff771cfd6c1af76118f05616e84b14df4111d5380fcb2f0dc0260ab61f07ac1805a313029b0f00950c00910b00",browns:"eedbbdecca96e9b97ae4a865dc9856d18954c7784cc0673fb85536ad44339f3632",tealBlues:"bce4d89dd3d181c3cb65b3c245a2b9368fae347da0306a932c5985",teals:"bbdfdfa2d4d58ac9c975bcbb61b0af4da5a43799982b8b8c1e7f7f127273006667",warmGreys:"dcd4d0cec5c1c0b8b4b3aaa7a59c9998908c8b827f7e7673726866665c5a59504e",goldGreen:"f4d166d5ca60b6c35c98bb597cb25760a6564b9c533f8f4f33834a257740146c36",goldOrange:"f4d166f8be5cf8aa4cf5983bf3852aef701be2621fd65322c54923b142239e3a26",goldRed:"f4d166f6be59f9aa51fc964ef6834bee734ae56249db5247cf4244c43141b71d3e",lightGreyRed:"efe9e6e1dad7d5cbc8c8bdb9bbaea9cd967ddc7b43e15f19df4011dc000b",lightGreyTeal:"e4eaead6dcddc8ced2b7c2c7a6b4bc64b0bf22a6c32295c11f85be1876bc",lightMulti:"e0f1f2c4e9d0b0de9fd0e181f6e072f6c053f3993ef77440ef4a3c",lightOrange:"f2e7daf7d5baf9c499fab184fa9c73f68967ef7860e8645bde515bd43d5b",lightTealBlue:"e3e9e0c0dccf9aceca7abfc859afc0389fb9328dad2f7ca0276b95255988",darkBlue:"3232322d46681a5c930074af008cbf05a7ce25c0dd38daed50f3faffffff",darkGold:"3c3c3c584b37725e348c7631ae8b2bcfa424ecc31ef9de30fff184ffffff",darkGreen:"3a3a3a215748006f4d048942489e4276b340a6c63dd2d836ffeb2cffffaa",darkMulti:"3737371f5287197d8c29a86995ce3fffe800ffffff",darkRed:"3434347036339e3c38cc4037e75d1eec8620eeab29f0ce32ffeb2c"};const Kg={category10:"1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf",category20:"1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5",category20b:"393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6",category20c:"3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9",tableau10:"4c78a8f58518e4575672b7b254a24beeca3bb279a2ff9da69d755dbab0ac",tableau20:"4c78a89ecae9f58518ffbf7954a24b88d27ab79a20f2cf5b43989483bcb6e45756ff9d9879706ebab0acd67195fcbfd2b279a2d6a5c99e765fd8b5a5",accent:"7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666",dark2:"1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666",paired:"a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928",pastel1:"fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2",pastel2:"b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc",set1:"e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999",set2:"66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3",set3:"8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"};function Zg(t){const e=t.length/6|0,n=new Array(e);for(let i=0;iXg(Zg(t))));function ey(t,e){t=t&&t.toLowerCase();if(arguments.length>1){ty[t]=e;return this}else{return ty[t]}}const ny="symbol";const iy="discrete";const ry="gradient";const oy=t=>(0,m.kJ)(t)?t.map((t=>String(t))):String(t);const sy=(t,e)=>t[1]-e[1];const ay=(t,e)=>e[1]-t[1];function ly(t,e,n){let i;if((0,m.hj)(e)){if(t.bins){e=Math.max(e,t.bins.length)}if(n!=null){e=Math.min(e,Math.floor((0,m.yP)(t.domain())/n||1))}}if((0,m.Kn)(e)){i=e.step;e=e.interval}if((0,m.HD)(e)){e=t.type===ng?_n(e):t.type==ig?xn(e):(0,m.vU)("Only time and utc scales accept interval strings.");if(i)e=e.every(i)}return e}function uy(t,e,n){let i=t.range(),r=i[0],o=(0,m.fj)(i),s=sy;if(r>o){i=o;o=r;r=i;s=ay}r=Math.floor(r);o=Math.ceil(o);e=e.map((e=>[e,t(e)])).filter((t=>r<=t[1]&&t[1]<=o)).sort(s).map((t=>t[0]));if(n>0&&e.length>1){const t=[e[0],(0,m.fj)(e)];while(e.length>n&&e.length>=3){e=e.filter(((t,e)=>!(e%2)))}if(e.length<3){e=t}}return e}function cy(t,e){return t.bins?uy(t,t.bins):t.ticks?t.ticks(e):t.domain()}function fy(t,e,n,i,r,o){const s=e.type;let a=oy;if(s===ng||r===ng){a=t.timeFormat(i)}else if(s===ig||r===ig){a=t.utcFormat(i)}else if(Ig(s)){const r=t.formatFloat(i);if(o||e.bins){a=r}else{const t=hy(e,n,false);a=e=>t(e)?r(e):""}}else if(e.tickFormat){const r=e.domain();a=t.formatSpan(r[0],r[r.length-1],n,i)}else if(i){a=t.format(i)}return a}function hy(t,e,n){const i=cy(t,e),r=t.base(),o=Math.log(r),s=Math.max(1,r*e/i.length);const a=t=>{let e=t/Math.pow(r,Math.round(Math.log(t)/o));if(e*r1?i[1]-i[0]:i[0],s;for(s=1;sdy[t.type]||t.bins;function xy(t,e,n,i,r,o,s){const a=py[e.type]&&o!==ng&&o!==ig?gy(t,e,r):fy(t,e,n,r,o,s);return i===ny&&_y(e)?by(a):i===iy?ky(a):My(a)}const by=t=>(e,n,i)=>{const r=wy(i[n+1],wy(i.max,+Infinity)),o=Sy(e,t),s=Sy(r,t);return o&&s?o+" – "+s:s?"< "+s:"≥ "+o};const wy=(t,e)=>t!=null?t:e;const ky=t=>(e,n)=>n?t(e):null;const My=t=>e=>t(e);const Sy=(t,e)=>Number.isFinite(t)?e(t):null;function Ey(t){const e=t.domain(),n=e.length-1;let i=+e[0],r=+(0,m.fj)(e),o=r-i;if(t.type===lg){const t=n?o/n:.1;i-=t;r+=t;o=r-i}return t=>(t-i)/o}function Ty(t,e,n,i){const r=i||e.type;if((0,m.HD)(n)&&qg(r)){n=n.replace(/%a/g,"%A").replace(/%b/g,"%B")}return!n&&r===ng?t.timeFormat("%A, %d %B %Y, %X"):!n&&r===ig?t.utcFormat("%A, %d %B %Y, %X UTC"):xy(t,e,5,null,n,i,true)}function $y(t,e,n){n=n||{};const i=Math.max(3,n.maxlen||7),r=Ty(t,e,n.format,n.formatType);if(Pg(e.type)){const t=my(e).slice(1).map(r),n=t.length;return`${n} boundar${n===1?"y":"ies"}: ${t.join(", ")}`}else if(Ug(e.type)){const t=e.domain(),n=t.length,o=n>i?t.slice(0,i-2).map(r).join(", ")+", ending with "+t.slice(-1).map(r):t.map(r).join(", ");return`${n} value${n===1?"":"s"}: ${o}`}else{const t=e.domain();return`values from ${r(t[0])} to ${r((0,m.fj)(t))}`}}let Dy=0;function Ay(){Dy=0}const Ny="p_";function zy(t){return t&&t.gradient}function Ry(t,e,n){const i=t.gradient;let r=t.id,o=i==="radial"?Ny:"";if(!r){r=t.id="gradient_"+Dy++;if(i==="radial"){t.x1=Cy(t.x1,.5);t.y1=Cy(t.y1,.5);t.r1=Cy(t.r1,0);t.x2=Cy(t.x2,.5);t.y2=Cy(t.y2,.5);t.r2=Cy(t.r2,.5);o=Ny}else{t.x1=Cy(t.x1,0);t.y1=Cy(t.y1,0);t.x2=Cy(t.x2,1);t.y2=Cy(t.y2,0)}}e[r]=t;return"url("+(n||"")+"#"+o+r+")"}function Cy(t,e){return t!=null?t:e}function Oy(t,e){var n=[],i;return i={gradient:"linear",x1:t?t[0]:0,y1:t?t[1]:0,x2:e?e[0]:1,y2:e?e[1]:0,stops:n,stop:function(t,e){n.push({offset:t,color:e});return i}}}const Uy={basis:{curve:nc},"basis-closed":{curve:oc},"basis-open":{curve:ac},bundle:{curve:uc,tension:"beta",value:.85},cardinal:{curve:hc,tension:"tension",value:0},"cardinal-open":{curve:pc,tension:"tension",value:0},"cardinal-closed":{curve:gc,tension:"tension",value:0},"catmull-rom":{curve:zc,tension:"alpha",value:.5},"catmull-rom-closed":{curve:Cc,tension:"alpha",value:.5},"catmull-rom-open":{curve:Uc,tension:"alpha",value:.5},linear:{curve:Ic},"linear-closed":{curve:Lc},monotone:{horizontal:Gc,vertical:Jc},natural:{curve:Zc},step:{curve:tf},"step-after":{curve:nf},"step-before":{curve:ef}};function Py(t,e,n){var i=(0,m.nr)(Uy,t)&&Uy[t],r=null;if(i){r=i.curve||i[e||"vertical"];if(i.tension&&n!=null){r=r[i.tension](n)}}return r}const Iy={m:2,l:2,h:1,v:1,z:0,c:6,s:4,q:4,t:2,a:7};const qy=/[mlhvzcsqta]([^mlhvzcsqta]+|$)/gi;const Ly=/^[+-]?(([0-9]*\.[0-9]+)|([0-9]+\.)|([0-9]+))([eE][+-]?[0-9]+)?/;const Fy=/^((\s+,?\s*)|(,\s*))/;const jy=/^[01]/;function Wy(t){const e=[];const n=t.match(qy)||[];n.forEach((t=>{let n=t[0];const i=n.toLowerCase();const r=Iy[i];const o=Xy(i,r,t.slice(1).trim());const s=o.length;if(s1){m=Math.sqrt(m);n*=m;i*=m}const g=h/n;const y=f/n;const v=-f/i;const _=h/i;const x=g*a+y*l;const b=v*a+_*l;const w=g*t+y*e;const k=v*t+_*e;const M=(w-x)*(w-x)+(k-b)*(k-b);let S=1/M-.25;if(S<0)S=0;let E=Math.sqrt(S);if(o==r)E=-E;const T=.5*(x+w)-E*(k-b);const $=.5*(b+k)+E*(w-x);const D=Math.atan2(b-$,x-T);const A=Math.atan2(k-$,w-T);let N=A-D;if(N<0&&o===1){N+=Jy}else if(N>0&&o===0){N-=Jy}const z=Math.ceil(Math.abs(N/(Yy+.001)));const R=[];for(let C=0;C+t}function gv(t,e,n){return Math.max(e,Math.min(t,n))}function yv(){var t=fv,e=hv,n=dv,i=pv,r=mv(0),o=r,s=r,a=r,l=null;function u(u,c,f){var h,d=c!=null?c:+t.call(this,u),p=f!=null?f:+e.call(this,u),m=+n.call(this,u),g=+i.call(this,u),y=Math.min(m,g)/2,v=gv(+r.call(this,u),0,y),_=gv(+o.call(this,u),0,y),x=gv(+s.call(this,u),0,y),b=gv(+a.call(this,u),0,y);if(!l)l=h=hf();if(v<=0&&_<=0&&x<=0&&b<=0){l.rect(d,p,m,g)}else{var w=d+m,k=p+g;l.moveTo(d+v,p);l.lineTo(w-_,p);l.bezierCurveTo(w-cv*_,p,w,p+cv*_,w,p+_);l.lineTo(w,k-b);l.bezierCurveTo(w,k-cv*b,w-cv*b,k,w-b,k);l.lineTo(d+x,k);l.bezierCurveTo(d+cv*x,k,d,k-cv*x,d,k-x);l.lineTo(d,p+v);l.bezierCurveTo(d,p+cv*v,d+cv*v,p,d+v,p);l.closePath()}if(h){l=null;return h+""||null}}u.x=function(e){if(arguments.length){t=mv(e);return u}else{return t}};u.y=function(t){if(arguments.length){e=mv(t);return u}else{return e}};u.width=function(t){if(arguments.length){n=mv(t);return u}else{return n}};u.height=function(t){if(arguments.length){i=mv(t);return u}else{return i}};u.cornerRadius=function(t,e,n,i){if(arguments.length){r=mv(t);o=e!=null?mv(e):r;a=n!=null?mv(n):r;s=i!=null?mv(i):o;return u}else{return r}};u.context=function(t){if(arguments.length){l=t==null?null:t;return u}else{return l}};return u}function vv(){var t,e,n,i,r=null,o,s,a,l;function u(t,e,n){const i=n/2;if(o){var u=a-e,c=t-s;if(u||c){var f=Math.sqrt(u*u+c*c),h=(u/=f)*l,d=(c/=f)*l,p=Math.atan2(c,u);r.moveTo(s-h,a-d);r.lineTo(t-u*i,e-c*i);r.arc(t,e,i,p-Math.PI,p);r.lineTo(s+h,a+d);r.arc(s,a,l,p,p+Math.PI)}else{r.arc(t,e,i,0,Jy)}r.closePath()}else{o=1}s=t;a=e;l=i}function c(s){var a,l=s.length,c,f=false,h;if(r==null)r=h=hf();for(a=0;a<=l;++a){if(!(at.x||0,bv=t=>t.y||0,wv=t=>t.width||0,kv=t=>t.height||0,Mv=t=>(t.x||0)+(t.width||0),Sv=t=>(t.y||0)+(t.height||0),Ev=t=>t.startAngle||0,Tv=t=>t.endAngle||0,$v=t=>t.padAngle||0,Dv=t=>t.innerRadius||0,Av=t=>t.outerRadius||0,Nv=t=>t.cornerRadius||0,zv=t=>_v(t.cornerRadiusTopLeft,t.cornerRadius)||0,Rv=t=>_v(t.cornerRadiusTopRight,t.cornerRadius)||0,Cv=t=>_v(t.cornerRadiusBottomRight,t.cornerRadius)||0,Ov=t=>_v(t.cornerRadiusBottomLeft,t.cornerRadius)||0,Uv=t=>_v(t.size,64),Pv=t=>t.size||1,Iv=t=>!(t.defined===false),qv=t=>av(t.shape||"circle");const Lv=wf().startAngle(Ev).endAngle(Tv).padAngle($v).innerRadius(Dv).outerRadius(Av).cornerRadius(Nv),Fv=$f().x(xv).y1(bv).y0(Sv).defined(Iv),jv=$f().y(bv).x1(xv).x0(Mv).defined(Iv),Wv=Tf().x(xv).y(bv).defined(Iv),Xv=yv().x(xv).y(bv).width(wv).height(kv).cornerRadius(zv,Rv,Cv,Ov),Hv=ih().type(qv).size(Uv),Bv=vv().x(xv).y(bv).defined(Iv).size(Pv);function Yv(t){return t.cornerRadius||t.cornerRadiusTopLeft||t.cornerRadiusTopRight||t.cornerRadiusBottomRight||t.cornerRadiusBottomLeft}function Jv(t,e){return Lv.context(t)(e)}function Gv(t,e){const n=e[0],i=n.interpolate||"linear";return(n.orient==="horizontal"?jv:Fv).curve(Py(i,n.orient,n.tension)).context(t)(e)}function Vv(t,e){const n=e[0],i=n.interpolate||"linear";return Wv.curve(Py(i,n.orient,n.tension)).context(t)(e)}function Kv(t,e,n,i){return Xv.context(t)(e,n,i)}function Zv(t,e){return(e.mark.shape||e.shape).context(t)(e)}function Qv(t,e){return Hv.context(t)(e)}function t_(t,e){return Bv.context(t)(e)}var e_=1;function n_(){e_=1}function i_(t,e,n){var i=e.clip,r=t._defs,o=e.clip_id||(e.clip_id="clip"+e_++),s=r.clipping[o]||(r.clipping[o]={id:o});if((0,m.mf)(i)){s.path=i(null)}else if(Yv(n)){s.path=Kv(null,n,0,0)}else{s.width=n.width||0;s.height=n.height||0}return"url(#"+o+")"}function r_(t){this.clear();if(t)this.union(t)}r_.prototype={clone(){return new r_(this)},clear(){this.x1=+Number.MAX_VALUE;this.y1=+Number.MAX_VALUE;this.x2=-Number.MAX_VALUE;this.y2=-Number.MAX_VALUE;return this},empty(){return this.x1===+Number.MAX_VALUE&&this.y1===+Number.MAX_VALUE&&this.x2===-Number.MAX_VALUE&&this.y2===-Number.MAX_VALUE},equals(t){return this.x1===t.x1&&this.y1===t.y1&&this.x2===t.x2&&this.y2===t.y2},set(t,e,n,i){if(nthis.x2)this.x2=t;if(e>this.y2)this.y2=e;return this},expand(t){this.x1-=t;this.y1-=t;this.x2+=t;this.y2+=t;return this},round(){this.x1=Math.floor(this.x1);this.y1=Math.floor(this.y1);this.x2=Math.ceil(this.x2);this.y2=Math.ceil(this.y2);return this},scale(t){this.x1*=t;this.y1*=t;this.x2*=t;this.y2*=t;return this},translate(t,e){this.x1+=t;this.x2+=t;this.y1+=e;this.y2+=e;return this},rotate(t,e,n){const i=this.rotatedPoints(t,e,n);return this.clear().add(i[0],i[1]).add(i[2],i[3]).add(i[4],i[5]).add(i[6],i[7])},rotatedPoints(t,e,n){var{x1:i,y1:r,x2:o,y2:s}=this,a=Math.cos(t),l=Math.sin(t),u=e-e*a+n*l,c=n-e*l-n*a;return[a*i-l*r+u,l*i+a*r+c,a*i-l*s+u,l*i+a*s+c,a*o-l*r+u,l*o+a*r+c,a*o-l*s+u,l*o+a*s+c]},union(t){if(t.x1this.x2)this.x2=t.x2;if(t.y2>this.y2)this.y2=t.y2;return this},intersect(t){if(t.x1>this.x1)this.x1=t.x1;if(t.y1>this.y1)this.y1=t.y1;if(t.x2=t.x2&&this.y1<=t.y1&&this.y2>=t.y2},alignsWith(t){return t&&(this.x1==t.x1||this.x2==t.x2||this.y1==t.y1||this.y2==t.y2)},intersects(t){return t&&!(this.x2t.x2||this.y2t.y2)},contains(t,e){return!(tthis.x2||ethis.y2)},width(){return this.x2-this.x1},height(){return this.y2-this.y1}};function o_(t){this.mark=t;this.bounds=this.bounds||new r_}function s_(t){o_.call(this,t);this.items=this.items||[]}(0,m.XW)(s_,o_);function a_(t){this._pending=0;this._loader=t||mo()}function l_(t){t._pending+=1}function u_(t){t._pending-=1}a_.prototype={pending(){return this._pending},sanitizeURL(t){const e=this;l_(e);return e._loader.sanitize(t,{context:"href"}).then((t=>{u_(e);return t})).catch((()=>{u_(e);return null}))},loadImage(t){const e=this,n=oh();l_(e);return e._loader.sanitize(t,{context:"image"}).then((t=>{const i=t.href;if(!i||!n)throw{url:i};const r=new n;const o=(0,m.nr)(t,"crossOrigin")?t.crossOrigin:"anonymous";if(o!=null)r.crossOrigin=o;r.onload=()=>u_(e);r.onerror=()=>u_(e);r.src=i;return r})).catch((t=>{u_(e);return{complete:false,width:0,height:0,src:t&&t.url||""}}))},ready(){const t=this;return new Promise((e=>{function n(i){if(!t.pending())e(i);else setTimeout((()=>{n(true)}),10)}n(false)}))}};function c_(t,e,n){if(e.stroke&&e.opacity!==0&&e.strokeOpacity!==0){const i=e.strokeWidth!=null?+e.strokeWidth:1;t.expand(i+(n?f_(e,i):0))}return t}function f_(t,e){return t.strokeJoin&&t.strokeJoin!=="miter"?0:e}const h_=Jy-1e-8;let d_,p_,m_,g_,y_,v_,__,x_;const b_=(t,e)=>d_.add(t,e);const w_=(t,e)=>b_(p_=t,m_=e);const k_=t=>b_(t,d_.y1);const M_=t=>b_(d_.x1,t);const S_=(t,e)=>y_*t+__*e;const E_=(t,e)=>v_*t+x_*e;const T_=(t,e)=>b_(S_(t,e),E_(t,e));const $_=(t,e)=>w_(S_(t,e),E_(t,e));function D_(t,e){d_=t;if(e){g_=e*Hy;y_=x_=Math.cos(g_);v_=Math.sin(g_);__=-v_}else{y_=x_=1;g_=v_=__=0}return A_}const A_={beginPath(){},closePath(){},moveTo:$_,lineTo:$_,rect(t,e,n,i){if(g_){T_(t+n,e);T_(t+n,e+i);T_(t,e+i);$_(t,e)}else{b_(t+n,e+i);w_(t,e)}},quadraticCurveTo(t,e,n,i){const r=S_(t,e),o=E_(t,e),s=S_(n,i),a=E_(n,i);N_(p_,r,s,k_);N_(m_,o,a,M_);w_(s,a)},bezierCurveTo(t,e,n,i,r,o){const s=S_(t,e),a=E_(t,e),l=S_(n,i),u=E_(n,i),c=S_(r,o),f=E_(r,o);z_(p_,s,l,c,k_);z_(m_,a,u,f,M_);w_(c,f)},arc(t,e,n,i,r,o){i+=g_;r+=g_;p_=n*Math.cos(r)+t;m_=n*Math.sin(r)+e;if(Math.abs(r-i)>h_){b_(t-n,e-n);b_(t+n,e+n)}else{const s=i=>b_(n*Math.cos(i)+t,n*Math.sin(i)+e);let a,l;s(i);s(r);if(r!==i){i=i%Jy;if(i<0)i+=Jy;r=r%Jy;if(r<0)r+=Jy;if(rr;++l,a-=Yy)s(a)}else{a=i-i%Yy+Yy;for(l=0;l<4&&aBy){c=s*s+a*o;if(c>=0){c=Math.sqrt(c);l=(-s+c)/o;u=(-s-c)/o}}else{l=.5*a/s}if(0h)return false;else if(m>f)f=m}else if(d>0){if(m0){t.globalAlpha=n;t.fillStyle=H_(t,e,e.fill);return true}else{return false}}var Y_=[];function J_(t,e,n){var i=(i=e.strokeWidth)!=null?i:1;if(i<=0)return false;n*=e.strokeOpacity==null?1:e.strokeOpacity;if(n>0){t.globalAlpha=n;t.strokeStyle=H_(t,e,e.stroke);t.lineWidth=i;t.lineCap=e.strokeCap||"butt";t.lineJoin=e.strokeJoin||"miter";t.miterLimit=e.strokeMiterLimit||10;if(t.setLineDash){t.setLineDash(e.strokeDash||Y_);t.lineDashOffset=e.strokeDashOffset||0}return true}else{return false}}function G_(t,e){return t.zindex-e.zindex||t.index-e.index}function V_(t){if(!t.zdirty)return t.zitems;var e=t.items,n=[],i,r,o;for(r=0,o=e.length;r=0;){if(i=e(n[r]))return i}if(n===o){for(n=t.items,r=n.length;--r>=0;){if(!n[r].zindex){if(i=e(n[r]))return i}}}return null}function Q_(t){return function(e,n,i){K_(n,(n=>{if(!i||i.intersects(n.bounds)){ex(t,e,n,n)}}))}}function tx(t){return function(e,n,i){if(n.items.length&&(!i||i.intersects(n.bounds))){ex(t,e,n.items[0],n.items)}}}function ex(t,e,n,i){var r=n.opacity==null?1:n.opacity;if(r===0)return;if(t(e,i))return;F_(e,n);if(n.fill&&B_(e,n,r)){e.fill()}if(n.stroke&&J_(e,n,r)){e.stroke()}}function nx(t){t=t||m.yb;return function(e,n,i,r,o,s){i*=e.pixelRatio;r*=e.pixelRatio;return Z_(n,(n=>{const a=n.bounds;if(a&&!a.contains(o,s)||!a)return;if(t(e,n,i,r,o,s))return n}))}}function ix(t,e){return function(n,i,r,o){var s=Array.isArray(i)?i[0]:i,a=e==null?s.fill:e,l=s.stroke&&n.isPointInStroke,u,c;if(l){u=s.strokeWidth;c=s.strokeCap;n.lineWidth=u!=null?u:1;n.lineCap=c!=null?c:"butt"}return t(n,i)?false:a&&n.isPointInPath(r,o)||l&&n.isPointInStroke(r,o)}}function rx(t){return nx(ix(t))}function ox(t,e){return"translate("+t+","+e+")"}function sx(t){return"rotate("+t+")"}function ax(t,e){return"scale("+t+","+e+")"}function lx(t){return ox(t.x||0,t.y||0)}function ux(t){return ox(t.x||0,t.y||0)+(t.angle?" "+sx(t.angle):"")}function cx(t){return ox(t.x||0,t.y||0)+(t.angle?" "+sx(t.angle):"")+(t.scaleX||t.scaleY?" "+ax(t.scaleX||1,t.scaleY||1):"")}function fx(t,e,n){function i(t,n){t("transform",ux(n));t("d",e(null,n))}function r(t,n){e(D_(t,n.angle),n);return c_(t,n).translate(n.x||0,n.y||0)}function o(t,n){var i=n.x||0,r=n.y||0,o=n.angle||0;t.translate(i,r);if(o)t.rotate(o*=Hy);t.beginPath();e(t,n);if(o)t.rotate(-o);t.translate(-i,-r)}return{type:t,tag:"path",nested:false,attr:i,bound:r,draw:Q_(o),pick:rx(o),isect:n||U_(o)}}var hx=fx("arc",Jv);function dx(t,e){var n=t[0].orient==="horizontal"?e[1]:e[0],i=t[0].orient==="horizontal"?"y":"x",r=t.length,o=+Infinity,s,a;while(--r>=0){if(t[r].defined===false)continue;a=Math.abs(t[r][i]-n);if(a=0){if(t[i].defined===false)continue;r=t[i].x-e[0];o=t[i].y-e[1];s=r*r+o*o;if(s=0){if(t[n].defined===false)continue;i=t[n].x-e[0];r=t[n].y-e[1];o=i*i+r*r;i=t[n].size||1;if(o.5&&e<1.5?.5-Math.abs(e-1):0}function bx(t,e){t("transform",lx(e))}function wx(t,e){const n=xx(e);t("d",Kv(null,e,n,n))}function kx(t,e){t("class","background");t("aria-hidden",true);wx(t,e)}function Mx(t,e){t("class","foreground");t("aria-hidden",true);if(e.strokeForeground){wx(t,e)}else{t("d","")}}function Sx(t,e,n){const i=e.clip?i_(n,e,e):null;t("clip-path",i)}function Ex(t,e){if(!e.clip&&e.items){const n=e.items,i=n.length;for(let e=0;e{const i=e.x||0,r=e.y||0,o=e.strokeForeground,s=e.opacity==null?1:e.opacity;if((e.stroke||e.fill)&&s){Tx(t,e,i,r);F_(t,e);if(e.fill&&B_(t,e,s)){t.fill()}if(e.stroke&&!o&&J_(t,e,s)){t.stroke()}}t.save();t.translate(i,r);if(e.clip)_x(t,e);if(n)n.translate(-i,-r);K_(e,(e=>{this.draw(t,e,n)}));if(n)n.translate(i,r);t.restore();if(o&&e.stroke&&s){Tx(t,e,i,r);F_(t,e);if(J_(t,e,s)){t.stroke()}}}))}function zx(t,e,n,i,r,o){if(e.bounds&&!e.bounds.contains(r,o)||!e.items){return null}const s=n*t.pixelRatio,a=i*t.pixelRatio;return Z_(e,(l=>{let u,c,f;const h=l.bounds;if(h&&!h.contains(r,o))return;c=l.x||0;f=l.y||0;const d=c+(l.width||0),p=f+(l.height||0),m=l.clip;if(m&&(rd||op))return;t.save();t.translate(c,f);c=r-c;f=o-f;if(m&&Yv(l)&&!Ax(t,l,s,a)){t.restore();return null}const g=l.strokeForeground,y=e.interactive!==false;if(y&&g&&l.stroke&&Dx(t,l,s,a)){t.restore();return l}u=Z_(l,(t=>Rx(t,c,f)?this.pick(t,n,i,c,f):null));if(!u&&y&&(l.fill||!g&&l.stroke)&&$x(t,l,s,a)){u=l}t.restore();return u||null}))}function Rx(t,e,n){return(t.interactive!==false||t.marktype==="group")&&t.bounds&&t.bounds.contains(e,n)}var Cx={type:"group",tag:"g",nested:false,attr:bx,bound:Ex,draw:Nx,pick:zx,isect:I_,content:Sx,background:kx,foreground:Mx};var Ox={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",version:"1.1"};function Ux(t,e){var n=t.image;if(!n||t.url&&t.url!==n.url){n={complete:false,width:0,height:0};e.loadImage(t.url).then((e=>{t.image=e;t.image.url=t.url}))}return n}function Px(t,e){return t.width!=null?t.width:!e||!e.width?0:t.aspect!==false&&t.height?t.height*e.width/e.height:e.width}function Ix(t,e){return t.height!=null?t.height:!e||!e.height?0:t.aspect!==false&&t.width?t.width*e.height/e.width:e.height}function qx(t,e){return t==="center"?e/2:t==="right"?e:0}function Lx(t,e){return t==="middle"?e/2:t==="bottom"?e:0}function Fx(t,e,n){const i=Ux(e,n),r=Px(e,i),o=Ix(e,i),s=(e.x||0)-qx(e.align,r),a=(e.y||0)-Lx(e.baseline,o),l=!i.src&&i.toDataURL?i.toDataURL():i.src||"";t("href",l,Ox["xmlns:xlink"],"xlink:href");t("transform",ox(s,a));t("width",r);t("height",o);t("preserveAspectRatio",e.aspect===false?"none":"xMidYMid")}function jx(t,e){const n=e.image,i=Px(e,n),r=Ix(e,n),o=(e.x||0)-qx(e.align,i),s=(e.y||0)-Lx(e.baseline,r);return t.set(o,s,o+i,s+r)}function Wx(t,e,n){K_(e,(e=>{if(n&&!n.intersects(e.bounds))return;const i=Ux(e,this);let r=Px(e,i);let o=Ix(e,i);if(r===0||o===0)return;let s=(e.x||0)-qx(e.align,r),a=(e.y||0)-Lx(e.baseline,o),l,u,c,f;if(e.aspect!==false){u=i.width/i.height;c=e.width/e.height;if(u===u&&c===c&&u!==c){if(c{if(n&&!n.intersects(e.bounds))return;var i=e.opacity==null?1:e.opacity;if(i&&nb(t,e,i)){F_(t,e);t.stroke()}}))}function rb(t,e,n,i){if(!t.isPointInStroke)return false;return nb(t,e,1)&&t.isPointInStroke(n,i)}var ob={type:"rule",tag:"line",nested:false,attr:tb,bound:eb,draw:ib,pick:nx(rb),isect:q_};var sb=fx("shape",Zv);var ab=fx("symbol",Qv,P_);const lb=(0,m.$m)();var ub={height:mb,measureWidth:db,estimateWidth:fb,width:fb,canvas:cb};cb(true);function cb(t){ub.width=t&&C_?db:fb}function fb(t,e){return hb(xb(t,e),mb(t))}function hb(t,e){return~~(.8*t.length*e)}function db(t,e){return mb(t)<=0||!(e=xb(t,e))?0:pb(e,Mb(t))}function pb(t,e){const n=`(${e}) ${t}`;let i=lb.get(n);if(i===undefined){C_.font=e;i=C_.measureText(t).width;lb.set(n,i)}return i}function mb(t){return t.fontSize!=null?+t.fontSize||0:11}function gb(t){return t.lineHeight!=null?t.lineHeight:mb(t)+2}function yb(t){return(0,m.kJ)(t)?t.length>1?t:t[0]:t}function vb(t){return yb(t.lineBreak&&t.text&&!(0,m.kJ)(t.text)?t.text.split(t.lineBreak):t.text)}function _b(t){const e=vb(t);return((0,m.kJ)(e)?e.length-1:0)*gb(t)}function xb(t,e){const n=e==null?"":(e+"").trim();return t.limit>0&&n.length?wb(t,n):n}function bb(t){if(ub.width===db){const e=Mb(t);return t=>pb(t,e)}else{const e=mb(t);return t=>hb(t,e)}}function wb(t,e){var n=+t.limit,i=bb(t);if(i(e)>>1;if(i(e.slice(l))>n)s=l+1;else a=l}return r+e.slice(s)}else{while(s>>1);if(i(e.slice(0,l))Math.max(t,ub.width(e,n))),0)}else{f=ub.width(e,c)}if(r==="center"){l-=f/2}else if(r==="right"){l-=f}else;t.set(l+=s,u+=a,l+f,u+i);if(e.angle&&!n){t.rotate(e.angle*Hy,s,a)}else if(n===2){return t.rotatedPoints(e.angle*Hy,s,a)}return t}function Nb(t,e,n){K_(e,(e=>{var i=e.opacity==null?1:e.opacity,r,o,s,a,l,u,c;if(n&&!n.intersects(e.bounds)||i===0||e.fontSize<=0||e.text==null||e.text.length===0)return;t.font=Mb(e);t.textAlign=e.align||"left";r=$b(e);o=r.x1,s=r.y1;if(e.angle){t.save();t.translate(o,s);t.rotate(e.angle*Hy);o=s=0}o+=e.dx||0;s+=(e.dy||0)+Sb(e);u=vb(e);F_(t,e);if((0,m.kJ)(u)){l=gb(e);for(a=0;ae)t.removeChild(n[--i]);return t}function Vb(t){return"mark-"+t.marktype+(t.role?" role-"+t.role:"")+(t.name?" "+t.name:"")}function Kb(t,e){const n=e.getBoundingClientRect();return[t.clientX-n.left-(e.clientLeft||0),t.clientY-n.top-(e.clientTop||0)]}function Zb(t,e,n,i){var r=t&&t.mark,o,s;if(r&&(o=Ub[r.marktype]).tip){s=Kb(e,n);s[0]-=i[0];s[1]-=i[1];while(t=t.mark.group){s[0]-=t.x||0;s[1]-=t.y||0}t=o.tip(r.items,s)}return t}function Qb(t,e){this._active=null;this._handlers={};this._loader=t||mo();this._tooltip=e||tw}function tw(t,e,n,i){t.element().setAttribute("title",i||"")}Qb.prototype={initialize(t,e,n){this._el=t;this._obj=n||null;return this.origin(e)},element(){return this._el},canvas(){return this._el&&this._el.firstChild},origin(t){if(arguments.length){this._origin=t||[0,0];return this}else{return this._origin.slice()}},scene(t){if(!arguments.length)return this._scene;this._scene=t;return this},on(){},off(){},_handlerIndex(t,e,n){for(let i=t?t.length:0;--i>=0;){if(t[i].type===e&&(!n||t[i].handler===n)){return i}}return-1},handlers(t){const e=this._handlers,n=[];if(t){n.push(...e[this.eventName(t)])}else{for(const t in e){n.push(...e[t])}}return n},eventName(t){const e=t.indexOf(".");return e<0?t:t.slice(0,e)},handleHref(t,e,n){this._loader.sanitize(n,{context:"href"}).then((e=>{const n=new MouseEvent(t.type,t),i=Bb(null,"a");for(const t in e)i.setAttribute(t,e[t]);i.dispatchEvent(n)})).catch((()=>{}))},handleTooltip(t,e,n){if(e&&e.tooltip!=null){e=Zb(e,t,this.canvas(),this._origin);const i=n&&e&&e.tooltip||null;this._tooltip.call(this._obj,this,t,e,i)}},getItemBoundingClientRect(t){const e=this.canvas();if(!e)return;const n=e.getBoundingClientRect(),i=this._origin,r=t.bounds,o=r.width(),s=r.height();let a=r.x1+i[0]+n.left,l=r.y1+i[1]+n.top;while(t.mark&&(t=t.mark.group)){a+=t.x||0;l+=t.y||0}return{x:a,y:l,width:o,height:s,left:a,top:l,right:a+o,bottom:l+s}}};function ew(t){this._el=null;this._bgcolor=null;this._loader=new a_(t)}ew.prototype={initialize(t,e,n,i,r){this._el=t;return this.resize(e,n,i,r)},element(){return this._el},canvas(){return this._el&&this._el.firstChild},background(t){if(arguments.length===0)return this._bgcolor;this._bgcolor=t;return this},resize(t,e,n,i){this._width=t;this._height=e;this._origin=n||[0,0];this._scale=i||1;return this},dirty(){},render(t){const e=this;e._call=function(){e._render(t)};e._call();e._call=null;return e},_render(){},renderAsync(t){const e=this.render(t);return this._ready?this._ready.then((()=>e)):Promise.resolve(e)},_load(t,e){var n=this,i=n._loader[t](e);if(!n._ready){const t=n._call;n._ready=n._loader.ready().then((e=>{if(e)t();n._ready=null}))}return i},sanitizeURL(t){return this._load("sanitizeURL",t)},loadImage(t){return this._load("loadImage",t)}};const nw="keydown";const iw="keypress";const rw="keyup";const ow="dragenter";const sw="dragleave";const aw="dragover";const lw="mousedown";const uw="mouseup";const cw="mousemove";const fw="mouseout";const hw="mouseover";const dw="click";const pw="dblclick";const mw="wheel";const gw="mousewheel";const yw="touchstart";const vw="touchmove";const _w="touchend";const xw=[nw,iw,rw,ow,sw,aw,lw,uw,cw,fw,hw,dw,pw,mw,gw,yw,vw,_w];const bw=cw;const ww=fw;const kw=dw;function Mw(t,e){Qb.call(this,t,e);this._down=null;this._touch=null;this._first=true;this._events={}}const Sw=t=>t===yw||t===vw||t===_w?[yw,vw,_w]:[t];function Ew(t,e){Sw(e).forEach((e=>Tw(t,e)))}function Tw(t,e){const n=t.canvas();if(n&&!t._events[e]){t._events[e]=1;n.addEventListener(e,t[e]?n=>t[e](n):n=>t.fire(e,n))}}function $w(t,e,n){return function(i){const r=this._active,o=this.pickEvent(i);if(o===r){this.fire(t,i)}else{if(!r||!r.exit){this.fire(n,i)}this._active=o;this.fire(e,i);this.fire(t,i)}}}function Dw(t){return function(e){this.fire(t,e);this._active=null}}(0,m.XW)(Mw,Qb,{initialize(t,e,n){this._canvas=t&&Yb(t,"canvas");[dw,lw,cw,fw,sw].forEach((t=>Ew(this,t)));return Qb.prototype.initialize.call(this,t,e,n)},canvas(){return this._canvas},context(){return this._canvas.getContext("2d")},events:xw,DOMMouseScroll(t){this.fire(gw,t)},mousemove:$w(cw,hw,fw),dragover:$w(aw,ow,sw),mouseout:Dw(fw),dragleave:Dw(sw),mousedown(t){this._down=this._active;this.fire(lw,t)},click(t){if(this._down===this._active){this.fire(dw,t);this._down=null}},touchstart(t){this._touch=this.pickEvent(t.changedTouches[0]);if(this._first){this._active=this._touch;this._first=false}this.fire(yw,t,true)},touchmove(t){this.fire(vw,t,true)},touchend(t){this.fire(_w,t,true);this._touch=null},fire(t,e,n){const i=n?this._touch:this._active,r=this._handlers[t];e.vegaType=t;if(t===kw&&i&&i.href){this.handleHref(e,i,i.href)}else if(t===bw||t===ww){this.handleTooltip(e,i,t!==ww)}if(r){for(let t=0,n=r.length;t=0){i.splice(r,1)}return this},pickEvent(t){const e=Kb(t,this._canvas),n=this._origin;return this.pick(this._scene,e[0],e[1],e[0]-n[0],e[1]-n[1])},pick(t,e,n,i,r){const o=this.context(),s=Ub[t.marktype];return s.pick.call(this,o,t,e,n,i,r)}});function Aw(){return typeof window!=="undefined"?window.devicePixelRatio||1:1}var Nw=Aw();function zw(t,e,n,i,r,o){const s=typeof HTMLElement!=="undefined"&&t instanceof HTMLElement&&t.parentNode!=null,a=t.getContext("2d"),l=s?Nw:r;t.width=e*l;t.height=n*l;for(const u in o){a[u]=o[u]}if(s&&l!==1){t.style.width=e+"px";t.style.height=n+"px"}a.pixelRatio=l;a.setTransform(l,0,0,l,l*i[0],l*i[1]);return t}function Rw(t){ew.call(this,t);this._options={};this._redraw=false;this._dirty=new r_;this._tempb=new r_}const Cw=ew.prototype;const Ow=(t,e,n)=>(new r_).set(0,0,e,n).translate(-t[0],-t[1]);function Uw(t,e,n){e.expand(1).round();if(t.pixelRatio%1){e.scale(t.pixelRatio).round().scale(1/t.pixelRatio)}e.translate(-(n[0]%1),-(n[1]%1));t.beginPath();t.rect(e.x1,e.y1,e.width(),e.height());t.clip();return e}(0,m.XW)(Rw,ew,{initialize(t,e,n,i,r,o){this._options=o||{};this._canvas=this._options.externalContext?null:rh(1,1,this._options.type);if(t&&this._canvas){Gb(t,0).appendChild(this._canvas);this._canvas.setAttribute("class","marks")}return Cw.initialize.call(this,t,e,n,i,r)},resize(t,e,n,i){Cw.resize.call(this,t,e,n,i);if(this._canvas){zw(this._canvas,this._width,this._height,this._origin,this._scale,this._options.context)}else{const t=this._options.externalContext;if(!t)(0,m.vU)("CanvasRenderer is missing a valid canvas or context");t.scale(this._scale,this._scale);t.translate(this._origin[0],this._origin[1])}this._redraw=true;return this},canvas(){return this._canvas},context(){return this._options.externalContext||(this._canvas?this._canvas.getContext("2d"):null)},dirty(t){const e=this._tempb.clear().union(t.bounds);let n=t.mark.group;while(n){e.translate(n.x||0,n.y||0);n=n.mark.group}this._dirty.union(e)},_render(t){const e=this.context(),n=this._origin,i=this._width,r=this._height,o=this._dirty,s=Ow(n,i,r);e.save();const a=this._redraw||o.empty()?(this._redraw=false,s.expand(1)):Uw(e,s.intersect(o),n);this.clear(-n[0],-n[1],i,r);this.draw(e,t,a);e.restore();o.clear();return this},draw(t,e,n){const i=Ub[e.marktype];if(e.clip)vx(t,e);i.draw.call(this,t,e,n);if(e.clip)t.restore()},clear(t,e,n,i){const r=this._options,o=this.context();if(r.type!=="pdf"&&!r.externalContext){o.clearRect(t,e,n,i)}if(this._bgcolor!=null){o.fillStyle=this._bgcolor;o.fillRect(t,e,n,i)}}});function Pw(t,e){Qb.call(this,t,e);const n=this;n._hrefHandler=Iw(n,((t,e)=>{if(e&&e.href)n.handleHref(t,e,e.href)}));n._tooltipHandler=Iw(n,((t,e)=>{n.handleTooltip(t,e,t.type!==ww)}))}const Iw=(t,e)=>n=>{let i=n.target.__data__;i=Array.isArray(i)?i[0]:i;n.vegaType=n.type;e.call(t._obj,n,i)};(0,m.XW)(Pw,Qb,{initialize(t,e,n){let i=this._svg;if(i){i.removeEventListener(kw,this._hrefHandler);i.removeEventListener(bw,this._tooltipHandler);i.removeEventListener(ww,this._tooltipHandler)}this._svg=i=t&&Yb(t,"svg");if(i){i.addEventListener(kw,this._hrefHandler);i.addEventListener(bw,this._tooltipHandler);i.addEventListener(ww,this._tooltipHandler)}return Qb.prototype.initialize.call(this,t,e,n)},canvas(){return this._svg},on(t,e){const n=this.eventName(t),i=this._handlers,r=this._handlerIndex(i[n],t,e);if(r<0){const r={type:t,handler:e,listener:Iw(this,e)};(i[n]||(i[n]=[])).push(r);if(this._svg){this._svg.addEventListener(n,r.listener)}}return this},off(t,e){const n=this.eventName(t),i=this._handlers[n],r=this._handlerIndex(i,t,e);if(r>=0){if(this._svg){this._svg.removeEventListener(n,i[r].listener)}i.splice(r,1)}return this}});const qw="aria-hidden";const Lw="aria-label";const Fw="role";const jw="aria-roledescription";const Ww="graphics-object";const Xw="graphics-symbol";const Hw=(t,e,n)=>({[Fw]:t,[jw]:e,[Lw]:n||undefined});const Bw=(0,m.Rg)(["axis-domain","axis-grid","axis-label","axis-tick","axis-title","legend-band","legend-entry","legend-gradient","legend-label","legend-title","legend-symbol","title"]);const Yw={axis:{desc:"axis",caption:tk},legend:{desc:"legend",caption:ek},"title-text":{desc:"title",caption:t=>`Title text '${Qw(t)}'`},"title-subtitle":{desc:"subtitle",caption:t=>`Subtitle text '${Qw(t)}'`}};const Jw={ariaRole:Fw,ariaRoleDescription:jw,description:Lw};function Gw(t,e){const n=e.aria===false;t(qw,n||undefined);if(n||e.description==null){for(const e in Jw){t(Jw[e],undefined)}}else{const n=e.mark.marktype;t(Lw,e.description);t(Fw,e.ariaRole||(n==="group"?Ww:Xw));t(jw,e.ariaRoleDescription||`${n} mark`)}}function Vw(t){return t.aria===false?{[qw]:true}:Bw[t.role]?null:Yw[t.role]?Zw(t,Yw[t.role]):Kw(t)}function Kw(t){const e=t.marktype;const n=e==="group"||e==="text"||t.items.some((t=>t.description!=null&&t.aria!==false));return Hw(n?Ww:Xw,`${e} mark container`,t.description)}function Zw(t,e){try{const n=t.items[0],i=e.caption||(()=>"");return Hw(e.role||Xw,e.desc,n.description||i(n))}catch(n){return null}}function Qw(t){return(0,m.IX)(t.text).join(" ")}function tk(t){const e=t.datum,n=t.orient,i=e.title?nk(t):null,r=t.context,o=r.scales[e.scale].value,s=r.dataflow.locale(),a=o.type,l=n==="left"||n==="right"?"Y":"X";return`${l}-axis`+(i?` titled '${i}'`:"")+` for a ${Ug(a)?"discrete":a} scale`+` with ${$y(s,o,t)}`}function ek(t){const e=t.datum,n=e.title?nk(t):null,i=`${e.type||""} legend`.trim(),r=e.scales,o=Object.keys(r),s=t.context,a=s.scales[r[o[0]]].value,l=s.dataflow.locale();return rk(i)+(n?` titled '${n}'`:"")+` for ${ik(o)}`+` with ${$y(l,a,t)}`}function nk(t){try{return(0,m.IX)((0,m.fj)(t.items).items[0].text).join(" ")}catch(e){return null}}function ik(t){t=t.map((t=>t+(t==="fill"||t==="stroke"?" color":"")));return t.length<2?t[0]:t.slice(0,-1).join(", ")+" and "+(0,m.fj)(t)}function rk(t){return t.length?t[0].toUpperCase()+t.slice(1):t}const ok=t=>(t+"").replace(/&/g,"&").replace(//g,">");const sk=t=>ok(t).replace(/"/g,""").replace(/\t/g," ").replace(/\n/g," ").replace(/\r/g," ");function ak(){let t="",e="",n="";const i=[],r=()=>e=n="",o=o=>{if(e){t+=`${e}>${n}`;r()}i.push(o)},s=(t,n)=>{if(n!=null)e+=` ${t}="${sk(n)}"`;return a},a={open(t){o(t);e="<"+t;for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r${n}`:"/>")}else{t+=``}r();return a},attr:s,text:t=>(n+=ok(t),a),toString:()=>t};return a}const lk=t=>uk(ak(),t)+"";function uk(t,e){t.open(e.tagName);if(e.hasAttributes()){const n=e.attributes,i=n.length;for(let e=0;e{t.dirty=e}))}if(i.zdirty)continue;if(n.exit){if(o.nested&&i.items.length){l=i.items[0];if(l._svg)this._update(o,l._svg,l)}else if(n._svg){l=n._svg.parentNode;if(l)l.removeChild(n._svg)}n._svg=null;continue}n=o.nested?i.items[0]:n;if(n._update===e)continue;if(!n._svg||!n._svg.ownerSVGElement){this._dirtyAll=false;vk(n,e)}else{this._update(o,n._svg,n)}n._update=e}return!this._dirtyAll},mark(t,e,n){if(!this.isDirty(e)){return e._svg}const i=this._svg,r=Ub[e.marktype],o=e.interactive===false?"none":null,s=r.tag==="g";const a=wk(e,t,n,"g",i);a.setAttribute("class",Vb(e));const l=Vw(e);for(const h in l)Ak(a,h,l[h]);if(!s){Ak(a,"pointer-events",o)}Ak(a,"clip-path",e.clip?i_(this,e,e.group):null);let u=null,c=0;const f=t=>{const e=this.isDirty(t),n=wk(t,a,u,r.tag,i);if(e){this._update(r,n,t);if(s)bk(this,n,t)}u=n;++c};if(r.nested){if(e.items.length)f(e.items[0])}else{K_(e,f)}Gb(a,c);return a},_update(t,e,n){Mk=e;Sk=e.__values__;Gw(Tk,n);t.attr(Tk,n,this);const i=Ek[t.type];if(i)i.call(this,t,e,n);if(Mk)this.style(Mk,n)},style(t,e){if(e==null)return;for(const n in ck){let i=n==="font"?kb(e):e[n];if(i===Sk[n])continue;const r=ck[n];if(i==null){t.removeAttribute(r)}else{if(zy(i)){i=Ry(i,this._defs.gradient,zk())}t.setAttribute(r,i+"")}Sk[n]=i}for(const n in fk){$k(t,fk[n],e[n])}},defs(){const t=this._svg,e=this._defs;let n=e.el,i=0;for(const r in e.gradient){if(!n)e.el=n=Jb(t,dk+1,"defs",mk);i=_k(n,e.gradient[r],i)}for(const r in e.clipping){if(!n)e.el=n=Jb(t,dk+1,"defs",mk);i=xk(n,e.clipping[r],i)}if(n){i===0?(t.removeChild(n),e.el=null):Gb(n,i)}},_clearDefs(){const t=this._defs;t.gradient={};t.clipping={}}});function vk(t,e){for(;t&&t.dirty!==e;t=t.mark.group){t.dirty=e;if(t.mark&&t.mark.dirty!==e){t.mark.dirty=e}else return}}function _k(t,e,n){let i,r,o;if(e.gradient==="radial"){let i=Jb(t,n++,"pattern",mk);Dk(i,{id:Ny+e.id,viewBox:"0,0,1,1",width:"100%",height:"100%",preserveAspectRatio:"xMidYMid slice"});i=Jb(i,0,"rect",mk);Dk(i,{width:1,height:1,fill:`url(${zk()}#${e.id})`});t=Jb(t,n++,"radialGradient",mk);Dk(t,{id:e.id,fx:e.x1,fy:e.y1,fr:e.r1,cx:e.x2,cy:e.y2,r:e.r2})}else{t=Jb(t,n++,"linearGradient",mk);Dk(t,{id:e.id,x1:e.x1,x2:e.x2,y1:e.y1,y2:e.y2})}for(i=0,r=e.stops.length;i{i=t.mark(e,n,i);++r}));Gb(e,1+r)}function wk(t,e,n,i,r){let o=t._svg,s;if(!o){s=e.ownerDocument;o=Bb(s,i,mk);t._svg=o;if(t.mark){o.__data__=t;o.__values__={fill:"default"};if(i==="g"){const e=Bb(s,"path",mk);o.appendChild(e);e.__data__=t;const n=Bb(s,"g",mk);o.appendChild(n);n.__data__=t;const i=Bb(s,"path",mk);o.appendChild(i);i.__data__=t;i.__values__={fill:"default"}}}}if(o.ownerSVGElement!==r||kk(o,n)){e.insertBefore(o,n?n.nextSibling:e.firstChild)}return o}function kk(t,e){return t.parentNode&&t.parentNode.childNodes.length>1&&t.previousSibling!=e}let Mk=null,Sk=null;const Ek={group(t,e,n){const i=Mk=e.childNodes[2];Sk=i.__values__;t.foreground(Tk,n,this);Sk=e.__values__;Mk=e.childNodes[1];t.content(Tk,n,this);const r=Mk=e.childNodes[0];t.background(Tk,n,this);const o=n.mark.interactive===false?"none":null;if(o!==Sk.events){Ak(i,"pointer-events",o);Ak(r,"pointer-events",o);Sk.events=o}if(n.strokeForeground&&n.stroke){const t=n.fill;Ak(i,"display",null);this.style(r,n);Ak(r,"stroke",null);if(t)n.fill=null;Sk=i.__values__;this.style(i,n);if(t)n.fill=t;Mk=null}else{Ak(i,"display","none")}},image(t,e,n){if(n.smooth===false){$k(e,"image-rendering","optimizeSpeed");$k(e,"image-rendering","pixelated")}else{$k(e,"image-rendering",null)}},text(t,e,n){const i=vb(n);let r,o,s,a;if((0,m.kJ)(i)){o=i.map((t=>xb(n,t)));r=o.join("\n");if(r!==Sk.text){Gb(e,0);s=e.ownerDocument;a=gb(n);o.forEach(((t,i)=>{const r=Bb(s,"tspan",mk);r.__data__=n;r.textContent=t;if(i){r.setAttribute("x",0);r.setAttribute("dy",a)}e.appendChild(r)}));Sk.text=r}}else{o=xb(n,i);if(o!==Sk.text){e.textContent=o;Sk.text=o}}Ak(e,"font-family",kb(n));Ak(e,"font-size",mb(n)+"px");Ak(e,"font-style",n.fontStyle);Ak(e,"font-variant",n.fontVariant);Ak(e,"font-weight",n.fontWeight)}};function Tk(t,e,n){if(e===Sk[t])return;if(n){Nk(Mk,t,e,n)}else{Ak(Mk,t,e)}Sk[t]=e}function $k(t,e,n){if(n!==Sk[e]){if(n==null){t.style.removeProperty(e)}else{t.style.setProperty(e,n+"")}Sk[e]=n}}function Dk(t,e){for(const n in e){Ak(t,n,e[n])}}function Ak(t,e,n){if(n!=null){t.setAttribute(e,n)}else{t.removeAttribute(e)}}function Nk(t,e,n,i){if(n!=null){t.setAttributeNS(i,e,n)}else{t.removeAttributeNS(i,e)}}function zk(){let t;return typeof window==="undefined"?"":(t=window.location).hash?t.href.slice(0,-t.hash.length):t.href}function Rk(t){ew.call(this,t);this._text=null;this._defs={gradient:{},clipping:{}}}(0,m.XW)(Rk,ew,{svg(){return this._text},_render(t){const e=ak();e.open("svg",(0,m.l7)({},Ox,{class:"marks",width:this._width*this._scale,height:this._height*this._scale,viewBox:`0 0 ${this._width} ${this._height}`}));const n=this._bgcolor;if(n&&n!=="transparent"&&n!=="none"){e.open("rect",{width:this._width,height:this._height,fill:n}).close()}e.open("g",hk,{transform:"translate("+this._origin+")"});this.mark(e,t);e.close();this.defs(e);this._text=e.close()+"";return this},mark(t,e){const n=Ub[e.marktype],i=n.tag,r=[Gw,n.attr];t.open("g",{class:Vb(e),"clip-path":e.clip?i_(this,e,e.group):null},Vw(e),{"pointer-events":i!=="g"&&e.interactive===false?"none":null});const o=o=>{const s=this.href(o);if(s)t.open("a",s);t.open(i,this.attr(e,o,r,i!=="g"?i:null));if(i==="text"){const e=vb(o);if((0,m.kJ)(e)){const n={x:0,dy:gb(o)};for(let i=0;ithis.mark(t,e)));t.close();if(i&&s){if(r)o.fill=null;o.stroke=s;t.open("path",this.attr(e,o,n.foreground,"bgrect")).close();if(r)o.fill=r}else{t.open("path",this.attr(e,o,n.foreground,"bgfore")).close()}}t.close();if(s)t.close()};if(n.nested){if(e.items&&e.items.length)o(e.items[0])}else{K_(e,o)}return t.close()},href(t){const e=t.href;let n;if(e){if(n=this._hrefs&&this._hrefs[e]){return n}else{this.sanitizeURL(e).then((t=>{t["xlink:href"]=t.href;t.href=null;(this._hrefs||(this._hrefs={}))[e]=t}))}}return null},attr(t,e,n,i){const r={},o=(t,e,n,i)=>{r[i||t]=e};if(Array.isArray(n)){n.forEach((t=>t(o,e,this)))}else{n(o,e,this)}if(i){Ck(r,e,t,i,this._defs)}return r},defs(t){const e=this._defs.gradient,n=this._defs.clipping,i=Object.keys(e).length+Object.keys(n).length;if(i===0)return;t.open("defs");for(const r in e){const n=e[r],i=n.stops;if(n.gradient==="radial"){t.open("pattern",{id:Ny+r,viewBox:"0,0,1,1",width:"100%",height:"100%",preserveAspectRatio:"xMidYMid slice"});t.open("rect",{width:"1",height:"1",fill:"url(#"+r+")"}).close();t.close();t.open("radialGradient",{id:r,fx:n.x1,fy:n.y1,fr:n.r1,cx:n.x2,cy:n.y2,r:n.r2})}else{t.open("linearGradient",{id:r,x1:n.x1,x2:n.x2,y1:n.y1,y2:n.y2})}for(let e=0;e1){Lk[t]=e;return this}else{return Lk[t]}}function jk(t,e,n){const i=[],r=(new r_).union(e),o=t.marktype;return o?Wk(t,r,n,i):o==="group"?Hk(t,r,n,i):(0,m.vU)("Intersect scene must be mark node or group item.")}function Wk(t,e,n,i){if(Xk(t,e,n)){const r=t.items,o=t.marktype,s=r.length;let a=0;if(o==="group"){for(;a=0;o--){if(n[o]!=i[o])return false}for(o=n.length-1;o>=0;o--){r=n[o];if(!Vk(t[r],e[r],r))return false}return typeof t===typeof e}function Qk(){n_();Ay()}const tM="top";const eM="left";const nM="right";const iM="bottom";const rM="top-left";const oM="top-right";const sM="bottom-left";const aM="bottom-right";const lM="start";const uM="middle";const cM="end";const fM="x";const hM="y";const dM="group";const pM="axis";const mM="title";const gM="frame";const yM="scope";const vM="legend";const _M="row-header";const xM="row-footer";const bM="row-title";const wM="column-header";const kM="column-footer";const MM="column-title";const SM="padding";const EM="symbol";const TM="fit";const $M="fit-x";const DM="fit-y";const AM="pad";const NM="none";const zM="all";const RM="each";const CM="flush";const OM="column";const UM="row";function PM(t){Us.call(this,null,t)}(0,m.XW)(PM,Us,{transform(t,e){const n=e.dataflow,i=t.mark,r=i.marktype,o=Ub[r],s=o.bound;let a=i.bounds,l;if(o.nested){if(i.items.length)n.dirty(i.items[0]);a=IM(i,s);i.items.forEach((t=>{t.bounds.clear().union(a)}))}else if(r===dM||t.modified()){e.visit(e.MOD,(t=>n.dirty(t)));a.clear();i.items.forEach((t=>a.union(IM(t,s))));switch(i.role){case pM:case vM:case mM:e.reflow()}}else{l=e.changed(e.REM);e.visit(e.ADD,(t=>{a.union(IM(t,s))}));e.visit(e.MOD,(t=>{l=l||a.alignsWith(t.bounds);n.dirty(t);a.union(IM(t,s))}));if(l){a.clear();i.items.forEach((t=>a.union(t.bounds)))}}Jk(i);return e.modifies("bounds")}});function IM(t,e,n){return e(t.bounds.clear(),t,n)}const qM=":vega_identifier:";function LM(t){Us.call(this,0,t)}LM.Definition={type:"Identifier",metadata:{modifies:true},params:[{name:"as",type:"string",required:true}]};(0,m.XW)(LM,Us,{transform(t,e){const n=FM(e.dataflow),i=t.as;let r=n.value;e.visit(e.ADD,(t=>t[i]=t[i]||++r));n.set(this.value=r);return e}});function FM(t){return t._signals[qM]||(t._signals[qM]=t.add(0))}function jM(t){Us.call(this,null,t)}(0,m.XW)(jM,Us,{transform(t,e){let n=this.value;if(!n){n=e.dataflow.scenegraph().mark(t.markdef,WM(t),t.index);n.group.context=t.context;if(!t.context.group)t.context.group=n.group;n.source=this.source;n.clip=t.clip;n.interactive=t.interactive;this.value=n}const i=n.marktype===dM?s_:o_;e.visit(e.ADD,(t=>i.call(t,n)));if(t.modified("clip")||t.modified("interactive")){n.clip=t.clip;n.interactive=!!t.interactive;n.zdirty=true;e.reflow()}n.items=e.source;return e}});function WM(t){const e=t.groups,n=t.parent;return e&&e.size===1?e.get(Object.keys(e.object)[0]):e&&n?e.lookup(n):null}function XM(t){Us.call(this,null,t)}const HM={parity:t=>t.filter(((t,e)=>e%2?t.opacity=0:1)),greedy:(t,e)=>{let n;return t.filter(((t,i)=>!i||!BM(n.bounds,t.bounds,e)?(n=t,1):t.opacity=0))}};const BM=(t,e,n)=>n>Math.max(e.x1-t.x2,t.x1-e.x2,e.y1-t.y2,t.y1-e.y2);const YM=(t,e)=>{for(var n=1,i=t.length,r=t[0].bounds,o;n{const e=t.bounds;return e.width()>1&&e.height()>1};const GM=(t,e,n)=>{var i=t.range(),r=new r_;if(e===tM||e===iM){r.set(i[0],-Infinity,i[1],+Infinity)}else{r.set(-Infinity,i[0],+Infinity,i[1])}r.expand(n||1);return t=>r.encloses(t.bounds)};const VM=t=>{t.forEach((t=>t.opacity=1));return t};const KM=(t,e)=>t.reflow(e.modified()).modifies("opacity");(0,m.XW)(XM,Us,{transform(t,e){const n=HM[t.method]||HM.parity,i=t.separation||0;let r=e.materialize(e.SOURCE).source,o,s;if(!r||!r.length)return;if(!t.method){if(t.modified("method")){VM(r);e=KM(e,t)}return e}r=r.filter(JM);if(!r.length)return;if(t.sort){r=r.slice().sort(t.sort)}o=VM(r);e=KM(e,t);if(o.length>=3&&YM(o,i)){do{o=n(o,i)}while(o.length>=3&&YM(o,i));if(o.length<3&&!(0,m.fj)(r).opacity){if(o.length>1)(0,m.fj)(o).opacity=0;(0,m.fj)(r).opacity=1}}if(t.boundScale&&t.boundTolerance>=0){s=GM(t.boundScale,t.boundOrient,+t.boundTolerance);r.forEach((t=>{if(!s(t))t.opacity=0}))}const a=o[0].mark.bounds.clear();r.forEach((t=>{if(t.opacity)a.union(t.bounds)}));return e}});function ZM(t){Us.call(this,null,t)}(0,m.XW)(ZM,Us,{transform(t,e){const n=e.dataflow;e.visit(e.ALL,(t=>n.dirty(t)));if(e.fields&&e.fields["zindex"]){const t=e.source&&e.source[0];if(t)t.mark.zdirty=true}}});const QM=new r_;function tS(t,e,n){return t[e]===n?0:(t[e]=n,1)}function eS(t){var e=t.items[0].orient;return e===eM||e===nM}function nS(t){let e=+t.grid;return[t.ticks?e++:-1,t.labels?e++:-1,e+ +t.domain]}function iS(t,e,n,i){var r=e.items[0],o=r.datum,s=r.translate!=null?r.translate:.5,a=r.orient,l=nS(o),u=r.range,c=r.offset,f=r.position,h=r.minExtent,d=r.maxExtent,p=o.title&&r.items[l[2]].items[0],m=r.titlePadding,g=r.bounds,y=p&&_b(p),v=0,_=0,x,b;QM.clear().union(g);g.clear();if((x=l[0])>-1)g.union(r.items[x].bounds);if((x=l[1])>-1)g.union(r.items[x].bounds);switch(a){case tM:v=f||0;_=-c;b=Math.max(h,Math.min(d,-g.y1));g.add(0,-b).add(u,0);if(p)rS(t,p,b,m,y,0,-1,g);break;case eM:v=-c;_=f||0;b=Math.max(h,Math.min(d,-g.x1));g.add(-b,0).add(0,u);if(p)rS(t,p,b,m,y,1,-1,g);break;case nM:v=n+c;_=f||0;b=Math.max(h,Math.min(d,g.x2));g.add(0,0).add(b,u);if(p)rS(t,p,b,m,y,1,1,g);break;case iM:v=f||0;_=i+c;b=Math.max(h,Math.min(d,g.y2));g.add(0,0).add(u,b);if(p)rS(t,p,b,m,0,0,1,g);break;default:v=r.x;_=r.y}c_(g.translate(v,_),r);if(tS(r,"x",v+s)|tS(r,"y",_+s)){r.bounds=QM;t.dirty(r);r.bounds=g;t.dirty(r)}return r.mark.bounds.clear().union(g)}function rS(t,e,n,i,r,o,s,a){const l=e.bounds;if(e.auto){const a=s*(n+r+i);let u=0,c=0;t.dirty(e);o?u=(e.x||0)-(e.x=a):c=(e.y||0)-(e.y=a);e.mark.bounds.clear().union(l.translate(-u,-c));t.dirty(e)}a.union(l)}const oS=(t,e)=>Math.floor(Math.min(t,e));const sS=(t,e)=>Math.ceil(Math.max(t,e));function aS(t){var e=t.items,n=e.length,i=0,r,o;const s={marks:[],rowheaders:[],rowfooters:[],colheaders:[],colfooters:[],rowtitle:null,coltitle:null};for(;i1){for(k=0;k0)_[k]+=A/2}}if(a&&cS(n.center,UM)&&c!==1){for(k=0;k0)x[k]+=N/2}}for(k=0;kr){t.warn("Grid headers exceed limit: "+r);e=e.slice(0,r)}m+=o;for(v=0,x=e.length;v=0&&(k=n[_])==null;_-=h);if(a){M=d==null?k.x:Math.round(k.bounds.x1+d*k.bounds.width());S=m}else{M=m;S=d==null?k.y:Math.round(k.bounds.y1+d*k.bounds.height())}b.union(w.bounds.translate(M-(w.x||0),S-(w.y||0)));w.x=M;w.y=S;t.dirty(w);g=s(g,b[u])}return g}function yS(t,e,n,i,r,o){if(!e)return;t.dirty(e);var s=n,a=n;i?s=Math.round(r.x1+o*r.width()):a=Math.round(r.y1+o*r.height());e.bounds.translate(s-(e.x||0),a-(e.y||0));e.mark.bounds.clear().union(e.bounds);e.x=s;e.y=a;t.dirty(e)}function vS(t,e){const n=t[e]||{};return(e,i)=>n[e]!=null?n[e]:t[e]!=null?t[e]:i}function _S(t,e){let n=-Infinity;t.forEach((t=>{if(t.offset!=null)n=Math.max(n,t.offset)}));return n>-Infinity?n:e}function xS(t,e,n,i,r,o,s){const a=vS(n,e),l=_S(t,a("offset",0)),u=a("anchor",lM),c=u===cM?1:u===uM?.5:0;const f={align:RM,bounds:a("bounds",CM),columns:a("direction")==="vertical"?1:t.length,padding:a("margin",8),center:a("center"),nodirty:true};switch(e){case eM:f.anchor={x:Math.floor(i.x1)-l,column:cM,y:c*(s||i.height()+2*i.y1),row:u};break;case nM:f.anchor={x:Math.ceil(i.x2)+l,y:c*(s||i.height()+2*i.y1),row:u};break;case tM:f.anchor={y:Math.floor(r.y1)-l,row:cM,x:c*(o||r.width()+2*r.x1),column:u};break;case iM:f.anchor={y:Math.ceil(r.y2)+l,x:c*(o||r.width()+2*r.x1),column:u};break;case rM:f.anchor={x:l,y:l};break;case oM:f.anchor={x:o-l,y:l,column:cM};break;case sM:f.anchor={x:l,y:s-l,row:cM};break;case aM:f.anchor={x:o-l,y:s-l,column:cM,row:cM};break}return f}function bS(t,e){var n=e.items[0],i=n.datum,r=n.orient,o=n.bounds,s=n.x,a=n.y,l,u;n._bounds?n._bounds.clear().union(o):n._bounds=o.clone();o.clear();kS(t,n,n.items[0].items[0]);o=wS(n,o);l=2*n.padding;u=2*n.padding;if(!o.empty()){l=Math.ceil(o.width()+l);u=Math.ceil(o.height()+u)}if(i.type===EM){ES(n.items[0].items[0].items[0].items)}if(r!==NM){n.x=s=0;n.y=a=0}n.width=l;n.height=u;c_(o.set(s,a,s+l,a+u),n);n.mark.bounds.clear().union(o);return n}function wS(t,e){t.items.forEach((t=>e.union(t.bounds)));e.x1=t.padding;e.y1=t.padding;return e}function kS(t,e,n){var i=e.padding,r=i-n.x,o=i-n.y;if(!e.datum.title){if(r||o)SS(t,n,r,o)}else{var s=e.items[1].items[0],a=s.anchor,l=e.titlePadding||0,u=i-s.x,c=i-s.y;switch(s.orient){case eM:r+=Math.ceil(s.bounds.width())+l;break;case nM:case iM:break;default:o+=s.bounds.height()+l}if(r||o)SS(t,n,r,o);switch(s.orient){case eM:c+=MS(e,n,s,a,1,1);break;case nM:u+=MS(e,n,s,cM,0,0)+l;c+=MS(e,n,s,a,1,1);break;case iM:u+=MS(e,n,s,a,0,0);c+=MS(e,n,s,cM,-1,0,1)+l;break;default:u+=MS(e,n,s,a,0,0)}if(u||c)SS(t,s,u,c);if((u=Math.round(s.bounds.x1-i))<0){SS(t,n,-u,0);SS(t,s,-u,0)}}}function MS(t,e,n,i,r,o,s){const a=t.datum.type!=="symbol",l=n.datum.vgrad,u=a&&(o||!l)&&!s?e.items[0]:e,c=u.bounds[r?"y2":"x2"]-t.padding,f=l&&o?c:0,h=l&&o?0:c,d=r<=0?0:_b(n);return Math.round(i===lM?f:i===cM?h-d:.5*(c-d))}function SS(t,e,n,i){e.x+=n;e.y+=i;e.bounds.translate(n,i);e.mark.bounds.translate(n,i);t.dirty(e)}function ES(t){const e=t.reduce(((t,e)=>{t[e.column]=Math.max(e.bounds.x2-e.x,t[e.column]||0);return t}),{});t.forEach((t=>{t.width=e[t.column];t.height=t.bounds.y2-t.y}))}function TS(t,e,n,i,r){var o=e.items[0],s=o.frame,a=o.orient,l=o.anchor,u=o.offset,c=o.padding,f=o.items[0].items[0],h=o.items[1]&&o.items[1].items[0],d=a===eM||a===nM?i:n,p=0,m=0,g=0,y=0,v=0,_;if(s!==dM){a===eM?(p=r.y2,d=r.y1):a===nM?(p=r.y1,d=r.y2):(p=r.x1,d=r.x2)}else if(a===eM){p=i,d=0}_=l===lM?p:l===cM?d:(p+d)/2;if(h&&h.text){switch(a){case tM:case iM:v=f.bounds.height()+c;break;case eM:y=f.bounds.width()+c;break;case nM:y=-f.bounds.width()-c;break}QM.clear().union(h.bounds);QM.translate(y-(h.x||0),v-(h.y||0));if(tS(h,"x",y)|tS(h,"y",v)){t.dirty(h);h.bounds.clear().union(QM);h.mark.bounds.clear().union(QM);t.dirty(h)}QM.clear().union(h.bounds)}else{QM.clear()}QM.union(f.bounds);switch(a){case tM:m=_;g=r.y1-QM.height()-u;break;case eM:m=r.x1-QM.width()-u;g=_;break;case nM:m=r.x2+QM.width()+u;g=_;break;case iM:m=_;g=r.y2+u;break;default:m=o.x;g=o.y}if(tS(o,"x",m)|tS(o,"y",g)){QM.translate(m,g);t.dirty(o);o.bounds.clear().union(QM);e.bounds.clear().union(QM);t.dirty(o)}return o.bounds}function $S(t){Us.call(this,null,t)}(0,m.XW)($S,Us,{transform(t,e){const n=e.dataflow;t.mark.items.forEach((e=>{if(t.layout)dS(n,e,t.layout);AS(n,e,t)}));return DS(t.mark.group)?e.reflow():e}});function DS(t){return t&&t.mark.role!=="legend-entry"}function AS(t,e,n){var i=e.items,r=Math.max(0,e.width||0),o=Math.max(0,e.height||0),s=(new r_).set(0,0,r,o),a=s.clone(),l=s.clone(),u=[],c,f,h,d,p,m;for(p=0,m=i.length;p{h=t.orient||nM;if(h!==NM)(e[h]||(e[h]=[])).push(t)}));for(const i in e){const s=e[i];hS(t,s,xS(s,i,n.legends,a,l,r,o))}u.forEach((e=>{const i=e.bounds;if(!i.equals(e._bounds)){e.bounds=e._bounds;t.dirty(e);e.bounds=i;t.dirty(e)}if(n.autosize&&(n.autosize.type===TM||n.autosize.type===$M||n.autosize.type===DM)){switch(e.orient){case eM:case nM:s.add(i.x1,0).add(i.x2,0);break;case tM:case iM:s.add(0,i.y1).add(0,i.y2)}}else{s.union(i)}}))}s.union(a).union(l);if(c){s.union(TS(t,c,r,o,s))}if(e.clip){s.set(0,0,e.width||0,e.height||0)}NS(t,e,s,n)}function NS(t,e,n,i){const r=i.autosize||{},o=r.type;if(t._autosize<1||!o)return;let s=t._width,a=t._height,l=Math.max(0,e.width||0),u=Math.max(0,Math.ceil(-n.x1)),c=Math.max(0,e.height||0),f=Math.max(0,Math.ceil(-n.y1));const h=Math.max(0,Math.ceil(n.x2-l)),d=Math.max(0,Math.ceil(n.y2-c));if(r.contains===SM){const e=t.padding();s-=e.left+e.right;a-=e.top+e.bottom}if(o===NM){u=0;f=0;l=s;c=a}else if(o===TM){l=Math.max(0,s-u-h);c=Math.max(0,a-f-d)}else if(o===$M){l=Math.max(0,s-u-h);a=c+f+d}else if(o===DM){s=l+u+h;c=Math.max(0,a-f-d)}else if(o===AM){s=l+u+h;a=c+f+d}t._resizeView(s,a,l,c,[u,f],r.resize)}function zS(t,e){let n=0;if(e===undefined){for(let e of t){if(e=+e){n+=e}}}else{let i=-1;for(let r of t){if(r=+e(r,++i,t)){n+=r}}}return n}function RS(t){Us.call(this,null,t)}(0,m.XW)(RS,Us,{transform(t,e){if(this.value&&!t.modified()){return e.StopPropagation}var n=e.dataflow.locale(),i=e.fork(e.NO_SOURCE|e.NO_FIELDS),r=this.value,o=t.scale,s=t.count==null?t.values?t.values.length:10:t.count,a=ly(o,s,t.minstep),l=t.format||fy(n,o,a,t.formatSpecifier,t.formatType,!!t.values),u=t.values?uy(o,t.values,a):cy(o,a);if(r)i.rem=r;r=u.map(((t,e)=>ko({index:e/(u.length-1||1),value:t,label:l(t)})));if(t.extra&&r.length){r.push(ko({index:-1,extra:{value:r[0].value},label:""}))}i.source=r;i.add=r;this.value=r;return i}});function CS(t){Us.call(this,null,t)}function OS(){return ko({})}function US(t){const e=(0,m.Xr)().test((t=>t.exit));e.lookup=n=>e.get(t(n));return e}(0,m.XW)(CS,Us,{transform(t,e){var n=e.dataflow,i=e.fork(e.NO_SOURCE|e.NO_FIELDS),r=t.item||OS,o=t.key||bo,s=this.value;if((0,m.kJ)(i.encode)){i.encode=null}if(s&&(t.modified("key")||e.modified(o))){(0,m.vU)("DataJoin does not support modified key function or fields.")}if(!s){e=e.addAll();this.value=s=US(o)}e.visit(e.ADD,(t=>{const e=o(t);let n=s.get(e);if(n){if(n.exit){s.empty--;i.add.push(n)}else{i.mod.push(n)}}else{n=r(t);s.set(e,n);i.add.push(n)}n.datum=t;n.exit=false}));e.visit(e.MOD,(t=>{const e=o(t),n=s.get(e);if(n){n.datum=t;i.mod.push(n)}}));e.visit(e.REM,(t=>{const e=o(t),n=s.get(e);if(t===n.datum&&!n.exit){i.rem.push(n);n.exit=true;++s.empty}}));if(e.changed(e.ADD_MOD))i.modifies("datum");if(e.clean()||t.clean&&s.empty>n.cleanThreshold){n.runAfter(s.clean)}return i}});function PS(t){Us.call(this,null,t)}(0,m.XW)(PS,Us,{transform(t,e){var n=e.fork(e.ADD_REM),i=t.mod||false,r=t.encoders,o=e.encode;if((0,m.kJ)(o)){if(n.changed()||o.every((t=>r[t]))){o=o[0];n.encode=null}else{return e.StopPropagation}}var s=o==="enter",a=r.update||m.k,l=r.enter||m.k,u=r.exit||m.k,c=(o&&!s?r[o]:a)||m.k;if(e.changed(e.ADD)){e.visit(e.ADD,(e=>{l(e,t);a(e,t)}));n.modifies(l.output);n.modifies(a.output);if(c!==m.k&&c!==a){e.visit(e.ADD,(e=>{c(e,t)}));n.modifies(c.output)}}if(e.changed(e.REM)&&u!==m.k){e.visit(e.REM,(e=>{u(e,t)}));n.modifies(u.output)}if(s||c!==m.k){const r=e.MOD|(t.modified()?e.REFLOW:0);if(s){e.visit(r,(e=>{const r=l(e,t)||i;if(c(e,t)||r)n.mod.push(e)}));if(n.mod.length)n.modifies(l.output)}else{e.visit(r,(e=>{if(c(e,t)||i)n.mod.push(e)}))}if(n.mod.length)n.modifies(c.output)}return n.changed()?n:e.StopPropagation}});function IS(t){Us.call(this,[],t)}(0,m.XW)(IS,Us,{transform(t,e){if(this.value!=null&&!t.modified()){return e.StopPropagation}var n=e.dataflow.locale(),i=e.fork(e.NO_SOURCE|e.NO_FIELDS),r=this.value,o=t.type||ny,s=t.scale,a=+t.limit,l=ly(s,t.count==null?5:t.count,t.minstep),u=!!t.values||o===ny,c=t.format||xy(n,s,l,o,t.formatSpecifier,t.formatType,u),f=t.values||my(s,l),h,d,p,g,y;if(r)i.rem=r;if(o===ny){if(a&&f.length>a){e.dataflow.warn("Symbol legend count exceeds limit, filtering items.");r=f.slice(0,a-1);y=true}else{r=f}if((0,m.mf)(p=t.size)){if(!t.values&&s(r[0])===0){r=r.slice(1)}g=r.reduce(((e,n)=>Math.max(e,p(n,t))),0)}else{p=(0,m.a9)(g=p||8)}r=r.map(((e,n)=>ko({index:n,label:c(e,n,r),value:e,offset:g,size:p(e,t)})));if(y){y=f[r.length];r.push(ko({index:r.length,label:`…${f.length-r.length} entries`,value:y,offset:g,size:p(y,t)}))}}else if(o===ry){h=s.domain(),d=Yg(s,h[0],(0,m.fj)(h));if(f.length<3&&!t.values&&h[0]!==(0,m.fj)(h)){f=[h[0],(0,m.fj)(h)]}r=f.map(((t,e)=>ko({index:e,label:c(t,e,f),value:t,perc:d(t)})))}else{p=f.length-1;d=Ey(s);r=f.map(((t,e)=>ko({index:e,label:c(t,e,f),value:t,perc:e?d(t):0,perc2:e===p?1:d(f[e+1])})))}i.source=r;i.add=r;this.value=r;return i}});const qS=t=>t.source.x;const LS=t=>t.source.y;const FS=t=>t.target.x;const jS=t=>t.target.y;function WS(t){Us.call(this,{},t)}WS.Definition={type:"LinkPath",metadata:{modifies:true},params:[{name:"sourceX",type:"field",default:"source.x"},{name:"sourceY",type:"field",default:"source.y"},{name:"targetX",type:"field",default:"target.x"},{name:"targetY",type:"field",default:"target.y"},{name:"orient",type:"enum",default:"vertical",values:["horizontal","vertical","radial"]},{name:"shape",type:"enum",default:"line",values:["line","arc","curve","diagonal","orthogonal"]},{name:"require",type:"signal"},{name:"as",type:"string",default:"path"}]};(0,m.XW)(WS,Us,{transform(t,e){var n=t.sourceX||qS,i=t.sourceY||LS,r=t.targetX||FS,o=t.targetY||jS,s=t.as||"path",a=t.orient||"vertical",l=t.shape||"line",u=nE.get(l+"-"+a)||nE.get(l);if(!u){(0,m.vU)("LinkPath unsupported type: "+t.shape+(t.orient?"-"+t.orient:""))}e.visit(e.SOURCE,(t=>{t[s]=u(n(t),i(t),r(t),o(t))}));return e.reflow(t.modified()).modifies(s)}});const XS=(t,e,n,i)=>"M"+t+","+e+"L"+n+","+i;const HS=(t,e,n,i)=>XS(e*Math.cos(t),e*Math.sin(t),i*Math.cos(n),i*Math.sin(n));const BS=(t,e,n,i)=>{var r=n-t,o=i-e,s=Math.sqrt(r*r+o*o)/2,a=180*Math.atan2(o,r)/Math.PI;return"M"+t+","+e+"A"+s+","+s+" "+a+" 0 1"+" "+n+","+i};const YS=(t,e,n,i)=>BS(e*Math.cos(t),e*Math.sin(t),i*Math.cos(n),i*Math.sin(n));const JS=(t,e,n,i)=>{const r=n-t,o=i-e,s=.2*(r+o),a=.2*(o-r);return"M"+t+","+e+"C"+(t+s)+","+(e+a)+" "+(n+a)+","+(i-s)+" "+n+","+i};const GS=(t,e,n,i)=>JS(e*Math.cos(t),e*Math.sin(t),i*Math.cos(n),i*Math.sin(n));const VS=(t,e,n,i)=>"M"+t+","+e+"V"+i+"H"+n;const KS=(t,e,n,i)=>"M"+t+","+e+"H"+n+"V"+i;const ZS=(t,e,n,i)=>{const r=Math.cos(t),o=Math.sin(t),s=Math.cos(n),a=Math.sin(n),l=Math.abs(n-t)>Math.PI?n<=t:n>t;return"M"+e*r+","+e*o+"A"+e+","+e+" 0 0,"+(l?1:0)+" "+e*s+","+e*a+"L"+i*s+","+i*a};const QS=(t,e,n,i)=>{const r=(t+n)/2;return"M"+t+","+e+"C"+r+","+e+" "+r+","+i+" "+n+","+i};const tE=(t,e,n,i)=>{const r=(e+i)/2;return"M"+t+","+e+"C"+t+","+r+" "+n+","+r+" "+n+","+i};const eE=(t,e,n,i)=>{const r=Math.cos(t),o=Math.sin(t),s=Math.cos(n),a=Math.sin(n),l=(e+i)/2;return"M"+e*r+","+e*o+"C"+l*r+","+l*o+" "+l*s+","+l*a+" "+i*s+","+i*a};const nE=(0,m.Xr)({line:XS,"line-radial":HS,arc:BS,"arc-radial":YS,curve:JS,"curve-radial":GS,"orthogonal-horizontal":VS,"orthogonal-vertical":KS,"orthogonal-radial":ZS,"diagonal-horizontal":QS,"diagonal-vertical":tE,"diagonal-radial":eE});function iE(t){Us.call(this,null,t)}iE.Definition={type:"Pie",metadata:{modifies:true},params:[{name:"field",type:"field"},{name:"startAngle",type:"number",default:0},{name:"endAngle",type:"number",default:6.283185307179586},{name:"sort",type:"boolean",default:false},{name:"as",type:"string",array:true,length:2,default:["startAngle","endAngle"]}]};(0,m.XW)(iE,Us,{transform(t,e){var n=t.as||["startAngle","endAngle"],i=n[0],r=n[1],o=t.field||m.kX,s=t.startAngle||0,a=t.endAngle!=null?t.endAngle:2*Math.PI,l=e.source,u=l.map(o),c=u.length,f=s,h=(a-s)/zS(u),d=rl(c),p,g,y;if(t.sort){d.sort(((t,e)=>u[t]-u[e]))}for(p=0;p-1)return i;var r=e.domain,o=t.type,s=e.zero||e.zero===undefined&&oE(t),a,l;if(!r)return 0;if(sE(o)&&e.padding&&r[0]!==(0,m.fj)(r)){r=dE(o,r,e.range,e.padding,e.exponent,e.constant)}if(s||e.domainMin!=null||e.domainMax!=null||e.domainMid!=null){a=(r=r.slice()).length-1||1;if(s){if(r[0]>0)r[0]=0;if(r[a]<0)r[a]=0}if(e.domainMin!=null)r[0]=e.domainMin;if(e.domainMax!=null)r[a]=e.domainMax;if(e.domainMid!=null){l=e.domainMid;const t=l>r[a]?a+1:lt+(e<0?-1:e>0?1:0)),0));if(i!==e.length){n.warn("Log scale domain includes zero: "+(0,m.m8)(e))}}return e}function mE(t,e,n){let i=e.bins;if(i&&!(0,m.kJ)(i)){const e=t.domain(),n=e[0],r=(0,m.fj)(e),o=i.step;let s=i.start==null?n:i.start,a=i.stop==null?r:i.stop;if(!o)(0,m.vU)("Scale bins parameter missing step property.");if(sr)a=o*Math.floor(r/o);i=rl(s,a+o/2,o)}if(i){t.bins=i}else if(t.bins){delete t.bins}if(t.type===hg){if(!i){t.bins=t.domain()}else if(!e.domain&&!e.domainRaw){t.domain(i);n=i.length}}return n}function gE(t,e,n){var i=t.type,r=e.round||false,o=e.range;if(e.rangeStep!=null){o=yE(i,e,n)}else if(e.scheme){o=vE(i,e,n);if((0,m.mf)(o)){if(t.interpolator){return t.interpolator(o)}else{(0,m.vU)(`Scale type ${i} does not support interpolating color schemes.`)}}}if(o&&Lg(i)){return t.interpolator(Xg(xE(o,e.reverse),e.interpolate,e.interpolateGamma))}if(o&&e.interpolate&&t.interpolate){t.interpolate(Jg(e.interpolate,e.interpolateGamma))}else if((0,m.mf)(t.round)){t.round(r)}else if((0,m.mf)(t.rangeRound)){t.interpolate(r?wd:bd)}if(o)t.range(xE(o,e.reverse))}function yE(t,e,n){if(t!==fg&&t!==cg){(0,m.vU)("Only band and point scales support rangeStep.")}var i=(e.paddingOuter!=null?e.paddingOuter:e.padding)||0,r=t===cg?1:(e.paddingInner!=null?e.paddingInner:e.padding)||0;return[0,e.rangeStep*Gm(n,r,i)]}function vE(t,e,n){var i=e.schemeExtent,r,o;if((0,m.kJ)(e.scheme)){o=Xg(e.scheme,e.interpolate,e.interpolateGamma)}else{r=e.scheme.toLowerCase();o=ey(r);if(!o)(0,m.vU)(`Unrecognized scheme name: ${e.scheme}`)}n=t===lg?n+1:t===hg?n-1:t===sg||t===ag?+e.schemeCount||rE:n;return Lg(t)?_E(o,i,e.reverse):(0,m.mf)(o)?Hg(_E(o,i),n):t===ug?o:o.slice(0,n)}function _E(t,e,n){return(0,m.mf)(t)&&(e||n)?Wg(t,xE(e||[0,1],n)):t}function xE(t,e){return e?t.slice().reverse():t}function bE(t){Us.call(this,null,t)}(0,m.XW)(bE,Us,{transform(t,e){const n=t.modified("sort")||e.changed(e.ADD)||e.modified(t.sort.fields)||e.modified("datum");if(n)e.source.sort(To(t.sort));this.modified(n);return e}});const wE="zero",kE="center",ME="normalize",SE=["y0","y1"];function EE(t){Us.call(this,null,t)}EE.Definition={type:"Stack",metadata:{modifies:true},params:[{name:"field",type:"field"},{name:"groupby",type:"field",array:true},{name:"sort",type:"compare"},{name:"offset",type:"enum",default:wE,values:[wE,kE,ME]},{name:"as",type:"string",array:true,length:2,default:SE}]};(0,m.XW)(EE,Us,{transform(t,e){var n=t.as||SE,i=n[0],r=n[1],o=To(t.sort),s=t.field||m.kX,a=t.offset===kE?TE:t.offset===ME?$E:DE,l,u,c,f;l=AE(e.source,t.groupby,o,s);for(u=0,c=l.length,f=l.max;ut(c),s,a,l,u,c,f,h,d,p;if(e==null){r.push(t.slice())}else{for(s={},a=0,l=t.length;ap)p=d;if(n)h.sort(n)}r.max=p;return r}const NE=t=>t;function zE(t,e){if(t&&CE.hasOwnProperty(t.type)){CE[t.type](t,e)}}var RE={Feature:function(t,e){zE(t.geometry,e)},FeatureCollection:function(t,e){var n=t.features,i=-1,r=n.length;while(++i0){o=t[--e];while(e>0){n=o;i=t[--e];o=n+i;r=i-(o-n);if(r)break}if(e>0&&(r<0&&t[e-1]<0||r>0&&t[e-1]>0)){i=r*2;n=o+i;if(i==n-o)o=n}}return o}}function qE(t,e){const n=new IE;if(e===undefined){for(let e of t){if(e=+e){n.add(e)}}}else{let i=-1;for(let r of t){if(r=+e(r,++i,t)){n.add(r)}}}return+n}function LE(t,e){const n=new IE;let i=-1;return Float64Array.from(t,e===undefined?t=>n.add(+t||0):r=>n.add(+e(r,++i,t)||0))}var FE=1e-6;var jE=1e-12;var WE=Math.PI;var XE=WE/2;var HE=WE/4;var BE=WE*2;var YE=180/WE;var JE=WE/180;var GE=Math.abs;var VE=Math.atan;var KE=Math.atan2;var ZE=Math.cos;var QE=Math.ceil;var tT=Math.exp;var eT=Math.floor;var nT=Math.hypot;var iT=Math.log;var rT=Math.pow;var oT=Math.sin;var sT=Math.sign||function(t){return t>0?1:t<0?-1:0};var aT=Math.sqrt;var lT=Math.tan;function uT(t){return t>1?0:t<-1?WE:Math.acos(t)}function cT(t){return t>1?XE:t<-1?-XE:Math.asin(t)}function fT(t){return(t=oT(t/2))*t}function hT(){}var dT=new IE,pT=new IE,mT,gT,yT,vT;var _T={point:hT,lineStart:hT,lineEnd:hT,polygonStart:function(){_T.lineStart=xT;_T.lineEnd=kT},polygonEnd:function(){_T.lineStart=_T.lineEnd=_T.point=hT;dT.add(GE(pT));pT=new IE},result:function(){var t=dT/2;dT=new IE;return t}};function xT(){_T.point=bT}function bT(t,e){_T.point=wT;mT=yT=t,gT=vT=e}function wT(t,e){pT.add(vT*t-yT*e);yT=t,vT=e}function kT(){wT(mT,gT)}const MT=_T;var ST=Infinity,ET=ST,TT=-ST,$T=TT;var DT={point:AT,lineStart:hT,lineEnd:hT,polygonStart:hT,polygonEnd:hT,result:function(){var t=[[ST,ET],[TT,$T]];TT=$T=-(ET=ST=Infinity);return t}};function AT(t,e){if(tTT)TT=t;if(e$T)$T=e}const NT=DT;var zT=0,RT=0,CT=0,OT=0,UT=0,PT=0,IT=0,qT=0,LT=0,FT,jT,WT,XT;var HT={point:BT,lineStart:YT,lineEnd:VT,polygonStart:function(){HT.lineStart=KT;HT.lineEnd=ZT},polygonEnd:function(){HT.point=BT;HT.lineStart=YT;HT.lineEnd=VT},result:function(){var t=LT?[IT/LT,qT/LT]:PT?[OT/PT,UT/PT]:CT?[zT/CT,RT/CT]:[NaN,NaN];zT=RT=CT=OT=UT=PT=IT=qT=LT=0;return t}};function BT(t,e){zT+=t;RT+=e;++CT}function YT(){HT.point=JT}function JT(t,e){HT.point=GT;BT(WT=t,XT=e)}function GT(t,e){var n=t-WT,i=e-XT,r=aT(n*n+i*i);OT+=r*(WT+t)/2;UT+=r*(XT+e)/2;PT+=r;BT(WT=t,XT=e)}function VT(){HT.point=BT}function KT(){HT.point=QT}function ZT(){t$(FT,jT)}function QT(t,e){HT.point=t$;BT(FT=WT=t,jT=XT=e)}function t$(t,e){var n=t-WT,i=e-XT,r=aT(n*n+i*i);OT+=r*(WT+t)/2;UT+=r*(XT+e)/2;PT+=r;r=XT*t-WT*e;IT+=r*(WT+t);qT+=r*(XT+e);LT+=r*3;BT(WT=t,XT=e)}const e$=HT;function n$(t){this._context=t}n$.prototype={_radius:4.5,pointRadius:function(t){return this._radius=t,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){if(this._line===0)this._context.closePath();this._point=NaN},point:function(t,e){switch(this._point){case 0:{this._context.moveTo(t,e);this._point=1;break}case 1:{this._context.lineTo(t,e);break}default:{this._context.moveTo(t+this._radius,e);this._context.arc(t,e,this._radius,0,BE);break}}},result:hT};var i$=new IE,r$,o$,s$,a$,l$;var u$={point:hT,lineStart:function(){u$.point=c$},lineEnd:function(){if(r$)f$(o$,s$);u$.point=hT},polygonStart:function(){r$=true},polygonEnd:function(){r$=null},result:function(){var t=+i$;i$=new IE;return t}};function c$(t,e){u$.point=f$;o$=a$=t,s$=l$=e}function f$(t,e){a$-=t,l$-=e;i$.add(aT(a$*a$+l$*l$));a$=t,l$=e}const h$=u$;let d$,p$,m$,g$;class y${constructor(t){this._append=t==null?v$:_$(t);this._radius=4.5;this._=""}pointRadius(t){this._radius=+t;return this}polygonStart(){this._line=0}polygonEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){if(this._line===0)this._+="Z";this._point=NaN}point(t,e){switch(this._point){case 0:{this._append`M${t},${e}`;this._point=1;break}case 1:{this._append`L${t},${e}`;break}default:{this._append`M${t},${e}`;if(this._radius!==m$||this._append!==p$){const t=this._radius;const e=this._;this._="";this._append`m0,${t}a${t},${t} 0 1,1 0,${-2*t}a${t},${t} 0 1,1 0,${2*t}z`;m$=t;p$=this._append;g$=this._;this._=e}this._+=g$;break}}}result(){const t=this._;this._="";return t.length?t:null}}function v$(t){let e=1;this._+=t[0];for(const n=t.length;e=0))throw new RangeError(`invalid digits: ${t}`);if(e>15)return v$;if(e!==d$){const t=10**e;d$=e;p$=function e(n){let i=1;this._+=n[0];for(const r=n.length;i=0))throw new RangeError(`invalid digits: ${t}`);n=e}if(e===null)o=new y$(n);return s};return s.projection(t).digits(n).context(e)}function b$(){var t=[],e;return{point:function(t,n,i){e.push([t,n,i])},lineStart:function(){t.push(e=[])},lineEnd:hT,rejoin:function(){if(t.length>1)t.push(t.pop().concat(t.shift()))},result:function(){var n=t;t=[];e=null;return n}}}function w$(t,e){return GE(t[0]-e[0])=0;--a)r.point((f=c[a])[0],f[1])}else{i(h.x,h.p.x,-1,r)}h=h.p}h=h.o;c=h.z;d=!d}while(!h.v);r.lineEnd()}}function S$(t){if(!(e=t.length))return;var e,n=0,i=t[0],r;while(++n=0?1:-1,E=S*M,T=E>WE,$=g*w;l.add(KE($*S*oT(E),y*k+$*ZE(E)));s+=T?M+S*BE:M;if(T^p>=n^x>=n){var D=D$(T$(d),T$(_));z$(D);var A=D$(o,D);z$(A);var N=(T^M>=0?-1:1)*cT(A[2]);if(i>N||i===N&&(D[0]||D[1])){a+=T^M>=0?1:-1}}}}return(s<-FE||s0){if(!l)r.polygonStart(),l=true;r.lineStart();for(n=0;n1&&t&2)e.push(e.pop().concat(e.shift()));c.push(e.filter(I$))}return h}}function I$(t){return t.length>1}function q$(t,e){return((t=t.x)[0]<0?t[1]-XE-FE:XE-t[1])-((e=e.x)[0]<0?e[1]-XE-FE:XE-e[1])}const L$=P$((function(){return true}),F$,W$,[-WE,-XE]);function F$(t){var e=NaN,n=NaN,i=NaN,r;return{lineStart:function(){t.lineStart();r=1},point:function(o,s){var a=o>0?WE:-WE,l=GE(o-e);if(GE(l-WE)0?XE:-XE);t.point(i,n);t.lineEnd();t.lineStart();t.point(a,n);t.point(o,n);r=0}else if(i!==a&&l>=WE){if(GE(e-i)FE?VE((oT(e)*(o=ZE(i))*oT(n)-oT(i)*(r=ZE(e))*oT(t))/(r*o*s)):(e+i)/2}function W$(t,e,n,i){var r;if(t==null){r=n*XE;i.point(-WE,r);i.point(0,r);i.point(WE,r);i.point(WE,0);i.point(WE,-r);i.point(0,-r);i.point(-WE,-r);i.point(-WE,0);i.point(-WE,r)}else if(GE(t[0]-e[0])>FE){var o=t[0]0?ro)r+=i*BE}for(var u,c=r;i>0?c>o:c0,r=GE(e)>FE;function o(e,i,r,o){X$(o,t,n,r,e,i)}function s(t,n){return ZE(t)*ZE(n)>e}function a(t){var e,n,o,a,c;return{lineStart:function(){a=o=false;c=1},point:function(f,h){var d=[f,h],p,m=s(f,h),g=i?m?0:u(f,h):m?u(f+(f<0?WE:-WE),h):0;if(!e&&(a=o=m))t.lineStart();if(m!==o){p=l(e,d);if(!p||w$(e,p)||w$(d,p))d[2]=1}if(m!==o){c=0;if(m){t.lineStart();p=l(d,e);t.point(p[0],p[1])}else{p=l(e,d);t.point(p[0],p[1],2);t.lineEnd()}e=p}else if(r&&e&&i^m){var y;if(!(g&n)&&(y=l(d,e,true))){c=0;if(i){t.lineStart();t.point(y[0][0],y[0][1]);t.point(y[1][0],y[1][1]);t.lineEnd()}else{t.point(y[1][0],y[1][1]);t.lineEnd();t.lineStart();t.point(y[0][0],y[0][1],3)}}}if(m&&(!e||!w$(e,d))){t.point(d[0],d[1])}e=d,o=m,n=g},lineEnd:function(){if(o)t.lineEnd();e=null},clean:function(){return c|(a&&o)<<1}}}function l(t,n,i){var r=T$(t),o=T$(n);var s=[1,0,0],a=D$(r,o),l=$$(a,a),u=a[0],c=l-u*u;if(!c)return!i&&t;var f=e*l/c,h=-e*u/c,d=D$(s,a),p=N$(s,f),m=N$(a,h);A$(p,m);var g=d,y=$$(p,g),v=$$(g,g),_=y*y-v*($$(p,p)-1);if(_<0)return;var x=aT(_),b=N$(g,(-y-x)/v);A$(b,p);b=E$(b);if(!i)return b;var w=t[0],k=n[0],M=t[1],S=n[1],E;if(k0^b[1]<(GE(b[0]-w)WE^(w<=b[0]&&b[0]<=k)){var A=N$(g,(-y+x)/v);A$(A,p);return[b,E$(A)]}}function u(e,n){var r=i?t:WE-t,o=0;if(e<-r)o|=1;else if(e>r)o|=2;if(n<-r)o|=4;else if(n>r)o|=8;return o}return P$(s,a,o,i?[0,-t]:[-WE,t-WE])}function J$(t,e,n,i,r,o){var s=t[0],a=t[1],l=e[0],u=e[1],c=0,f=1,h=l-s,d=u-a,p;p=n-s;if(!h&&p>0)return;p/=h;if(h<0){if(p0){if(p>f)return;if(p>c)c=p}p=r-s;if(!h&&p<0)return;p/=h;if(h<0){if(p>f)return;if(p>c)c=p}else if(h>0){if(p0)return;p/=d;if(d<0){if(p0){if(p>f)return;if(p>c)c=p}p=o-a;if(!d&&p<0)return;p/=d;if(d<0){if(p>f)return;if(p>c)c=p}else if(d>0){if(p0)t[0]=s+c*h,t[1]=a+c*d;if(f<1)e[0]=s+f*h,e[1]=a+f*d;return true}var G$=1e9,V$=-G$;function K$(t,e,n,i){function r(r,o){return t<=r&&r<=n&&e<=o&&o<=i}function o(r,o,a,u){var c=0,f=0;if(r==null||(c=s(r,a))!==(f=s(o,a))||l(r,o)<0^a>0){do{u.point(c===0||c===3?t:n,c>1?i:e)}while((c=(c+a+4)%4)!==f)}else{u.point(o[0],o[1])}}function s(i,r){return GE(i[0]-t)0?0:3:GE(i[0]-n)0?2:1:GE(i[1]-e)0?1:0:r>0?3:2}function a(t,e){return l(t.x,e.x)}function l(t,e){var n=s(t,1),i=s(e,1);return n!==i?n-i:n===0?e[1]-t[1]:n===1?t[0]-e[0]:n===2?t[1]-e[1]:e[0]-t[0]}return function(s){var l=s,u=b$(),c,f,h,d,p,m,g,y,v,_,x;var b={point:w,lineStart:E,lineEnd:T,polygonStart:M,polygonEnd:S};function w(t,e){if(r(t,e))l.point(t,e)}function k(){var e=0;for(var n=0,r=f.length;ni&&(h-u)*(i-c)>(d-c)*(t-u))++e}else{if(d<=i&&(h-u)*(i-c)<(d-c)*(t-u))--e}}}return e}function M(){l=u,c=[],f=[],x=true}function S(){var t=k(),e=x&&t,n=(c=U$(c)).length;if(e||n){s.polygonStart();if(e){s.lineStart();o(null,null,1,s);s.lineEnd()}if(n){M$(c,a,t,o,s)}s.polygonEnd()}l=s,c=f=h=null}function E(){b.point=$;if(f)f.push(h=[]);_=true;v=false;g=y=NaN}function T(){if(c){$(d,p);if(m&&v)u.rejoin();c.push(u.result())}b.point=w;if(v)l.lineEnd()}function $(o,s){var a=r(o,s);if(f)h.push([o,s]);if(_){d=o,p=s,m=a;_=false;if(a){l.lineStart();l.point(o,s)}}else{if(a&&v)l.point(o,s);else{var u=[g=Math.max(V$,Math.min(G$,g)),y=Math.max(V$,Math.min(G$,y))],c=[o=Math.max(V$,Math.min(G$,o)),s=Math.max(V$,Math.min(G$,s))];if(J$(u,c,t,e,n,i)){if(!v){l.lineStart();l.point(u[0],u[1])}l.point(c[0],c[1]);if(!a)l.lineEnd();x=false}else if(a){l.lineStart();l.point(o,s);x=false}}}g=o,y=s,v=a}return b}}function Z$(t,e){function n(n,i){return n=t(n,i),e(n[0],n[1])}if(t.invert&&e.invert)n.invert=function(n,i){return n=e.invert(n,i),n&&t.invert(n[0],n[1])};return n}function Q$(t,e){if(GE(t)>WE)t-=Math.round(t/BE)*BE;return[t,e]}Q$.invert=Q$;function tD(t,e,n){return(t%=BE)?e||n?Z$(nD(t),iD(e,n)):nD(t):e||n?iD(e,n):Q$}function eD(t){return function(e,n){e+=t;if(GE(e)>WE)e-=Math.round(e/BE)*BE;return[e,n]}}function nD(t){var e=eD(t);e.invert=eD(-t);return e}function iD(t,e){var n=ZE(t),i=oT(t),r=ZE(e),o=oT(e);function s(t,e){var s=ZE(e),a=ZE(t)*s,l=oT(t)*s,u=oT(e),c=u*n+a*i;return[KE(l*r-c*o,a*n-u*i),cT(c*r+l*o)]}s.invert=function(t,e){var s=ZE(e),a=ZE(t)*s,l=oT(t)*s,u=oT(e),c=u*r-l*o;return[KE(l*r+u*o,a*n+c*i),cT(c*n-a*i)]};return s}function rD(t){t=tD(t[0]*JE,t[1]*JE,t.length>2?t[2]*JE:0);function e(e){e=t(e[0]*JE,e[1]*JE);return e[0]*=YE,e[1]*=YE,e}e.invert=function(e){e=t.invert(e[0]*JE,e[1]*JE);return e[0]*=YE,e[1]*=YE,e};return e}function oD(t){return{stream:sD(t)}}function sD(t){return function(e){var n=new aD;for(var i in t)n[i]=t[i];n.stream=e;return n}}function aD(){}aD.prototype={constructor:aD,point:function(t,e){this.stream.point(t,e)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};function lD(t,e,n){var i=t.clipExtent&&t.clipExtent();t.scale(150).translate([0,0]);if(i!=null)t.clipExtent(null);PE(n,t.stream(NT));e(NT.result());if(i!=null)t.clipExtent(i);return t}function uD(t,e,n){return lD(t,(function(n){var i=e[1][0]-e[0][0],r=e[1][1]-e[0][1],o=Math.min(i/(n[1][0]-n[0][0]),r/(n[1][1]-n[0][1])),s=+e[0][0]+(i-o*(n[1][0]+n[0][0]))/2,a=+e[0][1]+(r-o*(n[1][1]+n[0][1]))/2;t.scale(150*o).translate([s,a])}),n)}function cD(t,e,n){return uD(t,[[0,0],e],n)}function fD(t,e,n){return lD(t,(function(n){var i=+e,r=i/(n[1][0]-n[0][0]),o=(i-r*(n[1][0]+n[0][0]))/2,s=-r*n[0][1];t.scale(150*r).translate([o,s])}),n)}function hD(t,e,n){return lD(t,(function(n){var i=+e,r=i/(n[1][1]-n[0][1]),o=-r*n[0][0],s=(i-r*(n[1][1]+n[0][1]))/2;t.scale(150*r).translate([o,s])}),n)}var dD=16,pD=ZE(30*JE);function mD(t,e){return+e?yD(t,e):gD(t)}function gD(t){return sD({point:function(e,n){e=t(e,n);this.stream.point(e[0],e[1])}})}function yD(t,e){function n(i,r,o,s,a,l,u,c,f,h,d,p,m,g){var y=u-i,v=c-r,_=y*y+v*v;if(_>4*e&&m--){var x=s+h,b=a+d,w=l+p,k=aT(x*x+b*b+w*w),M=cT(w/=k),S=GE(GE(w)-1)e||GE((y*D+v*A)/_-.5)>.3||s*h+a*d+l*p2?t[2]%360*JE:0,D()):[a*YE,l*YE,u*YE]};T.angle=function(t){return arguments.length?(f=t%360*JE,D()):f*YE};T.reflectX=function(t){return arguments.length?(h=t?-1:1,D()):h<0};T.reflectY=function(t){return arguments.length?(d=t?-1:1,D()):d<0};T.precision=function(t){return arguments.length?(w=mD(k,b=t*t),A()):aT(b)};T.fitExtent=function(t,e){return uD(T,t,e)};T.fitSize=function(t,e){return cD(T,t,e)};T.fitWidth=function(t,e){return fD(T,t,e)};T.fitHeight=function(t,e){return hD(T,t,e)};function D(){var t=bD(n,0,0,h,d,f).apply(null,e(o,s)),p=bD(n,i-t[0],r-t[1],h,d,f);c=tD(a,l,u);k=Z$(e,p);M=Z$(c,k);w=mD(k,b);return A()}function A(){S=E=null;return T}return function(){e=t.apply(this,arguments);T.invert=e.invert&&$;return D()}}function MD(t){var e=0,n=WE/3,i=kD(t),r=i(e,n);r.parallels=function(t){return arguments.length?i(e=t[0]*JE,n=t[1]*JE):[e*YE,n*YE]};return r}function SD(t){var e=ZE(t);function n(t,n){return[t*e,oT(n)/e]}n.invert=function(t,n){return[t/e,cT(n*e)]};return n}function ED(t,e){var n=oT(t),i=(n+oT(e))/2;if(GE(i)=.12&&a<.234&&o>=-.425&&o<-.214?r:a>=.166&&a<.234&&o>=-.214&&o<-.115?s:n).invert(t)};c.stream=function(i){return t&&e===i?t:t=DD([n.stream(e=i),r.stream(i),s.stream(i)])};c.precision=function(t){if(!arguments.length)return n.precision();n.precision(t),r.precision(t),s.precision(t);return f()};c.scale=function(t){if(!arguments.length)return n.scale();n.scale(t),r.scale(t*.35),s.scale(t);return c.translate(n.translate())};c.translate=function(t){if(!arguments.length)return n.translate();var e=n.scale(),l=+t[0],c=+t[1];i=n.translate(t).clipExtent([[l-.455*e,c-.238*e],[l+.455*e,c+.238*e]]).stream(u);o=r.translate([l-.307*e,c+.201*e]).clipExtent([[l-.425*e+FE,c+.12*e+FE],[l-.214*e-FE,c+.234*e-FE]]).stream(u);a=s.translate([l-.205*e,c+.212*e]).clipExtent([[l-.214*e+FE,c+.166*e+FE],[l-.115*e-FE,c+.234*e-FE]]).stream(u);return f()};c.fitExtent=function(t,e){return uD(c,t,e)};c.fitSize=function(t,e){return cD(c,t,e)};c.fitWidth=function(t,e){return fD(c,t,e)};c.fitHeight=function(t,e){return hD(c,t,e)};function f(){t=e=null;return c}return c.scale(1070)}function ND(t){return function(e,n){var i=ZE(e),r=ZE(n),o=t(i*r);if(o===Infinity)return[2,0];return[o*r*oT(e),o*oT(n)]}}function zD(t){return function(e,n){var i=aT(e*e+n*n),r=t(i),o=oT(r),s=ZE(r);return[KE(e*o,i*s),cT(i&&n*o/i)]}}var RD=ND((function(t){return aT(2/(1+t))}));RD.invert=zD((function(t){return 2*cT(t/2)}));function CD(){return wD(RD).scale(124.75).clipAngle(180-.001)}var OD=ND((function(t){return(t=uT(t))&&t/oT(t)}));OD.invert=zD((function(t){return t}));function UD(){return wD(OD).scale(79.4188).clipAngle(180-.001)}function PD(t,e){return[t,iT(lT((XE+e)/2))]}PD.invert=function(t,e){return[t,2*VE(tT(e))-XE]};function ID(){return qD(PD).scale(961/BE)}function qD(t){var e=wD(t),n=e.center,i=e.scale,r=e.translate,o=e.clipExtent,s=null,a,l,u;e.scale=function(t){return arguments.length?(i(t),c()):i()};e.translate=function(t){return arguments.length?(r(t),c()):r()};e.center=function(t){return arguments.length?(n(t),c()):n()};e.clipExtent=function(t){return arguments.length?(t==null?s=a=l=u=null:(s=+t[0][0],a=+t[0][1],l=+t[1][0],u=+t[1][1]),c()):s==null?null:[[s,a],[l,u]]};function c(){var n=WE*i(),r=e(rD(e.rotate()).invert([0,0]));return o(s==null?[[r[0]-n,r[1]-n],[r[0]+n,r[1]+n]]:t===PD?[[Math.max(r[0]-n,s),a],[Math.min(r[0]+n,l),u]]:[[s,Math.max(r[1]-n,a)],[l,Math.min(r[1]+n,u)]])}return c()}function LD(t){return lT((XE+t)/2)}function FD(t,e){var n=ZE(t),i=t===e?oT(t):iT(n/ZE(e))/iT(LD(e)/LD(t)),r=n*rT(LD(t),i)/i;if(!i)return PD;function o(t,e){if(r>0){if(e<-XE+FE)e=-XE+FE}else{if(e>XE-FE)e=XE-FE}var n=r/rT(LD(e),i);return[n*oT(i*t),r-n*ZE(i*t)]}o.invert=function(t,e){var n=r-e,o=sT(i)*aT(t*t+n*n),s=KE(t,GE(n))*sT(n);if(n*i<0)s-=WE*sT(t)*sT(n);return[s/i,2*VE(rT(r/o,1/i))-XE]};return o}function jD(){return MD(FD).scale(109.5).parallels([30,30])}function WD(t,e){return[t,e]}WD.invert=WD;function XD(){return wD(WD).scale(152.63)}function HD(t,e){var n=ZE(t),i=t===e?oT(t):(n-ZE(e))/(e-t),r=n/i+t;if(GE(i)FE&&--i>0);return[t/(.8707+(o=n*n)*(-.131979+o*(-.013791+o*o*o*(.003971-.001529*o)))),n]};function oA(){return wD(rA).scale(175.295)}function sA(t,e){return[ZE(e)*oT(t),oT(e)]}sA.invert=zD(cT);function aA(){return wD(sA).scale(249.5).clipAngle(90+FE)}function lA(t,e){var n=ZE(e),i=1+ZE(t)*n;return[n*oT(t)/i,oT(e)/i]}lA.invert=zD((function(t){return 2*VE(t)}));function uA(){return wD(lA).scale(250).clipAngle(142)}function cA(t,e){return[iT(lT((XE+e)/2)),-t]}cA.invert=function(t,e){return[-e,2*VE(tT(t))-XE]};function fA(){var t=qD(cA),e=t.center,n=t.rotate;t.center=function(t){return arguments.length?e([-t[1],t[0]]):(t=e(),[t[1],-t[0]])};t.rotate=function(t){return arguments.length?n([t[0],t[1],t.length>2?t[2]+90:90]):(t=n(),[t[0],t[1],t[2]-90])};return n([0,0,90]).scale(159.155)}var hA=Math.abs;var dA=Math.atan;var pA=Math.atan2;var mA=Math.ceil;var gA=Math.cos;var yA=Math.exp;var vA=Math.floor;var _A=Math.log;var xA=Math.max;var bA=Math.min;var wA=Math.pow;var kA=Math.round;var MA=Math.sign||function(t){return t>0?1:t<0?-1:0};var SA=Math.sin;var EA=Math.tan;var TA=1e-6;var $A=1e-12;var DA=Math.PI;var AA=DA/2;var NA=DA/4;var zA=Math.SQRT1_2;var RA=FA(2);var CA=FA(DA);var OA=DA*2;var UA=180/DA;var PA=DA/180;function IA(t){return t?t/Math.sin(t):1}function qA(t){return t>1?AA:t<-1?-AA:Math.asin(t)}function LA(t){return t>1?0:t<-1?DA:Math.acos(t)}function FA(t){return t>0?Math.sqrt(t):0}function jA(t){t=yA(2*t);return(t-1)/(t+1)}function WA(t){return(yA(t)-yA(-t))/2}function XA(t){return(yA(t)+yA(-t))/2}function HA(t){return _A(t+FA(t*t+1))}function BA(t){return _A(t+FA(t*t-1))}function YA(t,e){var n=t*SA(e),i=30,r;do{e-=r=(e+SA(e)-n)/(1+gA(e))}while(hA(r)>TA&&--i>0);return e/2}function JA(t,e,n){function i(i,r){return[t*i*gA(r=YA(n,r)),e*SA(r)]}i.invert=function(i,r){return r=qA(r/e),[i/(t*gA(r)),qA((2*r+SA(2*r))/n)]};return i}var GA=JA(RA/AA,RA,DA);function VA(){return wD(GA).scale(169.529)}const KA=x$();const ZA=["clipAngle","clipExtent","scale","translate","center","rotate","parallels","precision","reflectX","reflectY","coefficient","distance","fraction","lobes","parallel","radius","ratio","spacing","tilt"];function QA(t,e){return function n(){const i=e();i.type=t;i.path=x$().projection(i);i.copy=i.copy||function(){const t=n();ZA.forEach((e=>{if(i[e])t[e](i[e]())}));t.path.pointRadius(i.path.pointRadius());return t};return Dg(i)}}function tN(t,e){if(!t||typeof t!=="string"){throw new Error("Projection type must be a name string.")}t=t.toLowerCase();if(arguments.length>1){nN[t]=QA(t,e);return this}else{return nN[t]||null}}function eN(t){return t&&t.path||KA}const nN={albers:$D,albersusa:AD,azimuthalequalarea:CD,azimuthalequidistant:UD,conicconformal:jD,conicequalarea:TD,conicequidistant:BD,equalEarth:tA,equirectangular:XD,gnomonic:nA,identity:iA,mercator:ID,mollweide:VA,naturalEarth1:oA,orthographic:aA,stereographic:uA,transversemercator:fA};for(const GV in nN){tN(GV,nN[GV])}function iN(t,e,n){var i=rl(t,e-FE,n).concat(e);return function(t){return i.map((function(e){return[t,e]}))}}function rN(t,e,n){var i=rl(t,e-FE,n).concat(e);return function(t){return i.map((function(e){return[e,t]}))}}function oN(){var t,e,n,i,r,o,s,a,l=10,u=l,c=90,f=360,h,d,p,m,g=2.5;function y(){return{type:"MultiLineString",coordinates:v()}}function v(){return rl(QE(i/c)*c,n,c).map(p).concat(rl(QE(a/f)*f,s,f).map(m)).concat(rl(QE(e/l)*l,t,l).filter((function(t){return GE(t%c)>FE})).map(h)).concat(rl(QE(o/u)*u,r,u).filter((function(t){return GE(t%f)>FE})).map(d))}y.lines=function(){return v().map((function(t){return{type:"LineString",coordinates:t}}))};y.outline=function(){return{type:"Polygon",coordinates:[p(i).concat(m(s).slice(1),p(n).reverse().slice(1),m(a).reverse().slice(1))]}};y.extent=function(t){if(!arguments.length)return y.extentMinor();return y.extentMajor(t).extentMinor(t)};y.extentMajor=function(t){if(!arguments.length)return[[i,a],[n,s]];i=+t[0][0],n=+t[1][0];a=+t[0][1],s=+t[1][1];if(i>n)t=i,i=n,n=t;if(a>s)t=a,a=s,s=t;return y.precision(g)};y.extentMinor=function(n){if(!arguments.length)return[[e,o],[t,r]];e=+n[0][0],t=+n[1][0];o=+n[0][1],r=+n[1][1];if(e>t)n=e,e=t,t=n;if(o>r)n=o,o=r,r=n;return y.precision(g)};y.step=function(t){if(!arguments.length)return y.stepMinor();return y.stepMajor(t).stepMinor(t)};y.stepMajor=function(t){if(!arguments.length)return[c,f];c=+t[0],f=+t[1];return y};y.stepMinor=function(t){if(!arguments.length)return[l,u];l=+t[0],u=+t[1];return y};y.precision=function(l){if(!arguments.length)return g;g=+l;h=iN(o,r,90);d=rN(e,t,g);p=iN(a,s,90);m=rN(i,n,g);return y};return y.extentMajor([[-180,-90+FE],[180,90-FE]]).extentMinor([[-180,-80-FE],[180,80+FE]])}function sN(){return oN()()}function aN(){}const lN=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]];function uN(){var t=1,e=1,n=a;function i(t,e){return e.map((e=>r(t,e)))}function r(t,e){var i=[],r=[];o(t,e,(o=>{n(o,t,e);if(cN(o)>0)i.push([o]);else r.push(o)}));r.forEach((t=>{for(var e=0,n=i.length,r;e=i;lN[f<<1].forEach(p);while(++l=i;lN[c|f<<1].forEach(p)}lN[f<<0].forEach(p);while(++u=i;h=n[u*t]>=i;lN[f<<1|h<<2].forEach(p);while(++l=i;d=h,h=n[u*t+l+1]>=i;lN[c|f<<1|h<<2|d<<3].forEach(p)}lN[f|h<<3].forEach(p)}l=-1;h=n[u*t]>=i;lN[h<<2].forEach(p);while(++l=i;lN[h<<2|d<<3].forEach(p)}lN[h<<3].forEach(p);function p(t){var e=[t[0][0]+l,t[0][1]+u],n=[t[1][0]+l,t[1][1]+u],i=s(e),c=s(n),f,h;if(f=a[i]){if(h=o[c]){delete a[f.end];delete o[h.start];if(f===h){f.ring.push(n);r(f.ring)}else{o[f.start]=a[h.end]={start:f.start,end:h.end,ring:f.ring.concat(h.ring)}}}else{delete a[f.end];f.ring.push(n);a[f.end=c]=f}}else if(f=o[c]){if(h=a[i]){delete o[f.start];delete a[h.end];if(f===h){f.ring.push(n);r(f.ring)}else{o[h.start]=a[f.end]={start:h.start,end:f.end,ring:h.ring.concat(f.ring)}}}else{delete o[f.start];f.ring.unshift(e);o[f.start=i]=f}}else{o[i]=a[c]={start:i,end:c,ring:[e,n]}}}}function s(e){return e[0]*2+e[1]*(t+1)*4}function a(n,i,r){n.forEach((n=>{var o=n[0],s=n[1],a=o|0,l=s|0,u,c=i[l*t+a];if(o>0&&o0&&s=0&&o>=0))(0,m.vU)("invalid size");return t=r,e=o,i};i.smooth=function(t){return arguments.length?(n=t?a:aN,i):n===a};return i}function cN(t){var e=0,n=t.length,i=t[n-1][1]*t[0][0]-t[n-1][0]*t[0][1];while(++ei!==d>i&&n<(h-u)*(i-c)/(d-c)+u)r=-r}return r}function dN(t,e,n){var i;return pN(t,e,n)&&mN(t[i=+(t[0]===e[0])],n[i],e[i])}function pN(t,e,n){return(e[0]-t[0])*(n[1]-t[1])===(n[0]-t[0])*(e[1]-t[1])}function mN(t,e,n){return t<=e&&e<=n||n<=e&&e<=t}function gN(t,e,n){return function(i){var r=(0,m.We)(i),o=n?Math.min(r[0],0):r[0],s=r[1],a=s-o,l=e?X(o,s,t):a/(t+1);return rl(o+l,s,l)}}function yN(t){Us.call(this,null,t)}yN.Definition={type:"Isocontour",metadata:{generates:true},params:[{name:"field",type:"field"},{name:"thresholds",type:"number",array:true},{name:"levels",type:"number"},{name:"nice",type:"boolean",default:false},{name:"resolve",type:"enum",values:["shared","independent"],default:"independent"},{name:"zero",type:"boolean",default:true},{name:"smooth",type:"boolean",default:true},{name:"scale",type:"number",expr:true},{name:"translate",type:"number",array:true,expr:true},{name:"as",type:"string",null:true,default:"contour"}]};(0,m.XW)(yN,Us,{transform(t,e){if(this.value&&!e.changed()&&!t.modified()){return e.StopPropagation}var n=e.fork(e.NO_SOURCE|e.NO_FIELDS),i=e.materialize(e.SOURCE).source,r=t.field||m.yR,o=uN().smooth(t.smooth!==false),s=t.thresholds||vN(i,r,t),a=t.as===null?null:t.as||"contour",l=[];i.forEach((e=>{const n=r(e);const i=o.size([n.width,n.height])(n.values,(0,m.kJ)(s)?s:s(n.values));_N(i,n,e,t);i.forEach((t=>{l.push(So(e,ko(a!=null?{[a]:t}:t)))}))}));if(this.value)n.rem=this.value;this.value=n.source=n.add=l;return n}});function vN(t,e,n){const i=gN(n.levels||10,n.nice,n.zero!==false);return n.resolve!=="shared"?i:i(t.map((t=>Ls(e(t).values))))}function _N(t,e,n,i){let r=i.scale||e.scale,o=i.translate||e.translate;if((0,m.mf)(r))r=r(n,i);if((0,m.mf)(o))o=o(n,i);if((r===1||r==null)&&!o)return;const s=((0,m.hj)(r)?r:r[0])||1,a=((0,m.hj)(r)?r:r[1])||1,l=o&&o[0]||0,u=o&&o[1]||0;t.forEach(xN(e,s,a,l,u))}function xN(t,e,n,i,r){const o=t.x1||0,s=t.y1||0,a=e*n<0;function l(t){t.forEach(u)}function u(t){if(a)t.reverse();t.forEach(c)}function c(t){t[0]=(t[0]-o)*e+i;t[1]=(t[1]-s)*n+r}return function(t){t.coordinates.forEach(l);return t}}function bN(t,e,n){const i=t>=0?t:oa(e,n);return Math.round((Math.sqrt(4*i*i+1)-1)/2)}function wN(t){return(0,m.mf)(t)?t:(0,m.a9)(+t)}function kN(){var t=t=>t[0],e=t=>t[1],n=m.kX,i=[-1,-1],r=960,o=500,s=2;function a(a,l){const u=bN(i[0],a,t)>>s,c=bN(i[1],a,e)>>s,f=u?u+2:0,h=c?c+2:0,d=2*f+(r>>s),p=2*h+(o>>s),m=new Float32Array(d*p),g=new Float32Array(d*p);let y=m;a.forEach((i=>{const r=f+(+t(i)>>s),o=h+(+e(i)>>s);if(r>=0&&r=0&&o0&&c>0){MN(d,p,m,g,u);SN(d,p,g,m,c);MN(d,p,m,g,u);SN(d,p,g,m,c);MN(d,p,m,g,u);SN(d,p,g,m,c)}else if(u>0){MN(d,p,m,g,u);MN(d,p,g,m,u);MN(d,p,m,g,u);y=g}else if(c>0){SN(d,p,m,g,c);SN(d,p,g,m,c);SN(d,p,m,g,c);y=g}const v=l?Math.pow(2,-2*s):1/zS(y);for(let t=0,e=d*p;t>s),y2:h+(o>>s)}}a.x=function(e){return arguments.length?(t=wN(e),a):t};a.y=function(t){return arguments.length?(e=wN(t),a):e};a.weight=function(t){return arguments.length?(n=wN(t),a):n};a.size=function(t){if(!arguments.length)return[r,o];var e=+t[0],n=+t[1];if(!(e>=0&&n>=0))(0,m.vU)("invalid size");return r=e,o=n,a};a.cellSize=function(t){if(!arguments.length)return 1<=1))(0,m.vU)("invalid cell size");s=Math.floor(Math.log(t)/Math.LN2);return a};a.bandwidth=function(t){if(!arguments.length)return i;t=(0,m.IX)(t);if(t.length===1)t=[+t[0],+t[0]];if(t.length!==2)(0,m.vU)("invalid bandwidth");return i=t,a};return a}function MN(t,e,n,i,r){const o=(r<<1)+1;for(let s=0;s=r){if(e>=o){a-=n[e-o+s*t]}i[e-r+s*t]=a/Math.min(e+1,t-1+o-e,o)}}}}function SN(t,e,n,i,r){const o=(r<<1)+1;for(let s=0;s=r){if(a>=o){l-=n[s+(a-o)*t]}i[s+(a-r)*t]=l/Math.min(a+1,e-1+o-a,o)}}}}function EN(t){Us.call(this,null,t)}EN.Definition={type:"KDE2D",metadata:{generates:true},params:[{name:"size",type:"number",array:true,length:2,required:true},{name:"x",type:"field",required:true},{name:"y",type:"field",required:true},{name:"weight",type:"field"},{name:"groupby",type:"field",array:true},{name:"cellSize",type:"number"},{name:"bandwidth",type:"number",array:true,length:2},{name:"counts",type:"boolean",default:false},{name:"as",type:"string",default:"grid"}]};const TN=["x","y","weight","size","cellSize","bandwidth"];function $N(t,e){TN.forEach((n=>e[n]!=null?t[n](e[n]):0));return t}(0,m.XW)(EN,Us,{transform(t,e){if(this.value&&!e.changed()&&!t.modified())return e.StopPropagation;var n=e.fork(e.NO_SOURCE|e.NO_FIELDS),i=e.materialize(e.SOURCE).source,r=DN(i,t.groupby),o=(t.groupby||[]).map(m.el),s=$N(kN(),t),a=t.as||"grid",l=[];function u(t,e){for(let n=0;nko(u({[a]:s(e,t.counts)},e.dims))));if(this.value)n.rem=this.value;this.value=n.source=n.add=l;return n}});function DN(t,e){var n=[],i=t=>t(a),r,o,s,a,l,u;if(e==null){n.push(t)}else{for(r={},o=0,s=t.length;on.push(a(t))))}if(o&&s){e.visit(l,(t=>{var e=o(t),n=s(t);if(e!=null&&n!=null&&(e=+e)===e&&(n=+n)===n){i.push([e,n])}}));n=n.concat({type:NN,geometry:{type:RN,coordinates:i}})}this.value={type:zN,features:n}}});function ON(t){Us.call(this,null,t)}ON.Definition={type:"GeoPath",metadata:{modifies:true},params:[{name:"projection",type:"projection"},{name:"field",type:"field"},{name:"pointRadius",type:"number",expr:true},{name:"as",type:"string",default:"path"}]};(0,m.XW)(ON,Us,{transform(t,e){var n=e.fork(e.ALL),i=this.value,r=t.field||m.yR,o=t.as||"path",s=n.SOURCE;if(!i||t.modified()){this.value=i=eN(t.projection);n.materialize().reflow()}else{s=r===m.yR||e.modified(r.fields)?n.ADD_MOD:n.ADD}const a=UN(i,t.pointRadius);n.visit(s,(t=>t[o]=i(r(t))));i.pointRadius(a);return n.modifies(o)}});function UN(t,e){const n=t.pointRadius();t.context(null);if(e!=null){t.pointRadius(e)}return n}function PN(t){Us.call(this,null,t)}PN.Definition={type:"GeoPoint",metadata:{modifies:true},params:[{name:"projection",type:"projection",required:true},{name:"fields",type:"field",array:true,required:true,length:2},{name:"as",type:"string",array:true,length:2,default:["x","y"]}]};(0,m.XW)(PN,Us,{transform(t,e){var n=t.projection,i=t.fields[0],r=t.fields[1],o=t.as||["x","y"],s=o[0],a=o[1],l;function u(t){const e=n([i(t),r(t)]);if(e){t[s]=e[0];t[a]=e[1]}else{t[s]=undefined;t[a]=undefined}}if(t.modified()){e=e.materialize().reflow(true).visit(e.SOURCE,u)}else{l=e.modified(i.fields)||e.modified(r.fields);e.visit(l?e.ADD_MOD:e.ADD,u)}return e.modifies(o)}});function IN(t){Us.call(this,null,t)}IN.Definition={type:"GeoShape",metadata:{modifies:true,nomod:true},params:[{name:"projection",type:"projection"},{name:"field",type:"field",default:"datum"},{name:"pointRadius",type:"number",expr:true},{name:"as",type:"string",default:"shape"}]};(0,m.XW)(IN,Us,{transform(t,e){var n=e.fork(e.ALL),i=this.value,r=t.as||"shape",o=n.ADD;if(!i||t.modified()){this.value=i=qN(eN(t.projection),t.field||(0,m.EP)("datum"),t.pointRadius);n.materialize().reflow();o=n.SOURCE}n.visit(o,(t=>t[r]=i));return n.modifies(r)}});function qN(t,e,n){const i=n==null?n=>t(e(n)):i=>{var r=t.pointRadius(),o=t.pointRadius(n)(e(i));t.pointRadius(r);return o};i.context=e=>{t.context(e);return i};return i}function LN(t){Us.call(this,[],t);this.generator=oN()}LN.Definition={type:"Graticule",metadata:{changes:true,generates:true},params:[{name:"extent",type:"array",array:true,length:2,content:{type:"number",array:true,length:2}},{name:"extentMajor",type:"array",array:true,length:2,content:{type:"number",array:true,length:2}},{name:"extentMinor",type:"array",array:true,length:2,content:{type:"number",array:true,length:2}},{name:"step",type:"number",array:true,length:2},{name:"stepMajor",type:"number",array:true,length:2,default:[90,360]},{name:"stepMinor",type:"number",array:true,length:2,default:[10,10]},{name:"precision",type:"number",default:2.5}]};(0,m.XW)(LN,Us,{transform(t,e){var n=this.value,i=this.generator,r;if(!n.length||t.modified()){for(const e in t){if((0,m.mf)(i[e])){i[e](t[e])}}}r=i();if(n.length){e.mod.push(Eo(n[0],r))}else{e.add.push(ko(r))}n[0]=r;return e}});function FN(t){Us.call(this,null,t)}FN.Definition={type:"heatmap",metadata:{modifies:true},params:[{name:"field",type:"field"},{name:"color",type:"string",expr:true},{name:"opacity",type:"number",expr:true},{name:"resolve",type:"enum",values:["shared","independent"],default:"independent"},{name:"as",type:"string",default:"image"}]};(0,m.XW)(FN,Us,{transform(t,e){if(!e.changed()&&!t.modified()){return e.StopPropagation}var n=e.materialize(e.SOURCE).source,i=t.resolve==="shared",r=t.field||m.yR,o=WN(t.opacity,t),s=jN(t.color,t),a=t.as||"image",l={$x:0,$y:0,$value:0,$max:i?Ls(n.map((t=>Ls(r(t).values)))):0};n.forEach((t=>{const e=r(t);const n=(0,m.l7)({},t,l);if(!i)n.$max=Ls(e.values||[]);t[a]=HN(e,n,s.dep?s:(0,m.a9)(s(n)),o.dep?o:(0,m.a9)(o(n)))}));return e.reflow(true).modifies(a)}});function jN(t,e){let n;if((0,m.mf)(t)){n=n=>Oh(t(n,e));n.dep=XN(t)}else{n=(0,m.a9)(Oh(t||"#888"))}return n}function WN(t,e){let n;if((0,m.mf)(t)){n=n=>t(n,e);n.dep=XN(t)}else if(t){n=(0,m.a9)(t)}else{n=t=>t.$value/t.$max||0;n.dep=true}return n}function XN(t){if(!(0,m.mf)(t))return false;const e=(0,m.Rg)((0,m.Oj)(t));return e.$x||e.$y||e.$value||e.$max}function HN(t,e,n,i){const r=t.width,o=t.height,s=t.x1||0,a=t.y1||0,l=t.x2||r,u=t.y2||o,c=t.values,f=c?t=>c[t]:m.bM,h=rh(l-s,u-a),d=h.getContext("2d"),p=d.getImageData(0,0,l-s,u-a),g=p.data;for(let m=a,y=0;m{if(t[e]!=null)GN(n,e,t[e])}))}else{ZA.forEach((e=>{if(t.modified(e))GN(n,e,t[e])}))}if(t.pointRadius!=null)n.path.pointRadius(t.pointRadius);if(t.fit)YN(n,t);return e.fork(e.NO_SOURCE|e.NO_FIELDS)}});function YN(t,e){const n=VN(e.fit);e.extent?t.fitExtent(e.extent,n):e.size?t.fitSize(e.size,n):0}function JN(t){const e=tN((t||"mercator").toLowerCase());if(!e)(0,m.vU)("Unrecognized projection type: "+t);return e()}function GN(t,e,n){if((0,m.mf)(t[e]))t[e](n)}function VN(t){t=(0,m.IX)(t);return t.length===1?t[0]:{type:zN,features:t.reduce(((t,e)=>t.concat(KN(e))),[])}}function KN(t){return t.type===zN?t.features:(0,m.IX)(t).filter((t=>t!=null)).map((t=>t.type===NN?t:{type:NN,geometry:t}))}function ZN(t,e){var n,i=1;if(t==null)t=0;if(e==null)e=0;function r(){var r,o=n.length,s,a=0,l=0;for(r=0;r=(f=(a+u)/2))a=f;else u=f;if(g=n>=(h=(l+c)/2))l=h;else c=h;if(r=o,!(o=o[y=g<<1|m]))return r[y]=s,t}d=+t._x.call(null,o.data);p=+t._y.call(null,o.data);if(e===d&&n===p)return s.next=o,r?r[y]=s:t._root=s,t;do{r=r?r[y]=new Array(4):t._root=new Array(4);if(m=e>=(f=(a+u)/2))a=f;else u=f;if(g=n>=(h=(l+c)/2))l=h;else c=h}while((y=g<<1|m)===(v=(p>=h)<<1|d>=f));return r[v]=o,r[y]=s,t}function ez(t){var e,n,i=t.length,r,o,s=new Array(i),a=new Array(i),l=Infinity,u=Infinity,c=-Infinity,f=-Infinity;for(n=0;nc)c=r;if(of)f=o}if(l>c||u>f)return this;this.cover(l,u).cover(c,f);for(n=0;nt||t>=r||i>e||e>=o){u=(ec||(a=p.y0)>f||(l=p.x1)=y)<<1|t>=g){p=h[h.length-1];h[h.length-1]=h[h.length-1-m];h[h.length-1-m]=p}}else{var v=t-+this._x.call(null,d.data),_=e-+this._y.call(null,d.data),x=v*v+_*_;if(x=(h=(s+l)/2))s=h;else l=h;if(m=f>=(d=(a+u)/2))a=d;else u=d;if(!(e=n,n=n[g=m<<1|p]))return this;if(!n.length)break;if(e[g+1&3]||e[g+2&3]||e[g+3&3])i=e,y=g}while(n.data!==t)if(!(r=n,n=n.next))return this;if(o=n.next)delete n.next;if(r)return o?r.next=o:delete r.next,this;if(!e)return this._root=o,this;o?e[g]=o:delete e[g];if((n=e[0]||e[1]||e[2]||e[3])&&n===(e[3]||e[2]||e[1]||e[0])&&!n.length){if(i)i[y]=n;else this._root=n}return this}function lz(t){for(var e=0,n=t.length;eu.index){var m=c-a.x-a.vx,g=f-a.y-a.vy,y=m*m+g*g;if(yc+p||of+p||st.r){t.r=t[e].r}}}function l(){if(!e)return;var i,r=e.length,o;n=new Array(r);for(i=0;i{}};function Tz(){for(var t=0,e=arguments.length,n={},i;t=0)n=t.slice(i+1),t=t.slice(0,i);if(t&&!e.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}}))}$z.prototype=Tz.prototype={constructor:$z,on:function(t,e){var n=this._,i=Dz(t+"",n),r,o=-1,s=i.length;if(arguments.length<2){while(++o0)for(var n=new Array(r),i=0,r,o;i=0)t._call.call(undefined,e);t=t._next}--Rz}function Gz(){Lz=(qz=jz.now())+Fz;Rz=Cz=0;try{Jz()}finally{Rz=0;Kz();Lz=0}}function Vz(){var t=jz.now(),e=t-qz;if(e>Uz)Fz-=e,qz=t}function Kz(){var t,e=Pz,n,i=Infinity;while(e){if(e._call){if(i>e._time)i=e._time;t=e,e=e._next}else{n=e._next,e._next=null;e=t?t._next=n:Pz=n}}Iz=t;Zz(i)}function Zz(t){if(Rz)return;if(Cz)Cz=clearTimeout(Cz);var e=t-Lz;if(e>24){if(t(t=(Qz*t+tR)%eR)/eR}function iR(t){return t.x}function rR(t){return t.y}var oR=10,sR=Math.PI*(3-Math.sqrt(5));function aR(t){var e,n=1,i=.001,r=1-Math.pow(i,1/300),o=0,s=.6,a=new Map,l=Yz(f),u=zz("tick","end"),c=nR();if(t==null)t=[];function f(){h();u.call("tick",e);if(n1?(n==null?a.delete(t):a.set(t,p(n)),e):a.get(t)},find:function(e,n,i){var r=0,o=t.length,s,a,l,u,c;if(i==null)i=Infinity;else i*=i;for(r=0;r1?(u.on(t,n),e):u.on(t)}}}function lR(){var t,e,n,i,r=bz(-30),o,s=1,a=Infinity,l=.81;function u(n){var r,o=t.length,s=yz(t,iR,rR).visitAfter(f);for(i=n,r=0;r=a)return;if(t.data!==e||t.next){if(f===0)f=wz(n),p+=f*f;if(h===0)h=wz(n),p+=h*h;if(p[e(t,n,s),t]))),f;for(n=0,a=new Array(r);n=0;)n.tick()}else{if(n.stopped())n.restart();if(!i)return e.StopPropagation}}return this.finish(t,e)},finish(t,e){const n=e.dataflow;for(let a=this._argops,l=0,u=a.length,c;lt.touch(e).run()}function bR(t,e){const n=aR(t),i=n.stop,r=n.restart;let o=false;n.stopped=()=>o;n.restart=()=>(o=false,r());n.stop=()=>(o=true,i());return wR(n,e,true).on("end",(()=>o=true))}function wR(t,e,n,i){var r=(0,m.IX)(e.forces),o,s,a,l;for(o=0,s=gR.length;oe(t,n):e)}function ER(t){var e=0,n=t.children,i=n&&n.length;if(!i)e=1;else while(--i>=0)e+=n[i].value;t.value=e}function TR(){return this.eachAfter(ER)}function $R(t,e){let n=-1;for(const i of this){t.call(e,i,++n,this)}return this}function DR(t,e){var n=this,i=[n],r,o,s=-1;while(n=i.pop()){t.call(e,n,++s,this);if(r=n.children){for(o=r.length-1;o>=0;--o){i.push(r[o])}}}return this}function AR(t,e){var n=this,i=[n],r=[],o,s,a,l=-1;while(n=i.pop()){r.push(n);if(o=n.children){for(s=0,a=o.length;s=0)n+=i[r].value;e.value=n}))}function RR(t){return this.eachBefore((function(e){if(e.children){e.children.sort(t)}}))}function CR(t){var e=this,n=OR(e,t),i=[e];while(e!==n){e=e.parent;i.push(e)}var r=i.length;while(t!==n){i.splice(r,0,t);t=t.parent}return i}function OR(t,e){if(t===e)return t;var n=t.ancestors(),i=e.ancestors(),r=null;t=n.pop();e=i.pop();while(t===e){r=t;t=n.pop();e=i.pop()}return r}function UR(){var t=this,e=[t];while(t=t.parent){e.push(t)}return e}function PR(){return Array.from(this)}function IR(){var t=[];this.eachBefore((function(e){if(!e.children){t.push(e)}}));return t}function qR(){var t=this,e=[];t.each((function(n){if(n!==t){e.push({source:n.parent,target:n})}}));return e}function*LR(){var t=this,e,n=[t],i,r,o;do{e=n.reverse(),n=[];while(t=e.pop()){yield t;if(i=t.children){for(r=0,o=i.length;r=0;--a){r.push(o=s[a]=new YR(s[a]));o.parent=i;o.depth=i.depth+1}}}return n.eachBefore(BR)}function jR(){return FR(this).eachBefore(HR)}function WR(t){return t.children}function XR(t){return Array.isArray(t)?t[1]:null}function HR(t){if(t.data.value!==undefined)t.value=t.data.value;t.data=t.data.data}function BR(t){var e=0;do{t.height=e}while((t=t.parent)&&t.height<++e)}function YR(t){this.data=t;this.depth=this.height=0;this.parent=null}YR.prototype=FR.prototype={constructor:YR,count:TR,each:$R,eachAfter:AR,eachBefore:DR,find:NR,sum:zR,sort:RR,path:CR,ancestors:UR,descendants:PR,leaves:IR,links:qR,copy:jR,[Symbol.iterator]:LR};function JR(t){return t==null?null:GR(t)}function GR(t){if(typeof t!=="function")throw new Error;return t}function VR(){return 0}function KR(t){return function(){return t}}const ZR=1664525;const QR=1013904223;const tC=4294967296;function eC(){let t=1;return()=>(t=(ZR*t+QR)%tC)/tC}function nC(t){return typeof t==="object"&&"length"in t?t:Array.from(t)}function iC(t,e){let n=t.length,i,r;while(n){r=e()*n--|0;i=t[n];t[n]=t[r];t[r]=i}return t}function rC(t){return oC(t,lcg())}function oC(t,e){var n=0,i=(t=iC(Array.from(t),e)).length,r=[],o,s;while(n0&&n*n>i*i+r*r}function uC(t,e){for(var n=0;n1e-6?(T+Math.sqrt(T*T-4*E*$))/(2*E):$/T);return{x:i+w+k*D,y:r+M+S*D,r:D}}function pC(t,e,n){var i=t.x-e.x,r,o,s=t.y-e.y,a,l,u=i*i+s*s;if(u){o=e.r+n.r,o*=o;l=t.r+n.r,l*=l;if(o>l){r=(u+l-o)/(2*u);a=Math.sqrt(Math.max(0,l/u-r*r));n.x=t.x-r*i-a*s;n.y=t.y-r*s+a*i}else{r=(u+o-l)/(2*u);a=Math.sqrt(Math.max(0,o/u-r*r));n.x=e.x+r*i-a*s;n.y=e.y+r*s+a*i}}else{n.x=e.x+n.r;n.y=e.y}}function mC(t,e){var n=t.r+e.r-1e-6,i=e.x-t.x,r=e.y-t.y;return n>0&&n*n>i*i+r*r}function gC(t){var e=t._,n=t.next._,i=e.r+n.r,r=(e.x*n.r+n.x*e.r)/i,o=(e.y*n.r+n.y*e.r)/i;return r*r+o*o}function yC(t){this._=t;this.next=null;this.previous=null}function vC(t,e){if(!(o=(t=nC(t)).length))return 0;var n,i,r,o,s,a,l,u,c,f,h;n=t[0],n.x=0,n.y=0;if(!(o>1))return n.r;i=t[1],n.x=-i.r,i.x=n.r,i.y=0;if(!(o>2))return n.r+i.r;pC(i,n,r=t[2]);n=new yC(n),i=new yC(i),r=new yC(r);n.next=r.previous=i;i.next=n.previous=r;r.next=i.previous=n;t:for(l=3;lCC(n(t,e,i))));const e=t.map(OC);const a=new Set(t).add("");for(const n of e){if(!a.has(n)){a.add(n);t.push(n);e.push(OC(n));r.push(AC)}}o=(e,n)=>t[n];s=(t,n)=>e[n]}for(u=0,a=r.length;u=0;--t){h=r[t];if(h.data!==AC)break;h.data=null}}c.parent=$C;c.eachBefore((function(t){t.depth=t.parent.depth+1;--a})).eachBefore(BR);c.parent=null;if(a>0)throw new Error("cycle");return c}i.id=function(e){return arguments.length?(t=JR(e),i):t};i.parentId=function(t){return arguments.length?(e=JR(t),i):e};i.path=function(t){return arguments.length?(n=JR(t),i):n};return i}function CC(t){t=`${t}`;let e=t.length;if(UC(t,e-1)&&!UC(t,e-2))t=t.slice(0,-1);return t[0]==="/"?t:`/${t}`}function OC(t){let e=t.length;if(e<2)return"";while(--e>1)if(UC(t,e))break;return t.slice(0,e)}function UC(t,e){if(t[e]==="/"){let n=0;while(e>0&&t[--e]==="\\")++n;if((n&1)===0)return true}return false}function PC(t,e){return t.parent===e.parent?1:2}function IC(t){var e=t.children;return e?e[0]:t.t}function qC(t){var e=t.children;return e?e[e.length-1]:t.t}function LC(t,e,n){var i=n/(e.i-t.i);e.c-=i;e.s+=n;t.c+=i;e.z+=n;e.m+=n}function FC(t){var e=0,n=0,i=t.children,r=i.length,o;while(--r>=0){o=i[r];o.z+=e;o.m+=e;e+=o.s+(n+=o.c)}}function jC(t,e,n){return t.a.parent===e.parent?t.a:n}function WC(t,e){this._=t;this.parent=null;this.children=null;this.A=null;this.a=this;this.z=0;this.m=0;this.c=0;this.s=0;this.t=null;this.i=e}WC.prototype=Object.create(YR.prototype);function XC(t){var e=new WC(t,0),n,i=[e],r,o,s,a;while(n=i.pop()){if(o=n._.children){n.children=new Array(a=o.length);for(s=a-1;s>=0;--s){i.push(r=n.children[s]=new WC(o[s],s));r.parent=n}}}(e.parent=new WC(null,0)).children=[e];return e}function HC(){var t=PC,e=1,n=1,i=null;function r(r){var a=XC(r);a.eachAfter(o),a.parent.m=-a.z;a.eachBefore(s);if(i)r.eachBefore(l);else{var u=r,c=r,f=r;r.eachBefore((function(t){if(t.xc.x)c=t;if(t.depth>f.depth)f=t}));var h=u===c?1:t(u,c)/2,d=h-u.x,p=e/(c.x+h+d),m=n/(f.depth||1);r.eachBefore((function(t){t.x=(t.x+d)*p;t.y=t.depth*m}))}return r}function o(e){var n=e.children,i=e.parent.children,r=e.i?i[e.i-1]:null;if(n){FC(e);var o=(n[0].z+n[n.length-1].z)/2;if(r){e.z=r.z+t(e._,r._);e.m=e.z-o}else{e.z=o}}else if(r){e.z=r.z+t(e._,r._)}e.parent.A=a(e,r,e.parent.A||i[0])}function s(t){t._.x=t.z+t.parent.m;t.m+=t.parent.m}function a(e,n,i){if(n){var r=e,o=e,s=n,a=r.parent.children[0],l=r.m,u=o.m,c=s.m,f=a.m,h;while(s=qC(s),r=IC(r),s&&r){a=IC(a);o=qC(o);o.a=e;h=s.z+c-r.z-l+t(s._,r._);if(h>0){LC(jC(s,e,i),e,h);l+=h;u+=h}c+=s.m;l+=r.m;f+=a.m;u+=o.m}if(s&&!qC(o)){o.t=s;o.m+=c-u}if(r&&!IC(a)){a.t=r;a.m+=l-f;i=e}}return i}function l(t){t.x*=e;t.y=t.depth*n}r.separation=function(e){return arguments.length?(t=e,r):t};r.size=function(t){return arguments.length?(i=false,e=+t[0],n=+t[1],r):i?null:[e,n]};r.nodeSize=function(t){return arguments.length?(i=true,e=+t[0],n=+t[1],r):i?[e,n]:null};return r}function BC(t,e){return t.parent===e.parent?1:2}function YC(t){return t.reduce(JC,0)/t.length}function JC(t,e){return t+e.x}function GC(t){return 1+t.reduce(VC,0)}function VC(t,e){return Math.max(t,e.y)}function KC(t){var e;while(e=t.children)t=e[0];return t}function ZC(t){var e;while(e=t.children)t=e[e.length-1];return t}function QC(){var t=BC,e=1,n=1,i=false;function r(r){var o,s=0;r.eachAfter((function(e){var n=e.children;if(n){e.x=YC(n);e.y=GC(n)}else{e.x=o?s+=t(e,o):0;e.y=0;o=e}}));var a=KC(r),l=ZC(r),u=a.x-t(a,l)/2,c=l.x+t(l,a)/2;return r.eachAfter(i?function(t){t.x=(t.x-r.x)*e;t.y=(r.y-t.y)*n}:function(t){t.x=(t.x-u)/(c-u)*e;t.y=(1-(r.y?t.y/r.y:1))*n})}r.separation=function(e){return arguments.length?(t=e,r):t};r.size=function(t){return arguments.length?(i=false,e=+t[0],n=+t[1],r):i?null:[e,n]};r.nodeSize=function(t){return arguments.length?(i=true,e=+t[0],n=+t[1],r):i?[e,n]:null};return r}function tO(t,e,n,i,r){var o=t.children,s,a=o.length,l,u=new Array(a+1);for(u[0]=l=s=0;s=e-1){var l=o[t];l.x0=i,l.y0=r;l.x1=s,l.y1=a;return}var f=u[t],h=n/2+f,d=t+1,p=e-1;while(d>>1;if(u[m]a-r){var v=n?(i*y+s*g)/n:s;c(t,d,g,i,r,v,a);c(d,e,y,v,r,s,a)}else{var _=n?(r*y+a*g)/n:a;c(t,d,g,i,r,s,_);c(d,e,y,i,_,s,a)}}}function eO(t,e,n,i,r){var o=t.children,s,a=-1,l=o.length,u=t.value&&(r-n)/t.value;while(++av)v=u;w=g*g*b;_=Math.max(v/w,w/y);if(_>x){g-=u;break}x=_}s.push(l={value:g,dice:d1?e:1)};return n}(iO);const sO=function t(e){function n(t,n,i,r,o){if((s=t._squarify)&&s.ratio===e){var s,a,l,u,c=-1,f,h=s.length,d=t.value;while(++c1?e:1)};return n}(iO);function aO(){var t=oO,e=false,n=1,i=1,r=[0],o=VR,s=VR,a=VR,l=VR,u=VR;function c(t){t.x0=t.y0=0;t.x1=n;t.y1=i;t.eachBefore(f);r=[0];if(e)t.eachBefore(SC);return t}function f(e){var n=r[e.depth],i=e.x0+n,c=e.y0+n,f=e.x1-n,h=e.y1-n;if(f{const r=t.data;if(n(r))i[e(r)]=t}));t.lookup=i;return t}function uO(t){Us.call(this,null,t)}uO.Definition={type:"Nest",metadata:{treesource:true,changes:true},params:[{name:"keys",type:"field",array:true},{name:"generate",type:"boolean"}]};const cO=t=>t.values;(0,m.XW)(uO,Us,{transform(t,e){if(!e.source){(0,m.vU)("Nest transform requires an upstream data source.")}var n=t.generate,i=t.modified(),r=e.clone(),o=this.value;if(!o||i||e.changed()){if(o){o.each((t=>{if(t.children&&xo(t.data)){r.rem.push(t.data)}}))}this.value=o=FR({values:(0,m.IX)(t.keys).reduce(((t,e)=>{t.key(e);return t}),fO()).entries(r.source)},cO);if(n){o.each((t=>{if(t.children){t=ko(t.data);r.add.push(t);r.source.push(t)}}))}lO(o,bo,bo)}r.source.root=o;return r}});function fO(){const t=[],e={entries:t=>i(n(t,0),0),key:n=>(t.push(n),e)};function n(e,i){if(i>=t.length){return e}const r=e.length,o=t[i++],s={},a={};let l=-1,u,c,f;while(++lt.length)return e;const r=[];for(const t in e){r.push({key:t,values:i(e[t],n)})}return r}return e}function hO(t){Us.call(this,null,t)}const dO=(t,e)=>t.parent===e.parent?1:2;(0,m.XW)(hO,Us,{transform(t,e){if(!e.source||!e.source.root){(0,m.vU)(this.constructor.name+" transform requires a backing tree data source.")}const n=this.layout(t.method),i=this.fields,r=e.source.root,o=t.as||i;if(t.field)r.sum(t.field);else r.count();if(t.sort)r.sort(To(t.sort,(t=>t.data)));pO(n,this.params,t);if(n.separation){n.separation(t.separation!==false?dO:m.kX)}try{this.value=n(r)}catch(s){(0,m.vU)(s)}r.each((t=>mO(t,i,o)));return e.reflow(t.modified()).modifies(o).modifies("leaf")}});function pO(t,e,n){for(let i,r=0,o=e.length;ro[bo(t)]=1));i.each((t=>{const e=t.data,n=t.parent&&t.parent.data;if(n&&o[bo(e)]&&o[bo(n)]){r.add.push(ko({source:n,target:e}))}}));this.value=r.add}else if(e.changed(e.MOD)){e.visit(e.MOD,(t=>o[bo(t)]=1));n.forEach((t=>{if(o[bo(t.source)]||o[bo(t.target)]){r.mod.push(t)}}))}return r}});const SO={binary:tO,dice:EC,slice:eO,slicedice:nO,squarify:oO,resquarify:sO};const EO=["x0","y0","x1","y1","depth","children"];function TO(t){hO.call(this,t)}TO.Definition={type:"Treemap",metadata:{tree:true,modifies:true},params:[{name:"field",type:"field"},{name:"sort",type:"compare"},{name:"method",type:"enum",default:"squarify",values:["squarify","resquarify","binary","dice","slice","slicedice"]},{name:"padding",type:"number",default:0},{name:"paddingInner",type:"number",default:0},{name:"paddingOuter",type:"number",default:0},{name:"paddingTop",type:"number",default:0},{name:"paddingRight",type:"number",default:0},{name:"paddingBottom",type:"number",default:0},{name:"paddingLeft",type:"number",default:0},{name:"ratio",type:"number",default:1.618033988749895},{name:"round",type:"boolean",default:false},{name:"size",type:"number",array:true,length:2},{name:"as",type:"string",array:true,length:EO.length,default:EO}]};(0,m.XW)(TO,hO,{layout(){const t=aO();t.ratio=e=>{const n=t.tile();if(n.ratio)t.tile(n.ratio(e))};t.method=e=>{if((0,m.nr)(SO,e))t.tile(SO[e]);else(0,m.vU)("Unrecognized Treemap layout method: "+e)};return t},params:["method","ratio","size","round","padding","paddingInner","paddingOuter","paddingTop","paddingRight","paddingBottom","paddingLeft"],fields:EO});const $O=4278190080;function DO(t,e){const n=t.bitmap();(e||[]).forEach((e=>n.set(t(e.boundary[0]),t(e.boundary[3]))));return[n,undefined]}function AO(t,e,n,i,r){const o=t.width,s=t.height,a=i||r,l=rh(o,s).getContext("2d"),u=rh(o,s).getContext("2d"),c=a&&rh(o,s).getContext("2d");n.forEach((t=>zO(l,t,false)));zO(u,e,false);if(a){zO(c,e,true)}const f=NO(l,o,s),h=NO(u,o,s),d=a&&NO(c,o,s),p=t.bitmap(),m=a&&t.bitmap();let g,y,v,_,x,b,w,k;for(y=0;y{e.items.forEach((e=>zO(t,e.items,n)))}))}else{Ub[i].draw(t,{items:n?e.map(RO):e})}}function RO(t){const e=So(t,{});if(e.stroke&&e.strokeOpacity!==0||e.fill&&e.fillOpacity!==0){return{...e,strokeOpacity:1,stroke:"#000",fillOpacity:0}}return e}const CO=5,OO=31,UO=32,PO=new Uint32Array(UO+1),IO=new Uint32Array(UO+1);IO[0]=0;PO[0]=~IO[0];for(let GV=1;GV<=UO;++GV){IO[GV]=IO[GV-1]<<1|1;PO[GV]=~IO[GV]}function qO(t,e){const n=new Uint32Array(~~((t*e+UO)/UO));function i(t,e){n[t]|=e}function r(t,e){n[t]&=e}return{array:n,get:(e,i)=>{const r=i*t+e;return n[r>>>CO]&1<<(r&OO)},set:(e,n)=>{const r=n*t+e;i(r>>>CO,1<<(r&OO))},clear:(e,n)=>{const i=n*t+e;r(i>>>CO,~(1<<(i&OO)))},getRange:(e,i,r,o)=>{let s=o,a,l,u,c;for(;s>=i;--s){a=s*t+e;l=s*t+r;u=a>>>CO;c=l>>>CO;if(u===c){if(n[u]&PO[a&OO]&IO[(l&OO)+1]){return true}}else{if(n[u]&PO[a&OO])return true;if(n[c]&IO[(l&OO)+1])return true;for(let t=u+1;t{let s,a,l,u,c;for(;n<=o;++n){s=n*t+e;a=n*t+r;l=s>>>CO;u=a>>>CO;if(l===u){i(l,PO[s&OO]&IO[(a&OO)+1])}else{i(l,PO[s&OO]);i(u,IO[(a&OO)+1]);for(c=l+1;c{let s,a,l,u,c;for(;n<=o;++n){s=n*t+e;a=n*t+i;l=s>>>CO;u=a>>>CO;if(l===u){r(l,IO[s&OO]|PO[(a&OO)+1])}else{r(l,IO[s&OO]);r(u,PO[(a&OO)+1]);for(c=l+1;cn<0||i<0||o>=e||r>=t}}function LO(t,e,n){const i=Math.max(1,Math.sqrt(t*e/1e6)),r=~~((t+2*n+i)/i),o=~~((e+2*n+i)/i),s=t=>~~((t+n)/i);s.invert=t=>t*i-n;s.bitmap=()=>qO(r,o);s.ratio=i;s.padding=n;s.width=t;s.height=e;return s}function FO(t,e,n,i){const r=t.width,o=t.height;return function(t){const e=t.datum.datum.items[i].items,n=e.length,s=t.datum.fontSize,a=ub.width(t.datum,t.datum.text);let l=0,u,c,f,h,d,p,m;for(let i=0;i=l){l=m;t.x=d;t.y=p}}d=a/2;p=s/2;u=t.x-d;c=t.x+d;f=t.y-p;h=t.y+p;t.align="center";if(u<0&&c<=r){t.align="left"}else if(0<=u&&rr||e-(s=i/2)<0||e+s>o}function WO(t,e,n,i,r,o,s,a){const l=r*o/(i*2),u=t(e-l),c=t(e+l),f=t(n-(o=o/2)),h=t(n+o);return s.outOfBounds(u,f,c,h)||s.getRange(u,f,c,h)||a&&a.getRange(u,f,c,h)}function XO(t,e,n,i){const r=t.width,o=t.height,s=e[0],a=e[1];function l(e,n,i,l,u){const c=t.invert(e),f=t.invert(n);let h=i,d=o,p;if(!jO(c,f,l,u,r,o)&&!WO(t,c,f,u,l,h,s,a)&&!WO(t,c,f,u,l,u,s,null)){while(d-h>=1){p=(h+d)/2;if(WO(t,c,f,u,l,p,s,a)){d=p}else{h=p}}if(h>i){return[c,f,h,true]}}}return function(e){const a=e.datum.datum.items[i].items,u=a.length,c=e.datum.fontSize,f=ub.width(e.datum,e.datum.text);let h=n?c:0,d=false,p=false,m=0,g,y,v,_,x,b,w,k,M,S,E,T,$,D,A,N,z;for(let i=0;iy){z=g;g=y;y=z}if(v>_){z=v;v=_;_=z}M=t(g);E=t(y);S=~~((M+E)/2);T=t(v);D=t(_);$=~~((T+D)/2);for(w=S;w>=M;--w){for(k=$;k>=T;--k){N=l(w,k,h,f,c);if(N){[e.x,e.y,h,d]=N}}}for(w=S;w<=E;++w){for(k=$;k<=D;++k){N=l(w,k,h,f,c);if(N){[e.x,e.y,h,d]=N}}}if(!d&&!n){A=Math.abs(y-g+_-v);x=(g+y)/2;b=(v+_)/2;if(A>=m&&!jO(x,b,f,c,r,o)&&!WO(t,x,b,c,f,c,s,null)){m=A;e.x=x;e.y=b;p=true}}}if(d||p){x=f/2;b=c/2;s.setRange(t(e.x-x),t(e.y-b),t(e.x+x),t(e.y+b));e.align="center";e.baseline="middle";return true}else{return false}}}const HO=[-1,-1,1,1];const BO=[-1,1,-1,1];function YO(t,e,n,i){const r=t.width,o=t.height,s=e[0],a=e[1],l=t.bitmap();return function(e){const u=e.datum.datum.items[i].items,c=u.length,f=e.datum.fontSize,h=ub.width(e.datum,e.datum.text),d=[];let p=n?f:0,m=false,g=false,y=0,v,_,x,b,w,k,M,S,E,T,$,D;for(let i=0;i=1){$=(E+T)/2;if(WO(t,w,k,f,h,$,s,a)){T=$}else{E=$}}if(E>p){e.x=w;e.y=k;p=E;m=true}}}if(!m&&!n){D=Math.abs(_-v+b-x);w=(v+_)/2;k=(x+b)/2;if(D>=y&&!jO(w,k,h,f,r,o)&&!WO(t,w,k,f,h,f,s,null)){y=D;e.x=w;e.y=k;g=true}}}if(m||g){w=h/2;k=f/2;s.setRange(t(e.x-w),t(e.y-k),t(e.x+w),t(e.y+k));e.align="center";e.baseline="middle";return true}else{return false}}}const JO=["right","center","left"],GO=["bottom","middle","top"];function VO(t,e,n,i){const r=t.width,o=t.height,s=e[0],a=e[1],l=i.length;return function(e){const u=e.boundary,c=e.datum.fontSize;if(u[2]<0||u[5]<0||u[0]>r||u[3]>o){return false}let f=e.textWidth??0,h,d,p,m,g,y,v,_,x,b,w,k,M,S,E;for(let r=0;r>>2&3)-1;p=h===0&&d===0||i[r]<0;m=h&&d?Math.SQRT1_2:1;g=i[r]<0?-1:1;y=u[1+h]+i[r]*h*m;w=u[4+d]+g*c*d/2+i[r]*d*m;_=w-c/2;x=w+c/2;k=t(y);S=t(_);E=t(x);if(!f){if(!KO(k,k,S,E,s,a,y,y,_,x,u,p)){continue}else{f=ub.width(e.datum,e.datum.text)}}b=y+g*f*h/2;y=b-f/2;v=b+f/2;k=t(y);M=t(v);if(KO(k,M,S,E,s,a,y,v,_,x,u,p)){e.x=!h?b:h*g<0?v:y;e.y=!d?w:d*g<0?x:_;e.align=JO[h*g+1];e.baseline=GO[d*g+1];s.setRange(k,S,M,E);return true}}return false}}function KO(t,e,n,i,r,o,s,a,l,u,c,f){return!(r.outOfBounds(t,n,e,i)||(f&&o||r).getRange(t,n,e,i))}const ZO=0,QO=4,tU=8,eU=0,nU=1,iU=2;const rU={"top-left":ZO+eU,top:ZO+nU,"top-right":ZO+iU,left:QO+eU,middle:QO+nU,right:QO+iU,"bottom-left":tU+eU,bottom:tU+nU,"bottom-right":tU+iU};const oU={naive:FO,"reduced-search":XO,floodfill:YO};function sU(t,e,n,i,r,o,s,a,l,u,c){if(!t.length)return t;const f=Math.max(i.length,r.length),h=aU(i,f),d=lU(r,f),p=uU(t[0].datum),m=p==="group"&&t[0].datum.items[l].marktype,g=m==="area",y=cU(p,m,a,l),v=u===null||u===Infinity,_=g&&c==="naive";let x=-1,b=-1;const w=t.map((t=>{const e=v?ub.width(t,t.text):undefined;x=Math.max(x,e);b=Math.max(b,t.fontSize);return{datum:t,opacity:0,x:undefined,y:undefined,align:undefined,baseline:undefined,boundary:y(t),textWidth:e}}));u=u===null||u===Infinity?Math.max(x,b)+Math.max(...i):u;const k=LO(e[0],e[1],u);let M;if(!_){if(n){w.sort(((t,e)=>n(t.datum,e.datum)))}let e=false;for(let t=0;tt.datum));M=o.length||i?AO(k,i||[],o,e,g):DO(k,s&&w)}const S=g?oU[c](k,M,s,l):VO(k,M,d,h);w.forEach((t=>t.opacity=+S(t)));return w}function aU(t,e){const n=new Float64Array(e),i=t.length;for(let r=0;r[t.x,t.x,t.x,t.y,t.y,t.y];if(!t){return r}else if(t==="line"||t==="area"){return t=>r(t.datum)}else if(e==="line"){return t=>{const e=t.datum.items[i].items;return r(e.length?e[n==="start"?0:e.length-1]:{x:NaN,y:NaN})}}else{return t=>{const e=t.datum.bounds;return[e.x1,(e.x1+e.x2)/2,e.x2,e.y1,(e.y1+e.y2)/2,e.y2]}}}const fU=["x","y","opacity","align","baseline"];const hU=["top-left","left","bottom-left","top","bottom","top-right","right","bottom-right"];function dU(t){Us.call(this,null,t)}dU.Definition={type:"Label",metadata:{modifies:true},params:[{name:"size",type:"number",array:true,length:2,required:true},{name:"sort",type:"compare"},{name:"anchor",type:"string",array:true,default:hU},{name:"offset",type:"number",array:true,default:[1]},{name:"padding",type:"number",default:0,null:true},{name:"lineAnchor",type:"string",values:["start","end"],default:"end"},{name:"markIndex",type:"number",default:0},{name:"avoidBaseMark",type:"boolean",default:true},{name:"avoidMarks",type:"data",array:true},{name:"method",type:"string",default:"naive"},{name:"as",type:"string",array:true,length:fU.length,default:fU}]};(0,m.XW)(dU,Us,{transform(t,e){function n(n){const i=t[n];return(0,m.mf)(i)&&e.modified(i.fields)}const i=t.modified();if(!(i||e.changed(e.ADD_REM)||n("sort")))return;if(!t.size||t.size.length!==2){(0,m.vU)("Size parameter should be specified as a [width, height] array.")}const r=t.as||fU;sU(e.materialize(e.SOURCE).source||[],t.size,t.sort,(0,m.IX)(t.offset==null?1:t.offset),(0,m.IX)(t.anchor||hU),t.avoidMarks||[],t.avoidBaseMark!==false,t.lineAnchor||"end",t.markIndex||0,t.padding===undefined?0:t.padding,t.method||"naive").forEach((t=>{const e=t.datum;e[r[0]]=t.x;e[r[1]]=t.y;e[r[2]]=t.opacity;e[r[3]]=t.align;e[r[4]]=t.baseline}));return e.reflow(i).modifies(r)}});function pU(t,e){var n=[],i=function(t){return t(a)},r,o,s,a,l,u;if(e==null){n.push(t)}else{for(r={},o=0,s=t.length;o{Ga(e,t.x,t.y,t.bandwidth||.3).forEach((t=>{const n={};for(let i=0;it==="poly"?e:t==="quad"?2:1;function vU(t){Us.call(this,null,t)}vU.Definition={type:"Regression",metadata:{generates:true},params:[{name:"x",type:"field",required:true},{name:"y",type:"field",required:true},{name:"groupby",type:"field",array:true},{name:"method",type:"string",default:"linear",values:Object.keys(gU)},{name:"order",type:"number",default:3},{name:"extent",type:"number",array:true,length:2},{name:"params",type:"boolean",default:false},{name:"as",type:"string",array:true}]};(0,m.XW)(vU,Us,{transform(t,e){const n=e.fork(e.NO_SOURCE|e.NO_FIELDS);if(!this.value||e.changed()||t.modified()){const i=e.materialize(e.SOURCE).source,r=pU(i,t.groupby),o=(t.groupby||[]).map(m.el),s=t.method||"linear",a=t.order||3,l=yU(s,a),u=t.as||[(0,m.el)(t.x),(0,m.el)(t.y)],c=gU[s],f=[];let h=t.extent;if(!(0,m.nr)(gU,s)){(0,m.vU)("Invalid regression method: "+s)}if(h!=null){if(s==="log"&&h[0]<=0){e.dataflow.warn("Ignoring extent with values <= 0 for log regression.");h=null}}r.forEach((n=>{const i=n.length;if(i<=l){e.dataflow.warn("Skipping regression with more parameters than data points.");return}const r=c(n,t.x,t.y,a);if(t.params){f.push(ko({keys:n.dims,coef:r.coef,rSquared:r.rSquared}));return}const d=h||(0,m.We)(n,t.x),p=t=>{const e={};for(let i=0;ip([t,r.predict(t)])))}else{tl(r.predict,d,25,200).forEach(p)}}));if(this.value)n.rem=this.value;this.value=n.add=n.source=f}return n}});const _U=11102230246251565e-32;const xU=134217729;const bU=(3+8*_U)*_U;function wU(t,e,n,i,r){let o,s,a,l;let u=e[0];let c=i[0];let f=0;let h=0;if(c>u===c>-u){o=u;u=e[++f]}else{o=c;c=i[++h]}let d=0;if(fu===c>-u){s=u+o;a=o-(s-u);u=e[++f]}else{s=c+o;a=o-(s-c);c=i[++h]}o=s;if(a!==0){r[d++]=a}while(fu===c>-u){s=o+u;l=s-o;a=o-(s-l)+(u-l);u=e[++f]}else{s=o+c;l=s-o;a=o-(s-l)+(c-l);c=i[++h]}o=s;if(a!==0){r[d++]=a}}}while(f=A||-D>=A){return D}f=t-S;a=t-(S+f)+(f-r);f=n-E;u=n-(E+f)+(f-r);f=e-T;l=e-(T+f)+(f-o);f=i-$;c=i-($+f)+(f-o);if(a===0&&l===0&&u===0&&c===0){return D}A=AU*s+bU*Math.abs(D);D+=S*c+$*a-(T*u+E*l);if(D>=A||-D>=A)return D;x=a*$;h=xU*a;d=h-(h-a);p=a-d;h=xU*$;m=h-(h-$);g=$-m;b=p*g-(x-d*m-p*m-d*g);w=l*E;h=xU*l;d=h-(h-l);p=l-d;h=xU*E;m=h-(h-E);g=E-m;k=p*g-(w-d*m-p*m-d*g);y=b-k;f=b-y;OU[0]=b-(y+f)+(f-k);v=x+y;f=v-x;_=x-(v-f)+(y-f);y=_-w;f=_-y;OU[1]=_-(y+f)+(f-w);M=v+y;f=M-v;OU[2]=v-(M-f)+(y-f);OU[3]=M;const N=wU(4,NU,4,OU,zU);x=S*c;h=xU*S;d=h-(h-S);p=S-d;h=xU*c;m=h-(h-c);g=c-m;b=p*g-(x-d*m-p*m-d*g);w=T*u;h=xU*T;d=h-(h-T);p=T-d;h=xU*u;m=h-(h-u);g=u-m;k=p*g-(w-d*m-p*m-d*g);y=b-k;f=b-y;OU[0]=b-(y+f)+(f-k);v=x+y;f=v-x;_=x-(v-f)+(y-f);y=_-w;f=_-y;OU[1]=_-(y+f)+(f-w);M=v+y;f=M-v;OU[2]=v-(M-f)+(y-f);OU[3]=M;const z=wU(N,zU,4,OU,RU);x=a*c;h=xU*a;d=h-(h-a);p=a-d;h=xU*c;m=h-(h-c);g=c-m;b=p*g-(x-d*m-p*m-d*g);w=l*u;h=xU*l;d=h-(h-l);p=l-d;h=xU*u;m=h-(h-u);g=u-m;k=p*g-(w-d*m-p*m-d*g);y=b-k;f=b-y;OU[0]=b-(y+f)+(f-k);v=x+y;f=v-x;_=x-(v-f)+(y-f);y=_-w;f=_-y;OU[1]=_-(y+f)+(f-w);M=v+y;f=M-v;OU[2]=v-(M-f)+(y-f);OU[3]=M;const R=wU(z,RU,4,OU,CU);return CU[R-1]}function PU(t,e,n,i,r,o){const s=(e-o)*(n-r);const a=(t-r)*(i-o);const l=s-a;if(s===0||a===0||s>0!==a>0)return l;const u=Math.abs(s+a);if(Math.abs(l)>=$U*u)return l;return-UU(t,e,n,i,r,o,u)}function IU(t,e,n,i,r,o){return(e-o)*(n-r)-(t-r)*(i-o)}const qU=(7+56*_U)*_U;const LU=(3+28*_U)*_U;const FU=(26+288*_U)*_U*_U;const jU=TU(4);const WU=TU(4);const XU=TU(4);const HU=TU(4);const BU=TU(4);const YU=TU(4);const JU=TU(4);const GU=TU(4);const VU=TU(4);const KU=TU(8);const ZU=TU(8);const QU=TU(8);const tP=TU(4);const eP=TU(8);const nP=TU(8);const iP=TU(8);const rP=TU(12);let oP=TU(192);let sP=TU(192);function aP(t,e,n){t=sum(t,oP,e,n,sP);const i=oP;oP=sP;sP=i;return t}function lP(t,e,n,i,r,o,s,a){let l,u,c,f,h,d,p,m,g,y,v,_,x,b,w,k;if(t===0){if(e===0){s[0]=0;a[0]=0;return 1}else{k=-e;v=k*n;u=splitter*k;c=u-(u-k);f=k-c;u=splitter*n;h=u-(u-n);d=n-h;s[0]=f*d-(v-c*h-f*h-c*d);s[1]=v;v=e*r;u=splitter*e;c=u-(u-e);f=e-c;u=splitter*r;h=u-(u-r);d=r-h;a[0]=f*d-(v-c*h-f*h-c*d);a[1]=v;return 2}}else{if(e===0){v=t*i;u=splitter*t;c=u-(u-t);f=t-c;u=splitter*i;h=u-(u-i);d=i-h;s[0]=f*d-(v-c*h-f*h-c*d);s[1]=v;k=-t;v=k*o;u=splitter*k;c=u-(u-k);f=k-c;u=splitter*o;h=u-(u-o);d=o-h;a[0]=f*d-(v-c*h-f*h-c*d);a[1]=v;return 2}else{v=t*i;u=splitter*t;c=u-(u-t);f=t-c;u=splitter*i;h=u-(u-i);d=i-h;_=f*d-(v-c*h-f*h-c*d);x=e*n;u=splitter*e;c=u-(u-e);f=e-c;u=splitter*n;h=u-(u-n);d=n-h;b=f*d-(x-c*h-f*h-c*d);p=_-b;l=_-p;s[0]=_-(p+l)+(l-b);m=v+p;l=m-v;y=v-(m-l)+(p-l);p=y-x;l=y-p;s[1]=y-(p+l)+(l-x);w=m+p;l=w-m;s[2]=m-(w-l)+(p-l);s[3]=w;v=e*r;u=splitter*e;c=u-(u-e);f=e-c;u=splitter*r;h=u-(u-r);d=r-h;_=f*d-(v-c*h-f*h-c*d);x=t*o;u=splitter*t;c=u-(u-t);f=t-c;u=splitter*o;h=u-(u-o);d=o-h;b=f*d-(x-c*h-f*h-c*d);p=_-b;l=_-p;a[0]=_-(p+l)+(l-b);m=v+p;l=m-v;y=v-(m-l)+(p-l);p=y-x;l=y-p;a[1]=y-(p+l)+(l-x);w=m+p;l=w-m;a[2]=m-(w-l)+(p-l);a[3]=w;return 4}}}function uP(t,e,n,i,r){let o,s,a,l,u,c,f,h,d,p,m,g,y;m=e*n;s=splitter*e;a=s-(s-e);l=e-a;s=splitter*n;u=s-(s-n);c=n-u;g=l*c-(m-a*u-l*u-a*c);s=splitter*i;u=s-(s-i);c=i-u;f=g*i;s=splitter*g;a=s-(s-g);l=g-a;tP[0]=l*c-(f-a*u-l*u-a*c);h=m*i;s=splitter*m;a=s-(s-m);l=m-a;p=l*c-(h-a*u-l*u-a*c);d=f+p;o=d-f;tP[1]=f-(d-o)+(p-o);y=h+d;tP[2]=d-(y-h);tP[3]=y;t=aP(t,4,tP);if(r!==0){s=splitter*r;u=s-(s-r);c=r-u;f=g*r;s=splitter*g;a=s-(s-g);l=g-a;tP[0]=l*c-(f-a*u-l*u-a*c);h=m*r;s=splitter*m;a=s-(s-m);l=m-a;p=l*c-(h-a*u-l*u-a*c);d=f+p;o=d-f;tP[1]=f-(d-o)+(p-o);y=h+d;tP[2]=d-(y-h);tP[3]=y;t=aP(t,4,tP)}return t}function cP(t,e,n,i,r,o,s,a,l,u,c,f,h){let d;let p,m,g;let y,v,_;let x,b,w;let k,M,S,E,T,$,D,A,N,z,R,C,O,U,P;const I=t-u;const q=i-u;const L=s-u;const F=e-c;const j=r-c;const W=a-c;const X=n-f;const H=o-f;const B=l-f;R=q*W;M=splitter*q;S=M-(M-q);E=q-S;M=splitter*W;T=M-(M-W);$=W-T;C=E*$-(R-S*T-E*T-S*$);O=L*j;M=splitter*L;S=M-(M-L);E=L-S;M=splitter*j;T=M-(M-j);$=j-T;U=E*$-(O-S*T-E*T-S*$);D=C-U;k=C-D;jU[0]=C-(D+k)+(k-U);A=R+D;k=A-R;z=R-(A-k)+(D-k);D=z-O;k=z-D;jU[1]=z-(D+k)+(k-O);P=A+D;k=P-A;jU[2]=A-(P-k)+(D-k);jU[3]=P;R=L*F;M=splitter*L;S=M-(M-L);E=L-S;M=splitter*F;T=M-(M-F);$=F-T;C=E*$-(R-S*T-E*T-S*$);O=I*W;M=splitter*I;S=M-(M-I);E=I-S;M=splitter*W;T=M-(M-W);$=W-T;U=E*$-(O-S*T-E*T-S*$);D=C-U;k=C-D;WU[0]=C-(D+k)+(k-U);A=R+D;k=A-R;z=R-(A-k)+(D-k);D=z-O;k=z-D;WU[1]=z-(D+k)+(k-O);P=A+D;k=P-A;WU[2]=A-(P-k)+(D-k);WU[3]=P;R=I*j;M=splitter*I;S=M-(M-I);E=I-S;M=splitter*j;T=M-(M-j);$=j-T;C=E*$-(R-S*T-E*T-S*$);O=q*F;M=splitter*q;S=M-(M-q);E=q-S;M=splitter*F;T=M-(M-F);$=F-T;U=E*$-(O-S*T-E*T-S*$);D=C-U;k=C-D;XU[0]=C-(D+k)+(k-U);A=R+D;k=A-R;z=R-(A-k)+(D-k);D=z-O;k=z-D;XU[1]=z-(D+k)+(k-O);P=A+D;k=P-A;XU[2]=A-(P-k)+(D-k);XU[3]=P;d=sum(sum(scale(4,jU,X,eP),eP,scale(4,WU,H,nP),nP,iP),iP,scale(4,XU,B,eP),eP,oP);let Y=estimate(d,oP);let J=LU*h;if(Y>=J||-Y>=J){return Y}k=t-I;p=t-(I+k)+(k-u);k=i-q;m=i-(q+k)+(k-u);k=s-L;g=s-(L+k)+(k-u);k=e-F;y=e-(F+k)+(k-c);k=r-j;v=r-(j+k)+(k-c);k=a-W;_=a-(W+k)+(k-c);k=n-X;x=n-(X+k)+(k-f);k=o-H;b=o-(H+k)+(k-f);k=l-B;w=l-(B+k)+(k-f);if(p===0&&m===0&&g===0&&y===0&&v===0&&_===0&&x===0&&b===0&&w===0){return Y}J=FU*h+resulterrbound*Math.abs(Y);Y+=X*(q*_+W*m-(j*g+L*v))+x*(q*W-j*L)+H*(L*y+F*g-(W*p+I*_))+b*(L*F-W*I)+B*(I*v+j*p-(F*m+q*y))+w*(I*j-F*q);if(Y>=J||-Y>=J){return Y}const G=lP(p,y,q,j,L,W,HU,BU);const V=lP(m,v,L,W,I,F,YU,JU);const K=lP(g,_,I,F,q,j,GU,VU);const Z=sum(V,YU,K,VU,KU);d=aP(d,scale(Z,KU,X,iP),iP);const Q=sum(K,GU,G,BU,ZU);d=aP(d,scale(Q,ZU,H,iP),iP);const tt=sum(G,HU,V,JU,QU);d=aP(d,scale(tt,QU,B,iP),iP);if(x!==0){d=aP(d,scale(4,jU,x,rP),rP);d=aP(d,scale(Z,KU,x,iP),iP)}if(b!==0){d=aP(d,scale(4,WU,b,rP),rP);d=aP(d,scale(Q,ZU,b,iP),iP)}if(w!==0){d=aP(d,scale(4,XU,w,rP),rP);d=aP(d,scale(tt,QU,w,iP),iP)}if(p!==0){if(v!==0){d=uP(d,p,v,B,w)}if(_!==0){d=uP(d,-p,_,H,b)}}if(m!==0){if(_!==0){d=uP(d,m,_,X,x)}if(y!==0){d=uP(d,-m,y,B,w)}}if(g!==0){if(y!==0){d=uP(d,g,y,H,b)}if(v!==0){d=uP(d,-g,v,X,x)}}return oP[d-1]}function fP(t,e,n,i,r,o,s,a,l,u,c,f){const h=t-u;const d=i-u;const p=s-u;const m=e-c;const g=r-c;const y=a-c;const v=n-f;const _=o-f;const x=l-f;const b=d*y;const w=p*g;const k=p*m;const M=h*y;const S=h*g;const E=d*m;const T=v*(b-w)+_*(k-M)+x*(S-E);const $=(Math.abs(b)+Math.abs(w))*Math.abs(v)+(Math.abs(k)+Math.abs(M))*Math.abs(_)+(Math.abs(S)+Math.abs(E))*Math.abs(x);const D=qU*$;if(T>D||-T>D){return T}return cP(t,e,n,i,r,o,s,a,l,u,c,f,$)}function hP(t,e,n,i,r,o,s,a,l,u,c,f){const h=t-u;const d=i-u;const p=s-u;const m=e-c;const g=r-c;const y=a-c;const v=n-f;const _=o-f;const x=l-f;return h*(g*x-_*y)+d*(y*v-x*m)+p*(m*_-v*g)}const dP=(10+96*_U)*_U;const pP=(4+48*_U)*_U;const mP=(44+576*_U)*_U*_U;const gP=TU(4);const yP=TU(4);const vP=TU(4);const _P=TU(4);const xP=TU(4);const bP=TU(4);const wP=TU(4);const kP=TU(4);const MP=TU(8);const SP=TU(8);const EP=TU(8);const TP=TU(8);const $P=TU(8);const DP=TU(8);const AP=TU(8);const NP=TU(8);const zP=TU(8);const RP=TU(4);const CP=TU(4);const OP=TU(4);const UP=TU(8);const PP=TU(16);const IP=TU(16);const qP=TU(16);const LP=TU(32);const FP=TU(32);const jP=TU(48);const WP=TU(64);let XP=TU(1152);let HP=TU(1152);function BP(t,e,n){t=sum(t,XP,e,n,HP);const i=XP;XP=HP;HP=i;return t}function YP(t,e,n,i,r,o,s,a,l){let u;let c,f,h,d,p,m;let g,y,v,_,x,b;let w,k,M;let S,E,T;let $,D;let A,N,z,R,C,O,U,P,I,q,L,F,j,W;const X=t-s;const H=n-s;const B=r-s;const Y=e-a;const J=i-a;const G=o-a;q=H*G;N=splitter*H;z=N-(N-H);R=H-z;N=splitter*G;C=N-(N-G);O=G-C;L=R*O-(q-z*C-R*C-z*O);F=B*J;N=splitter*B;z=N-(N-B);R=B-z;N=splitter*J;C=N-(N-J);O=J-C;j=R*O-(F-z*C-R*C-z*O);U=L-j;A=L-U;gP[0]=L-(U+A)+(A-j);P=q+U;A=P-q;I=q-(P-A)+(U-A);U=I-F;A=I-U;gP[1]=I-(U+A)+(A-F);W=P+U;A=W-P;gP[2]=P-(W-A)+(U-A);gP[3]=W;q=B*Y;N=splitter*B;z=N-(N-B);R=B-z;N=splitter*Y;C=N-(N-Y);O=Y-C;L=R*O-(q-z*C-R*C-z*O);F=X*G;N=splitter*X;z=N-(N-X);R=X-z;N=splitter*G;C=N-(N-G);O=G-C;j=R*O-(F-z*C-R*C-z*O);U=L-j;A=L-U;yP[0]=L-(U+A)+(A-j);P=q+U;A=P-q;I=q-(P-A)+(U-A);U=I-F;A=I-U;yP[1]=I-(U+A)+(A-F);W=P+U;A=W-P;yP[2]=P-(W-A)+(U-A);yP[3]=W;q=X*J;N=splitter*X;z=N-(N-X);R=X-z;N=splitter*J;C=N-(N-J);O=J-C;L=R*O-(q-z*C-R*C-z*O);F=H*Y;N=splitter*H;z=N-(N-H);R=H-z;N=splitter*Y;C=N-(N-Y);O=Y-C;j=R*O-(F-z*C-R*C-z*O);U=L-j;A=L-U;vP[0]=L-(U+A)+(A-j);P=q+U;A=P-q;I=q-(P-A)+(U-A);U=I-F;A=I-U;vP[1]=I-(U+A)+(A-F);W=P+U;A=W-P;vP[2]=P-(W-A)+(U-A);vP[3]=W;u=sum(sum(sum(scale(scale(4,gP,X,UP),UP,X,PP),PP,scale(scale(4,gP,Y,UP),UP,Y,IP),IP,LP),LP,sum(scale(scale(4,yP,H,UP),UP,H,PP),PP,scale(scale(4,yP,J,UP),UP,J,IP),IP,FP),FP,WP),WP,sum(scale(scale(4,vP,B,UP),UP,B,PP),PP,scale(scale(4,vP,G,UP),UP,G,IP),IP,LP),LP,XP);let V=estimate(u,XP);let K=pP*l;if(V>=K||-V>=K){return V}A=t-X;c=t-(X+A)+(A-s);A=e-Y;d=e-(Y+A)+(A-a);A=n-H;f=n-(H+A)+(A-s);A=i-J;p=i-(J+A)+(A-a);A=r-B;h=r-(B+A)+(A-s);A=o-G;m=o-(G+A)+(A-a);if(c===0&&f===0&&h===0&&d===0&&p===0&&m===0){return V}K=mP*l+resulterrbound*Math.abs(V);V+=(X*X+Y*Y)*(H*m+G*f-(J*h+B*p))+2*(X*c+Y*d)*(H*G-J*B)+((H*H+J*J)*(B*d+Y*h-(G*c+X*m))+2*(H*f+J*p)*(B*Y-G*X))+((B*B+G*G)*(X*p+J*c-(Y*f+H*d))+2*(B*h+G*m)*(X*J-Y*H));if(V>=K||-V>=K){return V}if(f!==0||p!==0||h!==0||m!==0){q=X*X;N=splitter*X;z=N-(N-X);R=X-z;L=R*R-(q-z*z-(z+z)*R);F=Y*Y;N=splitter*Y;z=N-(N-Y);R=Y-z;j=R*R-(F-z*z-(z+z)*R);U=L+j;A=U-L;_P[0]=L-(U-A)+(j-A);P=q+U;A=P-q;I=q-(P-A)+(U-A);U=I+F;A=U-I;_P[1]=I-(U-A)+(F-A);W=P+U;A=W-P;_P[2]=P-(W-A)+(U-A);_P[3]=W}if(h!==0||m!==0||c!==0||d!==0){q=H*H;N=splitter*H;z=N-(N-H);R=H-z;L=R*R-(q-z*z-(z+z)*R);F=J*J;N=splitter*J;z=N-(N-J);R=J-z;j=R*R-(F-z*z-(z+z)*R);U=L+j;A=U-L;xP[0]=L-(U-A)+(j-A);P=q+U;A=P-q;I=q-(P-A)+(U-A);U=I+F;A=U-I;xP[1]=I-(U-A)+(F-A);W=P+U;A=W-P;xP[2]=P-(W-A)+(U-A);xP[3]=W}if(c!==0||d!==0||f!==0||p!==0){q=B*B;N=splitter*B;z=N-(N-B);R=B-z;L=R*R-(q-z*z-(z+z)*R);F=G*G;N=splitter*G;z=N-(N-G);R=G-z;j=R*R-(F-z*z-(z+z)*R);U=L+j;A=U-L;bP[0]=L-(U-A)+(j-A);P=q+U;A=P-q;I=q-(P-A)+(U-A);U=I+F;A=U-I;bP[1]=I-(U-A)+(F-A);W=P+U;A=W-P;bP[2]=P-(W-A)+(U-A);bP[3]=W}if(c!==0){g=scale(4,gP,c,MP);u=BP(u,sum_three(scale(g,MP,2*X,PP),PP,scale(scale(4,bP,c,UP),UP,J,IP),IP,scale(scale(4,xP,c,UP),UP,-G,qP),qP,LP,jP),jP)}if(d!==0){y=scale(4,gP,d,SP);u=BP(u,sum_three(scale(y,SP,2*Y,PP),PP,scale(scale(4,xP,d,UP),UP,B,IP),IP,scale(scale(4,bP,d,UP),UP,-H,qP),qP,LP,jP),jP)}if(f!==0){v=scale(4,yP,f,EP);u=BP(u,sum_three(scale(v,EP,2*H,PP),PP,scale(scale(4,_P,f,UP),UP,G,IP),IP,scale(scale(4,bP,f,UP),UP,-Y,qP),qP,LP,jP),jP)}if(p!==0){_=scale(4,yP,p,TP);u=BP(u,sum_three(scale(_,TP,2*J,PP),PP,scale(scale(4,bP,p,UP),UP,X,IP),IP,scale(scale(4,_P,p,UP),UP,-B,qP),qP,LP,jP),jP)}if(h!==0){x=scale(4,vP,h,$P);u=BP(u,sum_three(scale(x,$P,2*B,PP),PP,scale(scale(4,xP,h,UP),UP,Y,IP),IP,scale(scale(4,_P,h,UP),UP,-J,qP),qP,LP,jP),jP)}if(m!==0){b=scale(4,vP,m,DP);u=BP(u,sum_three(scale(b,DP,2*G,PP),PP,scale(scale(4,_P,m,UP),UP,H,IP),IP,scale(scale(4,xP,m,UP),UP,-X,qP),qP,LP,jP),jP)}if(c!==0||d!==0){if(f!==0||p!==0||h!==0||m!==0){q=f*G;N=splitter*f;z=N-(N-f);R=f-z;N=splitter*G;C=N-(N-G);O=G-C;L=R*O-(q-z*C-R*C-z*O);F=H*m;N=splitter*H;z=N-(N-H);R=H-z;N=splitter*m;C=N-(N-m);O=m-C;j=R*O-(F-z*C-R*C-z*O);U=L+j;A=U-L;wP[0]=L-(U-A)+(j-A);P=q+U;A=P-q;I=q-(P-A)+(U-A);U=I+F;A=U-I;wP[1]=I-(U-A)+(F-A);W=P+U;A=W-P;wP[2]=P-(W-A)+(U-A);wP[3]=W;q=h*-J;N=splitter*h;z=N-(N-h);R=h-z;N=splitter*-J;C=N-(N- -J);O=-J-C;L=R*O-(q-z*C-R*C-z*O);F=B*-p;N=splitter*B;z=N-(N-B);R=B-z;N=splitter*-p;C=N-(N- -p);O=-p-C;j=R*O-(F-z*C-R*C-z*O);U=L+j;A=U-L;kP[0]=L-(U-A)+(j-A);P=q+U;A=P-q;I=q-(P-A)+(U-A);U=I+F;A=U-I;kP[1]=I-(U-A)+(F-A);W=P+U;A=W-P;kP[2]=P-(W-A)+(U-A);kP[3]=W;k=sum(4,wP,4,kP,NP);q=f*m;N=splitter*f;z=N-(N-f);R=f-z;N=splitter*m;C=N-(N-m);O=m-C;L=R*O-(q-z*C-R*C-z*O);F=h*p;N=splitter*h;z=N-(N-h);R=h-z;N=splitter*p;C=N-(N-p);O=p-C;j=R*O-(F-z*C-R*C-z*O);U=L-j;A=L-U;CP[0]=L-(U+A)+(A-j);P=q+U;A=P-q;I=q-(P-A)+(U-A);U=I-F;A=I-U;CP[1]=I-(U+A)+(A-F);W=P+U;A=W-P;CP[2]=P-(W-A)+(U-A);CP[3]=W;E=4}else{NP[0]=0;k=1;CP[0]=0;E=1}if(c!==0){const t=scale(k,NP,c,qP);u=BP(u,sum(scale(g,MP,c,PP),PP,scale(t,qP,2*X,LP),LP,jP),jP);const e=scale(E,CP,c,UP);u=BP(u,sum_three(scale(e,UP,2*X,PP),PP,scale(e,UP,c,IP),IP,scale(t,qP,c,LP),LP,FP,WP),WP);if(p!==0){u=BP(u,scale(scale(4,bP,c,UP),UP,p,PP),PP)}if(m!==0){u=BP(u,scale(scale(4,xP,-c,UP),UP,m,PP),PP)}}if(d!==0){const t=scale(k,NP,d,qP);u=BP(u,sum(scale(y,SP,d,PP),PP,scale(t,qP,2*Y,LP),LP,jP),jP);const e=scale(E,CP,d,UP);u=BP(u,sum_three(scale(e,UP,2*Y,PP),PP,scale(e,UP,d,IP),IP,scale(t,qP,d,LP),LP,FP,WP),WP)}}if(f!==0||p!==0){if(h!==0||m!==0||c!==0||d!==0){q=h*Y;N=splitter*h;z=N-(N-h);R=h-z;N=splitter*Y;C=N-(N-Y);O=Y-C;L=R*O-(q-z*C-R*C-z*O);F=B*d;N=splitter*B;z=N-(N-B);R=B-z;N=splitter*d;C=N-(N-d);O=d-C;j=R*O-(F-z*C-R*C-z*O);U=L+j;A=U-L;wP[0]=L-(U-A)+(j-A);P=q+U;A=P-q;I=q-(P-A)+(U-A);U=I+F;A=U-I;wP[1]=I-(U-A)+(F-A);W=P+U;A=W-P;wP[2]=P-(W-A)+(U-A);wP[3]=W;$=-G;D=-m;q=c*$;N=splitter*c;z=N-(N-c);R=c-z;N=splitter*$;C=N-(N-$);O=$-C;L=R*O-(q-z*C-R*C-z*O);F=X*D;N=splitter*X;z=N-(N-X);R=X-z;N=splitter*D;C=N-(N-D);O=D-C;j=R*O-(F-z*C-R*C-z*O);U=L+j;A=U-L;kP[0]=L-(U-A)+(j-A);P=q+U;A=P-q;I=q-(P-A)+(U-A);U=I+F;A=U-I;kP[1]=I-(U-A)+(F-A);W=P+U;A=W-P;kP[2]=P-(W-A)+(U-A);kP[3]=W;M=sum(4,wP,4,kP,zP);q=h*d;N=splitter*h;z=N-(N-h);R=h-z;N=splitter*d;C=N-(N-d);O=d-C;L=R*O-(q-z*C-R*C-z*O);F=c*m;N=splitter*c;z=N-(N-c);R=c-z;N=splitter*m;C=N-(N-m);O=m-C;j=R*O-(F-z*C-R*C-z*O);U=L-j;A=L-U;OP[0]=L-(U+A)+(A-j);P=q+U;A=P-q;I=q-(P-A)+(U-A);U=I-F;A=I-U;OP[1]=I-(U+A)+(A-F);W=P+U;A=W-P;OP[2]=P-(W-A)+(U-A);OP[3]=W;T=4}else{zP[0]=0;M=1;OP[0]=0;T=1}if(f!==0){const t=scale(M,zP,f,qP);u=BP(u,sum(scale(v,EP,f,PP),PP,scale(t,qP,2*H,LP),LP,jP),jP);const e=scale(T,OP,f,UP);u=BP(u,sum_three(scale(e,UP,2*H,PP),PP,scale(e,UP,f,IP),IP,scale(t,qP,f,LP),LP,FP,WP),WP);if(m!==0){u=BP(u,scale(scale(4,_P,f,UP),UP,m,PP),PP)}if(d!==0){u=BP(u,scale(scale(4,bP,-f,UP),UP,d,PP),PP)}}if(p!==0){const t=scale(M,zP,p,qP);u=BP(u,sum(scale(_,TP,p,PP),PP,scale(t,qP,2*J,LP),LP,jP),jP);const e=scale(T,OP,p,UP);u=BP(u,sum_three(scale(e,UP,2*J,PP),PP,scale(e,UP,p,IP),IP,scale(t,qP,p,LP),LP,FP,WP),WP)}}if(h!==0||m!==0){if(c!==0||d!==0||f!==0||p!==0){q=c*J;N=splitter*c;z=N-(N-c);R=c-z;N=splitter*J;C=N-(N-J);O=J-C;L=R*O-(q-z*C-R*C-z*O);F=X*p;N=splitter*X;z=N-(N-X);R=X-z;N=splitter*p;C=N-(N-p);O=p-C;j=R*O-(F-z*C-R*C-z*O);U=L+j;A=U-L;wP[0]=L-(U-A)+(j-A);P=q+U;A=P-q;I=q-(P-A)+(U-A);U=I+F;A=U-I;wP[1]=I-(U-A)+(F-A);W=P+U;A=W-P;wP[2]=P-(W-A)+(U-A);wP[3]=W;$=-Y;D=-d;q=f*$;N=splitter*f;z=N-(N-f);R=f-z;N=splitter*$;C=N-(N-$);O=$-C;L=R*O-(q-z*C-R*C-z*O);F=H*D;N=splitter*H;z=N-(N-H);R=H-z;N=splitter*D;C=N-(N-D);O=D-C;j=R*O-(F-z*C-R*C-z*O);U=L+j;A=U-L;kP[0]=L-(U-A)+(j-A);P=q+U;A=P-q;I=q-(P-A)+(U-A);U=I+F;A=U-I;kP[1]=I-(U-A)+(F-A);W=P+U;A=W-P;kP[2]=P-(W-A)+(U-A);kP[3]=W;w=sum(4,wP,4,kP,AP);q=c*p;N=splitter*c;z=N-(N-c);R=c-z;N=splitter*p;C=N-(N-p);O=p-C;L=R*O-(q-z*C-R*C-z*O);F=f*d;N=splitter*f;z=N-(N-f);R=f-z;N=splitter*d;C=N-(N-d);O=d-C;j=R*O-(F-z*C-R*C-z*O);U=L-j;A=L-U;RP[0]=L-(U+A)+(A-j);P=q+U;A=P-q;I=q-(P-A)+(U-A);U=I-F;A=I-U;RP[1]=I-(U+A)+(A-F);W=P+U;A=W-P;RP[2]=P-(W-A)+(U-A);RP[3]=W;S=4}else{AP[0]=0;w=1;RP[0]=0;S=1}if(h!==0){const t=scale(w,AP,h,qP);u=BP(u,sum(scale(x,$P,h,PP),PP,scale(t,qP,2*B,LP),LP,jP),jP);const e=scale(S,RP,h,UP);u=BP(u,sum_three(scale(e,UP,2*B,PP),PP,scale(e,UP,h,IP),IP,scale(t,qP,h,LP),LP,FP,WP),WP);if(d!==0){u=BP(u,scale(scale(4,xP,h,UP),UP,d,PP),PP)}if(p!==0){u=BP(u,scale(scale(4,_P,-h,UP),UP,p,PP),PP)}}if(m!==0){const t=scale(w,AP,m,qP);u=BP(u,sum(scale(b,DP,m,PP),PP,scale(t,qP,2*G,LP),LP,jP),jP);const e=scale(S,RP,m,UP);u=BP(u,sum_three(scale(e,UP,2*G,PP),PP,scale(e,UP,m,IP),IP,scale(t,qP,m,LP),LP,FP,WP),WP)}}return XP[u-1]}function JP(t,e,n,i,r,o,s,a){const l=t-s;const u=n-s;const c=r-s;const f=e-a;const h=i-a;const d=o-a;const p=u*d;const m=c*h;const g=l*l+f*f;const y=c*f;const v=l*d;const _=u*u+h*h;const x=l*h;const b=u*f;const w=c*c+d*d;const k=g*(p-m)+_*(y-v)+w*(x-b);const M=(Math.abs(p)+Math.abs(m))*g+(Math.abs(y)+Math.abs(v))*_+(Math.abs(x)+Math.abs(b))*w;const S=dP*M;if(k>S||-k>S){return k}return YP(t,e,n,i,r,o,s,a,M)}function GP(t,e,n,i,r,o,s,a){const l=t-s;const u=e-a;const c=n-s;const f=i-a;const h=r-s;const d=o-a;const p=l*f-c*u;const m=c*d-h*f;const g=h*u-l*d;const y=l*l+u*u;const v=c*c+f*f;const _=h*h+d*d;return y*m+v*g+_*p}const VP=(16+224*_U)*_U;const KP=(5+72*_U)*_U;const ZP=(71+1408*_U)*_U*_U;const QP=TU(4);const tI=TU(4);const eI=TU(4);const nI=TU(4);const iI=TU(4);const rI=TU(4);const oI=TU(4);const sI=TU(4);const aI=TU(4);const lI=TU(4);const uI=TU(24);const cI=TU(24);const fI=TU(24);const hI=TU(24);const dI=TU(24);const pI=TU(24);const mI=TU(24);const gI=TU(24);const yI=TU(24);const vI=TU(24);const _I=TU(1152);const xI=TU(1152);const bI=TU(1152);const wI=TU(1152);const kI=TU(1152);const MI=TU(2304);const SI=TU(2304);const EI=TU(3456);const TI=TU(5760);const $I=TU(8);const DI=TU(8);const AI=TU(8);const NI=TU(16);const zI=TU(24);const RI=TU(48);const CI=TU(48);const OI=TU(96);const UI=TU(192);const PI=TU(384);const II=TU(384);const qI=TU(384);const LI=TU(768);function FI(t,e,n,i,r,o,s){return sum_three(scale(4,t,i,$I),$I,scale(4,e,r,DI),DI,scale(4,n,o,AI),AI,NI,s)}function jI(t,e,n,i,r,o,s,a,l,u,c,f){const h=sum(sum(t,e,n,i,RI),RI,negate(sum(r,o,s,a,CI),CI),CI,OI);return sum_three(scale(scale(h,OI,l,UI),UI,l,PI),PI,scale(scale(h,OI,u,UI),UI,u,II),II,scale(scale(h,OI,c,UI),UI,c,qI),qI,LI,f)}function WI(t,e,n,i,r,o,s,a,l,u,c,f,h,d,p){let m,g,y,v,_,x,b,w,k,M,S,E,T,$;M=t*r;g=splitter*t;y=g-(g-t);v=t-y;g=splitter*r;_=g-(g-r);x=r-_;S=v*x-(M-y*_-v*_-y*x);E=i*e;g=splitter*i;y=g-(g-i);v=i-y;g=splitter*e;_=g-(g-e);x=e-_;T=v*x-(E-y*_-v*_-y*x);b=S-T;m=S-b;QP[0]=S-(b+m)+(m-T);w=M+b;m=w-M;k=M-(w-m)+(b-m);b=k-E;m=k-b;QP[1]=k-(b+m)+(m-E);$=w+b;m=$-w;QP[2]=w-($-m)+(b-m);QP[3]=$;M=i*a;g=splitter*i;y=g-(g-i);v=i-y;g=splitter*a;_=g-(g-a);x=a-_;S=v*x-(M-y*_-v*_-y*x);E=s*r;g=splitter*s;y=g-(g-s);v=s-y;g=splitter*r;_=g-(g-r);x=r-_;T=v*x-(E-y*_-v*_-y*x);b=S-T;m=S-b;tI[0]=S-(b+m)+(m-T);w=M+b;m=w-M;k=M-(w-m)+(b-m);b=k-E;m=k-b;tI[1]=k-(b+m)+(m-E);$=w+b;m=$-w;tI[2]=w-($-m)+(b-m);tI[3]=$;M=s*c;g=splitter*s;y=g-(g-s);v=s-y;g=splitter*c;_=g-(g-c);x=c-_;S=v*x-(M-y*_-v*_-y*x);E=u*a;g=splitter*u;y=g-(g-u);v=u-y;g=splitter*a;_=g-(g-a);x=a-_;T=v*x-(E-y*_-v*_-y*x);b=S-T;m=S-b;eI[0]=S-(b+m)+(m-T);w=M+b;m=w-M;k=M-(w-m)+(b-m);b=k-E;m=k-b;eI[1]=k-(b+m)+(m-E);$=w+b;m=$-w;eI[2]=w-($-m)+(b-m);eI[3]=$;M=u*d;g=splitter*u;y=g-(g-u);v=u-y;g=splitter*d;_=g-(g-d);x=d-_;S=v*x-(M-y*_-v*_-y*x);E=h*c;g=splitter*h;y=g-(g-h);v=h-y;g=splitter*c;_=g-(g-c);x=c-_;T=v*x-(E-y*_-v*_-y*x);b=S-T;m=S-b;nI[0]=S-(b+m)+(m-T);w=M+b;m=w-M;k=M-(w-m)+(b-m);b=k-E;m=k-b;nI[1]=k-(b+m)+(m-E);$=w+b;m=$-w;nI[2]=w-($-m)+(b-m);nI[3]=$;M=h*e;g=splitter*h;y=g-(g-h);v=h-y;g=splitter*e;_=g-(g-e);x=e-_;S=v*x-(M-y*_-v*_-y*x);E=t*d;g=splitter*t;y=g-(g-t);v=t-y;g=splitter*d;_=g-(g-d);x=d-_;T=v*x-(E-y*_-v*_-y*x);b=S-T;m=S-b;iI[0]=S-(b+m)+(m-T);w=M+b;m=w-M;k=M-(w-m)+(b-m);b=k-E;m=k-b;iI[1]=k-(b+m)+(m-E);$=w+b;m=$-w;iI[2]=w-($-m)+(b-m);iI[3]=$;M=t*a;g=splitter*t;y=g-(g-t);v=t-y;g=splitter*a;_=g-(g-a);x=a-_;S=v*x-(M-y*_-v*_-y*x);E=s*e;g=splitter*s;y=g-(g-s);v=s-y;g=splitter*e;_=g-(g-e);x=e-_;T=v*x-(E-y*_-v*_-y*x);b=S-T;m=S-b;rI[0]=S-(b+m)+(m-T);w=M+b;m=w-M;k=M-(w-m)+(b-m);b=k-E;m=k-b;rI[1]=k-(b+m)+(m-E);$=w+b;m=$-w;rI[2]=w-($-m)+(b-m);rI[3]=$;M=i*c;g=splitter*i;y=g-(g-i);v=i-y;g=splitter*c;_=g-(g-c);x=c-_;S=v*x-(M-y*_-v*_-y*x);E=u*r;g=splitter*u;y=g-(g-u);v=u-y;g=splitter*r;_=g-(g-r);x=r-_;T=v*x-(E-y*_-v*_-y*x);b=S-T;m=S-b;oI[0]=S-(b+m)+(m-T);w=M+b;m=w-M;k=M-(w-m)+(b-m);b=k-E;m=k-b;oI[1]=k-(b+m)+(m-E);$=w+b;m=$-w;oI[2]=w-($-m)+(b-m);oI[3]=$;M=s*d;g=splitter*s;y=g-(g-s);v=s-y;g=splitter*d;_=g-(g-d);x=d-_;S=v*x-(M-y*_-v*_-y*x);E=h*a;g=splitter*h;y=g-(g-h);v=h-y;g=splitter*a;_=g-(g-a);x=a-_;T=v*x-(E-y*_-v*_-y*x);b=S-T;m=S-b;sI[0]=S-(b+m)+(m-T);w=M+b;m=w-M;k=M-(w-m)+(b-m);b=k-E;m=k-b;sI[1]=k-(b+m)+(m-E);$=w+b;m=$-w;sI[2]=w-($-m)+(b-m);sI[3]=$;M=u*e;g=splitter*u;y=g-(g-u);v=u-y;g=splitter*e;_=g-(g-e);x=e-_;S=v*x-(M-y*_-v*_-y*x);E=t*c;g=splitter*t;y=g-(g-t);v=t-y;g=splitter*c;_=g-(g-c);x=c-_;T=v*x-(E-y*_-v*_-y*x);b=S-T;m=S-b;aI[0]=S-(b+m)+(m-T);w=M+b;m=w-M;k=M-(w-m)+(b-m);b=k-E;m=k-b;aI[1]=k-(b+m)+(m-E);$=w+b;m=$-w;aI[2]=w-($-m)+(b-m);aI[3]=$;M=h*r;g=splitter*h;y=g-(g-h);v=h-y;g=splitter*r;_=g-(g-r);x=r-_;S=v*x-(M-y*_-v*_-y*x);E=i*d;g=splitter*i;y=g-(g-i);v=i-y;g=splitter*d;_=g-(g-d);x=d-_;T=v*x-(E-y*_-v*_-y*x);b=S-T;m=S-b;lI[0]=S-(b+m)+(m-T);w=M+b;m=w-M;k=M-(w-m)+(b-m);b=k-E;m=k-b;lI[1]=k-(b+m)+(m-E);$=w+b;m=$-w;lI[2]=w-($-m)+(b-m);lI[3]=$;const D=FI(QP,tI,rI,l,n,-o,uI);const A=FI(tI,eI,oI,f,o,-l,cI);const N=FI(eI,nI,sI,p,l,-f,fI);const z=FI(nI,iI,aI,n,f,-p,hI);const R=FI(iI,QP,lI,o,p,-n,dI);const C=FI(QP,oI,aI,f,n,o,pI);const O=FI(tI,sI,lI,p,o,l,mI);const U=FI(eI,aI,rI,n,l,f,gI);const P=FI(nI,lI,oI,o,f,p,yI);const I=FI(iI,rI,sI,l,p,n,vI);const q=sum_three(jI(N,fI,O,mI,P,yI,A,cI,t,e,n,_I),_I,jI(z,hI,U,gI,I,vI,N,fI,i,r,o,xI),xI,sum_three(jI(R,dI,P,yI,C,pI,z,hI,s,a,l,bI),bI,jI(D,uI,I,vI,O,mI,R,dI,u,c,f,wI),wI,jI(A,cI,C,pI,U,gI,D,uI,h,d,p,kI),kI,SI,EI),EI,MI,TI);return TI[q-1]}const XI=TU(96);const HI=TU(96);const BI=TU(96);const YI=TU(1152);function JI(t,e,n,i,r,o,s,a,l,u){const c=FI(t,e,n,i,r,o,zI);return sum_three(scale(scale(c,zI,s,RI),RI,s,XI),XI,scale(scale(c,zI,a,RI),RI,a,HI),HI,scale(scale(c,zI,l,RI),RI,l,BI),BI,UI,u)}function GI(t,e,n,i,r,o,s,a,l,u,c,f,h,d,p,m){let g,y,v,_,x,b;let w,k,M,S;let E,T,$,D;let A,N,z,R;let C,O,U,P,I,q,L,F,j,W,X,H,B;const Y=t-h;const J=i-h;const G=s-h;const V=u-h;const K=e-d;const Z=r-d;const Q=a-d;const tt=c-d;const et=n-p;const nt=o-p;const it=l-p;const rt=f-p;W=Y*Z;O=splitter*Y;U=O-(O-Y);P=Y-U;O=splitter*Z;I=O-(O-Z);q=Z-I;X=P*q-(W-U*I-P*I-U*q);H=J*K;O=splitter*J;U=O-(O-J);P=J-U;O=splitter*K;I=O-(O-K);q=K-I;B=P*q-(H-U*I-P*I-U*q);L=X-B;C=X-L;QP[0]=X-(L+C)+(C-B);F=W+L;C=F-W;j=W-(F-C)+(L-C);L=j-H;C=j-L;QP[1]=j-(L+C)+(C-H);g=F+L;C=g-F;QP[2]=F-(g-C)+(L-C);QP[3]=g;W=J*Q;O=splitter*J;U=O-(O-J);P=J-U;O=splitter*Q;I=O-(O-Q);q=Q-I;X=P*q-(W-U*I-P*I-U*q);H=G*Z;O=splitter*G;U=O-(O-G);P=G-U;O=splitter*Z;I=O-(O-Z);q=Z-I;B=P*q-(H-U*I-P*I-U*q);L=X-B;C=X-L;tI[0]=X-(L+C)+(C-B);F=W+L;C=F-W;j=W-(F-C)+(L-C);L=j-H;C=j-L;tI[1]=j-(L+C)+(C-H);y=F+L;C=y-F;tI[2]=F-(y-C)+(L-C);tI[3]=y;W=G*tt;O=splitter*G;U=O-(O-G);P=G-U;O=splitter*tt;I=O-(O-tt);q=tt-I;X=P*q-(W-U*I-P*I-U*q);H=V*Q;O=splitter*V;U=O-(O-V);P=V-U;O=splitter*Q;I=O-(O-Q);q=Q-I;B=P*q-(H-U*I-P*I-U*q);L=X-B;C=X-L;eI[0]=X-(L+C)+(C-B);F=W+L;C=F-W;j=W-(F-C)+(L-C);L=j-H;C=j-L;eI[1]=j-(L+C)+(C-H);v=F+L;C=v-F;eI[2]=F-(v-C)+(L-C);eI[3]=v;W=V*K;O=splitter*V;U=O-(O-V);P=V-U;O=splitter*K;I=O-(O-K);q=K-I;X=P*q-(W-U*I-P*I-U*q);H=Y*tt;O=splitter*Y;U=O-(O-Y);P=Y-U;O=splitter*tt;I=O-(O-tt);q=tt-I;B=P*q-(H-U*I-P*I-U*q);L=X-B;C=X-L;aI[0]=X-(L+C)+(C-B);F=W+L;C=F-W;j=W-(F-C)+(L-C);L=j-H;C=j-L;aI[1]=j-(L+C)+(C-H);_=F+L;C=_-F;aI[2]=F-(_-C)+(L-C);aI[3]=_;W=Y*Q;O=splitter*Y;U=O-(O-Y);P=Y-U;O=splitter*Q;I=O-(O-Q);q=Q-I;X=P*q-(W-U*I-P*I-U*q);H=G*K;O=splitter*G;U=O-(O-G);P=G-U;O=splitter*K;I=O-(O-K);q=K-I;B=P*q-(H-U*I-P*I-U*q);L=X-B;C=X-L;rI[0]=X-(L+C)+(C-B);F=W+L;C=F-W;j=W-(F-C)+(L-C);L=j-H;C=j-L;rI[1]=j-(L+C)+(C-H);x=F+L;C=x-F;rI[2]=F-(x-C)+(L-C);rI[3]=x;W=J*tt;O=splitter*J;U=O-(O-J);P=J-U;O=splitter*tt;I=O-(O-tt);q=tt-I;X=P*q-(W-U*I-P*I-U*q);H=V*Z;O=splitter*V;U=O-(O-V);P=V-U;O=splitter*Z;I=O-(O-Z);q=Z-I;B=P*q-(H-U*I-P*I-U*q);L=X-B;C=X-L;oI[0]=X-(L+C)+(C-B);F=W+L;C=F-W;j=W-(F-C)+(L-C);L=j-H;C=j-L;oI[1]=j-(L+C)+(C-H);b=F+L;C=b-F;oI[2]=F-(b-C)+(L-C);oI[3]=b;const ot=sum(sum(negate(JI(tI,eI,oI,rt,nt,-it,Y,K,et,_I),_I),_I,JI(eI,aI,rI,et,it,rt,J,Z,nt,xI),xI,MI),MI,sum(negate(JI(aI,QP,oI,nt,rt,et,G,Q,it,bI),bI),bI,JI(QP,tI,rI,it,et,-nt,V,tt,rt,wI),wI,SI),SI,YI);let st=estimate(ot,YI);let at=KP*m;if(st>=at||-st>=at){return st}C=t-Y;w=t-(Y+C)+(C-h);C=e-K;E=e-(K+C)+(C-d);C=n-et;A=n-(et+C)+(C-p);C=i-J;k=i-(J+C)+(C-h);C=r-Z;T=r-(Z+C)+(C-d);C=o-nt;N=o-(nt+C)+(C-p);C=s-G;M=s-(G+C)+(C-h);C=a-Q;$=a-(Q+C)+(C-d);C=l-it;z=l-(it+C)+(C-p);C=u-V;S=u-(V+C)+(C-h);C=c-tt;D=c-(tt+C)+(C-d);C=f-rt;R=f-(rt+C)+(C-p);if(w===0&&E===0&&A===0&&k===0&&T===0&&N===0&&M===0&&$===0&&z===0&&S===0&&D===0&&R===0){return st}at=ZP*m+resulterrbound*Math.abs(st);const lt=Y*T+Z*w-(K*k+J*E);const ut=J*$+Q*k-(Z*M+G*T);const ct=G*D+tt*M-(Q*S+V*$);const ft=V*E+K*S-(tt*w+Y*D);const ht=Y*$+Q*w-(K*M+G*E);const dt=J*D+tt*k-(Z*S+V*T);st+=(J*J+Z*Z+nt*nt)*(it*ft+rt*ht+et*ct+(z*_+R*x+A*v))+(V*V+tt*tt+rt*rt)*(et*ut-nt*ht+it*lt+(A*y-N*x+z*g))-((Y*Y+K*K+et*et)*(nt*ct-it*dt+rt*ut+(N*v-z*b+R*y))+(G*G+Q*Q+it*it)*(rt*lt+et*dt+nt*ft+(R*g+A*b+N*_)))+2*((J*k+Z*T+nt*N)*(it*_+rt*x+et*v)+(V*S+tt*D+rt*R)*(et*y-nt*x+it*g)-((Y*w+K*E+et*A)*(nt*v-it*b+rt*y)+(G*M+Q*$+it*z)*(rt*g+et*b+nt*_)));if(st>=at||-st>=at){return st}return WI(t,e,n,i,r,o,s,a,l,u,c,f,h,d,p)}function VI(t,e,n,i,r,o,s,a,l,u,c,f,h,d,p){const m=t-h;const g=i-h;const y=s-h;const v=u-h;const _=e-d;const x=r-d;const b=a-d;const w=c-d;const k=n-p;const M=o-p;const S=l-p;const E=f-p;const T=m*x;const $=g*_;const D=T-$;const A=g*b;const N=y*x;const z=A-N;const R=y*w;const C=v*b;const O=R-C;const U=v*_;const P=m*w;const I=U-P;const q=m*b;const L=y*_;const F=q-L;const j=g*w;const W=v*x;const X=j-W;const H=k*z-M*F+S*D;const B=M*O-S*X+E*z;const Y=S*I+E*F+k*O;const J=E*D+k*X+M*I;const G=m*m+_*_+k*k;const V=g*g+x*x+M*M;const K=y*y+b*b+S*S;const Z=v*v+w*w+E*E;const Q=K*J-Z*H+(G*B-V*Y);const tt=Math.abs(k);const et=Math.abs(M);const nt=Math.abs(S);const it=Math.abs(E);const rt=Math.abs(T);const ot=Math.abs($);const st=Math.abs(A);const at=Math.abs(N);const lt=Math.abs(R);const ut=Math.abs(C);const ct=Math.abs(U);const ft=Math.abs(P);const ht=Math.abs(q);const dt=Math.abs(L);const pt=Math.abs(j);const mt=Math.abs(W);const gt=((lt+ut)*et+(mt+pt)*nt+(st+at)*it)*G+((ct+ft)*nt+(ht+dt)*it+(lt+ut)*tt)*V+((rt+ot)*it+(pt+mt)*tt+(ct+ft)*et)*K+((st+at)*tt+(dt+ht)*et+(rt+ot)*nt)*Z;const yt=VP*gt;if(Q>yt||-Q>yt){return Q}return-GI(t,e,n,i,r,o,s,a,l,u,c,f,h,d,p,gt)}function KI(t,e,n,i,r,o,s,a,l,u,c,f,h,d,p){const m=t-h;const g=i-h;const y=s-h;const v=u-h;const _=e-d;const x=r-d;const b=a-d;const w=c-d;const k=n-p;const M=o-p;const S=l-p;const E=f-p;const T=m*x-g*_;const $=g*b-y*x;const D=y*w-v*b;const A=v*_-m*w;const N=m*b-y*_;const z=g*w-v*x;const R=k*$-M*N+S*T;const C=M*D-S*z+E*$;const O=S*A+E*N+k*D;const U=E*T+k*z+M*A;const P=m*m+_*_+k*k;const I=g*g+x*x+M*M;const q=y*y+b*b+S*S;const L=v*v+w*w+E*E;return q*U-L*R+(P*C-I*O)}const ZI=Math.pow(2,-52);const QI=new Uint32Array(512);class tq{static from(t,e=lq,n=uq){const i=t.length;const r=new Float64Array(i*2);for(let o=0;o>1;if(e>0&&typeof t[0]!=="number")throw new Error("Expected coords to contain numbers.");this.coords=t;const n=Math.max(2*e-5,0);this._triangles=new Uint32Array(n*3);this._halfedges=new Int32Array(n*3);this._hashSize=Math.ceil(Math.sqrt(e));this._hullPrev=new Uint32Array(e);this._hullNext=new Uint32Array(e);this._hullTri=new Uint32Array(e);this._hullHash=new Int32Array(this._hashSize).fill(-1);this._ids=new Uint32Array(e);this._dists=new Float64Array(e);this.update()}update(){const{coords:t,_hullPrev:e,_hullNext:n,_hullTri:i,_hullHash:r}=this;const o=t.length>>1;let s=Infinity;let a=Infinity;let l=-Infinity;let u=-Infinity;for(let S=0;Sl)l=e;if(n>u)u=n;this._ids[S]=S}const c=(s+l)/2;const f=(a+u)/2;let h=Infinity;let d,p,m;for(let S=0;S0){p=S;h=e}}let v=t[2*p];let _=t[2*p+1];let x=Infinity;for(let S=0;Si){e[n++]=r;i=this._dists[r]}}this.hull=e.subarray(0,n);this.triangles=new Uint32Array(0);this.halfedges=new Uint32Array(0);return}if(PU(g,y,v,_,b,w)<0){const t=p;const e=v;const n=_;p=m;v=b;_=w;m=t;b=e;w=n}const k=oq(g,y,v,_,b,w);this._cx=k.x;this._cy=k.y;for(let S=0;S0&&Math.abs(s-E)<=ZI&&Math.abs(a-T)<=ZI)continue;E=s;T=a;if(o===d||o===p||o===m)continue;let l=0;for(let t=0,e=this._hashKey(s,a);t=0){u=c;if(u===l){u=-1;break}}if(u===-1)continue;let f=this._addTriangle(u,o,n[u],-1,-1,i[u]);i[o]=this._legalize(f+2);i[u]=f;M++;let h=n[u];while(c=n[h],PU(s,a,t[2*h],t[2*h+1],t[2*c],t[2*c+1])<0){f=this._addTriangle(h,o,c,i[o],-1,i[h]);i[o]=this._legalize(f+2);n[h]=h;M--;h=c}if(u===l){while(c=e[u],PU(s,a,t[2*c],t[2*c+1],t[2*u],t[2*u+1])<0){f=this._addTriangle(c,o,u,-1,i[u],i[c]);this._legalize(f+2);i[c]=f;n[u]=u;M--;u=c}}this._hullStart=e[o]=u;n[u]=e[h]=o;n[o]=h;r[this._hashKey(s,a)]=o;r[this._hashKey(t[2*u],t[2*u+1])]=u}this.hull=new Uint32Array(M);for(let S=0,E=this._hullStart;S0?3-n:1+n)/4}function nq(t,e,n,i){const r=t-n;const o=e-i;return r*r+o*o}function iq(t,e,n,i,r,o,s,a){const l=t-s;const u=e-a;const c=n-s;const f=i-a;const h=r-s;const d=o-a;const p=l*l+u*u;const m=c*c+f*f;const g=h*h+d*d;return l*(f*g-m*d)-u*(c*g-m*h)+p*(c*d-f*h)<0}function rq(t,e,n,i,r,o){const s=n-t;const a=i-e;const l=r-t;const u=o-e;const c=s*s+a*a;const f=l*l+u*u;const h=.5/(s*u-a*l);const d=(u*c-a*f)*h;const p=(s*f-l*c)*h;return d*d+p*p}function oq(t,e,n,i,r,o){const s=n-t;const a=i-e;const l=r-t;const u=o-e;const c=s*s+a*a;const f=l*l+u*u;const h=.5/(s*u-a*l);const d=t+(u*c-a*f)*h;const p=e+(s*f-l*c)*h;return{x:d,y:p}}function sq(t,e,n,i){if(i-n<=20){for(let r=n+1;r<=i;r++){const i=t[r];const o=e[i];let s=r-1;while(s>=n&&e[t[s]]>o)t[s+1]=t[s--];t[s+1]=i}}else{const r=n+i>>1;let o=n+1;let s=i;aq(t,r,o);if(e[t[n]]>e[t[i]])aq(t,n,i);if(e[t[o]]>e[t[i]])aq(t,o,i);if(e[t[n]]>e[t[o]])aq(t,n,o);const a=t[o];const l=e[a];while(true){do{o++}while(e[t[o]]l);if(s=s-n){sq(t,e,o,i);sq(t,e,n,s-1)}else{sq(t,e,n,s-1);sq(t,e,o,i)}}}function aq(t,e,n){const i=t[e];t[e]=t[n];t[n]=i}function lq(t){return t[0]}function uq(t){return t[1]}const cq=1e-6;class fq{constructor(){this._x0=this._y0=this._x1=this._y1=null;this._=""}moveTo(t,e){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}`}closePath(){if(this._x1!==null){this._x1=this._x0,this._y1=this._y0;this._+="Z"}}lineTo(t,e){this._+=`L${this._x1=+t},${this._y1=+e}`}arc(t,e,n){t=+t,e=+e,n=+n;const i=t+n;const r=e;if(n<0)throw new Error("negative radius");if(this._x1===null)this._+=`M${i},${r}`;else if(Math.abs(this._x1-i)>cq||Math.abs(this._y1-r)>cq)this._+="L"+i+","+r;if(!n)return;this._+=`A${n},${n},0,1,1,${t-n},${e}A${n},${n},0,1,1,${this._x1=i},${this._y1=r}`}rect(t,e,n,i){this._+=`M${this._x0=this._x1=+t},${this._y0=this._y1=+e}h${+n}v${+i}h${-n}Z`}value(){return this._||null}}class hq{constructor(){this._=[]}moveTo(t,e){this._.push([t,e])}closePath(){this._.push(this._[0].slice())}lineTo(t,e){this._.push([t,e])}value(){return this._.length?this._:null}}class dq{constructor(t,[e,n,i,r]=[0,0,960,500]){if(!((i=+i)>=(e=+e))||!((r=+r)>=(n=+n)))throw new Error("invalid bounds");this.delaunay=t;this._circumcenters=new Float64Array(t.points.length*2);this.vectors=new Float64Array(t.points.length*2);this.xmax=i,this.xmin=e;this.ymax=r,this.ymin=n;this._init()}update(){this.delaunay.update();this._init();return this}_init(){const{delaunay:{points:t,hull:e,triangles:n},vectors:i}=this;const r=this.circumcenters=this._circumcenters.subarray(0,n.length/3*2);for(let h=0,d=0,p=n.length,m,g;h1)r-=2;for(let o=2;o4){for(let t=0;t0){if(e>=this.ymax)return null;if((o=(this.ymax-e)/i)0){if(t>=this.xmax)return null;if((o=(this.xmax-t)/n)this.xmax?2:0)|(ethis.ymax?8:0)}}const pq=2*Math.PI,mq=Math.pow;function gq(t){return t[0]}function yq(t){return t[1]}function vq(t){const{triangles:e,coords:n}=t;for(let i=0;i1e-10)return false}return true}function _q(t,e,n){return[t+Math.sin(t+e)*n,e+Math.cos(t-e)*n]}class xq{static from(t,e=gq,n=yq,i){return new xq("length"in t?bq(t,e,n,i):Float64Array.from(wq(t,e,n,i)))}constructor(t){this._delaunator=new tq(t);this.inedges=new Int32Array(t.length/2);this._hullIndex=new Int32Array(t.length/2);this.points=this._delaunator.coords;this._init()}update(){this._delaunator.update();this._init();return this}_init(){const t=this._delaunator,e=this.points;if(t.hull&&t.hull.length>2&&vq(t)){this.collinear=Int32Array.from({length:e.length/2},((t,e)=>e)).sort(((t,n)=>e[2*t]-e[2*n]||e[2*t+1]-e[2*n+1]));const t=this.collinear[0],n=this.collinear[this.collinear.length-1],i=[e[2*t],e[2*t+1],e[2*n],e[2*n+1]],r=1e-8*Math.hypot(i[3]-i[1],i[2]-i[0]);for(let o=0,s=e.length/2;o0){this.triangles=new Int32Array(3).fill(-1);this.halfedges=new Int32Array(3).fill(-1);this.triangles[0]=i[0];o[i[0]]=1;if(i.length===2){o[i[1]]=0;this.triangles[1]=i[1];this.triangles[2]=i[1]}}}voronoi(t){return new dq(this,t)}*neighbors(t){const{inedges:e,hull:n,_hullIndex:i,halfedges:r,triangles:o,collinear:s}=this;if(s){const e=s.indexOf(t);if(e>0)yield s[e-1];if(e=0&&r!==n&&r!==i)n=r;return r}_step(t,e,n){const{inedges:i,hull:r,_hullIndex:o,halfedges:s,triangles:a,points:l}=this;if(i[t]===-1||!l.length)return(t+1)%(l.length>>1);let u=t;let c=mq(e-l[t*2],2)+mq(n-l[t*2+1],2);const f=i[t];let h=f;do{let i=a[h];const f=mq(e-l[i*2],2)+mq(n-l[i*2+1],2);if(f>5,$q=1<<11;function Dq(){var t=[256,256],e,n,i,r,o,s,a,l=Cq,u=[],c=Math.random,f={};f.layout=function(){var l=h(rh()),f=Uq((t[0]>>5)*t[1]),p=null,m=u.length,g=-1,y=[],v=u.map((t=>({text:e(t),font:n(t),style:r(t),weight:o(t),rotate:s(t),size:~~(i(t)+1e-14),padding:a(t),xoff:0,yoff:0,x1:0,y1:0,x0:0,y0:0,hasText:false,sprite:null,datum:t}))).sort(((t,e)=>e.size-t.size));while(++g>1;_.y=t[1]*(c()+.5)>>1;Aq(l,_,v,g);if(_.hasText&&d(f,_,p)){y.push(_);if(p)zq(p,_);else p=[{x:_.x+_.x0,y:_.y+_.y0},{x:_.x+_.x1,y:_.y+_.y1}];_.x-=t[0]>>1;_.y-=t[1]>>1}}return y};function h(t){t.width=t.height=1;var e=Math.sqrt(t.getContext("2d").getImageData(0,0,1,1).data.length>>2);t.width=(Tq<<5)/e;t.height=$q/e;var n=t.getContext("2d");n.fillStyle=n.strokeStyle="red";n.textAlign="center";return{context:n,ratio:e}}function d(e,n,i){var r=n.x,o=n.y,s=Math.sqrt(t[0]*t[0]+t[1]*t[1]),a=l(t),u=c()<.5?1:-1,f=-u,h,d,p;while(h=a(f+=u)){d=~~h[0];p=~~h[1];if(Math.min(Math.abs(d),Math.abs(p))>=s)break;n.x=r+d;n.y=o+p;if(n.x+n.x0<0||n.y+n.y0<0||n.x+n.x1>t[0]||n.y+n.y1>t[1])continue;if(!i||!Nq(n,e,t[0])){if(!i||Rq(n,i)){var m=n.sprite,g=n.width>>5,y=t[0]>>5,v=n.x-(g<<4),_=v&127,x=32-_,b=n.y1-n.y0,w=(n.y+n.y0)*y+(v>>5),k;for(var M=0;M>>_:0)}w+=y}n.sprite=null;return true}}}return false}f.words=function(t){if(arguments.length){u=t;return f}else{return u}};f.size=function(e){if(arguments.length){t=[+e[0],+e[1]];return f}else{return t}};f.font=function(t){if(arguments.length){n=Pq(t);return f}else{return n}};f.fontStyle=function(t){if(arguments.length){r=Pq(t);return f}else{return r}};f.fontWeight=function(t){if(arguments.length){o=Pq(t);return f}else{return o}};f.rotate=function(t){if(arguments.length){s=Pq(t);return f}else{return s}};f.text=function(t){if(arguments.length){e=Pq(t);return f}else{return e}};f.spiral=function(t){if(arguments.length){l=Iq[t]||t;return f}else{return l}};f.fontSize=function(t){if(arguments.length){i=Pq(t);return f}else{return i}};f.padding=function(t){if(arguments.length){a=Pq(t);return f}else{return a}};f.random=function(t){if(arguments.length){c=t;return f}else{return c}};return f}function Aq(t,e,n,i){if(e.sprite)return;var r=t.context,o=t.ratio;r.clearRect(0,0,(Tq<<5)/o,$q/o);var s=0,a=0,l=0,u=n.length,c,f,h,d,p;--i;while(++i>5<<5;h=~~Math.max(Math.abs(v+_),Math.abs(v-_))}else{c=c+31>>5<<5}if(h>l)l=h;if(s+c>=Tq<<5){s=0;a+=l;l=0}if(a+h>=$q)break;r.translate((s+(c>>1))/o,(a+(h>>1))/o);if(e.rotate)r.rotate(e.rotate*Eq);r.fillText(e.text,0,0);if(e.padding){r.lineWidth=2*e.padding;r.strokeText(e.text,0,0)}r.restore();e.width=c;e.height=h;e.xoff=s;e.yoff=a;e.x1=c>>1;e.y1=h>>1;e.x0=-e.x1;e.y0=-e.y1;e.hasText=true;s+=c}var b=r.getImageData(0,0,(Tq<<5)/o,$q/o).data,w=[];while(--i>=0){e=n[i];if(!e.hasText)continue;c=e.width;f=c>>5;h=e.y1-e.y0;for(d=0;d>5),E=b[(a+p)*(Tq<<5)+(s+d)<<2]?1<<31-d%32:0;w[S]|=E;k|=E}if(k)M=p;else{e.y0++;h--;p--;a++}}e.y1=e.y0+M;e.sprite=w.slice(0,(e.y1-e.y0)*f)}}function Nq(t,e,n){n>>=5;var i=t.sprite,r=t.width>>5,o=t.x-(r<<4),s=o&127,a=32-s,l=t.y1-t.y0,u=(t.y+t.y0)*n+(o>>5),c;for(var f=0;f>>s:0))&e[u+h])return true}u+=n}return false}function zq(t,e){var n=t[0],i=t[1];if(e.x+e.x0i.x)i.x=e.x+e.x1;if(e.y+e.y1>i.y)i.y=e.y+e.y1}function Rq(t,e){return t.x+t.x1>e[0].x&&t.x+t.x0e[0].y&&t.y+t.y0e(t(n))}r.forEach((t=>{t[s[0]]=NaN;t[s[1]]=NaN;t[s[3]]=0}));const u=o.words(r).text(t.text).size(t.size||[500,500]).padding(t.padding||1).spiral(t.spiral||"archimedean").rotate(t.rotate||0).font(t.font||"sans-serif").fontStyle(t.fontStyle||"normal").fontWeight(t.fontWeight||"normal").fontSize(a).random(aa).layout();const c=o.size(),f=c[0]>>1,h=c[1]>>1,d=u.length;for(let p=0,m,g;pt[e]))}const Wq=t=>new Uint8Array(t);const Xq=t=>new Uint16Array(t);const Hq=t=>new Uint32Array(t);function Bq(){let t=8,e=[],n=Hq(0),i=Jq(0,t),r=Jq(0,t);return{data:()=>e,seen:()=>n=Yq(n,e.length),add(t){for(let n=0,i=e.length,r=t.length,o;ne.length,curr:()=>i,prev:()=>r,reset:t=>r[t]=i[t],all:()=>t<257?255:t<65537?65535:4294967295,set(t,e){i[t]|=e},clear(t,e){i[t]&=~e},resize(e,n){const o=i.length;if(e>o||n>t){t=Math.max(n,t);i=Jq(e,t,i);r=Jq(e,t)}}}}function Yq(t,e,n){if(t.length>=e)return t;n=n||new t.constructor(e);n.set(t);return n}function Jq(t,e,n){const i=(e<257?Wq:e<65537?Xq:Hq)(t);if(n)i.set(n);return i}function Gq(t,e,n){const i=1<0)for(h=0;ht,size:()=>n}}function Kq(t,e){t.sort.call(e,((e,n)=>{const i=t[e],r=t[n];return ir?1:0}));return jq(t,e)}function Zq(t,e,n,i,r,o,s,a,l){let u=0,c=0,f;for(f=0;ue.modified(t.fields)));return n?this.reinit(t,e):this.eval(t,e)}},init(t,e){const n=t.fields,i=t.query,r=this._indices={},o=this._dims=[],s=i.length;let a=0,l,u;for(;a{const t=r.remove(e,n);for(const e in i)i[e].reindex(t)}))},update(t,e,n){const i=this._dims,r=t.query,o=e.stamp,s=i.length;let a=0,l,u;n.filters=0;for(u=0;ud){for(g=d,y=Math.min(f,p);gp){for(g=Math.max(f,p),y=h;gf){for(p=f,m=Math.min(u,h);ph){for(p=Math.max(u,h),m=c;p!(a[t]&n)?s[t]:null;o.filter(o.MOD,u);if(!(r&r-1)){o.filter(o.ADD,u);o.filter(o.REM,(t=>(a[t]&n)===r?s[t]:null))}else{o.filter(o.ADD,(t=>{const e=a[t]&n,i=!e&&e^l[t]&n;return i?s[t]:null}));o.filter(o.REM,(t=>{const e=a[t]&n,i=e&&!(e^(e^l[t]&n));return i?s[t]:null}))}return o.filter(o.SOURCE,(t=>u(t._index)))}});var eL=n(25693);var nL=new IE;var iL=new IE,rL,oL,sL,aL,lL;var uL={point:hT,lineStart:hT,lineEnd:hT,polygonStart:function(){nL=new IE;uL.lineStart=cL;uL.lineEnd=fL},polygonEnd:function(){var t=+nL;iL.add(t<0?BE+t:t);this.lineStart=this.lineEnd=this.point=hT},sphere:function(){iL.add(BE)}};function cL(){uL.point=hL}function fL(){dL(rL,oL)}function hL(t,e){uL.point=dL;rL=t,oL=e;t*=JE,e*=JE;sL=t,aL=ZE(e=e/2+HE),lL=oT(e)}function dL(t,e){t*=JE,e*=JE;e=e/2+HE;var n=t-sL,i=n>=0?1:-1,r=i*n,o=ZE(e),s=oT(e),a=lL*s,l=aL*o+a*ZE(r),u=a*i*oT(r);nL.add(KE(u,l));sL=t,aL=o,lL=s}function pL(t){iL=new IE;PE(t,uL);return iL*2}var mL,gL,yL,vL,_L,xL,bL,wL,kL,ML,SL;var EL={point:TL,lineStart:DL,lineEnd:AL,polygonStart:function(){EL.point=NL;EL.lineStart=zL;EL.lineEnd=RL;kL=new IE;uL.polygonStart()},polygonEnd:function(){uL.polygonEnd();EL.point=TL;EL.lineStart=DL;EL.lineEnd=AL;if(nL<0)mL=-(yL=180),gL=-(vL=90);else if(kL>FE)vL=90;else if(kL<-FE)gL=-90;SL[0]=mL,SL[1]=yL},sphere:function(){mL=-(yL=180),gL=-(vL=90)}};function TL(t,e){ML.push(SL=[mL=t,yL=t]);if(evL)vL=e}function $L(t,e){var n=T$([t*JE,e*JE]);if(wL){var i=D$(wL,n),r=[i[1],-i[0],0],o=D$(r,i);z$(o);o=E$(o);var s=t-_L,a=s>0?1:-1,l=o[0]*YE*a,u,c=GE(s)>180;if(c^(a*_LvL)vL=u}else if(l=(l+360)%360-180,c^(a*_LvL)vL=e}if(c){if(t<_L){if(CL(mL,t)>CL(mL,yL))yL=t}else{if(CL(t,yL)>CL(mL,yL))mL=t}}else{if(yL>=mL){if(tyL)yL=t}else{if(t>_L){if(CL(mL,t)>CL(mL,yL))yL=t}else{if(CL(t,yL)>CL(mL,yL))mL=t}}}}else{ML.push(SL=[mL=t,yL=t])}if(evL)vL=e;wL=n,_L=t}function DL(){EL.point=$L}function AL(){SL[0]=mL,SL[1]=yL;EL.point=TL;wL=null}function NL(t,e){if(wL){var n=t-_L;kL.add(GE(n)>180?n+(n>0?360:-360):n)}else{xL=t,bL=e}uL.point(t,e);$L(t,e)}function zL(){uL.lineStart()}function RL(){NL(xL,bL);uL.lineEnd();if(GE(kL)>FE)mL=-(yL=180);SL[0]=mL,SL[1]=yL;wL=null}function CL(t,e){return(e-=t)<0?e+360:e}function OL(t,e){return t[0]-e[0]}function UL(t,e){return t[0]<=t[1]?t[0]<=e&&e<=t[1]:eCL(i[0],i[1]))i[1]=r[1];if(CL(r[0],i[1])>CL(i[0],i[1]))i[0]=r[0]}else{o.push(i=r)}}for(s=-Infinity,n=o.length-1,e=0,i=o[n];e<=n;i=r,++e){r=o[e];if((a=CL(i[1],r[0]))>s)s=a,mL=r[0],yL=i[1]}}ML=SL=null;return mL===Infinity||gL===Infinity?[[NaN,NaN],[NaN,NaN]]:[[mL,gL],[yL,vL]]}var IL,qL,LL,FL,jL,WL,XL,HL,BL,YL,JL,GL,VL,KL,ZL,QL;var tF={sphere:hT,point:eF,lineStart:iF,lineEnd:sF,polygonStart:function(){tF.lineStart=aF;tF.lineEnd=lF},polygonEnd:function(){tF.lineStart=iF;tF.lineEnd=sF}};function eF(t,e){t*=JE,e*=JE;var n=ZE(e);nF(n*ZE(t),n*oT(t),oT(e))}function nF(t,e,n){++IL;LL+=(t-LL)/IL;FL+=(e-FL)/IL;jL+=(n-jL)/IL}function iF(){tF.point=rF}function rF(t,e){t*=JE,e*=JE;var n=ZE(e);KL=n*ZE(t);ZL=n*oT(t);QL=oT(e);tF.point=oF;nF(KL,ZL,QL)}function oF(t,e){t*=JE,e*=JE;var n=ZE(e),i=n*ZE(t),r=n*oT(t),o=oT(e),s=KE(aT((s=ZL*o-QL*r)*s+(s=QL*i-KL*o)*s+(s=KL*r-ZL*i)*s),KL*i+ZL*r+QL*o);qL+=s;WL+=s*(KL+(KL=i));XL+=s*(ZL+(ZL=r));HL+=s*(QL+(QL=o));nF(KL,ZL,QL)}function sF(){tF.point=eF}function aF(){tF.point=uF}function lF(){cF(GL,VL);tF.point=eF}function uF(t,e){GL=t,VL=e;t*=JE,e*=JE;tF.point=cF;var n=ZE(e);KL=n*ZE(t);ZL=n*oT(t);QL=oT(e);nF(KL,ZL,QL)}function cF(t,e){t*=JE,e*=JE;var n=ZE(e),i=n*ZE(t),r=n*oT(t),o=oT(e),s=ZL*o-QL*r,a=QL*i-KL*o,l=KL*r-ZL*i,u=nT(s,a,l),c=cT(u),f=u&&-c/u;BL.add(f*s);YL.add(f*a);JL.add(f*l);qL+=c;WL+=c*(KL+(KL=i));XL+=c*(ZL+(ZL=r));HL+=c*(QL+(QL=o));nF(KL,ZL,QL)}function fF(t){IL=qL=LL=FL=jL=WL=XL=HL=0;BL=new IE;YL=new IE;JL=new IE;PE(t,tF);var e=+BL,n=+YL,i=+JL,r=nT(e,n,i);if(r(0,m.l7)(e.fields?{values:e.fields.map((e=>(e.getter||(e.getter=(0,m.EP)(e.field)))(t.datum)))}:{[bF]:wF(t.datum)},e)))}function UF(t,e,n,i){var r=this.context.data[t],o=r?r.values.value:[],s={},a={},l={},u,c,f,h,d,p,g,y,v,_,x=o.length,b=0,w,k;for(;b(t[c[n].field]=e,t)),{}))}}else{d=bF;p=wF(u);g=s[d]||(s[d]={});y=g[h]||(g[h]=[]);y.push(p);if(n){y=a[h]||(a[h]=[]);y.push({[bF]:p})}}}e=e||gF;if(s[bF]){s[bF]=PF[`${bF}_${e}`](...Object.values(s[bF]))}else{Object.keys(s).forEach((t=>{s[t]=Object.keys(s[t]).map((e=>s[t][e])).reduce(((n,i)=>n===undefined?i:PF[`${l[t]}_${e}`](n,i)))}))}o=Object.keys(a);if(n&&o.length){const t=i?vF:yF;s[t]=e===gF?{[_F]:o.reduce(((t,e)=>(t.push(...a[e]),t)),[])}:{[xF]:o.map((t=>({[_F]:a[t]})))}}return s}var PF={[`${bF}_union`]:hF,[`${bF}_intersect`]:dF,E_union:function(t,e){if(!t.length)return e;var n=0,i=e.length;for(;ne.indexOf(t)>=0))},R_union:function(t,e){var n=(0,m.He)(e[0]),i=(0,m.He)(e[1]);if(n>i){n=e[1];i=e[0]}if(!t.length)return[n,i];if(t[0]>n)t[0]=n;if(t[1]i){n=e[1];i=e[0]}if(!t.length)return[n,i];if(ii)t[1]=i}return t}};const IF=":",qF="@";function LF(t,e,n,i){if(e[0].type!==eL.t$)(0,m.vU)("First argument to selection functions must be a string literal.");const r=e[0].value,o=e.length>=2&&(0,m.fj)(e).value,s="unit",a=qF+s,l=IF+r;if(o===mF&&!(0,m.nr)(i,a)){i[a]=n.getData(r).indataRef(n,s)}if(!(0,m.nr)(i,l)){i[l]=n.getData(r).tuplesRef()}}function FF(t){const e=this.context.data[t];return e?e.values.value:[]}function jF(t,e,n){const i=this.context.data[t]["index:"+e],r=i?i.value.get(n):undefined;return r?r.count:r}function WF(t,e){const n=this.context.dataflow,i=this.context.data[t],r=i.input;n.pulse(r,n.changeset().remove(m.yb).insert(e));return 1}function XF(t,e,n){if(t){const n=this.context.dataflow,i=t.mark.source;n.pulse(i,n.changeset().encode(t,e))}return n!==undefined?n:t}const HF=t=>function(e,n){const i=this.context.dataflow.locale();return i[t](n)(e)};const BF=HF("format");const YF=HF("timeFormat");const JF=HF("utcFormat");const GF=HF("timeParse");const VF=HF("utcParse");const KF=new Date(2e3,0,1);function ZF(t,e,n){if(!Number.isInteger(t)||!Number.isInteger(e))return"";KF.setYear(2e3);KF.setMonth(t);KF.setDate(e);return YF.call(this,KF,n)}function QF(t){return ZF.call(this,t,1,"%B")}function tj(t){return ZF.call(this,t,1,"%b")}function ej(t){return ZF.call(this,0,2+t,"%A")}function nj(t){return ZF.call(this,0,2+t,"%a")}const ij=":";const rj="@";const oj="%";const sj="$";function aj(t,e,n,i){if(e[0].type!==eL.t$){(0,m.vU)("First argument to data functions must be a string literal.")}const r=e[0].value,o=ij+r;if(!(0,m.nr)(o,i)){try{i[o]=n.getData(r).tuplesRef()}catch(s){}}}function lj(t,e,n,i){if(e[0].type!==eL.t$)(0,m.vU)("First argument to indata must be a string literal.");if(e[1].type!==eL.t$)(0,m.vU)("Second argument to indata must be a string literal.");const r=e[0].value,o=e[1].value,s=rj+o;if(!(0,m.nr)(s,i)){i[s]=n.getData(r).indataRef(n,o)}}function uj(t,e,n,i){if(e[0].type===eL.t$){cj(n,i,e[0].value)}else{for(t in n.scales){cj(n,i,t)}}}function cj(t,e,n){const i=oj+n;if(!(0,m.nr)(e,i)){try{e[i]=t.scaleRef(n)}catch(r){}}}function fj(t,e){if((0,m.mf)(t)){return t}if((0,m.HD)(t)){const n=e.scales[t];return n&&Ag(n.value)?n.value:undefined}return undefined}function hj(t,e,n){e.__bandwidth=t=>t&&t.bandwidth?t.bandwidth():0;n._bandwidth=uj;n._range=uj;n._scale=uj;const i=e=>"_["+(e.type===eL.t$?(0,m.m8)(oj+e.value):(0,m.m8)(oj)+"+"+t(e))+"]";return{_bandwidth:t=>`this.__bandwidth(${i(t[0])})`,_range:t=>`${i(t[0])}.range()`,_scale:e=>`${i(e[0])}(${t(e[1])})`}}function dj(t,e){return function(n,i,r){if(n){const e=fj(n,(r||this).context);return e&&e.path[t](i)}else{return e(i)}}}const pj=dj("area",pL);const mj=dj("bounds",PL);const gj=dj("centroid",fF);function yj(t){const e=this.context.group;let n=false;if(e)while(t){if(t===e){n=true;break}t=t.mark.group}return n}function vj(t,e,n){try{t[e].apply(t,["EXPRESSION"].concat([].slice.call(n)))}catch(i){t.warn(i)}return n[n.length-1]}function _j(){return vj(this.context.dataflow,"warn",arguments)}function xj(){return vj(this.context.dataflow,"info",arguments)}function bj(){return vj(this.context.dataflow,"debug",arguments)}function wj(t){const e=t/255;if(e<=.03928){return e/12.92}return Math.pow((e+.055)/1.055,2.4)}function kj(t){const e=Oh(t),n=wj(e.r),i=wj(e.g),r=wj(e.b);return.2126*n+.7152*i+.0722*r}function Mj(t,e){const n=kj(t),i=kj(e),r=Math.max(n,i),o=Math.min(n,i);return(r+.05)/(o+.05)}function Sj(){const t=[].slice.call(arguments);t.unshift({});return(0,m.l7)(...t)}function Ej(t,e){return t===e||t!==t&&e!==e?true:(0,m.kJ)(t)?(0,m.kJ)(e)&&t.length===e.length?Tj(t,e):false:(0,m.Kn)(t)&&(0,m.Kn)(e)?$j(t,e):false}function Tj(t,e){for(let n=0,i=t.length;n$j(t,e)}function Aj(t,e,n,i,r,o){const s=this.context.dataflow,a=this.context.data[t],l=a.input,u=s.stamp();let c=a.changes,f,h;if(s._trigger===false||!(l.value.length||e||i)){return 0}if(!c||c.stamp{a.modified=true;s.pulse(l,c).run()}),true,1)}if(n){f=n===true?m.yb:(0,m.kJ)(n)||xo(n)?n:Dj(n);c.remove(f)}if(e){c.insert(e)}if(i){f=Dj(i);if(l.value.some(f)){c.remove(f)}else{c.insert(i)}}if(r){for(h in o){c.modify(r,h,o[h])}}return 1}function Nj(t){const e=t.touches,n=e[0].clientX-e[1].clientX,i=e[0].clientY-e[1].clientY;return Math.sqrt(n*n+i*i)}function zj(t){const e=t.touches;return Math.atan2(e[0].clientY-e[1].clientY,e[0].clientX-e[1].clientX)}const Rj={};function Cj(t,e){const n=Rj[e]||(Rj[e]=(0,m.EP)(e));return(0,m.kJ)(t)?t.map(n):n(t)}function Oj(t){return(0,m.kJ)(t)||ArrayBuffer.isView(t)?t:null}function Uj(t){return Oj(t)||((0,m.HD)(t)?t:null)}function Pj(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i1?e-1:0),i=1;i1?e-1:0),i=1;i1?e-1:0),i=1;io.stop(u(e),t(e))));return o}function Kj(t,e,n){const i=fj(t,(n||this).context);return function(t){return i?i.path.context(t)(e):""}}function Zj(t){let e=null;return function(n){return n?iv(n,e=e||Wy(t)):t}}const Qj=t=>t.data;function tW(t,e){const n=FF.call(e,t);return n.root&&n.root.lookup||{}}function eW(t,e,n){const i=tW(t,this),r=i[e],o=i[n];return r&&o?r.path(o).map(Qj):undefined}function nW(t,e){const n=tW(t,this)[e];return n?n.ancestors().map(Qj):undefined}const iW=()=>typeof window!=="undefined"&&window||null;function rW(){const t=iW();return t?t.screen:{}}function oW(){const t=iW();return t?[t.innerWidth,t.innerHeight]:[undefined,undefined]}function sW(){const t=this.context.dataflow,e=t.container&&t.container();return e?[e.clientWidth,e.clientHeight]:[undefined,undefined]}function aW(t,e,n){if(!t)return[];const[i,r]=t,o=(new r_).set(i[0],i[1],r[0],r[1]),s=n||this.context.dataflow.scenegraph().root;return jk(s,o,lW(e))}function lW(t){let e=null;if(t){const n=(0,m.IX)(t.marktype),i=(0,m.IX)(t.markname);e=t=>(!n.length||n.some((e=>t.marktype===e)))&&(!i.length||i.some((e=>t.name===e)))}return e}function uW(t,e,n){let i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:5;t=(0,m.IX)(t);const r=t[t.length-1];return r===undefined||Math.sqrt((r[0]-e)**2+(r[1]-n)**2)>i?[...t,[e,n]]:t}function cW(t){return(0,m.IX)(t).reduce(((e,n,i)=>{let[r,o]=n;return e+=i==0?`M ${r},${o} `:i===t.length-1?" Z":`L ${r},${o} `}),"")}function fW(t,e,n){const{x:i,y:r,mark:o}=n;const s=(new r_).set(Number.MAX_SAFE_INTEGER,Number.MAX_SAFE_INTEGER,Number.MIN_SAFE_INTEGER,Number.MIN_SAFE_INTEGER);for(const[l,u]of e){if(ls.x2)s.x2=l;if(us.y2)s.y2=u}s.translate(i,r);const a=aW([[s.x1,s.y1],[s.x2,s.y2]],t,o);return a.filter((t=>hW(t.x,t.y,e)))}function hW(t,e,n){let i=0;for(let r=0,o=n.length-1;re!=a>e&&t<(s-l)*(e-u)/(a-u)+l){i++}}return i&1}const dW={random(){return aa()},cumulativeNormal:_a,cumulativeLogNormal:Ea,cumulativeUniform:za,densityNormal:va,densityLogNormal:Sa,densityUniform:Na,quantileNormal:xa,quantileLogNormal:Ta,quantileUniform:Ra,sampleNormal:ya,sampleLogNormal:Ma,sampleUniform:Aa,isArray:m.kJ,isBoolean:m.jn,isDate:m.J_,isDefined(t){return t!==undefined},isNumber:m.hj,isObject:m.Kn,isRegExp:m.Kj,isString:m.HD,isTuple:xo,isValid(t){return t!=null&&t===t},toBoolean:m.sw,toDate(t){return(0,m.ZU)(t)},toNumber:m.He,toString:m.BB,indexof:Ij,join:Pj,lastindexof:qj,replace:Fj,reverse:jj,slice:Lj,flush:m.yl,lerp:m.t7,merge:Sj,pad:m.vk,peek:m.fj,pluck:Cj,span:m.yP,inrange:m.u5,truncate:m.$G,rgb:Oh,lab:_m,hcl:Tm,hsl:Hh,luminance:kj,contrast:Mj,sequence:rl,format:BF,utcFormat:JF,utcParse:VF,utcOffset:kn,utcSequence:En,timeFormat:YF,timeParse:GF,timeOffset:wn,timeSequence:Sn,timeUnitSpecifier:Be,monthFormat:QF,monthAbbrevFormat:tj,dayFormat:ej,dayAbbrevFormat:nj,quarter:m.mS,utcquarter:m.N3,week:Ve,utcweek:nn,dayofyear:Ge,utcdayofyear:en,warn:_j,info:xj,debug:bj,extent(t){return(0,m.We)(t)},inScope:yj,intersect:aW,clampRange:m.l$,pinchDistance:Nj,pinchAngle:zj,screen:rW,containerSize:sW,windowSize:oW,bandspace:Wj,setdata:WF,pathShape:Zj,panLinear:m.Dw,panLog:m.mJ,panPow:m.QA,panSymlog:m.Zw,zoomLinear:m.ay,zoomLog:m.dH,zoomPow:m.mK,zoomSymlog:m.bV,encode:XF,modify:Aj,lassoAppend:uW,lassoPath:cW,intersectLasso:fW};const pW=["view","item","group","xy","x","y"],mW="event.vega.",gW="this.",yW={};const vW={forbidden:["_"],allowed:["datum","event","item"],fieldvar:"datum",globalvar:t=>`_[${(0,m.m8)(sj+t)}]`,functions:xW,constants:eL._G,visitors:yW};const _W=(0,eL.YP)(vW);function xW(t){const e=(0,eL.wk)(t);pW.forEach((t=>e[t]=mW+t));for(const n in dW){e[n]=gW+n}(0,m.l7)(e,hj(t,dW,yW));return e}function bW(t,e,n){if(arguments.length===1){return dW[t]}dW[t]=e;if(n)yW[t]=n;if(_W)_W.functions[t]=gW+t;return this}bW("bandwidth",Xj,uj);bW("copy",Hj,uj);bW("domain",Bj,uj);bW("range",Jj,uj);bW("invert",Yj,uj);bW("scale",Gj,uj);bW("gradient",Vj,uj);bW("geoArea",pj,uj);bW("geoBounds",mj,uj);bW("geoCentroid",gj,uj);bW("geoShape",Kj,uj);bW("indata",jF,lj);bW("data",FF,aj);bW("treePath",eW,aj);bW("treeAncestors",nW,aj);bW("vlSelectionTest",AF,LF);bW("vlSelectionIdTest",CF,LF);bW("vlSelectionResolve",UF,LF);bW("vlSelectionTuples",OF);function wW(t,e){const n={};let i;try{t=(0,m.HD)(t)?t:(0,m.m8)(t)+"";i=(0,eL.BJ)(t)}catch(o){(0,m.vU)("Expression parse error: "+t)}i.visit((t=>{if(t.type!==eL.Lt)return;const i=t.callee.name,r=vW.visitors[i];if(r)r(i,t.arguments,e,n)}));const r=_W(i);r.globals.forEach((t=>{const i=sj+t;if(!(0,m.nr)(n,i)&&e.getSignal(t)){n[i]=e.signalRef(t)}}));return{$expr:(0,m.l7)({code:r.code},e.options.ast?{ast:i}:null),$fields:r.fields,$params:n}}function kW(t){const e=this,n=t.operators||[];if(t.background){e.background=t.background}if(t.eventConfig){e.eventConfig=t.eventConfig}if(t.locale){e.locale=t.locale}n.forEach((t=>e.parseOperator(t)));n.forEach((t=>e.parseOperatorParameters(t)));(t.streams||[]).forEach((t=>e.parseStream(t)));(t.updates||[]).forEach((t=>e.parseUpdate(t)));return e.resolve()}const MW=(0,m.Rg)(["rule"]),SW=(0,m.Rg)(["group","image","rect"]);function EW(t,e){let n="";if(MW[e])return n;if(t.x2){if(t.x){if(SW[e]){n+="if(o.x>o.x2)$=o.x,o.x=o.x2,o.x2=$;"}n+="o.width=o.x2-o.x;"}else{n+="o.x=o.x2-(o.width||0);"}}if(t.xc){n+="o.x=o.xc-(o.width||0)/2;"}if(t.y2){if(t.y){if(SW[e]){n+="if(o.y>o.y2)$=o.y,o.y=o.y2,o.y2=$;"}n+="o.height=o.y2-o.y;"}else{n+="o.y=o.y2-(o.height||0);"}}if(t.yc){n+="o.y=o.yc-(o.height||0)/2;"}return n}function TW(t){return(t+"").toLowerCase()}function $W(t){return TW(t)==="operator"}function DW(t){return TW(t)==="collect"}function AW(t,e,n){if(!n.endsWith(";")){n="return("+n+");"}const i=Function(...e.concat(n));return t&&t.functions?i.bind(t.functions):i}function NW(t,e,n,i){return`((u = ${t}) < (v = ${e}) || u == null) && v != null ? ${n}\n : (u > v || v == null) && u != null ? ${i}\n : ((v = v instanceof Date ? +v : v), (u = u instanceof Date ? +u : u)) !== u && v === v ? ${n}\n : v !== v && u === u ? ${i} : `}var zW={operator:(t,e)=>AW(t,["_"],e.code),parameter:(t,e)=>AW(t,["datum","_"],e.code),event:(t,e)=>AW(t,["event"],e.code),handler:(t,e)=>{const n=`var datum=event.item&&event.item.datum;return ${e.code};`;return AW(t,["_","event"],n)},encode:(t,e)=>{const{marktype:n,channels:i}=e;let r="var o=item,datum=o.datum,m=0,$;";for(const o in i){const t="o["+(0,m.m8)(o)+"]";r+=`$=${i[o].code};if(${t}!==$)${t}=$,m=1;`}r+=EW(i,n);r+="return m;";return AW(t,["item","_"],r)},codegen:{get(t){const e=`[${t.map(m.m8).join("][")}]`;const n=Function("_",`return _${e};`);n.path=e;return n},comparator(t,e){let n;const i=(t,i)=>{const r=e[i];let o,s;if(t.path){o=`a${t.path}`;s=`b${t.path}`}else{(n=n||{})["f"+i]=t;o=`this.f${i}(a)`;s=`this.f${i}(b)`}return NW(o,s,-r,r)};const r=Function("a","b","var u, v; return "+t.map(i).join("")+"0;");return n?r.bind(n):r}}};function RW(t){const e=this;if($W(t.type)||!t.type){e.operator(t,t.update?e.operatorExpression(t.update):null)}else{e.transform(t,t.type)}}function CW(t){const e=this;if(t.params){const n=e.get(t.id);if(!n)(0,m.vU)("Invalid operator id: "+t.id);e.dataflow.connect(n,n.parameters(e.parseParameters(t.params),t.react,t.initonly))}}function OW(t,e){e=e||{};const n=this;for(const i in t){const r=t[i];e[i]=(0,m.kJ)(r)?r.map((t=>UW(t,n,e))):UW(r,n,e)}return e}function UW(t,e,n){if(!t||!(0,m.Kn)(t))return t;for(let i=0,r=PW.length,o;it&&t.$tupleid?bo:t));return e.fn[n]||(e.fn[n]=(0,m.qu)(i,t.$order,e.expr.codegen))}function WW(t,e){const n=t.$encode,i={};for(const r in n){const t=n[r];i[r]=(0,m.ZE)(e.encodeExpression(t.$expr),t.$fields);i[r].output=t.$output}return i}function XW(t,e){return e}function HW(t,e){const n=t.$subflow;return function(t,i,r){const o=e.fork().parse(n),s=o.get(n.operators[0].id),a=o.signals.parent;if(a)a.set(r);s.detachSubflow=()=>e.detach(o);return s}}function BW(){return bo}function YW(t){var e=this,n=t.filter!=null?e.eventExpression(t.filter):undefined,i=t.stream!=null?e.get(t.stream):undefined,r;if(t.source){i=e.events(t.source,t.type,n)}else if(t.merge){r=t.merge.map((t=>e.get(t)));i=r[0].merge.apply(r[0],r.slice(1))}if(t.between){r=t.between.map((t=>e.get(t)));i=i.between(r[0],r[1])}if(t.filter){i=i.filter(n)}if(t.throttle!=null){i=i.throttle(+t.throttle)}if(t.debounce!=null){i=i.debounce(+t.debounce)}if(i==null){(0,m.vU)("Invalid stream definition: "+JSON.stringify(t))}if(t.consume)i.consume(true);e.stream(t,i)}function JW(t){var e=this,n=(0,m.Kn)(n=t.source)?n.$ref:n,i=e.get(n),r=null,o=t.update,s=undefined;if(!i)(0,m.vU)("Source not defined: "+t.source);r=t.target&&t.target.$expr?e.eventExpression(t.target.$expr):e.get(t.target);if(o&&o.$expr){if(o.$params){s=e.parseParameters(o.$params)}o=e.handlerExpression(o.$expr)}e.update(t,i,r,o,s)}const GW={skip:true};function VW(t){var e=this,n={};if(t.signals){var i=n.signals={};Object.keys(e.signals).forEach((n=>{const r=e.signals[n];if(t.signals(n,r)){i[n]=r.value}}))}if(t.data){var r=n.data={};Object.keys(e.data).forEach((n=>{const i=e.data[n];if(t.data(n,i)){r[n]=i.input.value}}))}if(e.subcontext&&t.recurse!==false){n.subcontext=e.subcontext.map((e=>e.getState(t)))}return n}function KW(t){var e=this,n=e.dataflow,i=t.data,r=t.signals;Object.keys(r||{}).forEach((t=>{n.update(e.signals[t],r[t],GW)}));Object.keys(i||{}).forEach((t=>{n.pulse(e.data[t].input,n.changeset().remove(m.yb).insert(i[t]))}));(t.subcontext||[]).forEach(((t,n)=>{const i=e.subcontext[n];if(i)i.setState(t)}))}function ZW(t,e,n,i){return new QW(t,e,n,i)}function QW(t,e,n,i){this.dataflow=t;this.transforms=e;this.events=t.events.bind(t);this.expr=i||zW,this.signals={};this.scales={};this.nodes={};this.data={};this.fn={};if(n){this.functions=Object.create(n);this.functions.context=this}}function tX(t){this.dataflow=t.dataflow;this.transforms=t.transforms;this.events=t.events;this.expr=t.expr;this.signals=Object.create(t.signals);this.scales=Object.create(t.scales);this.nodes=Object.create(t.nodes);this.data=Object.create(t.data);this.fn=Object.create(t.fn);if(t.functions){this.functions=Object.create(t.functions);this.functions.context=this}}QW.prototype=tX.prototype={fork(){const t=new tX(this);(this.subcontext||(this.subcontext=[])).push(t);return t},detach(t){this.subcontext=this.subcontext.filter((e=>e!==t));const e=Object.keys(t.nodes);for(const n of e)t.nodes[n]._targets=null;for(const n of e)t.nodes[n].detach();t.nodes=null},get(t){return this.nodes[t]},set(t,e){return this.nodes[t]=e},add(t,e){const n=this,i=n.dataflow,r=t.value;n.set(t.id,e);if(DW(t.type)&&r){if(r.$ingest){i.ingest(e,r.$ingest,r.$format)}else if(r.$request){i.preload(e,r.$request,r.$format)}else{i.pulse(e,i.changeset().insert(r))}}if(t.root){n.root=e}if(t.parent){let r=n.get(t.parent.$ref);if(r){i.connect(r,[e]);e.targets().add(r)}else{(n.unresolved=n.unresolved||[]).push((()=>{r=n.get(t.parent.$ref);i.connect(r,[e]);e.targets().add(r)}))}}if(t.signal){n.signals[t.signal]=e}if(t.scale){n.scales[t.scale]=e}if(t.data){for(const i in t.data){const r=n.data[i]||(n.data[i]={});t.data[i].forEach((t=>r[t]=e))}}},resolve(){(this.unresolved||[]).forEach((t=>t()));delete this.unresolved;return this},operator(t,e){this.add(t,this.dataflow.add(t.value,e))},transform(t,e){this.add(t,this.dataflow.add(this.transforms[TW(e)]))},stream(t,e){this.set(t.id,e)},update(t,e,n,i,r){this.dataflow.on(e,n,i,r,t.options)},operatorExpression(t){return this.expr.operator(this,t)},parameterExpression(t){return this.expr.parameter(this,t)},eventExpression(t){return this.expr.event(this,t)},handlerExpression(t){return this.expr.handler(this,t)},encodeExpression(t){return this.expr.encode(this,t)},parse:kW,parseOperator:RW,parseOperatorParameters:CW,parseParameters:OW,parseStream:YW,parseUpdate:JW,getState:VW,setState:KW};function eX(t,e,n){var i=new Bz,r=e;if(e==null)return i.restart(t,e,n),i;i._restart=i.restart;i.restart=function(t,e,n){e=+e,n=n==null?Xz():+n;i._restart((function o(s){s+=r;i._restart(o,r+=e,n);t(s)}),e,n)};i.restart(t,e,n);return i}function nX(t){const e=t.container();if(e){e.setAttribute("role","graphics-document");e.setAttribute("aria-roleDescription","visualization");iX(e,t.description())}}function iX(t,e){if(t)e==null?t.removeAttribute("aria-label"):t.setAttribute("aria-label",e)}function rX(t){t.add(null,(e=>{t._background=e.bg;t._resize=1;return e.bg}),{bg:t._signals.background})}const oX="default";function sX(t){const e=t._signals.cursor||(t._signals.cursor=t.add({user:oX,item:null}));t.on(t.events("view","mousemove"),e,((t,n)=>{const i=e.value,r=i?(0,m.HD)(i)?i:i.user:oX,o=n.item&&n.item.cursor||null;return i&&r===i.user&&o==i.item?i:{user:r,item:o}}));t.add(null,(function(e){let n=e.cursor,i=this.value;if(!(0,m.HD)(n)){i=n.item;n=n.user}aX(t,n&&n!==oX?n:i||n);return i}),{cursor:e})}function aX(t,e){const n=t.globalCursor()?typeof document!=="undefined"&&document.body:t.container();if(n){return e==null?n.style.removeProperty("cursor"):n.style.cursor=e}}function lX(t,e){var n=t._runtime.data;if(!(0,m.nr)(n,e)){(0,m.vU)("Unrecognized data set: "+e)}return n[e]}function uX(t,e){return arguments.length<2?lX(this,t).values.value:cX.call(this,t,Do().remove(m.yb).insert(e))}function cX(t,e){if(!$o(e)){(0,m.vU)("Second argument to changes must be a changeset.")}const n=lX(this,t);n.modified=true;return this.pulse(n.input,e)}function fX(t,e){return cX.call(this,t,Do().insert(e))}function hX(t,e){return cX.call(this,t,Do().remove(e))}function dX(t){var e=t.padding();return Math.max(0,t._viewWidth+e.left+e.right)}function pX(t){var e=t.padding();return Math.max(0,t._viewHeight+e.top+e.bottom)}function mX(t){var e=t.padding(),n=t._origin;return[e.left+n[0],e.top+n[1]]}function gX(t){var e=mX(t),n=dX(t),i=pX(t);t._renderer.background(t.background());t._renderer.resize(n,i,e);t._handler.origin(e);t._resizeListeners.forEach((e=>{try{e(n,i)}catch(r){t.error(r)}}))}function yX(t,e,n){var i=t._renderer,r=i&&i.canvas(),o,s,a;if(r){a=mX(t);s=e.changedTouches?e.changedTouches[0]:e;o=Kb(s,r);o[0]-=a[0];o[1]-=a[1]}e.dataflow=t;e.item=n;e.vega=vX(t,n,o);return e}function vX(t,e,n){const i=e?e.mark.marktype==="group"?e:e.mark.group:null;function r(t){var n=i,r;if(t)for(r=e;r;r=r.mark.group){if(r.mark.name===t){n=r;break}}return n&&n.mark&&n.mark.interactive?n:{}}function o(t){if(!t)return n;if((0,m.HD)(t))t=r(t);const e=n.slice();while(t){e[0]-=t.x||0;e[1]-=t.y||0;t=t.mark&&t.mark.group}return e}return{view:(0,m.a9)(t),item:(0,m.a9)(e||{}),group:r,xy:o,x:t=>o(t)[0],y:t=>o(t)[1]}}const _X="view",xX="timer",bX="window",wX={trap:false};function kX(t){const e=(0,m.l7)({defaults:{}},t);const n=(t,e)=>{e.forEach((e=>{if((0,m.kJ)(t[e]))t[e]=(0,m.Rg)(t[e])}))};n(e.defaults,["prevent","allow"]);n(e,["view","window","selector"]);return e}function MX(t,e,n,i){t._eventListeners.push({type:n,sources:(0,m.IX)(e),handler:i})}function SX(t,e){var n=t._eventConfig.defaults,i=n.prevent,r=n.allow;return i===false||r===true?false:i===true||r===false?true:i?i[e]:r?!r[e]:t.preventDefault()}function EX(t,e,n){const i=t._eventConfig&&t._eventConfig[e];if(i===false||(0,m.Kn)(i)&&!i[n]){t.warn(`Blocked ${e} ${n} event listener.`);return false}return true}function TX(t,e,n){var i=this,r=new jo(n),o=function(n,o){i.runAsync(null,(()=>{if(t===_X&&SX(i,e)){n.preventDefault()}r.receive(yX(i,n,o))}))},s;if(t===xX){if(EX(i,"timer",e)){i.timer(o,e)}}else if(t===_X){if(EX(i,"view",e)){i.addEventListener(e,o,wX)}}else{if(t===bX){if(EX(i,"window",e)&&typeof window!=="undefined"){s=[window]}}else if(typeof document!=="undefined"){if(EX(i,"selector",e)){s=Array.from(document.querySelectorAll(t))}}if(!s){i.warn("Can not resolve event source: "+t)}else{for(var a=0,l=s.length;a=0){e[i].stop()}i=n.length;while(--i>=0){o=n[i];r=o.sources.length;while(--r>=0){o.sources[r].removeEventListener(o.type,o.handler)}}if(t){t.call(this,this._handler,null,null,null)}return this}function RX(t,e,n){const i=document.createElement(t);for(const r in e)i.setAttribute(r,e[r]);if(n!=null)i.textContent=n;return i}const CX="vega-bind",OX="vega-bind-name",UX="vega-bind-radio";function PX(t,e,n){if(!e)return;const i=n.param;let r=n.state;if(!r){r=n.state={elements:null,active:false,set:null,update:e=>{if(e!=t.signal(i.signal)){t.runAsync(null,(()=>{r.source=true;t.signal(i.signal,e)}))}}};if(i.debounce){r.update=(0,m.Ds)(i.debounce,r.update)}}const o=i.input==null&&i.element?IX:LX;o(r,e,i,t);if(!r.active){t.on(t._signals[i.signal],null,(()=>{r.source?r.source=false:r.set(t.signal(i.signal))}));r.active=true}return r}function IX(t,e,n,i){const r=n.event||"input";const o=()=>t.update(e.value);i.signal(n.signal,e.value);e.addEventListener(r,o);MX(i,e,r,o);t.set=t=>{e.value=t;e.dispatchEvent(qX(r))}}function qX(t){return typeof Event!=="undefined"?new Event(t):{type:t}}function LX(t,e,n,i){const r=i.signal(n.signal);const o=RX("div",{class:CX});const s=n.input==="radio"?o:o.appendChild(RX("label"));s.appendChild(RX("span",{class:OX},n.name||n.signal));e.appendChild(o);let a=FX;switch(n.input){case"checkbox":a=jX;break;case"select":a=WX;break;case"radio":a=XX;break;case"range":a=HX;break}a(t,s,n,r)}function FX(t,e,n,i){const r=RX("input");for(const o in n){if(o!=="signal"&&o!=="element"){r.setAttribute(o==="input"?"type":o,n[o])}}r.setAttribute("name",n.signal);r.value=i;e.appendChild(r);r.addEventListener("input",(()=>t.update(r.value)));t.elements=[r];t.set=t=>r.value=t}function jX(t,e,n,i){const r={type:"checkbox",name:n.signal};if(i)r.checked=true;const o=RX("input",r);e.appendChild(o);o.addEventListener("change",(()=>t.update(o.checked)));t.elements=[o];t.set=t=>o.checked=!!t||null}function WX(t,e,n,i){const r=RX("select",{name:n.signal}),o=n.labels||[];n.options.forEach(((t,e)=>{const n={value:t};if(BX(t,i))n.selected=true;r.appendChild(RX("option",n,(o[e]||t)+""))}));e.appendChild(r);r.addEventListener("change",(()=>{t.update(n.options[r.selectedIndex])}));t.elements=[r];t.set=t=>{for(let e=0,i=n.options.length;e{const a={type:"radio",name:n.signal,value:e};if(BX(e,i))a.checked=true;const l=RX("input",a);l.addEventListener("change",(()=>t.update(e)));const u=RX("label",{},(o[s]||e)+"");u.prepend(l);r.appendChild(u);return l}));t.set=e=>{const n=t.elements,i=n.length;for(let t=0;t{l.textContent=a.value;t.update(+a.value)};a.addEventListener("input",u);a.addEventListener("change",u);t.elements=[a];t.set=t=>{a.value=t;l.textContent=t}}function BX(t,e){return t===e||t+""===e+""}function YX(t,e,n,i,r,o){e=e||new i(t.loader());return e.initialize(n,dX(t),pX(t),mX(t),r,o).background(t.background())}function JX(t,e){return!e?null:function(){try{e.apply(this,arguments)}catch(n){t.error(n)}}}function GX(t,e,n,i){const r=new i(t.loader(),JX(t,t.tooltip())).scene(t.scenegraph().root).initialize(n,mX(t),t);if(e){e.handlers().forEach((t=>{r.on(t.type,t.handler)}))}return r}function VX(t,e){const n=this,i=n._renderType,r=n._eventConfig.bind,o=Fk(i);t=n._el=t?KX(n,t,true):null;nX(n);if(!o)n.error("Unrecognized renderer type: "+i);const s=o.handler||Mw,a=t?o.renderer:o.headless;n._renderer=!a?null:YX(n,n._renderer,t,a);n._handler=GX(n,n._handler,t,s);n._redraw=true;if(t&&r!=="none"){e=e?n._elBind=KX(n,e,true):t.appendChild(RX("form",{class:"vega-bindings"}));n._bind.forEach((t=>{if(t.param.element&&r!=="container"){t.element=KX(n,t.param.element,!!t.param.input)}}));n._bind.forEach((t=>{PX(n,t.element||e,t)}))}return n}function KX(t,e,n){if(typeof e==="string"){if(typeof document!=="undefined"){e=document.querySelector(e);if(!e){t.error("Signal bind element not found: "+e);return null}}else{t.error("DOM document instance not found.");return null}}if(e&&n){try{e.textContent=""}catch(i){e=null;t.error(i)}}return e}const ZX=t=>+t||0;const QX=t=>({top:t,bottom:t,left:t,right:t});function tH(t){return(0,m.Kn)(t)?{top:ZX(t.top),bottom:ZX(t.bottom),left:ZX(t.left),right:ZX(t.right)}:QX(ZX(t))}async function eH(t,e,n,i){const r=Fk(e),o=r&&r.headless;if(!o)(0,m.vU)("Unrecognized renderer type: "+e);await t.runAsync();return YX(t,null,null,o,n,i).renderAsync(t._scenegraph.root)}async function nH(t,e){if(t!==qk.Canvas&&t!==qk.SVG&&t!==qk.PNG){(0,m.vU)("Unrecognized image type: "+t)}const n=await eH(this,t,e);return t===qk.SVG?iH(n.svg(),"image/svg+xml"):n.canvas().toDataURL("image/png")}function iH(t,e){const n=new Blob([t],{type:e});return window.URL.createObjectURL(n)}async function rH(t,e){const n=await eH(this,qk.Canvas,t,e);return n.canvas()}async function oH(t){const e=await eH(this,qk.SVG,t);return e.svg()}function sH(t,e,n){return ZW(t,Ps,dW,n).parse(e)}function aH(t){var e=this._runtime.scales;if(!(0,m.nr)(e,t)){(0,m.vU)("Unrecognized scale or projection: "+t)}return e[t].value}var lH="width",uH="height",cH="padding",fH={skip:true};function hH(t,e){var n=t.autosize(),i=t.padding();return e-(n&&n.contains===cH?i.left+i.right:0)}function dH(t,e){var n=t.autosize(),i=t.padding();return e-(n&&n.contains===cH?i.top+i.bottom:0)}function pH(t){var e=t._signals,n=e[lH],i=e[uH],r=e[cH];function o(){t._autosize=t._resize=1}t._resizeWidth=t.add(null,(e=>{t._width=e.size;t._viewWidth=hH(t,e.size);o()}),{size:n});t._resizeHeight=t.add(null,(e=>{t._height=e.size;t._viewHeight=dH(t,e.size);o()}),{size:i});const s=t.add(null,o,{pad:r});t._resizeWidth.rank=n.rank+1;t._resizeHeight.rank=i.rank+1;s.rank=r.rank+1}function mH(t,e,n,i,r,o){this.runAfter((s=>{let a=0;s._autosize=0;if(s.width()!==n){a=1;s.signal(lH,n,fH);s._resizeWidth.skip(true)}if(s.height()!==i){a=1;s.signal(uH,i,fH);s._resizeHeight.skip(true)}if(s._viewWidth!==t){s._resize=1;s._viewWidth=t}if(s._viewHeight!==e){s._resize=1;s._viewHeight=e}if(s._origin[0]!==r[0]||s._origin[1]!==r[1]){s._resize=1;s._origin=r}if(a)s.run("enter");if(o)s.runAfter((t=>t.resize()))}),false,1)}function gH(t){return this._runtime.getState(t||{data:yH,signals:vH,recurse:true})}function yH(t,e){return e.modified&&(0,m.kJ)(e.input.value)&&t.indexOf("_:vega:_")}function vH(t,e){return!(t==="parent"||e instanceof Ps.proxy)}function _H(t){this.runAsync(null,(e=>{e._trigger=false;e._runtime.setState(t)}),(t=>{t._trigger=true}));return this}function xH(t,e){function n(e){t({timestamp:Date.now(),elapsed:e})}this._timers.push(eX(n,e))}function bH(t,e,n,i){const r=t.element();if(r)r.setAttribute("title",wH(i))}function wH(t){return t==null?"":(0,m.kJ)(t)?MH(t):(0,m.Kn)(t)&&!(0,m.J_)(t)?kH(t):t+""}function kH(t){return Object.keys(t).map((e=>{const n=t[e];return e+": "+((0,m.kJ)(n)?MH(n):SH(n))})).join("\n")}function MH(t){return"["+t.map(SH).join(", ")+"]"}function SH(t){return(0,m.kJ)(t)?"[…]":(0,m.Kn)(t)&&!(0,m.J_)(t)?"{…}":t}function EH(t,e){const n=this;e=e||{};Cs.call(n);if(e.loader)n.loader(e.loader);if(e.logger)n.logger(e.logger);if(e.logLevel!=null)n.logLevel(e.logLevel);if(e.locale||t.locale){const i=(0,m.l7)({},t.locale,e.locale);n.locale(zr(i.number,i.time))}n._el=null;n._elBind=null;n._renderType=e.renderer||qk.Canvas;n._scenegraph=new Xb;const i=n._scenegraph.root;n._renderer=null;n._tooltip=e.tooltip||bH,n._redraw=true;n._handler=(new Mw).scene(i);n._globalCursor=false;n._preventDefault=false;n._timers=[];n._eventListeners=[];n._resizeListeners=[];n._eventConfig=kX(t.eventConfig);n.globalCursor(n._eventConfig.globalCursor);const r=sH(n,t,e.expr);n._runtime=r;n._signals=r.signals;n._bind=(t.bindings||[]).map((t=>({state:null,param:(0,m.l7)({},t)})));if(r.root)r.root.set(i);i.source=r.data.root.input;n.pulse(r.data.root.input,n.changeset().insert(i.items));n._width=n.width();n._height=n.height();n._viewWidth=hH(n,n._width);n._viewHeight=dH(n,n._height);n._origin=[0,0];n._resize=0;n._autosize=1;pH(n);rX(n);sX(n);n.description(t.description);if(e.hover)n.hover();if(e.container)n.initialize(e.container,e.bind)}function TH(t,e){return(0,m.nr)(t._signals,e)?t._signals[e]:(0,m.vU)("Unrecognized signal name: "+(0,m.m8)(e))}function $H(t,e){const n=(t._targets||[]).filter((t=>t._update&&t._update.handler===e));return n.length?n[0]:null}function DH(t,e,n,i){let r=$H(n,i);if(!r){r=JX(t,(()=>i(e,n.value)));r.handler=i;t.on(n,null,r)}return t}function AH(t,e,n){const i=$H(e,n);if(i)e._targets.remove(i);return t}(0,m.XW)(EH,Cs,{async evaluate(t,e,n){await Cs.prototype.evaluate.call(this,t,e);if(this._redraw||this._resize){try{if(this._renderer){if(this._resize){this._resize=0;gX(this)}await this._renderer.renderAsync(this._scenegraph.root)}this._redraw=false}catch(i){this.error(i)}}if(n)yo(this,n);return this},dirty(t){this._redraw=true;this._renderer&&this._renderer.dirty(t)},description(t){if(arguments.length){const e=t!=null?t+"":null;if(e!==this._desc)iX(this._el,this._desc=e);return this}return this._desc},container(){return this._el},scenegraph(){return this._scenegraph},origin(){return this._origin.slice()},signal(t,e,n){const i=TH(this,t);return arguments.length===1?i.value:this.update(i,e,n)},width(t){return arguments.length?this.signal("width",t):this.signal("width")},height(t){return arguments.length?this.signal("height",t):this.signal("height")},padding(t){return arguments.length?this.signal("padding",tH(t)):tH(this.signal("padding"))},autosize(t){return arguments.length?this.signal("autosize",t):this.signal("autosize")},background(t){return arguments.length?this.signal("background",t):this.signal("background")},renderer(t){if(!arguments.length)return this._renderType;if(!Fk(t))(0,m.vU)("Unrecognized renderer type: "+t);if(t!==this._renderType){this._renderType=t;this._resetRenderer()}return this},tooltip(t){if(!arguments.length)return this._tooltip;if(t!==this._tooltip){this._tooltip=t;this._resetRenderer()}return this},loader(t){if(!arguments.length)return this._loader;if(t!==this._loader){Cs.prototype.loader.call(this,t);this._resetRenderer()}return this},resize(){this._autosize=1;return this.touch(TH(this,"autosize"))},_resetRenderer(){if(this._renderer){this._renderer=null;this.initialize(this._el,this._elBind)}},_resizeView:mH,addEventListener(t,e,n){let i=e;if(!(n&&n.trap===false)){i=JX(this,e);i.raw=e}this._handler.on(t,i);return this},removeEventListener(t,e){var n=this._handler.handlers(t),i=n.length,r,o;while(--i>=0){o=n[i].type;r=n[i].handler;if(t===o&&(e===r||e===r.raw)){this._handler.off(o,r);break}}return this},addResizeListener(t){const e=this._resizeListeners;if(e.indexOf(t)<0){e.push(t)}return this},removeResizeListener(t){var e=this._resizeListeners,n=e.indexOf(t);if(n>=0){e.splice(n,1)}return this},addSignalListener(t,e){return DH(this,t,TH(this,t),e)},removeSignalListener(t,e){return AH(this,TH(this,t),e)},addDataListener(t,e){return DH(this,t,lX(this,t).values,e)},removeDataListener(t,e){return AH(this,lX(this,t).values,e)},globalCursor(t){if(arguments.length){if(this._globalCursor!==!!t){const e=aX(this,null);this._globalCursor=!!t;if(e)aX(this,e)}return this}else{return this._globalCursor}},preventDefault(t){if(arguments.length){this._preventDefault=t;return this}else{return this._preventDefault}},timer:xH,events:TX,finalize:zX,hover:NX,data:uX,change:cX,insert:fX,remove:hX,scale:aH,initialize:VX,toImageURL:nH,toCanvas:rH,toSVG:oH,getState:gH,setState:_H});var NH=n(83082);function zH(t){return(0,m.Kn)(t)?t:{type:t||"pad"}}const RH=t=>+t||0;const CH=t=>({top:t,bottom:t,left:t,right:t});function OH(t){return!(0,m.Kn)(t)?CH(RH(t)):t.signal?t:{top:RH(t.top),bottom:RH(t.bottom),left:RH(t.left),right:RH(t.right)}}const UH=t=>(0,m.Kn)(t)&&!(0,m.kJ)(t)?(0,m.l7)({},t):{value:t};function PH(t,e,n,i){if(n!=null){const r=(0,m.Kn)(n)&&!(0,m.kJ)(n)||(0,m.kJ)(n)&&n.length&&(0,m.Kn)(n[0]);if(r){t.update[e]=n}else{t[i||"enter"][e]={value:n}}return 1}else{return 0}}function IH(t,e,n){for(const i in e){PH(t,i,e[i])}for(const i in n){PH(t,i,n[i],"update")}}function qH(t,e,n){for(const i in e){if(n&&(0,m.nr)(n,i))continue;t[i]=(0,m.l7)(t[i]||{},e[i])}return t}function LH(t,e){return e&&(e.enter&&e.enter[t]||e.update&&e.update[t])}const FH="mark";const jH="frame";const WH="scope";const XH="axis";const HH="axis-domain";const BH="axis-grid";const YH="axis-label";const JH="axis-tick";const GH="axis-title";const VH="legend";const KH="legend-band";const ZH="legend-entry";const QH="legend-gradient";const tB="legend-label";const eB="legend-symbol";const nB="legend-title";const iB="title";const rB="title-text";const oB="title-subtitle";function sB(t,e,n,i,r){const o={},s={};let a,l,u,c;l="lineBreak";if(e==="text"&&r[l]!=null&&!LH(l,t)){aB(o,l,r[l])}if(n=="legend"||String(n).startsWith("axis")){n=null}c=n===jH?r.group:n===FH?(0,m.l7)({},r.mark,r[e]):null;for(l in c){u=LH(l,t)||(l==="fill"||l==="stroke")&&(LH("fill",t)||LH("stroke",t));if(!u)aB(o,l,c[l])}(0,m.IX)(i).forEach((e=>{const n=r.style&&r.style[e];for(const i in n){if(!LH(i,t)){aB(o,i,n[i])}}}));t=(0,m.l7)({},t);for(l in o){c=o[l];if(c.signal){(a=a||{})[l]=c}else{s[l]=c}}t.enter=(0,m.l7)(s,t.enter);if(a)t.update=(0,m.l7)(a,t.update);return t}function aB(t,e,n){t[e]=n&&n.signal?{signal:n.signal}:{value:n}}const lB=t=>(0,m.HD)(t)?(0,m.m8)(t):t.signal?`(${t.signal})`:pB(t);function uB(t){if(t.gradient!=null){return hB(t)}let e=t.signal?`(${t.signal})`:t.color?fB(t.color):t.field!=null?pB(t.field):t.value!==undefined?(0,m.m8)(t.value):undefined;if(t.scale!=null){e=gB(t,e)}if(e===undefined){e=null}if(t.exponent!=null){e=`pow(${e},${dB(t.exponent)})`}if(t.mult!=null){e+=`*${dB(t.mult)}`}if(t.offset!=null){e+=`+${dB(t.offset)}`}if(t.round){e=`round(${e})`}return e}const cB=(t,e,n,i)=>`(${t}(${[e,n,i].map(uB).join(",")})+'')`;function fB(t){return t.c?cB("hcl",t.h,t.c,t.l):t.h||t.s?cB("hsl",t.h,t.s,t.l):t.l||t.a?cB("lab",t.l,t.a,t.b):t.r||t.g||t.b?cB("rgb",t.r,t.g,t.b):null}function hB(t){const e=[t.start,t.stop,t.count].map((t=>t==null?null:(0,m.m8)(t)));while(e.length&&(0,m.fj)(e)==null)e.pop();e.unshift(lB(t.gradient));return`gradient(${e.join(",")})`}function dB(t){return(0,m.Kn)(t)?"("+uB(t)+")":t}function pB(t){return mB((0,m.Kn)(t)?t:{datum:t})}function mB(t){let e,n,i;if(t.signal){e="datum";i=t.signal}else if(t.group||t.parent){n=Math.max(1,t.level||1);e="item";while(n-- >0){e+=".mark.group"}if(t.parent){i=t.parent;e+=".datum"}else{i=t.group}}else if(t.datum){e="datum";i=t.datum}else{(0,m.vU)("Invalid field reference: "+(0,m.m8)(t))}if(!t.signal){i=(0,m.HD)(i)?(0,m._k)(i).map(m.m8).join("]["):mB(i)}return e+"["+i+"]"}function gB(t,e){const n=lB(t.scale);if(t.range!=null){e=`lerp(_range(${n}), ${+t.range})`}else{if(e!==undefined)e=`_scale(${n}, ${e})`;if(t.band){e=(e?e+"+":"")+`_bandwidth(${n})`+(+t.band===1?"":"*"+dB(t.band));if(t.extra){e=`(datum.extra ? _scale(${n}, datum.extra.value) : ${e})`}}if(e==null)e="0"}return e}function yB(t){let e="";t.forEach((t=>{const n=uB(t);e+=t.test?`(${t.test})?${n}:`:n}));if((0,m.fj)(e)===":"){e+="null"}return e}function vB(t,e,n,i,r,o){const s={};o=o||{};o.encoders={$encode:s};t=sB(t,e,n,i,r.config);for(const a in t){s[a]=_B(t[a],e,o,r)}return o}function _B(t,e,n,i){const r={},o={};for(const s in t){if(t[s]!=null){r[s]=bB(xB(t[s]),i,n,o)}}return{$expr:{marktype:e,channels:r},$fields:Object.keys(o),$output:Object.keys(t)}}function xB(t){return(0,m.kJ)(t)?yB(t):uB(t)}function bB(t,e,n,i){const r=wW(t,e);r.$fields.forEach((t=>i[t]=1));(0,m.l7)(n,r.$params);return r.$expr}const wB="outer",kB=["value","update","init","react","bind"];function MB(t,e){(0,m.vU)(t+' for "outer" push: '+(0,m.m8)(e))}function SB(t,e){const n=t.name;if(t.push===wB){if(!e.signals[n])MB("No prior signal definition",n);kB.forEach((e=>{if(t[e]!==undefined)MB("Invalid property ",e)}))}else{const i=e.addSignal(n,t.value);if(t.react===false)i.react=false;if(t.bind)e.addBinding(n,t.bind)}}function EB(t,e,n,i){this.id=-1;this.type=t;this.value=e;this.params=n;if(i)this.parent=i}function TB(t,e,n,i){return new EB(t,e,n,i)}function $B(t,e){return TB("operator",t,e)}function DB(t){const e={$ref:t.id};if(t.id<0)(t.refs=t.refs||[]).push(e);return e}function AB(t,e){return e?{$field:t,$name:e}:{$field:t}}const NB=AB("key");function zB(t,e){return{$compare:t,$order:e}}function RB(t,e){const n={$key:t};if(e)n.$flat=true;return n}const CB="ascending";const OB="descending";function UB(t){return!(0,m.Kn)(t)?"":(t.order===OB?"-":"+")+PB(t.op,t.field)}function PB(t,e){return(t&&t.signal?"$"+t.signal:t||"")+(t&&e?"_":"")+(e&&e.signal?"$"+e.signal:e||"")}const IB="scope";const qB="view";function LB(t){return t&&t.signal}function FB(t){return t&&t.expr}function jB(t){if(LB(t))return true;if((0,m.Kn)(t))for(const e in t){if(jB(t[e]))return true}return false}function WB(t,e){return t!=null?t:e}function XB(t){return t&&t.signal||t}const HB="timer";function BB(t,e){const n=t.merge?JB:t.stream?GB:t.type?VB:(0,m.vU)("Invalid stream specification: "+(0,m.m8)(t));return n(t,e)}function YB(t){return t===IB?qB:t||qB}function JB(t,e){const n=t.merge.map((t=>BB(t,e))),i=KB({merge:n},t,e);return e.addStream(i).id}function GB(t,e){const n=BB(t.stream,e),i=KB({stream:n},t,e);return e.addStream(i).id}function VB(t,e){let n;if(t.type===HB){n=e.event(HB,t.throttle);t={between:t.between,filter:t.filter}}else{n=e.event(YB(t.source),t.type)}const i=KB({stream:n},t,e);return Object.keys(i).length===1?n:e.addStream(i).id}function KB(t,e,n){let i=e.between;if(i){if(i.length!==2){(0,m.vU)('Stream "between" parameter must have 2 entries: '+(0,m.m8)(e))}t.between=[BB(i[0],n),BB(i[1],n)]}i=e.filter?[].concat(e.filter):[];if(e.marktype||e.markname||e.markrole){i.push(ZB(e.marktype,e.markname,e.markrole))}if(e.source===IB){i.push("inScope(event.item)")}if(i.length){t.filter=wW("("+i.join(")&&(")+")",n).$expr}if((i=e.throttle)!=null){t.throttle=+i}if((i=e.debounce)!=null){t.debounce=+i}if(e.consume){t.consume=true}return t}function ZB(t,e,n){const i="event.item";return i+(t&&t!=="*"?"&&"+i+".mark.marktype==='"+t+"'":"")+(n?"&&"+i+".mark.role==='"+n+"'":"")+(e?"&&"+i+".mark.name==='"+e+"'":"")}const QB={code:"_.$value",ast:{type:"Identifier",value:"value"}};function tY(t,e,n){const i=t.encode,r={target:n};let o=t.events,s=t.update,a=[];if(!o){(0,m.vU)("Signal update missing events specification.")}if((0,m.HD)(o)){o=(0,NH.r)(o,e.isSubscope()?IB:qB)}o=(0,m.IX)(o).filter((t=>t.signal||t.scale?(a.push(t),0):1));if(a.length>1){a=[nY(a)]}if(o.length){a.push(o.length>1?{merge:o}:o[0])}if(i!=null){if(s)(0,m.vU)("Signal encode and update are mutually exclusive.");s="encode(item(),"+(0,m.m8)(i)+")"}r.update=(0,m.HD)(s)?wW(s,e):s.expr!=null?wW(s.expr,e):s.value!=null?s.value:s.signal!=null?{$expr:QB,$params:{$value:e.signalRef(s.signal)}}:(0,m.vU)("Invalid signal update specification.");if(t.force){r.options={force:true}}a.forEach((t=>e.addUpdate((0,m.l7)(eY(t,e),r))))}function eY(t,e){return{source:t.signal?e.signalRef(t.signal):t.scale?e.scaleRef(t.scale):BB(t,e)}}function nY(t){return{signal:"["+t.map((t=>t.scale?'scale("'+t.scale+'")':t.signal))+"]"}}function iY(t,e){const n=e.getSignal(t.name);let i=t.update;if(t.init){if(i){(0,m.vU)("Signals can not include both init and update expressions.")}else{i=t.init;n.initonly=true}}if(i){i=wW(i,e);n.update=i.$expr;n.params=i.$params}if(t.on){t.on.forEach((t=>tY(t,e,n.id)))}}const rY=t=>(e,n,i)=>TB(t,n,e||undefined,i);const oY=rY("aggregate");const sY=rY("axisticks");const aY=rY("bound");const lY=rY("collect");const uY=rY("compare");const cY=rY("datajoin");const fY=rY("encode");const hY=rY("expression");const dY=rY("facet");const pY=rY("field");const mY=rY("key");const gY=rY("legendentries");const yY=rY("load");const vY=rY("mark");const _Y=rY("multiextent");const xY=rY("multivalues");const bY=rY("overlap");const wY=rY("params");const kY=rY("prefacet");const MY=rY("projection");const SY=rY("proxy");const EY=rY("relay");const TY=rY("render");const $Y=rY("scale");const DY=rY("sieve");const AY=rY("sortitems");const NY=rY("viewlayout");const zY=rY("values");let RY=0;const CY={min:"min",max:"max",count:"sum"};function OY(t,e){const n=t.type||"linear";if(!Rg(n)){(0,m.vU)("Unrecognized scale type: "+(0,m.m8)(n))}e.addScale(t.name,{type:n,domain:undefined})}function UY(t,e){const n=e.getScale(t.name).params;let i;n.domain=LY(t.domain,t,e);if(t.range!=null){n.range=ZY(t,e,n)}if(t.interpolate!=null){KY(t.interpolate,n)}if(t.nice!=null){n.nice=VY(t.nice)}if(t.bins!=null){n.bins=GY(t.bins,e)}for(i in t){if((0,m.nr)(n,i)||i==="name")continue;n[i]=PY(t[i],e)}}function PY(t,e){return!(0,m.Kn)(t)?t:t.signal?e.signalRef(t.signal):(0,m.vU)("Unsupported object: "+(0,m.m8)(t))}function IY(t,e){return t.signal?e.signalRef(t.signal):t.map((t=>PY(t,e)))}function qY(t){(0,m.vU)("Can not find data set: "+(0,m.m8)(t))}function LY(t,e,n){if(!t){if(e.domainMin!=null||e.domainMax!=null){(0,m.vU)("No scale domain defined for domainMin/domainMax to override.")}return}return t.signal?n.signalRef(t.signal):((0,m.kJ)(t)?FY:t.fields?WY:jY)(t,e,n)}function FY(t,e,n){return t.map((t=>PY(t,n)))}function jY(t,e,n){const i=n.getData(t.data);if(!i)qY(t.data);return Ug(e.type)?i.valuesRef(n,t.field,BY(t.sort,false)):Fg(e.type)?i.domainRef(n,t.field):i.extentRef(n,t.field)}function WY(t,e,n){const i=t.data,r=t.fields.reduce(((t,e)=>{e=(0,m.HD)(e)?{data:i,field:e}:(0,m.kJ)(e)||e.signal?XY(e,n):e;t.push(e);return t}),[]);return(Ug(e.type)?HY:Fg(e.type)?YY:JY)(t,n,r)}function XY(t,e){const n="_:vega:_"+RY++,i=lY({});if((0,m.kJ)(t)){i.value={$ingest:t}}else if(t.signal){const r="setdata("+(0,m.m8)(n)+","+t.signal+")";i.params.input=e.signalRef(r)}e.addDataPipeline(n,[i,DY({})]);return{data:n,field:"data"}}function HY(t,e,n){const i=BY(t.sort,true);let r,o;const s=n.map((t=>{const n=e.getData(t.data);if(!n)qY(t.data);return n.countsRef(e,t.field,i)}));const a={groupby:NB,pulse:s};if(i){r=i.op||"count";o=i.field?PB(r,i.field):"count";a.ops=[CY[r]];a.fields=[e.fieldRef(o)];a.as=[o]}r=e.add(oY(a));const l=e.add(lY({pulse:DB(r)}));o=e.add(zY({field:NB,sort:e.sortRef(i),pulse:DB(l)}));return DB(o)}function BY(t,e){if(t){if(!t.field&&!t.op){if((0,m.Kn)(t))t.field="key";else t={field:"key"}}else if(!t.field&&t.op!=="count"){(0,m.vU)("No field provided for sort aggregate op: "+t.op)}else if(e&&t.field){if(t.op&&!CY[t.op]){(0,m.vU)("Multiple domain scales can not be sorted using "+t.op)}}}return t}function YY(t,e,n){const i=n.map((t=>{const n=e.getData(t.data);if(!n)qY(t.data);return n.domainRef(e,t.field)}));return DB(e.add(xY({values:i})))}function JY(t,e,n){const i=n.map((t=>{const n=e.getData(t.data);if(!n)qY(t.data);return n.extentRef(e,t.field)}));return DB(e.add(_Y({extents:i})))}function GY(t,e){return t.signal||(0,m.kJ)(t)?IY(t,e):e.objectProperty(t)}function VY(t){return(0,m.Kn)(t)?{interval:PY(t.interval),step:PY(t.step)}:PY(t)}function KY(t,e){e.interpolate=PY(t.type||t);if(t.gamma!=null){e.interpolateGamma=PY(t.gamma)}}function ZY(t,e,n){const i=e.config.range;let r=t.range;if(r.signal){return e.signalRef(r.signal)}else if((0,m.HD)(r)){if(i&&(0,m.nr)(i,r)){t=(0,m.l7)({},t,{range:i[r]});return ZY(t,e,n)}else if(r==="width"){r=[0,{signal:"width"}]}else if(r==="height"){r=Ug(t.type)?[0,{signal:"height"}]:[{signal:"height"},0]}else{(0,m.vU)("Unrecognized scale range value: "+(0,m.m8)(r))}}else if(r.scheme){n.scheme=(0,m.kJ)(r.scheme)?IY(r.scheme,e):PY(r.scheme,e);if(r.extent)n.schemeExtent=IY(r.extent,e);if(r.count)n.schemeCount=PY(r.count,e);return}else if(r.step){n.rangeStep=PY(r.step,e);return}else if(Ug(t.type)&&!(0,m.kJ)(r)){return LY(r,t,e)}else if(!(0,m.kJ)(r)){(0,m.vU)("Unsupported range type: "+(0,m.m8)(r))}return r.map((t=>((0,m.kJ)(t)?IY:PY)(t,e)))}function QY(t,e){const n=e.config.projection||{},i={};for(const r in t){if(r==="name")continue;i[r]=tJ(t[r],r,e)}for(const r in n){if(i[r]==null){i[r]=tJ(n[r],r,e)}}e.addProjection(t.name,i)}function tJ(t,e,n){return(0,m.kJ)(t)?t.map((t=>tJ(t,e,n))):!(0,m.Kn)(t)?t:t.signal?n.signalRef(t.signal):e==="fit"?t:(0,m.vU)("Unsupported parameter object: "+(0,m.m8)(t))}const eJ="top";const nJ="left";const iJ="right";const rJ="bottom";const oJ="center";const sJ="vertical";const aJ="start";const lJ="middle";const uJ="end";const cJ="index";const fJ="label";const hJ="offset";const dJ="perc";const pJ="perc2";const mJ="value";const gJ="guide-label";const yJ="guide-title";const vJ="group-title";const _J="group-subtitle";const xJ="symbol";const bJ="gradient";const wJ="discrete";const kJ="size";const MJ="shape";const SJ="fill";const EJ="stroke";const TJ="strokeWidth";const $J="strokeDash";const DJ="opacity";const AJ=[kJ,MJ,SJ,EJ,TJ,$J,DJ];const NJ={name:1,style:1,interactive:1};const zJ={value:0};const RJ={value:1};const CJ="group";const OJ="rect";const UJ="rule";const PJ="symbol";const IJ="text";function qJ(t){t.type=CJ;t.interactive=t.interactive||false;return t}function LJ(t,e){const n=(n,i)=>WB(t[n],WB(e[n],i));n.isVertical=n=>sJ===WB(t.direction,e.direction||(n?e.symbolDirection:e.gradientDirection));n.gradientLength=()=>WB(t.gradientLength,e.gradientLength||e.gradientWidth);n.gradientThickness=()=>WB(t.gradientThickness,e.gradientThickness||e.gradientHeight);n.entryColumns=()=>WB(t.columns,WB(e.columns,+n.isVertical(true)));return n}function FJ(t,e){const n=e&&(e.update&&e.update[t]||e.enter&&e.enter[t]);return n&&n.signal?n:n?n.value:null}function jJ(t,e,n){const i=e.config.style[n];return i&&i[t]}function WJ(t,e,n){return`item.anchor === '${aJ}' ? ${t} : item.anchor === '${uJ}' ? ${e} : ${n}`}const XJ=WJ((0,m.m8)(nJ),(0,m.m8)(iJ),(0,m.m8)(oJ));function HJ(t){const e=t("tickBand");let n=t("tickOffset"),i,r;if(!e){i=t("bandPosition");r=t("tickExtra")}else if(e.signal){i={signal:`(${e.signal}) === 'extent' ? 1 : 0.5`};r={signal:`(${e.signal}) === 'extent'`};if(!(0,m.Kn)(n)){n={signal:`(${e.signal}) === 'extent' ? 0 : ${n}`}}}else if(e==="extent"){i=1;r=true;n=0}else{i=.5;r=false}return{extra:r,band:i,offset:n}}function BJ(t,e){return!e?t:!t?e:!(0,m.Kn)(t)?{value:t,offset:e}:Object.assign({},t,{offset:BJ(t.offset,e)})}function YJ(t,e){if(e){t.name=e.name;t.style=e.style||t.style;t.interactive=!!e.interactive;t.encode=qH(t.encode,e,NJ)}else{t.interactive=false}return t}function JJ(t,e,n,i){const r=LJ(t,n),o=r.isVertical(),s=r.gradientThickness(),a=r.gradientLength();let l,u,c,f,h;if(o){u=[0,1];c=[0,0];f=s;h=a}else{u=[0,0];c=[1,0];f=a;h=s}const d={enter:l={opacity:zJ,x:zJ,y:zJ,width:UH(f),height:UH(h)},update:(0,m.l7)({},l,{opacity:RJ,fill:{gradient:e,start:u,stop:c}}),exit:{opacity:zJ}};IH(d,{stroke:r("gradientStrokeColor"),strokeWidth:r("gradientStrokeWidth")},{opacity:r("gradientOpacity")});return YJ({type:OJ,role:QH,encode:d},i)}function GJ(t,e,n,i,r){const o=LJ(t,n),s=o.isVertical(),a=o.gradientThickness(),l=o.gradientLength();let u,c,f,h,d="";s?(u="y",f="y2",c="x",h="width",d="1-"):(u="x",f="x2",c="y",h="height");const p={opacity:zJ,fill:{scale:e,field:mJ}};p[u]={signal:d+"datum."+dJ,mult:l};p[c]=zJ;p[f]={signal:d+"datum."+pJ,mult:l};p[h]=UH(a);const g={enter:p,update:(0,m.l7)({},p,{opacity:RJ}),exit:{opacity:zJ}};IH(g,{stroke:o("gradientStrokeColor"),strokeWidth:o("gradientStrokeWidth")},{opacity:o("gradientOpacity")});return YJ({type:OJ,role:KH,key:mJ,from:r,encode:g},i)}const VJ=`datum.${dJ}<=0?"${nJ}":datum.${dJ}>=1?"${iJ}":"${oJ}"`,KJ=`datum.${dJ}<=0?"${rJ}":datum.${dJ}>=1?"${eJ}":"${lJ}"`;function ZJ(t,e,n,i){const r=LJ(t,e),o=r.isVertical(),s=UH(r.gradientThickness()),a=r.gradientLength();let l=r("labelOverlap"),u,c,f,h,d="";const p={enter:u={opacity:zJ},update:c={opacity:RJ,text:{field:fJ}},exit:{opacity:zJ}};IH(p,{fill:r("labelColor"),fillOpacity:r("labelOpacity"),font:r("labelFont"),fontSize:r("labelFontSize"),fontStyle:r("labelFontStyle"),fontWeight:r("labelFontWeight"),limit:WB(t.labelLimit,e.gradientLabelLimit)});if(o){u.align={value:"left"};u.baseline=c.baseline={signal:KJ};f="y";h="x";d="1-"}else{u.align=c.align={signal:VJ};u.baseline={value:"top"};f="x";h="y"}u[f]=c[f]={signal:d+"datum."+dJ,mult:a};u[h]=c[h]=s;s.offset=WB(t.labelOffset,e.gradientLabelOffset)||0;l=l?{separation:r("labelSeparation"),method:l,order:"datum."+cJ}:undefined;return YJ({type:IJ,role:tB,style:gJ,key:mJ,from:i,encode:p,overlap:l},n)}function QJ(t,e,n,i,r){const o=LJ(t,e),s=n.entries,a=!!(s&&s.interactive),l=s?s.name:undefined,u=o("clipHeight"),c=o("symbolOffset"),f={data:"value"},h=`(${r}) ? datum.${hJ} : datum.${kJ}`,d=u?UH(u):{field:kJ},p=`datum.${cJ}`,m=`max(1, ${r})`;let g,y,v,_,x;d.mult=.5;g={enter:y={opacity:zJ,x:{signal:h,mult:.5,offset:c},y:d},update:v={opacity:RJ,x:y.x,y:y.y},exit:{opacity:zJ}};let b=null,w=null;if(!t.fill){b=e.symbolBaseFillColor;w=e.symbolBaseStrokeColor}IH(g,{fill:o("symbolFillColor",b),shape:o("symbolType"),size:o("symbolSize"),stroke:o("symbolStrokeColor",w),strokeDash:o("symbolDash"),strokeDashOffset:o("symbolDashOffset"),strokeWidth:o("symbolStrokeWidth")},{opacity:o("symbolOpacity")});AJ.forEach((e=>{if(t[e]){v[e]=y[e]={scale:t[e],field:mJ}}}));const k=YJ({type:PJ,role:eB,key:mJ,from:f,clip:u?true:undefined,encode:g},n.symbols);const M=UH(c);M.offset=o("labelOffset");g={enter:y={opacity:zJ,x:{signal:h,offset:M},y:d},update:v={opacity:RJ,text:{field:fJ},x:y.x,y:y.y},exit:{opacity:zJ}};IH(g,{align:o("labelAlign"),baseline:o("labelBaseline"),fill:o("labelColor"),fillOpacity:o("labelOpacity"),font:o("labelFont"),fontSize:o("labelFontSize"),fontStyle:o("labelFontStyle"),fontWeight:o("labelFontWeight"),limit:o("labelLimit")});const S=YJ({type:IJ,role:tB,style:gJ,key:mJ,from:f,encode:g},n.labels);g={enter:{noBound:{value:!u},width:zJ,height:u?UH(u):zJ,opacity:zJ},exit:{opacity:zJ},update:v={opacity:RJ,row:{signal:null},column:{signal:null}}};if(o.isVertical(true)){_=`ceil(item.mark.items.length / ${m})`;v.row.signal=`${p}%${_}`;v.column.signal=`floor(${p} / ${_})`;x={field:["row",p]}}else{v.row.signal=`floor(${p} / ${m})`;v.column.signal=`${p} % ${m}`;x={field:p}}v.column.signal=`(${r})?${v.column.signal}:${p}`;i={facet:{data:i,name:"value",groupby:cJ}};return qJ({role:WH,from:i,encode:qH(g,s,NJ),marks:[k,S],name:l,interactive:a,sort:x})}function tG(t,e){const n=LJ(t,e);return{align:n("gridAlign"),columns:n.entryColumns(),center:{row:true,column:false},padding:{row:n("rowPadding"),column:n("columnPadding")}}}const eG='item.orient === "left"',nG='item.orient === "right"',iG=`(${eG} || ${nG})`,rG=`datum.vgrad && ${iG}`,oG=WJ('"top"','"bottom"','"middle"'),sG=WJ('"right"','"left"','"center"'),aG=`datum.vgrad && ${nG} ? (${sG}) : (${iG} && !(datum.vgrad && ${eG})) ? "left" : ${XJ}`,lG=`item._anchor || (${iG} ? "middle" : "start")`,uG=`${rG} ? (${eG} ? -90 : 90) : 0`,cG=`${iG} ? (datum.vgrad ? (${nG} ? "bottom" : "top") : ${oG}) : "top"`;function fG(t,e,n,i){const r=LJ(t,e);const o={enter:{opacity:zJ},update:{opacity:RJ,x:{field:{group:"padding"}},y:{field:{group:"padding"}}},exit:{opacity:zJ}};IH(o,{orient:r("titleOrient"),_anchor:r("titleAnchor"),anchor:{signal:lG},angle:{signal:uG},align:{signal:aG},baseline:{signal:cG},text:t.title,fill:r("titleColor"),fillOpacity:r("titleOpacity"),font:r("titleFont"),fontSize:r("titleFontSize"),fontStyle:r("titleFontStyle"),fontWeight:r("titleFontWeight"),limit:r("titleLimit"),lineHeight:r("titleLineHeight")},{align:r("titleAlign"),baseline:r("titleBaseline")});return YJ({type:IJ,role:nB,style:yJ,from:i,encode:o},n)}function hG(t,e){let n;if((0,m.Kn)(t)){if(t.signal){n=t.signal}else if(t.path){n="pathShape("+dG(t.path)+")"}else if(t.sphere){n="geoShape("+dG(t.sphere)+', {type: "Sphere"})'}}return n?e.signalRef(n):!!t}function dG(t){return(0,m.Kn)(t)&&t.signal?t.signal:(0,m.m8)(t)}function pG(t){const e=t.role||"";return!e.indexOf("axis")||!e.indexOf("legend")||!e.indexOf("title")?e:t.type===CJ?WH:e||FH}function mG(t){return{marktype:t.type,name:t.name||undefined,role:t.role||pG(t),zindex:+t.zindex||undefined,aria:t.aria,description:t.description}}function gG(t,e){return t&&t.signal?e.signalRef(t.signal):t===false?false:true}function yG(t,e){const n=Is(t.type);if(!n)(0,m.vU)("Unrecognized transform type: "+(0,m.m8)(t.type));const i=TB(n.type.toLowerCase(),null,vG(n,t,e));if(t.signal)e.addSignal(t.signal,e.proxy(i));i.metadata=n.metadata||{};return i}function vG(t,e,n){const i={},r=t.params.length;for(let o=0;oxG(t,e,n))):xG(t,r,n)}function xG(t,e,n){const i=t.type;if(LB(e)){return TG(i)?(0,m.vU)("Expression references can not be signals."):$G(i)?n.fieldRef(e):DG(i)?n.compareRef(e):n.signalRef(e.signal)}else{const r=t.expr||$G(i);return r&&MG(e)?n.exprRef(e.expr,e.as):r&&SG(e)?AB(e.field,e.as):TG(i)?wW(e,n):EG(i)?DB(n.getData(e).values):$G(i)?AB(e):DG(i)?n.compareRef(e):e}}function bG(t,e,n){if(!(0,m.HD)(e.from)){(0,m.vU)('Lookup "from" parameter must be a string literal.')}return n.getData(e.from).lookupRef(n,e.key)}function wG(t,e,n){const i=e[t.name];if(t.array){if(!(0,m.kJ)(i)){(0,m.vU)("Expected an array of sub-parameters. Instead: "+(0,m.m8)(i))}return i.map((e=>kG(t,e,n)))}else{return kG(t,i,n)}}function kG(t,e,n){const i=t.params.length;let r;for(let s=0;st&&t.expr;const SG=t=>t&&t.field;const EG=t=>t==="data";const TG=t=>t==="expr";const $G=t=>t==="field";const DG=t=>t==="compare";function AG(t,e,n){let i,r,o,s,a;if(!t){s=DB(n.add(lY(null,[{}])))}else if(i=t.facet){if(!e)(0,m.vU)("Only group marks can be faceted.");if(i.field!=null){s=a=NG(i,n)}else{if(!t.data){o=yG((0,m.l7)({type:"aggregate",groupby:(0,m.IX)(i.groupby)},i.aggregate),n);o.params.key=n.keyRef(i.groupby);o.params.pulse=NG(i,n);s=a=DB(n.add(o))}else{a=DB(n.getData(t.data).aggregate)}r=n.keyRef(i.groupby,true)}}if(!s){s=NG(t,n)}return{key:r,pulse:s,parent:a}}function NG(t,e){return t.$ref?t:t.data&&t.data.$ref?t.data:DB(e.getData(t.data).output)}function zG(t,e,n,i,r){this.scope=t;this.input=e;this.output=n;this.values=i;this.aggregate=r;this.index={}}zG.fromEntries=function(t,e){const n=e.length,i=e[n-1],r=e[n-2];let o=e[0],s=null,a=1;if(o&&o.type==="load"){o=e[1]}t.add(e[0]);for(;at==null?"null":t)).join(",")+"),0)";const c=wW(u,e);l.update=c.$expr;l.params=c.$params}function qG(t,e){const n=pG(t),i=t.type===CJ,r=t.from&&t.from.facet,o=t.overlap;let s=t.layout||n===WH||n===jH,a,l,u,c,f,h,d;const p=n===FH||s||r;const g=AG(t.from,i,e);l=e.add(cY({key:g.key||(t.key?AB(t.key):undefined),pulse:g.pulse,clean:!i}));const y=DB(l);l=u=e.add(lY({pulse:y}));l=e.add(vY({markdef:mG(t),interactive:gG(t.interactive,e),clip:hG(t.clip,e),context:{$context:true},groups:e.lookup(),parent:e.signals.parent?e.signalRef("parent"):null,index:e.markpath(),pulse:DB(l)}));const v=DB(l);l=c=e.add(fY(vB(t.encode,t.type,n,t.style,e,{mod:false,pulse:v})));l.params.parent=e.encode();if(t.transform){t.transform.forEach((t=>{const n=yG(t,e),i=n.metadata;if(i.generates||i.changes){(0,m.vU)("Mark transforms should not generate new data.")}if(!i.nomod)c.params.mod=true;n.params.pulse=DB(l);e.add(l=n)}))}if(t.sort){l=e.add(AY({sort:e.compareRef(t.sort),pulse:DB(l)}))}const _=DB(l);if(r||s){s=e.add(NY({layout:e.objectProperty(t.layout),legends:e.legends,mark:v,pulse:_}));h=DB(s)}const x=e.add(aY({mark:v,pulse:h||_}));d=DB(x);if(i){if(p){a=e.operators;a.pop();if(s)a.pop()}e.pushState(_,h||d,y);r?UG(t,e,g):p?PG(t,e,g):e.parse(t);e.popState();if(p){if(s)a.push(s);a.push(x)}}if(o){d=LG(o,d,e)}const b=e.add(TY({pulse:d})),w=e.add(DY({pulse:DB(b)},undefined,e.parent()));if(t.name!=null){f=t.name;e.addData(f,new zG(e,u,b,w));if(t.on)t.on.forEach((t=>{if(t.insert||t.remove||t.toggle){(0,m.vU)("Marks only support modify triggers.")}IG(t,e,f)}))}}function LG(t,e,n){const i=t.method,r=t.bound,o=t.separation;const s={separation:LB(o)?n.signalRef(o.signal):o,method:LB(i)?n.signalRef(i.signal):i,pulse:e};if(t.order){s.sort=n.compareRef({field:t.order})}if(r){const t=r.tolerance;s.boundTolerance=LB(t)?n.signalRef(t.signal):+t;s.boundScale=n.scaleRef(r.scale);s.boundOrient=r.orient}return DB(n.add(bY(s)))}function FG(t,e){const n=e.config.legend,i=t.encode||{},r=LJ(t,n),o=i.legend||{},s=o.name||undefined,a=o.interactive,l=o.style,u={};let c=0,f,h,d;AJ.forEach((e=>t[e]?(u[e]=t[e],c=c||t[e]):0));if(!c)(0,m.vU)("Missing valid scale for legend.");const p=jG(t,e.scaleType(c));const g={title:t.title!=null,scales:u,type:p,vgrad:p!=="symbol"&&r.isVertical()};const y=DB(e.add(lY(null,[g])));const v={enter:{x:{value:0},y:{value:0}}};const _=DB(e.add(gY(h={type:p,scale:e.scaleRef(c),count:e.objectProperty(r("tickCount")),limit:e.property(r("symbolLimit")),values:e.objectProperty(t.values),minstep:e.property(t.tickMinStep),formatType:e.property(t.formatType),formatSpecifier:e.property(t.format)})));if(p===bJ){d=[JJ(t,c,n,i.gradient),ZJ(t,n,i.labels,_)];h.count=h.count||e.signalRef(`max(2,2*floor((${XB(r.gradientLength())})/100))`)}else if(p===wJ){d=[GJ(t,c,n,i.gradient,_),ZJ(t,n,i.labels,_)]}else{f=tG(t,n);d=[QJ(t,n,i,_,XB(f.columns))];h.size=HG(t,e,d[0].marks)}d=[qJ({role:ZH,from:y,encode:v,marks:d,layout:f,interactive:a})];if(g.title){d.push(fG(t,n,i.title,y))}return qG(qJ({role:VH,from:y,encode:qH(XG(r,t,n),o,NJ),marks:d,aria:r("aria"),description:r("description"),zindex:r("zindex"),name:s,interactive:a,style:l}),e)}function jG(t,e){let n=t.type||xJ;if(!t.type&&WG(t)===1&&(t.fill||t.stroke)){n=Og(e)?bJ:Pg(e)?wJ:xJ}return n!==bJ?n:Pg(e)?wJ:bJ}function WG(t){return AJ.reduce(((e,n)=>e+(t[n]?1:0)),0)}function XG(t,e,n){const i={enter:{},update:{}};IH(i,{orient:t("orient"),offset:t("offset"),padding:t("padding"),titlePadding:t("titlePadding"),cornerRadius:t("cornerRadius"),fill:t("fillColor"),stroke:t("strokeColor"),strokeWidth:n.strokeWidth,strokeDash:n.strokeDash,x:t("legendX"),y:t("legendY"),format:e.format,formatType:e.formatType});return i}function HG(t,e,n){const i=XB(BG("size",t,n)),r=XB(BG("strokeWidth",t,n)),o=XB(YG(n[1].encode,e,gJ));return wW(`max(ceil(sqrt(${i})+${r}),${o})`,e)}function BG(t,e,n){return e[t]?`scale("${e[t]}",datum)`:FJ(t,n[0].encode)}function YG(t,e,n){return FJ("fontSize",t)||jJ("fontSize",e,n)}const JG=`item.orient==="${nJ}"?-90:item.orient==="${iJ}"?90:0`;function GG(t,e){t=(0,m.HD)(t)?{text:t}:t;const n=LJ(t,e.config.title),i=t.encode||{},r=i.group||{},o=r.name||undefined,s=r.interactive,a=r.style,l=[];const u={},c=DB(e.add(lY(null,[u])));l.push(ZG(t,n,VG(t),c));if(t.subtitle){l.push(QG(t,n,i.subtitle,c))}return qG(qJ({role:iB,from:c,encode:KG(n,r),marks:l,aria:n("aria"),description:n("description"),zindex:n("zindex"),name:o,interactive:s,style:a}),e)}function VG(t){const e=t.encode;return e&&e.title||(0,m.l7)({name:t.name,interactive:t.interactive,style:t.style},e)}function KG(t,e){const n={enter:{},update:{}};IH(n,{orient:t("orient"),anchor:t("anchor"),align:{signal:XJ},angle:{signal:JG},limit:t("limit"),frame:t("frame"),offset:t("offset")||0,padding:t("subtitlePadding")});return qH(n,e,NJ)}function ZG(t,e,n,i){const r={value:0},o=t.text,s={enter:{opacity:r},update:{opacity:{value:1}},exit:{opacity:r}};IH(s,{text:o,align:{signal:"item.mark.group.align"},angle:{signal:"item.mark.group.angle"},limit:{signal:"item.mark.group.limit"},baseline:"top",dx:e("dx"),dy:e("dy"),fill:e("color"),font:e("font"),fontSize:e("fontSize"),fontStyle:e("fontStyle"),fontWeight:e("fontWeight"),lineHeight:e("lineHeight")},{align:e("align"),angle:e("angle"),baseline:e("baseline")});return YJ({type:IJ,role:rB,style:vJ,from:i,encode:s},n)}function QG(t,e,n,i){const r={value:0},o=t.subtitle,s={enter:{opacity:r},update:{opacity:{value:1}},exit:{opacity:r}};IH(s,{text:o,align:{signal:"item.mark.group.align"},angle:{signal:"item.mark.group.angle"},limit:{signal:"item.mark.group.limit"},baseline:"top",dx:e("dx"),dy:e("dy"),fill:e("subtitleColor"),font:e("subtitleFont"),fontSize:e("subtitleFontSize"),fontStyle:e("subtitleFontStyle"),fontWeight:e("subtitleFontWeight"),lineHeight:e("subtitleLineHeight")},{align:e("align"),angle:e("angle"),baseline:e("baseline")});return YJ({type:IJ,role:oB,style:_J,from:i,encode:s},n)}function tV(t,e){const n=[];if(t.transform){t.transform.forEach((t=>{n.push(yG(t,e))}))}if(t.on){t.on.forEach((n=>{IG(n,e,t.name)}))}e.addDataPipeline(t.name,eV(t,e,n))}function eV(t,e,n){const i=[];let r=null,o=false,s=false,a,l,u,c,f;if(t.values){if(LB(t.values)||jB(t.format)){i.push(iV(e,t));i.push(r=nV())}else{i.push(r=nV({$ingest:t.values,$format:t.format}))}}else if(t.url){if(jB(t.url)||jB(t.format)){i.push(iV(e,t));i.push(r=nV())}else{i.push(r=nV({$request:t.url,$format:t.format}))}}else if(t.source){r=a=(0,m.IX)(t.source).map((t=>DB(e.getData(t).output)));i.push(null)}for(l=0,u=n.length;lt===rJ||t===eJ;const oV=(t,e,n)=>LB(t)?hV(t.signal,e,n):t===nJ||t===eJ?e:n;const sV=(t,e,n)=>LB(t)?cV(t.signal,e,n):rV(t)?e:n;const aV=(t,e,n)=>LB(t)?fV(t.signal,e,n):rV(t)?n:e;const lV=(t,e,n)=>LB(t)?dV(t.signal,e,n):t===eJ?{value:e}:{value:n};const uV=(t,e,n)=>LB(t)?pV(t.signal,e,n):t===iJ?{value:e}:{value:n};const cV=(t,e,n)=>mV(`${t} === '${eJ}' || ${t} === '${rJ}'`,e,n);const fV=(t,e,n)=>mV(`${t} !== '${eJ}' && ${t} !== '${rJ}'`,e,n);const hV=(t,e,n)=>yV(`${t} === '${nJ}' || ${t} === '${eJ}'`,e,n);const dV=(t,e,n)=>yV(`${t} === '${eJ}'`,e,n);const pV=(t,e,n)=>yV(`${t} === '${iJ}'`,e,n);const mV=(t,e,n)=>{e=e!=null?UH(e):e;n=n!=null?UH(n):n;if(gV(e)&&gV(n)){e=e?e.signal||(0,m.m8)(e.value):null;n=n?n.signal||(0,m.m8)(n.value):null;return{signal:`${t} ? (${e}) : (${n})`}}else{return[(0,m.l7)({test:t},e)].concat(n||[])}};const gV=t=>t==null||Object.keys(t).length===1;const yV=(t,e,n)=>({signal:`${t} ? (${_V(e)}) : (${_V(n)})`});const vV=(t,e,n,i,r)=>({signal:(i!=null?`${t} === '${nJ}' ? (${_V(i)}) : `:"")+(n!=null?`${t} === '${rJ}' ? (${_V(n)}) : `:"")+(r!=null?`${t} === '${iJ}' ? (${_V(r)}) : `:"")+(e!=null?`${t} === '${eJ}' ? (${_V(e)}) : `:"")+"(null)"});const _V=t=>LB(t)?t.signal:t==null?null:(0,m.m8)(t);const xV=(t,e)=>e===0?0:LB(t)?{signal:`(${t.signal}) * ${e}`}:{value:t*e};const bV=(t,e)=>{const n=t.signal;return n&&n.endsWith("(null)")?{signal:n.slice(0,-6)+e.signal}:t};function wV(t,e,n,i){let r;if(e&&(0,m.nr)(e,t)){return e[t]}else if((0,m.nr)(n,t)){return n[t]}else if(t.startsWith("title")){switch(t){case"titleColor":r="fill";break;case"titleFont":case"titleFontSize":case"titleFontWeight":r=t[5].toLowerCase()+t.slice(6)}return i[yJ][r]}else if(t.startsWith("label")){switch(t){case"labelColor":r="fill";break;case"labelFont":case"labelFontSize":r=t[5].toLowerCase()+t.slice(6)}return i[gJ][r]}return null}function kV(t){const e={};for(const n of t){if(!n)continue;for(const t in n)e[t]=1}return Object.keys(e)}function MV(t,e){var n=e.config,i=n.style,r=n.axis,o=e.scaleType(t.scale)==="band"&&n.axisBand,s=t.orient,a,l,u;if(LB(s)){const t=kV([n.axisX,n.axisY]),e=kV([n.axisTop,n.axisBottom,n.axisLeft,n.axisRight]);a={};for(u of t){a[u]=sV(s,wV(u,n.axisX,r,i),wV(u,n.axisY,r,i))}l={};for(u of e){l[u]=vV(s.signal,wV(u,n.axisTop,r,i),wV(u,n.axisBottom,r,i),wV(u,n.axisLeft,r,i),wV(u,n.axisRight,r,i))}}else{a=s===eJ||s===rJ?n.axisX:n.axisY;l=n["axis"+s[0].toUpperCase()+s.slice(1)]}const c=a||l||o?(0,m.l7)({},r,a,l,o):r;return c}function SV(t,e,n,i){const r=LJ(t,e),o=t.orient;let s,a;const l={enter:s={opacity:zJ},update:a={opacity:RJ},exit:{opacity:zJ}};IH(l,{stroke:r("domainColor"),strokeCap:r("domainCap"),strokeDash:r("domainDash"),strokeDashOffset:r("domainDashOffset"),strokeWidth:r("domainWidth"),strokeOpacity:r("domainOpacity")});const u=EV(t,0);const c=EV(t,1);s.x=a.x=sV(o,u,zJ);s.x2=a.x2=sV(o,c);s.y=a.y=aV(o,u,zJ);s.y2=a.y2=aV(o,c);return YJ({type:UJ,role:HH,from:i,encode:l},n)}function EV(t,e){return{scale:t.scale,range:e}}function TV(t,e,n,i,r){const o=LJ(t,e),s=t.orient,a=t.gridScale,l=oV(s,1,-1),u=$V(t.offset,l);let c,f,h;const d={enter:c={opacity:zJ},update:h={opacity:RJ},exit:f={opacity:zJ}};IH(d,{stroke:o("gridColor"),strokeCap:o("gridCap"),strokeDash:o("gridDash"),strokeDashOffset:o("gridDashOffset"),strokeOpacity:o("gridOpacity"),strokeWidth:o("gridWidth")});const p={scale:t.scale,field:mJ,band:r.band,extra:r.extra,offset:r.offset,round:o("tickRound")};const g=sV(s,{signal:"height"},{signal:"width"});const y=a?{scale:a,range:0,mult:l,offset:u}:{value:0,offset:u};const v=a?{scale:a,range:1,mult:l,offset:u}:(0,m.l7)(g,{mult:l,offset:u});c.x=h.x=sV(s,p,y);c.y=h.y=aV(s,p,y);c.x2=h.x2=aV(s,v);c.y2=h.y2=sV(s,v);f.x=sV(s,p);f.y=aV(s,p);return YJ({type:UJ,role:BH,key:mJ,from:i,encode:d},n)}function $V(t,e){if(e===1);else if(!(0,m.Kn)(t)){t=LB(e)?{signal:`(${e.signal}) * (${t||0})`}:e*(t||0)}else{let n=t=(0,m.l7)({},t);while(n.mult!=null){if(!(0,m.Kn)(n.mult)){n.mult=LB(e)?{signal:`(${n.mult}) * (${e.signal})`}:n.mult*e;return t}else{n=n.mult=(0,m.l7)({},n.mult)}}n.mult=e}return t}function DV(t,e,n,i,r,o){const s=LJ(t,e),a=t.orient,l=oV(a,-1,1);let u,c,f;const h={enter:u={opacity:zJ},update:f={opacity:RJ},exit:c={opacity:zJ}};IH(h,{stroke:s("tickColor"),strokeCap:s("tickCap"),strokeDash:s("tickDash"),strokeDashOffset:s("tickDashOffset"),strokeOpacity:s("tickOpacity"),strokeWidth:s("tickWidth")});const d=UH(r);d.mult=l;const p={scale:t.scale,field:mJ,band:o.band,extra:o.extra,offset:o.offset,round:s("tickRound")};f.y=u.y=sV(a,zJ,p);f.y2=u.y2=sV(a,d);c.x=sV(a,p);f.x=u.x=aV(a,zJ,p);f.x2=u.x2=aV(a,d);c.y=aV(a,p);return YJ({type:UJ,role:JH,key:mJ,from:i,encode:h},n)}function AV(t,e,n,i,r){return{signal:'flush(range("'+t+'"), '+'scale("'+t+'", datum.value), '+e+","+n+","+i+","+r+")"}}function NV(t,e,n,i,r,o){const s=LJ(t,e),a=t.orient,l=t.scale,u=oV(a,-1,1),c=XB(s("labelFlush")),f=XB(s("labelFlushOffset")),h=s("labelAlign"),d=s("labelBaseline");let p=c===0||!!c,m;const g=UH(r);g.mult=u;g.offset=UH(s("labelPadding")||0);g.offset.mult=u;const y={scale:l,field:mJ,band:.5,offset:BJ(o.offset,s("labelOffset"))};const v=sV(a,p?AV(l,c,'"left"','"right"','"center"'):{value:"center"},uV(a,"left","right"));const _=sV(a,lV(a,"bottom","top"),p?AV(l,c,'"top"','"bottom"','"middle"'):{value:"middle"});const x=AV(l,c,`-(${f})`,f,0);p=p&&f;const b={opacity:zJ,x:sV(a,y,g),y:aV(a,y,g)};const w={enter:b,update:m={opacity:RJ,text:{field:fJ},x:b.x,y:b.y,align:v,baseline:_},exit:{opacity:zJ,x:b.x,y:b.y}};IH(w,{dx:!h&&p?sV(a,x):null,dy:!d&&p?aV(a,x):null});IH(w,{angle:s("labelAngle"),fill:s("labelColor"),fillOpacity:s("labelOpacity"),font:s("labelFont"),fontSize:s("labelFontSize"),fontWeight:s("labelFontWeight"),fontStyle:s("labelFontStyle"),limit:s("labelLimit"),lineHeight:s("labelLineHeight")},{align:h,baseline:d});const k=s("labelBound");let M=s("labelOverlap");M=M||k?{separation:s("labelSeparation"),method:M,order:"datum.index",bound:k?{scale:l,orient:a,tolerance:k}:null}:undefined;if(m.align!==v){m.align=bV(m.align,v)}if(m.baseline!==_){m.baseline=bV(m.baseline,_)}return YJ({type:IJ,role:YH,style:gJ,key:mJ,from:i,encode:w,overlap:M},n)}function zV(t,e,n,i){const r=LJ(t,e),o=t.orient,s=oV(o,-1,1);let a,l;const u={enter:a={opacity:zJ,anchor:UH(r("titleAnchor",null)),align:{signal:XJ}},update:l=(0,m.l7)({},a,{opacity:RJ,text:UH(t.title)}),exit:{opacity:zJ}};const c={signal:`lerp(range("${t.scale}"), ${WJ(0,1,.5)})`};l.x=sV(o,c);l.y=aV(o,c);a.angle=sV(o,zJ,xV(s,90));a.baseline=sV(o,lV(o,rJ,eJ),{value:rJ});l.angle=a.angle;l.baseline=a.baseline;IH(u,{fill:r("titleColor"),fillOpacity:r("titleOpacity"),font:r("titleFont"),fontSize:r("titleFontSize"),fontStyle:r("titleFontStyle"),fontWeight:r("titleFontWeight"),limit:r("titleLimit"),lineHeight:r("titleLineHeight")},{align:r("titleAlign"),angle:r("titleAngle"),baseline:r("titleBaseline")});RV(r,o,u,n);u.update.align=bV(u.update.align,a.align);u.update.angle=bV(u.update.angle,a.angle);u.update.baseline=bV(u.update.baseline,a.baseline);return YJ({type:IJ,role:GH,style:yJ,from:i,encode:u},n)}function RV(t,e,n,i){const r=(t,e)=>t!=null?(n.update[e]=bV(UH(t),n.update[e]),false):!LH(e,i)?true:false;const o=r(t("titleX"),"x"),s=r(t("titleY"),"y");n.enter.auto=s===o?UH(s):sV(e,UH(s),UH(o))}function CV(t,e){const n=MV(t,e),i=t.encode||{},r=i.axis||{},o=r.name||undefined,s=r.interactive,a=r.style,l=LJ(t,n),u=HJ(l);const c={scale:t.scale,ticks:!!l("ticks"),labels:!!l("labels"),grid:!!l("grid"),domain:!!l("domain"),title:t.title!=null};const f=DB(e.add(lY({},[c])));const h=DB(e.add(sY({scale:e.scaleRef(t.scale),extra:e.property(u.extra),count:e.objectProperty(t.tickCount),values:e.objectProperty(t.values),minstep:e.property(t.tickMinStep),formatType:e.property(t.formatType),formatSpecifier:e.property(t.format)})));const d=[];let p;if(c.grid){d.push(TV(t,n,i.grid,h,u))}if(c.ticks){p=l("tickSize");d.push(DV(t,n,i.ticks,h,p,u))}if(c.labels){p=c.ticks?p:0;d.push(NV(t,n,i.labels,h,p,u))}if(c.domain){d.push(SV(t,n,i.domain,f))}if(c.title){d.push(zV(t,n,i.title,f))}return qG(qJ({role:XH,from:f,encode:qH(OV(l,t),r,NJ),marks:d,aria:l("aria"),description:l("description"),zindex:l("zindex"),name:o,interactive:s,style:a}),e)}function OV(t,e){const n={enter:{},update:{}};IH(n,{orient:t("orient"),offset:t("offset")||0,position:WB(e.position,0),titlePadding:t("titlePadding"),minExtent:t("minExtent"),maxExtent:t("maxExtent"),range:{signal:`abs(span(range("${e.scale}")))`},translate:t("translate"),format:e.format,formatType:e.formatType});return n}function UV(t,e,n){const i=(0,m.IX)(t.signals),r=(0,m.IX)(t.scales);if(!n)i.forEach((t=>SB(t,e)));(0,m.IX)(t.projections).forEach((t=>QY(t,e)));r.forEach((t=>OY(t,e)));(0,m.IX)(t.data).forEach((t=>tV(t,e)));r.forEach((t=>UY(t,e)));(n||i).forEach((t=>iY(t,e)));(0,m.IX)(t.axes).forEach((t=>CV(t,e)));(0,m.IX)(t.marks).forEach((t=>qG(t,e)));(0,m.IX)(t.legends).forEach((t=>FG(t,e)));if(t.title)GG(t.title,e);e.parseLambdas();return e}const PV=t=>qH({enter:{x:{value:0},y:{value:0}},update:{width:{signal:"width"},height:{signal:"height"}}},t);function IV(t,e){const n=e.config;const i=DB(e.root=e.add($B()));const r=LV(t,n);r.forEach((t=>SB(t,e)));e.description=t.description||n.description;e.eventConfig=n.events;e.legends=e.objectProperty(n.legend&&n.legend.layout);e.locale=n.locale;const o=e.add(lY());const s=e.add(fY(vB(PV(t.encode),CJ,jH,t.style,e,{pulse:DB(o)})));const a=e.add(NY({layout:e.objectProperty(t.layout),legends:e.legends,autosize:e.signalRef("autosize"),mark:i,pulse:DB(s)}));e.operators.pop();e.pushState(DB(s),DB(a),null);UV(t,e,r);e.operators.push(a);let l=e.add(aY({mark:i,pulse:DB(a)}));l=e.add(TY({pulse:DB(l)}));l=e.add(DY({pulse:DB(l)}));e.addData("root",new zG(e,o,o,l));return e}function qV(t,e){return e&&e.signal?{name:t,update:e.signal}:{name:t,value:e}}function LV(t,e){const n=n=>WB(t[n],e[n]),i=[qV("background",n("background")),qV("autosize",zH(n("autosize"))),qV("padding",OH(n("padding"))),qV("width",n("width")||0),qV("height",n("height")||0)],r=i.reduce(((t,e)=>(t[e.name]=e,t)),{}),o={};(0,m.IX)(t.signals).forEach((t=>{if((0,m.nr)(r,t.name)){t=(0,m.l7)(r[t.name],t)}else{i.push(t)}o[t.name]=t}));(0,m.IX)(e.signals).forEach((t=>{if(!(0,m.nr)(o,t.name)&&!(0,m.nr)(r,t.name)){i.push(t)}}));return i}function FV(t,e){this.config=t||{};this.options=e||{};this.bindings=[];this.field={};this.signals={};this.lambdas={};this.scales={};this.events={};this.data={};this.streams=[];this.updates=[];this.operators=[];this.eventConfig=null;this.locale=null;this._id=0;this._subid=0;this._nextsub=[0];this._parent=[];this._encode=[];this._lookup=[];this._markpath=[]}function jV(t){this.config=t.config;this.options=t.options;this.legends=t.legends;this.field=Object.create(t.field);this.signals=Object.create(t.signals);this.lambdas=Object.create(t.lambdas);this.scales=Object.create(t.scales);this.events=Object.create(t.events);this.data=Object.create(t.data);this.streams=[];this.updates=[];this.operators=[];this._id=0;this._subid=++t._nextsub[0];this._nextsub=t._nextsub;this._parent=t._parent.slice();this._encode=t._encode.slice();this._lookup=t._lookup.slice();this._markpath=t._markpath}FV.prototype=jV.prototype={parse(t){return UV(t,this)},fork(){return new jV(this)},isSubscope(){return this._subid>0},toRuntime(){this.finish();return{description:this.description,operators:this.operators,streams:this.streams,updates:this.updates,bindings:this.bindings,eventConfig:this.eventConfig,locale:this.locale}},id(){return(this._subid?this._subid+":":0)+this._id++},add(t){this.operators.push(t);t.id=this.id();if(t.refs){t.refs.forEach((e=>{e.$ref=t.id}));t.refs=null}return t},proxy(t){const e=t instanceof EB?DB(t):t;return this.add(SY({value:e}))},addStream(t){this.streams.push(t);t.id=this.id();return t},addUpdate(t){this.updates.push(t);return t},finish(){let t,e;if(this.root)this.root.root=true;for(t in this.signals){this.signals[t].signal=t}for(t in this.scales){this.scales[t].scale=t}function n(t,e,n){let i,r;if(t){i=t.data||(t.data={});r=i[e]||(i[e]=[]);r.push(n)}}for(t in this.data){e=this.data[t];n(e.input,t,"input");n(e.output,t,"output");n(e.values,t,"values");for(const i in e.index){n(e.index[i],t,"index:"+i)}}return this},pushState(t,e,n){this._encode.push(DB(this.add(DY({pulse:t}))));this._parent.push(e);this._lookup.push(n?DB(this.proxy(n)):null);this._markpath.push(-1)},popState(){this._encode.pop();this._parent.pop();this._lookup.pop();this._markpath.pop()},parent(){return(0,m.fj)(this._parent)},encode(){return(0,m.fj)(this._encode)},lookup(){return(0,m.fj)(this._lookup)},markpath(){const t=this._markpath;return++t[t.length-1]},fieldRef(t,e){if((0,m.HD)(t))return AB(t,e);if(!t.signal){(0,m.vU)("Unsupported field reference: "+(0,m.m8)(t))}const n=t.signal;let i=this.field[n];if(!i){const t={name:this.signalRef(n)};if(e)t.as=e;this.field[n]=i=DB(this.add(pY(t)))}return i},compareRef(t){let e=false;const n=t=>LB(t)?(e=true,this.signalRef(t.signal)):FB(t)?(e=true,this.exprRef(t.expr)):t;const i=(0,m.IX)(t.field).map(n),r=(0,m.IX)(t.order).map(n);return e?DB(this.add(uY({fields:i,orders:r}))):zB(i,r)},keyRef(t,e){let n=false;const i=t=>LB(t)?(n=true,DB(r[t.signal])):t;const r=this.signals;t=(0,m.IX)(t).map(i);return n?DB(this.add(mY({fields:t,flat:e}))):RB(t,e)},sortRef(t){if(!t)return t;const e=PB(t.op,t.field),n=t.order||CB;return n.signal?DB(this.add(uY({fields:e,orders:this.signalRef(n.signal)}))):zB(e,n)},event(t,e){const n=t+":"+e;if(!this.events[n]){const i=this.id();this.streams.push({id:i,source:t,type:e});this.events[n]=i}return this.events[n]},hasOwnSignal(t){return(0,m.nr)(this.signals,t)},addSignal(t,e){if(this.hasOwnSignal(t)){(0,m.vU)("Duplicate signal name: "+(0,m.m8)(t))}const n=e instanceof EB?e:this.add($B(e));return this.signals[t]=n},getSignal(t){if(!this.signals[t]){(0,m.vU)("Unrecognized signal name: "+(0,m.m8)(t))}return this.signals[t]},signalRef(t){if(this.signals[t]){return DB(this.signals[t])}else if(!(0,m.nr)(this.lambdas,t)){this.lambdas[t]=this.add($B(null))}return DB(this.lambdas[t])},parseLambdas(){const t=Object.keys(this.lambdas);for(let e=0,n=t.length;e0?",":"")+((0,m.Kn)(e)?e.signal||WV(e):(0,m.m8)(e))}return n+"]"}function HV(t){let e="{",n=0,i,r;for(i in t){r=t[i];e+=(++n>1?",":"")+(0,m.m8)(i)+":"+((0,m.Kn)(r)?r.signal||WV(r):(0,m.m8)(r))}return e+"}"}function BV(){const t="sans-serif",e=30,n=2,i="#4c78a8",r="#000",o="#888",s="#ddd";return{description:"Vega visualization",padding:0,autosize:"pad",background:null,events:{defaults:{allow:["wheel"]}},group:null,mark:null,arc:{fill:i},area:{fill:i},image:null,line:{stroke:i,strokeWidth:n},path:{stroke:i},rect:{fill:i},rule:{stroke:r},shape:{stroke:i},symbol:{fill:i,size:64},text:{fill:r,font:t,fontSize:11},trail:{fill:i,size:n},style:{"guide-label":{fill:r,font:t,fontSize:10},"guide-title":{fill:r,font:t,fontSize:11,fontWeight:"bold"},"group-title":{fill:r,font:t,fontSize:13,fontWeight:"bold"},"group-subtitle":{fill:r,font:t,fontSize:12},point:{size:e,strokeWidth:n,shape:"circle"},circle:{size:e,strokeWidth:n},square:{size:e,strokeWidth:n,shape:"square"},cell:{fill:"transparent",stroke:s},view:{fill:"transparent"}},title:{orient:"top",anchor:"middle",offset:4,subtitlePadding:3},axis:{minExtent:0,maxExtent:200,bandPosition:.5,domain:true,domainWidth:1,domainColor:o,grid:false,gridWidth:1,gridColor:s,labels:true,labelAngle:0,labelLimit:180,labelOffset:0,labelPadding:2,ticks:true,tickColor:o,tickOffset:0,tickRound:true,tickSize:5,tickWidth:1,titlePadding:4},axisBand:{tickOffset:-.5},projection:{type:"mercator"},legend:{orient:"right",padding:0,gridAlign:"each",columnPadding:10,rowPadding:2,symbolDirection:"vertical",gradientDirection:"vertical",gradientLength:200,gradientThickness:16,gradientStrokeColor:s,gradientStrokeWidth:0,gradientLabelOffset:2,labelAlign:"left",labelBaseline:"middle",labelLimit:160,labelOffset:4,labelOverlap:true,symbolLimit:30,symbolType:"circle",symbolSize:100,symbolOffset:0,symbolStrokeWidth:1.5,symbolBaseFillColor:"transparent",symbolBaseStrokeColor:o,titleLimit:180,titleOrient:"top",titlePadding:5,layout:{offset:18,direction:"horizontal",left:{direction:"vertical"},right:{direction:"vertical"}}},range:{category:{scheme:"tableau10"},ordinal:{scheme:"blues"},heatmap:{scheme:"yellowgreenblue"},ramp:{scheme:"blues"},diverging:{scheme:"blueorange",extent:[1,0]},symbol:["circle","square","triangle-up","cross","diamond","triangle-right","triangle-down","triangle-left"]}}}function YV(t,e,n){if(!(0,m.Kn)(t)){(0,m.vU)("Input Vega specification must be an object.")}e=(0,m.fE)(BV(),e,t.config);return IV(t,new FV(e,n)).toRuntime()}var JV="5.24.0";(0,m.l7)(Ps,i,o,s,a,l,c,u,f,h,d,p)}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/9109.fa3ee74a5c0f378f4d51.js b/bootcamp/share/jupyter/lab/static/9109.fa3ee74a5c0f378f4d51.js new file mode 100644 index 0000000..e996a0c --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/9109.fa3ee74a5c0f378f4d51.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9109],{39109:(e,t,r)=>{r.r(t);r.d(t,{webIDL:()=>_});function a(e){return new RegExp("^(("+e.join(")|(")+"))\\b")}var n=["Clamp","Constructor","EnforceRange","Exposed","ImplicitThis","Global","PrimaryGlobal","LegacyArrayClass","LegacyUnenumerableNamedProperties","LenientThis","NamedConstructor","NewObject","NoInterfaceObject","OverrideBuiltins","PutForwards","Replaceable","SameObject","TreatNonObjectAsNull","TreatNullAs","EmptyString","Unforgeable","Unscopeable"];var i=a(n);var l=["unsigned","short","long","unrestricted","float","double","boolean","byte","octet","Promise","ArrayBuffer","DataView","Int8Array","Int16Array","Int32Array","Uint8Array","Uint16Array","Uint32Array","Uint8ClampedArray","Float32Array","Float64Array","ByteString","DOMString","USVString","sequence","object","RegExp","Error","DOMException","FrozenArray","any","void"];var c=a(l);var o=["attribute","callback","const","deleter","dictionary","enum","getter","implements","inherit","interface","iterable","legacycaller","maplike","partial","required","serializer","setlike","setter","static","stringifier","typedef","optional","readonly","or"];var f=a(o);var s=["true","false","Infinity","NaN","null"];var m=a(s);var u=["callback","dictionary","enum","interface"];var p=a(u);var y=["typedef"];var b=a(y);var d=/^[:<=>?]/;var v=/^-?([1-9][0-9]*|0[Xx][0-9A-Fa-f]+|0[0-7]*)/;var h=/^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+)/;var A=/^_?[A-Za-z][0-9A-Z_a-z-]*/;var g=/^_?[A-Za-z][0-9A-Z_a-z-]*(?=\s*;)/;var k=/^"[^"]*"/;var D=/^\/\*.*?\*\//;var C=/^\/\*.*/;var E=/^.*?\*\//;function w(e,t){if(e.eatSpace())return null;if(t.inComment){if(e.match(E)){t.inComment=false;return"comment"}e.skipToEnd();return"comment"}if(e.match("//")){e.skipToEnd();return"comment"}if(e.match(D))return"comment";if(e.match(C)){t.inComment=true;return"comment"}if(e.match(/^-?[0-9\.]/,false)){if(e.match(v)||e.match(h))return"number"}if(e.match(k))return"string";if(t.startDef&&e.match(A))return"def";if(t.endDef&&e.match(g)){t.endDef=false;return"def"}if(e.match(f))return"keyword";if(e.match(c)){var r=t.lastToken;var a=(e.match(/^\s*(.+?)\b/,false)||[])[1];if(r===":"||r==="implements"||a==="implements"||a==="="){return"builtin"}else{return"type"}}if(e.match(i))return"builtin";if(e.match(m))return"atom";if(e.match(A))return"variable";if(e.match(d))return"operator";e.next();return null}const _={name:"webidl",startState:function(){return{inComment:false,lastToken:"",startDef:false,endDef:false}},token:function(e,t){var r=w(e,t);if(r){var a=e.current();t.lastToken=a;if(r==="keyword"){t.startDef=p.test(a);t.endDef=t.endDef||b.test(a)}else{t.startDef=false}}return r},languageData:{autocomplete:n.concat(l).concat(o).concat(s)}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/9192.db4337a516b7f38d1f89.js b/bootcamp/share/jupyter/lab/static/9192.db4337a516b7f38d1f89.js new file mode 100644 index 0000000..9f116db --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/9192.db4337a516b7f38d1f89.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9192],{69192:(e,i,$)=>{$.r(i);$.d(i,{mirc:()=>m});function r(e){var i={},$=e.split(" ");for(var r=0;r<$.length;++r)i[$[r]]=true;return i}var t=r("$! $$ $& $? $+ $abook $abs $active $activecid "+"$activewid $address $addtok $agent $agentname $agentstat $agentver "+"$alias $and $anick $ansi2mirc $aop $appactive $appstate $asc $asctime "+"$asin $atan $avoice $away $awaymsg $awaytime $banmask $base $bfind "+"$binoff $biton $bnick $bvar $bytes $calc $cb $cd $ceil $chan $chanmodes "+"$chantypes $chat $chr $cid $clevel $click $cmdbox $cmdline $cnick $color "+"$com $comcall $comchan $comerr $compact $compress $comval $cos $count "+"$cr $crc $creq $crlf $ctime $ctimer $ctrlenter $date $day $daylight "+"$dbuh $dbuw $dccignore $dccport $dde $ddename $debug $decode $decompress "+"$deltok $devent $dialog $did $didreg $didtok $didwm $disk $dlevel $dll "+"$dllcall $dname $dns $duration $ebeeps $editbox $emailaddr $encode $error "+"$eval $event $exist $feof $ferr $fgetc $file $filename $filtered $finddir "+"$finddirn $findfile $findfilen $findtok $fline $floor $fopen $fread $fserve "+"$fulladdress $fulldate $fullname $fullscreen $get $getdir $getdot $gettok $gmt "+"$group $halted $hash $height $hfind $hget $highlight $hnick $hotline "+"$hotlinepos $ial $ialchan $ibl $idle $iel $ifmatch $ignore $iif $iil "+"$inelipse $ini $inmidi $inpaste $inpoly $input $inrect $inroundrect "+"$insong $instok $int $inwave $ip $isalias $isbit $isdde $isdir $isfile "+"$isid $islower $istok $isupper $keychar $keyrpt $keyval $knick $lactive "+"$lactivecid $lactivewid $left $len $level $lf $line $lines $link $lock "+"$lock $locked $log $logstamp $logstampfmt $longfn $longip $lower $ltimer "+"$maddress $mask $matchkey $matchtok $md5 $me $menu $menubar $menucontext "+"$menutype $mid $middir $mircdir $mircexe $mircini $mklogfn $mnick $mode "+"$modefirst $modelast $modespl $mouse $msfile $network $newnick $nick $nofile "+"$nopath $noqt $not $notags $notify $null $numeric $numok $oline $onpoly "+"$opnick $or $ord $os $passivedcc $pic $play $pnick $port $portable $portfree "+"$pos $prefix $prop $protect $puttok $qt $query $rand $r $rawmsg $read $readomo "+"$readn $regex $regml $regsub $regsubex $remove $remtok $replace $replacex "+"$reptok $result $rgb $right $round $scid $scon $script $scriptdir $scriptline "+"$sdir $send $server $serverip $sfile $sha1 $shortfn $show $signal $sin "+"$site $sline $snick $snicks $snotify $sock $sockbr $sockerr $sockname "+"$sorttok $sound $sqrt $ssl $sreq $sslready $status $strip $str $stripped "+"$syle $submenu $switchbar $tan $target $ticks $time $timer $timestamp "+"$timestampfmt $timezone $tip $titlebar $toolbar $treebar $trust $ulevel "+"$ulist $upper $uptime $url $usermode $v1 $v2 $var $vcmd $vcmdstat $vcmdver "+"$version $vnick $vol $wid $width $wildsite $wildtok $window $wrap $xor");var a=r("abook ajinvite alias aline ame amsg anick aop auser autojoin avoice "+"away background ban bcopy beep bread break breplace bset btrunc bunset bwrite "+"channel clear clearall cline clipboard close cnick color comclose comopen "+"comreg continue copy creq ctcpreply ctcps dcc dccserver dde ddeserver "+"debug dec describe dialog did didtok disable disconnect dlevel dline dll "+"dns dqwindow drawcopy drawdot drawfill drawline drawpic drawrect drawreplace "+"drawrot drawsave drawscroll drawtext ebeeps echo editbox emailaddr enable "+"events exit fclose filter findtext finger firewall flash flist flood flush "+"flushini font fopen fseek fsend fserve fullname fwrite ghide gload gmove "+"gopts goto gplay gpoint gqreq groups gshow gsize gstop gtalk gunload hadd "+"halt haltdef hdec hdel help hfree hinc hload hmake hop hsave ial ialclear "+"ialmark identd if ignore iline inc invite iuser join kick linesep links list "+"load loadbuf localinfo log mdi me menubar mkdir mnick mode msg nick noop notice "+"notify omsg onotice part partall pdcc perform play playctrl pop protect pvoice "+"qme qmsg query queryn quit raw reload remini remote remove rename renwin "+"reseterror resetidle return rlevel rline rmdir run ruser save savebuf saveini "+"say scid scon server set showmirc signam sline sockaccept sockclose socklist "+"socklisten sockmark sockopen sockpause sockread sockrename sockudp sockwrite "+"sound speak splay sreq strip switchbar timer timestamp titlebar tnick tokenize "+"toolbar topic tray treebar ulist unload unset unsetall updatenl url uwho "+"var vcadd vcmd vcrem vol while whois window winhelp write writeint if isalnum "+"isalpha isaop isavoice isban ischan ishop isignore isin isincs isletter islower "+"isnotify isnum ison isop isprotect isreg isupper isvoice iswm iswmcs "+"elseif else goto menu nicklist status title icon size option text edit "+"button check radio box scroll list combo link tab item");var n=r("if elseif else and not or eq ne in ni for foreach while switch");var s=/[+\-*&%=<>!?^\/\|]/;function o(e,i,$){i.tokenize=$;return $(e,i)}function l(e,i){var $=i.beforeParams;i.beforeParams=false;var r=e.next();if(/[\[\]{}\(\),\.]/.test(r)){if(r=="("&&$)i.inParams=true;else if(r==")")i.inParams=false;return null}else if(/\d/.test(r)){e.eatWhile(/[\w\.]/);return"number"}else if(r=="\\"){e.eat("\\");e.eat(/./);return"number"}else if(r=="/"&&e.eat("*")){return o(e,i,c)}else if(r==";"&&e.match(/ *\( *\(/)){return o(e,i,d)}else if(r==";"&&!i.inParams){e.skipToEnd();return"comment"}else if(r=='"'){e.eat(/"/);return"keyword"}else if(r=="$"){e.eatWhile(/[$_a-z0-9A-Z\.:]/);if(t&&t.propertyIsEnumerable(e.current().toLowerCase())){return"keyword"}else{i.beforeParams=true;return"builtin"}}else if(r=="%"){e.eatWhile(/[^,\s()]/);i.beforeParams=true;return"string"}else if(s.test(r)){e.eatWhile(s);return"operator"}else{e.eatWhile(/[\w\$_{}]/);var l=e.current().toLowerCase();if(a&&a.propertyIsEnumerable(l))return"keyword";if(n&&n.propertyIsEnumerable(l)){i.beforeParams=true;return"keyword"}return null}}function c(e,i){var $=false,r;while(r=e.next()){if(r=="/"&&$){i.tokenize=l;break}$=r=="*"}return"comment"}function d(e,i){var $=0,r;while(r=e.next()){if(r==";"&&$==2){i.tokenize=l;break}if(r==")")$++;else if(r!=" ")$=0}return"meta"}const m={name:"mirc",startState:function(){return{tokenize:l,beforeParams:false,inParams:false}},token:function(e,i){if(e.eatSpace())return null;return i.tokenize(e,i)}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/9222.1c2a8e69a2de57dd1984.js b/bootcamp/share/jupyter/lab/static/9222.1c2a8e69a2de57dd1984.js new file mode 100644 index 0000000..4992076 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/9222.1c2a8e69a2de57dd1984.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9222],{89222:(e,t,r)=>{r.r(t);r.d(t,{stylus:()=>se});var i=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","bgsound","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","nobr","noframes","noscript","object","ol","optgroup","option","output","p","param","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","var","video"];var a=["domain","regexp","url-prefix","url"];var n=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"];var o=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","dynamic-range","video-dynamic-range"];var l=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backface-visibility","background","background-attachment","background-clip","background-color","background-image","background-origin","background-position","background-repeat","background-size","baseline-shift","binding","bleed","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-feature-settings","font-family","font-kerning","font-language-override","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-weight","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-position","grid-auto-rows","grid-column","grid-column-end","grid-column-start","grid-row","grid-row-end","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","justify-content","left","letter-spacing","line-break","line-height","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marker-offset","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","max-height","max-width","min-height","min-width","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotation","rotation-point","ruby-align","ruby-overhang","ruby-position","ruby-span","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-outline","text-overflow","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","unicode-bidi","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode","font-smoothing","osx-font-smoothing"];var s=["scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-3d-light-color","scrollbar-track-color","shape-inside","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","zoom"];var c=["font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"];var u=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"];var d=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","avoid","avoid-column","avoid-page","avoid-region","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","column","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","copy","counter","counters","cover","crop","cross","crosshair","currentcolor","cursive","cyclic","dashed","decimal","decimal-leading-zero","default","default-button","destination-atop","destination-in","destination-out","destination-over","devanagari","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fixed","flat","flex","footnotes","forwards","from","geometricPrecision","georgian","graytext","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hebrew","help","hidden","hide","high","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","malayalam","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row-resize","rtl","run-in","running","s-resize","sans-serif","scale","scale3d","scaleX","scaleY","scaleZ","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","semi-condensed","semi-expanded","separate","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","solid","somali","source-atop","source-in","source-out","source-over","space","spell-out","square","square-button","standard","start","static","status-bar","stretch","stroke","sub","subpixel-antialiased","super","sw-resize","symbolic","symbols","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","x-large","x-small","xor","xx-large","xx-small","bicubic","optimizespeed","grayscale","row","row-reverse","wrap","wrap-reverse","column-reverse","flex-start","flex-end","space-between","space-around","unset"];var m=["in","and","or","not","is not","is a","is","isnt","defined","if unless"],p=["for","if","else","unless","from","to"],f=["null","true","false","href","title","type","not-allowed","readonly","disabled"],h=["@font-face","@keyframes","@media","@viewport","@page","@host","@supports","@block","@css"];var b=i.concat(a,n,o,l,s,u,d,c,m,p,f,h);function g(e){e=e.sort((function(e,t){return t>e}));return new RegExp("^(("+e.join(")|(")+"))\\b")}function k(e){var t={};for(var r=0;r]=?|\?:|\~)/,P=g(m),U=k(p),E=new RegExp(/^\-(moz|ms|o|webkit)-/i),O=k(f),W="",A={},R,S,X,Y;function Z(e,t){W=e.string.match(/(^[\w-]+\s*=\s*$)|(^\s*[\w-]+\s*=\s*[\w-])|(^\s*(\.|#|@|\$|\&|\[|\d|\+|::?|\{|\>|~|\/)?\s*[\w-]*([a-z0-9-]|\*|\/\*)(\(|,)?)/);t.context.line.firstWord=W?W[0].replace(/^\s*/,""):"";t.context.line.indent=e.indentation();R=e.peek();if(e.match("//")){e.skipToEnd();return["comment","comment"]}if(e.match("/*")){t.tokenize=I;return I(e,t)}if(R=='"'||R=="'"){e.next();t.tokenize=T(R);return t.tokenize(e,t)}if(R=="@"){e.next();e.eatWhile(/[\w\\-]/);return["def",e.current()]}if(R=="#"){e.next();if(e.match(/^[0-9a-f]{3}([0-9a-f]([0-9a-f]{2}){0,2})?\b(?!-)/i)){return["atom","atom"]}if(e.match(/^[a-z][\w-]*/i)){return["builtin","hash"]}}if(e.match(E)){return["meta","vendor-prefixes"]}if(e.match(/^-?[0-9]?\.?[0-9]/)){e.eatWhile(/[a-z%]/i);return["number","unit"]}if(R=="!"){e.next();return[e.match(/^(important|optional)/i)?"keyword":"operator","important"]}if(R=="."&&e.match(/^\.[a-z][\w-]*/i)){return["qualifier","qualifier"]}if(e.match(_)){if(e.peek()=="(")t.tokenize=D;return["property","word"]}if(e.match(/^[a-z][\w-]*\(/i)){e.backUp(1);return["keyword","mixin"]}if(e.match(/^(\+|-)[a-z][\w-]*\(/i)){e.backUp(1);return["keyword","block-mixin"]}if(e.string.match(/^\s*&/)&&e.match(/^[-_]+[a-z][\w-]*/)){return["qualifier","qualifier"]}if(e.match(/^(\/|&)(-|_|:|\.|#|[a-z])/)){e.backUp(1);return["variableName.special","reference"]}if(e.match(/^&{1}\s*$/)){return["variableName.special","reference"]}if(e.match(P)){return["operator","operator"]}if(e.match(/^\$?[-_]*[a-z0-9]+[\w-]*/i)){if(e.match(/^(\.|\[)[\w-\'\"\]]+/i,false)){if(!M(e.current())){e.match(".");return["variable","variable-name"]}}return["variable","word"]}if(e.match(L)){return["operator",e.current()]}if(/[:;,{}\[\]\(\)]/.test(R)){e.next();return[null,R]}e.next();return[null,null]}function I(e,t){var r=false,i;while((i=e.next())!=null){if(r&&i=="/"){t.tokenize=null;break}r=i=="*"}return["comment","comment"]}function T(e){return function(t,r){var i=false,a;while((a=t.next())!=null){if(a==e&&!i){if(e==")")t.backUp(1);break}i=!i&&a=="\\"}if(a==e||!i&&e!=")")r.tokenize=null;return["string","string"]}}function D(e,t){e.next();if(!e.match(/\s*[\"\')]/,false))t.tokenize=T(")");else t.tokenize=null;return[null,"("]}function F(e,t,r,i){this.type=e;this.indent=t;this.prev=r;this.line=i||{firstWord:"",indent:0}}function G(e,t,r,i){i=i>=0?i:t.indentUnit;e.context=new F(r,t.indentation()+i,e.context);return r}function H(e,t,r){var i=e.context.indent-t.indentUnit;r=r||false;e.context=e.context.prev;if(r)e.context.indent=i;return e.context.type}function J(e,t,r){return A[r.context.type](e,t,r)}function K(e,t,r,i){for(var a=i||1;a>0;a--)r.context=r.context.prev;return J(e,t,r)}function M(e){return e.toLowerCase()in v}function Q(e){e=e.toLowerCase();return e in x||e in N}function V(e){return e.toLowerCase()in U}function ee(e){return e.toLowerCase().match(E)}function te(e){var t=e.toLowerCase();var r="variable";if(M(e))r="tag";else if(V(e))r="block-keyword";else if(Q(e))r="property";else if(t in q||t in O)r="atom";else if(t=="return"||t in j)r="keyword";else if(e.match(/^[A-Z]/))r="string";return r}function re(e,t){return oe(t)&&(e=="{"||e=="]"||e=="hash"||e=="qualifier")||e=="block-mixin"}function ie(e,t){return e=="{"&&t.match(/^\s*\$?[\w-]+/i,false)}function ae(e,t){return e==":"&&t.match(/^[a-z-]+/,false)}function ne(e){return e.sol()||e.string.match(new RegExp("^\\s*"+w(e.current())))}function oe(e){return e.eol()||e.match(/^\s*$/,false)}function le(e){var t=/^\s*[-_]*[a-z0-9]+[\w-]*/i;var r=typeof e=="string"?e.match(t):e.string.match(t);return r?r[0].replace(/^\s*/,""):""}A.block=function(e,t,r){if(e=="comment"&&ne(t)||e==","&&oe(t)||e=="mixin"){return G(r,t,"block",0)}if(ie(e,t)){return G(r,t,"interpolation")}if(oe(t)&&e=="]"){if(!/^\s*(\.|#|:|\[|\*|&)/.test(t.string)&&!M(le(t))){return G(r,t,"block",0)}}if(re(e,t)){return G(r,t,"block")}if(e=="}"&&oe(t)){return G(r,t,"block",0)}if(e=="variable-name"){if(t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)||V(le(t))){return G(r,t,"variableName")}else{return G(r,t,"variableName",0)}}if(e=="="){if(!oe(t)&&!V(le(t))){return G(r,t,"block",0)}return G(r,t,"block")}if(e=="*"){if(oe(t)||t.match(/\s*(,|\.|#|\[|:|{)/,false)){Y="tag";return G(r,t,"block")}}if(ae(e,t)){return G(r,t,"pseudo")}if(/@(font-face|media|supports|(-moz-)?document)/.test(e)){return G(r,t,oe(t)?"block":"atBlock")}if(/@(-(moz|ms|o|webkit)-)?keyframes$/.test(e)){return G(r,t,"keyframes")}if(/@extends?/.test(e)){return G(r,t,"extend",0)}if(e&&e.charAt(0)=="@"){if(t.indentation()>0&&Q(t.current().slice(1))){Y="variable";return"block"}if(/(@import|@require|@charset)/.test(e)){return G(r,t,"block",0)}return G(r,t,"block")}if(e=="reference"&&oe(t)){return G(r,t,"block")}if(e=="("){return G(r,t,"parens")}if(e=="vendor-prefixes"){return G(r,t,"vendorPrefixes")}if(e=="word"){var i=t.current();Y=te(i);if(Y=="property"){if(ne(t)){return G(r,t,"block",0)}else{Y="atom";return"block"}}if(Y=="tag"){if(/embed|menu|pre|progress|sub|table/.test(i)){if(Q(le(t))){Y="atom";return"block"}}if(t.string.match(new RegExp("\\[\\s*"+i+"|"+i+"\\s*\\]"))){Y="atom";return"block"}if(y.test(i)){if(ne(t)&&t.string.match(/=/)||!ne(t)&&!t.string.match(/^(\s*\.|#|\&|\[|\/|>|\*)/)&&!M(le(t))){Y="variable";if(V(le(t)))return"block";return G(r,t,"block",0)}}if(oe(t))return G(r,t,"block")}if(Y=="block-keyword"){Y="keyword";if(t.current(/(if|unless)/)&&!ne(t)){return"block"}return G(r,t,"block")}if(i=="return")return G(r,t,"block",0);if(Y=="variable"&&t.string.match(/^\s?\$[\w-\.\[\]\'\"]+$/)){return G(r,t,"block")}}return r.context.type};A.parens=function(e,t,r){if(e=="(")return G(r,t,"parens");if(e==")"){if(r.context.prev.type=="parens"){return H(r,t)}if(t.string.match(/^[a-z][\w-]*\(/i)&&oe(t)||V(le(t))||/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(le(t))||!t.string.match(/^-?[a-z][\w-\.\[\]\'\"]*\s*=/)&&M(le(t))){return G(r,t,"block")}if(t.string.match(/^[\$-]?[a-z][\w-\.\[\]\'\"]*\s*=/)||t.string.match(/^\s*(\(|\)|[0-9])/)||t.string.match(/^\s+[a-z][\w-]*\(/i)||t.string.match(/^\s+[\$-]?[a-z]/i)){return G(r,t,"block",0)}if(oe(t))return G(r,t,"block");else return G(r,t,"block",0)}if(e&&e.charAt(0)=="@"&&Q(t.current().slice(1))){Y="variable"}if(e=="word"){var i=t.current();Y=te(i);if(Y=="tag"&&y.test(i)){Y="variable"}if(Y=="property"||i=="to")Y="atom"}if(e=="variable-name"){return G(r,t,"variableName")}if(ae(e,t)){return G(r,t,"pseudo")}return r.context.type};A.vendorPrefixes=function(e,t,r){if(e=="word"){Y="property";return G(r,t,"block",0)}return H(r,t)};A.pseudo=function(e,t,r){if(!Q(le(t.string))){t.match(/^[a-z-]+/);Y="variableName.special";if(oe(t))return G(r,t,"block");return H(r,t)}return K(e,t,r)};A.atBlock=function(e,t,r){if(e=="(")return G(r,t,"atBlock_parens");if(re(e,t)){return G(r,t,"block")}if(ie(e,t)){return G(r,t,"interpolation")}if(e=="word"){var i=t.current().toLowerCase();if(/^(only|not|and|or)$/.test(i))Y="keyword";else if($.hasOwnProperty(i))Y="tag";else if(C.hasOwnProperty(i))Y="attribute";else if(B.hasOwnProperty(i))Y="property";else if(z.hasOwnProperty(i))Y="string.special";else Y=te(t.current());if(Y=="tag"&&oe(t)){return G(r,t,"block")}}if(e=="operator"&&/^(not|and|or)$/.test(t.current())){Y="keyword"}return r.context.type};A.atBlock_parens=function(e,t,r){if(e=="{"||e=="}")return r.context.type;if(e==")"){if(oe(t))return G(r,t,"block");else return G(r,t,"atBlock")}if(e=="word"){var i=t.current().toLowerCase();Y=te(i);if(/^(max|min)/.test(i))Y="property";if(Y=="tag"){y.test(i)?Y="variable":Y="atom"}return r.context.type}return A.atBlock(e,t,r)};A.keyframes=function(e,t,r){if(t.indentation()=="0"&&(e=="}"&&ne(t)||e=="]"||e=="hash"||e=="qualifier"||M(t.current()))){return K(e,t,r)}if(e=="{")return G(r,t,"keyframes");if(e=="}"){if(ne(t))return H(r,t,true);else return G(r,t,"keyframes")}if(e=="unit"&&/^[0-9]+\%$/.test(t.current())){return G(r,t,"keyframes")}if(e=="word"){Y=te(t.current());if(Y=="block-keyword"){Y="keyword";return G(r,t,"keyframes")}}if(/@(font-face|media|supports|(-moz-)?document)/.test(e)){return G(r,t,oe(t)?"block":"atBlock")}if(e=="mixin"){return G(r,t,"block",0)}return r.context.type};A.interpolation=function(e,t,r){if(e=="{")H(r,t)&&G(r,t,"block");if(e=="}"){if(t.string.match(/^\s*(\.|#|:|\[|\*|&|>|~|\+|\/)/i)||t.string.match(/^\s*[a-z]/i)&&M(le(t))){return G(r,t,"block")}if(!t.string.match(/^(\{|\s*\&)/)||t.match(/\s*[\w-]/,false)){return G(r,t,"block",0)}return G(r,t,"block")}if(e=="variable-name"){return G(r,t,"variableName",0)}if(e=="word"){Y=te(t.current());if(Y=="tag")Y="atom"}return r.context.type};A.extend=function(e,t,r){if(e=="["||e=="=")return"extend";if(e=="]")return H(r,t);if(e=="word"){Y=te(t.current());return"extend"}return H(r,t)};A.variableName=function(e,t,r){if(e=="string"||e=="["||e=="]"||t.current().match(/^(\.|\$)/)){if(t.current().match(/^\.[\w-]+/i))Y="variable";return"variableName"}return K(e,t,r)};const se={name:"stylus",startState:function(){return{tokenize:null,state:"block",context:new F("block",0,null)}},token:function(e,t){if(!t.tokenize&&e.eatSpace())return null;S=(t.tokenize||Z)(e,t);if(S&&typeof S=="object"){X=S[1];S=S[0]}Y=S;t.state=A[t.state](X,e,t);return Y},indent:function(e,t,r){var i=e.context,a=t&&t.charAt(0),n=i.indent,o=le(t),l=r.lineIndent(r.pos),s=e.context.prev?e.context.prev.line.firstWord:"",c=e.context.prev?e.context.prev.line.indent:l;if(i.prev&&(a=="}"&&(i.type=="block"||i.type=="atBlock"||i.type=="keyframes")||a==")"&&(i.type=="parens"||i.type=="atBlock_parens")||a=="{"&&i.type=="at")){n=i.indent-r.unit}else if(!/(\})/.test(a)){if(/@|\$|\d/.test(a)||/^\{/.test(t)||/^\s*\/(\/|\*)/.test(t)||/^\s*\/\*/.test(s)||/^\s*[\w-\.\[\]\'\"]+\s*(\?|:|\+)?=/i.test(t)||/^(\+|-)?[a-z][\w-]*\(/i.test(t)||/^return/.test(t)||V(o)){n=l}else if(/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(a)||M(o)){if(/\,\s*$/.test(s)){n=c}else if(!e.sol()&&(/(\.|#|:|\[|\*|&|>|~|\+|\/)/.test(s)||M(s))){n=l<=c?c:c+r.unit}else{n=l}}else if(!/,\s*$/.test(t)&&(ee(o)||Q(o))){if(V(s)){n=l<=c?c:c+r.unit}else if(/^\{/.test(s)){n=l<=c?l:c+r.unit}else if(ee(s)||Q(s)){n=l>=c?c:l}else if(/^(\.|#|:|\[|\*|&|@|\+|\-|>|~|\/)/.test(s)||/=\s*$/.test(s)||M(s)||/^\$[\w-\.\[\]\'\"]/.test(s)){n=c+r.unit}else{n=l}}}return n},languageData:{indentOnInput:/^\s*\}$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:b}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/9230.58b8c42b730e1a56e69b.js b/bootcamp/share/jupyter/lab/static/9230.58b8c42b730e1a56e69b.js new file mode 100644 index 0000000..b12e98b --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/9230.58b8c42b730e1a56e69b.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9230],{73779:function(c,t,e){var i=this&&this.__extends||function(){var c=function(t,e){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,t){c.__proto__=t}||function(c,t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))c[e]=t[e]};return c(t,e)};return function(t,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();var f=this&&this.__assign||function(){f=Object.assign||function(c){for(var t,e=1,i=arguments.length;e=c.length)c=void 0;return{value:c&&c[i++],done:!c}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__read||function(c,t){var e=typeof Symbol==="function"&&c[Symbol.iterator];if(!e)return c;var i=e.call(c),f,r=[],s;try{while((t===void 0||t-- >0)&&!(f=i.next()).done)r.push(f.value)}catch(a){s={error:a}}finally{try{if(f&&!f.done&&(e=i["return"]))e.call(i)}finally{if(s)throw s.error}}return r};Object.defineProperty(t,"__esModule",{value:true});t.AddCSS=t.CHTMLFontData=void 0;var n=e(88284);var l=e(92931);var d=e(77130);s(e(88284),t);var S=function(c){i(t,c);function t(){var t=c!==null&&c.apply(this,arguments)||this;t.charUsage=new l.Usage;t.delimUsage=new l.Usage;return t}t.charOptions=function(t,e){return c.charOptions.call(this,t,e)};t.prototype.adaptiveCSS=function(c){this.options.adaptiveCSS=c};t.prototype.clearCache=function(){if(this.options.adaptiveCSS){this.charUsage.clear();this.delimUsage.clear()}};t.prototype.createVariant=function(t,e,i){if(e===void 0){e=null}if(i===void 0){i=null}c.prototype.createVariant.call(this,t,e,i);var f=this.constructor;this.variant[t].classes=f.defaultVariantClasses[t];this.variant[t].letter=f.defaultVariantLetters[t]};t.prototype.defineChars=function(e,i){var f,r;c.prototype.defineChars.call(this,e,i);var s=this.variant[e].letter;try{for(var o=a(Object.keys(i)),n=o.next();!n.done;n=o.next()){var l=n.value;var d=t.charOptions(i,parseInt(l));if(d.f===undefined){d.f=s}}}catch(S){f={error:S}}finally{try{if(n&&!n.done&&(r=o.return))r.call(o)}finally{if(f)throw f.error}}};Object.defineProperty(t.prototype,"styles",{get:function(){var c=this.constructor;var t=f({},c.defaultStyles);this.addFontURLs(t,c.defaultFonts,this.options.fontURL);if(this.options.adaptiveCSS){this.updateStyles(t)}else{this.allStyles(t)}return t},enumerable:false,configurable:true});t.prototype.updateStyles=function(c){var t,e,i,f;try{for(var r=a(this.delimUsage.update()),s=r.next();!s.done;s=r.next()){var n=s.value;this.addDelimiterStyles(c,n,this.delimiters[n])}}catch(p){t={error:p}}finally{try{if(s&&!s.done&&(e=r.return))e.call(r)}finally{if(t)throw t.error}}try{for(var l=a(this.charUsage.update()),d=l.next();!d.done;d=l.next()){var S=o(d.value,2),u=S[0],n=S[1];var h=this.variant[u];this.addCharStyles(c,h.letter,n,h.chars[n])}}catch(B){i={error:B}}finally{try{if(d&&!d.done&&(f=l.return))f.call(l)}finally{if(i)throw i.error}}return c};t.prototype.allStyles=function(c){var t,e,i,f,r,s;try{for(var o=a(Object.keys(this.delimiters)),n=o.next();!n.done;n=o.next()){var l=n.value;var d=parseInt(l);this.addDelimiterStyles(c,d,this.delimiters[d])}}catch(y){t={error:y}}finally{try{if(n&&!n.done&&(e=o.return))e.call(o)}finally{if(t)throw t.error}}try{for(var S=a(Object.keys(this.variant)),u=S.next();!u.done;u=S.next()){var h=u.value;var p=this.variant[h];var B=p.letter;try{for(var v=(r=void 0,a(Object.keys(p.chars))),m=v.next();!m.done;m=v.next()){var l=m.value;var d=parseInt(l);var k=p.chars[d];if((k[3]||{}).smp)continue;if(k.length<4){k[3]={}}this.addCharStyles(c,B,d,k)}}catch(I){r={error:I}}finally{try{if(m&&!m.done&&(s=v.return))s.call(v)}finally{if(r)throw r.error}}}}catch(A){i={error:A}}finally{try{if(u&&!u.done&&(f=S.return))f.call(S)}finally{if(i)throw i.error}}};t.prototype.addFontURLs=function(c,t,e){var i,r;try{for(var s=a(Object.keys(t)),o=s.next();!o.done;o=s.next()){var n=o.value;var l=f({},t[n]);l.src=l.src.replace(/%%URL%%/,e);c[n]=l}}catch(d){i={error:d}}finally{try{if(o&&!o.done&&(r=s.return))r.call(s)}finally{if(i)throw i.error}}};t.prototype.addDelimiterStyles=function(c,t,e){var i=this.charSelector(t);if(e.c&&e.c!==t){i=this.charSelector(e.c);c[".mjx-stretched mjx-c"+i+"::before"]={content:this.charContent(e.c)}}if(!e.stretch)return;if(e.dir===1){this.addDelimiterVStyles(c,i,e)}else{this.addDelimiterHStyles(c,i,e)}};t.prototype.addDelimiterVStyles=function(c,t,e){var i=e.HDW;var f=o(e.stretch,4),r=f[0],s=f[1],a=f[2],n=f[3];var l=this.addDelimiterVPart(c,t,"beg",r,i);this.addDelimiterVPart(c,t,"ext",s,i);var d=this.addDelimiterVPart(c,t,"end",a,i);var S={};if(n){var u=this.addDelimiterVPart(c,t,"mid",n,i);S.height="50%";c["mjx-stretchy-v"+t+" > mjx-mid"]={"margin-top":this.em(-u/2),"margin-bottom":this.em(-u/2)}}if(l){S["border-top-width"]=this.em0(l-.03)}if(d){S["border-bottom-width"]=this.em0(d-.03);c["mjx-stretchy-v"+t+" > mjx-end"]={"margin-top":this.em(-d)}}if(Object.keys(S).length){c["mjx-stretchy-v"+t+" > mjx-ext"]=S}};t.prototype.addDelimiterVPart=function(c,t,e,i,f){if(!i)return 0;var r=this.getDelimiterData(i);var s=(f[2]-r[2])/2;var a={content:this.charContent(i)};if(e!=="ext"){a.padding=this.padding(r,s)}else{a.width=this.em0(f[2]);if(s){a["padding-left"]=this.em0(s)}}c["mjx-stretchy-v"+t+" mjx-"+e+" mjx-c::before"]=a;return r[0]+r[1]};t.prototype.addDelimiterHStyles=function(c,t,e){var i=o(e.stretch,4),f=i[0],r=i[1],s=i[2],a=i[3];var n=e.HDW;this.addDelimiterHPart(c,t,"beg",f,n);this.addDelimiterHPart(c,t,"ext",r,n);this.addDelimiterHPart(c,t,"end",s,n);if(a){this.addDelimiterHPart(c,t,"mid",a,n);c["mjx-stretchy-h"+t+" > mjx-ext"]={width:"50%"}}};t.prototype.addDelimiterHPart=function(c,t,e,i,f){if(!i)return;var r=this.getDelimiterData(i);var s=r[3];var a={content:s&&s.c?'"'+s.c+'"':this.charContent(i)};a.padding=this.padding(f,0,-f[2]);c["mjx-stretchy-h"+t+" mjx-"+e+" mjx-c::before"]=a};t.prototype.addCharStyles=function(c,t,e,i){var f=i[3];var r=f.f!==undefined?f.f:t;var s="mjx-c"+this.charSelector(e)+(r?".TEX-"+r:"");c[s+"::before"]={padding:this.padding(i,0,f.ic||0),content:f.c!=null?'"'+f.c+'"':this.charContent(e)}};t.prototype.getDelimiterData=function(c){return this.getChar("-smallop",c)};t.prototype.em=function(c){return(0,d.em)(c)};t.prototype.em0=function(c){return(0,d.em)(Math.max(0,c))};t.prototype.padding=function(c,t,e){var i=o(c,3),f=i[0],r=i[1],s=i[2];if(t===void 0){t=0}if(e===void 0){e=0}return[f,s+e,r,t].map(this.em0).join(" ")};t.prototype.charContent=function(c){return'"'+(c>=32&&c<=126&&c!==34&&c!==39&&c!==92?String.fromCharCode(c):"\\"+c.toString(16).toUpperCase())+'"'};t.prototype.charSelector=function(c){return".mjx-c"+c.toString(16).toUpperCase()};t.OPTIONS=f(f({},n.FontData.OPTIONS),{fontURL:"js/output/chtml/fonts/tex-woff-v2"});t.JAX="CHTML";t.defaultVariantClasses={};t.defaultVariantLetters={};t.defaultStyles={"mjx-c::before":{display:"block",width:0}};t.defaultFonts={"@font-face /* 0 */":{"font-family":"MJXZERO",src:'url("%%URL%%/MathJax_Zero.woff") format("woff")'}};return t}(n.FontData);t.CHTMLFontData=S;function u(c,t){var e,i;try{for(var f=a(Object.keys(t)),r=f.next();!r.done;r=f.next()){var s=r.value;var o=parseInt(s);Object.assign(n.FontData.charOptions(c,o),t[o])}}catch(l){e={error:l}}finally{try{if(r&&!r.done&&(i=f.return))i.call(f)}finally{if(e)throw e.error}}return c}t.AddCSS=u},92931:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.Usage=void 0;var e=function(){function c(){this.used=new Set;this.needsUpdate=[]}c.prototype.add=function(c){var t=JSON.stringify(c);if(!this.used.has(t)){this.needsUpdate.push(c)}this.used.add(t)};c.prototype.has=function(c){return this.used.has(JSON.stringify(c))};c.prototype.clear=function(){this.used.clear();this.needsUpdate=[]};c.prototype.update=function(){var c=this.needsUpdate;this.needsUpdate=[];return c};return c}();t.Usage=e},59230:function(c,t,e){var i=this&&this.__extends||function(){var c=function(t,e){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,t){c.__proto__=t}||function(c,t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))c[e]=t[e]};return c(t,e)};return function(t,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();var f=this&&this.__assign||function(){f=Object.assign||function(c){for(var t,e=1,i=arguments.length;e{Object.defineProperty(t,"__esModule",{value:true});t.boldItalic=void 0;var i=e(73779);var f=e(21453);t.boldItalic=(0,i.AddCSS)(f.boldItalic,{305:{f:"B"},567:{f:"B"},8260:{c:"/"},8710:{c:"\\394"},10744:{c:"/"}})},95071:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.bold=void 0;var i=e(73779);var f=e(74585);t.bold=(0,i.AddCSS)(f.bold,{183:{c:"\\22C5"},305:{f:""},567:{f:""},697:{c:"\\2032"},8194:{c:""},8195:{c:""},8196:{c:""},8197:{c:""},8198:{c:""},8201:{c:""},8202:{c:""},8213:{c:"\\2014"},8214:{c:"\\2225"},8215:{c:"_"},8226:{c:"\\2219"},8243:{c:"\\2032\\2032"},8244:{c:"\\2032\\2032\\2032"},8254:{c:"\\2C9"},8260:{c:"/"},8279:{c:"\\2032\\2032\\2032\\2032"},8407:{c:"\\2192",f:"VB"},8602:{c:"\\2190\\338"},8603:{c:"\\2192\\338"},8622:{c:"\\2194\\338"},8653:{c:"\\21D0\\338"},8654:{c:"\\21D4\\338"},8655:{c:"\\21D2\\338"},8708:{c:"\\2203\\338"},8710:{c:"\\394"},8716:{c:"\\220B\\338"},8740:{c:"\\2223\\338"},8742:{c:"\\2225\\338"},8769:{c:"\\223C\\338"},8772:{c:"\\2243\\338"},8775:{c:"\\2245\\338"},8777:{c:"\\2248\\338"},8802:{c:"\\2261\\338"},8813:{c:"\\224D\\338"},8814:{c:"<\\338"},8815:{c:">\\338"},8816:{c:"\\2264\\338"},8817:{c:"\\2265\\338"},8832:{c:"\\227A\\338"},8833:{c:"\\227B\\338"},8836:{c:"\\2282\\338"},8837:{c:"\\2283\\338"},8840:{c:"\\2286\\338"},8841:{c:"\\2287\\338"},8876:{c:"\\22A2\\338"},8877:{c:"\\22A8\\338"},8930:{c:"\\2291\\338"},8931:{c:"\\2292\\338"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},9653:{c:"\\25B3"},9663:{c:"\\25BD"},10072:{c:"\\2223"},10744:{c:"/",f:"BI"},10799:{c:"\\D7"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}})},23663:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.doubleStruck=void 0;var i=e(42206);Object.defineProperty(t,"doubleStruck",{enumerable:true,get:function(){return i.doubleStruck}})},36126:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.frakturBold=void 0;var i=e(73779);var f=e(84297);t.frakturBold=(0,i.AddCSS)(f.frakturBold,{8260:{c:"/"}})},27680:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.fraktur=void 0;var i=e(73779);var f=e(46441);t.fraktur=(0,i.AddCSS)(f.fraktur,{8260:{c:"/"}})},60582:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.italic=void 0;var i=e(73779);var f=e(11091);t.italic=(0,i.AddCSS)(f.italic,{47:{f:"I"},989:{c:"\\E008",f:"A"},8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/",f:"I"},8710:{c:"\\394",f:"I"},10744:{c:"/",f:"I"}})},11160:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.largeop=void 0;var i=e(73779);var f=e(40123);t.largeop=(0,i.AddCSS)(f.largeop,{8214:{f:"S1"},8260:{c:"/"},8593:{f:"S1"},8595:{f:"S1"},8657:{f:"S1"},8659:{f:"S1"},8739:{f:"S1"},8741:{f:"S1"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},9168:{f:"S1"},10072:{c:"\\2223",f:"S1"},10764:{c:"\\222C\\222C"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}})},50713:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.monospace=void 0;var i=e(73779);var f=e(61314);t.monospace=(0,i.AddCSS)(f.monospace,{697:{c:"\\2032"},913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8215:{c:"_"},8243:{c:"\\2032\\2032"},8244:{c:"\\2032\\2032\\2032"},8260:{c:"/"},8279:{c:"\\2032\\2032\\2032\\2032"},8710:{c:"\\394"}})},78642:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.normal=void 0;var i=e(73779);var f=e(22785);t.normal=(0,i.AddCSS)(f.normal,{163:{f:"MI"},165:{f:"A"},174:{f:"A"},183:{c:"\\22C5"},240:{f:"A"},697:{c:"\\2032"},913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8192:{c:""},8193:{c:""},8194:{c:""},8195:{c:""},8196:{c:""},8197:{c:""},8198:{c:""},8201:{c:""},8202:{c:""},8203:{c:""},8204:{c:""},8213:{c:"\\2014"},8214:{c:"\\2225"},8215:{c:"_"},8226:{c:"\\2219"},8243:{c:"\\2032\\2032"},8244:{c:"\\2032\\2032\\2032"},8245:{f:"A"},8246:{c:"\\2035\\2035",f:"A"},8247:{c:"\\2035\\2035\\2035",f:"A"},8254:{c:"\\2C9"},8260:{c:"/"},8279:{c:"\\2032\\2032\\2032\\2032"},8288:{c:""},8289:{c:""},8290:{c:""},8291:{c:""},8292:{c:""},8407:{c:"\\2192",f:"V"},8450:{c:"C",f:"A"},8459:{c:"H",f:"SC"},8460:{c:"H",f:"FR"},8461:{c:"H",f:"A"},8462:{c:"h",f:"I"},8463:{f:"A"},8464:{c:"I",f:"SC"},8465:{c:"I",f:"FR"},8466:{c:"L",f:"SC"},8469:{c:"N",f:"A"},8473:{c:"P",f:"A"},8474:{c:"Q",f:"A"},8475:{c:"R",f:"SC"},8476:{c:"R",f:"FR"},8477:{c:"R",f:"A"},8484:{c:"Z",f:"A"},8486:{c:"\\3A9"},8487:{f:"A"},8488:{c:"Z",f:"FR"},8492:{c:"B",f:"SC"},8493:{c:"C",f:"FR"},8496:{c:"E",f:"SC"},8497:{c:"F",f:"SC"},8498:{f:"A"},8499:{c:"M",f:"SC"},8502:{f:"A"},8503:{f:"A"},8504:{f:"A"},8513:{f:"A"},8602:{f:"A"},8603:{f:"A"},8606:{f:"A"},8608:{f:"A"},8610:{f:"A"},8611:{f:"A"},8619:{f:"A"},8620:{f:"A"},8621:{f:"A"},8622:{f:"A"},8624:{f:"A"},8625:{f:"A"},8630:{f:"A"},8631:{f:"A"},8634:{f:"A"},8635:{f:"A"},8638:{f:"A"},8639:{f:"A"},8642:{f:"A"},8643:{f:"A"},8644:{f:"A"},8646:{f:"A"},8647:{f:"A"},8648:{f:"A"},8649:{f:"A"},8650:{f:"A"},8651:{f:"A"},8653:{f:"A"},8654:{f:"A"},8655:{f:"A"},8666:{f:"A"},8667:{f:"A"},8669:{f:"A"},8672:{f:"A"},8674:{f:"A"},8705:{f:"A"},8708:{c:"\\2203\\338"},8710:{c:"\\394"},8716:{c:"\\220B\\338"},8717:{f:"A"},8719:{f:"S1"},8720:{f:"S1"},8721:{f:"S1"},8724:{f:"A"},8737:{f:"A"},8738:{f:"A"},8740:{f:"A"},8742:{f:"A"},8748:{f:"S1"},8749:{f:"S1"},8750:{f:"S1"},8756:{f:"A"},8757:{f:"A"},8765:{f:"A"},8769:{f:"A"},8770:{f:"A"},8772:{c:"\\2243\\338"},8775:{c:"\\2246",f:"A"},8777:{c:"\\2248\\338"},8778:{f:"A"},8782:{f:"A"},8783:{f:"A"},8785:{f:"A"},8786:{f:"A"},8787:{f:"A"},8790:{f:"A"},8791:{f:"A"},8796:{f:"A"},8802:{c:"\\2261\\338"},8806:{f:"A"},8807:{f:"A"},8808:{f:"A"},8809:{f:"A"},8812:{f:"A"},8813:{c:"\\224D\\338"},8814:{f:"A"},8815:{f:"A"},8816:{f:"A"},8817:{f:"A"},8818:{f:"A"},8819:{f:"A"},8820:{c:"\\2272\\338"},8821:{c:"\\2273\\338"},8822:{f:"A"},8823:{f:"A"},8824:{c:"\\2276\\338"},8825:{c:"\\2277\\338"},8828:{f:"A"},8829:{f:"A"},8830:{f:"A"},8831:{f:"A"},8832:{f:"A"},8833:{f:"A"},8836:{c:"\\2282\\338"},8837:{c:"\\2283\\338"},8840:{f:"A"},8841:{f:"A"},8842:{f:"A"},8843:{f:"A"},8847:{f:"A"},8848:{f:"A"},8858:{f:"A"},8859:{f:"A"},8861:{f:"A"},8862:{f:"A"},8863:{f:"A"},8864:{f:"A"},8865:{f:"A"},8873:{f:"A"},8874:{f:"A"},8876:{f:"A"},8877:{f:"A"},8878:{f:"A"},8879:{f:"A"},8882:{f:"A"},8883:{f:"A"},8884:{f:"A"},8885:{f:"A"},8888:{f:"A"},8890:{f:"A"},8891:{f:"A"},8892:{f:"A"},8896:{f:"S1"},8897:{f:"S1"},8898:{f:"S1"},8899:{f:"S1"},8903:{f:"A"},8905:{f:"A"},8906:{f:"A"},8907:{f:"A"},8908:{f:"A"},8909:{f:"A"},8910:{f:"A"},8911:{f:"A"},8912:{f:"A"},8913:{f:"A"},8914:{f:"A"},8915:{f:"A"},8916:{f:"A"},8918:{f:"A"},8919:{f:"A"},8920:{f:"A"},8921:{f:"A"},8922:{f:"A"},8923:{f:"A"},8926:{f:"A"},8927:{f:"A"},8928:{f:"A"},8929:{f:"A"},8930:{c:"\\2291\\338"},8931:{c:"\\2292\\338"},8934:{f:"A"},8935:{f:"A"},8936:{f:"A"},8937:{f:"A"},8938:{f:"A"},8939:{f:"A"},8940:{f:"A"},8941:{f:"A"},8965:{c:"\\22BC",f:"A"},8966:{c:"\\2A5E",f:"A"},8988:{c:"\\250C",f:"A"},8989:{c:"\\2510",f:"A"},8990:{c:"\\2514",f:"A"},8991:{c:"\\2518",f:"A"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},9168:{f:"S1"},9416:{f:"A"},9484:{f:"A"},9488:{f:"A"},9492:{f:"A"},9496:{f:"A"},9585:{f:"A"},9586:{f:"A"},9632:{f:"A"},9633:{f:"A"},9642:{c:"\\25A0",f:"A"},9650:{f:"A"},9652:{c:"\\25B2",f:"A"},9653:{c:"\\25B3"},9654:{f:"A"},9656:{c:"\\25B6",f:"A"},9660:{f:"A"},9662:{c:"\\25BC",f:"A"},9663:{c:"\\25BD"},9664:{f:"A"},9666:{c:"\\25C0",f:"A"},9674:{f:"A"},9723:{c:"\\25A1",f:"A"},9724:{c:"\\25A0",f:"A"},9733:{f:"A"},10003:{f:"A"},10016:{f:"A"},10072:{c:"\\2223"},10731:{f:"A"},10744:{c:"/",f:"I"},10752:{f:"S1"},10753:{f:"S1"},10754:{f:"S1"},10756:{f:"S1"},10758:{f:"S1"},10764:{c:"\\222C\\222C",f:"S1"},10799:{c:"\\D7"},10846:{f:"A"},10877:{f:"A"},10878:{f:"A"},10885:{f:"A"},10886:{f:"A"},10887:{f:"A"},10888:{f:"A"},10889:{f:"A"},10890:{f:"A"},10891:{f:"A"},10892:{f:"A"},10901:{f:"A"},10902:{f:"A"},10933:{f:"A"},10934:{f:"A"},10935:{f:"A"},10936:{f:"A"},10937:{f:"A"},10938:{f:"A"},10949:{f:"A"},10950:{f:"A"},10955:{f:"A"},10956:{f:"A"},12296:{c:"\\27E8"},12297:{c:"\\27E9"},57350:{f:"A"},57351:{f:"A"},57352:{f:"A"},57353:{f:"A"},57356:{f:"A"},57357:{f:"A"},57358:{f:"A"},57359:{f:"A"},57360:{f:"A"},57361:{f:"A"},57366:{f:"A"},57367:{f:"A"},57368:{f:"A"},57369:{f:"A"},57370:{f:"A"},57371:{f:"A"},119808:{c:"A",f:"B"},119809:{c:"B",f:"B"},119810:{c:"C",f:"B"},119811:{c:"D",f:"B"},119812:{c:"E",f:"B"},119813:{c:"F",f:"B"},119814:{c:"G",f:"B"},119815:{c:"H",f:"B"},119816:{c:"I",f:"B"},119817:{c:"J",f:"B"},119818:{c:"K",f:"B"},119819:{c:"L",f:"B"},119820:{c:"M",f:"B"},119821:{c:"N",f:"B"},119822:{c:"O",f:"B"},119823:{c:"P",f:"B"},119824:{c:"Q",f:"B"},119825:{c:"R",f:"B"},119826:{c:"S",f:"B"},119827:{c:"T",f:"B"},119828:{c:"U",f:"B"},119829:{c:"V",f:"B"},119830:{c:"W",f:"B"},119831:{c:"X",f:"B"},119832:{c:"Y",f:"B"},119833:{c:"Z",f:"B"},119834:{c:"a",f:"B"},119835:{c:"b",f:"B"},119836:{c:"c",f:"B"},119837:{c:"d",f:"B"},119838:{c:"e",f:"B"},119839:{c:"f",f:"B"},119840:{c:"g",f:"B"},119841:{c:"h",f:"B"},119842:{c:"i",f:"B"},119843:{c:"j",f:"B"},119844:{c:"k",f:"B"},119845:{c:"l",f:"B"},119846:{c:"m",f:"B"},119847:{c:"n",f:"B"},119848:{c:"o",f:"B"},119849:{c:"p",f:"B"},119850:{c:"q",f:"B"},119851:{c:"r",f:"B"},119852:{c:"s",f:"B"},119853:{c:"t",f:"B"},119854:{c:"u",f:"B"},119855:{c:"v",f:"B"},119856:{c:"w",f:"B"},119857:{c:"x",f:"B"},119858:{c:"y",f:"B"},119859:{c:"z",f:"B"},119860:{c:"A",f:"I"},119861:{c:"B",f:"I"},119862:{c:"C",f:"I"},119863:{c:"D",f:"I"},119864:{c:"E",f:"I"},119865:{c:"F",f:"I"},119866:{c:"G",f:"I"},119867:{c:"H",f:"I"},119868:{c:"I",f:"I"},119869:{c:"J",f:"I"},119870:{c:"K",f:"I"},119871:{c:"L",f:"I"},119872:{c:"M",f:"I"},119873:{c:"N",f:"I"},119874:{c:"O",f:"I"},119875:{c:"P",f:"I"},119876:{c:"Q",f:"I"},119877:{c:"R",f:"I"},119878:{c:"S",f:"I"},119879:{c:"T",f:"I"},119880:{c:"U",f:"I"},119881:{c:"V",f:"I"},119882:{c:"W",f:"I"},119883:{c:"X",f:"I"},119884:{c:"Y",f:"I"},119885:{c:"Z",f:"I"},119886:{c:"a",f:"I"},119887:{c:"b",f:"I"},119888:{c:"c",f:"I"},119889:{c:"d",f:"I"},119890:{c:"e",f:"I"},119891:{c:"f",f:"I"},119892:{c:"g",f:"I"},119894:{c:"i",f:"I"},119895:{c:"j",f:"I"},119896:{c:"k",f:"I"},119897:{c:"l",f:"I"},119898:{c:"m",f:"I"},119899:{c:"n",f:"I"},119900:{c:"o",f:"I"},119901:{c:"p",f:"I"},119902:{c:"q",f:"I"},119903:{c:"r",f:"I"},119904:{c:"s",f:"I"},119905:{c:"t",f:"I"},119906:{c:"u",f:"I"},119907:{c:"v",f:"I"},119908:{c:"w",f:"I"},119909:{c:"x",f:"I"},119910:{c:"y",f:"I"},119911:{c:"z",f:"I"},119912:{c:"A",f:"BI"},119913:{c:"B",f:"BI"},119914:{c:"C",f:"BI"},119915:{c:"D",f:"BI"},119916:{c:"E",f:"BI"},119917:{c:"F",f:"BI"},119918:{c:"G",f:"BI"},119919:{c:"H",f:"BI"},119920:{c:"I",f:"BI"},119921:{c:"J",f:"BI"},119922:{c:"K",f:"BI"},119923:{c:"L",f:"BI"},119924:{c:"M",f:"BI"},119925:{c:"N",f:"BI"},119926:{c:"O",f:"BI"},119927:{c:"P",f:"BI"},119928:{c:"Q",f:"BI"},119929:{c:"R",f:"BI"},119930:{c:"S",f:"BI"},119931:{c:"T",f:"BI"},119932:{c:"U",f:"BI"},119933:{c:"V",f:"BI"},119934:{c:"W",f:"BI"},119935:{c:"X",f:"BI"},119936:{c:"Y",f:"BI"},119937:{c:"Z",f:"BI"},119938:{c:"a",f:"BI"},119939:{c:"b",f:"BI"},119940:{c:"c",f:"BI"},119941:{c:"d",f:"BI"},119942:{c:"e",f:"BI"},119943:{c:"f",f:"BI"},119944:{c:"g",f:"BI"},119945:{c:"h",f:"BI"},119946:{c:"i",f:"BI"},119947:{c:"j",f:"BI"},119948:{c:"k",f:"BI"},119949:{c:"l",f:"BI"},119950:{c:"m",f:"BI"},119951:{c:"n",f:"BI"},119952:{c:"o",f:"BI"},119953:{c:"p",f:"BI"},119954:{c:"q",f:"BI"},119955:{c:"r",f:"BI"},119956:{c:"s",f:"BI"},119957:{c:"t",f:"BI"},119958:{c:"u",f:"BI"},119959:{c:"v",f:"BI"},119960:{c:"w",f:"BI"},119961:{c:"x",f:"BI"},119962:{c:"y",f:"BI"},119963:{c:"z",f:"BI"},119964:{c:"A",f:"SC"},119966:{c:"C",f:"SC"},119967:{c:"D",f:"SC"},119970:{c:"G",f:"SC"},119973:{c:"J",f:"SC"},119974:{c:"K",f:"SC"},119977:{c:"N",f:"SC"},119978:{c:"O",f:"SC"},119979:{c:"P",f:"SC"},119980:{c:"Q",f:"SC"},119982:{c:"S",f:"SC"},119983:{c:"T",f:"SC"},119984:{c:"U",f:"SC"},119985:{c:"V",f:"SC"},119986:{c:"W",f:"SC"},119987:{c:"X",f:"SC"},119988:{c:"Y",f:"SC"},119989:{c:"Z",f:"SC"},120068:{c:"A",f:"FR"},120069:{c:"B",f:"FR"},120071:{c:"D",f:"FR"},120072:{c:"E",f:"FR"},120073:{c:"F",f:"FR"},120074:{c:"G",f:"FR"},120077:{c:"J",f:"FR"},120078:{c:"K",f:"FR"},120079:{c:"L",f:"FR"},120080:{c:"M",f:"FR"},120081:{c:"N",f:"FR"},120082:{c:"O",f:"FR"},120083:{c:"P",f:"FR"},120084:{c:"Q",f:"FR"},120086:{c:"S",f:"FR"},120087:{c:"T",f:"FR"},120088:{c:"U",f:"FR"},120089:{c:"V",f:"FR"},120090:{c:"W",f:"FR"},120091:{c:"X",f:"FR"},120092:{c:"Y",f:"FR"},120094:{c:"a",f:"FR"},120095:{c:"b",f:"FR"},120096:{c:"c",f:"FR"},120097:{c:"d",f:"FR"},120098:{c:"e",f:"FR"},120099:{c:"f",f:"FR"},120100:{c:"g",f:"FR"},120101:{c:"h",f:"FR"},120102:{c:"i",f:"FR"},120103:{c:"j",f:"FR"},120104:{c:"k",f:"FR"},120105:{c:"l",f:"FR"},120106:{c:"m",f:"FR"},120107:{c:"n",f:"FR"},120108:{c:"o",f:"FR"},120109:{c:"p",f:"FR"},120110:{c:"q",f:"FR"},120111:{c:"r",f:"FR"},120112:{c:"s",f:"FR"},120113:{c:"t",f:"FR"},120114:{c:"u",f:"FR"},120115:{c:"v",f:"FR"},120116:{c:"w",f:"FR"},120117:{c:"x",f:"FR"},120118:{c:"y",f:"FR"},120119:{c:"z",f:"FR"},120120:{c:"A",f:"A"},120121:{c:"B",f:"A"},120123:{c:"D",f:"A"},120124:{c:"E",f:"A"},120125:{c:"F",f:"A"},120126:{c:"G",f:"A"},120128:{c:"I",f:"A"},120129:{c:"J",f:"A"},120130:{c:"K",f:"A"},120131:{c:"L",f:"A"},120132:{c:"M",f:"A"},120134:{c:"O",f:"A"},120138:{c:"S",f:"A"},120139:{c:"T",f:"A"},120140:{c:"U",f:"A"},120141:{c:"V",f:"A"},120142:{c:"W",f:"A"},120143:{c:"X",f:"A"},120144:{c:"Y",f:"A"},120172:{c:"A",f:"FRB"},120173:{c:"B",f:"FRB"},120174:{c:"C",f:"FRB"},120175:{c:"D",f:"FRB"},120176:{c:"E",f:"FRB"},120177:{c:"F",f:"FRB"},120178:{c:"G",f:"FRB"},120179:{c:"H",f:"FRB"},120180:{c:"I",f:"FRB"},120181:{c:"J",f:"FRB"},120182:{c:"K",f:"FRB"},120183:{c:"L",f:"FRB"},120184:{c:"M",f:"FRB"},120185:{c:"N",f:"FRB"},120186:{c:"O",f:"FRB"},120187:{c:"P",f:"FRB"},120188:{c:"Q",f:"FRB"},120189:{c:"R",f:"FRB"},120190:{c:"S",f:"FRB"},120191:{c:"T",f:"FRB"},120192:{c:"U",f:"FRB"},120193:{c:"V",f:"FRB"},120194:{c:"W",f:"FRB"},120195:{c:"X",f:"FRB"},120196:{c:"Y",f:"FRB"},120197:{c:"Z",f:"FRB"},120198:{c:"a",f:"FRB"},120199:{c:"b",f:"FRB"},120200:{c:"c",f:"FRB"},120201:{c:"d",f:"FRB"},120202:{c:"e",f:"FRB"},120203:{c:"f",f:"FRB"},120204:{c:"g",f:"FRB"},120205:{c:"h",f:"FRB"},120206:{c:"i",f:"FRB"},120207:{c:"j",f:"FRB"},120208:{c:"k",f:"FRB"},120209:{c:"l",f:"FRB"},120210:{c:"m",f:"FRB"},120211:{c:"n",f:"FRB"},120212:{c:"o",f:"FRB"},120213:{c:"p",f:"FRB"},120214:{c:"q",f:"FRB"},120215:{c:"r",f:"FRB"},120216:{c:"s",f:"FRB"},120217:{c:"t",f:"FRB"},120218:{c:"u",f:"FRB"},120219:{c:"v",f:"FRB"},120220:{c:"w",f:"FRB"},120221:{c:"x",f:"FRB"},120222:{c:"y",f:"FRB"},120223:{c:"z",f:"FRB"},120224:{c:"A",f:"SS"},120225:{c:"B",f:"SS"},120226:{c:"C",f:"SS"},120227:{c:"D",f:"SS"},120228:{c:"E",f:"SS"},120229:{c:"F",f:"SS"},120230:{c:"G",f:"SS"},120231:{c:"H",f:"SS"},120232:{c:"I",f:"SS"},120233:{c:"J",f:"SS"},120234:{c:"K",f:"SS"},120235:{c:"L",f:"SS"},120236:{c:"M",f:"SS"},120237:{c:"N",f:"SS"},120238:{c:"O",f:"SS"},120239:{c:"P",f:"SS"},120240:{c:"Q",f:"SS"},120241:{c:"R",f:"SS"},120242:{c:"S",f:"SS"},120243:{c:"T",f:"SS"},120244:{c:"U",f:"SS"},120245:{c:"V",f:"SS"},120246:{c:"W",f:"SS"},120247:{c:"X",f:"SS"},120248:{c:"Y",f:"SS"},120249:{c:"Z",f:"SS"},120250:{c:"a",f:"SS"},120251:{c:"b",f:"SS"},120252:{c:"c",f:"SS"},120253:{c:"d",f:"SS"},120254:{c:"e",f:"SS"},120255:{c:"f",f:"SS"},120256:{c:"g",f:"SS"},120257:{c:"h",f:"SS"},120258:{c:"i",f:"SS"},120259:{c:"j",f:"SS"},120260:{c:"k",f:"SS"},120261:{c:"l",f:"SS"},120262:{c:"m",f:"SS"},120263:{c:"n",f:"SS"},120264:{c:"o",f:"SS"},120265:{c:"p",f:"SS"},120266:{c:"q",f:"SS"},120267:{c:"r",f:"SS"},120268:{c:"s",f:"SS"},120269:{c:"t",f:"SS"},120270:{c:"u",f:"SS"},120271:{c:"v",f:"SS"},120272:{c:"w",f:"SS"},120273:{c:"x",f:"SS"},120274:{c:"y",f:"SS"},120275:{c:"z",f:"SS"},120276:{c:"A",f:"SSB"},120277:{c:"B",f:"SSB"},120278:{c:"C",f:"SSB"},120279:{c:"D",f:"SSB"},120280:{c:"E",f:"SSB"},120281:{c:"F",f:"SSB"},120282:{c:"G",f:"SSB"},120283:{c:"H",f:"SSB"},120284:{c:"I",f:"SSB"},120285:{c:"J",f:"SSB"},120286:{c:"K",f:"SSB"},120287:{c:"L",f:"SSB"},120288:{c:"M",f:"SSB"},120289:{c:"N",f:"SSB"},120290:{c:"O",f:"SSB"},120291:{c:"P",f:"SSB"},120292:{c:"Q",f:"SSB"},120293:{c:"R",f:"SSB"},120294:{c:"S",f:"SSB"},120295:{c:"T",f:"SSB"},120296:{c:"U",f:"SSB"},120297:{c:"V",f:"SSB"},120298:{c:"W",f:"SSB"},120299:{c:"X",f:"SSB"},120300:{c:"Y",f:"SSB"},120301:{c:"Z",f:"SSB"},120302:{c:"a",f:"SSB"},120303:{c:"b",f:"SSB"},120304:{c:"c",f:"SSB"},120305:{c:"d",f:"SSB"},120306:{c:"e",f:"SSB"},120307:{c:"f",f:"SSB"},120308:{c:"g",f:"SSB"},120309:{c:"h",f:"SSB"},120310:{c:"i",f:"SSB"},120311:{c:"j",f:"SSB"},120312:{c:"k",f:"SSB"},120313:{c:"l",f:"SSB"},120314:{c:"m",f:"SSB"},120315:{c:"n",f:"SSB"},120316:{c:"o",f:"SSB"},120317:{c:"p",f:"SSB"},120318:{c:"q",f:"SSB"},120319:{c:"r",f:"SSB"},120320:{c:"s",f:"SSB"},120321:{c:"t",f:"SSB"},120322:{c:"u",f:"SSB"},120323:{c:"v",f:"SSB"},120324:{c:"w",f:"SSB"},120325:{c:"x",f:"SSB"},120326:{c:"y",f:"SSB"},120327:{c:"z",f:"SSB"},120328:{c:"A",f:"SSI"},120329:{c:"B",f:"SSI"},120330:{c:"C",f:"SSI"},120331:{c:"D",f:"SSI"},120332:{c:"E",f:"SSI"},120333:{c:"F",f:"SSI"},120334:{c:"G",f:"SSI"},120335:{c:"H",f:"SSI"},120336:{c:"I",f:"SSI"},120337:{c:"J",f:"SSI"},120338:{c:"K",f:"SSI"},120339:{c:"L",f:"SSI"},120340:{c:"M",f:"SSI"},120341:{c:"N",f:"SSI"},120342:{c:"O",f:"SSI"},120343:{c:"P",f:"SSI"},120344:{c:"Q",f:"SSI"},120345:{c:"R",f:"SSI"},120346:{c:"S",f:"SSI"},120347:{c:"T",f:"SSI"},120348:{c:"U",f:"SSI"},120349:{c:"V",f:"SSI"},120350:{c:"W",f:"SSI"},120351:{c:"X",f:"SSI"},120352:{c:"Y",f:"SSI"},120353:{c:"Z",f:"SSI"},120354:{c:"a",f:"SSI"},120355:{c:"b",f:"SSI"},120356:{c:"c",f:"SSI"},120357:{c:"d",f:"SSI"},120358:{c:"e",f:"SSI"},120359:{c:"f",f:"SSI"},120360:{c:"g",f:"SSI"},120361:{c:"h",f:"SSI"},120362:{c:"i",f:"SSI"},120363:{c:"j",f:"SSI"},120364:{c:"k",f:"SSI"},120365:{c:"l",f:"SSI"},120366:{c:"m",f:"SSI"},120367:{c:"n",f:"SSI"},120368:{c:"o",f:"SSI"},120369:{c:"p",f:"SSI"},120370:{c:"q",f:"SSI"},120371:{c:"r",f:"SSI"},120372:{c:"s",f:"SSI"},120373:{c:"t",f:"SSI"},120374:{c:"u",f:"SSI"},120375:{c:"v",f:"SSI"},120376:{c:"w",f:"SSI"},120377:{c:"x",f:"SSI"},120378:{c:"y",f:"SSI"},120379:{c:"z",f:"SSI"},120432:{c:"A",f:"T"},120433:{c:"B",f:"T"},120434:{c:"C",f:"T"},120435:{c:"D",f:"T"},120436:{c:"E",f:"T"},120437:{c:"F",f:"T"},120438:{c:"G",f:"T"},120439:{c:"H",f:"T"},120440:{c:"I",f:"T"},120441:{c:"J",f:"T"},120442:{c:"K",f:"T"},120443:{c:"L",f:"T"},120444:{c:"M",f:"T"},120445:{c:"N",f:"T"},120446:{c:"O",f:"T"},120447:{c:"P",f:"T"},120448:{c:"Q",f:"T"},120449:{c:"R",f:"T"},120450:{c:"S",f:"T"},120451:{c:"T",f:"T"},120452:{c:"U",f:"T"},120453:{c:"V",f:"T"},120454:{c:"W",f:"T"},120455:{c:"X",f:"T"},120456:{c:"Y",f:"T"},120457:{c:"Z",f:"T"},120458:{c:"a",f:"T"},120459:{c:"b",f:"T"},120460:{c:"c",f:"T"},120461:{c:"d",f:"T"},120462:{c:"e",f:"T"},120463:{c:"f",f:"T"},120464:{c:"g",f:"T"},120465:{c:"h",f:"T"},120466:{c:"i",f:"T"},120467:{c:"j",f:"T"},120468:{c:"k",f:"T"},120469:{c:"l",f:"T"},120470:{c:"m",f:"T"},120471:{c:"n",f:"T"},120472:{c:"o",f:"T"},120473:{c:"p",f:"T"},120474:{c:"q",f:"T"},120475:{c:"r",f:"T"},120476:{c:"s",f:"T"},120477:{c:"t",f:"T"},120478:{c:"u",f:"T"},120479:{c:"v",f:"T"},120480:{c:"w",f:"T"},120481:{c:"x",f:"T"},120482:{c:"y",f:"T"},120483:{c:"z",f:"T"},120488:{c:"A",f:"B"},120489:{c:"B",f:"B"},120490:{c:"\\393",f:"B"},120491:{c:"\\394",f:"B"},120492:{c:"E",f:"B"},120493:{c:"Z",f:"B"},120494:{c:"H",f:"B"},120495:{c:"\\398",f:"B"},120496:{c:"I",f:"B"},120497:{c:"K",f:"B"},120498:{c:"\\39B",f:"B"},120499:{c:"M",f:"B"},120500:{c:"N",f:"B"},120501:{c:"\\39E",f:"B"},120502:{c:"O",f:"B"},120503:{c:"\\3A0",f:"B"},120504:{c:"P",f:"B"},120506:{c:"\\3A3",f:"B"},120507:{c:"T",f:"B"},120508:{c:"\\3A5",f:"B"},120509:{c:"\\3A6",f:"B"},120510:{c:"X",f:"B"},120511:{c:"\\3A8",f:"B"},120512:{c:"\\3A9",f:"B"},120513:{c:"\\2207",f:"B"},120546:{c:"A",f:"I"},120547:{c:"B",f:"I"},120548:{c:"\\393",f:"I"},120549:{c:"\\394",f:"I"},120550:{c:"E",f:"I"},120551:{c:"Z",f:"I"},120552:{c:"H",f:"I"},120553:{c:"\\398",f:"I"},120554:{c:"I",f:"I"},120555:{c:"K",f:"I"},120556:{c:"\\39B",f:"I"},120557:{c:"M",f:"I"},120558:{c:"N",f:"I"},120559:{c:"\\39E",f:"I"},120560:{c:"O",f:"I"},120561:{c:"\\3A0",f:"I"},120562:{c:"P",f:"I"},120564:{c:"\\3A3",f:"I"},120565:{c:"T",f:"I"},120566:{c:"\\3A5",f:"I"},120567:{c:"\\3A6",f:"I"},120568:{c:"X",f:"I"},120569:{c:"\\3A8",f:"I"},120570:{c:"\\3A9",f:"I"},120572:{c:"\\3B1",f:"I"},120573:{c:"\\3B2",f:"I"},120574:{c:"\\3B3",f:"I"},120575:{c:"\\3B4",f:"I"},120576:{c:"\\3B5",f:"I"},120577:{c:"\\3B6",f:"I"},120578:{c:"\\3B7",f:"I"},120579:{c:"\\3B8",f:"I"},120580:{c:"\\3B9",f:"I"},120581:{c:"\\3BA",f:"I"},120582:{c:"\\3BB",f:"I"},120583:{c:"\\3BC",f:"I"},120584:{c:"\\3BD",f:"I"},120585:{c:"\\3BE",f:"I"},120586:{c:"\\3BF",f:"I"},120587:{c:"\\3C0",f:"I"},120588:{c:"\\3C1",f:"I"},120589:{c:"\\3C2",f:"I"},120590:{c:"\\3C3",f:"I"},120591:{c:"\\3C4",f:"I"},120592:{c:"\\3C5",f:"I"},120593:{c:"\\3C6",f:"I"},120594:{c:"\\3C7",f:"I"},120595:{c:"\\3C8",f:"I"},120596:{c:"\\3C9",f:"I"},120597:{c:"\\2202"},120598:{c:"\\3F5",f:"I"},120599:{c:"\\3D1",f:"I"},120600:{c:"\\E009",f:"A"},120601:{c:"\\3D5",f:"I"},120602:{c:"\\3F1",f:"I"},120603:{c:"\\3D6",f:"I"},120604:{c:"A",f:"BI"},120605:{c:"B",f:"BI"},120606:{c:"\\393",f:"BI"},120607:{c:"\\394",f:"BI"},120608:{c:"E",f:"BI"},120609:{c:"Z",f:"BI"},120610:{c:"H",f:"BI"},120611:{c:"\\398",f:"BI"},120612:{c:"I",f:"BI"},120613:{c:"K",f:"BI"},120614:{c:"\\39B",f:"BI"},120615:{c:"M",f:"BI"},120616:{c:"N",f:"BI"},120617:{c:"\\39E",f:"BI"},120618:{c:"O",f:"BI"},120619:{c:"\\3A0",f:"BI"},120620:{c:"P",f:"BI"},120622:{c:"\\3A3",f:"BI"},120623:{c:"T",f:"BI"},120624:{c:"\\3A5",f:"BI"},120625:{c:"\\3A6",f:"BI"},120626:{c:"X",f:"BI"},120627:{c:"\\3A8",f:"BI"},120628:{c:"\\3A9",f:"BI"},120630:{c:"\\3B1",f:"BI"},120631:{c:"\\3B2",f:"BI"},120632:{c:"\\3B3",f:"BI"},120633:{c:"\\3B4",f:"BI"},120634:{c:"\\3B5",f:"BI"},120635:{c:"\\3B6",f:"BI"},120636:{c:"\\3B7",f:"BI"},120637:{c:"\\3B8",f:"BI"},120638:{c:"\\3B9",f:"BI"},120639:{c:"\\3BA",f:"BI"},120640:{c:"\\3BB",f:"BI"},120641:{c:"\\3BC",f:"BI"},120642:{c:"\\3BD",f:"BI"},120643:{c:"\\3BE",f:"BI"},120644:{c:"\\3BF",f:"BI"},120645:{c:"\\3C0",f:"BI"},120646:{c:"\\3C1",f:"BI"},120647:{c:"\\3C2",f:"BI"},120648:{c:"\\3C3",f:"BI"},120649:{c:"\\3C4",f:"BI"},120650:{c:"\\3C5",f:"BI"},120651:{c:"\\3C6",f:"BI"},120652:{c:"\\3C7",f:"BI"},120653:{c:"\\3C8",f:"BI"},120654:{c:"\\3C9",f:"BI"},120655:{c:"\\2202",f:"B"},120656:{c:"\\3F5",f:"BI"},120657:{c:"\\3D1",f:"BI"},120658:{c:"\\E009",f:"A"},120659:{c:"\\3D5",f:"BI"},120660:{c:"\\3F1",f:"BI"},120661:{c:"\\3D6",f:"BI"},120662:{c:"A",f:"SSB"},120663:{c:"B",f:"SSB"},120664:{c:"\\393",f:"SSB"},120665:{c:"\\394",f:"SSB"},120666:{c:"E",f:"SSB"},120667:{c:"Z",f:"SSB"},120668:{c:"H",f:"SSB"},120669:{c:"\\398",f:"SSB"},120670:{c:"I",f:"SSB"},120671:{c:"K",f:"SSB"},120672:{c:"\\39B",f:"SSB"},120673:{c:"M",f:"SSB"},120674:{c:"N",f:"SSB"},120675:{c:"\\39E",f:"SSB"},120676:{c:"O",f:"SSB"},120677:{c:"\\3A0",f:"SSB"},120678:{c:"P",f:"SSB"},120680:{c:"\\3A3",f:"SSB"},120681:{c:"T",f:"SSB"},120682:{c:"\\3A5",f:"SSB"},120683:{c:"\\3A6",f:"SSB"},120684:{c:"X",f:"SSB"},120685:{c:"\\3A8",f:"SSB"},120686:{c:"\\3A9",f:"SSB"},120782:{c:"0",f:"B"},120783:{c:"1",f:"B"},120784:{c:"2",f:"B"},120785:{c:"3",f:"B"},120786:{c:"4",f:"B"},120787:{c:"5",f:"B"},120788:{c:"6",f:"B"},120789:{c:"7",f:"B"},120790:{c:"8",f:"B"},120791:{c:"9",f:"B"},120802:{c:"0",f:"SS"},120803:{c:"1",f:"SS"},120804:{c:"2",f:"SS"},120805:{c:"3",f:"SS"},120806:{c:"4",f:"SS"},120807:{c:"5",f:"SS"},120808:{c:"6",f:"SS"},120809:{c:"7",f:"SS"},120810:{c:"8",f:"SS"},120811:{c:"9",f:"SS"},120812:{c:"0",f:"SSB"},120813:{c:"1",f:"SSB"},120814:{c:"2",f:"SSB"},120815:{c:"3",f:"SSB"},120816:{c:"4",f:"SSB"},120817:{c:"5",f:"SSB"},120818:{c:"6",f:"SSB"},120819:{c:"7",f:"SSB"},120820:{c:"8",f:"SSB"},120821:{c:"9",f:"SSB"},120822:{c:"0",f:"T"},120823:{c:"1",f:"T"},120824:{c:"2",f:"T"},120825:{c:"3",f:"T"},120826:{c:"4",f:"T"},120827:{c:"5",f:"T"},120828:{c:"6",f:"T"},120829:{c:"7",f:"T"},120830:{c:"8",f:"T"},120831:{c:"9",f:"T"}})},10402:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.sansSerifBoldItalic=void 0;var i=e(73779);var f=e(92351);t.sansSerifBoldItalic=(0,i.AddCSS)(f.sansSerifBoldItalic,{305:{f:"SSB"},567:{f:"SSB"}})},13274:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.sansSerifBold=void 0;var i=e(73779);var f=e(57175);t.sansSerifBold=(0,i.AddCSS)(f.sansSerifBold,{8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/"},8710:{c:"\\394"}})},20038:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.sansSerifItalic=void 0;var i=e(73779);var f=e(3076);t.sansSerifItalic=(0,i.AddCSS)(f.sansSerifItalic,{913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/"},8710:{c:"\\394"}})},74395:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.sansSerif=void 0;var i=e(73779);var f=e(76798);t.sansSerif=(0,i.AddCSS)(f.sansSerif,{913:{c:"A"},914:{c:"B"},917:{c:"E"},918:{c:"Z"},919:{c:"H"},921:{c:"I"},922:{c:"K"},924:{c:"M"},925:{c:"N"},927:{c:"O"},929:{c:"P"},932:{c:"T"},935:{c:"X"},8213:{c:"\\2014"},8215:{c:"_"},8260:{c:"/"},8710:{c:"\\394"}})},40126:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.scriptBold=void 0;var i=e(84356);Object.defineProperty(t,"scriptBold",{enumerable:true,get:function(){return i.scriptBold}})},91543:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.script=void 0;var i=e(77383);Object.defineProperty(t,"script",{enumerable:true,get:function(){return i.script}})},33156:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.smallop=void 0;var i=e(73779);var f=e(62993);t.smallop=(0,i.AddCSS)(f.smallop,{8260:{c:"/"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},10072:{c:"\\2223"},10764:{c:"\\222C\\222C"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}})},73182:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.texCalligraphicBold=void 0;var i=e(73779);var f=e(65410);t.texCalligraphicBold=(0,i.AddCSS)(f.texCalligraphicBold,{305:{f:"B"},567:{f:"B"}})},56725:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.texCalligraphic=void 0;var i=e(77270);Object.defineProperty(t,"texCalligraphic",{enumerable:true,get:function(){return i.texCalligraphic}})},2763:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.texMathit=void 0;var i=e(29503);Object.defineProperty(t,"texMathit",{enumerable:true,get:function(){return i.texMathit}})},61315:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.texOldstyleBold=void 0;var i=e(11709);Object.defineProperty(t,"texOldstyleBold",{enumerable:true,get:function(){return i.texOldstyleBold}})},77446:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.texOldstyle=void 0;var i=e(49176);Object.defineProperty(t,"texOldstyle",{enumerable:true,get:function(){return i.texOldstyle}})},11105:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.texSize3=void 0;var i=e(73779);var f=e(77839);t.texSize3=(0,i.AddCSS)(f.texSize3,{8260:{c:"/"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},12296:{c:"\\27E8"},12297:{c:"\\27E9"}})},97425:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.texSize4=void 0;var i=e(73779);var f=e(68291);t.texSize4=(0,i.AddCSS)(f.texSize4,{8260:{c:"/"},9001:{c:"\\27E8"},9002:{c:"\\27E9"},12296:{c:"\\27E8"},12297:{c:"\\27E9"},57685:{c:"\\E153\\E152"},57686:{c:"\\E151\\E150"}})},30188:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.texVariant=void 0;var i=e(73779);var f=e(19539);t.texVariant=(0,i.AddCSS)(f.texVariant,{1008:{c:"\\E009"},8463:{f:""},8740:{c:"\\E006"},8742:{c:"\\E007"},8808:{c:"\\E00C"},8809:{c:"\\E00D"},8816:{c:"\\E011"},8817:{c:"\\E00E"},8840:{c:"\\E016"},8841:{c:"\\E018"},8842:{c:"\\E01A"},8843:{c:"\\E01B"},10887:{c:"\\E010"},10888:{c:"\\E00F"},10955:{c:"\\E017"},10956:{c:"\\E019"}})},88284:function(c,t,e){var i=this&&this.__assign||function(){i=Object.assign||function(c){for(var t,e=1,i=arguments.length;e0)&&!(f=i.next()).done)r.push(f.value)}catch(a){s={error:a}}finally{try{if(f&&!f.done&&(e=i["return"]))e.call(i)}finally{if(s)throw s.error}}return r};var r=this&&this.__spreadArray||function(c,t,e){if(e||arguments.length===2)for(var i=0,f=t.length,r;i=c.length)c=void 0;return{value:c&&c[i++],done:!c}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:true});t.FontData=t.NOSTRETCH=t.H=t.V=void 0;var a=e(36059);t.V=1;t.H=2;t.NOSTRETCH={dir:0};var o=function(){function c(c){var t,e,o,n;if(c===void 0){c=null}this.variant={};this.delimiters={};this.cssFontMap={};this.remapChars={};this.skewIcFactor=.75;var l=this.constructor;this.options=(0,a.userOptions)((0,a.defaultOptions)({},l.OPTIONS),c);this.params=i({},l.defaultParams);this.sizeVariants=r([],f(l.defaultSizeVariants),false);this.stretchVariants=r([],f(l.defaultStretchVariants),false);this.cssFontMap=i({},l.defaultCssFonts);try{for(var d=s(Object.keys(this.cssFontMap)),S=d.next();!S.done;S=d.next()){var u=S.value;if(this.cssFontMap[u][0]==="unknown"){this.cssFontMap[u][0]=this.options.unknownFamily}}}catch(v){t={error:v}}finally{try{if(S&&!S.done&&(e=d.return))e.call(d)}finally{if(t)throw t.error}}this.cssFamilyPrefix=l.defaultCssFamilyPrefix;this.createVariants(l.defaultVariants);this.defineDelimiters(l.defaultDelimiters);try{for(var h=s(Object.keys(l.defaultChars)),p=h.next();!p.done;p=h.next()){var B=p.value;this.defineChars(B,l.defaultChars[B])}}catch(m){o={error:m}}finally{try{if(p&&!p.done&&(n=h.return))n.call(h)}finally{if(o)throw o.error}}this.defineRemap("accent",l.defaultAccentMap);this.defineRemap("mo",l.defaultMoMap);this.defineRemap("mn",l.defaultMnMap)}c.charOptions=function(c,t){var e=c[t];if(e.length===3){e[3]={}}return e[3]};Object.defineProperty(c.prototype,"styles",{get:function(){return this._styles},set:function(c){this._styles=c},enumerable:false,configurable:true});c.prototype.createVariant=function(c,t,e){if(t===void 0){t=null}if(e===void 0){e=null}var i={linked:[],chars:t?Object.create(this.variant[t].chars):{}};if(e&&this.variant[e]){Object.assign(i.chars,this.variant[e].chars);this.variant[e].linked.push(i.chars);i.chars=Object.create(i.chars)}this.remapSmpChars(i.chars,c);this.variant[c]=i};c.prototype.remapSmpChars=function(c,t){var e,i,r,a;var o=this.constructor;if(o.VariantSmp[t]){var n=o.SmpRemap;var l=[null,null,o.SmpRemapGreekU,o.SmpRemapGreekL];try{for(var d=s(o.SmpRanges),S=d.next();!S.done;S=d.next()){var u=f(S.value,3),h=u[0],p=u[1],B=u[2];var v=o.VariantSmp[t][h];if(!v)continue;for(var m=p;m<=B;m++){if(m===930)continue;var k=v+m-p;c[m]=this.smpChar(n[k]||k)}if(l[h]){try{for(var y=(r=void 0,s(Object.keys(l[h]).map((function(c){return parseInt(c)})))),I=y.next();!I.done;I=y.next()){var m=I.value;c[m]=this.smpChar(v+l[h][m])}}catch(A){r={error:A}}finally{try{if(I&&!I.done&&(a=y.return))a.call(y)}finally{if(r)throw r.error}}}}}catch(b){e={error:b}}finally{try{if(S&&!S.done&&(i=d.return))i.call(d)}finally{if(e)throw e.error}}}if(t==="bold"){c[988]=this.smpChar(120778);c[989]=this.smpChar(120779)}};c.prototype.smpChar=function(c){return[,,,{smp:c}]};c.prototype.createVariants=function(c){var t,e;try{for(var i=s(c),f=i.next();!f.done;f=i.next()){var r=f.value;this.createVariant(r[0],r[1],r[2])}}catch(a){t={error:a}}finally{try{if(f&&!f.done&&(e=i.return))e.call(i)}finally{if(t)throw t.error}}};c.prototype.defineChars=function(c,t){var e,i;var f=this.variant[c];Object.assign(f.chars,t);try{for(var r=s(f.linked),a=r.next();!a.done;a=r.next()){var o=a.value;Object.assign(o,t)}}catch(n){e={error:n}}finally{try{if(a&&!a.done&&(i=r.return))i.call(r)}finally{if(e)throw e.error}}};c.prototype.defineDelimiters=function(c){Object.assign(this.delimiters,c)};c.prototype.defineRemap=function(c,t){if(!this.remapChars.hasOwnProperty(c)){this.remapChars[c]={}}Object.assign(this.remapChars[c],t)};c.prototype.getDelimiter=function(c){return this.delimiters[c]};c.prototype.getSizeVariant=function(c,t){if(this.delimiters[c].variants){t=this.delimiters[c].variants[t]}return this.sizeVariants[t]};c.prototype.getStretchVariant=function(c,t){return this.stretchVariants[this.delimiters[c].stretchv?this.delimiters[c].stretchv[t]:0]};c.prototype.getChar=function(c,t){return this.variant[c].chars[t]};c.prototype.getVariant=function(c){return this.variant[c]};c.prototype.getCssFont=function(c){return this.cssFontMap[c]||["serif",false,false]};c.prototype.getFamily=function(c){return this.cssFamilyPrefix?this.cssFamilyPrefix+", "+c:c};c.prototype.getRemappedChar=function(c,t){var e=this.remapChars[c]||{};return e[t]};c.OPTIONS={unknownFamily:"serif"};c.JAX="common";c.NAME="";c.defaultVariants=[["normal"],["bold","normal"],["italic","normal"],["bold-italic","italic","bold"],["double-struck","bold"],["fraktur","normal"],["bold-fraktur","bold","fraktur"],["script","italic"],["bold-script","bold-italic","script"],["sans-serif","normal"],["bold-sans-serif","bold","sans-serif"],["sans-serif-italic","italic","sans-serif"],["sans-serif-bold-italic","bold-italic","bold-sans-serif"],["monospace","normal"]];c.defaultCssFonts={normal:["unknown",false,false],bold:["unknown",false,true],italic:["unknown",true,false],"bold-italic":["unknown",true,true],"double-struck":["unknown",false,true],fraktur:["unknown",false,false],"bold-fraktur":["unknown",false,true],script:["cursive",false,false],"bold-script":["cursive",false,true],"sans-serif":["sans-serif",false,false],"bold-sans-serif":["sans-serif",false,true],"sans-serif-italic":["sans-serif",true,false],"sans-serif-bold-italic":["sans-serif",true,true],monospace:["monospace",false,false]};c.defaultCssFamilyPrefix="";c.VariantSmp={bold:[119808,119834,120488,120514,120782],italic:[119860,119886,120546,120572],"bold-italic":[119912,119938,120604,120630],script:[119964,119990],"bold-script":[120016,120042],fraktur:[120068,120094],"double-struck":[120120,120146,,,120792],"bold-fraktur":[120172,120198],"sans-serif":[120224,120250,,,120802],"bold-sans-serif":[120276,120302,120662,120688,120812],"sans-serif-italic":[120328,120354],"sans-serif-bold-italic":[120380,120406,120720,120746],monospace:[120432,120458,,,120822]};c.SmpRanges=[[0,65,90],[1,97,122],[2,913,937],[3,945,969],[4,48,57]];c.SmpRemap={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484};c.SmpRemapGreekU={8711:25,1012:17};c.SmpRemapGreekL={977:27,981:29,982:31,1008:28,1009:30,1013:26,8706:25};c.defaultAccentMap={768:"ˋ",769:"ˊ",770:"ˆ",771:"˜",772:"ˉ",774:"˘",775:"˙",776:"¨",778:"˚",780:"ˇ",8594:"⃗",8242:"'",8243:"''",8244:"'''",8245:"`",8246:"``",8247:"```",8279:"''''",8400:"↼",8401:"⇀",8406:"←",8417:"↔",8432:"*",8411:"...",8412:"....",8428:"⇁",8429:"↽",8430:"←",8431:"→"};c.defaultMoMap={45:"−"};c.defaultMnMap={45:"−"};c.defaultParams={x_height:.442,quad:1,num1:.676,num2:.394,num3:.444,denom1:.686,denom2:.345,sup1:.413,sup2:.363,sup3:.289,sub1:.15,sub2:.247,sup_drop:.386,sub_drop:.05,delim1:2.39,delim2:1,axis_height:.25,rule_thickness:.06,big_op_spacing1:.111,big_op_spacing2:.167,big_op_spacing3:.2,big_op_spacing4:.6,big_op_spacing5:.1,surd_height:.075,scriptspace:.05,nulldelimiterspace:.12,delimiterfactor:901,delimitershortfall:.3,min_rule_thickness:1.25,separation_factor:1.75,extra_ic:.033};c.defaultDelimiters={};c.defaultChars={};c.defaultSizeVariants=[];c.defaultStretchVariants=[];return c}();t.FontData=o},63410:function(c,t){var e=this&&this.__extends||function(){var c=function(t,e){c=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(c,t){c.__proto__=t}||function(c,t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))c[e]=t[e]};return c(t,e)};return function(t,e){if(typeof e!=="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");c(t,e);function i(){this.constructor=t}t.prototype=e===null?Object.create(e):(i.prototype=e.prototype,new i)}}();var i=this&&this.__assign||function(){i=Object.assign||function(c){for(var t,e=1,i=arguments.length;e0)&&!(f=i.next()).done)r.push(f.value)}catch(a){s={error:a}}finally{try{if(f&&!f.done&&(e=i["return"]))e.call(i)}finally{if(s)throw s.error}}return r};var r=this&&this.__spreadArray||function(c,t,e){if(e||arguments.length===2)for(var i=0,f=t.length,r;i{Object.defineProperty(t,"__esModule",{value:true});t.boldItalic=void 0;t.boldItalic={47:[.711,.21,.894],305:[.452,.008,.394,{sk:.0319}],567:[.451,.201,.439,{sk:.0958}],8260:[.711,.21,.894],8710:[.711,0,.958,{sk:.192}],10744:[.711,.21,.894]}},74585:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.bold=void 0;t.bold={33:[.705,0,.35],34:[.694,-.329,.603],35:[.694,.193,.958],36:[.75,.056,.575],37:[.75,.056,.958],38:[.705,.011,.894],39:[.694,-.329,.319],40:[.75,.249,.447],41:[.75,.249,.447],42:[.75,-.306,.575],43:[.633,.131,.894],44:[.171,.194,.319],45:[.278,-.166,.383],46:[.171,0,.319],47:[.75,.25,.575],58:[.444,0,.319],59:[.444,.194,.319],60:[.587,.085,.894],61:[.393,-.109,.894],62:[.587,.085,.894],63:[.7,0,.543],64:[.699,.006,.894],91:[.75,.25,.319],92:[.75,.25,.575],93:[.75,.25,.319],94:[.694,-.52,.575],95:[-.01,.061,.575],96:[.706,-.503,.575],123:[.75,.25,.575],124:[.75,.249,.319],125:[.75,.25,.575],126:[.344,-.202,.575],168:[.695,-.535,.575],172:[.371,-.061,.767],175:[.607,-.54,.575],176:[.702,-.536,.575],177:[.728,.035,.894],180:[.706,-.503,.575],183:[.336,-.166,.319],215:[.53,.028,.894],247:[.597,.096,.894],305:[.442,0,.278,{sk:.0278}],567:[.442,.205,.306,{sk:.0833}],697:[.563,-.033,.344],710:[.694,-.52,.575],711:[.66,-.515,.575],713:[.607,-.54,.575],714:[.706,-.503,.575],715:[.706,-.503,.575],728:[.694,-.5,.575],729:[.695,-.525,.575],730:[.702,-.536,.575],732:[.694,-.552,.575],768:[.706,-.503,0],769:[.706,-.503,0],770:[.694,-.52,0],771:[.694,-.552,0],772:[.607,-.54,0],774:[.694,-.5,0],775:[.695,-.525,0],776:[.695,-.535,0],778:[.702,-.536,0],779:[.714,-.511,0],780:[.66,-.515,0],824:[.711,.21,0],8194:[0,0,.5],8195:[0,0,.999],8196:[0,0,.333],8197:[0,0,.25],8198:[0,0,.167],8201:[0,0,.167],8202:[0,0,.083],8211:[.3,-.249,.575],8212:[.3,-.249,1.15],8213:[.3,-.249,1.15],8214:[.75,.248,.575],8215:[-.01,.061,.575],8216:[.694,-.329,.319],8217:[.694,-.329,.319],8220:[.694,-.329,.603],8221:[.694,-.329,.603],8224:[.702,.211,.511],8225:[.702,.202,.511],8226:[.474,-.028,.575],8230:[.171,0,1.295],8242:[.563,-.033,.344],8243:[.563,0,.688],8244:[.563,0,1.032],8254:[.607,-.54,.575],8260:[.75,.25,.575],8279:[.563,0,1.376],8407:[.723,-.513,.575],8463:[.694,.008,.668,{sk:-.0319}],8467:[.702,.019,.474,{sk:.128}],8472:[.461,.21,.74],8501:[.694,0,.703],8592:[.518,.017,1.15],8593:[.694,.193,.575],8594:[.518,.017,1.15],8595:[.694,.194,.575],8596:[.518,.017,1.15],8597:[.767,.267,.575],8598:[.724,.194,1.15],8599:[.724,.193,1.15],8600:[.694,.224,1.15],8601:[.694,.224,1.15],8602:[.711,.21,1.15],8603:[.711,.21,1.15],8614:[.518,.017,1.15],8617:[.518,.017,1.282],8618:[.518,.017,1.282],8622:[.711,.21,1.15],8636:[.518,-.22,1.15],8637:[.281,.017,1.15],8640:[.518,-.22,1.15],8641:[.281,.017,1.15],8652:[.718,.017,1.15],8653:[.711,.21,1.15],8654:[.711,.21,1.15],8655:[.711,.21,1.15],8656:[.547,.046,1.15],8657:[.694,.193,.703],8658:[.547,.046,1.15],8659:[.694,.194,.703],8660:[.547,.046,1.15],8661:[.767,.267,.703],8704:[.694,.016,.639],8707:[.694,0,.639],8708:[.711,.21,.639],8709:[.767,.073,.575],8710:[.698,0,.958],8712:[.587,.086,.767],8713:[.711,.21,.767],8715:[.587,.086,.767],8716:[.711,.21,.767],8722:[.281,-.221,.894],8723:[.537,.227,.894],8725:[.75,.25,.575],8726:[.75,.25,.575],8727:[.472,-.028,.575],8728:[.474,-.028,.575],8729:[.474,-.028,.575],8730:[.82,.18,.958,{ic:.03}],8733:[.451,.008,.894],8734:[.452,.008,1.15],8736:[.714,0,.722],8739:[.75,.249,.319],8740:[.75,.249,.319],8741:[.75,.248,.575],8742:[.75,.248,.575],8743:[.604,.017,.767],8744:[.604,.016,.767],8745:[.603,.016,.767],8746:[.604,.016,.767],8747:[.711,.211,.569,{ic:.063}],8764:[.391,-.109,.894],8768:[.583,.082,.319],8769:[.711,.21,.894],8771:[.502,0,.894],8772:[.711,.21,.894],8773:[.638,.027,.894],8775:[.711,.21,.894],8776:[.524,-.032,.894],8777:[.711,.21,.894],8781:[.533,.032,.894],8784:[.721,-.109,.894],8800:[.711,.21,.894],8801:[.505,0,.894],8802:[.711,.21,.894],8804:[.697,.199,.894],8805:[.697,.199,.894],8810:[.617,.116,1.15],8811:[.618,.116,1.15],8813:[.711,.21,.894],8814:[.711,.21,.894],8815:[.711,.21,.894],8816:[.711,.21,.894],8817:[.711,.21,.894],8826:[.585,.086,.894],8827:[.586,.086,.894],8832:[.711,.21,.894],8833:[.711,.21,.894],8834:[.587,.085,.894],8835:[.587,.086,.894],8836:[.711,.21,.894],8837:[.711,.21,.894],8838:[.697,.199,.894],8839:[.697,.199,.894],8840:[.711,.21,.894],8841:[.711,.21,.894],8846:[.604,.016,.767],8849:[.697,.199,.894],8850:[.697,.199,.894],8851:[.604,0,.767],8852:[.604,0,.767],8853:[.632,.132,.894],8854:[.632,.132,.894],8855:[.632,.132,.894],8856:[.632,.132,.894],8857:[.632,.132,.894],8866:[.693,0,.703],8867:[.693,0,.703],8868:[.694,0,.894],8869:[.693,0,.894],8872:[.75,.249,.974],8876:[.711,.21,.703],8877:[.75,.249,.974],8900:[.523,.021,.575],8901:[.336,-.166,.319],8902:[.502,0,.575],8904:[.54,.039,1],8930:[.711,.21,.894],8931:[.711,.21,.894],8942:[.951,.029,.319],8943:[.336,-.166,1.295],8945:[.871,-.101,1.323],8968:[.75,.248,.511],8969:[.75,.248,.511],8970:[.749,.248,.511],8971:[.749,.248,.511],8994:[.405,-.108,1.15],8995:[.392,-.126,1.15],9001:[.75,.249,.447],9002:[.75,.249,.447],9651:[.711,0,1.022],9653:[.711,0,1.022],9657:[.54,.039,.575],9661:[.5,.21,1.022],9663:[.5,.21,1.022],9667:[.539,.038,.575],9711:[.711,.211,1.15],9824:[.719,.129,.894],9825:[.711,.024,.894],9826:[.719,.154,.894],9827:[.719,.129,.894],9837:[.75,.017,.447],9838:[.741,.223,.447],9839:[.724,.224,.447],10072:[.75,.249,.319],10216:[.75,.249,.447],10217:[.75,.249,.447],10229:[.518,.017,1.805],10230:[.518,.017,1.833],10231:[.518,.017,2.126],10232:[.547,.046,1.868],10233:[.547,.046,1.87],10234:[.547,.046,2.126],10236:[.518,.017,1.833],10744:[.711,.21,.894],10799:[.53,.028,.894],10815:[.686,0,.9],10927:[.696,.199,.894],10928:[.697,.199,.894],12296:[.75,.249,.447],12297:[.75,.249,.447]}},4465:(c,t,e)=>{Object.defineProperty(t,"__esModule",{value:true});t.delimiters=t.VSIZES=t.HDW3=t.HDW2=t.HDW1=void 0;var i=e(88284);t.HDW1=[.75,.25,.875];t.HDW2=[.85,.349,.667];t.HDW3=[.583,.082,.5];t.VSIZES=[1,1.2,1.8,2.4,3];var f={c:47,dir:i.V,sizes:t.VSIZES};var r={c:175,dir:i.H,sizes:[.5],stretch:[0,175],HDW:[.59,-.544,.5]};var s={c:710,dir:i.H,sizes:[.5,.556,1,1.444,1.889]};var a={c:732,dir:i.H,sizes:[.5,.556,1,1.444,1.889]};var o={c:8211,dir:i.H,sizes:[.5],stretch:[0,8211],HDW:[.285,-.248,.5]};var n={c:8592,dir:i.H,sizes:[1],stretch:[8592,8722],HDW:t.HDW3};var l={c:8594,dir:i.H,sizes:[1],stretch:[0,8722,8594],HDW:t.HDW3};var d={c:8596,dir:i.H,sizes:[1],stretch:[8592,8722,8594],HDW:t.HDW3};var S={c:8612,dir:i.H,stretch:[8592,8722,8739],HDW:t.HDW3,min:1.278};var u={c:8614,dir:i.H,sizes:[1],stretch:[8739,8722,8594],HDW:t.HDW3};var h={c:8656,dir:i.H,sizes:[1],stretch:[8656,61],HDW:t.HDW3};var p={c:8658,dir:i.H,sizes:[1],stretch:[0,61,8658],HDW:t.HDW3};var B={c:8660,dir:i.H,sizes:[1],stretch:[8656,61,8658],HDW:t.HDW3};var v={c:8722,dir:i.H,sizes:[.778],stretch:[0,8722],HDW:t.HDW3};var m={c:8739,dir:i.V,sizes:[1],stretch:[0,8739],HDW:[.627,.015,.333]};var k={c:9180,dir:i.H,sizes:[.778,1],schar:[8994,8994],variants:[5,0],stretch:[57680,57684,57681],HDW:[.32,.2,.5]};var y={c:9181,dir:i.H,sizes:[.778,1],schar:[8995,8995],variants:[5,0],stretch:[57682,57684,57683],HDW:[.32,.2,.5]};var I={c:9182,dir:i.H,stretch:[57680,57684,57681,57685],HDW:[.32,.2,.5],min:1.8};var A={c:9183,dir:i.H,stretch:[57682,57684,57683,57686],HDW:[.32,.2,.5],min:1.8};var b={c:10216,dir:i.V,sizes:t.VSIZES};var x={c:10217,dir:i.V,sizes:t.VSIZES};var M={c:10502,dir:i.H,stretch:[8656,61,8739],HDW:t.HDW3,min:1.278};var _={c:10503,dir:i.H,stretch:[8872,61,8658],HDW:t.HDW3,min:1.278};t.delimiters={40:{dir:i.V,sizes:t.VSIZES,stretch:[9115,9116,9117],HDW:[.85,.349,.875]},41:{dir:i.V,sizes:t.VSIZES,stretch:[9118,9119,9120],HDW:[.85,.349,.875]},45:v,47:f,61:{dir:i.H,sizes:[.778],stretch:[0,61],HDW:t.HDW3},91:{dir:i.V,sizes:t.VSIZES,stretch:[9121,9122,9123],HDW:t.HDW2},92:{dir:i.V,sizes:t.VSIZES},93:{dir:i.V,sizes:t.VSIZES,stretch:[9124,9125,9126],HDW:t.HDW2},94:s,95:o,123:{dir:i.V,sizes:t.VSIZES,stretch:[9127,9130,9129,9128],HDW:[.85,.349,.889]},124:{dir:i.V,sizes:[1],stretch:[0,8739],HDW:[.75,.25,.333]},125:{dir:i.V,sizes:t.VSIZES,stretch:[9131,9130,9133,9132],HDW:[.85,.349,.889]},126:a,175:r,710:s,713:r,732:a,770:s,771:a,818:o,8211:o,8212:o,8213:o,8214:{dir:i.V,sizes:[.602,1],schar:[0,8741],variants:[1,0],stretch:[0,8741],HDW:[.602,0,.556]},8215:o,8254:r,8407:l,8592:n,8593:{dir:i.V,sizes:[.888],stretch:[8593,9168],HDW:[.6,0,.667]},8594:l,8595:{dir:i.V,sizes:[.888],stretch:[0,9168,8595],HDW:[.6,0,.667]},8596:d,8597:{dir:i.V,sizes:[1.044],stretch:[8593,9168,8595],HDW:t.HDW1},8606:{dir:i.H,sizes:[1],stretch:[8606,8722],HDW:t.HDW3},8608:{dir:i.H,sizes:[1],stretch:[0,8722,8608],HDW:t.HDW3},8612:S,8613:{dir:i.V,stretch:[8593,9168,8869],HDW:t.HDW1,min:1.555},8614:u,8615:{dir:i.V,stretch:[8868,9168,8595],HDW:t.HDW1,min:1.555},8624:{dir:i.V,sizes:[.722],stretch:[8624,9168],HDW:t.HDW1},8625:{dir:i.V,sizes:[.722],stretch:[8625,9168],HDW:t.HDW1},8636:{dir:i.H,sizes:[1],stretch:[8636,8722],HDW:t.HDW3},8637:{dir:i.H,sizes:[1],stretch:[8637,8722],HDW:t.HDW3},8638:{dir:i.V,sizes:[.888],stretch:[8638,9168],HDW:t.HDW1},8639:{dir:i.V,sizes:[.888],stretch:[8639,9168],HDW:t.HDW1},8640:{dir:i.H,sizes:[1],stretch:[0,8722,8640],HDW:t.HDW3},8641:{dir:i.H,sizes:[1],stretch:[0,8722,8641],HDW:t.HDW3},8642:{dir:i.V,sizes:[.888],stretch:[0,9168,8642],HDW:t.HDW1},8643:{dir:i.V,sizes:[.888],stretch:[0,9168,8643],HDW:t.HDW1},8656:h,8657:{dir:i.V,sizes:[.888],stretch:[8657,8214],HDW:[.599,0,.778]},8658:p,8659:{dir:i.V,sizes:[.888],stretch:[0,8214,8659],HDW:[.6,0,.778]},8660:B,8661:{dir:i.V,sizes:[1.044],stretch:[8657,8214,8659],HDW:[.75,.25,.778]},8666:{dir:i.H,sizes:[1],stretch:[8666,8801],HDW:[.464,-.036,.5]},8667:{dir:i.H,sizes:[1],stretch:[0,8801,8667],HDW:[.464,-.036,.5]},8722:v,8725:f,8730:{dir:i.V,sizes:t.VSIZES,stretch:[57345,57344,9143],fullExt:[.65,2.3],HDW:[.85,.35,1.056]},8739:m,8741:{dir:i.V,sizes:[1],stretch:[0,8741],HDW:[.627,.015,.556]},8968:{dir:i.V,sizes:t.VSIZES,stretch:[9121,9122],HDW:t.HDW2},8969:{dir:i.V,sizes:t.VSIZES,stretch:[9124,9125],HDW:t.HDW2},8970:{dir:i.V,sizes:t.VSIZES,stretch:[0,9122,9123],HDW:t.HDW2},8971:{dir:i.V,sizes:t.VSIZES,stretch:[0,9125,9126],HDW:t.HDW2},8978:k,8994:k,8995:y,9001:b,9002:x,9130:{dir:i.V,sizes:[.32],stretch:[9130,9130,9130],HDW:[.29,.015,.889]},9135:o,9136:{dir:i.V,sizes:[.989],stretch:[9127,9130,9133],HDW:[.75,.25,.889]},9137:{dir:i.V,sizes:[.989],stretch:[9131,9130,9129],HDW:[.75,.25,.889]},9140:{dir:i.H,stretch:[9484,8722,9488],HDW:t.HDW3,min:1},9141:{dir:i.H,stretch:[9492,8722,9496],HDW:t.HDW3,min:1},9168:{dir:i.V,sizes:[.602,1],schar:[0,8739],variants:[1,0],stretch:[0,8739],HDW:[.602,0,.333]},9180:k,9181:y,9182:I,9183:A,9184:{dir:i.H,stretch:[714,713,715],HDW:[.59,-.544,.5],min:1},9185:{dir:i.H,stretch:[715,713,714],HDW:[.59,-.544,.5],min:1},9472:o,10072:m,10216:b,10217:x,10222:{dir:i.V,sizes:[.989],stretch:[9127,9130,9129],HDW:[.75,.25,.889]},10223:{dir:i.V,sizes:[.989],stretch:[9131,9130,9133],HDW:[.75,.25,.889]},10229:n,10230:l,10231:d,10232:h,10233:p,10234:B,10235:S,10236:u,10237:M,10238:_,10502:M,10503:_,10574:{dir:i.H,stretch:[8636,8722,8640],HDW:t.HDW3,min:2},10575:{dir:i.V,stretch:[8638,9168,8642],HDW:t.HDW1,min:1.776},10576:{dir:i.H,stretch:[8637,8722,8641],HDW:t.HDW3,min:2},10577:{dir:i.V,stretch:[8639,9168,8643],HDW:t.HDW1,min:.5},10586:{dir:i.H,stretch:[8636,8722,8739],HDW:t.HDW3,min:1.278},10587:{dir:i.H,stretch:[8739,8722,8640],HDW:t.HDW3,min:1.278},10588:{dir:i.V,stretch:[8638,9168,8869],HDW:t.HDW1,min:1.556},10589:{dir:i.V,stretch:[8868,9168,8642],HDW:t.HDW1,min:1.556},10590:{dir:i.H,stretch:[8637,8722,8739],HDW:t.HDW3,min:1.278},10591:{dir:i.H,stretch:[8739,8722,8641],HDW:t.HDW3,min:1.278},10592:{dir:i.V,stretch:[8639,9168,8869],HDW:t.HDW1,min:1.776},10593:{dir:i.V,stretch:[8868,9168,8643],HDW:t.HDW1,min:1.776},12296:b,12297:x,65079:I,65080:A}},42206:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.doubleStruck=void 0;t.doubleStruck={}},84297:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.frakturBold=void 0;t.frakturBold={33:[.689,.012,.349],34:[.695,-.432,.254],38:[.696,.016,.871],39:[.695,-.436,.25],40:[.737,.186,.459],41:[.735,.187,.459],42:[.692,-.449,.328],43:[.598,.082,.893],44:[.107,.191,.328],45:[.275,-.236,.893],46:[.102,.015,.328],47:[.721,.182,.593],48:[.501,.012,.593],49:[.489,0,.593],50:[.491,0,.593],51:[.487,.193,.593],52:[.495,.196,.593],53:[.481,.19,.593],54:[.704,.012,.593],55:[.479,.197,.593],56:[.714,.005,.593],57:[.487,.195,.593],58:[.457,.012,.255],59:[.458,.19,.255],61:[.343,-.168,.582],63:[.697,.014,.428],91:[.74,.13,.257],93:[.738,.132,.257],94:[.734,-.452,.59],8216:[.708,-.411,.254],8217:[.692,-.394,.254],8260:[.721,.182,.593],58113:[.63,.027,.587],58114:[.693,.212,.394,{ic:.014}],58115:[.681,.219,.387],58116:[.473,.212,.593],58117:[.684,.027,.393],58120:[.679,.22,.981],58121:[.717,.137,.727]}},46441:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.fraktur=void 0;t.fraktur={33:[.689,.012,.296],34:[.695,-.432,.215],38:[.698,.011,.738],39:[.695,-.436,.212],40:[.737,.186,.389],41:[.735,.187,.389],42:[.692,-.449,.278],43:[.598,.082,.756],44:[.107,.191,.278],45:[.275,-.236,.756],46:[.102,.015,.278],47:[.721,.182,.502],48:[.492,.013,.502],49:[.468,0,.502],50:[.474,0,.502],51:[.473,.182,.502],52:[.476,.191,.502],53:[.458,.184,.502],54:[.7,.013,.502],55:[.468,.181,.502],56:[.705,.01,.502],57:[.469,.182,.502],58:[.457,.012,.216],59:[.458,.189,.216],61:[.368,-.132,.756],63:[.693,.011,.362],91:[.74,.13,.278],93:[.738,.131,.278],94:[.734,-.452,.5],8216:[.708,-.41,.215],8217:[.692,-.395,.215],8260:[.721,.182,.502],58112:[.683,.032,.497],58113:[.616,.03,.498],58114:[.68,.215,.333],58115:[.679,.224,.329],58116:[.471,.214,.503],58117:[.686,.02,.333],58118:[.577,.021,.334,{ic:.013}],58119:[.475,.022,.501,{ic:.013}]}},11091:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.italic=void 0;t.italic={33:[.716,0,.307,{ic:.073}],34:[.694,-.379,.514,{ic:.024}],35:[.694,.194,.818,{ic:.01}],37:[.75,.056,.818,{ic:.029}],38:[.716,.022,.767,{ic:.035}],39:[.694,-.379,.307,{ic:.07}],40:[.75,.25,.409,{ic:.108}],41:[.75,.25,.409],42:[.75,-.32,.511,{ic:.073}],43:[.557,.057,.767],44:[.121,.194,.307],45:[.251,-.18,.358],46:[.121,0,.307],47:[.716,.215,.778],48:[.665,.021,.511,{ic:.051}],49:[.666,0,.511],50:[.666,.022,.511,{ic:.04}],51:[.666,.022,.511,{ic:.051}],52:[.666,.194,.511],53:[.666,.022,.511,{ic:.056}],54:[.665,.022,.511,{ic:.054}],55:[.666,.022,.511,{ic:.123}],56:[.666,.021,.511,{ic:.042}],57:[.666,.022,.511,{ic:.042}],58:[.431,0,.307],59:[.431,.194,.307],61:[.367,-.133,.767],63:[.716,0,.511,{ic:.04}],64:[.705,.011,.767,{ic:.022}],91:[.75,.25,.307,{ic:.139}],93:[.75,.25,.307,{ic:.052}],94:[.694,-.527,.511,{ic:.017}],95:[-.025,.062,.511,{ic:.043}],126:[.318,-.208,.511,{ic:.06}],305:[.441,.01,.307,{ic:.033}],567:[.442,.204,.332],768:[.697,-.5,0],769:[.697,-.5,0,{ic:.039}],770:[.694,-.527,0,{ic:.017}],771:[.668,-.558,0,{ic:.06}],772:[.589,-.544,0,{ic:.054}],774:[.694,-.515,0,{ic:.062}],775:[.669,-.548,0],776:[.669,-.554,0,{ic:.045}],778:[.716,-.542,0],779:[.697,-.503,0,{ic:.065}],780:[.638,-.502,0,{ic:.029}],989:[.605,.085,.778],8211:[.285,-.248,.511,{ic:.043}],8212:[.285,-.248,1.022,{ic:.016}],8213:[.285,-.248,1.022,{ic:.016}],8215:[-.025,.062,.511,{ic:.043}],8216:[.694,-.379,.307,{ic:.055}],8217:[.694,-.379,.307,{ic:.07}],8220:[.694,-.379,.514,{ic:.092}],8221:[.694,-.379,.514,{ic:.024}],8260:[.716,.215,.778],8463:[.695,.013,.54,{ic:.022}],8710:[.716,0,.833,{sk:.167}],10744:[.716,.215,.778]}},40123:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.largeop=void 0;t.largeop={40:[1.15,.649,.597],41:[1.15,.649,.597],47:[1.15,.649,.811],91:[1.15,.649,.472],92:[1.15,.649,.811],93:[1.15,.649,.472],123:[1.15,.649,.667],125:[1.15,.649,.667],710:[.772,-.565,1],732:[.75,-.611,1],770:[.772,-.565,0],771:[.75,-.611,0],8214:[.602,0,.778],8260:[1.15,.649,.811],8593:[.6,0,.667],8595:[.6,0,.667],8657:[.599,0,.778],8659:[.6,0,.778],8719:[.95,.45,1.278],8720:[.95,.45,1.278],8721:[.95,.45,1.444],8730:[1.15,.65,1,{ic:.02}],8739:[.627,.015,.333],8741:[.627,.015,.556],8747:[1.36,.862,.556,{ic:.388}],8748:[1.36,.862,1.084,{ic:.388}],8749:[1.36,.862,1.592,{ic:.388}],8750:[1.36,.862,.556,{ic:.388}],8896:[.95,.45,1.111],8897:[.95,.45,1.111],8898:[.949,.45,1.111],8899:[.95,.449,1.111],8968:[1.15,.649,.528],8969:[1.15,.649,.528],8970:[1.15,.649,.528],8971:[1.15,.649,.528],9001:[1.15,.649,.611],9002:[1.15,.649,.611],9168:[.602,0,.667],10072:[.627,.015,.333],10216:[1.15,.649,.611],10217:[1.15,.649,.611],10752:[.949,.449,1.511],10753:[.949,.449,1.511],10754:[.949,.449,1.511],10756:[.95,.449,1.111],10758:[.95,.45,1.111],10764:[1.36,.862,2.168,{ic:.388}],12296:[1.15,.649,.611],12297:[1.15,.649,.611]}},61314:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.monospace=void 0;t.monospace={32:[0,0,.525],33:[.622,0,.525],34:[.623,-.333,.525],35:[.611,0,.525],36:[.694,.082,.525],37:[.694,.083,.525],38:[.622,.011,.525],39:[.611,-.287,.525],40:[.694,.082,.525],41:[.694,.082,.525],42:[.52,-.09,.525],43:[.531,-.081,.525],44:[.14,.139,.525],45:[.341,-.271,.525],46:[.14,0,.525],47:[.694,.083,.525],58:[.431,0,.525],59:[.431,.139,.525],60:[.557,-.055,.525],61:[.417,-.195,.525],62:[.557,-.055,.525],63:[.617,0,.525],64:[.617,.006,.525],91:[.694,.082,.525],92:[.694,.083,.525],93:[.694,.082,.525],94:[.611,-.46,.525],95:[-.025,.095,.525],96:[.681,-.357,.525],123:[.694,.083,.525],124:[.694,.082,.525],125:[.694,.083,.525],126:[.611,-.466,.525],127:[.612,-.519,.525],160:[0,0,.525],305:[.431,0,.525],567:[.431,.228,.525],697:[.623,-.334,.525],768:[.611,-.485,0],769:[.611,-.485,0],770:[.611,-.46,0],771:[.611,-.466,0],772:[.577,-.5,0],774:[.611,-.504,0],776:[.612,-.519,0],778:[.619,-.499,0],780:[.577,-.449,0],913:[.623,0,.525],914:[.611,0,.525],915:[.611,0,.525],916:[.623,0,.525],917:[.611,0,.525],918:[.611,0,.525],919:[.611,0,.525],920:[.621,.01,.525],921:[.611,0,.525],922:[.611,0,.525],923:[.623,0,.525],924:[.611,0,.525],925:[.611,0,.525],926:[.611,0,.525],927:[.621,.01,.525],928:[.611,0,.525],929:[.611,0,.525],931:[.611,0,.525],932:[.611,0,.525],933:[.622,0,.525],934:[.611,0,.525],935:[.611,0,.525],936:[.611,0,.525],937:[.622,0,.525],8215:[-.025,.095,.525],8242:[.623,-.334,.525],8243:[.623,0,1.05],8244:[.623,0,1.575],8260:[.694,.083,.525],8279:[.623,0,2.1],8710:[.623,0,.525]}},22785:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.normal=void 0;t.normal={32:[0,0,.25],33:[.716,0,.278],34:[.694,-.379,.5],35:[.694,.194,.833],36:[.75,.056,.5],37:[.75,.056,.833],38:[.716,.022,.778],39:[.694,-.379,.278],40:[.75,.25,.389],41:[.75,.25,.389],42:[.75,-.32,.5],43:[.583,.082,.778],44:[.121,.194,.278],45:[.252,-.179,.333],46:[.12,0,.278],47:[.75,.25,.5],48:[.666,.022,.5],49:[.666,0,.5],50:[.666,0,.5],51:[.665,.022,.5],52:[.677,0,.5],53:[.666,.022,.5],54:[.666,.022,.5],55:[.676,.022,.5],56:[.666,.022,.5],57:[.666,.022,.5],58:[.43,0,.278],59:[.43,.194,.278],60:[.54,.04,.778],61:[.583,.082,.778],62:[.54,.04,.778],63:[.705,0,.472],64:[.705,.011,.778],65:[.716,0,.75],66:[.683,0,.708],67:[.705,.021,.722],68:[.683,0,.764],69:[.68,0,.681],70:[.68,0,.653],71:[.705,.022,.785],72:[.683,0,.75],73:[.683,0,.361],74:[.683,.022,.514],75:[.683,0,.778],76:[.683,0,.625],77:[.683,0,.917],78:[.683,0,.75],79:[.705,.022,.778],80:[.683,0,.681],81:[.705,.193,.778],82:[.683,.022,.736],83:[.705,.022,.556],84:[.677,0,.722],85:[.683,.022,.75],86:[.683,.022,.75],87:[.683,.022,1.028],88:[.683,0,.75],89:[.683,0,.75],90:[.683,0,.611],91:[.75,.25,.278],92:[.75,.25,.5],93:[.75,.25,.278],94:[.694,-.531,.5],95:[-.025,.062,.5],96:[.699,-.505,.5],97:[.448,.011,.5],98:[.694,.011,.556],99:[.448,.011,.444],100:[.694,.011,.556],101:[.448,.011,.444],102:[.705,0,.306,{ic:.066}],103:[.453,.206,.5],104:[.694,0,.556],105:[.669,0,.278],106:[.669,.205,.306],107:[.694,0,.528],108:[.694,0,.278],109:[.442,0,.833],110:[.442,0,.556],111:[.448,.01,.5],112:[.442,.194,.556],113:[.442,.194,.528],114:[.442,0,.392],115:[.448,.011,.394],116:[.615,.01,.389],117:[.442,.011,.556],118:[.431,.011,.528],119:[.431,.011,.722],120:[.431,0,.528],121:[.431,.204,.528],122:[.431,0,.444],123:[.75,.25,.5],124:[.75,.249,.278],125:[.75,.25,.5],126:[.318,-.215,.5],160:[0,0,.25],163:[.714,.011,.769],165:[.683,0,.75],168:[.669,-.554,.5],172:[.356,-.089,.667],174:[.709,.175,.947],175:[.59,-.544,.5],176:[.715,-.542,.5],177:[.666,0,.778],180:[.699,-.505,.5],183:[.31,-.19,.278],215:[.491,-.009,.778],240:[.749,.021,.556],247:[.537,.036,.778],305:[.442,0,.278,{sk:.0278}],567:[.442,.205,.306,{sk:.0833}],697:[.56,-.043,.275],710:[.694,-.531,.5],711:[.644,-.513,.5],713:[.59,-.544,.5],714:[.699,-.505,.5],715:[.699,-.505,.5],728:[.694,-.515,.5],729:[.669,-.549,.5],730:[.715,-.542,.5],732:[.668,-.565,.5],768:[.699,-.505,0],769:[.699,-.505,0],770:[.694,-.531,0],771:[.668,-.565,0],772:[.59,-.544,0],774:[.694,-.515,0],775:[.669,-.549,0],776:[.669,-.554,0],778:[.715,-.542,0],779:[.701,-.51,0],780:[.644,-.513,0],824:[.716,.215,0],913:[.716,0,.75],914:[.683,0,.708],915:[.68,0,.625],916:[.716,0,.833],917:[.68,0,.681],918:[.683,0,.611],919:[.683,0,.75],920:[.705,.022,.778],921:[.683,0,.361],922:[.683,0,.778],923:[.716,0,.694],924:[.683,0,.917],925:[.683,0,.75],926:[.677,0,.667],927:[.705,.022,.778],928:[.68,0,.75],929:[.683,0,.681],931:[.683,0,.722],932:[.677,0,.722],933:[.705,0,.778],934:[.683,0,.722],935:[.683,0,.75],936:[.683,0,.778],937:[.704,0,.722],8192:[0,0,.5],8193:[0,0,1],8194:[0,0,.5],8195:[0,0,1],8196:[0,0,.333],8197:[0,0,.25],8198:[0,0,.167],8201:[0,0,.167],8202:[0,0,.1],8203:[0,0,0],8204:[0,0,0],8211:[.285,-.248,.5],8212:[.285,-.248,1],8213:[.285,-.248,1],8214:[.75,.25,.5],8215:[-.025,.062,.5],8216:[.694,-.379,.278],8217:[.694,-.379,.278],8220:[.694,-.379,.5],8221:[.694,-.379,.5],8224:[.705,.216,.444],8225:[.705,.205,.444],8226:[.444,-.055,.5],8230:[.12,0,1.172],8242:[.56,-.043,.275],8243:[.56,0,.55],8244:[.56,0,.825],8245:[.56,-.043,.275],8246:[.56,0,.55],8247:[.56,0,.825],8254:[.59,-.544,.5],8260:[.75,.25,.5],8279:[.56,0,1.1],8288:[0,0,0],8289:[0,0,0],8290:[0,0,0],8291:[0,0,0],8292:[0,0,0],8407:[.714,-.516,.5],8450:[.702,.019,.722],8459:[.717,.036,.969,{ic:.272,sk:.333}],8460:[.666,.133,.72],8461:[.683,0,.778],8462:[.694,.011,.576,{sk:-.0278}],8463:[.695,.013,.54,{ic:.022}],8464:[.717,.017,.809,{ic:.137,sk:.333}],8465:[.686,.026,.554],8466:[.717,.017,.874,{ic:.161,sk:.306}],8467:[.705,.02,.417,{sk:.111}],8469:[.683,.02,.722],8472:[.453,.216,.636,{sk:.111}],8473:[.683,0,.611],8474:[.701,.181,.778],8475:[.717,.017,.85,{ic:.037,sk:.194}],8476:[.686,.026,.828],8477:[.683,0,.722],8484:[.683,0,.667],8486:[.704,0,.722],8487:[.684,.022,.722],8488:[.729,.139,.602],8492:[.708,.028,.908,{ic:.02,sk:.194}],8493:[.685,.024,.613],8496:[.707,.008,.562,{ic:.156,sk:.139}],8497:[.735,.036,.895,{ic:.095,sk:.222}],8498:[.695,0,.556],8499:[.721,.05,1.08,{ic:.136,sk:.444}],8501:[.694,0,.611],8502:[.763,.021,.667,{ic:.02}],8503:[.764,.043,.444],8504:[.764,.043,.667],8513:[.705,.023,.639],8592:[.511,.011,1],8593:[.694,.193,.5],8594:[.511,.011,1],8595:[.694,.194,.5],8596:[.511,.011,1],8597:[.772,.272,.5],8598:[.72,.195,1],8599:[.72,.195,1],8600:[.695,.22,1],8601:[.695,.22,1],8602:[.437,-.06,1],8603:[.437,-.06,1],8606:[.417,-.083,1],8608:[.417,-.083,1],8610:[.417,-.083,1.111],8611:[.417,-.083,1.111],8614:[.511,.011,1],8617:[.511,.011,1.126],8618:[.511,.011,1.126],8619:[.575,.041,1],8620:[.575,.041,1],8621:[.417,-.083,1.389],8622:[.437,-.06,1],8624:[.722,0,.5],8625:[.722,0,.5],8630:[.461,0,1],8631:[.46,0,1],8634:[.65,.083,.778],8635:[.65,.083,.778],8636:[.511,-.23,1],8637:[.27,.011,1],8638:[.694,.194,.417],8639:[.694,.194,.417],8640:[.511,-.23,1],8641:[.27,.011,1],8642:[.694,.194,.417],8643:[.694,.194,.417],8644:[.667,0,1],8646:[.667,0,1],8647:[.583,.083,1],8648:[.694,.193,.833],8649:[.583,.083,1],8650:[.694,.194,.833],8651:[.514,.014,1],8652:[.671,.011,1],8653:[.534,.035,1],8654:[.534,.037,1],8655:[.534,.035,1],8656:[.525,.024,1],8657:[.694,.194,.611],8658:[.525,.024,1],8659:[.694,.194,.611],8660:[.526,.025,1],8661:[.772,.272,.611],8666:[.611,.111,1],8667:[.611,.111,1],8669:[.417,-.083,1],8672:[.437,-.064,1.334],8674:[.437,-.064,1.334],8704:[.694,.022,.556],8705:[.846,.021,.5],8706:[.715,.022,.531,{ic:.035,sk:.0833}],8707:[.694,0,.556],8708:[.716,.215,.556],8709:[.772,.078,.5],8710:[.716,0,.833],8711:[.683,.033,.833],8712:[.54,.04,.667],8713:[.716,.215,.667],8715:[.54,.04,.667],8716:[.716,.215,.667],8717:[.44,0,.429,{ic:.027}],8719:[.75,.25,.944],8720:[.75,.25,.944],8721:[.75,.25,1.056],8722:[.583,.082,.778],8723:[.5,.166,.778],8724:[.766,.093,.778],8725:[.75,.25,.5],8726:[.75,.25,.5],8727:[.465,-.035,.5],8728:[.444,-.055,.5],8729:[.444,-.055,.5],8730:[.8,.2,.833,{ic:.02}],8733:[.442,.011,.778],8734:[.442,.011,1],8736:[.694,0,.722],8737:[.714,.02,.722],8738:[.551,.051,.722],8739:[.75,.249,.278],8740:[.75,.252,.278,{ic:.019}],8741:[.75,.25,.5],8742:[.75,.25,.5,{ic:.018}],8743:[.598,.022,.667],8744:[.598,.022,.667],8745:[.598,.022,.667],8746:[.598,.022,.667],8747:[.716,.216,.417,{ic:.055}],8748:[.805,.306,.819,{ic:.138}],8749:[.805,.306,1.166,{ic:.138}],8750:[.805,.306,.472,{ic:.138}],8756:[.471,.082,.667],8757:[.471,.082,.667],8764:[.367,-.133,.778],8765:[.367,-.133,.778],8768:[.583,.083,.278],8769:[.467,-.032,.778],8770:[.463,-.034,.778],8771:[.464,-.036,.778],8772:[.716,.215,.778],8773:[.589,-.022,.778],8775:[.652,.155,.778],8776:[.483,-.055,.778],8777:[.716,.215,.778],8778:[.579,.039,.778],8781:[.484,-.016,.778],8782:[.492,-.008,.778],8783:[.492,-.133,.778],8784:[.67,-.133,.778],8785:[.609,.108,.778],8786:[.601,.101,.778],8787:[.601,.102,.778],8790:[.367,-.133,.778],8791:[.721,-.133,.778],8796:[.859,-.133,.778],8800:[.716,.215,.778],8801:[.464,-.036,.778],8802:[.716,.215,.778],8804:[.636,.138,.778],8805:[.636,.138,.778],8806:[.753,.175,.778],8807:[.753,.175,.778],8808:[.752,.286,.778],8809:[.752,.286,.778],8810:[.568,.067,1],8811:[.567,.067,1],8812:[.75,.25,.5],8813:[.716,.215,.778],8814:[.708,.209,.778],8815:[.708,.209,.778],8816:[.801,.303,.778],8817:[.801,.303,.778],8818:[.732,.228,.778],8819:[.732,.228,.778],8820:[.732,.228,.778],8821:[.732,.228,.778],8822:[.681,.253,.778],8823:[.681,.253,.778],8824:[.716,.253,.778],8825:[.716,.253,.778],8826:[.539,.041,.778],8827:[.539,.041,.778],8828:[.58,.153,.778],8829:[.58,.154,.778],8830:[.732,.228,.778],8831:[.732,.228,.778],8832:[.705,.208,.778],8833:[.705,.208,.778],8834:[.54,.04,.778],8835:[.54,.04,.778],8836:[.716,.215,.778],8837:[.716,.215,.778],8838:[.636,.138,.778],8839:[.636,.138,.778],8840:[.801,.303,.778],8841:[.801,.303,.778],8842:[.635,.241,.778],8843:[.635,.241,.778],8846:[.598,.022,.667],8847:[.539,.041,.778],8848:[.539,.041,.778],8849:[.636,.138,.778],8850:[.636,.138,.778],8851:[.598,0,.667],8852:[.598,0,.667],8853:[.583,.083,.778],8854:[.583,.083,.778],8855:[.583,.083,.778],8856:[.583,.083,.778],8857:[.583,.083,.778],8858:[.582,.082,.778],8859:[.582,.082,.778],8861:[.582,.082,.778],8862:[.689,0,.778],8863:[.689,0,.778],8864:[.689,0,.778],8865:[.689,0,.778],8866:[.694,0,.611],8867:[.694,0,.611],8868:[.668,0,.778],8869:[.668,0,.778],8872:[.75,.249,.867],8873:[.694,0,.722],8874:[.694,0,.889],8876:[.695,0,.611],8877:[.695,0,.611],8878:[.695,0,.722],8879:[.695,0,.722],8882:[.539,.041,.778],8883:[.539,.041,.778],8884:[.636,.138,.778],8885:[.636,.138,.778],8888:[.408,-.092,1.111],8890:[.431,.212,.556],8891:[.716,0,.611],8892:[.716,0,.611],8896:[.75,.249,.833],8897:[.75,.249,.833],8898:[.75,.249,.833],8899:[.75,.249,.833],8900:[.488,-.012,.5],8901:[.31,-.19,.278],8902:[.486,-.016,.5],8903:[.545,.044,.778],8904:[.505,.005,.9],8905:[.492,-.008,.778],8906:[.492,-.008,.778],8907:[.694,.022,.778],8908:[.694,.022,.778],8909:[.464,-.036,.778],8910:[.578,.021,.76],8911:[.578,.022,.76],8912:[.54,.04,.778],8913:[.54,.04,.778],8914:[.598,.022,.667],8915:[.598,.022,.667],8916:[.736,.022,.667],8918:[.541,.041,.778],8919:[.541,.041,.778],8920:[.568,.067,1.333],8921:[.568,.067,1.333],8922:[.886,.386,.778],8923:[.886,.386,.778],8926:[.734,0,.778],8927:[.734,0,.778],8928:[.801,.303,.778],8929:[.801,.303,.778],8930:[.716,.215,.778],8931:[.716,.215,.778],8934:[.73,.359,.778],8935:[.73,.359,.778],8936:[.73,.359,.778],8937:[.73,.359,.778],8938:[.706,.208,.778],8939:[.706,.208,.778],8940:[.802,.303,.778],8941:[.801,.303,.778],8942:[1.3,.03,.278],8943:[.31,-.19,1.172],8945:[1.52,-.1,1.282],8965:[.716,0,.611],8966:[.813,.097,.611],8968:[.75,.25,.444],8969:[.75,.25,.444],8970:[.75,.25,.444],8971:[.75,.25,.444],8988:[.694,-.306,.5],8989:[.694,-.306,.5],8990:[.366,.022,.5],8991:[.366,.022,.5],8994:[.388,-.122,1],8995:[.378,-.134,1],9001:[.75,.25,.389],9002:[.75,.25,.389],9136:[.744,.244,.412],9137:[.744,.244,.412],9168:[.602,0,.667],9416:[.709,.175,.902],9484:[.694,-.306,.5],9488:[.694,-.306,.5],9492:[.366,.022,.5],9496:[.366,.022,.5],9585:[.694,.195,.889],9586:[.694,.195,.889],9632:[.689,0,.778],9633:[.689,0,.778],9642:[.689,0,.778],9650:[.575,.02,.722],9651:[.716,0,.889],9652:[.575,.02,.722],9653:[.716,0,.889],9654:[.539,.041,.778],9656:[.539,.041,.778],9657:[.505,.005,.5],9660:[.576,.019,.722],9661:[.5,.215,.889],9662:[.576,.019,.722],9663:[.5,.215,.889],9664:[.539,.041,.778],9666:[.539,.041,.778],9667:[.505,.005,.5],9674:[.716,.132,.667],9711:[.715,.215,1],9723:[.689,0,.778],9724:[.689,0,.778],9733:[.694,.111,.944],9824:[.727,.13,.778],9825:[.716,.033,.778],9826:[.727,.162,.778],9827:[.726,.13,.778],9837:[.75,.022,.389],9838:[.734,.223,.389],9839:[.723,.223,.389],10003:[.706,.034,.833],10016:[.716,.022,.833],10072:[.75,.249,.278],10216:[.75,.25,.389],10217:[.75,.25,.389],10222:[.744,.244,.412],10223:[.744,.244,.412],10229:[.511,.011,1.609],10230:[.511,.011,1.638],10231:[.511,.011,1.859],10232:[.525,.024,1.609],10233:[.525,.024,1.638],10234:[.525,.024,1.858],10236:[.511,.011,1.638],10731:[.716,.132,.667],10744:[.716,.215,.778],10752:[.75,.25,1.111],10753:[.75,.25,1.111],10754:[.75,.25,1.111],10756:[.75,.249,.833],10758:[.75,.249,.833],10764:[.805,.306,1.638,{ic:.138}],10799:[.491,-.009,.778],10815:[.683,0,.75],10846:[.813,.097,.611],10877:[.636,.138,.778],10878:[.636,.138,.778],10885:[.762,.29,.778],10886:[.762,.29,.778],10887:[.635,.241,.778],10888:[.635,.241,.778],10889:[.761,.387,.778],10890:[.761,.387,.778],10891:[1.003,.463,.778],10892:[1.003,.463,.778],10901:[.636,.138,.778],10902:[.636,.138,.778],10927:[.636,.138,.778],10928:[.636,.138,.778],10933:[.752,.286,.778],10934:[.752,.286,.778],10935:[.761,.294,.778],10936:[.761,.294,.778],10937:[.761,.337,.778],10938:[.761,.337,.778],10949:[.753,.215,.778],10950:[.753,.215,.778],10955:[.783,.385,.778],10956:[.783,.385,.778],12296:[.75,.25,.389],12297:[.75,.25,.389],57350:[.43,.023,.222,{ic:.018}],57351:[.431,.024,.389,{ic:.018}],57352:[.605,.085,.778],57353:[.434,.006,.667,{ic:.067}],57356:[.752,.284,.778],57357:[.752,.284,.778],57358:[.919,.421,.778],57359:[.801,.303,.778],57360:[.801,.303,.778],57361:[.919,.421,.778],57366:[.828,.33,.778],57367:[.752,.332,.778],57368:[.828,.33,.778],57369:[.752,.333,.778],57370:[.634,.255,.778],57371:[.634,.254,.778],119808:[.698,0,.869],119809:[.686,0,.818],119810:[.697,.011,.831],119811:[.686,0,.882],119812:[.68,0,.756],119813:[.68,0,.724],119814:[.697,.01,.904],119815:[.686,0,.9],119816:[.686,0,.436],119817:[.686,.011,.594],119818:[.686,0,.901],119819:[.686,0,.692],119820:[.686,0,1.092],119821:[.686,0,.9],119822:[.696,.01,.864],119823:[.686,0,.786],119824:[.696,.193,.864],119825:[.686,.011,.862],119826:[.697,.011,.639],119827:[.675,0,.8],119828:[.686,.011,.885],119829:[.686,.007,.869],119830:[.686,.007,1.189],119831:[.686,0,.869],119832:[.686,0,.869],119833:[.686,0,.703],119834:[.453,.006,.559],119835:[.694,.006,.639],119836:[.453,.006,.511],119837:[.694,.006,.639],119838:[.452,.006,.527],119839:[.7,0,.351,{ic:.101}],119840:[.455,.201,.575],119841:[.694,0,.639],119842:[.695,0,.319],119843:[.695,.2,.351],119844:[.694,0,.607],119845:[.694,0,.319],119846:[.45,0,.958],119847:[.45,0,.639],119848:[.452,.005,.575],119849:[.45,.194,.639],119850:[.45,.194,.607],119851:[.45,0,.474],119852:[.453,.006,.454],119853:[.635,.005,.447],119854:[.45,.006,.639],119855:[.444,0,.607],119856:[.444,0,.831],119857:[.444,0,.607],119858:[.444,.2,.607],119859:[.444,0,.511],119860:[.716,0,.75,{sk:.139}],119861:[.683,0,.759,{sk:.0833}],119862:[.705,.022,.715,{ic:.045,sk:.0833}],119863:[.683,0,.828,{sk:.0556}],119864:[.68,0,.738,{ic:.026,sk:.0833}],119865:[.68,0,.643,{ic:.106,sk:.0833}],119866:[.705,.022,.786,{sk:.0833}],119867:[.683,0,.831,{ic:.057,sk:.0556}],119868:[.683,0,.44,{ic:.064,sk:.111}],119869:[.683,.022,.555,{ic:.078,sk:.167}],119870:[.683,0,.849,{ic:.04,sk:.0556}],119871:[.683,0,.681,{sk:.0278}],119872:[.683,0,.97,{ic:.081,sk:.0833}],119873:[.683,0,.803,{ic:.085,sk:.0833}],119874:[.704,.022,.763,{sk:.0833}],119875:[.683,0,.642,{ic:.109,sk:.0833}],119876:[.704,.194,.791,{sk:.0833}],119877:[.683,.021,.759,{sk:.0833}],119878:[.705,.022,.613,{ic:.032,sk:.0833}],119879:[.677,0,.584,{ic:.12,sk:.0833}],119880:[.683,.022,.683,{ic:.084,sk:.0278}],119881:[.683,.022,.583,{ic:.186}],119882:[.683,.022,.944,{ic:.104}],119883:[.683,0,.828,{ic:.024,sk:.0833}],119884:[.683,0,.581,{ic:.182}],119885:[.683,0,.683,{ic:.04,sk:.0833}],119886:[.441,.01,.529],119887:[.694,.011,.429],119888:[.442,.011,.433,{sk:.0556}],119889:[.694,.01,.52,{sk:.167}],119890:[.442,.011,.466,{sk:.0556}],119891:[.705,.205,.49,{ic:.06,sk:.167}],119892:[.442,.205,.477,{sk:.0278}],119894:[.661,.011,.345],119895:[.661,.204,.412],119896:[.694,.011,.521],119897:[.694,.011,.298,{sk:.0833}],119898:[.442,.011,.878],119899:[.442,.011,.6],119900:[.441,.011,.485,{sk:.0556}],119901:[.442,.194,.503,{sk:.0833}],119902:[.442,.194,.446,{ic:.014,sk:.0833}],119903:[.442,.011,.451,{sk:.0556}],119904:[.442,.01,.469,{sk:.0556}],119905:[.626,.011,.361,{sk:.0833}],119906:[.442,.011,.572,{sk:.0278}],119907:[.443,.011,.485,{sk:.0278}],119908:[.443,.011,.716,{sk:.0833}],119909:[.442,.011,.572,{sk:.0278}],119910:[.442,.205,.49,{sk:.0556}],119911:[.442,.011,.465,{sk:.0556}],119912:[.711,0,.869,{sk:.16}],119913:[.686,0,.866,{sk:.0958}],119914:[.703,.017,.817,{ic:.038,sk:.0958}],119915:[.686,0,.938,{sk:.0639}],119916:[.68,0,.81,{ic:.015,sk:.0958}],119917:[.68,0,.689,{ic:.12,sk:.0958}],119918:[.703,.016,.887,{sk:.0958}],119919:[.686,0,.982,{ic:.045,sk:.0639}],119920:[.686,0,.511,{ic:.062,sk:.128}],119921:[.686,.017,.631,{ic:.063,sk:.192}],119922:[.686,0,.971,{ic:.032,sk:.0639}],119923:[.686,0,.756,{sk:.0319}],119924:[.686,0,1.142,{ic:.077,sk:.0958}],119925:[.686,0,.95,{ic:.077,sk:.0958}],119926:[.703,.017,.837,{sk:.0958}],119927:[.686,0,.723,{ic:.124,sk:.0958}],119928:[.703,.194,.869,{sk:.0958}],119929:[.686,.017,.872,{sk:.0958}],119930:[.703,.017,.693,{ic:.021,sk:.0958}],119931:[.675,0,.637,{ic:.135,sk:.0958}],119932:[.686,.016,.8,{ic:.077,sk:.0319}],119933:[.686,.016,.678,{ic:.208}],119934:[.686,.017,1.093,{ic:.114}],119935:[.686,0,.947,{sk:.0958}],119936:[.686,0,.675,{ic:.201}],119937:[.686,0,.773,{ic:.032,sk:.0958}],119938:[.452,.008,.633],119939:[.694,.008,.521],119940:[.451,.008,.513,{sk:.0639}],119941:[.694,.008,.61,{sk:.192}],119942:[.452,.008,.554,{sk:.0639}],119943:[.701,.201,.568,{ic:.056,sk:.192}],119944:[.452,.202,.545,{sk:.0319}],119945:[.694,.008,.668,{sk:-.0319}],119946:[.694,.008,.405],119947:[.694,.202,.471],119948:[.694,.008,.604],119949:[.694,.008,.348,{sk:.0958}],119950:[.452,.008,1.032],119951:[.452,.008,.713],119952:[.452,.008,.585,{sk:.0639}],119953:[.452,.194,.601,{sk:.0958}],119954:[.452,.194,.542,{sk:.0958}],119955:[.452,.008,.529,{sk:.0639}],119956:[.451,.008,.531,{sk:.0639}],119957:[.643,.007,.415,{sk:.0958}],119958:[.452,.008,.681,{sk:.0319}],119959:[.453,.008,.567,{sk:.0319}],119960:[.453,.008,.831,{sk:.0958}],119961:[.452,.008,.659,{sk:.0319}],119962:[.452,.202,.59,{sk:.0639}],119963:[.452,.008,.555,{sk:.0639}],119964:[.717,.008,.803,{ic:.213,sk:.389}],119966:[.728,.026,.666,{ic:.153,sk:.278}],119967:[.708,.031,.774,{ic:.081,sk:.111}],119970:[.717,.037,.61,{ic:.128,sk:.25}],119973:[.717,.314,1.052,{ic:.081,sk:.417}],119974:[.717,.037,.914,{ic:.29,sk:.361}],119977:[.726,.036,.902,{ic:.306,sk:.389}],119978:[.707,.008,.738,{ic:.067,sk:.167}],119979:[.716,.037,1.013,{ic:.018,sk:.222}],119980:[.717,.017,.883,{sk:.278}],119982:[.708,.036,.868,{ic:.148,sk:.333}],119983:[.735,.037,.747,{ic:.249,sk:.222}],119984:[.717,.017,.8,{ic:.16,sk:.25}],119985:[.717,.017,.622,{ic:.228,sk:.222}],119986:[.717,.017,.805,{ic:.221,sk:.25}],119987:[.717,.017,.944,{ic:.187,sk:.278}],119988:[.716,.017,.71,{ic:.249,sk:.194}],119989:[.717,.016,.821,{ic:.211,sk:.306}],120068:[.696,.026,.718],120069:[.691,.027,.884],120071:[.685,.027,.832],120072:[.685,.024,.663],120073:[.686,.153,.611],120074:[.69,.026,.785],120077:[.686,.139,.552],120078:[.68,.027,.668,{ic:.014}],120079:[.686,.026,.666],120080:[.692,.027,1.05],120081:[.686,.025,.832],120082:[.729,.027,.827],120083:[.692,.218,.828],120084:[.729,.069,.827],120086:[.692,.027,.829],120087:[.701,.027,.669],120088:[.697,.027,.646,{ic:.019}],120089:[.686,.026,.831],120090:[.686,.027,1.046],120091:[.688,.027,.719],120092:[.686,.218,.833],120094:[.47,.035,.5],120095:[.685,.031,.513],120096:[.466,.029,.389],120097:[.609,.033,.499],120098:[.467,.03,.401],120099:[.681,.221,.326],120100:[.47,.209,.504],120101:[.688,.205,.521],120102:[.673,.02,.279],120103:[.672,.208,.281],120104:[.689,.025,.389],120105:[.685,.02,.28],120106:[.475,.026,.767],120107:[.475,.022,.527],120108:[.48,.028,.489],120109:[.541,.212,.5],120110:[.479,.219,.489],120111:[.474,.021,.389],120112:[.478,.029,.443],120113:[.64,.02,.333,{ic:.015}],120114:[.474,.023,.517],120115:[.53,.028,.512],120116:[.532,.028,.774],120117:[.472,.188,.389],120118:[.528,.218,.499],120119:[.471,.214,.391],120120:[.701,0,.722],120121:[.683,0,.667],120123:[.683,0,.722],120124:[.683,0,.667],120125:[.683,0,.611],120126:[.702,.019,.778],120128:[.683,0,.389],120129:[.683,.077,.5],120130:[.683,0,.778],120131:[.683,0,.667],120132:[.683,0,.944],120134:[.701,.019,.778],120138:[.702,.012,.556],120139:[.683,0,.667],120140:[.683,.019,.722],120141:[.683,.02,.722],120142:[.683,.019,1],120143:[.683,0,.722],120144:[.683,0,.722],120172:[.686,.031,.847],120173:[.684,.031,1.044],120174:[.676,.032,.723],120175:[.683,.029,.982],120176:[.686,.029,.783],120177:[.684,.146,.722],120178:[.687,.029,.927],120179:[.683,.126,.851],120180:[.681,.025,.655],120181:[.68,.141,.652],120182:[.681,.026,.789,{ic:.017}],120183:[.683,.028,.786],120184:[.683,.032,1.239],120185:[.679,.03,.983],120186:[.726,.03,.976],120187:[.688,.223,.977],120188:[.726,.083,.976],120189:[.688,.028,.978],120190:[.685,.031,.978],120191:[.686,.03,.79,{ic:.012}],120192:[.688,.039,.851,{ic:.02}],120193:[.685,.029,.982],120194:[.683,.03,1.235],120195:[.681,.035,.849],120196:[.688,.214,.984],120197:[.677,.148,.711],120198:[.472,.032,.603],120199:[.69,.032,.59],120200:[.473,.026,.464],120201:[.632,.028,.589],120202:[.471,.027,.472],120203:[.687,.222,.388],120204:[.472,.208,.595],120205:[.687,.207,.615],120206:[.686,.025,.331],120207:[.682,.203,.332],120208:[.682,.025,.464],120209:[.681,.024,.337],120210:[.476,.031,.921],120211:[.473,.028,.654],120212:[.482,.034,.609],120213:[.557,.207,.604],120214:[.485,.211,.596],120215:[.472,.026,.46],120216:[.479,.034,.523],120217:[.648,.027,.393,{ic:.014}],120218:[.472,.032,.589,{ic:.014}],120219:[.546,.027,.604],120220:[.549,.032,.918],120221:[.471,.188,.459],120222:[.557,.221,.589],120223:[.471,.214,.461],120224:[.694,0,.667],120225:[.694,0,.667],120226:[.705,.011,.639],120227:[.694,0,.722],120228:[.691,0,.597],120229:[.691,0,.569],120230:[.704,.011,.667],120231:[.694,0,.708],120232:[.694,0,.278],120233:[.694,.022,.472],120234:[.694,0,.694],120235:[.694,0,.542],120236:[.694,0,.875],120237:[.694,0,.708],120238:[.715,.022,.736],120239:[.694,0,.639],120240:[.715,.125,.736],120241:[.694,0,.646],120242:[.716,.022,.556],120243:[.688,0,.681],120244:[.694,.022,.688],120245:[.694,0,.667],120246:[.694,0,.944],120247:[.694,0,.667],120248:[.694,0,.667],120249:[.694,0,.611],120250:[.46,.01,.481],120251:[.694,.011,.517],120252:[.46,.01,.444],120253:[.694,.01,.517],120254:[.461,.01,.444],120255:[.705,0,.306,{ic:.041}],120256:[.455,.206,.5],120257:[.694,0,.517],120258:[.68,0,.239],120259:[.68,.205,.267],120260:[.694,0,.489],120261:[.694,0,.239],120262:[.455,0,.794],120263:[.455,0,.517],120264:[.46,.01,.5],120265:[.455,.194,.517],120266:[.455,.194,.517],120267:[.455,0,.342],120268:[.46,.01,.383],120269:[.571,.01,.361],120270:[.444,.01,.517],120271:[.444,0,.461],120272:[.444,0,.683],120273:[.444,0,.461],120274:[.444,.204,.461],120275:[.444,0,.435],120276:[.694,0,.733],120277:[.694,0,.733],120278:[.704,.011,.703],120279:[.694,0,.794],120280:[.691,0,.642],120281:[.691,0,.611],120282:[.705,.011,.733],120283:[.694,0,.794],120284:[.694,0,.331],120285:[.694,.022,.519],120286:[.694,0,.764],120287:[.694,0,.581],120288:[.694,0,.978],120289:[.694,0,.794],120290:[.716,.022,.794],120291:[.694,0,.703],120292:[.716,.106,.794],120293:[.694,0,.703],120294:[.716,.022,.611],120295:[.688,0,.733],120296:[.694,.022,.764],120297:[.694,0,.733],120298:[.694,0,1.039],120299:[.694,0,.733],120300:[.694,0,.733],120301:[.694,0,.672],120302:[.475,.011,.525],120303:[.694,.01,.561],120304:[.475,.011,.489],120305:[.694,.011,.561],120306:[.474,.01,.511],120307:[.705,0,.336,{ic:.045}],120308:[.469,.206,.55],120309:[.694,0,.561],120310:[.695,0,.256],120311:[.695,.205,.286],120312:[.694,0,.531],120313:[.694,0,.256],120314:[.469,0,.867],120315:[.468,0,.561],120316:[.474,.011,.55],120317:[.469,.194,.561],120318:[.469,.194,.561],120319:[.469,0,.372],120320:[.474,.01,.422],120321:[.589,.01,.404],120322:[.458,.011,.561],120323:[.458,0,.5],120324:[.458,0,.744],120325:[.458,0,.5],120326:[.458,.205,.5],120327:[.458,0,.476],120328:[.694,0,.667],120329:[.694,0,.667,{ic:.029}],120330:[.705,.01,.639,{ic:.08}],120331:[.694,0,.722,{ic:.025}],120332:[.691,0,.597,{ic:.091}],120333:[.691,0,.569,{ic:.104}],120334:[.705,.011,.667,{ic:.063}],120335:[.694,0,.708,{ic:.06}],120336:[.694,0,.278,{ic:.06}],120337:[.694,.022,.472,{ic:.063}],120338:[.694,0,.694,{ic:.091}],120339:[.694,0,.542],120340:[.694,0,.875,{ic:.054}],120341:[.694,0,.708,{ic:.058}],120342:[.716,.022,.736,{ic:.027}],120343:[.694,0,.639,{ic:.051}],120344:[.716,.125,.736,{ic:.027}],120345:[.694,0,.646,{ic:.052}],120346:[.716,.022,.556,{ic:.053}],120347:[.688,0,.681,{ic:.109}],120348:[.694,.022,.688,{ic:.059}],120349:[.694,0,.667,{ic:.132}],120350:[.694,0,.944,{ic:.132}],120351:[.694,0,.667,{ic:.091}],120352:[.694,0,.667,{ic:.143}],120353:[.694,0,.611,{ic:.091}],120354:[.461,.01,.481],120355:[.694,.011,.517,{ic:.022}],120356:[.46,.011,.444,{ic:.055}],120357:[.694,.01,.517,{ic:.071}],120358:[.46,.011,.444,{ic:.028}],120359:[.705,0,.306,{ic:.188}],120360:[.455,.206,.5,{ic:.068}],120361:[.694,0,.517],120362:[.68,0,.239,{ic:.076}],120363:[.68,.204,.267,{ic:.069}],120364:[.694,0,.489,{ic:.054}],120365:[.694,0,.239,{ic:.072}],120366:[.455,0,.794],120367:[.454,0,.517],120368:[.461,.011,.5,{ic:.023}],120369:[.455,.194,.517,{ic:.021}],120370:[.455,.194,.517,{ic:.021}],120371:[.455,0,.342,{ic:.082}],120372:[.461,.011,.383,{ic:.053}],120373:[.571,.011,.361,{ic:.049}],120374:[.444,.01,.517,{ic:.02}],120375:[.444,0,.461,{ic:.079}],120376:[.444,0,.683,{ic:.079}],120377:[.444,0,.461,{ic:.076}],120378:[.444,.205,.461,{ic:.079}],120379:[.444,0,.435,{ic:.059}],120432:[.623,0,.525],120433:[.611,0,.525],120434:[.622,.011,.525],120435:[.611,0,.525],120436:[.611,0,.525],120437:[.611,0,.525],120438:[.622,.011,.525],120439:[.611,0,.525],120440:[.611,0,.525],120441:[.611,.011,.525],120442:[.611,0,.525],120443:[.611,0,.525],120444:[.611,0,.525],120445:[.611,0,.525],120446:[.621,.01,.525],120447:[.611,0,.525],120448:[.621,.138,.525],120449:[.611,.011,.525],120450:[.622,.011,.525],120451:[.611,0,.525],120452:[.611,.011,.525],120453:[.611,.007,.525],120454:[.611,.007,.525],120455:[.611,0,.525],120456:[.611,0,.525],120457:[.611,0,.525],120458:[.439,.006,.525],120459:[.611,.006,.525],120460:[.44,.006,.525],120461:[.611,.006,.525],120462:[.44,.006,.525],120463:[.617,0,.525],120464:[.442,.229,.525],120465:[.611,0,.525],120466:[.612,0,.525],120467:[.612,.228,.525],120468:[.611,0,.525],120469:[.611,0,.525],120470:[.436,0,.525,{ic:.011}],120471:[.436,0,.525],120472:[.44,.006,.525],120473:[.437,.221,.525],120474:[.437,.221,.525,{ic:.02}],120475:[.437,0,.525],120476:[.44,.006,.525],120477:[.554,.006,.525],120478:[.431,.005,.525],120479:[.431,0,.525],120480:[.431,0,.525],120481:[.431,0,.525],120482:[.431,.228,.525],120483:[.431,0,.525],120488:[.698,0,.869],120489:[.686,0,.818],120490:[.68,0,.692],120491:[.698,0,.958],120492:[.68,0,.756],120493:[.686,0,.703],120494:[.686,0,.9],120495:[.696,.01,.894],120496:[.686,0,.436],120497:[.686,0,.901],120498:[.698,0,.806],120499:[.686,0,1.092],120500:[.686,0,.9],120501:[.675,0,.767],120502:[.696,.01,.864],120503:[.68,0,.9],120504:[.686,0,.786],120506:[.686,0,.831],120507:[.675,0,.8],120508:[.697,0,.894],120509:[.686,0,.831],120510:[.686,0,.869],120511:[.686,0,.894],120512:[.696,0,.831],120513:[.686,.024,.958],120546:[.716,0,.75,{sk:.139}],120547:[.683,0,.759,{sk:.0833}],120548:[.68,0,.615,{ic:.106,sk:.0833}],120549:[.716,0,.833,{sk:.167}],120550:[.68,0,.738,{ic:.026,sk:.0833}],120551:[.683,0,.683,{ic:.04,sk:.0833}],120552:[.683,0,.831,{ic:.057,sk:.0556}],120553:[.704,.022,.763,{sk:.0833}],120554:[.683,0,.44,{ic:.064,sk:.111}],120555:[.683,0,.849,{ic:.04,sk:.0556}],120556:[.716,0,.694,{sk:.167}],120557:[.683,0,.97,{ic:.081,sk:.0833}],120558:[.683,0,.803,{ic:.085,sk:.0833}],120559:[.677,0,.742,{ic:.035,sk:.0833}],120560:[.704,.022,.763,{sk:.0833}],120561:[.68,0,.831,{ic:.056,sk:.0556}],120562:[.683,0,.642,{ic:.109,sk:.0833}],120564:[.683,0,.78,{ic:.026,sk:.0833}],120565:[.677,0,.584,{ic:.12,sk:.0833}],120566:[.705,0,.583,{ic:.117,sk:.0556}],120567:[.683,0,.667,{sk:.0833}],120568:[.683,0,.828,{ic:.024,sk:.0833}],120569:[.683,0,.612,{ic:.08,sk:.0556}],120570:[.704,0,.772,{ic:.014,sk:.0833}],120572:[.442,.011,.64,{sk:.0278}],120573:[.705,.194,.566,{sk:.0833}],120574:[.441,.216,.518,{ic:.025}],120575:[.717,.01,.444,{sk:.0556}],120576:[.452,.022,.466,{sk:.0833}],120577:[.704,.204,.438,{ic:.033,sk:.0833}],120578:[.442,.216,.497,{sk:.0556}],120579:[.705,.01,.469,{sk:.0833}],120580:[.442,.01,.354,{sk:.0556}],120581:[.442,.011,.576],120582:[.694,.012,.583],120583:[.442,.216,.603,{sk:.0278}],120584:[.442,0,.494,{ic:.036,sk:.0278}],120585:[.704,.205,.438,{sk:.111}],120586:[.441,.011,.485,{sk:.0556}],120587:[.431,.011,.57],120588:[.442,.216,.517,{sk:.0833}],120589:[.442,.107,.363,{ic:.042,sk:.0833}],120590:[.431,.011,.571],120591:[.431,.013,.437,{ic:.08,sk:.0278}],120592:[.443,.01,.54,{sk:.0278}],120593:[.442,.218,.654,{sk:.0833}],120594:[.442,.204,.626,{sk:.0556}],120595:[.694,.205,.651,{sk:.111}],120596:[.443,.011,.622],120597:[.715,.022,.531,{ic:.035,sk:.0833}],120598:[.431,.011,.406,{sk:.0556}],120599:[.705,.011,.591,{sk:.0833}],120600:[.434,.006,.667,{ic:.067}],120601:[.694,.205,.596,{sk:.0833}],120602:[.442,.194,.517,{sk:.0833}],120603:[.431,.01,.828],120604:[.711,0,.869,{sk:.16}],120605:[.686,0,.866,{sk:.0958}],120606:[.68,0,.657,{ic:.12,sk:.0958}],120607:[.711,0,.958,{sk:.192}],120608:[.68,0,.81,{ic:.015,sk:.0958}],120609:[.686,0,.773,{ic:.032,sk:.0958}],120610:[.686,0,.982,{ic:.045,sk:.0639}],120611:[.702,.017,.867,{sk:.0958}],120612:[.686,0,.511,{ic:.062,sk:.128}],120613:[.686,0,.971,{ic:.032,sk:.0639}],120614:[.711,0,.806,{sk:.192}],120615:[.686,0,1.142,{ic:.077,sk:.0958}],120616:[.686,0,.95,{ic:.077,sk:.0958}],120617:[.675,0,.841,{ic:.026,sk:.0958}],120618:[.703,.017,.837,{sk:.0958}],120619:[.68,0,.982,{ic:.044,sk:.0639}],120620:[.686,0,.723,{ic:.124,sk:.0958}],120622:[.686,0,.885,{ic:.017,sk:.0958}],120623:[.675,0,.637,{ic:.135,sk:.0958}],120624:[.703,0,.671,{ic:.131,sk:.0639}],120625:[.686,0,.767,{sk:.0958}],120626:[.686,0,.947,{sk:.0958}],120627:[.686,0,.714,{ic:.076,sk:.0639}],120628:[.703,0,.879,{sk:.0958}],120630:[.452,.008,.761,{sk:.0319}],120631:[.701,.194,.66,{sk:.0958}],120632:[.451,.211,.59,{ic:.027}],120633:[.725,.008,.522,{sk:.0639}],120634:[.461,.017,.529,{sk:.0958}],120635:[.711,.202,.508,{ic:.013,sk:.0958}],120636:[.452,.211,.6,{sk:.0639}],120637:[.702,.008,.562,{sk:.0958}],120638:[.452,.008,.412,{sk:.0639}],120639:[.452,.008,.668],120640:[.694,.013,.671],120641:[.452,.211,.708,{sk:.0319}],120642:[.452,0,.577,{ic:.031,sk:.0319}],120643:[.711,.201,.508,{sk:.128}],120644:[.452,.008,.585,{sk:.0639}],120645:[.444,.008,.682],120646:[.451,.211,.612,{sk:.0958}],120647:[.451,.105,.424,{ic:.033,sk:.0958}],120648:[.444,.008,.686],120649:[.444,.013,.521,{ic:.089,sk:.0319}],120650:[.453,.008,.631,{sk:.0319}],120651:[.452,.216,.747,{sk:.0958}],120652:[.452,.201,.718,{sk:.0639}],120653:[.694,.202,.758,{sk:.128}],120654:[.453,.008,.718],120655:[.71,.017,.628,{ic:.029,sk:.0958}],120656:[.444,.007,.483,{sk:.0639}],120657:[.701,.008,.692,{sk:.0958}],120658:[.434,.006,.667,{ic:.067}],120659:[.694,.202,.712,{sk:.0958}],120660:[.451,.194,.612,{sk:.0958}],120661:[.444,.008,.975],120662:[.694,0,.733],120663:[.694,0,.733],120664:[.691,0,.581],120665:[.694,0,.917],120666:[.691,0,.642],120667:[.694,0,.672],120668:[.694,0,.794],120669:[.716,.022,.856],120670:[.694,0,.331],120671:[.694,0,.764],120672:[.694,0,.672],120673:[.694,0,.978],120674:[.694,0,.794],120675:[.688,0,.733],120676:[.716,.022,.794],120677:[.691,0,.794],120678:[.694,0,.703],120680:[.694,0,.794],120681:[.688,0,.733],120682:[.715,0,.856],120683:[.694,0,.794],120684:[.694,0,.733],120685:[.694,0,.856],120686:[.716,0,.794],120782:[.654,.01,.575],120783:[.655,0,.575],120784:[.654,0,.575],120785:[.655,.011,.575],120786:[.656,0,.575],120787:[.655,.011,.575],120788:[.655,.011,.575],120789:[.676,.011,.575],120790:[.654,.011,.575],120791:[.654,.011,.575],120802:[.678,.022,.5],120803:[.678,0,.5],120804:[.677,0,.5],120805:[.678,.022,.5],120806:[.656,0,.5],120807:[.656,.021,.5],120808:[.677,.022,.5],120809:[.656,.011,.5],120810:[.678,.022,.5],120811:[.677,.022,.5],120812:[.715,.022,.55],120813:[.716,0,.55],120814:[.716,0,.55],120815:[.716,.022,.55],120816:[.694,0,.55],120817:[.694,.022,.55],120818:[.716,.022,.55],120819:[.695,.011,.55],120820:[.715,.022,.55],120821:[.716,.022,.55],120822:[.621,.01,.525],120823:[.622,0,.525],120824:[.622,0,.525],120825:[.622,.011,.525],120826:[.624,0,.525],120827:[.611,.01,.525],120828:[.622,.011,.525],120829:[.627,.01,.525],120830:[.621,.01,.525],120831:[.622,.011,.525]}},92351:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.sansSerifBoldItalic=void 0;t.sansSerifBoldItalic={305:[.458,0,.256],567:[.458,.205,.286]}},57175:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.sansSerifBold=void 0;t.sansSerifBold={33:[.694,0,.367],34:[.694,-.442,.558],35:[.694,.193,.917],36:[.75,.056,.55],37:[.75,.056,1.029],38:[.716,.022,.831],39:[.694,-.442,.306],40:[.75,.249,.428],41:[.75,.25,.428],42:[.75,-.293,.55],43:[.617,.116,.856],44:[.146,.106,.306],45:[.273,-.186,.367],46:[.146,0,.306],47:[.75,.249,.55],58:[.458,0,.306],59:[.458,.106,.306],61:[.407,-.094,.856],63:[.705,0,.519],64:[.704,.011,.733],91:[.75,.25,.343],93:[.75,.25,.343],94:[.694,-.537,.55],95:[-.023,.11,.55],126:[.344,-.198,.55],305:[.458,0,.256],567:[.458,.205,.286],768:[.694,-.537,0],769:[.694,-.537,0],770:[.694,-.537,0],771:[.694,-.548,0],772:[.66,-.56,0],774:[.694,-.552,0],775:[.695,-.596,0],776:[.695,-.595,0],778:[.694,-.538,0],779:[.694,-.537,0],780:[.657,-.5,0],8211:[.327,-.24,.55],8212:[.327,-.24,1.1],8213:[.327,-.24,1.1],8215:[-.023,.11,.55],8216:[.694,-.443,.306],8217:[.694,-.442,.306],8220:[.694,-.443,.558],8221:[.694,-.442,.558],8260:[.75,.249,.55],8710:[.694,0,.917]}},3076:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.sansSerifItalic=void 0;t.sansSerifItalic={33:[.694,0,.319,{ic:.036}],34:[.694,-.471,.5],35:[.694,.194,.833,{ic:.018}],36:[.75,.056,.5,{ic:.065}],37:[.75,.056,.833],38:[.716,.022,.758],39:[.694,-.471,.278,{ic:.057}],40:[.75,.25,.389,{ic:.102}],41:[.75,.25,.389],42:[.75,-.306,.5,{ic:.068}],43:[.583,.083,.778],44:[.098,.125,.278],45:[.259,-.186,.333],46:[.098,0,.278],47:[.75,.25,.5,{ic:.1}],48:[.678,.022,.5,{ic:.049}],49:[.678,0,.5],50:[.678,0,.5,{ic:.051}],51:[.678,.022,.5,{ic:.044}],52:[.656,0,.5,{ic:.021}],53:[.656,.022,.5,{ic:.055}],54:[.678,.022,.5,{ic:.048}],55:[.656,.011,.5,{ic:.096}],56:[.678,.022,.5,{ic:.054}],57:[.677,.022,.5,{ic:.045}],58:[.444,0,.278],59:[.444,.125,.278],61:[.37,-.13,.778,{ic:.018}],63:[.704,0,.472,{ic:.064}],64:[.705,.01,.667,{ic:.04}],91:[.75,.25,.289,{ic:.136}],93:[.75,.25,.289,{ic:.064}],94:[.694,-.527,.5,{ic:.033}],95:[-.038,.114,.5,{ic:.065}],126:[.327,-.193,.5,{ic:.06}],305:[.444,0,.239,{ic:.019}],567:[.444,.204,.267,{ic:.019}],768:[.694,-.527,0],769:[.694,-.527,0,{ic:.063}],770:[.694,-.527,0,{ic:.033}],771:[.677,-.543,0,{ic:.06}],772:[.631,-.552,0,{ic:.064}],774:[.694,-.508,0,{ic:.073}],775:[.68,-.576,0],776:[.68,-.582,0,{ic:.04}],778:[.693,-.527,0],779:[.694,-.527,0,{ic:.063}],780:[.654,-.487,0,{ic:.06}],913:[.694,0,.667],914:[.694,0,.667,{ic:.029}],915:[.691,0,.542,{ic:.104}],916:[.694,0,.833],917:[.691,0,.597,{ic:.091}],918:[.694,0,.611,{ic:.091}],919:[.694,0,.708,{ic:.06}],920:[.715,.022,.778,{ic:.026}],921:[.694,0,.278,{ic:.06}],922:[.694,0,.694,{ic:.091}],923:[.694,0,.611],924:[.694,0,.875,{ic:.054}],925:[.694,0,.708,{ic:.058}],926:[.688,0,.667,{ic:.098}],927:[.716,.022,.736,{ic:.027}],928:[.691,0,.708,{ic:.06}],929:[.694,0,.639,{ic:.051}],931:[.694,0,.722,{ic:.091}],932:[.688,0,.681,{ic:.109}],933:[.716,0,.778,{ic:.065}],934:[.694,0,.722,{ic:.021}],935:[.694,0,.667,{ic:.091}],936:[.694,0,.778,{ic:.076}],937:[.716,0,.722,{ic:.047}],8211:[.312,-.236,.5,{ic:.065}],8212:[.312,-.236,1,{ic:.065}],8213:[.312,-.236,1,{ic:.065}],8215:[-.038,.114,.5,{ic:.065}],8216:[.694,-.471,.278,{ic:.058}],8217:[.694,-.471,.278,{ic:.057}],8220:[.694,-.471,.5,{ic:.114}],8221:[.694,-.471,.5],8260:[.75,.25,.5,{ic:.1}],8710:[.694,0,.833]}},76798:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.sansSerif=void 0;t.sansSerif={33:[.694,0,.319],34:[.694,-.471,.5],35:[.694,.194,.833],36:[.75,.056,.5],37:[.75,.056,.833],38:[.716,.022,.758],39:[.694,-.471,.278],40:[.75,.25,.389],41:[.75,.25,.389],42:[.75,-.306,.5],43:[.583,.082,.778],44:[.098,.125,.278],45:[.259,-.186,.333],46:[.098,0,.278],47:[.75,.25,.5],58:[.444,0,.278],59:[.444,.125,.278],61:[.37,-.13,.778],63:[.704,0,.472],64:[.704,.011,.667],91:[.75,.25,.289],93:[.75,.25,.289],94:[.694,-.527,.5],95:[-.038,.114,.5],126:[.327,-.193,.5],305:[.444,0,.239],567:[.444,.205,.267],768:[.694,-.527,0],769:[.694,-.527,0],770:[.694,-.527,0],771:[.677,-.543,0],772:[.631,-.552,0],774:[.694,-.508,0],775:[.68,-.576,0],776:[.68,-.582,0],778:[.694,-.527,0],779:[.694,-.527,0],780:[.654,-.487,0],913:[.694,0,.667],914:[.694,0,.667],915:[.691,0,.542],916:[.694,0,.833],917:[.691,0,.597],918:[.694,0,.611],919:[.694,0,.708],920:[.716,.021,.778],921:[.694,0,.278],922:[.694,0,.694],923:[.694,0,.611],924:[.694,0,.875],925:[.694,0,.708],926:[.688,0,.667],927:[.715,.022,.736],928:[.691,0,.708],929:[.694,0,.639],931:[.694,0,.722],932:[.688,0,.681],933:[.716,0,.778],934:[.694,0,.722],935:[.694,0,.667],936:[.694,0,.778],937:[.716,0,.722],8211:[.312,-.236,.5],8212:[.312,-.236,1],8213:[.312,-.236,1],8215:[-.038,.114,.5],8216:[.694,-.471,.278],8217:[.694,-.471,.278],8220:[.694,-.471,.5],8221:[.694,-.471,.5],8260:[.75,.25,.5],8710:[.694,0,.833]}},84356:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.scriptBold=void 0;t.scriptBold={}},77383:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.script=void 0;t.script={}},62993:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.smallop=void 0;t.smallop={40:[.85,.349,.458],41:[.85,.349,.458],47:[.85,.349,.578],91:[.85,.349,.417],92:[.85,.349,.578],93:[.85,.349,.417],123:[.85,.349,.583],125:[.85,.349,.583],710:[.744,-.551,.556],732:[.722,-.597,.556],770:[.744,-.551,0],771:[.722,-.597,0],8214:[.602,0,.778],8260:[.85,.349,.578],8593:[.6,0,.667],8595:[.6,0,.667],8657:[.599,0,.778],8659:[.6,0,.778],8719:[.75,.25,.944],8720:[.75,.25,.944],8721:[.75,.25,1.056],8730:[.85,.35,1,{ic:.02}],8739:[.627,.015,.333],8741:[.627,.015,.556],8747:[.805,.306,.472,{ic:.138}],8748:[.805,.306,.819,{ic:.138}],8749:[.805,.306,1.166,{ic:.138}],8750:[.805,.306,.472,{ic:.138}],8896:[.75,.249,.833],8897:[.75,.249,.833],8898:[.75,.249,.833],8899:[.75,.249,.833],8968:[.85,.349,.472],8969:[.85,.349,.472],8970:[.85,.349,.472],8971:[.85,.349,.472],9001:[.85,.35,.472],9002:[.85,.35,.472],9168:[.602,0,.667],10072:[.627,.015,.333],10216:[.85,.35,.472],10217:[.85,.35,.472],10752:[.75,.25,1.111],10753:[.75,.25,1.111],10754:[.75,.25,1.111],10756:[.75,.249,.833],10758:[.75,.249,.833],10764:[.805,.306,1.638,{ic:.138}],12296:[.85,.35,.472],12297:[.85,.35,.472]}},65410:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.texCalligraphicBold=void 0;t.texCalligraphicBold={65:[.751,.049,.921,{ic:.068,sk:.224}],66:[.705,.017,.748,{sk:.16}],67:[.703,.02,.613,{sk:.16}],68:[.686,0,.892,{sk:.0958}],69:[.703,.016,.607,{ic:.02,sk:.128}],70:[.686,.03,.814,{ic:.116,sk:.128}],71:[.703,.113,.682,{sk:.128}],72:[.686,.048,.987,{sk:.128}],73:[.686,0,.642,{ic:.104,sk:.0319}],74:[.686,.114,.779,{ic:.158,sk:.192}],75:[.703,.017,.871,{sk:.0639}],76:[.703,.017,.788,{sk:.16}],77:[.703,.049,1.378,{sk:.16}],78:[.84,.049,.937,{ic:.168,sk:.0958}],79:[.703,.017,.906,{sk:.128}],80:[.686,.067,.81,{ic:.036,sk:.0958}],81:[.703,.146,.939,{sk:.128}],82:[.686,.017,.99,{sk:.0958}],83:[.703,.016,.696,{ic:.025,sk:.16}],84:[.72,.069,.644,{ic:.303,sk:.0319}],85:[.686,.024,.715,{ic:.056,sk:.0958}],86:[.686,.077,.737,{ic:.037,sk:.0319}],87:[.686,.077,1.169,{ic:.037,sk:.0958}],88:[.686,0,.817,{ic:.089,sk:.16}],89:[.686,.164,.759,{ic:.038,sk:.0958}],90:[.686,0,.818,{ic:.035,sk:.16}],305:[.452,.008,.394,{sk:.0319}],567:[.451,.201,.439,{sk:.0958}]}},77270:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.texCalligraphic=void 0;t.texCalligraphic={65:[.728,.05,.798,{ic:.021,sk:.194}],66:[.705,.022,.657,{sk:.139}],67:[.705,.025,.527,{sk:.139}],68:[.683,0,.771,{sk:.0833}],69:[.705,.022,.528,{ic:.036,sk:.111}],70:[.683,.032,.719,{ic:.11,sk:.111}],71:[.704,.119,.595,{sk:.111}],72:[.683,.048,.845,{sk:.111}],73:[.683,0,.545,{ic:.097,sk:.0278}],74:[.683,.119,.678,{ic:.161,sk:.167}],75:[.705,.022,.762,{sk:.0556}],76:[.705,.022,.69,{sk:.139}],77:[.705,.05,1.201,{sk:.139}],78:[.789,.05,.82,{ic:.159,sk:.0833}],79:[.705,.022,.796,{sk:.111}],80:[.683,.057,.696,{ic:.037,sk:.0833}],81:[.705,.131,.817,{sk:.111}],82:[.682,.022,.848,{sk:.0833}],83:[.705,.022,.606,{ic:.036,sk:.139}],84:[.717,.068,.545,{ic:.288,sk:.0278}],85:[.683,.028,.626,{ic:.061,sk:.0833}],86:[.683,.052,.613,{ic:.045,sk:.0278}],87:[.683,.053,.988,{ic:.046,sk:.0833}],88:[.683,0,.713,{ic:.094,sk:.139}],89:[.683,.143,.668,{ic:.046,sk:.0833}],90:[.683,0,.725,{ic:.042,sk:.139}]}},29503:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.texMathit=void 0;t.texMathit={65:[.716,0,.743],66:[.683,0,.704],67:[.705,.021,.716],68:[.683,0,.755],69:[.68,0,.678],70:[.68,0,.653],71:[.705,.022,.774],72:[.683,0,.743],73:[.683,0,.386],74:[.683,.021,.525],75:[.683,0,.769],76:[.683,0,.627],77:[.683,0,.897],78:[.683,0,.743],79:[.704,.022,.767],80:[.683,0,.678],81:[.704,.194,.767],82:[.683,.022,.729],83:[.705,.022,.562],84:[.677,0,.716],85:[.683,.022,.743],86:[.683,.022,.743],87:[.683,.022,.999],88:[.683,0,.743],89:[.683,0,.743],90:[.683,0,.613],97:[.442,.011,.511],98:[.694,.011,.46],99:[.441,.01,.46],100:[.694,.011,.511],101:[.442,.01,.46],102:[.705,.204,.307],103:[.442,.205,.46],104:[.694,.011,.511],105:[.656,.01,.307],106:[.656,.204,.307],107:[.694,.011,.46],108:[.694,.011,.256],109:[.442,.011,.818],110:[.442,.011,.562],111:[.442,.011,.511],112:[.442,.194,.511],113:[.442,.194,.46],114:[.442,.011,.422],115:[.442,.011,.409],116:[.626,.011,.332],117:[.441,.011,.537],118:[.443,.01,.46],119:[.443,.011,.664],120:[.442,.011,.464],121:[.441,.205,.486],122:[.442,.011,.409]}},11709:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.texOldstyleBold=void 0;t.texOldstyleBold={48:[.46,.017,.575],49:[.461,0,.575],50:[.46,0,.575],51:[.461,.211,.575],52:[.469,.194,.575],53:[.461,.211,.575],54:[.66,.017,.575],55:[.476,.211,.575],56:[.661,.017,.575],57:[.461,.21,.575],65:[.751,.049,.921,{ic:.068,sk:.224}],66:[.705,.017,.748,{sk:.16}],67:[.703,.02,.613,{sk:.16}],68:[.686,0,.892,{sk:.0958}],69:[.703,.016,.607,{ic:.02,sk:.128}],70:[.686,.03,.814,{ic:.116,sk:.128}],71:[.703,.113,.682,{sk:.128}],72:[.686,.048,.987,{sk:.128}],73:[.686,0,.642,{ic:.104,sk:.0319}],74:[.686,.114,.779,{ic:.158,sk:.192}],75:[.703,.017,.871,{sk:.0639}],76:[.703,.017,.788,{sk:.16}],77:[.703,.049,1.378,{sk:.16}],78:[.84,.049,.937,{ic:.168,sk:.0958}],79:[.703,.017,.906,{sk:.128}],80:[.686,.067,.81,{ic:.036,sk:.0958}],81:[.703,.146,.939,{sk:.128}],82:[.686,.017,.99,{sk:.0958}],83:[.703,.016,.696,{ic:.025,sk:.16}],84:[.72,.069,.644,{ic:.303,sk:.0319}],85:[.686,.024,.715,{ic:.056,sk:.0958}],86:[.686,.077,.737,{ic:.037,sk:.0319}],87:[.686,.077,1.169,{ic:.037,sk:.0958}],88:[.686,0,.817,{ic:.089,sk:.16}],89:[.686,.164,.759,{ic:.038,sk:.0958}],90:[.686,0,.818,{ic:.035,sk:.16}]}},49176:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.texOldstyle=void 0;t.texOldstyle={48:[.452,.022,.5],49:[.453,0,.5],50:[.453,0,.5],51:[.452,.216,.5],52:[.464,.194,.5],53:[.453,.216,.5],54:[.665,.022,.5],55:[.463,.216,.5],56:[.666,.021,.5],57:[.453,.216,.5],65:[.728,.05,.798,{ic:.021,sk:.194}],66:[.705,.022,.657,{sk:.139}],67:[.705,.025,.527,{sk:.139}],68:[.683,0,.771,{sk:.0833}],69:[.705,.022,.528,{ic:.036,sk:.111}],70:[.683,.032,.719,{ic:.11,sk:.111}],71:[.704,.119,.595,{sk:.111}],72:[.683,.048,.845,{sk:.111}],73:[.683,0,.545,{ic:.097,sk:.0278}],74:[.683,.119,.678,{ic:.161,sk:.167}],75:[.705,.022,.762,{sk:.0556}],76:[.705,.022,.69,{sk:.139}],77:[.705,.05,1.201,{sk:.139}],78:[.789,.05,.82,{ic:.159,sk:.0833}],79:[.705,.022,.796,{sk:.111}],80:[.683,.057,.696,{ic:.037,sk:.0833}],81:[.705,.131,.817,{sk:.111}],82:[.682,.022,.848,{sk:.0833}],83:[.705,.022,.606,{ic:.036,sk:.139}],84:[.717,.068,.545,{ic:.288,sk:.0278}],85:[.683,.028,.626,{ic:.061,sk:.0833}],86:[.683,.052,.613,{ic:.045,sk:.0278}],87:[.683,.053,.988,{ic:.046,sk:.0833}],88:[.683,0,.713,{ic:.094,sk:.139}],89:[.683,.143,.668,{ic:.046,sk:.0833}],90:[.683,0,.725,{ic:.042,sk:.139}]}},77839:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.texSize3=void 0;t.texSize3={40:[1.45,.949,.736],41:[1.45,.949,.736],47:[1.45,.949,1.044],91:[1.45,.949,.528],92:[1.45,.949,1.044],93:[1.45,.949,.528],123:[1.45,.949,.75],125:[1.45,.949,.75],710:[.772,-.564,1.444],732:[.749,-.61,1.444],770:[.772,-.564,0],771:[.749,-.61,0],8260:[1.45,.949,1.044],8730:[1.45,.95,1,{ic:.02}],8968:[1.45,.949,.583],8969:[1.45,.949,.583],8970:[1.45,.949,.583],8971:[1.45,.949,.583],9001:[1.45,.95,.75],9002:[1.45,.949,.75],10216:[1.45,.95,.75],10217:[1.45,.949,.75],12296:[1.45,.95,.75],12297:[1.45,.949,.75]}},68291:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.texSize4=void 0;t.texSize4={40:[1.75,1.249,.792],41:[1.75,1.249,.792],47:[1.75,1.249,1.278],91:[1.75,1.249,.583],92:[1.75,1.249,1.278],93:[1.75,1.249,.583],123:[1.75,1.249,.806],125:[1.75,1.249,.806],710:[.845,-.561,1.889,{ic:.013}],732:[.823,-.583,1.889],770:[.845,-.561,0,{ic:.013}],771:[.823,-.583,0],8260:[1.75,1.249,1.278],8730:[1.75,1.25,1,{ic:.02}],8968:[1.75,1.249,.639],8969:[1.75,1.249,.639],8970:[1.75,1.249,.639],8971:[1.75,1.249,.639],9001:[1.75,1.248,.806],9002:[1.75,1.248,.806],9115:[1.154,.655,.875],9116:[.61,.01,.875],9117:[1.165,.644,.875],9118:[1.154,.655,.875],9119:[.61,.01,.875],9120:[1.165,.644,.875],9121:[1.154,.645,.667],9122:[.602,0,.667],9123:[1.155,.644,.667],9124:[1.154,.645,.667],9125:[.602,0,.667],9126:[1.155,.644,.667],9127:[.899,.01,.889],9128:[1.16,.66,.889],9129:[.01,.899,.889],9130:[.29,.015,.889],9131:[.899,.01,.889],9132:[1.16,.66,.889],9133:[.01,.899,.889],9143:[.935,.885,1.056],10216:[1.75,1.248,.806],10217:[1.75,1.248,.806],12296:[1.75,1.248,.806],12297:[1.75,1.248,.806],57344:[.625,.014,1.056],57345:[.605,.014,1.056,{ic:.02}],57680:[.12,.213,.45,{ic:.01}],57681:[.12,.213,.45,{ic:.024}],57682:[.333,0,.45,{ic:.01}],57683:[.333,0,.45,{ic:.024}],57684:[.32,.2,.4,{ic:.01}],57685:[.333,0,.9,{ic:.01}],57686:[.12,.213,.9,{ic:.01}]}},19539:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.texVariant=void 0;t.texVariant={710:[.845,-.561,2.333,{ic:.013}],732:[.899,-.628,2.333],770:[.845,-.561,0,{ic:.013}],771:[.899,-.628,0],1008:[.434,.006,.667,{ic:.067}],8463:[.695,.013,.54,{ic:.022}],8592:[.437,-.064,.5],8594:[.437,-.064,.5],8652:[.514,.014,1],8708:[.86,.166,.556],8709:[.587,0,.778],8722:[.27,-.23,.5],8726:[.43,.023,.778],8733:[.472,-.028,.778],8739:[.43,.023,.222],8740:[.43,.023,.222,{ic:.018}],8741:[.431,.023,.389],8742:[.431,.024,.389,{ic:.018}],8764:[.365,-.132,.778],8776:[.481,-.05,.778],8808:[.752,.284,.778],8809:[.752,.284,.778],8816:[.919,.421,.778],8817:[.919,.421,.778],8840:[.828,.33,.778],8841:[.828,.33,.778],8842:[.634,.255,.778],8843:[.634,.254,.778],8872:[.694,0,.611],8901:[.189,0,.278],8994:[.378,-.122,.778],8995:[.378,-.143,.778],9651:[.575,.02,.722],9661:[.576,.019,.722],10887:[.801,.303,.778],10888:[.801,.303,.778],10955:[.752,.332,.778],10956:[.752,.333,.778]}},77130:(c,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.px=t.emRounded=t.em=t.percent=t.length2em=t.MATHSPACE=t.RELUNITS=t.UNITS=t.BIGDIMEN=void 0;t.BIGDIMEN=1e6;t.UNITS={px:1,in:96,cm:96/2.54,mm:96/25.4};t.RELUNITS={em:1,ex:.431,pt:1/10,pc:12/10,mu:1/18};t.MATHSPACE={veryverythinmathspace:1/18,verythinmathspace:2/18,thinmathspace:3/18,mediummathspace:4/18,thickmathspace:5/18,verythickmathspace:6/18,veryverythickmathspace:7/18,negativeveryverythinmathspace:-1/18,negativeverythinmathspace:-2/18,negativethinmathspace:-3/18,negativemediummathspace:-4/18,negativethickmathspace:-5/18,negativeverythickmathspace:-6/18,negativeveryverythickmathspace:-7/18,thin:.04,medium:.06,thick:.1,normal:1,big:2,small:1/Math.sqrt(2),infinity:t.BIGDIMEN};function e(c,e,i,f){if(e===void 0){e=0}if(i===void 0){i=1}if(f===void 0){f=16}if(typeof c!=="string"){c=String(c)}if(c===""||c==null){return e}if(t.MATHSPACE[c]){return t.MATHSPACE[c]}var r=c.match(/^\s*([-+]?(?:\.\d+|\d+(?:\.\d*)?))?(pt|em|ex|mu|px|pc|in|mm|cm|%)?/);if(!r){return e}var s=parseFloat(r[1]||"1"),a=r[2];if(t.UNITS.hasOwnProperty(a)){return s*t.UNITS[a]/f/i}if(t.RELUNITS.hasOwnProperty(a)){return s*t.RELUNITS[a]}if(a==="%"){return s/100*e}return s*e}t.length2em=e;function i(c){return(100*c).toFixed(1).replace(/\.?0+$/,"")+"%"}t.percent=i;function f(c){if(Math.abs(c)<.001)return"0";return c.toFixed(3).replace(/\.?0+$/,"")+"em"}t.em=f;function r(c,t){if(t===void 0){t=16}c=(Math.round(c*t)+.05)/t;if(Math.abs(c)<.001)return"0em";return c.toFixed(3).replace(/\.?0+$/,"")+"em"}t.emRounded=r;function s(c,e,i){if(e===void 0){e=-t.BIGDIMEN}if(i===void 0){i=16}c*=i;if(e&&c{var p;var r=t(31051);if(true){e.s=r.createRoot;p=r.hydrateRoot}else{var o}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/9362.823dcfac216f8057452d.js b/bootcamp/share/jupyter/lab/static/9362.823dcfac216f8057452d.js new file mode 100644 index 0000000..d590904 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/9362.823dcfac216f8057452d.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9362],{19362:(e,t,n)=>{n.r(t);n.d(t,{tiki:()=>_});function r(e,t,n){return function(r,i){while(!r.eol()){if(r.match(t)){i.tokenize=u;break}r.next()}if(n)i.tokenize=n;return e}}function i(e){return function(t,n){while(!t.eol()){t.next()}n.tokenize=u;return e}}function u(e,t){function n(n){t.tokenize=n;return n(e,t)}var a=e.sol();var o=e.next();switch(o){case"{":e.eat("/");e.eatSpace();e.eatWhile(/[^\s\u00a0=\"\'\/?(}]/);t.tokenize=c;return"tag";case"_":if(e.eat("_"))return n(r("strong","__",u));break;case"'":if(e.eat("'"))return n(r("em","''",u));break;case"(":if(e.eat("("))return n(r("link","))",u));break;case"[":return n(r("url","]",u));break;case"|":if(e.eat("|"))return n(r("comment","||"));break;case"-":if(e.eat("=")){return n(r("header string","=-",u))}else if(e.eat("-")){return n(r("error tw-deleted","--",u))}break;case"=":if(e.match("=="))return n(r("tw-underline","===",u));break;case":":if(e.eat(":"))return n(r("comment","::"));break;case"^":return n(r("tw-box","^"));break;case"~":if(e.match("np~"))return n(r("meta","~/np~"));break}if(a){switch(o){case"!":if(e.match("!!!!!")){return n(i("header string"))}else if(e.match("!!!!")){return n(i("header string"))}else if(e.match("!!!")){return n(i("header string"))}else if(e.match("!!")){return n(i("header string"))}else{return n(i("header string"))}break;case"*":case"#":case"+":return n(i("tw-listitem bracket"));break}}return null}var a,o;function c(e,t){var n=e.next();var r=e.peek();if(n=="}"){t.tokenize=u;return"tag"}else if(n=="("||n==")"){return"bracket"}else if(n=="="){o="equals";if(r==">"){e.next();r=e.peek()}if(!/[\'\"]/.test(r)){t.tokenize=s()}return"operator"}else if(/[\'\"]/.test(n)){t.tokenize=f(n);return t.tokenize(e,t)}else{e.eatWhile(/[^\s\u00a0=\"\'\/?]/);return"keyword"}}function f(e){return function(t,n){while(!t.eol()){if(t.next()==e){n.tokenize=c;break}}return"string"}}function s(){return function(e,t){while(!e.eol()){var n=e.next();var r=e.peek();if(n==" "||n==","||/[ )}]/.test(r)){t.tokenize=c;break}}return"string"}}var l,k;function p(){for(var e=arguments.length-1;e>=0;e--)l.cc.push(arguments[e])}function d(){p.apply(null,arguments);return true}function h(e,t){var n=l.context&&l.context.noIndent;l.context={prev:l.context,pluginName:e,indent:l.indented,startOfLine:t,noIndent:n}}function g(){if(l.context)l.context=l.context.prev}function b(e){if(e=="openPlugin"){l.pluginName=a;return d(v,m(l.startOfLine))}else if(e=="closePlugin"){var t=false;if(l.context){t=l.context.pluginName!=a;g()}else{t=true}if(t)k="error";return d(x(t))}else if(e=="string"){if(!l.context||l.context.name!="!cdata")h("!cdata");if(l.tokenize==u)g();return d()}else return d()}function m(e){return function(t){if(t=="selfclosePlugin"||t=="endPlugin")return d();if(t=="endPlugin"){h(l.pluginName,e);return d()}return d()}}function x(e){return function(t){if(e)k="error";if(t=="endPlugin")return d();return p()}}function v(e){if(e=="keyword"){k="attribute";return d(v)}if(e=="equals")return d(w,v);return p()}function w(e){if(e=="keyword"){k="string";return d()}if(e=="string")return d(z);return p()}function z(e){if(e=="string")return d(z);else return p()}const _={name:"tiki",startState:function(){return{tokenize:u,cc:[],indented:0,startOfLine:true,pluginName:null,context:null}},token:function(e,t){if(e.sol()){t.startOfLine=true;t.indented=e.indentation()}if(e.eatSpace())return null;k=o=a=null;var n=t.tokenize(e,t);if((n||o)&&n!="comment"){l=t;while(true){var r=t.cc.pop()||b;if(r(o||n))break}}t.startOfLine=false;return k||n},indent:function(e,t,n){var r=e.context;if(r&&r.noIndent)return 0;if(r&&/^{\//.test(t))r=r.prev;while(r&&!r.startOfLine)r=r.prev;if(r)return r.indent+n.unit;else return 0}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/9409.34c33ed11e2d6f318480.js b/bootcamp/share/jupyter/lab/static/9409.34c33ed11e2d6f318480.js new file mode 100644 index 0000000..684fee5 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/9409.34c33ed11e2d6f318480.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9409],{89409:(e,n,t)=>{t.r(n);t.d(n,{dylan:()=>k});function i(e,n){for(var t=0;t",symbolGlobal:"\\*"+o+"\\*",symbolConstant:"\\$"+o};var s={symbolKeyword:"atom",symbolClass:"tag",symbolGlobal:"variableName.standard",symbolConstant:"variableName.constant"};for(var u in f)if(f.hasOwnProperty(u))f[u]=new RegExp("^"+f[u]);f["keyword"]=[/^with(?:out)?-[-_a-zA-Z?!*@<>$%]+/];var c={};c["keyword"]="keyword";c["definition"]="def";c["simpleDefinition"]="def";c["signalingCalls"]="builtin";var m={};var p={};i(["keyword","definition","simpleDefinition","signalingCalls"],(function(e){i(a[e],(function(n){m[n]=e;p[n]=c[e]}))}));function d(e,n,t){n.tokenize=t;return t(e,n)}function b(e,n){var t=e.peek();if(t=="'"||t=='"'){e.next();return d(e,n,y(t,"string"))}else if(t=="/"){e.next();if(e.eat("*")){return d(e,n,h)}else if(e.eat("/")){e.skipToEnd();return"comment"}e.backUp(1)}else if(/[+\-\d\.]/.test(t)){if(e.match(/^[+-]?[0-9]*\.[0-9]*([esdx][+-]?[0-9]+)?/i)||e.match(/^[+-]?[0-9]+([esdx][+-]?[0-9]+)/i)||e.match(/^[+-]?\d+/)){return"number"}}else if(t=="#"){e.next();t=e.peek();if(t=='"'){e.next();return d(e,n,y('"',"string"))}else if(t=="b"){e.next();e.eatWhile(/[01]/);return"number"}else if(t=="x"){e.next();e.eatWhile(/[\da-f]/i);return"number"}else if(t=="o"){e.next();e.eatWhile(/[0-7]/);return"number"}else if(t=="#"){e.next();return"punctuation"}else if(t=="["||t=="("){e.next();return"bracket"}else if(e.match(/f|t|all-keys|include|key|next|rest/i)){return"atom"}else{e.eatWhile(/[-a-zA-Z]/);return"error"}}else if(t=="~"){e.next();t=e.peek();if(t=="="){e.next();t=e.peek();if(t=="="){e.next();return"operator"}return"operator"}return"operator"}else if(t==":"){e.next();t=e.peek();if(t=="="){e.next();return"operator"}else if(t==":"){e.next();return"punctuation"}}else if("[](){}".indexOf(t)!=-1){e.next();return"bracket"}else if(".,".indexOf(t)!=-1){e.next();return"punctuation"}else if(e.match("end")){return"keyword"}for(var i in f){if(f.hasOwnProperty(i)){var a=f[i];if(a instanceof Array&&r(a,(function(n){return e.match(n)}))||e.match(a))return s[i]}}if(/[+\-*\/^=<>&|]/.test(t)){e.next();return"operator"}if(e.match("define")){return"def"}else{e.eatWhile(/[\w\-]/);if(m.hasOwnProperty(e.current())){return p[e.current()]}else if(e.current().match(l)){return"variable"}else{e.next();return"variableName.standard"}}}function h(e,n){var t=false,i=false,r=0,a;while(a=e.next()){if(a=="/"&&t){if(r>0){r--}else{n.tokenize=b;break}}else if(a=="*"&&i){r++}t=a=="*";i=a=="/"}return"comment"}function y(e,n){return function(t,i){var r=false,a,o=false;while((a=t.next())!=null){if(a==e&&!r){o=true;break}r=!r&&a=="\\"}if(o||!r){i.tokenize=b}return n}}const k={name:"dylan",startState:function(){return{tokenize:b,currentIndent:0}},token:function(e,n){if(e.eatSpace())return null;var t=n.tokenize(e,n);return t},languageData:{commentTokens:{block:{open:"/*",close:"*/"}}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/942.93c8de61ea9ea08ec097.js b/bootcamp/share/jupyter/lab/static/942.93c8de61ea9ea08ec097.js new file mode 100644 index 0000000..9a49630 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/942.93c8de61ea9ea08ec097.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[942],{60942:(e,t,n)=>{n.r(t);n.d(t,{c:()=>D,ceylon:()=>V,clike:()=>s,cpp:()=>z,csharp:()=>M,dart:()=>H,java:()=>L,kotlin:()=>O,nesC:()=>A,objectiveC:()=>U,objectiveCpp:()=>$,scala:()=>P,shader:()=>j,squirrel:()=>B});function r(e,t,n,r,a,i){this.indented=e;this.column=t;this.type=n;this.info=r;this.align=a;this.prev=i}function a(e,t,n,a){var i=e.indented;if(e.context&&e.context.type=="statement"&&n!="statement")i=e.context.indented;return e.context=new r(i,t,n,a,null,e.context)}function i(e){var t=e.context.type;if(t==")"||t=="]"||t=="}")e.indented=e.context.indented;return e.context=e.context.prev}function o(e,t,n){if(t.prevToken=="variable"||t.prevToken=="type")return true;if(/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(e.string.slice(0,n)))return true;if(t.typeAtEndOfLine&&e.column()==e.indentation())return true}function l(e){for(;;){if(!e||e.type=="top")return true;if(e.type=="}"&&e.prev.info!="namespace")return false;e=e.prev}}function s(e){var t=e.statementIndentUnit,n=e.dontAlignCalls,s=e.keywords||{},c=e.types||{},f=e.builtin||{},d=e.blockKeywords||{},p=e.defKeywords||{},m=e.atoms||{},h=e.hooks||{},y=e.multiLineStrings,g=e.indentStatements!==false,k=e.indentSwitch!==false,b=e.namespaceSeparator,w=e.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,v=e.numberStart||/[\d\.]/,_=e.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,x=e.isOperatorChar||/[+\-*&%=<>!?|\/]/,S=e.isIdentifierChar||/[\w\$_\xa1-\uffff]/,T=e.isReservedIdentifier||false;var N,C;function I(e,t){var n=e.next();if(h[n]){var r=h[n](e,t);if(r!==false)return r}if(n=='"'||n=="'"){t.tokenize=D(n);return t.tokenize(e,t)}if(v.test(n)){e.backUp(1);if(e.match(_))return"number";e.next()}if(w.test(n)){N=n;return null}if(n=="/"){if(e.eat("*")){t.tokenize=z;return z(e,t)}if(e.eat("/")){e.skipToEnd();return"comment"}}if(x.test(n)){while(!e.match(/^\/[\/*]/,false)&&e.eat(x)){}return"operator"}e.eatWhile(S);if(b)while(e.match(b))e.eatWhile(S);var a=e.current();if(u(s,a)){if(u(d,a))N="newstatement";if(u(p,a))C=true;return"keyword"}if(u(c,a))return"type";if(u(f,a)||T&&T(a)){if(u(d,a))N="newstatement";return"builtin"}if(u(m,a))return"atom";return"variable"}function D(e){return function(t,n){var r=false,a,i=false;while((a=t.next())!=null){if(a==e&&!r){i=true;break}r=!r&&a=="\\"}if(i||!(r||y))n.tokenize=null;return"string"}}function z(e,t){var n=false,r;while(r=e.next()){if(r=="/"&&n){t.tokenize=null;break}n=r=="*"}return"comment"}function L(t,n){if(e.typeFirstDefinitions&&t.eol()&&l(n.context))n.typeAtEndOfLine=o(t,n,t.pos)}return{name:e.name,startState:function(e){return{tokenize:null,context:new r(-e,0,"top",null,false),indented:0,startOfLine:true,prevToken:null}},token:function(t,n){var r=n.context;if(t.sol()){if(r.align==null)r.align=false;n.indented=t.indentation();n.startOfLine=true}if(t.eatSpace()){L(t,n);return null}N=C=null;var s=(n.tokenize||I)(t,n);if(s=="comment"||s=="meta")return s;if(r.align==null)r.align=true;if(N==";"||N==":"||N==","&&t.match(/^\s*(?:\/\/.*)?$/,false))while(n.context.type=="statement")i(n);else if(N=="{")a(n,t.column(),"}");else if(N=="[")a(n,t.column(),"]");else if(N=="(")a(n,t.column(),")");else if(N=="}"){while(r.type=="statement")r=i(n);if(r.type=="}")r=i(n);while(r.type=="statement")r=i(n)}else if(N==r.type)i(n);else if(g&&((r.type=="}"||r.type=="top")&&N!=";"||r.type=="statement"&&N=="newstatement")){a(n,t.column(),"statement",t.current())}if(s=="variable"&&(n.prevToken=="def"||e.typeFirstDefinitions&&o(t,n,t.start)&&l(n.context)&&t.match(/^\s*\(/,false)))s="def";if(h.token){var c=h.token(t,n,s);if(c!==undefined)s=c}if(s=="def"&&e.styleDefs===false)s="variable";n.startOfLine=false;n.prevToken=C?"def":s||N;L(t,n);return s},indent:function(r,a,i){if(r.tokenize!=I&&r.tokenize!=null||r.typeAtEndOfLine)return null;var o=r.context,l=a&&a.charAt(0);var s=l==o.type;if(o.type=="statement"&&l=="}")o=o.prev;if(e.dontIndentStatements)while(o.type=="statement"&&e.dontIndentStatements.test(o.info))o=o.prev;if(h.indent){var c=h.indent(r,o,a,i.unit);if(typeof c=="number")return c}var u=o.prev&&o.prev.info=="switch";if(e.allmanIndentation&&/[{(]/.test(l)){while(o.type!="top"&&o.type!="}")o=o.prev;return o.indented}if(o.type=="statement")return o.indented+(l=="{"?0:t||i.unit);if(o.align&&(!n||o.type!=")"))return o.column+(s?0:1);if(o.type==")"&&!s)return o.indented+(t||i.unit);return o.indented+(s?0:i.unit)+(!s&&u&&!/^(?:case|default)\b/.test(a)?i.unit:0)},languageData:{indentOnInput:k?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,commentTokens:{line:"//",block:{open:"/*",close:"*/"}},autocomplete:Object.keys(s).concat(Object.keys(c)).concat(Object.keys(f)).concat(Object.keys(m)),...e.languageData}}}function c(e){var t={},n=e.split(" ");for(var r=0;r!?|\/#:@]/,hooks:{"@":function(e){e.eatWhile(/[\w\$_]/);return"meta"},'"':function(e,t){if(!e.match('""'))return false;t.tokenize=E;return t.tokenize(e,t)},"'":function(e){if(e.match(/^(\\[^'\s]+|[^\\'])'/))return"character";e.eatWhile(/[\w\$_\xa1-\uffff]/);return"atom"},"=":function(e,t){var n=t.context;if(n.type=="}"&&n.align&&e.eat(">")){t.context=new r(n.indented,n.column,n.type,n.info,null,n.prev);return"operator"}else{return false}},"/":function(e,t){if(!e.eat("*"))return false;t.tokenize=F(1);return t.tokenize(e,t)}},languageData:{closeBrackets:{brackets:["(","[","{","'",'"','"""']}}});function R(e){return function(t,n){var r=false,a,i=false;while(!t.eol()){if(!e&&!r&&t.match('"')){i=true;break}if(e&&t.match('"""')){i=true;break}a=t.next();if(!r&&a=="$"&&t.match("{"))t.skipTo("}");r=!r&&a=="\\"&&!e}if(i||!e)n.tokenize=null;return"string"}}const O=s({name:"kotlin",keywords:c("package as typealias class interface this super val operator "+"var fun for is in This throw return annotation "+"break continue object if else while do try when !in !is as? "+"file import where by get set abstract enum open inner override private public internal "+"protected catch finally out final vararg reified dynamic companion constructor init "+"sealed field property receiver param sparam lateinit data inline noinline tailrec "+"external annotation crossinline const operator infix suspend actual expect setparam"),types:c("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable "+"Compiler Double Exception Float Integer Long Math Number Object Package Pair Process "+"Runtime Runnable SecurityManager Short StackTraceElement StrictMath String "+"StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray "+"ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy "+"LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:false,indentStatements:false,multiLineStrings:true,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:c("catch class do else finally for if where try while enum"),defKeywords:c("class val var object interface fun"),atoms:c("true false null this"),hooks:{"@":function(e){e.eatWhile(/[\w\$_]/);return"meta"},"*":function(e,t){return t.prevToken=="."?"variable":"operator"},'"':function(e,t){t.tokenize=R(e.match('""'));return t.tokenize(e,t)},"/":function(e,t){if(!e.eat("*"))return false;t.tokenize=F(1);return t.tokenize(e,t)},indent:function(e,t,n,r){var a=n&&n.charAt(0);if((e.prevToken=="}"||e.prevToken==")")&&n=="")return e.indented;if(e.prevToken=="operator"&&n!="}"&&e.context.type!="}"||e.prevToken=="variable"&&a=="."||(e.prevToken=="}"||e.prevToken==")")&&a==".")return r*2+t.indented;if(t.align&&t.type=="}")return t.indented+(e.context.type==(n||"").charAt(0)?0:r)}},languageData:{closeBrackets:{brackets:["(","[","{","'",'"','"""']}}});const j=s({name:"shader",keywords:c("sampler1D sampler2D sampler3D samplerCube "+"sampler1DShadow sampler2DShadow "+"const attribute uniform varying "+"break continue discard return "+"for while do if else struct "+"in out inout"),types:c("float int bool void "+"vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 "+"mat2 mat3 mat4"),blockKeywords:c("for while do if else struct"),builtin:c("radians degrees sin cos tan asin acos atan "+"pow exp log exp2 sqrt inversesqrt "+"abs sign floor ceil fract mod min max clamp mix step smoothstep "+"length distance dot cross normalize ftransform faceforward "+"reflect refract matrixCompMult "+"lessThan lessThanEqual greaterThan greaterThanEqual "+"equal notEqual any all not "+"texture1D texture1DProj texture1DLod texture1DProjLod "+"texture2D texture2DProj texture2DLod texture2DProjLod "+"texture3D texture3DProj texture3DLod texture3DProjLod "+"textureCube textureCubeLod "+"shadow1D shadow2D shadow1DProj shadow2DProj "+"shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod "+"dFdx dFdy fwidth "+"noise1 noise2 noise3 noise4"),atoms:c("true false "+"gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex "+"gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 "+"gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 "+"gl_FogCoord gl_PointCoord "+"gl_Position gl_PointSize gl_ClipVertex "+"gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor "+"gl_TexCoord gl_FogFragCoord "+"gl_FragCoord gl_FrontFacing "+"gl_FragData gl_FragDepth "+"gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix "+"gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse "+"gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse "+"gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose "+"gl_ProjectionMatrixInverseTranspose "+"gl_ModelViewProjectionMatrixInverseTranspose "+"gl_TextureMatrixInverseTranspose "+"gl_NormalScale gl_DepthRange gl_ClipPlane "+"gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel "+"gl_FrontLightModelProduct gl_BackLightModelProduct "+"gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ "+"gl_FogParameters "+"gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords "+"gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats "+"gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits "+"gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits "+"gl_MaxDrawBuffers"),indentSwitch:false,hooks:{"#":v}});const A=s({name:"nesc",keywords:c(f+" as atomic async call command component components configuration event generic "+"implementation includes interface module new norace nx_struct nx_union post provides "+"signal task uses abstract extends"),types:g,blockKeywords:c(b),atoms:c("null true false"),hooks:{"#":v}});const U=s({name:"objectivec",keywords:c(f+" "+p),types:k,builtin:c(m),blockKeywords:c(b+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:c(w+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:true,atoms:c("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:x,hooks:{"#":v,"*":_}});const $=s({name:"objectivecpp",keywords:c(f+" "+p+" "+d),types:k,builtin:c(m),blockKeywords:c(b+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:c(w+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:true,atoms:c("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:x,hooks:{"#":v,"*":_,u:T,U:T,L:T,R:T,0:S,1:S,2:S,3:S,4:S,5:S,6:S,7:S,8:S,9:S,token:function(e,t,n){if(n=="variable"&&e.peek()=="("&&(t.prevToken==";"||t.prevToken==null||t.prevToken=="}")&&N(e.current()))return"def"}},namespaceSeparator:"::"});const B=s({name:"squirrel",keywords:c("base break clone continue const default delete enum extends function in class"+" foreach local resume return this throw typeof yield constructor instanceof static"),types:g,blockKeywords:c("case catch class else for foreach if switch try while"),defKeywords:c("function local class"),typeFirstDefinitions:true,atoms:c("true false null"),hooks:{"#":v}});var K=null;function q(e){return function(t,n){var r=false,a,i=false;while(!t.eol()){if(!r&&t.match('"')&&(e=="single"||t.match('""'))){i=true;break}if(!r&&t.match("``")){K=q(e);i=true;break}a=t.next();r=e=="single"&&!r&&a=="\\"}if(i)n.tokenize=null;return"string"}}const V=s({name:"ceylon",keywords:c("abstracts alias assembly assert assign break case catch class continue dynamic else"+" exists extends finally for function given if import in interface is let module new"+" nonempty object of out outer package return satisfies super switch then this throw"+" try value void while"),types:function(e){var t=e.charAt(0);return t===t.toUpperCase()&&t!==t.toLowerCase()},blockKeywords:c("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:c("class dynamic function interface module object package value"),builtin:c("abstract actual aliased annotation by default deprecated doc final formal late license"+" native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:true,typeFirstDefinitions:true,atoms:c("true false null larger smaller equal empty finished"),indentSwitch:false,styleDefs:false,hooks:{"@":function(e){e.eatWhile(/[\w\$_]/);return"meta"},'"':function(e,t){t.tokenize=q(e.match('""')?"triple":"single");return t.tokenize(e,t)},"`":function(e,t){if(!K||!e.match("`"))return false;t.tokenize=K;K=null;return t.tokenize(e,t)},"'":function(e){e.eatWhile(/[\w\$_\xa1-\uffff]/);return"atom"},token:function(e,t,n){if((n=="variable"||n=="type")&&t.prevToken=="."){return"variableName.special"}}},languageData:{closeBrackets:{brackets:["(","[","{","'",'"','"""']}}});function W(e){(e.interpolationStack||(e.interpolationStack=[])).push(e.tokenize)}function G(e){return(e.interpolationStack||(e.interpolationStack=[])).pop()}function Z(e){return e.interpolationStack?e.interpolationStack.length:0}function Q(e,t,n,r){var a=false;if(t.eat(e)){if(t.eat(e))a=true;else return"string"}function i(t,n){var i=false;while(!t.eol()){if(!r&&!i&&t.peek()=="$"){W(n);n.tokenize=X;return"string"}var o=t.next();if(o==e&&!i&&(!a||t.match(e+e))){n.tokenize=null;break}i=!r&&!i&&o=="\\"}return"string"}n.tokenize=i;return i(t,n)}function X(e,t){e.eat("$");if(e.eat("{")){t.tokenize=null}else{t.tokenize=Y}return null}function Y(e,t){e.eatWhile(/[\w_]/);t.tokenize=G(t);return"variable"}const H=s({name:"dart",keywords:c("this super static final const abstract class extends external factory "+"implements mixin get native set typedef with enum throw rethrow "+"assert break case continue default in return new deferred async await covariant "+"try catch finally do else for if switch while import library export "+"part of show hide is as extension on yield late required"),blockKeywords:c("try catch finally do else for if switch while"),builtin:c("void bool num int double dynamic var String Null Never"),atoms:c("true false null"),hooks:{"@":function(e){e.eatWhile(/[\w\$_\.]/);return"meta"},"'":function(e,t){return Q("'",e,t,false)},'"':function(e,t){return Q('"',e,t,false)},r:function(e,t){var n=e.peek();if(n=="'"||n=='"'){return Q(e.next(),e,t,true)}return false},"}":function(e,t){if(Z(t)>0){t.tokenize=G(t);return null}return false},"/":function(e,t){if(!e.eat("*"))return false;t.tokenize=F(1);return t.tokenize(e,t)},token:function(e,t,n){if(n=="variable"){var r=RegExp("^[_$]*[A-Z][a-zA-Z0-9_$]*$","g");if(r.test(e.current())){return"type"}}}}})}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/9421.022dc7b4e9a2c80c32c2.js b/bootcamp/share/jupyter/lab/static/9421.022dc7b4e9a2c80c32c2.js new file mode 100644 index 0000000..ba4bdf1 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/9421.022dc7b4e9a2c80c32c2.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9421],{9421:e=>{!function(t,i){true?e.exports=i():0}(self,(function(){return(()=>{"use strict";var e={903:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.BaseRenderLayer=void 0;const s=i(503),r=i(627),o=i(237),n=i(860),a=i(374),h=i(296),l=i(855),c=i(274),d=i(859),_=i(399),u=i(345);class g extends d.Disposable{constructor(e,t,i,r,o,n,a,l,_,g){super(),this._terminal=e,this._container=t,this._alpha=o,this._themeService=n,this._bufferService=a,this._optionsService=l,this._decorationService=_,this._coreBrowserService=g,this._deviceCharWidth=0,this._deviceCharHeight=0,this._deviceCellWidth=0,this._deviceCellHeight=0,this._deviceCharLeft=0,this._deviceCharTop=0,this._selectionModel=(0,h.createSelectionRenderModel)(),this._bitmapGenerator=[],this._onAddTextureAtlasCanvas=this.register(new u.EventEmitter),this.onAddTextureAtlasCanvas=this._onAddTextureAtlasCanvas.event,this._cellColorResolver=new c.CellColorResolver(this._terminal,this._selectionModel,this._decorationService,this._coreBrowserService,this._themeService),this._canvas=document.createElement("canvas"),this._canvas.classList.add(`xterm-${i}-layer`),this._canvas.style.zIndex=r.toString(),this._initCanvas(),this._container.appendChild(this._canvas),this._refreshCharAtlas(this._themeService.colors),this.register(this._themeService.onChangeColors((e=>{this._refreshCharAtlas(e),this.reset()}))),this.register((0,d.toDisposable)((()=>{var e;(0,s.removeElementFromParent)(this._canvas),null===(e=this._charAtlas)||void 0===e||e.dispose()})))}get canvas(){return this._canvas}get cacheCanvas(){var e;return null===(e=this._charAtlas)||void 0===e?void 0:e.pages[0].canvas}_initCanvas(){this._ctx=(0,a.throwIfFalsy)(this._canvas.getContext("2d",{alpha:this._alpha})),this._alpha||this._clearAll()}handleBlur(){}handleFocus(){}handleCursorMove(){}handleGridChanged(e,t){}handleSelectionChanged(e,t,i=!1){this._selectionModel.update(this._terminal,e,t,i)}_setTransparency(e){if(e===this._alpha)return;const t=this._canvas;this._alpha=e,this._canvas=this._canvas.cloneNode(),this._initCanvas(),this._container.replaceChild(this._canvas,t),this._refreshCharAtlas(this._themeService.colors),this.handleGridChanged(0,this._bufferService.rows-1)}_refreshCharAtlas(e){var t;if(!(this._deviceCharWidth<=0&&this._deviceCharHeight<=0)){null===(t=this._charAtlasDisposable)||void 0===t||t.dispose(),this._charAtlas=(0,r.acquireTextureAtlas)(this._terminal,this._optionsService.rawOptions,e,this._deviceCellWidth,this._deviceCellHeight,this._deviceCharWidth,this._deviceCharHeight,this._coreBrowserService.dpr),this._charAtlasDisposable=(0,u.forwardEvent)(this._charAtlas.onAddTextureAtlasCanvas,this._onAddTextureAtlasCanvas),this._charAtlas.warmUp();for(let e=0;e1?this._charAtlas.getRasterizedGlyphCombinedChar(o,this._cellColorResolver.result.bg,this._cellColorResolver.result.fg,this._cellColorResolver.result.ext):this._charAtlas.getRasterizedGlyph(e.getCode()||l.WHITESPACE_CELL_CODE,this._cellColorResolver.result.bg,this._cellColorResolver.result.fg,this._cellColorResolver.result.ext),n.size.x&&n.size.y&&(this._ctx.save(),this._clipRow(i),this._charAtlas.pages[n.texturePage].version!==(null===(s=this._bitmapGenerator[n.texturePage])||void 0===s?void 0:s.version)&&(this._bitmapGenerator[n.texturePage]||(this._bitmapGenerator[n.texturePage]=new f(this._charAtlas.pages[n.texturePage].canvas)),this._bitmapGenerator[n.texturePage].refresh(),this._bitmapGenerator[n.texturePage].version=this._charAtlas.pages[n.texturePage].version),this._ctx.drawImage((null===(r=this._bitmapGenerator[n.texturePage])||void 0===r?void 0:r.bitmap)||this._charAtlas.pages[n.texturePage].canvas,n.texturePosition.x,n.texturePosition.y,n.size.x,n.size.y,t*this._deviceCellWidth+this._deviceCharLeft-n.offset.x,i*this._deviceCellHeight+this._deviceCharTop-n.offset.y,n.size.x,n.size.y),this._ctx.restore())}_clipRow(e){this._ctx.beginPath(),this._ctx.rect(0,e*this._deviceCellHeight,this._bufferService.cols*this._deviceCellWidth,this._deviceCellHeight),this._ctx.clip()}_getFont(e,t){return`${t?"italic":""} ${e?this._optionsService.rawOptions.fontWeightBold:this._optionsService.rawOptions.fontWeight} ${this._optionsService.rawOptions.fontSize*this._coreBrowserService.dpr}px ${this._optionsService.rawOptions.fontFamily}`}}t.BaseRenderLayer=g;class f{constructor(e){this._canvas=e,this._state=0,this._commitTimeout=void 0,this._bitmap=void 0,this.version=-1}get bitmap(){return this._bitmap}refresh(){this._bitmap=void 0,_.isSafari||(void 0===this._commitTimeout&&(this._commitTimeout=window.setTimeout((()=>this._generate()),100)),1===this._state&&(this._state=2))}_generate(){0===this._state&&(this._bitmap=void 0,this._state=1,window.createImageBitmap(this._canvas).then((e=>{2===this._state?this.refresh():this._bitmap=e,this._state=0})),this._commitTimeout&&(this._commitTimeout=void 0))}}},949:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasRenderer=void 0;const s=i(627),r=i(56),o=i(374),n=i(345),a=i(859),h=i(873),l=i(43),c=i(630),d=i(744);class _ extends a.Disposable{constructor(e,t,i,_,u,g,f,v,C,p,m){super(),this._terminal=e,this._screenElement=t,this._bufferService=_,this._charSizeService=u,this._optionsService=g,this._coreBrowserService=C,this._themeService=m,this._onRequestRedraw=this.register(new n.EventEmitter),this.onRequestRedraw=this._onRequestRedraw.event,this._onChangeTextureAtlas=this.register(new n.EventEmitter),this.onChangeTextureAtlas=this._onChangeTextureAtlas.event,this._onAddTextureAtlasCanvas=this.register(new n.EventEmitter),this.onAddTextureAtlasCanvas=this._onAddTextureAtlasCanvas.event;const w=this._optionsService.rawOptions.allowTransparency;this._renderLayers=[new d.TextRenderLayer(this._terminal,this._screenElement,0,w,this._bufferService,this._optionsService,f,p,this._coreBrowserService,m),new c.SelectionRenderLayer(this._terminal,this._screenElement,1,this._bufferService,this._coreBrowserService,p,this._optionsService,m),new l.LinkRenderLayer(this._terminal,this._screenElement,2,i,this._bufferService,this._optionsService,p,this._coreBrowserService,m),new h.CursorRenderLayer(this._terminal,this._screenElement,3,this._onRequestRedraw,this._bufferService,this._optionsService,v,this._coreBrowserService,p,m)];for(const s of this._renderLayers)(0,n.forwardEvent)(s.onAddTextureAtlasCanvas,this._onAddTextureAtlasCanvas);this.dimensions=(0,o.createRenderDimensions)(),this._devicePixelRatio=this._coreBrowserService.dpr,this._updateDimensions(),this.register((0,r.observeDevicePixelDimensions)(this._renderLayers[0].canvas,this._coreBrowserService.window,((e,t)=>this._setCanvasDevicePixelDimensions(e,t)))),this.register((0,a.toDisposable)((()=>{for(const e of this._renderLayers)e.dispose();(0,s.removeTerminalFromCache)(this._terminal)})))}get textureAtlas(){return this._renderLayers[0].cacheCanvas}handleDevicePixelRatioChange(){this._devicePixelRatio!==this._coreBrowserService.dpr&&(this._devicePixelRatio=this._coreBrowserService.dpr,this.handleResize(this._bufferService.cols,this._bufferService.rows))}handleResize(e,t){this._updateDimensions();for(const i of this._renderLayers)i.resize(this.dimensions);this._screenElement.style.width=`${this.dimensions.css.canvas.width}px`,this._screenElement.style.height=`${this.dimensions.css.canvas.height}px`}handleCharSizeChanged(){this.handleResize(this._bufferService.cols,this._bufferService.rows)}handleBlur(){this._runOperation((e=>e.handleBlur()))}handleFocus(){this._runOperation((e=>e.handleFocus()))}handleSelectionChanged(e,t,i=!1){this._runOperation((s=>s.handleSelectionChanged(e,t,i))),this._themeService.colors.selectionForeground&&this._onRequestRedraw.fire({start:0,end:this._bufferService.rows-1})}handleCursorMove(){this._runOperation((e=>e.handleCursorMove()))}clear(){this._runOperation((e=>e.reset()))}_runOperation(e){for(const t of this._renderLayers)e(t)}renderRows(e,t){for(const i of this._renderLayers)i.handleGridChanged(e,t)}clearTextureAtlas(){for(const e of this._renderLayers)e.clearTextureAtlas()}_updateDimensions(){if(!this._charSizeService.hasValidSize)return;const e=this._coreBrowserService.dpr;this.dimensions.device.char.width=Math.floor(this._charSizeService.width*e),this.dimensions.device.char.height=Math.ceil(this._charSizeService.height*e),this.dimensions.device.cell.height=Math.floor(this.dimensions.device.char.height*this._optionsService.rawOptions.lineHeight),this.dimensions.device.char.top=1===this._optionsService.rawOptions.lineHeight?0:Math.round((this.dimensions.device.cell.height-this.dimensions.device.char.height)/2),this.dimensions.device.cell.width=this.dimensions.device.char.width+Math.round(this._optionsService.rawOptions.letterSpacing),this.dimensions.device.char.left=Math.floor(this._optionsService.rawOptions.letterSpacing/2),this.dimensions.device.canvas.height=this._bufferService.rows*this.dimensions.device.cell.height,this.dimensions.device.canvas.width=this._bufferService.cols*this.dimensions.device.cell.width,this.dimensions.css.canvas.height=Math.round(this.dimensions.device.canvas.height/e),this.dimensions.css.canvas.width=Math.round(this.dimensions.device.canvas.width/e),this.dimensions.css.cell.height=this.dimensions.css.canvas.height/this._bufferService.rows,this.dimensions.css.cell.width=this.dimensions.css.canvas.width/this._bufferService.cols}_setCanvasDevicePixelDimensions(e,t){this.dimensions.device.canvas.height=t,this.dimensions.device.canvas.width=e;for(const i of this._renderLayers)i.resize(this.dimensions);this._requestRedrawViewport()}_requestRedrawViewport(){this._onRequestRedraw.fire({start:0,end:this._bufferService.rows-1})}}t.CanvasRenderer=_},873:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CursorRenderLayer=void 0;const s=i(903),r=i(782),o=i(859);class n extends s.BaseRenderLayer{constructor(e,t,i,s,n,a,h,l,c,d){super(e,t,"cursor",i,!0,d,n,a,c,l),this._onRequestRedraw=s,this._coreService=h,this._cell=new r.CellData,this._state={x:0,y:0,isFocused:!1,style:"",width:0},this._cursorRenderers={bar:this._renderBarCursor.bind(this),block:this._renderBlockCursor.bind(this),underline:this._renderUnderlineCursor.bind(this)},this.register(a.onOptionChange((()=>this._handleOptionsChanged()))),this.register((0,o.toDisposable)((()=>{var e;null===(e=this._cursorBlinkStateManager)||void 0===e||e.dispose(),this._cursorBlinkStateManager=void 0})))}resize(e){super.resize(e),this._state={x:0,y:0,isFocused:!1,style:"",width:0}}reset(){var e;this._clearCursor(),null===(e=this._cursorBlinkStateManager)||void 0===e||e.restartBlinkAnimation(),this._handleOptionsChanged()}handleBlur(){var e;null===(e=this._cursorBlinkStateManager)||void 0===e||e.pause(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})}handleFocus(){var e;null===(e=this._cursorBlinkStateManager)||void 0===e||e.resume(),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})}_handleOptionsChanged(){var e;this._optionsService.rawOptions.cursorBlink?this._cursorBlinkStateManager||(this._cursorBlinkStateManager=new a(this._coreBrowserService.isFocused,(()=>{this._render(!0)}),this._coreBrowserService)):(null===(e=this._cursorBlinkStateManager)||void 0===e||e.dispose(),this._cursorBlinkStateManager=void 0),this._onRequestRedraw.fire({start:this._bufferService.buffer.y,end:this._bufferService.buffer.y})}handleCursorMove(){var e;null===(e=this._cursorBlinkStateManager)||void 0===e||e.restartBlinkAnimation()}handleGridChanged(e,t){!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isPaused?this._render(!1):this._cursorBlinkStateManager.restartBlinkAnimation()}_render(e){if(!this._coreService.isCursorInitialized||this._coreService.isCursorHidden)return void this._clearCursor();const t=this._bufferService.buffer.ybase+this._bufferService.buffer.y,i=t-this._bufferService.buffer.ydisp;if(i<0||i>=this._bufferService.rows)return void this._clearCursor();const s=Math.min(this._bufferService.buffer.x,this._bufferService.cols-1);if(this._bufferService.buffer.lines.get(t).loadCell(s,this._cell),void 0!==this._cell.content){if(!this._coreBrowserService.isFocused){this._clearCursor(),this._ctx.save(),this._ctx.fillStyle=this._themeService.colors.cursor.css;const e=this._optionsService.rawOptions.cursorStyle;return e&&"block"!==e?this._cursorRenderers[e](s,i,this._cell):this._renderBlurCursor(s,i,this._cell),this._ctx.restore(),this._state.x=s,this._state.y=i,this._state.isFocused=!1,this._state.style=e,void(this._state.width=this._cell.getWidth())}if(!this._cursorBlinkStateManager||this._cursorBlinkStateManager.isCursorVisible){if(this._state){if(this._state.x===s&&this._state.y===i&&this._state.isFocused===this._coreBrowserService.isFocused&&this._state.style===this._optionsService.rawOptions.cursorStyle&&this._state.width===this._cell.getWidth())return;this._clearCursor()}this._ctx.save(),this._cursorRenderers[this._optionsService.rawOptions.cursorStyle||"block"](s,i,this._cell),this._ctx.restore(),this._state.x=s,this._state.y=i,this._state.isFocused=!1,this._state.style=this._optionsService.rawOptions.cursorStyle,this._state.width=this._cell.getWidth()}else this._clearCursor()}}_clearCursor(){this._state&&(this._coreBrowserService.dpr<1?this._clearAll():this._clearCells(this._state.x,this._state.y,this._state.width,1),this._state={x:0,y:0,isFocused:!1,style:"",width:0})}_renderBarCursor(e,t,i){this._ctx.save(),this._ctx.fillStyle=this._themeService.colors.cursor.css,this._fillLeftLineAtCell(e,t,this._optionsService.rawOptions.cursorWidth),this._ctx.restore()}_renderBlockCursor(e,t,i){this._ctx.save(),this._ctx.fillStyle=this._themeService.colors.cursor.css,this._fillCells(e,t,i.getWidth(),1),this._ctx.fillStyle=this._themeService.colors.cursorAccent.css,this._fillCharTrueColor(i,e,t),this._ctx.restore()}_renderUnderlineCursor(e,t,i){this._ctx.save(),this._ctx.fillStyle=this._themeService.colors.cursor.css,this._fillBottomLineAtCells(e,t),this._ctx.restore()}_renderBlurCursor(e,t,i){this._ctx.save(),this._ctx.strokeStyle=this._themeService.colors.cursor.css,this._strokeRectAtCell(e,t,i.getWidth(),1),this._ctx.restore()}}t.CursorRenderLayer=n;class a{constructor(e,t,i){this._renderCallback=t,this._coreBrowserService=i,this.isCursorVisible=!0,e&&this._restartInterval()}get isPaused(){return!(this._blinkStartTimeout||this._blinkInterval)}dispose(){this._blinkInterval&&(this._coreBrowserService.window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(this._coreBrowserService.window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}restartBlinkAnimation(){this.isPaused||(this._animationTimeRestarted=Date.now(),this.isCursorVisible=!0,this._animationFrame||(this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._renderCallback(),this._animationFrame=void 0}))))}_restartInterval(e=600){this._blinkInterval&&(this._coreBrowserService.window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout=this._coreBrowserService.window.setTimeout((()=>{if(this._animationTimeRestarted){const e=600-(Date.now()-this._animationTimeRestarted);if(this._animationTimeRestarted=void 0,e>0)return void this._restartInterval(e)}this.isCursorVisible=!1,this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._renderCallback(),this._animationFrame=void 0})),this._blinkInterval=this._coreBrowserService.window.setInterval((()=>{if(this._animationTimeRestarted){const e=600-(Date.now()-this._animationTimeRestarted);return this._animationTimeRestarted=void 0,void this._restartInterval(e)}this.isCursorVisible=!this.isCursorVisible,this._animationFrame=this._coreBrowserService.window.requestAnimationFrame((()=>{this._renderCallback(),this._animationFrame=void 0}))}),600)}),e)}pause(){this.isCursorVisible=!0,this._blinkInterval&&(this._coreBrowserService.window.clearInterval(this._blinkInterval),this._blinkInterval=void 0),this._blinkStartTimeout&&(this._coreBrowserService.window.clearTimeout(this._blinkStartTimeout),this._blinkStartTimeout=void 0),this._animationFrame&&(this._coreBrowserService.window.cancelAnimationFrame(this._animationFrame),this._animationFrame=void 0)}resume(){this.pause(),this._animationTimeRestarted=void 0,this._restartInterval(),this.restartBlinkAnimation()}}},574:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GridCache=void 0,t.GridCache=class{constructor(){this.cache=[]}resize(e,t){for(let i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.LinkRenderLayer=void 0;const s=i(903),r=i(237),o=i(197);class n extends s.BaseRenderLayer{constructor(e,t,i,s,r,o,n,a,h){super(e,t,"link",i,!0,h,r,o,n,a),this.register(s.onShowLinkUnderline((e=>this._handleShowLinkUnderline(e)))),this.register(s.onHideLinkUnderline((e=>this._handleHideLinkUnderline(e))))}resize(e){super.resize(e),this._state=void 0}reset(){this._clearCurrentLink()}_clearCurrentLink(){if(this._state){this._clearCells(this._state.x1,this._state.y1,this._state.cols-this._state.x1,1);const e=this._state.y2-this._state.y1-1;e>0&&this._clearCells(0,this._state.y1+1,this._state.cols,e),this._clearCells(0,this._state.y2,this._state.x2,1),this._state=void 0}}_handleShowLinkUnderline(e){if(e.fg===r.INVERTED_DEFAULT_COLOR?this._ctx.fillStyle=this._themeService.colors.background.css:e.fg&&(0,o.is256Color)(e.fg)?this._ctx.fillStyle=this._themeService.colors.ansi[e.fg].css:this._ctx.fillStyle=this._themeService.colors.foreground.css,e.y1===e.y2)this._fillBottomLineAtCells(e.x1,e.y1,e.x2-e.x1);else{this._fillBottomLineAtCells(e.x1,e.y1,e.cols-e.x1);for(let t=e.y1+1;t{Object.defineProperty(t,"__esModule",{value:!0}),t.SelectionRenderLayer=void 0;const s=i(903);class r extends s.BaseRenderLayer{constructor(e,t,i,s,r,o,n,a){super(e,t,"selection",i,!0,a,s,n,o,r),this._clearState()}_clearState(){this._state={start:void 0,end:void 0,columnSelectMode:void 0,ydisp:void 0}}resize(e){super.resize(e),this._selectionModel.selectionStart&&this._selectionModel.selectionEnd&&this._redrawSelection(this._selectionModel.selectionStart,this._selectionModel.selectionEnd,this._selectionModel.columnSelectMode)}reset(){this._state.start&&this._state.end&&(this._clearState(),this._clearAll())}handleBlur(){this.reset(),this._redrawSelection(this._selectionModel.selectionStart,this._selectionModel.selectionEnd,this._selectionModel.columnSelectMode)}handleFocus(){this.reset(),this._redrawSelection(this._selectionModel.selectionStart,this._selectionModel.selectionEnd,this._selectionModel.columnSelectMode)}handleSelectionChanged(e,t,i){super.handleSelectionChanged(e,t,i),this._redrawSelection(e,t,i)}_redrawSelection(e,t,i){if(!this._didStateChange(e,t,i,this._bufferService.buffer.ydisp))return;if(this._clearAll(),!e||!t)return void this._clearState();const s=e[1]-this._bufferService.buffer.ydisp,r=t[1]-this._bufferService.buffer.ydisp,o=Math.max(s,0),n=Math.min(r,this._bufferService.rows-1);if(o>=this._bufferService.rows||n<0)this._state.ydisp=this._bufferService.buffer.ydisp;else{if(this._ctx.fillStyle=(this._coreBrowserService.isFocused?this._themeService.colors.selectionBackgroundTransparent:this._themeService.colors.selectionInactiveBackgroundTransparent).css,i){const i=e[0],s=t[0]-i,r=n-o+1;this._fillCells(i,o,s,r)}else{const i=s===o?e[0]:0,a=o===r?t[0]:this._bufferService.cols;this._fillCells(i,o,a-i,1);const h=Math.max(n-o-1,0);if(this._fillCells(0,o+1,this._bufferService.cols,h),o!==n){const e=r===n?t[0]:this._bufferService.cols;this._fillCells(0,n,e,1)}}this._state.start=[e[0],e[1]],this._state.end=[t[0],t[1]],this._state.columnSelectMode=i,this._state.ydisp=this._bufferService.buffer.ydisp}}_didStateChange(e,t,i,s){return!this._areCoordinatesEqual(e,this._state.start)||!this._areCoordinatesEqual(t,this._state.end)||i!==this._state.columnSelectMode||s!==this._state.ydisp}_areCoordinatesEqual(e,t){return!(!e||!t)&&e[0]===t[0]&&e[1]===t[1]}}t.SelectionRenderLayer=r},744:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextRenderLayer=void 0;const s=i(574),r=i(903),o=i(147),n=i(855),a=i(782),h=i(577),l=i(160);class c extends r.BaseRenderLayer{constructor(e,t,i,r,o,n,h,l,c,d){super(e,t,"text",i,r,d,o,n,l,c),this._characterJoinerService=h,this._characterWidth=0,this._characterFont="",this._characterOverlapCache={},this._workCell=new a.CellData,this._state=new s.GridCache,this.register(n.onSpecificOptionChange("allowTransparency",(e=>this._setTransparency(e))))}resize(e){super.resize(e);const t=this._getFont(!1,!1);this._characterWidth===e.device.char.width&&this._characterFont===t||(this._characterWidth=e.device.char.width,this._characterFont=t,this._characterOverlapCache={}),this._state.clear(),this._state.resize(this._bufferService.cols,this._bufferService.rows)}reset(){this._state.clear(),this._clearAll()}_forEachCell(e,t,i){for(let s=e;s<=t;s++){const e=s+this._bufferService.buffer.ydisp,t=this._bufferService.buffer.lines.get(e),r=this._characterJoinerService.getJoinedCharacters(e);for(let o=0;o0&&o===r[0][0]){a=!0;const i=r.shift();e=new h.JoinedCellData(this._workCell,t.translateToString(!0,i[0],i[1]),i[1]-i[0]),l=i[1]-1}!a&&this._isOverlapping(e)&&l{let c=null;e.isInverse()?c=e.isFgDefault()?this._themeService.colors.foreground.css:e.isFgRGB()?`rgb(${o.AttributeData.toColorRGB(e.getFgColor()).join(",")})`:this._themeService.colors.ansi[e.getFgColor()].css:e.isBgRGB()?c=`rgb(${o.AttributeData.toColorRGB(e.getBgColor()).join(",")})`:e.isBgPalette()&&(c=this._themeService.colors.ansi[e.getBgColor()].css),c&&e.isDim()&&(c=l.color.multiplyOpacity(l.css.toColor(c),.5).css);let d=!1;this._decorationService.forEachDecorationAtCell(t,this._bufferService.buffer.ydisp+h,void 0,(e=>{"top"!==e.options.layer&&d||(e.backgroundColorRGB&&(c=e.backgroundColorRGB.css),d="top"===e.options.layer)})),null===a&&(r=t,n=h),h!==n?(i.fillStyle=a||"",this._fillCells(r,n,s-r,1),r=t,n=h):a!==c&&(i.fillStyle=a||"",this._fillCells(r,n,t-r,1),r=t,n=h),a=c})),null!==a&&(i.fillStyle=a,this._fillCells(r,n,s-r,1)),i.restore()}_drawForeground(e,t){this._forEachCell(e,t,((e,t,i)=>this._drawChars(e,t,i)))}handleGridChanged(e,t){0!==this._state.cache.length&&(this._charAtlas&&this._charAtlas.beginFrame(),this._clearCells(0,e,this._bufferService.cols,t-e+1),this._drawBackground(e,t),this._drawForeground(e,t))}_isOverlapping(e){if(1!==e.getWidth())return!1;if(e.getCode()<256)return!1;const t=e.getChars();if(this._characterOverlapCache.hasOwnProperty(t))return this._characterOverlapCache[t];this._ctx.save(),this._ctx.font=this._characterFont;const i=Math.floor(this._ctx.measureText(t).width)>this._characterWidth;return this._ctx.restore(),this._characterOverlapCache[t]=i,i}}t.TextRenderLayer=c},503:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.removeElementFromParent=void 0,t.removeElementFromParent=function(...e){var t;for(const i of e)null===(t=null==i?void 0:i.parentElement)||void 0===t||t.removeChild(i)}},274:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CellColorResolver=void 0;let i,s=0,r=0,o=!1,n=!1,a=!1;t.CellColorResolver=class{constructor(e,t,i,s,r){this._terminal=e,this._selectionRenderModel=t,this._decorationService=i,this._coreBrowserService=s,this._themeService=r,this.result={fg:0,bg:0,ext:0}}resolve(e,t,h){this.result.bg=e.bg,this.result.fg=e.fg,this.result.ext=268435456&e.bg?e.extended.ext:0,r=0,s=0,n=!1,o=!1,a=!1,i=this._themeService.colors,this._decorationService.forEachDecorationAtCell(t,h,"bottom",(e=>{e.backgroundColorRGB&&(r=e.backgroundColorRGB.rgba>>8&16777215,n=!0),e.foregroundColorRGB&&(s=e.foregroundColorRGB.rgba>>8&16777215,o=!0)})),a=this._selectionRenderModel.isCellSelected(this._terminal,t,h),a&&(r=(this._coreBrowserService.isFocused?i.selectionBackgroundOpaque:i.selectionInactiveBackgroundOpaque).rgba>>8&16777215,n=!0,i.selectionForeground&&(s=i.selectionForeground.rgba>>8&16777215,o=!0)),this._decorationService.forEachDecorationAtCell(t,h,"top",(e=>{e.backgroundColorRGB&&(r=e.backgroundColorRGB.rgba>>8&16777215,n=!0),e.foregroundColorRGB&&(s=e.foregroundColorRGB.rgba>>8&16777215,o=!0)})),n&&(r=a?-16777216&e.bg&-134217729|r|50331648:-16777216&e.bg|r|50331648),o&&(s=-16777216&e.fg&-67108865|s|50331648),67108864&this.result.fg&&(n&&!o&&(s=0==(50331648&this.result.bg)?-134217728&this.result.fg|16777215&i.background.rgba>>8|50331648:-134217728&this.result.fg|67108863&this.result.bg,o=!0),!n&&o&&(r=0==(50331648&this.result.fg)?-67108864&this.result.bg|16777215&i.foreground.rgba>>8|50331648:-67108864&this.result.bg|67108863&this.result.fg,n=!0)),i=void 0,this.result.bg=n?r:this.result.bg,this.result.fg=o?s:this.result.fg}}},627:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.removeTerminalFromCache=t.acquireTextureAtlas=void 0;const s=i(509),r=i(197),o=[];t.acquireTextureAtlas=function(e,t,i,n,a,h,l,c){const d=(0,r.generateConfig)(n,a,h,l,t,i,c);for(let s=0;s=0){if((0,r.configEquals)(t.config,d))return t.atlas;1===t.ownedBy.length?(t.atlas.dispose(),o.splice(s,1)):t.ownedBy.splice(i,1);break}}for(let s=0;s{Object.defineProperty(t,"__esModule",{value:!0}),t.is256Color=t.configEquals=t.generateConfig=void 0;const s=i(160);t.generateConfig=function(e,t,i,r,o,n,a){const h={foreground:n.foreground,background:n.background,cursor:s.NULL_COLOR,cursorAccent:s.NULL_COLOR,selectionForeground:s.NULL_COLOR,selectionBackgroundTransparent:s.NULL_COLOR,selectionBackgroundOpaque:s.NULL_COLOR,selectionInactiveBackgroundTransparent:s.NULL_COLOR,selectionInactiveBackgroundOpaque:s.NULL_COLOR,ansi:n.ansi.slice(),contrastCache:n.contrastCache};return{customGlyphs:o.customGlyphs,devicePixelRatio:a,letterSpacing:o.letterSpacing,lineHeight:o.lineHeight,deviceCellWidth:e,deviceCellHeight:t,deviceCharWidth:i,deviceCharHeight:r,fontFamily:o.fontFamily,fontSize:o.fontSize,fontWeight:o.fontWeight,fontWeightBold:o.fontWeightBold,allowTransparency:o.allowTransparency,drawBoldTextInBrightColors:o.drawBoldTextInBrightColors,minimumContrastRatio:o.minimumContrastRatio,colors:h}},t.configEquals=function(e,t){for(let i=0;i{Object.defineProperty(t,"__esModule",{value:!0}),t.TEXT_BASELINE=t.DIM_OPACITY=t.INVERTED_DEFAULT_COLOR=void 0;const s=i(399);t.INVERTED_DEFAULT_COLOR=257,t.DIM_OPACITY=.5,t.TEXT_BASELINE=s.isFirefox||s.isLegacyEdge?"bottom":"ideographic"},860:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.tryDrawCustomChar=t.powerlineDefinitions=t.boxDrawingDefinitions=t.blockElementDefinitions=void 0;const s=i(374);t.blockElementDefinitions={"▀":[{x:0,y:0,w:8,h:4}],"▁":[{x:0,y:7,w:8,h:1}],"▂":[{x:0,y:6,w:8,h:2}],"▃":[{x:0,y:5,w:8,h:3}],"▄":[{x:0,y:4,w:8,h:4}],"▅":[{x:0,y:3,w:8,h:5}],"▆":[{x:0,y:2,w:8,h:6}],"▇":[{x:0,y:1,w:8,h:7}],"█":[{x:0,y:0,w:8,h:8}],"▉":[{x:0,y:0,w:7,h:8}],"▊":[{x:0,y:0,w:6,h:8}],"▋":[{x:0,y:0,w:5,h:8}],"▌":[{x:0,y:0,w:4,h:8}],"▍":[{x:0,y:0,w:3,h:8}],"▎":[{x:0,y:0,w:2,h:8}],"▏":[{x:0,y:0,w:1,h:8}],"▐":[{x:4,y:0,w:4,h:8}],"▔":[{x:0,y:0,w:8,h:1}],"▕":[{x:7,y:0,w:1,h:8}],"▖":[{x:0,y:4,w:4,h:4}],"▗":[{x:4,y:4,w:4,h:4}],"▘":[{x:0,y:0,w:4,h:4}],"▙":[{x:0,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"▚":[{x:0,y:0,w:4,h:4},{x:4,y:4,w:4,h:4}],"▛":[{x:0,y:0,w:4,h:8},{x:4,y:0,w:4,h:4}],"▜":[{x:0,y:0,w:8,h:4},{x:4,y:0,w:4,h:8}],"▝":[{x:4,y:0,w:4,h:4}],"▞":[{x:4,y:0,w:4,h:4},{x:0,y:4,w:4,h:4}],"▟":[{x:4,y:0,w:4,h:8},{x:0,y:4,w:8,h:4}],"🭰":[{x:1,y:0,w:1,h:8}],"🭱":[{x:2,y:0,w:1,h:8}],"🭲":[{x:3,y:0,w:1,h:8}],"🭳":[{x:4,y:0,w:1,h:8}],"🭴":[{x:5,y:0,w:1,h:8}],"🭵":[{x:6,y:0,w:1,h:8}],"🭶":[{x:0,y:1,w:8,h:1}],"🭷":[{x:0,y:2,w:8,h:1}],"🭸":[{x:0,y:3,w:8,h:1}],"🭹":[{x:0,y:4,w:8,h:1}],"🭺":[{x:0,y:5,w:8,h:1}],"🭻":[{x:0,y:6,w:8,h:1}],"🭼":[{x:0,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🭽":[{x:0,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭾":[{x:7,y:0,w:1,h:8},{x:0,y:0,w:8,h:1}],"🭿":[{x:7,y:0,w:1,h:8},{x:0,y:7,w:8,h:1}],"🮀":[{x:0,y:0,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮁":[{x:0,y:0,w:8,h:1},{x:0,y:2,w:8,h:1},{x:0,y:4,w:8,h:1},{x:0,y:7,w:8,h:1}],"🮂":[{x:0,y:0,w:8,h:2}],"🮃":[{x:0,y:0,w:8,h:3}],"🮄":[{x:0,y:0,w:8,h:5}],"🮅":[{x:0,y:0,w:8,h:6}],"🮆":[{x:0,y:0,w:8,h:7}],"🮇":[{x:6,y:0,w:2,h:8}],"🮈":[{x:5,y:0,w:3,h:8}],"🮉":[{x:3,y:0,w:5,h:8}],"🮊":[{x:2,y:0,w:6,h:8}],"🮋":[{x:1,y:0,w:7,h:8}],"🮕":[{x:0,y:0,w:2,h:2},{x:4,y:0,w:2,h:2},{x:2,y:2,w:2,h:2},{x:6,y:2,w:2,h:2},{x:0,y:4,w:2,h:2},{x:4,y:4,w:2,h:2},{x:2,y:6,w:2,h:2},{x:6,y:6,w:2,h:2}],"🮖":[{x:2,y:0,w:2,h:2},{x:6,y:0,w:2,h:2},{x:0,y:2,w:2,h:2},{x:4,y:2,w:2,h:2},{x:2,y:4,w:2,h:2},{x:6,y:4,w:2,h:2},{x:0,y:6,w:2,h:2},{x:4,y:6,w:2,h:2}],"🮗":[{x:0,y:2,w:8,h:2},{x:0,y:6,w:8,h:2}]};const r={"░":[[1,0,0,0],[0,0,0,0],[0,0,1,0],[0,0,0,0]],"▒":[[1,0],[0,0],[0,1],[0,0]],"▓":[[0,1],[1,1],[1,0],[1,1]]};t.boxDrawingDefinitions={"─":{1:"M0,.5 L1,.5"},"━":{3:"M0,.5 L1,.5"},"│":{1:"M.5,0 L.5,1"},"┃":{3:"M.5,0 L.5,1"},"┌":{1:"M0.5,1 L.5,.5 L1,.5"},"┏":{3:"M0.5,1 L.5,.5 L1,.5"},"┐":{1:"M0,.5 L.5,.5 L.5,1"},"┓":{3:"M0,.5 L.5,.5 L.5,1"},"└":{1:"M.5,0 L.5,.5 L1,.5"},"┗":{3:"M.5,0 L.5,.5 L1,.5"},"┘":{1:"M.5,0 L.5,.5 L0,.5"},"┛":{3:"M.5,0 L.5,.5 L0,.5"},"├":{1:"M.5,0 L.5,1 M.5,.5 L1,.5"},"┣":{3:"M.5,0 L.5,1 M.5,.5 L1,.5"},"┤":{1:"M.5,0 L.5,1 M.5,.5 L0,.5"},"┫":{3:"M.5,0 L.5,1 M.5,.5 L0,.5"},"┬":{1:"M0,.5 L1,.5 M.5,.5 L.5,1"},"┳":{3:"M0,.5 L1,.5 M.5,.5 L.5,1"},"┴":{1:"M0,.5 L1,.5 M.5,.5 L.5,0"},"┻":{3:"M0,.5 L1,.5 M.5,.5 L.5,0"},"┼":{1:"M0,.5 L1,.5 M.5,0 L.5,1"},"╋":{3:"M0,.5 L1,.5 M.5,0 L.5,1"},"╴":{1:"M.5,.5 L0,.5"},"╸":{3:"M.5,.5 L0,.5"},"╵":{1:"M.5,.5 L.5,0"},"╹":{3:"M.5,.5 L.5,0"},"╶":{1:"M.5,.5 L1,.5"},"╺":{3:"M.5,.5 L1,.5"},"╷":{1:"M.5,.5 L.5,1"},"╻":{3:"M.5,.5 L.5,1"},"═":{1:(e,t)=>`M0,${.5-t} L1,${.5-t} M0,${.5+t} L1,${.5+t}`},"║":{1:(e,t)=>`M${.5-e},0 L${.5-e},1 M${.5+e},0 L${.5+e},1`},"╒":{1:(e,t)=>`M.5,1 L.5,${.5-t} L1,${.5-t} M.5,${.5+t} L1,${.5+t}`},"╓":{1:(e,t)=>`M${.5-e},1 L${.5-e},.5 L1,.5 M${.5+e},.5 L${.5+e},1`},"╔":{1:(e,t)=>`M1,${.5-t} L${.5-e},${.5-t} L${.5-e},1 M1,${.5+t} L${.5+e},${.5+t} L${.5+e},1`},"╕":{1:(e,t)=>`M0,${.5-t} L.5,${.5-t} L.5,1 M0,${.5+t} L.5,${.5+t}`},"╖":{1:(e,t)=>`M${.5+e},1 L${.5+e},.5 L0,.5 M${.5-e},.5 L${.5-e},1`},"╗":{1:(e,t)=>`M0,${.5+t} L${.5-e},${.5+t} L${.5-e},1 M0,${.5-t} L${.5+e},${.5-t} L${.5+e},1`},"╘":{1:(e,t)=>`M.5,0 L.5,${.5+t} L1,${.5+t} M.5,${.5-t} L1,${.5-t}`},"╙":{1:(e,t)=>`M1,.5 L${.5-e},.5 L${.5-e},0 M${.5+e},.5 L${.5+e},0`},"╚":{1:(e,t)=>`M1,${.5-t} L${.5+e},${.5-t} L${.5+e},0 M1,${.5+t} L${.5-e},${.5+t} L${.5-e},0`},"╛":{1:(e,t)=>`M0,${.5+t} L.5,${.5+t} L.5,0 M0,${.5-t} L.5,${.5-t}`},"╜":{1:(e,t)=>`M0,.5 L${.5+e},.5 L${.5+e},0 M${.5-e},.5 L${.5-e},0`},"╝":{1:(e,t)=>`M0,${.5-t} L${.5-e},${.5-t} L${.5-e},0 M0,${.5+t} L${.5+e},${.5+t} L${.5+e},0`},"╞":{1:(e,t)=>`M.5,0 L.5,1 M.5,${.5-t} L1,${.5-t} M.5,${.5+t} L1,${.5+t}`},"╟":{1:(e,t)=>`M${.5-e},0 L${.5-e},1 M${.5+e},0 L${.5+e},1 M${.5+e},.5 L1,.5`},"╠":{1:(e,t)=>`M${.5-e},0 L${.5-e},1 M1,${.5+t} L${.5+e},${.5+t} L${.5+e},1 M1,${.5-t} L${.5+e},${.5-t} L${.5+e},0`},"╡":{1:(e,t)=>`M.5,0 L.5,1 M0,${.5-t} L.5,${.5-t} M0,${.5+t} L.5,${.5+t}`},"╢":{1:(e,t)=>`M0,.5 L${.5-e},.5 M${.5-e},0 L${.5-e},1 M${.5+e},0 L${.5+e},1`},"╣":{1:(e,t)=>`M${.5+e},0 L${.5+e},1 M0,${.5+t} L${.5-e},${.5+t} L${.5-e},1 M0,${.5-t} L${.5-e},${.5-t} L${.5-e},0`},"╤":{1:(e,t)=>`M0,${.5-t} L1,${.5-t} M0,${.5+t} L1,${.5+t} M.5,${.5+t} L.5,1`},"╥":{1:(e,t)=>`M0,.5 L1,.5 M${.5-e},.5 L${.5-e},1 M${.5+e},.5 L${.5+e},1`},"╦":{1:(e,t)=>`M0,${.5-t} L1,${.5-t} M0,${.5+t} L${.5-e},${.5+t} L${.5-e},1 M1,${.5+t} L${.5+e},${.5+t} L${.5+e},1`},"╧":{1:(e,t)=>`M.5,0 L.5,${.5-t} M0,${.5-t} L1,${.5-t} M0,${.5+t} L1,${.5+t}`},"╨":{1:(e,t)=>`M0,.5 L1,.5 M${.5-e},.5 L${.5-e},0 M${.5+e},.5 L${.5+e},0`},"╩":{1:(e,t)=>`M0,${.5+t} L1,${.5+t} M0,${.5-t} L${.5-e},${.5-t} L${.5-e},0 M1,${.5-t} L${.5+e},${.5-t} L${.5+e},0`},"╪":{1:(e,t)=>`M.5,0 L.5,1 M0,${.5-t} L1,${.5-t} M0,${.5+t} L1,${.5+t}`},"╫":{1:(e,t)=>`M0,.5 L1,.5 M${.5-e},0 L${.5-e},1 M${.5+e},0 L${.5+e},1`},"╬":{1:(e,t)=>`M0,${.5+t} L${.5-e},${.5+t} L${.5-e},1 M1,${.5+t} L${.5+e},${.5+t} L${.5+e},1 M0,${.5-t} L${.5-e},${.5-t} L${.5-e},0 M1,${.5-t} L${.5+e},${.5-t} L${.5+e},0`},"╱":{1:"M1,0 L0,1"},"╲":{1:"M0,0 L1,1"},"╳":{1:"M1,0 L0,1 M0,0 L1,1"},"╼":{1:"M.5,.5 L0,.5",3:"M.5,.5 L1,.5"},"╽":{1:"M.5,.5 L.5,0",3:"M.5,.5 L.5,1"},"╾":{1:"M.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"╿":{1:"M.5,.5 L.5,1",3:"M.5,.5 L.5,0"},"┍":{1:"M.5,.5 L.5,1",3:"M.5,.5 L1,.5"},"┎":{1:"M.5,.5 L1,.5",3:"M.5,.5 L.5,1"},"┑":{1:"M.5,.5 L.5,1",3:"M.5,.5 L0,.5"},"┒":{1:"M.5,.5 L0,.5",3:"M.5,.5 L.5,1"},"┕":{1:"M.5,.5 L.5,0",3:"M.5,.5 L1,.5"},"┖":{1:"M.5,.5 L1,.5",3:"M.5,.5 L.5,0"},"┙":{1:"M.5,.5 L.5,0",3:"M.5,.5 L0,.5"},"┚":{1:"M.5,.5 L0,.5",3:"M.5,.5 L.5,0"},"┝":{1:"M.5,0 L.5,1",3:"M.5,.5 L1,.5"},"┞":{1:"M0.5,1 L.5,.5 L1,.5",3:"M.5,.5 L.5,0"},"┟":{1:"M.5,0 L.5,.5 L1,.5",3:"M.5,.5 L.5,1"},"┠":{1:"M.5,.5 L1,.5",3:"M.5,0 L.5,1"},"┡":{1:"M.5,.5 L.5,1",3:"M.5,0 L.5,.5 L1,.5"},"┢":{1:"M.5,.5 L.5,0",3:"M0.5,1 L.5,.5 L1,.5"},"┥":{1:"M.5,0 L.5,1",3:"M.5,.5 L0,.5"},"┦":{1:"M0,.5 L.5,.5 L.5,1",3:"M.5,.5 L.5,0"},"┧":{1:"M.5,0 L.5,.5 L0,.5",3:"M.5,.5 L.5,1"},"┨":{1:"M.5,.5 L0,.5",3:"M.5,0 L.5,1"},"┩":{1:"M.5,.5 L.5,1",3:"M.5,0 L.5,.5 L0,.5"},"┪":{1:"M.5,.5 L.5,0",3:"M0,.5 L.5,.5 L.5,1"},"┭":{1:"M0.5,1 L.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"┮":{1:"M0,.5 L.5,.5 L.5,1",3:"M.5,.5 L1,.5"},"┯":{1:"M.5,.5 L.5,1",3:"M0,.5 L1,.5"},"┰":{1:"M0,.5 L1,.5",3:"M.5,.5 L.5,1"},"┱":{1:"M.5,.5 L1,.5",3:"M0,.5 L.5,.5 L.5,1"},"┲":{1:"M.5,.5 L0,.5",3:"M0.5,1 L.5,.5 L1,.5"},"┵":{1:"M.5,0 L.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"┶":{1:"M.5,0 L.5,.5 L0,.5",3:"M.5,.5 L1,.5"},"┷":{1:"M.5,.5 L.5,0",3:"M0,.5 L1,.5"},"┸":{1:"M0,.5 L1,.5",3:"M.5,.5 L.5,0"},"┹":{1:"M.5,.5 L1,.5",3:"M.5,0 L.5,.5 L0,.5"},"┺":{1:"M.5,.5 L0,.5",3:"M.5,0 L.5,.5 L1,.5"},"┽":{1:"M.5,0 L.5,1 M.5,.5 L1,.5",3:"M.5,.5 L0,.5"},"┾":{1:"M.5,0 L.5,1 M.5,.5 L0,.5",3:"M.5,.5 L1,.5"},"┿":{1:"M.5,0 L.5,1",3:"M0,.5 L1,.5"},"╀":{1:"M0,.5 L1,.5 M.5,.5 L.5,1",3:"M.5,.5 L.5,0"},"╁":{1:"M.5,.5 L.5,0 M0,.5 L1,.5",3:"M.5,.5 L.5,1"},"╂":{1:"M0,.5 L1,.5",3:"M.5,0 L.5,1"},"╃":{1:"M0.5,1 L.5,.5 L1,.5",3:"M.5,0 L.5,.5 L0,.5"},"╄":{1:"M0,.5 L.5,.5 L.5,1",3:"M.5,0 L.5,.5 L1,.5"},"╅":{1:"M.5,0 L.5,.5 L1,.5",3:"M0,.5 L.5,.5 L.5,1"},"╆":{1:"M.5,0 L.5,.5 L0,.5",3:"M0.5,1 L.5,.5 L1,.5"},"╇":{1:"M.5,.5 L.5,1",3:"M.5,.5 L.5,0 M0,.5 L1,.5"},"╈":{1:"M.5,.5 L.5,0",3:"M0,.5 L1,.5 M.5,.5 L.5,1"},"╉":{1:"M.5,.5 L1,.5",3:"M.5,0 L.5,1 M.5,.5 L0,.5"},"╊":{1:"M.5,.5 L0,.5",3:"M.5,0 L.5,1 M.5,.5 L1,.5"},"╌":{1:"M.1,.5 L.4,.5 M.6,.5 L.9,.5"},"╍":{3:"M.1,.5 L.4,.5 M.6,.5 L.9,.5"},"┄":{1:"M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5"},"┅":{3:"M.0667,.5 L.2667,.5 M.4,.5 L.6,.5 M.7333,.5 L.9333,.5"},"┈":{1:"M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5"},"┉":{3:"M.05,.5 L.2,.5 M.3,.5 L.45,.5 M.55,.5 L.7,.5 M.8,.5 L.95,.5"},"╎":{1:"M.5,.1 L.5,.4 M.5,.6 L.5,.9"},"╏":{3:"M.5,.1 L.5,.4 M.5,.6 L.5,.9"},"┆":{1:"M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333"},"┇":{3:"M.5,.0667 L.5,.2667 M.5,.4 L.5,.6 M.5,.7333 L.5,.9333"},"┊":{1:"M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95"},"┋":{3:"M.5,.05 L.5,.2 M.5,.3 L.5,.45 L.5,.55 M.5,.7 L.5,.95"},"╭":{1:(e,t)=>`M.5,1 L.5,${.5+t/.15*.5} C.5,${.5+t/.15*.5},.5,.5,1,.5`},"╮":{1:(e,t)=>`M.5,1 L.5,${.5+t/.15*.5} C.5,${.5+t/.15*.5},.5,.5,0,.5`},"╯":{1:(e,t)=>`M.5,0 L.5,${.5-t/.15*.5} C.5,${.5-t/.15*.5},.5,.5,0,.5`},"╰":{1:(e,t)=>`M.5,0 L.5,${.5-t/.15*.5} C.5,${.5-t/.15*.5},.5,.5,1,.5`}},t.powerlineDefinitions={"":{d:"M0,0 L1,.5 L0,1",type:0,rightPadding:2},"":{d:"M-1,-.5 L1,.5 L-1,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M1,0 L0,.5 L1,1",type:0,leftPadding:2},"":{d:"M2,-.5 L0,.5 L2,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M0,0 L0,1 C0.552,1,1,0.776,1,.5 C1,0.224,0.552,0,0,0",type:0,rightPadding:1},"":{d:"M0,1 C0.552,1,1,0.776,1,.5 C1,0.224,0.552,0,0,0",type:1,rightPadding:1},"":{d:"M1,0 L1,1 C0.448,1,0,0.776,0,.5 C0,0.224,0.448,0,1,0",type:0,leftPadding:1},"":{d:"M1,1 C0.448,1,0,0.776,0,.5 C0,0.224,0.448,0,1,0",type:1,leftPadding:1},"":{d:"M-.5,-.5 L1.5,1.5 L-.5,1.5",type:0},"":{d:"M-.5,-.5 L1.5,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M1.5,-.5 L-.5,1.5 L1.5,1.5",type:0},"":{d:"M1.5,-.5 L-.5,1.5 L-.5,-.5",type:0},"":{d:"M1.5,-.5 L-.5,1.5",type:1,leftPadding:1,rightPadding:1},"":{d:"M-.5,-.5 L1.5,1.5 L1.5,-.5",type:0}},t.powerlineDefinitions[""]=t.powerlineDefinitions[""],t.powerlineDefinitions[""]=t.powerlineDefinitions[""],t.tryDrawCustomChar=function(e,i,n,l,c,d,_,u){const g=t.blockElementDefinitions[i];if(g)return function(e,t,i,s,r,o){for(let n=0;n7&&parseInt(l.slice(7,9),16)||1;else{if(!l.startsWith("rgba"))throw new Error(`Unexpected fillStyle color format "${l}" when drawing pattern glyph`);[d,_,u,g]=l.substring(5,l.length-1).split(",").map((e=>parseFloat(e)))}for(let e=0;ee.bezierCurveTo(t[0],t[1],t[2],t[3],t[4],t[5]),L:(e,t)=>e.lineTo(t[0],t[1]),M:(e,t)=>e.moveTo(t[0],t[1])};function h(e,t,i,s,r,o,a,h=0,l=0){const c=e.map((e=>parseFloat(e)||parseInt(e)));if(c.length<2)throw new Error("Too few arguments for instruction");for(let d=0;d{Object.defineProperty(t,"__esModule",{value:!0}),t.observeDevicePixelDimensions=void 0;const s=i(859);t.observeDevicePixelDimensions=function(e,t,i){let r=new t.ResizeObserver((t=>{const s=t.find((t=>t.target===e));if(!s)return;if(!("devicePixelContentBoxSize"in s))return null==r||r.disconnect(),void(r=void 0);const o=s.devicePixelContentBoxSize[0].inlineSize,n=s.devicePixelContentBoxSize[0].blockSize;o>0&&n>0&&i(o,n)}));try{r.observe(e,{box:["device-pixel-content-box"]})}catch(e){r.disconnect(),r=void 0}return(0,s.toDisposable)((()=>null==r?void 0:r.disconnect()))}},374:(e,t)=>{function i(e){return 57508<=e&&e<=57558}Object.defineProperty(t,"__esModule",{value:!0}),t.createRenderDimensions=t.excludeFromContrastRatioDemands=t.isRestrictedPowerlineGlyph=t.isPowerlineGlyph=t.throwIfFalsy=void 0,t.throwIfFalsy=function(e){if(!e)throw new Error("value must not be falsy");return e},t.isPowerlineGlyph=i,t.isRestrictedPowerlineGlyph=function(e){return 57520<=e&&e<=57527},t.excludeFromContrastRatioDemands=function(e){return i(e)||function(e){return 9472<=e&&e<=9631}(e)},t.createRenderDimensions=function(){return{css:{canvas:{width:0,height:0},cell:{width:0,height:0}},device:{canvas:{width:0,height:0},cell:{width:0,height:0},char:{width:0,height:0,left:0,top:0}}}}},296:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.createSelectionRenderModel=void 0;class i{constructor(){this.clear()}clear(){this.hasSelection=!1,this.columnSelectMode=!1,this.viewportStartRow=0,this.viewportEndRow=0,this.viewportCappedStartRow=0,this.viewportCappedEndRow=0,this.startCol=0,this.endCol=0,this.selectionStart=void 0,this.selectionEnd=void 0}update(e,t,i,s=!1){if(this.selectionStart=t,this.selectionEnd=i,!t||!i||t[0]===i[0]&&t[1]===i[1])return void this.clear();const r=t[1]-e.buffer.active.viewportY,o=i[1]-e.buffer.active.viewportY,n=Math.max(r,0),a=Math.min(o,e.rows-1);n>=e.rows||a<0?this.clear():(this.hasSelection=!0,this.columnSelectMode=s,this.viewportStartRow=r,this.viewportEndRow=o,this.viewportCappedStartRow=n,this.viewportCappedEndRow=a,this.startCol=t[0],this.endCol=i[0])}isCellSelected(e,t,i){return!!this.hasSelection&&(i-=e.buffer.active.viewportY,this.columnSelectMode?this.startCol<=this.endCol?t>=this.startCol&&i>=this.viewportCappedStartRow&&t=this.viewportCappedStartRow&&t>=this.endCol&&i<=this.viewportCappedEndRow:i>this.viewportStartRow&&i=this.startCol&&t=this.startCol)}}t.createSelectionRenderModel=function(){return new i}},509:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.TextureAtlas=void 0;const s=i(237),r=i(855),o=i(147),n=i(160),a=i(860),h=i(374),l=i(485),c=i(385),d=i(345),_={texturePage:0,texturePosition:{x:0,y:0},texturePositionClipSpace:{x:0,y:0},offset:{x:0,y:0},size:{x:0,y:0},sizeClipSpace:{x:0,y:0}};let u;class g{constructor(e,t,i){this._document=e,this._config=t,this._unicodeService=i,this._didWarmUp=!1,this._cacheMap=new l.FourKeyMap,this._cacheMapCombined=new l.FourKeyMap,this._pages=[],this._activePages=[],this._workBoundingBox={top:0,left:0,bottom:0,right:0},this._workAttributeData=new o.AttributeData,this._textureSize=512,this._onAddTextureAtlasCanvas=new d.EventEmitter,this.onAddTextureAtlasCanvas=this._onAddTextureAtlasCanvas.event,this._onRemoveTextureAtlasCanvas=new d.EventEmitter,this.onRemoveTextureAtlasCanvas=this._onRemoveTextureAtlasCanvas.event,this._requestClearModel=!1,this._createNewPage(),this._tmpCanvas=C(e,4*this._config.deviceCellWidth+4,this._config.deviceCellHeight+4),this._tmpCtx=(0,h.throwIfFalsy)(this._tmpCanvas.getContext("2d",{alpha:this._config.allowTransparency,willReadFrequently:!0}))}get pages(){return this._pages}dispose(){for(const e of this.pages)e.canvas.remove();this._onAddTextureAtlasCanvas.dispose()}warmUp(){this._didWarmUp||(this._doWarmUp(),this._didWarmUp=!0)}_doWarmUp(){const e=new c.IdleTaskQueue;for(let t=33;t<126;t++)e.enqueue((()=>{if(!this._cacheMap.get(t,r.DEFAULT_COLOR,r.DEFAULT_COLOR,r.DEFAULT_EXT)){const e=this._drawToCache(t,r.DEFAULT_COLOR,r.DEFAULT_COLOR,r.DEFAULT_EXT);this._cacheMap.set(t,r.DEFAULT_COLOR,r.DEFAULT_COLOR,r.DEFAULT_EXT,e)}}))}beginFrame(){return this._requestClearModel}clearTexture(){if(0!==this._pages[0].currentRow.x||0!==this._pages[0].currentRow.y){for(const e of this._pages)e.clear();this._cacheMap.clear(),this._cacheMapCombined.clear(),this._didWarmUp=!1}}_createNewPage(){g.maxAtlasPages&&this._pages.length>=Math.max(4,g.maxAtlasPages/2)&&queueMicrotask((()=>{const e=this._pages.filter((e=>2*e.canvas.width<=(g.maxTextureSize||4096))).sort(((e,t)=>t.canvas.width!==e.canvas.width?t.canvas.width-e.canvas.width:t.percentageUsed-e.percentageUsed));let t=-1,i=0;for(let a=0;ae.glyphs[0].texturePage)).sort(((e,t)=>e>t?1:-1)),o=r[0],n=this._mergePages(s,o);n.version++,this._pages[o]=n;for(let a=r.length-1;a>=1;a--)this._deletePage(r[a]);this._requestClearModel=!0,this._onAddTextureAtlasCanvas.fire(n.canvas)}));const e=new f(this._document,this._textureSize);return this._pages.push(e),this._activePages.push(e),this._onAddTextureAtlasCanvas.fire(e.canvas),e}_mergePages(e,t){const i=2*e[0].canvas.width,s=new f(this._document,i,e);for(const[r,o]of e.entries()){const e=r*o.canvas.width%i,n=Math.floor(r/2)*o.canvas.height;s.ctx.drawImage(o.canvas,e,n);for(const s of o.glyphs)s.texturePage=t,s.sizeClipSpace.x=s.size.x/i,s.sizeClipSpace.y=s.size.y/i,s.texturePosition.x+=e,s.texturePosition.y+=n,s.texturePositionClipSpace.x=s.texturePosition.x/i,s.texturePositionClipSpace.y=s.texturePosition.y/i;this._onRemoveTextureAtlasCanvas.fire(o.canvas);const a=this._activePages.indexOf(o);-1!==a&&this._activePages.splice(a,1)}return s}_deletePage(e){this._pages.splice(e,1);for(let t=e;t=this._config.colors.ansi.length)throw new Error("No color found for idx "+e);return this._config.colors.ansi[e]}_getBackgroundColor(e,t,i,r){if(this._config.allowTransparency)return n.NULL_COLOR;let a;switch(e){case 16777216:case 33554432:a=this._getColorFromAnsiIndex(t);break;case 50331648:const e=o.AttributeData.toColorRGB(t);a=n.rgba.toColor(e[0],e[1],e[2]);break;default:a=i?this._config.colors.foreground:this._config.colors.background}return r&&(a=n.color.blend(this._config.colors.background,n.color.multiplyOpacity(a,s.DIM_OPACITY))),a}_getForegroundColor(e,t,i,r,a,h,l,c,d,_){const u=this._getMinimumContrastColor(e,t,i,r,a,h,!1,d,_);if(u)return u;let g;switch(a){case 16777216:case 33554432:this._config.drawBoldTextInBrightColors&&d&&h<8&&(h+=8),g=this._getColorFromAnsiIndex(h);break;case 50331648:const e=o.AttributeData.toColorRGB(h);g=n.rgba.toColor(e[0],e[1],e[2]);break;default:g=l?this._config.colors.background:this._config.colors.foreground}return this._config.allowTransparency&&(g=n.color.opaque(g)),c&&(g=n.color.multiplyOpacity(g,s.DIM_OPACITY)),g}_resolveBackgroundRgba(e,t,i){switch(e){case 16777216:case 33554432:return this._getColorFromAnsiIndex(t).rgba;case 50331648:return t<<8;default:return i?this._config.colors.foreground.rgba:this._config.colors.background.rgba}}_resolveForegroundRgba(e,t,i,s){switch(e){case 16777216:case 33554432:return this._config.drawBoldTextInBrightColors&&s&&t<8&&(t+=8),this._getColorFromAnsiIndex(t).rgba;case 50331648:return t<<8;default:return i?this._config.colors.background.rgba:this._config.colors.foreground.rgba}}_getMinimumContrastColor(e,t,i,s,r,o,a,h,l){if(1===this._config.minimumContrastRatio||l)return;const c=this._config.colors.contrastCache.getColor(e,s);if(void 0!==c)return c||void 0;const d=this._resolveBackgroundRgba(t,i,a),_=this._resolveForegroundRgba(r,o,a,h),u=n.rgba.ensureContrastRatio(d,_,this._config.minimumContrastRatio);if(!u)return void this._config.colors.contrastCache.setColor(e,s,null);const g=n.rgba.toColor(u>>24&255,u>>16&255,u>>8&255);return this._config.colors.contrastCache.setColor(e,s,g),g}_drawToCache(e,t,i,r){const n="number"==typeof e?String.fromCharCode(e):e,l=this._config.deviceCellWidth*Math.max(n.length,2)+4;this._tmpCanvas.width=12&&!this._config.allowTransparency&&" "!==n){this._tmpCtx.save(),this._tmpCtx.textBaseline="alphabetic";const t=this._tmpCtx.measureText(n);if(this._tmpCtx.restore(),"actualBoundingBoxDescent"in t&&t.actualBoundingBoxDescent>0){this._tmpCtx.save();const t=new Path2D;t.rect(i,s-Math.ceil(e/2),this._config.deviceCellWidth,a-s+Math.ceil(e/2)),this._tmpCtx.clip(t),this._tmpCtx.lineWidth=3*this._config.devicePixelRatio,this._tmpCtx.strokeStyle=b.css,this._tmpCtx.strokeText(n,D,D+this._config.deviceCharHeight),this._tmpCtx.restore()}}}if(T||this._tmpCtx.fillText(n,D,D+this._config.deviceCharHeight),"_"===n&&!this._config.allowTransparency){let e=v(this._tmpCtx.getImageData(D,D,this._config.deviceCellWidth,this._config.deviceCellHeight),b,A,$);if(e)for(let t=1;t<=5&&(this._tmpCtx.save(),this._tmpCtx.fillStyle=b.css,this._tmpCtx.fillRect(0,0,this._tmpCanvas.width,this._tmpCanvas.height),this._tmpCtx.restore(),this._tmpCtx.fillText(n,D,D+this._config.deviceCharHeight-t),e=v(this._tmpCtx.getImageData(D,D,this._config.deviceCellWidth,this._config.deviceCellHeight),b,A,$),e);t++);}if(p){const e=Math.max(1,Math.floor(this._config.fontSize*this._config.devicePixelRatio/10)),t=this._tmpCtx.lineWidth%2==1?.5:0;this._tmpCtx.lineWidth=e,this._tmpCtx.strokeStyle=this._tmpCtx.fillStyle,this._tmpCtx.beginPath(),this._tmpCtx.moveTo(D,D+Math.floor(this._config.deviceCharHeight/2)-t),this._tmpCtx.lineTo(D+this._config.deviceCharWidth*k,D+Math.floor(this._config.deviceCharHeight/2)-t),this._tmpCtx.stroke()}this._tmpCtx.restore();const B=this._tmpCtx.getImageData(0,0,this._tmpCanvas.width,this._tmpCanvas.height);let E;if(E=this._config.allowTransparency?function(e){for(let t=0;t0)return!1;return!0}(B):v(B,b,A,$),E)return _;const P=this._findGlyphBoundingBox(B,this._workBoundingBox,l,R,T,D);let I,O;for(;;){if(0===this._activePages.length){const e=this._createNewPage();I=e,O=e.currentRow,O.height=P.size.y;break}I=this._activePages[this._activePages.length-1],O=I.currentRow;for(const e of this._activePages)P.size.y<=e.currentRow.height&&(I=e,O=e.currentRow);for(let e=this._activePages.length-1;e>=0;e--)for(const t of this._activePages[e].fixedRows)t.height<=O.height&&P.size.y<=t.height&&(I=this._activePages[e],O=t);if(O.y+P.size.y>=I.canvas.height||O.height>P.size.y+2){let e=!1;if(I.currentRow.y+I.currentRow.height+P.size.y>=I.canvas.height){let t;for(const e of this._activePages)if(e.currentRow.y+e.currentRow.height+P.size.y0&&I.fixedRows.push(I.currentRow),O={x:0,y:I.currentRow.y+I.currentRow.height,height:P.size.y},I.fixedRows.push(O),I.currentRow={x:0,y:O.y+O.height,height:0})}if(O.x+P.size.x<=I.canvas.width)break;O===I.currentRow?(O.x=0,O.y+=O.height,O.height=0):I.fixedRows.splice(I.fixedRows.indexOf(O),1)}return P.texturePage=this._pages.indexOf(I),P.texturePosition.x=O.x,P.texturePosition.y=O.y,P.texturePositionClipSpace.x=O.x/I.canvas.width,P.texturePositionClipSpace.y=O.y/I.canvas.height,P.sizeClipSpace.x/=I.canvas.width,P.sizeClipSpace.y/=I.canvas.height,O.height=Math.max(O.height,P.size.y),O.x+=P.size.x,I.ctx.putImageData(B,P.texturePosition.x-this._workBoundingBox.left,P.texturePosition.y-this._workBoundingBox.top,this._workBoundingBox.left,this._workBoundingBox.top,P.size.x,P.size.y),I.addGlyph(P),I.version++,P}_findGlyphBoundingBox(e,t,i,s,r,o){t.top=0;const n=s?this._config.deviceCellHeight:this._tmpCanvas.height,a=s?this._config.deviceCellWidth:i;let h=!1;for(let l=0;l=o;l--){for(let i=0;i=0;l--){for(let i=0;i>>24,o=t.rgba>>>16&255,n=t.rgba>>>8&255,a=i.rgba>>>24,h=i.rgba>>>16&255,l=i.rgba>>>8&255,c=Math.floor((Math.abs(r-a)+Math.abs(o-h)+Math.abs(n-l))/12);let d=!0;for(let _=0;_=0;a--)(r=e[a])&&(n=(o<3?r(n):o>3?r(t,i,n):r(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n},r=this&&this.__param||function(e,t){return function(i,s){t(i,s,e)}};Object.defineProperty(t,"__esModule",{value:!0}),t.CharacterJoinerService=t.JoinedCellData=void 0;const o=i(147),n=i(855),a=i(782),h=i(97);class l extends o.AttributeData{constructor(e,t,i){super(),this.content=0,this.combinedData="",this.fg=e.fg,this.bg=e.bg,this.combinedData=t,this._width=i}isCombined(){return 2097152}getWidth(){return this._width}getChars(){return this.combinedData}getCode(){return 2097151}setFromCharData(e){throw new Error("not implemented")}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}t.JoinedCellData=l;let c=class e{constructor(e){this._bufferService=e,this._characterJoiners=[],this._nextCharacterJoinerId=0,this._workCell=new a.CellData}register(e){const t={id:this._nextCharacterJoinerId++,handler:e};return this._characterJoiners.push(t),t.id}deregister(e){for(let t=0;t1){const e=this._getJoinedRanges(s,a,o,t,r);for(let t=0;t1){const e=this._getJoinedRanges(s,a,o,t,r);for(let t=0;t{Object.defineProperty(t,"__esModule",{value:!0}),t.contrastRatio=t.toPaddedHex=t.rgba=t.rgb=t.css=t.color=t.channels=t.NULL_COLOR=void 0;const s=i(399);let r=0,o=0,n=0,a=0;var h,l,c;function d(e){const t=e.toString(16);return t.length<2?"0"+t:t}function _(e,t){return e>>0}}(h=t.channels||(t.channels={})),function(e){function t(e,t){return a=Math.round(255*t),[r,o,n]=c.toChannels(e.rgba),{css:h.toCss(r,o,n,a),rgba:h.toRgba(r,o,n,a)}}e.blend=function(e,t){if(a=(255&t.rgba)/255,1===a)return{css:t.css,rgba:t.rgba};const i=t.rgba>>24&255,s=t.rgba>>16&255,l=t.rgba>>8&255,c=e.rgba>>24&255,d=e.rgba>>16&255,_=e.rgba>>8&255;return r=c+Math.round((i-c)*a),o=d+Math.round((s-d)*a),n=_+Math.round((l-_)*a),{css:h.toCss(r,o,n),rgba:h.toRgba(r,o,n)}},e.isOpaque=function(e){return 255==(255&e.rgba)},e.ensureContrastRatio=function(e,t,i){const s=c.ensureContrastRatio(e.rgba,t.rgba,i);if(s)return c.toColor(s>>24&255,s>>16&255,s>>8&255)},e.opaque=function(e){const t=(255|e.rgba)>>>0;return[r,o,n]=c.toChannels(t),{css:h.toCss(r,o,n),rgba:t}},e.opacity=t,e.multiplyOpacity=function(e,i){return a=255&e.rgba,t(e,a*i/255)},e.toColorRGB=function(e){return[e.rgba>>24&255,e.rgba>>16&255,e.rgba>>8&255]}}(t.color||(t.color={})),function(e){let t,i;if(!s.isNode){const e=document.createElement("canvas");e.width=1,e.height=1;const s=e.getContext("2d",{willReadFrequently:!0});s&&(t=s,t.globalCompositeOperation="copy",i=t.createLinearGradient(0,0,1,1))}e.toColor=function(e){if(e.match(/#[\da-f]{3,8}/i))switch(e.length){case 4:return r=parseInt(e.slice(1,2).repeat(2),16),o=parseInt(e.slice(2,3).repeat(2),16),n=parseInt(e.slice(3,4).repeat(2),16),c.toColor(r,o,n);case 5:return r=parseInt(e.slice(1,2).repeat(2),16),o=parseInt(e.slice(2,3).repeat(2),16),n=parseInt(e.slice(3,4).repeat(2),16),a=parseInt(e.slice(4,5).repeat(2),16),c.toColor(r,o,n,a);case 7:return{css:e,rgba:(parseInt(e.slice(1),16)<<8|255)>>>0};case 9:return{css:e,rgba:parseInt(e.slice(1),16)>>>0}}const s=e.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(s)return r=parseInt(s[1]),o=parseInt(s[2]),n=parseInt(s[3]),a=Math.round(255*(void 0===s[5]?1:parseFloat(s[5]))),c.toColor(r,o,n,a);if(!t||!i)throw new Error("css.toColor: Unsupported css format");if(t.fillStyle=i,t.fillStyle=e,"string"!=typeof t.fillStyle)throw new Error("css.toColor: Unsupported css format");if(t.fillRect(0,0,1,1),[r,o,n,a]=t.getImageData(0,0,1,1).data,255!==a)throw new Error("css.toColor: Unsupported css format");return{rgba:h.toRgba(r,o,n,a),css:e}}}(t.css||(t.css={})),function(e){function t(e,t,i){const s=e/255,r=t/255,o=i/255;return.2126*(s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4))+.7152*(r<=.03928?r/12.92:Math.pow((r+.055)/1.055,2.4))+.0722*(o<=.03928?o/12.92:Math.pow((o+.055)/1.055,2.4))}e.relativeLuminance=function(e){return t(e>>16&255,e>>8&255,255&e)},e.relativeLuminance2=t}(l=t.rgb||(t.rgb={})),function(e){function t(e,t,i){const s=e>>24&255,r=e>>16&255,o=e>>8&255;let n=t>>24&255,a=t>>16&255,h=t>>8&255,c=_(l.relativeLuminance2(n,a,h),l.relativeLuminance2(s,r,o));for(;c0||a>0||h>0);)n-=Math.max(0,Math.ceil(.1*n)),a-=Math.max(0,Math.ceil(.1*a)),h-=Math.max(0,Math.ceil(.1*h)),c=_(l.relativeLuminance2(n,a,h),l.relativeLuminance2(s,r,o));return(n<<24|a<<16|h<<8|255)>>>0}function i(e,t,i){const s=e>>24&255,r=e>>16&255,o=e>>8&255;let n=t>>24&255,a=t>>16&255,h=t>>8&255,c=_(l.relativeLuminance2(n,a,h),l.relativeLuminance2(s,r,o));for(;c>>0}e.ensureContrastRatio=function(e,s,r){const o=l.relativeLuminance(e>>8),n=l.relativeLuminance(s>>8);if(_(o,n)>8));if(a_(o,l.relativeLuminance(t>>8))?n:t}return n}const a=i(e,s,r),h=_(o,l.relativeLuminance(a>>8));if(h_(o,l.relativeLuminance(i>>8))?a:i}return a}},e.reduceLuminance=t,e.increaseLuminance=i,e.toChannels=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},e.toColor=function(e,t,i,s){return{css:h.toCss(e,t,i,s),rgba:h.toRgba(e,t,i,s)}}}(c=t.rgba||(t.rgba={})),t.toPaddedHex=d,t.contrastRatio=_},345:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.forwardEvent=t.EventEmitter=void 0,t.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=e=>(this._listeners.push(e),{dispose:()=>{if(!this._disposed)for(let t=0;tt.fire(e)))}},859:(e,t)=>{function i(e){for(const t of e)t.dispose();e.length=0}Object.defineProperty(t,"__esModule",{value:!0}),t.getDisposeArrayDisposable=t.disposeArray=t.toDisposable=t.Disposable=void 0,t.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const e of this._disposables)e.dispose();this._disposables.length=0}register(e){return this._disposables.push(e),e}unregister(e){const t=this._disposables.indexOf(e);-1!==t&&this._disposables.splice(t,1)}},t.toDisposable=function(e){return{dispose:e}},t.disposeArray=i,t.getDisposeArrayDisposable=function(e){return{dispose:()=>i(e)}}},485:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.FourKeyMap=t.TwoKeyMap=void 0;class i{constructor(){this._data={}}set(e,t,i){this._data[e]||(this._data[e]={}),this._data[e][t]=i}get(e,t){return this._data[e]?this._data[e][t]:void 0}clear(){this._data={}}}t.TwoKeyMap=i,t.FourKeyMap=class{constructor(){this._data=new i}set(e,t,s,r,o){this._data.get(e,t)||this._data.set(e,t,new i),this._data.get(e,t).set(s,r,o)}get(e,t,i,s){var r;return null===(r=this._data.get(e,t))||void 0===r?void 0:r.get(i,s)}clear(){this._data.clear()}}},399:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.isChromeOS=t.isLinux=t.isWindows=t.isIphone=t.isIpad=t.isMac=t.getSafariVersion=t.isSafari=t.isLegacyEdge=t.isFirefox=t.isNode=void 0,t.isNode="undefined"==typeof navigator;const i=t.isNode?"node":navigator.userAgent,s=t.isNode?"node":navigator.platform;t.isFirefox=i.includes("Firefox"),t.isLegacyEdge=i.includes("Edge"),t.isSafari=/^((?!chrome|android).)*safari/i.test(i),t.getSafariVersion=function(){if(!t.isSafari)return 0;const e=i.match(/Version\/(\d+)/);return null===e||e.length<2?0:parseInt(e[1])},t.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(s),t.isIpad="iPad"===s,t.isIphone="iPhone"===s,t.isWindows=["Windows","Win16","Win32","WinCE"].includes(s),t.isLinux=s.indexOf("Linux")>=0,t.isChromeOS=/\bCrOS\b/.test(i)},385:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DebouncedIdleTask=t.IdleTaskQueue=t.PriorityTaskQueue=void 0;const s=i(399);class r{constructor(){this._tasks=[],this._i=0}enqueue(e){this._tasks.push(e),this._start()}flush(){for(;this._ir)return s-t<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(s-t))}ms`),void this._start();s=r}this.clear()}}class o extends r{_requestCallback(e){return setTimeout((()=>e(this._createDeadline(16))))}_cancelCallback(e){clearTimeout(e)}_createDeadline(e){const t=Date.now()+e;return{timeRemaining:()=>Math.max(0,t-Date.now())}}}t.PriorityTaskQueue=o,t.IdleTaskQueue=!s.isNode&&"requestIdleCallback"in window?class extends r{_requestCallback(e){return requestIdleCallback(e)}_cancelCallback(e){cancelIdleCallback(e)}}:o,t.DebouncedIdleTask=class{constructor(){this._queue=new t.IdleTaskQueue}set(e){this._queue.clear(),this._queue.enqueue(e)}flush(){this._queue.flush()}}},147:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedAttrs=t.AttributeData=void 0;class i{constructor(){this.fg=0,this.bg=0,this.extended=new s}static toColorRGB(e){return[e>>>16&255,e>>>8&255,255&e]}static fromColorRGB(e){return(255&e[0])<<16|(255&e[1])<<8|255&e[2]}clone(){const e=new i;return e.fg=this.fg,e.bg=this.bg,e.extended=this.extended.clone(),e}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&0!==this.extended.underlineStyle?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return 50331648==(50331648&this.fg)}isBgRGB(){return 50331648==(50331648&this.bg)}isFgPalette(){return 16777216==(50331648&this.fg)||33554432==(50331648&this.fg)}isBgPalette(){return 16777216==(50331648&this.bg)||33554432==(50331648&this.bg)}isFgDefault(){return 0==(50331648&this.fg)}isBgDefault(){return 0==(50331648&this.bg)}isAttributeDefault(){return 0===this.fg&&0===this.bg}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?50331648==(50331648&this.extended.underlineColor):this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?16777216==(50331648&this.extended.underlineColor)||33554432==(50331648&this.extended.underlineColor):this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?0==(50331648&this.extended.underlineColor):this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}}t.AttributeData=i;class s{constructor(e=0,t=0){this._ext=0,this._urlId=0,this._ext=e,this._urlId=t}get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(e){this._ext=e}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(e){this._ext&=-469762049,this._ext|=e<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(e){this._ext&=-67108864,this._ext|=67108863&e}get urlId(){return this._urlId}set urlId(e){this._urlId=e}clone(){return new s(this._ext,this._urlId)}isEmpty(){return 0===this.underlineStyle&&0===this._urlId}}t.ExtendedAttrs=s},782:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.CellData=void 0;const s=i(133),r=i(855),o=i(147);class n extends o.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new o.ExtendedAttrs,this.combinedData=""}static fromCharData(e){const t=new n;return t.setFromCharData(e),t}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,s.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(e){this.fg=e[r.CHAR_DATA_ATTR_INDEX],this.bg=0;let t=!1;if(e[r.CHAR_DATA_CHAR_INDEX].length>2)t=!0;else if(2===e[r.CHAR_DATA_CHAR_INDEX].length){const i=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=i&&i<=56319){const s=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=s&&s<=57343?this.content=1024*(i-55296)+s-56320+65536|e[r.CHAR_DATA_WIDTH_INDEX]<<22:t=!0}else t=!0}else this.content=e[r.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|e[r.CHAR_DATA_WIDTH_INDEX]<<22;t&&(this.combinedData=e[r.CHAR_DATA_CHAR_INDEX],this.content=2097152|e[r.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}t.CellData=n},855:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.WHITESPACE_CELL_CODE=t.WHITESPACE_CELL_WIDTH=t.WHITESPACE_CELL_CHAR=t.NULL_CELL_CODE=t.NULL_CELL_WIDTH=t.NULL_CELL_CHAR=t.CHAR_DATA_CODE_INDEX=t.CHAR_DATA_WIDTH_INDEX=t.CHAR_DATA_CHAR_INDEX=t.CHAR_DATA_ATTR_INDEX=t.DEFAULT_EXT=t.DEFAULT_ATTR=t.DEFAULT_COLOR=void 0,t.DEFAULT_COLOR=0,t.DEFAULT_ATTR=256|t.DEFAULT_COLOR<<9,t.DEFAULT_EXT=0,t.CHAR_DATA_ATTR_INDEX=0,t.CHAR_DATA_CHAR_INDEX=1,t.CHAR_DATA_WIDTH_INDEX=2,t.CHAR_DATA_CODE_INDEX=3,t.NULL_CELL_CHAR="",t.NULL_CELL_WIDTH=1,t.NULL_CELL_CODE=0,t.WHITESPACE_CELL_CHAR=" ",t.WHITESPACE_CELL_WIDTH=1,t.WHITESPACE_CELL_CODE=32},133:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Utf8ToUtf32=t.StringToUtf32=t.utf32ToString=t.stringFromCodePoint=void 0,t.stringFromCodePoint=function(e){return e>65535?(e-=65536,String.fromCharCode(55296+(e>>10))+String.fromCharCode(e%1024+56320)):String.fromCharCode(e)},t.utf32ToString=function(e,t=0,i=e.length){let s="";for(let r=t;r65535?(t-=65536,s+=String.fromCharCode(55296+(t>>10))+String.fromCharCode(t%1024+56320)):s+=String.fromCharCode(t)}return s},t.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(e,t){const i=e.length;if(!i)return 0;let s=0,r=0;if(this._interim){const i=e.charCodeAt(r++);56320<=i&&i<=57343?t[s++]=1024*(this._interim-55296)+i-56320+65536:(t[s++]=this._interim,t[s++]=i),this._interim=0}for(let o=r;o=i)return this._interim=r,s;const n=e.charCodeAt(o);56320<=n&&n<=57343?t[s++]=1024*(r-55296)+n-56320+65536:(t[s++]=r,t[s++]=n)}else 65279!==r&&(t[s++]=r)}return s}},t.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(e,t){const i=e.length;if(!i)return 0;let s,r,o,n,a=0,h=0,l=0;if(this.interim[0]){let s=!1,r=this.interim[0];r&=192==(224&r)?31:224==(240&r)?15:7;let o,n=0;for(;(o=63&this.interim[++n])&&n<4;)r<<=6,r|=o;const h=192==(224&this.interim[0])?2:224==(240&this.interim[0])?3:4,c=h-n;for(;l=i)return 0;if(o=e[l++],128!=(192&o)){l--,s=!0;break}this.interim[n++]=o,r<<=6,r|=63&o}s||(2===h?r<128?l--:t[a++]=r:3===h?r<2048||r>=55296&&r<=57343||65279===r||(t[a++]=r):r<65536||r>1114111||(t[a++]=r)),this.interim.fill(0)}const c=i-4;let d=l;for(;d=i)return this.interim[0]=s,a;if(r=e[d++],128!=(192&r)){d--;continue}if(h=(31&s)<<6|63&r,h<128){d--;continue}t[a++]=h}else if(224==(240&s)){if(d>=i)return this.interim[0]=s,a;if(r=e[d++],128!=(192&r)){d--;continue}if(d>=i)return this.interim[0]=s,this.interim[1]=r,a;if(o=e[d++],128!=(192&o)){d--;continue}if(h=(15&s)<<12|(63&r)<<6|63&o,h<2048||h>=55296&&h<=57343||65279===h)continue;t[a++]=h}else if(240==(248&s)){if(d>=i)return this.interim[0]=s,a;if(r=e[d++],128!=(192&r)){d--;continue}if(d>=i)return this.interim[0]=s,this.interim[1]=r,a;if(o=e[d++],128!=(192&o)){d--;continue}if(d>=i)return this.interim[0]=s,this.interim[1]=r,this.interim[2]=o,a;if(n=e[d++],128!=(192&n)){d--;continue}if(h=(7&s)<<18|(63&r)<<12|(63&o)<<6|63&n,h<65536||h>1114111)continue;t[a++]=h}}return a}}},726:(e,t)=>{function i(e,t,i){t.di$target===t?t.di$dependencies.push({id:e,index:i}):(t.di$dependencies=[{id:e,index:i}],t.di$target=t)}Object.defineProperty(t,"__esModule",{value:!0}),t.createDecorator=t.getServiceDependencies=t.serviceRegistry=void 0,t.serviceRegistry=new Map,t.getServiceDependencies=function(e){return e.di$dependencies||[]},t.createDecorator=function(e){if(t.serviceRegistry.has(e))return t.serviceRegistry.get(e);const s=function(e,t,r){if(3!==arguments.length)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");i(s,e,r)};return s.toString=()=>e,t.serviceRegistry.set(e,s),s}},97:(e,t,i)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IDecorationService=t.IUnicodeService=t.IOscLinkService=t.IOptionsService=t.ILogService=t.LogLevelEnum=t.IInstantiationService=t.ICharsetService=t.ICoreService=t.ICoreMouseService=t.IBufferService=void 0;const s=i(726);var r;t.IBufferService=(0,s.createDecorator)("BufferService"),t.ICoreMouseService=(0,s.createDecorator)("CoreMouseService"),t.ICoreService=(0,s.createDecorator)("CoreService"),t.ICharsetService=(0,s.createDecorator)("CharsetService"),t.IInstantiationService=(0,s.createDecorator)("InstantiationService"),(r=t.LogLevelEnum||(t.LogLevelEnum={}))[r.DEBUG=0]="DEBUG",r[r.INFO=1]="INFO",r[r.WARN=2]="WARN",r[r.ERROR=3]="ERROR",r[r.OFF=4]="OFF",t.ILogService=(0,s.createDecorator)("LogService"),t.IOptionsService=(0,s.createDecorator)("OptionsService"),t.IOscLinkService=(0,s.createDecorator)("OscLinkService"),t.IUnicodeService=(0,s.createDecorator)("UnicodeService"),t.IDecorationService=(0,s.createDecorator)("DecorationService")}},t={};function i(s){var r=t[s];if(void 0!==r)return r.exports;var o=t[s]={exports:{}};return e[s].call(o.exports,o,o.exports,i),o.exports}var s={};return(()=>{var e=s;Object.defineProperty(e,"__esModule",{value:!0}),e.CanvasAddon=void 0;const t=i(949),r=i(345),o=i(859);class n extends o.Disposable{constructor(){super(...arguments),this._onChangeTextureAtlas=this.register(new r.EventEmitter),this.onChangeTextureAtlas=this._onChangeTextureAtlas.event,this._onAddTextureAtlasCanvas=this.register(new r.EventEmitter),this.onAddTextureAtlasCanvas=this._onAddTextureAtlasCanvas.event}get textureAtlas(){var e;return null===(e=this._renderer)||void 0===e?void 0:e.textureAtlas}activate(e){const i=e._core;if(!e.element)return void this.register(i.onWillOpen((()=>this.activate(e))));this._terminal=e;const s=i.coreService,n=i.optionsService,a=i.screenElement,h=i.linkifier2,l=i,c=l._bufferService,d=l._renderService,_=l._characterJoinerService,u=l._charSizeService,g=l._coreBrowserService,f=l._decorationService,v=l._themeService;this._renderer=new t.CanvasRenderer(e,a,h,c,u,n,_,s,g,f,v),this.register((0,r.forwardEvent)(this._renderer.onChangeTextureAtlas,this._onChangeTextureAtlas)),this.register((0,r.forwardEvent)(this._renderer.onAddTextureAtlasCanvas,this._onAddTextureAtlasCanvas)),d.setRenderer(this._renderer),d.handleResize(c.cols,c.rows),this.register((0,o.toDisposable)((()=>{var t;d.setRenderer(this._terminal._core._createRenderer()),d.handleResize(e.cols,e.rows),null===(t=this._renderer)||void 0===t||t.dispose(),this._renderer=void 0})))}}e.CanvasAddon=n})(),s})()}))}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/9445.fe5e9e5b728de8d15873.js b/bootcamp/share/jupyter/lab/static/9445.fe5e9e5b728de8d15873.js new file mode 100644 index 0000000..2233f70 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/9445.fe5e9e5b728de8d15873.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9445],{9445:(e,t,r)=>{r.r(t);r.d(t,{liveScript:()=>p});var n=function(e,t){var r=t.next||"start";if(r){t.next=t.next;var n=s[r];if(n.splice){for(var o=0;o|\\b(?:e(?:lse|xport)|d(?:o|efault)|t(?:ry|hen)|finally|import(?:\\s*all)?|const|var|let|new|catch(?:\\s*"+o+")?))\\s*$");var x="(?![$\\w]|-[A-Za-z]|\\s*:(?![:=]))";var g={token:"string",regex:".+"};var s={start:[{token:"docComment",regex:"/\\*",next:"comment"},{token:"comment",regex:"#.*"},{token:"keyword",regex:"(?:t(?:h(?:is|row|en)|ry|ypeof!?)|c(?:on(?:tinue|st)|a(?:se|tch)|lass)|i(?:n(?:stanceof)?|mp(?:ort(?:\\s+all)?|lements)|[fs])|d(?:e(?:fault|lete|bugger)|o)|f(?:or(?:\\s+own)?|inally|unction)|s(?:uper|witch)|e(?:lse|x(?:tends|port)|val)|a(?:nd|rguments)|n(?:ew|ot)|un(?:less|til)|w(?:hile|ith)|o[fr]|return|break|let|var|loop)"+x},{token:"atom",regex:"(?:true|false|yes|no|on|off|null|void|undefined)"+x},{token:"invalid",regex:"(?:p(?:ackage|r(?:ivate|otected)|ublic)|i(?:mplements|nterface)|enum|static|yield)"+x},{token:"className.standard",regex:"(?:R(?:e(?:gExp|ferenceError)|angeError)|S(?:tring|yntaxError)|E(?:rror|valError)|Array|Boolean|Date|Function|Number|Object|TypeError|URIError)"+x},{token:"variableName.function.standard",regex:"(?:is(?:NaN|Finite)|parse(?:Int|Float)|Math|JSON|(?:en|de)codeURI(?:Component)?)"+x},{token:"variableName.standard",regex:"(?:t(?:hat|il|o)|f(?:rom|allthrough)|it|by|e)"+x},{token:"variableName",regex:o+"\\s*:(?![:=])"},{token:"variableName",regex:o},{token:"operatorKeyword",regex:"(?:\\.{3}|\\s+\\?)"},{token:"keyword",regex:"(?:@+|::|\\.\\.)",next:"key"},{token:"operatorKeyword",regex:"\\.\\s*",next:"key"},{token:"string",regex:"\\\\\\S[^\\s,;)}\\]]*"},{token:"docString",regex:"'''",next:"qdoc"},{token:"docString",regex:'"""',next:"qqdoc"},{token:"string",regex:"'",next:"qstring"},{token:"string",regex:'"',next:"qqstring"},{token:"string",regex:"`",next:"js"},{token:"string",regex:"<\\[",next:"words"},{token:"regexp",regex:"//",next:"heregex"},{token:"regexp",regex:"\\/(?:[^[\\/\\n\\\\]*(?:(?:\\\\.|\\[[^\\]\\n\\\\]*(?:\\\\.[^\\]\\n\\\\]*)*\\])[^[\\/\\n\\\\]*)*)\\/[gimy$]{0,4}",next:"key"},{token:"number",regex:"(?:0x[\\da-fA-F][\\da-fA-F_]*|(?:[2-9]|[12]\\d|3[0-6])r[\\da-zA-Z][\\da-zA-Z_]*|(?:\\d[\\d_]*(?:\\.\\d[\\d_]*)?|\\.\\d[\\d_]*)(?:e[+-]?\\d[\\d_]*)?[\\w$]*)"},{token:"paren",regex:"[({[]"},{token:"paren",regex:"[)}\\]]",next:"key"},{token:"operatorKeyword",regex:"\\S+"},{token:"content",regex:"\\s+"}],heregex:[{token:"regexp",regex:".*?//[gimy$?]{0,4}",next:"start"},{token:"regexp",regex:"\\s*#{"},{token:"comment",regex:"\\s+(?:#.*)?"},{token:"regexp",regex:"\\S+"}],key:[{token:"operatorKeyword",regex:"[.?@!]+"},{token:"variableName",regex:o,next:"start"},{token:"content",regex:"",next:"start"}],comment:[{token:"docComment",regex:".*?\\*/",next:"start"},{token:"docComment",regex:".+"}],qdoc:[{token:"string",regex:".*?'''",next:"key"},g],qqdoc:[{token:"string",regex:'.*?"""',next:"key"},g],qstring:[{token:"string",regex:"[^\\\\']*(?:\\\\.[^\\\\']*)*'",next:"key"},g],qqstring:[{token:"string",regex:'[^\\\\"]*(?:\\\\.[^\\\\"]*)*"',next:"key"},g],js:[{token:"string",regex:"[^\\\\`]*(?:\\\\.[^\\\\`]*)*`",next:"key"},g],words:[{token:"string",regex:".*?\\]>",next:"key"},g]};for(var i in s){var k=s[i];if(k.splice){for(var l=0,c=k.length;l{P.r(Q);P.d(Q,{java:()=>t,javaLanguage:()=>X});var $=P(11705);var a=P(6016);const i=(0,a.styleTags)({null:a.tags["null"],instanceof:a.tags.operatorKeyword,this:a.tags.self,"new super assert open to with void":a.tags.keyword,"class interface extends implements enum var":a.tags.definitionKeyword,"module package import":a.tags.moduleKeyword,"switch while for if else case default do break continue return try catch finally throw":a.tags.controlKeyword,["requires exports opens uses provides public private protected static transitive abstract final "+"strictfp synchronized native transient volatile throws"]:a.tags.modifier,IntegerLiteral:a.tags.integer,FloatingPointLiteral:a.tags.float,"StringLiteral TextBlock":a.tags.string,CharacterLiteral:a.tags.character,LineComment:a.tags.lineComment,BlockComment:a.tags.blockComment,BooleanLiteral:a.tags.bool,PrimitiveType:a.tags.standard(a.tags.typeName),TypeName:a.tags.typeName,Identifier:a.tags.variableName,"MethodName/Identifier":a.tags["function"](a.tags.variableName),Definition:a.tags.definition(a.tags.variableName),ArithOp:a.tags.arithmeticOperator,LogicOp:a.tags.logicOperator,BitOp:a.tags.bitwiseOperator,CompareOp:a.tags.compareOperator,AssignOp:a.tags.definitionOperator,UpdateOp:a.tags.updateOperator,Asterisk:a.tags.punctuation,Label:a.tags.labelName,"( )":a.tags.paren,"[ ]":a.tags.squareBracket,"{ }":a.tags.brace,".":a.tags.derefOperator,", ;":a.tags.separator});const r={__proto__:null,true:34,false:34,null:42,void:46,byte:48,short:48,int:48,long:48,char:48,float:48,double:48,boolean:48,extends:62,super:64,class:76,this:78,new:84,public:100,protected:102,private:104,abstract:106,static:108,final:110,strictfp:112,default:114,synchronized:116,native:118,transient:120,volatile:122,throws:150,implements:160,interface:166,enum:176,instanceof:236,open:265,module:267,requires:272,transitive:274,exports:276,to:278,opens:280,uses:282,provides:284,with:286,package:290,import:294,if:306,else:308,while:312,for:316,var:323,assert:330,switch:334,case:340,do:344,break:348,continue:352,return:356,throw:362,try:366,catch:370,finally:378};const e=$.WQ.deserialize({version:14,states:"#!hQ]QPOOO&tQQO'#H[O(xQQO'#CbOOQO'#Cb'#CbO)PQPO'#CaO)XOSO'#CpOOQO'#Ha'#HaOOQO'#Cu'#CuO*tQPO'#D_O+_QQO'#HkOOQO'#Hk'#HkO-sQQO'#HfO-zQQO'#HfOOQO'#Hf'#HfOOQO'#He'#HeO0OQPO'#DUO0]QPO'#GlO3TQPO'#D_O3[QPO'#DzO)PQPO'#E[O3}QPO'#E[OOQO'#DV'#DVO5]QQO'#H_O7dQQO'#EeO7kQPO'#EdO7pQPO'#EfOOQO'#H`'#H`O5sQQO'#H`O8sQQO'#FgO8zQPO'#EwO9PQPO'#E|O9PQPO'#FOOOQO'#H_'#H_OOQO'#HW'#HWOOQO'#Gf'#GfOOQO'#HV'#HVO:aQPO'#FhOOQO'#HU'#HUOOQO'#Ge'#GeQ]QPOOOOQO'#Hq'#HqO:fQPO'#HqO:kQPO'#D{O:kQPO'#EVO:kQPO'#EQO:sQPO'#HnO;UQQO'#EfO)PQPO'#C`O;^QPO'#C`O)PQPO'#FbO;cQPO'#FdO;nQPO'#FjO;nQPO'#FmO:kQPO'#FrO;sQPO'#FoO9PQPO'#FvO;nQPO'#FxO]QPO'#F}O;xQPO'#GPOyOSO,59[OOQO,59[,59[OOQO'#Hg'#HgO?jQPO,59eO@lQPO,59yOOQO-E:d-E:dO)PQPO,58zOA`QPO,58zO)PQPO,5;|OAeQPO'#DQOAjQPO'#DQOOQO'#Gi'#GiOBjQQO,59jOOQO'#Dm'#DmODRQPO'#HsOD]QPO'#DlODkQPO'#HrODsQPO,5<^ODxQPO,59^OEcQPO'#CxOOQO,59c,59cOEjQPO,59bOGrQQO'#H[OJVQQO'#CbOJmQPO'#D_OKrQQO'#HkOLSQQO,59pOLZQPO'#DvOLiQPO'#HzOLqQPO,5:`OLvQPO,5:`OM^QPO,5;mOMiQPO'#IROMtQPO,5;dOMyQPO,5=WOOQO-E:j-E:jOOQO,5:f,5:fO! aQPO,5:fO! hQPO,5:vO! mQPO,5<^O)PQPO,5:vO:kQPO,5:gO:kQPO,5:qO:kQPO,5:lO:kQPO,5<^O!!^QPO,59qO9PQPO,5:}O!!eQPO,5;QO9PQPO,59TO!!sQPO'#DXOOQO,5;O,5;OOOQO'#El'#ElOOQO'#En'#EnO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;UO9PQPO,5;eOOQO,5;h,5;hOOQO,5],5>]O!%SQPO,5:gO!%bQPO,5:qO!%jQPO,5:lO!%uQPO,5>YOLZQPO,5>YO! {QPO,59UO!&QQQO,58zO!&YQQO,5;|O!&bQQO,5_O!.ZQPO,5:WO:kQPO'#GnO!.bQPO,5>^OOQO1G1x1G1xOOQO1G.x1G.xO!.{QPO'#CyO!/kQPO'#HkO!/uQPO'#CzO!0TQPO'#HjO!0]QPO,59dOOQO1G.|1G.|OEjQPO1G.|O!0sQPO,59eO!1QQQO'#H[O!1cQQO'#CbOOQO,5:b,5:bO:kQPO,5:cOOQO,5:a,5:aO!1tQQO,5:aOOQO1G/[1G/[O!1yQPO,5:bO!2[QPO'#GqO!2oQPO,5>fOOQO1G/z1G/zO!2wQPO'#DvO!3YQPO'#D_O!3aQPO1G/zO!!zQPO'#GoO!3fQPO1G1XO9PQPO1G1XO:kQPO'#GwO!3nQPO,5>mOOQO1G1O1G1OOOQO1G0Q1G0QO!3vQPO'#E]OOQO1G0b1G0bO!4gQPO1G1xO! hQPO1G0bO!%SQPO1G0RO!%bQPO1G0]O!%jQPO1G0WOOQO1G/]1G/]O!4lQQO1G.pO7kQPO1G0jO)PQPO1G0jO:sQPO'#HnO!6`QQO1G.pOOQO1G.p1G.pO!6eQQO1G0iOOQO1G0l1G0lO!6lQPO1G0lO!6wQQO1G.oO!7_QQO'#HoO!7lQPO,59sO!8{QQO1G0pO!:dQQO1G0pO!;rQQO1G0pO!UOOQO1G/O1G/OOOQO7+$h7+$hOOQO1G/{1G/{O#1TQQO1G/{OOQO1G/}1G/}O#1YQPO1G/{OOQO1G/|1G/|O:kQPO1G/}OOQO,5=],5=]OOQO-E:o-E:oOOQO7+%f7+%fOOQO,5=Z,5=ZOOQO-E:m-E:mO9PQPO7+&sOOQO7+&s7+&sOOQO,5=c,5=cOOQO-E:u-E:uO#1_QPO'#EUO#1mQPO'#EUOOQO'#Gu'#GuO#2UQPO,5:wOOQO,5:w,5:wOOQO7+'d7+'dOOQO7+%|7+%|OOQO7+%m7+%mO!AYQPO7+%mO!A_QPO7+%mO!AgQPO7+%mOOQO7+%w7+%wO!BVQPO7+%wOOQO7+%r7+%rO!CUQPO7+%rO!CZQPO7+%rOOQO7+&U7+&UOOQO'#Ee'#EeO7kQPO7+&UO7kQPO,5>YO#2uQPO7+$[OOQO7+&T7+&TOOQO7+&W7+&WO9PQPO'#GjO#3TQPO,5>ZOOQO1G/_1G/_O9PQPO7+&kO#3`QQO,59eO#4cQPO'#DrO! pQPO'#DrO#4nQPO'#HwO#4vQPO,5:]O#5aQQO'#HgO#5|QQO'#CuO! mQPO'#HvO#6lQPO'#DpO#6vQPO'#HvO#7XQPO'#DpO#7aQPO'#IPO#7fQPO'#E`OOQO'#Hp'#HpOOQO'#Gk'#GkO#7nQPO,59vOOQO,59v,59vO#7uQPO'#HqOOQO,5:h,5:hO#9]QPO'#H|OOQO'#EP'#EPOOQO,5:i,5:iO#9hQPO'#EYO:kQPO'#EYO#9yQPO'#H}O#:UQPO,5:sO! mQPO'#HvO!!zQPO'#HvO#:^QPO'#DpOOQO'#Gs'#GsO#:eQPO,5:oOOQO,5:o,5:oOOQO,5:n,5:nOOQO,5;S,5;SO#;_QQO,5;SO#;fQPO,5;SOOQO-E:t-E:tOOQO7+&X7+&XOOQO7+)`7+)`O#;mQQO7+)`OOQO'#Gz'#GzO#=ZQPO,5;rOOQO,5;r,5;rO#=bQPO'#FXO)PQPO'#FXO)PQPO'#FXO)PQPO'#FXO#=pQPO7+'UO#=uQPO7+'UOOQO7+'U7+'UO]QPO7+'[O#>QQPO1G1{O! mQPO1G1{O#>`QQO1G1wO!!sQPO1G1wO#>gQPO1G1wO#>nQQO7+'hOOQO'#G}'#G}O#>uQPO,5|QPO'#HqO9PQPO'#F{O#?UQPO7+'oO#?ZQPO,5=OO! mQPO,5=OO#?`QPO1G2iO#@iQPO1G2iOOQO1G2i1G2iOOQO-E:|-E:|OOQO7+'z7+'zO!2[QPO'#G^OpOOQO1G.n1G.nOOQO<X,5>XOOQO,5=S,5=SOOQO-E:f-E:fO#EjQPO7+%gOOQO7+%g7+%gOOQO7+%i7+%iOOQO<cOOQO1G/w1G/wO#IfQPO'#HsO#ImQPO,59xO#IrQPO,5>bO! mQPO,59xO#I}QPO,5:[O#7fQPO,5:zO! mQPO,5>bO!!zQPO,5>bO#7aQPO,5>kOOQO,5:[,5:[OLvQPO'#DtOOQO,5>k,5>kO#JVQPO'#EaOOQO,5:z,5:zO#MWQPO,5:zO!!zQPO'#DxOOQO-E:i-E:iOOQO1G/b1G/bOOQO,5:y,5:yO!!zQPO'#GrO#M]QPO,5>hOOQO,5:t,5:tO#MhQPO,5:tO#MvQPO,5:tO#NXQPO'#GtO#NoQPO,5>iO#NzQPO'#EZOOQO1G0_1G0_O$ RQPO1G0_O! mQPO,5:pOOQO-E:q-E:qOOQO1G0Z1G0ZOOQO1G0n1G0nO$ WQQO1G0nOOQO<oOOQO1G1Y1G1YO$%uQPO'#FTOOQO,5=e,5=eOOQO-E:w-E:wO$%zQPO'#GmO$&XQPO,5>aOOQO1G/u1G/uOOQO<sAN>sO!AYQPOAN>sOOQOAN>xAN>xOOQOAN?[AN?[O7kQPOAN?[O$&pQPO,5:_OOQO1G/x1G/xOOQO,5=[,5=[OOQO-E:n-E:nO$&{QPO,5>eOOQO1G/d1G/dOOQO1G3|1G3|O$'^QPO1G/dOOQO1G/v1G/vOOQO1G0f1G0fO#MWQPO1G0fO#7aQPO'#HyO$'cQPO1G3|O! mQPO1G3|OOQO1G4V1G4VOK^QPO'#DvOJmQPO'#D_OOQO,5:{,5:{O$'nQPO,5:{O$'nQPO,5:{O$'uQQO'#H_O$'|QQO'#H`O$(WQQO'#EbO$(cQPO'#EbOOQO,5:d,5:dOOQO,5=^,5=^OOQO-E:p-E:pOOQO1G0`1G0`O$(kQPO1G0`OOQO,5=`,5=`OOQO-E:r-E:rO$(yQPO,5:uOOQO7+%y7+%yOOQO7+&Y7+&YOOQO1G1_1G1_O$)QQQO1G1_OOQO-E:y-E:yO$)YQQO'#IWO$)TQPO1G1_O$ mQPO1G1_O)PQPO1G1_OOQOAN@[AN@[O$)eQQO<rO$,cQPO7+&yO$,hQQO'#IXOOQOAN@mAN@mO$,sQQOAN@mOOQOAN@iAN@iO$,zQPOAN@iO$-PQQO<sOOQOG26XG26XOOQOG26TG26TOOQO<bPPP>hP@|PPPAv2vPCoPPDjPEaEgPPPPPPPPPPPPFpGXPJ_JgJqKZKaKgMVMZMZMcPMrNx! k! uP!![NxP!!b!!l!!{!#TP!#r!#|!$SNx!$V!$]EaEa!$a!$k!$n2v!&Y2v2v!(RP.^P!(VP!(vPPPPPP.^P.^!)d.^PP.^P.^PP.^!*x!+SPP!+Y!+cPPPPPPPP&}P&}PP!+g!+g!+z!+gPP!+gP!+gP!,e!,hP!+g!-O!+gP!+gP!-R!-UP!+gP!+gP!+gP!+gP!+g!+gP!+gP!-YP!-`!-c!-iP!+g!-u!-x!.Q!.d!2a!2g!2m!3s!3y!4T!5X!5_!5e!5o!5u!5{!6R!6X!6_!6e!6k!6q!6w!6}!7T!7Z!7e!7k!7u!7{PPP!8R!+g!8vP!a!]!^!?q!^!_!@_!_!`!Ax!`!a!Bl!a!b!DY!b!c!Dx!c!}!Kt!}#O!MQ#O#P%Q#P#Q!Mn#Q#R!N[#R#S4e#S#T%Q#T#o4e#o#p# O#p#q# l#q#r##U#r#s##r#s#y%Q#y#z'f#z$f%Q$f$g'f$g#BY%Q#BY#BZ'f#BZ$IS%Q$IS$I_'f$I_$I|%Q$I|$JO'f$JO$JT%Q$JT$JU'f$JU$KV%Q$KV$KW'f$KW&FU%Q&FU&FV'f&FV;'S%Q;'S;=`&s<%lO%QS%VV&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QS%qO&WSS%tVOY&ZYZ%lZr&Zrs&ys;'S&Z;'S;=`'`<%lO&ZS&^VOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QS&vP;=`<%l%QS&|UOY&ZYZ%lZr&Zs;'S&Z;'S;=`'`<%lO&ZS'cP;=`<%l&Z_'mk&WS%wZOX%QXY'fYZ)bZ^'f^p%Qpq'fqr%Qrs%qs#y%Q#y#z'f#z$f%Q$f$g'f$g#BY%Q#BY#BZ'f#BZ$IS%Q$IS$I_'f$I_$I|%Q$I|$JO'f$JO$JT%Q$JT$JU'f$JU$KV%Q$KV$KW'f$KW&FU%Q&FU&FV'f&FV;'S%Q;'S;=`&s<%lO%Q_)iY&WS%wZX^*Xpq*X#y#z*X$f$g*X#BY#BZ*X$IS$I_*X$I|$JO*X$JT$JU*X$KV$KW*X&FU&FV*XZ*^Y%wZX^*Xpq*X#y#z*X$f$g*X#BY#BZ*X$IS$I_*X$I|$JO*X$JT$JU*X$KV$KW*X&FU&FV*XV+TX#sP&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`+p!`;'S%Q;'S;=`&s<%lO%QU+wV#_Q&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT,aXOY,|YZ%lZr,|rs3Ys#O,|#O#P2d#P;'S,|;'S;=`3S<%lO,|T-PXOY-lYZ%lZr-lrs.^s#O-l#O#P.x#P;'S-l;'S;=`2|<%lO-lT-qX&WSOY-lYZ%lZr-lrs.^s#O-l#O#P.x#P;'S-l;'S;=`2|<%lO-lT.cVcPOY&ZYZ%lZr&Zrs&ys;'S&Z;'S;=`'`<%lO&ZT.}V&WSOY-lYZ/dZr-lrs1]s;'S-l;'S;=`2|<%lO-lT/iW&WSOY0RZr0Rrs0ns#O0R#O#P0s#P;'S0R;'S;=`1V<%lO0RP0UWOY0RZr0Rrs0ns#O0R#O#P0s#P;'S0R;'S;=`1V<%lO0RP0sOcPP0vTOY0RYZ0RZ;'S0R;'S;=`1V<%lO0RP1YP;=`<%l0RT1`XOY,|YZ%lZr,|rs1{s#O,|#O#P2d#P;'S,|;'S;=`3S<%lO,|T2QUcPOY&ZYZ%lZr&Zs;'S&Z;'S;=`'`<%lO&ZT2gVOY-lYZ/dZr-lrs1]s;'S-l;'S;=`2|<%lO-lT3PP;=`<%l-lT3VP;=`<%l,|T3_VcPOY&ZYZ%lZr&Zrs3ts;'S&Z;'S;=`'`<%lO&ZT3yR&USXY4SYZ4`pq4SP4VRXY4SYZ4`pq4SP4eO&VP_4la%}Z&WSOY%QYZ%lZr%Qrs%qst%Qtu4eu!Q%Q!Q![4e![!c%Q!c!}4e!}#R%Q#R#S4e#S#T%Q#T#o4e#o;'S%Q;'S;=`&s<%lO%QU5xX#gQ&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QU6lV#]Q&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV7YZ&lR&WSOY%QYZ%lZr%Qrs%qsv%Qvw7{w!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QU8SV#aQ&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT8nZ&WSOY9aYZ%lZr9ars:Xsw9awx%Qx#O9a#O#Pt<%lO9aT9fZ&WSOY9aYZ%lZr9ars:Xsw9awx;sx#O9a#O#Pt<%lO9aT:[ZOY:}YZ%lZr:}rs>zsw:}wx?px#O:}#O#P@[#P;'S:};'S;=`@t<%lO:}T;QZOY9aYZ%lZr9ars:Xsw9awx;sx#O9a#O#Pt<%lO9aT;zVbP&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QTt<%lO9aT=QW&WSOY=jZw=jwx>Vx#O=j#O#P>[#P;'S=j;'S;=`>n<%lO=jP=mWOY=jZw=jwx>Vx#O=j#O#P>[#P;'S=j;'S;=`>n<%lO=jP>[ObPP>_TOY=jYZ=jZ;'S=j;'S;=`>n<%lO=jP>qP;=`<%l=jT>wP;=`<%l9aT>}ZOY:}YZ%lZr:}rs=jsw:}wx?px#O:}#O#P@[#P;'S:};'S;=`@t<%lO:}T?uVbPOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT@_VOY9aYZ<{Zr9ars:Xs;'S9a;'S;=`>t<%lO9aT@wP;=`<%l:}_ARVZZ&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QVAoVYR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QVB_X$YP&WS#fQOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QVCRZ#eR&WSOY%QYZ%lZr%Qrs%qs{%Q{|Ct|!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QVC{V#qR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QVDiVqR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QVEV[#eR&WSOY%QYZ%lZr%Qrs%qs}%Q}!OCt!O!_%Q!_!`6e!`!aE{!a;'S%Q;'S;=`&s<%lO%QVFSV&vR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_FpZWY&WSOY%QYZ%lZr%Qrs%qs!O%Q!O!PGc!P!Q%Q!Q![Hq![;'S%Q;'S;=`&s<%lO%QVGhX&WSOY%QYZ%lZr%Qrs%qs!O%Q!O!PHT!P;'S%Q;'S;=`&s<%lO%QVH[V&oR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QTHxc&WS`POY%QYZ%lZr%Qrs%qs!Q%Q!Q![Hq![!f%Q!f!gJT!g!hJq!h!iJT!i#R%Q#R#SNk#S#W%Q#W#XJT#X#YJq#Y#ZJT#Z;'S%Q;'S;=`&s<%lO%QTJ[V&WS`POY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QTJv]&WSOY%QYZ%lZr%Qrs%qs{%Q{|Ko|}%Q}!OKo!O!Q%Q!Q![La![;'S%Q;'S;=`&s<%lO%QTKtX&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![La![;'S%Q;'S;=`&s<%lO%QTLhc&WS`POY%QYZ%lZr%Qrs%qs!Q%Q!Q![La![!f%Q!f!gJT!g!h%Q!h!iJT!i#R%Q#R#SMs#S#W%Q#W#XJT#X#Y%Q#Y#ZJT#Z;'S%Q;'S;=`&s<%lO%QTMxZ&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![La![#R%Q#R#SMs#S;'S%Q;'S;=`&s<%lO%QTNpZ&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![Hq![#R%Q#R#SNk#S;'S%Q;'S;=`&s<%lO%Q_! j]&WS#fQOY%QYZ%lZr%Qrs%qsz%Qz{!!c{!P%Q!P!Q!)U!Q!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%Q_!!hX&WSOY!!cYZ!#TZr!!crs!$psz!!cz{!&O{;'S!!c;'S;=`!'d<%lO!!c_!#YT&WSOz!#iz{!#{{;'S!#i;'S;=`!$j<%lO!#iZ!#lTOz!#iz{!#{{;'S!#i;'S;=`!$j<%lO!#iZ!$OVOz!#iz{!#{{!P!#i!P!Q!$e!Q;'S!#i;'S;=`!$j<%lO!#iZ!$jOQZZ!$mP;=`<%l!#i_!$sXOY!%`YZ!#TZr!%`rs!'jsz!%`z{!(Y{;'S!%`;'S;=`!)O<%lO!%`_!%cXOY!!cYZ!#TZr!!crs!$psz!!cz{!&O{;'S!!c;'S;=`!'d<%lO!!c_!&TZ&WSOY!!cYZ!#TZr!!crs!$psz!!cz{!&O{!P!!c!P!Q!&v!Q;'S!!c;'S;=`!'d<%lO!!c_!&}V&WSQZOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_!'gP;=`<%l!!c_!'mXOY!%`YZ!#TZr!%`rs!#isz!%`z{!(Y{;'S!%`;'S;=`!)O<%lO!%`_!(]ZOY!!cYZ!#TZr!!crs!$psz!!cz{!&O{!P!!c!P!Q!&v!Q;'S!!c;'S;=`!'d<%lO!!c_!)RP;=`<%l!%`_!)]V&WSPZOY!)UYZ%lZr!)Urs!)rs;'S!)U;'S;=`!*x<%lO!)U_!)wVPZOY!*^YZ%lZr!*^rs!+Os;'S!*^;'S;=`!,R<%lO!*^_!*cVPZOY!)UYZ%lZr!)Urs!)rs;'S!)U;'S;=`!*x<%lO!)U_!*{P;=`<%l!)U_!+TVPZOY!*^YZ%lZr!*^rs!+js;'S!*^;'S;=`!,R<%lO!*^Z!+oSPZOY!+jZ;'S!+j;'S;=`!+{<%lO!+jZ!,OP;=`<%l!+j_!,UP;=`<%l!*^T!,`u&WS_POY%QYZ%lZr%Qrs%qs!O%Q!O!P!.s!P!Q%Q!Q![!0P![!d%Q!d!e!3Z!e!f%Q!f!gJT!g!hJq!h!iJT!i!n%Q!n!o!1u!o!q%Q!q!r!5X!r!z%Q!z!{!7P!{#R%Q#R#S!2c#S#U%Q#U#V!3Z#V#W%Q#W#XJT#X#YJq#Y#ZJT#Z#`%Q#`#a!1u#a#c%Q#c#d!5X#d#l%Q#l#m!7P#m;'S%Q;'S;=`&s<%lO%QT!.za&WS`POY%QYZ%lZr%Qrs%qs!Q%Q!Q![Hq![!f%Q!f!gJT!g!hJq!h!iJT!i#W%Q#W#XJT#X#YJq#Y#ZJT#Z;'S%Q;'S;=`&s<%lO%QT!0Wi&WS_POY%QYZ%lZr%Qrs%qs!O%Q!O!P!.s!P!Q%Q!Q![!0P![!f%Q!f!gJT!g!hJq!h!iJT!i!n%Q!n!o!1u!o#R%Q#R#S!2c#S#W%Q#W#XJT#X#YJq#Y#ZJT#Z#`%Q#`#a!1u#a;'S%Q;'S;=`&s<%lO%QT!1|V&WS_POY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT!2hZ&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![!0P![#R%Q#R#S!2c#S;'S%Q;'S;=`&s<%lO%QT!3`Y&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q!R!4O!R!S!4O!S;'S%Q;'S;=`&s<%lO%QT!4V`&WS_POY%QYZ%lZr%Qrs%qs!Q%Q!Q!R!4O!R!S!4O!S!n%Q!n!o!1u!o#R%Q#R#S!3Z#S#`%Q#`#a!1u#a;'S%Q;'S;=`&s<%lO%QT!5^X&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q!Y!5y!Y;'S%Q;'S;=`&s<%lO%QT!6Q_&WS_POY%QYZ%lZr%Qrs%qs!Q%Q!Q!Y!5y!Y!n%Q!n!o!1u!o#R%Q#R#S!5X#S#`%Q#`#a!1u#a;'S%Q;'S;=`&s<%lO%QT!7U_&WSOY%QYZ%lZr%Qrs%qs!O%Q!O!P!8T!P!Q%Q!Q![!:c![!c%Q!c!i!:c!i#T%Q#T#Z!:c#Z;'S%Q;'S;=`&s<%lO%QT!8Y]&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![!9R![!c%Q!c!i!9R!i#T%Q#T#Z!9R#Z;'S%Q;'S;=`&s<%lO%QT!9Wc&WSOY%QYZ%lZr%Qrs%qs!Q%Q!Q![!9R![!c%Q!c!i!9R!i!r%Q!r!sJq!s#R%Q#R#S!8T#S#T%Q#T#Z!9R#Z#d%Q#d#eJq#e;'S%Q;'S;=`&s<%lO%QT!:ji&WS_POY%QYZ%lZr%Qrs%qs!O%Q!O!P!hX#oR&WSOY%QYZ%lZr%Qrs%qs![%Q![!]!?T!];'S%Q;'S;=`&s<%lO%QV!?[V&tR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV!?xV!PR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_!@fY&]Z&WSOY%QYZ%lZr%Qrs%qs!^%Q!^!_!AU!_!`+p!`;'S%Q;'S;=`&s<%lO%QU!A]X#hQ&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QV!BPX!bR&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`+p!`;'S%Q;'S;=`&s<%lO%QV!BsY&[R&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`+p!`!a!Cc!a;'S%Q;'S;=`&s<%lO%QU!CjY#hQ&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`!a!AU!a;'S%Q;'S;=`&s<%lO%Q_!DcV&`X#nQ&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_!EPX%{Z&WSOY%QYZ%lZr%Qrs%qs#]%Q#]#^!El#^;'S%Q;'S;=`&s<%lO%QV!EqX&WSOY%QYZ%lZr%Qrs%qs#b%Q#b#c!F^#c;'S%Q;'S;=`&s<%lO%QV!FcX&WSOY%QYZ%lZr%Qrs%qs#h%Q#h#i!GO#i;'S%Q;'S;=`&s<%lO%QV!GTX&WSOY%QYZ%lZr%Qrs%qs#X%Q#X#Y!Gp#Y;'S%Q;'S;=`&s<%lO%QV!GuX&WSOY%QYZ%lZr%Qrs%qs#f%Q#f#g!Hb#g;'S%Q;'S;=`&s<%lO%QV!HgX&WSOY%QYZ%lZr%Qrs%qs#Y%Q#Y#Z!IS#Z;'S%Q;'S;=`&s<%lO%QV!IXX&WSOY%QYZ%lZr%Qrs%qs#T%Q#T#U!It#U;'S%Q;'S;=`&s<%lO%QV!IyX&WSOY%QYZ%lZr%Qrs%qs#V%Q#V#W!Jf#W;'S%Q;'S;=`&s<%lO%QV!JkX&WSOY%QYZ%lZr%Qrs%qs#X%Q#X#Y!KW#Y;'S%Q;'S;=`&s<%lO%QV!K_V&rR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_!K{a&PZ&WSOY%QYZ%lZr%Qrs%qst%Qtu!Ktu!Q%Q!Q![!Kt![!c%Q!c!}!Kt!}#R%Q#R#S!Kt#S#T%Q#T#o!Kt#o;'S%Q;'S;=`&s<%lO%Q_!MXVuZ&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV!MuVsR&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QU!NcX#cQ&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`;'S%Q;'S;=`&s<%lO%QV# VV}R&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q_# uZ&|X#cQ&WSOY%QYZ%lZr%Qrs%qs!_%Q!_!`6e!`#p%Q#p#q#!h#q;'S%Q;'S;=`&s<%lO%QU#!oV#dQ&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QV##]V|R&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%QT##yV#tP&WSOY%QYZ%lZr%Qrs%qs;'S%Q;'S;=`&s<%lO%Q",tokenizers:[0,1,2,3],topRules:{Program:[0,3]},dynamicPrecedences:{27:1,230:-1,241:-1},specialized:[{term:229,get:O=>r[O]||-1}],tokenPrec:7067});var s=P(24104);const X=s.LRLanguage.define({name:"java",parser:e.configure({props:[s.indentNodeProp.add({IfStatement:(0,s.continuedIndent)({except:/^\s*({|else\b)/}),TryStatement:(0,s.continuedIndent)({except:/^\s*({|catch|finally)\b/}),LabeledStatement:s.flatIndent,SwitchBlock:O=>{let Q=O.textAfter,P=/^\s*\}/.test(Q),$=/^\s*(case|default)\b/.test(Q);return O.baseIndent+(P?0:$?1:2)*O.unit},Block:(0,s.delimitedIndent)({closing:"}"}),BlockComment:()=>null,Statement:(0,s.continuedIndent)({except:/^{/})}),s.foldNodeProp.add({["Block SwitchBlock ClassBody ElementValueArrayInitializer ModuleBody EnumBody "+"ConstructorBody InterfaceBody ArrayInitializer"]:s.foldInside,BlockComment(O){return{from:O.from+2,to:O.to-2}}})]}),languageData:{commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\})$/}});function t(){return new s.LanguageSupport(X)}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/9653.d93c93e084cd5e93cd2d.js b/bootcamp/share/jupyter/lab/static/9653.d93c93e084cd5e93cd2d.js new file mode 100644 index 0000000..96c5d83 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/9653.d93c93e084cd5e93cd2d.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9653],{79653:(t,e,a)=>{a.r(e);a.d(e,{Tag:()=>s,classHighlighter:()=>I,getStyleTags:()=>b,highlightTree:()=>u,styleTags:()=>g,tagHighlighter:()=>p,tags:()=>E});var i=a(73265);var r=a.n(i);let o=0;class s{constructor(t,e,a){this.set=t;this.base=e;this.modified=a;this.id=o++}static define(t){if(t===null||t===void 0?void 0:t.base)throw new Error("Can not derive from a modified tag");let e=new s([],null,[]);e.set.push(e);if(t)for(let a of t.set)e.set.push(a);return e}static defineModifier(){let t=new l;return e=>{if(e.modified.indexOf(t)>-1)return e;return l.get(e.base||e,e.modified.concat(t).sort(((t,e)=>t.id-e.id)))}}}let n=0;class l{constructor(){this.instances=[];this.id=n++}static get(t,e){if(!e.length)return t;let a=e[0].instances.find((a=>a.base==t&&c(e,a.modified)));if(a)return a;let i=[],r=new s(i,t,e);for(let s of e)s.instances.push(r);let o=h(e);for(let s of t.set)if(!s.modified.length)for(let t of o)i.push(l.get(s,t));return r}}function c(t,e){return t.length==e.length&&t.every(((t,a)=>t==e[a]))}function h(t){let e=[[]];for(let a=0;ae.length-t.length))}function g(t){let e=Object.create(null);for(let a in t){let i=t[a];if(!Array.isArray(i))i=[i];for(let t of a.split(" "))if(t){let a=[],r=2,o=t;for(let e=0;;){if(o=="..."&&e>0&&e+3==t.length){r=1;break}let i=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!i)throw new RangeError("Invalid path: "+t);a.push(i[0]=="*"?"":i[0][0]=='"'?JSON.parse(i[0]):i[0]);e+=i[0].length;if(e==t.length)break;let s=t[e++];if(e==t.length&&s=="!"){r=0;break}if(s!="/")throw new RangeError("Invalid path: "+t);o=t.slice(e)}let s=a.length-1,n=a[s];if(!n)throw new RangeError("Invalid path: "+t);let l=new d(i,r,s>0?a.slice(0,s):null);e[n]=l.sort(e[n])}}return f.add(e)}const f=new i.NodeProp;class d{constructor(t,e,a,i){this.tags=t;this.mode=e;this.context=a;this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){if(!t||t.depth{let e=r;for(let i of t){for(let t of i.set){let i=a[t.id];if(i){e=e?e+" "+i:i;break}}}return e},scope:i}}function m(t,e){let a=null;for(let i of t){let t=i.style(e);if(t)a=a?a+" "+t:t}return a}function u(t,e,a,i=0,r=t.length){let o=new k(i,Array.isArray(e)?e:[e],a);o.highlightRange(t.cursor(),i,r,"",o.highlighters);o.flush(r)}class k{constructor(t,e,a){this.at=t;this.highlighters=e;this.span=a;this.class=""}startSpan(t,e){if(e!=this.class){this.flush(t);if(t>this.at)this.at=t;this.class=e}}flush(t){if(t>this.at&&this.class)this.span(this.at,t,this.class)}highlightRange(t,e,a,r,o){let{type:s,from:n,to:l}=t;if(n>=a||l<=e)return;if(s.isTop)o=this.highlighters.filter((t=>!t.scope||t.scope(s)));let c=r;let h=b(t)||d.empty;let g=m(o,h.tags);if(g){if(c)c+=" ";c+=g;if(h.mode==1)r+=(r?" ":"")+g}this.startSpan(t.from,c);if(h.opaque)return;let f=t.tree&&t.tree.prop(i.NodeProp.mounted);if(f&&f.overlay){let i=t.node.enter(f.overlay[0].from+n,1);let s=this.highlighters.filter((t=>!t.scope||t.scope(f.tree.type)));let h=t.firstChild();for(let g=0,d=n;;g++){let p=g=m||!t.nextSibling())break}}if(!p||m>a)break;d=p.to+n;if(d>e){this.highlightRange(i.cursor(),Math.max(e,p.from+n),Math.min(a,d),r,s);this.startSpan(d,c)}}if(h)t.parent()}else if(t.firstChild()){do{if(t.to<=e)continue;if(t.from>=a)break;this.highlightRange(t,e,a,r,o);this.startSpan(Math.min(a,t.to),c)}while(t.nextSibling());t.parent()}}}function b(t){let e=t.type.prop(f);while(e&&e.context&&!t.matchContext(e.context))e=e.next;return e||null}const y=s.define;const N=y(),w=y(),v=y(w),x=y(w),M=y(),O=y(M),S=y(M),C=y(),R=y(C),A=y(),_=y(),T=y(),j=y(T),q=y();const E={comment:N,lineComment:y(N),blockComment:y(N),docComment:y(N),name:w,variableName:y(w),typeName:v,tagName:y(v),propertyName:x,attributeName:y(x),className:y(w),labelName:y(w),namespace:y(w),macroName:y(w),literal:M,string:O,docString:y(O),character:y(O),attributeValue:y(O),number:S,integer:y(S),float:y(S),bool:y(M),regexp:y(M),escape:y(M),color:y(M),url:y(M),keyword:A,self:y(A),null:y(A),atom:y(A),unit:y(A),modifier:y(A),operatorKeyword:y(A),controlKeyword:y(A),definitionKeyword:y(A),moduleKeyword:y(A),operator:_,derefOperator:y(_),arithmeticOperator:y(_),logicOperator:y(_),bitwiseOperator:y(_),compareOperator:y(_),updateOperator:y(_),definitionOperator:y(_),typeOperator:y(_),controlOperator:y(_),punctuation:T,separator:y(T),bracket:j,angleBracket:y(j),squareBracket:y(j),paren:y(j),brace:y(j),content:C,heading:R,heading1:y(R),heading2:y(R),heading3:y(R),heading4:y(R),heading5:y(R),heading6:y(R),contentSeparator:y(C),list:y(C),quote:y(C),emphasis:y(C),strong:y(C),link:y(C),monospace:y(C),strikethrough:y(C),inserted:y(),deleted:y(),changed:y(),invalid:y(),meta:q,documentMeta:y(q),annotation:y(q),processingInstruction:y(q),definition:s.defineModifier(),constant:s.defineModifier(),function:s.defineModifier(),standard:s.defineModifier(),local:s.defineModifier(),special:s.defineModifier()};const I=p([{tag:E.link,class:"tok-link"},{tag:E.heading,class:"tok-heading"},{tag:E.emphasis,class:"tok-emphasis"},{tag:E.strong,class:"tok-strong"},{tag:E.keyword,class:"tok-keyword"},{tag:E.atom,class:"tok-atom"},{tag:E.bool,class:"tok-bool"},{tag:E.url,class:"tok-url"},{tag:E.labelName,class:"tok-labelName"},{tag:E.inserted,class:"tok-inserted"},{tag:E.deleted,class:"tok-deleted"},{tag:E.literal,class:"tok-literal"},{tag:E.string,class:"tok-string"},{tag:E.number,class:"tok-number"},{tag:[E.regexp,E.escape,E.special(E.string)],class:"tok-string2"},{tag:E.variableName,class:"tok-variableName"},{tag:E.local(E.variableName),class:"tok-variableName tok-local"},{tag:E.definition(E.variableName),class:"tok-variableName tok-definition"},{tag:E.special(E.variableName),class:"tok-variableName2"},{tag:E.definition(E.propertyName),class:"tok-propertyName tok-definition"},{tag:E.typeName,class:"tok-typeName"},{tag:E.namespace,class:"tok-namespace"},{tag:E.className,class:"tok-className"},{tag:E.macroName,class:"tok-macroName"},{tag:E.propertyName,class:"tok-propertyName"},{tag:E.operator,class:"tok-operator"},{tag:E.comment,class:"tok-comment"},{tag:E.meta,class:"tok-meta"},{tag:E.invalid,class:"tok-invalid"},{tag:E.punctuation,class:"tok-punctuation"}])}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/9674eb1bd55047179038.svg b/bootcamp/share/jupyter/lab/static/9674eb1bd55047179038.svg new file mode 100644 index 0000000..00296e9 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/9674eb1bd55047179038.svg @@ -0,0 +1,5034 @@ + + + + +Created by FontForge 20201107 at Wed Aug 4 12:25:29 2021 + By Robert Madole +Copyright (c) Font Awesome + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bootcamp/share/jupyter/lab/static/9738.c0234a1f7f6ac262f560.js b/bootcamp/share/jupyter/lab/static/9738.c0234a1f7f6ac262f560.js new file mode 100644 index 0000000..e2e5cf5 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/9738.c0234a1f7f6ac262f560.js @@ -0,0 +1 @@ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9738],{39738:(e,t,r)=>{r.r(t);r.d(t,{elm:()=>g});function n(e,t,r){t(r);return r(e,t)}var i=/[a-z]/;var a=/[A-Z]/;var u=/[a-zA-Z0-9_]/;var o=/[0-9]/;var f=/[0-9A-Fa-f]/;var l=/[-&*+.\\/<>=?^|:]/;var s=/[(),[\]{}]/;var c=/[ \v\f]/;function p(){return function(e,t){if(e.eatWhile(c)){return null}var r=e.next();if(s.test(r)){return r==="{"&&e.eat("-")?n(e,t,h(1)):r==="["&&e.match("glsl|")?n(e,t,w):"builtin"}if(r==="'"){return n(e,t,m)}if(r==='"'){return e.eat('"')?e.eat('"')?n(e,t,v):"string":n(e,t,k)}if(a.test(r)){e.eatWhile(u);return"type"}if(i.test(r)){var p=e.pos===1;e.eatWhile(u);return p?"def":"variable"}if(o.test(r)){if(r==="0"){if(e.eat(/[xX]/)){e.eatWhile(f);return"number"}}else{e.eatWhile(o)}if(e.eat(".")){e.eatWhile(o)}if(e.eat(/[eE]/)){e.eat(/[-+]/);e.eatWhile(o)}return"number"}if(l.test(r)){if(r==="-"&&e.eat("-")){e.skipToEnd();return"comment"}e.eatWhile(l);return"keyword"}if(r==="_"){return"keyword"}return"error"}}function h(e){if(e==0){return p()}return function(t,r){while(!t.eol()){var n=t.next();if(n=="{"&&t.eat("-")){++e}else if(n=="-"&&t.eat("}")){--e;if(e===0){r(p());return"comment"}}}r(h(e));return"comment"}}function v(e,t){while(!e.eol()){var r=e.next();if(r==='"'&&e.eat('"')&&e.eat('"')){t(p());return"string"}}return"string"}function k(e,t){while(e.skipTo('\\"')){e.next();e.next()}if(e.skipTo('"')){e.next();t(p());return"string"}e.skipToEnd();t(p());return"error"}function m(e,t){while(e.skipTo("\\'")){e.next();e.next()}if(e.skipTo("'")){e.next();t(p());return"string"}e.skipToEnd();t(p());return"error"}function w(e,t){while(!e.eol()){var r=e.next();if(r==="|"&&e.eat("]")){t(p());return"string"}}return"string"}var x={case:1,of:1,as:1,if:1,then:1,else:1,let:1,in:1,type:1,alias:1,module:1,where:1,import:1,exposing:1,port:1};const g={name:"elm",startState:function(){return{f:p()}},copyState:function(e){return{f:e.f}},token:function(e,t){var r=t.f(e,(function(e){t.f=e}));var n=e.current();return x.hasOwnProperty(n)?"keyword":r},languageData:{commentTokens:{line:"--"}}}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/9747.6dd327f4928c6989ea8a.js b/bootcamp/share/jupyter/lab/static/9747.6dd327f4928c6989ea8a.js new file mode 100644 index 0000000..acf79e3 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/9747.6dd327f4928c6989ea8a.js @@ -0,0 +1,2 @@ +/*! For license information please see 9747.6dd327f4928c6989ea8a.js.LICENSE.txt */ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9747],{59747:(e,t,n)=>{n.r(t);n.d(t,{tlv:()=>d,verilog:()=>a});function i(e){var t=e.statementIndentUnit,n=e.dontAlignCalls,i=e.noIndentKeywords||[],a=e.multiLineStrings,r=e.hooks||{};function l(e){var t={},n=e.split(" ");for(var i=0;i=0)return l}var o=e.context,s=i&&i.charAt(0);if(o.type=="statement"&&s=="}")o=o.prev;var c=false;var f=i.match(h);if(f)c=B(f[0],o.type);if(o.type=="statement")return o.indented+(s=="{"?0:t||a.unit);else if(g.test(o.type)&&o.align&&!n)return o.column+(c?0:1);else if(o.type==")"&&!c)return o.indented+(t||a.unit);else return o.indented+(c?0:a.unit)},languageData:{indentOnInput:q(),commentTokens:{line:"//",block:{open:"/*",close:"*/"}}}}}const a=i({});var r={"|":"link",">":"property",$:"variable",$$:"variable","?$":"qualifier","?*":"qualifier","-":"contentSeparator","/":"property","/-":"property","@":"variableName.special","@-":"variableName.special","@++":"variableName.special","@+=":"variableName.special","@+=-":"variableName.special","@--":"variableName.special","@-=":"variableName.special","%+":"tag","%-":"tag","%":"tag",">>":"tag","<<":"tag","<>":"tag","#":"tag","^":"attribute","^^":"attribute","^!":"attribute","*":"variable","**":"variable","\\":"keyword",'"':"comment"};var l={"/":"beh-hier",">":"beh-hier","-":"phys-hier","|":"pipe","?":"when","@":"stage","\\":"keyword"};var o=3;var s=false;var c=/^([~!@#\$%\^&\*-\+=\?\/\\\|'"<>]+)([\d\w_]*)/;var f=/^[! ] */;var u=/^\/[\/\*]/;const d=i({hooks:{electricInput:false,token:function(e,t){var n=undefined;var i;if(e.sol()&&!t.tlvInBlockComment){if(e.peek()=="\\"){n="def";e.skipToEnd();if(e.string.match(/\\SV/)){t.tlvCodeActive=false}else if(e.string.match(/\\TLV/)){t.tlvCodeActive=true}}if(t.tlvCodeActive&&e.pos==0&&t.indented==0&&(i=e.match(f,false))){t.indented=i[0].length}var a=t.indented;var d=a/o;if(d<=t.tlvIndentationStyle.length){var m=e.string.length==a;var p=d*o;if(p0)){t.tlvIndentationStyle[d]=l[h];if(s){t.statementComment=false}d++}}}if(!m){while(t.tlvIndentationStyle.length>d){t.tlvIndentationStyle.pop()}}}t.tlvNextIndent=a}if(t.tlvCodeActive){var g=false;if(s){g=e.peek()!=" "&&n===undefined&&!t.tlvInBlockComment&&e.column()==t.tlvIndentationStyle.length*o;if(g){if(t.statementComment){g=false}t.statementComment=e.match(u,false)}}var i;if(n!==undefined){}else if(t.tlvInBlockComment){if(e.match(/^.*?\*\//)){t.tlvInBlockComment=false;if(s&&!e.eol()){t.statementComment=false}}else{e.skipToEnd()}n="comment"}else if((i=e.match(u))&&!t.tlvInBlockComment){if(i[0]=="//"){e.skipToEnd()}else{t.tlvInBlockComment=true}n="comment"}else if(i=e.match(c)){var k=i[1];var y=i[2];if(r.hasOwnProperty(k)&&(y.length>0||e.eol())){n=r[k]}else{e.backUp(e.current().length-1)}}else if(e.match(/^\t+/)){n="invalid"}else if(e.match(/^[\[\]{}\(\);\:]+/)){n="meta"}else if(i=e.match(/^[mM]4([\+_])?[\w\d_]*/)){n=i[1]=="+"?"keyword.special":"keyword"}else if(e.match(/^ +/)){if(e.eol()){n="error"}}else if(e.match(/^[\w\d_]+/)){n="number"}else{e.next()}}else{if(e.match(/^[mM]4([\w\d_]*)/)){n="keyword"}}return n},indent:function(e){return e.tlvCodeActive==true?e.tlvNextIndent:-1},startState:function(e){e.tlvIndentationStyle=[];e.tlvCodeActive=true;e.tlvNextIndent=-1;e.tlvInBlockComment=false;if(s){e.statementComment=false}}}})}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/9747.6dd327f4928c6989ea8a.js.LICENSE.txt b/bootcamp/share/jupyter/lab/static/9747.6dd327f4928c6989ea8a.js.LICENSE.txt new file mode 100644 index 0000000..ebc2d13 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/9747.6dd327f4928c6989ea8a.js.LICENSE.txt @@ -0,0 +1 @@ +//!stream.match(tlvCommentMatch, false) && // not comment start diff --git a/bootcamp/share/jupyter/lab/static/9826.406d2a71dc45995bc549.js b/bootcamp/share/jupyter/lab/static/9826.406d2a71dc45995bc549.js new file mode 100644 index 0000000..07bbb94 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/9826.406d2a71dc45995bc549.js @@ -0,0 +1,2 @@ +/*! For license information please see 9826.406d2a71dc45995bc549.js.LICENSE.txt */ +"use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9826],{89826:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AllPackages=void 0;r(19890);r(13646);r(73797);r(49799);r(27535);r(9146);r(17151);r(2518);r(34801);r(30813);r(30241);r(76083);r(28361);r(53293);r(87542);r(31334);r(96295);r(66910);r(57987);r(75259);r(56379);r(57434);r(25112);r(8163);r(75514);r(60816);r(33644);r(32020);r(7646);r(77760);r(36240);r(19471);r(54305);if(typeof MathJax!=="undefined"&&MathJax.loader){MathJax.loader.preLoad("[tex]/action","[tex]/ams","[tex]/amscd","[tex]/bbox","[tex]/boldsymbol","[tex]/braket","[tex]/bussproofs","[tex]/cancel","[tex]/cases","[tex]/centernot","[tex]/color","[tex]/colorv2","[tex]/colortbl","[tex]/empheq","[tex]/enclose","[tex]/extpfeil","[tex]/gensymb","[tex]/html","[tex]/mathtools","[tex]/mhchem","[tex]/newcommand","[tex]/noerrors","[tex]/noundefined","[tex]/physics","[tex]/upgreek","[tex]/unicode","[tex]/verb","[tex]/configmacros","[tex]/tagformat","[tex]/textcomp","[tex]/textmacros","[tex]/setoptions")}t.AllPackages=["base","action","ams","amscd","bbox","boldsymbol","braket","bussproofs","cancel","cases","centernot","color","colortbl","empheq","enclose","extpfeil","gensymb","html","mathtools","mhchem","newcommand","noerrors","noundefined","upgreek","unicode","verb","configmacros","tagformat","textcomp","textmacros"]},13646:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.ActionConfiguration=t.ActionMethods=void 0;var n=r(23644);var o=a(r(42880));var i=r(92715);var s=a(r(40871));t.ActionMethods={};t.ActionMethods.Macro=s.default.Macro;t.ActionMethods.Toggle=function(e,t){var r=[];var a;while((a=e.GetArgument(t))!=="\\endtoggle"){r.push(new o.default(a,e.stack.env,e.configuration).mml())}e.Push(e.create("node","maction",r,{actiontype:"toggle"}))};t.ActionMethods.Mathtip=function(e,t){var r=e.ParseArg(t);var a=e.ParseArg(t);e.Push(e.create("node","maction",[r,a],{actiontype:"tooltip"}))};new i.CommandMap("action-macros",{toggle:"Toggle",mathtip:"Mathtip",texttip:["Macro","\\mathtip{#1}{\\text{#2}}",2]},t.ActionMethods);t.ActionConfiguration=n.Configuration.create("action",{handler:{macro:["action-macros"]}})},73797:function(e,t,r){var a=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();var n;Object.defineProperty(t,"__esModule",{value:true});t.AmsConfiguration=t.AmsTags=void 0;var o=r(23644);var i=r(30354);var s=r(56711);var l=r(42828);r(83280);var u=r(92715);var c=function(e){a(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t}(s.AbstractTags);t.AmsTags=c;var f=function(e){new u.CommandMap(l.NEW_OPS,{},{});e.append(o.Configuration.local({handler:{macro:[l.NEW_OPS]},priority:-1}))};t.AmsConfiguration=o.Configuration.create("ams",{handler:{character:["AMSmath-operatorLetter"],delimiter:["AMSsymbols-delimiter","AMSmath-delimiter"],macro:["AMSsymbols-mathchar0mi","AMSsymbols-mathchar0mo","AMSsymbols-delimiter","AMSsymbols-macros","AMSmath-mathchar0mo","AMSmath-macros","AMSmath-delimiter"],environment:["AMSmath-environment"]},items:(n={},n[i.MultlineItem.prototype.kind]=i.MultlineItem,n[i.FlalignItem.prototype.kind]=i.FlalignItem,n),tags:{ams:c},init:f,config:function(e,t){if(t.parseOptions.options.multlineWidth){t.parseOptions.options.ams.multlineWidth=t.parseOptions.options.multlineWidth}delete t.parseOptions.options.multlineWidth},options:{multlineWidth:"",ams:{multlineWidth:"100%",multlineIndent:"1em"}}})},30354:function(e,t,r){var a=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();var n=this&&this.__assign||function(){n=Object.assign||function(e){for(var t,r=1,a=arguments.length;rt){throw new u.default("XalignOverflow","Extra %1 in row of %2","&",this.name)}};t.prototype.EndRow=function(){var t;var r=this.row;var a=this.getProperty("xalignat");while(r.lengththis.maxrow){this.maxrow=this.row.length}e.prototype.EndRow.call(this);var o=this.table[this.table.length-1];if(this.getProperty("zeroWidthLabel")&&o.isKind("mlabeledtr")){var i=l.default.getChildren(o)[0];var s=this.factory.configuration.options["tagSide"];var u=n({width:0},s==="right"?{lspace:"-1width"}:{});var c=this.create("node","mpadded",l.default.getChildren(i),u);i.setChildren([c])}};t.prototype.EndTable=function(){e.prototype.EndTable.call(this);if(this.center){if(this.maxrow<=2){var t=this.arraydef;delete t.width;delete this.global.indentalign}}};return t}(i.EqnArrayItem);t.FlalignItem=d},83280:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){if(a===undefined)a=r;var n=Object.getOwnPropertyDescriptor(t,r);if(!n||("get"in n?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,a,n)}:function(e,t,r,a){if(a===undefined)a=r;e[a]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))a(t,e,r);n(t,e);return t};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var s=r(42828);var l=o(r(92715));var u=r(48948);var c=i(r(96004));var f=i(r(3378));var d=r(18426);var p=r(77130);new l.CharacterMap("AMSmath-mathchar0mo",c.default.mathchar0mo,{iiiint:["⨌",{texClass:d.TEXCLASS.OP}]});new l.RegExpMap("AMSmath-operatorLetter",s.AmsMethods.operatorLetter,/[-*]/i);new l.CommandMap("AMSmath-macros",{mathring:["Accent","02DA"],nobreakspace:"Tilde",negmedspace:["Spacer",p.MATHSPACE.negativemediummathspace],negthickspace:["Spacer",p.MATHSPACE.negativethickmathspace],idotsint:["MultiIntegral","\\int\\cdots\\int"],dddot:["Accent","20DB"],ddddot:["Accent","20DC"],sideset:"SideSet",boxed:["Macro","\\fbox{$\\displaystyle{#1}$}",1],tag:"HandleTag",notag:"HandleNoTag",eqref:["HandleRef",true],substack:["Macro","\\begin{subarray}{c}#1\\end{subarray}",1],injlim:["NamedOp","inj lim"],projlim:["NamedOp","proj lim"],varliminf:["Macro","\\mathop{\\underline{\\mmlToken{mi}{lim}}}"],varlimsup:["Macro","\\mathop{\\overline{\\mmlToken{mi}{lim}}}"],varinjlim:["Macro","\\mathop{\\underrightarrow{\\mmlToken{mi}{lim}}}"],varprojlim:["Macro","\\mathop{\\underleftarrow{\\mmlToken{mi}{lim}}}"],DeclareMathOperator:"HandleDeclareOp",operatorname:"HandleOperatorName",genfrac:"Genfrac",frac:["Genfrac","","","",""],tfrac:["Genfrac","","","","1"],dfrac:["Genfrac","","","","0"],binom:["Genfrac","(",")","0",""],tbinom:["Genfrac","(",")","0","1"],dbinom:["Genfrac","(",")","0","0"],cfrac:"CFrac",shoveleft:["HandleShove",u.TexConstant.Align.LEFT],shoveright:["HandleShove",u.TexConstant.Align.RIGHT],xrightarrow:["xArrow",8594,5,10],xleftarrow:["xArrow",8592,10,5]},s.AmsMethods);new l.EnvironmentMap("AMSmath-environment",c.default.environment,{"equation*":["Equation",null,false],"eqnarray*":["EqnArray",null,false,true,"rcl",f.default.cols(0,p.MATHSPACE.thickmathspace),".5em"],align:["EqnArray",null,true,true,"rl",f.default.cols(0,2)],"align*":["EqnArray",null,false,true,"rl",f.default.cols(0,2)],multline:["Multline",null,true],"multline*":["Multline",null,false],split:["EqnArray",null,false,false,"rl",f.default.cols(0)],gather:["EqnArray",null,true,true,"c"],"gather*":["EqnArray",null,false,true,"c"],alignat:["AlignAt",null,true,true],"alignat*":["AlignAt",null,false,true],alignedat:["AlignAt",null,false,false],aligned:["AmsEqnArray",null,null,null,"rl",f.default.cols(0,2),".5em","D"],gathered:["AmsEqnArray",null,null,null,"c",null,".5em","D"],xalignat:["XalignAt",null,true,true],"xalignat*":["XalignAt",null,false,true],xxalignat:["XalignAt",null,false,false],flalign:["FlalignArray",null,true,false,true,"rlc","auto auto fit"],"flalign*":["FlalignArray",null,false,false,true,"rlc","auto auto fit"],subarray:["Array",null,null,null,null,f.default.cols(0),"0.1em","S",1],smallmatrix:["Array",null,null,null,"c",f.default.cols(1/3),".2em","S",1],matrix:["Array",null,null,null,"c"],pmatrix:["Array",null,"(",")","c"],bmatrix:["Array",null,"[","]","c"],Bmatrix:["Array",null,"\\{","\\}","c"],vmatrix:["Array",null,"\\vert","\\vert","c"],Vmatrix:["Array",null,"\\Vert","\\Vert","c"],cases:["Array",null,"\\{",".","ll",null,".2em","T"]},s.AmsMethods);new l.DelimiterMap("AMSmath-delimiter",c.default.delimiter,{"\\lvert":["|",{texClass:d.TEXCLASS.OPEN}],"\\rvert":["|",{texClass:d.TEXCLASS.CLOSE}],"\\lVert":["‖",{texClass:d.TEXCLASS.OPEN}],"\\rVert":["‖",{texClass:d.TEXCLASS.CLOSE}]});new l.CharacterMap("AMSsymbols-mathchar0mi",c.default.mathchar0mi,{digamma:"ϝ",varkappa:"ϰ",varGamma:["Γ",{mathvariant:u.TexConstant.Variant.ITALIC}],varDelta:["Δ",{mathvariant:u.TexConstant.Variant.ITALIC}],varTheta:["Θ",{mathvariant:u.TexConstant.Variant.ITALIC}],varLambda:["Λ",{mathvariant:u.TexConstant.Variant.ITALIC}],varXi:["Ξ",{mathvariant:u.TexConstant.Variant.ITALIC}],varPi:["Π",{mathvariant:u.TexConstant.Variant.ITALIC}],varSigma:["Σ",{mathvariant:u.TexConstant.Variant.ITALIC}],varUpsilon:["Υ",{mathvariant:u.TexConstant.Variant.ITALIC}],varPhi:["Φ",{mathvariant:u.TexConstant.Variant.ITALIC}],varPsi:["Ψ",{mathvariant:u.TexConstant.Variant.ITALIC}],varOmega:["Ω",{mathvariant:u.TexConstant.Variant.ITALIC}],beth:"ℶ",gimel:"ℷ",daleth:"ℸ",backprime:["‵",{variantForm:true}],hslash:"ℏ",varnothing:["∅",{variantForm:true}],blacktriangle:"▴",triangledown:["▽",{variantForm:true}],blacktriangledown:"▾",square:"◻",Box:"◻",blacksquare:"◼",lozenge:"◊",Diamond:"◊",blacklozenge:"⧫",circledS:["Ⓢ",{mathvariant:u.TexConstant.Variant.NORMAL}],bigstar:"★",sphericalangle:"∢",measuredangle:"∡",nexists:"∄",complement:"∁",mho:"℧",eth:["ð",{mathvariant:u.TexConstant.Variant.NORMAL}],Finv:"Ⅎ",diagup:"╱",Game:"⅁",diagdown:"╲",Bbbk:["k",{mathvariant:u.TexConstant.Variant.DOUBLESTRUCK}],yen:"¥",circledR:"®",checkmark:"✓",maltese:"✠"});new l.CharacterMap("AMSsymbols-mathchar0mo",c.default.mathchar0mo,{dotplus:"∔",ltimes:"⋉",smallsetminus:["∖",{variantForm:true}],rtimes:"⋊",Cap:"⋒",doublecap:"⋒",leftthreetimes:"⋋",Cup:"⋓",doublecup:"⋓",rightthreetimes:"⋌",barwedge:"⊼",curlywedge:"⋏",veebar:"⊻",curlyvee:"⋎",doublebarwedge:"⩞",boxminus:"⊟",circleddash:"⊝",boxtimes:"⊠",circledast:"⊛",boxdot:"⊡",circledcirc:"⊚",boxplus:"⊞",centerdot:["⋅",{variantForm:true}],divideontimes:"⋇",intercal:"⊺",leqq:"≦",geqq:"≧",leqslant:"⩽",geqslant:"⩾",eqslantless:"⪕",eqslantgtr:"⪖",lesssim:"≲",gtrsim:"≳",lessapprox:"⪅",gtrapprox:"⪆",approxeq:"≊",lessdot:"⋖",gtrdot:"⋗",lll:"⋘",llless:"⋘",ggg:"⋙",gggtr:"⋙",lessgtr:"≶",gtrless:"≷",lesseqgtr:"⋚",gtreqless:"⋛",lesseqqgtr:"⪋",gtreqqless:"⪌",doteqdot:"≑",Doteq:"≑",eqcirc:"≖",risingdotseq:"≓",circeq:"≗",fallingdotseq:"≒",triangleq:"≜",backsim:"∽",thicksim:["∼",{variantForm:true}],backsimeq:"⋍",thickapprox:["≈",{variantForm:true}],subseteqq:"⫅",supseteqq:"⫆",Subset:"⋐",Supset:"⋑",sqsubset:"⊏",sqsupset:"⊐",preccurlyeq:"≼",succcurlyeq:"≽",curlyeqprec:"⋞",curlyeqsucc:"⋟",precsim:"≾",succsim:"≿",precapprox:"⪷",succapprox:"⪸",vartriangleleft:"⊲",lhd:"⊲",vartriangleright:"⊳",rhd:"⊳",trianglelefteq:"⊴",unlhd:"⊴",trianglerighteq:"⊵",unrhd:"⊵",vDash:["⊨",{variantForm:true}],Vdash:"⊩",Vvdash:"⊪",smallsmile:["⌣",{variantForm:true}],shortmid:["∣",{variantForm:true}],smallfrown:["⌢",{variantForm:true}],shortparallel:["∥",{variantForm:true}],bumpeq:"≏",between:"≬",Bumpeq:"≎",pitchfork:"⋔",varpropto:["∝",{variantForm:true}],backepsilon:"∍",blacktriangleleft:"◂",blacktriangleright:"▸",therefore:"∴",because:"∵",eqsim:"≂",vartriangle:["△",{variantForm:true}],Join:"⋈",nless:"≮",ngtr:"≯",nleq:"≰",ngeq:"≱",nleqslant:["⪇",{variantForm:true}],ngeqslant:["⪈",{variantForm:true}],nleqq:["≰",{variantForm:true}],ngeqq:["≱",{variantForm:true}],lneq:"⪇",gneq:"⪈",lneqq:"≨",gneqq:"≩",lvertneqq:["≨",{variantForm:true}],gvertneqq:["≩",{variantForm:true}],lnsim:"⋦",gnsim:"⋧",lnapprox:"⪉",gnapprox:"⪊",nprec:"⊀",nsucc:"⊁",npreceq:["⋠",{variantForm:true}],nsucceq:["⋡",{variantForm:true}],precneqq:"⪵",succneqq:"⪶",precnsim:"⋨",succnsim:"⋩",precnapprox:"⪹",succnapprox:"⪺",nsim:"≁",ncong:"≇",nshortmid:["∤",{variantForm:true}],nshortparallel:["∦",{variantForm:true}],nmid:"∤",nparallel:"∦",nvdash:"⊬",nvDash:"⊭",nVdash:"⊮",nVDash:"⊯",ntriangleleft:"⋪",ntriangleright:"⋫",ntrianglelefteq:"⋬",ntrianglerighteq:"⋭",nsubseteq:"⊈",nsupseteq:"⊉",nsubseteqq:["⊈",{variantForm:true}],nsupseteqq:["⊉",{variantForm:true}],subsetneq:"⊊",supsetneq:"⊋",varsubsetneq:["⊊",{variantForm:true}],varsupsetneq:["⊋",{variantForm:true}],subsetneqq:"⫋",supsetneqq:"⫌",varsubsetneqq:["⫋",{variantForm:true}],varsupsetneqq:["⫌",{variantForm:true}],leftleftarrows:"⇇",rightrightarrows:"⇉",leftrightarrows:"⇆",rightleftarrows:"⇄",Lleftarrow:"⇚",Rrightarrow:"⇛",twoheadleftarrow:"↞",twoheadrightarrow:"↠",leftarrowtail:"↢",rightarrowtail:"↣",looparrowleft:"↫",looparrowright:"↬",leftrightharpoons:"⇋",rightleftharpoons:["⇌",{variantForm:true}],curvearrowleft:"↶",curvearrowright:"↷",circlearrowleft:"↺",circlearrowright:"↻",Lsh:"↰",Rsh:"↱",upuparrows:"⇈",downdownarrows:"⇊",upharpoonleft:"↿",upharpoonright:"↾",downharpoonleft:"⇃",restriction:"↾",multimap:"⊸",downharpoonright:"⇂",leftrightsquigarrow:"↭",rightsquigarrow:"⇝",leadsto:"⇝",dashrightarrow:"⇢",dashleftarrow:"⇠",nleftarrow:"↚",nrightarrow:"↛",nLeftarrow:"⇍",nRightarrow:"⇏",nleftrightarrow:"↮",nLeftrightarrow:"⇎"});new l.DelimiterMap("AMSsymbols-delimiter",c.default.delimiter,{"\\ulcorner":"⌜","\\urcorner":"⌝","\\llcorner":"⌞","\\lrcorner":"⌟"});new l.CommandMap("AMSsymbols-macros",{implies:["Macro","\\;\\Longrightarrow\\;"],impliedby:["Macro","\\;\\Longleftarrow\\;"]},s.AmsMethods)},42828:function(e,t,r){var a=this&&this.__assign||function(){a=Object.assign||function(e){for(var t,r=1,a=arguments.length;r0)&&!(n=a.next()).done)o.push(n.value)}catch(s){i={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(i)throw i.error}}return o};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.NEW_OPS=t.AmsMethods=void 0;var i=o(r(3378));var s=o(r(96004));var l=o(r(72895));var u=r(48948);var c=o(r(42880));var f=o(r(48406));var d=r(56941);var p=o(r(40871));var m=r(18426);t.AmsMethods={};t.AmsMethods.AmsEqnArray=function(e,t,r,a,n,o,s){var l=e.GetBrackets("\\begin{"+t.getName()+"}");var u=p.default.EqnArray(e,t,r,a,n,o,s);return i.default.setArrayAlign(u,l)};t.AmsMethods.AlignAt=function(e,r,a,n){var o=r.getName();var s,l,u="",c=[];if(!n){l=e.GetBrackets("\\begin{"+o+"}")}s=e.GetArgument("\\begin{"+o+"}");if(s.match(/[^0-9]/)){throw new f.default("PositiveIntegerArg","Argument to %1 must me a positive integer","\\begin{"+o+"}")}var d=parseInt(s,10);while(d>0){u+="rl";c.push("0em 0em");d--}var p=c.join(" ");if(n){return t.AmsMethods.EqnArray(e,r,a,n,u,p)}var m=t.AmsMethods.EqnArray(e,r,a,n,u,p);return i.default.setArrayAlign(m,l)};t.AmsMethods.Multline=function(e,t,r){e.Push(t);i.default.checkEqnEnv(e);var a=e.itemFactory.create("multline",r,e.stack);a.arraydef={displaystyle:true,rowspacing:".5em",columnspacing:"100%",width:e.options.ams["multlineWidth"],side:e.options["tagSide"],minlabelspacing:e.options["tagIndent"],framespacing:e.options.ams["multlineIndent"]+" 0",frame:"","data-width-includes-label":true};return a};t.AmsMethods.XalignAt=function(e,r,a,n){var o=e.GetArgument("\\begin{"+r.getName()+"}");if(o.match(/[^0-9]/)){throw new f.default("PositiveIntegerArg","Argument to %1 must me a positive integer","\\begin{"+r.getName()+"}")}var i=n?"crl":"rlc";var s=n?"fit auto auto":"auto auto fit";var l=t.AmsMethods.FlalignArray(e,r,a,n,false,i,s,true);l.setProperty("xalignat",2*parseInt(o));return l};t.AmsMethods.FlalignArray=function(e,t,r,a,n,o,s,l){if(l===void 0){l=false}e.Push(t);i.default.checkEqnEnv(e);o=o.split("").join(" ").replace(/r/g,"right").replace(/l/g,"left").replace(/c/g,"center");var u=e.itemFactory.create("flalign",t.getName(),r,a,n,e.stack);u.arraydef={width:"100%",displaystyle:true,columnalign:o,columnspacing:"0em",columnwidth:s,rowspacing:"3pt",side:e.options["tagSide"],minlabelspacing:l?"0":e.options["tagIndent"],"data-width-includes-label":true};u.setProperty("zeroWidthLabel",l);return u};t.NEW_OPS="ams-declare-ops";t.AmsMethods.HandleDeclareOp=function(e,r){var a=e.GetStar()?"*":"";var n=i.default.trimSpaces(e.GetArgument(r));if(n.charAt(0)==="\\"){n=n.substr(1)}var o=e.GetArgument(r);e.configuration.handlers.retrieve(t.NEW_OPS).add(n,new d.Macro(n,t.AmsMethods.Macro,["\\operatorname".concat(a,"{").concat(o,"}")]))};t.AmsMethods.HandleOperatorName=function(e,t){var r=e.GetStar();var n=i.default.trimSpaces(e.GetArgument(t));var o=new c.default(n,a(a({},e.stack.env),{font:u.TexConstant.Variant.NORMAL,multiLetterIdentifiers:/^[-*a-z]+/i,operatorLetters:true}),e.configuration).mml();if(!o.isKind("mi")){o=e.create("node","TeXAtom",[o])}l.default.setProperties(o,{movesupsub:r,movablelimits:true,texClass:m.TEXCLASS.OP});if(!r){var s=e.GetNext(),f=e.i;if(s==="\\"&&++e.i&&e.GetCS()!=="limits"){e.i=f}}e.Push(o)};t.AmsMethods.SideSet=function(e,t){var r=n(h(e.ParseArg(t)),2),a=r[0],o=r[1];var s=n(h(e.ParseArg(t)),2),u=s[0],c=s[1];var f=e.ParseArg(t);var d=f;if(a){if(o){a.replaceChild(e.create("node","mphantom",[e.create("node","mpadded",[i.default.copyNode(f,e)],{width:0})]),l.default.getChildAt(a,0))}else{d=e.create("node","mmultiscripts",[f]);if(u){l.default.appendChildren(d,[l.default.getChildAt(u,1)||e.create("node","none"),l.default.getChildAt(u,2)||e.create("node","none")])}l.default.setProperty(d,"scriptalign","left");l.default.appendChildren(d,[e.create("node","mprescripts"),l.default.getChildAt(a,1)||e.create("node","none"),l.default.getChildAt(a,2)||e.create("node","none")])}}if(u&&d===f){u.replaceChild(f,l.default.getChildAt(u,0));d=u}var p=e.create("node","TeXAtom",[],{texClass:m.TEXCLASS.OP,movesupsub:true,movablelimits:true});if(o){a&&p.appendChild(a);p.appendChild(o)}p.appendChild(d);c&&p.appendChild(c);e.Push(p)};function h(e){if(!e||e.isInferred&&e.childNodes.length===0)return[null,null];if(e.isKind("msubsup")&&v(e))return[e,null];var t=l.default.getChildAt(e,0);if(!(e.isInferred&&t&&v(t)))return[null,e];e.childNodes.splice(0,1);return[t,e]}function v(e){var t=e.childNodes[0];return t&&t.isKind("mi")&&t.getText()===""}t.AmsMethods.operatorLetter=function(e,t){return e.stack.env.operatorLetters?s.default.variable(e,t):false};t.AmsMethods.MultiIntegral=function(e,t,r){var a=e.GetNext();if(a==="\\"){var n=e.i;a=e.GetArgument(t);e.i=n;if(a==="\\limits"){if(t==="\\idotsint"){r="\\!\\!\\mathop{\\,\\,"+r+"}"}else{r="\\!\\!\\!\\mathop{\\,\\,\\,"+r+"}"}}}e.string=r+" "+e.string.slice(e.i);e.i=0};t.AmsMethods.xArrow=function(e,t,r,a,n){var o={width:"+"+i.default.Em((a+n)/18),lspace:i.default.Em(a/18)};var s=e.GetBrackets(t);var u=e.ParseArg(t);var f=e.create("node","mspace",[],{depth:".25em"});var d=e.create("token","mo",{stretchy:true,texClass:m.TEXCLASS.REL},String.fromCodePoint(r));d=e.create("node","mstyle",[d],{scriptlevel:0});var p=e.create("node","munderover",[d]);var h=e.create("node","mpadded",[u,f],o);l.default.setAttribute(h,"voffset","-.2em");l.default.setAttribute(h,"height","-.2em");l.default.setChild(p,p.over,h);if(s){var v=new c.default(s,e.stack.env,e.configuration).mml();var g=e.create("node","mspace",[],{height:".75em"});h=e.create("node","mpadded",[v,g],o);l.default.setAttribute(h,"voffset",".15em");l.default.setAttribute(h,"depth","-.15em");l.default.setChild(p,p.under,h)}l.default.setProperty(p,"subsupOK",true);e.Push(p)};t.AmsMethods.HandleShove=function(e,t,r){var a=e.stack.Top();if(a.kind!=="multline"){throw new f.default("CommandOnlyAllowedInEnv","%1 only allowed in %2 environment",e.currentCS,"multline")}if(a.Size()){throw new f.default("CommandAtTheBeginingOfLine","%1 must come at the beginning of the line",e.currentCS)}a.setProperty("shove",r)};t.AmsMethods.CFrac=function(e,t){var r=i.default.trimSpaces(e.GetBrackets(t,""));var a=e.GetArgument(t);var n=e.GetArgument(t);var o={l:u.TexConstant.Align.LEFT,r:u.TexConstant.Align.RIGHT,"":""};var s=new c.default("\\strut\\textstyle{"+a+"}",e.stack.env,e.configuration).mml();var d=new c.default("\\strut\\textstyle{"+n+"}",e.stack.env,e.configuration).mml();var p=e.create("node","mfrac",[s,d]);r=o[r];if(r==null){throw new f.default("IllegalAlign","Illegal alignment specified in %1",e.currentCS)}if(r){l.default.setProperties(p,{numalign:r,denomalign:r})}e.Push(p)};t.AmsMethods.Genfrac=function(e,t,r,a,n,o){if(r==null){r=e.GetDelimiterArg(t)}if(a==null){a=e.GetDelimiterArg(t)}if(n==null){n=e.GetArgument(t)}if(o==null){o=i.default.trimSpaces(e.GetArgument(t))}var s=e.ParseArg(t);var u=e.ParseArg(t);var c=e.create("node","mfrac",[s,u]);if(n!==""){l.default.setAttribute(c,"linethickness",n)}if(r||a){l.default.setProperty(c,"withDelims",true);c=i.default.fixedFence(e.configuration,r,c,a)}if(o!==""){var d=parseInt(o,10);var p=["D","T","S","SS"][d];if(p==null){throw new f.default("BadMathStyleFor","Bad math style for %1",e.currentCS)}c=e.create("node","mstyle",[c]);if(p==="D"){l.default.setProperties(c,{displaystyle:true,scriptlevel:0})}else{l.default.setProperties(c,{displaystyle:false,scriptlevel:d-1})}}e.Push(c)};t.AmsMethods.HandleTag=function(e,t){if(!e.tags.currentTag.taggable&&e.tags.env){throw new f.default("CommandNotAllowedInEnv","%1 not allowed in %2 environment",e.currentCS,e.tags.env)}if(e.tags.currentTag.tag){throw new f.default("MultipleCommand","Multiple %1",e.currentCS)}var r=e.GetStar();var a=i.default.trimSpaces(e.GetArgument(t));e.tags.tag(a,r)};t.AmsMethods.HandleNoTag=p.default.HandleNoTag;t.AmsMethods.HandleRef=p.default.HandleRef;t.AmsMethods.Macro=p.default.Macro;t.AmsMethods.Accent=p.default.Accent;t.AmsMethods.Tilde=p.default.Tilde;t.AmsMethods.Array=p.default.Array;t.AmsMethods.Spacer=p.default.Spacer;t.AmsMethods.NamedOp=p.default.NamedOp;t.AmsMethods.EqnArray=p.default.EqnArray;t.AmsMethods.Equation=p.default.Equation},49799:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.AmsCdConfiguration=void 0;var a=r(23644);r(1158);t.AmsCdConfiguration=a.Configuration.create("amscd",{handler:{character:["amscd_special"],macro:["amscd_macros"],environment:["amscd_environment"]},options:{amscd:{colspace:"5pt",rowspace:"5pt",harrowsize:"2.75em",varrowsize:"1.75em",hideHorizontalLabels:false}}})},1158:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){if(a===undefined)a=r;var n=Object.getOwnPropertyDescriptor(t,r);if(!n||("get"in n?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,a,n)}:function(e,t,r,a){if(a===undefined)a=r;e[a]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))a(t,e,r);n(t,e);return t};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var s=o(r(92715));var l=i(r(96004));var u=i(r(33755));new s.EnvironmentMap("amscd_environment",l.default.environment,{CD:"CD"},u.default);new s.CommandMap("amscd_macros",{minCDarrowwidth:"minCDarrowwidth",minCDarrowheight:"minCDarrowheight"},u.default);new s.MacroMap("amscd_special",{"@":"arrow"},u.default)},33755:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var n=a(r(42880));var o=r(19890);var i=r(18426);var s=a(r(72895));var l={};l.CD=function(e,t){e.Push(t);var r=e.itemFactory.create("array");var a=e.configuration.options.amscd;r.setProperties({minw:e.stack.env.CD_minw||a.harrowsize,minh:e.stack.env.CD_minh||a.varrowsize});r.arraydef={columnalign:"center",columnspacing:a.colspace,rowspacing:a.rowspace,displaystyle:true};return r};l.arrow=function(e,t){var r=e.string.charAt(e.i);if(!r.match(/[>":"→","<":"←",V:"↓",A:"↑"}[r];var v=e.GetUpTo(t+r,r);var g=e.GetUpTo(t+r,r);if(r===">"||r==="<"){d=e.create("token","mo",p,h);if(!v){v="\\kern "+u.getProperty("minw")}if(v||g){var y={width:"+.67em",lspace:".33em"};d=e.create("node","munderover",[d]);if(v){var b=new n.default(v,e.stack.env,e.configuration).mml();var x=e.create("node","mpadded",[b],y);s.default.setAttribute(x,"voffset",".1em");s.default.setChild(d,d.over,x)}if(g){var _=new n.default(g,e.stack.env,e.configuration).mml();s.default.setChild(d,d.under,e.create("node","mpadded",[_],y))}if(e.configuration.options.amscd.hideHorizontalLabels){d=e.create("node","mpadded",d,{depth:0,height:".67em"})}}}else{var w=e.create("token","mo",m,h);d=w;if(v||g){d=e.create("node","mrow");if(v){s.default.appendChildren(d,[new n.default("\\scriptstyle\\llap{"+v+"}",e.stack.env,e.configuration).mml()])}w.texClass=i.TEXCLASS.ORD;s.default.appendChildren(d,[w]);if(g){s.default.appendChildren(d,[new n.default("\\scriptstyle\\rlap{"+g+"}",e.stack.env,e.configuration).mml()])}}}}if(d){e.Push(d)}l.cell(e,t)};l.cell=function(e,t){var r=e.stack.Top();if((r.table||[]).length%2===0&&(r.row||[]).length===0){e.Push(e.create("node","mpadded",[],{height:"8.5pt",depth:"2pt"}))}e.Push(e.itemFactory.create("cell").setProperties({isEntry:true,name:t}))};l.minCDarrowwidth=function(e,t){e.stack.env.CD_minw=e.GetDimen(t)};l.minCDarrowheight=function(e,t){e.stack.env.CD_minh=e.GetDimen(t)};t["default"]=l},27535:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.BboxConfiguration=t.BboxMethods=void 0;var n=r(23644);var o=r(92715);var i=a(r(48406));t.BboxMethods={};t.BboxMethods.BBox=function(e,t){var r=e.GetBrackets(t,"");var a=e.ParseArg(t);var n=r.split(/,/);var o,u,c;for(var f=0,d=n.length;f=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.BoldsymbolConfiguration=t.rewriteBoldTokens=t.createBoldToken=t.BoldsymbolMethods=void 0;var o=r(23644);var i=n(r(72895));var s=r(48948);var l=r(92715);var u=r(38624);var c={};c[s.TexConstant.Variant.NORMAL]=s.TexConstant.Variant.BOLD;c[s.TexConstant.Variant.ITALIC]=s.TexConstant.Variant.BOLDITALIC;c[s.TexConstant.Variant.FRAKTUR]=s.TexConstant.Variant.BOLDFRAKTUR;c[s.TexConstant.Variant.SCRIPT]=s.TexConstant.Variant.BOLDSCRIPT;c[s.TexConstant.Variant.SANSSERIF]=s.TexConstant.Variant.BOLDSANSSERIF;c["-tex-calligraphic"]="-tex-bold-calligraphic";c["-tex-oldstyle"]="-tex-bold-oldstyle";c["-tex-mathit"]=s.TexConstant.Variant.BOLDITALIC;t.BoldsymbolMethods={};t.BoldsymbolMethods.Boldsymbol=function(e,t){var r=e.stack.env["boldsymbol"];e.stack.env["boldsymbol"]=true;var a=e.ParseArg(t);e.stack.env["boldsymbol"]=r;e.Push(a)};new l.CommandMap("boldsymbol",{boldsymbol:"Boldsymbol"},t.BoldsymbolMethods);function f(e,t,r,a){var n=u.NodeFactory.createToken(e,t,r,a);if(t!=="mtext"&&e.configuration.parser.stack.env["boldsymbol"]){i.default.setProperty(n,"fixBold",true);e.configuration.addNode("fixBold",n)}return n}t.createBoldToken=f;function d(e){var t,r;try{for(var n=a(e.data.getList("fixBold")),o=n.next();!o.done;o=n.next()){var l=o.value;if(i.default.getProperty(l,"fixBold")){var u=i.default.getAttribute(l,"mathvariant");if(u==null){i.default.setAttribute(l,"mathvariant",s.TexConstant.Variant.BOLD)}else{i.default.setAttribute(l,"mathvariant",c[u]||u)}i.default.removeProperties(l,"fixBold")}}}catch(f){t={error:f}}finally{try{if(o&&!o.done&&(r=n.return))r.call(n)}finally{if(t)throw t.error}}}t.rewriteBoldTokens=d;t.BoldsymbolConfiguration=o.Configuration.create("boldsymbol",{handler:{macro:["boldsymbol"]},nodes:{token:f},postprocessors:[d]})},17151:(e,t,r)=>{var a;Object.defineProperty(t,"__esModule",{value:true});t.BraketConfiguration=void 0;var n=r(23644);var o=r(60555);r(46857);t.BraketConfiguration=n.Configuration.create("braket",{handler:{character:["Braket-characters"],macro:["Braket-macros"]},items:(a={},a[o.BraketItem.prototype.kind]=o.BraketItem,a)})},60555:function(e,t,r){var a=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.BraketItem=void 0;var o=r(34726);var i=r(18426);var s=n(r(3378));var l=function(e){a(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(t.prototype,"kind",{get:function(){return"braket"},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isOpen",{get:function(){return true},enumerable:false,configurable:true});t.prototype.checkItem=function(t){if(t.isKind("close")){return[[this.factory.create("mml",this.toMml())],true]}if(t.isKind("mml")){this.Push(t.toMml());if(this.getProperty("single")){return[[this.toMml()],true]}return o.BaseItem.fail}return e.prototype.checkItem.call(this,t)};t.prototype.toMml=function(){var t=e.prototype.toMml.call(this);var r=this.getProperty("open");var a=this.getProperty("close");if(this.getProperty("stretchy")){return s.default.fenced(this.factory.configuration,r,t,a)}var n={fence:true,stretchy:false,symmetric:true,texClass:i.TEXCLASS.OPEN};var o=this.create("token","mo",n,r);n.texClass=i.TEXCLASS.CLOSE;var l=this.create("token","mo",n,a);var u=this.create("node","mrow",[o,t,l],{open:r,close:a,texClass:i.TEXCLASS.INNER});return u};return t}(o.BaseItem);t.BraketItem=l},46857:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var n=r(92715);var o=a(r(17960));new n.CommandMap("Braket-macros",{bra:["Macro","{\\langle {#1} \\vert}",1],ket:["Macro","{\\vert {#1} \\rangle}",1],braket:["Braket","⟨","⟩",false,Infinity],set:["Braket","{","}",false,1],Bra:["Macro","{\\left\\langle {#1} \\right\\vert}",1],Ket:["Macro","{\\left\\vert {#1} \\right\\rangle}",1],Braket:["Braket","⟨","⟩",true,Infinity],Set:["Braket","{","}",true,1],ketbra:["Macro","{\\vert {#1} \\rangle\\langle {#2} \\vert}",2],Ketbra:["Macro","{\\left\\vert {#1} \\right\\rangle\\left\\langle {#2} \\right\\vert}",2],"|":"Bar"},o.default);new n.MacroMap("Braket-characters",{"|":"Bar"},o.default)},17960:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var n=a(r(40871));var o=r(18426);var i=a(r(48406));var s={};s.Macro=n.default.Macro;s.Braket=function(e,t,r,a,n,o){var s=e.GetNext();if(s===""){throw new i.default("MissingArgFor","Missing argument for %1",e.currentCS)}var l=true;if(s==="{"){e.i++;l=false}e.Push(e.itemFactory.create("braket").setProperties({barmax:o,barcount:0,open:r,close:a,stretchy:n,single:l}))};s.Bar=function(e,t){var r=t==="|"?"|":"∥";var a=e.stack.Top();if(a.kind!=="braket"||a.getProperty("barcount")>=a.getProperty("barmax")){var n=e.create("token","mo",{texClass:o.TEXCLASS.ORD,stretchy:false},r);e.Push(n);return}if(r==="|"&&e.GetNext()==="|"){e.i++;r="∥"}var i=a.getProperty("stretchy");if(!i){var s=e.create("token","mo",{stretchy:false,braketbar:true},r);e.Push(s);return}var l=e.create("node","TeXAtom",[],{texClass:o.TEXCLASS.CLOSE});e.Push(l);a.setProperty("barcount",a.getProperty("barcount")+1);l=e.create("token","mo",{stretchy:true,braketbar:true},r);e.Push(l);l=e.create("node","TeXAtom",[],{texClass:o.TEXCLASS.OPEN});e.Push(l)};t["default"]=s},2518:(e,t,r)=>{var a;Object.defineProperty(t,"__esModule",{value:true});t.BussproofsConfiguration=void 0;var n=r(23644);var o=r(36833);var i=r(15641);r(91336);t.BussproofsConfiguration=n.Configuration.create("bussproofs",{handler:{macro:["Bussproofs-macros"],environment:["Bussproofs-environments"]},items:(a={},a[o.ProofTreeItem.prototype.kind]=o.ProofTreeItem,a),preprocessors:[[i.saveDocument,1]],postprocessors:[[i.clearDocument,3],[i.makeBsprAttributes,2],[i.balanceRules,1]]})},36833:function(e,t,r){var a=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();var n=this&&this.__createBinding||(Object.create?function(e,t,r,a){if(a===undefined)a=r;var n=Object.getOwnPropertyDescriptor(t,r);if(!n||("get"in n?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,a,n)}:function(e,t,r,a){if(a===undefined)a=r;e[a]=t[r]});var o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))n(t,e,r);o(t,e);return t};var s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.ProofTreeItem=void 0;var l=s(r(48406));var u=r(34726);var c=s(r(14577));var f=i(r(15641));var d=function(e){a(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.leftLabel=null;t.rigthLabel=null;t.innerStack=new c.default(t.factory,{},true);return t}Object.defineProperty(t.prototype,"kind",{get:function(){return"proofTree"},enumerable:false,configurable:true});t.prototype.checkItem=function(e){if(e.isKind("end")&&e.getName()==="prooftree"){var t=this.toMml();f.setProperty(t,"proof",true);return[[this.factory.create("mml",t),e],true]}if(e.isKind("stop")){throw new l.default("EnvMissingEnd","Missing \\end{%1}",this.getName())}this.innerStack.Push(e);return u.BaseItem.fail};t.prototype.toMml=function(){var t=e.prototype.toMml.call(this);var r=this.innerStack.Top();if(r.isKind("start")&&!r.Size()){return t}this.innerStack.Push(this.factory.create("stop"));var a=this.innerStack.Top().toMml();return this.create("node","mrow",[a,t],{})};return t}(u.BaseItem);t.ProofTreeItem=d},91336:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var n=a(r(55837));var o=a(r(96004));var i=r(92715);new i.CommandMap("Bussproofs-macros",{AxiomC:"Axiom",UnaryInfC:["Inference",1],BinaryInfC:["Inference",2],TrinaryInfC:["Inference",3],QuaternaryInfC:["Inference",4],QuinaryInfC:["Inference",5],RightLabel:["Label","right"],LeftLabel:["Label","left"],AXC:"Axiom",UIC:["Inference",1],BIC:["Inference",2],TIC:["Inference",3],RL:["Label","right"],LL:["Label","left"],noLine:["SetLine","none",false],singleLine:["SetLine","solid",false],solidLine:["SetLine","solid",false],dashedLine:["SetLine","dashed",false],alwaysNoLine:["SetLine","none",true],alwaysSingleLine:["SetLine","solid",true],alwaysSolidLine:["SetLine","solid",true],alwaysDashedLine:["SetLine","dashed",true],rootAtTop:["RootAtTop",true],alwaysRootAtTop:["RootAtTop",true],rootAtBottom:["RootAtTop",false],alwaysRootAtBottom:["RootAtTop",false],fCenter:"FCenter",Axiom:"AxiomF",UnaryInf:["InferenceF",1],BinaryInf:["InferenceF",2],TrinaryInf:["InferenceF",3],QuaternaryInf:["InferenceF",4],QuinaryInf:["InferenceF",5]},n.default);new i.EnvironmentMap("Bussproofs-environments",o.default.environment,{prooftree:["Prooftree",null,false]},n.default)},55837:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){if(a===undefined)a=r;var n=Object.getOwnPropertyDescriptor(t,r);if(!n||("get"in n?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,a,n)}:function(e,t,r,a){if(a===undefined)a=r;e[a]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))a(t,e,r);n(t,e);return t};var i=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),n,o=[],i;try{while((t===void 0||t-- >0)&&!(n=a.next()).done)o.push(n.value)}catch(s){i={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(i)throw i.error}}return o};var s=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var a=0,n=t.length,o;a0);var s=e.create("node","mtr",i,{});var l=e.create("node","mtable",[s],{framespacing:"0 0"});var c=m(e,e.GetArgument(t));var f=a.getProperty("currentLine");if(f!==a.getProperty("line")){a.setProperty("currentLine",a.getProperty("line"))}var p=h(e,l,[c],a.getProperty("left"),a.getProperty("right"),f,n);a.setProperty("left",null);a.setProperty("right",null);d.setProperty(p,"inference",o);e.configuration.addNode("inference",p);a.Push(p)};function h(e,t,r,a,n,o,i){var s=e.create("node","mtr",[e.create("node","mtd",[t],{})],{});var l=e.create("node","mtr",[e.create("node","mtd",r,{})],{});var u=e.create("node","mtable",i?[l,s]:[s,l],{align:"top 2",rowlines:o,framespacing:"0 0"});d.setProperty(u,"inferenceRule",i?"up":"down");var c,f;if(a){c=e.create("node","mpadded",[a],{height:"+.5em",width:"+.5em",voffset:"-.15em"});d.setProperty(c,"prooflabel","left")}if(n){f=e.create("node","mpadded",[n],{height:"+.5em",width:"+.5em",voffset:"-.15em"});d.setProperty(f,"prooflabel","right")}var p,m;if(a&&n){p=[c,u,f];m="both"}else if(a){p=[c,u];m="left"}else if(n){p=[u,f];m="right"}else{return u}u=e.create("node","mrow",p);d.setProperty(u,"labelledRule",m);return u}p.Label=function(e,t,r){var a=e.stack.Top();if(a.kind!=="proofTree"){throw new u.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.")}var n=f.default.internalMath(e,e.GetArgument(t),0);var o=n.length>1?e.create("node","mrow",n,{}):n[0];a.setProperty(r,o)};p.SetLine=function(e,t,r,a){var n=e.stack.Top();if(n.kind!=="proofTree"){throw new u.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.")}n.setProperty("currentLine",r);if(a){n.setProperty("line",r)}};p.RootAtTop=function(e,t,r){var a=e.stack.Top();if(a.kind!=="proofTree"){throw new u.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.")}a.setProperty("rootAtTop",r)};p.AxiomF=function(e,t){var r=e.stack.Top();if(r.kind!=="proofTree"){throw new u.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.")}var a=v(e,t);d.setProperty(a,"axiom",true);r.Push(a)};function v(e,t){var r=e.GetNext();if(r!=="$"){throw new u.default("IllegalUseOfCommand","Use of %1 does not match it's definition.",t)}e.i++;var a=e.GetUpTo(t,"$");if(a.indexOf("\\fCenter")===-1){throw new u.default("IllegalUseOfCommand","Missing \\fCenter in %1.",t)}var n=i(a.split("\\fCenter"),2),o=n[0],s=n[1];var l=new c.default(o,e.stack.env,e.configuration).mml();var f=new c.default(s,e.stack.env,e.configuration).mml();var p=new c.default("\\fCenter",e.stack.env,e.configuration).mml();var m=e.create("node","mtd",[l],{});var h=e.create("node","mtd",[p],{});var v=e.create("node","mtd",[f],{});var g=e.create("node","mtr",[m,h,v],{});var y=e.create("node","mtable",[g],{columnspacing:".5ex",columnalign:"center 2"});d.setProperty(y,"sequent",true);e.configuration.addNode("sequent",g);return y}p.FCenter=function(e,t){};p.InferenceF=function(e,t,r){var a=e.stack.Top();if(a.kind!=="proofTree"){throw new u.default("IllegalProofCommand","Proof commands only allowed in prooftree environment.")}if(a.Size()0);var s=e.create("node","mtr",i,{});var l=e.create("node","mtable",[s],{framespacing:"0 0"});var c=v(e,t);var f=a.getProperty("currentLine");if(f!==a.getProperty("line")){a.setProperty("currentLine",a.getProperty("line"))}var p=h(e,l,[c],a.getProperty("left"),a.getProperty("right"),f,n);a.setProperty("left",null);a.setProperty("right",null);d.setProperty(p,"inference",o);e.configuration.addNode("inference",p);a.Push(p)};t["default"]=p},15641:function(e,t,r){var a=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),n,o=[],i;try{while((t===void 0||t-- >0)&&!(n=a.next()).done)o.push(n.value)}catch(s){i={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(i)throw i.error}}return o};var n=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],a=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&a>=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};var i;Object.defineProperty(t,"__esModule",{value:true});t.clearDocument=t.saveDocument=t.makeBsprAttributes=t.removeProperty=t.getProperty=t.setProperty=t.balanceRules=void 0;var s=o(r(72895));var l=o(r(3378));var u=null;var c=null;var f=function(e){c.root=e;var t=u.outputJax.getBBox(c,u).w;return t};var d=function(e){var t=0;while(e&&!s.default.isType(e,"mtable")){if(s.default.isType(e,"text")){return null}if(s.default.isType(e,"mrow")){e=e.childNodes[0];t=0;continue}e=e.parent.childNodes[t];t++}return e};var p=function(e,t){return e.childNodes[t==="up"?1:0].childNodes[0].childNodes[0].childNodes[0].childNodes[0]};var m=function(e,t){return e.childNodes[t].childNodes[0].childNodes[0]};var h=function(e){return m(e,0)};var v=function(e){return m(e,e.childNodes.length-1)};var g=function(e,t){return e.childNodes[t==="up"?0:1].childNodes[0].childNodes[0].childNodes[0]};var y=function(e){while(e&&!s.default.isType(e,"mtd")){e=e.parent}return e};var b=function(e){return e.parent.childNodes[e.parent.childNodes.indexOf(e)+1]};var x=function(e){return e.parent.childNodes[e.parent.childNodes.indexOf(e)-1]};var _=function(e){while(e&&(0,t.getProperty)(e,"inference")==null){e=e.parent}return e};var w=function(e,t,r){if(r===void 0){r=false}var a=0;if(e===t){return a}if(e!==t.parent){var n=e.childNodes;var o=r?n.length-1:0;if(s.default.isType(n[o],"mspace")){a+=f(n[o])}e=t.parent}if(e===t){return a}var i=e.childNodes;var l=r?i.length-1:0;if(i[l]!==t){a+=f(i[l])}return a};var M=function(e,r){if(r===void 0){r=false}var a=d(e);var n=g(a,(0,t.getProperty)(a,"inferenceRule"));var o=w(e,a,r);var i=f(a);var s=f(n);return o+(i-s)/2};var A=function(e,r,a,n){if(n===void 0){n=false}if((0,t.getProperty)(r,"inferenceRule")||(0,t.getProperty)(r,"labelledRule")){var o=e.nodeFactory.create("node","mrow");r.parent.replaceChild(o,r);o.setChildren([r]);C(r,o);r=o}var i=n?r.childNodes.length-1:0;var u=r.childNodes[i];if(s.default.isType(u,"mspace")){s.default.setAttribute(u,"width",l.default.Em(l.default.dimen2em(s.default.getAttribute(u,"width"))+a));return}u=e.nodeFactory.create("node","mspace",[],{width:l.default.Em(a)});if(n){r.appendChild(u);return}u.parent=r;r.childNodes.unshift(u)};var C=function(e,r){var a=["inference","proof","maxAdjust","labelledRule"];a.forEach((function(a){var n=(0,t.getProperty)(e,a);if(n!=null){(0,t.setProperty)(r,a,n);(0,t.removeProperty)(e,a)}}))};var P=function(e){var r=e.nodeLists["sequent"];if(!r){return}for(var a=r.length-1,n=void 0;n=r[a];a--){if((0,t.getProperty)(n,"sequentProcessed")){(0,t.removeProperty)(n,"sequentProcessed");continue}var o=[];var i=_(n);if((0,t.getProperty)(i,"inference")!==1){continue}o.push(n);while((0,t.getProperty)(i,"inference")===1){i=d(i);var s=h(p(i,(0,t.getProperty)(i,"inferenceRule")));var l=(0,t.getProperty)(s,"inferenceRule")?g(s,(0,t.getProperty)(s,"inferenceRule")):s;if((0,t.getProperty)(l,"sequent")){n=l.childNodes[0];o.push(n);(0,t.setProperty)(n,"sequentProcessed",true)}i=s}k(e,o)}};var S=function(e,r,a,n,o){var i=e.nodeFactory.create("node","mspace",[],{width:l.default.Em(o)});if(n==="left"){var s=r.childNodes[a].childNodes[0];i.parent=s;s.childNodes.unshift(i)}else{r.childNodes[a].appendChild(i)}(0,t.setProperty)(r.parent,"sequentAdjust_"+n,o)};var k=function(e,r){var n=r.pop();while(r.length){var o=r.pop();var i=a(O(n,o),2),s=i[0],l=i[1];if((0,t.getProperty)(n.parent,"axiom")){S(e,s<0?n:o,0,"left",Math.abs(s));S(e,l<0?n:o,2,"right",Math.abs(l))}n=o}};var O=function(e,t){var r=f(e.childNodes[2]);var a=f(t.childNodes[2]);var n=f(e.childNodes[0]);var o=f(t.childNodes[0]);var i=n-o;var s=r-a;return[i,s]};var q=function(e){var r,a;c=new e.document.options.MathItem("",null,e.math.display);var o=e.data;P(o);var i=o.nodeLists["inference"]||[];try{for(var s=n(i),l=s.next();!l.done;l=s.next()){var u=l.value;var f=(0,t.getProperty)(u,"proof");var m=d(u);var g=p(m,(0,t.getProperty)(m,"inferenceRule"));var x=h(g);if((0,t.getProperty)(x,"inference")){var C=M(x);if(C){A(o,x,-C);var S=w(u,m,false);A(o,u,C-S)}}var k=v(g);if((0,t.getProperty)(k,"inference")==null){continue}var O=M(k,true);A(o,k,-O,true);var q=w(u,m,true);var T=(0,t.getProperty)(u,"maxAdjust");if(T!=null){O=Math.max(O,T)}var E=void 0;if(f||!(E=y(u))){A(o,(0,t.getProperty)(u,"proof")?u:u.parent,O-q,true);continue}var I=b(E);if(I){var D=o.nodeFactory.create("node","mspace",[],{width:O-q+"em"});I.appendChild(D);u.removeProperty("maxAdjust");continue}var N=_(E);if(!N){continue}O=(0,t.getProperty)(N,"maxAdjust")?Math.max((0,t.getProperty)(N,"maxAdjust"),O):O;(0,t.setProperty)(N,"maxAdjust",O)}}catch(G){r={error:G}}finally{try{if(l&&!l.done&&(a=s.return))a.call(s)}finally{if(r)throw r.error}}};t.balanceRules=q;var T="bspr_";var E=(i={},i[T+"maxAdjust"]=true,i);var I=function(e,t,r){s.default.setProperty(e,T+t,r)};t.setProperty=I;var D=function(e,t){return s.default.getProperty(e,T+t)};t.getProperty=D;var N=function(e,t){e.removeProperty(T+t)};t.removeProperty=N;var G=function(e){e.data.root.walkTree((function(e,t){var r=[];e.getPropertyNames().forEach((function(t){if(!E[t]&&t.match(RegExp("^"+T))){r.push(t+":"+e.getProperty(t))}}));if(r.length){s.default.setAttribute(e,"semantics",r.join(";"))}}))};t.makeBsprAttributes=G;var B=function(e){u=e.document;if(!("getBBox"in u.outputJax)){throw Error("The bussproofs extension requires an output jax with a getBBox() method")}};t.saveDocument=B;var F=function(e){u=null};t.clearDocument=F},34801:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.CancelConfiguration=t.CancelMethods=void 0;var n=r(23644);var o=r(48948);var i=r(92715);var s=a(r(3378));var l=r(96295);t.CancelMethods={};t.CancelMethods.Cancel=function(e,t,r){var a=e.GetBrackets(t,"");var n=e.ParseArg(t);var o=s.default.keyvalOptions(a,l.ENCLOSE_OPTIONS);o["notation"]=r;e.Push(e.create("node","menclose",[n],o))};t.CancelMethods.CancelTo=function(e,t){var r=e.GetBrackets(t,"");var a=e.ParseArg(t);var n=e.ParseArg(t);var i=s.default.keyvalOptions(r,l.ENCLOSE_OPTIONS);i["notation"]=[o.TexConstant.Notation.UPDIAGONALSTRIKE,o.TexConstant.Notation.UPDIAGONALARROW,o.TexConstant.Notation.NORTHEASTARROW].join(" ");a=e.create("node","mpadded",[a],{depth:"-.1em",height:"+.1em",voffset:".1em"});e.Push(e.create("node","msup",[e.create("node","menclose",[n],i),a]))};new i.CommandMap("cancel",{cancel:["Cancel",o.TexConstant.Notation.UPDIAGONALSTRIKE],bcancel:["Cancel",o.TexConstant.Notation.DOWNDIAGONALSTRIKE],xcancel:["Cancel",o.TexConstant.Notation.UPDIAGONALSTRIKE+" "+o.TexConstant.Notation.DOWNDIAGONALSTRIKE],cancelto:"CancelTo"},t.CancelMethods);t.CancelConfiguration=n.Configuration.create("cancel",{handler:{macro:["cancel"]}})},30813:function(e,t,r){var a=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};var o;Object.defineProperty(t,"__esModule",{value:true});t.CasesConfiguration=t.CasesMethods=t.CasesTags=t.CasesBeginItem=void 0;var i=r(23644);var s=r(92715);var l=n(r(3378));var u=n(r(40871));var c=n(r(48406));var f=r(5065);var d=r(73797);var p=r(75734);var m=function(e){a(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(t.prototype,"kind",{get:function(){return"cases-begin"},enumerable:false,configurable:true});t.prototype.checkItem=function(t){if(t.isKind("end")&&t.getName()===this.getName()){if(this.getProperty("end")){this.setProperty("end",false);return[[],true]}}return e.prototype.checkItem.call(this,t)};return t}(f.BeginItem);t.CasesBeginItem=m;var h=function(e){a(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.subcounter=0;return t}t.prototype.start=function(t,r,a){this.subcounter=0;e.prototype.start.call(this,t,r,a)};t.prototype.autoTag=function(){if(this.currentTag.tag!=null)return;if(this.currentTag.env==="subnumcases"){if(this.subcounter===0)this.counter++;this.subcounter++;this.tag(this.formatNumber(this.counter,this.subcounter),false)}else{if(this.subcounter===0||this.currentTag.env!=="numcases-left")this.counter++;this.tag(this.formatNumber(this.counter),false)}};t.prototype.formatNumber=function(e,t){if(t===void 0){t=null}return e.toString()+(t===null?"":String.fromCharCode(96+t))};return t}(d.AmsTags);t.CasesTags=h;t.CasesMethods={NumCases:function(e,t){if(e.stack.env.closing===t.getName()){delete e.stack.env.closing;e.Push(e.itemFactory.create("end").setProperty("name",t.getName()));var r=e.stack.Top();var a=r.Last;var n=l.default.copyNode(a,e);var o=r.getProperty("left");p.EmpheqUtil.left(a,n,o+"\\empheqlbrace\\,",e,"numcases-left");e.Push(e.itemFactory.create("end").setProperty("name",t.getName()));return null}else{var o=e.GetArgument("\\begin{"+t.getName()+"}");t.setProperty("left",o);var i=u.default.EqnArray(e,t,true,true,"ll");i.arraydef.displaystyle=false;i.arraydef.rowspacing=".2em";i.setProperty("numCases",true);e.Push(t);return i}},Entry:function(e,t){if(!e.stack.Top().getProperty("numCases")){return u.default.Entry(e,t)}e.Push(e.itemFactory.create("cell").setProperties({isEntry:true,name:t}));var r=e.string;var a=0,n=e.i,o=r.length;while(n=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.CenternotConfiguration=t.filterCenterOver=void 0;var o=r(23644);var i=n(r(42880));var s=n(r(72895));var l=r(92715);var u=n(r(40871));new l.CommandMap("centernot",{centerOver:"CenterOver",centernot:["Macro","\\centerOver{#1}{{⧸}}",1]},{CenterOver:function(e,t){var r="{"+e.GetArgument(t)+"}";var a=e.ParseArg(t);var n=new i.default(r,e.stack.env,e.configuration).mml();var o=e.create("node","TeXAtom",[new i.default(r,e.stack.env,e.configuration).mml(),e.create("node","mpadded",[e.create("node","mpadded",[a],{width:0,lspace:"-.5width"}),e.create("node","mphantom",[n])],{width:0,lspace:"-.5width"})]);e.configuration.addNode("centerOver",n);e.Push(o)},Macro:u.default.Macro});function c(e){var t,r;var n=e.data;try{for(var o=a(n.getList("centerOver")),i=o.next();!i.done;i=o.next()){var l=i.value;var u=s.default.getTexClass(l.childNodes[0].childNodes[0]);if(u!==null){s.default.setProperties(l.parent.parent.parent.parent.parent.parent,{texClass:u})}}}catch(c){t={error:c}}finally{try{if(i&&!i.done&&(r=o.return))r.call(o)}finally{if(t)throw t.error}}}t.filterCenterOver=c;t.CenternotConfiguration=o.Configuration.create("centernot",{handler:{macro:["centernot"]},postprocessors:[c]})},76083:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ColorConfiguration=void 0;var a=r(92715);var n=r(23644);var o=r(86101);var i=r(93648);new a.CommandMap("color",{color:"Color",textcolor:"TextColor",definecolor:"DefineColor",colorbox:"ColorBox",fcolorbox:"FColorBox"},o.ColorMethods);var s=function(e,t){t.parseOptions.packageData.set("color",{model:new i.ColorModel})};t.ColorConfiguration=n.Configuration.create("color",{handler:{macro:["color"]},options:{color:{padding:"5px",borderWidth:"2px"}},config:s})},15916:(e,t)=>{Object.defineProperty(t,"__esModule",{value:true});t.COLORS=void 0;t.COLORS=new Map([["Apricot","#FBB982"],["Aquamarine","#00B5BE"],["Bittersweet","#C04F17"],["Black","#221E1F"],["Blue","#2D2F92"],["BlueGreen","#00B3B8"],["BlueViolet","#473992"],["BrickRed","#B6321C"],["Brown","#792500"],["BurntOrange","#F7921D"],["CadetBlue","#74729A"],["CarnationPink","#F282B4"],["Cerulean","#00A2E3"],["CornflowerBlue","#41B0E4"],["Cyan","#00AEEF"],["Dandelion","#FDBC42"],["DarkOrchid","#A4538A"],["Emerald","#00A99D"],["ForestGreen","#009B55"],["Fuchsia","#8C368C"],["Goldenrod","#FFDF42"],["Gray","#949698"],["Green","#00A64F"],["GreenYellow","#DFE674"],["JungleGreen","#00A99A"],["Lavender","#F49EC4"],["LimeGreen","#8DC73E"],["Magenta","#EC008C"],["Mahogany","#A9341F"],["Maroon","#AF3235"],["Melon","#F89E7B"],["MidnightBlue","#006795"],["Mulberry","#A93C93"],["NavyBlue","#006EB8"],["OliveGreen","#3C8031"],["Orange","#F58137"],["OrangeRed","#ED135A"],["Orchid","#AF72B0"],["Peach","#F7965A"],["Periwinkle","#7977B8"],["PineGreen","#008B72"],["Plum","#92268F"],["ProcessBlue","#00B0F0"],["Purple","#99479B"],["RawSienna","#974006"],["Red","#ED1B23"],["RedOrange","#F26035"],["RedViolet","#A1246B"],["Rhodamine","#EF559F"],["RoyalBlue","#0071BC"],["RoyalPurple","#613F99"],["RubineRed","#ED017D"],["Salmon","#F69289"],["SeaGreen","#3FBC9D"],["Sepia","#671800"],["SkyBlue","#46C5DD"],["SpringGreen","#C6DC67"],["Tan","#DA9D76"],["TealBlue","#00AEB3"],["Thistle","#D883B7"],["Turquoise","#00B4CE"],["Violet","#58429B"],["VioletRed","#EF58A0"],["White","#FFFFFF"],["WildStrawberry","#EE2967"],["Yellow","#FFF200"],["YellowGreen","#98CC70"],["YellowOrange","#FAA21A"]])},86101:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.ColorMethods=void 0;var n=a(r(72895));var o=a(r(3378));function i(e){var t="+".concat(e);var r=e.replace(/^.*?([a-z]*)$/,"$1");var a=2*parseFloat(t);return{width:"+".concat(a).concat(r),height:t,depth:t,lspace:e}}t.ColorMethods={};t.ColorMethods.Color=function(e,t){var r=e.GetBrackets(t,"");var a=e.GetArgument(t);var n=e.configuration.packageData.get("color").model;var o=n.getColor(r,a);var i=e.itemFactory.create("style").setProperties({styles:{mathcolor:o}});e.stack.env["color"]=o;e.Push(i)};t.ColorMethods.TextColor=function(e,t){var r=e.GetBrackets(t,"");var a=e.GetArgument(t);var n=e.configuration.packageData.get("color").model;var o=n.getColor(r,a);var i=e.stack.env["color"];e.stack.env["color"]=o;var s=e.ParseArg(t);if(i){e.stack.env["color"]=i}else{delete e.stack.env["color"]}var l=e.create("node","mstyle",[s],{mathcolor:o});e.Push(l)};t.ColorMethods.DefineColor=function(e,t){var r=e.GetArgument(t);var a=e.GetArgument(t);var n=e.GetArgument(t);var o=e.configuration.packageData.get("color").model;o.defineColor(a,r,n)};t.ColorMethods.ColorBox=function(e,t){var r=e.GetArgument(t);var a=o.default.internalMath(e,e.GetArgument(t));var s=e.configuration.packageData.get("color").model;var l=e.create("node","mpadded",a,{mathbackground:s.getColor("named",r)});n.default.setProperties(l,i(e.options.color.padding));e.Push(l)};t.ColorMethods.FColorBox=function(e,t){var r=e.GetArgument(t);var a=e.GetArgument(t);var s=o.default.internalMath(e,e.GetArgument(t));var l=e.options.color;var u=e.configuration.packageData.get("color").model;var c=e.create("node","mpadded",s,{mathbackground:u.getColor("named",a),style:"border: ".concat(l.borderWidth," solid ").concat(u.getColor("named",r))});n.default.setProperties(c,i(l.padding));e.Push(c)}},93648:function(e,t,r){var a=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],a=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&a>=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.ColorModel=void 0;var o=n(r(48406));var i=r(15916);var s=new Map;var l=function(){function e(){this.userColors=new Map}e.prototype.normalizeColor=function(e,t){if(!e||e==="named"){return t}if(s.has(e)){var r=s.get(e);return r(t)}throw new o.default("UndefinedColorModel","Color model '%1' not defined",e)};e.prototype.getColor=function(e,t){if(!e||e==="named"){return this.getColorByName(t)}return this.normalizeColor(e,t)};e.prototype.getColorByName=function(e){if(this.userColors.has(e)){return this.userColors.get(e)}if(i.COLORS.has(e)){return i.COLORS.get(e)}return e};e.prototype.defineColor=function(e,t,r){var a=this.normalizeColor(e,r);this.userColors.set(t,a)};return e}();t.ColorModel=l;s.set("rgb",(function(e){var t,r;var n=e.trim().split(/\s*,\s*/);var i="#";if(n.length!==3){throw new o.default("ModelArg1","Color values for the %1 model require 3 numbers","rgb")}try{for(var s=a(n),l=s.next();!l.done;l=s.next()){var u=l.value;if(!u.match(/^(\d+(\.\d*)?|\.\d+)$/)){throw new o.default("InvalidDecimalNumber","Invalid decimal number")}var c=parseFloat(u);if(c<0||c>1){throw new o.default("ModelArg2","Color values for the %1 model must be between %2 and %3","rgb","0","1")}var f=Math.floor(c*255).toString(16);if(f.length<2){f="0"+f}i+=f}}catch(d){t={error:d}}finally{try{if(l&&!l.done&&(r=s.return))r.call(s)}finally{if(t)throw t.error}}return i}));s.set("RGB",(function(e){var t,r;var n=e.trim().split(/\s*,\s*/);var i="#";if(n.length!==3){throw new o.default("ModelArg1","Color values for the %1 model require 3 numbers","RGB")}try{for(var s=a(n),l=s.next();!l.done;l=s.next()){var u=l.value;if(!u.match(/^\d+$/)){throw new o.default("InvalidNumber","Invalid number")}var c=parseInt(u);if(c>255){throw new o.default("ModelArg2","Color values for the %1 model must be between %2 and %3","RGB","0","255")}var f=c.toString(16);if(f.length<2){f="0"+f}i+=f}}catch(d){t={error:d}}finally{try{if(l&&!l.done&&(r=s.return))r.call(s)}finally{if(t)throw t.error}}return i}));s.set("gray",(function(e){if(!e.match(/^\s*(\d+(\.\d*)?|\.\d+)\s*$/)){throw new o.default("InvalidDecimalNumber","Invalid decimal number")}var t=parseFloat(e);if(t<0||t>1){throw new o.default("ModelArg2","Color values for the %1 model must be between %2 and %3","gray","0","1")}var r=Math.floor(t*255).toString(16);if(r.length<2){r="0"+r}return"#".concat(r).concat(r).concat(r)}))},53293:function(e,t,r){var a=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.ColortblConfiguration=t.ColorArrayItem=void 0;var o=r(5065);var i=r(23644);var s=r(92715);var l=n(r(48406));var u=function(e){a(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.color={cell:"",row:"",col:[]};t.hasColor=false;return t}t.prototype.EndEntry=function(){e.prototype.EndEntry.call(this);var t=this.row[this.row.length-1];var r=this.color.cell||this.color.row||this.color.col[this.row.length-1];if(r){t.attributes.set("mathbackground",r);this.color.cell="";this.hasColor=true}};t.prototype.EndRow=function(){e.prototype.EndRow.call(this);this.color.row=""};t.prototype.createMml=function(){var t=e.prototype.createMml.call(this);var r=t.isKind("mrow")?t.childNodes[1]:t;if(r.isKind("menclose")){r=r.childNodes[0].childNodes[0]}if(this.hasColor&&r.attributes.get("frame")==="none"){r.attributes.set("frame","")}return t};return t}(o.ArrayItem);t.ColorArrayItem=u;new s.CommandMap("colortbl",{cellcolor:["TableColor","cell"],rowcolor:["TableColor","row"],columncolor:["TableColor","col"]},{TableColor:function(e,t,r){var a=e.configuration.packageData.get("color").model;var n=e.GetBrackets(t,"");var o=a.getColor(n,e.GetArgument(t));var i=e.stack.Top();if(!(i instanceof u)){throw new l.default("UnsupportedTableColor","Unsupported use of %1",e.currentCS)}if(r==="col"){if(i.table.length){throw new l.default("ColumnColorNotTop","%1 must be in the top row",t)}i.color.col[i.row.length]=o;if(e.GetBrackets(t,"")){e.GetBrackets(t,"")}}else{i.color[r]=o;if(r==="row"&&(i.Size()||i.row.length)){throw new l.default("RowColorNotFirst","%1 must be at the beginning of a row",t)}}}});var c=function(e,t){if(!t.parseOptions.packageData.has("color")){i.ConfigurationHandler.get("color").config(e,t)}};t.ColortblConfiguration=i.Configuration.create("colortbl",{handler:{macro:["colortbl"]},items:{array:u},priority:10,config:[c,10]})},28361:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.ColorConfiguration=t.ColorV2Methods=void 0;var a=r(92715);var n=r(23644);t.ColorV2Methods={Color:function(e,t){var r=e.GetArgument(t);var a=e.stack.env["color"];e.stack.env["color"]=r;var n=e.ParseArg(t);if(a){e.stack.env["color"]=a}else{delete e.stack.env["color"]}var o=e.create("node","mstyle",[n],{mathcolor:r});e.Push(o)}};new a.CommandMap("colorv2",{color:"Color"},t.ColorV2Methods);t.ColorConfiguration=n.Configuration.create("colorv2",{handler:{macro:["colorv2"]}})},87542:function(e,t,r){var a=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],a=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&a>=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};var o;Object.defineProperty(t,"__esModule",{value:true});t.ConfigMacrosConfiguration=void 0;var i=r(23644);var s=r(36059);var l=r(92715);var u=n(r(96004));var c=r(56941);var f=n(r(57860));var d=r(40421);var p="configmacros-map";var m="configmacros-env-map";function h(e){new l.CommandMap(p,{},{});new l.EnvironmentMap(m,u.default.environment,{},{});e.append(i.Configuration.local({handler:{macro:[p],environment:[m]},priority:3}))}function v(e,t){g(t);y(t)}function g(e){var t,r;var n=e.parseOptions.handlers.retrieve(p);var o=e.parseOptions.options.macros;try{for(var i=a(Object.keys(o)),s=i.next();!s.done;s=i.next()){var l=s.value;var u=typeof o[l]==="string"?[o[l]]:o[l];var d=Array.isArray(u[2])?new c.Macro(l,f.default.MacroWithTemplate,u.slice(0,2).concat(u[2])):new c.Macro(l,f.default.Macro,u);n.add(l,d)}}catch(m){t={error:m}}finally{try{if(s&&!s.done&&(r=i.return))r.call(i)}finally{if(t)throw t.error}}}function y(e){var t,r;var n=e.parseOptions.handlers.retrieve(m);var o=e.parseOptions.options.environments;try{for(var i=a(Object.keys(o)),s=i.next();!s.done;s=i.next()){var l=s.value;n.add(l,new c.Macro(l,f.default.BeginEnv,[true].concat(o[l])))}}catch(u){t={error:u}}finally{try{if(s&&!s.done&&(r=i.return))r.call(i)}finally{if(t)throw t.error}}}t.ConfigMacrosConfiguration=i.Configuration.create("configmacros",{init:h,config:v,items:(o={},o[d.BeginEnvItem.prototype.kind]=d.BeginEnvItem,o),options:{macros:(0,s.expandable)({}),environments:(0,s.expandable)({})}})},31334:function(e,t,r){var a=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();var n=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),n,o=[],i;try{while((t===void 0||t-- >0)&&!(n=a.next()).done)o.push(n.value)}catch(s){i={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(i)throw i.error}}return o};var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};var i;Object.defineProperty(t,"__esModule",{value:true});t.EmpheqConfiguration=t.EmpheqMethods=t.EmpheqBeginItem=void 0;var s=r(23644);var l=r(92715);var u=o(r(3378));var c=o(r(48406));var f=r(5065);var d=r(75734);var p=function(e){a(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(t.prototype,"kind",{get:function(){return"empheq-begin"},enumerable:false,configurable:true});t.prototype.checkItem=function(t){if(t.isKind("end")&&t.getName()===this.getName()){this.setProperty("end",false)}return e.prototype.checkItem.call(this,t)};return t}(f.BeginItem);t.EmpheqBeginItem=p;t.EmpheqMethods={Empheq:function(e,t){if(e.stack.env.closing===t.getName()){delete e.stack.env.closing;e.Push(e.itemFactory.create("end").setProperty("name",e.stack.global.empheq));e.stack.global.empheq="";var r=e.stack.Top();d.EmpheqUtil.adjustTable(r,e);e.Push(e.itemFactory.create("end").setProperty("name","empheq"))}else{u.default.checkEqnEnv(e);delete e.stack.global.eqnenv;var a=e.GetBrackets("\\begin{"+t.getName()+"}")||"";var o=n((e.GetArgument("\\begin{"+t.getName()+"}")||"").split(/=/),2),i=o[0],s=o[1];if(!d.EmpheqUtil.checkEnv(i)){throw new c.default("UnknownEnv",'Unknown environment "%1"',i)}if(a){t.setProperties(d.EmpheqUtil.splitOptions(a,{left:1,right:1}))}e.stack.global.empheq=i;e.string="\\begin{"+i+"}"+(s?"{"+s+"}":"")+e.string.slice(e.i);e.i=0;e.Push(t)}},EmpheqMO:function(e,t,r){e.Push(e.create("token","mo",{},r))},EmpheqDelim:function(e,t){var r=e.GetDelimiter(t);e.Push(e.create("token","mo",{stretchy:true,symmetric:true},r))}};new l.EnvironmentMap("empheq-env",d.EmpheqUtil.environment,{empheq:["Empheq","empheq"]},t.EmpheqMethods);new l.CommandMap("empheq-macros",{empheqlbrace:["EmpheqMO","{"],empheqrbrace:["EmpheqMO","}"],empheqlbrack:["EmpheqMO","["],empheqrbrack:["EmpheqMO","]"],empheqlangle:["EmpheqMO","⟨"],empheqrangle:["EmpheqMO","⟩"],empheqlparen:["EmpheqMO","("],empheqrparen:["EmpheqMO",")"],empheqlvert:["EmpheqMO","|"],empheqrvert:["EmpheqMO","|"],empheqlVert:["EmpheqMO","‖"],empheqrVert:["EmpheqMO","‖"],empheqlfloor:["EmpheqMO","⌊"],empheqrfloor:["EmpheqMO","⌋"],empheqlceil:["EmpheqMO","⌈"],empheqrceil:["EmpheqMO","⌉"],empheqbiglbrace:["EmpheqMO","{"],empheqbigrbrace:["EmpheqMO","}"],empheqbiglbrack:["EmpheqMO","["],empheqbigrbrack:["EmpheqMO","]"],empheqbiglangle:["EmpheqMO","⟨"],empheqbigrangle:["EmpheqMO","⟩"],empheqbiglparen:["EmpheqMO","("],empheqbigrparen:["EmpheqMO",")"],empheqbiglvert:["EmpheqMO","|"],empheqbigrvert:["EmpheqMO","|"],empheqbiglVert:["EmpheqMO","‖"],empheqbigrVert:["EmpheqMO","‖"],empheqbiglfloor:["EmpheqMO","⌊"],empheqbigrfloor:["EmpheqMO","⌋"],empheqbiglceil:["EmpheqMO","⌈"],empheqbigrceil:["EmpheqMO","⌉"],empheql:"EmpheqDelim",empheqr:"EmpheqDelim",empheqbigl:"EmpheqDelim",empheqbigr:"EmpheqDelim"},t.EmpheqMethods);t.EmpheqConfiguration=s.Configuration.create("empheq",{handler:{macro:["empheq-macros"],environment:["empheq-env"]},items:(i={},i[p.prototype.kind]=p,i)})},75734:function(e,t,r){var a=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),n,o=[],i;try{while((t===void 0||t-- >0)&&!(n=a.next()).done)o.push(n.value)}catch(s){i={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(i)throw i.error}}return o};var n=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var a=0,n=t.length,o;a=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.EmpheqUtil=void 0;var s=i(r(3378));var l=i(r(42880));t.EmpheqUtil={environment:function(e,t,r,o){var i=o[0];var s=e.itemFactory.create(i+"-begin").setProperties({name:t,end:i});e.Push(r.apply(void 0,n([e,s],a(o.slice(1)),false)))},splitOptions:function(e,t){if(t===void 0){t=null}return s.default.keyvalOptions(e,t,true)},columnCount:function(e){var t,r;var a=0;try{for(var n=o(e.childNodes),i=n.next();!i.done;i=n.next()){var s=i.value;var l=s.childNodes.length-(s.isKind("mlabeledtr")?1:0);if(l>a)a=l}}catch(u){t={error:u}}finally{try{if(i&&!i.done&&(r=n.return))r.call(n)}finally{if(t)throw t.error}}return a},cellBlock:function(e,t,r,a){var n,i;var s=r.create("node","mpadded",[],{height:0,depth:0,voffset:"-1height"});var u=new l.default(e,r.stack.env,r.configuration);var c=u.mml();if(a&&u.configuration.tags.label){u.configuration.tags.currentTag.env=a;u.configuration.tags.getTag(true)}try{for(var f=o(c.isInferred?c.childNodes:[c]),d=f.next();!d.done;d=f.next()){var p=d.value;s.appendChild(p)}}catch(m){n={error:m}}finally{try{if(d&&!d.done&&(i=f.return))i.call(f)}finally{if(n)throw n.error}}s.appendChild(r.create("node","mphantom",[r.create("node","mpadded",[t],{width:0})]));return s},topRowTable:function(e,t){var r=s.default.copyNode(e,t);r.setChildren(r.childNodes.slice(0,1));r.attributes.set("align","baseline 1");return e.factory.create("mphantom",{},[t.create("node","mpadded",[r],{width:0})])},rowspanCell:function(e,t,r,a,n){e.appendChild(a.create("node","mpadded",[this.cellBlock(t,s.default.copyNode(r,a),a,n),this.topRowTable(r,a)],{height:0,depth:0,voffset:"height"}))},left:function(e,t,r,a,n){var i,s;if(n===void 0){n=""}e.attributes.set("columnalign","right "+(e.attributes.get("columnalign")||""));e.attributes.set("columnspacing","0em "+(e.attributes.get("columnspacing")||""));var l;try{for(var u=o(e.childNodes.slice(0).reverse()),c=u.next();!c.done;c=u.next()){var f=c.value;l=a.create("node","mtd");f.childNodes.unshift(l);l.parent=f;if(f.isKind("mlabeledtr")){f.childNodes[0]=f.childNodes[1];f.childNodes[1]=l}}}catch(d){i={error:d}}finally{try{if(c&&!c.done&&(s=u.return))s.call(u)}finally{if(i)throw i.error}}this.rowspanCell(l,r,t,a,n)},right:function(e,r,a,n,o){if(o===void 0){o=""}if(e.childNodes.length===0){e.appendChild(n.create("node","mtr"))}var i=t.EmpheqUtil.columnCount(e);var s=e.childNodes[0];while(s.childNodes.length{Object.defineProperty(t,"__esModule",{value:true});t.GensymbConfiguration=void 0;var a=r(23644);var n=r(48948);var o=r(92715);function i(e,t){var r=t.attributes||{};r.mathvariant=n.TexConstant.Variant.NORMAL;r.class="MathML-Unit";var a=e.create("token","mi",r,t.char);e.Push(a)}new o.CharacterMap("gensymb-symbols",i,{ohm:"Ω",degree:"°",celsius:"℃",perthousand:"‰",micro:"µ"});t.GensymbConfiguration=a.Configuration.create("gensymb",{handler:{macro:["gensymb-symbols"]}})},75259:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.HtmlConfiguration=void 0;var n=r(23644);var o=r(92715);var i=a(r(53582));new o.CommandMap("html_macros",{href:"Href",class:"Class",style:"Style",cssId:"Id"},i.default);t.HtmlConfiguration=n.Configuration.create("html",{handler:{macro:["html_macros"]}})},53582:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var n=a(r(72895));var o={};o.Href=function(e,t){var r=e.GetArgument(t);var a=i(e,t);n.default.setAttribute(a,"href",r);e.Push(a)};o.Class=function(e,t){var r=e.GetArgument(t);var a=i(e,t);var o=n.default.getAttribute(a,"class");if(o){r=o+" "+r}n.default.setAttribute(a,"class",r);e.Push(a)};o.Style=function(e,t){var r=e.GetArgument(t);var a=i(e,t);var o=n.default.getAttribute(a,"style");if(o){if(r.charAt(r.length-1)!==";"){r+=";"}r=o+" "+r}n.default.setAttribute(a,"style",r);e.Push(a)};o.Id=function(e,t){var r=e.GetArgument(t);var a=i(e,t);n.default.setAttribute(a,"id",r);e.Push(a)};var i=function(e,t){var r=e.ParseArg(t);if(!n.default.isInferred(r)){return r}var a=n.default.getChildren(r);if(a.length===1){return a[0]}var o=e.create("node","mrow");n.default.copyChildren(r,o);n.default.copyAttributes(r,o);return o};t["default"]=o},56379:function(e,t,r){var a=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],a=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&a>=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};var o;Object.defineProperty(t,"__esModule",{value:true});t.MathtoolsConfiguration=t.fixPrescripts=t.PAIREDDELIMS=void 0;var i=r(23644);var s=r(92715);var l=n(r(72895));var u=r(36059);r(44621);var c=r(71893);var f=r(47778);var d=r(14508);t.PAIREDDELIMS="mathtools-paired-delims";function p(e){new s.CommandMap(t.PAIREDDELIMS,{},{});e.append(i.Configuration.local({handler:{macro:[t.PAIREDDELIMS]},priority:-5}))}function m(e,t){var r,n;var o=t.parseOptions;var i=o.options.mathtools.pairedDelimiters;try{for(var s=a(Object.keys(i)),l=s.next();!l.done;l=s.next()){var u=l.value;c.MathtoolsUtil.addPairedDelims(o,u,i[u])}}catch(d){r={error:d}}finally{try{if(l&&!l.done&&(n=s.return))n.call(s)}finally{if(r)throw r.error}}(0,f.MathtoolsTagFormat)(e,t)}function h(e){var t,r,n,o,i,s;var u=e.data;try{for(var c=a(u.getList("mmultiscripts")),f=c.next();!f.done;f=c.next()){var d=f.value;if(!d.getProperty("fixPrescript"))continue;var p=l.default.getChildren(d);var m=0;try{for(var h=(n=void 0,a([1,2])),v=h.next();!v.done;v=h.next()){var g=v.value;if(!p[g]){l.default.setChild(d,g,u.nodeFactory.create("node","none"));m++}}}catch(x){n={error:x}}finally{try{if(v&&!v.done&&(o=h.return))o.call(h)}finally{if(n)throw n.error}}try{for(var y=(i=void 0,a([4,5])),b=y.next();!b.done;b=y.next()){var g=b.value;if(l.default.isType(p[g],"mrow")&&l.default.getChildren(p[g]).length===0){l.default.setChild(d,g,u.nodeFactory.create("node","none"))}}}catch(_){i={error:_}}finally{try{if(b&&!b.done&&(s=y.return))s.call(y)}finally{if(i)throw i.error}}if(m===2){p.splice(1,2)}}}catch(w){t={error:w}}finally{try{if(f&&!f.done&&(r=c.return))r.call(c)}finally{if(t)throw t.error}}}t.fixPrescripts=h;t.MathtoolsConfiguration=i.Configuration.create("mathtools",{handler:{macro:["mathtools-macros","mathtools-delimiters"],environment:["mathtools-environments"],delimiter:["mathtools-delimiters"],character:["mathtools-characters"]},items:(o={},o[d.MultlinedItem.prototype.kind]=d.MultlinedItem,o),init:p,config:m,postprocessors:[[h,-6]],options:{mathtools:{multlinegap:"1em","multlined-pos":"c","firstline-afterskip":"","lastline-preskip":"","smallmatrix-align":"c",shortvdotsadjustabove:".2em",shortvdotsadjustbelow:".2em",centercolon:false,"centercolon-offset":".04em","thincolon-dx":"-.04em","thincolon-dw":"-.08em","use-unicode":false,"prescript-sub-format":"","prescript-sup-format":"","prescript-arg-format":"","allow-mathtoolsset":true,pairedDelimiters:(0,u.expandable)({}),tagforms:(0,u.expandable)({})}}})},14508:function(e,t,r){var a=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.MultlinedItem=void 0;var o=r(30354);var i=n(r(72895));var s=r(48948);var l=function(e){a(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(t.prototype,"kind",{get:function(){return"multlined"},enumerable:false,configurable:true});t.prototype.EndTable=function(){if(this.Size()||this.row.length){this.EndEntry();this.EndRow()}if(this.table.length>1){var t=this.factory.configuration.options.mathtools;var r=t.multlinegap;var a=t["firstline-afterskip"]||r;var n=t["lastline-preskip"]||r;var o=i.default.getChildren(this.table[0])[0];if(i.default.getAttribute(o,"columnalign")!==s.TexConstant.Align.RIGHT){o.appendChild(this.create("node","mspace",[],{width:a}))}var l=i.default.getChildren(this.table[this.table.length-1])[0];if(i.default.getAttribute(l,"columnalign")!==s.TexConstant.Align.LEFT){var u=i.default.getChildren(l)[0];u.childNodes.unshift(null);var c=this.create("node","mspace",[],{width:n});i.default.setChild(u,0,c)}}e.prototype.EndTable.call(this)};return t}(o.MultlineItem);t.MultlinedItem=l},44621:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var n=a(r(96004));var o=r(92715);var i=r(48948);var s=r(27899);new o.CommandMap("mathtools-macros",{shoveleft:["HandleShove",i.TexConstant.Align.LEFT],shoveright:["HandleShove",i.TexConstant.Align.RIGHT],xleftrightarrow:["xArrow",8596,10,10],xLeftarrow:["xArrow",8656,12,7],xRightarrow:["xArrow",8658,7,12],xLeftrightarrow:["xArrow",8660,12,12],xhookleftarrow:["xArrow",8617,10,5],xhookrightarrow:["xArrow",8618,5,10],xmapsto:["xArrow",8614,10,10],xrightharpoondown:["xArrow",8641,5,10],xleftharpoondown:["xArrow",8637,10,5],xrightleftharpoons:["xArrow",8652,10,10],xrightharpoonup:["xArrow",8640,5,10],xleftharpoonup:["xArrow",8636,10,5],xleftrightharpoons:["xArrow",8651,10,10],mathllap:["MathLap","l",false],mathrlap:["MathLap","r",false],mathclap:["MathLap","c",false],clap:["MtLap","c"],textllap:["MtLap","l"],textrlap:["MtLap","r"],textclap:["MtLap","c"],cramped:"Cramped",crampedllap:["MathLap","l",true],crampedrlap:["MathLap","r",true],crampedclap:["MathLap","c",true],crampedsubstack:["Macro","\\begin{crampedsubarray}{c}#1\\end{crampedsubarray}",1],mathmbox:"MathMBox",mathmakebox:"MathMakeBox",overbracket:"UnderOverBracket",underbracket:"UnderOverBracket",refeq:"HandleRef",MoveEqLeft:["Macro","\\hspace{#1em}&\\hspace{-#1em}",1,"2"],Aboxed:"Aboxed",ArrowBetweenLines:"ArrowBetweenLines",vdotswithin:"VDotsWithin",shortvdotswithin:"ShortVDotsWithin",MTFlushSpaceAbove:"FlushSpaceAbove",MTFlushSpaceBelow:"FlushSpaceBelow",DeclarePairedDelimiter:"DeclarePairedDelimiter",DeclarePairedDelimiterX:"DeclarePairedDelimiterX",DeclarePairedDelimiterXPP:"DeclarePairedDelimiterXPP",DeclarePairedDelimiters:"DeclarePairedDelimiter",DeclarePairedDelimitersX:"DeclarePairedDelimiterX",DeclarePairedDelimitersXPP:"DeclarePairedDelimiterXPP",centercolon:["CenterColon",true,true],ordinarycolon:["CenterColon",false],MTThinColon:["CenterColon",true,true,true],coloneqq:["Relation",":=","≔"],Coloneqq:["Relation","::=","⩴"],coloneq:["Relation",":-"],Coloneq:["Relation","::-"],eqqcolon:["Relation","=:","≕"],Eqqcolon:["Relation","=::"],eqcolon:["Relation","-:","∹"],Eqcolon:["Relation","-::"],colonapprox:["Relation",":\\approx"],Colonapprox:["Relation","::\\approx"],colonsim:["Relation",":\\sim"],Colonsim:["Relation","::\\sim"],dblcolon:["Relation","::","∷"],nuparrow:["NArrow","↑",".06em"],ndownarrow:["NArrow","↓",".25em"],bigtimes:["Macro","\\mathop{\\Large\\kern-.1em\\boldsymbol{\\times}\\kern-.1em}"],splitfrac:["SplitFrac",false],splitdfrac:["SplitFrac",true],xmathstrut:"XMathStrut",prescript:"Prescript",newtagform:["NewTagForm",false],renewtagform:["NewTagForm",true],usetagform:"UseTagForm",adjustlimits:["MacroWithTemplate","\\mathop{{#1}\\vphantom{{#3}}}_{{#2}\\vphantom{{#4}}}\\mathop{{#3}\\vphantom{{#1}}}_{{#4}\\vphantom{{#2}}}",4,,"_",,"_"],mathtoolsset:"SetOptions"},s.MathtoolsMethods);new o.EnvironmentMap("mathtools-environments",n.default.environment,{dcases:["Array",null,"\\{","","ll",null,".2em","D"],rcases:["Array",null,"","\\}","ll",null,".2em"],drcases:["Array",null,"","\\}","ll",null,".2em","D"],"dcases*":["Cases",null,"{","","D"],"rcases*":["Cases",null,"","}"],"drcases*":["Cases",null,"","}","D"],"cases*":["Cases",null,"{",""],"matrix*":["MtMatrix",null,null,null],"pmatrix*":["MtMatrix",null,"(",")"],"bmatrix*":["MtMatrix",null,"[","]"],"Bmatrix*":["MtMatrix",null,"\\{","\\}"],"vmatrix*":["MtMatrix",null,"\\vert","\\vert"],"Vmatrix*":["MtMatrix",null,"\\Vert","\\Vert"],"smallmatrix*":["MtSmallMatrix",null,null,null],psmallmatrix:["MtSmallMatrix",null,"(",")","c"],"psmallmatrix*":["MtSmallMatrix",null,"(",")"],bsmallmatrix:["MtSmallMatrix",null,"[","]","c"],"bsmallmatrix*":["MtSmallMatrix",null,"[","]"],Bsmallmatrix:["MtSmallMatrix",null,"\\{","\\}","c"],"Bsmallmatrix*":["MtSmallMatrix",null,"\\{","\\}"],vsmallmatrix:["MtSmallMatrix",null,"\\vert","\\vert","c"],"vsmallmatrix*":["MtSmallMatrix",null,"\\vert","\\vert"],Vsmallmatrix:["MtSmallMatrix",null,"\\Vert","\\Vert","c"],"Vsmallmatrix*":["MtSmallMatrix",null,"\\Vert","\\Vert"],crampedsubarray:["Array",null,null,null,null,"0em","0.1em","S'",1],multlined:"MtMultlined",spreadlines:["SpreadLines",true],lgathered:["AmsEqnArray",null,null,null,"l",null,".5em","D"],rgathered:["AmsEqnArray",null,null,null,"r",null,".5em","D"]},s.MathtoolsMethods);new o.DelimiterMap("mathtools-delimiters",n.default.delimiter,{"\\lparen":"(","\\rparen":")"});new o.CommandMap("mathtools-characters",{":":["CenterColon",true]},s.MathtoolsMethods)},27899:function(e,t,r){var a=this&&this.__assign||function(){a=Object.assign||function(e){for(var t,r=1,a=arguments.length;r0)&&!(n=a.next()).done)o.push(n.value)}catch(s){i={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(i)throw i.error}}return o};var o=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],a=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&a>=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.MathtoolsMethods=void 0;var s=i(r(3378));var l=r(42828);var u=i(r(40871));var c=i(r(42880));var f=i(r(48406));var d=i(r(72895));var p=r(18426);var m=r(77130);var h=r(36059);var v=i(r(97981));var g=i(r(57860));var y=r(71893);t.MathtoolsMethods={MtMatrix:function(e,r,a,n){var o=e.GetBrackets("\\begin{".concat(r.getName(),"}"),"c");return t.MathtoolsMethods.Array(e,r,a,n,o)},MtSmallMatrix:function(e,r,a,n,o){if(!o){o=e.GetBrackets("\\begin{".concat(r.getName(),"}"),e.options.mathtools["smallmatrix-align"])}return t.MathtoolsMethods.Array(e,r,a,n,o,s.default.Em(1/3),".2em","S",1)},MtMultlined:function(e,t){var r;var a="\\begin{".concat(t.getName(),"}");var o=e.GetBrackets(a,e.options.mathtools["multlined-pos"]||"c");var i=o?e.GetBrackets(a,""):"";if(o&&!o.match(/^[cbt]$/)){r=n([o,i],2),i=r[0],o=r[1]}e.Push(t);var l=e.itemFactory.create("multlined",e,t);l.arraydef={displaystyle:true,rowspacing:".5em",width:i||"auto",columnwidth:"100%"};return s.default.setArrayAlign(l,o||"c")},HandleShove:function(e,t,r){var a=e.stack.Top();if(a.kind!=="multline"&&a.kind!=="multlined"){throw new f.default("CommandInMultlined","%1 can only appear within the multline or multlined environments",t)}if(a.Size()){throw new f.default("CommandAtTheBeginingOfLine","%1 must come at the beginning of the line",t)}a.setProperty("shove",r);var n=e.GetBrackets(t);var o=e.ParseArg(t);if(n){var i=e.create("node","mrow",[]);var s=e.create("node","mspace",[],{width:n});if(r==="left"){i.appendChild(s);i.appendChild(o)}else{i.appendChild(o);i.appendChild(s)}o=i}e.Push(o)},SpreadLines:function(e,t){var r,a;if(e.stack.env.closing===t.getName()){delete e.stack.env.closing;var n=e.stack.Pop();var i=n.toMml();var s=n.getProperty("spread");if(i.isInferred){try{for(var l=o(d.default.getChildren(i)),u=l.next();!u.done;u=l.next()){var c=u.value;y.MathtoolsUtil.spreadLines(c,s)}}catch(f){r={error:f}}finally{try{if(u&&!u.done&&(a=l.return))a.call(l)}finally{if(r)throw r.error}}}else{y.MathtoolsUtil.spreadLines(i,s)}e.Push(i)}else{var s=e.GetDimen("\\begin{".concat(t.getName(),"}"));t.setProperty("spread",s);e.Push(t)}},Cases:function(e,t,r,a,n){var o=e.itemFactory.create("array").setProperty("casesEnv",t.getName());o.arraydef={rowspacing:".2em",columnspacing:"1em",columnalign:"left"};if(n==="D"){o.arraydef.displaystyle=true}o.setProperties({open:r,close:a});e.Push(t);return o},MathLap:function(e,t,r,n){var o=e.GetBrackets(t,"").trim();var i=e.create("node","mstyle",[e.create("node","mpadded",[e.ParseArg(t)],a({width:0},r==="r"?{}:{lspace:r==="l"?"-1width":"-.5width"}))],{"data-cramped":n});y.MathtoolsUtil.setDisplayLevel(i,o);e.Push(e.create("node","TeXAtom",[i]))},Cramped:function(e,t){var r=e.GetBrackets(t,"").trim();var a=e.ParseArg(t);var n=e.create("node","mstyle",[a],{"data-cramped":true});y.MathtoolsUtil.setDisplayLevel(n,r);e.Push(n)},MtLap:function(e,t,r){var a=s.default.internalMath(e,e.GetArgument(t),0);var n=e.create("node","mpadded",a,{width:0});if(r!=="r"){d.default.setAttribute(n,"lspace",r==="l"?"-1width":"-.5width")}e.Push(n)},MathMakeBox:function(e,t){var r=e.GetBrackets(t);var a=e.GetBrackets(t,"c");var n=e.create("node","mpadded",[e.ParseArg(t)]);if(r){d.default.setAttribute(n,"width",r)}var o=(0,h.lookup)(a,{c:"center",r:"right"},"");if(o){d.default.setAttribute(n,"data-align",o)}e.Push(n)},MathMBox:function(e,t){e.Push(e.create("node","mrow",[e.ParseArg(t)]))},UnderOverBracket:function(e,t){var r=(0,m.length2em)(e.GetBrackets(t,".1em"),.1);var a=e.GetBrackets(t,".2em");var o=e.GetArgument(t);var i=n(t.charAt(1)==="o"?["over","accent","bottom"]:["under","accentunder","top"],3),l=i[0],u=i[1],f=i[2];var p=(0,m.em)(r);var h=new c.default(o,e.stack.env,e.configuration).mml();var v=new c.default(o,e.stack.env,e.configuration).mml();var g=e.create("node","mpadded",[e.create("node","mphantom",[v])],{style:"border: ".concat(p," solid; border-").concat(f,": none"),height:a,depth:0});var y=s.default.underOver(e,h,g,l,true);var b=d.default.getChildAt(d.default.getChildAt(y,0),0);d.default.setAttribute(b,u,true);e.Push(y)},Aboxed:function(e,t){var r=y.MathtoolsUtil.checkAlignment(e,t);if(r.row.length%2===1){r.row.push(e.create("node","mtd",[]))}var a=e.GetArgument(t);var n=e.string.substr(e.i);e.string=a+"&&\\endAboxed";e.i=0;var o=e.GetUpTo(t,"&");var i=e.GetUpTo(t,"&");e.GetUpTo(t,"\\endAboxed");var l=s.default.substituteArgs(e,[o,i],"\\rlap{\\boxed{#1{}#2}}\\kern.267em\\phantom{#1}&\\phantom{{}#2}\\kern.267em");e.string=l+n;e.i=0},ArrowBetweenLines:function(e,t){var r=y.MathtoolsUtil.checkAlignment(e,t);if(r.Size()||r.row.length){throw new f.default("BetweenLines","%1 must be on a row by itself",t)}var a=e.GetStar();var n=e.GetBrackets(t,"\\Updownarrow");if(a){r.EndEntry();r.EndEntry()}var o=a?"\\quad"+n:n+"\\quad";var i=new c.default(o,e.stack.env,e.configuration).mml();e.Push(i);r.EndEntry();r.EndRow()},VDotsWithin:function(e,t){var r=e.stack.Top();var n=r.getProperty("flushspaceabove")===r.table.length;var o="\\mmlToken{mi}{}"+e.GetArgument(t)+"\\mmlToken{mi}{}";var i=new c.default(o,e.stack.env,e.configuration).mml();var s=e.create("node","mpadded",[e.create("node","mpadded",[e.create("node","mo",[e.create("text","⋮")])],a({width:0,lspace:"-.5width"},n?{height:"-.6em",voffset:"-.18em"}:{})),e.create("node","mphantom",[i])],{lspace:".5width"});e.Push(s)},ShortVDotsWithin:function(e,r){var a=e.stack.Top();var n=e.GetStar();t.MathtoolsMethods.FlushSpaceAbove(e,"\\MTFlushSpaceAbove");!n&&a.EndEntry();t.MathtoolsMethods.VDotsWithin(e,"\\vdotswithin");n&&a.EndEntry();t.MathtoolsMethods.FlushSpaceBelow(e,"\\MTFlushSpaceBelow")},FlushSpaceAbove:function(e,t){var r=y.MathtoolsUtil.checkAlignment(e,t);r.setProperty("flushspaceabove",r.table.length);r.addRowSpacing("-"+e.options.mathtools["shortvdotsadjustabove"])},FlushSpaceBelow:function(e,t){var r=y.MathtoolsUtil.checkAlignment(e,t);r.Size()&&r.EndEntry();r.EndRow();r.addRowSpacing("-"+e.options.mathtools["shortvdotsadjustbelow"])},PairedDelimiters:function(e,t,r,a,o,i,l,u){if(o===void 0){o="#1"}if(i===void 0){i=1}if(l===void 0){l=""}if(u===void 0){u=""}var c=e.GetStar();var f=c?"":e.GetBrackets(t);var d=n(c?["\\left","\\right"]:f?[f+"l",f+"r"]:["",""],2),p=d[0],m=d[1];var h=c?"\\middle":f||"";if(i){var v=[];for(var g=v.length;g=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),n,o=[],i;try{while((t===void 0||t-- >0)&&!(n=a.next()).done)o.push(n.value)}catch(s){i={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(i)throw i.error}}return o};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.MathtoolsTagFormat=void 0;var s=i(r(48406));var l=r(56711);var u=0;function c(e,t){var r=t.parseOptions.options.tags;if(r!=="base"&&e.tags.hasOwnProperty(r)){l.TagsFactory.add(r,e.tags[r])}var i=l.TagsFactory.create(t.parseOptions.options.tags).constructor;var c=function(e){a(r,e);function r(){var r,a;var o=e.call(this)||this;o.mtFormats=new Map;o.mtCurrent=null;var i=t.parseOptions.options.mathtools.tagforms;try{for(var l=n(Object.keys(i)),u=l.next();!u.done;u=l.next()){var c=u.value;if(!Array.isArray(i[c])||i[c].length!==3){throw new s.default("InvalidTagFormDef",'The tag form definition for "%1" should be an array fo three strings',c)}o.mtFormats.set(c,i[c])}}catch(f){r={error:f}}finally{try{if(u&&!u.done&&(a=l.return))a.call(l)}finally{if(r)throw r.error}}return o}r.prototype.formatTag=function(t){if(this.mtCurrent){var r=o(this.mtCurrent,3),a=r[0],n=r[1],i=r[2];return i?"".concat(a).concat(i,"{").concat(t,"}").concat(n):"".concat(a).concat(t).concat(n)}return e.prototype.formatTag.call(this,t)};return r}(i);u++;var f="MathtoolsTags-"+u;l.TagsFactory.add(f,c);t.parseOptions.options.tags=f}t.MathtoolsTagFormat=c},71893:function(e,t,r){var a=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),n,o=[],i;try{while((t===void 0||t-- >0)&&!(n=a.next()).done)o.push(n.value)}catch(s){i={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(i)throw i.error}}return o};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.MathtoolsUtil=void 0;var o=r(5065);var i=n(r(3378));var s=n(r(42880));var l=n(r(48406));var u=r(56941);var c=r(36059);var f=r(27899);var d=r(56379);t.MathtoolsUtil={setDisplayLevel:function(e,t){if(!t)return;var r=a((0,c.lookup)(t,{"\\displaystyle":[true,0],"\\textstyle":[false,0],"\\scriptstyle":[false,1],"\\scriptscriptstyle":[false,2]},[null,null]),2),n=r[0],o=r[1];if(n!==null){e.attributes.set("displaystyle",n);e.attributes.set("scriptlevel",o)}},checkAlignment:function(e,t){var r=e.stack.Top();if(r.kind!==o.EqnArrayItem.prototype.kind){throw new l.default("NotInAlignment","%1 can only be used in aligment environments",t)}return r},addPairedDelims:function(e,t,r){var a=e.handlers.retrieve(d.PAIREDDELIMS);a.add(t,new u.Macro(t,f.MathtoolsMethods.PairedDelimiters,r))},spreadLines:function(e,t){if(!e.isKind("mtable"))return;var r=e.attributes.get("rowspacing");if(r){var a=i.default.dimen2em(t);r=r.split(/ /).map((function(e){return i.default.Em(Math.max(0,i.default.dimen2em(e)+a))})).join(" ")}else{r=t}e.attributes.set("rowspacing",r)},plusOrMinus:function(e,t){t=t.trim();if(!t.match(/^[-+]?(?:\d+(?:\.\d*)?|\.\d+)$/)){throw new l.default("NotANumber","Argument to %1 is not a number",e)}return t.match(/^[-+]/)?t:"+"+t},getScript:function(e,t,r){var a=i.default.trimSpaces(e.GetArgument(t));if(a===""){return e.create("node","none")}var n=e.options.mathtools["prescript-".concat(r,"-format")];n&&(a="".concat(n,"{").concat(a,"}"));return new s.default(a,e.stack.env,e.configuration).mml()}}},57434:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.MhchemConfiguration=void 0;var n=r(23644);var o=r(92715);var i=a(r(48406));var s=a(r(40871));var l=r(42828);var u=r(13090);var c={};c.Macro=s.default.Macro;c.xArrow=l.AmsMethods.xArrow;c.Machine=function(e,t,r){var a=e.GetArgument(t);var n;try{n=u.mhchemParser.toTex(a,r)}catch(o){throw new i.default(o[0],o[1])}e.string=n+e.string.substr(e.i);e.i=0};new o.CommandMap("mhchem",{ce:["Machine","ce"],pu:["Machine","pu"],longrightleftharpoons:["Macro","\\stackrel{\\textstyle{-}\\!\\!{\\rightharpoonup}}{\\smash{{\\leftharpoondown}\\!\\!{-}}}"],longRightleftharpoons:["Macro","\\stackrel{\\textstyle{-}\\!\\!{\\rightharpoonup}}{\\smash{\\leftharpoondown}}"],longLeftrightharpoons:["Macro","\\stackrel{\\textstyle\\vphantom{{-}}{\\rightharpoonup}}{\\smash{{\\leftharpoondown}\\!\\!{-}}}"],longleftrightarrows:["Macro","\\stackrel{\\longrightarrow}{\\smash{\\longleftarrow}\\Rule{0px}{.25em}{0px}}"],tripledash:["Macro","\\vphantom{-}\\raise2mu{\\kern2mu\\tiny\\text{-}\\kern1mu\\text{-}\\kern1mu\\text{-}\\kern2mu}"],xleftrightarrow:["xArrow",8596,6,6],xrightleftharpoons:["xArrow",8652,5,7],xRightleftharpoons:["xArrow",8652,5,7],xLeftrightharpoons:["xArrow",8652,5,7]},c);t.MhchemConfiguration=n.Configuration.create("mhchem",{handler:{macro:["mhchem"]}})},25112:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){if(a===undefined)a=r;var n=Object.getOwnPropertyDescriptor(t,r);if(!n||("get"in n?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,a,n)}:function(e,t,r,a){if(a===undefined)a=r;e[a]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))a(t,e,r);n(t,e);return t};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};var s;Object.defineProperty(t,"__esModule",{value:true});t.NewcommandConfiguration=void 0;var l=r(23644);var u=r(40421);var c=i(r(97981));r(2921);var f=i(r(96004));var d=o(r(92715));var p=function(e){new d.DelimiterMap(c.default.NEW_DELIMITER,f.default.delimiter,{});new d.CommandMap(c.default.NEW_COMMAND,{},{});new d.EnvironmentMap(c.default.NEW_ENVIRONMENT,f.default.environment,{},{});e.append(l.Configuration.local({handler:{character:[],delimiter:[c.default.NEW_DELIMITER],macro:[c.default.NEW_DELIMITER,c.default.NEW_COMMAND],environment:[c.default.NEW_ENVIRONMENT]},priority:-1}))};t.NewcommandConfiguration=l.Configuration.create("newcommand",{handler:{macro:["Newcommand-macros"]},items:(s={},s[u.BeginEnvItem.prototype.kind]=u.BeginEnvItem,s),options:{maxMacros:1e3},init:p})},40421:function(e,t,r){var a=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.BeginEnvItem=void 0;var o=n(r(48406));var i=r(34726);var s=function(e){a(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}Object.defineProperty(t.prototype,"kind",{get:function(){return"beginEnv"},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isOpen",{get:function(){return true},enumerable:false,configurable:true});t.prototype.checkItem=function(t){if(t.isKind("end")){if(t.getName()!==this.getName()){throw new o.default("EnvBadEnd","\\begin{%1} ended with \\end{%2}",this.getName(),t.getName())}return[[this.factory.create("mml",this.toMml())],true]}if(t.isKind("stop")){throw new o.default("EnvMissingEnd","Missing \\end{%1}",this.getName())}return e.prototype.checkItem.call(this,t)};return t}(i.BaseItem);t.BeginEnvItem=s},2921:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var n=a(r(57860));var o=r(92715);new o.CommandMap("Newcommand-macros",{newcommand:"NewCommand",renewcommand:"NewCommand",newenvironment:"NewEnvironment",renewenvironment:"NewEnvironment",def:"MacroDef",let:"Let"},n.default)},57860:function(e,t,r){var a=this&&this.__createBinding||(Object.create?function(e,t,r,a){if(a===undefined)a=r;var n=Object.getOwnPropertyDescriptor(t,r);if(!n||("get"in n?!t.__esModule:n.writable||n.configurable)){n={enumerable:true,get:function(){return t[r]}}}Object.defineProperty(e,a,n)}:function(e,t,r,a){if(a===undefined)a=r;e[a]=t[r]});var n=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)if(r!=="default"&&Object.prototype.hasOwnProperty.call(e,r))a(t,e,r);n(t,e);return t};var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var s=i(r(48406));var l=o(r(92715));var u=i(r(40871));var c=i(r(3378));var f=i(r(97981));var d={};d.NewCommand=function(e,t){var r=f.default.GetCsNameArgument(e,t);var a=f.default.GetArgCount(e,t);var n=e.GetBrackets(t);var o=e.GetArgument(t);f.default.addMacro(e,r,d.Macro,[o,a,n])};d.NewEnvironment=function(e,t){var r=c.default.trimSpaces(e.GetArgument(t));var a=f.default.GetArgCount(e,t);var n=e.GetBrackets(t);var o=e.GetArgument(t);var i=e.GetArgument(t);f.default.addEnvironment(e,r,d.BeginEnv,[true,o,i,a,n])};d.MacroDef=function(e,t){var r=f.default.GetCSname(e,t);var a=f.default.GetTemplate(e,t,"\\"+r);var n=e.GetArgument(t);!(a instanceof Array)?f.default.addMacro(e,r,d.Macro,[n,a]):f.default.addMacro(e,r,d.MacroWithTemplate,[n].concat(a))};d.Let=function(e,t){var r=f.default.GetCSname(e,t);var a=e.GetNext();if(a==="="){e.i++;a=e.GetNext()}var n=e.configuration.handlers;if(a==="\\"){t=f.default.GetCSname(e,t);var o=n.get("delimiter").lookup("\\"+t);if(o){f.default.addDelimiter(e,"\\"+r,o.char,o.attributes);return}var i=n.get("macro").applicable(t);if(!i){return}if(i instanceof l.MacroMap){var s=i.lookup(t);f.default.addMacro(e,r,s.func,s.args,s.symbol);return}o=i.lookup(t);var u=f.default.disassembleSymbol(r,o);var c=function(e,t){var r=[];for(var a=2;a0){return[i.toString()].concat(n)}else{return i}}e.i++}throw new o.default("MissingReplacementString","Missing replacement string for definition of %1",t)}e.GetTemplate=u;function c(e,t,r){if(r==null){return e.GetArgument(t)}var a=e.i;var n=0;var i=0;while(e.i{Object.defineProperty(t,"__esModule",{value:true});t.NoErrorsConfiguration=void 0;var a=r(23644);function n(e,t,r,a){var n=e.create("token","mtext",{},a.replace(/\n/g," "));var o=e.create("node","merror",[n],{"data-mjx-error":t,title:t});return o}t.NoErrorsConfiguration=a.Configuration.create("noerrors",{nodes:{error:n}})},75514:function(e,t,r){var a=this&&this.__values||function(e){var t=typeof Symbol==="function"&&Symbol.iterator,r=t&&e[t],a=0;if(r)return r.call(e);if(e&&typeof e.length==="number")return{next:function(){if(e&&a>=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(t,"__esModule",{value:true});t.NoUndefinedConfiguration=void 0;var n=r(23644);function o(e,t){var r,n;var o=e.create("text","\\"+t);var i=e.options.noundefined||{};var s={};try{for(var l=a(["color","background","size"]),u=l.next();!u.done;u=l.next()){var c=u.value;if(i[c]){s["math"+c]=i[c]}}}catch(f){r={error:f}}finally{try{if(u&&!u.done&&(n=l.return))n.call(l)}finally{if(r)throw r.error}}e.Push(e.create("node","mtext",[],s,o))}t.NoUndefinedConfiguration=n.Configuration.create("noundefined",{fallback:{macro:o},options:{noundefined:{color:"red",background:"",size:""}},priority:3})},60816:(e,t,r)=>{var a;Object.defineProperty(t,"__esModule",{value:true});t.PhysicsConfiguration=void 0;var n=r(23644);var o=r(53254);r(24193);t.PhysicsConfiguration=n.Configuration.create("physics",{handler:{macro:["Physics-automatic-bracing-macros","Physics-vector-macros","Physics-vector-mo","Physics-vector-mi","Physics-derivative-macros","Physics-expressions-macros","Physics-quick-quad-macros","Physics-bra-ket-macros","Physics-matrix-macros"],character:["Physics-characters"],environment:["Physics-aux-envs"]},items:(a={},a[o.AutoOpen.prototype.kind]=o.AutoOpen,a),options:{physics:{italicdiff:false,arrowdel:false}}})},53254:function(e,t,r){var a=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.AutoOpen=void 0;var o=r(34726);var i=n(r(3378));var s=n(r(72895));var l=n(r(42880));var u=function(e){a(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;t.openCount=0;return t}Object.defineProperty(t.prototype,"kind",{get:function(){return"auto open"},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"isOpen",{get:function(){return true},enumerable:false,configurable:true});t.prototype.toMml=function(){var t=this.factory.configuration.parser;var r=this.getProperty("right");if(this.getProperty("smash")){var a=e.prototype.toMml.call(this);var n=t.create("node","mpadded",[a],{height:0,depth:0});this.Clear();this.Push(t.create("node","TeXAtom",[n]))}if(r){this.Push(new l.default(r,t.stack.env,t.configuration).mml())}var o=i.default.fenced(this.factory.configuration,this.getProperty("open"),e.prototype.toMml.call(this),this.getProperty("close"),this.getProperty("big"));s.default.removeProperties(o,"open","close","texClass");return o};t.prototype.checkItem=function(t){if(t.isKind("mml")&&t.Size()===1){var r=t.toMml();if(r.isKind("mo")&&r.getText()===this.getProperty("open")){this.openCount++}}var a=t.getProperty("autoclose");if(a&&a===this.getProperty("close")&&!this.openCount--){if(this.getProperty("ignore")){this.Clear();return[[],true]}return[[this.toMml()],true]}return e.prototype.checkItem.call(this,t)};t.errors=Object.assign(Object.create(o.BaseItem.errors),{stop:["ExtraOrMissingDelims","Extra open or missing close delimiter"]});return t}(o.BaseItem);t.AutoOpen=u},24193:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var n=r(92715);var o=a(r(74844));var i=r(48948);var s=a(r(96004));var l=r(18426);new n.CommandMap("Physics-automatic-bracing-macros",{quantity:"Quantity",qty:"Quantity",pqty:["Quantity","(",")",true],bqty:["Quantity","[","]",true],vqty:["Quantity","|","|",true],Bqty:["Quantity","\\{","\\}",true],absolutevalue:["Quantity","|","|",true],abs:["Quantity","|","|",true],norm:["Quantity","\\|","\\|",true],evaluated:"Eval",eval:"Eval",order:["Quantity","(",")",true,"O",i.TexConstant.Variant.CALLIGRAPHIC],commutator:"Commutator",comm:"Commutator",anticommutator:["Commutator","\\{","\\}"],acomm:["Commutator","\\{","\\}"],poissonbracket:["Commutator","\\{","\\}"],pb:["Commutator","\\{","\\}"]},o.default);new n.CharacterMap("Physics-vector-mo",s.default.mathchar0mo,{dotproduct:["⋅",{mathvariant:i.TexConstant.Variant.BOLD}],vdot:["⋅",{mathvariant:i.TexConstant.Variant.BOLD}],crossproduct:"×",cross:"×",cp:"×",gradientnabla:["∇",{mathvariant:i.TexConstant.Variant.BOLD}]});new n.CharacterMap("Physics-vector-mi",s.default.mathchar0mi,{real:["ℜ",{mathvariant:i.TexConstant.Variant.NORMAL}],imaginary:["ℑ",{mathvariant:i.TexConstant.Variant.NORMAL}]});new n.CommandMap("Physics-vector-macros",{vnabla:"Vnabla",vectorbold:"VectorBold",vb:"VectorBold",vectorarrow:["StarMacro",1,"\\vec{\\vb","{#1}}"],va:["StarMacro",1,"\\vec{\\vb","{#1}}"],vectorunit:["StarMacro",1,"\\hat{\\vb","{#1}}"],vu:["StarMacro",1,"\\hat{\\vb","{#1}}"],gradient:["OperatorApplication","\\vnabla","(","["],grad:["OperatorApplication","\\vnabla","(","["],divergence:["VectorOperator","\\vnabla\\vdot","(","["],div:["VectorOperator","\\vnabla\\vdot","(","["],curl:["VectorOperator","\\vnabla\\crossproduct","(","["],laplacian:["OperatorApplication","\\nabla^2","(","["]},o.default);new n.CommandMap("Physics-expressions-macros",{sin:"Expression",sinh:"Expression",arcsin:"Expression",asin:"Expression",cos:"Expression",cosh:"Expression",arccos:"Expression",acos:"Expression",tan:"Expression",tanh:"Expression",arctan:"Expression",atan:"Expression",csc:"Expression",csch:"Expression",arccsc:"Expression",acsc:"Expression",sec:"Expression",sech:"Expression",arcsec:"Expression",asec:"Expression",cot:"Expression",coth:"Expression",arccot:"Expression",acot:"Expression",exp:["Expression",false],log:"Expression",ln:"Expression",det:["Expression",false],Pr:["Expression",false],tr:["Expression",false],trace:["Expression",false,"tr"],Tr:["Expression",false],Trace:["Expression",false,"Tr"],rank:"NamedFn",erf:["Expression",false],Residue:["Macro","\\mathrm{Res}"],Res:["OperatorApplication","\\Residue","(","[","{"],principalvalue:["OperatorApplication","{\\cal P}"],pv:["OperatorApplication","{\\cal P}"],PV:["OperatorApplication","{\\rm P.V.}"],Re:["OperatorApplication","\\mathrm{Re}","{"],Im:["OperatorApplication","\\mathrm{Im}","{"],sine:["NamedFn","sin"],hypsine:["NamedFn","sinh"],arcsine:["NamedFn","arcsin"],asine:["NamedFn","asin"],cosine:["NamedFn","cos"],hypcosine:["NamedFn","cosh"],arccosine:["NamedFn","arccos"],acosine:["NamedFn","acos"],tangent:["NamedFn","tan"],hyptangent:["NamedFn","tanh"],arctangent:["NamedFn","arctan"],atangent:["NamedFn","atan"],cosecant:["NamedFn","csc"],hypcosecant:["NamedFn","csch"],arccosecant:["NamedFn","arccsc"],acosecant:["NamedFn","acsc"],secant:["NamedFn","sec"],hypsecant:["NamedFn","sech"],arcsecant:["NamedFn","arcsec"],asecant:["NamedFn","asec"],cotangent:["NamedFn","cot"],hypcotangent:["NamedFn","coth"],arccotangent:["NamedFn","arccot"],acotangent:["NamedFn","acot"],exponential:["NamedFn","exp"],logarithm:["NamedFn","log"],naturallogarithm:["NamedFn","ln"],determinant:["NamedFn","det"],Probability:["NamedFn","Pr"]},o.default);new n.CommandMap("Physics-quick-quad-macros",{qqtext:"Qqtext",qq:"Qqtext",qcomma:["Macro","\\qqtext*{,}"],qc:["Macro","\\qqtext*{,}"],qcc:["Qqtext","c.c."],qif:["Qqtext","if"],qthen:["Qqtext","then"],qelse:["Qqtext","else"],qotherwise:["Qqtext","otherwise"],qunless:["Qqtext","unless"],qgiven:["Qqtext","given"],qusing:["Qqtext","using"],qassume:["Qqtext","assume"],qsince:["Qqtext","since"],qlet:["Qqtext","let"],qfor:["Qqtext","for"],qall:["Qqtext","all"],qeven:["Qqtext","even"],qodd:["Qqtext","odd"],qinteger:["Qqtext","integer"],qand:["Qqtext","and"],qor:["Qqtext","or"],qas:["Qqtext","as"],qin:["Qqtext","in"]},o.default);new n.CommandMap("Physics-derivative-macros",{diffd:"DiffD",flatfrac:["Macro","\\left.#1\\middle/#2\\right.",2],differential:["Differential","\\diffd"],dd:["Differential","\\diffd"],variation:["Differential","\\delta"],var:["Differential","\\delta"],derivative:["Derivative",2,"\\diffd"],dv:["Derivative",2,"\\diffd"],partialderivative:["Derivative",3,"\\partial"],pderivative:["Derivative",3,"\\partial"],pdv:["Derivative",3,"\\partial"],functionalderivative:["Derivative",2,"\\delta"],fderivative:["Derivative",2,"\\delta"],fdv:["Derivative",2,"\\delta"]},o.default);new n.CommandMap("Physics-bra-ket-macros",{bra:"Bra",ket:"Ket",innerproduct:"BraKet",ip:"BraKet",braket:"BraKet",outerproduct:"KetBra",dyad:"KetBra",ketbra:"KetBra",op:"KetBra",expectationvalue:"Expectation",expval:"Expectation",ev:"Expectation",matrixelement:"MatrixElement",matrixel:"MatrixElement",mel:"MatrixElement"},o.default);new n.CommandMap("Physics-matrix-macros",{matrixquantity:"MatrixQuantity",mqty:"MatrixQuantity",pmqty:["Macro","\\mqty(#1)",1],Pmqty:["Macro","\\mqty*(#1)",1],bmqty:["Macro","\\mqty[#1]",1],vmqty:["Macro","\\mqty|#1|",1],smallmatrixquantity:["MatrixQuantity",true],smqty:["MatrixQuantity",true],spmqty:["Macro","\\smqty(#1)",1],sPmqty:["Macro","\\smqty*(#1)",1],sbmqty:["Macro","\\smqty[#1]",1],svmqty:["Macro","\\smqty|#1|",1],matrixdeterminant:["Macro","\\vmqty{#1}",1],mdet:["Macro","\\vmqty{#1}",1],smdet:["Macro","\\svmqty{#1}",1],identitymatrix:"IdentityMatrix",imat:"IdentityMatrix",xmatrix:"XMatrix",xmat:"XMatrix",zeromatrix:["Macro","\\xmat{0}{#1}{#2}",2],zmat:["Macro","\\xmat{0}{#1}{#2}",2],paulimatrix:"PauliMatrix",pmat:"PauliMatrix",diagonalmatrix:"DiagonalMatrix",dmat:"DiagonalMatrix",antidiagonalmatrix:["DiagonalMatrix",true],admat:["DiagonalMatrix",true]},o.default);new n.EnvironmentMap("Physics-aux-envs",s.default.environment,{smallmatrix:["Array",null,null,null,"c","0.333em",".2em","S",1]},o.default);new n.MacroMap("Physics-characters",{"|":["AutoClose",l.TEXCLASS.ORD],")":"AutoClose","]":"AutoClose"},o.default)},74844:function(e,t,r){var a=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),n,o=[],i;try{while((t===void 0||t-- >0)&&!(n=a.next()).done)o.push(n.value)}catch(s){i={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(i)throw i.error}}return o};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var o=n(r(40871));var i=n(r(42880));var s=n(r(48406));var l=r(18426);var u=n(r(3378));var c=n(r(72895));var f=r(38624);var d={};var p={"(":")","[":"]","{":"}","|":"|"};var m=/^(b|B)i(g{1,2})$/;d.Quantity=function(e,t,r,a,n,o,f){if(r===void 0){r="("}if(a===void 0){a=")"}if(n===void 0){n=false}if(o===void 0){o=""}if(f===void 0){f=""}var d=n?e.GetStar():false;var h=e.GetNext();var v=e.i;var g=null;if(h==="\\"){e.i++;g=e.GetCS();if(!g.match(m)){var y=e.create("node","mrow");e.Push(u.default.fenced(e.configuration,r,y,a));e.i=v;return}h=e.GetNext()}var b=p[h];if(n&&h!=="{"){throw new s.default("MissingArgFor","Missing argument for %1",e.currentCS)}if(!b){var y=e.create("node","mrow");e.Push(u.default.fenced(e.configuration,r,y,a));e.i=v;return}if(o){var x=e.create("token","mi",{texClass:l.TEXCLASS.OP},o);if(f){c.default.setAttribute(x,"mathvariant",f)}e.Push(e.itemFactory.create("fn",x))}if(h==="{"){var _=e.GetArgument(t);h=n?r:"\\{";b=n?a:"\\}";_=d?h+" "+_+" "+b:g?"\\"+g+"l"+h+" "+_+" "+"\\"+g+"r"+b:"\\left"+h+" "+_+" "+"\\right"+b;e.Push(new i.default(_,e.stack.env,e.configuration).mml());return}if(n){h=r;b=a}e.i++;e.Push(e.itemFactory.create("auto open").setProperties({open:h,close:b,big:g}))};d.Eval=function(e,t){var r=e.GetStar();var a=e.GetNext();if(a==="{"){var n=e.GetArgument(t);var o="\\left. "+(r?"\\smash{"+n+"}":n)+" "+"\\vphantom{\\int}\\right|";e.string=e.string.slice(0,e.i)+o+e.string.slice(e.i);return}if(a==="("||a==="["){e.i++;e.Push(e.itemFactory.create("auto open").setProperties({open:a,close:"|",smash:r,right:"\\vphantom{\\int}"}));return}throw new s.default("MissingArgFor","Missing argument for %1",e.currentCS)};d.Commutator=function(e,t,r,a){if(r===void 0){r="["}if(a===void 0){a="]"}var n=e.GetStar();var o=e.GetNext();var l=null;if(o==="\\"){e.i++;l=e.GetCS();if(!l.match(m)){throw new s.default("MissingArgFor","Missing argument for %1",e.currentCS)}o=e.GetNext()}if(o!=="{"){throw new s.default("MissingArgFor","Missing argument for %1",e.currentCS)}var u=e.GetArgument(t);var c=e.GetArgument(t);var f=u+","+c;f=n?r+" "+f+" "+a:l?"\\"+l+"l"+r+" "+f+" "+"\\"+l+"r"+a:"\\left"+r+" "+f+" "+"\\right"+a;e.Push(new i.default(f,e.stack.env,e.configuration).mml())};var h=[65,90];var v=[97,122];var g=[913,937];var y=[945,969];var b=[48,57];function x(e,t){return e>=t[0]&&e<=t[1]}function _(e,t,r,a){var n=e.configuration.parser;var o=f.NodeFactory.createToken(e,t,r,a);var i=a.codePointAt(0);if(a.length===1&&!n.stack.env.font&&n.stack.env.vectorFont&&(x(i,h)||x(i,v)||x(i,g)||x(i,b)||x(i,y)&&n.stack.env.vectorStar||c.default.getAttribute(o,"accent"))){c.default.setAttribute(o,"mathvariant",n.stack.env.vectorFont)}return o}d.VectorBold=function(e,t){var r=e.GetStar();var a=e.GetArgument(t);var n=e.configuration.nodeFactory.get("token");var o=e.stack.env.font;delete e.stack.env.font;e.configuration.nodeFactory.set("token",_);e.stack.env.vectorFont=r?"bold-italic":"bold";e.stack.env.vectorStar=r;var s=new i.default(a,e.stack.env,e.configuration).mml();if(o){e.stack.env.font=o}delete e.stack.env.vectorFont;delete e.stack.env.vectorStar;e.configuration.nodeFactory.set("token",n);e.Push(s)};d.StarMacro=function(e,t,r){var a=[];for(var n=3;n2&&l.length>2){c="^{"+(l.length-1)+"}";u=true}else if(o!=null){if(r>2&&l.length>1){u=true}c="^{"+o+"}";f=c}var d=n?"\\flatfrac":"\\frac";var p=l.length>1?l[0]:"";var m=l.length>1?l[1]:l[0];var h="";for(var v=2,g=void 0;g=l[v];v++){h+=a+" "+g}var y=d+"{"+a+c+p+"}"+"{"+a+" "+m+f+" "+h+"}";e.Push(new i.default(y,e.stack.env,e.configuration).mml());if(e.GetNext()==="("){e.i++;e.Push(e.itemFactory.create("auto open").setProperties({open:"(",close:")",ignore:u}))}};d.Bra=function(e,t){var r=e.GetStar();var a=e.GetArgument(t);var n="";var o=false;var s=false;if(e.GetNext()==="\\"){var l=e.i;e.i++;var u=e.GetCS();var c=e.lookup("macro",u);if(c&&c.symbol==="ket"){o=true;l=e.i;s=e.GetStar();if(e.GetNext()==="{"){n=e.GetArgument(u,true)}else{e.i=l;s=false}}else{e.i=l}}var f="";if(o){f=r||s?"\\langle{".concat(a,"}\\vert{").concat(n,"}\\rangle"):"\\left\\langle{".concat(a,"}\\middle\\vert{").concat(n,"}\\right\\rangle")}else{f=r||s?"\\langle{".concat(a,"}\\vert"):"\\left\\langle{".concat(a,"}\\right\\vert{").concat(n,"}")}e.Push(new i.default(f,e.stack.env,e.configuration).mml())};d.Ket=function(e,t){var r=e.GetStar();var a=e.GetArgument(t);var n=r?"\\vert{".concat(a,"}\\rangle"):"\\left\\vert{".concat(a,"}\\right\\rangle");e.Push(new i.default(n,e.stack.env,e.configuration).mml())};d.BraKet=function(e,t){var r=e.GetStar();var a=e.GetArgument(t);var n=null;if(e.GetNext()==="{"){n=e.GetArgument(t,true)}var o="";if(n==null){o=r?"\\langle{".concat(a,"}\\vert{").concat(a,"}\\rangle"):"\\left\\langle{".concat(a,"}\\middle\\vert{").concat(a,"}\\right\\rangle")}else{o=r?"\\langle{".concat(a,"}\\vert{").concat(n,"}\\rangle"):"\\left\\langle{".concat(a,"}\\middle\\vert{").concat(n,"}\\right\\rangle")}e.Push(new i.default(o,e.stack.env,e.configuration).mml())};d.KetBra=function(e,t){var r=e.GetStar();var a=e.GetArgument(t);var n=null;if(e.GetNext()==="{"){n=e.GetArgument(t,true)}var o="";if(n==null){o=r?"\\vert{".concat(a,"}\\rangle\\!\\langle{").concat(a,"}\\vert"):"\\left\\vert{".concat(a,"}\\middle\\rangle\\!\\middle\\langle{").concat(a,"}\\right\\vert")}else{o=r?"\\vert{".concat(a,"}\\rangle\\!\\langle{").concat(n,"}\\vert"):"\\left\\vert{".concat(a,"}\\middle\\rangle\\!\\middle\\langle{").concat(n,"}\\right\\vert")}e.Push(new i.default(o,e.stack.env,e.configuration).mml())};function M(e,t,r){var n=a(e,3),o=n[0],i=n[1],s=n[2];return t&&r?"\\left\\langle{".concat(o,"}\\middle\\vert{").concat(i,"}\\middle\\vert{").concat(s,"}\\right\\rangle"):t?"\\langle{".concat(o,"}\\vert{").concat(i,"}\\vert{").concat(s,"}\\rangle"):"\\left\\langle{".concat(o,"}\\right\\vert{").concat(i,"}\\left\\vert{").concat(s,"}\\right\\rangle")}d.Expectation=function(e,t){var r=e.GetStar();var a=r&&e.GetStar();var n=e.GetArgument(t);var o=null;if(e.GetNext()==="{"){o=e.GetArgument(t,true)}var s=n&&o?M([o,n,o],r,a):r?"\\langle {".concat(n,"} \\rangle"):"\\left\\langle {".concat(n,"} \\right\\rangle");e.Push(new i.default(s,e.stack.env,e.configuration).mml())};d.MatrixElement=function(e,t){var r=e.GetStar();var a=r&&e.GetStar();var n=e.GetArgument(t);var o=e.GetArgument(t);var s=e.GetArgument(t);var l=M([n,o,s],r,a);e.Push(new i.default(l,e.stack.env,e.configuration).mml())};d.MatrixQuantity=function(e,t,r){var a=e.GetStar();var n=e.GetNext();var o=r?"smallmatrix":"array";var s="";var l="";var u="";switch(n){case"{":s=e.GetArgument(t);break;case"(":e.i++;l=a?"\\lgroup":"(";u=a?"\\rgroup":")";s=e.GetUpTo(t,")");break;case"[":e.i++;l="[";u="]";s=e.GetUpTo(t,"]");break;case"|":e.i++;l="|";u="|";s=e.GetUpTo(t,"|");break;default:l="(";u=")";break}var c=(l?"\\left":"")+l+"\\begin{"+o+"}{} "+s+"\\end{"+o+"}"+(l?"\\right":"")+u;e.Push(new i.default(c,e.stack.env,e.configuration).mml())};d.IdentityMatrix=function(e,t){var r=e.GetArgument(t);var a=parseInt(r,10);if(isNaN(a)){throw new s.default("InvalidNumber","Invalid number")}if(a<=1){e.string="1"+e.string.slice(e.i);e.i=0;return}var n=Array(a).fill("0");var o=[];for(var i=0;i=n){o.push(e.string.slice(s,n));break}s=e.i;o.push(i)}e.string=A(o,r)+e.string.slice(n);e.i=0};function A(e,t){var r=e.length;var a=[];for(var n=0;n=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.SetOptionsConfiguration=t.SetOptionsUtil=void 0;var o=r(23644);var i=r(92715);var s=n(r(48406));var l=n(r(3378));var u=r(56941);var c=n(r(40871));var f=r(36059);t.SetOptionsUtil={filterPackage:function(e,t){if(t!=="tex"&&!o.ConfigurationHandler.get(t)){throw new s.default("NotAPackage","Not a defined package: %1",t)}var r=e.options.setoptions;var a=r.allowOptions[t];if(a===undefined&&!r.allowPackageDefault||a===false){throw new s.default("PackageNotSettable",'Options can\'t be set for package "%1"',t)}return true},filterOption:function(e,t,r){var a;var n=e.options.setoptions;var o=n.allowOptions[t]||{};var i=o.hasOwnProperty(r)&&!(0,f.isObject)(o[r])?o[r]:null;if(i===false||i===null&&!n.allowOptionsDefault){throw new s.default("OptionNotSettable",'Option "%1" is not allowed to be set',r)}if(!((a=t==="tex"?e.options:e.options[t])===null||a===void 0?void 0:a.hasOwnProperty(r))){if(t==="tex"){throw new s.default("InvalidTexOption",'Invalid TeX option "%1"',r)}else{throw new s.default("InvalidOptionKey",'Invalid option "%1" for package "%2"',r,t)}}return true},filterValue:function(e,t,r,a){return a}};var d=new i.CommandMap("setoptions",{setOptions:"SetOptions"},{SetOptions:function(e,t){var r,n;var o=e.GetBrackets(t)||"tex";var i=l.default.keyvalOptions(e.GetArgument(t));var s=e.options.setoptions;if(!s.filterPackage(e,o))return;try{for(var u=a(Object.keys(i)),c=u.next();!c.done;c=u.next()){var f=c.value;if(s.filterOption(e,o,f)){(o==="tex"?e.options:e.options[o])[f]=s.filterValue(e,o,f,i[f])}}}catch(d){r={error:d}}finally{try{if(c&&!c.done&&(n=u.return))n.call(u)}finally{if(r)throw r.error}}}});function p(e,t){var r=t.parseOptions.handlers.get("macro").lookup("require");if(r){d.add("Require",new u.Macro("Require",r._func));d.add("require",new u.Macro("require",c.default.Macro,["\\Require{#2}\\setOptions[#2]{#1}",2,""]))}}t.SetOptionsConfiguration=o.Configuration.create("setoptions",{handler:{macro:["setoptions"]},config:p,priority:3,options:{setoptions:{filterPackage:t.SetOptionsUtil.filterPackage,filterOption:t.SetOptionsUtil.filterOption,filterValue:t.SetOptionsUtil.filterValue,allowPackageDefault:true,allowOptionsDefault:true,allowOptions:(0,f.expandable)({tex:{FindTeX:false,formatError:false,package:false,baseURL:false,tags:false,maxBuffer:false,maxMaxros:false,macros:false,environments:false},setoptions:false,autoload:false,require:false,configmacros:false,tagformat:false})}}})},32020:function(e,t,r){var a=this&&this.__extends||function(){var e=function(t,r){e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r))e[r]=t[r]};return e(t,r)};return function(t,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function a(){this.constructor=t}t.prototype=r===null?Object.create(r):(a.prototype=r.prototype,new a)}}();Object.defineProperty(t,"__esModule",{value:true});t.TagFormatConfiguration=t.tagformatConfig=void 0;var n=r(23644);var o=r(56711);var i=0;function s(e,t){var r=t.parseOptions.options.tags;if(r!=="base"&&e.tags.hasOwnProperty(r)){o.TagsFactory.add(r,e.tags[r])}var n=o.TagsFactory.create(t.parseOptions.options.tags).constructor;var s=function(e){a(r,e);function r(){return e!==null&&e.apply(this,arguments)||this}r.prototype.formatNumber=function(e){return t.parseOptions.options.tagformat.number(e)};r.prototype.formatTag=function(e){return t.parseOptions.options.tagformat.tag(e)};r.prototype.formatId=function(e){return t.parseOptions.options.tagformat.id(e)};r.prototype.formatUrl=function(e,r){return t.parseOptions.options.tagformat.url(e,r)};return r}(n);i++;var l="configTags-"+i;o.TagsFactory.add(l,s);t.parseOptions.options.tags=l}t.tagformatConfig=s;t.TagFormatConfiguration=n.Configuration.create("tagformat",{config:[s,10],options:{tagformat:{number:function(e){return e.toString()},tag:function(e){return"("+e+")"},id:function(e){return"mjx-eqn:"+e.replace(/\s/g,"_")},url:function(e,t){return t+"#"+encodeURIComponent(e)}}}})},7646:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});t.TextcompConfiguration=void 0;var a=r(23644);r(60169);t.TextcompConfiguration=a.Configuration.create("textcomp",{handler:{macro:["textcomp-macros"]}})},60169:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});var n=r(92715);var o=r(48948);var i=r(14712);var s=a(r(3378));var l=r(52888);new n.CommandMap("textcomp-macros",{textasciicircum:["Insert","^"],textasciitilde:["Insert","~"],textasteriskcentered:["Insert","*"],textbackslash:["Insert","\\"],textbar:["Insert","|"],textbraceleft:["Insert","{"],textbraceright:["Insert","}"],textbullet:["Insert","•"],textdagger:["Insert","†"],textdaggerdbl:["Insert","‡"],textellipsis:["Insert","…"],textemdash:["Insert","—"],textendash:["Insert","–"],textexclamdown:["Insert","¡"],textgreater:["Insert",">"],textless:["Insert","<"],textordfeminine:["Insert","ª"],textordmasculine:["Insert","º"],textparagraph:["Insert","¶"],textperiodcentered:["Insert","·"],textquestiondown:["Insert","¿"],textquotedblleft:["Insert","“"],textquotedblright:["Insert","”"],textquoteleft:["Insert","‘"],textquoteright:["Insert","’"],textsection:["Insert","§"],textunderscore:["Insert","_"],textvisiblespace:["Insert","␣"],textacutedbl:["Insert","˝"],textasciiacute:["Insert","´"],textasciibreve:["Insert","˘"],textasciicaron:["Insert","ˇ"],textasciidieresis:["Insert","¨"],textasciimacron:["Insert","¯"],textgravedbl:["Insert","˵"],texttildelow:["Insert","˷"],textbaht:["Insert","฿"],textcent:["Insert","¢"],textcolonmonetary:["Insert","₡"],textcurrency:["Insert","¤"],textdollar:["Insert","$"],textdong:["Insert","₫"],texteuro:["Insert","€"],textflorin:["Insert","ƒ"],textguarani:["Insert","₲"],textlira:["Insert","₤"],textnaira:["Insert","₦"],textpeso:["Insert","₱"],textsterling:["Insert","£"],textwon:["Insert","₩"],textyen:["Insert","¥"],textcircledP:["Insert","℗"],textcompwordmark:["Insert","‌"],textcopyleft:["Insert","🄯"],textcopyright:["Insert","©"],textregistered:["Insert","®"],textservicemark:["Insert","℠"],texttrademark:["Insert","™"],textbardbl:["Insert","‖"],textbigcircle:["Insert","◯"],textblank:["Insert","␢"],textbrokenbar:["Insert","¦"],textdiscount:["Insert","⁒"],textestimated:["Insert","℮"],textinterrobang:["Insert","‽"],textinterrobangdown:["Insert","⸘"],textmusicalnote:["Insert","♪"],textnumero:["Insert","№"],textopenbullet:["Insert","◦"],textpertenthousand:["Insert","‱"],textperthousand:["Insert","‰"],textrecipe:["Insert","℞"],textreferencemark:["Insert","※"],textlangle:["Insert","〈"],textrangle:["Insert","〉"],textlbrackdbl:["Insert","⟦"],textrbrackdbl:["Insert","⟧"],textlquill:["Insert","⁅"],textrquill:["Insert","⁆"],textcelsius:["Insert","℃"],textdegree:["Insert","°"],textdiv:["Insert","÷"],textdownarrow:["Insert","↓"],textfractionsolidus:["Insert","⁄"],textleftarrow:["Insert","←"],textlnot:["Insert","¬"],textmho:["Insert","℧"],textminus:["Insert","−"],textmu:["Insert","µ"],textohm:["Insert","Ω"],textonehalf:["Insert","½"],textonequarter:["Insert","¼"],textonesuperior:["Insert","¹"],textpm:["Insert","±"],textrightarrow:["Insert","→"],textsurd:["Insert","√"],textthreequarters:["Insert","¾"],textthreesuperior:["Insert","³"],texttimes:["Insert","×"],texttwosuperior:["Insert","²"],textuparrow:["Insert","↑"],textborn:["Insert","*"],textdied:["Insert","†"],textdivorced:["Insert","⚮"],textmarried:["Insert","⚭"],textcentoldstyle:["Insert","¢",o.TexConstant.Variant.OLDSTYLE],textdollaroldstyle:["Insert","$",o.TexConstant.Variant.OLDSTYLE],textzerooldstyle:["Insert","0",o.TexConstant.Variant.OLDSTYLE],textoneoldstyle:["Insert","1",o.TexConstant.Variant.OLDSTYLE],texttwooldstyle:["Insert","2",o.TexConstant.Variant.OLDSTYLE],textthreeoldstyle:["Insert","3",o.TexConstant.Variant.OLDSTYLE],textfouroldstyle:["Insert","4",o.TexConstant.Variant.OLDSTYLE],textfiveoldstyle:["Insert","5",o.TexConstant.Variant.OLDSTYLE],textsixoldstyle:["Insert","6",o.TexConstant.Variant.OLDSTYLE],textsevenoldstyle:["Insert","7",o.TexConstant.Variant.OLDSTYLE],texteightoldstyle:["Insert","8",o.TexConstant.Variant.OLDSTYLE],textnineoldstyle:["Insert","9",o.TexConstant.Variant.OLDSTYLE]},{Insert:function(e,t,r,a){if(e instanceof l.TextParser){if(!a){i.TextMacrosMethods.Insert(e,t,r);return}e.saveText()}e.Push(s.default.internalText(e,r,a?{mathvariant:a}:{}))}})},77760:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};var n;Object.defineProperty(t,"__esModule",{value:true});t.TextMacrosConfiguration=t.TextBaseConfiguration=void 0;var o=r(23644);var i=a(r(1331));var s=r(56711);var l=r(5065);var u=r(52888);var c=r(14712);r(84186);t.TextBaseConfiguration=o.Configuration.create("text-base",{parser:"text",handler:{character:["command","text-special"],macro:["text-macros"]},fallback:{character:function(e,t){e.text+=t},macro:function(e,t){var r=e.texParser;var a=r.lookup("macro",t);if(a&&a._func!==c.TextMacrosMethods.Macro){e.Error("MathMacro","%1 is only supported in math mode","\\"+t)}r.parse("macro",[e,t])}},items:(n={},n[l.StartItem.prototype.kind]=l.StartItem,n[l.StopItem.prototype.kind]=l.StopItem,n[l.MmlItem.prototype.kind]=l.MmlItem,n[l.StyleItem.prototype.kind]=l.StyleItem,n)});function f(e,t,r,a){var n=e.configuration.packageData.get("textmacros");if(!(e instanceof u.TextParser)){n.texParser=e}return[new u.TextParser(t,a?{mathvariant:a}:{},n.parseOptions,r).mml()]}t.TextMacrosConfiguration=o.Configuration.create("textmacros",{config:function(e,t){var r=new o.ParserConfiguration(t.parseOptions.options.textmacros.packages,["tex","text"]);r.init();var a=new i.default(r,[]);a.options=t.parseOptions.options;r.config(t);s.TagsFactory.addTags(r.tags);a.tags=s.TagsFactory.getDefault();a.tags.configuration=a;a.packageData=t.parseOptions.packageData;a.packageData.set("textmacros",{parseOptions:a,jax:t,texParser:null});a.options.internalMath=f},preprocessors:[function(e){var t=e.data.packageData.get("textmacros");t.parseOptions.nodeFactory.setMmlFactory(t.jax.mmlFactory)}],options:{textmacros:{packages:["text-base"]}}})},84186:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:true});var a=r(92715);var n=r(48948);var o=r(14712);var i=r(77130);new a.MacroMap("text-special",{$:"Math","%":"Comment","^":"MathModeOnly",_:"MathModeOnly","&":"Misplaced","#":"Misplaced","~":"Tilde"," ":"Space","\t":"Space","\r":"Space","\n":"Space"," ":"Tilde","{":"OpenBrace","}":"CloseBrace","`":"OpenQuote","'":"CloseQuote"},o.TextMacrosMethods);new a.CommandMap("text-macros",{"(":"Math",$:"SelfQuote",_:"SelfQuote","%":"SelfQuote","{":"SelfQuote","}":"SelfQuote"," ":"SelfQuote","&":"SelfQuote","#":"SelfQuote","\\":"SelfQuote","'":["Accent","´"],"’":["Accent","´"],"`":["Accent","`"],"‘":["Accent","`"],"^":["Accent","^"],'"':["Accent","¨"],"~":["Accent","~"],"=":["Accent","¯"],".":["Accent","˙"],u:["Accent","˘"],v:["Accent","ˇ"],emph:"Emph",rm:["SetFont",n.TexConstant.Variant.NORMAL],mit:["SetFont",n.TexConstant.Variant.ITALIC],oldstyle:["SetFont",n.TexConstant.Variant.OLDSTYLE],cal:["SetFont",n.TexConstant.Variant.CALLIGRAPHIC],it:["SetFont","-tex-mathit"],bf:["SetFont",n.TexConstant.Variant.BOLD],bbFont:["SetFont",n.TexConstant.Variant.DOUBLESTRUCK],scr:["SetFont",n.TexConstant.Variant.SCRIPT],frak:["SetFont",n.TexConstant.Variant.FRAKTUR],sf:["SetFont",n.TexConstant.Variant.SANSSERIF],tt:["SetFont",n.TexConstant.Variant.MONOSPACE],tiny:["SetSize",.5],Tiny:["SetSize",.6],scriptsize:["SetSize",.7],small:["SetSize",.85],normalsize:["SetSize",1],large:["SetSize",1.2],Large:["SetSize",1.44],LARGE:["SetSize",1.73],huge:["SetSize",2.07],Huge:["SetSize",2.49],Bbb:["Macro","{\\bbFont #1}",1],textnormal:["Macro","{\\rm #1}",1],textup:["Macro","{\\rm #1}",1],textrm:["Macro","{\\rm #1}",1],textit:["Macro","{\\it #1}",1],textbf:["Macro","{\\bf #1}",1],textsf:["Macro","{\\sf #1}",1],texttt:["Macro","{\\tt #1}",1],dagger:["Insert","†"],ddagger:["Insert","‡"],S:["Insert","§"],",":["Spacer",i.MATHSPACE.thinmathspace],":":["Spacer",i.MATHSPACE.mediummathspace],">":["Spacer",i.MATHSPACE.mediummathspace],";":["Spacer",i.MATHSPACE.thickmathspace],"!":["Spacer",i.MATHSPACE.negativethinmathspace],enspace:["Spacer",.5],quad:["Spacer",1],qquad:["Spacer",2],thinspace:["Spacer",i.MATHSPACE.thinmathspace],negthinspace:["Spacer",i.MATHSPACE.negativethinmathspace],hskip:"Hskip",hspace:"Hskip",kern:"Hskip",mskip:"Hskip",mspace:"Hskip",mkern:"Hskip",rule:"rule",Rule:["Rule"],Space:["Rule","blank"],color:"CheckAutoload",textcolor:"CheckAutoload",colorbox:"CheckAutoload",fcolorbox:"CheckAutoload",href:"CheckAutoload",style:"CheckAutoload",class:"CheckAutoload",cssId:"CheckAutoload",unicode:"CheckAutoload",ref:["HandleRef",false],eqref:["HandleRef",true]},o.TextMacrosMethods)},14712:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.TextMacrosMethods=void 0;var n=a(r(42880));var o=r(97e3);var i=a(r(40871));t.TextMacrosMethods={Comment:function(e,t){while(e.i=e.length)e=void 0;return{value:e&&e[a++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};var o=this&&this.__read||function(e,t){var r=typeof Symbol==="function"&&e[Symbol.iterator];if(!r)return e;var a=r.call(e),n,o=[],i;try{while((t===void 0||t-- >0)&&!(n=a.next()).done)o.push(n.value)}catch(s){i={error:s}}finally{try{if(n&&!n.done&&(r=a["return"]))r.call(a)}finally{if(i)throw i.error}}return o};var i=this&&this.__spreadArray||function(e,t,r){if(r||arguments.length===2)for(var a=0,n=t.length,o;a{Object.defineProperty(t,"__esModule",{value:true});t.UpgreekConfiguration=void 0;var a=r(23644);var n=r(92715);var o=r(48948);function i(e,t){var r=t.attributes||{};r.mathvariant=o.TexConstant.Variant.NORMAL;var a=e.create("token","mi",r,t.char);e.Push(a)}new n.CharacterMap("upgreek",i,{upalpha:"α",upbeta:"β",upgamma:"γ",updelta:"δ",upepsilon:"ϵ",upzeta:"ζ",upeta:"η",uptheta:"θ",upiota:"ι",upkappa:"κ",uplambda:"λ",upmu:"μ",upnu:"ν",upxi:"ξ",upomicron:"ο",uppi:"π",uprho:"ρ",upsigma:"σ",uptau:"τ",upupsilon:"υ",upphi:"ϕ",upchi:"χ",uppsi:"ψ",upomega:"ω",upvarepsilon:"ε",upvartheta:"ϑ",upvarpi:"ϖ",upvarrho:"ϱ",upvarsigma:"ς",upvarphi:"φ",Upgamma:"Γ",Updelta:"Δ",Uptheta:"Θ",Uplambda:"Λ",Upxi:"Ξ",Uppi:"Π",Upsigma:"Σ",Upupsilon:"Υ",Upphi:"Φ",Uppsi:"Ψ",Upomega:"Ω"});t.UpgreekConfiguration=a.Configuration.create("upgreek",{handler:{macro:["upgreek"]}})},54305:function(e,t,r){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.VerbConfiguration=t.VerbMethods=void 0;var n=r(23644);var o=r(48948);var i=r(92715);var s=a(r(48406));t.VerbMethods={};t.VerbMethods.Verb=function(e,t){var r=e.GetNext();var a=++e.i;if(r===""){throw new s.default("MissingArgFor","Missing argument for %1",t)}while(e.i{Object.defineProperty(t,"__esModule",{value:true});t.mhchemParser=void 0;var r=function(){function e(){}e.toTex=function(e,t){return o.go(n.go(e,t),t!=="tex")};return e}();t.mhchemParser=r;function a(e){var t,r;var a={};for(t in e){for(r in e[t]){var n=r.split("|");e[t][r].stateArray=n;for(var o=0;o0){if(!d.revisit){e=f.remainder}if(!d.toContinue){break e}}else{return s}}}if(i<=0){throw["MhchemBugU","mhchem bug U. Please report."]}}},concatArray:function(e,t){if(t){if(Array.isArray(t)){for(var r=0;r":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(e){return n.patterns.findObserveGroups(e,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(e){return n.patterns.findObserveGroups(e,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(e){return n.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",true)},"\\x{}":function(e){return n.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(e){return n.patterns.findObserveGroups(e,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(e){return n.patterns.findObserveGroups(e,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(e){return n.patterns.findObserveGroups(e,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(e){return n.patterns.findObserveGroups(e,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}":function(e){return n.patterns.findObserveGroups(e,"\\color{","","","}")},"\\color{(...)}{(...)}":function(e){return n.patterns.findObserveGroups(e,"\\color{","","","}","{","","","}")||n.patterns.findObserveGroups(e,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(e){return n.patterns.findObserveGroups(e,"\\ce{","","","}")},"\\pu{(...)}":function(e){return n.patterns.findObserveGroups(e,"\\pu{","","","}")},oxidation$:/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"d-oxidation$":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"roman numeral":/^[IVX]+/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(e){var t;t=e.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/);if(t){return{match_:t[0],remainder:e.substr(t[0].length)}}var r=n.patterns.findObserveGroups(e,"","$","$","");if(r){t=r.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/);if(t){return{match_:t[0],remainder:e.substr(t[0].length)}}}return null},amount2:function(e){return this["amount"](e)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(e){if(e.match(/^\([a-z]+\)$/)){return null}var t=e.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);if(t){return{match_:t[0],remainder:e.substr(t[0].length)}}return null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(e,t,r,a,n,o,i,s,l,u){var c=function(e,t){if(typeof t==="string"){if(e.indexOf(t)!==0){return null}return t}else{var r=e.match(t);if(!r){return null}return r[0]}};var f=function(e,t,r){var a=0;while(t0){return null}return null};var d=c(e,t);if(d===null){return null}e=e.substr(d.length);d=c(e,r);if(d===null){return null}var p=f(e,d.length,a||n);if(p===null){return null}var m=e.substring(0,a?p.endMatchEnd:p.endMatchBegin);if(!(o||i)){return{match_:m,remainder:e.substr(p.endMatchEnd)}}else{var h=this.findObserveGroups(e.substr(p.endMatchEnd),o,i,s,l);if(h===null){return null}var v=[m,h.match_];return{match_:u?v.join(""):v,remainder:h.remainder}}},match_:function(e,t){var r=n.patterns.patterns[e];if(r===undefined){throw["MhchemBugP","mhchem bug P. Please report. ("+e+")"]}else if(typeof r==="function"){return n.patterns.patterns[e](t)}else{var a=t.match(r);if(a){if(a.length>2){return{match_:a.slice(1),remainder:t.substr(a[0].length)}}else{return{match_:a[1]||a[0],remainder:t.substr(a[0].length)}}}return null}}},actions:{"a=":function(e,t){e.a=(e.a||"")+t;return undefined},"b=":function(e,t){e.b=(e.b||"")+t;return undefined},"p=":function(e,t){e.p=(e.p||"")+t;return undefined},"o=":function(e,t){e.o=(e.o||"")+t;return undefined},"q=":function(e,t){e.q=(e.q||"")+t;return undefined},"d=":function(e,t){e.d=(e.d||"")+t;return undefined},"rm=":function(e,t){e.rm=(e.rm||"")+t;return undefined},"text=":function(e,t){e.text_=(e.text_||"")+t;return undefined},insert:function(e,t,r){return{type_:r}},"insert+p1":function(e,t,r){return{type_:r,p1:t}},"insert+p1+p2":function(e,t,r){return{type_:r,p1:t[0],p2:t[1]}},copy:function(e,t){return t},write:function(e,t,r){return r},rm:function(e,t){return{type_:"rm",p1:t}},text:function(e,t){return n.go(t,"text")},"tex-math":function(e,t){return n.go(t,"tex-math")},"tex-math tight":function(e,t){return n.go(t,"tex-math tight")},bond:function(e,t,r){return{type_:"bond",kind_:r||t}},"color0-output":function(e,t){return{type_:"color0",color:t}},ce:function(e,t){return n.go(t,"ce")},pu:function(e,t){return n.go(t,"pu")},"1/2":function(e,t){var r=[];if(t.match(/^[+\-]/)){r.push(t.substr(0,1));t=t.substr(1)}var a=t.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);a[1]=a[1].replace(/\$/g,"");r.push({type_:"frac",p1:a[1],p2:a[2]});if(a[3]){a[3]=a[3].replace(/\$/g,"");r.push({type_:"tex-math",p1:a[3]})}return r},"9,9":function(e,t){return n.go(t,"9,9")}},stateMachines:{tex:{transitions:a({empty:{0:{action_:"copy"}},"\\ce{(...)}":{0:{action_:[{type_:"write",option:"{"},"ce",{type_:"write",option:"}"}]}},"\\pu{(...)}":{0:{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},else:{0:{action_:"copy"}}}),actions:{}},ce:{transitions:a({empty:{"*":{action_:"output"}},else:{"0|1|2":{action_:"beginsWithBond=false",revisit:true,toContinue:true}},oxidation$:{0:{action_:"oxidation-output"}},CMT:{r:{action_:"rdt=",nextState:"rt"},rd:{action_:"rqt=",nextState:"rdt"}},arrowUpDown:{"0|1|2|as":{action_:["sb=false","output","operator"],nextState:"1"}},uprightEntities:{"0|1|2":{action_:["o=","output"],nextState:"1"}},orbital:{"0|1|2|3":{action_:"o=",nextState:"o"}},"->":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:false},nextState:"2"},q:{action_:{type_:"- after o/d",option:false},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:true},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{action_:[]}},space:{a:{action_:[],nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". __* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{action_:[]}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}^":{"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"tinySkip"}],nextState:"1"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}],nextState:"3"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:true},as:{action_:["output","sb=true"],nextState:"1",revisit:true},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:true},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(e,t){var r;if((e.d||"").match(/^[1-9][0-9]*$/)){var a=e.d;e.d=undefined;r=this["output"](e);r.push({type_:"tinySkip"});e.b=a}else{r=this["output"](e)}n.actions["o="](e,t);return r},"d= kv":function(e,t){e.d=t;e.dType="kv";return undefined},"charge or bond":function(e,t){if(e["beginsWithBond"]){var r=[];n.concatArray(r,this["output"](e));n.concatArray(r,n.actions["bond"](e,t,"-"));return r}else{e.d=t;return undefined}},"- after o/d":function(e,t,r){var a=n.patterns.match_("orbital",e.o||"");var o=n.patterns.match_("one lowercase greek letter $",e.o||"");var i=n.patterns.match_("one lowercase latin letter $",e.o||"");var s=n.patterns.match_("$one lowercase latin letter$ $",e.o||"");var l=t==="-"&&(a&&a.remainder===""||o||i||s);if(l&&!e.a&&!e.b&&!e.p&&!e.d&&!e.q&&!a&&i){e.o="$"+e.o+"$"}var u=[];if(l){n.concatArray(u,this["output"](e));u.push({type_:"hyphen"})}else{a=n.patterns.match_("digits",e.d||"");if(r&&a&&a.remainder===""){n.concatArray(u,n.actions["d="](e,t));n.concatArray(u,this["output"](e))}else{n.concatArray(u,this["output"](e));n.concatArray(u,n.actions["bond"](e,t,"-"))}}return u},"a to o":function(e){e.o=e.a;e.a=undefined;return undefined},"sb=true":function(e){e.sb=true;return undefined},"sb=false":function(e){e.sb=false;return undefined},"beginsWithBond=true":function(e){e["beginsWithBond"]=true;return undefined},"beginsWithBond=false":function(e){e["beginsWithBond"]=false;return undefined},"parenthesisLevel++":function(e){e["parenthesisLevel"]++;return undefined},"parenthesisLevel--":function(e){e["parenthesisLevel"]--;return undefined},"state of aggregation":function(e,t){return{type_:"state of aggregation",p1:n.go(t,"o")}},comma:function(e,t){var r=t.replace(/\s*$/,"");var a=r!==t;if(a&&e["parenthesisLevel"]===0){return{type_:"comma enumeration L",p1:r}}else{return{type_:"comma enumeration M",p1:r}}},output:function(e,t,r){var a;if(!e.r){a=[];if(!e.a&&!e.b&&!e.p&&!e.o&&!e.q&&!e.d&&!r){}else{if(e.sb){a.push({type_:"entitySkip"})}if(!e.o&&!e.q&&!e.d&&!e.b&&!e.p&&r!==2){e.o=e.a;e.a=undefined}else if(!e.o&&!e.q&&!e.d&&(e.b||e.p)){e.o=e.a;e.d=e.b;e.q=e.p;e.a=e.b=e.p=undefined}else{if(e.o&&e.dType==="kv"&&n.patterns.match_("d-oxidation$",e.d||"")){e.dType="oxidation"}else if(e.o&&e.dType==="kv"&&!e.q){e.dType=undefined}}a.push({type_:"chemfive",a:n.go(e.a,"a"),b:n.go(e.b,"bd"),p:n.go(e.p,"pq"),o:n.go(e.o,"o"),q:n.go(e.q,"pq"),d:n.go(e.d,e.dType==="oxidation"?"oxidation":"bd"),dType:e.dType})}}else{var o=void 0;if(e.rdt==="M"){o=n.go(e.rd,"tex-math")}else if(e.rdt==="T"){o=[{type_:"text",p1:e.rd||""}]}else{o=n.go(e.rd,"ce")}var i=void 0;if(e.rqt==="M"){i=n.go(e.rq,"tex-math")}else if(e.rqt==="T"){i=[{type_:"text",p1:e.rq||""}]}else{i=n.go(e.rq,"ce")}a={type_:"arrow",r:e.r,rd:o,rq:i}}for(var s in e){if(s!=="parenthesisLevel"&&s!=="beginsWithBond"){delete e[s]}}return a},"oxidation-output":function(e,t){var r=["{"];n.concatArray(r,n.go(t,"oxidation"));r.push("}");return r},"frac-output":function(e,t){return{type_:"frac-ce",p1:n.go(t[0],"ce"),p2:n.go(t[1],"ce")}},"overset-output":function(e,t){return{type_:"overset",p1:n.go(t[0],"ce"),p2:n.go(t[1],"ce")}},"underset-output":function(e,t){return{type_:"underset",p1:n.go(t[0],"ce"),p2:n.go(t[1],"ce")}},"underbrace-output":function(e,t){return{type_:"underbrace",p1:n.go(t[0],"ce"),p2:n.go(t[1],"ce")}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:n.go(t[1],"ce")}},"r=":function(e,t){e.r=t;return undefined},"rdt=":function(e,t){e.rdt=t;return undefined},"rd=":function(e,t){e.rd=t;return undefined},"rqt=":function(e,t){e.rqt=t;return undefined},"rq=":function(e,t){e.rq=t;return undefined},operator:function(e,t,r){return{type_:"operator",kind_:r||t}}}},a:{transitions:a({empty:{"*":{action_:[]}},"1/2$":{0:{action_:"1/2"}},else:{0:{action_:[],nextState:"1",revisit:true}},"${(...)}$__$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:a({empty:{"*":{action_:[]}},"1/2$":{0:{action_:"1/2"}},else:{0:{action_:[],nextState:"1",revisit:true}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\pu{(...)}":{"*":{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:[{type_:"write",option:"{"},"text",{type_:"write",option:"}"}]}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:a({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(e){if(e.text_){var t={type_:"text",p1:e.text_};for(var r in e){delete e[r]}return t}return undefined}}},pq:{transitions:a({empty:{"*":{action_:[]}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{action_:[],nextState:"!f",revisit:true}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{action_:[],nextState:"f",revisit:true}},"1/2$":{0:{action_:"1/2"}},else:{0:{action_:[],nextState:"!f",revisit:true}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}":{"*":{action_:"color-output"}},"\\color{(...)}":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\pu{(...)}":{"*":{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(e,t){return{type_:"state of aggregation subscript",p1:n.go(t,"o")}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:n.go(t[1],"pq")}}}},bd:{transitions:a({empty:{"*":{action_:[]}},x$:{0:{action_:[],nextState:"!f",revisit:true}},formula$:{0:{action_:[],nextState:"f",revisit:true}},else:{0:{action_:[],nextState:"!f",revisit:true}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}":{"*":{action_:"color-output"}},"\\color{(...)}":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\pu{(...)}":{"*":{action_:[{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(e,t){return{type_:"color",color1:t[0],color2:n.go(t[1],"bd")}}}},oxidation:{transitions:a({empty:{"*":{action_:[]}},"roman numeral":{"*":{action_:"roman-numeral"}},"${(...)}$__$(...)$":{"*":{action_:"tex-math"}},else:{"*":{action_:"copy"}}}),actions:{"roman-numeral":function(e,t){return{type_:"roman numeral",p1:t}}}},"tex-math":{transitions:a({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var r in e){delete e[r]}return t}return undefined}}},"tex-math tight":{transitions:a({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"\\pu{(...)}":{"*":{action_:["output",{type_:"write",option:"{"},"pu",{type_:"write",option:"}"}]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(e,t){e.o=(e.o||"")+"{"+t+"}";return undefined},output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var r in e){delete e[r]}return t}return undefined}}},"9,9":{transitions:a({empty:{"*":{action_:[]}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:a({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{action_:[]}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(e,t){var r=[];if(t[0]==="+-"||t[0]==="+/-"){r.push("\\pm ")}else if(t[0]){r.push(t[0])}if(t[1]){n.concatArray(r,n.go(t[1],"pu-9,9"));if(t[2]){if(t[2].match(/[,.]/)){n.concatArray(r,n.go(t[2],"pu-9,9"))}else{r.push(t[2])}}if(t[3]||t[4]){if(t[3]==="e"||t[4]==="*"){r.push({type_:"cdot"})}else{r.push({type_:"times"})}}}if(t[5]){r.push("10^{"+t[5]+"}")}return r},"number^":function(e,t){var r=[];if(t[0]==="+-"||t[0]==="+/-"){r.push("\\pm ")}else if(t[0]){r.push(t[0])}n.concatArray(r,n.go(t[1],"pu-9,9"));r.push("^{"+t[2]+"}");return r},operator:function(e,t,r){return{type_:"operator",kind_:r||t}},space:function(){return{type_:"pu-space-1"}},output:function(e){var t;var r=n.patterns.match_("{(...)}",e.d||"");if(r&&r.remainder===""){e.d=r.match_}var a=n.patterns.match_("{(...)}",e.q||"");if(a&&a.remainder===""){e.q=a.match_}if(e.d){e.d=e.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C");e.d=e.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")}if(e.q){e.q=e.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C");e.q=e.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var o={d:n.go(e.d,"pu"),q:n.go(e.q,"pu")};if(e.o==="//"){t={type_:"pu-frac",p1:o.d,p2:o.q}}else{t=o.d;if(o.d.length>1||o.q.length>1){t.push({type_:" / "})}else{t.push({type_:"/"})}n.concatArray(t,o.q)}}else{t=n.go(e.d,"pu-2")}for(var i in e){delete e[i]}return t}}},"pu-2":{transitions:a({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(e,t){e.rm+="^{"+t+"}";return undefined},space:function(){return{type_:"pu-space-2"}},output:function(e){var t=[];if(e.rm){var r=n.patterns.match_("{(...)}",e.rm||"");if(r&&r.remainder===""){t=n.go(r.match_,"pu")}else{t={type_:"rm",p1:e.rm}}}for(var a in e){delete e[a]}return t}}},"pu-9,9":{transitions:a({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(e){var t=[];e.text_=e.text_||"";if(e.text_.length>4){var r=e.text_.length%3;if(r===0){r=3}for(var a=e.text_.length-3;a>0;a-=3){t.push(e.text_.substr(a,3));t.push({type_:"1000 separator"})}t.push(e.text_.substr(0,r));t.reverse()}else{t.push(e.text_)}for(var n in e){delete e[n]}return t},"output-o":function(e){var t=[];e.text_=e.text_||"";if(e.text_.length>4){var r=e.text_.length-3;var a=void 0;for(a=0;a"||e.r==="<=>>"||e.r==="<<=>"||e.r==="<--\x3e"){l="\\long"+l;if(s.rd){l="\\overset{"+s.rd+"}{"+l+"}"}if(s.rq){if(e.r==="<--\x3e"){l="\\underset{\\lower2mu{"+s.rq+"}}{"+l+"}"}else{l="\\underset{\\lower6mu{"+s.rq+"}}{"+l+"}"}}l=" {}\\mathrel{"+l+"}{} "}else{if(s.rq){l+="[{"+s.rq+"}]"}l+="{"+s.rd+"}";l=" {}\\mathrel{\\x"+l+"}{} "}}else{l=" {}\\mathrel{\\long"+l+"}{} "}t=l;break;case"operator":t=o._getOperator(e.kind_);break;case"1st-level escape":t=e.p1+" ";break;case"space":t=" ";break;case"tinySkip":t="\\mkern2mu";break;case"entitySkip":t="~";break;case"pu-space-1":t="~";break;case"pu-space-2":t="\\mkern3mu ";break;case"1000 separator":t="\\mkern2mu ";break;case"commaDecimal":t="{,}";break;case"comma enumeration L":t="{"+e.p1+"}\\mkern6mu ";break;case"comma enumeration M":t="{"+e.p1+"}\\mkern3mu ";break;case"comma enumeration S":t="{"+e.p1+"}\\mkern1mu ";break;case"hyphen":t="\\text{-}";break;case"addition compound":t="\\,{\\cdot}\\,";break;case"electron dot":t="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":t="{\\times}";break;case"prime":t="\\prime ";break;case"cdot":t="\\cdot ";break;case"tight cdot":t="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":t="\\times ";break;case"circa":t="{\\sim}";break;case"^":t="uparrow";break;case"v":t="downarrow";break;case"ellipsis":t="\\ldots ";break;case"/":t="/";break;case" / ":t="\\,/\\,";break;default:i(e);throw["MhchemBugT","mhchem bug T. Please report."]}return t},_getArrow:function(e){switch(e){case"->":return"rightarrow";case"→":return"rightarrow";case"⟶":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<--\x3e":return"leftrightarrows";case"<=>":return"rightleftharpoons";case"⇌":return"rightleftharpoons";case"<=>>":return"Rightleftharpoons";case"<<=>":return"Leftrightharpoons";default:i(e);throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(e){switch(e){case"-":return"{-}";case"1":return"{-}";case"=":return"{=}";case"2":return"{=}";case"#":return"{\\equiv}";case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}";case"~=":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"~--":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"-~-":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:i(e);throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(e){switch(e){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":return" {}\\approx{} ";case"$\\approx$":return" {}\\approx{} ";case"v":return" \\downarrow{} ";case"(v)":return" \\downarrow{} ";case"^":return" \\uparrow{} ";case"(^)":return" \\uparrow{} ";default:i(e);throw["MhchemBugT","mhchem bug T. Please report."]}}};function i(e){}}}]); \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/9826.406d2a71dc45995bc549.js.LICENSE.txt b/bootcamp/share/jupyter/lab/static/9826.406d2a71dc45995bc549.js.LICENSE.txt new file mode 100644 index 0000000..48da700 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/9826.406d2a71dc45995bc549.js.LICENSE.txt @@ -0,0 +1,32 @@ +/*! + ************************************************************************* + * + * mhchemParser.ts + * 4.1.1 + * + * Parser for the \ce command and \pu command for MathJax and Co. + * + * mhchem's \ce is a tool for writing beautiful chemical equations easily. + * mhchem's \pu is a tool for writing physical units easily. + * + * ---------------------------------------------------------------------- + * + * Copyright (c) 2015-2021 Martin Hensel + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * ---------------------------------------------------------------------- + * + * https://github.com/mhchem/mhchemParser + * + */ diff --git a/bootcamp/share/jupyter/lab/static/9834b82ad26e2a37583d.woff2 b/bootcamp/share/jupyter/lab/static/9834b82ad26e2a37583d.woff2 new file mode 100644 index 0000000..2217164 Binary files /dev/null and b/bootcamp/share/jupyter/lab/static/9834b82ad26e2a37583d.woff2 differ diff --git a/bootcamp/share/jupyter/lab/static/a009bea404f7a500ded4.woff b/bootcamp/share/jupyter/lab/static/a009bea404f7a500ded4.woff new file mode 100644 index 0000000..e62ff5f Binary files /dev/null and b/bootcamp/share/jupyter/lab/static/a009bea404f7a500ded4.woff differ diff --git a/bootcamp/share/jupyter/lab/static/a3b9817780214caf01e8.svg b/bootcamp/share/jupyter/lab/static/a3b9817780214caf01e8.svg new file mode 100644 index 0000000..b9881a4 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/a3b9817780214caf01e8.svg @@ -0,0 +1,3717 @@ + + + + +Created by FontForge 20201107 at Wed Aug 4 12:25:29 2021 + By Robert Madole +Copyright (c) Font Awesome + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bootcamp/share/jupyter/lab/static/af04542b29eaac04550a.woff b/bootcamp/share/jupyter/lab/static/af04542b29eaac04550a.woff new file mode 100644 index 0000000..57819c5 Binary files /dev/null and b/bootcamp/share/jupyter/lab/static/af04542b29eaac04550a.woff differ diff --git a/bootcamp/share/jupyter/lab/static/af6397503fcefbd61397.ttf b/bootcamp/share/jupyter/lab/static/af6397503fcefbd61397.ttf new file mode 100644 index 0000000..25abf38 Binary files /dev/null and b/bootcamp/share/jupyter/lab/static/af6397503fcefbd61397.ttf differ diff --git a/bootcamp/share/jupyter/lab/static/af96f67d7accf5fd2a4a.woff b/bootcamp/share/jupyter/lab/static/af96f67d7accf5fd2a4a.woff new file mode 100644 index 0000000..a9d1f34 Binary files /dev/null and b/bootcamp/share/jupyter/lab/static/af96f67d7accf5fd2a4a.woff differ diff --git a/bootcamp/share/jupyter/lab/static/b418136e3b384baaadec.woff b/bootcamp/share/jupyter/lab/static/b418136e3b384baaadec.woff new file mode 100644 index 0000000..d1ff7c6 Binary files /dev/null and b/bootcamp/share/jupyter/lab/static/b418136e3b384baaadec.woff differ diff --git a/bootcamp/share/jupyter/lab/static/be0a084962d8066884f7.svg b/bootcamp/share/jupyter/lab/static/be0a084962d8066884f7.svg new file mode 100644 index 0000000..463af27 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/be0a084962d8066884f7.svg @@ -0,0 +1,801 @@ + + + + +Created by FontForge 20201107 at Wed Aug 4 12:25:29 2021 + By Robert Madole +Copyright (c) Font Awesome + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bootcamp/share/jupyter/lab/static/bootstrap.js b/bootcamp/share/jupyter/lab/static/bootstrap.js new file mode 100644 index 0000000..9a5ae3e --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/bootstrap.js @@ -0,0 +1,98 @@ +// This file is auto-generated from the corresponding file in /dev_mode +/* + * Copyright (c) Jupyter Development Team. + * Distributed under the terms of the Modified BSD License. + */ + +// We copy some of the pageconfig parsing logic in @jupyterlab/coreutils +// below, since this must run before any other files are loaded (including +// @jupyterlab/coreutils). + +/** + * Get global configuration data for the Jupyter application. + * + * @param name - The name of the configuration option. + * + * @returns The config value or an empty string if not found. + * + * #### Notes + * All values are treated as strings. For browser based applications, it is + * assumed that the page HTML includes a script tag with the id + * `jupyter-config-data` containing the configuration as valid JSON. + */ +let _CONFIG_DATA = null; +function getOption(name) { + if (_CONFIG_DATA === null) { + let configData = {}; + // Use script tag if available. + if (typeof document !== 'undefined' && document) { + const el = document.getElementById('jupyter-config-data'); + + if (el) { + configData = JSON.parse(el.textContent || '{}'); + } + } + _CONFIG_DATA = configData; + } + + return _CONFIG_DATA[name] || ''; +} + +// eslint-disable-next-line no-undef +__webpack_public_path__ = getOption('fullStaticUrl') + '/'; + +function loadScript(url) { + return new Promise((resolve, reject) => { + const newScript = document.createElement('script'); + newScript.onerror = reject; + newScript.onload = resolve; + newScript.async = true; + document.head.appendChild(newScript); + newScript.src = url; + }); +} + +async function loadComponent(url, scope) { + await loadScript(url); + + // From https://webpack.js.org/concepts/module-federation/#dynamic-remote-containers + // eslint-disable-next-line no-undef + await __webpack_init_sharing__('default'); + const container = window._JUPYTERLAB[scope]; + // Initialize the container, it may provide shared modules and may need ours + // eslint-disable-next-line no-undef + await container.init(__webpack_share_scopes__.default); +} + +void (async function bootstrap() { + // This is all the data needed to load and activate plugins. This should be + // gathered by the server and put onto the initial page template. + const extension_data = getOption('federated_extensions'); + + // We first load all federated components so that the shared module + // deduplication can run and figure out which shared modules from all + // components should be actually used. We have to do this before importing + // and using the module that actually uses these components so that all + // dependencies are initialized. + let labExtensionUrl = getOption('fullLabextensionsUrl'); + const extensions = await Promise.allSettled( + extension_data.map(async data => { + await loadComponent( + `${labExtensionUrl}/${data.name}/${data.load}`, + data.name + ); + }) + ); + + extensions.forEach(p => { + if (p.status === 'rejected') { + // There was an error loading the component + console.error(p.reason); + } + }); + + // Now that all federated containers are initialized with the main + // container, we can import the main function. + let main = (await import('./index.out.js')).main; + window.addEventListener('load', main); +})(); diff --git a/bootcamp/share/jupyter/lab/static/build_log.json b/bootcamp/share/jupyter/lab/static/build_log.json new file mode 100644 index 0000000..d1e0071 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/build_log.json @@ -0,0 +1,712 @@ +[ + { + "bail": true, + "module": { + "rules": [ + { + "test": {}, + "type": "asset/source" + }, + { + "test": {}, + "use": [ + "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/node_modules/style-loader/dist/cjs.js", + "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/node_modules/css-loader/dist/cjs.js" + ] + }, + { + "test": {}, + "type": "asset/source" + }, + { + "test": {}, + "type": "asset/source" + }, + { + "test": {}, + "type": "asset/resource" + }, + { + "test": {}, + "type": "asset/resource" + }, + { + "test": {}, + "type": "asset/resource" + }, + { + "test": {}, + "type": "asset/resource" + }, + { + "test": {}, + "type": "asset/resource" + }, + { + "test": {}, + "type": "asset/resource" + }, + { + "test": {}, + "issuer": {}, + "type": "asset", + "generator": {} + }, + { + "test": {}, + "issuer": {}, + "type": "asset/source" + }, + { + "test": {}, + "type": "javascript/auto" + }, + { + "test": {}, + "resolve": { + "fullySpecified": false + } + }, + { + "test": {}, + "resolve": { + "fullySpecified": false + } + }, + { + "test": {}, + "include": [], + "use": [ + "source-map-loader" + ], + "enforce": "pre" + } + ] + }, + "resolve": { + "fallback": { + "url": false, + "buffer": false, + "crypto": false, + "path": "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/node_modules/path-browserify/index.js", + "process": "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/node_modules/process/browser.js" + } + }, + "watchOptions": { + "poll": 500, + "aggregateTimeout": 1000 + }, + "output": { + "hashFunction": "sha256", + "path": "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/build", + "publicPath": "{{page_config.fullStaticUrl}}/", + "filename": "[name].[contenthash].js" + }, + "plugins": [ + { + "definitions": { + "process": "process/browser" + } + }, + { + "options": { + "verbose": true, + "showHelp": true, + "emitError": false, + "strict": true + } + }, + { + "userOptions": { + "chunksSortMode": "none", + "template": "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/templates/template.html", + "title": "JupyterLab" + }, + "version": 5 + }, + {}, + { + "buildDir": "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/build", + "staticDir": "../static", + "_first": true + }, + { + "_options": { + "library": { + "type": "var", + "name": [ + "_JUPYTERLAB", + "CORE_LIBRARY_FEDERATION" + ] + }, + "name": "CORE_FEDERATION", + "shared": { + "@codemirror/language": { + "requiredVersion": "^6.0.0", + "singleton": true + }, + "@codemirror/state": { + "requiredVersion": "^6.2.0", + "singleton": true + }, + "@codemirror/view": { + "requiredVersion": "^6.9.6", + "singleton": true + }, + "@jupyter/ydoc": { + "requiredVersion": "~1.0.2", + "singleton": true + }, + "@jupyterlab/application": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/application-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/apputils": { + "requiredVersion": "~4.1.8", + "singleton": true + }, + "@jupyterlab/apputils-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/attachments": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/cell-toolbar": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/cell-toolbar-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/cells": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/celltags-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/codeeditor": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/codemirror": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/codemirror-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/completer": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/completer-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/console": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/console-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/coreutils": { + "requiredVersion": "~6.0.8", + "singleton": true + }, + "@jupyterlab/csvviewer": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/csvviewer-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/debugger": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/debugger-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/docmanager": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/docmanager-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/docregistry": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/documentsearch": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/documentsearch-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/extensionmanager": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/extensionmanager-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/filebrowser": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/filebrowser-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/fileeditor": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/fileeditor-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/help-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/htmlviewer": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/htmlviewer-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/hub-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/imageviewer": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/imageviewer-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/inspector": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/inspector-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/javascript-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/json-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/launcher": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/launcher-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/logconsole": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/logconsole-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/lsp": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/lsp-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/mainmenu": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/mainmenu-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/markdownviewer": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/markdownviewer-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/markedparser-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/mathjax-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/metadataform": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/metadataform-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/metapackage": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/nbconvert-css": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/nbformat": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/notebook": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/notebook-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/observables": { + "requiredVersion": "~5.0.8" + }, + "@jupyterlab/outputarea": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/pdf-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/property-inspector": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/rendermime": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/rendermime-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/rendermime-interfaces": { + "requiredVersion": "~3.8.8", + "singleton": true + }, + "@jupyterlab/running": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/running-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/services": { + "requiredVersion": "~7.0.8", + "singleton": true + }, + "@jupyterlab/settingeditor": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/settingeditor-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/settingregistry": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/shortcuts-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/statedb": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/statusbar": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/statusbar-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/terminal": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/terminal-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/theme-dark-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/theme-light-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/toc": { + "requiredVersion": "~6.0.8", + "singleton": true + }, + "@jupyterlab/toc-extension": { + "requiredVersion": "~6.0.8" + }, + "@jupyterlab/tooltip": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/tooltip-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/translation": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/translation-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/ui-components": { + "requiredVersion": "~4.0.8", + "singleton": true + }, + "@jupyterlab/ui-components-extension": { + "requiredVersion": "~4.0.8" + }, + "@jupyterlab/vega5-extension": { + "requiredVersion": "~4.0.8" + }, + "@lezer/common": { + "requiredVersion": "^1.0.0", + "singleton": true + }, + "@lezer/highlight": { + "requiredVersion": "^1.0.0", + "singleton": true + }, + "@lumino/algorithm": { + "requiredVersion": "^2.0.0", + "singleton": true + }, + "@lumino/application": { + "requiredVersion": "^2.0.1", + "singleton": true + }, + "@lumino/commands": { + "requiredVersion": "^2.0.1", + "singleton": true + }, + "@lumino/coreutils": { + "requiredVersion": "^2.0.0", + "singleton": true + }, + "@lumino/datagrid": { + "requiredVersion": "^2.0.1", + "singleton": true + }, + "@lumino/disposable": { + "requiredVersion": "^2.0.0", + "singleton": true + }, + "@lumino/domutils": { + "requiredVersion": "^2.0.0", + "singleton": true + }, + "@lumino/dragdrop": { + "requiredVersion": "^2.0.0", + "singleton": true + }, + "@lumino/keyboard": { + "requiredVersion": "^2.0.0", + "singleton": true + }, + "@lumino/messaging": { + "requiredVersion": "^2.0.0", + "singleton": true + }, + "@lumino/polling": { + "requiredVersion": "^2.0.0", + "singleton": true + }, + "@lumino/properties": { + "requiredVersion": "^2.0.0", + "singleton": true + }, + "@lumino/signaling": { + "requiredVersion": "^2.0.0", + "singleton": true + }, + "@lumino/virtualdom": { + "requiredVersion": "^2.0.0", + "singleton": true + }, + "@lumino/widgets": { + "requiredVersion": "^2.0.1", + "singleton": true + }, + "react": { + "requiredVersion": "^18.2.0", + "singleton": true + }, + "react-dom": { + "requiredVersion": "^18.2.0", + "singleton": true + }, + "yjs": { + "requiredVersion": "^13.5.40", + "singleton": true + }, + "react-toastify": { + "requiredVersion": "^9.0.8" + }, + "@rjsf/utils": { + "requiredVersion": "^5.1.0" + }, + "@codemirror/lang-markdown": { + "requiredVersion": "^6.1.1" + }, + "@codemirror/legacy-modes": { + "requiredVersion": "^6.3.2" + }, + "@rjsf/validator-ajv8": { + "requiredVersion": "^5.1.0" + }, + "@codemirror/commands": { + "requiredVersion": "^6.2.3" + }, + "@codemirror/search": { + "requiredVersion": "^6.3.0" + }, + "marked": { + "requiredVersion": "^4.0.17" + }, + "mathjax-full": { + "requiredVersion": "^3.2.2" + }, + "react-highlight-words": { + "requiredVersion": "^0.20.0" + }, + "react-json-tree": { + "requiredVersion": "^0.18.0" + }, + "style-mod": { + "requiredVersion": "^4.0.0" + }, + "vega": { + "requiredVersion": "^5.20.0" + }, + "vega-embed": { + "requiredVersion": "^6.2.1" + }, + "vega-lite": { + "requiredVersion": "^5.6.1-next.1" + } + } + } + } + ], + "mode": "development", + "entry": { + "main": [ + "./publicpath", + "whatwg-fetch", + "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/build/bootstrap.js" + ] + }, + "optimization": { + "splitChunks": { + "chunks": "all", + "cacheGroups": { + "jlab_core": { + "test": {}, + "name": "jlab_core" + } + } + } + }, + "devtool": "inline-source-map", + "externals": [ + "ws" + ] + }, + { + "mode": "production", + "entry": { + "index": "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/node_modules/@jupyterlab/theme-dark-extension/style/theme.css" + }, + "output": { + "path": "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/themes/@jupyterlab/theme-dark-extension", + "filename": "[name].js", + "hashFunction": "sha256" + }, + "module": { + "rules": [ + { + "test": {}, + "use": [ + "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/node_modules/mini-css-extract-plugin/dist/loader.js", + "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/node_modules/css-loader/dist/cjs.js" + ] + }, + { + "test": {}, + "type": "asset/inline", + "generator": {} + }, + { + "test": {}, + "type": "asset" + } + ] + }, + "plugins": [ + { + "_sortedModulesCache": {}, + "options": { + "filename": "[name].css", + "ignoreOrder": false, + "runtime": true, + "chunkFilename": "[id].css" + }, + "runtimeOptions": { + "linkType": "text/css" + } + } + ] + }, + { + "mode": "production", + "entry": { + "index": "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/node_modules/@jupyterlab/theme-light-extension/style/theme.css" + }, + "output": { + "path": "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/themes/@jupyterlab/theme-light-extension", + "filename": "[name].js", + "hashFunction": "sha256" + }, + "module": { + "rules": [ + { + "test": {}, + "use": [ + "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/node_modules/mini-css-extract-plugin/dist/loader.js", + "/home/runner/work/jupyterlab/jupyterlab/.jupyter_releaser_checkout/jupyterlab/staging/node_modules/css-loader/dist/cjs.js" + ] + }, + { + "test": {}, + "type": "asset/inline", + "generator": {} + }, + { + "test": {}, + "type": "asset" + } + ] + }, + "plugins": [ + { + "_sortedModulesCache": {}, + "options": { + "filename": "[name].css", + "ignoreOrder": false, + "runtime": true, + "chunkFilename": "[id].css" + }, + "runtimeOptions": { + "linkType": "text/css" + } + } + ] + } +] \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/c49810b53ecc0d87d802.woff b/bootcamp/share/jupyter/lab/static/c49810b53ecc0d87d802.woff new file mode 100644 index 0000000..e735ddf Binary files /dev/null and b/bootcamp/share/jupyter/lab/static/c49810b53ecc0d87d802.woff differ diff --git a/bootcamp/share/jupyter/lab/static/c56da8d69f1a0208b8e0.woff b/bootcamp/share/jupyter/lab/static/c56da8d69f1a0208b8e0.woff new file mode 100644 index 0000000..510a8da Binary files /dev/null and b/bootcamp/share/jupyter/lab/static/c56da8d69f1a0208b8e0.woff differ diff --git a/bootcamp/share/jupyter/lab/static/cb9e9e693192413cde2b.woff b/bootcamp/share/jupyter/lab/static/cb9e9e693192413cde2b.woff new file mode 100644 index 0000000..ad077c6 Binary files /dev/null and b/bootcamp/share/jupyter/lab/static/cb9e9e693192413cde2b.woff differ diff --git a/bootcamp/share/jupyter/lab/static/cda59d6efffa685830fd.ttf b/bootcamp/share/jupyter/lab/static/cda59d6efffa685830fd.ttf new file mode 100644 index 0000000..8d75ded Binary files /dev/null and b/bootcamp/share/jupyter/lab/static/cda59d6efffa685830fd.ttf differ diff --git a/bootcamp/share/jupyter/lab/static/e4299464e7b012968eed.eot b/bootcamp/share/jupyter/lab/static/e4299464e7b012968eed.eot new file mode 100644 index 0000000..cba6c6c Binary files /dev/null and b/bootcamp/share/jupyter/lab/static/e4299464e7b012968eed.eot differ diff --git a/bootcamp/share/jupyter/lab/static/e42a88444448ac3d6054.woff2 b/bootcamp/share/jupyter/lab/static/e42a88444448ac3d6054.woff2 new file mode 100644 index 0000000..5632894 Binary files /dev/null and b/bootcamp/share/jupyter/lab/static/e42a88444448ac3d6054.woff2 differ diff --git a/bootcamp/share/jupyter/lab/static/e8711bbb871afd8e9dea.ttf b/bootcamp/share/jupyter/lab/static/e8711bbb871afd8e9dea.ttf new file mode 100644 index 0000000..7157aaf Binary files /dev/null and b/bootcamp/share/jupyter/lab/static/e8711bbb871afd8e9dea.ttf differ diff --git a/bootcamp/share/jupyter/lab/static/f9217f66874b0c01cd8c.woff b/bootcamp/share/jupyter/lab/static/f9217f66874b0c01cd8c.woff new file mode 100644 index 0000000..3375bef Binary files /dev/null and b/bootcamp/share/jupyter/lab/static/f9217f66874b0c01cd8c.woff differ diff --git a/bootcamp/share/jupyter/lab/static/fc6ddf5df402b263cfb1.woff b/bootcamp/share/jupyter/lab/static/fc6ddf5df402b263cfb1.woff new file mode 100644 index 0000000..22e5eff Binary files /dev/null and b/bootcamp/share/jupyter/lab/static/fc6ddf5df402b263cfb1.woff differ diff --git a/bootcamp/share/jupyter/lab/static/index.html b/bootcamp/share/jupyter/lab/static/index.html new file mode 100644 index 0000000..643c8c7 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/index.html @@ -0,0 +1,25 @@ +JupyterLab{# Copy so we do not modify the page_config with updates. #} {% set page_config_full = page_config.copy() %} {# Set a dummy variable - we just want the side effect of the update. #} {% set _ = page_config_full.update(baseUrl=base_url, wsUrl=ws_url) %}{% block favicon %}{% endblock %} \ No newline at end of file diff --git a/bootcamp/share/jupyter/lab/static/index.out.js b/bootcamp/share/jupyter/lab/static/index.out.js new file mode 100644 index 0000000..dd70bdd --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/index.out.js @@ -0,0 +1,628 @@ +// This file is auto-generated from the corresponding file in /dev_mode +/* + * Copyright (c) Jupyter Development Team. + * Distributed under the terms of the Modified BSD License. + */ + +import { PageConfig } from '@jupyterlab/coreutils'; + +import './style.js'; + +async function createModule(scope, module) { + try { + const factory = await window._JUPYTERLAB[scope].get(module); + return factory(); + } catch(e) { + console.warn(`Failed to create module: package: ${scope}; module: ${module}`); + throw e; + } +} + +/** + * The main entry point for the application. + */ +export async function main() { + + // Handle a browser test. + // Set up error handling prior to loading extensions. + var browserTest = PageConfig.getOption('browserTest'); + if (browserTest.toLowerCase() === 'true') { + var el = document.createElement('div'); + el.id = 'browserTest'; + document.body.appendChild(el); + el.textContent = '[]'; + el.style.display = 'none'; + var errors = []; + var reported = false; + var timeout = 25000; + + var report = function() { + if (reported) { + return; + } + reported = true; + el.className = 'completed'; + } + + window.onerror = function(msg, url, line, col, error) { + errors.push(String(error)); + el.textContent = JSON.stringify(errors) + }; + console.error = function(message) { + errors.push(String(message)); + el.textContent = JSON.stringify(errors) + }; + } + + var JupyterLab = require('@jupyterlab/application').JupyterLab; + var disabled = []; + var deferred = []; + var ignorePlugins = []; + var register = []; + + + const federatedExtensionPromises = []; + const federatedMimeExtensionPromises = []; + const federatedStylePromises = []; + + // Start initializing the federated extensions + const extensions = JSON.parse( + PageConfig.getOption('federated_extensions') + ); + + const queuedFederated = []; + + extensions.forEach(data => { + if (data.extension) { + queuedFederated.push(data.name); + federatedExtensionPromises.push(createModule(data.name, data.extension)); + } + if (data.mimeExtension) { + queuedFederated.push(data.name); + federatedMimeExtensionPromises.push(createModule(data.name, data.mimeExtension)); + } + + if (data.style && !PageConfig.Extension.isDisabled(data.name)) { + federatedStylePromises.push(createModule(data.name, data.style)); + } + }); + + /** + * Iterate over active plugins in an extension. + * + * #### Notes + * This also populates the disabled, deferred, and ignored arrays. + */ + function* activePlugins(extension) { + // Handle commonjs or es2015 modules + let exports; + if (extension.hasOwnProperty('__esModule')) { + exports = extension.default; + } else { + // CommonJS exports. + exports = extension; + } + + let plugins = Array.isArray(exports) ? exports : [exports]; + for (let plugin of plugins) { + if (PageConfig.Extension.isDisabled(plugin.id)) { + disabled.push(plugin.id); + continue; + } + if (PageConfig.Extension.isDeferred(plugin.id)) { + deferred.push(plugin.id); + ignorePlugins.push(plugin.id); + } + yield plugin; + } + } + + // Handle the registered mime extensions. + const mimeExtensions = []; + if (!queuedFederated.includes('@jupyterlab/javascript-extension')) { + try { + let ext = require('@jupyterlab/javascript-extension'); + for (let plugin of activePlugins(ext)) { + mimeExtensions.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/json-extension')) { + try { + let ext = require('@jupyterlab/json-extension'); + for (let plugin of activePlugins(ext)) { + mimeExtensions.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/pdf-extension')) { + try { + let ext = require('@jupyterlab/pdf-extension'); + for (let plugin of activePlugins(ext)) { + mimeExtensions.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/vega5-extension')) { + try { + let ext = require('@jupyterlab/vega5-extension'); + for (let plugin of activePlugins(ext)) { + mimeExtensions.push(plugin); + } + } catch (e) { + console.error(e); + } + } + + // Add the federated mime extensions. + const federatedMimeExtensions = await Promise.allSettled(federatedMimeExtensionPromises); + federatedMimeExtensions.forEach(p => { + if (p.status === "fulfilled") { + for (let plugin of activePlugins(p.value)) { + mimeExtensions.push(plugin); + } + } else { + console.error(p.reason); + } + }); + + // Handled the registered standard extensions. + if (!queuedFederated.includes('@jupyterlab/application-extension')) { + try { + let ext = require('@jupyterlab/application-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/apputils-extension')) { + try { + let ext = require('@jupyterlab/apputils-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/cell-toolbar-extension')) { + try { + let ext = require('@jupyterlab/cell-toolbar-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/celltags-extension')) { + try { + let ext = require('@jupyterlab/celltags-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/codemirror-extension')) { + try { + let ext = require('@jupyterlab/codemirror-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/completer-extension')) { + try { + let ext = require('@jupyterlab/completer-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/console-extension')) { + try { + let ext = require('@jupyterlab/console-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/csvviewer-extension')) { + try { + let ext = require('@jupyterlab/csvviewer-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/debugger-extension')) { + try { + let ext = require('@jupyterlab/debugger-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/docmanager-extension')) { + try { + let ext = require('@jupyterlab/docmanager-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/documentsearch-extension')) { + try { + let ext = require('@jupyterlab/documentsearch-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/extensionmanager-extension')) { + try { + let ext = require('@jupyterlab/extensionmanager-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/filebrowser-extension')) { + try { + let ext = require('@jupyterlab/filebrowser-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/fileeditor-extension')) { + try { + let ext = require('@jupyterlab/fileeditor-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/help-extension')) { + try { + let ext = require('@jupyterlab/help-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/htmlviewer-extension')) { + try { + let ext = require('@jupyterlab/htmlviewer-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/hub-extension')) { + try { + let ext = require('@jupyterlab/hub-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/imageviewer-extension')) { + try { + let ext = require('@jupyterlab/imageviewer-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/inspector-extension')) { + try { + let ext = require('@jupyterlab/inspector-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/launcher-extension')) { + try { + let ext = require('@jupyterlab/launcher-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/logconsole-extension')) { + try { + let ext = require('@jupyterlab/logconsole-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/lsp-extension')) { + try { + let ext = require('@jupyterlab/lsp-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/mainmenu-extension')) { + try { + let ext = require('@jupyterlab/mainmenu-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/markdownviewer-extension')) { + try { + let ext = require('@jupyterlab/markdownviewer-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/markedparser-extension')) { + try { + let ext = require('@jupyterlab/markedparser-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/mathjax-extension')) { + try { + let ext = require('@jupyterlab/mathjax-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/metadataform-extension')) { + try { + let ext = require('@jupyterlab/metadataform-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/notebook-extension')) { + try { + let ext = require('@jupyterlab/notebook-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/rendermime-extension')) { + try { + let ext = require('@jupyterlab/rendermime-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/running-extension')) { + try { + let ext = require('@jupyterlab/running-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/settingeditor-extension')) { + try { + let ext = require('@jupyterlab/settingeditor-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/shortcuts-extension')) { + try { + let ext = require('@jupyterlab/shortcuts-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/statusbar-extension')) { + try { + let ext = require('@jupyterlab/statusbar-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/terminal-extension')) { + try { + let ext = require('@jupyterlab/terminal-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/theme-dark-extension')) { + try { + let ext = require('@jupyterlab/theme-dark-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/theme-light-extension')) { + try { + let ext = require('@jupyterlab/theme-light-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/toc-extension')) { + try { + let ext = require('@jupyterlab/toc-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/tooltip-extension')) { + try { + let ext = require('@jupyterlab/tooltip-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/translation-extension')) { + try { + let ext = require('@jupyterlab/translation-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + if (!queuedFederated.includes('@jupyterlab/ui-components-extension')) { + try { + let ext = require('@jupyterlab/ui-components-extension'); + for (let plugin of activePlugins(ext)) { + register.push(plugin); + } + } catch (e) { + console.error(e); + } + } + + // Add the federated extensions. + const federatedExtensions = await Promise.allSettled(federatedExtensionPromises); + federatedExtensions.forEach(p => { + if (p.status === "fulfilled") { + for (let plugin of activePlugins(p.value)) { + register.push(plugin); + } + } else { + console.error(p.reason); + } + }); + + // Load all federated component styles and log errors for any that do not + (await Promise.allSettled(federatedStylePromises)).filter(({status}) => status === "rejected").forEach(({reason}) => { + console.error(reason); + }); + + const lab = new JupyterLab({ + mimeExtensions, + disabled: { + matches: disabled, + patterns: PageConfig.Extension.disabled + .map(function (val) { return val.raw; }) + }, + deferred: { + matches: deferred, + patterns: PageConfig.Extension.deferred + .map(function (val) { return val.raw; }) + }, + }); + register.forEach(function(item) { lab.registerPluginModule(item); }); + lab.start({ ignorePlugins }); + + // Expose global app instance when in dev mode or when toggled explicitly. + var exposeAppInBrowser = (PageConfig.getOption('exposeAppInBrowser') || '').toLowerCase() === 'true'; + var devMode = (PageConfig.getOption('devMode') || '').toLowerCase() === 'true'; + + if (exposeAppInBrowser || devMode) { + window.jupyterapp = lab; + } + + // Handle a browser test. + if (browserTest.toLowerCase() === 'true') { + lab.restored + .then(function() { report(errors); }) + .catch(function(reason) { report([`RestoreError: ${reason.message}`]); }); + + // Handle failures to restore after the timeout has elapsed. + window.setTimeout(function() { report(errors); }, timeout); + } + +} diff --git a/bootcamp/share/jupyter/lab/static/jlab_core.96e0941fd34af0e81382.js b/bootcamp/share/jupyter/lab/static/jlab_core.96e0941fd34af0e81382.js new file mode 100644 index 0000000..4535bb4 --- /dev/null +++ b/bootcamp/share/jupyter/lab/static/jlab_core.96e0941fd34af0e81382.js @@ -0,0 +1 @@ +(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[3472],{10744:(e,t,n)=>{"use strict";n.r(t);n.d(t,{DEFAULT_CONTEXT_ITEM_RANK:()=>y,default:()=>F});var i=n(74574);var s=n(10759);var o=n(20501);var r=n(87645);var a=n(95811);var l=n(22971);var d=n(85176);var c=n(6958);var h=n(4148);var u=n(58740);var p=n(5596);var m=n(6682);var g=n(26512);var f=n(85448);var v=n(28416);const _="TopBar";const b={id:"@jupyterlab/application-extension:top-bar",description:"Adds a toolbar to the top area (next to the main menu bar).",autoStart:true,requires:[a.ISettingRegistry,s.IToolbarWidgetRegistry],optional:[c.ITranslator],activate:(e,t,n,i)=>{const o=new h.Toolbar;o.id="jp-top-bar";(0,s.setToolbar)(o,(0,s.createToolbarFactory)(n,t,_,b.id,i!==null&&i!==void 0?i:c.nullTranslator),o);e.shell.add(o,"top",{rank:900})}};const y=100;var w;(function(e){e.activateNextTab="application:activate-next-tab";e.activatePreviousTab="application:activate-previous-tab";e.activateNextTabBar="application:activate-next-tab-bar";e.activatePreviousTabBar="application:activate-previous-tab-bar";e.close="application:close";e.closeOtherTabs="application:close-other-tabs";e.closeRightTabs="application:close-right-tabs";e.closeAll="application:close-all";e.setMode="application:set-mode";e.showPropertyPanel="property-inspector:show-panel";e.resetLayout="application:reset-layout";e.toggleHeader="application:toggle-header";e.toggleMode="application:toggle-mode";e.toggleLeftArea="application:toggle-left-area";e.toggleRightArea="application:toggle-right-area";e.toggleSideTabBar="application:toggle-side-tabbar";e.togglePresentationMode="application:toggle-presentation-mode";e.tree="router:tree";e.switchSidebar="sidebar:switch"})(w||(w={}));const C={id:"@jupyterlab/application-extension:commands",description:"Adds commands related to the shell.",autoStart:true,requires:[c.ITranslator],optional:[i.ILabShell,s.ICommandPalette],activate:(e,t,n,s)=>{const{commands:r,shell:a}=e;const l=t.load("jupyterlab");const d=l.__("Main Area");r.addCommand(i.JupyterFrontEndContextMenu.contextMenu,{label:l.__("Shift+Right Click for Browser Menu"),isEnabled:()=>false,execute:()=>void 0});const c=()=>{const t=e=>!!e.dataset.id;const n=e.contextMenuHitTest(t);if(!n){return a.currentWidget}return(0,u.find)(a.widgets("main"),(e=>e.id===n.dataset.id))||a.currentWidget};const h=e=>{e.forEach((e=>e.close()))};const p=(e,t)=>{if(e.type==="tab-area"){return e.widgets.includes(t)?e:null}if(e.type==="split-area"){for(const n of e.children){const e=p(n,t);if(e){return e}}}return null};const m=e=>{var t;const i=n===null||n===void 0?void 0:n.saveLayout();const s=i===null||i===void 0?void 0:i.mainArea;if(!s||o.PageConfig.getOption("mode")!=="multiple-document"){return null}const r=(t=s.dock)===null||t===void 0?void 0:t.main;return r?p(r,e):null};const g=e=>{const{id:t}=e;const n=m(e);const i=n?n.widgets||[]:[];const s=i.findIndex((e=>e.id===t));if(s<0){return[]}return i.slice(s+1)};r.addCommand(w.close,{label:()=>l.__("Close Tab"),isEnabled:()=>{const e=c();return!!e&&e.title.closable},execute:()=>{const e=c();if(e){e.close()}}});r.addCommand(w.closeOtherTabs,{label:()=>l.__("Close All Other Tabs"),isEnabled:()=>(0,u.some)(a.widgets("main"),((e,t)=>t===1)),execute:()=>{const e=c();if(!e){return}const{id:t}=e;for(const n of a.widgets("main")){if(n.id!==t){n.close()}}}});r.addCommand(w.closeRightTabs,{label:()=>l.__("Close Tabs to Right"),isEnabled:()=>!!c()&&g(c()).length>0,execute:()=>{const e=c();if(!e){return}h(g(e))}});if(n){r.addCommand(w.activateNextTab,{label:l.__("Activate Next Tab"),execute:()=>{n.activateNextTab()}});r.addCommand(w.activatePreviousTab,{label:l.__("Activate Previous Tab"),execute:()=>{n.activatePreviousTab()}});r.addCommand(w.activateNextTabBar,{label:l.__("Activate Next Tab Bar"),execute:()=>{n.activateNextTabBar()}});r.addCommand(w.activatePreviousTabBar,{label:l.__("Activate Previous Tab Bar"),execute:()=>{n.activatePreviousTabBar()}});r.addCommand(w.closeAll,{label:l.__("Close All Tabs"),execute:()=>{n.closeAll()}});r.addCommand(w.toggleHeader,{label:l.__("Show Header"),execute:()=>{if(n.mode==="single-document"){n.toggleTopInSimpleModeVisibility()}},isToggled:()=>n.isTopInSimpleModeVisible(),isVisible:()=>n.mode==="single-document"});r.addCommand(w.toggleLeftArea,{label:l.__("Show Left Sidebar"),execute:()=>{if(n.leftCollapsed){n.expandLeft()}else{n.collapseLeft();if(n.currentWidget){n.activateById(n.currentWidget.id)}}},isToggled:()=>!n.leftCollapsed,isEnabled:()=>!n.isEmpty("left")});r.addCommand(w.toggleRightArea,{label:l.__("Show Right Sidebar"),execute:()=>{if(n.rightCollapsed){n.expandRight()}else{n.collapseRight();if(n.currentWidget){n.activateById(n.currentWidget.id)}}},isToggled:()=>!n.rightCollapsed,isEnabled:()=>!n.isEmpty("right")});r.addCommand(w.toggleSideTabBar,{label:e=>e.side==="right"?l.__("Show Right Activity Bar"):l.__("Show Left Activity Bar"),execute:e=>{if(e.side==="right"){n.toggleSideTabBarVisibility("right")}else{n.toggleSideTabBarVisibility("left")}},isToggled:e=>e.side==="right"?n.isSideTabBarVisible("right"):n.isSideTabBarVisible("left"),isEnabled:e=>e.side==="right"?!n.isEmpty("right"):!n.isEmpty("left")});r.addCommand(w.togglePresentationMode,{label:()=>l.__("Presentation Mode"),execute:()=>{n.presentationMode=!n.presentationMode},isToggled:()=>n.presentationMode,isVisible:()=>true});r.addCommand(w.setMode,{label:e=>e["mode"]?l.__("Set %1 mode.",e["mode"]):l.__("Set the layout `mode`."),caption:l.__('The layout `mode` can be "single-document" or "multiple-document".'),isVisible:e=>{const t=e["mode"];return t==="single-document"||t==="multiple-document"},execute:e=>{const t=e["mode"];if(t==="single-document"||t==="multiple-document"){n.mode=t;return}throw new Error(`Unsupported application shell mode: ${t}`)}});r.addCommand(w.toggleMode,{label:l.__("Simple Interface"),isToggled:()=>n.mode==="single-document",execute:()=>{const e=n.mode==="multiple-document"?{mode:"single-document"}:{mode:"multiple-document"};return r.execute(w.setMode,e)}});r.addCommand(w.resetLayout,{label:l.__("Reset Default Layout"),execute:()=>{if(n.presentationMode){r.execute(w.togglePresentationMode).catch((e=>{console.error("Failed to undo presentation mode.",e)}))}if(n.mode==="single-document"&&!n.isTopInSimpleModeVisible()){r.execute(w.toggleHeader).catch((e=>{console.error("Failed to display title header.",e)}))}["left","right"].forEach((e=>{if(!n.isSideTabBarVisible(e)&&!n.isEmpty(e)){r.execute(w.toggleSideTabBar,{side:e}).catch((t=>{console.error(`Failed to show ${e} activity bar.`,t)}))}}))}})}if(s){[w.activateNextTab,w.activatePreviousTab,w.activateNextTabBar,w.activatePreviousTabBar,w.close,w.closeAll,w.closeOtherTabs,w.closeRightTabs,w.toggleHeader,w.toggleLeftArea,w.toggleRightArea,w.togglePresentationMode,w.toggleMode,w.resetLayout].forEach((e=>s.addItem({command:e,category:d})));["right","left"].forEach((e=>{s.addItem({command:w.toggleSideTabBar,category:d,args:{side:e}})}))}}};const x={id:"@jupyterlab/application-extension:main",description:"Initializes the application and provides the URL tree path handler.",requires:[i.IRouter,s.IWindowResolver,c.ITranslator,i.JupyterFrontEnd.ITreeResolver],optional:[i.IConnectionLost],provides:i.ITreePathUpdater,activate:(e,t,n,r,a,l)=>{const d=r.load("jupyterlab");if(!(e instanceof i.JupyterLab)){throw new Error(`${x.id} must be activated in JupyterLab.`)}let c="";let h="";function u(e){void a.paths.then((()=>{h=e;if(!c){const n=o.PageConfig.getUrl({treePath:e});const i=o.URLExt.parse(n).pathname;t.navigate(i,{skipRouting:true});o.PageConfig.setOption("treePath",e)}}))}const p=n.name;console.debug(`Starting application in workspace: "${p}"`);if(e.registerPluginErrors.length!==0){const t=v.createElement("pre",null,e.registerPluginErrors.map((e=>e.message)).join("\n"));void(0,s.showErrorMessage)(d.__("Error Registering Plugins"),{message:t})}e.shell.layoutModified.connect((()=>{e.commands.notifyCommandChanged()}));e.shell.modeChanged.connect(((e,n)=>{const i=o.PageConfig.getUrl({mode:n});const s=o.URLExt.parse(i).pathname;t.navigate(s,{skipRouting:true});o.PageConfig.setOption("mode",n)}));void a.paths.then((()=>{e.shell.currentPathChanged.connect(((e,n)=>{const i=n.newValue;const s=i||h;const r=o.PageConfig.getUrl({treePath:s});const a=o.URLExt.parse(r).pathname;t.navigate(a,{skipRouting:true});o.PageConfig.setOption("treePath",s);c=i}))}));l=l||i.ConnectionLost;e.serviceManager.connectionFailure.connect(((e,t)=>l(e,t,r)));const m=e.serviceManager.builder;const g=()=>m.build().then((()=>(0,s.showDialog)({title:d.__("Build Complete"),body:v.createElement("div",null,d.__("Build successfully completed, reload page?"),v.createElement("br",null),d.__("You will lose any unsaved changes.")),buttons:[s.Dialog.cancelButton({label:d.__("Reload Without Saving"),actions:["reload"]}),s.Dialog.okButton({label:d.__("Save and Reload")})],hasClose:true}))).then((({button:{accept:n,actions:i}})=>{if(n){void e.commands.execute("docmanager:save").then((()=>{t.reload()})).catch((e=>{void(0,s.showErrorMessage)(d.__("Save Failed"),{message:v.createElement("pre",null,e.message)})}))}else if(i.includes("reload")){t.reload()}})).catch((e=>{void(0,s.showErrorMessage)(d.__("Build Failed"),{message:v.createElement("pre",null,e.message)})}));if(m.isAvailable&&m.shouldCheck){void m.getStatus().then((e=>{if(e.status==="building"){return g()}if(e.status!=="needed"){return}const t=v.createElement("div",null,d.__("JupyterLab build is suggested:"),v.createElement("br",null),v.createElement("pre",null,e.message));void(0,s.showDialog)({title:d.__("Build Recommended"),body:t,buttons:[s.Dialog.cancelButton(),s.Dialog.okButton({label:d.__("Build")})]}).then((e=>e.button.accept?g():undefined))}))}return u},autoStart:true};const S={id:"@jupyterlab/application-extension:context-menu",description:"Populates the context menu.",autoStart:true,requires:[a.ISettingRegistry,c.ITranslator],activate:(e,t,n)=>{const i=n.load("jupyterlab");function s(t){const n=new h.RankedMenu({...t,commands:e.commands});if(t.label){n.title.label=i.__(t.label)}return n}e.started.then((()=>z.loadSettingsContextMenu(e.contextMenu,t,s,n))).catch((e=>{console.error("Failed to load context menu items from settings registry.",e)}))}};const k={id:"@jupyterlab/application-extension:dirty",description:"Adds safeguard dialog when closing the browser tab with unsaved modifications.",autoStart:true,requires:[c.ITranslator],activate:(e,t)=>{if(!(e instanceof i.JupyterLab)){throw new Error(`${k.id} must be activated in JupyterLab.`)}const n=t.load("jupyterlab");const s=n.__("Are you sure you want to exit JupyterLab?\n\nAny unsaved changes will be lost.");window.addEventListener("beforeunload",(t=>{if(e.status.isDirty){return t.returnValue=s}}))}};const j={id:"@jupyterlab/application-extension:layout",description:"Provides the shell layout restorer.",requires:[l.IStateDB,i.ILabShell,a.ISettingRegistry],optional:[c.ITranslator],activate:(e,t,n,r,a)=>{const l=(a!==null&&a!==void 0?a:c.nullTranslator).load("jupyterlab");const d=e.started;const h=e.commands;const u=o.PageConfig.getOption("mode");const m=new i.LayoutRestorer({connector:t,first:d,registry:h,mode:u});r.load(D.id).then((t=>{var i,s;const o=t.composite["layout"];void n.restoreLayout(u,m,{"multiple-document":(i=o.multiple)!==null&&i!==void 0?i:{},"single-document":(s=o.single)!==null&&s!==void 0?s:{}}).then((()=>{n.layoutModified.connect((()=>{void m.save(n.saveLayout())}));t.changed.connect(g);z.activateSidebarSwitcher(e,n,t,l)}))})).catch((e=>{console.error("Fail to load settings for the layout restorer.");console.error(e)}));return m;async function g(e){if(!p.JSONExt.deepEqual(e.composite["layout"],{single:n.userLayout["single-document"],multiple:n.userLayout["multiple-document"]})){const e=await(0,s.showDialog)({title:l.__("Information"),body:l.__("User layout customization has changed. You may need to reload JupyterLab to see the changes."),buttons:[s.Dialog.cancelButton(),s.Dialog.okButton({label:l.__("Reload")})]});if(e.button.accept){location.reload()}}}},autoStart:true,provides:i.ILayoutRestorer};const M={id:"@jupyterlab/application-extension:router",description:"Provides the URL router",requires:[i.JupyterFrontEnd.IPaths],activate:(e,t)=>{const{commands:n}=e;const s=t.urls.base;const o=new i.Router({base:s,commands:n});void e.started.then((()=>{void o.route();window.addEventListener("popstate",(()=>{void o.route()}))}));return o},autoStart:true,provides:i.IRouter};const E={id:"@jupyterlab/application-extension:tree-resolver",description:"Provides the tree route resolver",autoStart:true,requires:[i.IRouter],provides:i.JupyterFrontEnd.ITreeResolver,activate:(e,t)=>{const{commands:n}=e;const i=new g.DisposableSet;const s=new p.PromiseDelegate;const r=new RegExp("/(lab|doc)(/workspaces/[a-zA-Z0-9-_]+)?(/tree/.*)?");i.add(n.addCommand(w.tree,{execute:async e=>{var t;if(i.isDisposed){return}const n=o.URLExt.queryStringToObject((t=e.search)!==null&&t!==void 0?t:"");const r=n["file-browser-path"]||"";delete n["file-browser-path"];i.dispose();s.resolve({browser:r,file:o.PageConfig.getOption("treePath")})}}));i.add(t.register({command:w.tree,pattern:r}));const a=()=>{if(i.isDisposed){return}i.dispose();s.resolve(null)};t.routed.connect(a);i.add(new g.DisposableDelegate((()=>{t.routed.disconnect(a)})));return{paths:s.promise}}};const I={id:"@jupyterlab/application-extension:notfound",description:"Defines the behavior for not found URL (aka route).",requires:[i.JupyterFrontEnd.IPaths,i.IRouter,c.ITranslator],activate:(e,t,n,i)=>{const o=i.load("jupyterlab");const r=t.urls.notFound;if(!r){return}const a=n.base;const l=o.__("The path: %1 was not found. JupyterLab redirected to: %2",r,a);n.navigate("");void(0,s.showErrorMessage)(o.__("Path Not Found"),{message:l})},autoStart:true};const T={id:"@jupyterlab/application-extension:faviconbusy",description:"Handles the favicon depending on the application status.",requires:[i.ILabStatus],activate:async(e,t)=>{t.busySignal.connect(((e,t)=>{const n=document.querySelector(`link[rel="icon"]${t?".idle.favicon":".busy.favicon"}`);if(!n){return}const i=document.querySelector(`link${t?".busy.favicon":".idle.favicon"}`);if(!i){return}if(n!==i){n.rel="";i.rel="icon";i.parentNode.replaceChild(i,i)}}))},autoStart:true};const D={id:"@jupyterlab/application-extension:shell",description:"Provides the JupyterLab shell. It has an extended API compared to `app.shell`.",optional:[a.ISettingRegistry],activate:(e,t)=>{if(!(e.shell instanceof i.LabShell)){throw new Error(`${D.id} did not find a LabShell instance.`)}if(t){void t.load(D.id).then((t=>{e.shell.updateConfig(t.composite);t.changed.connect((()=>{e.shell.updateConfig(t.composite)}))}))}return e.shell},autoStart:true,provides:i.ILabShell};const L={id:"@jupyterlab/application-extension:status",description:"Provides the application status.",activate:e=>{if(!(e instanceof i.JupyterLab)){throw new Error(`${L.id} must be activated in JupyterLab.`)}return e.status},autoStart:true,provides:i.ILabStatus};const P={id:"@jupyterlab/application-extension:info",description:"Provides the application information.",activate:e=>{if(!(e instanceof i.JupyterLab)){throw new Error(`${P.id} must be activated in JupyterLab.`)}return e.info},autoStart:true,provides:i.JupyterLab.IInfo};const A={id:"@jupyterlab/application-extension:paths",description:"Provides the application paths.",activate:e=>{if(!(e instanceof i.JupyterLab)){throw new Error(`${A.id} must be activated in JupyterLab.`)}return e.paths},autoStart:true,provides:i.JupyterFrontEnd.IPaths};const R={id:"@jupyterlab/application-extension:property-inspector",description:"Provides the property inspector.",autoStart:true,requires:[i.ILabShell,c.ITranslator],optional:[i.ILayoutRestorer],provides:r.IPropertyInspectorProvider,activate:(e,t,n,i)=>{const s=n.load("jupyterlab");const o=new r.SideBarPropertyInspectorProvider({shell:t,translator:n});o.title.icon=h.buildIcon;o.title.caption=s.__("Property Inspector");o.id="jp-property-inspector";t.add(o,"right",{rank:100,type:"Property Inspector"});e.commands.addCommand(w.showPropertyPanel,{label:s.__("Property Inspector"),execute:()=>{t.activateById(o.id)}});if(i){i.add(o,"jp-property-inspector")}return o}};const N={id:"@jupyterlab/application-extension:logo",description:"Sets the application logo.",autoStart:true,requires:[i.ILabShell],activate:(e,t)=>{const n=new f.Widget;h.jupyterIcon.element({container:n.node,elementPosition:"center",margin:"2px 2px 2px 8px",height:"auto",width:"16px"});n.id="jp-MainLogo";t.add(n,"top",{rank:0})}};const O={id:"@jupyterlab/application-extension:mode-switch",description:"Adds the interface mode switch",requires:[i.ILabShell,c.ITranslator],optional:[d.IStatusBar,a.ISettingRegistry],activate:(e,t,n,i,s)=>{if(i===null){return}const o=n.load("jupyterlab");const r=new h.Switch;r.id="jp-single-document-mode";r.valueChanged.connect(((e,n)=>{t.mode=n.newValue?"single-document":"multiple-document"}));t.modeChanged.connect(((e,t)=>{r.value=t==="single-document"}));if(s){const n=s.load(D.id);const i=e=>{const n=e.get("startMode").composite;if(n){t.mode=n==="single"?"single-document":"multiple-document"}};Promise.all([n,e.restored]).then((([e])=>{i(e)})).catch((e=>{console.error(e.message)}))}const a=()=>{const t=e.commands.keyBindings.find((e=>e.command==="application:toggle-mode"));if(t){const e=t.keys.map(m.CommandRegistry.formatKeystroke).join(", ");r.caption=o.__("Simple Interface (%1)",e)}else{r.caption=o.__("Simple Interface")}};a();e.commands.keyBindingChanged.connect((()=>{a()}));r.label=o.__("Simple");i.registerStatusItem(O.id,{item:r,align:"left",rank:-1})},autoStart:true};const B=[S,k,x,C,j,M,E,I,T,D,L,P,O,A,R,N,b];const F=B;var z;(function(e){async function t(e){const t=await(0,s.showDialog)({title:e.__("Information"),body:e.__("Context menu customization has changed. You will need to reload JupyterLab to see the changes."),buttons:[s.Dialog.cancelButton(),s.Dialog.okButton({label:e.__("Reload")})]});if(t.button.accept){location.reload()}}async function n(e,n,i,o){var r;const l=o.load("jupyterlab");const d=S.id;let c=null;let h={};function u(e){var t,i;h={};const s=Object.keys(n.plugins).map((e=>{var t,i;const s=(i=(t=n.plugins[e].schema["jupyter.lab.menus"])===null||t===void 0?void 0:t.context)!==null&&i!==void 0?i:[];h[e]=s;return s})).concat([(i=(t=e["jupyter.lab.menus"])===null||t===void 0?void 0:t.context)!==null&&i!==void 0?i:[]]).reduceRight(((e,t)=>a.SettingRegistry.reconcileItems(e,t,true)),[]);e.properties.contextMenu.default=a.SettingRegistry.reconcileItems(s,e.properties.contextMenu.default,true).sort(((e,t)=>{var n,i;return((n=e.rank)!==null&&n!==void 0?n:Infinity)-((i=t.rank)!==null&&i!==void 0?i:Infinity)}))}n.transform(d,{compose:e=>{var t,n,i,s;if(!c){c=p.JSONExt.deepCopy(e.schema);u(c)}const o=(i=(n=(t=c.properties)===null||t===void 0?void 0:t.contextMenu)===null||n===void 0?void 0:n.default)!==null&&i!==void 0?i:[];const r={...e.data.user,contextMenu:(s=e.data.user.contextMenu)!==null&&s!==void 0?s:[]};const l={...e.data.composite,contextMenu:a.SettingRegistry.reconcileItems(o,r.contextMenu,false)};e.data={composite:l,user:r};return e},fetch:e=>{if(!c){c=p.JSONExt.deepCopy(e.schema);u(c)}return{data:e.data,id:e.id,raw:e.raw,schema:c,version:e.version}}});const m=await n.load(d);const g=(r=m.composite.contextMenu)!==null&&r!==void 0?r:[];a.SettingRegistry.filterDisabledItems(g).forEach((t=>{s.MenuFactory.addContextItem({rank:y,...t},e,i)}));m.changed.connect((()=>{var e;const n=(e=m.composite.contextMenu)!==null&&e!==void 0?e:[];if(!p.JSONExt.deepEqual(g,n)){void t(l)}}));n.pluginChanged.connect((async(o,r)=>{var c,u,m,f;if(r!==d){const o=(c=h[r])!==null&&c!==void 0?c:[];const d=(m=(u=n.plugins[r].schema["jupyter.lab.menus"])===null||u===void 0?void 0:u.context)!==null&&m!==void 0?m:[];if(!p.JSONExt.deepEqual(o,d)){if(h[r]){await t(l)}else{h[r]=p.JSONExt.deepCopy(d);const t=(f=a.SettingRegistry.reconcileItems(d,g,false,false))!==null&&f!==void 0?f:[];a.SettingRegistry.filterDisabledItems(t).forEach((t=>{s.MenuFactory.addContextItem({rank:y,...t},e,i)}))}}}}))}e.loadSettingsContextMenu=n;function i(e,t,n,i){e.commands.addCommand(w.switchSidebar,{label:i.__("Switch Sidebar Side"),execute:()=>{const i=e.contextMenuHitTest((e=>!!e.dataset.id));if(!i){return}const s=i.dataset["id"];const o=document.getElementById("jp-left-stack");const r=document.getElementById(s);let a=null;if(o&&r&&o.contains(r)){const e=(0,u.find)(t.widgets("left"),(e=>e.id===s));if(e){a=t.move(e,"right");t.activateById(e.id)}}else{const e=(0,u.find)(t.widgets("right"),(e=>e.id===s));if(e){a=t.move(e,"left");t.activateById(e.id)}}if(a){n.set("layout",{single:a["single-document"],multiple:a["multiple-document"]}).catch((e=>{console.error("Failed to save user layout customization.",e)}))}}});e.commands.commandExecuted.connect(((e,t)=>{if(t.id===w.resetLayout){n.remove("layout").catch((e=>{console.error("Failed to remove user layout customization.",e)}))}}))}e.activateSidebarSwitcher=i})(z||(z={}))},95171:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(98328);var r=n(90516);var a=n(9469);var l=n(93379);var d=n.n(l);var c=n(7795);var h=n.n(c);var u=n(90569);var p=n.n(u);var m=n(3565);var g=n.n(m);var f=n(19216);var v=n.n(f);var _=n(44589);var b=n.n(_);var y=n(38994);var w={};w.styleTagTransform=b();w.setAttributes=g();w.insert=p().bind(null,"head");w.domAPI=h();w.insertStyleElement=v();var C=d()(y.Z,w);const x=y.Z&&y.Z.locals?y.Z.locals:undefined},69760:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ConnectionLost:()=>o,IConnectionLost:()=>V,ILabShell:()=>N,ILabStatus:()=>U,ILayoutRestorer:()=>_,IMimeDocumentTracker:()=>C,IRouter:()=>$,ITreePathUpdater:()=>q,JupyterFrontEnd:()=>u,JupyterFrontEndContextMenu:()=>m,JupyterLab:()=>H,LabShell:()=>O,LayoutRestorer:()=>y,Router:()=>W,createRendermimePlugin:()=>S,createRendermimePlugins:()=>x,createSemanticCommand:()=>K});var i=n(10759);var s=n(6958);const o=async function(e,t,n){n=n||s.nullTranslator;const o=n.load("jupyterlab");const r=o.__("Server Connection Error");const a=o.__("A connection to the Jupyter server could not be established.\n"+"JupyterLab will continue trying to reconnect.\n"+"Check your network connection or Jupyter server configuration.\n");return(0,i.showErrorMessage)(r,{message:a})};var r=n(12542);var a=n(96306);var l=n(4148);var d=n(5097);var c=n(5596);var h=n(71372);class u extends d.Application{constructor(e){super(e);this._formatChanged=new h.Signal(this);this.contextMenu=new l.ContextMenuSvg({commands:this.commands,renderer:e.contextMenuRenderer,groupByTarget:false,sortBySelector:false});const t=new Promise((e=>{requestAnimationFrame((()=>{e()}))}));this.commandLinker=e.commandLinker||new i.CommandLinker({commands:this.commands});this.docRegistry=e.docRegistry||new r.DocumentRegistry;this.restored=e.restored||this.started.then((()=>t)).catch((()=>t));this.serviceManager=e.serviceManager||new a.ServiceManager}get format(){return this._format}set format(e){if(this._format!==e){this._format=e;document.body.dataset["format"]=e;this._formatChanged.emit(e)}}get formatChanged(){return this._formatChanged}contextMenuHitTest(e){if(!this._contextMenuEvent||!(this._contextMenuEvent.target instanceof Node)){return undefined}let t=this._contextMenuEvent.target;do{if(t instanceof HTMLElement&&e(t)){return t}t=t.parentNode}while(t&&t.parentNode&&t!==t.parentNode);return undefined}evtContextMenu(e){this._contextMenuEvent=e;if(e.shiftKey||p.suppressContextMenu(e.target)){return}const t=this.contextMenu.open(e);if(t){const t=this.contextMenu.menu.items;if(t.length===1&&t[0].command===m.contextMenu){this.contextMenu.menu.close();return}e.preventDefault();e.stopPropagation()}}}(function(e){function t(e,t){const n=new RegExp(`^${t.urls.doc}`);const i=e.match(n);if(i){return true}else{return false}}e.inDocMode=t;e.IPaths=new c.Token("@jupyterlab/application:IPaths",`A service providing information about various\n URLs and server paths for the current application. Use this service if you want to\n assemble URLs to use the JupyterLab REST API.`);e.ITreeResolver=new c.Token("@jupyterlab/application:ITreeResolver","A service to resolve the tree path.")})(u||(u={}));var p;(function(e){function t(e){return e.closest("[data-jp-suppress-context-menu]")!==null}e.suppressContextMenu=t})(p||(p={}));var m;(function(e){e.contextMenu="__internal:context-menu-info"})(m||(m={}));var g=n(20501);var f=n(23635);var v=n(75379);const _=new c.Token("@jupyterlab/application:ILayoutRestorer","A service providing application layout restoration functionality. Use this to have your activities restored across page loads.");const b="layout-restorer:data";class y{constructor(e){this._deferred=new Array;this._deferredMainArea=null;this._firstDone=false;this._promisesDone=false;this._promises=[];this._restored=new c.PromiseDelegate;this._trackers=new Set;this._widgets=new Map;this._mode="multiple-document";this._connector=e.connector;this._first=e.first;this._registry=e.registry;if(e.mode){this._mode=e.mode}void this._first.then((()=>{this._firstDone=true})).then((()=>Promise.all(this._promises))).then((()=>{this._promisesDone=true;this._trackers.clear()})).then((()=>{this._restored.resolve(void 0)}))}get isDeferred(){return this._deferred.length>0}get restored(){return this._restored.promise}add(e,t){w.nameProperty.set(e,t);this._widgets.set(t,e);e.disposed.connect(this._onWidgetDisposed,this)}async fetch(){var e;const t={fresh:true,mainArea:null,downArea:null,leftArea:null,rightArea:null,topArea:null,relativeSizes:null};const n=this._connector.fetch(b);try{const[i]=await Promise.all([n,this.restored]);if(!i){return t}const{main:s,down:o,left:r,right:a,relativeSizes:l,top:d}=i;const c=false;let h=null;if(this._mode==="multiple-document"){h=this._rehydrateMainArea(s)}else{this._deferredMainArea=s}const u=this._rehydrateDownArea(o);const p=this._rehydrateSideArea(r);const m=this._rehydrateSideArea(a);return{fresh:c,mainArea:h,downArea:u,leftArea:p,rightArea:m,relativeSizes:l||null,topArea:(e=d)!==null&&e!==void 0?e:null}}catch(i){return t}}async restore(e,t){if(this._firstDone){throw new Error("restore() must be called before `first` has resolved.")}const{namespace:n}=e;if(this._trackers.has(n)){throw new Error(`The tracker "${n}" is already restored.`)}const{args:i,command:s,name:o,when:r}=t;this._trackers.add(n);e.widgetAdded.connect(((e,t)=>{const i=o(t);if(i){this.add(t,`${n}:${i}`)}}),this);e.widgetUpdated.connect(((e,t)=>{const i=o(t);if(i){const e=`${n}:${i}`;w.nameProperty.set(t,e);this._widgets.set(e,t)}}));const a=this._first;if(this._mode=="multiple-document"){const t=e.restore({args:i||(()=>c.JSONExt.emptyObject),command:s,connector:this._connector,name:o,registry:this._registry,when:r?[a].concat(r):a}).catch((e=>{console.error(e)}));this._promises.push(t);return t}e.defer({args:i||(()=>c.JSONExt.emptyObject),command:s,connector:this._connector,name:o,registry:this._registry,when:r?[a].concat(r):a});this._deferred.push(e)}async restoreDeferred(){if(!this.isDeferred){return null}const e=Promise.resolve();const t=this._deferred.map((t=>e.then((()=>t.restore()))));this._deferred.length=0;await Promise.all(t);return this._rehydrateMainArea(this._deferredMainArea)}save(e){if(!this._promisesDone){const e="save() was called prematurely.";console.warn(e);return Promise.reject(e)}const t={};t.main=this.isDeferred?this._deferredMainArea:this._dehydrateMainArea(e.mainArea);t.down=this._dehydrateDownArea(e.downArea);t.left=this._dehydrateSideArea(e.leftArea);t.right=this._dehydrateSideArea(e.rightArea);t.relativeSizes=e.relativeSizes;t.top={...e.topArea};return this._connector.save(b,t)}_dehydrateMainArea(e){if(!e){return null}return w.serializeMain(e)}_rehydrateMainArea(e){if(!e){return null}return w.deserializeMain(e,this._widgets)}_dehydrateDownArea(e){if(!e){return null}const t={size:e.size};if(e.currentWidget){const n=w.nameProperty.get(e.currentWidget);if(n){t.current=n}}if(e.widgets){t.widgets=e.widgets.map((e=>w.nameProperty.get(e))).filter((e=>!!e))}return t}_rehydrateDownArea(e){var t;if(!e){return{currentWidget:null,size:0,widgets:null}}const n=this._widgets;const i=e.current&&n.has(`${e.current}`)?n.get(`${e.current}`):null;const s=!Array.isArray(e.widgets)?null:e.widgets.map((e=>n.has(`${e}`)?n.get(`${e}`):null)).filter((e=>!!e));return{currentWidget:i,size:(t=e.size)!==null&&t!==void 0?t:0,widgets:s}}_dehydrateSideArea(e){if(!e){return null}const t={collapsed:e.collapsed,visible:e.visible};if(e.currentWidget){const n=w.nameProperty.get(e.currentWidget);if(n){t.current=n}}if(e.widgets){t.widgets=e.widgets.map((e=>w.nameProperty.get(e))).filter((e=>!!e))}return t}_rehydrateSideArea(e){var t,n;if(!e){return{collapsed:true,currentWidget:null,visible:true,widgets:null}}const i=this._widgets;const s=(t=e.collapsed)!==null&&t!==void 0?t:false;const o=e.current&&i.has(`${e.current}`)?i.get(`${e.current}`):null;const r=!Array.isArray(e.widgets)?null:e.widgets.map((e=>i.has(`${e}`)?i.get(`${e}`):null)).filter((e=>!!e));return{collapsed:s,currentWidget:o,widgets:r,visible:(n=e.visible)!==null&&n!==void 0?n:true}}_onWidgetDisposed(e){const t=w.nameProperty.get(e);this._widgets.delete(t)}}var w;(function(e){e.nameProperty=new v.AttachedProperty({name:"name",create:e=>""});function t(n){if(!n||!n.type){return null}if(n.type==="tab-area"){return{type:"tab-area",currentIndex:n.currentIndex,widgets:n.widgets.map((t=>e.nameProperty.get(t))).filter((e=>!!e))}}return{type:"split-area",orientation:n.orientation,sizes:n.sizes,children:n.children.map(t).filter((e=>!!e))}}function n(n){const i={dock:n&&n.dock&&t(n.dock.main)||null};if(n){if(n.currentWidget){const t=e.nameProperty.get(n.currentWidget);if(t){i.current=t}}}return i}e.serializeMain=n;function i(e,t){if(!e){return null}const n=e.type||"unknown";if(n==="unknown"||n!=="tab-area"&&n!=="split-area"){console.warn(`Attempted to deserialize unknown type: ${n}`);return null}if(n==="tab-area"){const{currentIndex:n,widgets:i}=e;const s={type:"tab-area",currentIndex:n||0,widgets:i&&i.map((e=>t.get(e))).filter((e=>!!e))||[]};if(s.currentIndex>s.widgets.length-1){s.currentIndex=0}return s}const{orientation:s,sizes:o,children:r}=e;const a={type:"split-area",orientation:s,sizes:o||[],children:r&&r.map((e=>i(e,t))).filter((e=>!!e))||[]};return a}function s(e,t){if(!e){return null}const n=e.current||null;const s=e.dock||null;return{currentWidget:n&&t.has(n)&&t.get(n)||null,dock:s?{main:i(s,t)}:null}}e.deserializeMain=s})(w||(w={}));const C=new c.Token("@jupyterlab/application:IMimeDocumentTracker","A widget tracker for documents rendered using a mime renderer extension. Use this if you want to list and interact with documents rendered by such extensions.");function x(e){const t=[];const n="application-mimedocuments";const s=new i.WidgetTracker({namespace:n});e.forEach((e=>{let n=e.default;if(!e.hasOwnProperty("__esModule")){n=e}if(!Array.isArray(n)){n=[n]}n.forEach((e=>{t.push(S(s,e))}))}));t.push({id:"@jupyterlab/application:mimedocument",description:"Provides a mime document widget tracker.",optional:[_],provides:C,autoStart:true,activate:(e,t)=>{if(t){void t.restore(s,{command:"docmanager:open",args:e=>({path:e.context.path,factory:k.factoryNameProperty.get(e)}),name:e=>`${e.context.path}:${k.factoryNameProperty.get(e)}`})}return s}});return t}function S(e,t){return{id:t.id,description:t.description,requires:[f.IRenderMimeRegistry,s.ITranslator],autoStart:true,activate:(n,i,s)=>{if(t.rank!==undefined){i.addFactory(t.rendererFactory,t.rank)}else{i.addFactory(t.rendererFactory)}if(!t.documentWidgetFactoryOptions){return}const o=n.docRegistry;let a=[];if(Array.isArray(t.documentWidgetFactoryOptions)){a=t.documentWidgetFactoryOptions}else{a=[t.documentWidgetFactoryOptions]}if(t.fileTypes){t.fileTypes.forEach((e=>{if(e.icon){e={...e,icon:l.LabIcon.resolve({icon:e.icon})}}n.docRegistry.addFileType(e)}))}a.forEach((n=>{const a=n.toolbarFactory?e=>n.toolbarFactory(e.content.renderer):undefined;const l=new r.MimeDocumentFactory({renderTimeout:t.renderTimeout,dataType:t.dataType,rendermime:i,modelName:n.modelName,name:n.name,primaryFileType:o.getFileType(n.primaryFileType),fileTypes:n.fileTypes,defaultFor:n.defaultFor,defaultRendered:n.defaultRendered,toolbarFactory:a,translator:s,factory:t.rendererFactory});o.addWidgetFactory(l);l.widgetCreated.connect(((t,n)=>{k.factoryNameProperty.set(n,l.name);n.context.pathChanged.connect((()=>{void e.save(n)}));void e.add(n)}))}))}}}var k;(function(e){e.factoryNameProperty=new v.AttachedProperty({name:"factoryName",create:()=>undefined})})(k||(k={}));var j=n(58740);var M=n(28821);var E=n(95905);var I=n(85448);const T="jp-LabShell";const D="jp-SideBar";const L="jp-mod-current";const P="jp-mod-active";const A=900;const R="jp-Activity";const N=new c.Token("@jupyterlab/application:ILabShell","A service for interacting with the JupyterLab shell. The top-level ``application`` object also has a reference to the shell, but it has a restricted interface in order to be agnostic to different shell implementations on the application. Use this to get more detailed information about currently active widgets and layout state.");class O extends I.Widget{constructor(e){super();this._dockChildHook=(e,t)=>{switch(t.type){case"child-added":t.child.addClass(R);this._tracker.add(t.child);break;case"child-removed":t.child.removeClass(R);this._tracker.remove(t.child);break;default:break}return true};this._activeChanged=new h.Signal(this);this._cachedLayout=null;this._currentChanged=new h.Signal(this);this._currentPath="";this._currentPathChanged=new h.Signal(this);this._modeChanged=new h.Signal(this);this._isRestored=false;this._layoutModified=new h.Signal(this);this._layoutDebouncer=new E.Debouncer((()=>{this._layoutModified.emit(undefined)}),0);this._restored=new c.PromiseDelegate;this._tracker=new I.FocusTracker;this._topHandlerHiddenByUser=false;this._idTypeMap=new Map;this._mainOptionsCache=new Map;this._sideOptionsCache=new Map;this._delayedWidget=new Array;this.addClass(T);this.id="main";if((e===null||e===void 0?void 0:e.waitForRestore)===false){this._userLayout={"multiple-document":{},"single-document":{}}}const t=this._skipLinkWidget=new B.SkipLinkWidget(this);this._skipLinkWidget.show();const n=new I.Panel;n.addClass("jp-skiplink-wrapper");n.addWidget(t);const i=this._headerPanel=new I.BoxPanel;const o=this._menuHandler=new B.PanelHandler;o.panel.node.setAttribute("role","navigation");const a=this._topHandler=new B.PanelHandler;a.panel.node.setAttribute("role","banner");const d=this._bottomPanel=new I.BoxPanel;d.node.setAttribute("role","contentinfo");const u=new I.BoxPanel;const p=this._vsplitPanel=new B.RestorableSplitPanel;const m=this._dockPanel=new l.DockPanelSvg({hiddenMode:I.Widget.HiddenMode.Display});M.MessageLoop.installMessageHook(m,this._dockChildHook);const g=this._hsplitPanel=new B.RestorableSplitPanel;const f=this._downPanel=new l.TabPanelSvg({tabsMovable:true});const v=this._leftHandler=new B.SideBarHandler;const _=this._rightHandler=new B.SideBarHandler;const b=new I.BoxLayout;i.id="jp-header-panel";o.panel.id="jp-menu-panel";a.panel.id="jp-top-panel";d.id="jp-bottom-panel";u.id="jp-main-content-panel";p.id="jp-main-vsplit-panel";m.id="jp-main-dock-panel";g.id="jp-main-split-panel";f.id="jp-down-stack";v.sideBar.addClass(D);v.sideBar.addClass("jp-mod-left");v.sideBar.node.setAttribute("role","complementary");v.stackedPanel.id="jp-left-stack";_.sideBar.addClass(D);_.sideBar.addClass("jp-mod-right");_.sideBar.node.setAttribute("role","complementary");_.stackedPanel.id="jp-right-stack";m.node.setAttribute("role","main");u.spacing=0;p.spacing=1;m.spacing=5;g.spacing=1;i.direction="top-to-bottom";p.orientation="vertical";u.direction="left-to-right";g.orientation="horizontal";d.direction="bottom-to-top";I.SplitPanel.setStretch(v.stackedPanel,0);I.SplitPanel.setStretch(f,0);I.SplitPanel.setStretch(m,1);I.SplitPanel.setStretch(_.stackedPanel,0);I.BoxPanel.setStretch(v.sideBar,0);I.BoxPanel.setStretch(g,1);I.BoxPanel.setStretch(_.sideBar,0);I.SplitPanel.setStretch(p,1);g.addWidget(v.stackedPanel);g.addWidget(m);g.addWidget(_.stackedPanel);p.addWidget(g);p.addWidget(f);u.addWidget(v.sideBar);u.addWidget(p);u.addWidget(_.sideBar);b.direction="top-to-bottom";b.spacing=0;p.setRelativeSizes([3,1]);g.setRelativeSizes([1,2.5,1]);I.BoxLayout.setStretch(i,0);I.BoxLayout.setStretch(o.panel,0);I.BoxLayout.setStretch(a.panel,0);I.BoxLayout.setStretch(u,1);I.BoxLayout.setStretch(d,0);b.addWidget(n);b.addWidget(i);b.addWidget(a.panel);b.addWidget(u);b.addWidget(d);this._headerPanel.hide();this._bottomPanel.hide();this._downPanel.hide();this.layout=b;this._tracker.currentChanged.connect(this._onCurrentChanged,this);this._tracker.activeChanged.connect(this._onActiveChanged,this);this._dockPanel.layoutModified.connect(this._onLayoutModified,this);this._vsplitPanel.updated.connect(this._onLayoutModified,this);this._downPanel.currentChanged.connect(this._onLayoutModified,this);this._downPanel.tabBar.tabMoved.connect(this._onTabPanelChanged,this);this._downPanel.stackedPanel.widgetRemoved.connect(this._onTabPanelChanged,this);this._leftHandler.updated.connect(this._onLayoutModified,this);this._rightHandler.updated.connect(this._onLayoutModified,this);this._hsplitPanel.updated.connect(this._onLayoutModified,this);const y=this._titleHandler=new B.TitleHandler(this);this.add(y,"top",{rank:100});if(this._dockPanel.mode==="multiple-document"){this._topHandler.addWidget(this._menuHandler.panel,100);y.hide()}else{b.insertWidget(3,this._menuHandler.panel)}this.translator=s.nullTranslator;this.currentChanged.connect(((e,t)=>{let n=t.newValue;let i=t.oldValue;if(i){i.title.changed.disconnect(this._updateTitlePanelTitle,this);if(i instanceof r.DocumentWidget){i.context.pathChanged.disconnect(this._updateCurrentPath,this)}}if(n){n.title.changed.connect(this._updateTitlePanelTitle,this);this._updateTitlePanelTitle();if(n instanceof r.DocumentWidget){n.context.pathChanged.connect(this._updateCurrentPath,this)}}this._updateCurrentPath()}))}get activeChanged(){return this._activeChanged}get activeWidget(){return this._tracker.activeWidget}get addButtonEnabled(){return this._dockPanel.addButtonEnabled}set addButtonEnabled(e){this._dockPanel.addButtonEnabled=e}get addRequested(){return this._dockPanel.addRequested}get currentChanged(){return this._currentChanged}get currentPath(){return this._currentPath}get currentPathChanged(){return this._currentPathChanged}get currentWidget(){return this._tracker.currentWidget}get layoutModified(){return this._layoutModified}get leftCollapsed(){return!this._leftHandler.sideBar.currentTitle}get rightCollapsed(){return!this._rightHandler.sideBar.currentTitle}get presentationMode(){return this.hasClass("jp-mod-presentationMode")}set presentationMode(e){this.toggleClass("jp-mod-presentationMode",e)}get mode(){return this._dockPanel.mode}set mode(e){const t=this._dockPanel;if(e===t.mode){return}const n=this.currentWidget;if(e==="single-document"){this._cachedLayout=t.saveLayout();t.mode=e;if(this.currentWidget){t.activateWidget(this.currentWidget)}this.layout.insertWidget(3,this._menuHandler.panel);this._titleHandler.show();this._updateTitlePanelTitle();if(this._topHandlerHiddenByUser){this._topHandler.panel.hide()}}else{const i=Array.from(t.widgets());t.mode=e;if(this._cachedLayout){B.normalizeAreaConfig(t,this._cachedLayout.main);t.restoreLayout(this._cachedLayout);this._cachedLayout=null}if(this._layoutRestorer.isDeferred){this._layoutRestorer.restoreDeferred().then((e=>{if(e){const{currentWidget:t,dock:n}=e;if(n){this._dockPanel.restoreLayout(n)}if(t){this.activateById(t.id)}}})).catch((e=>{console.error("Failed to restore the deferred layout.");console.error(e)}))}i.forEach((e=>{if(!e.parent){this._addToMainArea(e,{...this._mainOptionsCache.get(e),activate:false})}}));this._mainOptionsCache.clear();if(n){t.activateWidget(n)}this.add(this._menuHandler.panel,"top",{rank:100});this._titleHandler.hide()}this.node.dataset.shellMode=e;this._downPanel.fit();this._modeChanged.emit(e)}get modeChanged(){return this._modeChanged}get restored(){return this._restored.promise}get translator(){var e;return(e=this._translator)!==null&&e!==void 0?e:s.nullTranslator}set translator(e){if(e!==this._translator){this._translator=e;l.TabBarSvg.translator=e;const t=e.load("jupyterlab");this._menuHandler.panel.node.setAttribute("aria-label",t.__("main"));this._leftHandler.sideBar.node.setAttribute("aria-label",t.__("main sidebar"));this._leftHandler.sideBar.contentNode.setAttribute("aria-label",t.__("main sidebar"));this._rightHandler.sideBar.node.setAttribute("aria-label",t.__("alternate sidebar"));this._rightHandler.sideBar.contentNode.setAttribute("aria-label",t.__("alternate sidebar"))}}get userLayout(){return c.JSONExt.deepCopy(this._userLayout)}activateById(e){if(this._leftHandler.has(e)){this._leftHandler.activate(e);return}if(this._rightHandler.has(e)){this._rightHandler.activate(e);return}const t=this._downPanel.tabBar.titles.findIndex((t=>t.owner.id===e));if(t>=0){this._downPanel.currentIndex=t;return}const n=this._dockPanel;const i=(0,j.find)(n.widgets(),(t=>t.id===e));if(i){n.activateWidget(i)}}activateNextTab(){const e=this._currentTabBar();if(!e){return}const t=e.currentIndex;if(t===-1){return}if(t0){e.currentIndex-=1;if(e.currentTitle){e.currentTitle.owner.activate()}return}if(t===0){const e=this._adjacentBar("previous");if(e){const t=e.titles.length;e.currentIndex=t-1;if(e.currentTitle){e.currentTitle.owner.activate()}}}}activateNextTabBar(){const e=this._adjacentBar("next");if(e){if(e.currentTitle){e.currentTitle.owner.activate()}}}activatePreviousTabBar(){const e=this._adjacentBar("previous");if(e){if(e.currentTitle){e.currentTitle.owner.activate()}}}add(e,t="main",n){var i;if(!this._userLayout){this._delayedWidget.push({widget:e,area:t,options:n});return}let s;if((n===null||n===void 0?void 0:n.type)&&this._userLayout[this.mode][n.type]){s=this._userLayout[this.mode][n.type];this._idTypeMap.set(e.id,n.type)}else{s=this._userLayout[this.mode][e.id]}if(n===null||n===void 0?void 0:n.type){this._idTypeMap.set(e.id,n.type);e.disposed.connect((()=>{this._idTypeMap.delete(e.id)}))}t=(i=s===null||s===void 0?void 0:s.area)!==null&&i!==void 0?i:t;n=n||(s===null||s===void 0?void 0:s.options)?{...n,...s===null||s===void 0?void 0:s.options}:undefined;switch(t||"main"){case"bottom":return this._addToBottomArea(e,n);case"down":return this._addToDownArea(e,n);case"header":return this._addToHeaderArea(e,n);case"left":return this._addToLeftArea(e,n);case"main":return this._addToMainArea(e,n);case"menu":return this._addToMenuArea(e,n);case"right":return this._addToRightArea(e,n);case"top":return this._addToTopArea(e,n);default:throw new Error(`Invalid area: ${t}`)}}move(e,t,n){var i;const s=(i=this._idTypeMap.get(e.id))!==null&&i!==void 0?i:e.id;for(const o of["single-document","multiple-document"].filter((e=>!n||e===n))){this._userLayout[o][s]={...this._userLayout[o][s],area:t}}this.add(e,t);return this._userLayout}collapseLeft(){this._leftHandler.collapse();this._onLayoutModified()}collapseRight(){this._rightHandler.collapse();this._onLayoutModified()}dispose(){if(this.isDisposed){return}this._layoutDebouncer.dispose();super.dispose()}expandLeft(){this._leftHandler.expand();this._onLayoutModified()}expandRight(){this._rightHandler.expand();this._onLayoutModified()}closeAll(){Array.from(this._dockPanel.widgets()).forEach((e=>e.close()));this._downPanel.stackedPanel.widgets.forEach((e=>e.close()))}isSideTabBarVisible(e){switch(e){case"left":return this._leftHandler.isVisible;case"right":return this._rightHandler.isVisible}}isTopInSimpleModeVisible(){return!this._topHandlerHiddenByUser}isEmpty(e){switch(e){case"bottom":return this._bottomPanel.widgets.length===0;case"down":return this._downPanel.stackedPanel.widgets.length===0;case"header":return this._headerPanel.widgets.length===0;case"left":return this._leftHandler.stackedPanel.widgets.length===0;case"main":return this._dockPanel.isEmpty;case"menu":return this._menuHandler.panel.widgets.length===0;case"right":return this._rightHandler.stackedPanel.widgets.length===0;case"top":return this._topHandler.panel.widgets.length===0;default:return true}}async restoreLayout(e,t,n={}){var i,s,o,r;this._userLayout={"single-document":(i=n["single-document"])!==null&&i!==void 0?i:{},"multiple-document":(s=n["multiple-document"])!==null&&s!==void 0?s:{}};this._delayedWidget.forEach((({widget:e,area:t,options:n})=>{this.add(e,t,n)}));this._delayedWidget.length=0;this._layoutRestorer=t;const a=await t.fetch();const{mainArea:l,downArea:d,leftArea:c,rightArea:h,topArea:u,relativeSizes:p}=a;if(l){const{currentWidget:t,dock:n}=l;if(n&&e==="multiple-document"){this._dockPanel.restoreLayout(n)}if(e){this.mode=e}if(t){this.activateById(t.id)}}else{if(e){this.mode=e}}if((u===null||u===void 0?void 0:u.simpleVisibility)!==undefined){this._topHandlerHiddenByUser=!u.simpleVisibility;if(this.mode==="single-document"){this._topHandler.panel.setHidden(this._topHandlerHiddenByUser)}}if(d){const{currentWidget:e,widgets:t,size:n}=d;const i=(o=t===null||t===void 0?void 0:t.map((e=>e.id)))!==null&&o!==void 0?o:[];this._downPanel.tabBar.titles.filter((e=>!i.includes(e.owner.id))).map((e=>e.owner.close()));const s=this._downPanel.tabBar.titles.map((e=>e.owner.id));t===null||t===void 0?void 0:t.filter((e=>!s.includes(e.id))).map((e=>this._downPanel.addWidget(e)));while(!j.ArrayExt.shallowEqual(i,this._downPanel.tabBar.titles.map((e=>e.owner.id)))){this._downPanel.tabBar.titles.forEach(((e,t)=>{const n=i.findIndex((t=>e.owner.id==t));if(n>=0&&n!=t){this._downPanel.tabBar.insertTab(n,e)}}))}if(e){const t=this._downPanel.stackedPanel.widgets.findIndex((t=>t.id===e.id));if(t){this._downPanel.currentIndex=t;(r=this._downPanel.currentWidget)===null||r===void 0?void 0:r.activate()}}if(n&&n>0){this._vsplitPanel.setRelativeSizes([1-n,n])}else{this._downPanel.stackedPanel.widgets.forEach((e=>e.close()));this._downPanel.hide()}}if(c){this._leftHandler.rehydrate(c)}else{if(e==="single-document"){this.collapseLeft()}}if(h){this._rightHandler.rehydrate(h)}else{if(e==="single-document"){this.collapseRight()}}if(p){this._hsplitPanel.setRelativeSizes(p)}if(!this._isRestored){M.MessageLoop.flush();this._restored.resolve(a)}}saveLayout(){const e={mainArea:{currentWidget:this._tracker.currentWidget,dock:this.mode==="single-document"?this._cachedLayout||this._dockPanel.saveLayout():this._dockPanel.saveLayout()},downArea:{currentWidget:this._downPanel.currentWidget,widgets:Array.from(this._downPanel.stackedPanel.widgets),size:this._vsplitPanel.relativeSizes()[1]},leftArea:this._leftHandler.dehydrate(),rightArea:this._rightHandler.dehydrate(),topArea:{simpleVisibility:!this._topHandlerHiddenByUser},relativeSizes:this._hsplitPanel.relativeSizes()};return e}toggleTopInSimpleModeVisibility(){if(this.mode==="single-document"){if(this._topHandler.panel.isVisible){this._topHandlerHiddenByUser=true;this._topHandler.panel.hide()}else{this._topHandlerHiddenByUser=false;this._topHandler.panel.show();this._updateTitlePanelTitle()}this._onLayoutModified()}}toggleSideTabBarVisibility(e){if(e==="right"){if(this._rightHandler.isVisible){this._rightHandler.hide()}else{this._rightHandler.show()}}else{if(this._leftHandler.isVisible){this._leftHandler.hide()}else{this._leftHandler.show()}}}updateConfig(e){if(e.hiddenMode){switch(e.hiddenMode){case"display":this._dockPanel.hiddenMode=I.Widget.HiddenMode.Display;break;case"scale":this._dockPanel.hiddenMode=I.Widget.HiddenMode.Scale;break;case"contentVisibility":this._dockPanel.hiddenMode=I.Widget.HiddenMode.ContentVisibility;break}}}widgets(e){switch(e!==null&&e!==void 0?e:"main"){case"main":return this._dockPanel.widgets();case"left":return(0,j.map)(this._leftHandler.sideBar.titles,(e=>e.owner));case"right":return(0,j.map)(this._rightHandler.sideBar.titles,(e=>e.owner));case"header":return this._headerPanel.children();case"top":return this._topHandler.panel.children();case"menu":return this._menuHandler.panel.children();case"bottom":return this._bottomPanel.children();default:throw new Error(`Invalid area: ${e}`)}}onAfterAttach(e){this.node.dataset.shellMode=this.mode}_updateTitlePanelTitle(){let e=this.currentWidget;const t=this._titleHandler.inputElement;t.value=e?e.title.label:"";t.title=e?e.title.caption:""}_updateCurrentPath(){let e=this.currentWidget;let t="";if(e&&e instanceof r.DocumentWidget){t=e.context.path}this._currentPathChanged.emit({newValue:t,oldValue:this._currentPath});this._currentPath=t}_addToLeftArea(e,t){if(!e.id){console.error("Widgets added to app shell must have unique id property.");return}t=t||this._sideOptionsCache.get(e)||{};this._sideOptionsCache.set(e,t);const n="rank"in t?t.rank:A;this._leftHandler.addWidget(e,n);this._onLayoutModified()}_addToMainArea(e,t){if(!e.id){console.error("Widgets added to app shell must have unique id property.");return}t=t||{};const n=this._dockPanel;const i=t.mode||"tab-after";let s=this.currentWidget;if(t.ref){s=(0,j.find)(n.widgets(),(e=>e.id===t.ref))||null}const{title:o}=e;o.dataset={...o.dataset,id:e.id};if(o.icon instanceof l.LabIcon){o.icon=o.icon.bindprops({stylesheet:"mainAreaTab"})}else if(typeof o.icon==="string"||!o.icon){o.iconClass=(0,l.classes)(o.iconClass,"jp-Icon")}n.addWidget(e,{mode:i,ref:s});if(n.mode==="single-document"){this._mainOptionsCache.set(e,t)}if(t.activate!==false){n.activateWidget(e)}}_addToRightArea(e,t){if(!e.id){console.error("Widgets added to app shell must have unique id property.");return}t=t||this._sideOptionsCache.get(e)||{};const n="rank"in t?t.rank:A;this._sideOptionsCache.set(e,t);this._rightHandler.addWidget(e,n);this._onLayoutModified()}_addToTopArea(e,t){var n;if(!e.id){console.error("Widgets added to app shell must have unique id property.");return}t=t||{};const i=(n=t.rank)!==null&&n!==void 0?n:A;this._topHandler.addWidget(e,i);this._onLayoutModified();if(this._topHandler.panel.isHidden){this._topHandler.panel.show()}}_addToMenuArea(e,t){var n;if(!e.id){console.error("Widgets added to app shell must have unique id property.");return}t=t||{};const i=(n=t.rank)!==null&&n!==void 0?n:A;this._menuHandler.addWidget(e,i);this._onLayoutModified();if(this._menuHandler.panel.isHidden){this._menuHandler.panel.show()}}_addToHeaderArea(e,t){if(!e.id){console.error("Widgets added to app shell must have unique id property.");return}this._headerPanel.addWidget(e);this._onLayoutModified();if(this._headerPanel.isHidden){this._headerPanel.show()}}_addToBottomArea(e,t){if(!e.id){console.error("Widgets added to app shell must have unique id property.");return}this._bottomPanel.addWidget(e);this._onLayoutModified();if(this._bottomPanel.isHidden){this._bottomPanel.show()}}_addToDownArea(e,t){if(!e.id){console.error("Widgets added to app shell must have unique id property.");return}t=t||{};const{title:n}=e;n.dataset={...n.dataset,id:e.id};if(n.icon instanceof l.LabIcon){n.icon=n.icon.bindprops({stylesheet:"mainAreaTab"})}else if(typeof n.icon==="string"||!n.icon){n.iconClass=(0,l.classes)(n.iconClass,"jp-Icon")}this._downPanel.addWidget(e);this._onLayoutModified();if(this._downPanel.isHidden){this._downPanel.show()}}_adjacentBar(e){const t=this._currentTabBar();if(!t){return null}const n=Array.from(this._dockPanel.tabBars());const i=n.length;const s=n.indexOf(t);if(e==="previous"){return s>0?n[s-1]:s===0?n[i-1]:null}return se.titles.indexOf(t)>-1))||null}_onActiveChanged(e,t){if(t.newValue){t.newValue.title.className+=` ${P}`}if(t.oldValue){t.oldValue.title.className=t.oldValue.title.className.replace(P,"")}this._activeChanged.emit(t)}_onCurrentChanged(e,t){if(t.newValue){t.newValue.title.className+=` ${L}`}if(t.oldValue){t.oldValue.title.className=t.oldValue.title.className.replace(L,"")}this._currentChanged.emit(t);this._onLayoutModified()}_onTabPanelChanged(){if(this._downPanel.stackedPanel.widgets.length===0){this._downPanel.hide()}this._onLayoutModified()}_onLayoutModified(){void this._layoutDebouncer.invoke()}}var B;(function(e){function t(e,t){return e.rank-t.rank}e.itemCmp=t;function n(e,t){if(!t){return}if(t.type==="tab-area"){t.widgets=t.widgets.filter((t=>!t.isDisposed&&t.parent===e));return}t.children.forEach((t=>{n(e,t)}))}e.normalizeAreaConfig=n;class i{constructor(){this._panelChildHook=(e,t)=>{switch(t.type){case"child-added":{const e=t.child;if(this._items.find((t=>t.widget===e))){break}const n=this._items[this._items.length-1].rank;this._items.push({widget:e,rank:n})}break;case"child-removed":{const e=t.child;j.ArrayExt.removeFirstWhere(this._items,(t=>t.widget===e))}break;default:break}return true};this._items=new Array;this._panel=new I.Panel;M.MessageLoop.installMessageHook(this._panel,this._panelChildHook)}get panel(){return this._panel}addWidget(t,n){t.parent=null;const i={widget:t,rank:n};const s=j.ArrayExt.upperBound(this._items,i,e.itemCmp);j.ArrayExt.insert(this._items,s,i);this._panel.insertWidget(s,t)}}e.PanelHandler=i;class s{constructor(){this._isHiddenByUser=false;this._items=new Array;this._updated=new h.Signal(this);this._sideBar=new I.TabBar({insertBehavior:"none",removeBehavior:"none",allowDeselect:true,orientation:"vertical"});this._stackedPanel=new I.StackedPanel;this._sideBar.hide();this._stackedPanel.hide();this._lastCurrent=null;this._sideBar.currentChanged.connect(this._onCurrentChanged,this);this._sideBar.tabActivateRequested.connect(this._onTabActivateRequested,this);this._stackedPanel.widgetRemoved.connect(this._onWidgetRemoved,this)}get isVisible(){return this._sideBar.isVisible}get sideBar(){return this._sideBar}get stackedPanel(){return this._stackedPanel}get updated(){return this._updated}expand(){const e=this._lastCurrent||this._items.length>0&&this._items[0].widget;if(e){this.activate(e.id)}}activate(e){const t=this._findWidgetByID(e);if(t){this._sideBar.currentTitle=t.title;t.activate()}}has(e){return this._findWidgetByID(e)!==null}collapse(){this._sideBar.currentTitle=null}addWidget(e,t){e.parent=null;e.hide();const n={widget:e,rank:t};const i=this._findInsertIndex(n);j.ArrayExt.insert(this._items,i,n);this._stackedPanel.insertWidget(i,e);const s=this._sideBar.insertTab(i,e.title);s.dataset={id:e.id};if(s.icon instanceof l.LabIcon){s.icon=s.icon.bindprops({stylesheet:"sideBar"})}else if(typeof s.icon==="string"&&s.icon!=""){s.iconClass=(0,l.classes)(s.iconClass,"jp-Icon","jp-Icon-20")}else if(!s.icon&&!s.label){s.icon=l.tabIcon.bindprops({stylesheet:"sideBar"})}this._refreshVisibility()}dehydrate(){const e=this._sideBar.currentTitle===null;const t=Array.from(this._stackedPanel.widgets);const n=t[this._sideBar.currentIndex];return{collapsed:e,currentWidget:n,visible:!this._isHiddenByUser,widgets:t}}rehydrate(e){if(e.currentWidget){this.activate(e.currentWidget.id)}if(e.collapsed){this.collapse()}if(!e.visible){this.hide()}}hide(){this._isHiddenByUser=true;this._refreshVisibility()}show(){this._isHiddenByUser=false;this._refreshVisibility()}_findInsertIndex(t){return j.ArrayExt.upperBound(this._items,t,e.itemCmp)}_findWidgetIndex(e){return j.ArrayExt.findFirstIndex(this._items,(t=>t.widget===e))}_findWidgetByTitle(e){const t=(0,j.find)(this._items,(t=>t.widget.title===e));return t?t.widget:null}_findWidgetByID(e){const t=(0,j.find)(this._items,(t=>t.widget.id===e));return t?t.widget:null}_refreshVisibility(){this._stackedPanel.setHidden(this._sideBar.currentTitle===null);this._sideBar.setHidden(this._isHiddenByUser||this._sideBar.titles.length===0);this._updated.emit()}_onCurrentChanged(e,t){const n=t.previousTitle?this._findWidgetByTitle(t.previousTitle):null;const i=t.currentTitle?this._findWidgetByTitle(t.currentTitle):null;if(n){n.hide()}if(i){i.show()}this._lastCurrent=i||n;this._refreshVisibility()}_onTabActivateRequested(e,t){t.title.owner.activate()}_onWidgetRemoved(e,t){if(t===this._lastCurrent){this._lastCurrent=null}j.ArrayExt.removeAt(this._items,this._findWidgetIndex(t));this._sideBar.removeTab(t.title);this._refreshVisibility()}}e.SideBarHandler=s;class o extends I.Widget{constructor(e){super();this.addClass("jp-skiplink");this.id="jp-skiplink";this._shell=e;this._createSkipLink("Skip to left side bar")}handleEvent(e){switch(e.type){case"click":this._focusLeftSideBar();break}}onAfterAttach(e){super.onAfterAttach(e);this.node.addEventListener("click",this)}onBeforeDetach(e){this.node.removeEventListener("click",this);super.onBeforeDetach(e)}_focusLeftSideBar(){this._shell.expandLeft()}_createSkipLink(e){const t=document.createElement("a");t.href="#";t.tabIndex=1;t.text=e;t.className="skip-link";this.node.appendChild(t)}}e.SkipLinkWidget=o;class r extends I.Widget{constructor(e){super();this._selected=false;const t=document.createElement("input");t.type="text";this.node.appendChild(t);this._shell=e;this.id="jp-title-panel-title"}onAfterAttach(e){super.onAfterAttach(e);this.inputElement.addEventListener("keyup",this);this.inputElement.addEventListener("click",this);this.inputElement.addEventListener("blur",this)}onBeforeDetach(e){super.onBeforeDetach(e);this.inputElement.removeEventListener("keyup",this);this.inputElement.removeEventListener("click",this);this.inputElement.removeEventListener("blur",this)}handleEvent(e){switch(e.type){case"keyup":void this._evtKeyUp(e);break;case"click":this._evtClick(e);break;case"blur":this._selected=false;break}}async _evtKeyUp(e){if(e.key=="Enter"){const e=this._shell.currentWidget;if(e==null){return}const t=e.title.label;const n=this.inputElement;const i=n.value;n.blur();if(i!==t){e.title.label=i}else{n.value=t}}}_evtClick(e){if(e.button!==0||this._selected){return}const t=this.inputElement;e.preventDefault();e.stopPropagation();this._selected=true;const n=t.value.indexOf(".");if(n===-1){t.select()}else{t.setSelectionRange(0,n)}}get inputElement(){return this.node.children[0]}}e.TitleHandler=r;class a extends I.SplitPanel{constructor(e={}){super(e);this.updated=new h.Signal(this)}onUpdateRequest(e){super.onUpdateRequest(e);this.updated.emit()}}e.RestorableSplitPanel=a})(B||(B={}));var F=n(26512);class z{constructor(e){this._busyCount=0;this._dirtyCount=0;this._busySignal=new h.Signal(e);this._dirtySignal=new h.Signal(e)}get busySignal(){return this._busySignal}get dirtySignal(){return this._dirtySignal}get isBusy(){return this._busyCount>0}get isDirty(){return this._dirtyCount>0}setDirty(){const e=this.isDirty;this._dirtyCount++;if(this.isDirty!==e){this._dirtySignal.emit(this.isDirty)}return new F.DisposableDelegate((()=>{const e=this.isDirty;this._dirtyCount=Math.max(0,this._dirtyCount-1);if(this.isDirty!==e){this._dirtySignal.emit(this.isDirty)}}))}setBusy(){const e=this.isBusy;this._busyCount++;if(this.isBusy!==e){this._busySignal.emit(this.isBusy)}return new F.DisposableDelegate((()=>{const e=this.isBusy;this._busyCount--;if(this.isBusy!==e){this._busySignal.emit(this.isBusy)}}))}}class H extends u{constructor(e={shell:new O}){super({...e,shell:e.shell||new O,serviceManager:e.serviceManager||new a.ServiceManager({standby:()=>!this._info.isConnected||"when-hidden"})});this.name=g.PageConfig.getOption("appName")||"JupyterLab";this.namespace=g.PageConfig.getOption("appNamespace")||this.name;this.registerPluginErrors=[];this.status=new z(this);this.version=g.PageConfig.getOption("appVersion")||"unknown";this._info=H.defaultInfo;this.restored=this.shell.restored.then((()=>undefined)).catch((()=>undefined));const t=Object.keys(H.defaultInfo).reduce(((t,n)=>{if(n in e){t[n]=JSON.parse(JSON.stringify(e[n]))}return t}),{});this._info={...H.defaultInfo,...t};const n=H.defaultPaths.urls;const i=H.defaultPaths.directories;const s=e.paths&&e.paths.urls||{};const o=e.paths&&e.paths.directories||{};this._paths={urls:Object.keys(n).reduce(((e,t)=>{if(t in s){const n=s[t];e[t]=n}else{e[t]=n[t]}return e}),{}),directories:Object.keys(H.defaultPaths.directories).reduce(((e,t)=>{if(t in o){const n=o[t];e[t]=n}else{e[t]=i[t]}return e}),{})};if(this._info.devMode){this.shell.addClass("jp-mod-devMode")}this.docRegistry.addModelFactory(new r.Base64ModelFactory);if(e.mimeExtensions){for(const t of x(e.mimeExtensions)){this.registerPlugin(t)}}}get info(){return this._info}get paths(){return this._paths}registerPluginModule(e){let t=e.default;if(!e.hasOwnProperty("__esModule")){t=e}if(!Array.isArray(t)){t=[t]}t.forEach((e=>{try{this.registerPlugin(e)}catch(t){this.registerPluginErrors.push(t)}}))}registerPluginModules(e){e.forEach((e=>{this.registerPluginModule(e)}))}}(function(e){e.IInfo=new c.Token("@jupyterlab/application:IInfo","A service providing metadata about the current application, including disabled extensions and whether dev mode is enabled.");e.defaultInfo={devMode:g.PageConfig.getOption("devMode").toLowerCase()==="true",deferred:{patterns:[],matches:[]},disabled:{patterns:[],matches:[]},mimeExtensions:[],filesCached:g.PageConfig.getOption("cacheFiles").toLowerCase()==="true",isConnected:true};e.defaultPaths={urls:{base:g.PageConfig.getOption("baseUrl"),notFound:g.PageConfig.getOption("notFoundUrl"),app:g.PageConfig.getOption("appUrl"),doc:g.PageConfig.getOption("docUrl"),static:g.PageConfig.getOption("staticUrl"),settings:g.PageConfig.getOption("settingsUrl"),themes:g.PageConfig.getOption("themesUrl"),translations:g.PageConfig.getOption("translationsApiUrl"),hubHost:g.PageConfig.getOption("hubHost")||undefined,hubPrefix:g.PageConfig.getOption("hubPrefix")||undefined,hubUser:g.PageConfig.getOption("hubUser")||undefined,hubServerName:g.PageConfig.getOption("hubServerName")||undefined},directories:{appSettings:g.PageConfig.getOption("appSettingsDir"),schemas:g.PageConfig.getOption("schemasDir"),static:g.PageConfig.getOption("staticDir"),templates:g.PageConfig.getOption("templatesDir"),themes:g.PageConfig.getOption("themesDir"),userSettings:g.PageConfig.getOption("userSettingsDir"),serverRoot:g.PageConfig.getOption("serverRoot"),workspaces:g.PageConfig.getOption("workspacesDir")}}})(H||(H={}));class W{constructor(e){this.stop=new c.Token("@jupyterlab/application:Router#stop");this._routed=new h.Signal(this);this._rules=new Map;this.base=e.base;this.commands=e.commands}get current(){var e,t;const{base:n}=this;const i=g.URLExt.parse(window.location.href);const{search:s,hash:o}=i;const r=(t=(e=i.pathname)===null||e===void 0?void 0:e.replace(n,"/"))!==null&&t!==void 0?t:"";const a=r+s+o;return{hash:o,path:r,request:a,search:s}}get routed(){return this._routed}navigate(e,t={}){const{base:n}=this;const{history:i}=window;const{hard:s}=t;const o=document.location.href;const r=e&&e.indexOf(n)===0?e:g.URLExt.join(n,e);if(r===o){return s?this.reload():undefined}i.pushState({},"",r);if(s){return this.reload()}if(!t.skipRouting){requestAnimationFrame((()=>{void this.route()}))}}register(e){var t;const{command:n,pattern:i}=e;const s=(t=e.rank)!==null&&t!==void 0?t:100;const o=this._rules;o.set(i,{command:n,rank:s});return new F.DisposableDelegate((()=>{o.delete(i)}))}reload(){window.location.reload()}route(){const{commands:e,current:t,stop:n}=this;const{request:i}=t;const s=this._routed;const o=this._rules;const r=[];o.forEach(((e,t)=>{if(i===null||i===void 0?void 0:i.match(t)){r.push(e)}}));const a=r.sort(((e,t)=>t.rank-e.rank));const l=new c.PromiseDelegate;const d=async()=>{if(!a.length){s.emit(t);l.resolve(undefined);return}const{command:o}=a.pop();try{const i=this.current.request;const s=await e.execute(o,t);if(s===n){a.length=0;console.debug(`Routing ${i} was short-circuited by ${o}`)}}catch(r){console.warn(`Routing ${i} to ${o} failed`,r)}void d()};void d();return l.promise}}const V=new c.Token("@jupyterlab/application:IConnectionLost",`A service for invoking the dialog shown\n when JupyterLab has lost its connection to the server. Use this if, for some reason,\n you want to bring up the "connection lost" dialog under new circumstances.`);const U=new c.Token("@jupyterlab/application:ILabStatus",`A service for interacting with the application busy/dirty\n status. Use this if you want to set the application "busy" favicon, or to set\n the application "dirty" status, which asks the user for confirmation before leaving the application page.`);const $=new c.Token("@jupyterlab/application:IRouter","The URL router used by the application. Use this to add custom URL-routing for your extension (e.g., to invoke a command if the user navigates to a sub-path).");const q=new c.Token("@jupyterlab/application:ITreePathUpdater","A service to update the tree path.");function K(e,t,n,i){const{commands:s,shell:o}=e;const r=Array.isArray(t)?t:[t];return{label:l("label"),caption:l("caption"),isEnabled:()=>{var e;const t=a("isEnabled");return t.length>0&&!t.some((e=>e===false))||((e=n.isEnabled)!==null&&e!==void 0?e:false)},isToggled:()=>{var e;const t=a("isToggled");return t.some((e=>e===true))||((e=n.isToggled)!==null&&e!==void 0?e:false)},isVisible:()=>{var e;const t=a("isVisible");return t.length>0&&!t.some((e=>e===false))||((e=n.isVisible)!==null&&e!==void 0?e:true)},execute:async()=>{const e=o.currentWidget;const t=r.map((t=>e!==null?t.getActiveCommandId(e):null));const i=t.filter((e=>e!==null&&s.isEnabled(e)));let a=null;if(i.length>0){for(const e of i){a=await s.execute(e);if(typeof a==="boolean"&&a===false){break}}}else if(n.execute){a=await s.execute(n.execute)}return a}};function a(e){const t=o.currentWidget;const n=r.map((e=>t!==null?e.getActiveCommandId(t):null));const i=n.filter((e=>e!==null)).map((t=>s[e](t)));return i}function l(e){return()=>{var t;const s=a(e).map(((t,n)=>e=="caption"&&n>0?t.toLocaleLowerCase():t));switch(s.length){case 0:return(t=n[e])!==null&&t!==void 0?t:"";case 1:return s[0];default:{const e=s.some((e=>/…$/.test(e)));const t=s.slice(undefined,-1).map((e=>e.replace(/…$/,""))).join(", ");const n=s.slice(-1)[0].replace(/…$/,"")+(e?"…":"");return i.__("%1 and %2",t,n)}}}}}},90516:(e,t,n)=>{"use strict";var i=n(81802);var s=n(76126);var o=n(32902);var r=n(34849);var a=n(79536);var l=n(94683);var d=n(93379);var c=n.n(d);var h=n(7795);var u=n.n(h);var p=n(90569);var m=n.n(p);var g=n(3565);var f=n.n(g);var v=n(19216);var _=n.n(v);var b=n(44589);var y=n.n(b);var w=n(14362);var C={};C.styleTagTransform=y();C.setAttributes=f();C.insert=m().bind(null,"head");C.domAPI=u();C.insertStyleElement=_();var x=c()(w.Z,C);const S=w.Z&&w.Z.locals?w.Z.locals:undefined},76523:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>je,toggleHeader:()=>be});var i=n(74574);var s=n(10759);var o=n(20501);var r=n(95811);var a=n(22971);var l=n(6958);var d=n(4148);var c=n(5596);var h=n(26512);var u=n(95905);var p=n(96306);const m="help:open";const g="/lab/api/news";const f="/lab/api/update";const v="https://jupyterlab.readthedocs.io/en/stable/privacy_policies.html";async function _(e,t={}){const n=p.ServerConnection.makeSettings();const i=o.URLExt.join(n.baseUrl,e);let s;try{s=await p.ServerConnection.makeRequest(i,t,n)}catch(a){throw new p.ServerConnection.NetworkError(a)}const r=await s.json();if(!s.ok){throw new p.ServerConnection.ResponseError(s,r.message)}return r}const b={id:"@jupyterlab/apputils-extension:announcements",description:"Add the announcement feature. It will fetch news on the internet and check for application updates.",autoStart:true,optional:[r.ISettingRegistry,l.ITranslator],activate:(e,t,n)=>{var i;const o=b.id.replace(/[^\w]/g,"");void Promise.all([e.restored,(i=t===null||t===void 0?void 0:t.load("@jupyterlab/apputils-extension:notification"))!==null&&i!==void 0?i:Promise.resolve(null),p.ConfigSection.create({name:o})]).then((async([t,i,o])=>{const r=(n!==null&&n!==void 0?n:l.nullTranslator).load("jupyterlab");s.Notification.manager.changed.connect(((e,t)=>{var n;if(t.type!=="removed"){return}const{id:i,tags:s}=(n=t.notification.options.data)!==null&&n!==void 0?n:{};if((s!==null&&s!==void 0?s:[]).some((e=>["news","update"].includes(e)))&&i){const e={};e[i]={seen:true,dismissed:true};o.update(e).catch((e=>{console.error(`Failed to update the announcements config:\n${e}`)}))}}));const a=i===null||i===void 0?void 0:i.get("fetchNews").composite;if(a==="none"){const t=s.Notification.emit(r.__("Would you like to receive official Jupyter news?\nPlease read the privacy policy."),"default",{autoClose:false,actions:[{label:r.__("Open privacy policy"),caption:v,callback:t=>{t.preventDefault();if(e.commands.hasCommand(m)){void e.commands.execute(m,{text:r.__("Privacy policies"),url:v})}else{window.open(v,"_blank","noreferrer")}},displayType:"link"},{label:r.__("Yes"),callback:()=>{s.Notification.dismiss(t);o.update({}).then((()=>d())).catch((e=>{console.error(`Failed to get the news:\n${e}`)}));i===null||i===void 0?void 0:i.set("fetchNews","true").catch((e=>{console.error(`Failed to save setting 'fetchNews':\n${e}`)}))}},{label:r.__("No"),callback:()=>{s.Notification.dismiss(t);i===null||i===void 0?void 0:i.set("fetchNews","false").catch((e=>{console.error(`Failed to save setting 'fetchNews':\n${e}`)}))}}]})}else{await d()}async function d(){var e,t,n,a;if(((e=i===null||i===void 0?void 0:i.get("fetchNews").composite)!==null&&e!==void 0?e:"false")==="true"){try{const e=await _(g);for(const{link:n,message:i,type:a,options:l}of e.news){const e=l.data["id"];const d=(t=o.data[e])!==null&&t!==void 0?t:{seen:false,dismissed:false};if(!d.dismissed){l.actions=[{label:r.__("Hide"),caption:r.__("Never show this notification again."),callback:()=>{const t={};t[e]={seen:true,dismissed:true};o.update(t).catch((e=>{console.error(`Failed to update the announcements config:\n${e}`)}))}}];if((n===null||n===void 0?void 0:n.length)===2){l.actions.push({label:n[0],caption:n[1],callback:()=>{window.open(n[1],"_blank","noreferrer")},displayType:"link"})}if(!d.seen){l.autoClose=5e3;const t={};t[e]={seen:true};o.update(t).catch((e=>{console.error(`Failed to update the announcements config:\n${e}`)}))}s.Notification.emit(i,a,l)}}}catch(l){console.log("Failed to get the announcements.",l)}}if((n=i===null||i===void 0?void 0:i.get("checkForUpdates").composite)!==null&&n!==void 0?n:true){const e=await _(f);if(e.notification){const{link:t,message:n,type:l,options:d}=e.notification;const c=d.data["id"];const h=(a=o.data[c])!==null&&a!==void 0?a:{seen:false,dismissed:false};if(!h.dismissed){let e;d.actions=[{label:r.__("Do not check for updates"),caption:r.__("If pressed, you will not be prompted if a new JupyterLab version is found."),callback:()=>{i===null||i===void 0?void 0:i.set("checkForUpdates",false).then((()=>{s.Notification.dismiss(e)})).catch((e=>{console.error("Failed to set the `checkForUpdates` setting.",e)}))}}];if((t===null||t===void 0?void 0:t.length)===2){d.actions.push({label:t[0],caption:t[1],callback:()=>{window.open(t[1],"_blank","noreferrer")},displayType:"link"})}if(!h.seen){d.autoClose=5e3;const e={};e[c]={seen:true};o.update(e).catch((e=>{console.error(`Failed to update the announcements config:\n${e}`)}))}e=s.Notification.emit(n,l,d)}}}}}))}};var y=n(85176);var w=n(28416);var C=n(20745);const x="jp-Notification-Toast-Close";const S="jp-Notification-Toast-Close-Margin";const k=140;var j;(function(e){e.dismiss="apputils:dismiss-notification";e.display="apputils:display-notifications";e.notify="apputils:notify";e.update="apputils:update-notification"})(j||(j={}));const M=4;function E(e){const{manager:t,onClose:n,trans:i}=e;const[s,o]=w.useState([]);const[r,a]=w.useState(null);w.useEffect((()=>{async function e(){o(await Promise.all(t.notifications.map((async e=>Object.freeze({...e})))))}if(s.length!==t.count){void e()}t.changed.connect(e);return()=>{t.changed.disconnect(e)}}),[t]);w.useEffect((()=>{L.getIcons().then((e=>{a(e)})).catch((e=>{console.error(`Failed to get react-toastify icons:\n${e}`)}))}),[]);return w.createElement(d.UseSignal,{signal:t.changed},(()=>w.createElement(w.Fragment,null,w.createElement("h2",{className:"jp-Notification-Header jp-Toolbar"},w.createElement("span",{className:"jp-Toolbar-item"},t.count>0?i._n("%1 notification","%1 notifications",t.count):i.__("No notifications")),w.createElement("span",{className:"jp-Toolbar-item jp-Toolbar-spacer"}),w.createElement(d.ToolbarButtonComponent,{actualOnClick:true,onClick:()=>{t.dismiss()},icon:d.deleteIcon,tooltip:i.__("Dismiss all notifications"),enabled:t.count>0}),w.createElement(d.ToolbarButtonComponent,{actualOnClick:true,onClick:n,icon:d.closeIcon,tooltip:i.__("Hide notifications")})),w.createElement("ol",{className:"jp-Notification-List"},s.map((e=>{var n;const{id:s,message:o,type:a,options:l}=e;const c=a==="in-progress"?"default":a;const h=()=>{t.dismiss(s)};const u=a==="default"?null:a==="in-progress"?(n=r===null||r===void 0?void 0:r.spinner)!==null&&n!==void 0?n:null:r&&r[a];return w.createElement("li",{className:"jp-Notification-List-Item",key:e.id,onClick:e=>{e.stopPropagation()}},w.createElement("div",{className:`Toastify__toast Toastify__toast-theme--light Toastify__toast--${c} jp-Notification-Toast-${c}`},w.createElement("div",{className:"Toastify__toast-body"},u&&w.createElement("div",{className:"Toastify__toast-icon"},u({theme:"light",type:c})),w.createElement("div",null,L.createContent(o,h,l.actions))),w.createElement(L.CloseButton,{close:h,closeIcon:d.deleteIcon.react,title:i.__("Dismiss notification"),closeIconMargin:true})))}))))))}class I extends d.VDomModel{constructor(e){super();this.manager=e;this._highlight=false;this._listOpened=false;this._doNotDisturbMode=false;this._count=e.count;this.manager.changed.connect(this.onNotificationChanged,this)}get count(){return this._count}get doNotDisturbMode(){return this._doNotDisturbMode}set doNotDisturbMode(e){this._doNotDisturbMode=e}get highlight(){return this._highlight}get listOpened(){return this._listOpened}set listOpened(e){this._listOpened=e;if(this._listOpened||this._highlight){this._highlight=false}this.stateChanged.emit()}onNotificationChanged(e,t){this._count=this.manager.count;const{autoClose:n}=t.notification.options;const i=this.doNotDisturbMode||typeof n==="number"&&n<=0;if(!this._listOpened&&t.type!=="removed"&&i){this._highlight=true}this.stateChanged.emit()}}function T(e){return w.createElement(y.GroupItem,{spacing:M,onClick:()=>{e.onClick()},title:e.count>0?e.trans._n("%1 notification","%1 notifications",e.count):e.trans.__("No notifications")},w.createElement(y.TextItem,{className:"jp-Notification-Status-Text",source:`${e.count}`}),w.createElement(d.bellIcon.react,{top:"2px",stylesheet:"statusBar"}))}const D={id:"@jupyterlab/apputils-extension:notification",description:"Add the notification center and its status indicator.",autoStart:true,optional:[y.IStatusBar,r.ISettingRegistry,l.ITranslator],activate:(e,t,n,i)=>{L.translator=i!==null&&i!==void 0?i:l.nullTranslator;const o=L.translator.load("jupyterlab");const r=new I(s.Notification.manager);r.doNotDisturbMode=false;if(n){void Promise.all([n.load(D.id),e.restored]).then((([e])=>{const t=()=>{r.doNotDisturbMode=e.get("doNotDisturbMode").composite};t();e.changed.connect(t)}))}e.commands.addCommand(j.notify,{label:o.__("Emit a notification"),caption:o.__("Notification is described by {message: string, type?: string, options?: {autoClose?: number | false, actions: {label: string, commandId: string, args?: ReadOnlyJSONObject, caption?: string, className?: string}[], data?: ReadOnlyJSONValue}}."),execute:t=>{var n;const{message:i,type:o}=t;const r=(n=t.options)!==null&&n!==void 0?n:{};return s.Notification.manager.notify(i,o!==null&&o!==void 0?o:"default",{...r,actions:r.actions?r.actions.map((t=>({...t,callback:()=>{e.commands.execute(t.commandId,t.args).catch((e=>{console.error(`Failed to executed '${t.commandId}':\n${e}`)}))}}))):null})}});e.commands.addCommand(j.update,{label:o.__("Update a notification"),caption:o.__("Notification is described by {id: string, message: string, type?: string, options?: {autoClose?: number | false, actions: {label: string, commandId: string, args?: ReadOnlyJSONObject, caption?: string, className?: string}[], data?: ReadOnlyJSONValue}}."),execute:t=>{const{id:n,message:i,type:o,...r}=t;return s.Notification.manager.update({id:n,message:i,type:o!==null&&o!==void 0?o:"default",...r,actions:r.actions?r.actions.map((t=>({...t,callback:()=>{e.commands.execute(t.commandId,t.args).catch((e=>{console.error(`Failed to executed '${t.commandId}':\n${e}`)}))}}))):null})}});e.commands.addCommand(j.dismiss,{label:o.__("Dismiss a notification"),execute:e=>{const{id:t}=e;s.Notification.manager.dismiss(t)}});let a=null;r.listOpened=false;const c=s.ReactWidget.create(w.createElement(E,{manager:s.Notification.manager,onClose:()=>{a===null||a===void 0?void 0:a.dispose()},trans:o}));c.addClass("jp-Notification-Center");async function h(e,t){var n;if(r.doNotDisturbMode||a!==null&&!a.isDisposed){return}const{message:i,type:s,options:o,id:l}=t.notification;if(typeof o.autoClose==="number"&&o.autoClose<=0){return}switch(t.type){case"added":await L.createToast(l,i,s,o);break;case"updated":{const t=await L.toast();const r=o.actions;const a=(n=o.autoClose)!==null&&n!==void 0?n:r&&r.length>0?false:null;if(t.isActive(l)){const n=()=>{t.dismiss(l);e.dismiss(l)};t.update(l,{type:s==="in-progress"?null:s,isLoading:s==="in-progress",autoClose:a,render:L.createContent(i,n,o.actions)})}else{await L.createToast(l,i,s,o)}}break;case"removed":await L.toast().then((e=>{e.dismiss(l)}));break}}s.Notification.manager.changed.connect(h);const u=()=>{if(a){a.dispose();a=null}else{a=(0,y.showPopup)({body:c,anchor:p,align:"right",hasDynamicSize:true,startHidden:true});L.toast().then((e=>{e.dismiss()})).catch((e=>{console.error(`Failed to dismiss all toasts:\n${e}`)})).finally((()=>{a===null||a===void 0?void 0:a.launch();c.node.focus();a===null||a===void 0?void 0:a.disposed.connect((()=>{r.listOpened=false;a=null}))}))}r.listOpened=a!==null};e.commands.addCommand(j.display,{label:o.__("Show Notifications"),execute:u});const p=s.ReactWidget.create(w.createElement(d.UseSignal,{signal:r.stateChanged},(()=>{if(r.highlight||a&&!a.isDisposed){p.addClass("jp-mod-selected")}else{p.removeClass("jp-mod-selected")}return w.createElement(T,{count:r.count,highlight:r.highlight,trans:o,onClick:u})})));p.addClass("jp-Notification-Status");if(t){t.registerStatusItem(D.id,{item:p,align:"right",rank:-1})}}};var L;(function(e){e.translator=l.nullTranslator;let t=null;function i(e){var t;return w.createElement("button",{className:`jp-Button jp-mod-minimal ${x}${e.closeIconMargin?` ${S}`:""}`,title:(t=e.title)!==null&&t!==void 0?t:"",onClick:e.close},w.createElement(e.closeIcon,{className:"jp-icon-hover",tag:"span"}))}e.CloseButton=i;function o(t){const n=e.translator.load("jupyterlab");return w.createElement(i,{close:t.closeToast,closeIcon:d.closeIcon.react,title:n.__("Hide notification")})}let r=null;async function a(){if(r===null){r=new c.PromiseDelegate}else{await r.promise}if(t===null){t=await n.e(4307).then(n.t.bind(n,6867,23));const e=document.body.appendChild(document.createElement("div"));e.id="react-toastify-container";const i=(0,C.s)(e);i.render(w.createElement(t.ToastContainer,{draggable:false,closeOnClick:false,hideProgressBar:true,newestOnTop:true,pauseOnFocusLoss:true,pauseOnHover:true,position:"bottom-right",className:"jp-toastContainer",transition:t.Slide,closeButton:o}));r.resolve()}return t.toast}e.toast=a;async function h(){if(t===null){await a()}return t.Icons}e.getIcons=h;const u={accent:"jp-mod-accept",link:"jp-mod-link",warn:"jp-mod-warn",default:""};function p({action:e,closeToast:t}){var n,i;const s=n=>{e.callback(n);if(!n.defaultPrevented){t()}};const o=["jp-toast-button",u[(n=e.displayType)!==null&&n!==void 0?n:"default"]].join(" ");return w.createElement(d.Button,{title:(i=e.caption)!==null&&i!==void 0?i:e.label,className:o,onClick:s,small:true},e.label)}function m(e,t,n){var i;const s=e.length>k?e.slice(0,k)+"…":e;return w.createElement(w.Fragment,null,w.createElement("div",{className:"jp-toast-message"},s.split("\n").map(((e,t)=>w.createElement(w.Fragment,{key:`part-${t}`},t>0?w.createElement("br",null):null,e)))),((i=n===null||n===void 0?void 0:n.length)!==null&&i!==void 0?i:0)>0&&w.createElement("div",{className:"jp-toast-buttonBar"},w.createElement("div",{className:"jp-toast-spacer"}),n.map(((e,n)=>w.createElement(p,{key:"button-"+n,action:e,closeToast:t})))))}e.createContent=m;async function g(e,t,n,i={}){const{actions:o,autoClose:r,data:l}=i;const d=await a();const c={autoClose:r!==null&&r!==void 0?r:o&&o.length>0?false:undefined,data:l,className:`jp-Notification-Toast-${n}`,toastId:e,type:n==="in-progress"?null:n,isLoading:n==="in-progress"};return d((({closeToast:n})=>m(t,(()=>{if(n)n();s.Notification.manager.dismiss(e)}),o)),c)}e.createToast=g})(L||(L={}));var P=n(58740);var A=n(6682);var R=n(85448);var N;(function(e){e.activate="apputils:activate-command-palette"})(N||(N={}));const O="@jupyterlab/apputils-extension:palette";class B{constructor(e,t){this.translator=t||l.nullTranslator;const n=this.translator.load("jupyterlab");this._palette=e;this._palette.title.label="";this._palette.title.caption=n.__("Command Palette")}set placeholder(e){this._palette.inputNode.placeholder=e}get placeholder(){return this._palette.inputNode.placeholder}activate(){this._palette.activate()}addItem(e){const t=this._palette.addItem(e);return new h.DisposableDelegate((()=>{this._palette.removeItem(t)}))}}(function(e){function t(t,n,i){const{commands:o,shell:r}=t;const a=n.load("jupyterlab");const l=F.createPalette(t,n);const d=new s.ModalCommandPalette({commandPalette:l});let c=false;l.node.setAttribute("role","region");l.node.setAttribute("aria-label",a.__("Command Palette Section"));r.add(l,"left",{rank:300,type:"Command Palette"});if(i){const e=i.load(O);const n=e=>{const t=e.get("modal").composite;if(c&&!t){l.parent=null;d.detach();r.add(l,"left",{rank:300,type:"Command Palette"})}else if(!c&&t){l.parent=null;d.palette=l;l.show();d.attach()}c=t};Promise.all([e,t.restored]).then((([e])=>{n(e);e.changed.connect((e=>{n(e)}))})).catch((e=>{console.error(e.message)}))}const h=()=>{const e=(0,P.find)(t.commands.keyBindings,(e=>e.command===N.activate));if(e){const t=e.keys.map(A.CommandRegistry.formatKeystroke).join(", ");l.title.caption=a.__("Commands (%1)",t)}else{l.title.caption=a.__("Commands")}};h();t.commands.keyBindingChanged.connect((()=>{h()}));o.addCommand(N.activate,{execute:()=>{if(c){d.activate()}else{r.activateById(l.id)}},label:a.__("Activate Command Palette")});l.inputNode.placeholder=a.__("SEARCH");return new e(l,n)}e.activate=t;function n(e,t,n){const i=F.createPalette(e,n);t.add(i,"command-palette")}e.restore=n})(B||(B={}));var F;(function(e){let t;function n(e,n){if(!t){t=new R.CommandPalette({commands:e.commands,renderer:d.CommandPaletteSvg.defaultRenderer});t.id="command-palette";t.title.icon=d.paletteIcon;const i=n.load("jupyterlab");t.title.label=i.__("Commands")}return t}e.createPalette=n})(F||(F={}));class z extends a.DataConnector{constructor(e){super();this._throttlers=Object.create(null);this._connector=e}fetch(e){const t=this._throttlers;if(!(e in t)){t[e]=new u.Throttler((()=>this._connector.fetch(e)),100)}return t[e].invoke()}async list(e="all"){const{isDeferred:t,isDisabled:n}=o.PageConfig.Extension;const{ids:i,values:s}=await this._connector.list(e==="ids"?"ids":undefined);if(e==="all"){return{ids:i,values:s}}if(e==="ids"){return{ids:i}}return{ids:i.filter((e=>!t(e)&&!n(e))),values:s.filter((({id:e})=>!t(e)&&!n(e)))}}async save(e,t){await this._connector.save(e,t)}}const H={id:"@jupyterlab/apputils-extension:settings",description:"Provides the setting registry.",activate:async e=>{const{isDisabled:t}=o.PageConfig.Extension;const n=new z(e.serviceManager.settings);const i=new r.SettingRegistry({connector:n,plugins:(await n.list("active")).values.filter((t=>e.hasPlugin(t.id)))});void e.restored.then((async()=>{const s=await n.list("ids");s.ids.forEach((async n=>{if(!e.hasPlugin(n)||t(n)||n in i.plugins){return}try{await i.load(n)}catch(s){console.warn(`Settings failed to load for (${n})`,s);if(!e.isPluginActivated(n)){console.warn(`If 'jupyter.lab.transform=true' in the plugin schema, this `+`may happen if {autoStart: false} in (${n}) or if it is `+`one of the deferredExtensions in page config.`)}}}))}));return i},autoStart:true,provides:r.ISettingRegistry};const W={id:"@jupyterlab/apputils-extension:kernel-status",description:"Provides the kernel status indicator model.",autoStart:true,requires:[y.IStatusBar],provides:s.IKernelStatusModel,optional:[s.ISessionContextDialogs,l.ITranslator,i.ILabShell],activate:(e,t,n,i,o)=>{const r=i!==null&&i!==void 0?i:l.nullTranslator;const a=n!==null&&n!==void 0?n:new s.SessionContextDialogs({translator:r});const d=async()=>{if(!c.model.sessionContext){return}await a.selectKernel(c.model.sessionContext)};const c=new s.KernelStatus({onClick:d},r);const h=new Set;const u=t=>{h.add(t);if(e.shell.currentWidget){p(e.shell,{newValue:e.shell.currentWidget,oldValue:null})}};function p(e,t){var n;const{oldValue:i,newValue:s}=t;if(i){i.title.changed.disconnect(m)}c.model.sessionContext=(n=[...h].map((e=>e(t.newValue))).filter((e=>e!==null))[0])!==null&&n!==void 0?n:null;if(s&&c.model.sessionContext){m(s.title);s.title.changed.connect(m)}}const m=e=>{c.model.activityName=e.label};if(o){o.currentChanged.connect(p)}t.registerStatusItem(W.id,{item:c,align:"left",rank:1,isActive:()=>c.model.sessionContext!==null});return{addSessionProvider:u}}};const V={id:"@jupyterlab/apputils-extension:running-sessions-status",description:"Add the running sessions and terminals status bar item.",autoStart:true,requires:[y.IStatusBar,l.ITranslator],activate:(e,t,n)=>{const i=new s.RunningSessions({onClick:()=>e.shell.activateById("jp-running-sessions"),serviceManager:e.serviceManager,translator:n});i.model.sessions=Array.from(e.serviceManager.sessions.running()).length;i.model.terminals=Array.from(e.serviceManager.terminals.running()).length;t.registerStatusItem(V.id,{item:i,align:"left",rank:0})}};var U=n(66899);const $="/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n/*\n * Webkit scrollbar styling.\n * Separate file which is dynamically loaded based on user/theme settings.\n */\n\n/* use standard opaque scrollbars for most nodes */\n\n::-webkit-scrollbar,\n::-webkit-scrollbar-corner {\n background: var(--jp-scrollbar-background-color);\n}\n\n::-webkit-scrollbar-thumb {\n background: rgb(var(--jp-scrollbar-thumb-color));\n border: var(--jp-scrollbar-thumb-margin) solid transparent;\n background-clip: content-box;\n border-radius: var(--jp-scrollbar-thumb-radius);\n}\n\n::-webkit-scrollbar-track:horizontal {\n border-left: var(--jp-scrollbar-endpad) solid\n var(--jp-scrollbar-background-color);\n border-right: var(--jp-scrollbar-endpad) solid\n var(--jp-scrollbar-background-color);\n}\n\n::-webkit-scrollbar-track:vertical {\n border-top: var(--jp-scrollbar-endpad) solid\n var(--jp-scrollbar-background-color);\n border-bottom: var(--jp-scrollbar-endpad) solid\n var(--jp-scrollbar-background-color);\n}\n\n/* for code nodes, use a transparent style of scrollbar */\n\n.CodeMirror-hscrollbar::-webkit-scrollbar,\n.CodeMirror-vscrollbar::-webkit-scrollbar,\n.CodeMirror-hscrollbar::-webkit-scrollbar-corner,\n.CodeMirror-vscrollbar::-webkit-scrollbar-corner {\n background-color: transparent;\n}\n\n.CodeMirror-hscrollbar::-webkit-scrollbar-thumb,\n.CodeMirror-vscrollbar::-webkit-scrollbar-thumb {\n background: rgba(var(--jp-scrollbar-thumb-color), 0.5);\n border: var(--jp-scrollbar-thumb-margin) solid transparent;\n background-clip: content-box;\n border-radius: var(--jp-scrollbar-thumb-radius);\n}\n\n.CodeMirror-hscrollbar::-webkit-scrollbar-track:horizontal {\n border-left: var(--jp-scrollbar-endpad) solid transparent;\n border-right: var(--jp-scrollbar-endpad) solid transparent;\n}\n\n.CodeMirror-vscrollbar::-webkit-scrollbar-track:vertical {\n border-top: var(--jp-scrollbar-endpad) solid transparent;\n border-bottom: var(--jp-scrollbar-endpad) solid transparent;\n}\n";var q;(function(e){e.changeTheme="apputils:change-theme";e.themeScrollbars="apputils:theme-scrollbars";e.changeFont="apputils:change-font";e.incrFontSize="apputils:incr-font-size";e.decrFontSize="apputils:decr-font-size"})(q||(q={}));function K(e){const t=document.createElement("style");t.setAttribute("type","text/css");t.appendChild(document.createTextNode(e));return t}const J={id:"@jupyterlab/apputils-extension:themes",description:"Provides the theme manager.",requires:[r.ISettingRegistry,i.JupyterFrontEnd.IPaths,l.ITranslator],optional:[s.ISplashScreen],activate:(e,t,n,i,r)=>{const a=i.load("jupyterlab");const l=e.shell;const d=e.commands;const c=o.URLExt.join(o.PageConfig.getBaseUrl(),n.urls.themes);const h=J.id;const u=new s.ThemeManager({key:h,host:l,settings:t,splash:r!==null&&r!==void 0?r:undefined,url:c});let p=null;let m;u.themeChanged.connect(((e,t)=>{m=t.newValue;document.body.dataset.jpThemeLight=String(u.isLight(m));document.body.dataset.jpThemeName=m;if(document.body.dataset.jpThemeScrollbars!==String(u.themeScrollbars(m))){document.body.dataset.jpThemeScrollbars=String(u.themeScrollbars(m));if(u.themeScrollbars(m)){if(!p){p=K($)}if(!p.parentElement){document.body.appendChild(p)}}else{if(p&&p.parentElement){p.parentElement.removeChild(p)}}}d.notifyCommandChanged(q.changeTheme)}));d.addCommand(q.changeTheme,{label:e=>{if(e.theme===undefined){return a.__("Switch to the provided `theme`.")}const t=e["theme"];const n=u.getDisplayName(t);return e["isPalette"]?a.__("Use Theme: %1",n):n},isToggled:e=>e["theme"]===m,execute:e=>{const t=e["theme"];if(t===u.theme){return}return u.setTheme(t)}});d.addCommand(q.themeScrollbars,{label:a.__("Theme Scrollbars"),isToggled:()=>u.isToggledThemeScrollbars(),execute:()=>u.toggleThemeScrollbars()});d.addCommand(q.changeFont,{label:e=>e["enabled"]?`${e["font"]}`:a.__("waiting for fonts"),isEnabled:e=>e["enabled"],isToggled:e=>u.getCSS(e["key"])===e["font"],execute:e=>u.setCSSOverride(e["key"],e["font"])});d.addCommand(q.incrFontSize,{label:e=>{switch(e.key){case"code-font-size":return a.__("Increase Code Font Size");case"content-font-size1":return a.__("Increase Content Font Size");case"ui-font-size1":return a.__("Increase UI Font Size");default:return a.__("Increase Font Size")}},execute:e=>u.incrFontSize(e["key"])});d.addCommand(q.decrFontSize,{label:e=>{switch(e.key){case"code-font-size":return a.__("Decrease Code Font Size");case"content-font-size1":return a.__("Decrease Content Font Size");case"ui-font-size1":return a.__("Decrease UI Font Size");default:return a.__("Decrease Font Size")}},execute:e=>u.decrFontSize(e["key"])});return u},autoStart:true,provides:s.IThemeManager};const Z={id:"@jupyterlab/apputils-extension:themes-palette-menu",description:"Adds theme commands to the menu and the command palette.",requires:[s.IThemeManager,l.ITranslator],optional:[s.ICommandPalette,U.IMainMenu],activate:(e,t,n,i,s)=>{const o=n.load("jupyterlab");if(s){void e.restored.then((()=>{var e;const n=false;const i=(e=s.settingsMenu.items.find((e=>{var t;return e.type==="submenu"&&((t=e.submenu)===null||t===void 0?void 0:t.id)==="jp-mainmenu-settings-apputilstheme"})))===null||e===void 0?void 0:e.submenu;if(i){t.themes.forEach(((e,t)=>{i.insertItem(t,{command:q.changeTheme,args:{isPalette:n,theme:e}})}))}}))}if(i){void e.restored.then((()=>{const e=o.__("Theme");const n=q.changeTheme;const s=true;t.themes.forEach((t=>{i.addItem({command:n,args:{isPalette:s,theme:t},category:e})}));i.addItem({command:q.themeScrollbars,category:e});i.addItem({command:q.incrFontSize,args:{key:"code-font-size"},category:e});i.addItem({command:q.decrFontSize,args:{key:"code-font-size"},category:e});i.addItem({command:q.incrFontSize,args:{key:"content-font-size1"},category:e});i.addItem({command:q.decrFontSize,args:{key:"content-font-size1"},category:e});i.addItem({command:q.incrFontSize,args:{key:"ui-font-size1"},category:e});i.addItem({command:q.decrFontSize,args:{key:"ui-font-size1"},category:e})}))}},autoStart:true};const G={id:"@jupyterlab/apputils-extension:toolbar-registry",description:"Provides toolbar items registry.",autoStart:true,provides:s.IToolbarWidgetRegistry,activate:e=>{const t=new s.ToolbarWidgetRegistry({defaultFactory:(0,s.createDefaultFactory)(e.commands)});return t}};var Y=n(12542);var X=n(19804);var Q;(function(e){e.saveWorkspace="workspace-ui:save";e.saveWorkspaceAs="workspace-ui:save-as"})(Q||(Q={}));const ee="jupyterlab-workspace";const te="."+ee;const ne="workspace-ui:lastSave";const ie="jp-JupyterIcon";const se={id:"@jupyterlab/apputils-extension:workspaces",description:"Add workspace file type and commands.",autoStart:true,requires:[X.IDefaultFileBrowser,s.IWindowResolver,a.IStateDB,l.ITranslator,i.JupyterFrontEnd.IPaths],optional:[i.IRouter],activate:(e,t,n,i,s,o,r)=>{const a=new oe.WorkspaceFactory({workspaces:e.serviceManager.workspaces,router:r,state:i,translator:s,paths:o});const l=s.load("jupyterlab");e.docRegistry.addFileType({name:ee,contentType:"file",fileFormat:"text",displayName:l.__("JupyterLab workspace File"),extensions:[te],mimeTypes:["text/json"],iconClass:ie});e.docRegistry.addWidgetFactory(a);e.commands.addCommand(Q.saveWorkspaceAs,{label:l.__("Save Current Workspace As…"),execute:async()=>{const o=e.serviceManager.workspaces.fetch(n.name);await oe.saveAs(t,e.serviceManager.contents,o,i,s)}});e.commands.addCommand(Q.saveWorkspace,{label:l.__("Save Current Workspace"),execute:async()=>{const{contents:o}=e.serviceManager;const r=e.serviceManager.workspaces.fetch(n.name);const a=await i.fetch(ne);if(a===undefined){await oe.saveAs(t,o,r,i,s)}else{await oe.save(a,o,r,i)}}})}};var oe;(function(e){async function t(e,t,n,i){let s=e.split("/").pop();if(s!==undefined&&s.includes(".")){s=s.split(".")[0]}else{e=e+te}await i.save(ne,e);const o=await n;o.metadata.id=`${s}`;await t.save(e,{type:"file",format:"text",content:JSON.stringify(o)})}e.save=t;async function n(e,n,i,s,o){var r;o=o||l.nullTranslator;const d=await s.fetch(ne);let c;if(d===undefined){c="new-workspace"}else{c=(r=d.split("/").pop())===null||r===void 0?void 0:r.split(".")[0]}const h=e.model.path+"/"+c+te;const u=await a(h,o);if(u){await t(u,n,i,s)}}e.saveAs=n;class i extends Y.ABCWidgetFactory{constructor(e){const t=(e.translator||l.nullTranslator).load("jupyterlab");super({name:"Workspace loader",label:t.__("Workspace loader"),fileTypes:[ee],defaultFor:[ee],readOnly:true});this._application=e.paths.urls.app;this._router=e.router;this._state=e.state;this._workspaces=e.workspaces}createNewWidget(e){void e.ready.then((async()=>{const t=e.model;const n=t.toJSON();const i=e.path;const s=n.metadata.id;await this._workspaces.save(s,n);await this._state.save(ne,i);const r=o.URLExt.join(this._application,"workspaces",s);if(this._router){this._router.navigate(r,{hard:true})}else{document.location.href=r}}));return r(e)}}e.WorkspaceFactory=i;function r(e){const t=new Y.DocumentWidget({content:new R.Widget,context:e});t.content.dispose();return t}async function a(e,t){t=t||l.nullTranslator;const n=t.load("jupyterlab");const i=s.Dialog.okButton({label:n.__("Save"),ariaLabel:n.__("Save Current Workspace")});const o=await(0,s.showDialog)({title:n.__("Save Current Workspace As…"),body:new d(e),buttons:[s.Dialog.cancelButton(),i]});if(o.button.label===n.__("Save")){return o.value}else{return null}}class d extends R.Widget{constructor(e){super({node:c(e)})}getValue(){return this.node.value}}function c(e){const t=document.createElement("input");t.value=e;return t}})(oe||(oe={}));var re=n(36044);const ae="jp-ContextualShortcut-TableRow";const le="jp-ContextualShortcut-TableLastRow";const de="jp-ContextualShortcut-TableItem";const ce="jp-ContextualShortcut-Key";function he(e){const{commands:t,trans:n,activeElement:i}=e;const o=i!==null&&i!==void 0?i:document.activeElement;function r(e){const t=[];e.forEach(((e,n)=>{const i=[];e.split(" ").forEach(((e,t)=>{i.push(w.createElement("span",{className:ce,key:`ch-${t}`},w.createElement("kbd",null,e)),w.createElement(w.Fragment,{key:`fragment-${t}`}," + "))}));t.push(w.createElement("span",{key:`key-${n}`},i.slice(0,-1)),w.createElement(w.Fragment,{key:`fragment-${n}`}," + "))}));return w.createElement("span",null,t.slice(0,-1))}function a(e){const t=e.charAt(0).toUpperCase()+e.slice(1);return t}function l(e){const n=t.label(e.command);const i=e.command.split(":")[1];const s=i.split("-");let o="";for(let t=0;t0){return n}else{return o}}function d(e,t){let n=t;for(let i=0;n!==null&&n!==n.parentElement;n=n.parentElement,++i){if(n.hasAttribute("data-lm-suppress-shortcuts")){return-1}if(n.matches(e)){return i}}return-1}const c=new Map;for(let s=0;sre.Selector.calculateSpecificity(e.selector)){continue}}c.set(i,[n,e])}let h=-1;const u=new Map;for(let[s,g]of c.values()){h=Math.max(s,h);if(!u.has(s)){u.set(s,[])}u.get(s).push(g)}const p=[];for(let s=0;s<=h;s++){if(u.has(s)){p.push(u.get(s).map((e=>w.createElement("tr",{className:ae,key:`${e.command}-${e.keys.join("-").replace(" ","_")}`},w.createElement("td",{className:de},l(e)),w.createElement("td",{className:de},r([...e.keys]))))));p.push(w.createElement("tr",{className:le,key:`group-${s}-last`}))}}const m=w.createElement("table",null,w.createElement("tbody",null,p));return(0,s.showDialog)({title:n.__("Keyboard Shortcuts"),body:m,buttons:[s.Dialog.cancelButton({label:n.__("Close")})]})}const ue=12e3;var pe;(function(e){e.loadState="apputils:load-statedb";e.print="apputils:print";e.reset="apputils:reset";e.resetOnLoad="apputils:reset-on-load";e.runFirstEnabled="apputils:run-first-enabled";e.runAllEnabled="apputils:run-all-enabled";e.toggleHeader="apputils:toggle-header";e.displayShortcuts="apputils:display-shortcuts"})(pe||(pe={}));const me={id:"@jupyterlab/apputils-extension:palette",description:"Provides the command palette.",autoStart:true,requires:[l.ITranslator],provides:s.ICommandPalette,optional:[r.ISettingRegistry],activate:(e,t,n)=>B.activate(e,t,n)};const ge={id:"@jupyterlab/apputils-extension:palette-restorer",description:"Restores the command palette.",autoStart:true,requires:[i.ILayoutRestorer,l.ITranslator],activate:(e,t,n)=>{B.restore(e,t,n)}};const fe={id:"@jupyterlab/apputils-extension:resolver",description:"Provides the window name resolver.",autoStart:true,provides:s.IWindowResolver,requires:[i.JupyterFrontEnd.IPaths,i.IRouter],activate:async(e,t,n)=>{const{hash:i,search:r}=n.current;const a=o.URLExt.queryStringToObject(r||"");const l=new s.WindowResolver;const d=o.PageConfig.getOption("workspace");const c=o.PageConfig.getOption("treePath");const h=o.PageConfig.getOption("mode")==="multiple-document"?"lab":"doc";const u=d?d:o.PageConfig.defaultWorkspace;const p=c?o.URLExt.join("tree",c):"";try{await l.resolve(u);return l}catch(m){return new Promise((()=>{const{base:e}=t.urls;const s="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";const r=s[Math.floor(Math.random()*s.length)];let l=o.URLExt.join(e,h,"workspaces",`auto-${r}`);l=p?o.URLExt.join(l,o.URLExt.encodeParts(p)):l;a["reset"]="";const d=l+o.URLExt.objectToQueryString(a)+(i||"");n.navigate(d,{hard:true})}))}}};const ve={id:"@jupyterlab/apputils-extension:splash",description:"Provides the splash screen.",autoStart:true,requires:[l.ITranslator],provides:s.ISplashScreen,activate:(e,t)=>{const n=t.load("jupyterlab");const{commands:i,restored:o}=e;const r=document.createElement("div");const a=document.createElement("div");const l=document.createElement("div");r.id="jupyterlab-splash";a.id="galaxy";l.id="main-logo";d.jupyterFaviconIcon.element({container:l,stylesheet:"splash"});a.appendChild(l);["1","2","3"].forEach((e=>{const t=document.createElement("div");const n=document.createElement("div");t.id=`moon${e}`;t.className="moon orbit";n.id=`planet${e}`;n.className="planet";t.appendChild(n);a.appendChild(t)}));r.appendChild(a);let c;const p=new u.Throttler((async()=>{if(c){return}c=new s.Dialog({title:n.__("Loading…"),body:n.__(`The loading screen is taking a long time.\nWould you like to clear the workspace or keep waiting?`),buttons:[s.Dialog.cancelButton({label:n.__("Keep Waiting")}),s.Dialog.warnButton({label:n.__("Clear Workspace")})]});try{const e=await c.launch();c.dispose();c=null;if(e.button.accept&&i.hasCommand(pe.reset)){return i.execute(pe.reset)}requestAnimationFrame((()=>{void p.invoke().catch((e=>undefined))}))}catch(e){}}),{limit:ue,edge:"trailing"});let m=0;return{show:(e=true)=>{r.classList.remove("splash-fade");r.classList.toggle("light",e);r.classList.toggle("dark",!e);m++;document.body.appendChild(r);void p.invoke().catch((e=>undefined));return new h.DisposableDelegate((async()=>{await o;if(--m===0){void p.stop();if(c){c.dispose();c=null}r.classList.add("splash-fade");window.setTimeout((()=>{document.body.removeChild(r)}),200)}}))}}}};const _e={id:"@jupyterlab/apputils-extension:print",description:"Add the print capability",autoStart:true,requires:[l.ITranslator],activate:(e,t)=>{const n=t.load("jupyterlab");e.commands.addCommand(pe.print,{label:n.__("Print…"),isEnabled:()=>{const t=e.shell.currentWidget;return s.Printing.getPrintFunction(t)!==null},execute:async()=>{const t=e.shell.currentWidget;const n=s.Printing.getPrintFunction(t);if(n){await n()}}})}};const be={id:"@jupyterlab/apputils-extension:toggle-header",description:"Adds a command to display the main area widget content header.",autoStart:true,requires:[l.ITranslator],optional:[s.ICommandPalette],activate:(e,t,n)=>{const i=t.load("jupyterlab");const o=i.__("Main Area");e.commands.addCommand(pe.toggleHeader,{label:i.__("Show Header Above Content"),isEnabled:()=>e.shell.currentWidget instanceof s.MainAreaWidget&&!e.shell.currentWidget.contentHeader.isDisposed&&e.shell.currentWidget.contentHeader.widgets.length>0,isToggled:()=>{const t=e.shell.currentWidget;return t instanceof s.MainAreaWidget?!t.contentHeader.isHidden:false},execute:async()=>{const t=e.shell.currentWidget;if(t instanceof s.MainAreaWidget){t.contentHeader.setHidden(!t.contentHeader.isHidden)}}});if(n){n.addItem({command:pe.toggleHeader,category:o})}}};async function ye(e,t,n){var i,s;const r=await t.toJSON();let a=(s=(i=r["layout-restorer:data"])===null||i===void 0?void 0:i.main)===null||s===void 0?void 0:s.current;if(a===undefined){document.title=`${o.PageConfig.getOption("appName")||"JupyterLab"}${e.startsWith("auto-")?` (${e})`:``}`}else{let t=o.PathExt.basename(decodeURIComponent(window.location.href));t=t.length>15?t.slice(0,12).concat(`…`):t;const i=Object.keys(r).filter((e=>e.startsWith("notebook")||e.startsWith("editor"))).length;if(e.startsWith("auto-")){document.title=`${t} (${e}${i>1?` : ${i}`:``}) - ${n}`}else{document.title=`${t}${i>1?` (${i})`:``} - ${n}`}}}const we={id:"@jupyterlab/apputils-extension:state",description:"Provides the application state. It is stored per workspaces.",autoStart:true,provides:a.IStateDB,requires:[i.JupyterFrontEnd.IPaths,i.IRouter,l.ITranslator],optional:[s.IWindowResolver],activate:(e,t,n,i,s)=>{const r=i.load("jupyterlab");if(s===null){return new a.StateDB}let l=false;const{commands:d,name:h,serviceManager:p}=e;const{workspaces:m}=p;const g=s.name;const f=new c.PromiseDelegate;const v=new a.StateDB({transform:f.promise});const _=new u.Debouncer((async()=>{const e=g;const t={id:e};const n=await v.toJSON();await m.save(e,{data:n,metadata:t})}));v.changed.connect((()=>void _.invoke()),v);v.changed.connect((()=>ye(g,v,h)));d.addCommand(pe.loadState,{label:r.__("Load state for the current workspace."),execute:async e=>{if(l){return}const{hash:t,path:i,search:s}=e;const r=o.URLExt.queryStringToObject(s||"");const a=typeof r["clone"]==="string"?r["clone"]===""?o.PageConfig.defaultWorkspace:r["clone"]:null;const d=a||g||null;if(d===null){console.error(`${pe.loadState} cannot load null workspace.`);return}try{const e=await m.fetch(d);if(!l){l=true;f.resolve({type:"overwrite",contents:e.data})}}catch({message:c}){console.warn(`Fetching workspace "${g}" failed.`,c);if(!l){l=true;f.resolve({type:"cancel",contents:null})}}if(d===a){delete r["clone"];const e=i+o.URLExt.objectToQueryString(r)+t;const s=_.invoke().then((()=>n.stop));void s.then((()=>{n.navigate(e)}));return s}await _.invoke()}});d.addCommand(pe.reset,{label:r.__("Reset Application State"),execute:async({reload:e})=>{await v.clear();await _.invoke();if(e){n.reload()}}});d.addCommand(pe.resetOnLoad,{label:r.__("Reset state when loading for the workspace."),execute:e=>{const{hash:t,path:i,search:s}=e;const r=o.URLExt.queryStringToObject(s||"");const a="reset"in r;const d="clone"in r;if(!a){return}if(l){return n.reload()}l=true;f.resolve({type:"clear",contents:null});delete r["reset"];const c=i+o.URLExt.objectToQueryString(r)+t;const h=v.clear().then((()=>_.invoke()));if(d){void h.then((()=>{n.navigate(c,{hard:true})}))}else{void h.then((()=>{n.navigate(c)}))}return h}});n.register({command:pe.loadState,pattern:/.?/,rank:30});n.register({command:pe.resetOnLoad,pattern:/(\?reset|\&reset)($|&)/,rank:20});return v}};const Ce={id:"@jupyterlab/apputils-extension:sessionDialogs",description:"Provides the session context dialogs.",provides:s.ISessionContextDialogs,optional:[l.ITranslator],autoStart:true,activate:async(e,t)=>new s.SessionContextDialogs({translator:t!==null&&t!==void 0?t:l.nullTranslator})};const xe={id:"@jupyterlab/apputils-extension:utilityCommands",description:"Adds meta commands to run set of other commands.",requires:[l.ITranslator],optional:[s.ICommandPalette],autoStart:true,activate:(e,t,n)=>{const i=t.load("jupyterlab");const{commands:o}=e;o.addCommand(pe.runFirstEnabled,{label:i.__("Run First Enabled Command"),execute:t=>{const n=t.commands;const i=t.args;const s=Array.isArray(t);for(let o=0;o{var n,i;const s=(n=t.commands)!==null&&n!==void 0?n:[];const o=t.args;const r=Array.isArray(t);const a=(i=t.errorIfNotEnabled)!==null&&i!==void 0?i:false;for(let l=0;l{var n;const i=(n=t.commands)!==null&&n!==void 0?n:[];const s=t.args;const o=Array.isArray(t);return i.some(((t,n)=>e.commands.isEnabled(t,o?s[n]:s)))}});o.addCommand(pe.displayShortcuts,{label:i.__("Show Keyboard Shortcuts"),caption:i.__("Show relevant keyboard shortcuts for the current active widget"),execute:t=>{var n;const r=e.shell.currentWidget;const a=r===null||r===void 0?void 0:r.node.contains(document.activeElement);if(!a&&r instanceof s.MainAreaWidget){const e=(n=r.content.node)!==null&&n!==void 0?n:r===null||r===void 0?void 0:r.node;e===null||e===void 0?void 0:e.focus()}const l={commands:o,trans:i};return he(l)}});if(n){const e=i.__("Help");n.addItem({command:pe.displayShortcuts,category:e})}}};const Se={id:"@jupyterlab/apputils-extension:sanitizer",description:"Provides the HTML sanitizer.",autoStart:true,provides:s.ISanitizer,requires:[r.ISettingRegistry],activate:(e,t)=>{const n=new s.Sanitizer;const i=e=>{const t=e.get("allowedSchemes").composite;const i=e.get("autolink").composite;if(t){n.setAllowedSchemes(t)}n.setAutolink(i)};t.load("@jupyterlab/apputils-extension:sanitizer").then((e=>{i(e);e.changed.connect(i)})).catch((e=>{console.error(`Failed to load sanitizer settings:`,e)}));return n}};const ke=[b,W,D,me,ge,_e,fe,V,Se,H,we,ve,Ce,J,Z,be,G,xe,se];const je=ke},48435:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(98328);var r=n(79536);var a=n(94683);var l=n(90516);var d=n(59240);var c=n(74518);var h=n(93379);var u=n.n(h);var p=n(7795);var m=n.n(p);var g=n(90569);var f=n.n(g);var v=n(3565);var _=n.n(v);var b=n(19216);var y=n.n(b);var w=n(44589);var C=n.n(w);var x=n(70785);var S={};S.styleTagTransform=C();S.setAttributes=_();S.insert=f().bind(null,"head");S.domAPI=m();S.insertStyleElement=y();var k=u()(x.Z,S);const j=x.Z&&x.Z.locals?x.Z.locals:undefined},37342:(e,t,n)=>{"use strict";n.r(t);n.d(t,{Clipboard:()=>T,Collapse:()=>i.Collapser,CommandLinker:()=>A,CommandToolbarButton:()=>i.CommandToolbarButton,CommandToolbarButtonComponent:()=>i.CommandToolbarButtonComponent,DOMUtils:()=>B,Dialog:()=>v,HoverBox:()=>i.HoverBox,ICommandPalette:()=>ge,IFrame:()=>i.IFrame,IKernelStatusModel:()=>fe,ISanitizer:()=>be,ISessionContextDialogs:()=>ve,ISplashScreen:()=>ye,IThemeManager:()=>_e,IToolbarWidgetRegistry:()=>Ce,IWindowResolver:()=>we,InputDialog:()=>H,KernelStatus:()=>k,MainAreaWidget:()=>X,MenuFactory:()=>Q,ModalCommandPalette:()=>N,Notification:()=>te,NotificationManager:()=>ee,Printing:()=>G,ReactWidget:()=>i.ReactWidget,RunningSessions:()=>se,Sanitizer:()=>le,SemanticCommand:()=>de,SessionContext:()=>b,SessionContextDialogs:()=>y,Spinner:()=>i.Spinner,Styling:()=>i.Styling,ThemeManager:()=>pe,Toolbar:()=>Re,ToolbarButton:()=>i.ToolbarButton,ToolbarButtonComponent:()=>i.ToolbarButtonComponent,ToolbarWidgetRegistry:()=>xe,UseSignal:()=>i.UseSignal,VDomModel:()=>i.VDomModel,VDomRenderer:()=>i.VDomRenderer,WidgetTracker:()=>m,WindowResolver:()=>Pe,addCommandToolbarButtonClass:()=>i.addCommandToolbarButtonClass,addToolbarButtonClass:()=>i.addToolbarButtonClass,createDefaultFactory:()=>Se,createToolbarFactory:()=>De,setToolbar:()=>Le,showDialog:()=>g,showErrorMessage:()=>f,translateKernelStatuses:()=>x});var i=n(4148);var s=n(6958);var o=n(85448);var r=n(28416);var a=n.n(r);var l=n(20501);var d=n(58740);var c=n(5596);var h=n(71372);var u=n(28821);var p=n(22971);class m{constructor(e){this._currentChanged=new h.Signal(this);this._deferred=null;this._isDisposed=false;this._widgetAdded=new h.Signal(this);this._widgetUpdated=new h.Signal(this);const t=this._focusTracker=new o.FocusTracker;const n=this._pool=new p.RestorablePool(e);this.namespace=e.namespace;t.currentChanged.connect(((e,t)=>{if(t.newValue!==this.currentWidget){n.current=t.newValue}}),this);n.added.connect(((e,t)=>{this._widgetAdded.emit(t)}),this);n.currentChanged.connect(((e,i)=>{if(i===null&&t.currentWidget){n.current=t.currentWidget;return}this.onCurrentChanged(i);this._currentChanged.emit(i)}),this);n.updated.connect(((e,t)=>{this._widgetUpdated.emit(t)}),this)}get currentChanged(){return this._currentChanged}get currentWidget(){return this._pool.current||null}get restored(){if(this._deferred){return Promise.resolve()}else{return this._pool.restored}}get size(){return this._pool.size}get widgetAdded(){return this._widgetAdded}get widgetUpdated(){return this._widgetUpdated}async add(e){this._focusTracker.add(e);await this._pool.add(e);if(!this._focusTracker.activeWidget){this._pool.current=e}}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this._pool.dispose();this._focusTracker.dispose();h.Signal.clearData(this)}find(e){return this._pool.find(e)}forEach(e){return this._pool.forEach(e)}filter(e){return this._pool.filter(e)}inject(e){return this._pool.inject(e)}has(e){return this._pool.has(e)}async restore(e){const t=this._deferred;if(t){this._deferred=null;return this._pool.restore(t)}if(e){return this._pool.restore(e)}console.warn("No options provided to restore the tracker.")}defer(e){this._deferred=e}async save(e){return this._pool.save(e)}onCurrentChanged(e){}}function g(e={}){const t=new v(e);return t.launch()}function f(e,t,n){const i=v.translator.load("jupyterlab");n=n!==null&&n!==void 0?n:[v.okButton({label:i.__("Dismiss")})];console.warn("Showing error:",t);const s=typeof t==="string"?t:t.message;const o=e+"----"+s;const r=_.errorMessagePromiseCache.get(o);if(r){return r}else{const t=g({title:e,body:s,buttons:n}).then((()=>{_.errorMessagePromiseCache.delete(o)}),(e=>{_.errorMessagePromiseCache.delete(o);throw e}));_.errorMessagePromiseCache.set(o,t);return t}}class v extends o.Widget{constructor(e={}){const t=document.createElement("dialog");t.ariaModal="true";super({node:t});this._ready=new c.PromiseDelegate;this._focusNodeSelector="";this.addClass("jp-Dialog");const n=_.handleOptions(e);const i=n.renderer;this._host=n.host;this._defaultButton=n.defaultButton;this._buttons=n.buttons;this._hasClose=n.hasClose;this._buttonNodes=this._buttons.map((e=>i.createButtonNode(e)));this._checkboxNode=null;this._lastMouseDownInDialog=false;if(n.checkbox){const{label:e="",caption:t="",checked:s=false,className:o=""}=n.checkbox;this._checkboxNode=i.createCheckboxNode({label:e,caption:t!==null&&t!==void 0?t:e,checked:s,className:o})}const s=this.layout=new o.PanelLayout;const r=new o.Panel;r.addClass("jp-Dialog-content");if(typeof e.body==="string"){r.addClass("jp-Dialog-content-small");t.ariaLabel=[n.title,e.body].join(" ")}s.addWidget(r);this._body=n.body;const a=i.createHeader(n.title,(()=>this.reject()),e);const l=i.createBody(n.body);const d=i.createFooter(this._buttonNodes,this._checkboxNode);r.addWidget(a);r.addWidget(l);r.addWidget(d);this._bodyWidget=l;this._primary=this._buttonNodes[this._defaultButton];this._focusNodeSelector=e.focusNodeSelector;void v.tracker.add(this)}get ready(){return this._ready.promise}dispose(){const e=this._promise;if(e){this._promise=null;e.reject(void 0);d.ArrayExt.removeFirstOf(_.launchQueue,e.promise)}super.dispose()}launch(){if(this._promise){return this._promise.promise}const e=this._promise=new c.PromiseDelegate;const t=Promise.all(_.launchQueue);_.launchQueue.push(this._promise.promise);return t.then((()=>{if(!this._promise){return Promise.resolve({button:v.cancelButton(),isChecked:null,value:null})}o.Widget.attach(this,this._host);return e.promise}))}resolve(e){if(!this._promise){return}if(e===undefined){e=this._defaultButton}this._resolve(this._buttons[e])}reject(){if(!this._promise){return}this._resolve(v.cancelButton())}handleEvent(e){switch(e.type){case"keydown":this._evtKeydown(e);break;case"mousedown":this._evtMouseDown(e);break;case"click":this._evtClick(e);break;case"focus":this._evtFocus(e);break;case"contextmenu":e.preventDefault();e.stopPropagation();break;default:break}}onAfterAttach(e){const t=this.node;t.addEventListener("keydown",this,true);t.addEventListener("contextmenu",this,true);t.addEventListener("click",this,true);document.addEventListener("mousedown",this,true);document.addEventListener("focus",this,true);this._first=_.findFirstFocusable(this.node);this._original=document.activeElement;const n=()=>{var e;if(this._focusNodeSelector){const e=this.node.querySelector(".jp-Dialog-body");const t=e===null||e===void 0?void 0:e.querySelector(this._focusNodeSelector);if(t){this._primary=t}}(e=this._primary)===null||e===void 0?void 0:e.focus();this._ready.resolve()};if(this._bodyWidget instanceof i.ReactWidget&&this._bodyWidget.renderPromise!==undefined){this._bodyWidget.renderPromise.then((()=>{n()})).catch((()=>{console.error("Error while loading Dialog's body")}))}else{n()}}onAfterDetach(e){const t=this.node;t.removeEventListener("keydown",this,true);t.removeEventListener("contextmenu",this,true);t.removeEventListener("click",this,true);document.removeEventListener("focus",this,true);document.removeEventListener("mousedown",this,true);this._original.focus()}onCloseRequest(e){if(this._promise){this.reject()}super.onCloseRequest(e)}_evtClick(e){const t=this.node.getElementsByClassName("jp-Dialog-content")[0];if(!t.contains(e.target)){e.stopPropagation();e.preventDefault();if(this._hasClose&&!this._lastMouseDownInDialog){this.reject()}return}for(const n of this._buttonNodes){if(n.contains(e.target)){const e=this._buttonNodes.indexOf(n);this.resolve(e)}}}_evtKeydown(e){switch(e.keyCode){case 27:e.stopPropagation();e.preventDefault();if(this._hasClose){this.reject()}break;case 37:{const t=document.activeElement;if(t instanceof HTMLButtonElement){let n=this._buttonNodes.indexOf(t)-1;if(n<0){n=this._buttonNodes.length-1}const i=this._buttonNodes[n];e.stopPropagation();e.preventDefault();i.focus()}break}case 39:{const t=document.activeElement;if(t instanceof HTMLButtonElement){let n=this._buttonNodes.indexOf(t)+1;if(n==this._buttons.length){n=0}const i=this._buttonNodes[n];e.stopPropagation();e.preventDefault();i.focus()}break}case 9:{const t=this._buttonNodes[this._buttons.length-1];if(document.activeElement===t&&!e.shiftKey){e.stopPropagation();e.preventDefault();this._first.focus()}break}case 13:{e.stopPropagation();e.preventDefault();const t=document.activeElement;let n;if(t instanceof HTMLButtonElement){n=this._buttonNodes.indexOf(t)}this.resolve(n);break}default:break}}_evtFocus(e){var t;const n=e.target;if(!this.node.contains(n)){e.stopPropagation();(t=this._buttonNodes[this._defaultButton])===null||t===void 0?void 0:t.focus()}}_evtMouseDown(e){const t=this.node.getElementsByClassName("jp-Dialog-content")[0];const n=e.target;this._lastMouseDownInDialog=t.contains(n)}_resolve(e){var t,n,i;const s=this._promise;if(!s){this.dispose();return}this._promise=null;d.ArrayExt.removeFirstOf(_.launchQueue,s.promise);const r=this._body;let a=null;if(e.accept&&r instanceof o.Widget&&typeof r.getValue==="function"){a=r.getValue()}this.dispose();s.resolve({button:e,isChecked:(i=(n=(t=this._checkboxNode)===null||t===void 0?void 0:t.querySelector("input"))===null||n===void 0?void 0:n.checked)!==null&&i!==void 0?i:null,value:a})}}(function(e){e.translator=s.nullTranslator;function t(t){t.accept=t.accept!==false;const n=e.translator.load("jupyterlab");const i=t.accept?n.__("Ok"):n.__("Cancel");return{ariaLabel:t.ariaLabel||t.label||i,label:t.label||i,iconClass:t.iconClass||"",iconLabel:t.iconLabel||"",caption:t.caption||"",className:t.className||"",accept:t.accept,actions:t.actions||[],displayType:t.displayType||"default"}}e.createButton=t;function n(e={}){e.accept=false;return t(e)}e.cancelButton=n;function a(e={}){e.accept=true;return t(e)}e.okButton=a;function l(e={}){e.displayType="warn";return t(e)}e.warnButton=l;function d(){e.tracker.forEach((e=>{e.dispose()}))}e.flush=d;class c{createHeader(t,n=(()=>{}),s={}){let o;const a=e=>{if(e.button===0){e.preventDefault();n()}};const l=e=>{const{key:t}=e;if(t==="Enter"||t===" "){n()}};if(typeof t==="string"){const n=e.translator.load("jupyterlab");o=i.ReactWidget.create(r.createElement(r.Fragment,null,t,s.hasClose&&r.createElement(i.Button,{className:"jp-Dialog-close-button",onMouseDown:a,onKeyDown:l,title:n.__("Cancel"),minimal:true},r.createElement(i.LabIcon.resolveReact,{icon:i.closeIcon,iconClass:"jp-Icon",className:"jp-ToolbarButtonComponent-icon",tag:"span"}))))}else{o=i.ReactWidget.create(t)}o.addClass("jp-Dialog-header");i.Styling.styleNode(o.node);return o}createBody(e){const t=e=>{if(e.renderPromise!==undefined){e.renderPromise.then((()=>{i.Styling.styleNode(e.node)})).catch((()=>{console.error("Error while loading Dialog's body")}))}else{i.Styling.styleNode(e.node)}};let n;if(typeof e==="string"){n=new o.Widget({node:document.createElement("span")});n.node.textContent=e}else if(e instanceof o.Widget){n=e;if(n instanceof i.ReactWidget){t(n)}else{i.Styling.styleNode(n.node)}}else{n=i.ReactWidget.create(e);u.MessageLoop.sendMessage(n,o.Widget.Msg.UpdateRequest);t(n)}n.addClass("jp-Dialog-body");return n}createFooter(e,t){const n=new o.Widget;n.addClass("jp-Dialog-footer");if(t){n.node.appendChild(t);n.node.insertAdjacentHTML("beforeend",'')}for(const i of e){n.node.appendChild(i)}i.Styling.styleNode(n.node);return n}createButtonNode(e){const t=document.createElement("button");t.className=this.createItemClass(e);t.appendChild(this.renderIcon(e));t.appendChild(this.renderLabel(e));return t}createCheckboxNode(e){const t=document.createElement("label");t.className="jp-Dialog-checkbox";if(e.className){t.classList.add(e.className)}t.title=e.caption;t.textContent=e.label;const n=document.createElement("input");n.type="checkbox";n.checked=!!e.checked;t.insertAdjacentElement("afterbegin",n);return t}createItemClass(e){let t="jp-Dialog-button";if(e.accept){t+=" jp-mod-accept"}else{t+=" jp-mod-reject"}if(e.displayType==="warn"){t+=" jp-mod-warn"}const n=e.className;if(n){t+=` ${n}`}return t}renderIcon(e){const t=document.createElement("div");t.className=this.createIconClass(e);t.appendChild(document.createTextNode(e.iconLabel));return t}createIconClass(e){const t="jp-Dialog-buttonIcon";const n=e.iconClass;return n?`${t} ${n}`:t}renderLabel(e){const t=document.createElement("div");t.className="jp-Dialog-buttonLabel";t.title=e.caption;t.ariaLabel=e.ariaLabel;t.appendChild(document.createTextNode(e.label));return t}}e.Renderer=c;e.defaultRenderer=new c;e.tracker=new m({namespace:"@jupyterlab/apputils:Dialog"})})(v||(v={}));var _;(function(e){e.launchQueue=[];e.errorMessagePromiseCache=new Map;function t(e={}){var t,n,i,s,o,r,a,l,d;const c=(t=e.buttons)!==null&&t!==void 0?t:[v.cancelButton(),v.okButton()];return{title:(n=e.title)!==null&&n!==void 0?n:"",body:(i=e.body)!==null&&i!==void 0?i:"",host:(s=e.host)!==null&&s!==void 0?s:document.body,checkbox:(o=e.checkbox)!==null&&o!==void 0?o:null,buttons:c,defaultButton:(r=e.defaultButton)!==null&&r!==void 0?r:c.length-1,renderer:(a=e.renderer)!==null&&a!==void 0?a:v.defaultRenderer,focusNodeSelector:(l=e.focusNodeSelector)!==null&&l!==void 0?l:"",hasClose:(d=e.hasClose)!==null&&d!==void 0?d:true}}e.handleOptions=t;function n(e){const t=["input","select","a[href]","textarea","button","[tabindex]"].join(",");return e.querySelectorAll(t)[0]}e.findFirstFocusable=n})(_||(_={}));class b{constructor(e){var t,n,i,o;this._path="";this._name="";this._type="";this._prevKernelName="";this._isDisposed=false;this._disposed=new h.Signal(this);this._session=null;this._ready=new c.PromiseDelegate;this._initializing=false;this._initStarted=new c.PromiseDelegate;this._initPromise=new c.PromiseDelegate;this._isReady=false;this._isTerminating=false;this._isRestarting=false;this._kernelChanged=new h.Signal(this);this._preferenceChanged=new h.Signal(this);this._sessionChanged=new h.Signal(this);this._statusChanged=new h.Signal(this);this._connectionStatusChanged=new h.Signal(this);this._pendingInput=false;this._iopubMessage=new h.Signal(this);this._unhandledMessage=new h.Signal(this);this._propertyChanged=new h.Signal(this);this._dialog=null;this._busyDisposable=null;this._pendingKernelName="";this._pendingSessionRequest="";this.sessionManager=e.sessionManager;this.specsManager=e.specsManager;this.translator=e.translator||s.nullTranslator;this._trans=this.translator.load("jupyterlab");this._path=(t=e.path)!==null&&t!==void 0?t:c.UUID.uuid4();this._type=(n=e.type)!==null&&n!==void 0?n:"";this._name=(i=e.name)!==null&&i!==void 0?i:"";this._setBusy=e.setBusy;this._kernelPreference=(o=e.kernelPreference)!==null&&o!==void 0?o:{}}get session(){var e;return(e=this._session)!==null&&e!==void 0?e:null}get path(){return this._path}get type(){return this._type}get name(){return this._name}get kernelChanged(){return this._kernelChanged}get sessionChanged(){return this._sessionChanged}get statusChanged(){return this._statusChanged}get pendingInput(){return this._pendingInput}get connectionStatusChanged(){return this._connectionStatusChanged}get iopubMessage(){return this._iopubMessage}get unhandledMessage(){return this._unhandledMessage}get propertyChanged(){return this._propertyChanged}get kernelPreference(){return this._kernelPreference}set kernelPreference(e){if(!c.JSONExt.deepEqual(e,this._kernelPreference)){const t=this._kernelPreference;this._kernelPreference=e;this._preferenceChanged.emit({name:"kernelPreference",oldValue:t,newValue:c.JSONExt.deepCopy(e)})}}get kernelPreferenceChanged(){return this._preferenceChanged}get isReady(){return this._isReady}get ready(){return this._ready.promise}get isTerminating(){return this._isTerminating}get isRestarting(){return this._isRestarting}get hasNoKernel(){return this.kernelDisplayName===this.noKernelName}get kernelDisplayName(){var e,t,n,i,s,o,r;const a=(e=this.session)===null||e===void 0?void 0:e.kernel;if(this._pendingKernelName===this.noKernelName){return this.noKernelName}if(this._pendingKernelName){return(i=(n=(t=this.specsManager.specs)===null||t===void 0?void 0:t.kernelspecs[this._pendingKernelName])===null||n===void 0?void 0:n.display_name)!==null&&i!==void 0?i:this._pendingKernelName}if(!a){return this.noKernelName}return(r=(o=(s=this.specsManager.specs)===null||s===void 0?void 0:s.kernelspecs[a.name])===null||o===void 0?void 0:o.display_name)!==null&&r!==void 0?r:a.name}get kernelDisplayStatus(){var e,t;const n=(e=this.session)===null||e===void 0?void 0:e.kernel;if(this._isTerminating){return"terminating"}if(this._isRestarting){return"restarting"}if(this._pendingKernelName===this.noKernelName){return"unknown"}if(!n&&this._pendingKernelName){return"initializing"}if(!n&&!this.isReady&&this.kernelPreference.canStart!==false&&this.kernelPreference.shouldStart!==false){return"initializing"}return(t=(n===null||n===void 0?void 0:n.connectionStatus)==="connected"?n===null||n===void 0?void 0:n.status:n===null||n===void 0?void 0:n.connectionStatus)!==null&&t!==void 0?t:"unknown"}get prevKernelName(){return this._prevKernelName}get isDisposed(){return this._isDisposed}get disposed(){return this._disposed}get noKernelName(){return this._trans.__("No Kernel")}dispose(){if(this._isDisposed){return}this._isDisposed=true;this._disposed.emit();if(this._session){if(this.kernelPreference.shutdownOnDispose){this.sessionManager.shutdown(this._session.id).catch((e=>{console.error(`Kernel not shut down ${e}`)}))}this._session.dispose();this._session=null}if(this._dialog){this._dialog.dispose()}if(this._busyDisposable){this._busyDisposable.dispose();this._busyDisposable=null}h.Signal.clearData(this)}async startKernel(){const e=this.kernelPreference;if(!e.autoStartDefault&&e.shouldStart===false){return true}let t;if(e.id){t={id:e.id}}else{const n=w.getDefaultKernel({specs:this.specsManager.specs,sessions:this.sessionManager.running(),preference:e});if(n){t={name:n}}}if(t){try{await this._changeKernel(t);return false}catch(n){}}return true}async restartKernel(){var e,t,n,i,s,o;const r=((e=this.session)===null||e===void 0?void 0:e.kernel)||null;if(this._isRestarting){return}this._isRestarting=true;this._isReady=false;this._statusChanged.emit("restarting");try{await((n=(t=this.session)===null||t===void 0?void 0:t.kernel)===null||n===void 0?void 0:n.restart());this._isReady=true}catch(a){console.error(a)}this._isRestarting=false;this._statusChanged.emit(((s=(i=this.session)===null||i===void 0?void 0:i.kernel)===null||s===void 0?void 0:s.status)||"unknown");this._kernelChanged.emit({name:"kernel",oldValue:r,newValue:((o=this.session)===null||o===void 0?void 0:o.kernel)||null})}async changeKernel(e={}){if(this.isDisposed){throw new Error("Disposed")}await this._initStarted.promise;return this._changeKernel(e)}async shutdown(){if(this.isDisposed||!this._initializing){return}await this._initStarted.promise;this._pendingSessionRequest="";this._pendingKernelName=this.noKernelName;return this._shutdownSession()}async initialize(){if(this._initializing){return this._initPromise.promise}this._initializing=true;const e=await this._initialize();if(!e){this._isReady=true;this._ready.resolve(undefined)}if(!this._pendingSessionRequest){this._initStarted.resolve(void 0)}this._initPromise.resolve(e);return e}async _initialize(){const e=this.sessionManager;await e.ready;await e.refreshRunning();const t=(0,d.find)(e.running(),(e=>e.path===this._path));if(t){try{const n=e.connectTo({model:t});this._handleNewSession(n)}catch(n){void this._handleSessionError(n);return Promise.reject(n)}}return await this._startIfNecessary()}async _shutdownSession(){var e;const t=this._session;const n=this._isTerminating;const i=this._isReady;this._isTerminating=true;this._isReady=false;this._statusChanged.emit("terminating");try{await(t===null||t===void 0?void 0:t.shutdown());this._isTerminating=false;t===null||t===void 0?void 0:t.dispose();this._session=null;const e=(t===null||t===void 0?void 0:t.kernel)||null;this._statusChanged.emit("unknown");this._kernelChanged.emit({name:"kernel",oldValue:e,newValue:null});this._sessionChanged.emit({name:"session",oldValue:t,newValue:null})}catch(s){this._isTerminating=n;this._isReady=i;const o=(e=t===null||t===void 0?void 0:t.kernel)===null||e===void 0?void 0:e.status;if(o===undefined){this._statusChanged.emit("unknown")}else{this._statusChanged.emit(o)}throw s}return}async _startIfNecessary(){var e;const t=this.kernelPreference;if(this.isDisposed||((e=this.session)===null||e===void 0?void 0:e.kernel)||t.shouldStart===false||t.canStart===false){return false}return this.startKernel()}async _changeKernel(e={}){if(e.name){this._pendingKernelName=e.name}if(!this._session){this._kernelChanged.emit({name:"kernel",oldValue:null,newValue:null})}if(!this._pendingSessionRequest){this._initStarted.resolve(void 0)}if(this._session&&!this._isTerminating){try{await this._session.changeKernel(e);return this._session.kernel}catch(i){void this._handleSessionError(i);throw i}}const t=l.PathExt.dirname(this._path);const n=this._pendingSessionRequest=l.PathExt.join(t,c.UUID.uuid4());try{this._statusChanged.emit("starting");const t=await this.sessionManager.startNew({path:n,type:this._type,name:this._name,kernel:e});if(this._pendingSessionRequest!==t.path){await t.shutdown();t.dispose();return null}await t.setPath(this._path);await t.setName(this._name);if(this._session&&!this._isTerminating){await this._shutdownSession()}return this._handleNewSession(t)}catch(i){void this._handleSessionError(i);throw i}}_handleNewSession(e){var t,n,i;if(this.isDisposed){throw Error("Disposed")}if(!this._isReady){this._isReady=true;this._ready.resolve(undefined)}if(this._session){this._session.dispose()}this._session=e;this._pendingKernelName="";if(e){this._prevKernelName=(n=(t=e.kernel)===null||t===void 0?void 0:t.name)!==null&&n!==void 0?n:"";e.disposed.connect(this._onSessionDisposed,this);e.propertyChanged.connect(this._onPropertyChanged,this);e.kernelChanged.connect(this._onKernelChanged,this);e.statusChanged.connect(this._onStatusChanged,this);e.connectionStatusChanged.connect(this._onConnectionStatusChanged,this);e.pendingInput.connect(this._onPendingInput,this);e.iopubMessage.connect(this._onIopubMessage,this);e.unhandledMessage.connect(this._onUnhandledMessage,this);if(e.path!==this._path){this._onPropertyChanged(e,"path")}if(e.name!==this._name){this._onPropertyChanged(e,"name")}if(e.type!==this._type){this._onPropertyChanged(e,"type")}}this._sessionChanged.emit({name:"session",oldValue:null,newValue:e});this._kernelChanged.emit({oldValue:null,newValue:(e===null||e===void 0?void 0:e.kernel)||null,name:"kernel"});this._statusChanged.emit(((i=e===null||e===void 0?void 0:e.kernel)===null||i===void 0?void 0:i.status)||"unknown");return(e===null||e===void 0?void 0:e.kernel)||null}async _handleSessionError(e){this._handleNewSession(null);let t="";let n="";try{t=e.traceback;n=e.message}catch(e){}await this._displayKernelError(n,t)}async _displayKernelError(e,t){const n=r.createElement("div",null,e&&r.createElement("pre",null,e),t&&r.createElement("details",{className:"jp-mod-wide"},r.createElement("pre",null,t)));const i=this._dialog=new v({title:this._trans.__("Error Starting Kernel"),body:n,buttons:[v.okButton()]});await i.launch();this._dialog=null}_onSessionDisposed(){if(this._session){const e=this._session;this._session=null;const t=this._session;this._sessionChanged.emit({name:"session",oldValue:e,newValue:t})}}_onPropertyChanged(e,t){switch(t){case"path":this._path=e.path;break;case"name":this._name=e.name;break;case"type":this._type=e.type;break;default:throw new Error(`unrecognized property ${t}`)}this._propertyChanged.emit(t)}_onKernelChanged(e,t){this._kernelChanged.emit(t)}_onStatusChanged(e,t){var n;if(t==="dead"){const t=(n=e.kernel)===null||n===void 0?void 0:n.model;if(t===null||t===void 0?void 0:t.reason){const e=t.traceback||"";void this._displayKernelError(t.reason,e)}}if(this._setBusy){if(t==="busy"){if(!this._busyDisposable){this._busyDisposable=this._setBusy()}}else{if(this._busyDisposable){this._busyDisposable.dispose();this._busyDisposable=null}}}this._statusChanged.emit(t)}_onConnectionStatusChanged(e,t){this._connectionStatusChanged.emit(t)}_onPendingInput(e,t){this._pendingInput=t}_onIopubMessage(e,t){if(t.header.msg_type==="shutdown_reply"){this.session.kernel.removeInputGuard()}this._iopubMessage.emit(t)}_onUnhandledMessage(e,t){this._unhandledMessage.emit(t)}}(function(e){function t(e){const{preference:t}=e;const{shouldStart:n}=t;if(n===false){return null}return w.getDefaultKernel(e)}e.getDefaultKernel=t})(b||(b={}));class y{constructor(e={}){var t;this._translator=(t=e.translator)!==null&&t!==void 0?t:s.nullTranslator}async selectKernel(e){if(e.isDisposed){return Promise.resolve()}const t=this._translator.load("jupyterlab");let n=t.__("Cancel");if(e.hasNoKernel){n=e.kernelDisplayName}const i=[v.cancelButton({label:n}),v.okButton({label:t.__("Select"),ariaLabel:t.__("Select Kernel")})];const s=e.kernelPreference.autoStartDefault;const o=typeof s==="boolean";const r=new v({title:t.__("Select Kernel"),body:new w.KernelSelector(e,this._translator),buttons:i,checkbox:o?{label:t.__("Always start the preferred kernel"),caption:t.__("Remember my choice and always start the preferred kernel"),checked:s}:null});const a=await r.launch();if(e.isDisposed||!a.button.accept){return}if(o&&a.isChecked!==null){e.kernelPreference={...e.kernelPreference,autoStartDefault:a.isChecked}}const l=a.value;if(l===null&&!e.hasNoKernel){return e.shutdown()}if(l){await e.changeKernel(l)}}async restart(e){var t;const n=this._translator.load("jupyterlab");await e.initialize();if(e.isDisposed){throw new Error("session already disposed")}const i=(t=e.session)===null||t===void 0?void 0:t.kernel;if(!i&&e.prevKernelName){await e.changeKernel({name:e.prevKernelName});return true}if(!i){throw new Error("No kernel to restart")}const s=v.warnButton({label:n.__("Restart"),ariaLabel:n.__("Confirm Kernel Restart")});const o=await g({title:n.__("Restart Kernel?"),body:n.__("Do you want to restart the kernel of %1? All variables will be lost.",e.name),buttons:[v.cancelButton({ariaLabel:n.__("Cancel Kernel Restart")}),s]});if(i.isDisposed){return false}if(o.button.accept){await e.restartKernel();return true}return false}}var w;(function(e){class t extends o.Widget{constructor(e,t){super({node:n(e,t)})}getValue(){const e=this.node.querySelector("select");return JSON.parse(e.value)}}e.KernelSelector=t;function n(e,t){t=t||s.nullTranslator;const n=t.load("jupyterlab");const i=document.createElement("div");const o=document.createElement("label");o.textContent=`${n.__("Select kernel for:")} "${e.name}"`;i.appendChild(o);const l=a(e);const d=document.createElement("select");r(d,l,t,!e.hasNoKernel?e.kernelDisplayName:null);i.appendChild(d);return i}function i(e){var t;const{specs:n,preference:i}=e;const{name:s,language:o,canStart:r,autoStartDefault:a}=i;if(!n||r===false){return null}const l=a?n.default:null;if(!s&&!o){return l}for(const c in n.kernelspecs){if(c===s){return s}}if(!o){return l}const d=[];for(const c in n.kernelspecs){const e=(t=n.kernelspecs[c])===null||t===void 0?void 0:t.language;if(o===e){d.push(c)}}if(d.length===1){const e=d[0];console.warn("No exact match found for "+e+", using kernel "+e+" that matches "+"language="+o);return e}return l}e.getDefaultKernel=i;function r(e,t,n,i=null){var o;while(e.firstChild){e.removeChild(e.firstChild)}const{preference:r,sessions:a,specs:l}=t;const{name:u,id:p,language:m,canStart:g,shouldStart:f}=r;n=n||s.nullTranslator;const v=n.load("jupyterlab");if(!l||g===false){e.appendChild(c(n));e.value="null";e.disabled=true;return}e.disabled=false;const _=Object.create(null);const b=Object.create(null);for(const s in l.kernelspecs){const e=l.kernelspecs[s];_[s]=e.display_name;b[s]=e.language}const y=[];if(u&&u in l.kernelspecs){y.push(u)}if(u&&y.length>0&&m){for(const e in l.kernelspecs){if(u!==e&&b[e]===m){y.push(e)}}}if(!y.length){y.push(l.default)}const w=document.createElement("optgroup");w.label=v.__("Start Preferred Kernel");y.sort(((e,t)=>_[e].localeCompare(_[t])));for(const s of y){w.appendChild(d(s,_[s]))}if(w.firstChild){e.appendChild(w)}e.appendChild(c(n));const C=document.createElement("optgroup");C.label=v.__("Start Other Kernel");const x=[];for(const s in l.kernelspecs){if(y.indexOf(s)!==-1){continue}x.push(s)}x.sort(((e,t)=>_[e].localeCompare(_[t])));for(const s of x){C.appendChild(d(s,_[s]))}if(x.length){e.appendChild(C)}if(f===false){e.value="null"}else{let t=0;if(i){t=[...e.options].findIndex((e=>e.text===i));t=Math.max(t,0)}e.selectedIndex=t}if(!a){return}const S=[];const k=[];for(const s of a){if(m&&s.kernel&&b[s.kernel.name]===m&&s.kernel.id!==p){S.push(s)}else if(((o=s.kernel)===null||o===void 0?void 0:o.id)!==p){k.push(s)}}const j=document.createElement("optgroup");j.label=v.__("Use Kernel from Preferred Session");e.appendChild(j);if(S.length){S.sort(((e,t)=>e.path.localeCompare(t.path)));for(const e of S){const t=e.kernel?_[e.kernel.name]:"";j.appendChild(h(e,t,n))}}const M=document.createElement("optgroup");M.label=v.__("Use Kernel from Other Session");e.appendChild(M);if(k.length){k.sort(((e,t)=>e.path.localeCompare(t.path)));for(const e of k){const t=e.kernel?_[e.kernel.name]||e.kernel.name:"";M.appendChild(h(e,t,n))}}}e.populateKernelSelect=r;function a(e){return{specs:e.specsManager.specs,sessions:e.sessionManager.running(),preference:e.kernelPreference}}function d(e,t){const n=document.createElement("option");n.text=t;n.value=JSON.stringify({name:e});return n}function c(e){e=e||s.nullTranslator;const t=e.load("jupyterlab");const n=document.createElement("optgroup");n.label=t.__("Use No Kernel");const i=document.createElement("option");i.text=t.__("No Kernel");i.value="null";n.appendChild(i);return n}function h(e,t,n){var i,o;n=n||s.nullTranslator;const r=n.load("jupyterlab");const a=document.createElement("option");const d=e.name||l.PathExt.basename(e.path);a.text=d;a.value=JSON.stringify({id:(i=e.kernel)===null||i===void 0?void 0:i.id});a.title=`${r.__("Path:")} ${e.path}\n`+`${r.__("Name:")} ${d}\n`+`${r.__("Kernel Name:")} ${t}\n`+`${r.__("Kernel Id:")} ${(o=e.kernel)===null||o===void 0?void 0:o.id}`;return a}})(w||(w={}));var C=n(85176);function x(e){e=e||s.nullTranslator;const t=e.load("jupyterlab");const n={unknown:t.__("Unknown"),starting:t.__("Starting"),idle:t.__("Idle"),busy:t.__("Busy"),terminating:t.__("Terminating"),restarting:t.__("Restarting"),autorestarting:t.__("Autorestarting"),dead:t.__("Dead"),connected:t.__("Connected"),connecting:t.__("Connecting"),disconnected:t.__("Disconnected"),initializing:t.__("Initializing"),"":""};return n}function S(e){const t=e.translator||s.nullTranslator;const n=t.load("jupyterlab");let i="";if(e.status){i=` | ${e.status}`}return a().createElement(C.TextItem,{onClick:e.handleClick,source:`${e.kernelName}${i}`,title:n.__("Change kernel for %1",e.activityName)})}class k extends i.VDomRenderer{constructor(e,t){super(new k.Model(t));this.translator=t||s.nullTranslator;this._handleClick=e.onClick;this.addClass("jp-mod-highlighted")}render(){if(this.model===null){return null}else{return a().createElement(S,{status:this.model.status,kernelName:this.model.kernelName,activityName:this.model.activityName,handleClick:this._handleClick,translator:this.translator})}}}(function(e){class t extends i.VDomModel{constructor(e){super();this._activityName="";this._kernelName="";this._kernelStatus="";this._sessionContext=null;e=e!==null&&e!==void 0?e:s.nullTranslator;this._trans=e.load("jupyterlab");this._statusNames=x(e)}get kernelName(){return this._kernelName}get status(){return this._kernelStatus?this._statusNames[this._kernelStatus]:undefined}get activityName(){return this._activityName}set activityName(e){const t=this._activityName;if(t===e){return}this._activityName=e;this.stateChanged.emit()}get sessionContext(){return this._sessionContext}set sessionContext(e){var t,n,i,s;(t=this._sessionContext)===null||t===void 0?void 0:t.statusChanged.disconnect(this._onKernelStatusChanged,this);(n=this._sessionContext)===null||n===void 0?void 0:n.connectionStatusChanged.disconnect(this._onKernelStatusChanged,this);(i=this._sessionContext)===null||i===void 0?void 0:i.kernelChanged.disconnect(this._onKernelChanged,this);const o=this._getAllState();this._sessionContext=e;this._kernelStatus=e===null||e===void 0?void 0:e.kernelDisplayStatus;this._kernelName=(s=e===null||e===void 0?void 0:e.kernelDisplayName)!==null&&s!==void 0?s:this._trans.__("No Kernel");e===null||e===void 0?void 0:e.statusChanged.connect(this._onKernelStatusChanged,this);e===null||e===void 0?void 0:e.connectionStatusChanged.connect(this._onKernelStatusChanged,this);e===null||e===void 0?void 0:e.kernelChanged.connect(this._onKernelChanged,this);this._triggerChange(o,this._getAllState())}_onKernelStatusChanged(){var e;this._kernelStatus=(e=this._sessionContext)===null||e===void 0?void 0:e.kernelDisplayStatus;this.stateChanged.emit(void 0)}_onKernelChanged(e,t){var n;const i=this._getAllState();this._kernelStatus=(n=this._sessionContext)===null||n===void 0?void 0:n.kernelDisplayStatus;this._kernelName=e.kernelDisplayName;this._triggerChange(i,this._getAllState())}_getAllState(){return[this._kernelName,this._kernelStatus,this._activityName]}_triggerChange(e,t){if(c.JSONExt.deepEqual(e,t)){this.stateChanged.emit(void 0)}}}e.Model=t})(k||(k={}));const j="jp-Toolbar-kernelName";const M="jp-Toolbar-kernelStatus";var E;(function(e){function t(e,t){t=t||s.nullTranslator;const n=t.load("jupyterlab");return new i.ToolbarButton({icon:i.stopIcon,onClick:()=>{var t,n;void((n=(t=e.session)===null||t===void 0?void 0:t.kernel)===null||n===void 0?void 0:n.interrupt())},tooltip:n.__("Interrupt the kernel")})}e.createInterruptButton=t;function n(e,t,n){n=n!==null&&n!==void 0?n:s.nullTranslator;const o=n.load("jupyterlab");return new i.ToolbarButton({icon:i.refreshIcon,onClick:()=>{void(t!==null&&t!==void 0?t:new y({translator:n})).restart(e)},tooltip:o.__("Restart the kernel")})}e.createRestartButton=n;function o(e,t,n){const s=i.ReactWidget.create(r.createElement(I.KernelNameComponent,{sessionContext:e,dialogs:t!==null&&t!==void 0?t:new y({translator:n}),translator:n}));s.addClass("jp-KernelName");return s}e.createKernelNameItem=o;function a(e,t){return new I.KernelStatus(e,t)}e.createKernelStatusItem=a})(E||(E={}));var I;(function(e){function t(e){const t=e.translator||s.nullTranslator;const n=t.load("jupyterlab");const o=()=>{void e.dialogs.selectKernel(e.sessionContext)};return r.createElement(i.UseSignal,{signal:e.sessionContext.kernelChanged,initialSender:e.sessionContext},(e=>r.createElement(i.ToolbarButtonComponent,{className:j,onClick:o,tooltip:n.__("Switch kernel"),label:e===null||e===void 0?void 0:e.kernelDisplayName})))}e.KernelNameComponent=t;class n extends o.Widget{constructor(e,t){super();this.translator=t||s.nullTranslator;this._trans=this.translator.load("jupyterlab");this.addClass(M);this._statusNames=x(this.translator);this._onStatusChanged(e);e.statusChanged.connect(this._onStatusChanged,this);e.connectionStatusChanged.connect(this._onStatusChanged,this)}_onStatusChanged(e){if(this.isDisposed){return}const t=e.kernelDisplayStatus;const n={container:this.node,title:this._trans.__("Kernel %1",this._statusNames[t]||t),stylesheet:"toolbarButton",alignSelf:"normal",height:"24px"};i.LabIcon.remove(this.node);if(t==="busy"||t==="starting"||t==="terminating"||t==="restarting"||t==="initializing"){i.circleIcon.element(n)}else if(t==="connecting"||t==="disconnected"||t==="unknown"){i.offlineBoltIcon.element(n)}else{i.circleEmptyIcon.element(n)}}}e.KernelStatus=n})(I||(I={}));var T;(function(e){function t(){return D.instance}e.getInstance=t;function n(e){D.instance=e}e.setInstance=n;function i(e){const t=document.body;const n=i=>{const s=i.clipboardData||window.clipboardData;if(typeof e==="string"){s.setData("text",e)}else{e.types().map((t=>{s.setData(t,e.getData(t))}))}i.preventDefault();t.removeEventListener("copy",n)};t.addEventListener("copy",n);s(t)}e.copyToSystem=i;function s(e,t="copy"){let n=window.getSelection();const i=[];for(let o=0,r=(n===null||n===void 0?void 0:n.rangeCount)||0;o{if(this.isAttached&&this.isVisible){this.hideAndReset()}}));this.node.tabIndex=0}get palette(){return this._commandPalette}set palette(e){this._commandPalette=e;if(!this.searchIconGroup){this._commandPalette.inputNode.insertAdjacentElement("afterend",this.createSearchIconGroup())}this.addWidget(e);this.hideAndReset()}attach(){o.Widget.attach(this,document.body)}detach(){o.Widget.detach(this)}hideAndReset(){this.hide();this._commandPalette.inputNode.value="";this._commandPalette.refresh()}handleEvent(e){switch(e.type){case"keydown":this._evtKeydown(e);break;case"blur":{if(this.node.contains(e.target)&&!this.node.contains(e.relatedTarget)){e.stopPropagation();this.hideAndReset()}break}case"contextmenu":e.preventDefault();e.stopPropagation();break;default:break}}get searchIconGroup(){return this._commandPalette.node.getElementsByClassName(R)[0]}createSearchIconGroup(){const e=document.createElement("div");e.classList.add(R);i.searchIcon.render(e);return e}onAfterAttach(e){this.node.addEventListener("keydown",this,true);this.node.addEventListener("contextmenu",this,true)}onAfterDetach(e){this.node.removeEventListener("keydown",this,true);this.node.removeEventListener("contextmenu",this,true)}onBeforeHide(e){document.removeEventListener("blur",this,true)}onAfterShow(e){document.addEventListener("blur",this,true)}onActivateRequest(e){if(this.isAttached){this.show();this._commandPalette.activate()}}_evtKeydown(e){switch(e.keyCode){case 27:e.stopPropagation();e.preventDefault();this.hideAndReset();break;default:break}}}var O=n(36044);var B;(function(e){function t(e,t,n){return d.ArrayExt.findFirstIndex(e,(e=>O.ElementExt.hitTest(e,t,n)))}e.hitTestNodes=t;function n(e,t){return e.querySelector(`.${t}`)}e.findElement=n;function i(e,t){return e.getElementsByClassName(t)}e.findElements=i;function s(){return`id-${c.UUID.uuid4()}`}e.createDomID=s})(B||(B={}));const F="jp-Input-Dialog";const z="jp-Input-Boolean-Dialog";var H;(function(e){function t(e){return g({...e,body:new V(e),buttons:[v.cancelButton({label:e.cancelLabel}),v.okButton({label:e.okLabel})],focusNodeSelector:"input"})}e.getBoolean=t;function n(e){return g({...e,body:new U(e),buttons:[v.cancelButton({label:e.cancelLabel}),v.okButton({label:e.okLabel})],focusNodeSelector:"input"})}e.getNumber=n;function i(e){return g({...e,body:new K(e),buttons:[v.cancelButton({label:e.cancelLabel}),v.okButton({label:e.okLabel})],focusNodeSelector:e.editable?"input":"select"})}e.getItem=i;function s(e){return g({...e,body:new J(e),buttons:[v.cancelButton({label:e.cancelLabel}),v.okButton({label:e.okLabel})]})}e.getMultipleItems=s;function o(e){return g({...e,body:new $(e),buttons:[v.cancelButton({label:e.cancelLabel}),v.okButton({label:e.okLabel})],focusNodeSelector:"input"})}e.getText=o;function r(e){return g({...e,body:new q(e),buttons:[v.cancelButton({label:e.cancelLabel}),v.okButton({label:e.okLabel})],focusNodeSelector:"input"})}e.getPassword=r})(H||(H={}));class W extends o.Widget{constructor(e){super();this.addClass(F);this._input=document.createElement("input");this._input.classList.add("jp-mod-styled");this._input.id="jp-dialog-input-id";if(e!==undefined){const t=document.createElement("label");t.textContent=e;t.htmlFor=this._input.id;this.node.appendChild(t)}this.node.appendChild(this._input)}}class V extends W{constructor(e){super(e.label);this.addClass(z);this._input.type="checkbox";this._input.checked=e.value?true:false}getValue(){return this._input.checked}}class U extends W{constructor(e){super(e.label);this._input.type="number";this._input.value=e.value?e.value.toString():"0"}getValue(){if(this._input.value){return Number(this._input.value)}else{return Number.NaN}}}class $ extends W{constructor(e){var t;super(e.label);this._input.type="text";this._input.value=e.text?e.text:"";if(e.placeholder){this._input.placeholder=e.placeholder}this._initialSelectionRange=Math.min(this._input.value.length,Math.max(0,(t=e.selectionRange)!==null&&t!==void 0?t:this._input.value.length))}onAfterAttach(e){super.onAfterAttach(e);if(this._initialSelectionRange>0&&this._input.value){this._input.setSelectionRange(0,this._initialSelectionRange)}}getValue(){return this._input.value}}class q extends W{constructor(e){super(e.label);this._input.type="password";this._input.value=e.text?e.text:"";if(e.placeholder){this._input.placeholder=e.placeholder}}onAfterAttach(e){super.onAfterAttach(e);if(this._input.value){this._input.select()}}getValue(){return this._input.value}}class K extends W{constructor(e){super(e.label);this._editable=e.editable||false;let t=e.current||0;let n;if(typeof t==="number"){n=Math.max(0,Math.min(t,e.items.length-1));t=""}this._list=document.createElement("select");e.items.forEach(((e,i)=>{const s=document.createElement("option");if(i===n){s.selected=true;t=e}s.value=e;s.textContent=e;this._list.appendChild(s)}));if(e.editable){const n=document.createElement("datalist");n.id="input-dialog-items";n.appendChild(this._list);this._input.type="list";this._input.value=t;this._input.setAttribute("list",n.id);if(e.placeholder){this._input.placeholder=e.placeholder}this.node.appendChild(n)}else{this._input.remove();this.node.appendChild(this._list)}}getValue(){if(this._editable){return this._input.value}else{return this._list.value}}}class J extends W{constructor(e){super(e.label);let t=e.defaults||[];this._list=document.createElement("select");this._list.setAttribute("multiple","");e.items.forEach((e=>{const t=document.createElement("option");t.value=e;t.textContent=e;this._list.appendChild(t)}));this._input.remove();this.node.appendChild(this._list);const n=this._list.options;for(let i=0;i{e.onload=()=>t()}))}function d(){return new Promise((e=>{const t=()=>{document.removeEventListener("mousemove",t,true);document.removeEventListener("mousedown",t,true);document.removeEventListener("keydown",t,true);e()};document.addEventListener("mousemove",t,true);document.addEventListener("mousedown",t,true);document.addEventListener("keydown",t,true)}))}function c(e){const t=e.document.execCommand("print",false);if(!t){e.print()}}})(G||(G={}));const Y=true;class X extends o.Widget{constructor(e){super(e);this._changeGuard=false;this._spinner=new i.Spinner;this._isRevealed=false;this._evtMouseDown=()=>{if(!this.node.contains(document.activeElement)){this._focusContent()}};this.addClass("jp-MainAreaWidget");this.addClass("jp-MainAreaWidget-ContainStrict");this.id=B.createDomID();const t=(e.translator||s.nullTranslator).load("jupyterlab");const n=this._content=e.content;n.node.setAttribute("role","region");n.node.setAttribute("aria-label",t.__("notebook content"));const r=this._toolbar=e.toolbar||new i.ReactiveToolbar;r.node.setAttribute("role","navigation");r.node.setAttribute("aria-label",t.__("notebook actions"));const a=this._contentHeader=e.contentHeader||new o.BoxPanel({direction:"top-to-bottom",spacing:0});const l=this.layout=new o.BoxLayout({spacing:0});l.direction="top-to-bottom";o.BoxLayout.setStretch(r,0);o.BoxLayout.setStretch(a,0);o.BoxLayout.setStretch(n,1);l.addWidget(r);l.addWidget(a);l.addWidget(n);if(!n.id){n.id=B.createDomID()}n.node.tabIndex=-1;this._updateTitle();n.title.changed.connect(this._updateTitle,this);this.title.closable=true;this.title.changed.connect(this._updateContentTitle,this);if(e.reveal){this.node.appendChild(this._spinner.node);this._revealed=e.reveal.then((()=>{if(n.isDisposed){this.dispose();return}n.disposed.connect((()=>this.dispose()));const e=document.activeElement===this._spinner.node;this._disposeSpinner();this._isRevealed=true;if(e){this._focusContent()}})).catch((e=>{const t=new o.Widget;t.addClass("jp-MainAreaWidget-error");const i=document.createElement("pre");i.textContent=String(e);t.node.appendChild(i);o.BoxLayout.setStretch(t,1);this._disposeSpinner();n.dispose();this._content=null;r.dispose();this._toolbar=null;l.addWidget(t);this._isRevealed=true;throw t}))}else{this._spinner.dispose();this.removeClass("jp-MainAreaWidget-ContainStrict");n.disposed.connect((()=>this.dispose()));this._isRevealed=true;this._revealed=Promise.resolve(undefined)}}[G.symbol](){if(!this._content){return null}return G.getPrintFunction(this._content)}get content(){return this._content}get toolbar(){return this._toolbar}get contentHeader(){return this._contentHeader}get isRevealed(){return this._isRevealed}get revealed(){return this._revealed}onActivateRequest(e){if(this._isRevealed){this._focusContent()}else{this._spinner.node.focus()}}onAfterAttach(e){super.onAfterAttach(e);this.node.addEventListener("mousedown",this._evtMouseDown,Y)}onBeforeDetach(e){this.node.removeEventListener("mousedown",this._evtMouseDown,Y);super.onBeforeDetach(e)}onCloseRequest(e){this.dispose()}onUpdateRequest(e){if(this._content){u.MessageLoop.sendMessage(this._content,e)}}_disposeSpinner(){this.node.removeChild(this._spinner.node);this._spinner.dispose();this.removeClass("jp-MainAreaWidget-ContainStrict")}_updateTitle(){if(this._changeGuard||!this.content){return}this._changeGuard=true;const e=this.content;this.title.label=e.title.label;this.title.mnemonic=e.title.mnemonic;this.title.icon=e.title.icon;this.title.iconClass=e.title.iconClass;this.title.iconLabel=e.title.iconLabel;this.title.caption=e.title.caption;this.title.className=e.title.className;this.title.dataset=e.title.dataset;this._changeGuard=false}_updateContentTitle(){if(this._changeGuard||!this.content){return}this._changeGuard=true;const e=this.content;e.title.label=this.title.label;e.title.mnemonic=this.title.mnemonic;e.title.icon=this.title.icon;e.title.iconClass=this.title.iconClass;e.title.iconLabel=this.title.iconLabel;e.title.caption=this.title.caption;e.title.className=this.title.className;e.title.dataset=this.title.dataset;this._changeGuard=false}_focusContent(){if(!this.content){return}if(!this.content.node.contains(document.activeElement)){this.content.node.focus()}this.content.activate()}}var Q;(function(e){function t(e,t){return e.filter((e=>!e.disabled)).sort(((e,t)=>{var n,i;return((n=e.rank)!==null&&n!==void 0?n:Infinity)-((i=t.rank)!==null&&i!==void 0?i:Infinity)})).map((e=>n(e,t)))}e.createMenus=t;function n(e,t){var n,s;const r=t(e);r.id=e.id;if(!r.title.label){r.title.label=(n=e.label)!==null&&n!==void 0?n:l.Text.titleCase(r.id.trim())}if(e.icon){r.title.icon=i.LabIcon.resolve({icon:e.icon})}if(e.mnemonic!==undefined){r.title.mnemonic=e.mnemonic}(s=e.items)===null||s===void 0?void 0:s.filter((e=>!e.disabled)).sort(((e,t)=>{var n,i;return((n=e.rank)!==null&&n!==void 0?n:Infinity)-((i=t.rank)!==null&&i!==void 0?i:Infinity)})).map((e=>{o(e,r,t)}));return r}function s(e,t,i){const{submenu:s,...o}=e;t.addItem({...o,submenu:s?n(s,i):null})}e.addContextItem=s;function o(e,t,i){const{submenu:s,...o}=e;t.addItem({...o,submenu:s?n(s,i):null})}function r(e,t,i){const s=[];t.forEach((t=>{const o=e.find((e=>e.id===t.id));if(o){a(t,o,i)}else{if(!t.disabled){s.push(n(t,i))}}}));e.push(...s);return s}e.updateMenus=r;function a(e,t,n){var i;if(e.disabled){t.dispose()}else{(i=e.items)===null||i===void 0?void 0:i.forEach((e=>{var i,s;const r=t===null||t===void 0?void 0:t.items.find(((t,n)=>{var i,s,o;return t.type===e.type&&t.command===((i=e.command)!==null&&i!==void 0?i:"")&&((s=t.submenu)===null||s===void 0?void 0:s.id)===((o=e.submenu)===null||o===void 0?void 0:o.id)}));if(r&&e.type!=="separator"){if(e.disabled){t.removeItem(r)}else{switch((i=e.type)!==null&&i!==void 0?i:"command"){case"command":if(e.command){if(!c.JSONExt.deepEqual(r.args,(s=e.args)!==null&&s!==void 0?s:{})){o(e,t,n)}}break;case"submenu":if(e.submenu){a(e.submenu,r.submenu,n)}}}}else{o(e,t,n)}}))}}})(Q||(Q={}));class ee{constructor(){this._isDisposed=false;this._queue=[];this._changed=new h.Signal(this)}get changed(){return this._changed}get count(){return this._queue.length}get isDisposed(){return this._isDisposed}get notifications(){return this._queue.slice()}dismiss(e){if(typeof e==="undefined"){const e=this._queue.slice();this._queue.length=0;for(const t of e){this._changed.emit({type:"removed",notification:t})}}else{const t=this._queue.findIndex((t=>t.id===e));if(t>-1){const e=this._queue.splice(t,1)[0];this._changed.emit({type:"removed",notification:e})}}}dispose(){if(this._isDisposed){return}this._isDisposed=true;h.Signal.clearData(this)}has(e){return this._queue.findIndex((t=>t.id===e))>-1}notify(e,t,n){const i=Date.now();const{progress:s,...o}=n;const r=Object.freeze({id:c.UUID.uuid4(),createdAt:i,modifiedAt:i,message:e,type:t,options:{autoClose:0,progress:typeof s==="number"?Math.min(Math.max(0,s),1):s,...o}});this._queue.unshift(r);this._changed.emit({type:"added",notification:r});return r.id}update(e){const{id:t,message:n,actions:i,autoClose:s,data:o,progress:r,type:a}=e;const l=typeof r==="number"?Math.min(Math.max(0,r),1):r;const d=this._queue.findIndex((e=>e.id===t));if(d>-1){const e=this._queue[d];const t=Object.freeze({...e,message:n!==null&&n!==void 0?n:e.message,type:a!==null&&a!==void 0?a:e.type,options:{actions:i!==null&&i!==void 0?i:e.options.actions,autoClose:s!==null&&s!==void 0?s:e.options.autoClose,data:o!==null&&o!==void 0?o:e.options.data,progress:l!==null&&l!==void 0?l:e.options.progress},modifiedAt:Date.now()});this._queue.splice(d,1);this._queue.unshift(t);this._changed.emit({type:"updated",notification:t});return true}return false}}var te;(function(e){e.manager=new ee;function t(t){e.manager.dismiss(t)}e.dismiss=t;function n(t,n="default",i={}){return e.manager.notify(t,n,i)}e.emit=n;function i(t,n={}){return e.manager.notify(t,"error",n)}e.error=i;function s(t,n={}){return e.manager.notify(t,"info",n)}e.info=s;function o(t,n){var i;const{pending:s,error:o,success:r}=n;const a=e.manager.notify(s.message,"in-progress",(i=s.options)!==null&&i!==void 0?i:{});t.then((t=>{var n,i,s;e.manager.update({id:a,message:r.message(t,(n=r.options)===null||n===void 0?void 0:n.data),type:"success",...r.options,data:(s=(i=r.options)===null||i===void 0?void 0:i.data)!==null&&s!==void 0?s:t})})).catch((t=>{var n,i,s;e.manager.update({id:a,message:o.message(t,(n=o.options)===null||n===void 0?void 0:n.data),type:"error",...o.options,data:(s=(i=o.options)===null||i===void 0?void 0:i.data)!==null&&s!==void 0?s:t})}));return a}e.promise=o;function r(t,n={}){return e.manager.notify(t,"success",n)}e.success=r;function a(t){return e.manager.update(t)}e.update=a;function l(t,n={}){return e.manager.notify(t,"warning",n)}e.warning=l})(te||(te={}));const ne=4;function ie(e){return a().createElement(C.GroupItem,{spacing:ne,onClick:e.handleClick},a().createElement(C.GroupItem,{spacing:ne},a().createElement(C.TextItem,{source:e.terminals}),a().createElement(i.terminalIcon.react,{left:"1px",top:"3px",stylesheet:"statusBar"})),a().createElement(C.GroupItem,{spacing:ne},a().createElement(C.TextItem,{source:e.sessions}),a().createElement(i.kernelIcon.react,{top:"2px",stylesheet:"statusBar"})))}class se extends i.VDomRenderer{constructor(e){super(new se.Model);this._serviceManager=e.serviceManager;this._handleClick=e.onClick;this.translator=e.translator||s.nullTranslator;this._trans=this.translator.load("jupyterlab");this._serviceManager.sessions.runningChanged.connect(this._onSessionsRunningChanged,this);this._serviceManager.terminals.runningChanged.connect(this._onTerminalsRunningChanged,this);this.addClass("jp-mod-highlighted")}render(){if(!this.model){return null}this.title.caption=this._trans.__("%1 Terminals, %2 Kernel sessions",this.model.terminals,this.model.sessions);return a().createElement(ie,{sessions:this.model.sessions,terminals:this.model.terminals,handleClick:this._handleClick})}dispose(){super.dispose();this._serviceManager.sessions.runningChanged.disconnect(this._onSessionsRunningChanged,this);this._serviceManager.terminals.runningChanged.disconnect(this._onTerminalsRunningChanged,this)}_onSessionsRunningChanged(e,t){this.model.sessions=t.length}_onTerminalsRunningChanged(e,t){this.model.terminals=t.length}}(function(e){class t extends i.VDomModel{constructor(){super(...arguments);this._terminals=0;this._sessions=0}get sessions(){return this._sessions}set sessions(e){const t=this._sessions;this._sessions=e;if(t!==this._sessions){this.stateChanged.emit(void 0)}}get terminals(){return this._terminals}set terminals(e){const t=this._terminals;this._terminals=e;if(t!==this._terminals){this.stateChanged.emit(void 0)}}}e.Model=t})(se||(se={}));var oe=n(91036);var re=n.n(oe);class ae{static reg(e){return new RegExp("^"+e+"$","i")}}ae.N={integer:`[+-]?[0-9]+`,integer_pos:`[+]?[0-9]+`,integer_zero_ff:`([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])`,number:`[+-]?([0-9]*[.])?[0-9]+(e-?[0-9]*)?`,number_pos:`[+]?([0-9]*[.])?[0-9]+(e-?[0-9]*)?`,number_zero_hundred:`[+]?(([0-9]|[1-9][0-9])([.][0-9]+)?|100)`,number_zero_one:`[+]?(1([.][0]+)?|0?([.][0-9]+)?)`};ae.B={angle:`(${ae.N.number}(deg|rad|grad|turn)|0)`,frequency:`${ae.N.number}(Hz|kHz)`,ident:String.raw`-?([_a-z]|[\xA0-\xFF]|\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])([_a-z0-9-]|[\xA0-\xFF]|\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])*`,len_or_perc:`(0|${ae.N.number}(px|em|rem|ex|in|cm|mm|pt|pc|%))`,length:`(${ae.N.number}(px|em|rem|ex|in|cm|mm|pt|pc)|0)`,length_pos:`(${ae.N.number_pos}(px|em|rem|ex|in|cm|mm|pt|pc)|0)`,percentage:`${ae.N.number}%`,percentage_pos:`${ae.N.number_pos}%`,percentage_zero_hundred:`${ae.N.number_zero_hundred}%`,string:String.raw`(\"([^\n\r\f\\"]|\\\n|\r\n|\r|\f|\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])*\")|(\'([^\n\r\f\\']|\\\n|\r\n|\r|\f|\\[0-9a-f]{1,6}(\r\n|[ \t\r\n\f])?|\\[^\r\n\f0-9a-f])*\')`,time:`${ae.N.number}(s|ms)`,url:`url\\(.*?\\)`,z_index:`[+-]?[0-9]{1,7}`};ae.A={absolute_size:`xx-small|x-small|small|medium|large|x-large|xx-large`,attachment:`scroll|fixed|local`,bg_origin:`border-box|padding-box|content-box`,border_style:`none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset`,box:`border-box|padding-box|content-box`,display_inside:`auto|block|table|flex|grid`,display_outside:`block-level|inline-level|none|table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption`,ending_shape:`circle|ellipse`,generic_family:`serif|sans-serif|cursive|fantasy|monospace`,generic_voice:`male|female|child`,relative_size:`smaller|larger`,repeat_style:`repeat-x|repeat-y|((?:repeat|space|round|no-repeat)(?:\\s*(?:repeat|space|round|no-repeat))?)`,side_or_corner:`(left|right)?\\s*(top|bottom)?`,single_animation_direction:`normal|reverse|alternate|alternate-reverse`,single_animation_fill_mode:`none|forwards|backwards|both`,single_animation_play_state:`running|paused`};ae._COLOR={hex:`\\#(0x)?[0-9a-f]+`,name:`aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|transparent|violet|wheat|white|whitesmoke|yellow|yellowgreen`,rgb:String.raw`rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)`,rgba:String.raw`rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(${ae.N.integer_zero_ff}|${ae.N.number_zero_one}|${ae.B.percentage_zero_hundred})\s*\)`};ae._C={alpha:`${ae.N.integer_zero_ff}|${ae.N.number_zero_one}|${ae.B.percentage_zero_hundred}`,alphavalue:ae.N.number_zero_one,bg_position:`((${ae.B.len_or_perc}|left|center|right|top|bottom)\\s*){1,4}`,bg_size:`(${ae.B.length_pos}|${ae.B.percentage}|auto){1,2}|cover|contain`,border_width:`thin|medium|thick|${ae.B.length}`,bottom:`${ae.B.length}|auto`,color:`${ae._COLOR.hex}|${ae._COLOR.rgb}|${ae._COLOR.rgba}|${ae._COLOR.name}`,color_stop_length:`(${ae.B.len_or_perc}\\s*){1,2}`,linear_color_hint:`${ae.B.len_or_perc}`,family_name:`${ae.B.string}|(${ae.B.ident}\\s*)+`,image_decl:ae.B.url,left:`${ae.B.length}|auto`,loose_quotable_words:`(${ae.B.ident})+`,margin_width:`${ae.B.len_or_perc}|auto`,padding_width:`${ae.B.length_pos}|${ae.B.percentage_pos}`,page_url:ae.B.url,position:`((${ae.B.len_or_perc}|left|center|right|top|bottom)\\s*){1,4}`,right:`${ae.B.length}|auto`,shadow:"",size:`closest-side|farthest-side|closest-corner|farthest-corner|${ae.B.length}|(${ae.B.len_or_perc})\\s+(${ae.B.len_or_perc})`,top:`${ae.B.length}|auto`};ae._C1={image_list:`image\\(\\s*(${ae.B.url})*\\s*(${ae.B.url}|${ae._C.color})\\s*\\)`,linear_color_stop:`(${ae._C.color})(\\s*${ae._C.color_stop_length})?`,shadow:`((${ae._C.color})\\s+((${ae.B.length})\\s*){2,4}(s+inset)?)|((inset\\s+)?((${ae.B.length})\\s*){2,4}\\s*(${ae._C.color})?)`};ae._C2={color_stop_list:`((${ae._C1.linear_color_stop})(\\s*(${ae._C.linear_color_hint}))?\\s*,\\s*)+(${ae._C1.linear_color_stop})`,shape:`rect\\(\\s*(${ae._C.top})\\s*,\\s*(${ae._C.right})\\s*,\\s*(${ae._C.bottom})\\s*,\\s*(${ae._C.left})\\s*\\)`};ae._C3={linear_gradient:`linear-gradient\\((((${ae.B.angle})|to\\s+(${ae.A.side_or_corner}))\\s*,\\s*)?\\s*(${ae._C2.color_stop_list})\\s*\\)`,radial_gradient:`radial-gradient\\(((((${ae.A.ending_shape})|(${ae._C.size}))\\s*)*\\s*(at\\s+${ae._C.position})?\\s*,\\s*)?\\s*(${ae._C2.color_stop_list})\\s*\\)`};ae._C4={image:`${ae.B.url}|${ae._C3.linear_gradient}|${ae._C3.radial_gradient}|${ae._C1.image_list}`,bg_image:`(${ae.B.url}|${ae._C3.linear_gradient}|${ae._C3.radial_gradient}|${ae._C1.image_list})|none`};ae.C={...ae._C,...ae._C1,...ae._C2,...ae._C3,...ae._C4};ae.AP={border_collapse:`collapse|separate`,box:`normal|none|contents`,box_sizing:`content-box|padding-box|border-box`,caption_side:`top|bottom`,clear:`none|left|right|both`,direction:`ltr|rtl`,empty_cells:`show|hide`,float:`left|right|none`,font_stretch:`normal|wider|narrower|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded`,font_style:`normal|italic|oblique`,font_variant:`normal|small-caps`,font_weight:`normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900`,list_style_position:`inside|outside`,list_style_type:`disc|circle|square|decimal|decimal-leading-zero|lower-roman|upper-roman|lower-greek|lower-latin|upper-latin|armenian|georgian|lower-alpha|upper-alpha|none`,overflow:`visible|hidden|scroll|auto`,overflow_wrap:`normal|break-word`,overflow_x:`visible|hidden|scroll|auto|no-display|no-content`,page_break_after:`auto|always|avoid|left|right`,page_break_before:`auto|always|avoid|left|right`,page_break_inside:`avoid|auto`,position:`static|relative|absolute`,resize:`none|both|horizontal|vertical`,speak:`normal|none|spell-out`,speak_header:`once|always`,speak_numeral:`digits|continuous`,speak_punctuation:`code|none`,table_layout:`auto|fixed`,text_align:`left|right|center|justify`,text_decoration:`none|((underline|overline|line-through|blink)\\s*)+`,text_transform:`capitalize|uppercase|lowercase|none`,text_wrap:`normal|unrestricted|none|suppress`,unicode_bidi:`normal|embed|bidi-override`,visibility:`visible|hidden|collapse`,white_space:`normal|pre|nowrap|pre-wrap|pre-line`,word_break:`normal|keep-all|break-all`};ae._CP={background_attachment:`${ae.A.attachment}(,\\s*${ae.A.attachment})*`,background_color:ae.C.color,background_origin:`${ae.A.box}(,\\s*${ae.A.box})*`,background_repeat:`${ae.A.repeat_style}(,\\s*${ae.A.repeat_style})*`,border:`((${ae.C.border_width}|${ae.A.border_style}|${ae.C.color})\\s*){1,3}`,border_radius:`((${ae.B.len_or_perc})\\s*){1,4}(\\/\\s*((${ae.B.len_or_perc})\\s*){1,4})?`,border_spacing:`${ae.B.length}\\s*(${ae.B.length})?`,border_top_color:ae.C.color,border_top_style:ae.A.border_style,border_width:`((${ae.C.border_width})\\s*){1,4}`,color:ae.C.color,cursor:`(${ae.B.url}(\\s*,\\s*)?)*(auto|crosshair|default|pointer|move|e-resize|ne-resize|nw-resize|n-resize|se-resize|sw-resize|s-resize|w-resize|text|wait|help|progress|all-scroll|col-resize|hand|no-drop|not-allowed|row-resize|vertical-text)`,display:`inline|block|list-item|run-in|inline-list-item|inline-block|table|inline-table|table-cell|table-caption|flex|inline-flex|grid|inline-grid|${ae.A.display_inside}|${ae.A.display_outside}|inherit|inline-box|inline-stack`,display_outside:ae.A.display_outside,elevation:`${ae.B.angle}|below|level|above|higher|lower`,font_family:`(${ae.C.family_name}|${ae.A.generic_family})(,\\s*(${ae.C.family_name}|${ae.A.generic_family}))*`,height:`${ae.B.length}|${ae.B.percentage}|auto`,letter_spacing:`normal|${ae.B.length}`,list_style_image:`${ae.C.image}|none`,margin_right:ae.C.margin_width,max_height:`${ae.B.length_pos}|${ae.B.percentage_pos}|none|auto`,min_height:`${ae.B.length_pos}|${ae.B.percentage_pos}|auto`,opacity:ae.C.alphavalue,outline_color:`${ae.C.color}|invert`,outline_width:ae.C.border_width,padding:`((${ae.C.padding_width})\\s*){1,4}`,padding_top:ae.C.padding_width,pitch_range:ae.N.number,right:`${ae.B.length}|${ae.B.percentage}|auto`,stress:ae.N.number,text_indent:`${ae.B.length}|${ae.B.percentage}`,text_shadow:`none|${ae.C.shadow}(,\\s*(${ae.C.shadow}))*`,volume:`${ae.N.number_pos}|${ae.B.percentage_pos}|silent|x-soft|soft|medium|loud|x-loud`,word_wrap:ae.AP.overflow_wrap,zoom:`normal|${ae.N.number_pos}|${ae.B.percentage_pos}`,backface_visibility:ae.AP.visibility,background_clip:`${ae.A.box}(,\\s*(${ae.A.box}))*`,background_position:`${ae.C.bg_position}(,\\s*(${ae.C.bg_position}))*`,border_bottom_color:ae.C.color,border_bottom_style:ae.A.border_style,border_color:`((${ae.C.color})\\s*){1,4}`,border_left_color:ae.C.color,border_right_color:ae.C.color,border_style:`((${ae.A.border_style})\\s*){1,4}`,border_top_left_radius:`(${ae.B.length}|${ae.B.percentage})(\\s*(${ae.B.length}|${ae.B.percentage}))?`,border_top_width:ae.C.border_width,box_shadow:`none|${ae.C.shadow}(,\\s*(${ae.C.shadow}))*`,clip:`${ae.C.shape}|auto`,display_inside:ae.A.display_inside,font_size:`${ae.A.absolute_size}|${ae.A.relative_size}|${ae.B.length_pos}|${ae.B.percentage_pos}`,line_height:`normal|${ae.N.number_pos}|${ae.B.length_pos}|${ae.B.percentage_pos}`,margin_left:ae.C.margin_width,max_width:`${ae.B.length_pos}|${ae.B.percentage_pos}|none|auto`,outline_style:ae.A.border_style,padding_bottom:ae.C.padding_width,padding_right:ae.C.padding_width,perspective:`none|${ae.B.length}`,richness:ae.N.number,text_overflow:`((clip|ellipsis|${ae.B.string})\\s*){1,2}`,top:`${ae.B.length}|${ae.B.percentage}|auto`,width:`${ae.B.length_pos}|${ae.B.percentage_pos}|auto`,z_index:`auto|${ae.B.z_index}`,background:`(((${ae.C.bg_position}\\s*(\\/\\s*${ae.C.bg_size})?)|(${ae.A.repeat_style})|(${ae.A.attachment})|(${ae.A.bg_origin})|(${ae.C.bg_image})|(${ae.C.color}))\\s*)+`,background_size:`${ae.C.bg_size}(,\\s*${ae.C.bg_size})*`,border_bottom_left_radius:`(${ae.B.length}|${ae.B.percentage})(\\s*(${ae.B.length}|${ae.B.percentage}))?`,border_bottom_width:ae.C.border_width,border_left_style:ae.A.border_style,border_right_style:ae.A.border_style,border_top:`((${ae.C.border_width}|${ae.A.border_style}|${ae.C.color})\\s*){1,3}`,bottom:`${ae.B.len_or_perc}|auto`,list_style:`((${ae.AP.list_style_type}|${ae.AP.list_style_position}|${ae.C.image}|none})\\s*){1,3}`,margin_top:ae.C.margin_width,outline:`((${ae.C.color}|invert|${ae.A.border_style}|${ae.C.border_width})\\s*){1,3}`,overflow_y:ae.AP.overflow_x,pitch:`${ae.B.frequency}|x-low|low|medium|high|x-high`,vertical_align:`baseline|sub|super|top|text-top|middle|bottom|text-bottom|${ae.B.len_or_perc}`,word_spacing:`normal|${ae.B.length}`,background_image:`${ae.C.bg_image}(,\\s*${ae.C.bg_image})*`,border_bottom_right_radius:`(${ae.B.length}|${ae.B.percentage})(\\s*(${ae.B.length}|${ae.B.percentage}))?`,border_left_width:ae.C.border_width,border_right_width:ae.C.border_width,left:`${ae.B.len_or_perc}|auto`,margin_bottom:ae.C.margin_width,pause_after:`${ae.B.time}|${ae.B.percentage}`,speech_rate:`${ae.N.number}|x-slow|slow|medium|fast|x-fast|faster|slower`,transition_duration:`${ae.B.time}(,\\s*${ae.B.time})*`,border_bottom:`((${ae.C.border_width}|${ae.A.border_style}|${ae.C.color})\\s*){1,3}`,border_right:`((${ae.C.border_width}|${ae.A.border_style}|${ae.C.color})\\s*){1,3}`,margin:`((${ae.C.margin_width})\\s*){1,4}`,padding_left:ae.C.padding_width,border_left:`((${ae.C.border_width}|${ae.A.border_style}|${ae.C.color})\\s*){1,3}`,quotes:`(${ae.B.string}\\s*${ae.B.string})+|none`,border_top_right_radius:`(${ae.B.length}|${ae.B.percentage})(\\s*(${ae.B.length}|${ae.B.percentage}))?`,min_width:`${ae.B.length_pos}|${ae.B.percentage_pos}|auto`};ae._CP1={font:`(((((${ae.AP.font_style}|${ae.AP.font_variant}|${ae.AP.font_weight})\\s*){1,3})?\\s*(${ae._CP.font_size})\\s*(\\/\\s*(${ae._CP.line_height}))?\\s+(${ae._CP.font_family}))|caption|icon|menu|message-box|small-caption|status-bar)`};ae.CP={...ae._CP,...ae._CP1};ae.BORDER_COLLAPSE=ae.reg(ae.AP.border_collapse);ae.BOX=ae.reg(ae.AP.box);ae.BOX_SIZING=ae.reg(ae.AP.box_sizing);ae.CAPTION_SIDE=ae.reg(ae.AP.caption_side);ae.CLEAR=ae.reg(ae.AP.clear);ae.DIRECTION=ae.reg(ae.AP.direction);ae.EMPTY_CELLS=ae.reg(ae.AP.empty_cells);ae.FLOAT=ae.reg(ae.AP.float);ae.FONT_STRETCH=ae.reg(ae.AP.font_stretch);ae.FONT_STYLE=ae.reg(ae.AP.font_style);ae.FONT_VARIANT=ae.reg(ae.AP.font_variant);ae.FONT_WEIGHT=ae.reg(ae.AP.font_weight);ae.LIST_STYLE_POSITION=ae.reg(ae.AP.list_style_position);ae.LIST_STYLE_TYPE=ae.reg(ae.AP.list_style_type);ae.OVERFLOW=ae.reg(ae.AP.overflow);ae.OVERFLOW_WRAP=ae.reg(ae.AP.overflow_wrap);ae.OVERFLOW_X=ae.reg(ae.AP.overflow_x);ae.PAGE_BREAK_AFTER=ae.reg(ae.AP.page_break_after);ae.PAGE_BREAK_BEFORE=ae.reg(ae.AP.page_break_before);ae.PAGE_BREAK_INSIDE=ae.reg(ae.AP.page_break_inside);ae.POSITION=ae.reg(ae.AP.position);ae.RESIZE=ae.reg(ae.AP.resize);ae.SPEAK=ae.reg(ae.AP.speak);ae.SPEAK_HEADER=ae.reg(ae.AP.speak_header);ae.SPEAK_NUMERAL=ae.reg(ae.AP.speak_numeral);ae.SPEAK_PUNCTUATION=ae.reg(ae.AP.speak_punctuation);ae.TABLE_LAYOUT=ae.reg(ae.AP.table_layout);ae.TEXT_ALIGN=ae.reg(ae.AP.text_align);ae.TEXT_DECORATION=ae.reg(ae.AP.text_decoration);ae.TEXT_TRANSFORM=ae.reg(ae.AP.text_transform);ae.TEXT_WRAP=ae.reg(ae.AP.text_wrap);ae.UNICODE_BIDI=ae.reg(ae.AP.unicode_bidi);ae.VISIBILITY=ae.reg(ae.AP.visibility);ae.WHITE_SPACE=ae.reg(ae.AP.white_space);ae.WORD_BREAK=ae.reg(ae.AP.word_break);ae.BACKGROUND_ATTACHMENT=ae.reg(ae.CP.background_attachment);ae.BACKGROUND_COLOR=ae.reg(ae.CP.background_color);ae.BACKGROUND_ORIGIN=ae.reg(ae.CP.background_origin);ae.BACKGROUND_REPEAT=ae.reg(ae.CP.background_repeat);ae.BORDER=ae.reg(ae.CP.border);ae.BORDER_RADIUS=ae.reg(ae.CP.border_radius);ae.BORDER_SPACING=ae.reg(ae.CP.border_spacing);ae.BORDER_TOP_COLOR=ae.reg(ae.CP.border_top_color);ae.BORDER_TOP_STYLE=ae.reg(ae.CP.border_top_style);ae.BORDER_WIDTH=ae.reg(ae.CP.border_width);ae.COLOR=ae.reg(ae.CP.color);ae.CURSOR=ae.reg(ae.CP.cursor);ae.DISPLAY=ae.reg(ae.CP.display);ae.DISPLAY_OUTSIDE=ae.reg(ae.CP.display_outside);ae.ELEVATION=ae.reg(ae.CP.elevation);ae.FONT_FAMILY=ae.reg(ae.CP.font_family);ae.HEIGHT=ae.reg(ae.CP.height);ae.LETTER_SPACING=ae.reg(ae.CP.letter_spacing);ae.LIST_STYLE_IMAGE=ae.reg(ae.CP.list_style_image);ae.MARGIN_RIGHT=ae.reg(ae.CP.margin_right);ae.MAX_HEIGHT=ae.reg(ae.CP.max_height);ae.MIN_HEIGHT=ae.reg(ae.CP.min_height);ae.OPACITY=ae.reg(ae.CP.opacity);ae.OUTLINE_COLOR=ae.reg(ae.CP.outline_color);ae.OUTLINE_WIDTH=ae.reg(ae.CP.outline_width);ae.PADDING=ae.reg(ae.CP.padding);ae.PADDING_TOP=ae.reg(ae.CP.padding_top);ae.PITCH_RANGE=ae.reg(ae.CP.pitch_range);ae.RIGHT=ae.reg(ae.CP.right);ae.STRESS=ae.reg(ae.CP.stress);ae.TEXT_INDENT=ae.reg(ae.CP.text_indent);ae.TEXT_SHADOW=ae.reg(ae.CP.text_shadow);ae.VOLUME=ae.reg(ae.CP.volume);ae.WORD_WRAP=ae.reg(ae.CP.word_wrap);ae.ZOOM=ae.reg(ae.CP.zoom);ae.BACKFACE_VISIBILITY=ae.reg(ae.CP.backface_visibility);ae.BACKGROUND_CLIP=ae.reg(ae.CP.background_clip);ae.BACKGROUND_POSITION=ae.reg(ae.CP.background_position);ae.BORDER_BOTTOM_COLOR=ae.reg(ae.CP.border_bottom_color);ae.BORDER_BOTTOM_STYLE=ae.reg(ae.CP.border_bottom_style);ae.BORDER_COLOR=ae.reg(ae.CP.border_color);ae.BORDER_LEFT_COLOR=ae.reg(ae.CP.border_left_color);ae.BORDER_RIGHT_COLOR=ae.reg(ae.CP.border_right_color);ae.BORDER_STYLE=ae.reg(ae.CP.border_style);ae.BORDER_TOP_LEFT_RADIUS=ae.reg(ae.CP.border_top_left_radius);ae.BORDER_TOP_WIDTH=ae.reg(ae.CP.border_top_width);ae.BOX_SHADOW=ae.reg(ae.CP.box_shadow);ae.CLIP=ae.reg(ae.CP.clip);ae.DISPLAY_INSIDE=ae.reg(ae.CP.display_inside);ae.FONT_SIZE=ae.reg(ae.CP.font_size);ae.LINE_HEIGHT=ae.reg(ae.CP.line_height);ae.MARGIN_LEFT=ae.reg(ae.CP.margin_left);ae.MAX_WIDTH=ae.reg(ae.CP.max_width);ae.OUTLINE_STYLE=ae.reg(ae.CP.outline_style);ae.PADDING_BOTTOM=ae.reg(ae.CP.padding_bottom);ae.PADDING_RIGHT=ae.reg(ae.CP.padding_right);ae.PERSPECTIVE=ae.reg(ae.CP.perspective);ae.RICHNESS=ae.reg(ae.CP.richness);ae.TEXT_OVERFLOW=ae.reg(ae.CP.text_overflow);ae.TOP=ae.reg(ae.CP.top);ae.WIDTH=ae.reg(ae.CP.width);ae.Z_INDEX=ae.reg(ae.CP.z_index);ae.BACKGROUND=ae.reg(ae.CP.background);ae.BACKGROUND_SIZE=ae.reg(ae.CP.background_size);ae.BORDER_BOTTOM_LEFT_RADIUS=ae.reg(ae.CP.border_bottom_left_radius);ae.BORDER_BOTTOM_WIDTH=ae.reg(ae.CP.border_bottom_width);ae.BORDER_LEFT_STYLE=ae.reg(ae.CP.border_left_style);ae.BORDER_RIGHT_STYLE=ae.reg(ae.CP.border_right_style);ae.BORDER_TOP=ae.reg(ae.CP.border_top);ae.BOTTOM=ae.reg(ae.CP.bottom);ae.LIST_STYLE=ae.reg(ae.CP.list_style);ae.MARGIN_TOP=ae.reg(ae.CP.margin_top);ae.OUTLINE=ae.reg(ae.CP.outline);ae.OVERFLOW_Y=ae.reg(ae.CP.overflow_y);ae.PITCH=ae.reg(ae.CP.pitch);ae.VERTICAL_ALIGN=ae.reg(ae.CP.vertical_align);ae.WORD_SPACING=ae.reg(ae.CP.word_spacing);ae.BACKGROUND_IMAGE=ae.reg(ae.CP.background_image);ae.BORDER_BOTTOM_RIGHT_RADIUS=ae.reg(ae.CP.border_bottom_right_radius);ae.BORDER_LEFT_WIDTH=ae.reg(ae.CP.border_left_width);ae.BORDER_RIGHT_WIDTH=ae.reg(ae.CP.border_right_width);ae.LEFT=ae.reg(ae.CP.left);ae.MARGIN_BOTTOM=ae.reg(ae.CP.margin_bottom);ae.PAUSE_AFTER=ae.reg(ae.CP.pause_after);ae.SPEECH_RATE=ae.reg(ae.CP.speech_rate);ae.TRANSITION_DURATION=ae.reg(ae.CP.transition_duration);ae.BORDER_BOTTOM=ae.reg(ae.CP.border_bottom);ae.BORDER_RIGHT=ae.reg(ae.CP.border_right);ae.MARGIN=ae.reg(ae.CP.margin);ae.PADDING_LEFT=ae.reg(ae.CP.padding_left);ae.BORDER_LEFT=ae.reg(ae.CP.border_left);ae.FONT=ae.reg(ae.CP.font);ae.QUOTES=ae.reg(ae.CP.quotes);ae.BORDER_TOP_RIGHT_RADIUS=ae.reg(ae.CP.border_top_right_radius);ae.MIN_WIDTH=ae.reg(ae.CP.min_width);class le{constructor(){this._autolink=true;this._options={allowedTags:["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blockquote","br","button","canvas","caption","center","cite","code","col","colgroup","colspan","command","data","datalist","dd","del","details","dfn","dir","div","dl","dt","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","i","img","input","ins","kbd","label","legend","li","map","mark","menu","meter","nav","nobr","ol","optgroup","option","output","p","pre","progress","q","rowspan","s","samp","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"],allowedAttributes:{"*":["class","dir","draggable","hidden","id","inert","itemprop","itemref","itemscope","lang","spellcheck","style","title","translate"],a:["accesskey","coords","href","hreflang","name","rel","shape","tabindex","target","type"],area:["accesskey","alt","coords","href","nohref","shape","tabindex"],audio:["autoplay","controls","loop","mediagroup","muted","preload","src"],bdo:["dir"],blockquote:["cite"],br:["clear"],button:["accesskey","data-commandlinker-args","data-commandlinker-command","disabled","name","tabindex","type","value"],canvas:["height","width"],caption:["align"],col:["align","char","charoff","span","valign","width"],colgroup:["align","char","charoff","span","valign","width"],command:["checked","command","disabled","icon","label","radiogroup","type"],data:["value"],del:["cite","datetime"],details:["open"],dir:["compact"],div:["align"],dl:["compact"],fieldset:["disabled"],font:["color","face","size"],form:["accept","autocomplete","enctype","method","name","novalidate"],h1:["align"],h2:["align"],h3:["align"],h4:["align"],h5:["align"],h6:["align"],hr:["align","noshade","size","width"],iframe:["align","frameborder","height","marginheight","marginwidth","width"],img:["align","alt","border","height","hspace","ismap","name","src","usemap","vspace","width"],input:["accept","accesskey","align","alt","autocomplete","checked","disabled","inputmode","ismap","list","max","maxlength","min","multiple","name","placeholder","readonly","required","size","src","step","tabindex","type","usemap","value"],ins:["cite","datetime"],label:["accesskey","for"],legend:["accesskey","align"],li:["type","value"],map:["name"],menu:["compact","label","type"],meter:["high","low","max","min","value"],ol:["compact","reversed","start","type"],optgroup:["disabled","label"],option:["disabled","label","selected","value"],output:["for","name"],p:["align"],pre:["width"],progress:["max","min","value"],q:["cite"],select:["autocomplete","disabled","multiple","name","required","size","tabindex"],source:["type"],table:["align","bgcolor","border","cellpadding","cellspacing","frame","rules","summary","width"],tbody:["align","char","charoff","valign"],td:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],textarea:["accesskey","autocomplete","cols","disabled","inputmode","name","placeholder","readonly","required","rows","tabindex","wrap"],tfoot:["align","char","charoff","valign"],th:["abbr","align","axis","bgcolor","char","charoff","colspan","headers","height","nowrap","rowspan","scope","valign","width"],thead:["align","char","charoff","valign"],tr:["align","bgcolor","char","charoff","valign"],track:["default","kind","label","srclang"],ul:["compact","type"],video:["autoplay","controls","height","loop","mediagroup","muted","poster","preload","src","width"]},allowedStyles:{"*":{"backface-visibility":[ae.BACKFACE_VISIBILITY],background:[ae.BACKGROUND],"background-attachment":[ae.BACKGROUND_ATTACHMENT],"background-clip":[ae.BACKGROUND_CLIP],"background-color":[ae.BACKGROUND_COLOR],"background-image":[ae.BACKGROUND_IMAGE],"background-origin":[ae.BACKGROUND_ORIGIN],"background-position":[ae.BACKGROUND_POSITION],"background-repeat":[ae.BACKGROUND_REPEAT],"background-size":[ae.BACKGROUND_SIZE],border:[ae.BORDER],"border-bottom":[ae.BORDER_BOTTOM],"border-bottom-color":[ae.BORDER_BOTTOM_COLOR],"border-bottom-left-radius":[ae.BORDER_BOTTOM_LEFT_RADIUS],"border-bottom-right-radius":[ae.BORDER_BOTTOM_RIGHT_RADIUS],"border-bottom-style":[ae.BORDER_BOTTOM_STYLE],"border-bottom-width":[ae.BORDER_BOTTOM_WIDTH],"border-collapse":[ae.BORDER_COLLAPSE],"border-color":[ae.BORDER_COLOR],"border-left":[ae.BORDER_LEFT],"border-left-color":[ae.BORDER_LEFT_COLOR],"border-left-style":[ae.BORDER_LEFT_STYLE],"border-left-width":[ae.BORDER_LEFT_WIDTH],"border-radius":[ae.BORDER_RADIUS],"border-right":[ae.BORDER_RIGHT],"border-right-color":[ae.BORDER_RIGHT_COLOR],"border-right-style":[ae.BORDER_RIGHT_STYLE],"border-right-width":[ae.BORDER_RIGHT_WIDTH],"border-spacing":[ae.BORDER_SPACING],"border-style":[ae.BORDER_STYLE],"border-top":[ae.BORDER_TOP],"border-top-color":[ae.BORDER_TOP_COLOR],"border-top-left-radius":[ae.BORDER_TOP_LEFT_RADIUS],"border-top-right-radius":[ae.BORDER_TOP_RIGHT_RADIUS],"border-top-style":[ae.BORDER_TOP_STYLE],"border-top-width":[ae.BORDER_TOP_WIDTH],"border-width":[ae.BORDER_WIDTH],bottom:[ae.BOTTOM],box:[ae.BOX],"box-shadow":[ae.BOX_SHADOW],"box-sizing":[ae.BOX_SIZING],"caption-side":[ae.CAPTION_SIDE],clear:[ae.CLEAR],clip:[ae.CLIP],color:[ae.COLOR],cursor:[ae.CURSOR],direction:[ae.DIRECTION],display:[ae.DISPLAY],"display-inside":[ae.DISPLAY_INSIDE],"display-outside":[ae.DISPLAY_OUTSIDE],elevation:[ae.ELEVATION],"empty-cells":[ae.EMPTY_CELLS],float:[ae.FLOAT],font:[ae.FONT],"font-family":[ae.FONT_FAMILY],"font-size":[ae.FONT_SIZE],"font-stretch":[ae.FONT_STRETCH],"font-style":[ae.FONT_STYLE],"font-variant":[ae.FONT_VARIANT],"font-weight":[ae.FONT_WEIGHT],height:[ae.HEIGHT],left:[ae.LEFT],"letter-spacing":[ae.LETTER_SPACING],"line-height":[ae.LINE_HEIGHT],"list-style":[ae.LIST_STYLE],"list-style-image":[ae.LIST_STYLE_IMAGE],"list-style-position":[ae.LIST_STYLE_POSITION],"list-style-type":[ae.LIST_STYLE_TYPE],margin:[ae.MARGIN],"margin-bottom":[ae.MARGIN_BOTTOM],"margin-left":[ae.MARGIN_LEFT],"margin-right":[ae.MARGIN_RIGHT],"margin-top":[ae.MARGIN_TOP],"max-height":[ae.MAX_HEIGHT],"max-width":[ae.MAX_WIDTH],"min-height":[ae.MIN_HEIGHT],"min-width":[ae.MIN_WIDTH],opacity:[ae.OPACITY],outline:[ae.OUTLINE],"outline-color":[ae.OUTLINE_COLOR],"outline-style":[ae.OUTLINE_STYLE],"outline-width":[ae.OUTLINE_WIDTH],overflow:[ae.OVERFLOW],"overflow-wrap":[ae.OVERFLOW_WRAP],"overflow-x":[ae.OVERFLOW_X],"overflow-y":[ae.OVERFLOW_Y],padding:[ae.PADDING],"padding-bottom":[ae.PADDING_BOTTOM],"padding-left":[ae.PADDING_LEFT],"padding-right":[ae.PADDING_RIGHT],"padding-top":[ae.PADDING_TOP],"page-break-after":[ae.PAGE_BREAK_AFTER],"page-break-before":[ae.PAGE_BREAK_BEFORE],"page-break-inside":[ae.PAGE_BREAK_INSIDE],"pause-after":[ae.PAUSE_AFTER],perspective:[ae.PERSPECTIVE],pitch:[ae.PITCH],"pitch-range":[ae.PITCH_RANGE],position:[ae.POSITION],quotes:[ae.QUOTES],resize:[ae.RESIZE],richness:[ae.RICHNESS],right:[ae.RIGHT],speak:[ae.SPEAK],"speak-header":[ae.SPEAK_HEADER],"speak-numeral":[ae.SPEAK_NUMERAL],"speak-punctuation":[ae.SPEAK_PUNCTUATION],"speech-rate":[ae.SPEECH_RATE],stress:[ae.STRESS],"table-layout":[ae.TABLE_LAYOUT],"text-align":[ae.TEXT_ALIGN],"text-decoration":[ae.TEXT_DECORATION],"text-indent":[ae.TEXT_INDENT],"text-overflow":[ae.TEXT_OVERFLOW],"text-shadow":[ae.TEXT_SHADOW],"text-transform":[ae.TEXT_TRANSFORM],"text-wrap":[ae.TEXT_WRAP],top:[ae.TOP],"unicode-bidi":[ae.UNICODE_BIDI],"vertical-align":[ae.VERTICAL_ALIGN],visibility:[ae.VISIBILITY],volume:[ae.VOLUME],"white-space":[ae.WHITE_SPACE],width:[ae.WIDTH],"word-break":[ae.WORD_BREAK],"word-spacing":[ae.WORD_SPACING],"word-wrap":[ae.WORD_WRAP],"z-index":[ae.Z_INDEX],zoom:[ae.ZOOM]}},transformTags:{a:re().simpleTransform("a",{rel:"nofollow"}),input:re().simpleTransform("input",{disabled:"disabled"})},allowedSchemes:[...re().defaults.allowedSchemes],allowedSchemesByTag:{img:re().defaults.allowedSchemes.concat(["attachment"])},allowedSchemesAppliedToAttributes:["href","cite"]}}sanitize(e,t){return re()(e,{...this._options,...t||{}})}getAutolink(){return this._autolink}setAllowedSchemes(e){this._options.allowedSchemes=[...e]}setAutolink(e){this._autolink=e}}class de{constructor(){this._commands=new Array}add(e){if(this._commands.map((e=>e.id)).includes(e.id)){throw Error(`Command ${e.id} is already defined.`)}this._commands.push({isEnabled:()=>true,rank:de.DEFAULT_RANK,...e})}getActiveCommandId(e){var t;const n=this._commands.filter((t=>t.isEnabled(e))).sort(((e,t)=>{const n=e.rank-t.rank;return n||(e.id{this._settings=e;this._initOverrideProps();this._settings.changed.connect(this._loadSettings,this);this._loadSettings()}))}get theme(){return this._current}get themes(){return Object.keys(this._themes)}get themeChanged(){return this._themeChanged}getCSS(e){var t;return(t=this._overrides[e])!==null&&t!==void 0?t:getComputedStyle(document.documentElement).getPropertyValue(`--jp-${e}`)}loadCSS(e){const t=this._base;const n=l.URLExt.isLocal(e)?l.URLExt.join(t,e):e;const i=this._links;return new Promise(((e,t)=>{const s=document.createElement("link");s.setAttribute("rel","stylesheet");s.setAttribute("type","text/css");s.setAttribute("href",n);s.addEventListener("load",(()=>{e(undefined)}));s.addEventListener("error",(()=>{t(`Stylesheet failed to load: ${n}`)}));document.body.appendChild(s);i.push(s);this.loadCSSOverrides()}))}loadCSSOverrides(){var e;const t=(e=this._settings.user["overrides"])!==null&&e!==void 0?e:{};Object.keys({...this._overrides,...t}).forEach((e=>{const n=t[e];if(n&&this.validateCSS(e,n)){document.documentElement.style.setProperty(`--jp-${e}`,n)}else{delete t[e];document.documentElement.style.removeProperty(`--jp-${e}`)}}));this._overrides=t}validateCSS(e,t){const n=this._overrideProps[e];if(!n){console.warn("CSS validation failed: could not find property corresponding to key.\n"+`key: '${e}', val: '${t}'`);return false}if(CSS.supports(n,t)){return true}else{console.warn("CSS validation failed: invalid value.\n"+`key: '${e}', val: '${t}', prop: '${n}'`);return false}}register(e){const{name:t}=e;const n=this._themes;if(n[t]){throw new Error(`Theme already registered for ${t}`)}n[t]=e;return new ce.DisposableDelegate((()=>{delete n[t]}))}setCSSOverride(e,t){return this._settings.set("overrides",{...this._overrides,[e]:t})}setTheme(e){return this._settings.set("theme",e)}isLight(e){return this._themes[e].isLight}incrFontSize(e){return this._incrFontSize(e,true)}decrFontSize(e){return this._incrFontSize(e,false)}themeScrollbars(e){return!!this._settings.composite["theme-scrollbars"]&&!!this._themes[e].themeScrollbars}isToggledThemeScrollbars(){return!!this._settings.composite["theme-scrollbars"]}toggleThemeScrollbars(){return this._settings.set("theme-scrollbars",!this._settings.composite["theme-scrollbars"])}getDisplayName(e){var t,n;return(n=(t=this._themes[e])===null||t===void 0?void 0:t.displayName)!==null&&n!==void 0?n:e}_incrFontSize(e,t=true){var n;const i=((n=this.getCSS(e))!==null&&n!==void 0?n:"13px").split(/([a-zA-Z]+)/);const s=(t?1:-1)*(i[1]==="em"?.1:1);return this.setCSSOverride(e,`${Number(i[0])+s}${i[1]}`)}_initOverrideProps(){const e=this._settings.schema.definitions;const t=e.cssOverrides.properties;Object.keys(t).forEach((e=>{let n;switch(e){case"code-font-size":case"content-font-size1":case"ui-font-size1":n="font-size";break;default:n=t[e].description;break}this._overrideProps[e]=n}))}_loadSettings(){const e=this._outstanding;const t=this._pending;const n=this._requests;if(t){window.clearTimeout(t);this._pending=0}const i=this._settings;const s=this._themes;const o=i.composite["theme"];if(e){e.then((()=>{this._loadSettings()})).catch((()=>{this._loadSettings()}));this._outstanding=null;return}n[o]=n[o]?n[o]+1:1;if(s[o]){this._outstanding=this._loadTheme(o);delete n[o];return}if(n[o]>ue){const e=i.default("theme");delete n[o];if(!s[e]){this._onError(this._trans.__("Neither theme %1 nor default %2 loaded.",o,e));return}console.warn(`Could not load theme ${o}, using default ${e}.`);this._outstanding=this._loadTheme(e);return}this._pending=window.setTimeout((()=>{this._loadSettings()}),he)}_loadTheme(e){var t;const n=this._current;const i=this._links;const s=this._themes;const o=this._splash?this._splash.show(s[e].isLight):new ce.DisposableDelegate((()=>undefined));i.forEach((e=>{if(e.parentElement){e.parentElement.removeChild(e)}}));i.length=0;const r=(t=this._settings.schema.properties)===null||t===void 0?void 0:t.theme;if(r){r.enum=Object.keys(s).map((e=>{var t;return(t=s[e].displayName)!==null&&t!==void 0?t:e}))}const a=n?s[n].unload():Promise.resolve();return Promise.all([a,s[e].load()]).then((()=>{this._current=e;this._themeChanged.emit({name:"theme",oldValue:n,newValue:e});this._host.hide();requestAnimationFrame((()=>{this._host.show();me.fitAll(this._host);o.dispose()}))})).catch((e=>{this._onError(e);o.dispose()}))}_onError(e){void g({title:this._trans.__("Error Loading Theme"),body:String(e),buttons:[v.okButton({label:this._trans.__("OK")})]})}}var me;(function(e){function t(e){for(const n of e.children()){t(n)}e.fit()}e.fitAll=t})(me||(me={}));const ge=new c.Token("@jupyterlab/apputils:ICommandPalette",`A service for the application command palette\n in the left panel. Use this to add commands to the palette.`);const fe=new c.Token("@jupyterlab/apputils:IKernelStatusModel","A service to register kernel session provider to the kernel status indicator.");const ve=new c.Token("@jupyterlab/apputils:ISessionContextDialogs","A service for handling the session dialogs.");const _e=new c.Token("@jupyterlab/apputils:IThemeManager","A service for the theme manager for the application. This is used primarily in theme extensions to register new themes.");const be=new c.Token("@jupyterlab/apputils:ISanitizer","A service for sanitizing HTML strings.");const ye=new c.Token("@jupyterlab/apputils:ISplashScreen",`A service for the splash screen for the application.\n Use this if you want to show the splash screen for your own purposes.`);const we=new c.Token("@jupyterlab/apputils:IWindowResolver",`A service for a window resolver for the\n application. JupyterLab workspaces are given a name, which are determined using\n the window resolver. Require this if you want to use the name of the current workspace.`);const Ce=new c.Token("@jupyterlab/apputils:IToolbarWidgetRegistry",`A registry for toolbar widgets. Require this\n if you want to build the toolbar dynamically from a data definition (stored in settings for example).`);class xe{constructor(e){this._widgets=new Map;this._factoryAdded=new h.Signal(this);this._defaultFactory=e.defaultFactory}get defaultFactory(){return this._defaultFactory}set defaultFactory(e){this._defaultFactory=e}get factoryAdded(){return this._factoryAdded}createWidget(e,t,n){var i;const s=(i=this._widgets.get(e))===null||i===void 0?void 0:i.get(n.name);return s?s(t):this._defaultFactory(e,t,n)}addFactory(e,t,n){let i=this._widgets.get(e);const s=i===null||i===void 0?void 0:i.get(t);if(!i){i=new Map;this._widgets.set(e,i)}i.set(t,n);this._factoryAdded.emit(t);return s}registerFactory(e,t,n){return this.addFactory(e,t,n)}}function Se(e){return(t,n,s)=>{var r;switch((r=s.type)!==null&&r!==void 0?r:"command"){case"command":{const{command:t,args:n,label:o,caption:r,icon:a}=s;const l=t!==null&&t!==void 0?t:"";const d={toolbar:true,...n};const c=a?i.LabIcon.resolve({icon:a}):undefined;const h=(c!==null&&c!==void 0?c:e.icon(l,d))?o!==null&&o!==void 0?o:"":o;return new i.CommandToolbarButton({commands:e,id:l,args:d,icon:c,label:h,caption:r})}case"spacer":return i.Toolbar.createSpacerItem();default:return new o.Widget}}}var ke=n(20631);var je=n(95811);const Me=50;const Ee="jupyter.lab.toolbars";async function Ie(e){const t=await g({title:e.__("Information"),body:e.__("Toolbar customization has changed. You will need to reload JupyterLab to see the changes."),buttons:[v.cancelButton(),v.okButton({label:e.__("Reload")})]});if(t.button.accept){location.reload()}}async function Te(e,t,n,i,s,o="toolbar"){var r;const a=s.load("jupyterlab");let l=null;let d={};let h=true;try{function g(e){var s,r;d={};const a=Object.keys(t.plugins).filter((e=>e!==i)).map((e=>{var i,s;const o=(s=((i=t.plugins[e].schema[Ee])!==null&&i!==void 0?i:{})[n])!==null&&s!==void 0?s:[];d[e]=o;return o})).concat([(r=((s=e[Ee])!==null&&s!==void 0?s:{})[n])!==null&&r!==void 0?r:[]]).reduceRight(((e,t)=>je.SettingRegistry.reconcileToolbarItems(e,t,true)),[]);e.properties[o].default=je.SettingRegistry.reconcileToolbarItems(a,e.properties[o].default,true).sort(((e,t)=>{var n,i;return((n=e.rank)!==null&&n!==void 0?n:Me)-((i=t.rank)!==null&&i!==void 0?i:Me)}))}t.transform(i,{compose:e=>{var t,n,i,s,r;if(!l){l=c.JSONExt.deepCopy(e.schema);g(l)}const a=(i=((n=((t=l.properties)!==null&&t!==void 0?t:{})[o])!==null&&n!==void 0?n:{}).default)!==null&&i!==void 0?i:[];const d=e.data.user;const h=e.data.composite;d[o]=(s=e.data.user[o])!==null&&s!==void 0?s:[];h[o]=((r=je.SettingRegistry.reconcileToolbarItems(a,d[o],false))!==null&&r!==void 0?r:[]).sort(((e,t)=>{var n,i;return((n=e.rank)!==null&&n!==void 0?n:Me)-((i=t.rank)!==null&&i!==void 0?i:Me)}));e.data={composite:h,user:d};return e},fetch:e=>{if(!l){l=c.JSONExt.deepCopy(e.schema);g(l)}return{data:e.data,id:e.id,raw:e.raw,schema:l,version:e.version}}})}catch(m){if(m.name==="TransformError"){h=false}else{throw m}}const u=await t.load(i);u.changed.connect((()=>{var e;const t=(e=u.composite[o])!==null&&e!==void 0?e:[];p(t)}));const p=t=>{e.clear();e.pushAll(t.filter((e=>!e.disabled)))};p((r=u.composite[o])!==null&&r!==void 0?r:[]);if(!h){return}t.pluginChanged.connect((async(e,s)=>{var o,r,h;if(s===i){return}const u=(o=d[s])!==null&&o!==void 0?o:[];const p=(h=((r=t.plugins[s].schema[Ee])!==null&&r!==void 0?r:{})[n])!==null&&h!==void 0?h:[];if(!c.JSONExt.deepEqual(u,p)){if(d[s]){await Ie(a)}else{if(p.length>0){l=null;const e=t.plugins[i].schema;e.properties.toolbar.default=[];await t.load(i,true)}}}}))}function De(e,t,n,i,s,o="toolbar"){const r=new ke.ObservableList({itemCmp:(e,t)=>c.JSONExt.deepEqual(e,t)});Te(r,t,n,i,s,o).catch((e=>{console.error(`Failed to load toolbar items for factory ${n} from ${i}`,e)}));return t=>{const i=(i,s)=>{switch(s.type){case"move":o.move(s.oldIndex,s.newIndex);break;case"add":s.newValues.forEach((i=>o.push({name:i.name,widget:e.createWidget(n,t,i)})));break;case"remove":s.oldValues.forEach((()=>o.remove(s.oldIndex)));break;case"set":s.newValues.forEach((i=>o.set(s.newIndex,{name:i.name,widget:e.createWidget(n,t,i)})));break}};const s=(i,s)=>{const a=Array.from(r).findIndex((e=>e.name===s));if(a>=0){o.set(a,{name:s,widget:e.createWidget(n,t,r.get(a))})}};const o=new ke.ObservableList({values:Array.from(r).map((i=>({name:i.name,widget:e.createWidget(n,t,i)})))});e.factoryAdded.connect(s);r.changed.connect(i);t.disposed.connect((()=>{r.changed.disconnect(i);e.factoryAdded.disconnect(s)}));return o}}function Le(e,t,n){var i;if(!e.toolbar&&!n){console.log(`Widget ${e.id} has no 'toolbar' and no explicit toolbar was provided.`);return}const s=(i=e.toolbar)!==null&&i!==void 0?i:n;const o=t(e);if(Array.isArray(o)){o.forEach((({name:e,widget:t})=>{s.addItem(e,t)}))}else{const t=(e,t)=>{switch(t.type){case"add":t.newValues.forEach(((e,n)=>{s.insertItem(t.newIndex+n,e.name,e.widget)}));break;case"move":t.oldValues.forEach((e=>{e.widget.parent=null}));t.newValues.forEach(((e,n)=>{s.insertItem(t.newIndex+n,e.name,e.widget)}));break;case"remove":t.oldValues.forEach((e=>{e.widget.parent=null}));break;case"set":t.oldValues.forEach((e=>{e.widget.parent=null}));t.newValues.forEach(((e,n)=>{const i=(0,d.findIndex)(s.names(),(t=>e.name===t));if(i>=0){Array.from(s.children())[i].parent=null}s.insertItem(t.newIndex+n,e.name,e.widget)}));break}};t(o,{newIndex:0,newValues:Array.from(o),oldIndex:0,oldValues:[],type:"add"});o.changed.connect(t);e.disposed.connect((()=>{o.changed.disconnect(t)}))}}class Pe{get name(){return this._name}resolve(e){return Ae.resolve(e).then((e=>{this._name=e}))}}var Ae;(function(e){const t="@jupyterlab/statedb:StateDB";const n=`${t}:beacon`;const i=Math.floor(200+Math.random()*300);const s=`${t}:window`;let o=null;let r=null;const a=new c.PromiseDelegate;const l={};let d=null;let h=false;function u(){window.addEventListener("storage",(e=>{const{key:t,newValue:i}=e;if(i===null){return}if(t===n&&i!==o&&r!==null){p(h?d:r);return}if(h||t!==s){return}const a=i.replace(/\-\d+$/,"");l[a]=null;if(!r||r in l){m()}}))}function p(e){if(e===null){return}const{localStorage:t}=window;t.setItem(s,`${e}-${(new Date).getTime()}`)}function m(){h=true;o=null;a.reject(`Window name candidate "${r}" already exists`)}function g(e){if(h){return a.promise}r=e;if(r in l){m();return a.promise}const{localStorage:t,setTimeout:s}=window;s((()=>{if(h){return}if(!r||r in l){return m()}h=true;o=null;a.resolve(d=r);p(d)}),i);o=`${Math.random()}-${(new Date).getTime()}`;t.setItem(n,o);return a.promise}e.resolve=g;(()=>{u()})()})(Ae||(Ae={}));class Re extends i.Toolbar{}(function(e){e.createInterruptButton=E.createInterruptButton;e.createKernelNameItem=E.createKernelNameItem;e.createKernelStatusItem=E.createKernelStatusItem;e.createRestartButton=E.createRestartButton;e.createSpacerItem=i.Toolbar.createSpacerItem})(Re||(Re={}))},79536:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(98328);var r=n(93379);var a=n.n(r);var l=n(7795);var d=n.n(l);var c=n(90569);var h=n.n(c);var u=n(3565);var p=n.n(u);var m=n(19216);var g=n.n(m);var f=n(44589);var v=n.n(f);var _=n(30399);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.Z,b);const w=_.Z&&_.Z.locals?_.Z.locals:undefined},4388:(e,t,n)=>{"use strict";n.r(t);n.d(t,{AttachmentsModel:()=>r,AttachmentsResolver:()=>a});var i=n(20631);var s=n(23635);var o=n(71372);class r{constructor(e){var t;this._map=new i.ObservableMap;this._isDisposed=false;this._stateChanged=new o.Signal(this);this._changed=new o.Signal(this);this._serialized=null;this._changeGuard=false;this.contentFactory=(t=e.contentFactory)!==null&&t!==void 0?t:r.defaultContentFactory;if(e.values){for(const t of Object.keys(e.values)){if(e.values[t]!==undefined){this.set(t,e.values[t])}}}this._map.changed.connect(this._onMapChanged,this)}get stateChanged(){return this._stateChanged}get changed(){return this._changed}get keys(){return this._map.keys()}get length(){return this._map.keys().length}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this._map.dispose();o.Signal.clearData(this)}has(e){return this._map.has(e)}get(e){return this._map.get(e)}set(e,t){const n=this._createItem({value:t});this._map.set(e,n)}remove(e){this._map.delete(e)}clear(){this._map.values().forEach((e=>{e.dispose()}));this._map.clear()}fromJSON(e){this.clear();Object.keys(e).forEach((t=>{if(e[t]!==undefined){this.set(t,e[t])}}))}toJSON(){const e={};for(const t of this._map.keys()){e[t]=this._map.get(t).toJSON()}return e}_createItem(e){const t=this.contentFactory;const n=t.createAttachmentModel(e);n.changed.connect(this._onGenericChange,this);return n}_onMapChanged(e,t){if(this._serialized&&!this._changeGuard){this._changeGuard=true;this._serialized.set(this.toJSON());this._changeGuard=false}this._changed.emit(t);this._stateChanged.emit(void 0)}_onGenericChange(){this._stateChanged.emit(void 0)}}(function(e){class t{createAttachmentModel(e){return new s.AttachmentModel(e)}}e.ContentFactory=t;e.defaultContentFactory=new t})(r||(r={}));class a{constructor(e){this._parent=e.parent||null;this._model=e.model}async resolveUrl(e){if(this._parent&&!e.startsWith("attachment:")){return this._parent.resolveUrl(e)}return e}async getDownloadUrl(e){if(this._parent&&!e.startsWith("attachment:")){return this._parent.getDownloadUrl(e)}const t=e.slice("attachment:".length);const n=this._model.get(t);if(n===undefined){return e}const{data:i}=n;const o=Object.keys(i)[0];if(o===undefined||s.imageRendererFactory.mimeTypes.indexOf(o)===-1){throw new Error(`Cannot render unknown image mime type "${o}".`)}const r=`data:${o};base64,${i[o]}`;return r}isLocal(e){var t,n,i;if(this._parent&&!e.startsWith("attachment:")){return(i=(n=(t=this._parent).isLocal)===null||n===void 0?void 0:n.call(t,e))!==null&&i!==void 0?i:true}return true}}},12650:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>u});var i=n(95811);var s=n.n(i);var o=n(14016);var r=n.n(o);var a=n(10759);var l=n.n(a);var d=n(6958);var c=n.n(d);const h={id:"@jupyterlab/cell-toolbar-extension:plugin",description:"Add the cells toolbar.",autoStart:true,activate:async(e,t,n,i)=>{const s=t&&n?(0,a.createToolbarFactory)(n,t,o.CellBarExtension.FACTORY_NAME,h.id,i!==null&&i!==void 0?i:d.nullTranslator):undefined;e.docRegistry.addWidgetExtension("Notebook",new o.CellBarExtension(e.commands,s))},optional:[i.ISettingRegistry,a.IToolbarWidgetRegistry,d.ITranslator]};const u=h},69858:(e,t,n)=>{"use strict";var i=n(79536);var s=n(90516);var o=n(32902);var r=n(34849);var a=n(94683);var l=n(5956);var d=n(88164);var c=n(93379);var h=n.n(c);var u=n(7795);var p=n.n(u);var m=n(90569);var g=n.n(m);var f=n(3565);var v=n.n(f);var _=n(19216);var b=n.n(_);var y=n(44589);var w=n.n(y);var C=n(63775);var x={};x.styleTagTransform=w();x.setAttributes=v();x.insert=g().bind(null,"head");x.domAPI=p();x.insertStyleElement=b();var S=h()(C.Z,x);const k=C.Z&&C.Z.locals?C.Z.locals:undefined},70055:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CellBarExtension:()=>m,CellToolbarTracker:()=>u});var i=n(10759);var s=n(20631);var o=n(4148);var r=n(58740);var a=n(71372);const l=["text/plain","application/vnd.jupyter.stdout","application/vnd.jupyter.stderr"];const d="jp-cell-toolbar";const c="jp-cell-menu";const h="jp-toolbar-overlap";class u{constructor(e,t){var n;this._isDisposed=false;this._panel=e;this._previousActiveCell=this._panel.content.activeCell;this._toolbar=t;this._onToolbarChanged();this._toolbar.changed.connect(this._onToolbarChanged,this);void e.revealed.then((()=>{setTimeout((()=>{this._onActiveCellChanged(e.content)}),1e3/60)}));e.content.renderingLayoutChanged.connect(this._onActiveCellChanged,this);e.content.activeCellChanged.connect(this._onActiveCellChanged,this);(n=e.content.activeCell)===null||n===void 0?void 0:n.model.metadataChanged.connect(this._onMetadataChanged,this);e.disposed.connect((()=>{var t;e.content.activeCellChanged.disconnect(this._onActiveCellChanged);(t=e.content.activeCell)===null||t===void 0?void 0:t.model.metadataChanged.disconnect(this._onMetadataChanged)}))}_onMetadataChanged(e,t){if(t.key==="jupyter"){if(typeof t.newValue==="object"&&t.newValue.source_hidden===true&&(t.type==="add"||t.type==="change")){this._removeToolbar(e)}else if(typeof t.oldValue==="object"&&t.oldValue.source_hidden===true){this._addToolbar(e)}}}_onActiveCellChanged(e){if(this._previousActiveCell&&!this._previousActiveCell.isDisposed){this._removeToolbar(this._previousActiveCell.model);this._previousActiveCell.model.metadataChanged.disconnect(this._onMetadataChanged)}const t=e.activeCell;if(t===null||t.inputHidden){return}t.model.metadataChanged.connect(this._onMetadataChanged,this);this._addToolbar(t.model);this._previousActiveCell=t}get isDisposed(){return this._isDisposed}dispose(){var e;if(this.isDisposed){return}this._isDisposed=true;this._toolbar.changed.disconnect(this._onToolbarChanged,this);const t=(e=this._panel)===null||e===void 0?void 0:e.context.model.cells;if(t){for(const e of t){this._removeToolbar(e)}}this._panel=null;a.Signal.clearData(this)}_addToolbar(e){const t=this._getCell(e);if(t){const e=new o.Toolbar;e.addClass(c);const n=[];for(const{name:t,widget:i}of this._toolbar){e.addItem(t,i);if(i instanceof o.ReactWidget&&i.renderPromise!==undefined){i.update();n.push(i.renderPromise)}}Promise.all(n).then((()=>{e.addClass(d);t.layout.insertWidget(0,e);t.displayChanged.connect(this._resizeEventCallback,this);t.model.contentChanged.connect(this._changedEventCallback,this);this._updateCellForToolbarOverlap(t)})).catch((e=>{console.error("Error rendering buttons of the cell toolbar: ",e)}))}}_getCell(e){var t;return(t=this._panel)===null||t===void 0?void 0:t.content.widgets.find((t=>t.model===e))}_findToolbarWidgets(e){const t=e.layout.widgets;return t.filter((e=>e.hasClass(d)))||[]}_removeToolbar(e){const t=this._getCell(e);if(t){this._findToolbarWidgets(t).forEach((e=>{e.dispose()}));t.displayChanged.disconnect(this._resizeEventCallback,this)}e.contentChanged.disconnect(this._changedEventCallback,this)}_onToolbarChanged(){var e;const t=(e=this._panel)===null||e===void 0?void 0:e.content.activeCell;if(t){this._removeToolbar(t.model);this._addToolbar(t.model)}}_changedEventCallback(){var e;const t=(e=this._panel)===null||e===void 0?void 0:e.content.activeCell;if(t===null||t===undefined){return}this._updateCellForToolbarOverlap(t)}_resizeEventCallback(){var e;const t=(e=this._panel)===null||e===void 0?void 0:e.content.activeCell;if(t===null||t===undefined){return}this._updateCellForToolbarOverlap(t)}_updateCellForToolbarOverlap(e){requestAnimationFrame((()=>{const t=e.node;t.classList.remove(h);if(this._cellToolbarOverlapsContents(e)){t.classList.add(h)}}))}_cellToolbarOverlapsContents(e){var t;const n=e.model.type;const i=this._cellEditorWidgetLeft(e);const s=this._cellEditorWidgetRight(e);const o=this._cellToolbarLeft(e);if(o===null){return false}if((i+s)/2>o){return true}if(n==="markdown"&&e.rendered){return this._markdownOverlapsToolbar(e)}if(((t=this._panel)===null||t===void 0?void 0:t.content.renderingLayout)==="default"){return this._codeOverlapsToolbar(e)}else{return this._outputOverlapsToolbar(e)}}_markdownOverlapsToolbar(e){const t=e.inputArea;if(!t){return false}const n=t.renderedInput;const i=n.node;const s=i.firstElementChild;if(s===null){return false}const o=s.style.maxWidth;s.style.maxWidth="max-content";const r=s.getBoundingClientRect().right;s.style.maxWidth=o;const a=this._cellToolbarLeft(e);return a===null?false:r>a}_outputOverlapsToolbar(e){const t=e.outputArea.node;if(t){const n=t.querySelectorAll("[data-mime-type]");const i=this._cellToolbarRect(e);if(i){const{left:e,bottom:t}=i;return(0,r.some)(n,(n=>{const i=n.firstElementChild;if(i){const s=new Range;if(l.includes(n.getAttribute("data-mime-type")||"")){s.selectNodeContents(i)}else{s.selectNode(i)}const{right:o,top:r}=s.getBoundingClientRect();return o>e&&rr}_cellEditorWidgetLeft(e){var t,n;return(n=(t=e.editorWidget)===null||t===void 0?void 0:t.node.getBoundingClientRect().left)!==null&&n!==void 0?n:0}_cellEditorWidgetRight(e){var t,n;return(n=(t=e.editorWidget)===null||t===void 0?void 0:t.node.getBoundingClientRect().right)!==null&&n!==void 0?n:0}_cellToolbarRect(e){const t=this._findToolbarWidgets(e);if(t.length<1){return null}const n=t[0].node;return n.getBoundingClientRect()}_cellToolbarLeft(e){var t;return((t=this._cellToolbarRect(e))===null||t===void 0?void 0:t.left)||null}}const p=[{command:"notebook:duplicate-below",name:"duplicate-cell"},{command:"notebook:move-cell-up",name:"move-cell-up"},{command:"notebook:move-cell-down",name:"move-cell-down"},{command:"notebook:insert-cell-above",name:"insert-cell-above"},{command:"notebook:insert-cell-below",name:"insert-cell-below"},{command:"notebook:delete-cell",name:"delete-cell"}];class m{constructor(e,t){this._commands=e;this._toolbarFactory=t!==null&&t!==void 0?t:this.defaultToolbarFactory}get defaultToolbarFactory(){const e=(0,i.createDefaultFactory)(this._commands);return t=>new s.ObservableList({values:p.map((n=>({name:n.name,widget:e(m.FACTORY_NAME,t,n)})))})}createNew(e){return new u(e,this._toolbarFactory(e))}}m.FACTORY_NAME="Cell"},98596:(e,t,n)=>{"use strict";n.r(t);n.d(t,{AttachmentsCell:()=>$e,AttachmentsCellModel:()=>W,Cell:()=>We,CellDragUtils:()=>c,CellFooter:()=>k,CellHeader:()=>S,CellModel:()=>H,CellSearchProvider:()=>re,CodeCell:()=>Ue,CodeCellLayout:()=>Ve,CodeCellModel:()=>$,Collapser:()=>_,InputArea:()=>D,InputCollapser:()=>b,InputPlaceholder:()=>ee,InputPrompt:()=>L,MarkdownCell:()=>qe,MarkdownCellModel:()=>U,OutputCollapser:()=>y,OutputPlaceholder:()=>te,Placeholder:()=>Q,RawCell:()=>Ke,RawCellModel:()=>V,SELECTED_HIGHLIGHT_CLASS:()=>oe,createCellSearchProvider:()=>de,isCodeCellModel:()=>B,isMarkdownCellModel:()=>F,isRawCellModel:()=>z});var i=n(90502);const s=5;const o="jp-dragImage";const r="jp-dragImage-singlePrompt";const a="jp-dragImage-content";const l="jp-dragImage-prompt";const d="jp-dragImage-multipleBack";var c;(function(e){function t(e,t,n){let i=-1;while(e&&e.parentElement){if(n(e)){let n=-1;for(const s of t){if(s.node===e){i=++n;break}}break}e=e.parentElement}return i}e.findCell=t;function n(e,t){var n,i;let s;if(e){if((n=e.editorWidget)===null||n===void 0?void 0:n.node.contains(t)){s="input"}else if((i=e.promptNode)===null||i===void 0?void 0:i.contains(t)){s="prompt"}else{s="cell"}}else{s="unknown"}return s}e.detectTargetArea=n;function c(e,t,n,i){const o=Math.abs(n-e);const r=Math.abs(i-t);return o>=s||r>=s}e.shouldStartDrag=c;function h(e,t){const n=t.length;let s;if(e.model.type==="code"){const t=e.model.executionCount;s=" ";if(t){s=t.toString()}}else{s=""}const c=e.model.sharedModel.getSource().split("\n")[0].slice(0,26);if(n>1){if(s!==""){return i.VirtualDOM.realize(i.h.div(i.h.div({className:o},i.h.span({className:l},"["+s+"]:"),i.h.span({className:a},c)),i.h.div({className:d},"")))}else{return i.VirtualDOM.realize(i.h.div(i.h.div({className:o},i.h.span({className:l}),i.h.span({className:a},c)),i.h.div({className:d},"")))}}else{if(s!==""){return i.VirtualDOM.realize(i.h.div(i.h.div({className:`${o} ${r}`},i.h.span({className:l},"["+s+"]:"),i.h.span({className:a},c))))}else{return i.VirtualDOM.realize(i.h.div(i.h.div({className:`${o} ${r}`},i.h.span({className:l}),i.h.span({className:a},c))))}}}e.createCellDragImage=h})(c||(c={}));var h=n(4148);var u=n(36044);var p=n(28416);const m="jp-Collapser";const g="jp-Collapser-child";const f="jp-InputCollapser";const v="jp-OutputCollapser";class _ extends h.ReactWidget{constructor(){super();this.addClass(m)}get collapsed(){return false}render(){const e=g;return p.createElement("div",{className:e,onClick:e=>this.handleClick(e)})}}class b extends _{constructor(){super();this.addClass(f)}get collapsed(){var e;const t=(e=this.parent)===null||e===void 0?void 0:e.parent;if(t){return t.inputHidden}else{return false}}handleClick(e){var t;const n=(t=this.parent)===null||t===void 0?void 0:t.parent;if(n){n.inputHidden=!n.inputHidden}this.update()}}class y extends _{constructor(){super();this.addClass(v)}get collapsed(){var e;const t=(e=this.parent)===null||e===void 0?void 0:e.parent;if(t){return t.outputHidden}else{return false}}handleClick(e){var t,n;const i=(t=this.parent)===null||t===void 0?void 0:t.parent;if(i){i.outputHidden=!i.outputHidden;if(i.outputHidden){let e=(n=i.parent)===null||n===void 0?void 0:n.node;if(e){u.ElementExt.scrollIntoViewIfNeeded(e,i.node)}}}this.update()}}var w=n(85448);const C="jp-CellHeader";const x="jp-CellFooter";class S extends w.Widget{constructor(){super();this.addClass(C)}}class k extends w.Widget{constructor(){super();this.addClass(x)}}var j=n(7005);const M="jp-InputArea";const E="jp-InputArea-prompt";const I="jp-InputPrompt";const T="jp-InputArea-editor";class D extends w.Widget{constructor(e){super();this.addClass(M);const{contentFactory:t,editorOptions:n,model:i}=e;this.model=i;this.contentFactory=t;const s=this._prompt=t.createInputPrompt();s.addClass(E);const o=this._editor=new j.CodeEditorWrapper({factory:t.editorFactory,model:i,editorOptions:n});o.addClass(T);const r=this.layout=new w.PanelLayout;r.addWidget(s);r.addWidget(o)}get editorWidget(){return this._editor}get editor(){return this._editor.editor}get promptNode(){return this._prompt.node}get renderedInput(){return this._rendered}renderInput(e){const t=this.layout;if(this._rendered){this._rendered.parent=null}this._editor.hide();this._rendered=e;t.addWidget(e)}showEditor(){if(this._rendered){this._rendered.parent=null}this._editor.show()}setPrompt(e){this._prompt.executionCount=e}dispose(){if(this.isDisposed){return}this._prompt=null;this._editor=null;this._rendered=null;super.dispose()}}(function(e){class t{constructor(e){this._editor=e.editorFactory}get editorFactory(){return this._editor}createInputPrompt(){return new L}}e.ContentFactory=t})(D||(D={}));class L extends w.Widget{constructor(){super();this._executionCount=null;this.addClass(I)}get executionCount(){return this._executionCount}set executionCount(e){this._executionCount=e;if(e===null){this.node.textContent=" "}else{this.node.textContent=`[${e||" "}]:`}}}var P=n(71372);var A=n(16914);var R=n(48016);var N=n(87519);const O=(0,N.createMutex)();function B(e){return e.type==="code"}function F(e){return e.type==="markdown"}function z(e){return e.type==="raw"}class H extends j.CodeEditor.Model{constructor(e={}){const{cell_type:t,sharedModel:n,...i}=e;super({sharedModel:n!==null&&n!==void 0?n:(0,N.createStandaloneCell)({cell_type:t!==null&&t!==void 0?t:"raw",id:e.id}),...i});this.contentChanged=new P.Signal(this);this.stateChanged=new P.Signal(this);this._metadataChanged=new P.Signal(this);this._trusted=false;this.standaloneModel=typeof e.sharedModel==="undefined";this.trusted=!!this.getMetadata("trusted")||!!e.trusted;this.sharedModel.changed.connect(this.onGenericChange,this);this.sharedModel.metadataChanged.connect(this._onMetadataChanged,this)}get metadataChanged(){return this._metadataChanged}get id(){return this.sharedModel.getId()}get metadata(){return this.sharedModel.metadata}get trusted(){return this._trusted}set trusted(e){const t=this.trusted;if(t!==e){this._trusted=e;this.onTrustedChanged(this,{newValue:e,oldValue:t})}}dispose(){if(this.isDisposed){return}this.sharedModel.changed.disconnect(this.onGenericChange,this);this.sharedModel.metadataChanged.disconnect(this._onMetadataChanged,this);super.dispose()}onTrustedChanged(e,t){}deleteMetadata(e){return this.sharedModel.deleteMetadata(e)}getMetadata(e){return this.sharedModel.getMetadata(e)}setMetadata(e,t){if(typeof t==="undefined"){this.sharedModel.deleteMetadata(e)}else{this.sharedModel.setMetadata(e,t)}}toJSON(){return this.sharedModel.toJSON()}onGenericChange(){this.contentChanged.emit(void 0)}_onMetadataChanged(e,t){this._metadataChanged.emit(t)}}class W extends H{constructor(e){var t;super(e);const n=(t=e.contentFactory)!==null&&t!==void 0?t:W.defaultContentFactory;const i=this.sharedModel.getAttachments();this._attachments=n.createAttachmentsModel({values:i});this._attachments.stateChanged.connect(this.onGenericChange,this);this._attachments.changed.connect(this._onAttachmentsChange,this);this.sharedModel.changed.connect(this._onSharedModelChanged,this)}get attachments(){return this._attachments}dispose(){if(this.isDisposed){return}this._attachments.stateChanged.disconnect(this.onGenericChange,this);this._attachments.changed.disconnect(this._onAttachmentsChange,this);this._attachments.dispose();this.sharedModel.changed.disconnect(this._onSharedModelChanged,this);super.dispose()}toJSON(){return super.toJSON()}_onAttachmentsChange(e,t){const n=this.sharedModel;O((()=>n.setAttachments(e.toJSON())))}_onSharedModelChanged(e,t){if(t.attachmentsChange){const e=this.sharedModel;O((()=>{var t;return this._attachments.fromJSON((t=e.getAttachments())!==null&&t!==void 0?t:{})}))}}}(function(e){class t{createAttachmentsModel(e){return new A.AttachmentsModel(e)}}e.ContentFactory=t;e.defaultContentFactory=new t})(W||(W={}));class V extends W{constructor(e={}){super({cell_type:"raw",...e})}get type(){return"raw"}toJSON(){return super.toJSON()}}class U extends W{constructor(e={}){super({cell_type:"markdown",...e});this.mimeType="text/x-ipythongfm"}get type(){return"markdown"}toJSON(){return super.toJSON()}}class $ extends H{constructor(e={}){var t;super({cell_type:"code",...e});this._executedCode="";this._isDirty=false;const n=(t=e===null||e===void 0?void 0:e.contentFactory)!==null&&t!==void 0?t:$.defaultContentFactory;const i=this.trusted;const s=this.sharedModel.getOutputs();this._outputs=n.createOutputArea({trusted:i,values:s});this.sharedModel.changed.connect(this._onSharedModelChanged,this);this._outputs.changed.connect(this.onGenericChange,this);this._outputs.changed.connect(this.onOutputsChange,this)}get type(){return"code"}get executionCount(){return this.sharedModel.execution_count||null}set executionCount(e){this.sharedModel.execution_count=e||null}get isDirty(){return this._isDirty}get outputs(){return this._outputs}clearExecution(){this.outputs.clear();this.executionCount=null;this._setDirty(false);this.sharedModel.deleteMetadata("execution");this.trusted=true}dispose(){if(this.isDisposed){return}this.sharedModel.changed.disconnect(this._onSharedModelChanged,this);this._outputs.changed.disconnect(this.onGenericChange,this);this._outputs.changed.disconnect(this.onOutputsChange,this);this._outputs.dispose();this._outputs=null;super.dispose()}onTrustedChanged(e,t){const n=t.newValue;if(this._outputs){this._outputs.trusted=n}if(n){const e=this.sharedModel;const t=e.getMetadata();t.trusted=true;e.setMetadata(t)}this.stateChanged.emit({name:"trusted",oldValue:t.oldValue,newValue:n})}toJSON(){return super.toJSON()}onOutputsChange(e,t){const n=this.sharedModel;O((()=>{switch(t.type){case"add":{const e=t.newValues.map((e=>e.toJSON()));n.updateOutputs(t.newIndex,t.newIndex,e);break}case"set":{const e=t.newValues.map((e=>e.toJSON()));n.updateOutputs(t.oldIndex,t.oldIndex+e.length,e);break}case"remove":n.updateOutputs(t.oldIndex,t.oldValues.length);break;default:throw new Error(`Invalid event type: ${t.type}`)}}))}_onSharedModelChanged(e,t){if(t.outputsChange){O((()=>{this.outputs.clear();e.getOutputs().forEach((e=>this._outputs.add(e)))}))}if(t.executionCountChange){if(t.executionCountChange.newValue&&(this.isDirty||!t.executionCountChange.oldValue)){this._setDirty(false)}this.stateChanged.emit({name:"executionCount",oldValue:t.executionCountChange.oldValue,newValue:t.executionCountChange.newValue})}if(t.sourceChange&&this.executionCount!==null){this._setDirty(this._executedCode!==this.sharedModel.getSource().trim())}}_setDirty(e){if(!e){this._executedCode=this.sharedModel.getSource().trim()}if(e!==this._isDirty){this._isDirty=e;this.stateChanged.emit({name:"isDirty",oldValue:!e,newValue:e})}}}(function(e){class t{createOutputArea(e){return new R.OutputAreaModel(e)}}e.ContentFactory=t;e.defaultContentFactory=new t})($||($={}));var q=n(6958);const K="jp-Placeholder";const J="jp-Placeholder-prompt jp-InputPrompt";const Z="jp-Placeholder-prompt jp-OutputPrompt";const G="jp-Placeholder-content";const Y="jp-InputPlaceholder";const X="jp-OutputPlaceholder";class Q extends w.Widget{constructor(e){var t,n,i;const s=document.createElement("div");super({node:s});const o=((t=e.translator)!==null&&t!==void 0?t:q.nullTranslator).load("jupyterlab");const r=document.createElement("div");r.className=(n=e.promptClass)!==null&&n!==void 0?n:"";s.insertAdjacentHTML("afterbegin",r.outerHTML);this._cell=document.createElement("div");this._cell.classList.add(G);this._cell.title=o.__("Click to expand");const a=this._cell.appendChild(document.createElement("div"));a.classList.add("jp-Placeholder-contentContainer");this._textContent=a.appendChild(document.createElement("span"));this._textContent.className="jp-PlaceholderText";this._textContent.innerText=(i=e.text)!==null&&i!==void 0?i:"";s.appendChild(this._cell);h.ellipsesIcon.element({container:a.appendChild(document.createElement("span")),className:"jp-MoreHorizIcon",elementPosition:"center",height:"auto",width:"32px"});this.addClass(K);this._callback=e.callback}set text(e){this._textContent.innerText=e}get text(){return this._textContent.innerText}onAfterAttach(e){super.onAfterAttach(e);this.node.addEventListener("click",this._callback)}onBeforeDetach(e){this.node.removeEventListener("click",this._callback);super.onBeforeDetach(e)}}class ee extends Q{constructor(e){super({...e,promptClass:J});this.addClass(Y)}}class te extends Q{constructor(e){super({...e,promptClass:Z});this.addClass(X)}}var ne=n(22511);var ie=n(20501);var se=n(20433);const oe="jp-mod-selected";class re extends ne.EditorSearchProvider{constructor(e){super();this.cell=e;if(!this.cell.inViewport&&!this.cell.editor){void(0,ie.signalToPromise)(e.inViewportChanged).then((([,e])=>{if(e){this.cmHandler.setEditor(this.editor)}}))}}get editor(){return this.cell.editor}get model(){return this.cell.model}}class ae extends re{constructor(e){super(e);this.currentProviderIndex=-1;this.outputsProvider=[];const t=this.cell.outputArea;this._onOutputsChanged(t,t.widgets.length).catch((e=>{console.error(`Failed to initialize search on cell outputs.`,e)}));t.outputLengthChanged.connect(this._onOutputsChanged,this);t.disposed.connect((()=>{t.outputLengthChanged.disconnect(this._onOutputsChanged)}),this)}get matchesCount(){if(!this.isActive){return 0}return super.matchesCount+this.outputsProvider.reduce(((e,t)=>{var n;return e+((n=t.matchesCount)!==null&&n!==void 0?n:0)}),0)}async clearHighlight(){await super.clearHighlight();await Promise.all(this.outputsProvider.map((e=>e.clearHighlight())))}dispose(){if(this.isDisposed){return}super.dispose();this.outputsProvider.map((e=>{e.dispose()}));this.outputsProvider.length=0}async highlightNext(e,t){if(this.matchesCount===0||!this.isActive){this.currentIndex=null}else{if(this.currentProviderIndex===-1){const e=await super.highlightNext(true,t);if(e){this.currentIndex=this.cmHandler.currentIndex;return e}else{this.currentProviderIndex=0}}while(this.currentProviderIndex{var n;return e+=(n=t.matchesCount)!==null&&n!==void 0?n:0}),0)+e.currentMatchIndex;return t}else{this.currentProviderIndex+=1}}this.currentProviderIndex=-1;this.currentIndex=null;return undefined}}async highlightPrevious(){if(this.matchesCount===0||!this.isActive){this.currentIndex=null}else{if(this.currentIndex===null){this.currentProviderIndex=this.outputsProvider.length-1}while(this.currentProviderIndex>=0){const e=this.outputsProvider[this.currentProviderIndex];const t=await e.highlightPrevious(false);if(t){this.currentIndex=super.matchesCount+this.outputsProvider.slice(0,this.currentProviderIndex).reduce(((e,t)=>{var n;return e+=(n=t.matchesCount)!==null&&n!==void 0?n:0}),0)+e.currentMatchIndex;return t}else{this.currentProviderIndex-=1}}const e=await super.highlightPrevious();if(e){this.currentIndex=this.cmHandler.currentIndex;return e}else{this.currentIndex=null;return undefined}}}async startQuery(e,t){await super.startQuery(e,t);if((t===null||t===void 0?void 0:t.output)!==false&&this.isActive){await Promise.all(this.outputsProvider.map((t=>t.startQuery(e))))}}async endQuery(){var e;await super.endQuery();if(((e=this.filters)===null||e===void 0?void 0:e.output)!==false&&this.isActive){await Promise.all(this.outputsProvider.map((e=>e.endQuery())))}}async _onOutputsChanged(e,t){var n;this.outputsProvider.forEach((e=>{e.dispose()}));this.outputsProvider.length=0;this.currentProviderIndex=-1;this.outputsProvider=this.cell.outputArea.widgets.map((e=>new se.GenericSearchProvider(e)));if(this.isActive&&this.query&&((n=this.filters)===null||n===void 0?void 0:n.output)!==false){await Promise.all([this.outputsProvider.map((e=>{void e.startQuery(this.query)}))])}this._stateChanged.emit()}}class le extends re{constructor(e){super(e);this._unrenderedByHighligh=false;this.renderedProvider=new se.GenericSearchProvider(e.renderer)}async clearHighlight(){await super.clearHighlight();await this.renderedProvider.clearHighlight()}dispose(){if(this.isDisposed){return}super.dispose();this.renderedProvider.dispose()}async endQuery(){await super.endQuery();await this.renderedProvider.endQuery()}async highlightNext(){let e=undefined;if(!this.isActive){return e}const t=this.cell;if(t.rendered&&this.matchesCount>0){this._unrenderedByHighligh=true;const e=(0,ie.signalToPromise)(t.renderedChanged);t.rendered=false;await e}e=await super.highlightNext();return e}async highlightPrevious(){let e=undefined;const t=this.cell;if(t.rendered&&this.matchesCount>0){this._unrenderedByHighligh=true;const e=(0,ie.signalToPromise)(t.renderedChanged);t.rendered=false;await e}e=await super.highlightPrevious();return e}async startQuery(e,t){await super.startQuery(e,t);const n=this.cell;if(n.rendered){this.onRenderedChanged(n,n.rendered)}n.renderedChanged.connect(this.onRenderedChanged,this)}async replaceAllMatches(e){const t=await super.replaceAllMatches(e);if(this.cell.rendered){this.cell.update()}return t}onRenderedChanged(e,t){var n;if(!this._unrenderedByHighligh){this.currentIndex=null}this._unrenderedByHighligh=false;if(this.isActive){if(t){void this.renderedProvider.startQuery(this.query)}else{(n=e.editor)===null||n===void 0?void 0:n.setCursorPosition({column:0,line:0});void this.renderedProvider.endQuery()}}}}function de(e){if(e.isPlaceholder()){return new re(e)}switch(e.model.type){case"code":return new ae(e);case"markdown":return new le(e);default:return new re(e)}}var ce=n(66143);var he=n(23635);var ue=n(17321);var pe=n(5596);var me=n(58740);var ge=n(28821);var fe=n(95905);const ve="jp-CellResizeHandle";const _e="jp-mod-resizedCell";class be extends w.Widget{constructor(e){super();this.targetNode=e;this._isActive=false;this._isDragging=false;this.sizeChanged=new P.Signal(this);this.addClass(ve);this._resizer=new fe.Throttler((e=>this._resize(e)),50)}dispose(){this._resizer.dispose();super.dispose()}handleEvent(e){var t,n;switch(e.type){case"dblclick":(t=this.targetNode.parentNode)===null||t===void 0?void 0:t.childNodes.forEach((e=>{e.classList.remove(_e)}));document.documentElement.style.setProperty("--jp-side-by-side-output-size",`1fr`);this._isActive=false;break;case"mousedown":this._isDragging=true;if(!this._isActive){(n=this.targetNode.parentNode)===null||n===void 0?void 0:n.childNodes.forEach((e=>{e.classList.add(_e)}));this._isActive=true}window.addEventListener("mousemove",this);window.addEventListener("mouseup",this);break;case"mousemove":{if(this._isActive&&this._isDragging){void this._resizer.invoke(e)}break}case"mouseup":this._isDragging=false;window.removeEventListener("mousemove",this);window.removeEventListener("mouseup",this);break;default:break}}onAfterAttach(e){this.node.addEventListener("dblclick",this);this.node.addEventListener("mousedown",this);super.onAfterAttach(e)}onBeforeDetach(e){this.node.removeEventListener("dblclick",this);this.node.removeEventListener("mousedown",this);super.onBeforeDetach(e)}_resize(e){const{width:t,x:n}=this.targetNode.getBoundingClientRect();const i=e.clientX-n;const s=t/i-1;if(0{this._displayChanged.emit()}),0);this._syncCollapse=false;this._syncEditable=false;this.addClass(ye);const o=this._model=e.model;this.contentFactory=e.contentFactory;this.layout=(t=e.layout)!==null&&t!==void 0?t:new w.PanelLayout;this.translator=(n=e.translator)!==null&&n!==void 0?n:q.nullTranslator;this._editorConfig=(i=e.editorConfig)!==null&&i!==void 0?i:{};this._placeholder=true;this._inViewport=false;this.placeholder=(s=e.placeholder)!==null&&s!==void 0?s:true;o.metadataChanged.connect(this.onMetadataChanged,this)}initializeState(){this.loadCollapseState();this.loadEditableState();return this}get displayChanged(){return this._displayChanged}get inViewport(){return this._inViewport}set inViewport(e){if(this._inViewport!==e){this._inViewport=e;this._inViewportChanged.emit(this._inViewport)}}get inViewportChanged(){return this._inViewportChanged}get placeholder(){return this._placeholder}set placeholder(e){if(this._placeholder!==e&&e===false){this.initializeDOM();this._placeholder=e;this._ready.resolve()}}get promptNode(){if(this.placeholder){return null}if(!this._inputHidden){return this._input.promptNode}else{return this._inputPlaceholder.node.firstElementChild}}get editorWidget(){var e,t;return(t=(e=this._input)===null||e===void 0?void 0:e.editorWidget)!==null&&t!==void 0?t:null}get editor(){var e,t;return(t=(e=this._input)===null||e===void 0?void 0:e.editor)!==null&&t!==void 0?t:null}get editorConfig(){return this._editorConfig}get headings(){return new Array}get model(){return this._model}get inputArea(){return this._input}get readOnly(){return this._readOnly}set readOnly(e){if(e===this._readOnly){return}this._readOnly=e;if(this.syncEditable){this.saveEditableState()}this.update()}isPlaceholder(){return this.placeholder}saveEditableState(){const{sharedModel:e}=this.model;const t=e.getMetadata("editable");if(this.readOnly&&t===false||!this.readOnly&&t===undefined){return}if(this.readOnly){e.setMetadata("editable",false)}else{e.deleteMetadata("editable")}}loadEditableState(){this.readOnly=this.model.sharedModel.getMetadata("editable")===false}get ready(){return this._ready.promise}setPrompt(e){var t;this.prompt=e;(t=this._input)===null||t===void 0?void 0:t.setPrompt(e)}get inputHidden(){return this._inputHidden}set inputHidden(e){var t;if(this._inputHidden===e){return}if(!this.placeholder){const n=this._inputWrapper.layout;if(e){this._input.parent=null;if(this._inputPlaceholder){this._inputPlaceholder.text=(t=this.model.sharedModel.getSource().split("\n"))===null||t===void 0?void 0:t[0]}n.addWidget(this._inputPlaceholder)}else{this._inputPlaceholder.parent=null;n.addWidget(this._input)}}this._inputHidden=e;if(this.syncCollapse){this.saveCollapseState()}this.handleInputHidden(e)}saveCollapseState(){const e={...this.model.getMetadata("jupyter")};if(this.inputHidden&&e.source_hidden===true||!this.inputHidden&&e.source_hidden===undefined){return}if(this.inputHidden){e.source_hidden=true}else{delete e.source_hidden}if(Object.keys(e).length===0){this.model.deleteMetadata("jupyter")}else{this.model.setMetadata("jupyter",e)}}loadCollapseState(){var e;const t=(e=this.model.getMetadata("jupyter"))!==null&&e!==void 0?e:{};this.inputHidden=!!t.source_hidden}handleInputHidden(e){return}get syncCollapse(){return this._syncCollapse}set syncCollapse(e){if(this._syncCollapse===e){return}this._syncCollapse=e;if(e){this.loadCollapseState()}}get syncEditable(){return this._syncEditable}set syncEditable(e){if(this._syncEditable===e){return}this._syncEditable=e;if(e){this.loadEditableState()}}clone(){const e=this.constructor;return new e({model:this.model,contentFactory:this.contentFactory,placeholder:false,translator:this.translator})}dispose(){if(this.isDisposed){return}this._resizeDebouncer.dispose();this._input=null;this._model=null;this._inputWrapper=null;this._inputPlaceholder=null;super.dispose()}updateEditorConfig(e){this._editorConfig={...this._editorConfig,...e};if(this.editor){this.editor.setOptions(this._editorConfig)}}initializeDOM(){if(!this.placeholder){return}const e=this.contentFactory;const t=this._model;const n=e.createCellHeader();n.addClass(we);this.layout.addWidget(n);const i=this._inputWrapper=new w.Panel;i.addClass(xe);const s=new b;s.addClass(Me);const o=this._input=new D({model:t,contentFactory:e,editorOptions:this.getEditorOptions()});o.addClass(ke);i.addWidget(s);i.addWidget(o);this.layout.addWidget(i);this._inputPlaceholder=new ee({callback:()=>{this.inputHidden=!this.inputHidden},text:o.model.sharedModel.getSource().split("\n")[0],translator:this.translator});o.model.contentChanged.connect(((e,t)=>{var n;if(this._inputPlaceholder&&this.inputHidden){this._inputPlaceholder.text=(n=e.sharedModel.getSource().split("\n"))===null||n===void 0?void 0:n[0]}}));if(this.inputHidden){o.parent=null;i.layout.addWidget(this._inputPlaceholder)}const r=this.contentFactory.createCellFooter();r.addClass(Ce);this.layout.addWidget(r)}getEditorOptions(){return{config:this.editorConfig}}onBeforeAttach(e){if(this.placeholder){this.placeholder=false}}onAfterAttach(e){this.update()}onActivateRequest(e){var t;(t=this.editor)===null||t===void 0?void 0:t.focus()}onResize(e){void this._resizeDebouncer.invoke()}onUpdateRequest(e){var t,n;if(!this._model){return}if(((t=this.editor)===null||t===void 0?void 0:t.getOption("readOnly"))!==this._readOnly){(n=this.editor)===null||n===void 0?void 0:n.setOption("readOnly",this._readOnly)}}onContentChanged(){var e;if(this.inputHidden&&this._inputPlaceholder){this._inputPlaceholder.text=(e=this.model.sharedModel.getSource().split("\n"))===null||e===void 0?void 0:e[0]}}onMetadataChanged(e,t){switch(t.key){case"jupyter":if(this.syncCollapse){this.loadCollapseState()}break;case"editable":if(this.syncEditable){this.loadEditableState()}break;default:break}}}(function(e){let t;(function(e){e[e["HTML"]=0]="HTML";e[e["Markdown"]=1]="Markdown"})(t=e.HeadingType||(e.HeadingType={}));class n{constructor(e){this._editorFactory=e.editorFactory}get editorFactory(){return this._editorFactory}createCellHeader(){return new S}createCellFooter(){return new k}createInputPrompt(){return new L}createOutputPrompt(){return new R.OutputPrompt}createStdin(e){return new R.Stdin(e)}}e.ContentFactory=n})(We||(We={}));class Ve extends w.PanelLayout{onBeforeAttach(e){let t=true;const n=this.parent.node.firstElementChild;for(const i of this){if(n){if(i.node===n){t=false}else{ge.MessageLoop.sendMessage(i,e);if(t){this.parent.node.insertBefore(i.node,n)}else{this.parent.node.appendChild(i.node)}if(!this.parent.isHidden){i.setFlag(w.Widget.Flag.IsVisible)}ge.MessageLoop.sendMessage(i,w.Widget.Msg.AfterAttach)}}}}onAfterDetach(e){for(const t of this){if(!t.hasClass(Se)&&t.node.isConnected){ge.MessageLoop.sendMessage(t,w.Widget.Msg.BeforeDetach);this.parent.node.removeChild(t.node);ge.MessageLoop.sendMessage(t,e)}}}}class Ue extends We{constructor(e){var t;super({layout:new Ve,...e,placeholder:true});this._headingsCache=null;this._outputHidden=false;this._outputWrapper=null;this._outputPlaceholder=null;this._syncScrolled=false;this.addClass(Te);const n=this.translator.load("jupyterlab");const i=this._rendermime=e.rendermime;const s=this.contentFactory;const o=this.model;this.maxNumberOutputs=e.maxNumberOutputs;const r=o.outputs.length===0?n.__("Code Cell Content"):n.__("Code Cell Content with Output");this.node.setAttribute("aria-label",r);const a=this._output=new R.OutputArea({model:this.model.outputs,rendermime:i,contentFactory:s,maxNumberOutputs:this.maxNumberOutputs,translator:this.translator,promptOverlay:true,inputHistoryScope:e.inputHistoryScope});a.addClass(je);a.toggleScrolling.connect((()=>{this.outputsScrolled=!this.outputsScrolled}));this.placeholder=(t=e.placeholder)!==null&&t!==void 0?t:true;o.outputs.changed.connect(this.onOutputChanged,this);o.outputs.stateChanged.connect(this.onOutputChanged,this);o.stateChanged.connect(this.onStateChanged,this)}initializeDOM(){if(!this.placeholder){return}super.initializeDOM();this.setPrompt(this.prompt);const e=this._outputWrapper=new w.Panel;e.addClass(Se);const t=new y;t.addClass(Ee);e.addWidget(t);if(this.model.outputs.length===0){this.addClass(Be)}this._output.outputLengthChanged.connect(this._outputLengthHandler,this);e.addWidget(this._output);const n=this.layout;const i=new be(this.node);i.sizeChanged.connect(this._sizeChangedHandler,this);n.insertWidget(n.widgets.length-1,i);n.insertWidget(n.widgets.length-1,e);if(this.model.isDirty){this.addClass(Ie)}this._outputPlaceholder=new te({callback:()=>{this.outputHidden=!this.outputHidden},text:this.getOutputPlaceholderText(),translator:this.translator});const s=e.layout;if(this.outputHidden){s.removeWidget(this._output);s.addWidget(this._outputPlaceholder);if(this.inputHidden&&!e.isHidden){this._outputWrapper.hide()}}const o=this.translator.load("jupyterlab");const r=this.model.outputs.length===0?o.__("Code Cell Content"):o.__("Code Cell Content with Output");this.node.setAttribute("aria-label",r)}getOutputPlaceholderText(){var e;const t=this.model.outputs.get(0);const n=t===null||t===void 0?void 0:t.data;if(!n){return undefined}const i=["text/html","image/svg+xml","application/pdf","text/markdown","text/plain","application/vnd.jupyter.stderr","application/vnd.jupyter.stdout","text"];const s=i.find((e=>{const n=t.data[e];return(Array.isArray(n)?typeof n[0]:typeof n)==="string"}));const o=t.data[s!==null&&s!==void 0?s:""];if(o!==undefined){return(e=Array.isArray(o)?o:o===null||o===void 0?void 0:o.split("\n"))===null||e===void 0?void 0:e.find((e=>e!==""))}return undefined}initializeState(){super.initializeState();this.loadScrolledState();this.setPrompt(`${this.model.executionCount||""}`);return this}get headings(){if(!this._headingsCache){const e=[];const t=this.model.outputs;for(let n=0;n{if(!o&&ue.TableOfContentsUtils.Markdown.isMarkdown(e)){o=e}else if(!s&&ue.TableOfContentsUtils.isHTML(e)){s=e}}));if(s){e.push(...ue.TableOfContentsUtils.getHTMLHeadings(this._rendermime.sanitizer.sanitize(i.data[s])).map((e=>({...e,outputIndex:n,type:We.HeadingType.HTML}))))}else if(o){e.push(...ue.TableOfContentsUtils.Markdown.getHeadings(i.data[o]).map((e=>({...e,outputIndex:n,type:We.HeadingType.Markdown}))))}}this._headingsCache=e}return[...this._headingsCache]}get outputArea(){return this._output}get outputHidden(){return this._outputHidden}set outputHidden(e){var t;if(this._outputHidden===e){return}if(!this.placeholder){const n=this._outputWrapper.layout;if(e){n.removeWidget(this._output);n.addWidget(this._outputPlaceholder);if(this.inputHidden&&!this._outputWrapper.isHidden){this._outputWrapper.hide()}if(this._outputPlaceholder){this._outputPlaceholder.text=(t=this.getOutputPlaceholderText())!==null&&t!==void 0?t:""}}else{if(this._outputWrapper.isHidden){this._outputWrapper.show()}n.removeWidget(this._outputPlaceholder);n.addWidget(this._output)}}this._outputHidden=e;if(this.syncCollapse){this.saveCollapseState()}}saveCollapseState(){this.model.sharedModel.transact((()=>{super.saveCollapseState();const e=this.model.getMetadata("collapsed");if(this.outputHidden&&e===true||!this.outputHidden&&e===undefined){return}if(this.outputHidden){this.model.setMetadata("collapsed",true)}else{this.model.deleteMetadata("collapsed")}}),false)}loadCollapseState(){super.loadCollapseState();this.outputHidden=!!this.model.getMetadata("collapsed")}get outputsScrolled(){return this._outputsScrolled}set outputsScrolled(e){this.toggleClass("jp-mod-outputsScrolled",e);this._outputsScrolled=e;if(this.syncScrolled){this.saveScrolledState()}}saveScrolledState(){const e=this.model.getMetadata("scrolled");if(this.outputsScrolled&&e===true||!this.outputsScrolled&&e===undefined){return}if(this.outputsScrolled){this.model.setMetadata("scrolled",true)}else{this.model.deleteMetadata("scrolled")}}loadScrolledState(){if(this.model.getMetadata("scrolled")==="auto"){this.outputsScrolled=false}else{this.outputsScrolled=!!this.model.getMetadata("scrolled")}}get syncScrolled(){return this._syncScrolled}set syncScrolled(e){if(this._syncScrolled===e){return}this._syncScrolled=e;if(e){this.loadScrolledState()}}handleInputHidden(e){if(this.placeholder){return}if(!e&&this._outputWrapper.isHidden){this._outputWrapper.show()}else if(e&&!this._outputWrapper.isHidden&&this._outputHidden){this._outputWrapper.hide()}}clone(){const e=this.constructor;return new e({model:this.model,contentFactory:this.contentFactory,rendermime:this._rendermime,placeholder:false,translator:this.translator})}cloneOutputArea(){return new R.SimplifiedOutputArea({model:this.model.outputs,contentFactory:this.contentFactory,rendermime:this._rendermime})}dispose(){if(this.isDisposed){return}this._output.outputLengthChanged.disconnect(this._outputLengthHandler,this);this._rendermime=null;this._output=null;this._outputWrapper=null;this._outputPlaceholder=null;super.dispose()}onStateChanged(e,t){switch(t.name){case"executionCount":this.setPrompt(`${e.executionCount||""}`);break;case"isDirty":if(e.isDirty){this.addClass(Ie)}else{this.removeClass(Ie)}break;default:break}}onOutputChanged(){var e;this._headingsCache=null;if(this._outputPlaceholder&&this.outputHidden){this._outputPlaceholder.text=(e=this.getOutputPlaceholderText())!==null&&e!==void 0?e:""}}onMetadataChanged(e,t){switch(t.key){case"scrolled":if(this.syncScrolled){this.loadScrolledState()}break;case"collapsed":if(this.syncCollapse){this.loadCollapseState()}break;default:break}super.onMetadataChanged(e,t)}_outputLengthHandler(e,t){const n=t===0?true:false;this.toggleClass(Be,n);const i=this.translator.load("jupyterlab");const s=n?i.__("Code Cell Content"):i.__("Code Cell Content with Output");this.node.setAttribute("aria-label",s)}_sizeChangedHandler(e){this._displayChanged.emit()}}(function(e){async function t(e,t,n){var i;const s=e.model;const o=s.sharedModel.getSource();if(!o.trim()||!((i=t.session)===null||i===void 0?void 0:i.kernel)){s.sharedModel.transact((()=>{s.clearExecution()}),false);return}const r={cellId:s.sharedModel.getId()};n={...s.metadata,...n,...r};const{recordTiming:a}=n;s.sharedModel.transact((()=>{s.clearExecution();e.outputHidden=false}),false);e.setPrompt("*");s.trusted=true;let l;try{const i=R.OutputArea.execute(o,e.outputArea,t,n);if(a){const t=e=>{let t;switch(e.header.msg_type){case"status":t=`status.${e.content.execution_state}`;break;case"execute_input":t="execute_input";break;default:return true}const n=e.header.date||(new Date).toISOString();const i=Object.assign({},s.getMetadata("execution"));i[`iopub.${t}`]=n;s.setMetadata("execution",i);return true};e.outputArea.future.registerMessageHook(t)}else{s.deleteMetadata("execution")}l=e.outputArea.future;const r=await i;s.executionCount=r.content.execution_count;if(a){const e=Object.assign({},s.getMetadata("execution"));const t=r.metadata.started;if(t){e["shell.execute_reply.started"]=t}const n=r.header.date;e["shell.execute_reply"]=n||(new Date).toISOString();s.setMetadata("execution",e)}return r}catch(d){if(l&&!e.isDisposed&&e.outputArea.future===l){e.setPrompt("")}throw d}}e.execute=t})(Ue||(Ue={}));class $e extends We{handleEvent(e){switch(e.type){case"lm-dragover":this._evtDragOver(e);break;case"lm-drop":this._evtDrop(e);break;default:break}}getEditorOptions(){var e,t;const n=(e=super.getEditorOptions())!==null&&e!==void 0?e:{};n.extensions=[...(t=n.extensions)!==null&&t!==void 0?t:[],ce.EditorView.domEventHandlers({dragenter:e=>{e.preventDefault()},dragover:e=>{e.preventDefault()},drop:e=>{this._evtNativeDrop(e)},paste:e=>{this._evtPaste(e)}})];return n}onAfterAttach(e){super.onAfterAttach(e);const t=this.node;t.addEventListener("lm-dragover",this);t.addEventListener("lm-drop",this)}onBeforeDetach(e){const t=this.node;t.removeEventListener("lm-dragover",this);t.removeEventListener("lm-drop",this);super.onBeforeDetach(e)}_evtDragOver(e){const t=(0,me.some)(he.imageRendererFactory.mimeTypes,(t=>{if(!e.mimeData.hasData(He)){return false}const n=e.mimeData.getData(He);return n.model.mimetype===t}));if(!t){return}e.preventDefault();e.stopPropagation();e.dropAction=e.proposedAction}_evtPaste(e){if(e.clipboardData){const t=e.clipboardData.items;for(let n=0;n{var t,n;(n=(t=this.editor).replaceSelection)===null||n===void 0?void 0:n.call(t,e)}))}this._attachFiles(e.clipboardData.items)}}e.preventDefault()}_evtNativeDrop(e){if(e.dataTransfer){this._attachFiles(e.dataTransfer.items)}e.preventDefault()}_evtDrop(e){const t=e.mimeData.types().filter((t=>{if(t===He){const t=e.mimeData.getData(He);return he.imageRendererFactory.mimeTypes.indexOf(t.model.mimetype)!==-1}return he.imageRendererFactory.mimeTypes.indexOf(t)!==-1}));if(t.length===0){return}e.preventDefault();e.stopPropagation();if(e.proposedAction==="none"){e.dropAction="none";return}e.dropAction="copy";for(const n of t){if(n===He){const{model:t,withContent:n}=e.mimeData.getData(He);if(t.type==="file"){const e=this._generateURI(t.name);this.updateCellSourceWithAttachment(t.name,e);void n().then((t=>{this.model.attachments.set(e,{[t.mimetype]:t.content})}))}}else{const t=this._generateURI();this.model.attachments.set(t,{[n]:e.mimeData.getData(n)});this.updateCellSourceWithAttachment(t,t)}}}_attachFiles(e){for(let t=0;t{const{href:i,protocol:s}=ie.URLExt.parse(t.result);if(s!=="data:"){return}const o=/([\w+\/\+]+)?(?:;(charset=[\w\d-]*|base64))?,(.*)/;const r=o.exec(i);if(!r||r.length!==4){return}const a=r[1];const l=r[3];const d={[a]:l};const c=this._generateURI(e.name);if(a.startsWith("image/")){this.model.attachments.set(c,d);this.updateCellSourceWithAttachment(e.name,c)}};t.onerror=t=>{console.error(`Failed to attach ${e.name}`+t)};t.readAsDataURL(e)}_generateURI(e=""){const t=e.lastIndexOf(".");return t!==-1?pe.UUID.uuid4().concat(e.substring(t)):pe.UUID.uuid4()}}class qe extends $e{constructor(e){var t,n,i,s;super({...e,placeholder:true});this._headingsCache=null;this._headingCollapsedChanged=new P.Signal(this);this._prevText="";this._rendered=true;this._renderedChanged=new P.Signal(this);this._showEditorForReadOnlyMarkdown=true;this.addClass(De);this.model.contentChanged.connect(this.onContentChanged,this);const o=this.translator.load("jupyterlab");this.node.setAttribute("aria-label",o.__("Markdown Cell Content"));this._rendermime=e.rendermime.clone({resolver:new A.AttachmentsResolver({parent:(t=e.rendermime.resolver)!==null&&t!==void 0?t:undefined,model:this.model.attachments})});this._renderer=this._rendermime.createRenderer("text/markdown");this._renderer.addClass(Le);this._headingCollapsed=(n=this.model.getMetadata(Pe))!==null&&n!==void 0?n:false;this._showEditorForReadOnlyMarkdown=(i=e.showEditorForReadOnlyMarkdown)!==null&&i!==void 0?i:qe.defaultShowEditorForReadOnlyMarkdown;this.placeholder=(s=e.placeholder)!==null&&s!==void 0?s:true;this._monitor=new ie.ActivityMonitor({signal:this.model.contentChanged,timeout:ze});this.ready.then((()=>{if(this.isDisposed){return}this._monitor.activityStopped.connect((()=>{if(this._rendered){this.update()}}),this)})).catch((e=>{console.error("Failed to be ready",e)}))}get headingInfo(){const e=this.headings;if(e.length>0){const{text:t,level:n}=e.reduce(((e,t)=>e.level<=t.level?e:t),e[0]);return{text:t,level:n}}else{return{text:"",level:-1}}}get headings(){if(!this._headingsCache){const e=ue.TableOfContentsUtils.Markdown.getHeadings(this.model.sharedModel.getSource());this._headingsCache=e.map((e=>({...e,type:We.HeadingType.Markdown})))}return[...this._headingsCache]}get headingCollapsed(){return this._headingCollapsed}set headingCollapsed(e){var t;if(this._headingCollapsed!==e){this._headingCollapsed=e;if(e){this.model.setMetadata(Pe,e)}else if(this.model.getMetadata(Pe)!=="undefined"){this.model.deleteMetadata(Pe)}const n=(t=this.inputArea)===null||t===void 0?void 0:t.promptNode.getElementsByClassName(Ae)[0];if(n){if(e){n.classList.add("jp-mod-collapsed")}else{n.classList.remove("jp-mod-collapsed")}}this.renderCollapseButtons(this._renderer);this._headingCollapsedChanged.emit(this._headingCollapsed)}}get numberChildNodes(){return this._numberChildNodes}set numberChildNodes(e){this._numberChildNodes=e;this.renderCollapseButtons(this._renderer)}get headingCollapsedChanged(){return this._headingCollapsedChanged}get rendered(){return this._rendered}set rendered(e){if(this.readOnly&&this._showEditorForReadOnlyMarkdown===false){e=true}if(e===this._rendered){return}this._rendered=e;this._handleRendered().then((()=>{this._displayChanged.emit();this._renderedChanged.emit(this._rendered)})).catch((e=>{console.error("Failed to render",e)}))}get renderedChanged(){return this._renderedChanged}get showEditorForReadOnly(){return this._showEditorForReadOnlyMarkdown}set showEditorForReadOnly(e){this._showEditorForReadOnlyMarkdown=e;if(e===false){this.rendered=true}}get renderer(){return this._renderer}dispose(){if(this.isDisposed){return}this._monitor.dispose();super.dispose()}initializeDOM(){if(!this.placeholder){return}super.initializeDOM();this.renderCollapseButtons(this._renderer);this._handleRendered().catch((e=>{console.error("Failed to render",e)}))}maybeCreateCollapseButton(){var e;const{level:t}=this.headingInfo;if(t>0&&((e=this.inputArea)===null||e===void 0?void 0:e.promptNode.getElementsByClassName(Ae).length)==0){let e=this.inputArea.promptNode.appendChild(document.createElement("button"));e.className=`jp-Button ${Ae}`;e.setAttribute("data-heading-level",t.toString());if(this._headingCollapsed){e.classList.add("jp-mod-collapsed")}else{e.classList.remove("jp-mod-collapsed")}e.onclick=e=>{this.headingCollapsed=!this.headingCollapsed}}}maybeCreateOrUpdateExpandButton(){const e=this.node.getElementsByClassName(Re);let t=this.translator.load("jupyterlab");let n=t._n("%1 cell hidden","%1 cells hidden",this._numberChildNodes);let i=this.headingCollapsed&&this._numberChildNodes>0&&e.length==0;if(i){const e=document.createElement("button");e.className=`jp-mod-minimal jp-Button ${Re}`;h.addIcon.render(e);const t=document.createElement("div");t.textContent=n;e.appendChild(t);e.onclick=()=>{this.headingCollapsed=false};this.node.appendChild(e)}let s=this.headingCollapsed&&this._numberChildNodes>0&&e.length==1;if(s){e[0].childNodes[1].textContent=n}let o=!(this.headingCollapsed&&this._numberChildNodes>0);if(o){for(const t of e){this.node.removeChild(t)}}}onContentChanged(){super.onContentChanged();this._headingsCache=null}renderCollapseButtons(e){this.node.classList.toggle(Pe,this._headingCollapsed);this.maybeCreateCollapseButton();this.maybeCreateOrUpdateExpandButton()}renderInput(e){this.addClass(Oe);if(!this.placeholder&&!this.isDisposed){this.renderCollapseButtons(e);this.inputArea.renderInput(e)}}showEditor(){this.removeClass(Oe);if(!this.placeholder&&!this.isDisposed){this.inputArea.showEditor();let e=(this.model.sharedModel.getSource().match(/^#+/g)||[""])[0].length;if(e>0){this.inputArea.editor.setCursorPosition({column:e+1,line:0})}}}onUpdateRequest(e){this._handleRendered().catch((e=>{console.error("Failed to render",e)}));super.onUpdateRequest(e)}updateCellSourceWithAttachment(e,t){var n,i;const s=`![${e}](attachment:${t!==null&&t!==void 0?t:e})`;(i=(n=this.editor)===null||n===void 0?void 0:n.replaceSelection)===null||i===void 0?void 0:i.call(n,s)}async _handleRendered(){if(!this._rendered){this.showEditor()}else{await this._updateRenderedInput();if(this._rendered){this.renderInput(this._renderer)}}}_updateRenderedInput(){if(this.placeholder){return Promise.resolve()}const e=this.model;const t=e&&e.sharedModel.getSource()||Fe;if(t!==this._prevText){const e=new he.MimeModel({data:{"text/markdown":t}});this._prevText=t;return this._renderer.renderModel(e)}return Promise.resolve()}clone(){const e=this.constructor;return new e({model:this.model,contentFactory:this.contentFactory,rendermime:this._rendermime,placeholder:false,translator:this.translator})}}(function(e){e.defaultShowEditorForReadOnlyMarkdown=true})(qe||(qe={}));class Ke extends We{constructor(e){super(e);this.addClass(Ne);const t=this.translator.load("jupyterlab");this.node.setAttribute("aria-label",t.__("Raw Cell Content"))}clone(){const e=this.constructor;return new e({model:this.model,contentFactory:this.contentFactory,placeholder:false,translator:this.translator})}}},5956:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(79536);var r=n(98896);var a=n(22748);var l=n(49914);var d=n(38613);var c=n(37935);var h=n(59240);var u=n(5333);var p=n(99434);var m=n(93379);var g=n.n(m);var f=n(7795);var v=n.n(f);var _=n(90569);var b=n.n(_);var y=n(3565);var w=n.n(y);var C=n(19216);var x=n.n(C);var S=n(44589);var k=n.n(S);var j=n(90346);var M={};M.styleTagTransform=k();M.setAttributes=w();M.insert=b().bind(null,"head");M.domAPI=v();M.insertStyleElement=x();var E=g()(j.Z,M);const I=j.Z&&j.Z.locals?j.Z.locals:undefined},94131:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>_});var i=n(54729);var s=n(28416);var o=n.n(s);var r=n(4148);var a=n(58740);var l=n(6958);const d="jp-CellTags";const c="jp-CellTags-Tag";const h="jp-CellTags-Applied";const u="jp-CellTags-Unapplied";const p="jp-CellTags-Holder";const m="jp-CellTags-Add";const g="jp-CellTags-Empty";class f{constructor(e,t){this._tracker=e;this._translator=t||l.nullTranslator;this._trans=this._translator.load("jupyterlab");this._editing=false}addTag(e,t){const n=e.formData;if(t&&!n.includes(t)){n.push(t);e.formContext.updateMetadata({[e.name]:n},true)}}pullTags(){var e,t;const n=(e=this._tracker)===null||e===void 0?void 0:e.currentWidget;const i=(t=n===null||n===void 0?void 0:n.model)===null||t===void 0?void 0:t.cells;if(i===undefined){return[]}const s=(0,a.reduce)(i,((e,t)=>{var n;const i=(n=t.getMetadata("tags"))!==null&&n!==void 0?n:[];return[...e,...i]}),[]);return[...new Set(s)].filter((e=>e!==""))}_emptyAddTag(e){e.value="";e.style.width="";e.classList.add(g)}_onAddTagKeyDown(e,t){const n=t.target;if(t.ctrlKey)return;if(t.key==="Enter"){this.addTag(e,n.value)}else if(t.key==="Escape"){this._emptyAddTag(n)}}_onAddTagFocus(e){if(!this._editing){e.target.blur()}}_onAddTagBlur(e){if(this._editing){this._editing=false;this._emptyAddTag(e)}}_onChange(e){if(!e.target.value){this._emptyAddTag(e.target)}else{e.target.classList.remove(g);const t=document.createElement("span");t.className=m;t.textContent=e.target.value;document.body.appendChild(t);e.target.style.setProperty("width",`calc(${t.getBoundingClientRect().width}px + var(--jp-add-tag-extra-width))`);document.body.removeChild(t)}}_onAddTagClick(e,t){const n=t.target.closest("div");const i=n===null||n===void 0?void 0:n.childNodes[0];if(!this._editing){this._editing=true;i.value="";i.focus()}else if(t.target!==i){this.addTag(e,i.value)}t.preventDefault()}_onTagClick(e,t){const n=e.formData;if(n.includes(t)){n.splice(n.indexOf(t),1)}else{n.push(t)}e.formContext.updateMetadata({[e.name]:n},true)}render(e){const t=this.pullTags();return o().createElement("div",{className:d},o().createElement("div",{className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem"},"Cell Tags"),t&&t.map(((t,n)=>o().createElement("div",{key:n,className:`${c} ${e.formData.includes(t)?h:u}`,onClick:()=>this._onTagClick(e,t)},o().createElement("div",{className:p},o().createElement("span",null,t),e.formData.includes(t)&&o().createElement(r.LabIcon.resolveReact,{icon:r.checkIcon,tag:"span",elementPosition:"center",height:"18px",width:"18px",marginLeft:"5px",marginRight:"-3px"}))))),o().createElement("div",{className:`${c} ${u}`},o().createElement("div",{className:p,onMouseDown:t=>this._onAddTagClick(e,t)},o().createElement("input",{className:`${m} ${g}`,type:"text",placeholder:this._trans.__("Add Tag"),onKeyDown:t=>this._onAddTagKeyDown(e,t),onFocus:e=>this._onAddTagFocus(e),onBlur:e=>this._onAddTagBlur(e.target),onChange:e=>{this._onChange(e)}}),o().createElement(r.LabIcon.resolveReact,{icon:r.addIcon,tag:"span",height:"18px",width:"18px",marginLeft:"5px",marginRight:"-3px"}))))}}const v={id:"@jupyterlab/celltags-extension:plugin",description:"Adds the cell tags editor.",autoStart:true,requires:[i.INotebookTracker],optional:[r.IFormRendererRegistry],activate:(e,t,n)=>{if(n){const e={fieldRenderer:e=>new f(t).render(e)};n.addRenderer("@jupyterlab/celltags-extension:plugin.renderer",e)}}};const _=[v]},48641:(e,t,n)=>{"use strict";var i=n(34849);var s=n(90516);var o=n(88164);var r=n(93379);var a=n.n(r);var l=n(7795);var d=n.n(l);var c=n(90569);var h=n.n(c);var u=n(3565);var p=n.n(u);var m=n(19216);var g=n.n(m);var f=n(44589);var v=n.n(f);var _=n(30289);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.Z,b);const w=_.Z&&_.Z.locals?_.Z.locals:undefined},95131:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CodeEditor:()=>r,CodeEditorWrapper:()=>I,CodeViewerWidget:()=>D,IEditorMimeTypeService:()=>C,IEditorServices:()=>x,IPositionModel:()=>S,JSONEditor:()=>g,LineCol:()=>w});var i=n(87519);var s=n(20631);var o=n(71372);var r;(function(e){class t{constructor(e={}){var t,n;this.standaloneModel=false;this._isDisposed=false;this._selections=new s.ObservableMap;this._mimeType="text/plain";this._mimeTypeChanged=new o.Signal(this);this.standaloneModel=typeof e.sharedModel==="undefined";this.sharedModel=(t=e.sharedModel)!==null&&t!==void 0?t:new i.YFile;this._mimeType=(n=e.mimeType)!==null&&n!==void 0?n:"text/plain"}get mimeTypeChanged(){return this._mimeTypeChanged}get selections(){return this._selections}get mimeType(){return this._mimeType}set mimeType(e){const t=this.mimeType;if(t===e){return}this._mimeType=e;this._mimeTypeChanged.emit({name:"mimeType",oldValue:t,newValue:e})}get isDisposed(){return this._isDisposed}dispose(){if(this._isDisposed){return}this._isDisposed=true;this._selections.dispose();if(this.standaloneModel){this.sharedModel.dispose()}o.Signal.clearData(this)}}e.Model=t})(r||(r={}));var a=n(6958);var l=n(4148);var d=n(5596);var c=n(85448);const h="jp-JSONEditor";const u="jp-mod-error";const p="jp-JSONEditor-host";const m="jp-JSONEditor-header";class g extends c.Widget{constructor(e){super();this._dataDirty=false;this._inputDirty=false;this._source=null;this._originalValue=d.JSONExt.emptyObject;this._changeGuard=false;this.translator=e.translator||a.nullTranslator;this._trans=this.translator.load("jupyterlab");this.addClass(h);this.headerNode=document.createElement("div");this.headerNode.className=m;this.revertButtonNode=l.undoIcon.element({tag:"span",title:this._trans.__("Revert changes to data")});this.commitButtonNode=l.checkIcon.element({tag:"span",title:this._trans.__("Commit changes to data"),marginLeft:"8px"});this.editorHostNode=document.createElement("div");this.editorHostNode.className=p;this.headerNode.appendChild(this.revertButtonNode);this.headerNode.appendChild(this.commitButtonNode);this.node.appendChild(this.headerNode);this.node.appendChild(this.editorHostNode);const t=new r.Model({mimeType:"application/json"});t.sharedModel.changed.connect(this._onModelChanged,this);this.model=t;this.editor=e.editorFactory({host:this.editorHostNode,model:t,config:{readOnly:true}})}get source(){return this._source}set source(e){if(this._source===e){return}if(this._source){this._source.changed.disconnect(this._onSourceChanged,this)}this._source=e;this.editor.setOption("readOnly",e===null);if(e){e.changed.connect(this._onSourceChanged,this)}this._setValue()}get isDirty(){return this._dataDirty||this._inputDirty}dispose(){var e;if(this.isDisposed){return}(e=this.source)===null||e===void 0?void 0:e.dispose();this.model.dispose();this.editor.dispose();super.dispose()}handleEvent(e){switch(e.type){case"blur":this._evtBlur(e);break;case"click":this._evtClick(e);break;default:break}}onAfterAttach(e){const t=this.editorHostNode;t.addEventListener("blur",this,true);t.addEventListener("click",this,true);this.revertButtonNode.hidden=true;this.commitButtonNode.hidden=true;this.headerNode.addEventListener("click",this)}onBeforeDetach(e){const t=this.editorHostNode;t.removeEventListener("blur",this,true);t.removeEventListener("click",this,true);this.headerNode.removeEventListener("click",this)}_onSourceChanged(e,t){if(this._changeGuard){return}if(this._inputDirty||this.editor.hasFocus()){this._dataDirty=true;return}this._setValue()}_onModelChanged(e,t){if(t.sourceChange){let e=true;try{const e=JSON.parse(this.editor.model.sharedModel.getSource());this.removeClass(u);this._inputDirty=!this._changeGuard&&!d.JSONExt.deepEqual(e,this._originalValue)}catch(n){this.addClass(u);this._inputDirty=true;e=false}this.revertButtonNode.hidden=!this._inputDirty;this.commitButtonNode.hidden=!e||!this._inputDirty}}_evtBlur(e){if(!this._inputDirty&&this._dataDirty){this._setValue()}}_evtClick(e){const t=e.target;if(this.revertButtonNode.contains(t)){this._setValue()}else if(this.commitButtonNode.contains(t)){if(!this.commitButtonNode.hidden&&!this.hasClass(u)){this._changeGuard=true;this._mergeContent();this._changeGuard=false;this._setValue()}}else if(this.editorHostNode.contains(t)){this.editor.focus()}}_mergeContent(){const e=this.editor.model;const t=this._originalValue;const n=JSON.parse(e.sharedModel.getSource());const i=this.source;if(!i){return}for(const s in n){if(!d.JSONExt.deepEqual(n[s],t[s]||null)){i.set(s,n[s])}}for(const s in t){if(!(s in n)){i.delete(s)}}}_setValue(){this._dataDirty=false;this._inputDirty=false;this.revertButtonNode.hidden=true;this.commitButtonNode.hidden=true;this.removeClass(u);const e=this.editor.model;const t=this._source?this._source.toJSON():{};this._changeGuard=true;if(t===void 0){e.sharedModel.setSource(this._trans.__("No data!"));this._originalValue=d.JSONExt.emptyObject}else{const n=JSON.stringify(t,null,4);e.sharedModel.setSource(n);this._originalValue=t;if(n.length>1&&n[0]==="{"){this.editor.setCursorPosition({line:0,column:1})}}this._changeGuard=false;this.commitButtonNode.hidden=true;this.revertButtonNode.hidden=true}}var f=n(85176);var v=n(28416);var _=n.n(v);class b extends _().Component{constructor(e){super(e);this._handleChange=e=>{this.setState({value:e.currentTarget.value})};this._handleSubmit=e=>{e.preventDefault();const t=parseInt(this._textInput.value,10);if(!isNaN(t)&&isFinite(t)&&1<=t&&t<=this.props.maxLine){this.props.handleSubmit(t)}return false};this._handleFocus=()=>{this.setState({hasFocus:true})};this._handleBlur=()=>{this.setState({hasFocus:false})};this._textInput=null;this.translator=e.translator||a.nullTranslator;this._trans=this.translator.load("jupyterlab");this.state={value:"",hasFocus:false}}componentDidMount(){this._textInput.focus()}render(){return _().createElement("div",{className:"jp-lineFormSearch"},_().createElement("form",{name:"lineColumnForm",onSubmit:this._handleSubmit,noValidate:true},_().createElement("div",{className:(0,l.classes)("jp-lineFormWrapper","lm-lineForm-wrapper",this.state.hasFocus?"jp-lineFormWrapperFocusWithin":undefined)},_().createElement("input",{type:"text",className:"jp-lineFormInput",onChange:this._handleChange,onFocus:this._handleFocus,onBlur:this._handleBlur,value:this.state.value,ref:e=>{this._textInput=e}}),_().createElement("div",{className:"jp-baseLineForm jp-lineFormButtonContainer"},_().createElement(l.lineFormIcon.react,{className:"jp-baseLineForm jp-lineFormButtonIcon",elementPosition:"center"}),_().createElement("input",{type:"submit",className:"jp-baseLineForm jp-lineFormButton",value:""}))),_().createElement("label",{className:"jp-lineFormCaption"},this._trans.__("Go to line number between 1 and %1",this.props.maxLine))))}}function y(e){const t=e.translator||a.nullTranslator;const n=t.load("jupyterlab");return _().createElement(f.TextItem,{onClick:e.handleClick,source:n.__("Ln %1, Col %2",e.line,e.column),title:n.__("Go to line number…")})}class w extends l.VDomRenderer{constructor(e){super(new w.Model);this._popup=null;this.addClass("jp-mod-highlighted");this.translator=e||a.nullTranslator}render(){if(this.model===null){return null}else{return _().createElement(y,{line:this.model.line,column:this.model.column,translator:this.translator,handleClick:()=>this._handleClick()})}}_handleClick(){if(this._popup){this._popup.dispose()}const e=l.ReactWidget.create(_().createElement(b,{handleSubmit:e=>this._handleSubmit(e),currentLine:this.model.line,maxLine:this.model.editor.lineCount,translator:this.translator}));this._popup=(0,f.showPopup)({body:e,anchor:this,align:"right"})}_handleSubmit(e){this.model.editor.setCursorPosition({line:e-1,column:0});this._popup.dispose();this.model.editor.focus()}}(function(e){class t extends l.VDomModel{constructor(){super(...arguments);this._onSelectionChanged=()=>{const e=this._getAllState();const t=this.editor.getCursorPosition();this._line=t.line+1;this._column=t.column+1;this._triggerChange(e,this._getAllState())};this._line=1;this._column=1;this._editor=null}get editor(){return this._editor}set editor(e){var t;const n=this._editor;if((t=n===null||n===void 0?void 0:n.model)===null||t===void 0?void 0:t.selections){n.model.selections.changed.disconnect(this._onSelectionChanged)}const i=this._getAllState();this._editor=e;if(!this._editor){this._column=1;this._line=1}else{this._editor.model.selections.changed.connect(this._onSelectionChanged);const e=this._editor.getCursorPosition();this._column=e.column+1;this._line=e.line+1}this._triggerChange(i,this._getAllState())}get line(){return this._line}get column(){return this._column}_getAllState(){return[this._line,this._column]}_triggerChange(e,t){if(e[0]!==t[0]||e[1]!==t[1]){this.stateChanged.emit(void 0)}}}e.Model=t})(w||(w={}));var C;(function(e){e.defaultMimeType="text/plain"})(C||(C={}));const x=new d.Token("@jupyterlab/codeeditor:IEditorServices",`A service for the text editor provider\n for the application. Use this to create new text editors and host them in your\n UI elements.`);const S=new d.Token("@jupyterlab/codeeditor:IPositionModel",`A service to handle an code editor cursor position.`);const k="jp-mod-has-primary-selection";const j="jp-mod-in-leading-whitespace";const M="jp-mod-dropTarget";const E=/^\s+$/;class I extends c.Widget{constructor(e){super();const{factory:t,model:n,editorOptions:i}=e;const s=this.editor=t({host:this.node,model:n,...i});s.model.selections.changed.connect(this._onSelectionsChanged,this)}get model(){return this.editor.model}dispose(){if(this.isDisposed){return}this.editor.dispose();super.dispose()}handleEvent(e){switch(e.type){case"lm-dragenter":this._evtDragEnter(e);break;case"lm-dragleave":this._evtDragLeave(e);break;case"lm-dragover":this._evtDragOver(e);break;case"lm-drop":this._evtDrop(e);break;default:break}}onActivateRequest(e){this.editor.focus()}onAfterAttach(e){super.onAfterAttach(e);const t=this.node;t.addEventListener("lm-dragenter",this);t.addEventListener("lm-dragleave",this);t.addEventListener("lm-dragover",this);t.addEventListener("lm-drop",this)}onBeforeDetach(e){const t=this.node;t.removeEventListener("lm-dragenter",this);t.removeEventListener("lm-dragleave",this);t.removeEventListener("lm-dragover",this);t.removeEventListener("lm-drop",this)}_onSelectionsChanged(){const{start:e,end:t}=this.editor.getSelection();if(e.column!==t.column||e.line!==t.line){this.addClass(k);this.removeClass(j)}else{this.removeClass(k);if(this.editor.getLine(t.line).slice(0,t.column).match(E)){this.addClass(j)}else{this.removeClass(j)}}}_evtDragEnter(e){if(this.editor.getOption("readOnly")===true){return}const t=T.findTextData(e.mimeData);if(t===undefined){return}e.preventDefault();e.stopPropagation();this.addClass("jp-mod-dropTarget")}_evtDragLeave(e){this.removeClass(M);if(this.editor.getOption("readOnly")===true){return}const t=T.findTextData(e.mimeData);if(t===undefined){return}e.preventDefault();e.stopPropagation()}_evtDragOver(e){this.removeClass(M);if(this.editor.getOption("readOnly")===true){return}const t=T.findTextData(e.mimeData);if(t===undefined){return}e.preventDefault();e.stopPropagation();e.dropAction="copy";this.addClass(M)}_evtDrop(e){if(this.editor.getOption("readOnly")===true){return}const t=T.findTextData(e.mimeData);if(t===undefined){return}const n={top:e.y,bottom:e.y,left:e.x,right:e.x,x:e.x,y:e.y,width:0,height:0};const i=this.editor.getPositionForCoordinate(n);if(i===null){return}this.removeClass(M);e.preventDefault();e.stopPropagation();if(e.proposedAction==="none"){e.dropAction="none";return}const s=this.editor.getOffsetAt(i);this.model.sharedModel.updateSource(s,s,t)}}var T;(function(e){function t(e){const t=e.types();const n=t.find((e=>e.indexOf("text")===0));if(n===undefined){return undefined}return e.getData(n)}e.findTextData=t})(T||(T={}));class D extends c.Widget{constructor(e){var t;super();this.model=e.model;const n=new I({factory:e.factory,model:this.model,editorOptions:{...e.editorOptions,config:{...(t=e.editorOptions)===null||t===void 0?void 0:t.config,readOnly:true}}});this.editor=n.editor;const i=this.layout=new c.StackedLayout;i.addWidget(n)}static createCodeViewer(e){const{content:t,mimeType:n,...i}=e;const s=new r.Model({mimeType:n});s.sharedModel.setSource(t);const o=new D({...i,model:s});o.disposed.connect((()=>{s.dispose()}));return o}get content(){return this.model.sharedModel.getSource()}get mimeType(){return this.model.mimeType}}},49914:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(98328);var r=n(22748);var a=n(93379);var l=n.n(a);var d=n(7795);var c=n.n(d);var h=n(90569);var u=n.n(h);var p=n(3565);var m=n.n(p);var g=n(19216);var f=n.n(g);var v=n(44589);var _=n.n(v);var b=n(46832);var y={};y.styleTagTransform=_();y.setAttributes=m();y.insert=u().bind(null,"head");y.domAPI=c();y.insertStyleElement=f();var w=l()(b.Z,y);const C=b.Z&&b.Z.locals?b.Z.locals:undefined},16795:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>S,lineColItem:()=>C});var i=n(74574);var s=n(7005);var o=n(85176);var r=n(6958);var a=n(24104);var l=n(22511);var d=n(95811);var c=n(4148);var h=n(5596);var u=n(13802);var p=n.n(u);var m=n(28416);var g=n.n(m);const f="@jupyterlab/codemirror-extension:plugin";const v={id:"@jupyterlab/codemirror-extension:languages",description:"Provides the CodeMirror languages registry.",provides:l.IEditorLanguageRegistry,optional:[r.ITranslator],activate:(e,t)=>{const i=new l.EditorLanguageRegistry;for(const n of l.EditorLanguageRegistry.getDefaultLanguages(t)){i.addLanguage(n)}i.addLanguage({name:"ipythongfm",mime:"text/x-ipythongfm",load:async()=>{const[e,t]=await Promise.all([n.e(3068).then(n.t.bind(n,13068,23)),n.e(8010).then(n.bind(n,38010))]);return e.markdown({base:e.markdownLanguage,codeLanguages:e=>i.findBest(e),extensions:[(0,l.parseMathIPython)(a.StreamLanguage.define(t.stexMath).parser)]})}});return i}};const _={id:"@jupyterlab/codemirror-extension:themes",description:"Provides the CodeMirror theme registry",provides:l.IEditorThemeRegistry,optional:[r.ITranslator],activate:(e,t)=>{const n=new l.EditorThemeRegistry;for(const i of l.EditorThemeRegistry.getDefaultThemes(t)){n.addTheme(i)}return n}};const b={id:"@jupyterlab/codemirror-extension:extensions",description:"Provides the CodeMirror extension factory registry.",provides:l.IEditorExtensionRegistry,requires:[l.IEditorThemeRegistry],optional:[r.ITranslator,d.ISettingRegistry,c.IFormRendererRegistry],activate:(e,t,n,i,s)=>{const o=new l.EditorExtensionRegistry;for(const r of l.EditorExtensionRegistry.getDefaultExtensions({themes:t,translator:n})){o.addExtension(r)}if(i){const t=e=>{var t;o.baseConfiguration=(t=e.get("defaultConfig").composite)!==null&&t!==void 0?t:{}};void Promise.all([i.load(f),e.restored]).then((([e])=>{t(e);e.changed.connect(t)}));s===null||s===void 0?void 0:s.addRenderer(`${f}.defaultConfig`,{fieldRenderer:e=>{const t=g().useMemo((()=>o.settingsSchema),[]);const i={};for(const[n,s]of Object.entries(o.defaultConfiguration)){if(typeof t[n]!=="undefined"){i[n]=s}}return g().createElement("div",{className:"jp-FormGroup-contentNormal"},g().createElement("h3",{className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem"},e.schema.title),e.schema.description&&g().createElement("div",{className:"jp-FormGroup-description"},e.schema.description),g().createElement(c.FormComponent,{schema:{title:e.schema.title,description:e.schema.description,type:"object",properties:t,additionalProperties:false},validator:p(),formData:{...i,...e.formData},formContext:{defaultFormData:i},liveValidate:true,onChange:t=>{var n;const s={};for(const[e,o]of Object.entries((n=t.formData)!==null&&n!==void 0?n:{})){const t=i[e];if(t===undefined||!h.JSONExt.deepEqual(o,t)){s[e]=o}}e.onChange(s)},tagName:"div",translator:n!==null&&n!==void 0?n:r.nullTranslator}))}})}return o}};const y={id:"@jupyterlab/codemirror-extension:binding",description:"Register the CodeMirror extension factory binding the editor and the shared model.",autoStart:true,requires:[l.IEditorExtensionRegistry],activate:(e,t)=>{t.addExtension({name:"shared-model-binding",factory:e=>{var t;const n=e.model.sharedModel;return l.EditorExtensionRegistry.createImmutableExtension((0,l.ybinding)({ytext:n.ysource,undoManager:(t=n.undoManager)!==null&&t!==void 0?t:undefined}))}})}};const w={id:"@jupyterlab/codemirror-extension:services",description:"Provides the service to instantiate CodeMirror editors.",provides:s.IEditorServices,requires:[l.IEditorLanguageRegistry,l.IEditorExtensionRegistry,l.IEditorThemeRegistry],optional:[r.ITranslator],activate:(e,t,n,i)=>{const s=new l.CodeMirrorEditorFactory({extensions:n,languages:t,translator:i!==null&&i!==void 0?i:r.nullTranslator});return{factoryService:s,mimeTypeService:new l.CodeMirrorMimeTypeService(t)}}};const C={id:"@jupyterlab/codemirror-extension:line-col-status",description:"Provides the code editor cursor position model.",autoStart:true,requires:[r.ITranslator],optional:[i.ILabShell,o.IStatusBar],provides:s.IPositionModel,activate:(e,t,n,i)=>{const o=new s.LineCol(t);const r=new Set;if(i){i.registerStatusItem(C.id,{item:o,align:"right",rank:2,isActive:()=>!!o.model.editor})}const a=t=>{r.add(t);if(e.shell.currentWidget){d(e.shell,{newValue:e.shell.currentWidget,oldValue:null})}};const l=()=>{d(e.shell,{oldValue:e.shell.currentWidget,newValue:e.shell.currentWidget})};function d(e,t){Promise.all([...r].map((e=>e(t.newValue)))).then((e=>{var t;o.model.editor=(t=e.filter((e=>e!==null))[0])!==null&&t!==void 0?t:null})).catch((e=>{console.error("Get editors",e)}))}if(n){n.currentChanged.connect(d)}return{addEditorProvider:a,update:l}}};const x=[v,_,y,b,w,C];const S=x},64331:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(98328);var r=n(49914);var a=n(90516);var l=n(37935)},73089:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CodeMirrorEditor:()=>G,CodeMirrorEditorFactory:()=>Q,CodeMirrorMimeTypeService:()=>ee,CodeMirrorSearchHighlighter:()=>ie,EditorExtensionRegistry:()=>B,EditorLanguageRegistry:()=>q,EditorSearchProvider:()=>ne,EditorThemeRegistry:()=>$,ExtensionsHandler:()=>O,IEditorExtensionRegistry:()=>oe,IEditorLanguageRegistry:()=>re,IEditorThemeRegistry:()=>ae,StateCommands:()=>s,YRange:()=>T,YSyncConfig:()=>D,customTheme:()=>m,jupyterEditorTheme:()=>W,jupyterHighlightStyle:()=>V,jupyterTheme:()=>U,parseMathIPython:()=>x,rulers:()=>E,ySync:()=>A,ySyncAnnotation:()=>P,ySyncFacet:()=>L,ybinding:()=>R});var i=n(45026);var s;(function(e){function t(e){const t={state:e.state,dispatch:e.dispatch};const n=e.state.selection.main.from;const s=e.state.selection.main.to;if(n!=s){return(0,i.indentMore)(t)}const o=e.state.doc.lineAt(n);const r=e.state.doc.slice(o.from,n).toString();if(/^\s*$/.test(r)){return(0,i.indentMore)(t)}else{return(0,i.insertTab)(t)}}e.indentMoreOrInsertTab=t})(s||(s={}));var o=n(24104);var r=n(37496);var a=n(66143);var l=n(5596);var d=n(71372);var c=n(1065);var h=n(6958);const u=r.Facet.define({combine(e){return(0,r.combineConfig)(e,{fontFamily:null,fontSize:null,lineHeight:null},{fontFamily:(e,t)=>e!==null&&e!==void 0?e:t,fontSize:(e,t)=>e!==null&&e!==void 0?e:t,lineHeight:(e,t)=>e!==null&&e!==void 0?e:t})}});function p(e){const{fontFamily:t,fontSize:n,lineHeight:i}=e.state.facet(u);let s="";if(n){s+=`font-size: ${n}px !important;`}if(t){s+=`font-family: ${t} !important;`}if(i){s+=`line-height: ${i.toString()} !important`}return{style:s}}function m(e){return[u.of(e),a.EditorView.editorAttributes.of(p)]}var g=n(73265);var f=n(6016);const v="InlineMathDollar";const _="InlineMathBracket";const b="BlockMathDollar";const y="BlockMathBracket";const w={[v]:1,[_]:3,[b]:2,[y]:3};const C=Object.keys(w).reduce(((e,t)=>{e[t]={mark:`${t}Mark`,resolve:t};return e}),{});function x(e){const t=new Array;Object.keys(w).forEach((e=>{t.push({name:e,style:f.tags.emphasis},{name:`${e}Mark`,style:f.tags.processingInstruction})}));return{defineNodes:t,parseInline:[{name:b,parse(e,t,n){if(t!=36||e.char(n+1)!=36){return-1}return e.addDelimiter(C[b],n,n+w[b],true,true)}},{name:v,parse(e,t,n){if(t!=36||e.char(n+1)==36){return-1}return e.addDelimiter(C[v],n,n+w[v],true,true)}},{name:_,before:"Escape",parse(e,t,n){if(t!=92||e.char(n+1)!=92||![40,41].includes(e.char(n+2))){return-1}return e.addDelimiter(C[_],n,n+w[_],e.char(n+2)==40,e.char(n+2)==41)}},{name:y,before:"Escape",parse(e,t,n){if(t!=92||e.char(n+1)!=92||![91,93].includes(e.char(n+2))){return-1}return e.addDelimiter(C[y],n,n+w[y],e.char(n+2)==91,e.char(n+2)==93)}}],wrap:e?(0,g.parseMixed)(((t,n)=>{const i=w[t.type.name];if(i){return{parser:e,overlay:[{from:t.from+i,to:t.to-i}]}}return null})):undefined}}const S="cm-rulers";const k=a.EditorView.baseTheme({[`.${S}`]:{borderRight:"1px dotted gray",opacity:.7}});const j=r.Facet.define({combine(e){const t=e.reduce(((e,t)=>e.concat(t.filter(((n,i)=>!e.includes(n)&&i==t.lastIndexOf(n))))),[]);return t}});const M=a.ViewPlugin.fromClass(class{constructor(e){var t,n;this.rulersContainer=e.dom.appendChild(document.createElement("div"));this.rulersContainer.style.cssText=`\n position: absolute;\n left: 0;\n top: 0;\n width: 100%;\n height: 100%;\n pointer-events: none;\n overflow: hidden;\n `;const i=e.defaultCharacterWidth;const s=e.state.facet(j);const o=(n=(t=e.scrollDOM.querySelector(".cm-gutters"))===null||t===void 0?void 0:t.clientWidth)!==null&&n!==void 0?n:0;this.rulers=s.map((e=>{const t=this.rulersContainer.appendChild(document.createElement("div"));t.classList.add(S);t.style.cssText=`\n position: absolute;\n left: ${o+e*i}px;\n height: 100%;\n `;t.style.width="6px";return t}))}update(e){var t,n;const i=e.view.state.facet(j);if(e.viewportChanged||e.geometryChanged||!l.JSONExt.deepEqual(i,e.startState.facet(j))){const s=(n=(t=e.view.scrollDOM.querySelector(".cm-gutters"))===null||t===void 0?void 0:t.clientWidth)!==null&&n!==void 0?n:0;const o=e.view.defaultCharacterWidth;this.rulers.forEach(((e,t)=>{e.style.left=`${s+i[t]*o}px`}))}}destroy(){this.rulers.forEach((e=>{e.remove()}));this.rulersContainer.remove()}});function E(e){return[k,j.of(e),M]}var I=n(66350);class T{constructor(e,t){this.yanchor=e;this.yhead=t}toJSON(){return{yanchor:(0,I.relativePositionToJSON)(this.yanchor),yhead:(0,I.relativePositionToJSON)(this.yhead)}}static fromJSON(e){return new T((0,I.createRelativePositionFromJSON)(e.yanchor),(0,I.createRelativePositionFromJSON)(e.yhead))}}class D{constructor(e){this.ytext=e}toYPos(e,t=0){return(0,I.createRelativePositionFromTypeIndex)(this.ytext,e,t)}fromYPos(e){const t=(0,I.createAbsolutePositionFromRelativePosition)((0,I.createRelativePositionFromJSON)(e),this.ytext.doc);if(t==null||t.type!==this.ytext){throw new Error("[y-codemirror] The position you want to retrieve was created by a different document")}return{pos:t.index,assoc:t.assoc}}toYRange(e){const t=e.assoc;const n=this.toYPos(e.anchor,t);const i=this.toYPos(e.head,t);return new T(n,i)}fromYRange(e){const t=this.fromYPos(e.yanchor);const n=this.fromYPos(e.yhead);if(t.pos===n.pos){return r.EditorSelection.cursor(n.pos,n.assoc)}return r.EditorSelection.range(t.pos,n.pos)}}const L=r.Facet.define({combine(e){return e[e.length-1]}});const P=r.Annotation.define();const A=a.ViewPlugin.fromClass(class{constructor(e){this.conf=e.state.facet(L);this._observer=(t,n)=>{var i;if(n.origin!==this.conf){const n=t.delta;const s=[];let o=0;for(let e=0;e0&&e.transactions[0].annotation(P)===this.conf){return}const t=this.conf.ytext;t.doc.transact((()=>{let n=0;e.changes.iterChanges(((e,i,s,o,r)=>{const a=r.sliceString(0,r.length,"\n");if(e!==i){t.delete(e+n,i-e)}if(a.length>0){t.insert(e+n,a)}n+=a.length-(i-e)}))}),this.conf)}destroy(){this._ytext.unobserve(this._observer)}});function R({ytext:e,undoManager:t}){const n=new D(e);return[L.of(n),A,t?a.ViewPlugin.define((()=>{t.addTrackedOrigin(n);return{destroy:()=>{t.removeTrackedOrigin(n)}}})):[]]}const N="jp-mod-readOnly";class O{constructor({baseConfiguration:e,config:t,defaultExtensions:n}={}){this._configChanged=new d.Signal(this);this._disposed=new d.Signal(this);this._isDisposed=false;this._immutables=new Set;this._baseConfig=e!==null&&e!==void 0?e:{};this._config=t!==null&&t!==void 0?t:{};this._configurableBuilderMap=new Map(n);const i=Object.keys(this._config).concat(Object.keys(this._baseConfig));this._immutables=new Set([...this._configurableBuilderMap.keys()].filter((e=>!i.includes(e))))}get configChanged(){return this._configChanged}get disposed(){return this._disposed}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this._disposed.emit();d.Signal.clearData(this)}getOption(e){var t;return(t=this._config[e])!==null&&t!==void 0?t:this._baseConfig[e]}hasOption(e){return Object.keys(this._config).includes(e)||Object.keys(this._baseConfig).includes(e)}setOption(e,t){if(this._config[e]!==t){this._config[e]=t;this._configChanged.emit({[e]:t})}}setBaseOptions(e){const t=this._getChangedOptions(e,this._baseConfig);if(t.length>0){this._baseConfig=e;const n=Object.keys(this._config);const i=t.filter((e=>!n.includes(e)));if(i.length>0){this._configChanged.emit(i.reduce(((e,t)=>{e[t]=this._baseConfig[t];return e}),{}))}}}setOptions(e){const t=this._getChangedOptions(e,this._config);if(t.length>0){this._config={...e};this._configChanged.emit(t.reduce(((e,t)=>{var n;e[t]=(n=this._config[t])!==null&&n!==void 0?n:this._baseConfig[t];return e}),{}))}}reconfigureExtension(e,t,n){const i=this.getEffect(e.state,t,n);if(i){e.dispatch({effects:[i]})}}reconfigureExtensions(e,t){const n=Object.keys(t).filter((e=>this.has(e))).map((n=>this.getEffect(e.state,n,t[n])));e.dispatch({effects:n.filter((e=>e!==null))})}injectExtension(e,t){e.dispatch({effects:r.StateEffect.appendConfig.of(t)})}getInitialExtensions(){const e={...this._baseConfig,...this._config};const t=[...this._immutables].map((e=>{var t;return(t=this.get(e))===null||t===void 0?void 0:t.instance(undefined)})).filter((e=>e));for(const n of Object.keys(e)){const i=this.get(n);if(i){const s=e[n];t.push(i.instance(s))}}return t}get(e){return this._configurableBuilderMap.get(e)}has(e){return this._configurableBuilderMap.has(e)}getEffect(e,t,n){var i;const s=this.get(t);return(i=s===null||s===void 0?void 0:s.reconfigure(n))!==null&&i!==void 0?i:null}_getChangedOptions(e,t){const n=new Array;const i=new Array;for(const[s,o]of Object.entries(e)){i.push(s);if(t[s]!==o){n.push(s)}}n.push(...Object.keys(t).filter((e=>!i.includes(e))));return n}}class B{constructor(){this.configurationBuilder=new Map;this.configurationSchema={};this.defaultOptions={};this.handlers=new Set;this.immutableExtensions=new Set;this._baseConfiguration={}}get baseConfiguration(){return{...this.defaultOptions,...this._baseConfiguration}}set baseConfiguration(e){if(!l.JSONExt.deepEqual(e,this._baseConfiguration)){this._baseConfiguration=e;for(const e of this.handlers){e.setBaseOptions(this.baseConfiguration)}}}get defaultConfiguration(){return Object.freeze({...this.defaultOptions})}get settingsSchema(){return Object.freeze(l.JSONExt.deepCopy(this.configurationSchema))}addExtension(e){var t;if(this.configurationBuilder.has(e.name)){throw new Error(`Extension named ${e.name} is already registered.`)}this.configurationBuilder.set(e.name,e);if(typeof e.default!="undefined"){this.defaultOptions[e.name]=e.default}if(e.schema){this.configurationSchema[e.name]={default:(t=e.default)!==null&&t!==void 0?t:null,...e.schema};this.defaultOptions[e.name]=this.configurationSchema[e.name].default}}createNew(e){const t=new Array;for(const[i,s]of this.configurationBuilder.entries()){const n=s.factory(e);if(n){t.push([i,n])}}const n=new O({baseConfiguration:this.baseConfiguration,config:e.config,defaultExtensions:t});this.handlers.add(n);n.disposed.connect((()=>{this.handlers.delete(n)}));return n}}(function(e){class t{constructor(e){this._compartment=new r.Compartment;this._builder=e}instance(e){return this._compartment.of(this._builder(e))}reconfigure(e){return this._compartment.reconfigure(this._builder(e))}}class n{constructor(e){this._extension=e}instance(){return this._extension}reconfigure(){return null}}function l(e){return new t(e)}e.createConfigurableExtension=l;function d(e,n=[]){return new t((t=>t?e:n))}e.createConditionalExtension=d;function u(e){return new n(e)}e.createImmutableExtension=u;function p(e={}){const{themes:t,translator:n}=e;const p=(n!==null&&n!==void 0?n:h.nullTranslator).load("jupyterlab");const g=[Object.freeze({name:"autoClosingBrackets",default:false,factory:()=>d((0,c.vQ)()),schema:{type:"boolean",title:p.__("Auto Closing Brackets")}}),Object.freeze({name:"codeFolding",default:false,factory:()=>d((0,o.foldGutter)()),schema:{type:"boolean",title:p.__("Code Folding")}}),Object.freeze({name:"cursorBlinkRate",default:1200,factory:()=>l((e=>(0,a.drawSelection)({cursorBlinkRate:e}))),schema:{type:"number",title:p.__("Cursor blinking rate"),description:p.__("Half-period in milliseconds used for cursor blinking. The default blink rate is 1200ms. By setting this to zero, blinking can be disabled.")}}),Object.freeze({name:"highlightActiveLine",default:false,factory:()=>d((0,a.highlightActiveLine)()),schema:{type:"boolean",title:p.__("Highlight the active line")}}),Object.freeze({name:"highlightTrailingWhitespace",default:false,factory:()=>d((0,a.highlightTrailingWhitespace)()),schema:{type:"boolean",title:p.__("Highlight trailing white spaces")}}),Object.freeze({name:"highlightWhitespace",default:false,factory:()=>d((0,a.highlightWhitespace)()),schema:{type:"boolean",title:p.__("Highlight white spaces")}}),Object.freeze({name:"indentUnit",default:"4",factory:()=>l((e=>e=="Tab"?o.indentUnit.of("\t"):o.indentUnit.of(" ".repeat(parseInt(e,10))))),schema:{type:"string",title:p.__("Indentation unit"),description:p.__("The indentation is a `Tab` or the number of spaces. This defaults to 4 spaces."),enum:["Tab","1","2","4","8"]}}),Object.freeze({name:"keymap",default:[...i.defaultKeymap,{key:"Tab",run:s.indentMoreOrInsertTab,shift:i.indentLess}],factory:()=>l((e=>a.keymap.of(e)))}),Object.freeze({name:"lineNumbers",default:true,factory:()=>d((0,a.lineNumbers)()),schema:{type:"boolean",title:p.__("Line Numbers")}}),Object.freeze({name:"lineWrap",factory:()=>d(a.EditorView.lineWrapping),default:true,schema:{type:"boolean",title:p.__("Line Wrap")}}),Object.freeze({name:"matchBrackets",default:true,factory:()=>d([(0,o.bracketMatching)(),r.Prec.high(a.keymap.of(c.GA))]),schema:{type:"boolean",title:p.__("Match Brackets")}}),Object.freeze({name:"rectangularSelection",default:true,factory:()=>d([(0,a.rectangularSelection)(),(0,a.crosshairCursor)()]),schema:{type:"boolean",title:p.__("Rectangular selection"),description:p.__("Rectangular (block) selection can be created by dragging the mouse pointer while holding the left mouse button and the Alt key. When the Alt key is pressed, a crosshair cursor will appear, indicating that the rectangular selection mode is active.")}}),Object.freeze({name:"readOnly",default:false,factory:()=>l((e=>[r.EditorState.readOnly.of(e),e?a.EditorView.editorAttributes.of({class:N}):[]]))}),Object.freeze({name:"rulers",default:[],factory:()=>l((e=>e.length>0?E(e):[])),schema:{type:"array",title:p.__("Rulers"),items:{type:"number",minimum:0}}}),Object.freeze({name:"scrollPastEnd",default:false,factory:e=>e.inline?null:d((0,a.scrollPastEnd)())}),Object.freeze({name:"smartIndent",default:true,factory:()=>d((0,o.indentOnInput)()),schema:{type:"boolean",title:p.__("Smart Indentation")}}),Object.freeze({name:"tabSize",default:4,factory:()=>l((e=>r.EditorState.tabSize.of(e))),schema:{type:"number",title:p.__("Tab size")}}),Object.freeze({name:"tooltips",factory:()=>u((0,a.tooltips)({position:"absolute",parent:document.body}))}),Object.freeze({name:"allowMultipleSelections",default:true,factory:()=>l((e=>r.EditorState.allowMultipleSelections.of(e))),schema:{type:"boolean",title:p.__("Multiple selections")}}),Object.freeze({name:"customStyles",factory:()=>l((e=>m(e))),default:{fontFamily:null,fontSize:null,lineHeight:null},schema:{title:p.__("Custom editor styles"),type:"object",properties:{fontFamily:{type:["string","null"],title:p.__("Font Family")},fontSize:{type:["number","null"],minimum:1,maximum:100,title:p.__("Font Size")},lineHeight:{type:["number","null"],title:p.__("Line Height")}},additionalProperties:false}})];if(t){g.push(Object.freeze({name:"theme",default:"jupyter",factory:()=>l((e=>t.getTheme(e))),schema:{type:"string",title:p.__("Theme"),description:p.__("CodeMirror theme")}}))}if(n){g.push(Object.freeze({name:"translation",default:{"Control character":p.__("Control character"),"Selection deleted":p.__("Selection deleted"),"Folded lines":p.__("Folded lines"),"Unfolded lines":p.__("Unfolded lines"),to:p.__("to"),"folded code":p.__("folded code"),unfold:p.__("unfold"),"Fold line":p.__("Fold line"),"Unfold line":p.__("Unfold line"),"Go to line":p.__("Go to line"),go:p.__("go"),Find:p.__("Find"),Replace:p.__("Replace"),next:p.__("next"),previous:p.__("previous"),all:p.__("all"),"match case":p.__("match case"),replace:p.__("replace"),"replace all":p.__("replace all"),close:p.__("close"),"current match":p.__("current match"),"replaced $ matches":p.__("replaced $ matches"),"replaced match on line $":p.__("replaced match on line $"),"on line":p.__("on line"),Completions:p.__("Completions"),Diagnostics:p.__("Diagnostics"),"No diagnostics":p.__("No diagnostics")},factory:()=>l((e=>r.EditorState.phrases.of(e)))}))}return g}e.getDefaultExtensions=p})(B||(B={}));var F=n(7005);var z=n(20501);var H=n(19041);const W=a.EditorView.theme({"&":{background:"var(--jp-layout-color0)",color:"var(--jp-content-font-color1)"},".jp-CodeConsole &, .jp-Notebook &":{background:"transparent"},".cm-content":{caretColor:"var(--jp-editor-cursor-color)"},".cm-scroller":{fontFamily:"inherit"},".cm-cursor, .cm-dropCursor":{borderLeft:"var(--jp-code-cursor-width0) solid var(--jp-editor-cursor-color)"},".cm-selectionBackground, .cm-content ::selection":{backgroundColor:"var(--jp-editor-selected-background)"},"&.cm-focused > .cm-scroller > .cm-selectionLayer .cm-selectionBackground":{backgroundColor:"var(--jp-editor-selected-focused-background)"},".cm-gutters":{borderRight:"1px solid var(--jp-border-color2)",backgroundColor:"var(--jp-layout-color2)"},".cm-gutter":{backgroundColor:"var(--jp-layout-color2)"},".cm-activeLine":{backgroundColor:"color-mix(in srgb, var(--jp-layout-color3) 25%, transparent)"},".cm-lineNumbers":{color:"var(--jp-ui-font-color2)"},".cm-searchMatch":{backgroundColor:"var(--jp-search-unselected-match-background-color)",color:"var(--jp-search-unselected-match-color)"},".cm-searchMatch.cm-searchMatch-selected":{backgroundColor:"var(--jp-search-selected-match-background-color) !important",color:"var(--jp-search-selected-match-color) !important"},".cm-tooltip":{backgroundColor:"var(--jp-layout-color1)"}});const V=o.HighlightStyle.define([{tag:f.tags.meta,color:"var(--jp-mirror-editor-meta-color)"},{tag:f.tags.heading,color:"var(--jp-mirror-editor-header-color)"},{tag:[f.tags.heading1,f.tags.heading2,f.tags.heading3,f.tags.heading4],color:"var(--jp-mirror-editor-header-color)",fontWeight:"bold"},{tag:f.tags.keyword,color:"var(--jp-mirror-editor-keyword-color)",fontWeight:"bold"},{tag:f.tags.atom,color:"var(--jp-mirror-editor-atom-color)"},{tag:f.tags.number,color:"var(--jp-mirror-editor-number-color)"},{tag:[f.tags.definition(f.tags.name),f.tags["function"](f.tags.definition(f.tags.variableName))],color:"var(--jp-mirror-editor-def-color)"},{tag:f.tags.standard(f.tags.variableName),color:"var(--jp-mirror-editor-builtin-color)"},{tag:[f.tags.special(f.tags.variableName),f.tags.self],color:"var(--jp-mirror-editor-variable-2-color)"},{tag:f.tags.punctuation,color:"var(--jp-mirror-editor-punctuation-color)"},{tag:f.tags.propertyName,color:"var(--jp-mirror-editor-property-color)"},{tag:f.tags.operator,color:"var(--jp-mirror-editor-operator-color)",fontWeight:"bold"},{tag:f.tags.comment,color:"var(--jp-mirror-editor-comment-color)",fontStyle:"italic"},{tag:f.tags.string,color:"var(--jp-mirror-editor-string-color)"},{tag:[f.tags.labelName,f.tags.monospace,f.tags.special(f.tags.string)],color:"var(--jp-mirror-editor-string-2-color)"},{tag:f.tags.bracket,color:"var(--jp-mirror-editor-bracket-color)"},{tag:f.tags.tagName,color:"var(--jp-mirror-editor-tag-color)"},{tag:f.tags.attributeName,color:"var(--jp-mirror-editor-attribute-color)"},{tag:f.tags.quote,color:"var(--jp-mirror-editor-quote-color)"},{tag:f.tags.link,color:"var(--jp-mirror-editor-link-color)",textDecoration:"underline"},{tag:[f.tags.separator,f.tags.derefOperator,f.tags.paren],color:""},{tag:f.tags.strong,fontWeight:"bold"},{tag:f.tags.emphasis,fontStyle:"italic"},{tag:f.tags.strikethrough,textDecoration:"line-through"},{tag:f.tags.bool,color:"var(--jp-mirror-editor-keyword-color)",fontWeight:"bold"}]);const U=[W,(0,o.syntaxHighlighting)(V)];class ${constructor(){this._themeMap=new Map([["jupyter",Object.freeze({name:"jupyter",theme:U})]])}get themes(){return Array.from(this._themeMap.values())}defaultTheme(){return this._themeMap.get("jupyter").theme}addTheme(e){if(this._themeMap.has(e.name)){throw new Error(`A theme named '${e.name}' is already registered.`)}this._themeMap.set(e.name,{displayName:e.name,...e})}getTheme(e){var t;const n=(t=this._themeMap.get(e))===null||t===void 0?void 0:t.theme;return n!==null&&n!==void 0?n:this.defaultTheme()}}(function(e){function t(e){const t=(e!==null&&e!==void 0?e:h.nullTranslator).load("jupyterlab");return[Object.freeze({name:"codemirror",displayName:t.__("codemirror"),theme:[a.EditorView.baseTheme({}),(0,o.syntaxHighlighting)(o.defaultHighlightStyle)]})]}e.getDefaultThemes=t})($||($={}));class q{constructor(){this._modeList=[];this.addLanguage({name:"none",mime:"text/plain",support:new o.LanguageSupport(o.LRLanguage.define({parser:(0,H.pV)("@top Program { }")}))})}addLanguage(e){var t;const n=(t=this.findByName(e.name))!==null&&t!==void 0?t:this.findByMIME(e.mime,true);if(n){throw new Error(`${e.mime} already registered`)}this._modeList.push(this.makeSpec(e))}async getLanguage(e){const t=this.findBest(e);if(t&&!t.support){t.support=await t.load()}return t}getLanguages(){return[...this._modeList]}findByMIME(e,t=false){if(Array.isArray(e)){for(let t=0;t-1&&t.substring(n+1,t.length);if(i){return this.findByExtension(i)}return null}findBest(e,t=true){var n,i,s,o;const r=typeof e==="string"?e:e.name;const a=typeof e!=="string"?e.mime:r;const l=typeof e!=="string"?(n=e.extensions)!==null&&n!==void 0?n:[]:[];return(o=(s=(i=r?this.findByName(r):null)!==null&&i!==void 0?i:a?this.findByMIME(a):null)!==null&&s!==void 0?s:this.findByExtension(l))!==null&&o!==void 0?o:t?this.findByMIME(F.IEditorMimeTypeService.defaultMimeType):null}async highlight(e,t,n){var i;if(t){await this.getLanguage(t)}const s=(i=t===null||t===void 0?void 0:t.support)===null||i===void 0?void 0:i.language;if(!s){n.appendChild(document.createTextNode(e));return}const o=s.parser.parse(e);let r=0;(0,f.highlightTree)(o,V,((t,i,s)=>{if(t>r){n.appendChild(document.createTextNode(e.slice(r,t)))}const o=n.appendChild(document.createElement("span"));o.className=s;o.appendChild(document.createTextNode(e.slice(t,i)));r=i}));if(rthis.onKeydown(e)});const m=a.EditorView.updateListener.of((e=>{this._onDocChanged(e)}));this._editor=Y.createEditor(h,this._configurator,[r.Prec.high(p),m,this._language.of([]),...(c=e.extensions)!==null&&c!==void 0?c:[]],u.sharedModel.source);this._onMimeTypeChanged();this._onCursorActivity();this._configurator.configChanged.connect(this.onConfigChanged,this);u.mimeTypeChanged.connect(this._onMimeTypeChanged,this)}get uuid(){return this._uuid}set uuid(e){this._uuid=e}get editor(){return this._editor}get doc(){return this._editor.state.doc}get lineCount(){return this.doc.lines}get model(){return this._model}get lineHeight(){return this._editor.defaultLineHeight}get charWidth(){return this._editor.defaultCharacterWidth}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this.host.removeEventListener("focus",this,true);this.host.removeEventListener("blur",this,true);this.host.removeEventListener("scroll",this,true);this._configurator.dispose();d.Signal.clearData(this);this.editor.destroy()}getOption(e){return this._configurator.getOption(e)}hasOption(e){return this._configurator.hasOption(e)}setOption(e,t){this._configurator.setOption(e,t)}setOptions(e){this._configurator.setOptions(e)}injectExtension(e){this._configurator.injectExtension(this._editor,e)}getLine(e){e=e+1;return e<=this.doc.lines?this.doc.line(e).text:undefined}getOffsetAt(e){return this.doc.line(e.line+1).from+e.column}getPositionAt(e){const t=this.doc.lineAt(e);return{line:t.number-1,column:e-t.from}}undo(){this.model.sharedModel.undo()}redo(){this.model.sharedModel.redo()}clearHistory(){this.model.sharedModel.clearUndoHistory()}focus(){this._editor.focus()}hasFocus(){return this._editor.hasFocus}blur(){this._editor.contentDOM.blur()}get state(){return this._editor.state}firstLine(){return 0}lastLine(){return this.doc.lines-1}cursorCoords(e,t){const n=this.state.selection.main;const i=e?n.from:n.to;const s=this.editor.coordsAtPos(i);return s}getRange(e,t,n){const i=this.getOffsetAt(this._toPosition(e));const s=this.getOffsetAt(this._toPosition(t));return this.state.sliceDoc(i,s)}revealPosition(e){const t=this.getOffsetAt(e);this._editor.dispatch({effects:a.EditorView.scrollIntoView(t)})}revealSelection(e){const t=this.getOffsetAt(e.start);const n=this.getOffsetAt(e.end);this._editor.dispatch({effects:a.EditorView.scrollIntoView(r.EditorSelection.range(t,n))})}getCoordinateForPosition(e){const t=this.getOffsetAt(e);const n=this.editor.coordsAtPos(t);return n}getPositionForCoordinate(e){const t=this.editor.posAtCoords({x:e.left,y:e.top});return this.getPositionAt(t)||null}getCursorPosition(){const e=this.state.selection.main.head;return this.getPositionAt(e)}setCursorPosition(e,t){const n=this.getOffsetAt(e);this.editor.dispatch({selection:{anchor:n},scrollIntoView:true});if(!this.editor.hasFocus){this.model.selections.set(this.uuid,this.getSelections())}}getSelection(){return this.getSelections()[0]}setSelection(e){this.setSelections([e])}getSelections(){const e=this.state.selection.ranges;if(e.length>0){const t=e.map((e=>({anchor:this._toCodeMirrorPosition(this.getPositionAt(e.from)),head:this._toCodeMirrorPosition(this.getPositionAt(e.to))})));return t.map((e=>this._toSelection(e)))}const t=this._toCodeMirrorPosition(this.getPositionAt(this.state.selection.main.head));const n=this._toSelection({anchor:t,head:t});return[n]}setSelections(e){const t=e.length?e.map((e=>r.EditorSelection.range(this.getOffsetAt(e.start),this.getOffsetAt(e.end)))):[r.EditorSelection.range(0,0)];this.editor.dispatch({selection:r.EditorSelection.create(t)})}replaceSelection(e){const t=this.getSelections()[0];this.model.sharedModel.updateSource(this.getOffsetAt(t.start),this.getOffsetAt(t.end),e);const n=this.getPositionAt(this.getOffsetAt(t.start)+e.length);this.setSelection({start:n,end:n})}getTokens(){const e=[];const t=(0,o.ensureSyntaxTree)(this.state,this.doc.length);if(t){t.iterate({enter:t=>{if(t.node.firstChild===null){e.push({value:this.state.sliceDoc(t.from,t.to),offset:t.from,type:t.name})}return true}})}return e}getTokenAt(e){const t=(0,o.ensureSyntaxTree)(this.state,e);let n=null;if(t){t.iterate({enter:t=>{if(n){return false}if(t.node.firstChild){return true}if(e>=t.from&&e<=t.to){n={value:this.state.sliceDoc(t.from,t.to),offset:t.from,type:t.name};return false}return true}})}return n||{offset:e,value:""}}getTokenAtCursor(){return this.getTokenAt(this.state.selection.main.head)}newIndentedLine(){(0,i.insertNewlineAndIndent)({state:this.state,dispatch:this.editor.dispatch})}execCommand(e){e(this.editor)}onConfigChanged(e,t){e.reconfigureExtensions(this._editor,t)}onKeydown(e){const t=this.state.selection.main.head;if(t===0&&e.keyCode===J){if(!e.shiftKey){this.edgeRequested.emit("top")}return false}const n=this.doc.lineAt(t).number;if(n===1&&e.keyCode===J){if(!e.shiftKey){this.edgeRequested.emit("topLine")}return false}const i=this.doc.length;if(t===i&&e.keyCode===Z){if(!e.shiftKey){this.edgeRequested.emit("bottom")}return false}return false}_onMimeTypeChanged(){this._languages.getLanguage(this._model.mimeType).then((e=>{var t;this._editor.dispatch({effects:this._language.reconfigure((t=e===null||e===void 0?void 0:e.support)!==null&&t!==void 0?t:[])})})).catch((e=>{console.log(`Failed to load language for '${this._model.mimeType}'.`,e);this._editor.dispatch({effects:this._language.reconfigure([])})}))}_onCursorActivity(){if(this._editor.hasFocus){const e=this.getSelections();this.model.selections.set(this.uuid,e)}}_toSelection(e){return{uuid:this.uuid,start:this._toPosition(e.anchor),end:this._toPosition(e.head)}}_toPosition(e){return{line:e.line,column:e.ch}}_toCodeMirrorPosition(e){return{line:e.line,ch:e.column}}_onDocChanged(e){if(e.transactions.length&&e.transactions[0].selection){this._onCursorActivity()}}handleEvent(e){switch(e.type){case"focus":this._evtFocus(e);break;case"blur":this._evtBlur(e);break;default:break}}_evtFocus(e){this.host.classList.add("jp-mod-focused");this._onCursorActivity()}_evtBlur(e){this.host.classList.remove("jp-mod-focused")}}var Y;(function(e){function t(e,t,n,i){const s=t.getInitialExtensions();s.push(...n);const o=new a.EditorView({state:r.EditorState.create({doc:i,extensions:s}),parent:e});return o}e.createEditor=t})(Y||(Y={}));var X=n(52993);class Q{constructor(e={}){var t,n,i;this.newInlineEditor=e=>{var t;e.host.dataset.type="inline";return this.newEditor({...e,config:{...this.inlineCodeMirrorConfig,...e.config||{}},inline:true,extensions:[a.keymap.of(X.searchKeymap)].concat((t=e.extensions)!==null&&t!==void 0?t:[])})};this.newDocumentEditor=e=>{var t,n;e.host.dataset.type="document";return this.newEditor({...e,config:{...this.documentCodeMirrorConfig,...(t=e.config)!==null&&t!==void 0?t:{}},inline:false,extensions:[a.keymap.of([{key:"Shift-Enter",run:e=>true}])].concat((n=e.extensions)!==null&&n!==void 0?n:[])})};this.languages=(t=e.languages)!==null&&t!==void 0?t:new q;this.extensions=(n=e.extensions)!==null&&n!==void 0?n:new B;this.translator=(i=e.translator)!==null&&i!==void 0?i:h.nullTranslator;this.inlineCodeMirrorConfig={};this.documentCodeMirrorConfig={lineNumbers:true,scrollPastEnd:true}}newEditor(e){const t=new G({extensionsRegistry:this.extensions,languages:this.languages,translator:this.translator,...e});return t}}class ee{constructor(e){this.languages=e}getMimeTypeByLanguage(e){var t;const n=e.file_extension||"";const i=this.languages.findBest(e.codemirror_mode||{mimetype:e.mimetype,name:e.name,ext:[n.split(".").slice(-1)[0]]});return i?Array.isArray(i.mime)?(t=i.mime[0])!==null&&t!==void 0?t:F.IEditorMimeTypeService.defaultMimeType:i.mime:F.IEditorMimeTypeService.defaultMimeType}getMimeTypeByFilePath(e){var t;const n=z.PathExt.extname(e);if(n===".ipy"){return"text/x-python"}else if(n===".md"){return"text/x-ipythongfm"}const i=this.languages.findByFileName(e);return i?Array.isArray(i.mime)?(t=i.mime[0])!==null&&t!==void 0?t:F.IEditorMimeTypeService.defaultMimeType:i.mime:F.IEditorMimeTypeService.defaultMimeType}}var te=n(20433);class ne{constructor(){this.currentIndex=null;this.query=null;this._isActive=true;this._inSelection=null;this._isDisposed=false;this._cmHandler=null;this.currentIndex=null;this._stateChanged=new d.Signal(this)}get cmHandler(){if(!this._cmHandler){this._cmHandler=new ie(this.editor)}return this._cmHandler}get stateChanged(){return this._stateChanged}get currentMatchIndex(){return this.isActive?this.currentIndex:null}get isActive(){return this._isActive}get isDisposed(){return this._isDisposed}get matchesCount(){return this.isActive?this.cmHandler.matches.length:0}clearHighlight(){this.currentIndex=null;this.cmHandler.clearHighlight();return Promise.resolve()}dispose(){if(this._isDisposed){return}this._isDisposed=true;d.Signal.clearData(this);if(this.isActive){this.endQuery().catch((e=>{console.error(`Failed to end search query on cells.`,e)}))}}async setIsActive(e){if(this._isActive===e){return}this._isActive=e;if(this._isActive){if(this.query!==null){await this.startQuery(this.query,this.filters)}}else{await this.endQuery()}}async setSearchSelection(e){if(this._inSelection===e){return}this._inSelection=e;await this.updateCodeMirror(this.model.sharedModel.getSource());this._stateChanged.emit()}setProtectSelection(e){this.cmHandler.protectSelection=e}async startQuery(e,t){this.query=e;this.filters=t;const n=this.model.sharedModel.getSource();await this.updateCodeMirror(n);this.model.sharedModel.changed.connect(this.onSharedModelChanged,this)}async endQuery(){await this.clearHighlight();await this.cmHandler.endQuery();this.currentIndex=null}async highlightNext(e=true,t){if(this.matchesCount===0||!this.isActive){this.currentIndex=null}else{let n=await this.cmHandler.highlightNext(t);if(n){this.currentIndex=this.cmHandler.currentIndex}else{this.currentIndex=e?0:null}return n}return Promise.resolve(this.getCurrentMatch())}async highlightPrevious(e=true,t){if(this.matchesCount===0||!this.isActive){this.currentIndex=null}else{let n=await this.cmHandler.highlightPrevious(t);if(n){this.currentIndex=this.cmHandler.currentIndex}else{this.currentIndex=e?this.matchesCount-1:null}return n}return Promise.resolve(this.getCurrentMatch())}replaceCurrentMatch(e,t,n){if(!this.isActive){return Promise.resolve(false)}let i=false;if(this.currentIndex!==null&&this.currentIndex0;let i=this.model.sharedModel.getSource();let s=0;const o=this.cmHandler.matches.reduce(((n,o)=>{const r=o.position;const a=r+o.text.length;const l=(t===null||t===void 0?void 0:t.regularExpression)?o.text.replace(this.query,e):e;const d=(t===null||t===void 0?void 0:t.preserveCase)?te.GenericSearchProvider.preserveCase(o.text,l):l;const c=`${n}${i.slice(s,r)}${d}`;s=a;return c}),"");if(n){this.cmHandler.matches=[];this.currentIndex=null;this.model.sharedModel.setSource(`${o}${i.slice(s)}`)}return Promise.resolve(n)}getCurrentMatch(){if(this.currentIndex===null){return undefined}else{let e=undefined;if(this.currentIndexe.position>=n&&e.position<=i));if(this.cmHandler.currentIndex===null&&this.cmHandler.matches.length>0){await this.cmHandler.highlightNext({from:"selection",select:false,scroll:false})}this.currentIndex=this.cmHandler.currentIndex}else{this.cmHandler.matches=t}}else{this.cmHandler.matches=[]}}}class ie{constructor(e){this._current=null;this._cm=e;this._matches=new Array;this._currentIndex=null;this._highlightEffect=r.StateEffect.define({map:(e,t)=>{const n=e=>({text:e.text,position:t.mapPos(e.position)});return{matches:e.matches.map(n),currentMatch:e.currentMatch?n(e.currentMatch):null}}});this._highlightMark=a.Decoration.mark({class:"cm-searching"});this._currentMark=a.Decoration.mark({class:"jp-current-match"});this._highlightField=r.StateField.define({create:()=>a.Decoration.none,update:(e,t)=>{e=e.map(t.changes);for(let n of t.effects){if(n.is(this._highlightEffect)){const t=n;if(t.value.matches.length){e=e.update({add:t.value.matches.map((e=>this._highlightMark.range(e.position,e.position+e.text.length))),filter:()=>false});e=e.update({add:t.value.currentMatch?[this._currentMark.range(t.value.currentMatch.position,t.value.currentMatch.position+t.value.currentMatch.text.length)]:[]})}else{e=a.Decoration.none}}}return e},provide:e=>a.EditorView.decorations.from(e)});this._domEventHandlers=a.EditorView.domEventHandlers({focus:()=>{this._selectCurrentMatch()}})}get currentIndex(){return this._currentIndex}get matches(){return this._matches}set matches(e){this._matches=e;if(this._currentIndex!==null&&this._currentIndex>this._matches.length){this._currentIndex=this._matches.length>0?0:null}this._highlightCurrentMatch({select:false})}get protectSelection(){return this._protectSelection}set protectSelection(e){this._protectSelection=e}clearHighlight(){this._currentIndex=null;this._highlightCurrentMatch()}endQuery(){this._currentIndex=null;this._matches=[];if(this._cm){this._cm.editor.dispatch({effects:this._highlightEffect.of({matches:[],currentMatch:null})})}return Promise.resolve()}highlightNext(e){var t;this._currentIndex=this._findNext(false,(t=e===null||e===void 0?void 0:e.from)!==null&&t!==void 0?t:"auto");this._highlightCurrentMatch(e);return Promise.resolve(this._currentIndex!==null?this._matches[this._currentIndex]:undefined)}highlightPrevious(e){var t;this._currentIndex=this._findNext(true,(t=e===null||e===void 0?void 0:e.from)!==null&&t!==void 0?t:"auto");this._highlightCurrentMatch(e);return Promise.resolve(this._currentIndex!==null?this._matches[this._currentIndex]:undefined)}setEditor(e){if(this._cm){throw new Error("CodeMirrorEditor already set.")}else{this._cm=e;if(this._currentIndex!==null){this._highlightCurrentMatch()}this._cm.editor.dispatch({effects:r.StateEffect.appendConfig.of(this._domEventHandlers)});this._refresh()}}_selectCurrentMatch(e=true){const t=this._current;if(!t){return}if(!this._cm){return}const n={anchor:t.position,head:t.position+t.text.length};const i=this._cm.editor.state.selection.main;if(i.from===t.position&&i.to===t.position+t.text.length||this._protectSelection){if(e){this._cm.editor.dispatch({effects:a.EditorView.scrollIntoView(r.EditorSelection.range(n.anchor,n.head))});return}}else{this._cm.editor.dispatch({selection:n,scrollIntoView:e})}}_highlightCurrentMatch(e){var t,n,i;if(!this._cm){return}if(this._currentIndex!==null){const s=this.matches[this._currentIndex];this._current=s;if((t=e===null||e===void 0?void 0:e.select)!==null&&t!==void 0?t:true){if(this._cm.hasFocus()){this._selectCurrentMatch((n=e===null||e===void 0?void 0:e.scroll)!==null&&n!==void 0?n:true)}else if((i=e===null||e===void 0?void 0:e.scroll)!==null&&i!==void 0?i:true){this._cm.editor.dispatch({effects:a.EditorView.scrollIntoView(s.position)})}}}else{this._current=null}this._refresh()}_refresh(){if(!this._cm){return}let e=[this._highlightEffect.of({matches:this.matches,currentMatch:this._current})];if(!this._cm.state.field(this._highlightField,false)){e.push(r.StateEffect.appendConfig.of([this._highlightField]))}this._cm.editor.dispatch({effects:e})}_findNext(e,t="auto"){if(this._matches.length===0){return null}let n=0;if(t==="auto"&&this._cm.hasFocus()||t==="selection"){const t=this._cm.state.selection.main;n=e?t.anchor:t.head}else if(t==="selection-start"){const e=this._cm.state.selection.main;n=Math.min(e.anchor,e.head)}else if(t==="start"){n=0}else if(this._current){n=e?this._current.position:this._current.position+this._current.text.length}if(n===0&&e&&this.currentIndex===null){n=this._cm.doc.length}const i=n;let s=se.findNext(this._matches,i,0,this._matches.length-1);if(s===null){return e?this._matches.length-1:null}if(e){s-=1;if(s<0){return null}}return s}}var se;(function(e){function t(e,t,n=0,i=Infinity){i=Math.min(e.length-1,i);while(n<=i){let s=Math.floor(.5*(n+i));const o=e[s].position;if(ot){return n}}else if(o>t){i=s-1;if(i>0&&e[i].position0?n-1:0;const o=e[s];return o.position>=t?s:null}e.findNext=t})(se||(se={}));const oe=new l.Token("@jupyterlab/codemirror:IEditorExtensionRegistry",`A registry for CodeMirror extension factories.`);const re=new l.Token("@jupyterlab/codemirror:IEditorLanguageRegistry","A registry for CodeMirror languages.");const ae=new l.Token("@jupyterlab/codemirror:IEditorThemeRegistry","A registry for CodeMirror theme.")},37935:(e,t,n)=>{"use strict";var i=n(49914);var s=n(38613);var o=n(93379);var r=n.n(o);var a=n(7795);var l=n.n(a);var d=n(90569);var c=n.n(d);var h=n(3565);var u=n.n(h);var p=n(19216);var m=n.n(p);var g=n(44589);var f=n.n(g);var v=n(67657);var _={};_.styleTagTransform=f();_.setAttributes=u();_.insert=c().bind(null,"head");_.domAPI=l();_.insertStyleElement=m();var b=r()(v.Z,_);const y=v.Z&&v.Z.locals?v.Z.locals:undefined},45759:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>m});var i=n(62638);var s=n(95811);var o=n(4148);var r=n(28416);var a=n.n(r);const l="availableProviders";function d(e){const{schema:t}=e;const n=t.title;const i=t.description;const s=e.formContext.settings;const o=s.get(l).user;const d={...t.default};if(o){for(const e of Object.keys(d)){if(e in o){d[e]=o[e]}else{d[e]=-1}}}const[c,h]=(0,r.useState)(d);const u=(e,t)=>{const n={...c,[e]:parseInt(t.target.value)};s.set(l,n).catch(console.error);h(n)};return a().createElement("div",null,a().createElement("fieldset",null,a().createElement("legend",null,n),a().createElement("p",{className:"field-description"},i),Object.keys(d).map((e=>a().createElement("div",{key:e,className:"form-group small-field"},a().createElement("div",null,a().createElement("h3",null," ",e),a().createElement("div",{className:"inputFieldWrapper"},a().createElement("input",{className:"form-control",type:"number",value:c[e],onChange:t=>{u(e,t)}}))))))))}const c="@jupyterlab/completer-extension:manager";const h={id:"@jupyterlab/completer-extension:base-service",description:"Adds context and kernel completion providers.",requires:[i.ICompletionProviderManager],autoStart:true,activate:(e,t)=>{t.registerProvider(new i.ContextCompleterProvider);t.registerProvider(new i.KernelCompleterProvider)}};const u={id:c,description:"Provides the completion provider manager.",requires:[s.ISettingRegistry],optional:[o.IFormRendererRegistry],provides:i.ICompletionProviderManager,autoStart:true,activate:(e,t,n)=>{const s="availableProviders";const o="providerTimeout";const r="showDocumentationPanel";const a="autoCompletion";const l=new i.CompletionProviderManager;const h=(e,t)=>{var n;const i=e.get(s);const d=e.get(o);const c=e.get(r);const h=e.get(a);l.setTimeout(d.composite);l.setShowDocumentationPanel(c.composite);l.setContinuousHinting(h.composite);const u=(n=i.user)!==null&&n!==void 0?n:i.composite;const p=Object.entries(u!==null&&u!==void 0?u:{}).filter((e=>e[1]>=0&&t.includes(e[0]))).sort((([,e],[,t])=>t-e)).map((e=>e[0]));l.activateProvider(p)};e.restored.then((()=>{const e=[...l.getProviders().entries()];const n=e.map((([e,t])=>e));t.transform(c,{fetch:t=>{const n=t.schema.properties;const i={};e.forEach((([e,t],n)=>{var s;i[e]=(s=t.rank)!==null&&s!==void 0?s:(n+1)*10}));n[s]["default"]=i;return t}});const i=t.load(c);i.then((e=>{h(e,n);e.changed.connect((e=>{h(e,n)}))})).catch(console.error)})).catch(console.error);if(n){const e={fieldRenderer:e=>d(e)};n.addRenderer(`${c}.availableProviders`,e)}return l}};const p=[u,h];const m=p},55834:(e,t,n)=>{"use strict";var i=n(34849);var s=n(90516);var o=n(64431)},79621:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CONTEXT_PROVIDER_ID:()=>T,Completer:()=>M,CompleterModel:()=>m,CompletionHandler:()=>h,CompletionProviderManager:()=>R,CompletionTriggerKind:()=>a,ContextCompleterProvider:()=>D,ICompletionProviderManager:()=>l,KERNEL_PROVIDER_ID:()=>P,KernelCompleterProvider:()=>A,ProviderReconciliator:()=>I});var i=n(20501);var s=n(28821);var o=n(71372);var r=n(5596);var a;(function(e){e[e["Invoked"]=1]="Invoked";e[e["TriggerCharacter"]=2]="TriggerCharacter";e[e["TriggerForIncompleteCompletions"]=3]="TriggerForIncompleteCompletions"})(a||(a={}));const l=new r.Token("@jupyterlab/completer:ICompletionProviderManager","A service for the completion providers management.");const d="jp-mod-completer-enabled";const c="jp-mod-completer-active";class h{constructor(e){this._editor=null;this._enabled=false;this._isDisposed=false;this._autoCompletion=false;this.completer=e.completer;this.completer.selected.connect(this.onCompletionSelected,this);this.completer.visibilityChanged.connect(this.onVisibilityChanged,this);this._reconciliator=e.reconciliator}set reconciliator(e){this._reconciliator=e}get editor(){return this._editor}set editor(e){if(e===this._editor){return}let t=this._editor;if(t&&!t.isDisposed){const e=t.model;t.host.classList.remove(d);t.host.classList.remove(c);e.selections.changed.disconnect(this.onSelectionsChanged,this);e.sharedModel.changed.disconnect(this.onTextChanged,this)}this.completer.reset();this.completer.editor=e;t=this._editor=e;if(t){const e=t.model;this._enabled=false;e.selections.changed.connect(this.onSelectionsChanged,this);e.sharedModel.changed.connect(this.onTextChanged,this);this.onSelectionsChanged()}}get isDisposed(){return this._isDisposed}set autoCompletion(e){this._autoCompletion=e}get autoCompletion(){return this._autoCompletion}dispose(){if(this.isDisposed){return}this._isDisposed=true;o.Signal.clearData(this)}invoke(){s.MessageLoop.sendMessage(this,h.Msg.InvokeRequest)}processMessage(e){switch(e.type){case h.Msg.InvokeRequest.type:this.onInvokeRequest(e);break;default:break}}getState(e,t){return{text:e.model.sharedModel.getSource(),line:t.line,column:t.column}}onCompletionSelected(e,t){const n=e.model;const i=this._editor;if(!i||!n){return}const s=n.createPatch(t);if(!s){return}const{start:o,end:r,value:a}=s;const l=i.getOffsetAt(i.getCursorPosition());i.model.sharedModel.updateSource(o,r,a);if(l<=r&&l>=o){i.setCursorPosition(i.getPositionAt(o+a.length))}}onInvokeRequest(e){if(!this.completer.model){return}if(this.completer.model.original){return}const t=this._editor;if(t){this._makeRequest(t.getCursorPosition(),a.Invoked).catch((e=>{console.warn("Invoke request bailed",e)}))}}onSelectionsChanged(){const e=this.completer.model;const t=this._editor;if(!t){return}const n=t.host;if(!e){this._enabled=false;n.classList.remove(d);return}if(e.subsetMatch){return}const i=t.getCursorPosition();const s=t.getLine(i.line);if(!s){this._enabled=false;e.reset(true);n.classList.remove(d);return}const{start:o,end:r}=t.getSelection();if(o.column!==r.column||o.line!==r.line){this._enabled=false;e.reset(true);n.classList.remove(d);return}if(s.slice(0,i.column).match(/^\s*$/)){this._enabled=false;e.reset(true);n.classList.remove(d);return}if(!this._enabled){this._enabled=true;n.classList.add(d)}e.handleCursorChange(this.getState(t,t.getCursorPosition()))}async onTextChanged(e,t){const n=this.completer.model;if(!n||!this._enabled){return}const i=this.editor;if(!i){return}if(this._autoCompletion&&this._reconciliator.shouldShowContinuousHint&&await this._reconciliator.shouldShowContinuousHint(this.completer.isVisible,t)){void this._makeRequest(i.getCursorPosition(),a.TriggerCharacter)}const{start:s,end:o}=i.getSelection();if(s.column!==o.column||s.line!==o.line){return}n.handleTextChange(this.getState(i,i.getCursorPosition()))}onVisibilityChanged(e){if(e.isDisposed||e.isHidden){if(this._editor){this._editor.host.classList.remove(c);this._editor.focus()}return}if(this._editor){this._editor.host.classList.add(c)}}_makeRequest(e,t){const n=this.editor;if(!n){return Promise.reject(new Error("No active editor"))}const s=n.model.sharedModel.getSource();const o=i.Text.jsIndexToCharIndex(n.getOffsetAt(e),s);const r=this.getState(n,e);const a={text:s,offset:o};return this._reconciliator.fetch(a,t).then((e=>{if(!e){return}const t=this._updateModel(r,e.start,e.end);if(!t){return}if(t.setCompletionItems){t.setCompletionItems(e.items)}})).catch((e=>{}))}_updateModel(e,t,n){const s=this.completer.model;const o=e.text;if(!s){return null}s.original=e;s.cursor={start:i.Text.charIndexToJsIndex(t,o),end:i.Text.charIndexToJsIndex(n,o)};return s}}(function(e){let t;(function(e){e.InvokeRequest=new s.Message("invoke-request")})(t=e.Msg||(e.Msg={}))})(h||(h={}));var u=n(58740);function p(e){const t=document.createElement("span");t.textContent=e;return t.innerHTML}class m{constructor(){this.processedItemsCache=null;this._current=null;this._cursor=null;this._isDisposed=false;this._completionItems=[];this._original=null;this._query="";this._subsetMatch=false;this._typeMap={};this._orderedTypes=[];this._stateChanged=new o.Signal(this);this._queryChanged=new o.Signal(this);this._processedToOriginalItem=null;this._resolvingItem=0}get stateChanged(){return this._stateChanged}get queryChanged(){return this._queryChanged}get original(){return this._original}set original(e){const t=this._original===e||this._original&&e&&r.JSONExt.deepEqual(e,this._original);if(t){return}this._reset();this._current=this._original=e;this._stateChanged.emit(undefined)}get current(){return this._current}set current(e){const t=this._current===e||this._current&&e&&r.JSONExt.deepEqual(e,this._current);if(t){return}const n=this._original;if(!n){return}const i=this._cursor;if(!i){return}const s=this._current=e;if(!s){this._stateChanged.emit(undefined);return}const o=n.text.split("\n")[n.line];const a=s.text.split("\n")[s.line];if(!this._subsetMatch&&a.lengthe.processedItem));this._processedToOriginalItem=new WeakMap(t.map((e=>[e.processedItem,e.originalItem])))}else{this.processedItemsCache=this._completionItems.map((e=>this._escapeItemLabel(e)));this._processedToOriginalItem=null}}return this.processedItemsCache}setCompletionItems(e){if(r.JSONExt.deepEqual(e,this._completionItems)){return}this._completionItems=e;this._orderedTypes=g.findOrderedCompletionItemTypes(this._completionItems);this.processedItemsCache=null;this._processedToOriginalItem=null;this._stateChanged.emit(undefined)}typeMap(){return this._typeMap}orderedTypes(){return this._orderedTypes}handleCursorChange(e){if(!this._original){return}const{column:t,line:n}=e;const{current:i,original:s}=this;if(!s){return}if(n!==s.line){this.reset(true);return}if(ts.column+r+d){this.reset(true);return}}handleTextChange(e){const t=this._original;if(!t){return}const{text:n,column:i,line:s}=e;const o=n.split("\n")[s][i-1];if(o&&o.match(/\S/)||e.column>=t.column){this.current=e;return}this.reset(false)}createPatch(e){const t=this._original;const n=this._cursor;const i=this._current;if(!t||!n||!i){return undefined}let{start:s,end:o}=n;o=o+(i.text.length-t.text.length);return{start:s,end:o,value:e}}reset(e=false){if(!e&&this._subsetMatch){return}this._reset();this._stateChanged.emit(undefined)}_markup(e){var t;const n=this._completionItems;let i=[];for(const s of n){const n=s.label.indexOf("(");const o=n>-1?s.label.substring(0,n):s.label;const r=u.StringExt.matchSumOfSquares(p(o),e);if(r){let e=u.StringExt.highlight(p(s.label),r.indices,g.mark);const n=Object.assign({},s);n.label=e.join("");n.insertText=(t=s.insertText)!==null&&t!==void 0?t:s.label;i.push({item:n,score:r.score,originalItem:s})}}i.sort(g.scoreCmp);return i.map((e=>({processedItem:e.item,originalItem:e.originalItem})))}resolveItem(e){let t;if(typeof e==="number"){const n=this.completionItems();if(!n||!n[e]){return undefined}t=n[e]}else{t=e}if(!t){return undefined}let n;if(this._processedToOriginalItem){n=this._processedToOriginalItem.get(t)}else{n=t}if(!n){return undefined}return this._resolveItemByValue(n)}_resolveItemByValue(e){const t=++this._resolvingItem;let n;if(e.resolve){let t;if(e.insertText){t=this.createPatch(e.insertText)}n=e.resolve(t)}else{n=Promise.resolve(e)}return n.then((n=>{this._escapeItemLabel(n,true);Object.keys(n).forEach((t=>{e[t]=n[t]}));e.resolve=undefined;if(t!==this._resolvingItem){return Promise.resolve(null)}return n})).catch((t=>{console.error(t);return Promise.resolve(e)}))}_escapeItemLabel(e,t=false){var n;const i=p(e.label);if(i!==e.label){const s=t?e:Object.assign({},e);s.insertText=(n=e.insertText)!==null&&n!==void 0?n:e.label;s.label=i;return s}return e}_reset(){const e=this._query;this._current=null;this._cursor=null;this._completionItems=[];this._original=null;this._query="";this.processedItemsCache=null;this._processedToOriginalItem=null;this._subsetMatch=false;this._typeMap={};this._orderedTypes=[];if(e){this._queryChanged.emit({newValue:this._query,origin:"reset"})}}}var g;(function(e){const t=["function","instance","class","module","keyword"];const n=t.reduce(((e,t)=>{e[t]=null;return e}),{});function i(e){return`${e}`}e.mark=i;function s(e,t){var n,i,s;const o=e.score-t.score;if(o!==0){return o}return(s=(n=e.item.insertText)===null||n===void 0?void 0:n.localeCompare((i=t.item.insertText)!==null&&i!==void 0?i:""))!==null&&s!==void 0?s:0}e.scoreCmp=s;function o(e){const n=new Set;e.forEach((e=>{if(e.type&&!t.includes(e.type)&&!n.has(e.type)){n.add(e.type)}}));const i=Array.from(n);i.sort(((e,t)=>e.localeCompare(t)));return t.concat(i)}e.findOrderedCompletionItemTypes=o;function r(e){const i=Object.keys(e).map((t=>e[t])).filter((e=>!!e&&!(e in n))).sort(((e,t)=>e.localeCompare(t)));return t.concat(i)}e.findOrderedTypes=r})(g||(g={}));var f=n(10759);var v=n(23635);var _=n(4148);var b=n(36044);var y=n(85448);const w="jp-Completer-item";const C="jp-mod-active";const x="jp-Completer-list";const S="jp-Completer-docpanel";const k=true;const j=10;class M extends y.Widget{constructor(e){var t,n,i,s;super({node:document.createElement("div")});this._activeIndex=0;this._editor=null;this._model=null;this._selected=new o.Signal(this);this._visibilityChanged=new o.Signal(this);this._indexChanged=new o.Signal(this);this._lastSubsetMatch="";this._geometryLock=false;this._geometryCounter=0;this._docPanelExpanded=false;this._renderCounter=0;this.sanitizer=(t=e.sanitizer)!==null&&t!==void 0?t:new f.Sanitizer;this._defaultRenderer=M.getDefaultRenderer(this.sanitizer);this._renderer=(n=e.renderer)!==null&&n!==void 0?n:this._defaultRenderer;this._docPanel=this._createDocPanelNode();this.model=(i=e.model)!==null&&i!==void 0?i:null;this.editor=(s=e.editor)!==null&&s!==void 0?s:null;this.addClass("jp-Completer");this._updateConstraints()}_updateConstraints(){const e=document.createElement("div");e.classList.add(x);e.style.visibility="hidden";e.style.overflowY="scroll";document.body.appendChild(e);const t=window.getComputedStyle(e);this._maxHeight=parseInt(t.maxHeight,10);this._minHeight=parseInt(t.minHeight,10);this._scrollbarWidth=e.offsetWidth-e.clientWidth;document.body.removeChild(e);const n=this._createDocPanelNode();this._docPanelWidth=E.measureSize(n,"inline-block").width}get activeIndex(){return this._activeIndex}get editor(){return this._editor}set editor(e){this._editor=e}get selected(){return this._selected}get visibilityChanged(){return this._visibilityChanged}get indexChanged(){return this._indexChanged}get model(){return this._model}set model(e){if(!e&&!this._model||e===this._model){return}if(this._model){this._model.stateChanged.disconnect(this.onModelStateChanged,this);this._model.queryChanged.disconnect(this.onModelQueryChanged,this)}this._model=e;if(this._model){this._model.stateChanged.connect(this.onModelStateChanged,this);this._model.queryChanged.connect(this.onModelQueryChanged,this)}}get renderer(){return this._renderer}set renderer(e){this._renderer=e}set showDocsPanel(e){this._showDoc=e}get showDocsPanel(){return this._showDoc}dispose(){this._sizeCache=undefined;this._model=null;super.dispose()}handleEvent(e){if(this.isHidden||!this._editor){return}switch(e.type){case"keydown":this._evtKeydown(e);break;case"pointerdown":this._evtPointerdown(e);break;case"scroll":this._evtScroll(e);break;default:break}}reset(){this._activeIndex=0;this._lastSubsetMatch="";if(this._model){this._model.reset(true)}this._docPanel.style.display="none";this._sizeCache=undefined;this.node.scrollTop=0}selectActive(){const e=this.node.querySelector(`.${C}`);if(!e){this.reset();return}this._selected.emit(e.getAttribute("data-value"));this.reset()}onAfterAttach(e){document.addEventListener("keydown",this,k);document.addEventListener("pointerdown",this,k);document.addEventListener("scroll",this,k)}onBeforeDetach(e){document.removeEventListener("keydown",this,k);document.removeEventListener("pointerdown",this,k);document.removeEventListener("scroll",this,k)}onModelStateChanged(){if(this.isAttached){this._activeIndex=0;this._indexChanged.emit(this._activeIndex);this.update()}}onModelQueryChanged(e,t){if(this._sizeCache&&t.origin==="editorUpdate"){const t=e.completionItems();const n=this._sizeCache.items;const i=n[this._findWidestItemIndex(n)];const s=t[this._findWidestItemIndex(t)];const o=this._getPreferredItemWidthHeuristic();if(t.length!==this._sizeCache.items.length||o(i)!==o(s)){this._sizeCache=undefined}}}onUpdateRequest(e){var t;const n=this._model;if(!n){return}if(!n.query){this._populateSubset()}let i=n.completionItems();if(!i.length){if(!this.isHidden){this.reset();this.hide();this._visibilityChanged.emit(undefined)}return}this._updateConstraints();this._geometryLock=true;const s=this._createCompleterNode(n,i);let o=s.querySelectorAll(`.${w}`)[this._activeIndex];o.classList.add(C);const r=(t=this.model)===null||t===void 0?void 0:t.resolveItem(i[this._activeIndex]);if(this._showDoc){this._docPanel.innerText="";s.appendChild(this._docPanel);this._docPanelExpanded=false;this._docPanel.style.display="none";this._updateDocPanel(r,o)}if(this.isHidden){this.show();this._setGeometry();this._visibilityChanged.emit(undefined)}else{this._setGeometry()}this._geometryLock=false}get sizeCache(){if(!this._sizeCache){return}return{width:this._sizeCache.width+this._sizeCache.docPanelWidth,height:Math.max(this._sizeCache.height,this._sizeCache.docPanelHeight)}}_createDocPanelNode(){const e=document.createElement("div");e.className=S;return e}_createCompleterNode(e,t){const n=++this._renderCounter;let i=this.node;i.textContent="";let s=e.orderedTypes();let o=document.createElement("ul");o.className=x;const r=this._renderer.createCompletionItemNode(t[0],s);const a=[r];const l=E.measureSize(r,"inline-grid");const d=Math.max(Math.ceil(this._maxHeight/l.height),5);const c=Math.min(d+1,t.length);const h=performance.now();for(let g=1;g{if(r>=t.length){return}const e=l.height*(t.length-r);d.style.marginBottom=`${e}px`;requestAnimationFrame((()=>{if(n!=this._renderCounter){return}d.style.marginBottom="";const e=Math.min(t.length,r+i);for(let n=r;n{this._setGeometry()}))}_populateSubset(){const{model:e}=this;if(!e){return false}const t=e.completionItems();const n=E.commonSubset(t.map((e=>e.insertText||e.label)));const{query:i}=e;if(n&&n!==i&&n.indexOf(i)===0){e.query=n;return true}return false}_setGeometry(){const{node:e}=this;const t=this._model;const n=this._editor;if(!n||!t||!t.original||!t.cursor){return}const i=t.cursor.start;const s=n.getPositionAt(i);const o=n.getCoordinateForPosition(s);const r=window.getComputedStyle(e);const a=parseInt(r.borderLeftWidth,10)||0;const l=parseInt(r.paddingLeft,10)||0;const d=n.host.closest(".jp-MainAreaWidget > .lm-Widget")||n.host;const c=t.completionItems();if(this._sizeCache&&this._sizeCache.items.length!==c.length){this._sizeCache=undefined}_.HoverBox.setGeometry({anchor:o,host:d,maxHeight:this._maxHeight,minHeight:this._minHeight,node:e,size:this.sizeCache,offset:{horizontal:a+l},privilege:"below",style:r,outOfViewDisplay:{top:"stick-inside",bottom:"stick-inside",left:"stick-inside",right:"stick-outside"}});const h=++this._geometryCounter;if(!this._sizeCache){requestAnimationFrame((()=>{if(h!=this._geometryCounter){return}let t=e.getBoundingClientRect();let n=this._docPanel.getBoundingClientRect();this._sizeCache={width:t.width-n.width,height:t.height,items:c,docPanelWidth:n.width,docPanelHeight:n.height}}))}}_updateDocPanel(e,t){var n,i,s;let o=this._docPanel;if(!e){this._toggleDocPanel(false);return}const r=(s=(i=(n=this._renderer).createLoadingDocsIndicator)===null||i===void 0?void 0:i.call(n))!==null&&s!==void 0?s:this._defaultRenderer.createLoadingDocsIndicator();t.appendChild(r);e.then((e=>{var t,n,i;if(!e){return}if(!o){return}if(e.documentation){const s=(i=(n=(t=this._renderer).createDocumentationNode)===null||n===void 0?void 0:n.call(t,e))!==null&&i!==void 0?i:this._defaultRenderer.createDocumentationNode(e);o.textContent="";o.appendChild(s);this._toggleDocPanel(true)}else{this._toggleDocPanel(false)}})).catch((e=>console.error(e))).finally((()=>{t.removeChild(r)}))}_toggleDocPanel(e){let t=this._docPanel;if(e){if(this._docPanelExpanded){return}t.style.display="";this._docPanelExpanded=true}else{if(!this._docPanelExpanded){return}t.style.display="none";this._docPanelExpanded=false}const n=this._sizeCache;if(n){n.docPanelHeight=e?this._maxHeight:0;n.docPanelWidth=e?this._docPanelWidth:0;if(!this._geometryLock){this._setGeometry()}}}}(function(e){class t{constructor(e){this.sanitizer=(e===null||e===void 0?void 0:e.sanitizer)||new f.Sanitizer}createCompletionItemNode(e,t){let n=this._createWrapperNode(e.insertText||e.label);if(e.deprecated){n.classList.add("jp-Completer-deprecated")}return this._constructNode(n,this._createLabelNode(e.label),!!e.type,e.type,t,e.icon)}createDocumentationNode(e){const t=document.createElement("div");t.classList.add("jp-RenderedText");const n=this.sanitizer;const i=e.documentation||"";(0,v.renderText)({host:t,sanitizer:n,source:i}).catch(console.error);return t}itemWidthHeuristic(e){var t;const n=e.label.replace(/<(\/)?mark>/g,"");return n.length+(((t=e.type)===null||t===void 0?void 0:t.length)||0)}createLoadingDocsIndicator(){const e=document.createElement("div");e.classList.add("jp-Completer-loading-bar-container");const t=document.createElement("div");t.classList.add("jp-Completer-loading-bar");e.append(t);return e}_createWrapperNode(e){const t=document.createElement("li");t.className=w;t.setAttribute("data-value",e);return t}_createLabelNode(e){const t=document.createElement("code");t.className="jp-Completer-match";t.innerHTML=e;return t}_constructNode(e,t,n,i,s,o){if(o){const t=o.element({className:"jp-Completer-type jp-Completer-icon"});e.appendChild(t)}else if(n){const t=document.createElement("span");t.textContent=(i[0]||"").toLowerCase();const n=s.indexOf(i)%j+1;t.className="jp-Completer-type jp-Completer-monogram";t.setAttribute(`data-color-index`,n.toString());e.appendChild(t)}else{const t=document.createElement("span");t.className="jp-Completer-monogram";e.appendChild(t)}e.appendChild(t);if(n){e.title=i;const t=document.createElement("code");t.className="jp-Completer-typeExtended";t.textContent=i.toLocaleLowerCase();e.appendChild(t)}else{const t=document.createElement("span");t.className="jp-Completer-typeExtended";e.appendChild(t)}return e}}e.Renderer=t;let n;function i(e){if(!n||e&&n.sanitizer!==e){n=new t({sanitizer:e})}return n}e.getDefaultRenderer=i})(M||(M={}));var E;(function(e){e.keyCodeMap={38:"up",40:"down",33:"pageUp",34:"pageDown"};function t(e){const t=e.length;let n="";if(t<2){return n}const i=e[0].length;for(let s=0;se.resolve?n=>e.resolve(t,this._context,n):undefined;this._fetching=0;this._providers=e.providers;this._context=e.context;this._timeout=e.timeout}async applicableProviders(){const e=this._providers.map((e=>e.isApplicable(this._context)));const t=await Promise.all(e);return this._providers.filter(((e,n)=>t[n]))}async fetch(e,t){const n=++this._fetching;let i=[];const s=await this.applicableProviders();for(const r of s){let s;s=r.fetch(e,this._context,t).then((e=>{if(n!==this._fetching){return Promise.reject(void 0)}const t=e.items.map((e=>({...e,resolve:this._resolveFactory(r,e)})));return{...e,items:t}}));const o=new Promise((e=>setTimeout((()=>e(null)),this._timeout)));s=Promise.race([s,o]);i.push(s.catch((e=>e)))}const o=Promise.all(i);return this._mergeCompletions(o)}async shouldShowContinuousHint(e,t){const n=await this.applicableProviders();if(n.length===0){return false}if(n[0].shouldShowContinuousHint){return n[0].shouldShowContinuousHint(e,t,this._context)}return this._defaultShouldShowContinuousHint(e,t)}_alignPrefixes(e,t,n){if(t!=n){const t=this._context.editor;if(!t){return e}const i=t.getCursorPosition();const s=t.getLine(i.line);if(!s){return e}return e.map((e=>{if(e.start==n){return e}let t=s.substring(e.start,n);return{...e,items:e.items.map((e=>{let n=e.insertText||e.label;e.insertText=n.startsWith(t)?n.slice(t.length):n;return e}))}}))}return e}async _mergeCompletions(e){let t=(await e).filter((e=>{if(!e||e instanceof Error){return false}if(!e.items.length){return false}return true}));if(t.length==0){return null}else if(t.length==1){return t[0]}const n=Math.min(...t.map((e=>e.end)));const i=t.map((e=>e.start));const s=Math.min(...i);const o=Math.max(...i);t=this._alignPrefixes(t,s,o);const r=new Set;const a=new Array;for(const l of t){l.items.forEach((e=>{let t=(e.insertText||e.label).trim();if(r.has(t)){return}r.add(t);a.push(e)}))}return{start:o,end:n,items:a}}_defaultShouldShowContinuousHint(e,t){return!e&&(t.sourceChange==null||t.sourceChange.some((e=>e.insert!=null&&e.insert.length>0)))}}const T="CompletionProvider:context";class D{constructor(){this.identifier=T;this.rank=500;this.renderer=null}async isApplicable(e){return true}fetch(e,t){const n=t.editor;if(!n){return Promise.reject("No editor")}return new Promise((e=>{e(L.contextHint(n))}))}}var L;(function(e){function t(e){const t=e.getTokenAtCursor();const i=n(t,e);const s=i.filter((e=>e.type)).map((e=>e.value));const o=new Set(s);const r=new Array;o.forEach((e=>r.push({label:e})));return{start:t.offset,end:t.offset+t.value.length,items:r}}e.contextHint=t;function n(e,t){const n=t.getTokens();return n.filter((t=>t.value.indexOf(e.value)===0&&t.value!==e.value))}})(L||(L={}));const P="CompletionProvider:kernel";class A{constructor(){this.identifier=P;this.rank=550;this.renderer=null}async isApplicable(e){var t;const n=(t=e.session)===null||t===void 0?void 0:t.kernel;if(!n){return false}return true}async fetch(e,t){var n;const i=(n=t.session)===null||n===void 0?void 0:n.kernel;if(!i){throw new Error("No kernel for completion request.")}const s={code:e.text,cursor_pos:e.offset};const o=await i.requestComplete(s);const r=o.content;if(r.status!=="ok"){throw new Error("Completion fetch failed to return successfully.")}const a=new Array;const l=r.metadata._jupyter_types_experimental;r.matches.forEach(((e,t)=>{if(l&&l[t]){a.push({label:e,type:l[t].type,insertText:l[t].text})}else{a.push({label:e})}}));return{start:r.cursor_start,end:r.cursor_end,items:a}}async resolve(e,t,n){const{editor:s,session:o}=t;if(o&&s){let t=s.model.sharedModel.getSource();const r=s.getCursorPosition();let a=i.Text.jsIndexToCharIndex(s.getOffsetAt(r),t);const l=o.kernel;if(!t||!l){return Promise.resolve(e)}if(n){const{start:e,value:i}=n;t=t.substring(0,e)+i;a=a+i.length}const d={code:t,cursor_pos:a,detail_level:0};const c=await l.requestInspect(d);const h=c.content;if(h.status!=="ok"||!h.found){return e}e.documentation=h.data["text/plain"];return e}return e}shouldShowContinuousHint(e,t){const n=t.sourceChange;if(n==null){return true}if(n.some((e=>e.delete!=null))){return false}return n.some((t=>t.insert!=null&&(t.insert==="."||!e&&t.insert.trim().length>0)))}}class R{constructor(){this._activeProviders=new Set([P,T]);this._providers=new Map;this._panelHandlers=new Map;this._mostRecentContext=new Map;this._activeProvidersChanged=new o.Signal(this)}get activeProvidersChanged(){return this._activeProvidersChanged}setTimeout(e){this._timeout=e}setShowDocumentationPanel(e){this._panelHandlers.forEach((t=>t.completer.showDocsPanel=e));this._showDoc=e}setContinuousHinting(e){this._panelHandlers.forEach((t=>t.autoCompletion=e));this._autoCompletion=e}registerProvider(e){const t=e.identifier;if(this._providers.has(t)){console.warn(`Completion service with identifier ${t} is already registered`)}else{this._providers.set(t,e);this._panelHandlers.forEach(((e,t)=>{void this.updateCompleter(this._mostRecentContext.get(t))}))}}getProviders(){return this._providers}activateProvider(e){this._activeProviders=new Set([]);e.forEach((e=>{if(this._providers.has(e)){this._activeProviders.add(e)}}));if(this._activeProviders.size===0){this._activeProviders.add(P);this._activeProviders.add(T)}this._activeProvidersChanged.emit()}async updateCompleter(e){var t,n;const{widget:i,editor:s,sanitizer:o}=e;const r=i.id;const a=this._panelHandlers.get(r);const l=[...this._activeProviders][0];const d=this._providers.get(l);let c=(t=d===null||d===void 0?void 0:d.renderer)!==null&&t!==void 0?t:M.getDefaultRenderer(o);const h=d===null||d===void 0?void 0:d.modelFactory;let u;if(h){u=await h.call(d,e)}else{u=new m}this._mostRecentContext.set(i.id,e);const p={model:u,renderer:c,sanitizer:o,showDoc:this._showDoc};if(!a){const t=await this._generateHandler(e,p);this._panelHandlers.set(i.id,t);i.disposed.connect((e=>{this.disposeHandler(e.id,t);this._mostRecentContext.delete(r)}))}else{const t=a.completer;(n=t.model)===null||n===void 0?void 0:n.dispose();t.model=p.model;t.renderer=p.renderer;t.showDocsPanel=p.showDoc;a.autoCompletion=this._autoCompletion;if(s){a.editor=s;a.reconciliator=await this.generateReconciliator(e)}}}invoke(e){const t=this._panelHandlers.get(e);if(t){t.invoke()}}select(e){const t=this._panelHandlers.get(e);if(t){t.completer.selectActive()}}async generateReconciliator(e){const t=[];for(const n of this._activeProviders){const e=this._providers.get(n);if(e){t.push(e)}}return new I({context:e,providers:t,timeout:this._timeout})}disposeHandler(e,t){var n;(n=t.completer.model)===null||n===void 0?void 0:n.dispose();t.completer.dispose();t.dispose();this._panelHandlers.delete(e)}async _generateHandler(e,t){const n=new M(t);n.hide();y.Widget.attach(n,document.body);const i=await this.generateReconciliator(e);const s=new h({completer:n,reconciliator:i});s.editor=e.editor;return s}}},64431:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(79536);var r=n(98896);var a=n(93379);var l=n.n(a);var d=n(7795);var c=n.n(d);var h=n(90569);var u=n.n(h);var p=n(3565);var m=n.n(p);var g=n(19216);var f=n.n(g);var v=n(44589);var _=n.n(v);var b=n(62173);var y={};y.styleTagTransform=_();y.setAttributes=m();y.insert=u().bind(null,"head");y.domAPI=c();y.insertStyleElement=f();var w=l()(b.Z,y);const C=b.Z&&b.Z.locals?b.Z.locals:undefined},39511:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>T});var i=n(74574);var s=n(10759);var o=n(7005);var r=n(62638);var a=n(81201);var l=n(19804);var d=n(97095);var c=n(66899);var h=n(23635);var u=n(95811);var p=n(6958);var m=n(4148);var g=n(58740);var f=n(5596);var v=n(26512);var _=n(75379);const b={id:"@jupyterlab/console-extension:foreign",description:"Add foreign handler of IOPub messages to the console.",requires:[a.IConsoleTracker,u.ISettingRegistry,p.ITranslator],optional:[s.ICommandPalette],activate:w,autoStart:true};const y=b;function w(e,t,n,i,s){const o=i.load("jupyterlab");const{shell:r}=e;t.widgetAdded.connect(((e,t)=>{const i=t.console;const s=new a.ForeignHandler({sessionContext:i.sessionContext,parent:i});C.foreignHandlerProperty.set(i,s);void n.get("@jupyterlab/console-extension:tracker","showAllKernelActivity").then((({composite:e})=>{const t=e;s.enabled=t}));i.disposed.connect((()=>{s.dispose()}))}));const{commands:l}=e;const d=o.__("Console");const c="console:toggle-show-all-kernel-activity";function h(e){const n=t.currentWidget;const i=e["activate"]!==false;if(i&&n){r.activateById(n.id)}return n}l.addCommand(c,{label:e=>o.__("Show All Kernel Activity"),execute:e=>{const t=h(e);if(!t){return}const n=C.foreignHandlerProperty.get(t.console);if(n){n.enabled=!n.enabled}},isToggled:()=>{var e;return t.currentWidget!==null&&!!((e=C.foreignHandlerProperty.get(t.currentWidget.console))===null||e===void 0?void 0:e.enabled)},isEnabled:()=>t.currentWidget!==null&&t.currentWidget===r.currentWidget});if(s){s.addItem({command:c,category:d,args:{isPalette:true}})}}var C;(function(e){e.foreignHandlerProperty=new _.AttachedProperty({name:"foreignHandler",create:()=>undefined})})(C||(C={}));var x;(function(e){e.autoClosingBrackets="console:toggle-autoclosing-brackets";e.create="console:create";e.clear="console:clear";e.runUnforced="console:run-unforced";e.runForced="console:run-forced";e.linebreak="console:linebreak";e.interrupt="console:interrupt-kernel";e.restart="console:restart-kernel";e.closeAndShutdown="console:close-and-shutdown";e.open="console:open";e.inject="console:inject";e.changeKernel="console:change-kernel";e.getKernel="console:get-kernel";e.enterToExecute="console:enter-to-execute";e.shiftEnterToExecute="console:shift-enter-to-execute";e.interactionMode="console:interaction-mode";e.replaceSelection="console:replace-selection";e.shutdown="console:shutdown";e.invokeCompleter="completer:invoke-console";e.selectCompleter="completer:select-console"})(x||(x={}));const S={id:"@jupyterlab/console-extension:tracker",description:"Provides the console widget tracker.",provides:a.IConsoleTracker,requires:[a.ConsolePanel.IContentFactory,o.IEditorServices,h.IRenderMimeRegistry,u.ISettingRegistry],optional:[i.ILayoutRestorer,l.IDefaultFileBrowser,c.IMainMenu,s.ICommandPalette,d.ILauncher,i.ILabStatus,s.ISessionContextDialogs,m.IFormRendererRegistry,p.ITranslator],activate:D,autoStart:true};const k={id:"@jupyterlab/console-extension:factory",description:"Provides the console widget content factory.",provides:a.ConsolePanel.IContentFactory,requires:[o.IEditorServices],autoStart:true,activate:(e,t)=>{const n=t.factoryService.newInlineEditor;return new a.ConsolePanel.ContentFactory({editorFactory:n})}};const j={id:"@jupyterlab/console-extension:kernel-status",description:"Adds the console to the kernel status indicator model.",autoStart:true,requires:[a.IConsoleTracker,s.IKernelStatusModel],activate:(e,t,n)=>{const i=e=>{let n=null;if(e&&t.has(e)){return e.sessionContext}return n};n.addSessionProvider(i)}};const M={id:"@jupyterlab/console-extension:cursor-position",description:"Adds the console to the code editor cursor position model.",autoStart:true,requires:[a.IConsoleTracker,o.IPositionModel],activate:(e,t,n)=>{let i=null;const s=async e=>{let s=null;if(e!==i){i===null||i===void 0?void 0:i.console.promptCellCreated.disconnect(n.update);i=null;if(e&&t.has(e)){e.console.promptCellCreated.connect(n.update);const t=e.console.promptCell;s=null;if(t){await t.ready;s=t.editor}i=e}}else if(e){const t=e.console.promptCell;s=null;if(t){await t.ready;s=t.editor}}return s};n.addEditorProvider(s)}};const E={id:"@jupyterlab/console-extension:completer",description:"Adds completion to the console.",autoStart:true,requires:[a.IConsoleTracker],optional:[r.ICompletionProviderManager,p.ITranslator,s.ISanitizer],activate:L};const I=[k,S,y,j,M,E];const T=I;async function D(e,t,n,i,o,r,l,d,c,h,u,_,b,y){const w=y!==null&&y!==void 0?y:p.nullTranslator;const C=w.load("jupyterlab");const S=e.serviceManager;const{commands:k,shell:j}=e;const M=C.__("Console");const E=_!==null&&_!==void 0?_:new s.SessionContextDialogs({translator:w});const I=new s.WidgetTracker({namespace:"console"});if(r){void r.restore(I,{command:x.create,args:e=>{const{path:t,name:n,kernelPreference:i}=e.console.sessionContext;return{path:t,name:n,kernelPreference:{...i}}},name:e=>{var t;return(t=e.console.sessionContext.path)!==null&&t!==void 0?t:f.UUID.uuid4()},when:S.ready})}if(h){void S.ready.then((()=>{let e=null;const t=()=>{if(e){e.dispose();e=null}const t=S.kernelspecs.specs;if(!t){return}e=new v.DisposableSet;for(const n in t.kernelspecs){const i=n===t.default?0:Infinity;const s=t.kernelspecs[n];const o=s.resources["logo-svg"]||s.resources["logo-64x64"];e.add(h.add({command:x.create,args:{isLauncher:true,kernelPreference:{name:n}},category:C.__("Console"),rank:i,kernelIconUrl:o,metadata:{kernel:f.JSONExt.deepCopy(s.metadata||{})}}))}};t();S.kernelspecs.specsChanged.connect(t)}))}async function T(e){var s,r;await S.ready;const l=new a.ConsolePanel({manager:S,contentFactory:t,mimeTypeService:n.mimeTypeService,rendermime:i,sessionDialogs:E,translator:w,setBusy:(s=u&&(()=>u.setBusy()))!==null&&s!==void 0?s:undefined,...e});const d=(await o.get("@jupyterlab/console-extension:tracker","interactionMode")).composite;l.console.node.dataset.jpInteractionMode=d;await I.add(l);l.sessionContext.propertyChanged.connect((()=>{void I.save(l)}));j.add(l,"main",{ref:e.ref,mode:e.insertMode,activate:e.activate!==false,type:(r=e.type)!==null&&r!==void 0?r:"Console"});return l}const D="@jupyterlab/console-extension:tracker";let L;let P={};async function A(e){L=(await o.get(D,"interactionMode")).composite;P=(await o.get(D,"promptCellConfig")).composite;const t=e=>{var t,n;e.console.node.dataset.jpInteractionMode=L;e.console.editorConfig=P;(n=(t=e.console.promptCell)===null||t===void 0?void 0:t.editor)===null||n===void 0?void 0:n.setOptions(P)};if(e){t(e)}else{I.forEach(t)}}o.pluginChanged.connect(((e,t)=>{if(t===D){void A()}}));await A();if(b){const e=b.getRenderer("@jupyterlab/codemirror-extension:plugin.defaultConfig");if(e){b.addRenderer("@jupyterlab/console-extension:tracker.promptCellConfig",e)}}I.widgetAdded.connect(((e,t)=>{void A(t)}));k.addCommand(x.autoClosingBrackets,{execute:async e=>{var t;P.autoClosingBrackets=!!((t=e["force"])!==null&&t!==void 0?t:!P.autoClosingBrackets);await o.set(D,"promptCellConfig",P)},label:C.__("Auto Close Brackets for Code Console Prompt"),isToggled:()=>P.autoClosingBrackets});function R(){return I.currentWidget!==null&&I.currentWidget===j.currentWidget}let N=x.open;k.addCommand(N,{label:C.__("Open a console for the provided `path`."),execute:e=>{const t=e["path"];const n=I.find((e=>{var n;return((n=e.console.sessionContext.session)===null||n===void 0?void 0:n.path)===t}));if(n){if(e.activate!==false){j.activateById(n.id)}return n}else{return S.ready.then((()=>{const n=(0,g.find)(S.sessions.running(),(e=>e.path===t));if(n){return T(e)}return Promise.reject(`No running kernel session for path: ${t}`)}))}}});N=x.create;k.addCommand(N,{label:e=>{var t,n,i,s;if(e["isPalette"]){return C.__("New Console")}else if(e["isLauncher"]&&e["kernelPreference"]){const o=e["kernelPreference"];return(s=(i=(n=(t=S.kernelspecs)===null||t===void 0?void 0:t.specs)===null||n===void 0?void 0:n.kernelspecs[o.name||""])===null||i===void 0?void 0:i.display_name)!==null&&s!==void 0?s:""}return C.__("Console")},icon:e=>e["isPalette"]?undefined:m.consoleIcon,execute:e=>{var t;const n=(t=e["basePath"]||e["cwd"]||(l===null||l===void 0?void 0:l.model.path))!==null&&t!==void 0?t:"";return T({basePath:n,...e})}});function O(e){const t=I.currentWidget;const n=e["activate"]!==false;if(n&&t){j.activateById(t.id)}return t!==null&&t!==void 0?t:null}k.addCommand(x.clear,{label:C.__("Clear Console Cells"),execute:e=>{const t=O(e);if(!t){return}t.console.clear()},isEnabled:R});k.addCommand(x.runUnforced,{label:C.__("Run Cell (unforced)"),execute:e=>{const t=O(e);if(!t){return}return t.console.execute()},isEnabled:R});k.addCommand(x.runForced,{label:C.__("Run Cell (forced)"),execute:e=>{const t=O(e);if(!t){return}return t.console.execute(true)},isEnabled:R});k.addCommand(x.linebreak,{label:C.__("Insert Line Break"),execute:e=>{const t=O(e);if(!t){return}t.console.insertLinebreak()},isEnabled:R});k.addCommand(x.replaceSelection,{label:C.__("Replace Selection in Console"),execute:e=>{const t=O(e);if(!t){return}const n=e["text"]||"";t.console.replaceSelection(n)},isEnabled:R});k.addCommand(x.interrupt,{label:C.__("Interrupt Kernel"),execute:e=>{var t;const n=O(e);if(!n){return}const i=(t=n.console.sessionContext.session)===null||t===void 0?void 0:t.kernel;if(i){return i.interrupt()}},isEnabled:R});k.addCommand(x.restart,{label:C.__("Restart Kernel…"),execute:e=>{const t=O(e);if(!t){return}return E.restart(t.console.sessionContext)},isEnabled:R});k.addCommand(x.shutdown,{label:C.__("Shut Down"),execute:e=>{const t=O(e);if(!t){return}return t.console.sessionContext.shutdown()}});k.addCommand(x.closeAndShutdown,{label:C.__("Close and Shut Down…"),execute:e=>{const t=O(e);if(!t){return}return(0,s.showDialog)({title:C.__("Shut down the console?"),body:C.__('Are you sure you want to close "%1"?',t.title.label),buttons:[s.Dialog.cancelButton({ariaLabel:C.__("Cancel console Shut Down")}),s.Dialog.warnButton({ariaLabel:C.__("Confirm console Shut Down")})]}).then((e=>{if(e.button.accept){return k.execute(x.shutdown,{activate:false}).then((()=>{t.dispose();return true}))}else{return false}}))},isEnabled:R});k.addCommand(x.inject,{label:C.__("Inject some code in a console."),execute:e=>{const t=e["path"];I.find((n=>{var i;if(((i=n.console.sessionContext.session)===null||i===void 0?void 0:i.path)===t){if(e["activate"]!==false){j.activateById(n.id)}void n.console.inject(e["code"],e["metadata"]);return true}return false}))},isEnabled:R});k.addCommand(x.changeKernel,{label:C.__("Change Kernel…"),execute:e=>{const t=O(e);if(!t){return}return E.selectKernel(t.console.sessionContext)},isEnabled:R});k.addCommand(x.getKernel,{label:C.__("Get Kernel"),execute:e=>{var t;const n=O({activate:false,...e});if(!n){return}return(t=n.sessionContext.session)===null||t===void 0?void 0:t.kernel},isEnabled:R});if(c){[x.create,x.linebreak,x.clear,x.runUnforced,x.runForced,x.restart,x.interrupt,x.changeKernel,x.closeAndShutdown].forEach((e=>{c.addItem({command:e,category:M,args:{isPalette:true}})}))}if(d){d.fileMenu.closeAndCleaners.add({id:x.closeAndShutdown,isEnabled:R});d.kernelMenu.kernelUsers.changeKernel.add({id:x.changeKernel,isEnabled:R});d.kernelMenu.kernelUsers.clearWidget.add({id:x.clear,isEnabled:R});d.kernelMenu.kernelUsers.interruptKernel.add({id:x.interrupt,isEnabled:R});d.kernelMenu.kernelUsers.restartKernel.add({id:x.restart,isEnabled:R});d.kernelMenu.kernelUsers.shutdownKernel.add({id:x.shutdown,isEnabled:R});d.runMenu.codeRunners.run.add({id:x.runForced,isEnabled:R});d.editMenu.clearers.clearCurrent.add({id:x.clear,isEnabled:R});d.helpMenu.getKernel.add({id:x.getKernel,isEnabled:R})}const B={notebook:C.__("Execute with Shift+Enter"),terminal:C.__("Execute with Enter")};k.addCommand(x.interactionMode,{label:e=>{var t;return(t=B[e["interactionMode"]])!==null&&t!==void 0?t:"Set the console interaction mode."},execute:async e=>{const t="keyMap";try{await o.set(D,"interactionMode",e["interactionMode"])}catch(n){console.error(`Failed to set ${D}:${t} - ${n.message}`)}},isToggled:e=>e["interactionMode"]===L});return I}function L(e,t,n,i,o){if(!n){return}const r=(i!==null&&i!==void 0?i:p.nullTranslator).load("jupyterlab");const a=o!==null&&o!==void 0?o:new s.Sanitizer;e.commands.addCommand(x.invokeCompleter,{label:r.__("Display the completion helper."),execute:()=>{const e=t.currentWidget&&t.currentWidget.id;if(e){return n.invoke(e)}}});e.commands.addCommand(x.selectCompleter,{label:r.__("Select the completion suggestion."),execute:()=>{const e=t.currentWidget&&t.currentWidget.id;if(e){return n.select(e)}}});e.commands.addKeyBinding({command:x.selectCompleter,keys:["Enter"],selector:".jp-ConsolePanel .jp-mod-completer-active"});const l=async(e,t)=>{var i,s;const o={editor:(s=(i=t.console.promptCell)===null||i===void 0?void 0:i.editor)!==null&&s!==void 0?s:null,session:t.console.sessionContext.session,widget:t};await n.updateCompleter(o);t.console.promptCellCreated.connect(((e,i)=>{const s={editor:i.editor,session:e.sessionContext.session,widget:t,sanitzer:a};n.updateCompleter(s).catch(console.error)}));t.console.sessionContext.sessionChanged.connect((()=>{var e,i;const s={editor:(i=(e=t.console.promptCell)===null||e===void 0?void 0:e.editor)!==null&&i!==void 0?i:null,session:t.console.sessionContext.session,widget:t,sanitizer:a};n.updateCompleter(s).catch(console.error)}))};t.widgetAdded.connect(l);n.activeProvidersChanged.connect((()=>{t.forEach((e=>{l(undefined,e).catch((e=>console.error(e)))}))}))}},28180:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(79536);var r=n(49914);var a=n(98896);var l=n(90516);var d=n(64431);var c=n(59240);var h=n(42650);var u=n(52812);var p=n(74518)},80867:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CodeConsole:()=>D,ConsoleHistory:()=>r,ConsolePanel:()=>A,ForeignHandler:()=>o,IConsoleTracker:()=>N});var i=n(71372);const s="jp-CodeConsole-foreignCell";class o{constructor(e){this._enabled=false;this._isDisposed=false;this.sessionContext=e.sessionContext;this.sessionContext.iopubMessage.connect(this.onIOPubMessage,this);this._parent=e.parent}get enabled(){return this._enabled}set enabled(e){this._enabled=e}get parent(){return this._parent}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;i.Signal.clearData(this)}onIOPubMessage(e,t){var n;if(!this._enabled){return false}const i=(n=this.sessionContext.session)===null||n===void 0?void 0:n.kernel;if(!i){return false}const s=this._parent;const o=t.parent_header.session;if(o===i.clientId){return false}const r=t.header.msg_type;const a=t.parent_header;const l=a.msg_id;let d;switch(r){case"execute_input":{const e=t;d=this._newCell(l);const n=d.model;n.executionCount=e.content.execution_count;n.sharedModel.setSource(e.content.code);n.trusted=true;s.update();return true}case"execute_result":case"display_data":case"stream":case"error":{d=this._parent.getCell(l);if(!d){return false}const e={...t.content,output_type:r};d.model.outputs.add(e);s.update();return true}case"clear_output":{const e=t.content.wait;d=this._parent.getCell(l);if(d){d.model.outputs.clear(e)}return true}default:return false}}_newCell(e){const t=this.parent.createCodeCell();t.addClass(s);this._parent.addCell(t,e);return t}}class r{constructor(e){this._cursor=0;this._hasSession=false;this._history=[];this._placeholder="";this._setByHistory=false;this._isDisposed=false;this._editor=null;this._filtered=[];const{sessionContext:t}=e;if(t){this.sessionContext=t;void this._handleKernel();this.sessionContext.kernelChanged.connect(this._handleKernel,this)}}get editor(){return this._editor}set editor(e){if(this._editor===e){return}const t=this._editor;if(t){t.edgeRequested.disconnect(this.onEdgeRequest,this);t.model.sharedModel.changed.disconnect(this.onTextChange,this)}this._editor=e;if(e){e.edgeRequested.connect(this.onEdgeRequest,this);e.model.sharedModel.changed.connect(this.onTextChange,this)}}get placeholder(){return this._placeholder}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed=true;this._history.length=0;i.Signal.clearData(this)}back(e){if(!this._hasSession){this._hasSession=true;this._placeholder=e;this.setFilter(e);this._cursor=this._filtered.length-1}--this._cursor;this._cursor=Math.max(0,this._cursor);const t=this._filtered[this._cursor];return Promise.resolve(t)}forward(e){if(!this._hasSession){this._hasSession=true;this._placeholder=e;this.setFilter(e);this._cursor=this._filtered.length}++this._cursor;this._cursor=Math.min(this._filtered.length-1,this._cursor);const t=this._filtered[this._cursor];return Promise.resolve(t)}push(e){if(e&&e!==this._history[this._history.length-1]){this._history.push(e)}this.reset()}reset(){this._cursor=this._history.length;this._hasSession=false;this._placeholder=""}onHistory(e){this._history.length=0;let t="";let n="";if(e.content.status==="ok"){for(let i=0;i{if(this.isDisposed||!t){return}if(n.getSource()===t){return}this._setByHistory=true;n.setSource(t);let i=0;i=t.indexOf("\n");if(i<0){i=t.length}e.setCursorPosition({line:0,column:i})}))}else{void this.forward(i).then((t=>{if(this.isDisposed){return}const i=t||this.placeholder;if(n.getSource()===i){return}this._setByHistory=true;n.setSource(i);const s=e.getPositionAt(i.length);if(s){e.setCursorPosition(s)}}))}}async _handleKernel(){var e,t;const n=(t=(e=this.sessionContext)===null||e===void 0?void 0:e.session)===null||t===void 0?void 0:t.kernel;if(!n){this._history.length=0;return}return n.requestHistory(a.initialRequest).then((e=>{this.onHistory(e)}))}setFilter(e=""){this._filtered.length=0;let t="";let n="";for(let i=0;i0){e.get(0).dispose()}}createCodeCell(){const e=this.contentFactory;const t=this._createCodeCellOptions();const n=e.createCodeCell(t);n.readOnly=true;n.model.mimeType=this._mimetype;return n}dispose(){if(this.isDisposed){return}this._msgIdCells=null;this._msgIds=null;this._history.dispose();super.dispose()}async execute(e=false,t=I){var n,i;if(((i=(n=this.sessionContext.session)===null||n===void 0?void 0:n.kernel)===null||i===void 0?void 0:i.status)==="dead"){return}const s=this.promptCell;if(!s){throw new Error("Cannot execute without a prompt cell")}s.model.trusted=true;if(e){this.newPromptCell();await this._execute(s);return}const o=await this._shouldExecute(t);if(this.isDisposed){return}if(o){this.newPromptCell();this.promptCell.editor.focus();await this._execute(s)}else{s.editor.newIndentedLine()}}getCell(e){return this._msgIds.get(e)}inject(e,t={}){const n=this.createCodeCell();n.model.sharedModel.setSource(e);for(const i of Object.keys(t)){n.model.setMetadata(i,t[i])}this.addCell(n);return this._execute(n)}insertLinebreak(){const e=this.promptCell;if(!e){return}e.editor.newIndentedLine()}replaceSelection(e){var t,n;const i=this.promptCell;if(!i){return}(n=(t=i.editor).replaceSelection)===null||n===void 0?void 0:n.call(t,e)}serialize(){const e=[];for(const t of this._cells){const n=t.model;if((0,_.isCodeCellModel)(n)){e.push(n.toJSON())}}if(this.promptCell){e.push(this.promptCell.model.toJSON())}return e}_evtMouseDown(e){const{button:t,shiftKey:n}=e;if(!(t===0||t===2)||n&&t===2){return}let i=e.target;const s=e=>e.classList.contains(S);let o=_.CellDragUtils.findCell(i,this._cells,s);if(o===-1){i=document.elementFromPoint(e.clientX,e.clientY);o=_.CellDragUtils.findCell(i,this._cells,s)}if(o===-1){return}const r=this._cells.get(o);const a=_.CellDragUtils.detectTargetArea(r,e.target);if(a==="prompt"){this._dragData={pressX:e.clientX,pressY:e.clientY,index:o};this._focusedCell=r;document.addEventListener("mouseup",this,true);document.addEventListener("mousemove",this,true);e.preventDefault()}}_evtMouseMove(e){const t=this._dragData;if(t&&_.CellDragUtils.shouldStartDrag(t.pressX,t.pressY,e.clientX,e.clientY)){void this._startDrag(t.index,e.clientX,e.clientY)}}_startDrag(e,t,n){const i=this._focusedCell.model;const s=[i.toJSON()];const o=_.CellDragUtils.createCellDragImage(this._focusedCell,s);this._drag=new y.Drag({mimeData:new p.MimeData,dragImage:o,proposedAction:"copy",supportedActions:"copy",source:this});this._drag.mimeData.setData(T,s);const r=i.sharedModel.getSource();this._drag.mimeData.setData("text/plain",r);this._focusedCell=null;document.removeEventListener("mousemove",this,true);document.removeEventListener("mouseup",this,true);return this._drag.start(t,n).then((()=>{if(this.isDisposed){return}this._drag=null;this._dragData=null}))}handleEvent(e){switch(e.type){case"keydown":this._evtKeyDown(e);break;case"mousedown":this._evtMouseDown(e);break;case"mousemove":this._evtMouseMove(e);break;case"mouseup":this._evtMouseUp(e);break;default:break}}onAfterAttach(e){const t=this.node;t.addEventListener("keydown",this,true);t.addEventListener("click",this);t.addEventListener("mousedown",this);if(!this.promptCell){this.newPromptCell()}else{this.promptCell.editor.focus();this.update()}}onBeforeDetach(e){const t=this.node;t.removeEventListener("keydown",this,true);t.removeEventListener("click",this)}onActivateRequest(e){const t=this.promptCell&&this.promptCell.editor;if(t){t.focus()}this.update()}newPromptCell(){var e;let t=this.promptCell;const n=this._input;if(t){t.readOnly=true;t.removeClass(j);i.Signal.clearData(t.editor);(e=t.editor)===null||e===void 0?void 0:e.blur();const s=n.widgets[0];s.parent=null;this.addCell(t)}const s=this.contentFactory;const o=this._createCodeCellOptions();t=s.createCodeCell(o);t.model.mimeType=this._mimetype;t.addClass(j);this._input.addWidget(t);this._history.editor=t.editor;this._promptCellCreated.emit(t)}onUpdateRequest(e){L.scrollToBottom(this._content.node)}_evtKeyDown(e){const t=this.promptCell&&this.promptCell.editor;if(!t){return}if(e.keyCode===13&&!t.hasFocus()){e.preventDefault();t.focus()}else if(e.keyCode===27&&t.hasFocus()){e.preventDefault();e.stopPropagation();this.node.focus()}}_evtMouseUp(e){if(this.promptCell&&this.promptCell.node.contains(e.target)){this.promptCell.editor.focus()}}_execute(e){const t=e.model.sharedModel.getSource();this._history.push(t);if(t==="clear"||t==="%clear"){this.clear();return Promise.resolve(void 0)}e.model.contentChanged.connect(this.update,this);const n=t=>{if(this.isDisposed){return}if(t&&t.content.status==="ok"){const n=t.content;if(n.payload&&n.payload.length){const t=n.payload.filter((e=>e.source==="set_next_input"))[0];if(t){const n=t.text;e.model.sharedModel.setSource(n)}}}else if(t&&t.content.status==="error"){for(const e of this._cells){if(e.model.executionCount===null){e.setPrompt("")}}}e.model.contentChanged.disconnect(this.update,this);this.update();this._executed.emit(new Date)};const i=()=>{if(this.isDisposed){return}e.model.contentChanged.disconnect(this.update,this);this.update()};return _.CodeCell.execute(e,this.sessionContext).then(n,i)}_handleInfo(e){if(e.status!=="ok"){this._banner.model.sharedModel.setSource("Error in getting kernel banner");return}this._banner.model.sharedModel.setSource(e.banner);const t=e.language_info;this._mimetype=this._mimeTypeService.getMimeTypeByLanguage(t);if(this.promptCell){this.promptCell.model.mimeType=this._mimetype}}_createCodeCellOptions(){const e=this.contentFactory;const t=this.modelFactory;const n=t.createCodeCell({});const i=this.rendermime;const s=this.editorConfig;const o=f.EditorView.domEventHandlers({keydown:(e,t)=>{if(e.keyCode===13){e.preventDefault();return true}return false}});return{model:n,rendermime:i,contentFactory:e,editorConfig:s,editorExtensions:[g.Prec.high(o)],placeholder:false,translator:this._translator}}_onCellDisposed(e,t){if(!this.isDisposed){this._cells.removeValue(e);const t=this._msgIdCells.get(e);if(t){this._msgIdCells.delete(e);this._msgIds.delete(t)}}}_shouldExecute(e){const t=this.promptCell;if(!t){return Promise.resolve(false)}const n=t.model;const i=n.sharedModel.getSource();return new Promise(((t,n)=>{var s;const o=setTimeout((()=>{t(true)}),e);const r=(s=this.sessionContext.session)===null||s===void 0?void 0:s.kernel;if(!r){t(false);return}r.requestIsComplete({code:i}).then((e=>{clearTimeout(o);if(this.isDisposed){t(false)}if(e.content.status!=="incomplete"){t(true);return}t(false)})).catch((()=>{t(true)}))}))}async _onKernelChanged(){var e;this.clear();if(this._banner){this._banner.dispose();this._banner=null}this.addBanner();if((e=this.sessionContext.session)===null||e===void 0?void 0:e.kernel){this._handleInfo(await this.sessionContext.session.kernel.info)}}async _onKernelStatusChanged(){var e;const t=(e=this.sessionContext.session)===null||e===void 0?void 0:e.kernel;if((t===null||t===void 0?void 0:t.status)==="restarting"){this.addBanner();this._handleInfo(await(t===null||t===void 0?void 0:t.info))}}}(function(e){e.defaultEditorConfig={codeFolding:false,lineNumbers:false};class t extends _.Cell.ContentFactory{createCodeCell(e){return new _.CodeCell(e).initializeState()}createRawCell(e){return new _.RawCell(e).initializeState()}}e.ContentFactory=t;class n{constructor(e={}){this.codeCellContentFactory=e.codeCellContentFactory||_.CodeCellModel.defaultContentFactory}createCodeCell(e={}){if(!e.contentFactory){e.contentFactory=this.codeCellContentFactory}return new _.CodeCellModel(e)}createRawCell(e){return new _.RawCellModel(e)}}e.ModelFactory=n;e.defaultModelFactory=new n({})})(D||(D={}));var L;(function(e){function t(e){e.scrollTop=e.scrollHeight-e.clientHeight}e.scrollToBottom=t})(L||(L={}));const P="jp-ConsolePanel";class A extends l.MainAreaWidget{constructor(e){super({content:new m.Panel});this._executed=null;this._connected=null;this.addClass(P);let{rendermime:t,mimeTypeService:n,path:i,basePath:s,name:o,manager:r,modelFactory:a,sessionContext:g,translator:f}=e;this.translator=f!==null&&f!==void 0?f:h.nullTranslator;const v=this.translator.load("jupyterlab");const _=this.contentFactory=e.contentFactory;const b=R.count++;if(!i){i=d.PathExt.join(s||"",`console-${b}-${p.UUID.uuid4()}`)}g=this._sessionContext=g!==null&&g!==void 0?g:new l.SessionContext({sessionManager:r.sessions,specsManager:r.kernelspecs,path:r.contents.localPath(i),name:o||v.__("Console %1",b),type:"console",kernelPreference:e.kernelPreference,setBusy:e.setBusy});const y=new c.RenderMimeRegistry.UrlResolver({path:i,contents:r.contents});t=t.clone({resolver:y});this.console=_.createConsole({rendermime:t,sessionContext:g,mimeTypeService:n,contentFactory:_,modelFactory:a,translator:f});this.content.addWidget(this.console);void g.initialize().then((async t=>{var n;if(t){await((n=e.sessionDialogs)!==null&&n!==void 0?n:new l.SessionContextDialogs({translator:f})).selectKernel(g)}this._connected=new Date;this._updateTitlePanel()}));this.console.executed.connect(this._onExecuted,this);this._updateTitlePanel();g.kernelChanged.connect(this._updateTitlePanel,this);g.propertyChanged.connect(this._updateTitlePanel,this);this.title.icon=u.consoleIcon;this.title.closable=true;this.id=`console-${b}`}get sessionContext(){return this._sessionContext}dispose(){this.sessionContext.dispose();this.console.dispose();super.dispose()}onActivateRequest(e){const t=this.console.promptCell;if(t){t.editor.focus()}}onCloseRequest(e){super.onCloseRequest(e);this.dispose()}_onExecuted(e,t){this._executed=t;this._updateTitlePanel()}_updateTitlePanel(){R.updateTitle(this,this._connected,this._executed,this.translator)}}(function(e){class t extends D.ContentFactory{createConsole(e){return new D(e)}}e.ContentFactory=t;e.IContentFactory=new p.Token("@jupyterlab/console:IContentFactory","A factory object that creates new code consoles. Use this if you want to create and host code consoles in your own UI elements.")})(A||(A={}));var R;(function(e){e.count=1;function t(e,t,n,i){i=i||h.nullTranslator;const s=i.load("jupyterlab");const o=e.console.sessionContext.session;if(o){let i=s.__("Name: %1\n",o.name)+s.__("Directory: %1\n",d.PathExt.dirname(o.path))+s.__("Kernel: %1",e.console.sessionContext.kernelDisplayName);if(t){i+=s.__("\nConnected: %1",d.Time.format(t.toISOString()))}if(n){i+=s.__("\nLast Execution: %1")}e.title.label=o.name;e.title.caption=i}else{e.title.label=s.__("Console");e.title.caption=""}}e.updateTitle=t})(R||(R={}));const N=new p.Token("@jupyterlab/console:IConsoleTracker",`A widget tracker for code consoles.\n Use this if you want to be able to iterate over and interact with code consoles\n created by the application.`)},42650:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(79536);var r=n(98896);var a=n(22748);var l=n(49914);var d=n(5956);var c=n(93379);var h=n.n(c);var u=n(7795);var p=n.n(u);var m=n(90569);var g=n.n(m);var f=n(3565);var v=n.n(f);var _=n(19216);var b=n.n(_);var y=n(44589);var w=n.n(y);var C=n(79937);var x={};x.styleTagTransform=w();x.setAttributes=v();x.insert=g().bind(null,"head");x.domAPI=p();x.insertStyleElement=b();var S=h()(C.Z,x);const k=C.Z&&C.Z.locals?C.Z.locals:undefined},47542:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ActivityMonitor=void 0;const i=n(71372);class s{constructor(e){this._timer=-1;this._timeout=-1;this._isDisposed=false;this._activityStopped=new i.Signal(this);e.signal.connect(this._onSignalFired,this);this._timeout=e.timeout||1e3}get activityStopped(){return this._activityStopped}get timeout(){return this._timeout}set timeout(e){this._timeout=e}get isDisposed(){return this._isDisposed}dispose(){if(this._isDisposed){return}this._isDisposed=true;i.Signal.clearData(this)}_onSignalFired(e,t){clearTimeout(this._timer);this._sender=e;this._args=t;this._timer=setTimeout((()=>{this._activityStopped.emit({sender:this._sender,args:this._args})}),this._timeout)}}t.ActivityMonitor=s},79622:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))i(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});s(n(47542),t);s(n(92086),t);s(n(47390),t);s(n(99458),t);s(n(20176),t);s(n(2643),t);s(n(47846),t);s(n(32533),t);s(n(57319),t)},92086:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},47390:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.MarkdownCodeBlocks=void 0;var n;(function(e){e.CODE_BLOCK_MARKER="```";const t=[".markdown",".mdown",".mkdn",".md",".mkd",".mdwn",".mdtxt",".mdtext",".text",".txt",".Rmd"];class n{constructor(e){this.startLine=e;this.code="";this.endLine=-1}}e.MarkdownCodeBlock=n;function i(e){return t.indexOf(e)>-1}e.isMarkdown=i;function s(t){if(!t||t===""){return[]}const i=t.split("\n");const s=[];let o=null;for(let r=0;re===t||i&&e===i))}e.isDeferred=n;function i(t){const n=t.indexOf(":");let i="";if(n!==-1){i=t.slice(0,n)}return e.disabled.some((e=>e===t||i&&e===i))}e.isDisabled=i})(Extension=PageConfig.Extension||(PageConfig.Extension={}))})(PageConfig=exports.PageConfig||(exports.PageConfig={}))},20176:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.PathExt=void 0;const i=n(26470);var s;(function(e){function t(...e){const t=i.posix.join(...e);return t==="."?"":c(t)}e.join=t;function n(e,t){return i.posix.basename(e,t)}e.basename=n;function s(e){const t=c(i.posix.dirname(e));return t==="."?"":t}e.dirname=s;function o(e){return i.posix.extname(e)}e.extname=o;function r(e){if(e===""){return""}return c(i.posix.normalize(e))}e.normalize=r;function a(...e){return c(i.posix.resolve(...e))}e.resolve=a;function l(e,t){return c(i.posix.relative(e,t))}e.relative=l;function d(e){if(e.length>0&&e.indexOf(".")!==0){e=`.${e}`}return e}e.normalizeExtension=d;function c(e){if(e.indexOf("/")===0){e=e.slice(1)}return e}e.removeSlash=c})(s=t.PathExt||(t.PathExt={}))},2643:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.signalToPromise=void 0;const i=n(5596);function s(e,t){const n=new i.PromiseDelegate;function s(){e.disconnect(o)}function o(e,t){s();n.resolve([e,t])}e.connect(o);if((t!==null&&t!==void 0?t:0)>0){setTimeout((()=>{s();n.reject(`Signal not emitted within ${t} ms.`)}),t)}return n.promise}t.signalToPromise=s},47846:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Text=void 0;var n;(function(e){const t="𝐚".length>1;function n(e,n){if(t){return e}let i=e;for(let t=0;t+1=55296&&e<=56319){const e=n.charCodeAt(t+1);if(e>=56320&&e<=57343){i--;t++}}}return i}e.jsIndexToCharIndex=n;function i(e,n){if(t){return e}let i=e;for(let t=0;t+1=55296&&e<=56319){const e=n.charCodeAt(t+1);if(e>=56320&&e<=57343){i++;t++}}}return i}e.charIndexToJsIndex=i;function s(e,t=false){return e.replace(/^(\w)|[\s-_:]+(\w)/g,(function(e,n,i){if(i){return i.toUpperCase()}else{return t?n.toUpperCase():n.toLowerCase()}}))}e.camelCase=s;function o(e){return(e||"").toLowerCase().split(" ").map((e=>e.charAt(0).toUpperCase()+e.slice(1))).join(" ")}e.titleCase=o})(n=t.Text||(t.Text={}))},32533:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.Time=void 0;const n=[{name:"years",milliseconds:365*24*60*60*1e3},{name:"months",milliseconds:30*24*60*60*1e3},{name:"days",milliseconds:24*60*60*1e3},{name:"hours",milliseconds:60*60*1e3},{name:"minutes",milliseconds:60*1e3},{name:"seconds",milliseconds:1e3}];var i;(function(e){function t(e){const t=document.documentElement.lang||"en";const i=new Intl.RelativeTimeFormat(t,{numeric:"auto"});const s=new Date(e).getTime()-Date.now();for(let o of n){const e=Math.ceil(s/o.milliseconds);if(e===0){continue}return i.format(e,o.name)}return i.format(0,"seconds")}e.formatHuman=t;function i(e){const t=document.documentElement.lang||"en";const n=new Intl.DateTimeFormat(t,{dateStyle:"short",timeStyle:"short"});return n.format(new Date(e))}e.format=i})(i=t.Time||(t.Time={}))},57319:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:true});t.URLExt=void 0;const s=n(26470);const o=i(n(84564));var r;(function(e){function t(e){if(typeof document!=="undefined"&&document){const t=document.createElement("a");t.href=e;return t}return(0,o.default)(e)}e.parse=t;function n(e){return(0,o.default)(e).hostname}e.getHostName=n;function i(e){return e&&t(e).toString()}e.normalize=i;function r(...e){let t=(0,o.default)(e[0],{});const n=t.protocol===""&&t.slashes;if(n){t=(0,o.default)(e[0],"https:"+e[0])}const i=`${n?"":t.protocol}${t.slashes?"//":""}${t.auth}${t.auth?"@":""}${t.host}`;const r=s.posix.join(`${!!i&&t.pathname[0]!=="/"?"/":""}${t.pathname}`,...e.slice(1));return`${i}${r==="."?"":r}`}e.join=r;function a(e){return r(...e.split("/").map(encodeURIComponent))}e.encodeParts=a;function l(e){const t=Object.keys(e).filter((e=>e.length>0));if(!t.length){return""}return"?"+t.map((t=>{const n=encodeURIComponent(String(e[t]));return t+(n?"="+n:"")})).join("&")}e.objectToQueryString=l;function d(e){return e.replace(/^\?/,"").split("&").reduce(((e,t)=>{const[n,i]=t.split("=");if(n.length>0){e[n]=decodeURIComponent(i||"")}return e}),{})}e.queryStringToObject=d;function c(e){const{protocol:n}=t(e);return(!n||e.toLowerCase().indexOf(n)!==0)&&e.indexOf("/")!==0}e.isLocal=c})(r=t.URLExt||(t.URLExt={}))},32854:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>k});var i=n(74574);var s=n.n(i);var o=n(10759);var r=n.n(o);var a=n(13475);var l=n(10998);var d=n(20433);var c=n.n(d);var h=n(66899);var u=n.n(h);var p=n(95811);var m=n.n(p);var g=n(6958);var f=n.n(g);const v="CSVTable";const _="TSVTable";var b;(function(e){e.CSVGoToLine="csv:go-to-line";e.TSVGoToLine="tsv:go-to-line"})(b||(b={}));const y={activate:C,id:"@jupyterlab/csvviewer-extension:csv",description:"Adds viewer for CSV file types",requires:[g.ITranslator],optional:[i.ILayoutRestorer,o.IThemeManager,h.IMainMenu,d.ISearchProviderRegistry,p.ISettingRegistry,o.IToolbarWidgetRegistry],autoStart:true};const w={activate:x,id:"@jupyterlab/csvviewer-extension:tsv",description:"Adds viewer for TSV file types.",requires:[g.ITranslator],optional:[i.ILayoutRestorer,o.IThemeManager,h.IMainMenu,d.ISearchProviderRegistry,p.ISettingRegistry,o.IToolbarWidgetRegistry],autoStart:true};function C(e,t,i,s,r,d,c,h){const{commands:u,shell:p}=e;let m;if(h){h.addFactory(v,"delimiter",(e=>new l.p({widget:e.content,translator:t})));if(c){m=(0,o.createToolbarFactory)(h,c,v,y.id,t)}}const g=t.load("jupyterlab");const f=new a.LT({name:v,label:g.__("CSV Viewer"),fileTypes:["csv"],defaultFor:["csv"],readOnly:true,toolbarFactory:m,translator:t});const _=new o.WidgetTracker({namespace:"csvviewer"});let w=j.LIGHT_STYLE;let C=j.LIGHT_TEXT_CONFIG;if(i){void i.restore(_,{command:"docmanager:open",args:e=>({path:e.context.path,factory:v}),name:e=>e.context.path})}e.docRegistry.addWidgetFactory(f);const x=e.docRegistry.getFileType("csv");let S=false;f.widgetCreated.connect((async(e,t)=>{void _.add(t);t.context.pathChanged.connect((()=>{void _.save(t)}));if(x){t.title.icon=x.icon;t.title.iconClass=x.iconClass;t.title.iconLabel=x.iconLabel}if(d&&!S){const{CSVSearchProvider:e}=await Promise.all([n.e(3472),n.e(4594)]).then(n.bind(n,14196));d.add("csv",e);S=true}await t.content.ready;t.content.style=w;t.content.rendererConfig=C}));const k=()=>{const e=s&&s.theme?s.isLight(s.theme):true;w=e?j.LIGHT_STYLE:j.DARK_STYLE;C=e?j.LIGHT_TEXT_CONFIG:j.DARK_TEXT_CONFIG;_.forEach((async e=>{await e.content.ready;e.content.style=w;e.content.rendererConfig=C}))};if(s){s.themeChanged.connect(k)}const M=()=>_.currentWidget!==null&&_.currentWidget===p.currentWidget;u.addCommand(b.CSVGoToLine,{label:g.__("Go to Line"),execute:async()=>{const e=_.currentWidget;if(e===null){return}const t=await o.InputDialog.getNumber({title:g.__("Go to Line"),value:0});if(t.button.accept&&t.value!==null){e.content.goToLine(t.value)}},isEnabled:M});if(r){r.editMenu.goToLiners.add({id:b.CSVGoToLine,isEnabled:M})}}function x(e,t,i,s,r,d,c,h){const{commands:u,shell:p}=e;let m;if(h){h.addFactory(_,"delimiter",(e=>new l.p({widget:e.content,translator:t})));if(c){m=(0,o.createToolbarFactory)(h,c,_,w.id,t)}}const g=t.load("jupyterlab");const f=new a._d({name:_,label:g.__("TSV Viewer"),fileTypes:["tsv"],defaultFor:["tsv"],readOnly:true,toolbarFactory:m,translator:t});const v=new o.WidgetTracker({namespace:"tsvviewer"});let y=j.LIGHT_STYLE;let C=j.LIGHT_TEXT_CONFIG;if(i){void i.restore(v,{command:"docmanager:open",args:e=>({path:e.context.path,factory:_}),name:e=>e.context.path})}e.docRegistry.addWidgetFactory(f);const x=e.docRegistry.getFileType("tsv");let S=false;f.widgetCreated.connect((async(e,t)=>{void v.add(t);t.context.pathChanged.connect((()=>{void v.save(t)}));if(x){t.title.icon=x.icon;t.title.iconClass=x.iconClass;t.title.iconLabel=x.iconLabel}if(d&&!S){const{CSVSearchProvider:e}=await Promise.all([n.e(3472),n.e(4594)]).then(n.bind(n,14196));d.add("tsv",e);S=true}await t.content.ready;t.content.style=y;t.content.rendererConfig=C}));const k=()=>{const e=s&&s.theme?s.isLight(s.theme):true;y=e?j.LIGHT_STYLE:j.DARK_STYLE;C=e?j.LIGHT_TEXT_CONFIG:j.DARK_TEXT_CONFIG;v.forEach((async e=>{await e.content.ready;e.content.style=y;e.content.rendererConfig=C}))};if(s){s.themeChanged.connect(k)}const M=()=>v.currentWidget!==null&&v.currentWidget===p.currentWidget;u.addCommand(b.TSVGoToLine,{label:g.__("Go to Line"),execute:async()=>{const e=v.currentWidget;if(e===null){return}const t=await o.InputDialog.getNumber({title:g.__("Go to Line"),value:0});if(t.button.accept&&t.value!==null){e.content.goToLine(t.value)}},isEnabled:M});if(r){r.editMenu.goToLiners.add({id:b.TSVGoToLine,isEnabled:M})}}const S=[y,w];const k=S;var j;(function(e){e.LIGHT_STYLE={voidColor:"#F3F3F3",backgroundColor:"white",headerBackgroundColor:"#EEEEEE",gridLineColor:"rgba(20, 20, 20, 0.15)",headerGridLineColor:"rgba(20, 20, 20, 0.25)",rowBackgroundColor:e=>e%2===0?"#F5F5F5":"white"};e.DARK_STYLE={voidColor:"black",backgroundColor:"#111111",headerBackgroundColor:"#424242",gridLineColor:"rgba(235, 235, 235, 0.15)",headerGridLineColor:"rgba(235, 235, 235, 0.25)",rowBackgroundColor:e=>e%2===0?"#212121":"#111111"};e.LIGHT_TEXT_CONFIG={textColor:"#111111",matchBackgroundColor:"#FFFFE0",currentMatchBackgroundColor:"#FFFF00",horizontalAlignment:"right"};e.DARK_TEXT_CONFIG={textColor:"#F5F5F5",matchBackgroundColor:"#838423",currentMatchBackgroundColor:"#A3807A",horizontalAlignment:"right"}})(j||(j={}))},14196:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CSVSearchProvider:()=>d});var i=n(4594);var s=n.n(i);var o=n(12542);var r=n.n(o);var a=n(20433);var l=n.n(a);class d extends a.SearchProvider{constructor(){super(...arguments);this.isReadOnly=true}static createNew(e,t){return new d(e)}static isApplicable(e){return e instanceof o.DocumentWidget&&e.content instanceof i.CSVViewer}clearHighlight(){return Promise.resolve()}highlightNext(e){this.widget.content.searchService.find(this._query);return Promise.resolve(undefined)}highlightPrevious(e){this.widget.content.searchService.find(this._query,true);return Promise.resolve(undefined)}replaceCurrentMatch(e,t){return Promise.resolve(false)}replaceAllMatches(e){return Promise.resolve(false)}startQuery(e){this._query=e;this.widget.content.searchService.find(e);return Promise.resolve()}endQuery(){this.widget.content.searchService.clear();return Promise.resolve()}}},2542:(e,t,n)=>{"use strict";var i=n(32902);var s=n(79536);var o=n(94683);var r=n(90516);var a=n(34849);var l=n(93379);var d=n.n(l);var c=n(7795);var h=n.n(c);var u=n(90569);var p=n.n(u);var m=n(3565);var g=n.n(m);var f=n(19216);var v=n.n(f);var _=n(44589);var b=n.n(_);var y=n(13818);var w={};w.styleTagTransform=b();w.setAttributes=g();w.insert=p().bind(null,"head");w.domAPI=h();w.insertStyleElement=v();var C=d()(y.Z,w);const x=y.Z&&y.Z.locals?y.Z.locals:undefined;var S=n(38613);var k=n(74518)},43734:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CSVDelimiter:()=>o.p,CSVDocumentWidget:()=>r.kw,CSVViewer:()=>r.A9,CSVViewerFactory:()=>r.LT,DSVModel:()=>i.DSVModel,GridSearchService:()=>r.JZ,TSVViewerFactory:()=>r._d,TextRenderConfig:()=>r.B0,parseDSV:()=>s.G,parseDSVNoQuotes:()=>s.z});var i=n(33183);var s=n(38208);var o=n(10998);var r=n(13475)},33183:(e,t,n)=>{"use strict";n.r(t);n.d(t,{DSVModel:()=>d});var i=n(5596);var s=n.n(i);var o=n(23364);var r=n.n(o);var a=n(38208);const l={quotes:a.G,noquotes:a.z};class d extends o.DataModel{constructor(e){super();this._rowCount=0;this._header=[];this._columnOffsets=new Uint32Array(0);this._columnOffsetsStartingRow=0;this._maxCacheGet=1e3;this._rowOffsets=new Uint32Array(0);this._delayedParse=null;this._startedParsing=false;this._doneParsing=false;this._isDisposed=false;this._ready=new i.PromiseDelegate;let{data:t,delimiter:n=",",rowDelimiter:s=undefined,quote:o='"',quoteParser:r=undefined,header:a=true,initialRows:l=500}=e;this._rawData=t;this._delimiter=n;this._quote=o;this._quoteEscaped=new RegExp(o+o,"g");this._initialRows=l;if(s===undefined){const e=t.slice(0,5e3).indexOf("\r");if(e===-1){s="\n"}else if(t[e+1]==="\n"){s="\r\n"}else{s="\r"}}this._rowDelimiter=s;if(r===undefined){r=t.indexOf(o)>=0}this._parser=r?"quotes":"noquotes";this.parseAsync();if(a===true&&this._columnCount>0){const e=[];for(let t=0;t{}));this._ready.reject(undefined)}if(this._delayedParse!==null){window.clearTimeout(this._delayedParse)}}getOffsetIndex(e,t){const n=this._columnCount;let i=(e-this._columnOffsetsStartingRow)*n;if(i<0||i>this._columnOffsets.length){this._columnOffsets.fill(4294967295);this._columnOffsetsStartingRow=e;i=0}if(this._columnOffsets[i]===4294967295){let t=1;while(t<=this._maxCacheGet&&this._columnOffsets[i+t*n]===16777215){t++}const{offsets:s}=l[this._parser]({data:this._rawData,delimiter:this._delimiter,rowDelimiter:this._rowDelimiter,quote:this._quote,columnOffsets:true,maxRows:t,ncols:n,startIndex:this._rowOffsets[e]});for(let e=0;e{try{this._computeRowOffsets(e)}catch(t){if(this._parser==="quotes"){console.warn(t);this._parser="noquotes";this._resetParser();this._computeRowOffsets(e)}else{throw t}}return this._doneParsing};this._resetParser();const s=i(e);if(s){return}const o=()=>{const s=i(e+t);e+=t;if(t<1e6){t*=2}if(s){this._delayedParse=null}else{this._delayedParse=window.setTimeout(o,n)}};this._delayedParse=window.setTimeout(o,n)}_computeRowOffsets(e=4294967295){var t;if(this._rowCount>=e||this._doneParsing===true){return}if(this._columnCount===undefined){this._columnCount=l[this._parser]({data:this._rawData,delimiter:this._delimiter,rowDelimiter:this._rowDelimiter,quote:this._quote,columnOffsets:true,maxRows:1}).ncols}const n=this._rowCount>0?1:0;const{nrows:i,offsets:s}=l[this._parser]({data:this._rawData,startIndex:(t=this._rowOffsets[this._rowCount-n])!==null&&t!==void 0?t:0,delimiter:this._delimiter,rowDelimiter:this._rowDelimiter,quote:this._quote,columnOffsets:false,maxRows:e-this._rowCount+n});if(this._startedParsing&&i<=n){this._doneParsing=true;this._ready.resolve(undefined);return}this._startedParsing=true;const o=this._rowCount;const r=Math.min(i,n);this._rowCount=o+i-r;if(this._rowCounto){const e=this._rowOffsets;this._rowOffsets=new Uint32Array(this._rowCount);this._rowOffsets.set(e);this._rowOffsets.set(s,o-r)}const a=Math.floor(33554432/this._columnCount);if(o<=a){if(this._rowCount<=a){const e=this._columnOffsets;this._columnOffsets=new Uint32Array(this._rowCount*this._columnCount);this._columnOffsets.set(e);this._columnOffsets.fill(4294967295,e.length)}else{const e=this._columnOffsets;this._columnOffsets=new Uint32Array(Math.min(this._maxCacheGet,a)*this._columnCount);this._columnOffsets.set(e.subarray(0,this._columnOffsets.length));this._columnOffsets.fill(4294967295,e.length);this._columnOffsetsStartingRow=0}}let d=o;if(this._header.length>0){d-=1}this.emitChanged({type:"rows-inserted",region:"body",index:d,span:this._rowCount-o})}_getField(e,t){let n;let i;const s=this.getOffsetIndex(e,t);let o=0;let r=0;if(t===this._columnCount-1){if(e{}));this._ready.reject(undefined)}this._doneParsing=false;this._ready=new i.PromiseDelegate;if(this._delayedParse!==null){window.clearTimeout(this._delayedParse);this._delayedParse=null}this.emitChanged({type:"model-reset"})}}},38208:(e,t,n)=>{"use strict";n.d(t,{G:()=>o,z:()=>r});var i;(function(e){e[e["QUOTED_FIELD"]=0]="QUOTED_FIELD";e[e["QUOTED_FIELD_QUOTE"]=1]="QUOTED_FIELD_QUOTE";e[e["UNQUOTED_FIELD"]=2]="UNQUOTED_FIELD";e[e["NEW_FIELD"]=3]="NEW_FIELD";e[e["NEW_ROW"]=4]="NEW_ROW"})(i||(i={}));var s;(function(e){e[e["CR"]=0]="CR";e[e["CRLF"]=1]="CRLF";e[e["LF"]=2]="LF"})(s||(s={}));function o(e){const{data:t,columnOffsets:n,delimiter:o=",",startIndex:r=0,maxRows:a=4294967295,rowDelimiter:l="\r\n",quote:d='"'}=e;let c=e.ncols;let h=0;const u=[];const p=o.charCodeAt(0);const m=d.charCodeAt(0);const g=10;const f=13;const v=t.length;const{QUOTED_FIELD:_,QUOTED_FIELD_QUOTE:b,UNQUOTED_FIELD:y,NEW_FIELD:w,NEW_ROW:C}=i;const{CR:x,LF:S,CRLF:k}=s;const[j,M]=l==="\r\n"?[k,2]:l==="\r"?[x,1]:[S,1];let E=C;let I=r;let T=0;let D;while(Ic){u.length=u.length-(T-c)}}if(h===a){return{nrows:h,ncols:n?c:0,offsets:u}}break;case w:if(n===true){u.push(I)}T++;break;default:break}}if(E!==C){h++;if(n===true){if(c===undefined){c=T}if(Tc){u.length=u.length-(T-c)}}}return{nrows:h,ncols:n?c!==null&&c!==void 0?c:0:0,offsets:u}}function r(e){const{data:t,columnOffsets:n,delimiter:i=",",rowDelimiter:s="\r\n",startIndex:o=0,maxRows:r=4294967295}=e;let a=e.ncols;const l=[];let d=0;const c=s.length;let h=o;const u=t.length;let p;let m;let g;let f;let v;p=o;while(p!==-1&&d{"use strict";n.d(t,{p:()=>u});var i=n(6958);var s=n.n(i);var o=n(4148);var r=n.n(o);var a=n(85448);var l=n.n(a);const d="jp-CSVDelimiter";const c="jp-CSVDelimiter-label";const h="jp-CSVDelimiter-dropdown";class u extends a.Widget{constructor(e){super({node:p.createNode(e.widget.delimiter,e.translator)});this._widget=e.widget;this.addClass(d)}get selectNode(){return this.node.getElementsByTagName("select")[0]}handleEvent(e){switch(e.type){case"change":this._widget.delimiter=this.selectNode.value;break;default:break}}onAfterAttach(e){this.selectNode.addEventListener("change",this)}onBeforeDetach(e){this.selectNode.removeEventListener("change",this)}}var p;(function(e){function t(e,t){t=t||i.nullTranslator;const n=t===null||t===void 0?void 0:t.load("jupyterlab");const s=[[",",","],[";",";"],["\t",n.__("tab")],["|",n.__("pipe")],["#",n.__("hash")]];const r=document.createElement("div");const a=document.createElement("span");const l=document.createElement("select");a.textContent=n.__("Delimiter: ");a.className=c;for(const[i,o]of s){const t=document.createElement("option");t.value=i;t.textContent=o;if(i===e){t.selected=true}l.appendChild(t)}r.appendChild(a);const d=o.Styling.wrapSelect(l);d.classList.add(h);r.appendChild(d);return r}e.createNode=t})(p||(p={}))},13475:(e,t,n)=>{"use strict";n.d(t,{A9:()=>b,B0:()=>v,JZ:()=>_,LT:()=>w,_d:()=>C,kw:()=>y});var i=n(20501);var s=n.n(i);var o=n(12542);var r=n.n(o);var a=n(5596);var l=n.n(a);var d=n(71372);var c=n.n(d);var h=n(85448);var u=n.n(h);var p=n(10998);const m="jp-CSVViewer";const g="jp-CSVViewer-grid";const f=1e3;class v{}class _{constructor(e){this._looping=true;this._changed=new d.Signal(this);this._grid=e;this._query=null;this._row=0;this._column=-1}get changed(){return this._changed}cellBackgroundColorRendererFunc(e){return({value:t,row:n,column:i})=>{if(this._query){if(t.match(this._query)){if(this._row===n&&this._column===i){return e.currentMatchBackgroundColor}return e.matchBackgroundColor}}return""}}clear(){this._query=null;this._row=0;this._column=-1;this._changed.emit(undefined)}find(e,t=false){const n=this._grid.dataModel;const i=n.rowCount("body");const s=n.columnCount("body");if(this._query!==e){this._row=0;this._column=-1}this._query=e;const o=this._grid.scrollY/this._grid.defaultSizes.rowHeight;const r=(this._grid.scrollY+this._grid.pageHeight)/this._grid.defaultSizes.rowHeight;const a=this._grid.scrollX/this._grid.defaultSizes.columnHeaderHeight;const l=(this._grid.scrollX+this._grid.pageWidth)/this._grid.defaultSizes.columnHeaderHeight;const d=(e,t)=>e>=o&&e<=r&&t>=a&&t<=l;const c=t?-1:1;this._column+=c;for(let h=this._row;t?h>=0:h=0:i=n-1){this._row=0;this._column=-1}}get query(){return this._query}}class b extends h.Widget{constructor(e){super();this._monitor=null;this._delimiter=",";this._revealed=new a.PromiseDelegate;this._baseRenderer=null;this._context=e.context;this.layout=new h.PanelLayout;this.addClass(m);this._ready=this.initialize()}get ready(){return this._ready}async initialize(){const e=this.layout;if(this.isDisposed||!e){return}const{BasicKeyHandler:t,BasicMouseHandler:n,DataGrid:s}=await x.ensureDataGrid();this._defaultStyle=s.defaultStyle;this._grid=new s({defaultSizes:{rowHeight:24,columnWidth:144,rowHeaderWidth:64,columnHeaderHeight:36}});this._grid.addClass(g);this._grid.headerVisibility="all";this._grid.keyHandler=new t;this._grid.mouseHandler=new n;this._grid.copyConfig={separator:"\t",format:s.copyFormatGeneric,headers:"all",warningThreshold:1e6};e.addWidget(this._grid);this._searchService=new _(this._grid);this._searchService.changed.connect(this._updateRenderer,this);await this._context.ready;await this._updateGrid();this._revealed.resolve(undefined);this._monitor=new i.ActivityMonitor({signal:this._context.model.contentChanged,timeout:f});this._monitor.activityStopped.connect(this._updateGrid,this)}get context(){return this._context}get revealed(){return this._revealed.promise}get delimiter(){return this._delimiter}set delimiter(e){if(e===this._delimiter){return}this._delimiter=e;void this._updateGrid()}get style(){return this._grid.style}set style(e){this._grid.style={...this._defaultStyle,...e}}set rendererConfig(e){this._baseRenderer=e;void this._updateRenderer()}get searchService(){return this._searchService}dispose(){if(this._monitor){this._monitor.dispose()}super.dispose()}goToLine(e){this._grid.scrollToRow(e)}onActivateRequest(e){this.node.tabIndex=-1;this.node.focus()}async _updateGrid(){const{BasicSelectionModel:e}=await x.ensureDataGrid();const{DSVModel:t}=await x.ensureDSVModel();const n=this._context.model.toString();const i=this._delimiter;const s=this._grid.dataModel;const o=this._grid.dataModel=new t({data:n,delimiter:i});this._grid.selectionModel=new e({dataModel:o});if(s){s.dispose()}}async _updateRenderer(){if(this._baseRenderer===null){return}const{TextRenderer:e}=await x.ensureDataGrid();const t=this._baseRenderer;const n=new e({textColor:t.textColor,horizontalAlignment:t.horizontalAlignment,backgroundColor:this._searchService.cellBackgroundColorRendererFunc(t)});this._grid.cellRenderers.update({body:n,"column-header":n,"corner-header":n,"row-header":n})}}class y extends o.DocumentWidget{constructor(e){let{content:t,context:n,delimiter:i,reveal:s,...o}=e;t=t||x.createContent(n);s=Promise.all([s,t.revealed]);super({content:t,context:n,reveal:s,...o});if(i){t.delimiter=i}}setFragment(e){const t=e.split("=");if(t[0]!=="#row"){return}let n=t[1].split(";")[0];n=n.split("-")[0];void this.context.ready.then((()=>{this.content.goToLine(Number(n))}))}}class w extends o.ABCWidgetFactory{createNewWidget(e){const t=this.translator;return new y({context:e,translator:t})}defaultToolbarFactory(e){return[{name:"delimiter",widget:new p.p({widget:e.content,translator:this.translator})}]}}class C extends w{createNewWidget(e){const t="\t";return new y({context:e,delimiter:t,translator:this.translator})}}var x;(function(e){let t=null;let i=null;async function s(){if(t==null){t=new a.PromiseDelegate;t.resolve(await n.e(3364).then(n.t.bind(n,23364,23)))}return t.promise}e.ensureDataGrid=s;async function o(){if(i==null){i=new a.PromiseDelegate;i.resolve(await Promise.all([n.e(3472),n.e(3364)]).then(n.bind(n,33183)))}return i.promise}e.ensureDSVModel=o;function r(e){return new b({context:e})}e.createContent=r})(x||(x={}))},34360:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>W});var i=n(74574);var s=n.n(i);var o=n(10759);var r=n.n(o);var a=n(28698);var l=n.n(a);var d=n(7005);var c=n.n(d);var h=n(81201);var u=n.n(h);var p=n(20501);var m=n.n(p);var g=n(39347);var f=n.n(g);var v=n(12542);var _=n.n(v);var b=n(31490);var y=n.n(b);var w=n(87294);var C=n.n(w);var x=n(54729);var S=n.n(x);var k=n(23635);var j=n.n(k);var M=n(95811);var E=n.n(M);var I=n(6958);var T=n.n(I);function D(e){Object.values(g.Debugger.CommandIDs).forEach((t=>{if(e.commands.hasCommand(t)){e.commands.notifyCommandChanged(t)}}))}const L={id:"@jupyterlab/debugger-extension:consoles",description:"Add debugger capability to the consoles.",autoStart:true,requires:[g.IDebugger,h.IConsoleTracker],optional:[i.ILabShell],activate:(e,t,n,i)=>{const s=new g.Debugger.Handler({type:"console",shell:e.shell,service:t});const o=async t=>{const{sessionContext:n}=t;await n.ready;await s.updateContext(t,n);D(e)};if(i){i.currentChanged.connect(((e,t)=>{const n=t.newValue;if(n instanceof h.ConsolePanel){void o(n)}}))}else{n.currentChanged.connect(((e,t)=>{if(t){void o(t)}}))}}};const P={id:"@jupyterlab/debugger-extension:files",description:"Adds debugger capabilities to files.",autoStart:true,requires:[g.IDebugger,b.IEditorTracker],optional:[i.ILabShell],activate:(e,t,n,i)=>{const s=new g.Debugger.Handler({type:"file",shell:e.shell,service:t});const o={};const r=async t=>{const n=e.serviceManager.sessions;try{const i=await n.findByPath(t.context.path);if(!i){return}let r=o[i.id];if(!r){r=n.connectTo({model:i});o[i.id]=r}await s.update(t,r);D(e)}catch(i){return}};if(i){i.currentChanged.connect(((e,t)=>{const n=t.newValue;if(n instanceof v.DocumentWidget){const{content:e}=n;if(e instanceof b.FileEditor){void r(n)}}}))}else{n.currentChanged.connect(((e,t)=>{if(t){void r(t)}}))}}};const A={id:"@jupyterlab/debugger-extension:notebooks",description:"Adds debugger capability to notebooks and provides the debugger notebook handler.",autoStart:true,requires:[g.IDebugger,x.INotebookTracker],optional:[i.ILabShell,o.ICommandPalette,o.ISessionContextDialogs,I.ITranslator],provides:g.IDebuggerHandler,activate:(e,t,n,i,s,r,a)=>{const l=a!==null&&a!==void 0?a:I.nullTranslator;const d=r!==null&&r!==void 0?r:new o.SessionContextDialogs({translator:l});const c=new g.Debugger.Handler({type:"notebook",shell:e.shell,service:t});const h=l.load("jupyterlab");e.commands.addCommand(g.Debugger.CommandIDs.restartDebug,{label:h.__("Restart Kernel and Debug…"),caption:h.__("Restart Kernel and Debug…"),isEnabled:()=>t.isStarted,execute:async()=>{const e=t.getDebuggerState();await t.stop();const i=n.currentWidget;if(!i){return}const{content:s,sessionContext:o}=i;const r=await d.restart(o);if(!r){return}await t.restoreDebuggerState(e);await c.updateWidget(i,o.session);await x.NotebookActions.runAll(s,o,d,l)}});const u=async t=>{if(t){const{sessionContext:e}=t;await e.ready;await c.updateContext(t,e)}D(e)};if(i){i.currentChanged.connect(((e,t)=>{const n=t.newValue;if(n instanceof x.NotebookPanel){void u(n)}}))}else{n.currentChanged.connect(((e,t)=>{if(t){void u(t)}}))}if(s){s.addItem({category:"Notebook Operations",command:g.Debugger.CommandIDs.restartDebug})}return c}};const R={id:"@jupyterlab/debugger-extension:service",description:"Provides the debugger service.",autoStart:true,provides:g.IDebugger,requires:[g.IDebuggerConfig],optional:[g.IDebuggerSources,I.ITranslator],activate:(e,t,n,i)=>new g.Debugger.Service({config:t,debuggerSources:n,specsManager:e.serviceManager.kernelspecs,translator:i})};const N={id:"@jupyterlab/debugger-extension:config",description:"Provides the debugger configuration",provides:g.IDebuggerConfig,autoStart:true,activate:()=>new g.Debugger.Config};const O={id:"@jupyterlab/debugger-extension:sources",description:"Provides the source feature for debugging",autoStart:true,provides:g.IDebuggerSources,requires:[g.IDebuggerConfig,d.IEditorServices],optional:[x.INotebookTracker,h.IConsoleTracker,b.IEditorTracker],activate:(e,t,n,i,s,o)=>new g.Debugger.Sources({config:t,shell:e.shell,editorServices:n,notebookTracker:i,consoleTracker:s,editorTracker:o})};const B={id:"@jupyterlab/debugger-extension:variables",description:"Adds variables renderer and inspection in the debugger variable panel.",autoStart:true,requires:[g.IDebugger,g.IDebuggerHandler,I.ITranslator],optional:[o.IThemeManager,k.IRenderMimeRegistry],activate:(e,t,n,i,s,r)=>{const a=i.load("jupyterlab");const{commands:l,shell:d}=e;const c=new o.WidgetTracker({namespace:"debugger/inspect-variable"});const h=new o.WidgetTracker({namespace:"debugger/render-variable"});const u=g.Debugger.CommandIDs;l.addCommand(u.inspectVariable,{label:a.__("Inspect Variable"),caption:a.__("Inspect Variable"),isEnabled:e=>{var n,i,s,o;return!!((n=t.session)===null||n===void 0?void 0:n.isStarted)&&Number((o=(i=e.variableReference)!==null&&i!==void 0?i:(s=t.model.variables.selectedVariable)===null||s===void 0?void 0:s.variablesReference)!==null&&o!==void 0?o:0)>0},execute:async e=>{var n,i,r,a;let{variableReference:h,name:u}=e;if(!h){h=(n=t.model.variables.selectedVariable)===null||n===void 0?void 0:n.variablesReference}if(!u){u=(i=t.model.variables.selectedVariable)===null||i===void 0?void 0:i.name}const p=`jp-debugger-variable-${u}`;if(!u||!h||c.find((e=>e.id===p))){return}const m=await t.inspectVariable(h);if(!m||m.length===0){return}const f=t.model.variables;const v=new o.MainAreaWidget({content:new g.Debugger.VariablesGrid({model:f,commands:l,scopes:[{name:u,variables:m}],themeManager:s})});v.addClass("jp-DebuggerVariables");v.id=p;v.title.icon=g.Debugger.Icons.variableIcon;v.title.label=`${(a=(r=t.session)===null||r===void 0?void 0:r.connection)===null||a===void 0?void 0:a.name} - ${u}`;void c.add(v);const _=()=>{v.dispose();f.changed.disconnect(_)};f.changed.connect(_);d.add(v,"main",{mode:c.currentWidget?"split-right":"split-bottom",activate:false,type:"Debugger Variables"})}});l.addCommand(u.renderMimeVariable,{label:a.__("Render Variable"),caption:a.__("Render variable according to its mime type"),isEnabled:()=>{var e;return!!((e=t.session)===null||e===void 0?void 0:e.isStarted)},isVisible:()=>t.model.hasRichVariableRendering&&(r!==null||n.activeWidget instanceof x.NotebookPanel),execute:e=>{var s,o,a,l,c,u,p,m;let{name:f,frameId:v}=e;if(!f){f=(s=t.model.variables.selectedVariable)===null||s===void 0?void 0:s.name}if(!v){v=(o=t.model.callstack.frame)===null||o===void 0?void 0:o.id}const _=n.activeWidget;let b=_ instanceof x.NotebookPanel?_.content.rendermime:r;if(!b){return}const y=`jp-debugger-variable-mime-${f}-${(l=(a=t.session)===null||a===void 0?void 0:a.connection)===null||l===void 0?void 0:l.path.replace("/","-")}`;if(!f||h.find((e=>e.id===y))||!v&&t.hasStoppedThreads()){return}const w=t.model.variables;const C=new g.Debugger.VariableRenderer({dataLoader:()=>t.inspectRichVariable(f,v),rendermime:b,translator:i});C.addClass("jp-DebuggerRichVariable");C.id=y;C.title.icon=g.Debugger.Icons.variableIcon;C.title.label=`${f} - ${(u=(c=t.session)===null||c===void 0?void 0:c.connection)===null||u===void 0?void 0:u.name}`;C.title.caption=`${f} - ${(m=(p=t.session)===null||p===void 0?void 0:p.connection)===null||m===void 0?void 0:m.path}`;void h.add(C);const S=()=>{C.dispose();w.changed.disconnect(k);_===null||_===void 0?void 0:_.disposed.disconnect(S)};const k=()=>{if(n.activeWidget===_){void C.refresh()}};C.disposed.connect(S);w.changed.connect(k);_===null||_===void 0?void 0:_.disposed.connect(S);d.add(C,"main",{mode:h.currentWidget?"split-right":"split-bottom",activate:false,type:"Debugger Variables"})}});l.addCommand(u.copyToClipboard,{label:a.__("Copy to Clipboard"),caption:a.__("Copy text representation of the value to clipboard"),isEnabled:()=>{var e,n;return!!((e=t.session)===null||e===void 0?void 0:e.isStarted)&&!!((n=t.model.variables.selectedVariable)===null||n===void 0?void 0:n.value)},isVisible:()=>n.activeWidget instanceof x.NotebookPanel,execute:async()=>{const e=t.model.variables.selectedVariable.value;if(e){o.Clipboard.copyToSystem(e)}}});l.addCommand(u.copyToGlobals,{label:a.__("Copy Variable to Globals"),caption:a.__("Copy variable to globals scope"),isEnabled:()=>{var e;return!!((e=t.session)===null||e===void 0?void 0:e.isStarted)},isVisible:()=>n.activeWidget instanceof x.NotebookPanel&&t.model.supportCopyToGlobals,execute:async e=>{const n=t.model.variables.selectedVariable.name;await t.copyToGlobals(n)}})}};const F={id:"@jupyterlab/debugger-extension:sidebar",description:"Provides the debugger sidebar.",provides:g.IDebuggerSidebar,requires:[g.IDebugger,d.IEditorServices,I.ITranslator],optional:[o.IThemeManager,M.ISettingRegistry],autoStart:true,activate:async(e,t,n,i,s,o)=>{const{commands:r}=e;const a=g.Debugger.CommandIDs;const l={registry:r,continue:a.debugContinue,terminate:a.terminate,next:a.next,stepIn:a.stepIn,stepOut:a.stepOut,evaluate:a.evaluate};const d={registry:r,pauseOnExceptions:a.pauseOnExceptions};const c=new g.Debugger.Sidebar({service:t,callstackCommands:l,breakpointsCommands:d,editorServices:n,themeManager:s,translator:i});if(o){const e=await o.load(z.id);const n=()=>{var n,i,s,o;const r=e.get("variableFilters").composite;const a=(o=(s=(i=(n=t.session)===null||n===void 0?void 0:n.connection)===null||i===void 0?void 0:i.kernel)===null||s===void 0?void 0:s.name)!==null&&o!==void 0?o:"";if(a&&r[a]){c.variables.filter=new Set(r[a])}const l=e.get("defaultKernelSourcesFilter").composite;c.kernelSources.filter=l};n();e.changed.connect(n);t.sessionChanged.connect(n)}return c}};const z={id:"@jupyterlab/debugger-extension:main",description:"Initialize the debugger user interface.",requires:[g.IDebugger,g.IDebuggerSidebar,d.IEditorServices,I.ITranslator],optional:[o.ICommandPalette,g.IDebuggerSources,i.ILabShell,i.ILayoutRestorer,w.ILoggerRegistry,M.ISettingRegistry],autoStart:true,activate:async(e,t,n,i,s,r,l,d,c,h,u)=>{var m;const f=s.load("jupyterlab");const{commands:v,shell:_,serviceManager:b}=e;const{kernelspecs:y}=b;const w=g.Debugger.CommandIDs;const C=p.PageConfig.getOption("alwaysShowDebuggerExtension").toLowerCase()==="true";if(!C){await y.ready;const e=(m=y.specs)===null||m===void 0?void 0:m.kernelspecs;if(!e){return}const t=Object.keys(e).some((t=>{var n,i,s;return!!((s=(i=(n=e[t])===null||n===void 0?void 0:n.metadata)===null||i===void 0?void 0:i["debugger"])!==null&&s!==void 0?s:false)}));if(!t){return}}const x=async()=>{var e,n,s;const o=(n=(e=t.session)===null||e===void 0?void 0:e.connection)===null||n===void 0?void 0:n.kernel;if(!o){return""}const r=(await o.info).language_info;const a=r.name;const l=(s=i.mimeTypeService.getMimeTypeByLanguage({name:a}))!==null&&s!==void 0?s:"";return l};const S=new k.RenderMimeRegistry({initialFactories:k.standardRendererFactories});v.addCommand(w.evaluate,{label:f.__("Evaluate Code"),caption:f.__("Evaluate Code"),icon:g.Debugger.Icons.evaluateIcon,isEnabled:()=>t.hasStoppedThreads(),execute:async()=>{var e,n,s;const o=await x();const r=await g.Debugger.Dialogs.getCode({title:f.__("Evaluate Code"),okLabel:f.__("Evaluate"),cancelLabel:f.__("Cancel"),mimeType:o,contentFactory:new a.CodeCell.ContentFactory({editorFactory:e=>i.factoryService.newInlineEditor(e)}),rendermime:S});const l=r.value;if(!r.button.accept||!l){return}const d=await t.evaluate(l);if(d){const i=d.result;const o=(n=(e=t===null||t===void 0?void 0:t.session)===null||e===void 0?void 0:e.connection)===null||n===void 0?void 0:n.path;const r=o?(s=h===null||h===void 0?void 0:h.getLogger)===null||s===void 0?void 0:s.call(h,o):undefined;if(r){r.log({type:"text",data:i,level:r.level})}else{console.debug(i)}}}});v.addCommand(w.debugContinue,{label:()=>t.hasStoppedThreads()?f.__("Continue"):f.__("Pause"),caption:()=>t.hasStoppedThreads()?f.__("Continue"):f.__("Pause"),icon:()=>t.hasStoppedThreads()?g.Debugger.Icons.continueIcon:g.Debugger.Icons.pauseIcon,isEnabled:()=>{var e,n;return(n=(e=t.session)===null||e===void 0?void 0:e.isStarted)!==null&&n!==void 0?n:false},execute:async()=>{if(t.hasStoppedThreads()){await t.continue()}else{await t.pause()}v.notifyCommandChanged(w.debugContinue)}});v.addCommand(w.terminate,{label:f.__("Terminate"),caption:f.__("Terminate"),icon:g.Debugger.Icons.terminateIcon,isEnabled:()=>t.hasStoppedThreads(),execute:async()=>{await t.restart();D(e)}});v.addCommand(w.next,{label:f.__("Next"),caption:f.__("Next"),icon:g.Debugger.Icons.stepOverIcon,isEnabled:()=>t.hasStoppedThreads(),execute:async()=>{await t.next()}});v.addCommand(w.stepIn,{label:f.__("Step In"),caption:f.__("Step In"),icon:g.Debugger.Icons.stepIntoIcon,isEnabled:()=>t.hasStoppedThreads(),execute:async()=>{await t.stepIn()}});v.addCommand(w.stepOut,{label:f.__("Step Out"),caption:f.__("Step Out"),icon:g.Debugger.Icons.stepOutIcon,isEnabled:()=>t.hasStoppedThreads(),execute:async()=>{await t.stepOut()}});v.addCommand(w.pauseOnExceptions,{label:e=>e.filter||"Breakpoints on exception",caption:e=>e.description,isToggled:e=>{var n;return((n=t.session)===null||n===void 0?void 0:n.isPausingOnException(e.filter))||false},isEnabled:()=>t.pauseOnExceptionsIsValid(),execute:async e=>{var n,i,s;if(e===null||e===void 0?void 0:e.filter){let n=e.filter;await t.pauseOnExceptionsFilter(n)}else{let e=[];(i=(n=t.session)===null||n===void 0?void 0:n.exceptionBreakpointFilters)===null||i===void 0?void 0:i.forEach((t=>{e.push(t.filter)}));const r=await o.InputDialog.getMultipleItems({title:f.__("Select a filter for breakpoints on exception"),items:e,defaults:((s=t.session)===null||s===void 0?void 0:s.currentExceptionFilters)||[]});let a=r.button.accept?r.value:null;if(a!==null){await t.pauseOnExceptions(a)}}}});let j=false;if(u){const e=await u.load(z.id);const t=()=>{j=e.get("autoCollapseDebuggerSidebar").composite};t();e.changed.connect(t)}t.eventMessage.connect(((t,i)=>{D(e);if(d&&i.event==="initialized"){d.activateById(n.id)}else if(d&&n.isVisible&&i.event==="terminated"&&j){d.collapseRight()}}));t.sessionChanged.connect((t=>{D(e)}));if(c){c.add(n,"debugger-sidebar")}n.node.setAttribute("role","region");n.node.setAttribute("aria-label",f.__("Debugger section"));n.title.caption=f.__("Debugger");_.add(n,"right",{type:"Debugger"});v.addCommand(w.showPanel,{label:f.__("Debugger Panel"),execute:()=>{_.activateById(n.id)}});if(r){const e=f.__("Debugger");[w.debugContinue,w.terminate,w.next,w.stepIn,w.stepOut,w.evaluate,w.pauseOnExceptions].forEach((t=>{r.addItem({command:t,category:e})}))}if(l){const{model:e}=t;const n=new g.Debugger.ReadOnlyEditorFactory({editorServices:i});const s=(e,n)=>{var i,s,o,r,a,d,c,h,u;l.find({focus:true,kernel:(r=(o=(s=(i=t.session)===null||i===void 0?void 0:i.connection)===null||s===void 0?void 0:s.kernel)===null||o===void 0?void 0:o.name)!==null&&r!==void 0?r:"",path:(c=(d=(a=t.session)===null||a===void 0?void 0:a.connection)===null||d===void 0?void 0:d.path)!==null&&c!==void 0?c:"",source:(u=(h=n===null||n===void 0?void 0:n.source)===null||h===void 0?void 0:h.path)!==null&&u!==void 0?u:""}).forEach((e=>{requestAnimationFrame((()=>{void e.reveal().then((()=>{const t=e.get();if(t){g.Debugger.EditorHandler.showCurrentLine(t,n.line)}}))}))}))};const o=(e,i,s)=>{var o,r,a,d,c,h,u;if(!i){return}const{content:m,mimeType:f,path:v}=i;const _=l.find({focus:true,kernel:(d=(a=(r=(o=t.session)===null||o===void 0?void 0:o.connection)===null||r===void 0?void 0:r.kernel)===null||a===void 0?void 0:a.name)!==null&&d!==void 0?d:"",path:(u=(h=(c=t.session)===null||c===void 0?void 0:c.connection)===null||h===void 0?void 0:h.path)!==null&&u!==void 0?u:"",source:v});if(_.length>0){if(s&&typeof s.line!=="undefined"){_.forEach((e=>{void e.reveal().then((()=>{var t;(t=e.get())===null||t===void 0?void 0:t.revealPosition({line:s.line-1,column:s.column||0})}))}))}return}const b=n.createNewEditor({content:m,mimeType:f,path:v});const y=b.editor;const w=new g.Debugger.EditorHandler({debuggerService:t,editorReady:()=>Promise.resolve(y),getEditor:()=>y,path:v,src:y.model.sharedModel});b.disposed.connect((()=>w.dispose()));l.open({label:p.PathExt.basename(v),caption:v,editorWrapper:b});const C=t.model.callstack.frame;if(C){g.Debugger.EditorHandler.showCurrentLine(y,C.line)}};const r=(e,t,n)=>{if(!t){return}o(null,t,n)};e.callstack.currentFrameChanged.connect(s);e.sources.currentSourceOpened.connect(o);e.kernelSources.kernelSourceOpened.connect(r);e.breakpoints.clicked.connect((async(e,n)=>{var i;const s=(i=n.source)===null||i===void 0?void 0:i.path;const r=await t.getSource({sourceReference:0,path:s});o(null,r,n)}))}}};const H=[R,L,P,A,B,F,z,O,N];const W=H},7920:(e,t,n)=>{"use strict";var i=n(79536);var s=n(49914);var o=n(98896);var r=n(94683);var a=n(90516);var l=n(5956);var d=n(42650);var c=n(33379);var h=n(88164);var u=n(32902);var p=n(34849);var m=n(37935);var g=n(93379);var f=n.n(g);var v=n(7795);var _=n.n(v);var b=n(90569);var y=n.n(b);var w=n(3565);var C=n.n(w);var x=n(19216);var S=n.n(x);var k=n(44589);var j=n.n(k);var M=n(69324);var E={};E.styleTagTransform=j();E.setAttributes=C();E.insert=y().bind(null,"head");E.domAPI=_();E.insertStyleElement=S();var I=f()(M.Z,E);const T=M.Z&&M.Z.locals?M.Z.locals:undefined;var D=n(70161)},24767:(e,t,n)=>{"use strict";n.d(t,{q:()=>Qe});var i=n(4148);const s=1540483477;const o=new TextEncoder;function r(e,t){const n=o.encode(e);let i=n.length;let r=t^i;let a=0;while(i>=4){let e=n[a]&255|(n[++a]&255)<<8|(n[++a]&255)<<16|(n[++a]&255)<<24;e=(e&65535)*s+(((e>>>16)*s&65535)<<16);e^=e>>>24;e=(e&65535)*s+(((e>>>16)*s&65535)<<16);r=(r&65535)*s+(((r>>>16)*s&65535)<<16)^e;i-=4;++a}switch(i){case 3:r^=(n[a+2]&255)<<16;case 2:r^=(n[a+1]&255)<<8;case 1:r^=n[a]&255;r=(r&65535)*s+(((r>>>16)*s&65535)<<16)}r^=r>>>13;r=(r&65535)*s+(((r>>>16)*s&65535)<<16);r^=r>>>15;return r>>>0}class a{constructor(){this._fileParams=new Map;this._hashMethods=new Map}getCodeId(e,t){const n=this._fileParams.get(t);if(!n){throw new Error(`Kernel (${t}) has no tmp file params.`)}const i=this._hashMethods.get(t);if(!i){throw new Error(`Kernel (${t}) has no hashing params.`)}const{prefix:s,suffix:o}=n;return`${s}${i(e)}${o}`}setHashParams(e){const{kernel:t,method:n,seed:i}=e;if(!t){throw new TypeError(`Kernel name is not defined.`)}switch(n){case"Murmur2":this._hashMethods.set(t,(e=>r(e,i).toString()));break;default:throw new Error(`Hash method (${n}) is not supported.`)}}setTmpFileParams(e){const{kernel:t,prefix:n,suffix:i}=e;if(!t){throw new TypeError(`Kernel name is not defined.`)}this._fileParams.set(t,{kernel:t,prefix:n,suffix:i})}getTmpFileParams(e){return this._fileParams.get(e)}}var l=n(10759);var d=n(28698);var c=n(85448);var h;(function(e){function t(e){const t=new u({...e,body:new p(e),buttons:[l.Dialog.cancelButton({label:e.cancelLabel}),l.Dialog.okButton({label:e.okLabel})]});return t.launch()}e.getCode=t})(h||(h={}));class u extends l.Dialog{handleEvent(e){if(e.type==="keydown"){const t=e;const{code:n,shiftKey:i}=t;if(i&&n==="Enter"){return this.resolve()}if(n==="Enter"){return}}super.handleEvent(e)}}class p extends c.Widget{constructor(e){super();const{contentFactory:t,rendermime:n,mimeType:i}=e;const s=new d.CodeCellModel;s.mimeType=i!==null&&i!==void 0?i:"";this._prompt=new d.CodeCell({contentFactory:t,rendermime:n,model:s,placeholder:false}).initializeState();this._prompt.inputArea.promptNode.remove();this.node.appendChild(this._prompt.node)}getValue(){return this._prompt.model.sharedModel.getSource()}onAfterAttach(e){super.onAfterAttach(e);this._prompt.activate()}}var m=n(7005);class g{constructor(e){this._services=e.editorServices}createNewEditor(e){const{content:t,mimeType:n,path:i}=e;const s=this._services.factoryService.newInlineEditor;const o=this._services.mimeTypeService;const r=new m.CodeEditor.Model({mimeType:n||o.getMimeTypeByFilePath(i)});r.sharedModel.source=t;const a=new m.CodeEditorWrapper({editorOptions:{config:{readOnly:true,lineNumbers:true}},model:r,factory:s});a.node.setAttribute("data-jp-debugger","true");a.disposed.connect((()=>{r.dispose()}));return a}}var f=n(6958);var v=n(20631);var _=n(71372);var b=n(20501);var y=n(37496);var w=n(66143);const C="jp-DebuggerEditor-highlight";const x=1e3;class S{constructor(e){var t,n,i,s;this._src=e.src;this._id=(i=(n=(t=e.debuggerService.session)===null||t===void 0?void 0:t.connection)===null||n===void 0?void 0:n.id)!==null&&i!==void 0?i:"";this._path=(s=e.path)!==null&&s!==void 0?s:"";this._debuggerService=e.debuggerService;this._editor=e.getEditor;this._editorMonitor=new b.ActivityMonitor({signal:this._src.changed,timeout:x});this._editorMonitor.activityStopped.connect((()=>{this._sendEditorBreakpoints()}),this);this._debuggerService.model.breakpoints.changed.connect((async()=>{const e=this.editor;if(!e||e.isDisposed){return}this._addBreakpointsToEditor()}));this._debuggerService.model.breakpoints.restored.connect((async()=>{const e=this.editor;if(!e||e.isDisposed){return}this._addBreakpointsToEditor()}));this._debuggerService.model.callstack.currentFrameChanged.connect((()=>{const e=this.editor;if(e){S.clearHighlight(e)}}));this._breakpointEffect=y.StateEffect.define({map:(e,t)=>({pos:e.pos.map((e=>t.mapPos(e)))})});this._breakpointState=y.StateField.define({create:()=>y.RangeSet.empty,update:(e,t)=>{e=e.map(t.changes);for(let n of t.effects){if(n.is(this._breakpointEffect)){let t=n;if(t.value.pos.length){e=e.update({add:t.value.pos.map((e=>k.breakpointMarker.range(e))),sort:true})}else{e=y.RangeSet.empty}}}return e}});this._gutter=new y.Compartment;this._highlightDeco=w.Decoration.line({class:C});this._highlightState=y.StateField.define({create:()=>w.Decoration.none,update:(e,t)=>{e=e.map(t.changes);for(let n of t.effects){if(n.is(S._highlightEffect)){let t=n;if(t.value.pos.length){e=e.update({add:t.value.pos.map((e=>this._highlightDeco.range(e)))})}else{e=w.Decoration.none}}}return e},provide:e=>w.EditorView.decorations.from(e)});void e.editorReady().then((()=>{this._setupEditor()}))}get editor(){return this._editor()}dispose(){if(this.isDisposed){return}this._editorMonitor.dispose();this._clearEditor();this.isDisposed=true;_.Signal.clearData(this)}refreshBreakpoints(){this._addBreakpointsToEditor()}_setupEditor(){const e=this.editor;if(!e||e.isDisposed){return}e.setOption("lineNumbers",true);const t=[this._breakpointState,this._highlightState,y.Prec.highest((0,w.gutter)({class:"cm-breakpoint-gutter",renderEmptyElements:true,markers:e=>e.state.field(this._breakpointState),initialSpacer:()=>k.breakpointMarker,domEventHandlers:{mousedown:(e,t)=>{this._onGutterClick(e,t.from);return true}}}))];e.injectExtension(this._gutter.of(t));this._addBreakpointsToEditor()}_clearEditor(){const e=this.editor;if(!e||e.isDisposed){return}S.clearHighlight(e);this._clearGutter(e);e.setOption("lineNumbers",false);e.editor.dispatch({effects:this._gutter.reconfigure([])})}_sendEditorBreakpoints(){var e;if((e=this.editor)===null||e===void 0?void 0:e.isDisposed){return}const t=this._getBreakpointsFromEditor().map((e=>{var t,n;return k.createBreakpoint(((n=(t=this._debuggerService.session)===null||t===void 0?void 0:t.connection)===null||n===void 0?void 0:n.name)||"",e)}));void this._debuggerService.updateBreakpoints(this._src.getSource(),t,this._path)}_onGutterClick(e,t){var n,i,s;if(this._id!==((i=(n=this._debuggerService.session)===null||n===void 0?void 0:n.connection)===null||i===void 0?void 0:i.id)){return}const o=e.state.doc.lineAt(t).number;let r=e.state.field(this._breakpointState);let a=false;r.between(t,t,(()=>{a=true}));let l=this._getBreakpoints();if(a){l=l.filter((e=>e.line!==o))}else{l.push(k.createBreakpoint((s=this._path)!==null&&s!==void 0?s:this._debuggerService.session.connection.name,o))}l.sort(((e,t)=>e.line-t.line));void this._debuggerService.updateBreakpoints(this._src.getSource(),l,this._path)}_addBreakpointsToEditor(){var e,t;if(this._id!==((t=(e=this._debuggerService.session)===null||e===void 0?void 0:e.connection)===null||t===void 0?void 0:t.id)){return}const n=this.editor;const i=this._getBreakpoints();this._clearGutter(n);const s=i.map((e=>n.state.doc.line(e.line).from));n.editor.dispatch({effects:this._breakpointEffect.of({pos:s})})}_getBreakpointsFromEditor(){const e=this.editor;const t=e.editor.state.field(this._breakpointState);let n=[];t.between(0,e.doc.length,(t=>{n.push(e.doc.lineAt(t).number)}));return n}_clearGutter(e){if(!e){return}const t=e.editor;t.dispatch({effects:this._breakpointEffect.of({pos:[]})})}_getBreakpoints(){const e=this._src.getSource();return this._debuggerService.model.breakpoints.getBreakpoints(this._path||this._debuggerService.getCodeId(e))}}(function(e){e._highlightEffect=y.StateEffect.define({map:(e,t)=>({pos:e.pos.map((e=>t.mapPos(e)))})});function t(t,i){n(t);const s=t;const o=s.doc.line(i).from;s.editor.dispatch({effects:e._highlightEffect.of({pos:[o]})})}e.showCurrentLine=t;function n(t){if(!t||t.isDisposed){return}const n=t;n.editor.dispatch({effects:e._highlightEffect.of({pos:[]})})}e.clearHighlight=n})(S||(S={}));var k;(function(e){e.breakpointMarker=new class extends w.GutterMarker{toDOM(){const e=document.createTextNode("●");return e}};function t(e,t){return{line:t,verified:true,source:{name:e}}}e.createBreakpoint=t})(k||(k={}));class j{constructor(e){this._debuggerService=e.debuggerService;this._consolePanel=e.widget;this._cellMap=new v.ObservableMap;const t=this._consolePanel.console;if(t.promptCell){this._addEditorHandler(t.promptCell)}t.promptCellCreated.connect(((e,t)=>{this._addEditorHandler(t)}));const n=()=>{for(const e of t.cells){this._addEditorHandler(e)}};n();this._consolePanel.console.cells.changed.connect(n)}dispose(){if(this.isDisposed){return}this.isDisposed=true;this._cellMap.values().forEach((e=>e.dispose()));this._cellMap.dispose();_.Signal.clearData(this)}_addEditorHandler(e){const t=e.model.id;if(e.model.type!=="code"||this._cellMap.has(t)){return}const n=e;const i=new S({debuggerService:this._debuggerService,editorReady:async()=>{await n.ready;return n.editor},getEditor:()=>n.editor,src:e.model.sharedModel});n.disposed.connect((()=>{this._cellMap.delete(t);i.dispose()}));this._cellMap.set(t,i)}}class M{constructor(e){var t;this._debuggerService=e.debuggerService;this._fileEditor=e.widget.content;this._hasLineNumber=(t=this._fileEditor.editor.getOption("lineNumbers"))!==null&&t!==void 0?t:false;this._editorHandler=new S({debuggerService:this._debuggerService,editorReady:()=>Promise.resolve(this._fileEditor.editor),getEditor:()=>this._fileEditor.editor,src:this._fileEditor.model.sharedModel})}dispose(){var e,t;if(this.isDisposed){return}this.isDisposed=true;(e=this._editorHandler)===null||e===void 0?void 0:e.dispose();(t=this._editorHandler)===null||t===void 0?void 0:t.editor.setOptions({lineNumbers:this._hasLineNumber});_.Signal.clearData(this)}}class E{constructor(e){this._debuggerService=e.debuggerService;this._notebookPanel=e.widget;this._cellMap=new v.ObservableMap;const t=this._notebookPanel.content;t.model.cells.changed.connect(this._onCellsChanged,this);this._onCellsChanged()}dispose(){if(this.isDisposed){return}this.isDisposed=true;this._cellMap.values().forEach((e=>{var t;e.dispose();(t=e.editor)===null||t===void 0?void 0:t.setOptions({...this._notebookPanel.content.editorConfig.code})}));this._cellMap.dispose();_.Signal.clearData(this)}_onCellsChanged(e,t){var n;this._notebookPanel.content.widgets.forEach((e=>this._addEditorHandler(e)));if((t===null||t===void 0?void 0:t.type)==="move"){for(const e of t.newValues){(n=this._cellMap.get(e.id))===null||n===void 0?void 0:n.refreshBreakpoints()}}}_addEditorHandler(e){const t=e.model.id;if(e.model.type!=="code"||this._cellMap.has(t)){return}const n=e;const i=new S({debuggerService:this._debuggerService,editorReady:async()=>{await n.ready;return n.editor},getEditor:()=>n.editor,src:e.model.sharedModel});n.disposed.connect((()=>{this._cellMap.delete(t);i.dispose()}));this._cellMap.set(e.model.id,i)}}const I="debugger-icon";function T(e,t,n,s,o=f.nullTranslator){const r=o.load("jupyterlab");const a=new i.ToolbarButton({className:"jp-DebuggerBugButton",icon:i.bugIcon,tooltip:r.__("Enable Debugger"),pressedIcon:i.bugDotIcon,pressedTooltip:r.__("Disable Debugger"),disabledTooltip:r.__("Select a kernel that supports debugging to enable debugger"),enabled:n,pressed:s,onClick:t});if(!e.toolbar.insertBefore("kernelName",I,a)){e.toolbar.addItem(I,a)}return a}function D(e,t,n=true,i){if(e){e.enabled=n;e.pressed=t;if(i){e.onClick=i}}}class L{constructor(e){this._handlers={};this._contextKernelChangedHandlers={};this._kernelChangedHandlers={};this._statusChangedHandlers={};this._iopubMessageHandlers={};this._iconButtons={};this._type=e.type;this._shell=e.shell;this._service=e.service}get activeWidget(){return this._activeWidget}async update(e,t){if(!t){delete this._kernelChangedHandlers[e.id];delete this._statusChangedHandlers[e.id];delete this._iopubMessageHandlers[e.id];return this.updateWidget(e,t)}const n=()=>{void this.updateWidget(e,t)};const i=this._kernelChangedHandlers[e.id];if(i){t.kernelChanged.disconnect(i)}this._kernelChangedHandlers[e.id]=n;t.kernelChanged.connect(n);const s=(n,i)=>{if(i.endsWith("restarting")){void this.updateWidget(e,t)}};const o=this._statusChangedHandlers[e.id];if(o){t.statusChanged.disconnect(o)}t.statusChanged.connect(s);this._statusChangedHandlers[e.id]=s;const r=(e,t)=>{if(t.parent_header.msg_type=="execute_request"&&this._service.isStarted&&!this._service.hasStoppedThreads()){void this._service.displayDefinedVariables()}};const a=this._iopubMessageHandlers[e.id];if(a){t.iopubMessage.disconnect(a)}t.iopubMessage.connect(r);this._iopubMessageHandlers[e.id]=r;this._activeWidget=e;return this.updateWidget(e,t)}async updateContext(e,t){const n=()=>{const{session:n}=t;void this.update(e,n)};const i=this._contextKernelChangedHandlers[e.id];if(i){t.kernelChanged.disconnect(i)}this._contextKernelChangedHandlers[e.id]=n;t.kernelChanged.connect(n);return this.update(e,t.session)}async updateWidget(e,t){var n,i,s,o;if(!this._service.model||!t){return}const r=()=>this._shell.currentWidget===e;const a=()=>{if(!this._handlers[e.id]){e.node.removeAttribute("data-jp-debugger");return}e.node.setAttribute("data-jp-debugger","true")};const l=()=>{if(this._handlers[e.id]){return}switch(this._type){case"notebook":this._handlers[e.id]=new E({debuggerService:this._service,widget:e});break;case"console":this._handlers[e.id]=new j({debuggerService:this._service,widget:e});break;case"file":this._handlers[e.id]=new M({debuggerService:this._service,widget:e});break;default:throw Error(`No handler for the type ${this._type}`)}a()};const d=()=>{var n,i,s,o;const r=this._handlers[e.id];if(!r){return}r.dispose();delete this._handlers[e.id];delete this._kernelChangedHandlers[e.id];delete this._statusChangedHandlers[e.id];delete this._iopubMessageHandlers[e.id];delete this._contextKernelChangedHandlers[e.id];if(((i=(n=this._service.session)===null||n===void 0?void 0:n.connection)===null||i===void 0?void 0:i.path)===(t===null||t===void 0?void 0:t.path)||!((o=(s=this._service.session)===null||s===void 0?void 0:s.connection)===null||o===void 0?void 0:o.kernel)){const e=this._service.model;e.clear()}a()};const c=(t=true)=>{const n=this._iconButtons[e.id];if(!n){this._iconButtons[e.id]=T(e,m,this._service.isStarted,t)}else{D(n,this._service.isStarted,t,m)}};const h=()=>{var e;return this._service.isStarted&&((e=this._previousConnection)===null||e===void 0?void 0:e.id)===(t===null||t===void 0?void 0:t.id)};const u=async()=>{this._service.session.connection=t;await this._service.stop()};const p=async()=>{var e,n;this._service.session.connection=t;this._previousConnection=t;await this._service.restoreState(true);await this._service.displayDefinedVariables();if((n=(e=this._service.session)===null||e===void 0?void 0:e.capabilities)===null||n===void 0?void 0:n.supportsModulesRequest){await this._service.displayModules()}};const m=async()=>{if(!r()){return}const t=this._iconButtons[e.id];if(h()){await u();d();D(t,false)}else{await p();l();D(t,true)}};c(false);e.disposed.connect((async()=>{if(h()){await u()}d();delete this._iconButtons[e.id];delete this._contextKernelChangedHandlers[e.id]}));const g=await this._service.isAvailable(t);if(!g){d();D(this._iconButtons[e.id],false,false);return}if(!this._service.session){this._service.session=new Qe.Session({connection:t,config:this._service.config})}else{this._previousConnection=((n=this._service.session.connection)===null||n===void 0?void 0:n.kernel)?this._service.session.connection:null;this._service.session.connection=t}await this._service.restoreState(false);if(this._service.isStarted&&!this._service.hasStoppedThreads()){await this._service.displayDefinedVariables();if((s=(i=this._service.session)===null||i===void 0?void 0:i.capabilities)===null||s===void 0?void 0:s.supportsModulesRequest){await this._service.displayModules()}}D(this._iconButtons[e.id],this._service.isStarted,true);if(!this._service.isStarted){d();this._service.session.connection=(o=this._previousConnection)!==null&&o!==void 0?o:t;await this._service.restoreState(false);return}l();this._previousConnection=t}}const P='\n \n\n';const A='\n\t\n\n';const R='\n\t\n\n';const N='\n\t\n\n';const O='\n\n\n';const B='\n \n\n';const F='\n \n\n';const z='\n \n\n';const H='\n \n\n';const W=new i.LabIcon({name:"debugger:close-all",svgstr:P});const V=new i.LabIcon({name:"debugger:pause-on-exception",svgstr:H});const U=new i.LabIcon({name:"debugger:pause",svgstr:B});const $=new i.LabIcon({name:"debugger:step-into",svgstr:A});const q=new i.LabIcon({name:"debugger:step-over",svgstr:N});const K=new i.LabIcon({name:"debugger:step-out",svgstr:R});const J=new i.LabIcon({name:"debugger:variable",svgstr:O});const Z=new i.LabIcon({name:"debugger:view-breakpoint",svgstr:F});const G=new i.LabIcon({name:"debugger:open-kernel-source",svgstr:z});class Y{constructor(){this._breakpoints=new Map;this._changed=new _.Signal(this);this._restored=new _.Signal(this);this._clicked=new _.Signal(this)}get changed(){return this._changed}get restored(){return this._restored}get clicked(){return this._clicked}get breakpoints(){return this._breakpoints}setBreakpoints(e,t){this._breakpoints.set(e,t);this._changed.emit(t)}getBreakpoints(e){var t;return(t=this._breakpoints.get(e))!==null&&t!==void 0?t:[]}restoreBreakpoints(e){this._breakpoints=e;this._restored.emit()}}class X{constructor(){this._state=[];this._currentFrame=null;this._framesChanged=new _.Signal(this);this._currentFrameChanged=new _.Signal(this)}get frames(){return this._state}set frames(e){this._state=e;const t=this.frame!==null?Q.getFrameId(this.frame):"";const n=e.find((e=>Q.getFrameId(e)===t));if(!n){this.frame=e[0]}this._framesChanged.emit(e)}get frame(){return this._currentFrame}set frame(e){this._currentFrame=e;this._currentFrameChanged.emit(e)}get framesChanged(){return this._framesChanged}get currentFrameChanged(){return this._currentFrameChanged}}var Q;(function(e){function t(e){var t;return`${(t=e===null||e===void 0?void 0:e.source)===null||t===void 0?void 0:t.path}-${e===null||e===void 0?void 0:e.id}`}e.getFrameId=t})(Q||(Q={}));class ee{constructor(e){this._currentSourceOpened=new _.Signal(this);this._currentSourceChanged=new _.Signal(this);this.currentFrameChanged=e.currentFrameChanged}get currentSourceOpened(){return this._currentSourceOpened}get currentSourceChanged(){return this._currentSourceChanged}get currentSource(){return this._currentSource}set currentSource(e){this._currentSource=e;this._currentSourceChanged.emit(e)}open(){this._currentSourceOpened.emit(this._currentSource)}}var te=n(95905);const ne=500;const ie=(e,t)=>{if(e.namet.name){return 1}return 0};class se{constructor(){this._filteredKernelSources=null;this._filter="";this._isDisposed=false;this._kernelSources=null;this._changed=new _.Signal(this);this._filterChanged=new _.Signal(this);this._kernelSourceOpened=new _.Signal(this);this.refresh=this.refresh.bind(this);this._refreshDebouncer=new te.Debouncer(this.refresh,ne)}get filter(){return this._filter}set filter(e){this._filter=e;this._filterChanged.emit(e);void this._refreshDebouncer.invoke()}get isDisposed(){return this._isDisposed}get kernelSources(){return this._kernelSources}set kernelSources(e){this._kernelSources=e;this.refresh()}get changed(){return this._changed}get filterChanged(){return this._filterChanged}get kernelSourceOpened(){return this._kernelSourceOpened}dispose(){if(this._isDisposed){return}this._isDisposed=true;this._refreshDebouncer.dispose();_.Signal.clearData(this)}open(e){this._kernelSourceOpened.emit(e)}getFilteredKernelSources(){const e=new RegExp(this._filter);return this._kernelSources.filter((t=>e.test(t.name)))}refresh(){if(this._kernelSources){this._filteredKernelSources=this._filter?this.getFilteredKernelSources():this._kernelSources;this._filteredKernelSources.sort(ie)}else{this._kernelSources=new Array;this._filteredKernelSources=new Array}this._changed.emit(this._filteredKernelSources)}}class oe{constructor(){this._selectedVariable=null;this._state=[];this._variableExpanded=new _.Signal(this);this._changed=new _.Signal(this)}get scopes(){return this._state}set scopes(e){this._state=e;this._changed.emit()}get changed(){return this._changed}get variableExpanded(){return this._variableExpanded}get selectedVariable(){return this._selectedVariable}set selectedVariable(e){this._selectedVariable=e}expandVariable(e){this._variableExpanded.emit(e)}}class re{constructor(){this._disposed=new _.Signal(this);this._isDisposed=false;this._hasRichVariableRendering=false;this._supportCopyToGlobals=false;this._stoppedThreads=new Set;this._title="-";this._titleChanged=new _.Signal(this);this.breakpoints=new Y;this.callstack=new X;this.variables=new oe;this.sources=new ee({currentFrameChanged:this.callstack.currentFrameChanged});this.kernelSources=new se}get disposed(){return this._disposed}get hasRichVariableRendering(){return this._hasRichVariableRendering}set hasRichVariableRendering(e){this._hasRichVariableRendering=e}get supportCopyToGlobals(){return this._supportCopyToGlobals}set supportCopyToGlobals(e){this._supportCopyToGlobals=e}get isDisposed(){return this._isDisposed}get stoppedThreads(){return this._stoppedThreads}set stoppedThreads(e){this._stoppedThreads=e}get title(){return this._title}set title(e){if(e===this._title){return}this._title=e!==null&&e!==void 0?e:"-";this._titleChanged.emit(e)}get titleChanged(){return this._titleChanged}dispose(){if(this._isDisposed){return}this._isDisposed=true;this.kernelSources.dispose();this._disposed.emit()}clear(){this._stoppedThreads.clear();const e=new Map;this.breakpoints.restoreBreakpoints(e);this.callstack.frames=[];this.variables.scopes=[];this.sources.currentSource=null;this.kernelSources.kernelSources=null;this.title="-"}}class ae extends c.Panel{constructor(e){super();this._filter=new Set;this._grid=null;this._pending=null;this.commands=e.commands;this.model=e.model;this.themeManager=e.themeManager;this.translator=e.translator;this.model.changed.connect((()=>this.update()),this);this.addClass("jp-DebuggerVariables-body")}get filter(){return this._filter}set filter(e){this._filter=e;this.update()}get scope(){return this._scope}set scope(e){this._scope=e;if(e!=="Globals"){this.addClass("jp-debuggerVariables-local")}else{this.removeClass("jp-debuggerVariables-local")}this.update()}async initialize(){if(this._grid||this._pending){return}const{Grid:e}=await(this._pending=Promise.all([n.e(3472),n.e(3364)]).then(n.bind(n,32938)));const{commands:t,model:i,themeManager:s,translator:o}=this;this._grid=new e({commands:t,model:i,themeManager:s,translator:o});this._grid.addClass("jp-DebuggerVariables-grid");this._pending=null;this.addWidget(this._grid);this.update()}onBeforeShow(e){if(!this._grid&&!this._pending){void this.initialize()}super.onBeforeShow(e)}onUpdateRequest(e){var t;if(this._grid){const{dataModel:e}=this._grid;e.filter=this._filter;e.scope=this._scope;e.setData((t=this.model.scopes)!==null&&t!==void 0?t:[])}super.onUpdateRequest(e)}}var le=n(23635);var de=n(5596);const ce="jp-VariableRendererPanel";const he="jp-VariableRendererPanel-renderer";class ue extends l.MainAreaWidget{constructor(e){const{dataLoader:t,rendermime:n,translator:i}=e;const s=new c.Panel;const o=new de.PromiseDelegate;super({content:s,reveal:Promise.all([t,o.promise])});this.content.addClass(ce);this.trans=(i!==null&&i!==void 0?i:f.nullTranslator).load("jupyterlab");this.dataLoader=t;this.renderMime=n;this._dataHash=null;this.refresh().then((()=>{o.resolve()})).catch((e=>o.reject(e)))}async refresh(e=false){let t=await this.dataLoader();if(Object.keys(t.data).length===0){t={data:{"text/plain":this.trans.__("The variable is undefined in the active context.")},metadata:{}}}if(t.data){const n=r(JSON.stringify(t),17);if(e||this._dataHash!==n){if(this.content.layout){this.content.widgets.forEach((e=>{this.content.layout.removeWidget(e)}))}const e=this.renderMime.preferredMimeType(t.data,"any");if(e){const i=this.renderMime.createRenderer(e);i.addClass(he);const s=new le.MimeModel({...t,trusted:true});this._dataHash=n;await i.renderModel(s);this.content.addWidget(i)}else{this._dataHash=null;return Promise.reject("Unable to determine the preferred mime type.")}}}else{this._dataHash=null;return Promise.reject("Unable to get a view on the variable.")}}}class pe{constructor(e){var t,n;this._eventMessage=new _.Signal(this);this._isDisposed=false;this._sessionChanged=new _.Signal(this);this._pauseOnExceptionChanged=new _.Signal(this);this._config=e.config;this._session=null;this._specsManager=(t=e.specsManager)!==null&&t!==void 0?t:null;this._model=new Qe.Model;this._debuggerSources=(n=e.debuggerSources)!==null&&n!==void 0?n:null;this._trans=(e.translator||f.nullTranslator).load("jupyterlab")}get eventMessage(){return this._eventMessage}get config(){return this._config}get isDisposed(){return this._isDisposed}get isStarted(){var e,t;return(t=(e=this._session)===null||e===void 0?void 0:e.isStarted)!==null&&t!==void 0?t:false}get pauseOnExceptionChanged(){return this._pauseOnExceptionChanged}get model(){return this._model}get session(){return this._session}set session(e){var t;if(this._session===e){return}if(this._session){this._session.dispose()}this._session=e;(t=this._session)===null||t===void 0?void 0:t.eventMessage.connect(((e,t)=>{if(t.event==="stopped"){this._model.stoppedThreads.add(t.body.threadId);void this._getAllFrames()}else if(t.event==="continued"){this._model.stoppedThreads.delete(t.body.threadId);this._clearModel();this._clearSignals()}this._eventMessage.emit(t)}));this._sessionChanged.emit(e)}get sessionChanged(){return this._sessionChanged}dispose(){if(this.isDisposed){return}this._isDisposed=true;_.Signal.clearData(this)}getCodeId(e){var t,n,i,s;try{return this._config.getCodeId(e,(s=(i=(n=(t=this.session)===null||t===void 0?void 0:t.connection)===null||n===void 0?void 0:n.kernel)===null||i===void 0?void 0:i.name)!==null&&s!==void 0?s:"")}catch(o){return""}}hasStoppedThreads(){var e,t;return(t=((e=this._model)===null||e===void 0?void 0:e.stoppedThreads.size)>0)!==null&&t!==void 0?t:false}async isAvailable(e){var t,n,i,s;if(!this._specsManager){return true}await this._specsManager.ready;const o=e===null||e===void 0?void 0:e.kernel;if(!o){return false}const r=o.name;if(!((t=this._specsManager.specs)===null||t===void 0?void 0:t.kernelspecs[r])){return true}return!!((s=(i=(n=this._specsManager.specs.kernelspecs[r])===null||n===void 0?void 0:n.metadata)===null||i===void 0?void 0:i["debugger"])!==null&&s!==void 0?s:false)}async clearBreakpoints(){var e;if(((e=this.session)===null||e===void 0?void 0:e.isStarted)!==true){return}this._model.breakpoints.breakpoints.forEach(((e,t,n)=>{void this._setBreakpoints([],t)}));let t=new Map;this._model.breakpoints.restoreBreakpoints(t)}async continue(){try{if(!this.session){throw new Error("No active debugger session")}await this.session.sendRequest("continue",{threadId:this._currentThread()});this._model.stoppedThreads.delete(this._currentThread());this._clearModel();this._clearSignals()}catch(e){console.error("Error:",e.message)}}async getSource(e){var t,n;if(!this.session){throw new Error("No active debugger session")}const i=await this.session.sendRequest("source",{source:e,sourceReference:(t=e.sourceReference)!==null&&t!==void 0?t:0});return{...i.body,path:(n=e.path)!==null&&n!==void 0?n:""}}async evaluate(e){var t;if(!this.session){throw new Error("No active debugger session")}const n=(t=this.model.callstack.frame)===null||t===void 0?void 0:t.id;const i=await this.session.sendRequest("evaluate",{context:"repl",expression:e,frameId:n});if(!i.success){return null}this._clearModel();await this._getAllFrames();return i.body}async next(){try{if(!this.session){throw new Error("No active debugger session")}await this.session.sendRequest("next",{threadId:this._currentThread()})}catch(e){console.error("Error:",e.message)}}async inspectRichVariable(e,t){if(!this.session){throw new Error("No active debugger session")}const n=await this.session.sendRequest("richInspectVariables",{variableName:e,frameId:t});if(n.success){return n.body}else{throw new Error(n.message)}}async inspectVariable(e){if(!this.session){throw new Error("No active debugger session")}const t=await this.session.sendRequest("variables",{variablesReference:e});if(t.success){return t.body.variables}else{throw new Error(t.message)}}async copyToGlobals(e){if(!this.session){throw new Error("No active debugger session")}if(!this.model.supportCopyToGlobals){throw new Error('The "copyToGlobals" request is not supported by the kernel')}const t=this.model.callstack.frames;this.session.sendRequest("copyToGlobals",{srcVariableName:e,dstVariableName:e,srcFrameId:t[0].id}).then((async()=>{const e=await this._getScopes(t[0]);const n=await Promise.all(e.map((e=>this._getVariables(e))));const i=this._convertScopes(e,n);this._model.variables.scopes=i})).catch((e=>{console.error(e)}))}async displayDefinedVariables(){if(!this.session){throw new Error("No active debugger session")}const e=await this.session.sendRequest("inspectVariables",{});const t=e.body.variables;const n=[{name:this._trans.__("Globals"),variables:t}];this._model.variables.scopes=n}async displayModules(){if(!this.session){throw new Error("No active debugger session")}const e=await this.session.sendRequest("modules",{});this._model.kernelSources.kernelSources=e.body.modules.map((e=>({name:e.name,path:e.path})))}async restart(){const{breakpoints:e}=this._model.breakpoints;await this.stop();await this.start();await this._restoreBreakpoints(e)}async restoreState(e){var t,n,i,s,o,r,a,l,d,c;if(!this.model||!this.session){return}const h=await this.session.restoreState();const{body:u}=h;const p=this._mapBreakpoints(u.breakpoints);const m=new Set(u.stoppedThreads);this._model.hasRichVariableRendering=u.richRendering===true;this._model.supportCopyToGlobals=u.copyToGlobals===true;this._config.setHashParams({kernel:(s=(i=(n=(t=this.session)===null||t===void 0?void 0:t.connection)===null||n===void 0?void 0:n.kernel)===null||i===void 0?void 0:i.name)!==null&&s!==void 0?s:"",method:u.hashMethod,seed:u.hashSeed});this._config.setTmpFileParams({kernel:(l=(a=(r=(o=this.session)===null||o===void 0?void 0:o.connection)===null||r===void 0?void 0:r.kernel)===null||a===void 0?void 0:a.name)!==null&&l!==void 0?l:"",prefix:u.tmpFilePrefix,suffix:u.tmpFileSuffix});this._model.stoppedThreads=m;if(!this.isStarted&&(e||m.size!==0)){await this.start()}if(this.isStarted||e){this._model.title=this.isStarted?((c=(d=this.session)===null||d===void 0?void 0:d.connection)===null||c===void 0?void 0:c.name)||"-":"-"}if(this._debuggerSources){const e=this._filterBreakpoints(p);this._model.breakpoints.restoreBreakpoints(e)}else{this._model.breakpoints.restoreBreakpoints(p)}if(m.size!==0){await this._getAllFrames()}else if(this.isStarted){this._clearModel();this._clearSignals()}if(this.session.currentExceptionFilters){await this.pauseOnExceptions(this.session.currentExceptionFilters)}}start(){if(!this.session){throw new Error("No active debugger session")}return this.session.start()}async pause(){try{if(!this.session){throw new Error("No active debugger session")}await this.session.sendRequest("pause",{threadId:this._currentThread()})}catch(e){console.error("Error:",e.message)}}async stepIn(){try{if(!this.session){throw new Error("No active debugger session")}await this.session.sendRequest("stepIn",{threadId:this._currentThread()})}catch(e){console.error("Error:",e.message)}}async stepOut(){try{if(!this.session){throw new Error("No active debugger session")}await this.session.sendRequest("stepOut",{threadId:this._currentThread()})}catch(e){console.error("Error:",e.message)}}async stop(){if(!this.session){throw new Error("No active debugger session")}await this.session.stop();if(this._model){this._model.clear()}}async updateBreakpoints(e,t,n){var i;if(!((i=this.session)===null||i===void 0?void 0:i.isStarted)){return}if(!n){n=(await this._dumpCell(e)).body.sourcePath}const s=await this.session.restoreState();const o=t.filter((({line:e})=>typeof e==="number")).map((({line:e})=>({line:e})));const r=this._mapBreakpoints(s.body.breakpoints);if(this._debuggerSources){const e=this._filterBreakpoints(r);this._model.breakpoints.restoreBreakpoints(e)}else{this._model.breakpoints.restoreBreakpoints(r)}let a=new Set;const l=await this._setBreakpoints(o,n);const d=l.body.breakpoints.filter(((e,t,n)=>{const i=n.findIndex((t=>t.line===e.line))>-1;const s=!a.has(e.line);a.add(e.line);return i&&s}));this._model.breakpoints.setBreakpoints(n,d);await this.session.sendRequest("configurationDone",{})}pauseOnExceptionsIsValid(){var e,t;if(this.isStarted){if(((t=(e=this.session)===null||e===void 0?void 0:e.exceptionBreakpointFilters)===null||t===void 0?void 0:t.length)!==0){return true}}return false}async pauseOnExceptionsFilter(e){var t;if(!((t=this.session)===null||t===void 0?void 0:t.isStarted)){return}let n=this.session.currentExceptionFilters;if(this.session.isPausingOnException(e)){const t=n.indexOf(e);n.splice(t,1)}else{n===null||n===void 0?void 0:n.push(e)}await this.pauseOnExceptions(n)}async pauseOnExceptions(e){var t,n;if(!((t=this.session)===null||t===void 0?void 0:t.isStarted)){return}const i=((n=this.session.exceptionBreakpointFilters)===null||n===void 0?void 0:n.map((e=>e.filter)))||[];let s={filters:[]};e.forEach((e=>{if(i.includes(e)){s.filters.push(e)}}));this.session.currentExceptionFilters=s.filters;await this.session.sendRequest("setExceptionBreakpoints",s);this._pauseOnExceptionChanged.emit()}getDebuggerState(){var e,t,n,i,s,o,r;const a=this._model.breakpoints.breakpoints;let l=[];if(this._debuggerSources){for(const d of a.keys()){const a=this._debuggerSources.find({focus:false,kernel:(i=(n=(t=(e=this.session)===null||e===void 0?void 0:e.connection)===null||t===void 0?void 0:t.kernel)===null||n===void 0?void 0:n.name)!==null&&i!==void 0?i:"",path:(r=(o=(s=this._session)===null||s===void 0?void 0:s.connection)===null||o===void 0?void 0:o.path)!==null&&r!==void 0?r:"",source:d});const c=a.map((e=>e.src.getSource()));l=l.concat(c)}}return{cells:l,breakpoints:a}}async restoreDebuggerState(e){var t,n,i,s;await this.start();for(const c of e.cells){await this._dumpCell(c)}const o=new Map;const r=(s=(i=(n=(t=this.session)===null||t===void 0?void 0:t.connection)===null||n===void 0?void 0:n.kernel)===null||i===void 0?void 0:i.name)!==null&&s!==void 0?s:"";const{prefix:a,suffix:l}=this._config.getTmpFileParams(r);for(const c of e.breakpoints){const[e,t]=c;const n=e.substr(0,e.length-l.length);const i=n.substr(n.lastIndexOf("/")+1);const s=a.concat(i).concat(l);o.set(s,t)}await this._restoreBreakpoints(o);const d=await this.session.sendRequest("configurationDone",{});await this.restoreState(false);return d.success}_clearModel(){this._model.callstack.frames=[];this._model.variables.scopes=[]}_clearSignals(){this._model.callstack.currentFrameChanged.disconnect(this._onCurrentFrameChanged,this);this._model.variables.variableExpanded.disconnect(this._onVariableExpanded,this)}_convertScopes(e,t){if(!t||!e){return[]}return e.map(((e,n)=>({name:e.name,variables:t[n].map((e=>({...e})))})))}_currentThread(){return 1}async _dumpCell(e){if(!this.session){throw new Error("No active debugger session")}return this.session.sendRequest("dumpCell",{code:e})}_filterBreakpoints(e){if(!this._debuggerSources){return e}let t=new Map;for(const n of e){const[e,i]=n;i.forEach((()=>{var n,s,o,r,a,l,d;this._debuggerSources.find({focus:false,kernel:(r=(o=(s=(n=this.session)===null||n===void 0?void 0:n.connection)===null||s===void 0?void 0:s.kernel)===null||o===void 0?void 0:o.name)!==null&&r!==void 0?r:"",path:(d=(l=(a=this._session)===null||a===void 0?void 0:a.connection)===null||l===void 0?void 0:l.path)!==null&&d!==void 0?d:"",source:e}).forEach((()=>{if(i.length>0){t.set(e,i)}}))}))}return t}async _getAllFrames(){this._model.callstack.currentFrameChanged.connect(this._onCurrentFrameChanged,this);this._model.variables.variableExpanded.connect(this._onVariableExpanded,this);const e=await this._getFrames(this._currentThread());this._model.callstack.frames=e}async _getFrames(e){if(!this.session){throw new Error("No active debugger session")}const t=await this.session.sendRequest("stackTrace",{threadId:e});const n=t.body.stackFrames;return n}async _getScopes(e){if(!this.session){throw new Error("No active debugger session")}if(!e){return[]}const t=await this.session.sendRequest("scopes",{frameId:e.id});return t.body.scopes}async _getVariables(e){if(!this.session){throw new Error("No active debugger session")}if(!e){return[]}const t=await this.session.sendRequest("variables",{variablesReference:e.variablesReference});return t.body.variables}_mapBreakpoints(e){if(!e.length){return new Map}return e.reduce(((e,t)=>{const{breakpoints:n,source:i}=t;e.set(i,n.map((e=>({...e,source:{path:i},verified:true}))));return e}),new Map)}async _onCurrentFrameChanged(e,t){if(!t){return}const n=await this._getScopes(t);const i=await Promise.all(n.map((e=>this._getVariables(e))));const s=this._convertScopes(n,i);this._model.variables.scopes=s}async _onVariableExpanded(e,t){if(!this.session){throw new Error("No active debugger session")}const n=await this.session.sendRequest("variables",{variablesReference:t.variablesReference});let i={...t,expanded:true};n.body.variables.forEach((e=>{i={[e.name]:e,...i}}));const s=this._model.variables.scopes.map((e=>{const n=e.variables.findIndex((e=>e.variablesReference===t.variablesReference));e.variables[n]=i;return{...e}}));this._model.variables.scopes=[...s];return n.body.variables}async _setBreakpoints(e,t){if(!this.session){throw new Error("No active debugger session")}return await this.session.sendRequest("setBreakpoints",{breakpoints:e,source:{path:t},sourceModified:false})}async _restoreBreakpoints(e){for(const[t,n]of e){await this._setBreakpoints(n.filter((({line:e})=>typeof e==="number")).map((({line:e})=>({line:e}))),t)}this._model.breakpoints.restoreBreakpoints(e)}}class me{constructor(e){this._seq=0;this._ready=new de.PromiseDelegate;this._isDisposed=false;this._isStarted=false;this._exceptionPaths=[];this._exceptionBreakpointFilters=[];this._currentExceptionFilters={};this._disposed=new _.Signal(this);this._eventMessage=new _.Signal(this);this.connection=e.connection;this._config=e.config;this.translator=e.translator||f.nullTranslator}get isDisposed(){return this._isDisposed}get capabilities(){return this._capabilities}get disposed(){return this._disposed}get connection(){return this._connection}set connection(e){var t,n;if(this._connection){this._connection.iopubMessage.disconnect(this._handleEvent,this)}this._connection=e;if(!this._connection){this._isStarted=false;return}this._connection.iopubMessage.connect(this._handleEvent,this);this._ready=new de.PromiseDelegate;const i=(n=(t=this.connection)===null||t===void 0?void 0:t.kernel)===null||n===void 0?void 0:n.requestDebug({type:"request",seq:0,command:"debugInfo"});if(i){i.onReply=e=>{this._ready.resolve();i.dispose()}}}get isStarted(){return this._isStarted}get exceptionPaths(){return this._exceptionPaths}get exceptionBreakpointFilters(){return this._exceptionBreakpointFilters}get currentExceptionFilters(){var e,t,n;const i=(n=(t=(e=this.connection)===null||e===void 0?void 0:e.kernel)===null||t===void 0?void 0:t.name)!==null&&n!==void 0?n:"";if(!i){return[]}const s=this._config.getTmpFileParams(i);if(!s){return[]}let o=s.prefix;if(Object.keys(this._currentExceptionFilters).includes(o)){return this._currentExceptionFilters[o]}return[]}set currentExceptionFilters(e){var t,n,i;const s=(i=(n=(t=this.connection)===null||t===void 0?void 0:t.kernel)===null||n===void 0?void 0:n.name)!==null&&i!==void 0?i:"";if(!s){return}const o=this._config.getTmpFileParams(s);if(!o){return}let r=o.prefix;if(e===null){if(Object.keys(this._currentExceptionFilters).includes(r)){delete this._currentExceptionFilters[r]}}else{this._currentExceptionFilters[r]=e}}get eventMessage(){return this._eventMessage}dispose(){if(this._isDisposed){return}this._isDisposed=true;this._disposed.emit();_.Signal.clearData(this)}async start(){var e,t,n,i;const s=await this.sendRequest("initialize",{clientID:"jupyterlab",clientName:"JupyterLab",adapterID:(n=(t=(e=this.connection)===null||e===void 0?void 0:e.kernel)===null||t===void 0?void 0:t.name)!==null&&n!==void 0?n:"",pathFormat:"path",linesStartAt1:true,columnsStartAt1:true,supportsVariableType:true,supportsVariablePaging:true,supportsRunInTerminalRequest:true,locale:document.documentElement.lang});if(!s.success){throw new Error(`Could not start the debugger: ${s.message}`)}this._capabilities=s.body;this._isStarted=true;this._exceptionBreakpointFilters=(i=s.body)===null||i===void 0?void 0:i.exceptionBreakpointFilters;await this.sendRequest("attach",{})}async stop(){this._isStarted=false;await this.sendRequest("disconnect",{restart:false,terminateDebuggee:false})}async restoreState(){var e;const t=await this.sendRequest("debugInfo",{});this._isStarted=t.body.isStarted;this._exceptionPaths=(e=t.body)===null||e===void 0?void 0:e.exceptionPaths;return t}isPausingOnException(e){var t,n;if(e){return(n=(t=this.currentExceptionFilters)===null||t===void 0?void 0:t.includes(e))!==null&&n!==void 0?n:false}else{return this.currentExceptionFilters.length>0}}async sendRequest(e,t){await this._ready.promise;const n=await this._sendDebugMessage({type:"request",seq:this._seq++,command:e,arguments:t});return n.content}_handleEvent(e,t){const n=t.header.msg_type;if(n!=="debug_event"){return}const i=t.content;this._eventMessage.emit(i)}async _sendDebugMessage(e){var t;const n=(t=this.connection)===null||t===void 0?void 0:t.kernel;if(!n){return Promise.reject(new Error("A kernel is required to send debug messages."))}const i=new de.PromiseDelegate;const s=n.requestDebug(e);s.onReply=e=>{i.resolve(e)};await s.done;return i.promise}}var ge=n(28416);var fe=n.n(ge);class ve extends i.ReactWidget{constructor(e){super();this._model=e;this.addClass("jp-DebuggerBreakpoints-body")}render(){return fe().createElement(_e,{model:this._model})}}const _e=({model:e})=>{const[t,n]=(0,ge.useState)(Array.from(e.breakpoints.entries()));(0,ge.useEffect)((()=>{const t=(t,i)=>{n(Array.from(e.breakpoints.entries()))};const i=t=>{n(Array.from(e.breakpoints.entries()))};e.changed.connect(t);e.restored.connect(i);return()=>{e.changed.disconnect(t);e.restored.disconnect(i)}}));return fe().createElement(fe().Fragment,null,t.map((t=>fe().createElement(be,{key:t[0],breakpoints:t[1],model:e}))))};const be=({breakpoints:e,model:t})=>fe().createElement(fe().Fragment,null,e.sort(((e,t)=>{var n,i;return((n=e.line)!==null&&n!==void 0?n:0)-((i=t.line)!==null&&i!==void 0?i:0)})).map(((e,n)=>{var i,s;return fe().createElement(ye,{key:((s=(i=e.source)===null||i===void 0?void 0:i.path)!==null&&s!==void 0?s:"")+n,breakpoint:e,model:t})})));const ye=({breakpoint:e,model:t})=>{var n,i,s;const o=e=>e[0]==="/"?e.slice(1)+"/":e;return fe().createElement("div",{className:"jp-DebuggerBreakpoint",onClick:()=>t.clicked.emit(e),title:(n=e.source)===null||n===void 0?void 0:n.path},fe().createElement("span",{className:"jp-DebuggerBreakpoint-marker"},"●"),fe().createElement("span",{className:"jp-DebuggerBreakpoint-source jp-left-truncated"},o((s=(i=e.source)===null||i===void 0?void 0:i.path)!==null&&s!==void 0?s:"")),fe().createElement("span",{className:"jp-DebuggerBreakpoint-line"},e.line))};const we="jp-debugger-pauseOnExceptions";const Ce="jp-PauseOnExceptions";const xe="jp-PauseOnExceptions-menu";class Se extends i.ToolbarButton{constructor(e){super();this.onclick=()=>{this._menu.open(this.node.getBoundingClientRect().left,this.node.getBoundingClientRect().bottom)};this._menu=new ke({service:e.service,commands:{registry:e.commands.registry,pauseOnExceptions:e.commands.pauseOnExceptions}});this.node.className=we;this._props=e;this._props.className=Ce;this._props.service.eventMessage.connect(((e,t)=>{if(t.event==="initialized"||t.event==="terminated"){this.onChange()}}),this);this._props.enabled=this._props.service.pauseOnExceptionsIsValid();this._props.service.pauseOnExceptionChanged.connect(this.onChange,this)}onChange(){var e;const t=this._props.service.session;const n=t===null||t===void 0?void 0:t.exceptionBreakpointFilters;this._props.className=Ce;if(((e=this._props.service.session)===null||e===void 0?void 0:e.isStarted)&&n){if(t.isPausingOnException()){this._props.className+=" lm-mod-toggled"}this._props.enabled=true}else{this._props.enabled=false}this.update()}render(){return ge.createElement(i.ToolbarButtonComponent,{...this._props,onClick:this.onclick})}}class ke extends i.MenuSvg{constructor(e){super({commands:e.commands.registry});this._service=e.service;this._command=e.commands.pauseOnExceptions;e.service.eventMessage.connect(((e,t)=>{if(t.event==="initialized"){this._build()}}),this);this._build();this.addClass(xe)}_build(){var e,t;this.clearItems();const n=(t=(e=this._service.session)===null||e===void 0?void 0:e.exceptionBreakpointFilters)!==null&&t!==void 0?t:[];n.map(((e,t)=>{this.addItem({command:this._command,args:{filter:e.filter,description:e.description}})}))}}class je extends i.PanelWithToolbar{constructor(e){var t;super(e);this.clicked=new _.Signal(this);const{model:n,service:s,commands:o}=e;const r=((t=e.translator)!==null&&t!==void 0?t:f.nullTranslator).load("jupyterlab");this.title.label=r.__("Breakpoints");const a=new ve(n);this.toolbar.addItem("pauseOnException",new Se({service:s,commands:o,icon:V,tooltip:r.__("Pause on exception filter")}));this.toolbar.addItem("closeAll",new i.ToolbarButton({icon:W,onClick:async()=>{if(n.breakpoints.size===0){return}const e=await(0,l.showDialog)({title:r.__("Remove All Breakpoints"),body:r.__("Are you sure you want to remove all breakpoints?"),buttons:[l.Dialog.okButton({label:r.__("Remove breakpoints")}),l.Dialog.cancelButton()],hasClose:true});if(e.button.accept){return s.clearBreakpoints()}},tooltip:r.__("Remove All Breakpoints")}));this.addWidget(a);this.addClass("jp-DebuggerBreakpoints")}}class Me extends i.ReactWidget{constructor(e){super();this._model=e;this.addClass("jp-DebuggerCallstack-body")}render(){return fe().createElement(Ee,{model:this._model})}}const Ee=({model:e})=>{const[t,n]=(0,ge.useState)(e.frames);const[i,s]=(0,ge.useState)(e.frame);const o=t=>{s(t);e.frame=t};(0,ge.useEffect)((()=>{const t=()=>{s(e.frame);n(e.frames)};e.framesChanged.connect(t);return()=>{e.framesChanged.disconnect(t)}}),[e]);const r=e=>{var t;const n=((t=e.source)===null||t===void 0?void 0:t.path)||"";const i=b.PathExt.basename(b.PathExt.dirname(n));const s=b.PathExt.basename(n);const o=b.PathExt.join(i,s);return`${o}:${e.line}`};return fe().createElement("ul",null,t.map((e=>{var t;return fe().createElement("li",{key:e.id,onClick:()=>o(e),className:(i===null||i===void 0?void 0:i.id)===e.id?"selected jp-DebuggerCallstackFrame":"jp-DebuggerCallstackFrame"},fe().createElement("span",{className:"jp-DebuggerCallstackFrame-name"},e.name),fe().createElement("span",{className:"jp-DebuggerCallstackFrame-location",title:(t=e.source)===null||t===void 0?void 0:t.path},r(e)))})))};class Ie extends i.PanelWithToolbar{constructor(e){var t;super(e);const{commands:n,model:s}=e;const o=((t=e.translator)!==null&&t!==void 0?t:f.nullTranslator).load("jupyterlab");this.title.label=o.__("Callstack");const r=new Me(s);this.toolbar.addItem("continue",new i.CommandToolbarButton({commands:n.registry,id:n.continue,label:""}));this.toolbar.addItem("terminate",new i.CommandToolbarButton({commands:n.registry,id:n.terminate,label:""}));this.toolbar.addItem("step-over",new i.CommandToolbarButton({commands:n.registry,id:n.next,label:""}));this.toolbar.addItem("step-in",new i.CommandToolbarButton({commands:n.registry,id:n.stepIn,label:""}));this.toolbar.addItem("step-out",new i.CommandToolbarButton({commands:n.registry,id:n.stepOut,label:""}));this.toolbar.addItem("evaluate",new i.CommandToolbarButton({commands:n.registry,id:n.evaluate,label:""}));this.addWidget(r);this.addClass("jp-DebuggerCallstack")}}const Te=({model:e})=>fe().createElement(i.UseSignal,{signal:e.currentSourceChanged,initialSender:e},(e=>{var t,n;return fe().createElement("span",{onClick:()=>e===null||e===void 0?void 0:e.open(),className:"jp-DebuggerSources-header-path"},(n=(t=e===null||e===void 0?void 0:e.currentSource)===null||t===void 0?void 0:t.path)!==null&&n!==void 0?n:"")}));class De extends c.Widget{constructor(e){super();this._model=e.model;this._debuggerService=e.service;this._mimeTypeService=e.editorServices.mimeTypeService;const t=new Qe.ReadOnlyEditorFactory({editorServices:e.editorServices});this._editor=t.createNewEditor({content:"",mimeType:"",path:""});this._editor.hide();this._model.currentFrameChanged.connect((async(e,t)=>{if(!t){this._clearEditor();return}void this._showSource(t)}));const n=new c.PanelLayout;n.addWidget(this._editor);this.layout=n;this.addClass("jp-DebuggerSources-body")}dispose(){var e;if(this.isDisposed){return}(e=this._editorHandler)===null||e===void 0?void 0:e.dispose();_.Signal.clearData(this);super.dispose()}_clearEditor(){this._model.currentSource=null;this._editor.hide()}async _showSource(e){var t;const n=(t=e.source)===null||t===void 0?void 0:t.path;const i=await this._debuggerService.getSource({sourceReference:0,path:n});if(!(i===null||i===void 0?void 0:i.content)){this._clearEditor();return}if(this._editorHandler){this._editorHandler.dispose()}const{content:s,mimeType:o}=i;const r=o||this._mimeTypeService.getMimeTypeByFilePath(n!==null&&n!==void 0?n:"");this._editor.model.sharedModel.setSource(s);this._editor.model.mimeType=r;this._editorHandler=new S({debuggerService:this._debuggerService,editorReady:()=>Promise.resolve(this._editor.editor),getEditor:()=>this._editor.editor,path:n,src:this._editor.model.sharedModel});this._model.currentSource={content:s,mimeType:r,path:n!==null&&n!==void 0?n:""};requestAnimationFrame((()=>{S.showCurrentLine(this._editor.editor,e.line)}));this._editor.show()}}class Le extends i.PanelWithToolbar{constructor(e){var t;super();const{model:n,service:s,editorServices:o}=e;const r=((t=e.translator)!==null&&t!==void 0?t:f.nullTranslator).load("jupyterlab");this.title.label=r.__("Source");this.toolbar.addClass("jp-DebuggerSources-header");const a=new De({service:s,model:n,editorServices:o});this.toolbar.addItem("open",new i.ToolbarButton({icon:Z,onClick:()=>n.open(),tooltip:r.__("Open in the Main Area")}));const l=i.ReactWidget.create(fe().createElement(Te,{model:n}));this.toolbar.addItem("sourcePath",l);this.addClass("jp-DebuggerSources-header");this.addWidget(a);this.addClass("jp-DebuggerSources")}}const Pe=e=>{const t=t=>{const n=t.target.value;e.model.filter=n};return fe().createElement(i.InputGroup,{type:"text",onChange:t,placeholder:"Filter the kernel sources",value:e.model.filter})};const Ae=e=>fe().createElement(i.UseSignal,{signal:e.model.filterChanged,initialArgs:e.model.filter},(t=>fe().createElement(Pe,{model:e.model})));const Re="jp-DebuggerKernelSource-filterBox";const Ne="jp-DebuggerKernelSource-filterBox-hidden";class Oe extends i.ReactWidget{constructor(e){var t;super();this._showFilter=false;this._model=e.model;this._debuggerService=e.service;this._trans=((t=e.translator)!==null&&t!==void 0?t:f.nullTranslator).load("jupyterlab");this.addClass("jp-DebuggerKernelSources-body")}render(){let e=Re;if(!this._showFilter){e+=" "+Ne}return fe().createElement(fe().Fragment,null,fe().createElement("div",{className:e,key:"filter"},fe().createElement(Ae,{model:this._model})),fe().createElement(i.UseSignal,{signal:this._model.changed},((e,t)=>{const n={};return(t!==null&&t!==void 0?t:[]).map((e=>{var t;const s=e.name;const o=e.path;const r=s+(n[s]=((t=n[s])!==null&&t!==void 0?t:0)+1).toString();const a=fe().createElement(i.ToolbarButtonComponent,{key:r,icon:G,label:s,tooltip:o,onClick:()=>{this._debuggerService.getSource({sourceReference:0,path:o}).then((e=>{this._model.open(e)})).catch((e=>{void(0,l.showErrorMessage)(this._trans.__("Fail to get source"),this._trans.__("Fail to get '%1' source:\n%2",o,e))}))}});return a}))})))}toggleFilterbox(){this._showFilter=!this._showFilter;this.update()}}class Be extends i.PanelWithToolbar{constructor(e){var t;super();const{model:n,service:s}=e;this._model=n;const o=((t=e.translator)!==null&&t!==void 0?t:f.nullTranslator).load("jupyterlab");this.title.label=o.__("Kernel Sources");this.toolbar.addClass("jp-DebuggerKernelSources-header");this._body=new Oe({service:s,model:n,translator:e.translator});this.toolbar.addItem("open-filter",new i.ToolbarButton({icon:i.searchIcon,onClick:async()=>{this._body.toggleFilterbox()},tooltip:o.__("Toggle search filter")}));this.toolbar.addItem("refresh",new i.ToolbarButton({icon:i.refreshIcon,onClick:()=>{this._model.kernelSources=[];void s.displayModules().catch((e=>{void(0,l.showErrorMessage)(o.__("Fail to get kernel sources"),o.__("Fail to get kernel sources:\n%2",e))}))},tooltip:o.__("Refresh kernel sources")}));this.addClass("jp-DebuggerKernelSources-header");this.addWidget(this._body);this.addClass("jp-DebuggerKenelSources")}set filter(e){this._model.filter=e}}const Fe=({model:e,tree:t,grid:n,trans:s})=>{const[o,r]=(0,ge.useState)("-");const a=e.scopes;const l=e=>{const i=e.target.value;r(i);t.scope=i;n.scope=i};return fe().createElement(i.HTMLSelect,{onChange:l,value:o,"aria-label":s.__("Scope")},a.map((e=>fe().createElement("option",{key:e.name,value:e.name},s.__(e.name)))))};class ze extends i.ReactWidget{constructor(e){super();const{translator:t,model:n,tree:i,grid:s}=e;this._model=n;this._tree=i;this._grid=s;this._trans=(t||f.nullTranslator).load("jupyterlab")}render(){return fe().createElement(i.UseSignal,{signal:this._model.changed,initialSender:this._model},(()=>fe().createElement(Fe,{model:this._model,trans:this._trans,tree:this._tree,grid:this._grid})))}}var He=n(58740);const We="jp-DebuggerVariables-buttons";class Ve extends i.ReactWidget{constructor(e){super();this._scope="";this._scopes=[];this._filter=new Set;this._commands=e.commands;this._service=e.service;this._translator=e.translator;this._hoverChanged=new _.Signal(this);const t=this.model=e.model;t.changed.connect(this._updateScopes,this);this.addClass("jp-DebuggerVariables-body")}render(){var e;const t=(e=this._scopes.find((e=>e.name===this._scope)))!==null&&e!==void 0?e:this._scopes[0];const n=e=>{this.model.selectedVariable=e};const s=fe().createElement(i.caretDownEmptyIcon.react,{stylesheet:"menuItem",tag:"span"});if((t===null||t===void 0?void 0:t.name)!=="Globals"){this.addClass("jp-debuggerVariables-local")}else{this.removeClass("jp-debuggerVariables-local")}return t?fe().createElement(fe().Fragment,null,fe().createElement($e,{key:t.name,commands:this._commands,service:this._service,data:t.variables,filter:this._filter,translator:this._translator,handleSelectVariable:n,onHoverChanged:e=>{this._hoverChanged.emit(e)},collapserIcon:s}),fe().createElement(Ue,{commands:this._commands,service:this._service,hoverChanged:this._hoverChanged,handleSelectVariable:n})):fe().createElement("div",null)}set filter(e){this._filter=e;this.update()}set scope(e){this._scope=e;this.update()}_updateScopes(e){if(He.ArrayExt.shallowEqual(this._scopes,e.scopes)){return}this._scopes=e.scopes;this.update()}}const Ue=e=>{var t;const{commands:n,service:s,translator:o,handleSelectVariable:r}=e;const a=(o!==null&&o!==void 0?o:f.nullTranslator).load("jupyterlab");const[l,d]=(0,ge.useState)(0);const[c,h]=(0,ge.useState)(null);let u=0;const p=(0,ge.useCallback)(((e,t)=>{const n=++u;if(!t.variable){if(n!==u){return}const e=t.target;if(e&&e instanceof Element&&e.closest(`.${We}`)){return}h(null)}else{h(t.variable);requestAnimationFrame((()=>{if(n!==u||!t.target){return}d(t.target.offsetTop)}))}}),[]);(0,ge.useEffect)((()=>{e.hoverChanged.connect(p);return()=>{e.hoverChanged.disconnect(p)}}),[p]);return fe().createElement("div",{className:We,style:{transform:`translateY(${l}px)`,opacity:!c||["special variables","protected variables","function variables","class variables"].includes(c.name)?0:1}},fe().createElement("button",{className:"jp-DebuggerVariables-renderVariable",disabled:!c||!s.model.hasRichVariableRendering||!n.isEnabled(Qe.CommandIDs.renderMimeVariable,{name:c.name,frameID:(t=s.model.callstack.frame)===null||t===void 0?void 0:t.id}),onClick:e=>{var t;if(!c||!r){return}e.stopPropagation();r(c);n.execute(Qe.CommandIDs.renderMimeVariable,{name:c.name,frameID:(t=s.model.callstack.frame)===null||t===void 0?void 0:t.id}).catch((e=>{console.error(`Failed to render variable ${c===null||c===void 0?void 0:c.name}`,e)}))},title:a.__("Render variable: %1",c===null||c===void 0?void 0:c.name)},fe().createElement(i.searchIcon.react,{stylesheet:"menuItem",tag:"span"})))};const $e=e=>{const{commands:t,data:n,service:i,filter:s,translator:o,handleSelectVariable:r,onHoverChanged:a,collapserIcon:l}=e;const[d,c]=(0,ge.useState)(n);(0,ge.useEffect)((()=>{c(n)}),[n]);return fe().createElement("ul",{className:"jp-DebuggerVariables-branch"},d.filter((e=>!(s||new Set).has(e.evaluateName||""))).map((e=>{const n=`${e.name}-${e.evaluateName}-${e.type}-${e.value}-${e.variablesReference}`;return fe().createElement(Ke,{key:n,commands:t,data:e,service:i,filter:s,translator:o,onSelect:r,onHoverChanged:a,collapserIcon:l})})))};function qe(e){const t=Ze(e);if(e.type==="float"&&isNaN(t)){return"NaN"}return t}const Ke=e=>{const{commands:t,data:n,service:i,filter:s,translator:o,onSelect:r,onHoverChanged:a,collapserIcon:l}=e;const[d]=(0,ge.useState)(n);const[c,h]=(0,ge.useState)();const[u,p]=(0,ge.useState)();const m=r!==null&&r!==void 0?r:()=>void 0;const g=d.variablesReference!==0||d.type==="function";const f=async e=>{if(!g){return}e.stopPropagation();const t=await i.inspectVariable(d.variablesReference);h(!c);p(t)};return fe().createElement("li",{onClick:e=>f(e),onMouseDown:e=>{e.stopPropagation();m(d)},onMouseOver:e=>{if(a){a({target:e.currentTarget,variable:d});e.stopPropagation()}},onMouseLeave:e=>{if(a){a({target:e.relatedTarget,variable:null});e.stopPropagation()}}},fe().createElement("span",{className:"jp-DebuggerVariables-collapser"+(c?" jp-mod-expanded":"")},g?fe().cloneElement(l):null),fe().createElement("span",{className:"jp-DebuggerVariables-name"},d.name),fe().createElement("span",{className:"jp-DebuggerVariables-detail"},qe(d)),c&&u&&fe().createElement($e,{key:d.name,commands:t,data:u,service:i,filter:s,translator:o,handleSelectVariable:r,onHoverChanged:a,collapserIcon:l}))};class Je extends i.PanelWithToolbar{constructor(e){super(e);const{model:t,service:n,commands:s,themeManager:o}=e;const r=e.translator||f.nullTranslator;const a=r.load("jupyterlab");this.title.label=a.__("Variables");this.toolbar.addClass("jp-DebuggerVariables-toolbar");this._tree=new Ve({model:t,service:n,commands:s,translator:r});this._table=new ae({model:t,commands:s,themeManager:o,translator:r});this._table.hide();this.toolbar.addItem("scope-switcher",new ze({translator:r,model:t,tree:this._tree,grid:this._table}));const l=()=>{if(this._table.isHidden){this._tree.hide();this._table.show();this.node.setAttribute("data-jp-table","true");h("table")}else{this._tree.show();this._table.hide();this.node.removeAttribute("data-jp-table");h("tree")}this.update()};const d=new i.ToolbarButton({icon:i.treeViewIcon,className:"jp-TreeView",onClick:l,tooltip:a.__("Tree View")});const c=new i.ToolbarButton({icon:i.tableRowsIcon,className:"jp-TableView",onClick:l,tooltip:a.__("Table View")});const h=e=>{const t="jp-ViewModeSelected";if(e==="tree"){c.removeClass(t);d.addClass(t)}else{d.removeClass(t);c.addClass(t)}};h(this._table.isHidden?"tree":"table");this.toolbar.addItem("view-VariableTreeView",d);this.toolbar.addItem("view-VariableTableView",c);this.addWidget(this._tree);this.addWidget(this._table);this.addClass("jp-DebuggerVariables")}set filter(e){this._tree.filter=e;this._table.filter=e}onResize(e){super.onResize(e);this._resizeBody(e)}_resizeBody(e){const t=e.height-this.toolbar.node.offsetHeight;this._tree.node.style.height=`${t}px`}}const Ze=e=>{var t,n;const{type:i,value:s}=e;switch(i){case"int":return parseInt(s,10);case"float":return parseFloat(s);case"bool":return s;case"str":if((n=(t=e.presentationHint)===null||t===void 0?void 0:t.attributes)===null||n===void 0?void 0:n.includes("rawString")){return s.slice(1,s.length-1)}else{return s}default:return i!==null&&i!==void 0?i:s}};class Ge extends i.SidePanel{constructor(e){const t=e.translator||f.nullTranslator;super({translator:t});this.id="jp-debugger-sidebar";this.title.icon=i.bugIcon;this.addClass("jp-DebuggerSidebar");const{callstackCommands:n,breakpointsCommands:s,editorServices:o,service:r,themeManager:a}=e;const l=r.model;this.variables=new Je({model:l.variables,commands:n.registry,service:r,themeManager:a,translator:t});this.callstack=new Ie({commands:n,model:l.callstack,translator:t});this.breakpoints=new je({service:r,commands:s,model:l.breakpoints,translator:t});this.sources=new Le({model:l.sources,service:r,editorServices:o,translator:t});this.kernelSources=new Be({model:l.kernelSources,service:r,translator:t});const d=new Ge.Header;this.header.addWidget(d);l.titleChanged.connect(((e,t)=>{d.title.label=t}));this.content.addClass("jp-DebuggerSidebar-body");this.addWidget(this.variables);this.addWidget(this.callstack);this.addWidget(this.breakpoints);this.addWidget(this.sources);this.addWidget(this.kernelSources)}}(function(e){class t extends c.Widget{constructor(){super({node:Ye.createHeader()});this.title.changed.connect((e=>{this.node.textContent=this.title.label}))}}e.Header=t})(Ge||(Ge={}));var Ye;(function(e){function t(){const e=document.createElement("h2");e.textContent="-";e.classList.add("jp-text-truncated");return e}e.createHeader=t})(Ye||(Ye={}));class Xe{constructor(e){var t,n,i;this._config=e.config;this._shell=e.shell;this._notebookTracker=(t=e.notebookTracker)!==null&&t!==void 0?t:null;this._consoleTracker=(n=e.consoleTracker)!==null&&n!==void 0?n:null;this._editorTracker=(i=e.editorTracker)!==null&&i!==void 0?i:null;this._readOnlyEditorTracker=new l.WidgetTracker({namespace:"@jupyterlab/debugger"})}find(e){return[...this._findInConsoles(e),...this._findInEditors(e),...this._findInNotebooks(e),...this._findInReadOnlyEditors(e)]}open(e){const{editorWrapper:t,label:n,caption:s}=e;const o=new l.MainAreaWidget({content:t});o.id=l.DOMUtils.createDomID();o.title.label=n;o.title.closable=true;o.title.caption=s;o.title.icon=i.textEditorIcon;this._shell.add(o,"main",{type:"Debugger Sources"});void this._readOnlyEditorTracker.add(o)}_findInNotebooks(e){if(!this._notebookTracker){return[]}const{focus:t,kernel:n,path:i,source:s}=e;const o=[];this._notebookTracker.forEach((e=>{const r=e.sessionContext;if(i!==r.path){return}const a=e.content;if(t){a.mode="command"}const l=e.content.widgets;l.forEach(((i,r)=>{const l=i.model.sharedModel.getSource();const d=this._getCodeId(l,n);if(!d){return}if(s!==d){return}if(t){a.activeCellIndex=r;if(a.activeCell){a.scrollToItem(a.activeCellIndex).catch((e=>{}))}this._shell.activateById(e.id)}o.push(Object.freeze({get:()=>i.editor,reveal:()=>a.scrollToItem(r),src:i.model.sharedModel}))}))}));return o}_findInConsoles(e){if(!this._consoleTracker){return[]}const{focus:t,kernel:n,path:i,source:s}=e;const o=[];this._consoleTracker.forEach((e=>{const r=e.sessionContext;if(i!==r.path){return}const a=e.console.cells;for(const i of a){const r=i.model.sharedModel.getSource();const a=this._getCodeId(r,n);if(!a){break}if(s!==a){break}o.push(Object.freeze({get:()=>i.editor,reveal:()=>Promise.resolve(this._shell.activateById(e.id)),src:i.model.sharedModel}));if(t){this._shell.activateById(e.id)}}}));return o}_findInEditors(e){if(!this._editorTracker){return[]}const{focus:t,kernel:n,path:i,source:s}=e;const o=[];this._editorTracker.forEach((e=>{const r=e.content;if(i!==r.context.path){return}const a=r.editor;if(!a){return}const l=a.model.sharedModel.getSource();const d=this._getCodeId(l,n);if(!d){return}if(s!==d){return}o.push(Object.freeze({get:()=>a,reveal:()=>Promise.resolve(this._shell.activateById(e.id)),src:r.model.sharedModel}));if(t){this._shell.activateById(e.id)}}));return o}_findInReadOnlyEditors(e){const{focus:t,kernel:n,source:i}=e;const s=[];this._readOnlyEditorTracker.forEach((e=>{var o;const r=(o=e.content)===null||o===void 0?void 0:o.editor;if(!r){return}const a=r.model.sharedModel.getSource();const l=this._getCodeId(a,n);if(!l){return}if(e.title.caption!==i&&i!==l){return}s.push(Object.freeze({get:()=>r,reveal:()=>Promise.resolve(this._shell.activateById(e.id)),src:r.model.sharedModel}));if(t){this._shell.activateById(e.id)}}));return s}_getCodeId(e,t){try{return this._config.getCodeId(e,t)}catch(n){return""}}}var Qe;(function(e){class t extends a{}e.Config=t;class n extends S{}e.EditorHandler=n;class s extends L{}e.Handler=s;class o extends re{}e.Model=o;class r extends g{}e.ReadOnlyEditorFactory=r;class l extends pe{}e.Service=l;class d extends me{}e.Session=d;class c extends Ge{}e.Sidebar=c;class u extends Xe{}e.Sources=u;class p extends ae{}e.VariablesGrid=p;class m extends ue{}e.VariableRenderer=m;let f;(function(e){e.debugContinue="debugger:continue";e.terminate="debugger:terminate";e.next="debugger:next";e.showPanel="debugger:show-panel";e.stepIn="debugger:stepIn";e.stepOut="debugger:stepOut";e.inspectVariable="debugger:inspect-variable";e.renderMimeVariable="debugger:render-mime-variable";e.evaluate="debugger:evaluate";e.restartDebug="debugger:restart-debug";e.pauseOnExceptions="debugger:pause-on-exceptions";e.copyToClipboard="debugger:copy-to-clipboard";e.copyToGlobals="debugger:copy-to-globals"})(f=e.CommandIDs||(e.CommandIDs={}));let v;(function(e){e.closeAllIcon=W;e.evaluateIcon=i.codeIcon;e.continueIcon=i.runIcon;e.pauseIcon=U;e.stepIntoIcon=$;e.stepOutIcon=K;e.stepOverIcon=q;e.terminateIcon=i.stopIcon;e.variableIcon=J;e.viewBreakpointIcon=Z;e.pauseOnExceptionsIcon=U})(v=e.Icons||(e.Icons={}));let _;(function(e){e.getCode=h.getCode})(_=e.Dialogs||(e.Dialogs={}))})(Qe||(Qe={}))},30311:(e,t,n)=>{"use strict";n.r(t);n.d(t,{Debugger:()=>i.q,IDebugger:()=>o,IDebuggerConfig:()=>r,IDebuggerHandler:()=>d,IDebuggerSidebar:()=>l,IDebuggerSources:()=>a});var i=n(24767);var s=n(5596);const o=new s.Token("@jupyterlab/debugger:IDebugger","A debugger user interface.");const r=new s.Token("@jupyterlab/debugger:IDebuggerConfig","A service to handle the debugger configuration.");const a=new s.Token("@jupyterlab/debugger:IDebuggerSources","A service to display sources in debug mode.");const l=new s.Token("@jupyterlab/debugger:IDebuggerSidebar","A service for the debugger sidebar.");const d=new s.Token("@jupyterlab/debugger:IDebuggerHandler","A service for handling notebook debugger.")},32938:(e,t,n)=>{"use strict";n.r(t);n.d(t,{Grid:()=>u,GridModel:()=>p});var i=n(23364);var s=n.n(i);var o=n(71372);var r=n.n(o);var a=n(85448);var l=n.n(a);var d=n(6958);var c=n.n(d);var h=n(24767);class u extends a.Panel{constructor(e){super();const{commands:t,model:n,themeManager:s}=e;this.model=n;const o=new p(e.translator);const r=new i.DataGrid;const a=new m.MouseHandler;a.doubleClicked.connect(((e,n)=>t.execute(h.q.CommandIDs.inspectVariable,{variableReference:o.getVariableReference(n.row),name:o.getVariableName(n.row)})));a.selected.connect(((e,t)=>{const{row:n}=t;this.model.selectedVariable={name:o.getVariableName(n),value:o.data("body",n,1),type:o.data("body",n,2),variablesReference:o.getVariableReference(n)}}));r.dataModel=o;r.keyHandler=new i.BasicKeyHandler;r.mouseHandler=a;r.selectionModel=new i.BasicSelectionModel({dataModel:o});r.stretchLastColumn=true;r.node.style.height="100%";this._grid=r;if(s){s.themeChanged.connect(this._updateStyles,this)}this.addWidget(r)}set filter(e){this._grid.dataModel.filter=e;this.update()}set scope(e){this._grid.dataModel.scope=e;this.update()}get dataModel(){return this._grid.dataModel}onAfterAttach(e){super.onAfterAttach(e);this._updateStyles()}_updateStyles(){const{style:e,textRenderer:t}=m.computeStyle();this._grid.cellRenderers.update({},t);this._grid.style=e}}class p extends i.DataModel{constructor(e){super();this._filter=new Set;this._scope="";this._data={name:[],type:[],value:[],variablesReference:[]};this._trans=(e||d.nullTranslator).load("jupyterlab")}get filter(){return this._filter}set filter(e){this._filter=e}get scope(){return this._scope}set scope(e){this._scope=e}rowCount(e){return e==="body"?this._data.name.length:1}columnCount(e){return e==="body"?2:1}data(e,t,n){if(e==="row-header"){return this._data.name[t]}if(e==="column-header"){return n===1?this._trans.__("Value"):this._trans.__("Type")}if(e==="corner-header"){return this._trans.__("Name")}return n===1?this._data.value[t]:this._data.type[t]}getVariableReference(e){return this._data.variablesReference[e]}getVariableName(e){return this._data.name[e]}setData(e){var t,n;this._clearData();this.emitChanged({type:"model-reset",region:"body"});const i=(t=e.find((e=>e.name===this._scope)))!==null&&t!==void 0?t:e[0];const s=(n=i===null||i===void 0?void 0:i.variables)!==null&&n!==void 0?n:[];const o=s.filter((e=>e.name&&!this._filter.has(e.name)));o.forEach(((e,t)=>{var n;this._data.name[t]=e.name;this._data.type[t]=(n=e.type)!==null&&n!==void 0?n:"";this._data.value[t]=e.value;this._data.variablesReference[t]=e.variablesReference}));this.emitChanged({type:"rows-inserted",region:"body",index:1,span:o.length})}_clearData(){this._data={name:[],type:[],value:[],variablesReference:[]}}}var m;(function(e){function t(){const e=document.createElement("div");e.className="jp-DebuggerVariables-colorPalette";e.innerHTML=`\n \n \n \n \n \n \n \n `;return e}function n(){const e=t();document.body.appendChild(e);let n;n=e.querySelector(".jp-mod-void");const s=getComputedStyle(n).color;n=e.querySelector(".jp-mod-background");const o=getComputedStyle(n).color;n=e.querySelector(".jp-mod-header-background");const r=getComputedStyle(n).color;n=e.querySelector(".jp-mod-grid-line");const a=getComputedStyle(n).color;n=e.querySelector(".jp-mod-header-grid-line");const l=getComputedStyle(n).color;n=e.querySelector(".jp-mod-selection");const d=getComputedStyle(n).color;n=e.querySelector(".jp-mod-text");const c=getComputedStyle(n).color;document.body.removeChild(e);return{style:{voidColor:s,backgroundColor:o,headerBackgroundColor:r,gridLineColor:a,headerGridLineColor:l,rowBackgroundColor:e=>e%2===0?s:o,selectionFillColor:d},textRenderer:new i.TextRenderer({font:"12px sans-serif",textColor:c,backgroundColor:"",verticalAlignment:"center",horizontalAlignment:"left"})}}e.computeStyle=n;class s extends i.BasicMouseHandler{constructor(){super(...arguments);this._doubleClicked=new o.Signal(this);this._selected=new o.Signal(this)}get doubleClicked(){return this._doubleClicked}get selected(){return this._selected}dispose(){if(this.isDisposed){return}o.Signal.disconnectSender(this);super.dispose()}onMouseDoubleClick(e,t){const n=e.hitTest(t.clientX,t.clientY);this._doubleClicked.emit(n)}onMouseDown(e,t){let{clientX:n,clientY:i}=t;let s=e.hitTest(n,i);this._selected.emit(s);super.onMouseDown(e,t)}onContextMenu(e,t){let{clientX:n,clientY:i}=t;let s=e.hitTest(n,i);this._selected.emit(s)}}e.MouseHandler=s})(m||(m={}))},87144:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ToolbarItems:()=>H,default:()=>z,downloadPlugin:()=>O,openBrowserTabPlugin:()=>B,pathStatusPlugin:()=>N,savingStatusPlugin:()=>R});var i=n(74574);var s=n.n(i);var o=n(10759);var r=n.n(o);var a=n(20501);var l=n.n(a);var d=n(25504);var c=n.n(d);var h=n(95811);var u=n.n(h);var p=n(85176);var m=n.n(p);var g=n(6958);var f=n.n(g);var v=n(4148);var _=n.n(v);var b=n(58740);var y=n.n(b);var w=n(5596);var C=n.n(w);var x=n(71372);var S=n.n(x);var k=n(85448);var j=n.n(k);var M=n(28416);var E=n.n(M);var I;(function(e){e.clone="docmanager:clone";e.deleteFile="docmanager:delete-file";e.newUntitled="docmanager:new-untitled";e.open="docmanager:open";e.openBrowserTab="docmanager:open-browser-tab";e.reload="docmanager:reload";e.rename="docmanager:rename";e.del="docmanager:delete";e.duplicate="docmanager:duplicate";e.restoreCheckpoint="docmanager:restore-checkpoint";e.save="docmanager:save";e.saveAll="docmanager:save-all";e.saveAs="docmanager:save-as";e.download="docmanager:download";e.toggleAutosave="docmanager:toggle-autosave";e.showInFileBrowser="docmanager:show-in-file-browser"})(I||(I={}));const T="@jupyterlab/docmanager-extension:plugin";const D={id:"@jupyterlab/docmanager-extension:opener",description:"Provides the widget opener.",autoStart:true,provides:d.IDocumentWidgetOpener,activate:e=>{const{shell:t}=e;return new class{constructor(){this._opened=new x.Signal(this)}open(e,n){if(!e.id){e.id=`document-manager-${++K.id}`}e.title.dataset={type:"document-title",...e.title.dataset};if(!e.isAttached){t.add(e,"main",n||{})}t.activateById(e.id);this._opened.emit(e)}get opened(){return this._opened}}}};const L={id:"@jupyterlab/docmanager-extension:contexts",description:"Adds the handling of opened documents dirty state.",autoStart:true,requires:[d.IDocumentManager,d.IDocumentWidgetOpener],optional:[i.ILabStatus],activate:(e,t,n,i)=>{const s=new WeakSet;n.opened.connect(((e,n)=>{const o=t.contextForWidget(n);if(o&&!s.has(o)){if(i){q(i,o)}s.add(o)}}))}};const P={id:"@jupyterlab/docmanager-extension:manager",description:"Provides the document manager.",provides:d.IDocumentManager,requires:[d.IDocumentWidgetOpener],optional:[g.ITranslator,i.ILabStatus,o.ISessionContextDialogs,i.JupyterLab.IInfo],activate:(e,t,n,i,s,r)=>{var a;const{serviceManager:l,docRegistry:c}=e;const h=n!==null&&n!==void 0?n:g.nullTranslator;const u=s!==null&&s!==void 0?s:new o.SessionContextDialogs({translator:h});const p=e.restored.then((()=>void 0));const m=new d.DocumentManager({registry:c,manager:l,opener:t,when:p,setBusy:(a=i&&(()=>i.setBusy()))!==null&&a!==void 0?a:undefined,sessionDialogs:u,translator:h!==null&&h!==void 0?h:g.nullTranslator,isConnectedCallback:()=>{if(r){return r.isConnected}return true}});return m}};const A={id:T,description:"Adds commands and settings to the document manager.",autoStart:true,requires:[d.IDocumentManager,d.IDocumentWidgetOpener,h.ISettingRegistry],optional:[g.ITranslator,o.ICommandPalette,i.ILabShell],activate:(e,t,n,i,s,o,r)=>{s=s!==null&&s!==void 0?s:g.nullTranslator;const a=s.load("jupyterlab");const l=e.docRegistry;U(e,t,n,i,s,r,o);const d=n=>{const i=n.get("autosave").composite;t.autosave=i===true||i===false?i:true;e.commands.notifyCommandChanged(I.toggleAutosave);const s=n.get("confirmClosingDocument").composite;t.confirmClosingDocument=s!==null&&s!==void 0?s:true;const o=n.get("autosaveInterval").composite;t.autosaveInterval=o||120;const r=n.get("lastModifiedCheckMargin").composite;t.lastModifiedCheckMargin=r||500;const a=n.get("renameUntitledFileOnSave").composite;t.renameUntitledFileOnSave=a!==null&&a!==void 0?a:true;const d=n.get("defaultViewers").composite;const c={};Object.keys(d).forEach((e=>{if(!l.getFileType(e)){console.warn(`File Type ${e} not found`);return}if(!l.getWidgetFactory(d[e])){console.warn(`Document viewer ${d[e]} not found`)}c[e]=d[e]}));for(const e of l.fileTypes()){try{l.setDefaultWidgetFactory(e.name,c[e.name])}catch(h){console.warn(`Failed to set default viewer ${c[e.name]} for file type ${e.name}`)}}};Promise.all([i.load(T),e.restored]).then((([e])=>{e.changed.connect(d);d(e);const n=(t,n)=>{if(["autosave","autosaveInterval","confirmClosingDocument","lastModifiedCheckMargin","renameUntitledFileOnSave"].includes(n.name)&&e.get(n.name).composite!==n.newValue){e.set(n.name,n.newValue).catch((e=>{console.error(`Failed to set the setting '${n.name}':\n${e}`)}))}};t.stateChanged.connect(n)})).catch((e=>{console.error(e.message)}));i.transform(T,{fetch:e=>{const t=Array.from(l.fileTypes()).map((e=>e.name)).join(" \n");const n=Array.from(l.widgetFactories()).map((e=>e.name)).join(" \n");const i=a.__(`Overrides for the default viewers for file types.\nSpecify a mapping from file type name to document viewer name, for example:\n\ndefaultViewers: {\n markdown: "Markdown Preview"\n}\n\nIf you specify non-existent file types or viewers, or if a viewer cannot\nopen a given file type, the override will not function.\n\nAvailable viewers:\n%1\n\nAvailable file types:\n%2`,n,t);const s=w.JSONExt.deepCopy(e.schema);s.properties.defaultViewers.description=i;return{...e,schema:s}}});l.changed.connect((()=>i.load(T,true)))}};const R={id:"@jupyterlab/docmanager-extension:saving-status",description:"Adds a saving status indicator.",autoStart:true,requires:[d.IDocumentManager,i.ILabShell],optional:[g.ITranslator,p.IStatusBar],activate:(e,t,n,i,s)=>{if(!s){return}const o=new d.SavingStatus({docManager:t,translator:i!==null&&i!==void 0?i:g.nullTranslator});o.model.widget=n.currentWidget;n.currentChanged.connect((()=>{o.model.widget=n.currentWidget}));s.registerStatusItem(R.id,{item:o,align:"middle",isActive:()=>o.model!==null&&o.model.status!==null,activeStateChanged:o.model.stateChanged})}};const N={id:"@jupyterlab/docmanager-extension:path-status",description:"Adds a file path indicator in the status bar.",autoStart:true,requires:[d.IDocumentManager,i.ILabShell],optional:[p.IStatusBar],activate:(e,t,n,i)=>{if(!i){return}const s=new d.PathStatus({docManager:t});s.model.widget=n.currentWidget;n.currentChanged.connect((()=>{s.model.widget=n.currentWidget}));i.registerStatusItem(N.id,{item:s,align:"right",rank:0})}};const O={id:"@jupyterlab/docmanager-extension:download",description:"Adds command to download files.",autoStart:true,requires:[d.IDocumentManager],optional:[g.ITranslator,o.ICommandPalette],activate:(e,t,n,i)=>{const s=(n!==null&&n!==void 0?n:g.nullTranslator).load("jupyterlab");const{commands:r,shell:a}=e;const l=()=>{const{currentWidget:e}=a;return!!(e&&t.contextForWidget(e))};r.addCommand(I.download,{label:s.__("Download"),caption:s.__("Download the file to your computer"),isEnabled:l,execute:()=>{if(l()){const e=t.contextForWidget(a.currentWidget);if(!e){return(0,o.showDialog)({title:s.__("Cannot Download"),body:s.__("No context found for current widget!"),buttons:[o.Dialog.okButton()]})}return e.download()}}});const d=s.__("File Operations");if(i){i.addItem({command:I.download,category:d})}}};const B={id:"@jupyterlab/docmanager-extension:open-browser-tab",description:"Adds command to open a browser tab.",autoStart:true,requires:[d.IDocumentManager],optional:[g.ITranslator],activate:(e,t,n)=>{const i=(n!==null&&n!==void 0?n:g.nullTranslator).load("jupyterlab");const{commands:s}=e;s.addCommand(I.openBrowserTab,{execute:e=>{const n=typeof e["path"]==="undefined"?"":e["path"];if(!n){return}return t.services.contents.getDownloadUrl(n).then((e=>{const t=window.open();if(t){t.opener=null;t.location.href=e}else{throw new Error("Failed to open new browser tab.")}}))},iconClass:e=>e["icon"]||"",label:()=>i.__("Open in New Browser Tab")})}};const F=[P,A,L,N,R,O,B,D];const z=F;var H;(function(e){function t(e,t){return(0,o.addCommandToolbarButtonClass)(o.ReactWidget.create(M.createElement(o.UseSignal,{signal:t},(()=>M.createElement(o.CommandToolbarButtonComponent,{commands:e,id:I.save,label:"",args:{toolbar:true}})))))}e.createSaveButton=t})(H||(H={}));class W extends k.Widget{constructor(e,t,n="notebook"){super({node:K.createRevertConfirmNode(e,n,t)})}}function V(e,t){if(!e){return"File"}const n=t.contextForWidget(e);if(!n){return""}const i=t.registry.getFileTypesForPath(n.path);return i.length&&i[0].displayName?i[0].displayName:"File"}function U(e,t,n,i,s,r,l){const d=s.load("jupyterlab");const{commands:c,shell:h}=e;const u=d.__("File Operations");const p=()=>{const{currentWidget:e}=h;return!!(e&&t.contextForWidget(e))};const m=()=>{var e;const{currentWidget:n}=h;if(!n){return false}const i=t.contextForWidget(n);return!!((e=i===null||i===void 0?void 0:i.contentsModel)===null||e===void 0?void 0:e.writable)};if(r){$(e,t,r,n,s)}c.addCommand(I.deleteFile,{label:()=>`Delete ${V(h.currentWidget,t)}`,execute:e=>{const n=typeof e["path"]==="undefined"?"":e["path"];if(!n){const e=I.deleteFile;throw new Error(`A non-empty path is required for ${e}.`)}return t.deleteFile(n)}});c.addCommand(I.newUntitled,{execute:e=>{const n=e["error"]||d.__("Error");const i=typeof e["path"]==="undefined"?"":e["path"];const s={type:e["type"],path:i};if(e["type"]==="file"){s.ext=e["ext"]||".txt"}return t.services.contents.newUntitled(s).catch((e=>(0,o.showErrorMessage)(n,e)))},label:e=>e["label"]||`New ${e["type"]}`});c.addCommand(I.open,{execute:e=>{const n=typeof e["path"]==="undefined"?"":e["path"];const i=e["factory"]||void 0;const s=e===null||e===void 0?void 0:e.kernel;const o=e["options"]||void 0;return t.services.contents.get(n,{content:false}).then((()=>t.openOrReveal(n,i,s,o)))},iconClass:e=>e["icon"]||"",label:e=>{var t;return(t=e["label"]||e["factory"])!==null&&t!==void 0?t:d.__("Open the provided `path`.")},mnemonic:e=>e["mnemonic"]||-1});c.addCommand(I.reload,{label:()=>d.__("Reload %1 from Disk",V(h.currentWidget,t)),caption:d.__("Reload contents from disk"),isEnabled:p,execute:()=>{if(!p()){return}const e=t.contextForWidget(h.currentWidget);const n=V(h.currentWidget,t);if(!e){return(0,o.showDialog)({title:d.__("Cannot Reload"),body:d.__("No context found for current widget!"),buttons:[o.Dialog.okButton()]})}if(e.model.dirty){return(0,o.showDialog)({title:d.__("Reload %1 from Disk",n),body:d.__("Are you sure you want to reload the %1 from the disk?",n),buttons:[o.Dialog.cancelButton(),o.Dialog.warnButton({label:d.__("Reload")})]}).then((t=>{if(t.button.accept&&!e.isDisposed){return e.revert()}}))}else{if(!e.isDisposed){return e.revert()}}}});c.addCommand(I.restoreCheckpoint,{label:()=>d.__("Revert %1 to Checkpoint…",V(h.currentWidget,t)),caption:d.__("Revert contents to previous checkpoint"),isEnabled:p,execute:()=>{if(!p()){return}const e=t.contextForWidget(h.currentWidget);if(!e){return(0,o.showDialog)({title:d.__("Cannot Revert"),body:d.__("No context found for current widget!"),buttons:[o.Dialog.okButton()]})}return e.listCheckpoints().then((async n=>{const i=V(h.currentWidget,t);if(n.length<1){await(0,o.showErrorMessage)(d.__("No checkpoints"),d.__("No checkpoints are available for this %1.",i));return}const s=n.length===1?n[0]:await K.getTargetCheckpoint(n.reverse(),d);if(!s){return}return(0,o.showDialog)({title:d.__("Revert %1 to checkpoint",i),body:new W(s,d,i),buttons:[o.Dialog.cancelButton(),o.Dialog.warnButton({label:d.__("Revert"),ariaLabel:d.__("Revert to Checkpoint")})]}).then((t=>{if(e.isDisposed){return}if(t.button.accept){if(e.model.readOnly){return e.revert()}return e.restoreCheckpoint(s.id).then((()=>e.revert()))}}))}))}});const g=()=>{if(h.currentWidget){const e=t.contextForWidget(h.currentWidget);if(e===null||e===void 0?void 0:e.model.collaborative){return d.__("In collaborative mode, the document is saved automatically after every change")}}return d.__("Save and create checkpoint")};const f=new WeakSet;c.addCommand(I.save,{label:()=>d.__("Save %1",V(h.currentWidget,t)),caption:g,icon:e=>e.toolbar?v.saveIcon:undefined,isEnabled:m,execute:async()=>{var e,n,s;if(p()){const l=h.currentWidget;const c=t.contextForWidget(l);if(!c){return(0,o.showDialog)({title:d.__("Cannot Save"),body:d.__("No context found for current widget!"),buttons:[o.Dialog.okButton()]})}else{if(f.has(c)){return}if(c.model.readOnly){return(0,o.showDialog)({title:d.__("Cannot Save"),body:d.__("Document is read-only"),buttons:[o.Dialog.okButton()]})}f.add(c);const h=a.PathExt.basename((n=(e=c.contentsModel)===null||e===void 0?void 0:e.path)!==null&&n!==void 0?n:"");let u=h;if(t.renameUntitledFileOnSave&&l.isUntitled===true){const e=await o.InputDialog.getText({title:d.__("Rename file"),okLabel:d.__("Rename"),placeholder:d.__("File name"),text:h,selectionRange:h.length-a.PathExt.extname(h).length,checkbox:{label:d.__("Do not ask me again."),caption:d.__("If checked, you will not be asked to rename future untitled files when saving them.")}});if(e.button.accept){u=(s=e.value)!==null&&s!==void 0?s:h;l.isUntitled=false;if(typeof e.isChecked==="boolean"){const t=(await i.get(T,"renameUntitledFileOnSave")).composite;if(e.isChecked===t){i.set(T,"renameUntitledFileOnSave",!e.isChecked).catch((e=>{console.error(`Fail to set 'renameUntitledFileOnSave:\n${e}`)}))}}}}try{await c.save();if(!(l===null||l===void 0?void 0:l.isDisposed)){return c.createCheckpoint()}}catch(r){if(r.name==="ModalCancelError"){return}throw r}finally{f.delete(c);if(u!==h){await c.rename(u)}}}}}});c.addCommand(I.saveAll,{label:()=>d.__("Save All"),caption:d.__("Save all open documents"),isEnabled:()=>(0,b.some)(h.widgets("main"),(e=>{var n,i,s;return(s=(i=(n=t.contextForWidget(e))===null||n===void 0?void 0:n.contentsModel)===null||i===void 0?void 0:i.writable)!==null&&s!==void 0?s:false})),execute:()=>{const e=[];const n=new Set;for(const i of h.widgets("main")){const s=t.contextForWidget(i);if(s&&!s.model.readOnly&&!n.has(s.path)){n.add(s.path);e.push(s.save())}}return Promise.all(e)}});c.addCommand(I.saveAs,{label:()=>d.__("Save %1 As…",V(h.currentWidget,t)),caption:d.__("Save with new path"),isEnabled:p,execute:()=>{if(p()){const e=t.contextForWidget(h.currentWidget);if(!e){return(0,o.showDialog)({title:d.__("Cannot Save"),body:d.__("No context found for current widget!"),buttons:[o.Dialog.okButton()]})}const n=(n,i)=>{if(i.type==="save"&&i.newValue&&i.newValue.path!==e.path){void t.closeFile(e.path);void c.execute(I.open,{path:i.newValue.path})}};t.services.contents.fileChanged.connect(n);e.saveAs().finally((()=>t.services.contents.fileChanged.disconnect(n)))}}});c.addCommand(I.toggleAutosave,{label:d.__("Autosave Documents"),isToggled:()=>t.autosave,execute:()=>{const e=!t.autosave;const n="autosave";return i.set(T,n,e).catch((e=>{console.error(`Failed to set ${T}:${n} - ${e.message}`)}))}});if(l){[I.reload,I.restoreCheckpoint,I.save,I.saveAs,I.toggleAutosave,I.duplicate].forEach((e=>{l.addItem({command:e,category:u})}))}}function $(e,t,n,i,s){const r=s.load("jupyterlab");const{commands:a}=e;const l=()=>{var i;const s=/[Pp]ath:\s?(.*)\n?/;const o=e=>{var t;return!!((t=e["title"])===null||t===void 0?void 0:t.match(s))};const r=e.contextMenuHitTest(o);const a=r===null||r===void 0?void 0:r["title"].match(s);return(i=a&&t.findWidget(a[1],null))!==null&&i!==void 0?i:n.currentWidget};const c=()=>{const{currentWidget:e}=n;return!!(e&&t.contextForWidget(e))};a.addCommand(I.clone,{label:()=>r.__("New View for %1",V(l(),t)),isEnabled:c,execute:e=>{const n=l();const s=e["options"]||{mode:"split-right"};if(!n){return}const o=t.cloneWidget(n);if(o){i.open(o,s)}}});a.addCommand(I.rename,{label:()=>{let e=V(l(),t);if(e){e=" "+e}return r.__("Rename%1…",e)},isEnabled:c,execute:()=>{if(c()){const e=t.contextForWidget(l());return(0,d.renameDialog)(t,e)}}});a.addCommand(I.duplicate,{label:()=>r.__("Duplicate %1",V(l(),t)),isEnabled:c,execute:()=>{if(c()){const e=t.contextForWidget(l());if(!e){return}return t.duplicate(e.path)}}});a.addCommand(I.del,{label:()=>r.__("Delete %1",V(l(),t)),isEnabled:c,execute:async()=>{if(c()){const n=t.contextForWidget(l());if(!n){return}const i=await(0,o.showDialog)({title:r.__("Delete"),body:r.__("Are you sure you want to delete %1",n.path),buttons:[o.Dialog.cancelButton(),o.Dialog.warnButton({label:r.__("Delete")})]});if(i.button.accept){await e.commands.execute("docmanager:delete-file",{path:n.path})}}}});a.addCommand(I.showInFileBrowser,{label:()=>r.__("Show in File Browser"),isEnabled:c,execute:async()=>{const e=l();const n=e&&t.contextForWidget(e);if(!n){return}await a.execute("filebrowser:activate",{path:n.path});await a.execute("filebrowser:go-to-path",{path:n.path})}})}function q(e,t){let n=null;const i=(t,i)=>{if(i.name==="dirty"){if(i.newValue===true){if(!n){n=e.setDirty()}}else if(n){n.dispose();n=null}}};void t.ready.then((()=>{t.model.stateChanged.connect(i);if(t.model.dirty){n=e.setDirty()}}));t.disposed.connect((()=>{if(n){n.dispose()}}))}var K;(function(e){e.id=0;function t(e,t,n){const i=document.createElement("div");const s=document.createElement("p");const o=document.createTextNode(n.__("Are you sure you want to revert the %1 to checkpoint? ",t));const r=document.createElement("strong");r.textContent=n.__("This cannot be undone.");s.appendChild(o);s.appendChild(r);const l=document.createElement("p");const d=document.createTextNode(n.__("The checkpoint was last updated at: "));const c=document.createElement("p");const h=new Date(e.last_modified);c.style.textAlign="center";c.textContent=a.Time.format(h)+" ("+a.Time.formatHuman(h)+")";l.appendChild(d);l.appendChild(c);i.appendChild(s);i.appendChild(l);return i}e.createRevertConfirmNode=t;async function n(e,t){const n=".";const i=e.map(((e,t)=>{const i=a.Time.format(e.last_modified);const s=a.Time.formatHuman(e.last_modified);return`${t}${n} ${i} (${s})`}));const s=(await o.InputDialog.getItem({items:i,title:t.__("Choose a checkpoint")})).value;if(!s){return}const r=s.split(n,1)[0];return e[parseInt(r,10)]}e.getTargetCheckpoint=n})(K||(K={}))},38710:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(98328);var r=n(79536);var a=n(94683);var l=n(90516);var d=n(82401)},69993:(e,t,n)=>{"use strict";n.r(t);n.d(t,{DocumentManager:()=>j,DocumentWidgetManager:()=>S,IDocumentManager:()=>O,IDocumentWidgetOpener:()=>B,PathStatus:()=>P,SaveHandler:()=>y,SavingStatus:()=>N,isValidFileName:()=>u,renameDialog:()=>d,renameFile:()=>c,shouldOverwrite:()=>h});var i=n(10759);var s=n(20501);var o=n(6958);var r=n(85448);const a="jp-FileDialog";const l="jp-new-name-title";function d(e,t,n){n=n||o.nullTranslator;const s=n.load("jupyterlab");const r=t.localPath.split("/");const a=r.pop()||t.localPath;return(0,i.showDialog)({title:s.__("Rename File"),body:new p(a),focusNodeSelector:"input",buttons:[i.Dialog.cancelButton(),i.Dialog.okButton({label:s.__("Rename"),ariaLabel:s.__("Rename File")})]}).then((e=>{if(!e.value){return null}if(!u(e.value)){void(0,i.showErrorMessage)(s.__("Rename Error"),Error(s.__('"%1" is not a valid name for a file. Names must have nonzero length, and cannot include "/", "\\", or ":"',e.value)));return null}return t.rename(e.value)}))}function c(e,t,n){return e.rename(t,n).catch((i=>{if(i.response.status!==409){throw i}return h(n).then((i=>{if(i){return e.overwrite(t,n)}return Promise.reject("File not renamed")}))}))}function h(e,t){t=t||o.nullTranslator;const n=t.load("jupyterlab");const s={title:n.__("Overwrite file?"),body:n.__('"%1" already exists, overwrite?',e),buttons:[i.Dialog.cancelButton(),i.Dialog.warnButton({label:n.__("Overwrite"),ariaLabel:n.__("Overwrite Existing File")})]};return(0,i.showDialog)(s).then((e=>Promise.resolve(e.button.accept)))}function u(e){const t=/[\/\\:]/;return e.length>0&&!t.test(e)}class p extends r.Widget{constructor(e){super({node:m.createRenameNode(e)});this.addClass(a);const t=s.PathExt.extname(e);const n=this.inputNode.value=s.PathExt.basename(e);this.inputNode.setSelectionRange(0,n.length-t.length)}get inputNode(){return this.node.getElementsByTagName("input")[0]}getValue(){return this.inputNode.value}}var m;(function(e){function t(e,t){t=t||o.nullTranslator;const n=t.load("jupyterlab");const i=document.createElement("div");const s=document.createElement("label");s.textContent=n.__("File Path");const r=document.createElement("span");r.textContent=e;const a=document.createElement("label");a.textContent=n.__("New Name");a.className=l;const d=document.createElement("input");i.appendChild(s);i.appendChild(r);i.appendChild(a);i.appendChild(d);return i}e.createRenameNode=t})(m||(m={}));var g=n(12542);var f=n(58740);var v=n(5596);var _=n(75379);var b=n(71372);class y{constructor(e){this._autosaveTimer=-1;this._minInterval=-1;this._interval=-1;this._isActive=false;this._inDialog=false;this._isDisposed=false;this._multiplier=10;this._context=e.context;this._isConnectedCallback=e.isConnectedCallback||(()=>true);const t=e.saveInterval||120;this._minInterval=t*1e3;this._interval=this._minInterval;this._context.fileChanged.connect(this._setTimer,this);this._context.disposed.connect(this.dispose,this)}get saveInterval(){return this._interval/1e3}set saveInterval(e){this._minInterval=this._interval=e*1e3;if(this._isActive){this._setTimer()}}get isActive(){return this._isActive}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;clearTimeout(this._autosaveTimer);b.Signal.clearData(this)}start(){this._isActive=true;this._setTimer()}stop(){this._isActive=false;clearTimeout(this._autosaveTimer)}_setTimer(){clearTimeout(this._autosaveTimer);if(!this._isActive){return}this._autosaveTimer=window.setTimeout((()=>{if(this._isConnectedCallback()){this._save()}}),this._interval)}_save(){const e=this._context;this._setTimer();if(!e){return}const t=e.contentsModel&&e.contentsModel.writable;if(!t||!e.model.dirty||this._inDialog){return}const n=(new Date).getTime();e.save().then((()=>{if(this.isDisposed){return}const e=(new Date).getTime()-n;this._interval=Math.max(this._multiplier*e,this._minInterval);this._setTimer()})).catch((e=>{const{name:t}=e;if(t==="ModalCancelError"||t==="ModalDuplicateError"){return}console.error("Error in Auto-Save",e.message)}))}}var w=n(26512);var C=n(28821);const x="jp-Document";class S{constructor(e){this._activateRequested=new b.Signal(this);this._confirmClosingTab=false;this._isDisposed=false;this._stateChanged=new b.Signal(this);this._registry=e.registry;this.translator=e.translator||o.nullTranslator}get activateRequested(){return this._activateRequested}get confirmClosingDocument(){return this._confirmClosingTab}set confirmClosingDocument(e){if(this._confirmClosingTab!==e){const t=this._confirmClosingTab;this._confirmClosingTab=e;this._stateChanged.emit({name:"confirmClosingDocument",oldValue:t,newValue:e})}}get stateChanged(){return this._stateChanged}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;b.Signal.disconnectReceiver(this)}createWidget(e,t){const n=e.createNew(t);this._initializeWidget(n,e,t);return n}_initializeWidget(e,t,n){k.factoryProperty.set(e,t);const i=new w.DisposableSet;for(const s of this._registry.widgetExtensions(t.name)){const t=s.createNew(e,n);if(t){i.add(t)}}k.disposablesProperty.set(e,i);e.disposed.connect(this._onWidgetDisposed,this);this.adoptWidget(n,e);n.fileChanged.connect(this._onFileChanged,this);n.pathChanged.connect(this._onPathChanged,this);void n.ready.then((()=>{void this.setCaption(e)}))}adoptWidget(e,t){const n=k.widgetsProperty.get(e);n.push(t);C.MessageLoop.installMessageHook(t,this);t.addClass(x);t.title.closable=true;t.disposed.connect(this._widgetDisposed,this);k.contextProperty.set(t,e)}findWidget(e,t){const n=k.widgetsProperty.get(e);if(!n){return undefined}return(0,f.find)(n,(e=>{const n=k.factoryProperty.get(e);if(!n){return false}return n.name===t}))}contextForWidget(e){return k.contextProperty.get(e)}cloneWidget(e){const t=k.contextProperty.get(e);if(!t){return undefined}const n=k.factoryProperty.get(e);if(!n){return undefined}const i=n.createNew(t,e);this._initializeWidget(i,n,t);return i}closeWidgets(e){const t=k.widgetsProperty.get(e);return Promise.all(t.map((e=>this.onClose(e)))).then((()=>undefined))}deleteWidgets(e){const t=k.widgetsProperty.get(e);return Promise.all(t.map((e=>this.onDelete(e)))).then((()=>undefined))}messageHook(e,t){switch(t.type){case"close-request":void this.onClose(e);return false;case"activate-request":{const t=this.contextForWidget(e);if(t){this._activateRequested.emit(t.path)}break}default:break}return true}async setCaption(e){const t=this.translator.load("jupyterlab");const n=k.contextProperty.get(e);if(!n){return}const i=n.contentsModel;if(!i){e.title.caption="";return}return n.listCheckpoints().then((o=>{if(e.isDisposed){return}const r=o[o.length-1];const a=r?s.Time.format(r.last_modified):"None";let l=t.__("Name: %1\nPath: %2\n",i.name,i.path);if(n.model.readOnly){l+=t.__("Read-only")}else{l+=t.__("Last Saved: %1\n",s.Time.format(i.last_modified))+t.__("Last Checkpoint: %1",a)}e.title.caption=l}))}async onClose(e){var t;const[n,i]=await this._maybeClose(e,this.translator);if(e.isDisposed){return true}if(n){if(!i){const n=k.contextProperty.get(e);if(!n){return true}if((t=n.contentsModel)===null||t===void 0?void 0:t.writable){await n.save()}else{await n.saveAs()}}if(e.isDisposed){return true}e.dispose()}return n}onDelete(e){e.dispose();return Promise.resolve(void 0)}async _maybeClose(e,t){var n,s;t=t||o.nullTranslator;const r=t.load("jupyterlab");const a=k.contextProperty.get(e);if(!a){return Promise.resolve([true,true])}let l=k.widgetsProperty.get(a);if(!l){return Promise.resolve([true,true])}l=l.filter((e=>{const t=k.factoryProperty.get(e);if(!t){return false}return t.readOnly===false}));const d=e.title.label;const c=k.factoryProperty.get(e);const h=a.model.dirty&&l.length<=1&&!((n=c===null||c===void 0?void 0:c.readOnly)!==null&&n!==void 0?n:true);if(this.confirmClosingDocument){const e=[i.Dialog.cancelButton(),i.Dialog.okButton({label:h?r.__("Close and save"):r.__("Close"),ariaLabel:h?r.__("Close and save Document"):r.__("Close Document")})];if(h){e.splice(1,0,i.Dialog.warnButton({label:r.__("Close without saving"),ariaLabel:r.__("Close Document without saving")}))}const t=await(0,i.showDialog)({title:r.__("Confirmation"),body:r.__('Please confirm you want to close "%1".',d),checkbox:h?null:{label:r.__("Do not ask me again."),caption:r.__("If checked, no confirmation to close a document will be asked in the future.")},buttons:e});if(t.isChecked){this.confirmClosingDocument=false}return Promise.resolve([t.button.accept,h?t.button.displayType==="warn":true])}else{if(!h){return Promise.resolve([true,true])}const e=((s=a.contentsModel)===null||s===void 0?void 0:s.writable)?r.__("Save"):r.__("Save as");const t=await(0,i.showDialog)({title:r.__("Save your work"),body:r.__('Save changes in "%1" before closing?',d),buttons:[i.Dialog.cancelButton(),i.Dialog.warnButton({label:r.__("Discard"),ariaLabel:r.__("Discard changes to file")}),i.Dialog.okButton({label:e})]});return[t.button.accept,t.button.displayType==="warn"]}}_widgetDisposed(e){const t=k.contextProperty.get(e);if(!t){return}const n=k.widgetsProperty.get(t);if(!n){return}f.ArrayExt.removeFirstOf(n,e);if(!n.length){t.dispose()}}_onWidgetDisposed(e){const t=k.disposablesProperty.get(e);t.dispose()}_onFileChanged(e){const t=k.widgetsProperty.get(e);for(const n of t){void this.setCaption(n)}}_onPathChanged(e){const t=k.widgetsProperty.get(e);for(const n of t){void this.setCaption(n)}}}var k;(function(e){e.contextProperty=new _.AttachedProperty({name:"context",create:()=>undefined});e.factoryProperty=new _.AttachedProperty({name:"factory",create:()=>undefined});e.widgetsProperty=new _.AttachedProperty({name:"widgets",create:()=>[]});e.disposablesProperty=new _.AttachedProperty({name:"disposables",create:()=>new w.DisposableSet})})(k||(k={}));class j{constructor(e){var t;this._activateRequested=new b.Signal(this);this._contexts=[];this._isDisposed=false;this._autosave=true;this._autosaveInterval=120;this._lastModifiedCheckMargin=500;this._renameUntitledFileOnSave=true;this._stateChanged=new b.Signal(this);this.translator=e.translator||o.nullTranslator;this.registry=e.registry;this.services=e.manager;this._dialogs=(t=e.sessionDialogs)!==null&&t!==void 0?t:new i.SessionContextDialogs({translator:e.translator});this._isConnectedCallback=e.isConnectedCallback||(()=>true);this._opener=e.opener;this._when=e.when||e.manager.ready;const n=new S({registry:this.registry,translator:this.translator});n.activateRequested.connect(this._onActivateRequested,this);n.stateChanged.connect(this._onWidgetStateChanged,this);this._widgetManager=n;this._setBusy=e.setBusy}get activateRequested(){return this._activateRequested}get autosave(){return this._autosave}set autosave(e){if(this._autosave!==e){const t=this._autosave;this._autosave=e;this._contexts.forEach((t=>{const n=M.saveHandlerProperty.get(t);if(!n){return}if(e===true&&!n.isActive){n.start()}else if(e===false&&n.isActive){n.stop()}}));this._stateChanged.emit({name:"autosave",oldValue:t,newValue:e})}}get autosaveInterval(){return this._autosaveInterval}set autosaveInterval(e){if(this._autosaveInterval!==e){const t=this._autosaveInterval;this._autosaveInterval=e;this._contexts.forEach((t=>{const n=M.saveHandlerProperty.get(t);if(!n){return}n.saveInterval=e||120}));this._stateChanged.emit({name:"autosaveInterval",oldValue:t,newValue:e})}}get confirmClosingDocument(){return this._widgetManager.confirmClosingDocument}set confirmClosingDocument(e){if(this._widgetManager.confirmClosingDocument!==e){const t=this._widgetManager.confirmClosingDocument;this._widgetManager.confirmClosingDocument=e;this._stateChanged.emit({name:"confirmClosingDocument",oldValue:t,newValue:e})}}get lastModifiedCheckMargin(){return this._lastModifiedCheckMargin}set lastModifiedCheckMargin(e){if(this._lastModifiedCheckMargin!==e){const t=this._lastModifiedCheckMargin;this._lastModifiedCheckMargin=e;this._contexts.forEach((t=>{t.lastModifiedCheckMargin=e}));this._stateChanged.emit({name:"lastModifiedCheckMargin",oldValue:t,newValue:e})}}get renameUntitledFileOnSave(){return this._renameUntitledFileOnSave}set renameUntitledFileOnSave(e){if(this._renameUntitledFileOnSave!==e){const t=this._renameUntitledFileOnSave;this._renameUntitledFileOnSave=e;this._stateChanged.emit({name:"renameUntitledFileOnSave",oldValue:t,newValue:e})}}get stateChanged(){return this._stateChanged}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;b.Signal.clearData(this);this._contexts.forEach((e=>this._widgetManager.closeWidgets(e)));this._widgetManager.dispose();this._contexts.length=0}cloneWidget(e){return this._widgetManager.cloneWidget(e)}closeAll(){return Promise.all(this._contexts.map((e=>this._widgetManager.closeWidgets(e)))).then((()=>undefined))}closeFile(e){const t=this._contextsForPath(e).map((e=>this._widgetManager.closeWidgets(e)));return Promise.all(t).then((e=>undefined))}contextForWidget(e){return this._widgetManager.contextForWidget(e)}copy(e,t){return this.services.contents.copy(e,t)}createNew(e,t="default",n){return this._createOrOpenDocument("create",e,t,n)}deleteFile(e){return this.services.sessions.stopIfNeeded(e).then((()=>this.services.contents.delete(e))).then((()=>{this._contextsForPath(e).forEach((e=>this._widgetManager.deleteWidgets(e)));return Promise.resolve(void 0)}))}duplicate(e){const t=s.PathExt.dirname(e);return this.services.contents.copy(e,t)}findWidget(e,t="default"){const n=s.PathExt.normalize(e);let i=[t];if(t==="default"){const e=this.registry.defaultWidgetFactory(n);if(!e){return undefined}i=[e.name]}else if(t===null){i=this.registry.preferredWidgetFactories(n).map((e=>e.name))}for(const s of this._contextsForPath(n)){for(const e of i){if(e!==null){const t=this._widgetManager.findWidget(s,e);if(t){return t}}}}return undefined}newUntitled(e){if(e.type==="file"){e.ext=e.ext||".txt"}return this.services.contents.newUntitled(e)}open(e,t="default",n,i){return this._createOrOpenDocument("open",e,t,n,i)}openOrReveal(e,t="default",n,i){const s=this.findWidget(e,t);if(s){this._opener.open(s,{type:t,...i});return s}return this.open(e,t,n,i!==null&&i!==void 0?i:{})}overwrite(e,t){const n=`${t}.${v.UUID.uuid4()}`;const i=()=>this.rename(n,t);return this.rename(e,n).then((()=>this.deleteFile(t))).then(i,i)}rename(e,t){return this.services.contents.rename(e,t)}_findContext(e,t){const n=this.services.contents.normalize(e);return(0,f.find)(this._contexts,(e=>e.path===n&&e.factoryName===t))}_contextsForPath(e){const t=this.services.contents.normalize(e);return this._contexts.filter((e=>e.path===t))}_createContext(e,t,n){const i=(e,t)=>{this._widgetManager.adoptWidget(s,e);this._opener.open(e,t)};const s=new g.Context({opener:i,manager:this.services,factory:t,path:e,kernelPreference:n,setBusy:this._setBusy,sessionDialogs:this._dialogs,lastModifiedCheckMargin:this._lastModifiedCheckMargin,translator:this.translator});const o=new y({context:s,isConnectedCallback:this._isConnectedCallback,saveInterval:this.autosaveInterval});M.saveHandlerProperty.set(s,o);void s.ready.then((()=>{if(this.autosave){o.start()}}));s.disposed.connect(this._onContextDisposed,this);this._contexts.push(s);return s}_onContextDisposed(e){f.ArrayExt.removeFirstOf(this._contexts,e)}_widgetFactoryFor(e,t){const{registry:n}=this;if(t==="default"){const i=n.defaultWidgetFactory(e);if(!i){return undefined}t=i.name}return n.getWidgetFactory(t)}_createOrOpenDocument(e,t,n="default",i,s){const o=this._widgetFactoryFor(t,n);if(!o){return undefined}const r=o.modelName||"text";const a=this.registry.getModelFactory(r);if(!a){return undefined}const l=this.registry.getKernelPreference(t,o.name,i);let d;let c=Promise.resolve(undefined);if(e==="open"){d=this._findContext(t,a.name)||null;if(!d){d=this._createContext(t,a,l);c=this._when.then((()=>d.initialize(false)))}}else if(e==="create"){d=this._createContext(t,a,l);c=this._when.then((()=>d.initialize(true)))}else{throw new Error(`Invalid argument 'which': ${e}`)}const h=this._widgetManager.createWidget(o,d);this._opener.open(h,{type:o.name,...s});c.catch((e=>{console.error(`Failed to initialize the context with '${a.name}' for ${t}`,e);h.close()}));return h}_onActivateRequested(e,t){this._activateRequested.emit(t)}_onWidgetStateChanged(e,t){if(t.name==="confirmClosingDocument"){this._stateChanged.emit(t)}}}var M;(function(e){e.saveHandlerProperty=new _.AttachedProperty({name:"saveHandler",create:()=>undefined})})(M||(M={}));var E=n(85176);var I=n(4148);var T=n(28416);var D=n.n(T);function L(e){return D().createElement(E.TextItem,{source:e.name,title:e.fullPath})}class P extends I.VDomRenderer{constructor(e){super(new P.Model(e.docManager));this.node.title=this.model.path}render(){return D().createElement(L,{fullPath:this.model.path,name:this.model.name})}}(function(e){class t extends I.VDomModel{constructor(e){super();this._onTitleChange=e=>{const t=this._getAllState();this._name=e.label;this._triggerChange(t,this._getAllState())};this._onPathChange=(e,t)=>{const n=this._getAllState();this._path=t;this._name=s.PathExt.basename(t);this._triggerChange(n,this._getAllState())};this._path="";this._name="";this._widget=null;this._docManager=e}get path(){return this._path}get name(){return this._name}get widget(){return this._widget}set widget(e){const t=this._widget;if(t!==null){const e=this._docManager.contextForWidget(t);if(e){e.pathChanged.disconnect(this._onPathChange)}else{t.title.changed.disconnect(this._onTitleChange)}}const n=this._getAllState();this._widget=e;if(this._widget===null){this._path="";this._name=""}else{const e=this._docManager.contextForWidget(this._widget);if(e){this._path=e.path;this._name=s.PathExt.basename(e.path);e.pathChanged.connect(this._onPathChange)}else{this._path="";this._name=this._widget.title.label;this._widget.title.changed.connect(this._onTitleChange)}}this._triggerChange(n,this._getAllState())}_getAllState(){return[this._path,this._name]}_triggerChange(e,t){if(e[0]!==t[0]||e[1]!==t[1]){this.stateChanged.emit(void 0)}}}e.Model=t})(P||(P={}));function A(e){return D().createElement(E.TextItem,{source:e.fileStatus})}const R=2e3;class N extends I.VDomRenderer{constructor(e){super(new N.Model(e.docManager));const t=e.translator||o.nullTranslator;const n=t.load("jupyterlab");this._statusMap={completed:n.__("Saving completed"),started:n.__("Saving started"),failed:n.__("Saving failed")}}render(){if(this.model===null||this.model.status===null){return null}else{return D().createElement(A,{fileStatus:this._statusMap[this.model.status]})}}}(function(e){class t extends I.VDomModel{constructor(e){super();this._onStatusChange=(e,t)=>{this._status=t;if(this._status==="completed"){setTimeout((()=>{this._status=null;this.stateChanged.emit(void 0)}),R);this.stateChanged.emit(void 0)}else{this.stateChanged.emit(void 0)}};this._status=null;this._widget=null;this._status=null;this.widget=null;this._docManager=e}get status(){return this._status}get widget(){return this._widget}set widget(e){var t,n;const i=this._widget;if(i!==null){const e=this._docManager.contextForWidget(i);if(e){e.saveState.disconnect(this._onStatusChange)}else if((t=this._widget.content)===null||t===void 0?void 0:t.saveStateChanged){this._widget.content.saveStateChanged.disconnect(this._onStatusChange)}}this._widget=e;if(this._widget===null){this._status=null}else{const e=this._docManager.contextForWidget(this._widget);if(e){e.saveState.connect(this._onStatusChange)}else if((n=this._widget.content)===null||n===void 0?void 0:n.saveStateChanged){this._widget.content.saveStateChanged.connect(this._onStatusChange)}}}}e.Model=t})(N||(N={}));const O=new v.Token("@jupyterlab/docmanager:IDocumentManager",`A service for the manager for all\n documents used by the application. Use this if you want to open and close documents,\n create and delete files, and otherwise interact with the file system.`);const B=new v.Token("@jupyterlab/docmanager:IDocumentWidgetOpener",`A service to open a widget.`)},82401:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(79536);var r=n(94683)},17454:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ABCWidgetFactory:()=>v,Base64ModelFactory:()=>f,Context:()=>h,DocumentModel:()=>m,DocumentRegistry:()=>M,DocumentWidget:()=>b,MimeContent:()=>w,MimeDocument:()=>C,MimeDocumentFactory:()=>x,TextModelFactory:()=>g});var i=n(10759);var s=n(20501);var o=n(23635);var r=n(6958);var a=n(5596);var l=n(26512);var d=n(71372);var c=n(85448);class h{constructor(e){var t,n;this._isReady=false;this._isDisposed=false;this._isPopulated=false;this._path="";this._lineEnding=null;this._contentsModel=null;this._populatedPromise=new a.PromiseDelegate;this._pathChanged=new d.Signal(this);this._fileChanged=new d.Signal(this);this._saveState=new d.Signal(this);this._disposed=new d.Signal(this);this._lastModifiedCheckMargin=500;this._timeConflictModalIsOpen=false;const l=this._manager=e.manager;this.translator=e.translator||r.nullTranslator;this._trans=this.translator.load("jupyterlab");this._factory=e.factory;this._dialogs=(t=e.sessionDialogs)!==null&&t!==void 0?t:new i.SessionContextDialogs({translator:e.translator});this._opener=e.opener||u.noOp;this._path=this._manager.contents.normalize(e.path);this._lastModifiedCheckMargin=e.lastModifiedCheckMargin||500;const c=this._manager.contents.localPath(this._path);const h=this._factory.preferredLanguage(s.PathExt.basename(c));const p=this._manager.contents.getSharedModelFactory(this._path);const m=p===null||p===void 0?void 0:p.createNew({path:c,format:this._factory.fileFormat,contentType:this._factory.contentType,collaborative:this._factory.collaborative});this._model=this._factory.createNew({languagePreference:h,sharedModel:m,collaborationEnabled:(n=p===null||p===void 0?void 0:p.collaborative)!==null&&n!==void 0?n:false});this._readyPromise=l.ready.then((()=>this._populatedPromise.promise));const g=s.PathExt.extname(this._path);this.sessionContext=new i.SessionContext({sessionManager:l.sessions,specsManager:l.kernelspecs,path:c,type:g===".ipynb"?"notebook":"file",name:s.PathExt.basename(c),kernelPreference:e.kernelPreference||{shouldStart:false},setBusy:e.setBusy});this.sessionContext.propertyChanged.connect(this._onSessionChanged,this);l.contents.fileChanged.connect(this._onFileChanged,this);this.urlResolver=new o.RenderMimeRegistry.UrlResolver({path:this._path,contents:l.contents})}get pathChanged(){return this._pathChanged}get fileChanged(){return this._fileChanged}get saveState(){return this._saveState}get disposed(){return this._disposed}get lastModifiedCheckMargin(){return this._lastModifiedCheckMargin}set lastModifiedCheckMargin(e){this._lastModifiedCheckMargin=e}get model(){return this._model}get path(){return this._path}get localPath(){return this._manager.contents.localPath(this._path)}get contentsModel(){return this._contentsModel?{...this._contentsModel}:null}get factoryName(){return this.isDisposed?"":this._factory.name}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this.sessionContext.dispose();this._model.dispose();this._model.sharedModel.dispose();this._disposed.emit(void 0);d.Signal.clearData(this)}get isReady(){return this._isReady}get ready(){return this._readyPromise}get canSave(){var e;return!!(((e=this._contentsModel)===null||e===void 0?void 0:e.writable)&&!this._model.collaborative)}async initialize(e){if(e){await this._save()}else{await this._revert()}this.model.sharedModel.clearUndoHistory()}rename(e){return this.ready.then((()=>this._manager.ready.then((()=>this._rename(e)))))}async save(){await this.ready;await this._save()}async saveAs(){await this.ready;const e=this._manager.contents.localPath(this.path);const t=await u.getSavePath(e);if(this.isDisposed||!t){return}const n=this._manager.contents.driveName(this.path);const i=n==""?t:`${n}:${t}`;if(i===this._path){return this.save()}try{await this._manager.ready;await this._manager.contents.get(i);await this._maybeOverWrite(i)}catch(s){if(!s.response||s.response.status!==404){throw s}await this._finishSaveAs(i)}}async download(){const e=await this._manager.contents.getDownloadUrl(this._path);const t=document.createElement("a");t.href=e;t.download="";document.body.appendChild(t);t.click();document.body.removeChild(t);return void 0}async revert(){await this.ready;await this._revert()}createCheckpoint(){const e=this._manager.contents;return this._manager.ready.then((()=>e.createCheckpoint(this._path)))}deleteCheckpoint(e){const t=this._manager.contents;return this._manager.ready.then((()=>t.deleteCheckpoint(this._path,e)))}restoreCheckpoint(e){const t=this._manager.contents;const n=this._path;return this._manager.ready.then((()=>{if(e){return t.restoreCheckpoint(n,e)}return this.listCheckpoints().then((i=>{if(this.isDisposed||!i.length){return}e=i[i.length-1].id;return t.restoreCheckpoint(n,e)}))}))}listCheckpoints(){const e=this._manager.contents;return this._manager.ready.then((()=>e.listCheckpoints(this._path)))}addSibling(e,t={}){const n=this._opener;if(n){n(e,t)}return new l.DisposableDelegate((()=>{e.close()}))}_onFileChanged(e,t){var n;if(t.type!=="rename"){return}let i=t.oldValue&&t.oldValue.path;let s=t.newValue&&t.newValue.path;if(s&&this._path.indexOf(i||"")===0){let e=t.newValue;if(i!==this._path){s=this._path.replace(new RegExp(`^${i}/`),`${s}/`);i=this._path;e={last_modified:(n=t.newValue)===null||n===void 0?void 0:n.created,path:s}}this._updateContentsModel({...this._contentsModel,...e});this._updatePath(s)}}_onSessionChanged(e,t){if(t!=="path"){return}const n=this._manager.contents.driveName(this.path);let i=this.sessionContext.session.path;if(n){i=`${n}:${i}`}this._updatePath(i)}_updateContentsModel(e){var t,n;const i=e.writable&&!this._model.collaborative;const s={path:e.path,name:e.name,type:e.type,writable:i,created:e.created,last_modified:e.last_modified,mimetype:e.mimetype,format:e.format};const o=(n=(t=this._contentsModel)===null||t===void 0?void 0:t.last_modified)!==null&&n!==void 0?n:null;this._contentsModel=s;if(!o||s.last_modified!==o){this._fileChanged.emit(s)}}_updatePath(e){var t,n,i,o;if(this._path===e){return}this._path=e;const r=this._manager.contents.localPath(e);const a=s.PathExt.basename(r);if(((t=this.sessionContext.session)===null||t===void 0?void 0:t.path)!==r){void((n=this.sessionContext.session)===null||n===void 0?void 0:n.setPath(r))}if(((i=this.sessionContext.session)===null||i===void 0?void 0:i.name)!==a){void((o=this.sessionContext.session)===null||o===void 0?void 0:o.setName(a))}if(this.urlResolver.path!==e){this.urlResolver.path=e}if(this._contentsModel&&(this._contentsModel.path!==e||this._contentsModel.name!==a)){const t={...this._contentsModel,name:a,path:e};this._updateContentsModel(t)}this._pathChanged.emit(e)}async _populate(){this._isPopulated=true;this._isReady=true;this._populatedPromise.resolve(void 0);await this._maybeCheckpoint(false);if(this.isDisposed){return}const e=this._model.defaultKernelName||this.sessionContext.kernelPreference.name;this.sessionContext.kernelPreference={...this.sessionContext.kernelPreference,name:e,language:this._model.defaultKernelLanguage};void this.sessionContext.initialize().then((e=>{if(e){void this._dialogs.selectKernel(this.sessionContext)}}))}async _rename(e){const t=this.localPath.split("/");t[t.length-1]=e;let n=s.PathExt.join(...t);const i=this._manager.contents.driveName(this.path);if(i){n=`${i}:${n}`}await this._manager.contents.rename(this.path,n)}async _save(){this._saveState.emit("started");const e=this._createSaveOptions();try{await this._manager.ready;const t=await this._maybeSave(e);if(this.isDisposed){return}this._model.dirty=false;this._updateContentsModel(t);if(!this._isPopulated){await this._populate()}this._saveState.emit("completed")}catch(t){const{name:e}=t;if(e==="ModalCancelError"||e==="ModalDuplicateError"){throw t}const n=this._manager.contents.localPath(this._path);const i=s.PathExt.basename(n);void this._handleError(t,this._trans.__("File Save Error for %1",i));this._saveState.emit("failed");throw t}}_revert(e=false){const t={type:this._factory.contentType,content:this._factory.fileFormat!==null,...this._factory.fileFormat!==null?{format:this._factory.fileFormat}:{}};const n=this._path;const i=this._model;return this._manager.ready.then((()=>this._manager.contents.get(n,t))).then((e=>{if(this.isDisposed){return}if(e.content){if(e.format==="json"){i.fromJSON(e.content)}else{let t=e.content;if(t.indexOf("\r\n")!==-1){this._lineEnding="\r\n";t=t.replace(/\r\n/g,"\n")}else if(t.indexOf("\r")!==-1){this._lineEnding="\r";t=t.replace(/\r/g,"\n")}else{this._lineEnding=null}i.fromString(t)}}this._updateContentsModel(e);i.dirty=false;if(!this._isPopulated){return this._populate()}})).catch((async e=>{const t=this._manager.contents.localPath(this._path);const n=s.PathExt.basename(t);void this._handleError(e,this._trans.__("File Load Error for %1",n));throw e}))}_maybeSave(e){const t=this._path;const n=this._manager.contents.get(t,{content:false});return n.then((n=>{var i;if(this.isDisposed){return Promise.reject(new Error("Disposed"))}const s=this._lastModifiedCheckMargin;const o=(i=this.contentsModel)===null||i===void 0?void 0:i.last_modified;const r=o?new Date(o):new Date;const a=new Date(n.last_modified);if(o&&a.getTime()-r.getTime()>s){return this._timeConflict(r,n,e)}return this._manager.contents.save(t,e)}),(n=>{if(n.response&&n.response.status===404){return this._manager.contents.save(t,e)}throw n}))}async _handleError(e,t){await(0,i.showErrorMessage)(t,e);return}_maybeCheckpoint(e){let t=Promise.resolve(void 0);if(!this.canSave){return t}if(e){t=this.createCheckpoint().then()}else{t=this.listCheckpoints().then((e=>{if(!this.isDisposed&&!e.length&&this.canSave){return this.createCheckpoint().then()}}))}return t.catch((e=>{if(!e.response||e.response.status!==403){throw e}}))}_timeConflict(e,t,n){const s=new Date(t.last_modified);console.warn(`Last saving performed ${e} `+`while the current file seems to have been saved `+`${s}`);if(this._timeConflictModalIsOpen){const e=new Error("Modal is already displayed");e.name="ModalDuplicateError";return Promise.reject(e)}const o=this._trans.__(`"%1" has changed on disk since the last time it was opened or saved.\nDo you want to overwrite the file on disk with the version open here,\nor load the version on disk (revert)?`,this.path);const r=i.Dialog.okButton({label:this._trans.__("Revert"),actions:["revert"]});const a=i.Dialog.warnButton({label:this._trans.__("Overwrite"),actions:["overwrite"]});this._timeConflictModalIsOpen=true;return(0,i.showDialog)({title:this._trans.__("File Changed"),body:o,buttons:[i.Dialog.cancelButton(),r,a]}).then((e=>{this._timeConflictModalIsOpen=false;if(this.isDisposed){return Promise.reject(new Error("Disposed"))}if(e.button.actions.includes("overwrite")){return this._manager.contents.save(this._path,n)}if(e.button.actions.includes("revert")){return this.revert().then((()=>t))}const i=new Error("Cancel");i.name="ModalCancelError";return Promise.reject(i)}))}_maybeOverWrite(e){const t=this._trans.__('"%1" already exists. Do you want to replace it?',e);const n=i.Dialog.warnButton({label:this._trans.__("Overwrite"),accept:true});return(0,i.showDialog)({title:this._trans.__("File Overwrite?"),body:t,buttons:[i.Dialog.cancelButton(),n]}).then((t=>{if(this.isDisposed){return Promise.reject(new Error("Disposed"))}if(t.button.accept){return this._manager.contents.delete(e).then((()=>this._finishSaveAs(e)))}}))}async _finishSaveAs(e){this._saveState.emit("started");try{await this._manager.ready;const t=this._createSaveOptions();await this._manager.contents.save(e,t);await this._maybeCheckpoint(true);this._saveState.emit("completed")}catch(t){if(t.message==="Cancel"||t.message==="Modal is already displayed"){throw t}const e=this._manager.contents.localPath(this._path);const n=s.PathExt.basename(e);void this._handleError(t,this._trans.__("File Save Error for %1",n));this._saveState.emit("failed");return}}_createSaveOptions(){let e=null;if(this._factory.fileFormat==="json"){e=this._model.toJSON()}else{e=this._model.toString();if(this._lineEnding){e=e.replace(/\n/g,this._lineEnding)}}return{type:this._factory.contentType,format:this._factory.fileFormat,content:e}}}var u;(function(e){function t(e,t){t=t||r.nullTranslator;const n=t.load("jupyterlab");const o=i.Dialog.okButton({label:n.__("Save"),accept:true});return(0,i.showDialog)({title:n.__("Save File As…"),body:new s(e),buttons:[i.Dialog.cancelButton(),o]}).then((e=>{var t;if(e.button.accept){return(t=e.value)!==null&&t!==void 0?t:undefined}return}))}e.getSavePath=t;function n(){}e.noOp=n;class s extends c.Widget{constructor(e){super({node:o(e)})}getValue(){return this.node.value}}function o(e){const t=document.createElement("input");t.value=e;return t}})(u||(u={}));var p=n(7005);class m extends p.CodeEditor.Model{constructor(e={}){var t;super({sharedModel:e.sharedModel});this._defaultLang="";this._dirty=false;this._readOnly=false;this._contentChanged=new d.Signal(this);this._stateChanged=new d.Signal(this);this._defaultLang=(t=e.languagePreference)!==null&&t!==void 0?t:"";this._collaborationEnabled=!!e.collaborationEnabled;this.sharedModel.changed.connect(this._onStateChanged,this)}get contentChanged(){return this._contentChanged}get stateChanged(){return this._stateChanged}get dirty(){return this._dirty}set dirty(e){const t=this._dirty;if(e===t){return}this._dirty=e;this.triggerStateChange({name:"dirty",oldValue:t,newValue:e})}get readOnly(){return this._readOnly}set readOnly(e){if(e===this._readOnly){return}const t=this._readOnly;this._readOnly=e;this.triggerStateChange({name:"readOnly",oldValue:t,newValue:e})}get defaultKernelName(){return""}get defaultKernelLanguage(){return this._defaultLang}get collaborative(){return this._collaborationEnabled}toString(){return this.sharedModel.getSource()}fromString(e){this.sharedModel.setSource(e)}toJSON(){return JSON.parse(this.sharedModel.getSource()||"null")}fromJSON(e){this.fromString(JSON.stringify(e))}initialize(){return}triggerStateChange(e){this._stateChanged.emit(e)}triggerContentChange(){this._contentChanged.emit(void 0);this.dirty=true}_onStateChanged(e,t){if(t.sourceChange){this.triggerContentChange()}if(t.stateChange){t.stateChange.forEach((e=>{if(e.name==="dirty"){this.dirty=e.newValue}else if(e.oldValue!==e.newValue){this.triggerStateChange({newValue:undefined,oldValue:undefined,...e})}}))}}}class g{constructor(e){this._isDisposed=false;this._collaborative=e!==null&&e!==void 0?e:true}get name(){return"text"}get contentType(){return"file"}get fileFormat(){return"text"}get collaborative(){return this._collaborative}get isDisposed(){return this._isDisposed}dispose(){this._isDisposed=true}createNew(e={}){const t=e.collaborationEnabled&&this.collaborative;return new m({...e,collaborationEnabled:t})}preferredLanguage(e){return""}}class f extends g{get name(){return"base64"}get contentType(){return"file"}get fileFormat(){return"base64"}}class v{constructor(e){this._isDisposed=false;this._widgetCreated=new d.Signal(this);this._translator=e.translator||r.nullTranslator;this._name=e.name;this._label=e.label||e.name;this._readOnly=e.readOnly===undefined?false:e.readOnly;this._defaultFor=e.defaultFor?e.defaultFor.slice():[];this._defaultRendered=(e.defaultRendered||[]).slice();this._fileTypes=e.fileTypes.slice();this._modelName=e.modelName||"text";this._preferKernel=!!e.preferKernel;this._canStartKernel=!!e.canStartKernel;this._shutdownOnClose=!!e.shutdownOnClose;this._autoStartDefault=!!e.autoStartDefault;this._toolbarFactory=e.toolbarFactory}get widgetCreated(){return this._widgetCreated}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;d.Signal.clearData(this)}get readOnly(){return this._readOnly}get name(){return this._name}get label(){return this._label}get fileTypes(){return this._fileTypes.slice()}get modelName(){return this._modelName}get defaultFor(){return this._defaultFor.slice()}get defaultRendered(){return this._defaultRendered.slice()}get preferKernel(){return this._preferKernel}get canStartKernel(){return this._canStartKernel}get translator(){return this._translator}get shutdownOnClose(){return this._shutdownOnClose}set shutdownOnClose(e){this._shutdownOnClose=e}get autoStartDefault(){return this._autoStartDefault}set autoStartDefault(e){this._autoStartDefault=e}createNew(e,t){var n;const s=this.createNewWidget(e,t);(0,i.setToolbar)(s,(n=this._toolbarFactory)!==null&&n!==void 0?n:this.defaultToolbarFactory.bind(this));this._widgetCreated.emit(s);return s}defaultToolbarFactory(e){return[]}}const _="jp-mod-dirty";class b extends i.MainAreaWidget{constructor(e){e.reveal=Promise.all([e.reveal,e.context.ready]);super(e);this.context=e.context;this.context.pathChanged.connect(this._onPathChanged,this);this._onPathChanged(this.context,this.context.path);this.context.model.stateChanged.connect(this._onModelStateChanged,this);void this.context.ready.then((()=>{this._handleDirtyState()}));this.title.changed.connect(this._onTitleChanged,this)}setFragment(e){}async _onTitleChanged(e){const t=/[\/\\:]/;const n=this.title.label;const i=this.context.localPath.split("/").pop()||this.context.localPath;if(n===i){return}if(n.length>0&&!t.test(n)){const e=this.context.path;await this.context.rename(n);if(this.context.path!==e){return}}this.title.label=i}_onPathChanged(e,t){this.title.label=s.PathExt.basename(e.localPath);this.isUntitled=false}_onModelStateChanged(e,t){if(t.name==="dirty"){this._handleDirtyState()}}_handleDirtyState(){if(this.context.model.dirty&&!this.title.className.includes(_)){this.title.className+=` ${_}`}else{this.title.className=this.title.className.replace(_,"")}}}var y=n(28821);class w extends c.Widget{constructor(e){super();this._changeCallback=e=>{if(!e.data||!e.data[this.mimeType]){return}const t=e.data[this.mimeType];if(typeof t==="string"){if(t!==this._context.model.toString()){this._context.model.fromString(t)}}else if(t!==null&&t!==undefined&&!a.JSONExt.deepEqual(t,this._context.model.toJSON())){this._context.model.fromJSON(t)}};this._fragment="";this._ready=new a.PromiseDelegate;this._isRendering=false;this._renderRequested=false;this.addClass("jp-MimeDocument");this.translator=e.translator||r.nullTranslator;this._trans=this.translator.load("jupyterlab");this.mimeType=e.mimeType;this._dataType=e.dataType||"string";this._context=e.context;this.renderer=e.renderer;const t=this.layout=new c.StackedLayout;t.addWidget(this.renderer);this._context.ready.then((()=>this._render())).then((()=>{if(this.node===document.activeElement){y.MessageLoop.sendMessage(this.renderer,c.Widget.Msg.ActivateRequest)}this._monitor=new s.ActivityMonitor({signal:this._context.model.contentChanged,timeout:e.renderTimeout});this._monitor.activityStopped.connect(this.update,this);this._ready.resolve(undefined)})).catch((e=>{requestAnimationFrame((()=>{this.dispose()}));void(0,i.showErrorMessage)(this._trans.__("Renderer Failure: %1",this._context.path),e)}))}[i.Printing.symbol](){return i.Printing.getPrintFunction(this.renderer)}get ready(){return this._ready.promise}setFragment(e){this._fragment=e;this.update()}dispose(){if(this.isDisposed){return}if(this._monitor){this._monitor.dispose()}this._monitor=null;super.dispose()}onUpdateRequest(e){if(this._context.isReady){void this._render();this._fragment=""}}async _render(){if(this.isDisposed){return}if(this._isRendering){this._renderRequested=true;return}this._renderRequested=false;const e=this._context;const t=e.model;const n={};if(this._dataType==="string"){n[this.mimeType]=t.toString()}else{n[this.mimeType]=t.toJSON()}const s=new o.MimeModel({data:n,callback:this._changeCallback,metadata:{fragment:this._fragment}});try{this._isRendering=true;await this.renderer.renderModel(s);this._isRendering=false;if(this._renderRequested){return this._render()}}catch(r){requestAnimationFrame((()=>{this.dispose()}));void(0,i.showErrorMessage)(this._trans.__("Renderer Failure: %1",e.path),r)}}}class C extends b{setFragment(e){this.content.setFragment(e)}}class x extends v{constructor(e){super(S.createRegistryOptions(e));this._rendermime=e.rendermime;this._renderTimeout=e.renderTimeout||1e3;this._dataType=e.dataType||"string";this._fileType=e.primaryFileType;this._factory=e.factory}createNewWidget(e){var t,n;const i=this._fileType;const s=(i===null||i===void 0?void 0:i.mimeTypes.length)?i.mimeTypes[0]:"text/plain";const o=this._rendermime.clone({resolver:e.urlResolver});let r;if(this._factory&&this._factory.mimeTypes.includes(s)){r=this._factory.createRenderer({mimeType:s,resolver:o.resolver,sanitizer:o.sanitizer,linkHandler:o.linkHandler,latexTypesetter:o.latexTypesetter,markdownParser:o.markdownParser})}else{r=o.createRenderer(s)}const a=new w({context:e,renderer:r,mimeType:s,renderTimeout:this._renderTimeout,dataType:this._dataType});a.title.icon=i===null||i===void 0?void 0:i.icon;a.title.iconClass=(t=i===null||i===void 0?void 0:i.iconClass)!==null&&t!==void 0?t:"";a.title.iconLabel=(n=i===null||i===void 0?void 0:i.iconLabel)!==null&&n!==void 0?n:"";const l=new C({content:a,context:e});return l}}var S;(function(e){function t(e){return{...e,readOnly:true}}e.createRegistryOptions=t})(S||(S={}));var k=n(4148);var j=n(58740);class M{constructor(e={}){this._modelFactories=Object.create(null);this._widgetFactories=Object.create(null);this._defaultWidgetFactory="";this._defaultWidgetFactoryOverrides=Object.create(null);this._defaultWidgetFactories=Object.create(null);this._defaultRenderedWidgetFactories=Object.create(null);this._widgetFactoriesForFileType=Object.create(null);this._fileTypes=[];this._extenders=Object.create(null);this._changed=new d.Signal(this);this._isDisposed=false;const t=e.textModelFactory;this.translator=e.translator||r.nullTranslator;if(t&&t.name!=="text"){throw new Error("Text model factory must have the name `text`")}this._modelFactories["text"]=t||new g(true);const n=e.initialFileTypes||M.getDefaultFileTypes(this.translator);n.forEach((e=>{const t={...M.getFileTypeDefaults(this.translator),...e};this._fileTypes.push(t)}))}get changed(){return this._changed}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;for(const e in this._modelFactories){this._modelFactories[e].dispose()}for(const e in this._widgetFactories){this._widgetFactories[e].dispose()}for(const e in this._extenders){this._extenders[e].length=0}this._fileTypes.length=0;d.Signal.clearData(this)}addWidgetFactory(e){const t=e.name.toLowerCase();if(!t||t==="default"){throw Error("Invalid factory name")}if(this._widgetFactories[t]){console.warn(`Duplicate registered factory ${t}`);return new l.DisposableDelegate(E.noOp)}this._widgetFactories[t]=e;for(const n of e.defaultFor||[]){if(e.fileTypes.indexOf(n)===-1){continue}if(n==="*"){this._defaultWidgetFactory=t}else{this._defaultWidgetFactories[n]=t}}for(const n of e.defaultRendered||[]){if(e.fileTypes.indexOf(n)===-1){continue}this._defaultRenderedWidgetFactories[n]=t}for(const n of e.fileTypes){if(!this._widgetFactoriesForFileType[n]){this._widgetFactoriesForFileType[n]=[]}this._widgetFactoriesForFileType[n].push(t)}this._changed.emit({type:"widgetFactory",name:t,change:"added"});return new l.DisposableDelegate((()=>{delete this._widgetFactories[t];if(this._defaultWidgetFactory===t){this._defaultWidgetFactory=""}for(const e of Object.keys(this._defaultWidgetFactories)){if(this._defaultWidgetFactories[e]===t){delete this._defaultWidgetFactories[e]}}for(const e of Object.keys(this._defaultRenderedWidgetFactories)){if(this._defaultRenderedWidgetFactories[e]===t){delete this._defaultRenderedWidgetFactories[e]}}for(const e of Object.keys(this._widgetFactoriesForFileType)){j.ArrayExt.removeFirstOf(this._widgetFactoriesForFileType[e],t);if(this._widgetFactoriesForFileType[e].length===0){delete this._widgetFactoriesForFileType[e]}}for(const e of Object.keys(this._defaultWidgetFactoryOverrides)){if(this._defaultWidgetFactoryOverrides[e]===t){delete this._defaultWidgetFactoryOverrides[e]}}this._changed.emit({type:"widgetFactory",name:t,change:"removed"})}))}addModelFactory(e){const t=e.name.toLowerCase();if(this._modelFactories[t]){console.warn(`Duplicate registered factory ${t}`);return new l.DisposableDelegate(E.noOp)}this._modelFactories[t]=e;this._changed.emit({type:"modelFactory",name:t,change:"added"});return new l.DisposableDelegate((()=>{delete this._modelFactories[t];this._changed.emit({type:"modelFactory",name:t,change:"removed"})}))}addWidgetExtension(e,t){e=e.toLowerCase();if(!(e in this._extenders)){this._extenders[e]=[]}const n=this._extenders[e];const i=j.ArrayExt.firstIndexOf(n,t);if(i!==-1){console.warn(`Duplicate registered extension for ${e}`);return new l.DisposableDelegate(E.noOp)}this._extenders[e].push(t);this._changed.emit({type:"widgetExtension",name:e,change:"added"});return new l.DisposableDelegate((()=>{j.ArrayExt.removeFirstOf(this._extenders[e],t);this._changed.emit({type:"widgetExtension",name:e,change:"removed"})}))}addFileType(e,t){const n={...M.getFileTypeDefaults(this.translator),...e,...!(e.icon||e.iconClass)&&{icon:k.fileIcon}};this._fileTypes.push(n);if(t){const e=n.name.toLowerCase();t.map((e=>e.toLowerCase())).forEach((t=>{if(!this._widgetFactoriesForFileType[e]){this._widgetFactoriesForFileType[e]=[]}if(!this._widgetFactoriesForFileType[e].includes(t)){this._widgetFactoriesForFileType[e].push(t)}}));if(!this._defaultWidgetFactories[e]){this._defaultWidgetFactories[e]=this._widgetFactoriesForFileType[e][0]}}this._changed.emit({type:"fileType",name:n.name,change:"added"});return new l.DisposableDelegate((()=>{j.ArrayExt.removeFirstOf(this._fileTypes,n);if(t){const e=n.name.toLowerCase();for(const n of t.map((e=>e.toLowerCase()))){j.ArrayExt.removeFirstOf(this._widgetFactoriesForFileType[e],n)}if(this._defaultWidgetFactories[e]===t[0].toLowerCase()){delete this._defaultWidgetFactories[e]}}this._changed.emit({type:"fileType",name:e.name,change:"removed"})}))}preferredWidgetFactories(e){const t=new Set;const n=this.getFileTypesForPath(s.PathExt.basename(e));n.forEach((e=>{if(e.name in this._defaultWidgetFactoryOverrides){t.add(this._defaultWidgetFactoryOverrides[e.name])}}));n.forEach((e=>{if(e.name in this._defaultWidgetFactories){t.add(this._defaultWidgetFactories[e.name])}}));n.forEach((e=>{if(e.name in this._defaultRenderedWidgetFactories){t.add(this._defaultRenderedWidgetFactories[e.name])}}));if(this._defaultWidgetFactory){t.add(this._defaultWidgetFactory)}for(const s of n){if(s.name in this._widgetFactoriesForFileType){for(const e of this._widgetFactoriesForFileType[s.name]){t.add(e)}}}if("*"in this._widgetFactoriesForFileType){for(const e of this._widgetFactoriesForFileType["*"]){t.add(e)}}const i=[];for(const s of t){const e=this._widgetFactories[s];if(!e){continue}const t=e.modelName||"text";if(t in this._modelFactories){i.push(e)}}return i}defaultRenderedWidgetFactory(e){const t=this.getFileTypesForPath(s.PathExt.basename(e)).map((e=>e.name));for(const n in t){if(n in this._defaultWidgetFactoryOverrides){return this._widgetFactories[this._defaultWidgetFactoryOverrides[n]]}}for(const n in t){if(n in this._defaultRenderedWidgetFactories){return this._widgetFactories[this._defaultRenderedWidgetFactories[n]]}}return this.defaultWidgetFactory(e)}defaultWidgetFactory(e){if(!e){return this._widgetFactories[this._defaultWidgetFactory]}return this.preferredWidgetFactories(e)[0]}setDefaultWidgetFactory(e,t){e=e.toLowerCase();if(!this.getFileType(e)){throw Error(`Cannot find file type ${e}`)}if(!t){if(this._defaultWidgetFactoryOverrides[e]){delete this._defaultWidgetFactoryOverrides[e]}return}if(!this.getWidgetFactory(t)){throw Error(`Cannot find widget factory ${t}`)}t=t.toLowerCase();const n=this._widgetFactoriesForFileType[e];if(t!==this._defaultWidgetFactory&&!(n&&n.includes(t))){throw Error(`Factory ${t} cannot view file type ${e}`)}this._defaultWidgetFactoryOverrides[e]=t}*widgetFactories(){for(const e in this._widgetFactories){yield this._widgetFactories[e]}}*modelFactories(){for(const e in this._modelFactories){yield this._modelFactories[e]}}*widgetExtensions(e){e=e.toLowerCase();if(e in this._extenders){for(const t of this._extenders[e]){yield t}}}*fileTypes(){for(const e of this._fileTypes){yield e}}getWidgetFactory(e){return this._widgetFactories[e.toLowerCase()]}getModelFactory(e){return this._modelFactories[e.toLowerCase()]}getFileType(e){e=e.toLowerCase();return(0,j.find)(this._fileTypes,(t=>t.name.toLowerCase()===e))}getKernelPreference(e,t,n){t=t.toLowerCase();const i=this._widgetFactories[t];if(!i){return void 0}const o=this.getModelFactory(i.modelName||"text");if(!o){return void 0}const r=o.preferredLanguage(s.PathExt.basename(e));const a=n&&n.name;const l=n&&n.id;return{id:l,name:a,language:r,shouldStart:i.preferKernel,canStart:i.canStartKernel,shutdownOnDispose:i.shutdownOnClose,autoStartDefault:i.autoStartDefault}}getFileTypeForModel(e){switch(e.type){case"directory":return(0,j.find)(this._fileTypes,(e=>e.contentType==="directory"))||M.getDefaultDirectoryFileType(this.translator);case"notebook":return(0,j.find)(this._fileTypes,(e=>e.contentType==="notebook"))||M.getDefaultNotebookFileType(this.translator);default:if(e.name||e.path){const t=e.name||s.PathExt.basename(e.path);const n=this.getFileTypesForPath(t);if(n.length>0){return n[0]}}return this.getFileType("text")||M.getDefaultTextFileType(this.translator)}}getFileTypesForPath(e){const t=[];const n=s.PathExt.basename(e);let i=(0,j.find)(this._fileTypes,(e=>!!(e.pattern&&n.match(e.pattern)!==null)));if(i){t.push(i)}let o=E.extname(n);while(o.length>1){const e=this._fileTypes.filter((e=>e.extensions.map((e=>e.toLowerCase())).includes(o)));t.push(...e);o="."+o.split(".").slice(2).join(".")}return t}}(function(e){function t(e){e=e||r.nullTranslator;const t=e===null||e===void 0?void 0:e.load("jupyterlab");return{name:"default",displayName:t.__("default"),extensions:[],mimeTypes:[],contentType:"file",fileFormat:"text"}}e.getFileTypeDefaults=t;function n(e){e=e||r.nullTranslator;const n=e===null||e===void 0?void 0:e.load("jupyterlab");const i=t(e);return{...i,name:"text",displayName:n.__("Text"),mimeTypes:["text/plain"],extensions:[".txt"],icon:k.fileIcon}}e.getDefaultTextFileType=n;function i(e){e=e||r.nullTranslator;const n=e===null||e===void 0?void 0:e.load("jupyterlab");return{...t(e),name:"notebook",displayName:n.__("Notebook"),mimeTypes:["application/x-ipynb+json"],extensions:[".ipynb"],contentType:"notebook",fileFormat:"json",icon:k.notebookIcon}}e.getDefaultNotebookFileType=i;function s(e){e=e||r.nullTranslator;const n=e===null||e===void 0?void 0:e.load("jupyterlab");return{...t(e),name:"directory",displayName:n.__("Directory"),extensions:[],mimeTypes:["text/directory"],contentType:"directory",icon:k.folderIcon}}e.getDefaultDirectoryFileType=s;function o(e){e=e||r.nullTranslator;const t=e===null||e===void 0?void 0:e.load("jupyterlab");return[n(e),i(e),s(e),{name:"markdown",displayName:t.__("Markdown File"),extensions:[".md"],mimeTypes:["text/markdown"],icon:k.markdownIcon},{name:"PDF",displayName:t.__("PDF File"),extensions:[".pdf"],mimeTypes:["application/pdf"],icon:k.pdfIcon},{name:"python",displayName:t.__("Python File"),extensions:[".py"],mimeTypes:["text/x-python"],icon:k.pythonIcon},{name:"json",displayName:t.__("JSON File"),extensions:[".json"],mimeTypes:["application/json"],icon:k.jsonIcon},{name:"julia",displayName:t.__("Julia File"),extensions:[".jl"],mimeTypes:["text/x-julia"],icon:k.juliaIcon},{name:"csv",displayName:t.__("CSV File"),extensions:[".csv"],mimeTypes:["text/csv"],icon:k.spreadsheetIcon},{name:"tsv",displayName:t.__("TSV File"),extensions:[".tsv"],mimeTypes:["text/csv"],icon:k.spreadsheetIcon},{name:"r",displayName:t.__("R File"),mimeTypes:["text/x-rsrc"],extensions:[".R"],icon:k.rKernelIcon},{name:"yaml",displayName:t.__("YAML File"),mimeTypes:["text/x-yaml","text/yaml"],extensions:[".yaml",".yml"],icon:k.yamlIcon},{name:"svg",displayName:t.__("Image"),mimeTypes:["image/svg+xml"],extensions:[".svg"],icon:k.imageIcon,fileFormat:"base64"},{name:"tiff",displayName:t.__("Image"),mimeTypes:["image/tiff"],extensions:[".tif",".tiff"],icon:k.imageIcon,fileFormat:"base64"},{name:"jpeg",displayName:t.__("Image"),mimeTypes:["image/jpeg"],extensions:[".jpg",".jpeg"],icon:k.imageIcon,fileFormat:"base64"},{name:"gif",displayName:t.__("Image"),mimeTypes:["image/gif"],extensions:[".gif"],icon:k.imageIcon,fileFormat:"base64"},{name:"png",displayName:t.__("Image"),mimeTypes:["image/png"],extensions:[".png"],icon:k.imageIcon,fileFormat:"base64"},{name:"bmp",displayName:t.__("Image"),mimeTypes:["image/bmp"],extensions:[".bmp"],icon:k.imageIcon,fileFormat:"base64"},{name:"webp",displayName:t.__("Image"),mimeTypes:["image/webp"],extensions:[".webp"],icon:k.imageIcon,fileFormat:"base64"}]}e.getDefaultFileTypes=o})(M||(M={}));var E;(function(e){function t(e){const t=s.PathExt.basename(e).split(".");t.shift();const n="."+t.join(".");return n.toLowerCase()}e.extname=t;function n(){}e.noOp=n})(E||(E={}))},94683:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(79536);var r=n(93379);var a=n.n(r);var l=n(7795);var d=n.n(l);var c=n(90569);var h=n.n(c);var u=n(3565);var p=n.n(u);var m=n(19216);var g=n.n(m);var f=n(44589);var v=n.n(f);var _=n(98491);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.Z,b);const w=_.Z&&_.Z.locals?_.Z.locals:undefined},25649:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>b});var i=n(74574);var s=n.n(i);var o=n(10759);var r=n.n(o);var a=n(20433);var l=n.n(a);var d=n(95811);var c=n.n(d);var h=n(6958);var u=n.n(h);var p=n(85448);var m=n.n(p);const g="jp-mod-searchable";var f;(function(e){e.search="documentsearch:start";e.searchAndReplace="documentsearch:startWithReplace";e.findNext="documentsearch:highlightNext";e.findPrevious="documentsearch:highlightPrevious";e.end="documentsearch:end"})(f||(f={}));const v={id:"@jupyterlab/documentsearch-extension:labShellWidgetListener",description:"Active search on valid document",requires:[i.ILabShell,a.ISearchProviderRegistry],autoStart:true,activate:(e,t,n)=>{const i=e=>{if(!e){return}if(n.hasProvider(e)){e.addClass(g)}else{e.removeClass(g)}};n.changed.connect((()=>i(t.activeWidget)));t.activeChanged.connect(((e,t)=>{const n=t.oldValue;if(n){n.removeClass(g)}i(t.newValue)}))}};const _={id:"@jupyterlab/documentsearch-extension:plugin",description:"Provides the document search registry.",provides:a.ISearchProviderRegistry,requires:[h.ITranslator],optional:[o.ICommandPalette,d.ISettingRegistry],autoStart:true,activate:(e,t,n,i)=>{const s=t.load("jupyterlab");let r=500;const l=new a.SearchProviderRegistry(t);const d=new Map;if(i){const t=i.load(_.id);const n=e=>{r=e.get("searchDebounceTime").composite};Promise.all([t,e.restored]).then((([e])=>{n(e);e.changed.connect((e=>{n(e)}))})).catch((e=>{console.error(e.message)}))}const c=()=>{const t=e.shell.currentWidget;if(!t){return false}return l.hasProvider(t)};const h=n=>{if(!n){return}const i=n.id;let s=d.get(i);if(!s){const o=l.getProvider(n);if(!o){return}const c=new a.SearchDocumentModel(o,r);const h=new a.SearchDocumentView(c,t);d.set(i,h);[f.findNext,f.findPrevious,f.end].forEach((t=>{e.commands.notifyCommandChanged(t)}));h.closed.connect((()=>{if(!n.isDisposed){n.activate()}}));h.disposed.connect((()=>{if(!n.isDisposed){n.activate()}d.delete(i);[f.findNext,f.findPrevious,f.end].forEach((t=>{e.commands.notifyCommandChanged(t)}))}));n.disposed.connect((()=>{h.dispose();c.dispose();o.dispose()}));s=h}if(!s.isAttached){p.Widget.attach(s,n.node);if(n instanceof o.MainAreaWidget){s.node.style.top=`${n.toolbar.node.getBoundingClientRect().height+n.contentHeader.node.getBoundingClientRect().height}px`}if(s.model.searchExpression){s.model.refresh()}}return s};e.commands.addCommand(f.search,{label:s.__("Find…"),isEnabled:c,execute:t=>{const n=h(e.shell.currentWidget);if(n){const e=t["searchText"];if(e){n.setSearchText(e)}else{n.setSearchText(n.model.suggestedInitialQuery)}n.focusSearchInput()}}});e.commands.addCommand(f.searchAndReplace,{label:s.__("Find and Replace…"),isEnabled:c,execute:t=>{const n=h(e.shell.currentWidget);if(n){const e=t["searchText"];if(e){n.setSearchText(e)}else{n.setSearchText(n.model.suggestedInitialQuery)}const i=t["replaceText"];if(i){n.setReplaceText(i)}n.showReplace();n.focusSearchInput()}}});e.commands.addCommand(f.findNext,{label:s.__("Find Next"),isEnabled:()=>!!e.shell.currentWidget&&d.has(e.shell.currentWidget.id),execute:async()=>{var t;const n=e.shell.currentWidget;if(!n){return}await((t=d.get(n.id))===null||t===void 0?void 0:t.model.highlightNext())}});e.commands.addCommand(f.findPrevious,{label:s.__("Find Previous"),isEnabled:()=>!!e.shell.currentWidget&&d.has(e.shell.currentWidget.id),execute:async()=>{var t;const n=e.shell.currentWidget;if(!n){return}await((t=d.get(n.id))===null||t===void 0?void 0:t.model.highlightPrevious())}});e.commands.addCommand(f.end,{label:s.__("End Search"),isEnabled:()=>!!e.shell.currentWidget&&d.has(e.shell.currentWidget.id),execute:async()=>{var t;const n=e.shell.currentWidget;if(!n){return}(t=d.get(n.id))===null||t===void 0?void 0:t.close()}});if(n){[f.search,f.findNext,f.findPrevious,f.end].forEach((e=>{n.addItem({command:e,category:s.__("Main Area")})}))}return l}};const b=[_,v]},81554:(e,t,n)=>{"use strict";var i=n(32902);var s=n(79536);var o=n(90516);var r=n(38613)},4239:(e,t,n)=>{"use strict";n.r(t);n.d(t,{FOUND_CLASSES:()=>a,GenericSearchProvider:()=>c,HTMLSearchEngine:()=>d,ISearchProviderRegistry:()=>ie,SearchDocumentModel:()=>g,SearchDocumentView:()=>Q,SearchProvider:()=>o,SearchProviderRegistry:()=>te,TextSearchEngine:()=>u});var i=n(85448);var s=n(71372);class o{constructor(e){this.widget=e;this._stateChanged=new s.Signal(this);this._filtersChanged=new s.Signal(this);this._disposed=false}get stateChanged(){return this._stateChanged}get filtersChanged(){return this._filtersChanged}get currentMatchIndex(){return null}get isDisposed(){return this._disposed}get matchesCount(){return null}dispose(){if(this._disposed){return}this._disposed=true;s.Signal.clearData(this)}getInitialQuery(){return""}getFilters(){return{}}static preserveCase(e,t){if(e.toUpperCase()===e){return t.toUpperCase()}if(e.toLowerCase()===e){return t.toLowerCase()}if(r(e)===e){return r(t)}return t}}function r([e="",...t]){return e.toUpperCase()+""+t.join("").toLowerCase()}const a=["cm-string","cm-overlay","cm-searching"];const l=["CodeMirror-selectedtext"];class d{static search(e,t){if(!(t instanceof Node)){console.warn("Unable to search with HTMLSearchEngine the provided object.",t);return Promise.resolve([])}if(!e.global){e=new RegExp(e.source,e.flags+"g")}const n=[];const i=document.createTreeWalker(t,NodeFilter.SHOW_TEXT,{acceptNode:n=>{let i=n.parentElement;while(i!==t){if(i.nodeName in d.UNSUPPORTED_ELEMENTS){return NodeFilter.FILTER_REJECT}i=i.parentElement}return e.test(n.textContent)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let s=null;while((s=i.nextNode())!==null){e.lastIndex=0;let t=null;while((t=e.exec(s.textContent))!==null){n.push({text:t[0],position:t.index,node:s})}}return Promise.resolve(n)}}d.UNSUPPORTED_ELEMENTS={BASE:true,HEAD:true,LINK:true,META:true,STYLE:true,TITLE:true,BODY:true,AREA:true,AUDIO:true,IMG:true,MAP:true,TRACK:true,VIDEO:true,APPLET:true,EMBED:true,IFRAME:true,NOEMBED:true,OBJECT:true,PARAM:true,PICTURE:true,SOURCE:true,CANVAS:true,NOSCRIPT:true,SCRIPT:true,SVG:true};class c extends o{constructor(){super(...arguments);this.isReadOnly=true;this._matches=[];this._mutationObserver=new MutationObserver(this._onWidgetChanged.bind(this));this._markNodes=new Array}static isApplicable(e){return e instanceof i.Widget}static createNew(e,t,n){return new c(e)}get currentMatchIndex(){return this._currentMatchIndex>=0?this._currentMatchIndex:null}get currentMatch(){var e;return(e=this._matches[this._currentMatchIndex])!==null&&e!==void 0?e:null}get matches(){return this._matches?this._matches.map((e=>Object.assign({},e))):this._matches}get matchesCount(){return this._matches.length}clearHighlight(){if(this._currentMatchIndex>=0){const e=this._markNodes[this._currentMatchIndex];e.classList.remove(...l)}this._currentMatchIndex=-1;return Promise.resolve()}dispose(){if(this.isDisposed){return}this.endQuery().catch((e=>{console.error(`Failed to end search query.`,e)}));super.dispose()}async highlightNext(e){var t;return(t=this._highlightNext(false,e!==null&&e!==void 0?e:true))!==null&&t!==void 0?t:undefined}async highlightPrevious(e){var t;return(t=this._highlightNext(true,e!==null&&e!==void 0?e:true))!==null&&t!==void 0?t:undefined}async replaceCurrentMatch(e,t){return Promise.resolve(false)}async replaceAllMatches(e){return Promise.resolve(false)}async startQuery(e,t={}){await this.endQuery();this._query=e;if(e===null){return Promise.resolve()}const n=await d.search(e,this.widget.node);let i=0;while(i{const i=document.createElement("mark");i.classList.add(...a);i.textContent=n.text;const s=e.splitText(n.position);s.textContent=s.textContent.slice(n.text.length);t.insertBefore(i,s);return i}));for(let n=o.length-1;n>=0;n--){this._markNodes.push(o[n])}}this._mutationObserver.observe(this.widget.node,{attributes:false,characterData:true,childList:true,subtree:true});this._matches=n}async endQuery(){this._mutationObserver.disconnect();this._markNodes.forEach((e=>{const t=e.parentNode;t.replaceChild(document.createTextNode(e.textContent),e);t.normalize()}));this._markNodes=[];this._matches=[];this._currentMatchIndex=-1}_highlightNext(e,t){if(this._matches.length===0){return null}if(this._currentMatchIndex===-1){this._currentMatchIndex=e?this.matches.length-1:0}else{const n=this._markNodes[this._currentMatchIndex];n.classList.remove(...l);this._currentMatchIndex=e?this._currentMatchIndex-1:this._currentMatchIndex+1;if(t&&(this._currentMatchIndex<0||this._currentMatchIndex>=this._matches.length)){this._currentMatchIndex=(this._currentMatchIndex+this._matches.length)%this._matches.length}}if(this._currentMatchIndex>=0&&this._currentMatchIndex=0&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)&&t.left>=0&&t.right<=(window.innerWidth||document.documentElement.clientWidth)}const u={search(e,t){if(typeof t!=="string"){try{t=JSON.stringify(t)}catch(s){console.warn("Unable to search with TextSearchEngine non-JSON serializable object.",s,t);return Promise.resolve([])}}if(!e.global){e=new RegExp(e.source,e.flags+"g")}const n=new Array;let i=null;while((i=e.exec(t))!==null){n.push({text:i[0],position:i.index})}return Promise.resolve(n)}};var p=n(4148);var m=n(95905);class g extends p.VDomModel{constructor(e,t){super();this.searchProvider=e;this._caseSensitive=false;this._disposed=new s.Signal(this);this._parsingError="";this._preserveCase=false;this._initialQuery="";this._filters={};this._replaceText="";this._searchExpression="";this._useRegex=false;this._wholeWords=false;this._filters={};if(this.searchProvider.getFilters){const e=this.searchProvider.getFilters();for(const t in e){this._filters[t]=e[t].default}}e.stateChanged.connect(this.refresh,this);this._searchDebouncer=new m.Debouncer((()=>{this._updateSearch().catch((e=>{console.error("Failed to update search on document.",e)}))}),t)}get caseSensitive(){return this._caseSensitive}set caseSensitive(e){if(this._caseSensitive!==e){this._caseSensitive=e;this.stateChanged.emit();this.refresh()}}get currentIndex(){return this.searchProvider.currentMatchIndex}get disposed(){return this._disposed}get filters(){return this._filters}get filtersDefinition(){var e,t,n;return(n=(t=(e=this.searchProvider).getFilters)===null||t===void 0?void 0:t.call(e))!==null&&n!==void 0?n:{}}get filtersDefinitionChanged(){return this.searchProvider.filtersChanged||null}get initialQuery(){return this._initialQuery}set initialQuery(e){if(e){this._initialQuery=e}else{this._initialQuery=this._searchExpression}}get suggestedInitialQuery(){return this.searchProvider.getInitialQuery()}get isReadOnly(){return this.searchProvider.isReadOnly}get replaceOptionsSupport(){return this.searchProvider.replaceOptionsSupport}get parsingError(){return this._parsingError}get preserveCase(){return this._preserveCase}set preserveCase(e){if(this._preserveCase!==e){this._preserveCase=e;this.stateChanged.emit();this.refresh()}}get replaceText(){return this._replaceText}set replaceText(e){if(this._replaceText!==e){this._replaceText=e;this.stateChanged.emit()}}get searchExpression(){return this._searchExpression}set searchExpression(e){if(this._searchExpression!==e){this._searchExpression=e;this.stateChanged.emit();this.refresh()}}get totalMatches(){return this.searchProvider.matchesCount}get useRegex(){return this._useRegex}set useRegex(e){if(this._useRegex!==e){this._useRegex=e;this.stateChanged.emit();this.refresh()}}get wholeWords(){return this._wholeWords}set wholeWords(e){if(this._wholeWords!==e){this._wholeWords=e;this.stateChanged.emit();this.refresh()}}dispose(){if(this.isDisposed){return}if(this._searchExpression){this.endQuery().catch((e=>{console.error(`Failed to end query '${this._searchExpression}.`,e)}))}this.searchProvider.stateChanged.disconnect(this.refresh,this);this._searchDebouncer.dispose();super.dispose()}async endQuery(){await this.searchProvider.endQuery();this.stateChanged.emit()}async highlightNext(){await this.searchProvider.highlightNext();this.stateChanged.emit()}async highlightPrevious(){await this.searchProvider.highlightPrevious();this.stateChanged.emit()}refresh(){this._searchDebouncer.invoke().catch((e=>{console.error("Failed to invoke search document debouncer.",e)}))}async replaceAllMatches(){await this.searchProvider.replaceAllMatches(this._replaceText,{preserveCase:this.preserveCase,regularExpression:this.useRegex});this.stateChanged.emit()}async replaceCurrentMatch(){await this.searchProvider.replaceCurrentMatch(this._replaceText,true,{preserveCase:this.preserveCase,regularExpression:this.useRegex});this.stateChanged.emit()}async setFilter(e,t){if(this._filters[e]!==t){if(this.searchProvider.validateFilter){this._filters[e]=await this.searchProvider.validateFilter(e,t);if(this._filters[e]===t){this.stateChanged.emit();this.refresh()}}else{this._filters[e]=t;this.stateChanged.emit();this.refresh()}}}async _updateSearch(){if(this._parsingError){this._parsingError="";this.stateChanged.emit()}try{const e=this.searchExpression?f.parseQuery(this.searchExpression,this.caseSensitive,this.useRegex,this.wholeWords):null;if(e){await this.searchProvider.startQuery(e,this._filters);this.stateChanged.emit()}}catch(e){this._parsingError=e.toString();this.stateChanged.emit();console.error(`Failed to parse expression ${this.searchExpression}`,e)}}}var f;(function(e){function t(e,t,n,i){const s=t?"gm":"gim";let o=n?e:e.replace(/[-[\]/{}()*+?.\\^$|]/g,"\\$&");if(i){o="\\b"+o+"\\b"}const r=new RegExp(o,s);if(r.test("")){return null}return r}e.parseQuery=t})(f||(f={}));var v=n(6958);var _=n(10759);var b=n(28416);const y="jp-DocumentSearch-overlay";const w="jp-DocumentSearch-overlay-row";const C="jp-DocumentSearch-input";const x="jp-DocumentSearch-input-label";const S="jp-DocumentSearch-input-wrapper";const k="jp-DocumentSearch-input-button-off";const j="jp-DocumentSearch-input-button-on";const M="jp-DocumentSearch-index-counter";const E="jp-DocumentSearch-up-down-wrapper";const I="jp-DocumentSearch-up-down-button";const T="jp-DocumentSearch-filter-button";const D="jp-DocumentSearch-filter-button-enabled";const L="jp-DocumentSearch-regex-error";const P="jp-DocumentSearch-search-options";const A="jp-DocumentSearch-search-filter-disabled";const R="jp-DocumentSearch-search-filter";const N="jp-DocumentSearch-replace-button";const O="jp-DocumentSearch-replace-button-wrapper";const B="jp-DocumentSearch-replace-wrapper-class";const F="jp-DocumentSearch-replace-toggle";const z="jp-DocumentSearch-toggle-wrapper";const H="jp-DocumentSearch-toggle-placeholder";const W="jp-DocumentSearch-button-content";const V="jp-DocumentSearch-button-wrapper";const U="jp-DocumentSearch-spacer";function $(e){const[t,n]=(0,b.useState)(1);const i=(0,b.useCallback)((t=>{var i;const s=t?t.target:(i=e.inputRef)===null||i===void 0?void 0:i.current;if(s){const e=s.value.split(/\n/);let t=e.reduce(((e,t)=>e.length>t.length?e:t),"");if(s.parentNode&&s.parentNode instanceof HTMLElement){s.parentNode.dataset.value=t}n(e.length)}}),[]);(0,b.useEffect)((()=>{var t,n;(n=(t=e.inputRef)===null||t===void 0?void 0:t.current)===null||n===void 0?void 0:n.select();i()}),[e.initialValue]);return b.createElement("label",{className:x},b.createElement("textarea",{onChange:t=>{e.onChange(t);i(t)},onKeyDown:t=>{e.onKeyDown(t);i(t)},rows:t,placeholder:e.placeholder,className:C,key:e.autoUpdate?e.initialValue:null,tabIndex:0,ref:e.inputRef,title:e.title,defaultValue:e.initialValue,autoFocus:e.autoFocus}))}function q(e){var t;const n=((t=e.translator)!==null&&t!==void 0?t:v.nullTranslator).load("jupyterlab");const i=(0,p.classes)(e.caseSensitive?j:k,W);const s=(0,p.classes)(e.useRegex?j:k,W);const o=(0,p.classes)(e.wholeWords?j:k,W);const r=S;return b.createElement("div",{className:r},b.createElement($,{placeholder:n.__("Find"),onChange:t=>e.onChange(t),onKeyDown:t=>e.onKeydown(t),inputRef:e.inputRef,initialValue:e.initialSearchText,title:n.__("Find"),autoFocus:true,autoUpdate:true}),b.createElement("button",{className:V,onClick:()=>{e.onCaseSensitiveToggled()},tabIndex:0,title:n.__("Match Case")},b.createElement(p.caseSensitiveIcon.react,{className:i,tag:"span"})),b.createElement("button",{className:V,onClick:()=>e.onWordToggled(),tabIndex:0,title:n.__("Match Whole Word")},b.createElement(p.wordIcon.react,{className:o,tag:"span"})),b.createElement("button",{className:V,onClick:()=>e.onRegexToggled(),tabIndex:0,title:n.__("Use Regular Expression")},b.createElement(p.regexIcon.react,{className:s,tag:"span"})))}function K(e){var t,n,i;const s=((t=e.translator)!==null&&t!==void 0?t:v.nullTranslator).load("jupyterlab");const o=(0,p.classes)(e.preserveCase?j:k,W);return b.createElement("div",{className:B},b.createElement("div",{className:S},b.createElement($,{placeholder:s.__("Replace"),initialValue:(n=e.replaceText)!==null&&n!==void 0?n:"",onKeyDown:t=>e.onReplaceKeydown(t),onChange:t=>e.onChange(t),title:s.__("Replace"),autoFocus:false,autoUpdate:false}),((i=e.replaceOptionsSupport)===null||i===void 0?void 0:i.preserveCase)?b.createElement("button",{className:V,onClick:()=>e.onPreserveCaseToggled(),tabIndex:0,title:s.__("Preserve Case")},b.createElement(p.caseSensitiveIcon.react,{className:o,tag:"span"})):null),b.createElement("button",{className:O,onClick:()=>e.onReplaceCurrent(),tabIndex:0},b.createElement("span",{className:`${N} ${W}`,tabIndex:0},s.__("Replace"))),b.createElement("button",{className:O,tabIndex:0,onClick:()=>e.onReplaceAll()},b.createElement("span",{className:`${N} ${W}`,tabIndex:-1},s.__("Replace All"))))}function J(e){return b.createElement("div",{className:E},b.createElement("button",{className:V,onClick:()=>e.onHighlightPrevious(),tabIndex:0,title:e.trans.__("Previous Match")},b.createElement(p.caretUpEmptyThinIcon.react,{className:(0,p.classes)(I,W),tag:"span"})),b.createElement("button",{className:V,onClick:()=>e.onHighlightNext(),tabIndex:0,title:e.trans.__("Next Match")},b.createElement(p.caretDownEmptyThinIcon.react,{className:(0,p.classes)(I,W),tag:"span"})))}function Z(e){return b.createElement("div",{className:M},e.totalMatches===0?"-/-":`${e.currentIndex===null?"-":e.currentIndex+1}/${e.totalMatches}`)}function G(e){let t=`${T} ${W}`;if(e.visible){t=`${t} ${D}`}const n=e.anyEnabled?p.filterDotIcon:p.filterIcon;return b.createElement("button",{className:V,onClick:()=>e.toggleVisible(),tabIndex:0,title:e.visible?e.trans.__("Hide Search Filters"):e.trans.__("Show Search Filters")},b.createElement(n.react,{className:t,tag:"span",height:"20px",width:"20px"}))}function Y(e){return b.createElement("label",{className:e.isEnabled?R:`${R} ${A}`,title:e.description},b.createElement("input",{type:"checkbox",className:"jp-mod-styled",disabled:!e.isEnabled,checked:e.value,onChange:e.onToggle}),e.title)}class X extends b.Component{constructor(e){super(e);this.translator=e.translator||v.nullTranslator}_onSearchChange(e){const t=e.target.value;this.props.onSearchChanged(t)}_onSearchKeydown(e){if(e.keyCode===13){e.stopPropagation();e.preventDefault();if(e.ctrlKey){const t=e.target;this._insertNewLine(t);this.props.onSearchChanged(t.value)}else{e.shiftKey?this.props.onHighlightPrevious():this.props.onHighlightNext()}}}_onReplaceKeydown(e){if(e.keyCode===13){e.stopPropagation();e.preventDefault();if(e.ctrlKey){this._insertNewLine(e.target)}else{this.props.onReplaceCurrent()}}}_insertNewLine(e){const[t,n]=[e.selectionStart,e.selectionEnd];e.setRangeText("\n",t,n,"end")}_onClose(){this.props.onClose()}_onReplaceToggled(){if(!this.props.replaceEntryVisible){for(const e in this.props.filtersDefinition){const t=this.props.filtersDefinition[e];if(!t.supportReplace){this.props.onFilterChanged(e,false).catch((e=>{console.error(`Fail to update filter value for ${t.title}:\n${e}`)}))}}}this.props.onReplaceEntryShown(!this.props.replaceEntryVisible)}_toggleFiltersVisibility(){this.props.onFiltersVisibilityChanged(!this.props.filtersVisible)}render(){var e;const t=this.translator.load("jupyterlab");const n=!this.props.isReadOnly&&this.props.replaceEntryVisible;const i=this.props.filtersDefinition;const s=Object.keys(i).length>0;const o=s?b.createElement(G,{visible:this.props.filtersVisible,anyEnabled:Object.keys(i).some((e=>{var t;const n=i[e];return(t=this.props.filters[e])!==null&&t!==void 0?t:n.default})),toggleVisible:()=>this._toggleFiltersVisibility(),trans:t}):null;const r=s?b.createElement("div",{className:P},Object.keys(i).map((e=>{var t;const s=i[e];return b.createElement(Y,{key:e,title:s.title,description:s.description,isEnabled:!n||s.supportReplace,onToggle:async()=>{await this.props.onFilterChanged(e,!this.props.filters[e])},value:(t=this.props.filters[e])!==null&&t!==void 0?t:s.default})}))):null;const a=this.props.replaceEntryVisible?p.caretDownIcon:p.caretRightIcon;return b.createElement(b.Fragment,null,b.createElement("div",{className:w},this.props.isReadOnly?b.createElement("div",{className:H}):b.createElement("button",{className:z,onClick:()=>this._onReplaceToggled(),tabIndex:0,title:t.__("Toggle Replace")},b.createElement(a.react,{className:`${F} ${W}`,tag:"span",elementPosition:"center",height:"20px",width:"20px"})),b.createElement(q,{inputRef:this.props.searchInputRef,useRegex:this.props.useRegex,caseSensitive:this.props.caseSensitive,wholeWords:this.props.wholeWords,onCaseSensitiveToggled:this.props.onCaseSensitiveToggled,onRegexToggled:this.props.onRegexToggled,onWordToggled:this.props.onWordToggled,onKeydown:e=>this._onSearchKeydown(e),onChange:e=>this._onSearchChange(e),initialSearchText:this.props.initialSearchText,translator:this.translator}),o,b.createElement(Z,{currentIndex:this.props.currentIndex,totalMatches:(e=this.props.totalMatches)!==null&&e!==void 0?e:0}),b.createElement(J,{onHighlightPrevious:()=>{this.props.onHighlightPrevious()},onHighlightNext:()=>{this.props.onHighlightNext()},trans:t}),b.createElement("button",{className:V,onClick:()=>this._onClose(),tabIndex:0},b.createElement(p.closeIcon.react,{className:"jp-icon-hover",elementPosition:"center",height:"16px",width:"16px"}))),b.createElement("div",{className:w},n?b.createElement(b.Fragment,null,b.createElement(K,{onPreserveCaseToggled:this.props.onPreserveCaseToggled,onReplaceKeydown:e=>this._onReplaceKeydown(e),onChange:e=>this.props.onReplaceChanged(e.target.value),onReplaceCurrent:()=>this.props.onReplaceCurrent(),onReplaceAll:()=>this.props.onReplaceAll(),replaceOptionsSupport:this.props.replaceOptionsSupport,replaceText:this.props.replaceText,preserveCase:this.props.preserveCase,translator:this.translator}),b.createElement("div",{className:U})):null),this.props.filtersVisible?r:null,!!this.props.errorMessage&&b.createElement("div",{className:L},this.props.errorMessage))}}class Q extends p.VDomRenderer{constructor(e,t){super(e);this.translator=t;this._showReplace=false;this._showFilters=false;this._closed=new s.Signal(this);this.addClass(y);this._searchInput=b.createRef()}get closed(){return this._closed}focusSearchInput(){var e;(e=this._searchInput.current)===null||e===void 0?void 0:e.select()}setSearchText(e){this.model.initialQuery=e;if(e){this.model.searchExpression=e}}setReplaceText(e){this.model.replaceText=e}showReplace(){this.setReplaceInputVisibility(true)}onCloseRequest(e){super.onCloseRequest(e);this._closed.emit();void this.model.endQuery()}setReplaceInputVisibility(e){if(this._showReplace!==e){this._showReplace=e;this.update()}}setFiltersVisibility(e){if(this._showFilters!==e){this._showFilters=e;this.update()}}render(){return this.model.filtersDefinitionChanged?b.createElement(_.UseSignal,{signal:this.model.filtersDefinitionChanged},(()=>this._renderOverlay())):this._renderOverlay()}_renderOverlay(){return b.createElement(X,{caseSensitive:this.model.caseSensitive,currentIndex:this.model.currentIndex,isReadOnly:this.model.isReadOnly,errorMessage:this.model.parsingError,filters:this.model.filters,filtersDefinition:this.model.filtersDefinition,preserveCase:this.model.preserveCase,replaceEntryVisible:this._showReplace,filtersVisible:this._showFilters,replaceOptionsSupport:this.model.replaceOptionsSupport,replaceText:this.model.replaceText,initialSearchText:this.model.initialQuery,searchInputRef:this._searchInput,totalMatches:this.model.totalMatches,translator:this.translator,useRegex:this.model.useRegex,wholeWords:this.model.wholeWords,onCaseSensitiveToggled:()=>{this.model.caseSensitive=!this.model.caseSensitive},onRegexToggled:()=>{this.model.useRegex=!this.model.useRegex},onWordToggled:()=>{this.model.wholeWords=!this.model.wholeWords},onFilterChanged:async(e,t)=>{await this.model.setFilter(e,t)},onFiltersVisibilityChanged:e=>{this.setFiltersVisibility(e)},onHighlightNext:()=>{void this.model.highlightNext()},onHighlightPrevious:()=>{void this.model.highlightPrevious()},onPreserveCaseToggled:()=>{this.model.preserveCase=!this.model.preserveCase},onSearchChanged:e=>{this.model.searchExpression=e},onClose:()=>{this.close()},onReplaceEntryShown:e=>{this.setReplaceInputVisibility(e)},onReplaceChanged:e=>{this.model.replaceText=e},onReplaceCurrent:()=>{void this.model.replaceCurrentMatch()},onReplaceAll:()=>{void this.model.replaceAllMatches()}})}}var ee=n(26512);class te{constructor(e=v.nullTranslator){this.translator=e;this._changed=new s.Signal(this);this._providerMap=new Map}add(e,t){this._providerMap.set(e,t);this._changed.emit();return new ee.DisposableDelegate((()=>{this._providerMap.delete(e);this._changed.emit()}))}getProvider(e){for(const t of this._providerMap.values()){if(t.isApplicable(e)){return t.createNew(e,this.translator)}}return undefined}hasProvider(e){for(const t of this._providerMap.values()){if(t.isApplicable(e)){return true}}return false}get changed(){return this._changed}}var ne=n(5596);const ie=new ne.Token("@jupyterlab/documentsearch:ISearchProviderRegistry",`A service for a registry of search\n providers for the application. Plugins can register their UI elements with this registry\n to provide find/replace support.`)},38613:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(79536);var r=n(93379);var a=n.n(r);var l=n(7795);var d=n.n(l);var c=n(90569);var h=n.n(c);var u=n(3565);var p=n.n(u);var m=n(19216);var g=n.n(m);var f=n(44589);var v=n.n(f);var _=n(52215);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.Z,b);const w=_.Z&&_.Z.locals?_.Z.locals:undefined},32601:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>_});var i=n(74574);var s=n.n(i);var o=n(10759);var r=n.n(o);var a=n(19548);var l=n.n(a);var d=n(95811);var c=n.n(d);var h=n(6958);var u=n.n(h);var p=n(4148);var m=n.n(p);const g="@jupyterlab/extensionmanager-extension:plugin";var f;(function(e){e.showPanel="extensionmanager:show-panel";e.toggle="extensionmanager:toggle"})(f||(f={}));const v={id:g,description:"Adds the extension manager plugin.",autoStart:true,requires:[d.ISettingRegistry],optional:[h.ITranslator,i.ILayoutRestorer,o.ICommandPalette],activate:async(e,t,n,i,s)=>{const{commands:o,shell:r,serviceManager:l}=e;n=n!==null&&n!==void 0?n:h.nullTranslator;const d=n.load("jupyterlab");const c=new a.ListModel(l,n);const u=()=>{const e=new a.ExtensionsPanel({model:c,translator:n});e.id="extensionmanager.main-view";e.title.icon=p.extensionIcon;e.title.caption=d.__("Extension Manager");e.node.setAttribute("role","region");e.node.setAttribute("aria-label",d.__("Extension Manager section"));if(i){i.add(e,e.id)}r.add(e,"left",{rank:1e3});return e};let m=u();Promise.all([e.restored,t.load(g)]).then((([,t])=>{c.isDisclaimed=t.get("disclaimed").composite;c.isEnabled=t.get("enabled").composite;c.stateChanged.connect((()=>{if(c.isDisclaimed!==t.get("disclaimed").composite){t.set("disclaimed",c.isDisclaimed).catch((e=>{console.error(`Failed to set setting 'disclaimed'.\n${e}`)}))}if(c.isEnabled!==t.get("enabled").composite){t.set("enabled",c.isEnabled).catch((e=>{console.error(`Failed to set setting 'enabled'.\n${e}`)}))}}));if(c.isEnabled){m=m!==null&&m!==void 0?m:u()}else{m===null||m===void 0?void 0:m.dispose();m=null}t.changed.connect((async()=>{c.isDisclaimed=t.get("disclaimed").composite;c.isEnabled=t.get("enabled").composite;e.commands.notifyCommandChanged(f.toggle);if(c.isEnabled){if(m===null||!m.isAttached){const e=await b.showWarning(d);if(!e){void t.set("enabled",false);return}}m=m!==null&&m!==void 0?m:u()}else{m===null||m===void 0?void 0:m.dispose();m=null}}))})).catch((e=>{console.error(`Something went wrong when reading the settings.\n${e}`)}));o.addCommand(f.showPanel,{label:d.__("Extension Manager"),execute:()=>{if(m){r.activateById(m.id)}},isVisible:()=>c.isEnabled});o.addCommand(f.toggle,{label:d.__("Enable Extension Manager"),execute:()=>{if(t){void t.set(v.id,"enabled",!c.isEnabled)}},isToggled:()=>c.isEnabled});if(s){s.addItem({command:f.toggle,category:d.__("Extension Manager")})}}};const _=v;var b;(function(e){async function t(e){const t=await(0,o.showDialog)({title:e.__("Enable Extension Manager?"),body:e.__(`Thanks for trying out JupyterLab's extension manager.\nThe JupyterLab development team is excited to have a robust\nthird-party extension community.\nHowever, we cannot vouch for every extension,\nand some may introduce security risks.\nDo you want to continue?`),buttons:[o.Dialog.cancelButton({label:e.__("Disable")}),o.Dialog.warnButton({label:e.__("Enable")})]});return t.button.accept}e.showWarning=t})(b||(b={}))},67014:(e,t,n)=>{"use strict";var i=n(34849);var s=n(79536);var o=n(90516);var r=n(32902);var a=n(93379);var l=n.n(a);var d=n(7795);var c=n.n(d);var h=n(90569);var u=n.n(h);var p=n(3565);var m=n.n(p);var g=n(19216);var f=n.n(g);var v=n(44589);var _=n.n(v);var b=n(11988);var y={};y.styleTagTransform=_();y.setAttributes=m();y.insert=u().bind(null,"head");y.domAPI=c();y.insertStyleElement=f();var w=l()(b.Z,y);const C=b.Z&&b.Z.locals?b.Z.locals:undefined},83127:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ExtensionsPanel:()=>M,ListModel:()=>p});var i=n(10759);var s=n(20501);var o=n(96306);var r=n(6958);var a=n(4148);var l=n(95905);var d=n(81249);var c=n(28416);function h(e,t,n){n=n||r.nullTranslator;const s=n.load("jupyterlab");const o=[];o.push(c.createElement("p",null,s.__(`An error occurred installing "${e}".`)));if(t){o.push(c.createElement("p",null,c.createElement("span",{className:"jp-extensionmanager-dialog-subheader"},s.__("Error message:"))),c.createElement("pre",null,t.trim()))}const a=c.createElement("div",{className:"jp-extensionmanager-dialog"},o);void(0,i.showDialog)({title:s.__("Extension Installation Error"),body:a,buttons:[i.Dialog.warnButton({label:s.__("Ok")})]})}const u="lab/api/extensions";class p extends a.VDomModel{constructor(e,t){super();this.actionError=null;this.installedError=null;this.searchError=null;this.promptReload=false;this._isDisclaimed=false;this._isEnabled=false;this._isLoadingInstalledExtensions=false;this._isSearching=false;this._query="";this._page=1;this._pagination=30;this._lastPage=1;this._pendingActions=[];const n=JSON.parse(s.PageConfig.getOption("extensionManager")||"{}");this.name=n.name;this.canInstall=n.can_install;this.installPath=n.install_path;this.translator=t||r.nullTranslator;this._installed=[];this._lastSearchResult=[];this.serviceManager=e;this._debouncedSearch=new l.Debouncer(this.search.bind(this),1e3)}get installed(){return this._installed}get isDisclaimed(){return this._isDisclaimed}set isDisclaimed(e){if(e!==this._isDisclaimed){this._isDisclaimed=e;this.stateChanged.emit();void this._debouncedSearch.invoke()}}get isEnabled(){return this._isEnabled}set isEnabled(e){if(e!==this._isEnabled){this._isEnabled=e;this.stateChanged.emit()}}get isLoadingInstalledExtensions(){return this._isLoadingInstalledExtensions}get isSearching(){return this._isSearching}get searchResult(){return this._lastSearchResult}get query(){return this._query}set query(e){if(this._query!==e){this._query=e;this._page=1;void this._debouncedSearch.invoke()}}get page(){return this._page}set page(e){if(this._page!==e){this._page=e;void this._debouncedSearch.invoke()}}get pagination(){return this._pagination}set pagination(e){if(this._pagination!==e){this._pagination=e;void this._debouncedSearch.invoke()}}get lastPage(){return this._lastPage}dispose(){if(this.isDisposed){return}this._debouncedSearch.dispose();super.dispose()}hasPendingActions(){return this._pendingActions.length>0}async install(e){await this.performAction("install",e).then((t=>{if(t.status!=="ok"){h(e.name,t.message,this.translator)}return this.update(true)}))}async uninstall(e){if(!e.installed){throw new Error(`Not installed, cannot uninstall: ${e.name}`)}await this.performAction("uninstall",e);return this.update(true)}async enable(e){if(e.enabled){throw new Error(`Already enabled: ${e.name}`)}await this.performAction("enable",e);await this.refreshInstalled(true)}async disable(e){if(!e.enabled){throw new Error(`Already disabled: ${e.name}`)}await this.performAction("disable",e);await this.refreshInstalled(true)}async refreshInstalled(e=false){this.installedError=null;this._isLoadingInstalledExtensions=true;this.stateChanged.emit();try{const[t]=await m.requestAPI({refresh:e?1:0});this._installed=t.sort(m.comparator)}catch(t){this.installedError=t.toString()}finally{this._isLoadingInstalledExtensions=false;this.stateChanged.emit()}}async search(e=false){var t,n;if(!this.isDisclaimed){return Promise.reject("Installation warning is not disclaimed.")}this.searchError=null;this._isSearching=true;this.stateChanged.emit();try{const[i,o]=await m.requestAPI({query:(t=this.query)!==null&&t!==void 0?t:"",page:this.page,per_page:this.pagination,refresh:e?1:0});const r=o["last"];if(r){const e=s.URLExt.queryStringToObject((n=s.URLExt.parse(r).search)!==null&&n!==void 0?n:"")["page"];if(e){this._lastPage=parseInt(e,10)}}const a=this._installed.map((e=>e.name));this._lastSearchResult=i.filter((e=>!a.includes(e.name))).sort(m.comparator)}catch(i){this.searchError=i.toString()}finally{this._isSearching=false;this.stateChanged.emit()}}async update(e=false){if(this.isDisclaimed){await this.refreshInstalled(e);await this.search()}}performAction(e,t){const n=m.requestAPI({},{method:"POST",body:JSON.stringify({cmd:e,extension_name:t.name})});n.then((([e])=>{const t=this.translator.load("jupyterlab");if(e.needs_restart.includes("server")){void(0,i.showDialog)({title:t.__("Information"),body:t.__("You will need to restart JupyterLab to apply the changes."),buttons:[i.Dialog.okButton({label:t.__("Ok")})]})}else{const n=[];if(e.needs_restart.includes("frontend")){n.push(window.isElectron?t.__("reload JupyterLab"):t.__("refresh the web page"))}if(e.needs_restart.includes("kernel")){n.push(t.__("install the extension in all kernels and restart them"))}void(0,i.showDialog)({title:t.__("Information"),body:t.__("You will need to %1 to apply the changes.",n.join(t.__(" and "))),buttons:[i.Dialog.okButton({label:t.__("Ok")})]})}this.actionError=null}),(e=>{this.actionError=e.toString()}));this.addPendingAction(n);return n.then((([e])=>e))}addPendingAction(e){this._pendingActions.push(e);const t=()=>{const t=this._pendingActions.indexOf(e);this._pendingActions.splice(t,1);this.stateChanged.emit(undefined)};e.then(t,t);this.stateChanged.emit(undefined)}}(function(e){function t(e){if(!e.installed||!e.latest_version){return false}return d.lt(e.installed_version,e.latest_version)}e.entryHasUpdate=t})(p||(p={}));var m;(function(e){function t(e,t){if(e.name===t.name){return 0}else{return e.name>t.name?1:-1}}e.comparator=t;const n=/<([^>]+)>; rel="([^"]+)",?/g;async function i(e={},t={}){var i;const r=o.ServerConnection.makeSettings();const a=s.URLExt.join(r.baseUrl,u);let l;try{l=await o.ServerConnection.makeRequest(a+s.URLExt.objectToQueryString(e),t,r)}catch(m){throw new o.ServerConnection.NetworkError(m)}let d=await l.text();if(d.length>0){try{d=JSON.parse(d)}catch(m){console.log("Not a JSON response body.",l)}}if(!l.ok){throw new o.ServerConnection.ResponseError(l,d.message||d)}const c=(i=l.headers.get("Link"))!==null&&i!==void 0?i:"";const h={};let p=null;while((p=n.exec(c))!==null){h[p[2]]=p[1]}return[d,h]}e.requestAPI=i})(m||(m={}));var g=n(11358);var f=n.n(g);const v=32;const _=Math.floor(devicePixelRatio*v);function b(e){if(e.homepage_url&&e.homepage_url.startsWith("https://github.com/")){return e.homepage_url.split("/")[3]}else if(e.repository_url&&e.repository_url.startsWith("https://github.com/")){return e.repository_url.split("/")[3]}return null}function y(e){const{canFetch:t,entry:n,supportInstallation:i,trans:s}=e;const o=[];if(n.status&&["ok","warning","error"].indexOf(n.status)!==-1){o.push(`jp-extensionmanager-entry-${n.status}`)}const r=t?b(n):null;if(!n.allowed){o.push(`jp-extensionmanager-entry-should-be-uninstalled`)}return c.createElement("li",{className:`jp-extensionmanager-entry ${o.join(" ")}`,style:{display:"flex"}},c.createElement("div",{style:{marginRight:"8px"}},r?c.createElement("img",{src:`https://github.com/${r}.png?size=${_}`,style:{width:"32px",height:"32px"}}):c.createElement("div",{style:{width:`${v}px`,height:`${v}px`}})),c.createElement("div",{className:"jp-extensionmanager-entry-description"},c.createElement("div",{className:"jp-extensionmanager-entry-title"},c.createElement("div",{className:"jp-extensionmanager-entry-name"},n.homepage_url?c.createElement("a",{href:n.homepage_url,target:"_blank",rel:"noopener noreferrer",title:s.__("%1 extension home page",n.name)},n.name):c.createElement("div",null,n.name)),c.createElement("div",{className:"jp-extensionmanager-entry-version"},c.createElement("div",{title:s.__("Version: %1",n.installed_version)},n.installed_version)),n.installed&&!n.allowed&&c.createElement(a.ToolbarButtonComponent,{icon:a.infoIcon,iconLabel:s.__("%1 extension is not allowed anymore. Please uninstall it immediately or contact your administrator.",n.name),onClick:()=>window.open("https://jupyterlab.readthedocs.io/en/stable/user/extensions.html")}),n.approved&&c.createElement(a.jupyterIcon.react,{className:"jp-extensionmanager-is-approved",top:"1px",height:"auto",width:"1em",title:s.__("This extension is approved by your security team.")})),c.createElement("div",{className:"jp-extensionmanager-entry-content"},c.createElement("div",{className:"jp-extensionmanager-entry-description"},n.description),e.performAction&&c.createElement("div",{className:"jp-extensionmanager-entry-buttons"},n.installed?c.createElement(c.Fragment,null,i&&c.createElement(c.Fragment,null,p.entryHasUpdate(n)&&c.createElement(a.Button,{onClick:()=>e.performAction("install",n),title:s.__('Update "%1" to "%2"',n.name,n.latest_version),minimal:true,small:true},s.__("Update to %1",n.latest_version)),c.createElement(a.Button,{onClick:()=>e.performAction("uninstall",n),title:s.__('Uninstall "%1"',n.name),minimal:true,small:true},s.__("Uninstall"))),n.enabled?c.createElement(a.Button,{onClick:()=>e.performAction("disable",n),title:s.__('Disable "%1"',n.name),minimal:true,small:true},s.__("Disable")):c.createElement(a.Button,{onClick:()=>e.performAction("enable",n),title:s.__('Enable "%1"',n.name),minimal:true,small:true},s.__("Enable"))):i&&c.createElement(a.Button,{onClick:()=>e.performAction("install",n),title:s.__('Install "%1"',n.name),minimal:true,small:true},s.__("Install"))))))}function w(e){var t;const{canFetch:n,performAction:i,supportInstallation:s,trans:o}=e;return c.createElement("div",{className:"jp-extensionmanager-listview-wrapper"},e.entries.length>0?c.createElement("ul",{className:"jp-extensionmanager-listview"},e.entries.map((e=>c.createElement(y,{key:e.name,canFetch:n,entry:e,performAction:i,supportInstallation:s,trans:o})))):c.createElement("div",{key:"message",className:"jp-extensionmanager-listview-message"},o.__("No entries")),e.numPages>1&&c.createElement("div",{className:"jp-extensionmanager-pagination"},c.createElement(f(),{previousLabel:"<",nextLabel:">",breakLabel:"...",breakClassName:"break",initialPage:((t=e.initialPage)!==null&&t!==void 0?t:1)-1,pageCount:e.numPages,marginPagesDisplayed:2,pageRangeDisplayed:3,onPageChange:t=>e.onPage(t.selected+1),activeClassName:"active"})))}function C(e){return c.createElement("div",{className:"jp-extensionmanager-error"},e.children)}class x extends a.ReactWidget{constructor(e,t,n){super();this.model=e;this.trans=t;this.searchInputRef=n;e.stateChanged.connect(this.update,this);this.addClass("jp-extensionmanager-header")}render(){return c.createElement(c.Fragment,null,c.createElement("div",{className:"jp-extensionmanager-title"},c.createElement("span",null,this.trans.__("%1 Manager",this.model.name)),this.model.installPath&&c.createElement(a.infoIcon.react,{className:"jp-extensionmanager-path",tag:"span",title:this.trans.__("Extension installation path: %1",this.model.installPath)})),c.createElement(a.FilterBox,{placeholder:this.trans.__("Search"),disabled:!this.model.isDisclaimed,updateFilter:(e,t)=>{this.model.query=t!==null&&t!==void 0?t:""},useFuzzyFilter:false,inputRef:this.searchInputRef}),c.createElement("div",{className:`jp-extensionmanager-pending ${this.model.hasPendingActions()?"jp-mod-hasPending":""}`}),this.model.actionError&&c.createElement(C,null,c.createElement("p",null,this.trans.__("Error when performing an action.")),c.createElement("p",null,this.trans.__("Reason given:")),c.createElement("pre",null,this.model.actionError)))}}class S extends a.ReactWidget{constructor(e,t){super();this.model=e;this.trans=t;this.addClass("jp-extensionmanager-disclaimer");e.stateChanged.connect(this.update,this)}render(){return c.createElement(c.Fragment,null,c.createElement("p",null,this.trans.__(`The JupyterLab development team is excited to have a robust\nthird-party extension community. However, we do not review\nthird-party extensions, and some extensions may introduce security\nrisks or contain malicious code that runs on your machine. Moreover in order\nto work, this panel needs to fetch data from web services. Do you agree to\nactivate this feature?`),c.createElement("br",null),c.createElement("a",{href:"https://jupyterlab.readthedocs.io/en/stable/privacy_policies.html",target:"_blank",rel:"noreferrer"},this.trans.__("Please read the privacy policy."))),this.model.isDisclaimed?c.createElement(a.Button,{className:"jp-extensionmanager-disclaimer-disable",onClick:e=>{this.model.isDisclaimed=false},title:this.trans.__("This will withdraw your consent.")},this.trans.__("No")):c.createElement("div",null,c.createElement(a.Button,{className:"jp-extensionmanager-disclaimer-enable",onClick:()=>{this.model.isDisclaimed=true}},this.trans.__("Yes")),c.createElement(a.Button,{className:"jp-extensionmanager-disclaimer-disable",onClick:()=>{this.model.isEnabled=false},title:this.trans.__("This will disable the extension manager panel; including the listing of installed extension.")},this.trans.__("No, disable"))))}}class k extends a.ReactWidget{constructor(e,t){super();this.model=e;this.trans=t;e.stateChanged.connect(this.update,this)}render(){return c.createElement(c.Fragment,null,this.model.installedError!==null?c.createElement(C,null,`Error querying installed extensions${this.model.installedError?`: ${this.model.installedError}`:"."}`):this.model.isLoadingInstalledExtensions?c.createElement("div",{className:"jp-extensionmanager-loader"},this.trans.__("Updating extensions list…")):c.createElement(w,{canFetch:this.model.isDisclaimed,entries:this.model.installed.filter((e=>new RegExp(this.model.query.toLowerCase()).test(e.name))),numPages:1,trans:this.trans,onPage:e=>{},performAction:this.model.isDisclaimed?this.onAction.bind(this):null,supportInstallation:this.model.canInstall&&this.model.isDisclaimed}))}onAction(e,t){switch(e){case"install":return this.model.install(t);case"uninstall":return this.model.uninstall(t);case"enable":return this.model.enable(t);case"disable":return this.model.disable(t);default:throw new Error(`Invalid action: ${e}`)}}}class j extends a.ReactWidget{constructor(e,t){super();this.model=e;this.trans=t;e.stateChanged.connect(this.update,this)}onPage(e){this.model.page=e}onAction(e,t){switch(e){case"install":return this.model.install(t);case"uninstall":return this.model.uninstall(t);case"enable":return this.model.enable(t);case"disable":return this.model.disable(t);default:throw new Error(`Invalid action: ${e}`)}}render(){return c.createElement(c.Fragment,null,this.model.searchError!==null?c.createElement(C,null,`Error searching for extensions${this.model.searchError?`: ${this.model.searchError}`:"."}`):this.model.isSearching?c.createElement("div",{className:"jp-extensionmanager-loader"},this.trans.__("Updating extensions list…")):c.createElement(w,{canFetch:this.model.isDisclaimed,entries:this.model.searchResult,initialPage:this.model.page,numPages:this.model.lastPage,onPage:e=>{this.onPage(e)},performAction:this.model.isDisclaimed?this.onAction.bind(this):null,supportInstallation:this.model.canInstall&&this.model.isDisclaimed,trans:this.trans}))}update(){this.title.label=this.model.query?this.trans.__("Search Results"):this.trans.__("Discover");super.update()}}class M extends a.SidePanel{constructor(e){const{model:t,translator:n}=e;super({translator:n});this._wasInitialized=false;this._wasDisclaimed=true;this.model=t;this._searchInputRef=c.createRef();this.addClass("jp-extensionmanager-view");this.trans=n.load("jupyterlab");this.header.addWidget(new x(t,this.trans,this._searchInputRef));const i=new S(t,this.trans);i.title.label=this.trans.__("Warning");this.addWidget(i);const s=new a.PanelWithToolbar;s.addClass("jp-extensionmanager-installedlist");s.title.label=this.trans.__("Installed");s.toolbar.addItem("refresh",new a.ToolbarButton({icon:a.refreshIcon,onClick:()=>{t.refreshInstalled(true).catch((e=>{console.error(`Failed to refresh the installed extensions list:\n${e}`)}))},tooltip:this.trans.__("Refresh extensions list")}));s.addWidget(new k(t,this.trans));this.addWidget(s);if(this.model.canInstall){const e=new j(t,this.trans);e.addClass("jp-extensionmanager-searchresults");this.addWidget(e)}this._wasDisclaimed=this.model.isDisclaimed;if(this.model.isDisclaimed){this.content.collapse(0);this.content.layout.setRelativeSizes([0,1,1])}else{this.content.expand(0);this.content.collapse(1);this.content.collapse(2)}this.model.stateChanged.connect(this._onStateChanged,this)}dispose(){if(this.isDisposed){return}this.model.stateChanged.disconnect(this._onStateChanged,this);super.dispose()}handleEvent(e){switch(e.type){case"focus":case"blur":this._toggleFocused();break;default:break}}onBeforeAttach(e){this.node.addEventListener("focus",this,true);this.node.addEventListener("blur",this,true);super.onBeforeAttach(e)}onBeforeShow(e){if(!this._wasInitialized){this._wasInitialized=true;this.model.refreshInstalled().catch((e=>{console.log(`Failed to refresh installed extension list:\n${e}`)}))}}onAfterDetach(e){super.onAfterDetach(e);this.node.removeEventListener("focus",this,true);this.node.removeEventListener("blur",this,true)}onActivateRequest(e){if(this.isAttached){const e=this._searchInputRef.current;if(e){e.focus();e.select()}}super.onActivateRequest(e)}_onStateChanged(){if(!this._wasDisclaimed&&this.model.isDisclaimed){this.content.collapse(0);this.content.expand(1);this.content.expand(2)}this._wasDisclaimed=this.model.isDisclaimed}_toggleFocused(){const e=document.activeElement===this._searchInputRef.current;this.toggleClass("lm-mod-focused",e)}}},82191:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>U,fileUploadStatus:()=>z});var i=n(74574);var s=n.n(i);var o=n(10759);var r=n.n(o);var a=n(20501);var l=n.n(a);var d=n(25504);var c=n.n(d);var h=n(19804);var u=n.n(h);var p=n(95811);var m=n.n(p);var g=n(22971);var f=n.n(g);var v=n(85176);var _=n.n(v);var b=n(6958);var y=n.n(b);var w=n(4148);var C=n.n(w);var x=n(58740);var S=n.n(x);var k=n(6682);var j=n.n(k);const M="FileBrowser";const E="@jupyterlab/filebrowser-extension:browser";const I="jp-FileBrowser-filterBox";var T;(function(e){e.copy="filebrowser:copy";e.copyDownloadLink="filebrowser:copy-download-link";e.cut="filebrowser:cut";e.del="filebrowser:delete";e.download="filebrowser:download";e.duplicate="filebrowser:duplicate";e.hideBrowser="filebrowser:hide-main";e.goToPath="filebrowser:go-to-path";e.goUp="filebrowser:go-up";e.openPath="filebrowser:open-path";e.openUrl="filebrowser:open-url";e.open="filebrowser:open";e.openBrowserTab="filebrowser:open-browser-tab";e.paste="filebrowser:paste";e.createNewDirectory="filebrowser:create-new-directory";e.createNewFile="filebrowser:create-new-file";e.createNewMarkdownFile="filebrowser:create-new-markdown-file";e.refresh="filebrowser:refresh";e.rename="filebrowser:rename";e.copyShareableLink="filebrowser:share-main";e.copyPath="filebrowser:copy-path";e.showBrowser="filebrowser:activate";e.shutdown="filebrowser:shutdown";e.toggleBrowser="filebrowser:toggle-main";e.toggleNavigateToCurrentDirectory="filebrowser:toggle-navigate-to-current-directory";e.toggleLastModified="filebrowser:toggle-last-modified";e.toggleFileSize="filebrowser:toggle-file-size";e.toggleSortNotebooksFirst="filebrowser:toggle-sort-notebooks-first";e.search="filebrowser:search";e.toggleHiddenFiles="filebrowser:toggle-hidden-files";e.toggleFileCheckboxes="filebrowser:toggle-file-checkboxes"})(T||(T={}));const D="filebrowser";const L={id:E,description:"Set up the default file browser (commands, settings,...).",requires:[h.IDefaultFileBrowser,h.IFileBrowserFactory,b.ITranslator],optional:[i.ILayoutRestorer,p.ISettingRegistry,i.ITreePathUpdater,o.ICommandPalette],provides:h.IFileBrowserCommands,autoStart:true,activate:async(e,t,n,i,s,o,r,l)=>{const d=t;if(s){s.add(d,D)}const c=a.PageConfig.getOption("preferredPath");if(c){await d.model.cd(c)}W(e,d,n,i,o,l);return void Promise.all([e.restored,d.model.restored]).then((()=>{if(r){d.model.pathChanged.connect(((e,t)=>{r(t.newValue)}))}if(o){void o.load(E).then((e=>{const t={navigateToCurrentDirectory:false,showLastModifiedColumn:true,showFileSizeColumn:false,showHiddenFiles:false,showFileCheckboxes:false,sortNotebooksFirst:false};const n={filterDirectories:true};function i(e){let i;for(i in t){const n=e.get(i).composite;t[i]=n;d[i]=n}const s=e.get("filterDirectories").composite;n.filterDirectories=s;d.model.filterDirectories=s}e.changed.connect(i);i(e)}))}}))}};const P={id:"@jupyterlab/filebrowser-extension:factory",description:"Provides the file browser factory.",provides:h.IFileBrowserFactory,requires:[d.IDocumentManager,b.ITranslator],optional:[g.IStateDB,i.JupyterLab.IInfo],activate:async(e,t,n,i,s)=>{const r=new o.WidgetTracker({namespace:D});const a=(e,o={})=>{var a;const l=new h.FilterFileBrowserModel({translator:n,auto:(a=o.auto)!==null&&a!==void 0?a:true,manager:t,driveName:o.driveName||"",refreshInterval:o.refreshInterval,refreshStandby:()=>{if(s){return!s.isConnected||"when-hidden"}return"when-hidden"},state:o.state===null?undefined:o.state||i||undefined});const d=o.restore;const c=new h.FileBrowser({id:e,model:l,restore:d,translator:n});void r.add(c);return c};return{createFileBrowser:a,tracker:r}}};const A={id:"@jupyterlab/filebrowser-extension:default-file-browser",description:"Provides the default file browser",provides:h.IDefaultFileBrowser,requires:[h.IFileBrowserFactory],optional:[i.IRouter,i.JupyterFrontEnd.ITreeResolver,i.ILabShell],activate:async(e,t,n,i,s)=>{const{commands:o}=e;const r=t.createFileBrowser("filebrowser",{auto:false,restore:false});void $.restoreBrowser(r,o,n,i,e,s);return r}};const R={id:"@jupyterlab/filebrowser-extension:download",description:"Adds the download file commands. Disabling this plugin will NOT disable downloading files from the server, if the user enters the appropriate download URLs.",requires:[h.IFileBrowserFactory,b.ITranslator],autoStart:true,activate:(e,t,n)=>{const i=n.load("jupyterlab");const{commands:s}=e;const{tracker:r}=t;s.addCommand(T.download,{execute:()=>{const e=r.currentWidget;if(e){return e.download()}},icon:w.downloadIcon.bindprops({stylesheet:"menuItem"}),label:i.__("Download")});s.addCommand(T.copyDownloadLink,{execute:()=>{const e=r.currentWidget;if(!e){return}return e.model.manager.services.contents.getDownloadUrl(e.selectedItems().next().value.path).then((e=>{o.Clipboard.copyToSystem(e)}))},isVisible:()=>!!r.currentWidget&&Array.from(r.currentWidget.selectedItems()).length===1,icon:w.copyIcon.bindprops({stylesheet:"menuItem"}),label:i.__("Copy Download Link"),mnemonic:0})}};const N={id:"@jupyterlab/filebrowser-extension:widget",description:"Adds the file browser to the application shell.",requires:[d.IDocumentManager,h.IDefaultFileBrowser,h.IFileBrowserFactory,p.ISettingRegistry,o.IToolbarWidgetRegistry,b.ITranslator,i.ILabShell,h.IFileBrowserCommands],optional:[o.ICommandPalette],autoStart:true,activate:(e,t,n,i,s,r,a,l,d,c)=>{const{commands:u}=e;const{tracker:p}=i;const m=a.load("jupyterlab");n.node.setAttribute("role","region");n.node.setAttribute("aria-label",m.__("File Browser Section"));n.title.icon=w.folderIcon;const g=()=>{const t=(0,x.find)(e.commands.keyBindings,(e=>e.command===T.toggleBrowser));if(t){const e=t.keys.map(k.CommandRegistry.formatKeystroke).join(", ");n.title.caption=m.__("File Browser (%1)",e)}else{n.title.caption=m.__("File Browser")}};g();e.commands.keyBindingChanged.connect((()=>{g()}));r.addFactory(M,"uploader",(e=>new h.Uploader({model:e.model,translator:a})));r.addFactory(M,"fileNameSearcher",(e=>{const t=(0,w.FilenameSearcher)({updateFilter:(t,n)=>{e.model.setFilter((e=>t(e.name.toLowerCase())))},useFuzzyFilter:true,placeholder:m.__("Filter files by name"),forceRefresh:true});t.addClass(I);return t}));(0,o.setToolbar)(n,(0,o.createToolbarFactory)(r,s,M,N.id,a));l.add(n,"left",{rank:100,type:"File Browser"});u.addCommand(T.toggleBrowser,{label:m.__("File Browser"),execute:()=>{if(n.isHidden){return u.execute(T.showBrowser,void 0)}return u.execute(T.hideBrowser,void 0)}});u.addCommand(T.showBrowser,{label:m.__("Open the file browser for the provided `path`."),execute:e=>{const t=e.path||"";const s=$.getBrowserForPath(t,n,i);if(!s){return}if(n===s){l.activateById(n.id);return}else{const e=["left","right"];for(const t of e){for(const e of l.widgets(t)){if(e.contains(s)){l.activateById(e.id);return}}}}}});u.addCommand(T.hideBrowser,{label:m.__("Hide the file browser."),execute:()=>{const e=p.currentWidget;if(e&&!e.isHidden){l.collapseLeft()}}});u.addCommand(T.toggleNavigateToCurrentDirectory,{label:m.__("Show Active File in File Browser"),isToggled:()=>n.navigateToCurrentDirectory,execute:()=>{const e=!n.navigateToCurrentDirectory;const t="navigateToCurrentDirectory";return s.set(E,t,e).catch((e=>{console.error(`Failed to set navigateToCurrentDirectory setting`)}))}});if(c){c.addItem({command:T.toggleNavigateToCurrentDirectory,category:m.__("File Operations")})}void l.restored.then((e=>{if(e.fresh&&l.mode!=="single-document"){void u.execute(T.showBrowser,void 0)}}));void Promise.all([e.restored,n.model.restored]).then((()=>{l.currentChanged.connect((async(e,s)=>{if(n.navigateToCurrentDirectory&&s.newValue){const{newValue:e}=s;const r=t.contextForWidget(e);if(r){const{path:e}=r;try{await $.navigateToPath(e,n,i,a)}catch(o){console.warn(`${T.goToPath} failed to open: ${e}`,o)}}}}))}))}};const O={id:"@jupyterlab/filebrowser-extension:share-file",description:'Adds the "Copy Shareable Link" command; useful for JupyterHub deployment for example.',requires:[h.IFileBrowserFactory,b.ITranslator],autoStart:true,activate:(e,t,n)=>{const i=n.load("jupyterlab");const{commands:s}=e;const{tracker:r}=t;s.addCommand(T.copyShareableLink,{execute:()=>{const e=r.currentWidget;const t=e===null||e===void 0?void 0:e.selectedItems().next();if(t===undefined||t.done){return}o.Clipboard.copyToSystem(a.PageConfig.getUrl({workspace:a.PageConfig.defaultWorkspace,treePath:t.value.path,toShare:true}))},isVisible:()=>!!r.currentWidget&&Array.from(r.currentWidget.selectedItems()).length===1,icon:w.linkIcon.bindprops({stylesheet:"menuItem"}),label:i.__("Copy Shareable Link")})}};const B={id:"@jupyterlab/filebrowser-extension:open-with",description:"Adds the open-with feature allowing an user to pick the non-preferred document viewer.",requires:[h.IFileBrowserFactory],autoStart:true,activate:(e,t)=>{const{docRegistry:n}=e;const{tracker:i}=t;let s=[];function o(e){var t,o;const r=(o=(t=e.menu.items.find((e=>{var t;return e.type==="submenu"&&((t=e.submenu)===null||t===void 0?void 0:t.id)==="jp-contextmenu-open-with"})))===null||t===void 0?void 0:t.submenu)!==null&&o!==void 0?o:null;if(!r){return}s.forEach((e=>e.dispose()));s.length=0;r.clearItems();const a=i.currentWidget?$.OpenWith.intersection((0,x.map)(i.currentWidget.selectedItems(),(e=>$.OpenWith.getFactories(n,e)))):new Set;s=[...a].map((e=>r.addItem({args:{factory:e.name,label:e.label||e.name},command:T.open})))}e.contextMenu.opened.connect(o)}};const F={id:"@jupyterlab/filebrowser-extension:open-browser-tab",description:"Adds the open-in-new-browser-tab features.",requires:[h.IFileBrowserFactory,b.ITranslator],autoStart:true,activate:(e,t,n)=>{const{commands:i}=e;const s=n.load("jupyterlab");const{tracker:o}=t;i.addCommand(T.openBrowserTab,{execute:e=>{const t=o.currentWidget;if(!t){return}const n=e["mode"];return Promise.all(Array.from((0,x.map)(t.selectedItems(),(e=>{if(n==="single-document"){const t=a.PageConfig.getUrl({mode:"single-document",treePath:e.path});const n=window.open();if(n){n.opener=null;n.location.href=t}else{throw new Error("Failed to open new browser tab.")}}else{return i.execute("docmanager:open-browser-tab",{path:e.path})}}))))},icon:w.addIcon.bindprops({stylesheet:"menuItem"}),label:e=>e["mode"]==="single-document"?s.__("Open in Simple Mode"):s.__("Open in New Browser Tab"),mnemonic:0})}};const z={id:"@jupyterlab/filebrowser-extension:file-upload-status",description:"Adds a file upload status widget.",autoStart:true,requires:[h.IFileBrowserFactory,b.ITranslator],optional:[v.IStatusBar],activate:(e,t,n,i)=>{if(!i){return}const s=new h.FileUploadStatus({tracker:t.tracker,translator:n});i.registerStatusItem("@jupyterlab/filebrowser-extension:file-upload-status",{item:s,align:"middle",isActive:()=>!!s.model&&s.model.items.length>0,activeStateChanged:s.model.stateChanged})}};const H={id:"@jupyterlab/filebrowser-extension:open-url",description:'Adds the feature "Open files from remote URLs".',autoStart:true,requires:[h.IDefaultFileBrowser,b.ITranslator],optional:[o.ICommandPalette],activate:(e,t,n,i)=>{const{commands:s}=e;const r=n.load("jupyterlab");const l=T.openUrl;s.addCommand(l,{label:e=>e.url?r.__("Open %1",e.url):r.__("Open from URL…"),caption:e=>e.url?r.__("Open %1",e.url):r.__("Open from URL"),execute:async e=>{var n,i,l;let d=(n=e===null||e===void 0?void 0:e.url)!==null&&n!==void 0?n:"";if(!d){d=(i=(await o.InputDialog.getText({label:r.__("URL"),placeholder:"https://example.com/path/to/file",title:r.__("Open URL"),okLabel:r.__("Open")})).value)!==null&&i!==void 0?i:undefined}if(!d){return}let c="";let h;try{const e=await fetch(d);h=await e.blob();c=(l=e.headers.get("Content-Type"))!==null&&l!==void 0?l:""}catch(u){if(u.response&&u.response.status!==200){u.message=r.__("Could not open URL: %1",d)}return(0,o.showErrorMessage)(r.__("Cannot fetch"),u)}try{const e=a.PathExt.basename(d);const n=new File([h],e,{type:c});const i=await t.model.upload(n);return s.execute("docmanager:open",{path:i.path})}catch(p){return(0,o.showErrorMessage)(r._p("showErrorMessage","Upload Error"),p)}}});if(i){i.addItem({command:l,category:r.__("File Operations")})}}};function W(e,t,n,i,s,r){const l=i.load("jupyterlab");const{docRegistry:d,commands:c}=e;const{tracker:h}=n;c.addCommand(T.del,{execute:()=>{const e=h.currentWidget;if(e){return e.delete()}},icon:w.closeIcon.bindprops({stylesheet:"menuItem"}),label:l.__("Delete"),mnemonic:0});c.addCommand(T.copy,{execute:()=>{const e=h.currentWidget;if(e){return e.copy()}},icon:w.copyIcon.bindprops({stylesheet:"menuItem"}),label:l.__("Copy"),mnemonic:0});c.addCommand(T.cut,{execute:()=>{const e=h.currentWidget;if(e){return e.cut()}},icon:w.cutIcon.bindprops({stylesheet:"menuItem"}),label:l.__("Cut")});c.addCommand(T.duplicate,{execute:()=>{const e=h.currentWidget;if(e){return e.duplicate()}},icon:w.copyIcon.bindprops({stylesheet:"menuItem"}),label:l.__("Duplicate")});c.addCommand(T.goToPath,{label:l.__("Update the file browser to display the provided `path`."),execute:async e=>{var s;const o=e.path||"";const r=!((s=e===null||e===void 0?void 0:e.dontShowBrowser)!==null&&s!==void 0?s:false);try{const e=await $.navigateToPath(o,t,n,i);if(e.type!=="directory"&&r){const e=$.getBrowserForPath(o,t,n);if(e){e.clearSelectedItems();const t=o.split("/");const n=t[t.length-1];if(n){await e.selectItemByName(n)}}}}catch(a){console.warn(`${T.goToPath} failed to go to: ${o}`,a)}if(r){return c.execute(T.showBrowser,{path:o})}}});c.addCommand(T.goUp,{label:"go up",execute:async()=>{const e=$.getBrowserForPath("",t,n);if(!e){return}const{model:i}=e;await i.restored;void e.goUp()}});c.addCommand(T.openPath,{label:e=>e.path?l.__("Open %1",e.path):l.__("Open from Path…"),caption:e=>e.path?l.__("Open %1",e.path):l.__("Open from path"),execute:async e=>{var i;let s;if(e===null||e===void 0?void 0:e.path){s=e.path}else{s=(i=(await o.InputDialog.getText({label:l.__("Path"),placeholder:"/path/relative/to/jlab/root",title:l.__("Open Path"),okLabel:l.__("Open")})).value)!==null&&i!==void 0?i:undefined}if(!s){return}try{const i=s!=="/"&&s.endsWith("/");if(i){s=s.slice(0,s.length-1)}const o=$.getBrowserForPath(s,t,n);const{services:r}=o.model.manager;const a=await r.contents.get(s,{content:false});if(i&&a.type!=="directory"){throw new Error(`Path ${s}/ is not a directory`)}await c.execute(T.goToPath,{path:s,dontShowBrowser:e.dontShowBrowser});if(a.type==="directory"){return}return c.execute("docmanager:open",{path:s})}catch(r){if(r.response&&r.response.status===404){r.message=l.__("Could not find path: %1",s)}return(0,o.showErrorMessage)(l.__("Cannot open"),r)}}});if(r){r.addItem({command:T.openPath,category:l.__("File Operations")})}c.addCommand(T.open,{execute:e=>{const t=e["factory"]||void 0;const n=h.currentWidget;if(!n){return}const{contents:i}=n.model.manager.services;return Promise.all(Array.from((0,x.map)(n.selectedItems(),(e=>{if(e.type==="directory"){const t=i.localPath(e.path);return n.model.cd(`/${t}`)}return c.execute("docmanager:open",{factory:t,path:e.path})}))))},icon:e=>{var t;const n=e["factory"]||void 0;if(n){const e=d.getFileType(n);return(t=e===null||e===void 0?void 0:e.icon)===null||t===void 0?void 0:t.bindprops({stylesheet:"menuItem"})}else{return w.folderIcon.bindprops({stylesheet:"menuItem"})}},label:e=>e["label"]||e["factory"]||l.__("Open"),mnemonic:0});c.addCommand(T.paste,{execute:()=>{const e=h.currentWidget;if(e){return e.paste()}},icon:w.pasteIcon.bindprops({stylesheet:"menuItem"}),label:l.__("Paste"),mnemonic:0});c.addCommand(T.createNewDirectory,{execute:()=>{const e=h.currentWidget;if(e){return e.createNewDirectory()}},icon:w.newFolderIcon.bindprops({stylesheet:"menuItem"}),label:l.__("New Folder")});c.addCommand(T.createNewFile,{execute:()=>{const e=h.currentWidget;if(e){return e.createNewFile({ext:"txt"})}},icon:w.textEditorIcon.bindprops({stylesheet:"menuItem"}),label:l.__("New File")});c.addCommand(T.createNewMarkdownFile,{execute:()=>{const e=h.currentWidget;if(e){return e.createNewFile({ext:"md"})}},icon:w.markdownIcon.bindprops({stylesheet:"menuItem"}),label:l.__("New Markdown File")});c.addCommand(T.refresh,{execute:e=>{const t=h.currentWidget;if(t){return t.model.refresh()}},icon:w.refreshIcon.bindprops({stylesheet:"menuItem"}),caption:l.__("Refresh the file browser."),label:l.__("Refresh File List")});c.addCommand(T.rename,{execute:e=>{const t=h.currentWidget;if(t){return t.rename()}},isVisible:()=>!!h.currentWidget&&Array.from(h.currentWidget.selectedItems()).length===1,icon:w.editIcon.bindprops({stylesheet:"menuItem"}),label:l.__("Rename"),mnemonic:0});c.addCommand(T.copyPath,{execute:()=>{const e=h.currentWidget;if(!e){return}const t=e.selectedItems().next();if(t.done){return}o.Clipboard.copyToSystem(t.value.path)},isVisible:()=>!!h.currentWidget&&Array.from(h.currentWidget.selectedItems()).length===1,icon:w.fileIcon.bindprops({stylesheet:"menuItem"}),label:l.__("Copy Path")});c.addCommand(T.shutdown,{execute:()=>{const e=h.currentWidget;if(e){return e.shutdownKernels()}},icon:w.stopIcon.bindprops({stylesheet:"menuItem"}),label:l.__("Shut Down Kernel")});c.addCommand(T.toggleLastModified,{label:l.__("Show Last Modified Column"),isToggled:()=>t.showLastModifiedColumn,execute:()=>{const e=!t.showLastModifiedColumn;const n="showLastModifiedColumn";if(s){return s.set(E,n,e).catch((e=>{console.error(`Failed to set ${n} setting`)}))}}});c.addCommand(T.toggleSortNotebooksFirst,{label:l.__("Sort Notebooks Above Files"),isToggled:()=>t.sortNotebooksFirst,execute:()=>{const e=!t.sortNotebooksFirst;const n="sortNotebooksFirst";if(s){return s.set(E,n,e).catch((e=>{console.error(`Failed to set ${n} setting`)}))}}});c.addCommand(T.toggleFileSize,{label:l.__("Show File Size Column"),isToggled:()=>t.showFileSizeColumn,execute:()=>{const e=!t.showFileSizeColumn;const n="showFileSizeColumn";if(s){return s.set(E,n,e).catch((e=>{console.error(`Failed to set ${n} setting`)}))}}});c.addCommand(T.toggleHiddenFiles,{label:l.__("Show Hidden Files"),isToggled:()=>t.showHiddenFiles,isVisible:()=>a.PageConfig.getOption("allow_hidden_files")==="true",execute:()=>{const e=!t.showHiddenFiles;const n="showHiddenFiles";if(s){return s.set(E,n,e).catch((e=>{console.error(`Failed to set showHiddenFiles setting`)}))}}});c.addCommand(T.toggleFileCheckboxes,{label:l.__("Show File Checkboxes"),isToggled:()=>t.showFileCheckboxes,execute:()=>{const e=!t.showFileCheckboxes;const n="showFileCheckboxes";if(s){return s.set(E,n,e).catch((e=>{console.error(`Failed to set showFileCheckboxes setting`)}))}}});c.addCommand(T.search,{label:l.__("Search on File Names"),execute:()=>alert("search")})}const V=[P,A,L,O,z,R,N,B,F,H];const U=V;var $;(function(e){function t(e,t,n){const{tracker:i}=n;const s=t.model.manager.services.contents.driveName(e);if(s){const t=i.find((e=>e.model.driveName===s));if(!t){console.warn(`${T.goToPath} failed to find filebrowser for path: ${e}`);return}return t}return t}e.getBrowserForPath=t;async function n(t,n,i,s){const o=s.load("jupyterlab");const r=e.getBrowserForPath(t,n,i);if(!r){throw new Error(o.__("No browser for path"))}const{services:l}=r.model.manager;const d=l.contents.localPath(t);await l.ready;const c=await l.contents.get(t,{content:false});const{model:h}=r;await h.restored;if(c.type==="directory"){await h.cd(`/${d}`)}else{await h.cd(`/${a.PathExt.dirname(d)}`)}return c}e.navigateToPath=n;async function i(e,t,n,i,s,o){const r="jp-mod-restoring";e.addClass(r);if(!n){await e.model.restore(e.id);await e.model.refresh();e.removeClass(r);return}const a=async()=>{n.routed.disconnect(a);const s=await(i===null||i===void 0?void 0:i.paths);if((s===null||s===void 0?void 0:s.file)||(s===null||s===void 0?void 0:s.browser)){await e.model.restore(e.id,false);if(s.file){await t.execute(T.openPath,{path:s.file,dontShowBrowser:true})}if(s.browser){await t.execute(T.openPath,{path:s.browser,dontShowBrowser:true})}}else{await e.model.restore(e.id);await e.model.refresh()}e.removeClass(r);if(o===null||o===void 0?void 0:o.isEmpty("main")){void t.execute("launcher:create")}};n.routed.connect(a)}e.restoreBrowser=i;let s;(function(e){function t(e,t){const n=e.preferredWidgetFactories(t.path);const i=e.getWidgetFactory("notebook");if(i&&t.type==="notebook"&&n.indexOf(i)===-1){n.unshift(i)}return n}e.getFactories=t;function n(e){let t=undefined;for(const n of e){if(t===undefined){t=new Set(n);continue}if(t.size===0){return t}let e=new Set;for(const i of n){if(t.has(i)){e.add(i)}}t=e}return t!==null&&t!==void 0?t:new Set}e.intersection=n})(s=e.OpenWith||(e.OpenWith={}))})($||($={}))},77552:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(98328);var r=n(79536);var a=n(94683);var l=n(90516);var d=n(82401);var c=n(59240);var h=n(93379);var u=n.n(h);var p=n(7795);var m=n.n(p);var g=n(90569);var f=n.n(g);var v=n(3565);var _=n.n(v);var b=n(19216);var y=n.n(b);var w=n(44589);var C=n.n(w);var x=n(4409);var S={};S.styleTagTransform=C();S.setAttributes=_();S.insert=f().bind(null,"head");S.domAPI=m();S.insertStyleElement=y();var k=u()(x.Z,S);const j=x.Z&&x.Z.locals?x.Z.locals:undefined},34635:(e,t,n)=>{"use strict";n.r(t);n.d(t,{BreadCrumbs:()=>b,CHUNK_SIZE:()=>ve,DirListing:()=>re,FileBrowser:()=>pe,FileBrowserModel:()=>_e,FileDialog:()=>Ce,FileUploadStatus:()=>Ne,FilterFileBrowserModel:()=>ye,IDefaultFileBrowser:()=>je,IFileBrowserCommands:()=>Me,IFileBrowserFactory:()=>ke,LARGE_FILE_SIZE:()=>fe,TogglableHiddenFileBrowserModel:()=>be,Uploader:()=>Ee});var i=n(10759);var s=n(96306);var o=n(6958);var r=n(4148);var a=n(85448);var l=n(20501);var d=n(25504);var c=n(58740);var h=n(36044);const u="jp-BreadCrumbs";const p="jp-BreadCrumbs-home";const m="jp-BreadCrumbs-preferred";const g="jp-BreadCrumbs-item";const f=["/","../../","../",""];const v="application/x-jupyter-icontents";const _="jp-mod-dropTarget";class b extends a.Widget{constructor(e){super();this.translator=e.translator||o.nullTranslator;this._trans=this.translator.load("jupyterlab");this._model=e.model;this.addClass(u);this._crumbs=y.createCrumbs();this._crumbSeps=y.createCrumbSeparators();const t=l.PageConfig.getOption("preferredPath");this._hasPreferred=t&&t!=="/"?true:false;if(this._hasPreferred){this.node.appendChild(this._crumbs[y.Crumb.Preferred])}this.node.appendChild(this._crumbs[y.Crumb.Home]);this._model.refreshed.connect(this.update,this)}handleEvent(e){switch(e.type){case"click":this._evtClick(e);break;case"lm-dragenter":this._evtDragEnter(e);break;case"lm-dragleave":this._evtDragLeave(e);break;case"lm-dragover":this._evtDragOver(e);break;case"lm-drop":this._evtDrop(e);break;default:return}}onAfterAttach(e){super.onAfterAttach(e);this.update();const t=this.node;t.addEventListener("click",this);t.addEventListener("lm-dragenter",this);t.addEventListener("lm-dragleave",this);t.addEventListener("lm-dragover",this);t.addEventListener("lm-drop",this)}onBeforeDetach(e){super.onBeforeDetach(e);const t=this.node;t.removeEventListener("click",this);t.removeEventListener("lm-dragenter",this);t.removeEventListener("lm-dragleave",this);t.removeEventListener("lm-dragover",this);t.removeEventListener("lm-drop",this)}onUpdateRequest(e){const t=this._model.manager.services.contents;const n=t.localPath(this._model.path);y.updateCrumbs(this._crumbs,this._crumbSeps,n,this._hasPreferred)}_evtClick(e){if(e.button!==0){return}let t=e.target;while(t&&t!==this.node){if(t.classList.contains(m)){this._model.cd(l.PageConfig.getOption("preferredPath")).catch((e=>(0,i.showErrorMessage)(this._trans.__("Open Error"),e)));e.preventDefault();e.stopPropagation();return}if(t.classList.contains(g)||t.classList.contains(p)){const n=c.ArrayExt.findFirstIndex(this._crumbs,(e=>e===t));this._model.cd(f[n]).catch((e=>(0,i.showErrorMessage)(this._trans.__("Open Error"),e)));e.preventDefault();e.stopPropagation();return}t=t.parentElement}}_evtDragEnter(e){if(e.mimeData.hasData(v)){const t=c.ArrayExt.findFirstIndex(this._crumbs,(t=>h.ElementExt.hitTest(t,e.clientX,e.clientY)));if(t!==-1){if(t!==y.Crumb.Current){this._crumbs[t].classList.add(_);e.preventDefault();e.stopPropagation()}}}}_evtDragLeave(e){e.preventDefault();e.stopPropagation();const t=i.DOMUtils.findElement(this.node,_);if(t){t.classList.remove(_)}}_evtDragOver(e){e.preventDefault();e.stopPropagation();e.dropAction=e.proposedAction;const t=i.DOMUtils.findElement(this.node,_);if(t){t.classList.remove(_)}const n=c.ArrayExt.findFirstIndex(this._crumbs,(t=>h.ElementExt.hitTest(t,e.clientX,e.clientY)));if(n!==-1){this._crumbs[n].classList.add(_)}}_evtDrop(e){e.preventDefault();e.stopPropagation();if(e.proposedAction==="none"){e.dropAction="none";return}if(!e.mimeData.hasData(v)){return}e.dropAction=e.proposedAction;let t=e.target;while(t&&t.parentElement){if(t.classList.contains(_)){t.classList.remove(_);break}t=t.parentElement}const n=c.ArrayExt.findFirstIndex(this._crumbs,(e=>e===t));if(n===-1){return}const s=this._model;const o=l.PathExt.resolve(s.path,f[n]);const r=s.manager;const a=[];const h=e.mimeData.getData(v);for(const i of h){const e=r.services.contents.localPath(i);const t=l.PathExt.basename(e);const n=l.PathExt.join(o,t);a.push((0,d.renameFile)(r,i,n))}void Promise.all(a).catch((e=>(0,i.showErrorMessage)(this._trans.__("Move Error"),e)))}}var y;(function(e){let t;(function(e){e[e["Home"]=0]="Home";e[e["Ellipsis"]=1]="Ellipsis";e[e["Parent"]=2]="Parent";e[e["Current"]=3]="Current";e[e["Preferred"]=4]="Preferred"})(t=e.Crumb||(e.Crumb={}));function n(e,n,i,s){const o=e[0].parentNode;const r=o.firstChild;while(r&&r.nextSibling){o.removeChild(r.nextSibling)}if(s){o.appendChild(e[t.Home]);o.appendChild(n[0])}else{o.appendChild(n[0])}const a=i.split("/");if(a.length>2){o.appendChild(e[t.Ellipsis]);const i=a.slice(0,a.length-2).join("/");e[t.Ellipsis].title=i;o.appendChild(n[1])}if(i){if(a.length>=2){e[t.Parent].textContent=a[a.length-2];o.appendChild(e[t.Parent]);const i=a.slice(0,a.length-1).join("/");e[t.Parent].title=i;o.appendChild(n[2])}e[t.Current].textContent=a[a.length-1];o.appendChild(e[t.Current]);e[t.Current].title=i;o.appendChild(n[3])}}e.updateCrumbs=n;function i(){const e=r.folderIcon.element({className:p,tag:"span",title:l.PageConfig.getOption("serverRoot")||"Jupyter Server Root",stylesheet:"breadCrumb"});const t=r.ellipsesIcon.element({className:g,tag:"span",stylesheet:"breadCrumb"});const n=document.createElement("span");n.className=g;const i=document.createElement("span");i.className=g;const s=r.homeIcon.element({className:m,tag:"span",title:l.PageConfig.getOption("preferredPath")||"Jupyter Preferred Path",stylesheet:"breadCrumb"});return[e,t,n,i,s]}e.createCrumbs=i;function s(){const e=[];const t=2;for(let n=0;nthis.selection[e.path]))}sortedItems(){return this._sortedItems[Symbol.iterator]()}sort(e){this._sortedItems=ae.sort(this.model.items(),e,this._sortNotebooksFirst);this._sortState=e;this.update()}rename(){return this._doRename()}cut(){this._isCut=true;this._copy();this.update()}copy(){this._copy()}paste(){if(!this._clipboard.length){this._isCut=false;return Promise.resolve(undefined)}const e=this._model.path;const t=[];for(const n of this._clipboard){if(this._isCut){const i=this._manager.services.contents.localPath(n);const s=i.split("/");const o=s[s.length-1];const r=l.PathExt.join(e,o);t.push(this._model.manager.rename(n,r))}else{t.push(this._model.manager.copy(n,e))}}for(const n of this._items){n.classList.remove(X)}this._clipboard.length=0;this._isCut=false;this.removeClass(Y);return Promise.all(t).then((()=>undefined)).catch((e=>{void(0,i.showErrorMessage)(this._trans._p("showErrorMessage","Paste Error"),e)}))}async delete(){const e=this._sortedItems.filter((e=>this.selection[e.path]));if(!e.length){return}const t=e.length===1?this._trans.__("Are you sure you want to permanently delete: %1?",e[0].name):this._trans._n("Are you sure you want to permanently delete the %1 selected item?","Are you sure you want to permanently delete the %1 selected items?",e.length);const n=await(0,i.showDialog)({title:this._trans.__("Delete"),body:t,buttons:[i.Dialog.cancelButton({label:this._trans.__("Cancel")}),i.Dialog.warnButton({label:this._trans.__("Delete")})],defaultButton:0});if(!this.isDisposed&&n.button.accept){await this._delete(e.map((e=>e.path)))}let s=this._focusIndex;const o=this._sortedItems.length-e.length-1;if(s>o){s=Math.max(0,o)}this._focusItem(s)}duplicate(){const e=this._model.path;const t=[];for(const n of this.selectedItems()){if(n.type!=="directory"){t.push(this._model.manager.copy(n.path,e))}}return Promise.all(t).then((()=>undefined)).catch((e=>{void(0,i.showErrorMessage)(this._trans._p("showErrorMessage","Duplicate file"),e)}))}async download(){await Promise.all(Array.from(this.selectedItems()).filter((e=>e.type!=="directory")).map((e=>this._model.download(e.path))))}shutdownKernels(){const e=this._model;const t=this._sortedItems;const n=t.map((e=>e.path));const s=Array.from(this._model.sessions()).filter((e=>{const i=c.ArrayExt.firstIndexOf(n,e.path);return this.selection[t[i].path]})).map((t=>e.manager.services.sessions.shutdown(t.id)));return Promise.all(s).then((()=>undefined)).catch((e=>{void(0,i.showErrorMessage)(this._trans._p("showErrorMessage","Shut down kernel"),e)}))}selectNext(e=false){let t=-1;const n=Object.keys(this.selection);const i=this._sortedItems;if(n.length===1||e){const e=n[n.length-1];t=c.ArrayExt.findFirstIndex(i,(t=>t.path===e));t+=1;if(t===this._items.length){t=0}}else if(n.length===0){t=0}else{const e=n[n.length-1];t=c.ArrayExt.findFirstIndex(i,(t=>t.path===e))}if(t!==-1){this._selectItem(t,e);h.ElementExt.scrollIntoViewIfNeeded(this.contentNode,this._items[t])}}selectPrevious(e=false){let t=-1;const n=Object.keys(this.selection);const i=this._sortedItems;if(n.length===1||e){const e=n[0];t=c.ArrayExt.findFirstIndex(i,(t=>t.path===e));t-=1;if(t===-1){t=this._items.length-1}}else if(n.length===0){t=this._items.length-1}else{const e=n[0];t=c.ArrayExt.findFirstIndex(i,(t=>t.path===e))}if(t!==-1){this._selectItem(t,e);h.ElementExt.scrollIntoViewIfNeeded(this.contentNode,this._items[t])}}selectByPrefix(){const e=this._searchPrefix.toLowerCase();const t=this._sortedItems;const n=c.ArrayExt.findFirstIndex(t,(t=>t.name.toLowerCase().substr(0,e.length)===e));if(n!==-1){this._selectItem(n,false);h.ElementExt.scrollIntoViewIfNeeded(this.contentNode,this._items[n])}}isSelected(e){const t=this._sortedItems;return Array.from((0,c.filter)(t,(t=>t.name===e&&this.selection[t.path]))).length!==0}modelForClick(e){const t=this._sortedItems;const n=ae.hitTestNodes(this._items,e);if(n!==-1){return t[n]}return undefined}clearSelectedItems(){this.selection=Object.create(null)}async selectItemByName(e,t=false){await this.model.refresh();if(this.isDisposed){throw new Error("File browser is disposed.")}const n=this._sortedItems;const i=c.ArrayExt.findFirstIndex(n,(t=>t.name===e));if(i===-1){throw new Error("Item does not exist.")}this._selectItem(i,false,t);S.MessageLoop.sendMessage(this,a.Widget.Msg.UpdateRequest);h.ElementExt.scrollIntoViewIfNeeded(this.contentNode,this._items[i])}handleEvent(e){switch(e.type){case"mousedown":this._evtMousedown(e);break;case"mouseup":this._evtMouseup(e);break;case"mousemove":this._evtMousemove(e);break;case"keydown":this.evtKeydown(e);break;case"click":this._evtClick(e);break;case"dblclick":this.evtDblClick(e);break;case"dragenter":case"dragover":this.addClass("jp-mod-native-drop");e.preventDefault();break;case"dragleave":case"dragend":this.removeClass("jp-mod-native-drop");break;case"drop":this.removeClass("jp-mod-native-drop");this.evtNativeDrop(e);break;case"scroll":this._evtScroll(e);break;case"lm-dragenter":this.evtDragEnter(e);break;case"lm-dragleave":this.evtDragLeave(e);break;case"lm-dragover":this.evtDragOver(e);break;case"lm-drop":this.evtDrop(e);break;default:break}}onAfterAttach(e){super.onAfterAttach(e);const t=this.node;const n=i.DOMUtils.findElement(t,L);t.addEventListener("mousedown",this);t.addEventListener("keydown",this);t.addEventListener("click",this);t.addEventListener("dblclick",this);n.addEventListener("dragenter",this);n.addEventListener("dragover",this);n.addEventListener("dragleave",this);n.addEventListener("dragend",this);n.addEventListener("drop",this);n.addEventListener("scroll",this);n.addEventListener("lm-dragenter",this);n.addEventListener("lm-dragleave",this);n.addEventListener("lm-dragover",this);n.addEventListener("lm-drop",this)}onBeforeDetach(e){super.onBeforeDetach(e);const t=this.node;const n=i.DOMUtils.findElement(t,L);t.removeEventListener("mousedown",this);t.removeEventListener("keydown",this);t.removeEventListener("click",this);t.removeEventListener("dblclick",this);n.removeEventListener("scroll",this);n.removeEventListener("dragover",this);n.removeEventListener("dragover",this);n.removeEventListener("dragleave",this);n.removeEventListener("dragend",this);n.removeEventListener("drop",this);n.removeEventListener("lm-dragenter",this);n.removeEventListener("lm-dragleave",this);n.removeEventListener("lm-dragover",this);n.removeEventListener("lm-drop",this);document.removeEventListener("mousemove",this,true);document.removeEventListener("mouseup",this,true)}onAfterShow(e){if(this._isDirty){this.sort(this.sortState);this.update()}}onUpdateRequest(e){var t;this._isDirty=false;const n=this._sortedItems;const s=this._items;const o=i.DOMUtils.findElement(this.node,L);const r=this._renderer;this.removeClass(Q);this.removeClass(Z);while(s.length>n.length){o.removeChild(s.pop())}while(s.length{e.classList.remove(Z);e.classList.remove(ee);e.classList.remove(X);const n=r.getCheckboxNode(e);if(n){n.checked=false}const i=r.getNameNode(e);if(i){i.tabIndex=t===this._focusIndex?0:-1}}));const a=r.getCheckboxNode(this.headerNode);if(a){const e=Object.keys(this.selection).length;const t=n.length>0&&e===n.length;const i=!t&&e>0;a.checked=t;a.indeterminate=i;a.dataset.checked=String(t);a.dataset.indeterminate=String(i);const s=this.translator.load("jupyterlab");a===null||a===void 0?void 0:a.setAttribute("aria-label",t||i?s.__("Deselect all files and directories"):s.__("Select all files and directories"))}n.forEach(((e,t)=>{const n=s[t];const i=this._manager.registry.getFileTypeForModel(e);r.updateItemNode(n,e,i,this.translator,this._hiddenColumns,this.selection[e.path]);if(this.selection[e.path]&&this._isCut&&this._model.path===this._prevPath){n.classList.add(X)}n.setAttribute("data-isdir",e.type==="directory"?"true":"false")}));const l=Object.keys(this.selection).length;if(l){this.addClass(Z);if(l>1){this.addClass(Q)}}const d=n.map((e=>e.path));for(const i of this._model.sessions()){const e=c.ArrayExt.firstIndexOf(d,i.path);const n=s[e];if(n){let e=(t=i.kernel)===null||t===void 0?void 0:t.name;const s=this._model.specs;n.classList.add(ee);if(s&&e){const t=s.kernelspecs[e];e=t?t.display_name:this._trans.__("unknown")}n.title=this._trans.__("%1\nKernel: %2",n.title,e)}}this._prevPath=this._model.path}onResize(e){const{width:t}=e.width===-1?this.node.getBoundingClientRect():e;this.toggleClass("jp-DirListing-narrow",t<250)}setColumnVisibility(e,t){if(t){this._hiddenColumns.delete(e)}else{this._hiddenColumns.add(e)}this.headerNode.innerHTML="";this._renderer.populateHeaderNode(this.headerNode,this.translator,this._hiddenColumns)}setNotebooksFirstSorting(e){let t=this._sortNotebooksFirst;this._sortNotebooksFirst=e;if(this._sortNotebooksFirst!==t){this.sort(this._sortState)}}isWithinCheckboxHitArea(e){let t=e.target;while(t){if(t.classList.contains(B)){return true}t=t.parentElement}return false}_evtClick(e){const t=e.target;const n=this.headerNode;const i=this._renderer;if(n.contains(t)){const t=i.getCheckboxNode(n);if(t&&this.isWithinCheckboxHitArea(e)){const e=t.dataset.indeterminate==="false"&&t.dataset.checked==="false";if(e){this._sortedItems.forEach((e=>this.selection[e.path]=true))}else{this.clearSelectedItems()}this.update()}else{const t=this.renderer.handleHeaderClick(n,e);if(t){this.sort(t)}}return}else{this._focusItem(this._focusIndex)}}_evtScroll(e){this.headerNode.scrollLeft=this.contentNode.scrollLeft}_evtMousedown(e){if(e.target===this._editNode){return}if(this._editNode.parentNode){if(this._editNode!==e.target){this._editNode.focus();this._editNode.blur();clearTimeout(this._selectTimer)}else{return}}let t=ae.hitTestNodes(this._items,e);if(t===-1){return}this.handleFileSelect(e);if(e.button!==0){clearTimeout(this._selectTimer)}const n=se&&e.ctrlKey||e.button===2;if(n){return}if(e.button===0){this._dragData={pressX:e.clientX,pressY:e.clientY,index:t};document.addEventListener("mouseup",this,true);document.addEventListener("mousemove",this,true)}}_evtMouseup(e){if(this._softSelection){const t=e.metaKey||e.shiftKey||e.ctrlKey;if(!t&&e.button===0){this.clearSelectedItems();this.selection[this._softSelection]=true;this.update()}this._softSelection=""}if(e.button===0){this._focusItem(this._focusIndex)}if(e.button!==0||!this._drag){document.removeEventListener("mousemove",this,true);document.removeEventListener("mouseup",this,true);return}e.preventDefault();e.stopPropagation()}_evtMousemove(e){e.preventDefault();e.stopPropagation();if(this._drag||!this._dragData){return}const t=this._dragData;const n=Math.abs(e.clientX-t.pressX);const i=Math.abs(e.clientY-t.pressY);if(n(0,i.showErrorMessage)(this._trans._p("showErrorMessage","Open directory"),e)))}else{const t=e.path;this._manager.openOrReveal(t)}}_getNextFocusIndex(e,t){const n=e+t;if(n===-1||n===this._items.length){return e}else{return n}}_handleArrowY(e,t){if(e.altKey||e.metaKey){return}if(!this._items.length){return}if(!e.target.classList.contains(A)){return}e.stopPropagation();e.preventDefault();const n=this._focusIndex;let i=this._getNextFocusIndex(n,t);if(t>0&&n===0&&!e.ctrlKey&&Object.keys(this.selection).length===0){i=0}if(e.shiftKey){this._handleMultiSelect(i)}else if(!e.ctrlKey){this._selectItem(i,e.shiftKey,false)}this._focusItem(i);this.update()}async goUp(){const e=this.model;if(e.path===e.rootPath){return}try{await e.cd("..")}catch(t){console.warn(`Failed to go to parent directory of ${e.path}`,t)}}evtKeydown(e){if(this._inRename){return}switch(e.keyCode){case 13:{if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey){return}e.preventDefault();e.stopPropagation();for(const e of this.selectedItems()){this.handleOpen(e)}return}case 38:this._handleArrowY(e,-1);return;case 40:this._handleArrowY(e,1);return;case 32:{if(e.ctrlKey){if(e.metaKey||e.shiftKey||e.altKey){return}const t=this._items[this._focusIndex];if(!(t.contains(e.target)&&t.contains(document.activeElement))){return}e.stopPropagation();e.preventDefault();const{path:n}=this._sortedItems[this._focusIndex];if(this.selection[n]){delete this.selection[n]}else{this.selection[n]=true}this.update();return}break}}if(e.key!==undefined&&e.key.length===1&&!((e.key===" "||e.keyCode===32)&&e.target.type==="checkbox")){if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey){return}this._searchPrefix+=e.key;clearTimeout(this._searchPrefixTimer);this._searchPrefixTimer=window.setTimeout((()=>{this._searchPrefix=""}),ne);this.selectByPrefix();e.stopPropagation();e.preventDefault()}}evtDblClick(e){if(e.button!==0){return}if(e.ctrlKey||e.shiftKey||e.altKey||e.metaKey){return}if(this.isWithinCheckboxHitArea(e)){return}e.preventDefault();e.stopPropagation();clearTimeout(this._selectTimer);this._editNode.blur();const t=e.target;const n=c.ArrayExt.findFirstIndex(this._items,(e=>e.contains(t)));if(n===-1){return}const i=this._sortedItems[n];this.handleOpen(i)}evtNativeDrop(e){var t,n,s;const o=(t=e.dataTransfer)===null||t===void 0?void 0:t.files;if(!o||o.length===0){return}const r=(n=e.dataTransfer)===null||n===void 0?void 0:n.items.length;if(!r){return}for(let a=0;a{void(0,i.showErrorMessage)(this._trans._p("showErrorMessage","Error while copying/moving files"),e)}))}_startDrag(e,t,n){let i=Object.keys(this.selection);const s=this._items[e];const o=this._sortedItems;let r;let a;if(!s.classList.contains(Z)){a=o[e];i=[a.path];r=[a]}else{const e=i[0];a=o.find((t=>t.path===e));r=this.selectedItems()}if(!a){return}const l=this._manager.registry.getFileTypeForModel(a);const d=this.renderer.createDragImage(s,i.length,this._trans,l);this._drag=new x.Drag({dragImage:d,mimeData:new C.MimeData,supportedActions:"move",proposedAction:"move"});this._drag.mimeData.setData(q,i);const c=this.model.manager.services;for(const h of r){this._drag.mimeData.setData(K,{model:h,withContent:async()=>await c.contents.get(h.path)})}if(a&&a.type!=="directory"){const e=i.slice(1).reverse();this._drag.mimeData.setData(oe,(()=>{if(!a){return}const t=a.path;let n=this._manager.findWidget(t);if(!n){n=this._manager.open(a.path)}if(e.length){const t=new C.PromiseDelegate;void t.promise.then((()=>{let t=n;e.forEach((e=>{const n={ref:t===null||t===void 0?void 0:t.id,mode:"tab-after"};t=this._manager.openOrReveal(e,void 0,void 0,n);this._manager.openOrReveal(a.path)}))}));t.resolve(void 0)}return n}))}document.removeEventListener("mousemove",this,true);document.removeEventListener("mouseup",this,true);clearTimeout(this._selectTimer);void this._drag.start(t,n).then((e=>{this._drag=null;clearTimeout(this._selectTimer)}))}handleFileSelect(e){const t=this._sortedItems;const n=ae.hitTestNodes(this._items,e);clearTimeout(this._selectTimer);if(n===-1){return}this._softSelection="";const i=t[n].path;const s=Object.keys(this.selection);const o=e.button===0&&!(se&&e.ctrlKey)&&this.isWithinCheckboxHitArea(e);if(se&&e.metaKey||!se&&e.ctrlKey||o){if(this.selection[i]){delete this.selection[i]}else{this.selection[i]=true}this._focusItem(n)}else if(e.shiftKey){this._handleMultiSelect(n);this._focusItem(n)}else if(i in this.selection&&s.length>1){this._softSelection=i}else{return this._selectItem(n,false,true)}this.update()}_focusItem(e){const t=this._items;if(t.length===0){this._focusIndex=0;this.node.focus();return}this._focusIndex=e;const n=t[e];const i=this.renderer.getNameNode(n);if(i){i.tabIndex=0;i.focus()}}_allSelectedBetween(e,t){if(e===t){return}const[n,i]=ee&&this.selection[t.path]),true)}_handleMultiSelect(e){const t=this._sortedItems;const n=this._focusIndex;const i=t[e];let s=true;if(e===n){this.selection[i.path]=true;return}if(this.selection[i.path]){if(Math.abs(e-n)===1){const i=t[n];const s=t[n+(ethis._model.manager.deleteFile(e).catch((e=>{void(0,i.showErrorMessage)(this._trans._p("showErrorMessage","Delete Failed"),e)})))))}async _doRename(){this._inRename=true;const e=Object.keys(this.selection);if(e.length===0){this._inRename=false;return Promise.resolve("")}const t=this._sortedItems;let{path:n}=t[this._focusIndex];if(!this.selection[n]){n=e.slice(-1)[0]}const s=c.ArrayExt.findFirstIndex(t,(e=>e.path===n));const o=this._items[s];const r=t[s];const a=this.renderer.getNameNode(o);const h=r.name;this._editNode.value=h;this._selectItem(s,false,true);const u=await ae.userInputForRename(a,this._editNode,h);if(this.isDisposed){this._inRename=false;throw new Error("File browser is disposed.")}let p=u;if(!u||u===h){p=h}else if(!(0,d.isValidFileName)(u)){void(0,i.showErrorMessage)(this._trans.__("Rename Error"),Error(this._trans._p("showErrorMessage",'"%1" is not a valid name for a file. Names must have nonzero length, and cannot include "/", "\\", or ":"',u)));p=h}else{const e=this._manager;const t=l.PathExt.join(this._model.path,h);const n=l.PathExt.join(this._model.path,u);try{await(0,d.renameFile)(e,t,n)}catch(m){if(m!=="File not renamed"){void(0,i.showErrorMessage)(this._trans._p("showErrorMessage","Rename Error"),m)}p=h}if(this.isDisposed){this._inRename=false;throw new Error("File browser is disposed.")}}if(!this.isDisposed&&Object.keys(this.selection).length===1&&this.selection[r.path]){try{await this.selectItemByName(p,true)}catch(g){console.warn("After rename, failed to select file",p)}}this._inRename=false;return p}_selectItem(e,t,n=true){const i=this._sortedItems;if(!t){this.clearSelectedItems()}const s=i[e].path;this.selection[s]=true;if(n){this._focusItem(e)}this.update()}_onModelRefreshed(){const e=Object.keys(this.selection);this.clearSelectedItems();for(const t of this._model.items()){const n=t.path;if(e.indexOf(n)!==-1){this.selection[n]=true}}if(this.isVisible){this.sort(this.sortState)}else{this._isDirty=true}}_onPathChanged(){this.clearSelectedItems();this.sort(this.sortState);requestAnimationFrame((()=>{this._focusItem(0)}))}_onFileChanged(e,t){const n=t.newValue;if(!n){return}const i=n.name;if(t.type!=="new"||!i){return}void this.selectItemByName(i).catch((()=>{}))}_onActivateRequested(e,t){const n=l.PathExt.dirname(t);if(n!==this._model.path){return}const i=l.PathExt.basename(t);this.selectItemByName(i).catch((()=>{}))}}(function(e){class t{createNode(){const e=document.createElement("div");const t=document.createElement("div");const n=document.createElement("ul");n.className=L;t.className=E;e.appendChild(t);e.appendChild(n);e.tabIndex=-1;return e}populateHeaderNode(e,t,n){t=t||o.nullTranslator;const s=t.load("jupyterlab");const r=this.createHeaderItemNode(s.__("Name"));const a=document.createElement("div");const l=this.createHeaderItemNode(s.__("Last Modified"));const d=this.createHeaderItemNode(s.__("File Size"));r.classList.add(z);r.classList.add(Z);l.classList.add(H);d.classList.add(W);a.classList.add(V);a.textContent="...";if(!(n===null||n===void 0?void 0:n.has("is_selected"))){const t=this.createCheckboxWrapperNode({alwaysVisible:true});e.appendChild(t)}e.appendChild(r);e.appendChild(a);e.appendChild(l);e.appendChild(d);if(n===null||n===void 0?void 0:n.has("last_modified")){l.classList.add(U)}else{l.classList.remove(U)}if(n===null||n===void 0?void 0:n.has("file_size")){d.classList.add($)}else{d.classList.remove($)}ae.updateCaret(i.DOMUtils.findElement(r,D),"right","up")}handleHeaderClick(e,t){const n=i.DOMUtils.findElement(e,z);const s=i.DOMUtils.findElement(e,H);const o=i.DOMUtils.findElement(e,W);const r={direction:"ascending",key:"name"};const a=t.target;const l=i.DOMUtils.findElement(s,D);const d=i.DOMUtils.findElement(o,D);const c=i.DOMUtils.findElement(n,D);if(n.contains(a)){if(n.classList.contains(Z)){if(!n.classList.contains(te)){r.direction="descending";n.classList.add(te);ae.updateCaret(c,"right","down")}else{n.classList.remove(te);ae.updateCaret(c,"right","up")}}else{n.classList.remove(te);ae.updateCaret(c,"right","up")}n.classList.add(Z);s.classList.remove(Z);s.classList.remove(te);o.classList.remove(Z);o.classList.remove(te);ae.updateCaret(l,"left");ae.updateCaret(d,"left");return r}if(s.contains(a)){r.key="last_modified";if(s.classList.contains(Z)){if(!s.classList.contains(te)){r.direction="descending";s.classList.add(te);ae.updateCaret(l,"left","down")}else{s.classList.remove(te);ae.updateCaret(l,"left","up")}}else{s.classList.remove(te);ae.updateCaret(l,"left","up")}s.classList.add(Z);n.classList.remove(Z);n.classList.remove(te);o.classList.remove(Z);o.classList.remove(te);ae.updateCaret(c,"right");ae.updateCaret(d,"left");return r}if(o.contains(a)){r.key="file_size";if(o.classList.contains(Z)){if(!o.classList.contains(te)){r.direction="descending";o.classList.add(te);ae.updateCaret(d,"left","down")}else{o.classList.remove(te);ae.updateCaret(d,"left","up")}}else{o.classList.remove(te);ae.updateCaret(d,"left","up")}o.classList.add(Z);n.classList.remove(Z);n.classList.remove(te);s.classList.remove(Z);s.classList.remove(te);ae.updateCaret(c,"right");ae.updateCaret(l,"left");return r}return r}createItemNode(e){const t=document.createElement("li");const n=document.createElement("span");const i=document.createElement("span");const s=document.createElement("span");const o=document.createElement("span");n.className=R;i.className=A;s.className=N;o.className=O;if(!(e===null||e===void 0?void 0:e.has("is_selected"))){const e=this.createCheckboxWrapperNode();t.appendChild(e)}t.appendChild(n);t.appendChild(i);t.appendChild(s);t.appendChild(o);if(e===null||e===void 0?void 0:e.has("last_modified")){s.classList.add(U)}else{s.classList.remove(U)}if(e===null||e===void 0?void 0:e.has("file_size")){o.classList.add($)}else{o.classList.remove($)}return t}createCheckboxWrapperNode(e){const t=document.createElement("label");t.classList.add(B);const n=document.createElement("input");n.type="checkbox";n.addEventListener("click",(e=>{e.preventDefault()}));if(e===null||e===void 0?void 0:e.alwaysVisible){t.classList.add("jp-mod-visible")}else{n.tabIndex=-1}t.appendChild(n);return t}updateItemNode(e,t,n,s,a,d){if(d){e.classList.add(Z)}n=n||w.DocumentRegistry.getDefaultTextFileType(s);const{icon:h,iconClass:u,name:p}=n;s=s||o.nullTranslator;const m=s.load("jupyterlab");const g=i.DOMUtils.findElement(e,R);const f=i.DOMUtils.findElement(e,A);const v=i.DOMUtils.findElement(e,N);const _=i.DOMUtils.findElement(e,O);const b=i.DOMUtils.findElement(e,B);const y=!(a===null||a===void 0?void 0:a.has("is_selected"));if(b&&!y){e.removeChild(b)}else if(y&&!b){const t=this.createCheckboxWrapperNode();e.insertBefore(t,g)}if(a===null||a===void 0?void 0:a.has("last_modified")){v.classList.add(U)}else{v.classList.remove(U)}if(a===null||a===void 0?void 0:a.has("file_size")){_.classList.add($)}else{_.classList.remove($)}r.LabIcon.resolveElement({icon:h,iconClass:(0,r.classes)(u,"jp-Icon"),container:g,className:R,stylesheet:"listing"});let C=m.__("Name: %1",t.name);if(t.size!==null&&t.size!==undefined){const e=ae.formatFileSize(t.size,1,1024);_.textContent=e;C+=m.__("\nSize: %1",ae.formatFileSize(t.size,1,1024))}else{_.textContent=""}if(t.path){const e=l.PathExt.dirname(t.path);if(e){C+=m.__("\nPath: %1",e.substr(0,50));if(e.length>50){C+="..."}}}if(t.created){C+=m.__("\nCreated: %1",l.Time.format(new Date(t.created)))}if(t.last_modified){C+=m.__("\nModified: %1",l.Time.format(new Date(t.last_modified)))}C+=m.__("\nWritable: %1",t.writable);e.title=C;e.setAttribute("data-file-type",p);if(t.name.startsWith(".")){e.setAttribute("data-is-dot","true")}else{e.removeAttribute("data-is-dot")}const x=!t.indices?[]:t.indices;let S=c.StringExt.highlight(t.name,x,j.h.mark);if(f){j.VirtualDOM.render(j.h.span(S),f)}const k=b===null||b===void 0?void 0:b.querySelector('input[type="checkbox"]');if(k){let e;if(n.contentType==="directory"){e=d?m.__('Deselect directory "%1"',S):m.__('Select directory "%1"',S)}else{e=d?m.__('Deselect file "%1"',S):m.__('Select file "%1"',S)}k.setAttribute("aria-label",e);k.checked=d!==null&&d!==void 0?d:false}let M="";let E="";if(t.last_modified){M=l.Time.formatHuman(new Date(t.last_modified));E=l.Time.format(new Date(t.last_modified))}v.textContent=M;v.title=E}getNameNode(e){return i.DOMUtils.findElement(e,A)}getCheckboxNode(e){return e.querySelector(`.${B} input[type=checkbox]`)}createDragImage(e,t,n,s){const o=e.cloneNode(true);const r=i.DOMUtils.findElement(o,N);const a=i.DOMUtils.findElement(o,R);o.removeChild(r);if(!s){a.textContent="";a.className=""}else{a.textContent=s.iconLabel||"";a.className=s.iconClass||""}a.classList.add(G);if(t>1){const e=i.DOMUtils.findElement(o,A);e.textContent=n._n("%1 Item","%1 Items",t)}return o}createHeaderItemNode(e){const t=document.createElement("div");const n=document.createElement("span");const i=document.createElement("span");t.className=I;n.className=T;i.className=D;n.textContent=e;t.appendChild(n);t.appendChild(i);return t}}e.Renderer=t;e.defaultRenderer=new t})(re||(re={}));var ae;(function(e){function t(e,t,n){const i=e.parentElement;i.replaceChild(t,e);t.focus();const s=t.value.lastIndexOf(".");if(s===-1){t.setSelectionRange(0,t.value.length)}else{t.setSelectionRange(0,s)}return new Promise((s=>{t.onblur=()=>{i.replaceChild(e,t);s(t.value)};t.onkeydown=i=>{switch(i.keyCode){case 13:i.stopPropagation();i.preventDefault();t.blur();break;case 27:i.stopPropagation();i.preventDefault();t.value=n;t.blur();e.focus();break;default:break}}}))}e.userInputForRename=t;function n(e,t,n=false){const i=Array.from(e);const s=t.direction==="descending"?1:-1;function o(e,t){if(n){return e.type!==t.type}return e.type==="directory"!==(t.type==="directory")}function r(e){if(e.type==="directory"){return 2}if(e.type==="notebook"&&n){return 1}return 0}function a(e){return(t,n)=>{if(o(t,n)){return r(n)-r(t)}const i=e(t,n);if(i!==0){return i*s}return t.name.localeCompare(n.name)}}if(t.key==="last_modified"){i.sort(a(((e,t)=>new Date(e.last_modified).getTime()-new Date(t.last_modified).getTime())))}else if(t.key==="file_size"){i.sort(a(((e,t)=>{var n,i;return((n=e.size)!==null&&n!==void 0?n:0)-((i=t.size)!==null&&i!==void 0?i:0)})))}else{i.sort(a(((e,t)=>t.name.localeCompare(e.name))))}return i}e.sort=n;function i(e,t){return c.ArrayExt.findFirstIndex(e,(e=>h.ElementExt.hitTest(e,t.clientX,t.clientY)||t.target===e))}e.hitTestNodes=i;function s(e,t,n){if(e===0){return"0 B"}const i=t||2;const s=["B","KB","MB","GB","TB","PB","EB","ZB","YB"];const o=Math.floor(Math.log(e)/Math.log(n));if(o>=0&&o{if(this._uploads.length>0){const t=this._trans.__("Files still uploading");e.returnValue=t;return t}};window.addEventListener("beforeunload",this._unloadEventListener);this._poll=new me.Poll({auto:(t=e.auto)!==null&&t!==void 0?t:true,name:"@jupyterlab/filebrowser:Model",factory:()=>this.cd("."),frequency:{interval:n,backoff:true,max:300*1e3},standby:e.refreshStandby||"when-hidden"})}get connectionFailure(){return this._connectionFailure}get driveName(){return this._driveName}get restored(){return this._restored.promise}get fileChanged(){return this._fileChanged}get path(){return this._model?this._model.path:""}get rootPath(){return this._driveName?this._driveName+":":""}get pathChanged(){return this._pathChanged}get refreshed(){return this._refreshed}get specs(){return this.manager.services.kernelspecs.specs}get isDisposed(){return this._isDisposed}get uploadChanged(){return this._uploadChanged}uploads(){return this._uploads[Symbol.iterator]()}dispose(){if(this.isDisposed){return}window.removeEventListener("beforeunload",this._unloadEventListener);this._isDisposed=true;this._poll.dispose();this._sessions.length=0;this._items.length=0;k.Signal.clearData(this)}items(){return this._items[Symbol.iterator]()}sessions(){return this._sessions[Symbol.iterator]()}async refresh(){await this._poll.refresh();await this._poll.tick;this._refreshed.emit(void 0)}async cd(e="."){if(e!=="."){e=this.manager.services.contents.resolvePath(this._model.path,e)}else{e=this._pendingPath||this._model.path}if(this._pending){if(e===this._pendingPath){return this._pending}await this._pending}const t=this.path;const n={content:true};this._pendingPath=e;if(t!==e){this._sessions.length=0}const i=this.manager.services;this._pending=i.contents.get(e,n).then((n=>{if(this.isDisposed){return}this.handleContents(n);this._pendingPath=null;this._pending=null;if(t!==e){if(this._state&&this._key){void this._state.save(this._key,{path:e})}this._pathChanged.emit({name:"path",oldValue:t,newValue:e})}this.onRunningChanged(i.sessions,i.sessions.running());this._refreshed.emit(void 0)})).catch((t=>{this._pendingPath=null;this._pending=null;if(t.response&&t.response.status===404&&e!=="/"){t.message=this._trans.__('Directory not found: "%1"',this._model.path);console.error(t);this._connectionFailure.emit(t);return this.cd("/")}else{this._connectionFailure.emit(t)}}));return this._pending}async download(e){const t=await this.manager.services.contents.getDownloadUrl(e);const n=document.createElement("a");n.href=t;n.download="";document.body.appendChild(n);n.click();document.body.removeChild(n);return void 0}async restore(e,t=true){const{manager:n}=this;const i=`file-browser-${e}:cwd`;const s=this._state;const o=!!this._key;if(o){return}this._key=i;if(!t||!s){this._restored.resolve(undefined);return}await n.services.ready;try{const e=await s.fetch(i);if(!e){this._restored.resolve(undefined);return}const t=e["path"];if(t){await this.cd("/")}const o=n.services.contents.localPath(t);await n.services.contents.get(t);await this.cd(o)}catch(r){await s.remove(i)}this._restored.resolve(undefined)}async upload(e){const t=l.PageConfig.getNotebookVersion();const n=t<[4,0,0]||t>=[5,1,0];const i=e.size>fe;if(i&&!n){const t=this._trans.__("Cannot upload file (>%1 MB). %2",fe/(1024*1024),e.name);console.warn(t);throw t}const s="File not uploaded";if(i&&!(await this._shouldUploadLarge(e))){throw"Cancelled large file upload"}await this._uploadCheckDisposed();await this.refresh();await this._uploadCheckDisposed();if(this._items.find((t=>t.name===e.name))&&!(await(0,d.shouldOverwrite)(e.name))){throw s}await this._uploadCheckDisposed();const o=n&&e.size>ve;return await this._upload(e,o)}async _shouldUploadLarge(e){const{button:t}=await(0,i.showDialog)({title:this._trans.__("Large file size warning"),body:this._trans.__("The file size is %1 MB. Do you still want to upload it?",Math.round(e.size/(1024*1024))),buttons:[i.Dialog.cancelButton({label:this._trans.__("Cancel")}),i.Dialog.warnButton({label:this._trans.__("Upload")})]});return t.accept}async _upload(e,t){let n=this._model.path;n=n?n+"/"+e.name:e.name;const i=e.name;const s="file";const o="base64";const r=async(t,r)=>{await this._uploadCheckDisposed();const a=new FileReader;a.readAsDataURL(t);await new Promise(((t,n)=>{a.onload=t;a.onerror=t=>n(`Failed to upload "${e.name}":`+t)}));await this._uploadCheckDisposed();const l=a.result.split(",")[1];const d={type:s,format:o,name:i,chunk:r,content:l};return await this.manager.services.contents.save(n,d)};if(!t){try{return await r(e)}catch(d){c.ArrayExt.removeFirstWhere(this._uploads,(t=>e.name===t.path));throw d}}let a;let l={path:n,progress:0};this._uploadChanged.emit({name:"start",newValue:l,oldValue:null});for(let h=0;!a;h+=ve){const t=h+ve;const i=t>=e.size;const s=i?-1:t/ve;const o={path:n,progress:h/e.size};this._uploads.splice(this._uploads.indexOf(l));this._uploads.push(o);this._uploadChanged.emit({name:"update",newValue:o,oldValue:l});l=o;let u;try{u=await r(e.slice(h,t),s)}catch(d){c.ArrayExt.removeFirstWhere(this._uploads,(t=>e.name===t.path));this._uploadChanged.emit({name:"failure",newValue:l,oldValue:null});throw d}if(i){a=u}}this._uploads.splice(this._uploads.indexOf(l));this._uploadChanged.emit({name:"finish",newValue:null,oldValue:l});return a}_uploadCheckDisposed(){if(this.isDisposed){return Promise.reject("Filemanager disposed. File upload canceled")}return Promise.resolve()}handleContents(e){this._model={name:e.name,path:e.path,type:e.type,content:undefined,writable:e.writable,created:e.created,last_modified:e.last_modified,size:e.size,mimetype:e.mimetype,format:e.format};this._items=e.content;this._paths.clear();e.content.forEach((e=>{this._paths.add(e.path)}))}onRunningChanged(e,t){this._populateSessions(t);this._refreshed.emit(void 0)}onFileChanged(e,t){const n=this._model.path;const{sessions:i}=this.manager.services;const{oldValue:s,newValue:o}=t;const r=s&&s.path&&l.PathExt.dirname(s.path)===n?s:o&&o.path&&l.PathExt.dirname(o.path)===n?o:undefined;if(r){void this._poll.refresh();this._populateSessions(i.running());this._fileChanged.emit(t);return}}_populateSessions(e){this._sessions.length=0;for(const t of e){if(this._paths.has(t.path)){this._sessions.push(t)}}}}class be extends _e{constructor(e){super(e);this._includeHiddenFiles=e.includeHiddenFiles||false}items(){return this._includeHiddenFiles?super.items():(0,c.filter)(super.items(),(e=>!e.name.startsWith(".")))}showHiddenFiles(e){this._includeHiddenFiles=e;void this.refresh()}}class ye extends be{constructor(e){var t,n;super(e);this._filter=(t=e.filter)!==null&&t!==void 0?t:e=>({});this._filterDirectories=(n=e.filterDirectories)!==null&&n!==void 0?n:true}get filterDirectories(){return this._filterDirectories}set filterDirectories(e){this._filterDirectories=e}items(){return(0,c.filter)(super.items(),(e=>{if(!this._filterDirectories&&e.type==="directory"){return true}else{const t=this._filter(e);e.indices=t===null||t===void 0?void 0:t.indices;return!!t}}))}setFilter(e){this._filter=e;void this.refresh()}}const we="jp-Open-Dialog";var Ce;(function(e){function t(e){const t=e.translator||o.nullTranslator;const n=t.load("jupyterlab");const s={title:e.title,buttons:[i.Dialog.cancelButton(),i.Dialog.okButton({label:n.__("Select")})],focusNodeSelector:e.focusNodeSelector,host:e.host,renderer:e.renderer,body:new xe(e.manager,e.filter,t)};const r=new i.Dialog(s);return r.launch()}e.getOpenFiles=t;function n(e){return t({...e,filter:e=>e.type==="directory"?{}:null})}e.getExistingDirectory=n})(Ce||(Ce={}));class xe extends a.Widget{constructor(e,t,n,s){super();n=n!==null&&n!==void 0?n:o.nullTranslator;const l=n.load("jupyterlab");this.addClass(we);this._browser=Se.createFilteredFileBrowser("filtered-file-browser-dialog",e,t,{},n,s);(0,i.setToolbar)(this._browser,(e=>[{name:"new-folder",widget:new i.ToolbarButton({icon:r.newFolderIcon,onClick:()=>{void e.createNewDirectory()},tooltip:l.__("New Folder")})},{name:"refresher",widget:new i.ToolbarButton({icon:r.refreshIcon,onClick:()=>{e.model.refresh().catch((e=>{console.error("Failed to refresh file browser in open dialog.",e)}))},tooltip:l.__("Refresh File List")})}]));const d=new a.PanelLayout;d.addWidget(this._browser);this.layout=d}getValue(){const e=Array.from(this._browser.selectedItems());if(e.length===0){return[{path:this._browser.model.path,name:l.PathExt.basename(this._browser.model.path),type:"directory",content:undefined,writable:false,created:"unknown",last_modified:"unknown",mimetype:"text/plain",format:"text"}]}else{return e}}}var Se;(function(e){e.createFilteredFileBrowser=(e,t,n,i={},s,r)=>{s=s||o.nullTranslator;const a=new ye({manager:t,filter:n,translator:s,driveName:i.driveName,refreshInterval:i.refreshInterval,filterDirectories:r});const l=new pe({id:e,model:a,translator:s});return l}})(Se||(Se={}));const ke=new C.Token("@jupyterlab/filebrowser:IFileBrowserFactory",`A factory object that creates file browsers.\n Use this if you want to create your own file browser (e.g., for a custom storage backend),\n or to interact with other file browsers that have been created by extensions.`);const je=new C.Token("@jupyterlab/filebrowser:IDefaultFileBrowser","A service for the default file browser.");const Me=new C.Token("@jupyterlab/filebrowser:IFileBrowserCommands","A token to ensure file browser commands are loaded.");class Ee extends r.ToolbarButton{constructor(e){super({icon:r.fileUploadIcon,label:e.label,onClick:()=>{this._input.click()},tooltip:Ie.translateToolTip(e.translator)});this._onInputChanged=()=>{const e=Array.prototype.slice.call(this._input.files);const t=e.map((e=>this.fileBrowserModel.upload(e)));void Promise.all(t).catch((e=>{void(0,i.showErrorMessage)(this._trans._p("showErrorMessage","Upload Error"),e)}))};this._onInputClicked=()=>{this._input.value=""};this._input=Ie.createUploadInput();this.fileBrowserModel=e.model;this.translator=e.translator||o.nullTranslator;this._trans=this.translator.load("jupyterlab");this._input.onclick=this._onInputClicked;this._input.onchange=this._onInputChanged;this.addClass("jp-id-upload")}}var Ie;(function(e){function t(){const e=document.createElement("input");e.type="file";e.multiple=true;return e}e.createUploadInput=t;function n(e){e=e||o.nullTranslator;const t=e.load("jupyterlab");return t.__("Upload Files")}e.translateToolTip=n})(Ie||(Ie={}));var Te=n(85176);var De=n(28416);var Le=n.n(De);const Pe=4;function Ae(e){const t=e.translator||o.nullTranslator;const n=t.load("jupyterlab");return Le().createElement(Te.GroupItem,{spacing:Pe},Le().createElement(Te.TextItem,{source:n.__("Uploading…")}),Le().createElement(Te.ProgressBar,{percentage:e.upload}))}const Re=2e3;class Ne extends r.VDomRenderer{constructor(e){super(new Ne.Model(e.tracker.currentWidget&&e.tracker.currentWidget.model));this._onBrowserChange=(e,t)=>{if(t===null){this.model.browserModel=null}else{this.model.browserModel=t.model}};this.translator=e.translator||o.nullTranslator;this._trans=this.translator.load("jupyterlab");this._tracker=e.tracker;this._tracker.currentChanged.connect(this._onBrowserChange)}render(){const e=this.model.items;if(e.length>0){const e=this.model.items[0];if(e.complete){return Le().createElement(Te.TextItem,{source:this._trans.__("Complete!")})}else{return Le().createElement(Ae,{upload:this.model.items[0].progress,translator:this.translator})}}else{return Le().createElement(Ae,{upload:100,translator:this.translator})}}dispose(){super.dispose();this._tracker.currentChanged.disconnect(this._onBrowserChange)}}(function(e){class t extends r.VDomModel{constructor(e){super();this._uploadChanged=(e,t)=>{if(t.name==="start"){this._items.push({path:t.newValue.path,progress:t.newValue.progress*100,complete:false})}else if(t.name==="update"){const e=c.ArrayExt.findFirstIndex(this._items,(e=>e.path===t.oldValue.path));if(e!==-1){this._items[e].progress=t.newValue.progress*100}}else if(t.name==="finish"){const e=c.ArrayExt.findFirstValue(this._items,(e=>e.path===t.oldValue.path));if(e){e.complete=true;setTimeout((()=>{c.ArrayExt.removeFirstOf(this._items,e);this.stateChanged.emit(void 0)}),Re)}}else if(t.name==="failure"){c.ArrayExt.removeFirstWhere(this._items,(e=>e.path===t.newValue.path))}this.stateChanged.emit(void 0)};this._items=[];this._browserModel=null;this.browserModel=e}get items(){return this._items}get browserModel(){return this._browserModel}set browserModel(e){const t=this._browserModel;if(t){t.uploadChanged.disconnect(this._uploadChanged)}this._browserModel=e;this._items=[];if(this._browserModel!==null){this._browserModel.uploadChanged.connect(this._uploadChanged)}this.stateChanged.emit(void 0)}}e.Model=t})(Ne||(Ne={}))},59240:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(79536);var r=n(22748);var a=n(94683);var l=n(82401);var d=n(93379);var c=n.n(d);var h=n(7795);var u=n.n(h);var p=n(90569);var m=n.n(p);var g=n(3565);var f=n.n(g);var v=n(19216);var _=n.n(v);var b=n(44589);var y=n.n(b);var w=n(36033);var C={};C.styleTagTransform=y();C.setAttributes=f();C.insert=m().bind(null,"head");C.domAPI=u();C.insertStyleElement=_();var x=c()(w.Z,C);const S=w.Z&&w.Z.locals?w.Z.locals:undefined},18167:(e,t,n)=>{"use strict";n.r(t);n.d(t,{Commands:()=>E,default:()=>O,tabSpaceStatus:()=>D});var i=n(74574);var s=n(10759);var o=n(7005);var r=n(22511);var a=n(62638);var l=n(81201);var d=n(20433);var c=n(19804);var h=n(31490);var u=n(97095);var p=n(50253);var m=n(66899);var g=n(95811);var f=n(85176);var v=n(17321);var _=n(6958);var b=n(4148);var y=n(58740);var w=n(45026);var C=n(52993);var x=n(20501);const S="notebook:toggle-autoclosing-brackets";const k="console:toggle-autoclosing-brackets";var j;(function(e){e.createNew="fileeditor:create-new";e.createNewMarkdown="fileeditor:create-new-markdown-file";e.changeFontSize="fileeditor:change-font-size";e.lineNumbers="fileeditor:toggle-line-numbers";e.currentLineNumbers="fileeditor:toggle-current-line-numbers";e.lineWrap="fileeditor:toggle-line-wrap";e.currentLineWrap="fileeditor:toggle-current-line-wrap";e.changeTabs="fileeditor:change-tabs";e.matchBrackets="fileeditor:toggle-match-brackets";e.currentMatchBrackets="fileeditor:toggle-current-match-brackets";e.autoClosingBrackets="fileeditor:toggle-autoclosing-brackets";e.autoClosingBracketsUniversal="fileeditor:toggle-autoclosing-brackets-universal";e.createConsole="fileeditor:create-console";e.replaceSelection="fileeditor:replace-selection";e.restartConsole="fileeditor:restart-console";e.runCode="fileeditor:run-code";e.runAllCode="fileeditor:run-all";e.markdownPreview="fileeditor:markdown-preview";e.undo="fileeditor:undo";e.redo="fileeditor:redo";e.cut="fileeditor:cut";e.copy="fileeditor:copy";e.paste="fileeditor:paste";e.selectAll="fileeditor:select-all";e.invokeCompleter="completer:invoke-file";e.selectCompleter="completer:select-file";e.openCodeViewer="code-viewer:open";e.changeTheme="fileeditor:change-theme";e.changeLanguage="fileeditor:change-language";e.find="fileeditor:find";e.goToLine="fileeditor:go-to-line"})(j||(j={}));const M="Editor";var E;(function(e){let t={};let n=true;function i(e,t){return async function n(i,s){var o,r,a;const l=s||{};const d=await e.execute("console:create",{activate:l["activate"],name:(o=i.context.contentsModel)===null||o===void 0?void 0:o.name,path:i.context.path,preferredLanguage:i.context.model.defaultKernelLanguage||((a=(r=t.findByFileName(i.context.path))===null||r===void 0?void 0:r.name)!==null&&a!==void 0?a:""),ref:i.id,insertMode:"split-bottom"});i.context.pathChanged.connect(((e,t)=>{var n;d.session.setPath(t);d.session.setName((n=i.context.contentsModel)===null||n===void 0?void 0:n.name)}))}}function r(e,i){var s;t=(s=e.get("editorConfig").composite)!==null&&s!==void 0?s:{};n=e.get("scrollPasteEnd").composite;i.notifyCommandChanged(j.lineNumbers);i.notifyCommandChanged(j.currentLineNumbers);i.notifyCommandChanged(j.lineWrap);i.notifyCommandChanged(j.currentLineWrap);i.notifyCommandChanged(j.changeTabs);i.notifyCommandChanged(j.matchBrackets);i.notifyCommandChanged(j.currentMatchBrackets);i.notifyCommandChanged(j.autoClosingBrackets);i.notifyCommandChanged(j.changeLanguage)}e.updateSettings=r;function a(e){e.forEach((e=>{l(e.content)}))}e.updateTracker=a;function l(e){const i=e.editor;i.setOptions({...t,scrollPastEnd:n})}e.updateWidget=l;function d(e,n,r,a,l,d,c,m,g,f,v){e.addCommand(j.changeFontSize,{execute:e=>{var i;const s=Number(e["delta"]);if(Number.isNaN(s)){console.error(`${j.changeFontSize}: delta arg must be a number`);return}const o=window.getComputedStyle(document.documentElement);const r=parseInt(o.getPropertyValue("--jp-code-font-size"),10);const l=((i=t["customStyles"]["fontSize"])!==null&&i!==void 0?i:m.baseConfiguration["customStyles"]["fontSize"])||r;t.fontSize=l+s;return n.set(a,"editorConfig",t).catch((e=>{console.error(`Failed to set ${a}: ${e.message}`)}))},label:e=>{const t=Number(e["delta"]);if(Number.isNaN(t)){console.error(`${j.changeFontSize}: delta arg must be a number`)}if(t>0){return e.isMenu?r.__("Increase Text Editor Font Size"):r.__("Increase Font Size")}else{return e.isMenu?r.__("Decrease Text Editor Font Size"):r.__("Decrease Font Size")}}});e.addCommand(j.lineNumbers,{execute:async()=>{var e;t.lineNumbers=!((e=t.lineNumbers)!==null&&e!==void 0?e:m.baseConfiguration.lineNumbers);try{return await n.set(a,"editorConfig",t)}catch(i){console.error(`Failed to set ${a}: ${i.message}`)}},isEnabled:l,isToggled:()=>{var e;return(e=t.lineNumbers)!==null&&e!==void 0?e:m.baseConfiguration.lineNumbers},label:r.__("Show Line Numbers")});e.addCommand(j.currentLineNumbers,{label:r.__("Show Line Numbers"),caption:r.__("Show the line numbers for the current file."),execute:()=>{const e=d.currentWidget;if(!e){return}const t=!e.content.editor.getOption("lineNumbers");e.content.editor.setOption("lineNumbers",t)},isEnabled:l,isToggled:()=>{var e;const t=d.currentWidget;return(e=t===null||t===void 0?void 0:t.content.editor.getOption("lineNumbers"))!==null&&e!==void 0?e:false}});e.addCommand(j.lineWrap,{execute:async e=>{var i;t.lineWrap=(i=e["mode"])!==null&&i!==void 0?i:false;try{return await n.set(a,"editorConfig",t)}catch(s){console.error(`Failed to set ${a}: ${s.message}`)}},isEnabled:l,isToggled:e=>{var n,i;const s=(n=e["mode"])!==null&&n!==void 0?n:false;return s===((i=t.lineWrap)!==null&&i!==void 0?i:m.baseConfiguration.lineWrap)},label:r.__("Word Wrap")});e.addCommand(j.currentLineWrap,{label:r.__("Wrap Words"),caption:r.__("Wrap words for the current file."),execute:()=>{const e=d.currentWidget;if(!e){return}const t=e.content.editor.getOption("lineWrap");e.content.editor.setOption("lineWrap",!t)},isEnabled:l,isToggled:()=>{var e;const t=d.currentWidget;return(e=t===null||t===void 0?void 0:t.content.editor.getOption("lineWrap"))!==null&&e!==void 0?e:false}});e.addCommand(j.changeTabs,{label:e=>{var t;if(e.size){return r._p("v4","Spaces: %1",(t=e.size)!==null&&t!==void 0?t:"")}else{return r.__("Indent with Tab")}},execute:async e=>{var i;t.indentUnit=e["size"]!==undefined?((i=e["size"])!==null&&i!==void 0?i:"4").toString():"Tab";try{return await n.set(a,"editorConfig",t)}catch(s){console.error(`Failed to set ${a}: ${s.message}`)}},isToggled:e=>{var n;const i=(n=t.indentUnit)!==null&&n!==void 0?n:m.baseConfiguration.indentUnit;return e["size"]?e["size"]===i:"Tab"==i}});e.addCommand(j.matchBrackets,{execute:async()=>{var e;t.matchBrackets=!((e=t.matchBrackets)!==null&&e!==void 0?e:m.baseConfiguration.matchBrackets);try{return await n.set(a,"editorConfig",t)}catch(i){console.error(`Failed to set ${a}: ${i.message}`)}},label:r.__("Match Brackets"),isEnabled:l,isToggled:()=>{var e;return(e=t.matchBrackets)!==null&&e!==void 0?e:m.baseConfiguration.matchBrackets}});e.addCommand(j.currentMatchBrackets,{label:r.__("Match Brackets"),caption:r.__("Change match brackets for the current file."),execute:()=>{const e=d.currentWidget;if(!e){return}const t=!e.content.editor.getOption("matchBrackets");e.content.editor.setOption("matchBrackets",t)},isEnabled:l,isToggled:()=>{var e;const t=d.currentWidget;return(e=t===null||t===void 0?void 0:t.content.editor.getOption("matchBrackets"))!==null&&e!==void 0?e:false}});e.addCommand(j.autoClosingBrackets,{execute:async e=>{var i,s;t.autoClosingBrackets=!!((i=e["force"])!==null&&i!==void 0?i:!((s=t.autoClosingBrackets)!==null&&s!==void 0?s:m.baseConfiguration.autoClosingBrackets));try{return await n.set(a,"editorConfig",t)}catch(o){console.error(`Failed to set ${a}: ${o.message}`)}},label:r.__("Auto Close Brackets in Text Editor"),isToggled:()=>{var e;return(e=t.autoClosingBrackets)!==null&&e!==void 0?e:m.baseConfiguration.autoClosingBrackets}});e.addCommand(j.autoClosingBracketsUniversal,{execute:()=>{const t=e.isToggled(j.autoClosingBrackets)||e.isToggled(S)||e.isToggled(k);if(t){void e.execute(j.autoClosingBrackets,{force:false});void e.execute(S,{force:false});void e.execute(k,{force:false})}else{void e.execute(j.autoClosingBrackets,{force:true});void e.execute(S,{force:true});void e.execute(k,{force:true})}},label:r.__("Auto Close Brackets"),isToggled:()=>e.isToggled(j.autoClosingBrackets)||e.isToggled(S)||e.isToggled(k)});e.addCommand(j.changeTheme,{label:e=>{var n,i,s,o;return(o=(s=(i=(n=e.displayName)!==null&&n!==void 0?n:e.theme)!==null&&i!==void 0?i:t.theme)!==null&&s!==void 0?s:m.baseConfiguration.theme)!==null&&o!==void 0?o:r.__("Editor Theme")},execute:async e=>{var i;t.theme=(i=e["theme"])!==null&&i!==void 0?i:t.theme;try{return await n.set(a,"editorConfig",t)}catch(s){console.error(`Failed to set theme - ${s.message}`)}},isToggled:e=>{var n;return e["theme"]===((n=t.theme)!==null&&n!==void 0?n:m.baseConfiguration.theme)}});e.addCommand(j.find,{label:r.__("Find…"),execute:()=>{const e=d.currentWidget;if(!e){return}const t=e.content.editor;t.execCommand(C.findNext)},isEnabled:l});e.addCommand(j.goToLine,{label:r.__("Go to Line…"),execute:e=>{const t=d.currentWidget;if(!t){return}const n=t.content.editor;const i=e["line"];const s=e["column"];if(i!==undefined||s!==undefined){n.setCursorPosition({line:(i!==null&&i!==void 0?i:1)-1,column:(s!==null&&s!==void 0?s:1)-1})}else{n.execCommand(C.gotoLine)}},isEnabled:l});e.addCommand(j.changeLanguage,{label:e=>{var t,n;return(n=(t=e["displayName"])!==null&&t!==void 0?t:e["name"])!==null&&n!==void 0?n:r.__("Change editor language.")},execute:e=>{var t;const n=e["name"];const i=d.currentWidget;if(n&&i){const e=g.findByName(n);if(e){if(Array.isArray(e.mime)){i.content.model.mimeType=(t=e.mime[0])!==null&&t!==void 0?t:o.IEditorMimeTypeService.defaultMimeType}else{i.content.model.mimeType=e.mime}}}},isEnabled:l,isToggled:e=>{const t=d.currentWidget;if(!t){return false}const n=t.content.model.mimeType;const i=g.findByMIME(n);const s=i&&i.name;return e["name"]===s}});e.addCommand(j.replaceSelection,{execute:e=>{var t,n;const i=e["text"]||"";const s=d.currentWidget;if(!s){return}(n=(t=s.content.editor).replaceSelection)===null||n===void 0?void 0:n.call(t,i)},isEnabled:l,label:r.__("Replace Selection in Editor")});e.addCommand(j.createConsole,{execute:t=>{const n=d.currentWidget;if(!n){return}return i(e,g)(n,t)},isEnabled:l,icon:b.consoleIcon,label:r.__("Create Console for Editor")});e.addCommand(j.restartConsole,{execute:async()=>{var e;const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t||f===null){return}const n=f.find((e=>{var n;return((n=e.sessionContext.session)===null||n===void 0?void 0:n.path)===t.context.path}));if(n){return v.restart(n.sessionContext)}},label:r.__("Restart Kernel"),isEnabled:()=>f!==null&&l()});e.addCommand(j.runCode,{execute:()=>{var t;const n=(t=d.currentWidget)===null||t===void 0?void 0:t.content;if(!n){return}let i="";const s=n.editor;const o=n.context.path;const r=x.PathExt.extname(o);const a=s.getSelection();const{start:l,end:c}=a;let h=l.column!==c.column||l.line!==c.line;if(h){const e=s.getOffsetAt(a.start);const t=s.getOffsetAt(a.end);i=s.model.sharedModel.getSource().substring(e,t)}else if(x.MarkdownCodeBlocks.isMarkdown(r)){const e=s.model.sharedModel.getSource();const t=x.MarkdownCodeBlocks.findMarkdownCodeBlocks(e);for(const n of t){if(n.startLine<=l.line&&l.line<=n.endLine){i=n.code;h=true;break}}}if(!h){i=s.getLine(a.start.line);const e=s.getCursorPosition();if(e.line+1===s.lineCount){const e=s.model.sharedModel.getSource();s.model.sharedModel.setSource(e+"\n")}s.setCursorPosition({line:e.line+1,column:e.column})}const u=false;if(i){return e.execute("console:inject",{activate:u,code:i,path:o})}else{return Promise.resolve(void 0)}},isEnabled:l,label:r.__("Run Selected Code")});e.addCommand(j.runAllCode,{execute:()=>{var t;const n=(t=d.currentWidget)===null||t===void 0?void 0:t.content;if(!n){return}let i="";const s=n.editor;const o=s.model.sharedModel.getSource();const r=n.context.path;const a=x.PathExt.extname(r);if(x.MarkdownCodeBlocks.isMarkdown(a)){const e=x.MarkdownCodeBlocks.findMarkdownCodeBlocks(o);for(const t of e){i+=t.code}}else{i=o}const l=false;if(i){return e.execute("console:inject",{activate:l,code:i,path:r})}else{return Promise.resolve(void 0)}},isEnabled:l,label:r.__("Run All Code")});e.addCommand(j.markdownPreview,{execute:()=>{const t=d.currentWidget;if(!t){return}const n=t.context.path;return e.execute("markdownviewer:open",{path:n,options:{mode:"split-right"}})},isVisible:()=>{const e=d.currentWidget;return e&&x.PathExt.extname(e.context.path)===".md"||false},icon:b.markdownIcon,label:r.__("Show Markdown Preview")});e.addCommand(j.createNew,{label:e=>{var t,n;if(e.isPalette){return(t=e.paletteLabel)!==null&&t!==void 0?t:r.__("New Text File")}return(n=e.launcherLabel)!==null&&n!==void 0?n:r.__("Text File")},caption:e=>{var t;return(t=e.caption)!==null&&t!==void 0?t:r.__("Create a new text file")},icon:e=>{var t;return e.isPalette?undefined:b.LabIcon.resolve({icon:(t=e.iconName)!==null&&t!==void 0?t:b.textEditorIcon})},execute:t=>{var n;const i=t.cwd||c.model.path;return p(e,i,(n=t.fileExt)!==null&&n!==void 0?n:"txt")}});e.addCommand(j.createNewMarkdown,{label:e=>e["isPalette"]?r.__("New Markdown File"):r.__("Markdown File"),caption:r.__("Create a new markdown file"),icon:e=>e["isPalette"]?undefined:b.markdownIcon,execute:t=>{const n=t["cwd"]||c.model.path;return p(e,n,"md")}});e.addCommand(j.undo,{execute:()=>{var e;const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return}t.editor.undo()},isEnabled:()=>{var e;if(!l()){return false}const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return false}return true},icon:b.undoIcon.bindprops({stylesheet:"menuItem"}),label:r.__("Undo")});e.addCommand(j.redo,{execute:()=>{var e;const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return}t.editor.redo()},isEnabled:()=>{var e;if(!l()){return false}const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return false}return true},icon:b.redoIcon.bindprops({stylesheet:"menuItem"}),label:r.__("Redo")});e.addCommand(j.cut,{execute:()=>{var e;const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return}const n=t.editor;const i=u(n);s.Clipboard.copyToSystem(i);n.replaceSelection&&n.replaceSelection("")},isEnabled:()=>{var e;if(!l()){return false}const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return false}return h(t.editor)},icon:b.cutIcon.bindprops({stylesheet:"menuItem"}),label:r.__("Cut")});e.addCommand(j.copy,{execute:()=>{var e;const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return}const n=t.editor;const i=u(n);s.Clipboard.copyToSystem(i)},isEnabled:()=>{var e;if(!l()){return false}const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return false}return h(t.editor)},icon:b.copyIcon.bindprops({stylesheet:"menuItem"}),label:r.__("Copy")});e.addCommand(j.paste,{execute:async()=>{var e;const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return}const n=t.editor;const i=window.navigator.clipboard;const s=await i.readText();if(s){n.replaceSelection&&n.replaceSelection(s)}},isEnabled:()=>{var e;return Boolean(l()&&((e=d.currentWidget)===null||e===void 0?void 0:e.content))},icon:b.pasteIcon.bindprops({stylesheet:"menuItem"}),label:r.__("Paste")});e.addCommand(j.selectAll,{execute:()=>{var e;const t=(e=d.currentWidget)===null||e===void 0?void 0:e.content;if(!t){return}const n=t.editor;n.execCommand(w.selectAll)},isEnabled:()=>{var e;return Boolean(l()&&((e=d.currentWidget)===null||e===void 0?void 0:e.content))},label:r.__("Select All")})}e.addCommands=d;function c(e,t,n,i){const s=(i!==null&&i!==void 0?i:_.nullTranslator).load("jupyterlab");e.addCommand(j.invokeCompleter,{label:s.__("Display the completion helper."),execute:()=>{const e=t.currentWidget&&t.currentWidget.id;if(e){return n.invoke(e)}}});e.addCommand(j.selectCompleter,{label:s.__("Select the completion suggestion."),execute:()=>{const e=t.currentWidget&&t.currentWidget.id;if(e){return n.select(e)}}});e.addKeyBinding({command:j.selectCompleter,keys:["Enter"],selector:".jp-FileEditor .jp-mod-completer-active"})}e.addCompleterCommands=c;function h(e){const t=e.getSelection();const{start:n,end:i}=t;const s=n.column!==i.column||n.line!==i.line;return s}function u(e){const t=e.getSelection();const n=e.getOffsetAt(t.start);const i=e.getOffsetAt(t.end);const s=e.model.sharedModel.getSource().substring(n,i);return s}async function p(e,t,n="txt"){const i=await e.execute("docmanager:new-untitled",{path:t,type:"file",ext:n});if(i!=undefined){const t=await e.execute("docmanager:open",{path:i.path,factory:M});t.isUntitled=true;return t}}function m(e,t){g(e,t);f(e,t)}e.addLauncherItems=m;function g(e,t){e.add({command:j.createNew,category:t.__("Other"),rank:1})}e.addCreateNewToLauncher=g;function f(e,t){e.add({command:j.createNewMarkdown,category:t.__("Other"),rank:2})}e.addCreateNewMarkdownToLauncher=f;function v(e,t,n){for(let i of n){e.add({command:j.createNew,category:t.__("Other"),rank:3,args:i})}}e.addKernelLanguageLauncherItems=v;function E(e,t){I(e,t);T(e,t);D(e,t);L(e,t)}e.addPaletteItems=E;function I(e,t){const n=t.__("Text Editor");const i={size:4};const s=j.changeTabs;e.addItem({command:s,args:i,category:n});for(const o of[1,2,4,8]){const t={size:o};e.addItem({command:s,args:t,category:n})}}e.addChangeTabsCommandsToPalette=I;function T(e,t){const n=t.__("Text Editor");e.addItem({command:j.createNew,args:{isPalette:true},category:n})}e.addCreateNewCommandToPalette=T;function D(e,t){const n=t.__("Text Editor");e.addItem({command:j.createNewMarkdown,args:{isPalette:true},category:n})}e.addCreateNewMarkdownCommandToPalette=D;function L(e,t){const n=t.__("Text Editor");const i=j.changeFontSize;let s={delta:1};e.addItem({command:i,args:s,category:n});s={delta:-1};e.addItem({command:i,args:s,category:n})}e.addChangeFontSizeCommandsToPalette=L;function P(e,t,n){const i=t.__("Text Editor");for(let s of n){e.addItem({command:j.createNew,args:{...s,isPalette:true},category:i})}}e.addKernelLanguagePaletteItems=P;function A(e,t,n,i){e.editMenu.undoers.redo.add({id:j.redo,isEnabled:i});e.editMenu.undoers.undo.add({id:j.undo,isEnabled:i});e.viewMenu.editorViewers.toggleLineNumbers.add({id:j.currentLineNumbers,isEnabled:i});e.viewMenu.editorViewers.toggleMatchBrackets.add({id:j.currentMatchBrackets,isEnabled:i});e.viewMenu.editorViewers.toggleWordWrap.add({id:j.currentLineWrap,isEnabled:i});e.fileMenu.consoleCreators.add({id:j.createConsole,isEnabled:i});if(n){N(e,n,i)}}e.addMenuItems=A;function R(e,t){for(let n of t){e.fileMenu.newMenu.addItem({command:j.createNew,args:n,rank:31})}}e.addKernelLanguageMenuItems=R;function N(e,t,n){const i=e=>n()&&e.context&&!!t.find((t=>{var n;return((n=t.sessionContext.session)===null||n===void 0?void 0:n.path)===e.context.path}));e.runMenu.codeRunners.restart.add({id:j.restartConsole,isEnabled:i});e.runMenu.codeRunners.run.add({id:j.runCode,isEnabled:i});e.runMenu.codeRunners.runAll.add({id:j.runAllCode,isEnabled:i})}e.addCodeRunnersToRunMenu=N;function O(e,t,n,i){const r=async r=>{var a;const l=t.factoryService.newDocumentEditor;const d=e=>l(e);let c=r.mimeType;if(!c&&r.extension){c=t.mimeTypeService.getMimeTypeByFilePath(`temp.${r.extension.replace(/\\.$/,"")}`)}const h=o.CodeViewerWidget.createCodeViewer({factory:d,content:r.content,mimeType:c});h.title.label=r.label||i.__("Code Viewer");h.title.caption=h.title.label;const u=(0,y.find)(e.docRegistry.fileTypes(),(e=>c?e.mimeTypes.includes(c):false));h.title.icon=(a=u===null||u===void 0?void 0:u.icon)!==null&&a!==void 0?a:b.textEditorIcon;if(r.widgetId){h.id=r.widgetId}const p=new s.MainAreaWidget({content:h});await n.add(p);e.shell.add(p,"main");return h};e.commands.addCommand(j.openCodeViewer,{label:i.__("Open Code Viewer"),execute:e=>r(e)})}e.addOpenCodeViewerCommand=O})(E||(E={}));const I={id:"@jupyterlab/fileeditor-extension:editor-syntax-status",description:"Adds a file editor syntax status widget.",autoStart:true,requires:[h.IEditorTracker,r.IEditorLanguageRegistry,i.ILabShell,_.ITranslator],optional:[f.IStatusBar],activate:(e,t,n,i,s,o)=>{if(!o){return}const r=new h.EditorSyntaxStatus({commands:e.commands,languages:n,translator:s});i.currentChanged.connect((()=>{const e=i.currentWidget;if(e&&t.has(e)&&r.model){r.model.editor=e.content.editor}}));o.registerStatusItem(I.id,{item:r,align:"left",rank:0,isActive:()=>!!i.currentWidget&&!!t.currentWidget&&i.currentWidget===t.currentWidget})}};const T={activate:B,id:"@jupyterlab/fileeditor-extension:plugin",description:"Provides the file editor widget tracker.",requires:[o.IEditorServices,r.IEditorExtensionRegistry,r.IEditorLanguageRegistry,r.IEditorThemeRegistry,c.IDefaultFileBrowser,g.ISettingRegistry],optional:[l.IConsoleTracker,s.ICommandPalette,u.ILauncher,m.IMainMenu,i.ILayoutRestorer,s.ISessionContextDialogs,v.ITableOfContentsRegistry,s.IToolbarWidgetRegistry,_.ITranslator,b.IFormRendererRegistry],provides:h.IEditorTracker,autoStart:true};const D={id:"@jupyterlab/fileeditor-extension:tab-space-status",description:"Adds a file editor indentation status widget.",autoStart:true,requires:[h.IEditorTracker,r.IEditorExtensionRegistry,g.ISettingRegistry,_.ITranslator],optional:[f.IStatusBar],activate:(e,t,n,i,s,o)=>{const r=s.load("jupyterlab");if(!o){return}const a=new b.MenuSvg({commands:e.commands});const l="fileeditor:change-tabs";const{shell:d}=e;const c={name:r.__("Indent with Tab")};a.addItem({command:l,args:c});for(const h of["1","2","4","8"]){const e={size:h,name:r._p("v4","Spaces: %1",h)};a.addItem({command:l,args:e})}const u=new h.TabSpaceStatus({menu:a,translator:s});const p=e=>{var t,i,s;u.model.indentUnit=(s=(i=(t=e.get("editorConfig").composite)===null||t===void 0?void 0:t.indentUnit)!==null&&i!==void 0?i:n.baseConfiguration.indentUnit)!==null&&s!==void 0?s:null};void Promise.all([i.load("@jupyterlab/fileeditor-extension:plugin"),e.restored]).then((([e])=>{p(e);e.changed.connect(p)}));o.registerStatusItem("@jupyterlab/fileeditor-extension:tab-space-status",{item:u,align:"right",rank:1,isActive:()=>!!d.currentWidget&&t.has(d.currentWidget)})}};const L={id:"@jupyterlab/fileeditor-extension:cursor-position",description:"Adds a file editor cursor position status widget.",activate:(e,t,n)=>{n.addEditorProvider((e=>Promise.resolve(e&&t.has(e)?e.content.editor:null)))},requires:[h.IEditorTracker,o.IPositionModel],autoStart:true};const P={id:"@jupyterlab/fileeditor-extension:completer",description:"Adds the completer capability to the file editor.",requires:[h.IEditorTracker],optional:[a.ICompletionProviderManager,_.ITranslator,s.ISanitizer],activate:F,autoStart:true};const A={id:"@jupyterlab/fileeditor-extension:search",description:"Adds search capability to the file editor.",requires:[d.ISearchProviderRegistry],autoStart:true,activate:(e,t)=>{t.add("jp-fileeditorSearchProvider",h.FileEditorSearchProvider)}};const R={id:"@jupyterlab/fileeditor-extension:language-server",description:"Adds Language Server capability to the file editor.",requires:[h.IEditorTracker,p.ILSPDocumentConnectionManager,p.ILSPFeatureManager,p.ILSPCodeExtractorsManager],activate:z,autoStart:true};const N=[T,L,P,R,A,I,D];const O=N;function B(e,t,n,i,o,r,a,l,d,c,u,p,m,g,f,v,b){const y=T.id;const w=v!==null&&v!==void 0?v:_.nullTranslator;const C=m!==null&&m!==void 0?m:new s.SessionContextDialogs({translator:w});const x=w.load("jupyterlab");const S="editor";let k;if(f){k=(0,s.createToolbarFactory)(f,a,M,y,w)}const I=new h.FileEditorFactory({editorServices:t,factoryOptions:{name:M,label:x.__("Editor"),fileTypes:["markdown","*"],defaultFor:["markdown","*"],toolbarFactory:k,translator:w}});const{commands:D,restored:L,shell:P}=e;const A=new s.WidgetTracker({namespace:S});const R=()=>A.currentWidget!==null&&A.currentWidget===P.currentWidget;const N=new Map([["python",[{fileExt:"py",iconName:"ui-components:python",launcherLabel:x.__("Python File"),paletteLabel:x.__("New Python File"),caption:x.__("Create a new Python file")}]],["julia",[{fileExt:"jl",iconName:"ui-components:julia",launcherLabel:x.__("Julia File"),paletteLabel:x.__("New Julia File"),caption:x.__("Create a new Julia file")}]],["R",[{fileExt:"r",iconName:"ui-components:r-kernel",launcherLabel:x.__("R File"),paletteLabel:x.__("New R File"),caption:x.__("Create a new R file")}]]]);const O=async()=>{var t,n;const i=e.serviceManager.kernelspecs;await i.ready;let s=new Set;const o=(n=(t=i.specs)===null||t===void 0?void 0:t.kernelspecs)!==null&&n!==void 0?n:{};Object.keys(o).forEach((e=>{const t=o[e];if(t){const e=N.get(t.language);e===null||e===void 0?void 0:e.forEach((e=>s.add(e)))}}));return s};if(p){void p.restore(A,{command:"docmanager:open",args:e=>({path:e.context.path,factory:M}),name:e=>e.context.path})}Promise.all([a.load(y),L]).then((([e])=>{var t,n,s;if(u){const e=(t=u.viewMenu.items.find((e=>{var t;return e.type==="submenu"&&((t=e.submenu)===null||t===void 0?void 0:t.id)==="jp-mainmenu-view-codemirror-language"})))===null||t===void 0?void 0:t.submenu;if(e){i.getLanguages().sort(((e,t)=>{const n=e.name;const i=t.name;return n.localeCompare(i)})).forEach((t=>{if(t.name.toLowerCase().indexOf("brainf")===0){return}e.addItem({command:j.changeLanguage,args:{...t}})}))}const r=(n=u.settingsMenu.items.find((e=>{var t;return e.type==="submenu"&&((t=e.submenu)===null||t===void 0?void 0:t.id)==="jp-mainmenu-settings-codemirror-theme"})))===null||n===void 0?void 0:n.submenu;if(r){for(const e of o.themes){r.addItem({command:j.changeTheme,args:{theme:e.name,displayName:(s=e.displayName)!==null&&s!==void 0?s:e.name}})}}u.editMenu.goToLiners.add({id:j.goToLine,isEnabled:e=>A.currentWidget!==null&&A.has(e)})}E.updateSettings(e,D);E.updateTracker(A);e.changed.connect((()=>{E.updateSettings(e,D);E.updateTracker(A)}))})).catch((e=>{console.error(e.message);E.updateTracker(A)}));if(b){const e=b.getRenderer("@jupyterlab/codemirror-extension:plugin.defaultConfig");if(e){b.addRenderer("@jupyterlab/fileeditor-extension:plugin.editorConfig",e)}}I.widgetCreated.connect(((e,t)=>{t.context.pathChanged.connect((()=>{void A.save(t)}));void A.add(t);E.updateWidget(t.content)}));e.docRegistry.addWidgetFactory(I);A.widgetAdded.connect(((e,t)=>{E.updateWidget(t.content)}));E.addCommands(e.commands,a,x,y,R,A,r,n,i,l,C);const B=new s.WidgetTracker({namespace:"codeviewer"});if(p){void p.restore(B,{command:j.openCodeViewer,args:e=>({content:e.content.content,label:e.content.title.label,mimeType:e.content.mimeType,widgetId:e.content.id}),name:e=>e.content.id})}E.addOpenCodeViewerCommand(e,t,B,x);if(c){E.addLauncherItems(c,x)}if(d){E.addPaletteItems(d,x)}if(u){E.addMenuItems(u,A,l,R)}O().then((e=>{if(c){E.addKernelLanguageLauncherItems(c,x,e)}if(d){E.addKernelLanguagePaletteItems(d,x,e)}if(u){E.addKernelLanguageMenuItems(u,e)}})).catch((e=>{console.error(e.message)}));if(g){g.add(new h.LaTeXTableOfContentsFactory(A));g.add(new h.MarkdownTableOfContentsFactory(A));g.add(new h.PythonTableOfContentsFactory(A))}return A}function F(e,t,n,i,o){if(!n){return}E.addCompleterCommands(e.commands,t,n,i);const r=e.serviceManager.sessions;const a=o!==null&&o!==void 0?o:new s.Sanitizer;const l=new Map;const d=async(e,t)=>{const i={editor:t.content.editor,widget:t};await n.updateCompleter(i);const s=(e,i)=>{const s=l.get(t.id);const o=(0,y.find)(i,(e=>e.path===t.context.path));if(o){if(s&&s.id===o.id){return}if(s){l.delete(t.id);s.dispose()}const e=r.connectTo({model:o});const i={editor:t.content.editor,widget:t,session:e,sanitizer:a};n.updateCompleter(i).catch(console.error);l.set(t.id,e)}else{if(s){l.delete(t.id);s.dispose()}}};s(r,Array.from(r.running()));r.runningChanged.connect(s);t.disposed.connect((()=>{r.runningChanged.disconnect(s);const e=l.get(t.id);if(e){l.delete(t.id);e.dispose()}}))};t.widgetAdded.connect(d);n.activeProvidersChanged.connect((()=>{t.forEach((e=>{d(t,e).catch(console.error)}))}))}function z(e,t,n,i,s){t.widgetAdded.connect((async(t,o)=>{const r=new h.FileEditorAdapter(o,{connectionManager:n,featureManager:i,foreignCodeExtractorsManager:s,docRegistry:e.docRegistry});n.registerAdapter(o.context.path,r)}))}},71821:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(98328);var r=n(79536);var a=n(49914);var l=n(94683);var d=n(90516);var c=n(38613);var h=n(37935);var u=n(64431);var p=n(59240);var m=n(99434);var g=n(42650);var f=n(51734);var v=n(33379);var _=n(52812);var b=n(74518)},84877:(e,t,n)=>{"use strict";n.r(t);n.d(t,{EditorSyntaxStatus:()=>C,EditorTableOfContentsFactory:()=>j,FileEditor:()=>m,FileEditorAdapter:()=>o,FileEditorFactory:()=>g,FileEditorSearchProvider:()=>f,IEditorTracker:()=>N,LaTeXTableOfContentsFactory:()=>T,LaTeXTableOfContentsModel:()=>I,MarkdownTableOfContentsFactory:()=>L,MarkdownTableOfContentsModel:()=>D,PythonTableOfContentsFactory:()=>R,PythonTableOfContentsModel:()=>A,TabSpaceStatus:()=>S});var i=n(50253);var s=n(5596);class o extends i.WidgetLSPAdapter{constructor(e,t){const{docRegistry:n,...i}=t;super(e,i);this._readyDelegate=new s.PromiseDelegate;this.editor=e.content;this._docRegistry=n;this._virtualEditor=Object.freeze({getEditor:()=>this.editor.editor,ready:()=>Promise.resolve(this.editor.editor),reveal:()=>Promise.resolve(this.editor.editor)});Promise.all([this.editor.context.ready,this.connectionManager.ready]).then((async()=>{await this.initOnceReady();this._readyDelegate.resolve()})).catch(console.error)}get ready(){return this._readyDelegate.promise}get documentPath(){return this.widget.context.path}get mimeType(){var e;const t=this.editor.model.mimeType;const n=Array.isArray(t)?(e=t[0])!==null&&e!==void 0?e:"text/plain":t;const i=this.editor.context.contentsModel;if(n!="text/plain"){return n}else if(i){let e=this._docRegistry.getFileTypeForModel(i);return e.mimeTypes[0]}else{return n}}get languageFileExtension(){let e=this.documentPath.split(".");return e[e.length-1]}get ceEditor(){return this.editor.editor}get activeEditor(){return this._virtualEditor}get wrapperElement(){return this.widget.node}get path(){return this.widget.context.path}get editors(){var e,t;return[{ceEditor:this._virtualEditor,type:"code",value:(t=(e=this.editor)===null||e===void 0?void 0:e.model.sharedModel.getSource())!==null&&t!==void 0?t:""}]}dispose(){if(this.isDisposed){return}this.editor.model.mimeTypeChanged.disconnect(this.reloadConnection);super.dispose()}createVirtualDocument(){return new i.VirtualDocument({language:this.language,foreignCodeExtractors:this.options.foreignCodeExtractorsManager,path:this.documentPath,fileExtension:this.languageFileExtension,standalone:true,hasLspSupportedFile:true})}getEditorIndexAt(e){return 0}getEditorIndex(e){return 0}getEditorWrapper(e){return this.wrapperElement}async initOnceReady(){this.initVirtual();await this.connectDocument(this.virtualDocument,false);this.editor.model.mimeTypeChanged.connect(this.reloadConnection,this)}}var r=n(10759);var a=n(22511);var l=n(7005);var d=n(12542);var c=n(4148);var h=n(85448);const u="jpCodeRunner";const p="jpUndoer";class m extends h.Widget{constructor(e){super();this._ready=new s.PromiseDelegate;this.addClass("jp-FileEditor");const t=this._context=e.context;this._mimeTypeService=e.mimeTypeService;const n=this._editorWidget=new l.CodeEditorWrapper({factory:e.factory,model:t.model,editorOptions:{config:m.defaultEditorConfig}});this._editorWidget.addClass("jp-FileEditorCodeWrapper");this._editorWidget.node.dataset[u]="true";this._editorWidget.node.dataset[p]="true";this.editor=n.editor;this.model=n.model;void t.ready.then((()=>{this._onContextReady()}));this._onPathChanged();t.pathChanged.connect(this._onPathChanged,this);const i=this.layout=new h.StackedLayout;i.addWidget(n)}get context(){return this._context}get ready(){return this._ready.promise}handleEvent(e){if(!this.model){return}switch(e.type){case"mousedown":this._ensureFocus();break;default:break}}onAfterAttach(e){super.onAfterAttach(e);const t=this.node;t.addEventListener("mousedown",this)}onBeforeDetach(e){const t=this.node;t.removeEventListener("mousedown",this)}onActivateRequest(e){this._ensureFocus()}_ensureFocus(){if(!this.editor.hasFocus()){this.editor.focus()}}_onContextReady(){if(this.isDisposed){return}this.editor.clearHistory();this._ready.resolve(undefined)}_onPathChanged(){const e=this.editor;const t=this._context.localPath;e.model.mimeType=this._mimeTypeService.getMimeTypeByFilePath(t)}}(function(e){e.defaultEditorConfig={lineNumbers:true,scrollPastEnd:true}})(m||(m={}));class g extends d.ABCWidgetFactory{constructor(e){super(e.factoryOptions);this._services=e.editorServices}createNewWidget(e){const t=this._services.factoryService.newDocumentEditor;const n=e=>t(e);const i=new m({factory:n,context:e,mimeTypeService:this._services.mimeTypeService});i.title.icon=c.textEditorIcon;const s=new d.DocumentWidget({content:i,context:e});return s}}class f extends a.EditorSearchProvider{constructor(e){super();this.widget=e}get isReadOnly(){return this.editor.getOption("readOnly")}get replaceOptionsSupport(){return{preserveCase:true}}get editor(){return this.widget.content.editor}get model(){return this.widget.content.model}async startQuery(e,t){await super.startQuery(e,t);await this.highlightNext(true,{from:"selection-start",scroll:false,select:false})}static createNew(e,t){return new f(e)}static isApplicable(e){return e instanceof r.MainAreaWidget&&e.content instanceof m&&e.content.editor instanceof a.CodeMirrorEditor}getInitialQuery(){const e=this.editor;const t=e.state.sliceDoc(e.state.selection.main.from,e.state.selection.main.to);return t}}var v=n(85176);var _=n(6958);var b=n(28416);var y=n.n(b);function w(e){return y().createElement(v.TextItem,{source:e.language,onClick:e.handleClick})}class C extends c.VDomRenderer{constructor(e){var t;super(new C.Model(e.languages));this._handleClick=()=>{const e=new h.Menu({commands:this._commands});const t="fileeditor:change-language";if(this._popup){this._popup.dispose()}this.model.languages.getLanguages().sort(((e,t)=>{var n,i;const s=(n=e.displayName)!==null&&n!==void 0?n:e.name;const o=(i=t.displayName)!==null&&i!==void 0?i:t.name;return s.localeCompare(o)})).forEach((n=>{var i;if(n.name.toLowerCase().indexOf("brainf")===0){return}const s={name:n.name,displayName:(i=n.displayName)!==null&&i!==void 0?i:n.name};e.addItem({command:t,args:s})}));this._popup=(0,v.showPopup)({body:e,anchor:this,align:"left"})};this._popup=null;this._commands=e.commands;this.translator=(t=e.translator)!==null&&t!==void 0?t:_.nullTranslator;const n=this.translator.load("jupyterlab");this.addClass("jp-mod-highlighted");this.title.caption=n.__("Change text editor syntax highlighting")}render(){if(!this.model){return null}return y().createElement(w,{language:this.model.language,handleClick:this._handleClick})}}(function(e){class t extends c.VDomModel{constructor(e){super();this.languages=e;this._onMIMETypeChange=(e,t)=>{var n;const i=this._language;const s=this.languages.findByMIME(t.newValue);this._language=(n=s===null||s===void 0?void 0:s.name)!==null&&n!==void 0?n:l.IEditorMimeTypeService.defaultMimeType;this._triggerChange(i,this._language)};this._language="";this._editor=null}get language(){return this._language}get editor(){return this._editor}set editor(e){var t;const n=this._editor;if(n!==null){n.model.mimeTypeChanged.disconnect(this._onMIMETypeChange)}const i=this._language;this._editor=e;if(this._editor===null){this._language=""}else{const e=this.languages.findByMIME(this._editor.model.mimeType);this._language=(t=e===null||e===void 0?void 0:e.name)!==null&&t!==void 0?t:l.IEditorMimeTypeService.defaultMimeType;this._editor.model.mimeTypeChanged.connect(this._onMIMETypeChange)}this._triggerChange(i,this._language)}_triggerChange(e,t){if(e!==t){this.stateChanged.emit(void 0)}}}e.Model=t})(C||(C={}));function x(e){const t=e.translator||_.nullTranslator;const n=t.load("jupyterlab");const i=typeof e.tabSpace==="number"?n.__("Spaces"):n.__("Tab Indent");return y().createElement(v.TextItem,{onClick:e.handleClick,source:typeof e.tabSpace==="number"?`${i}: ${e.tabSpace}`:i,title:n.__("Change the indentation…")})}class S extends c.VDomRenderer{constructor(e){super(new S.Model);this._popup=null;this._menu=e.menu;this.translator=e.translator||_.nullTranslator;this.addClass("jp-mod-highlighted")}render(){var e;if(!((e=this.model)===null||e===void 0?void 0:e.indentUnit)){return null}else{const e=this.model.indentUnit==="Tab"?null:parseInt(this.model.indentUnit,10);return y().createElement(x,{tabSpace:e,handleClick:()=>this._handleClick(),translator:this.translator})}}_handleClick(){const e=this._menu;if(this._popup){this._popup.dispose()}e.aboutToClose.connect(this._menuClosed,this);this._popup=(0,v.showPopup)({body:e,anchor:this,align:"right"});e.update()}_menuClosed(){this.removeClass("jp-mod-clicked")}}(function(e){class t extends c.VDomModel{get indentUnit(){return this._indentUnit}set indentUnit(e){if(e!==this._indentUnit){this._indentUnit=e;this.stateChanged.emit()}}}e.Model=t})(S||(S={}));var k=n(17321);class j extends k.TableOfContentsFactory{createNew(e,t){const n=super.createNew(e,t);const i=(t,n)=>{if(n){e.content.editor.setCursorPosition({line:n.line,column:0})}};n.activeHeadingChanged.connect(i);e.disposed.connect((()=>{n.activeHeadingChanged.disconnect(i)}));return n}}const M={part:1,chapter:1,section:1,subsection:2,subsubsection:3,paragraph:4,subparagraph:5};const E=/^\s*\\(section|subsection|subsubsection){(.+)}/;class I extends k.TableOfContentsModel{get documentType(){return"latex"}get supportedOptions(){return["maximalDepth","numberHeaders"]}getHeadings(){if(!this.isActive){return Promise.resolve(null)}const e=this.widget.content.model.sharedModel.getSource().split("\n");const t=new Array;let n=t.length;const i=new Array;for(let s=0;s0){s=n}const a=["from ","import "].includes(e[1]);if(a&&i){continue}i=a;const l=1+n/s;if(l>this.configuration.maximalDepth){continue}t.push({text:r.slice(n),level:l,line:o})}}return Promise.resolve(t)}}class R extends j{isApplicable(e){var t,n;const i=super.isApplicable(e);if(i){let i=(n=(t=e.content)===null||t===void 0?void 0:t.model)===null||n===void 0?void 0:n.mimeType;return i&&(i==="application/x-python-code"||i==="text/x-python")}return false}_createNew(e,t){return new A(e,t)}}const N=new s.Token("@jupyterlab/fileeditor:IEditorTracker",`A widget tracker for file editors.\n Use this if you want to be able to iterate over and interact with file editors\n created by the application.`)},33379:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(79536);var r=n(49914);var a=n(38613);var l=n(37935);var d=n(94683);var c=n(51734);var h=n(99434);var u=n(93379);var p=n.n(u);var m=n(7795);var g=n.n(m);var f=n(90569);var v=n.n(f);var _=n(3565);var b=n.n(_);var y=n(19216);var w=n.n(y);var C=n(44589);var x=n.n(C);var S=n(5751);var k={};k.styleTagTransform=x();k.setAttributes=b();k.insert=v().bind(null,"head");k.domAPI=g();k.insertStyleElement=w();var j=p()(S.Z,k);const M=S.Z&&S.Z.locals?S.Z.locals:undefined},16783:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>k});var i=n(74574);var s=n(10759);var o=n(20501);var r=n(66899);var a=n(6958);var l=n(4148);var d=n(28416);var c=n(96306);var h=n(5596);var u=n(71372);var p=n(90502);var m=n(85448);const g="jp-Licenses-Filters-title";class f extends m.SplitPanel{constructor(e){super();this.addClass("jp-Licenses");this.model=e.model;this.initLeftPanel();this.initFilters();this.initBundles();this.initGrid();this.initLicenseText();this.setRelativeSizes([1,2,3]);void this.model.initLicenses().then((()=>this._updateBundles()));this.model.trackerDataChanged.connect((()=>{this.title.label=this.model.title}))}dispose(){if(this.isDisposed){return}this._bundles.currentChanged.disconnect(this.onBundleSelected,this);this.model.dispose();super.dispose()}initLeftPanel(){this._leftPanel=new m.Panel;this._leftPanel.addClass("jp-Licenses-FormArea");this.addWidget(this._leftPanel);m.SplitPanel.setStretch(this._leftPanel,1)}initFilters(){this._filters=new f.Filters(this.model);m.SplitPanel.setStretch(this._filters,1);this._leftPanel.addWidget(this._filters)}initBundles(){this._bundles=new m.TabBar({orientation:"vertical",renderer:new f.BundleTabRenderer(this.model)});this._bundles.addClass("jp-Licenses-Bundles");m.SplitPanel.setStretch(this._bundles,1);this._leftPanel.addWidget(this._bundles);this._bundles.currentChanged.connect(this.onBundleSelected,this);this.model.stateChanged.connect((()=>this._bundles.update()))}initGrid(){this._grid=new f.Grid(this.model);m.SplitPanel.setStretch(this._grid,1);this.addWidget(this._grid)}initLicenseText(){this._licenseText=new f.FullText(this.model);m.SplitPanel.setStretch(this._grid,1);this.addWidget(this._licenseText)}onBundleSelected(){var e;if((e=this._bundles.currentTitle)===null||e===void 0?void 0:e.label){this.model.currentBundleName=this._bundles.currentTitle.label}}_updateBundles(){this._bundles.clearTabs();let e=0;const{currentBundleName:t}=this.model;let n=0;for(const i of this.model.bundleNames){const s=new m.Widget;s.title.label=i;if(i===t){n=e}this._bundles.insertTab(++e,s.title)}this._bundles.currentIndex=n}}(function(e){e.REPORT_FORMATS={markdown:{id:"markdown",title:"Markdown",icon:l.markdownIcon},csv:{id:"csv",title:"CSV",icon:l.spreadsheetIcon},json:{id:"csv",title:"JSON",icon:l.jsonIcon}};e.DEFAULT_FORMAT="markdown";class t extends l.VDomModel{constructor(e){super();this._selectedPackageChanged=new u.Signal(this);this._trackerDataChanged=new u.Signal(this);this._currentPackageIndex=0;this._licensesReady=new h.PromiseDelegate;this._packageFilter={};this._trans=e.trans;this._licensesUrl=e.licensesUrl;this._serverSettings=e.serverSettings||c.ServerConnection.makeSettings();if(e.currentBundleName){this._currentBundleName=e.currentBundleName}if(e.packageFilter){this._packageFilter=e.packageFilter}if(e.currentPackageIndex){this._currentPackageIndex=e.currentPackageIndex}}async initLicenses(){try{const e=await c.ServerConnection.makeRequest(this._licensesUrl,{},this._serverSettings);this._serverResponse=await e.json();this._licensesReady.resolve();this.stateChanged.emit(void 0)}catch(e){this._licensesReady.reject(e)}}async download(e){const t=`${this._licensesUrl}?format=${e.format}&download=1`;const n=document.createElement("a");n.href=t;n.download="";document.body.appendChild(n);n.click();document.body.removeChild(n);return void 0}get selectedPackageChanged(){return this._selectedPackageChanged}get trackerDataChanged(){return this._trackerDataChanged}get bundleNames(){var e;return Object.keys(((e=this._serverResponse)===null||e===void 0?void 0:e.bundles)||{})}get currentBundleName(){if(this._currentBundleName){return this._currentBundleName}if(this.bundleNames.length){return this.bundleNames[0]}return null}set currentBundleName(e){if(this._currentBundleName!==e){this._currentBundleName=e;this.stateChanged.emit(void 0);this._trackerDataChanged.emit(void 0)}}get licensesReady(){return this._licensesReady.promise}get bundles(){var e;return((e=this._serverResponse)===null||e===void 0?void 0:e.bundles)||{}}get currentPackageIndex(){return this._currentPackageIndex}set currentPackageIndex(e){if(this._currentPackageIndex===e){return}this._currentPackageIndex=e;this._selectedPackageChanged.emit(void 0);this.stateChanged.emit(void 0);this._trackerDataChanged.emit(void 0)}get currentPackage(){var e;if(this.currentBundleName&&this.bundles&&this._currentPackageIndex!=null){return this.getFilteredPackages(((e=this.bundles[this.currentBundleName])===null||e===void 0?void 0:e.packages)||[])[this._currentPackageIndex]}return null}get trans(){return this._trans}get title(){return`${this._currentBundleName||""} ${this._trans.__("Licenses")}`.trim()}get packageFilter(){return this._packageFilter}set packageFilter(e){this._packageFilter=e;this.stateChanged.emit(void 0);this._trackerDataChanged.emit(void 0)}getFilteredPackages(e){let t=[];let n=Object.entries(this._packageFilter).filter((([e,t])=>t&&`${t}`.trim().length)).map((([e,t])=>[e,`${t}`.toLowerCase().trim().split(" ")]));for(const i of e){let e=0;for(const[t,s]of n){let n=0;let o=`${i[t]}`.toLowerCase();for(const e of s){if(o.includes(e)){n+=1}}if(n){e+=1}}if(e===n.length){t.push(i)}}return Object.values(t)}}e.Model=t;class n extends l.VDomRenderer{constructor(e){super(e);this.renderFilter=e=>{const t=this.model.packageFilter[e]||"";return d.createElement("input",{type:"text",name:e,defaultValue:t,className:"jp-mod-styled",onInput:this.onFilterInput})};this.onFilterInput=e=>{const t=e.currentTarget;const{name:n,value:i}=t;this.model.packageFilter={...this.model.packageFilter,[n]:i}};this.addClass("jp-Licenses-Filters");this.addClass("jp-RenderedHTMLCommon")}render(){const{trans:e}=this.model;return d.createElement("div",null,d.createElement("label",null,d.createElement("strong",{className:g},e.__("Filter Licenses By"))),d.createElement("ul",null,d.createElement("li",null,d.createElement("label",null,e.__("Package")),this.renderFilter("name")),d.createElement("li",null,d.createElement("label",null,e.__("Version")),this.renderFilter("versionInfo")),d.createElement("li",null,d.createElement("label",null,e.__("License")),this.renderFilter("licenseId"))),d.createElement("label",null,d.createElement("strong",{className:g},e.__("Distributions"))))}}e.Filters=n;class i extends m.TabBar.Renderer{constructor(e){super();this.closeIconSelector=".lm-TabBar-tabCloseIcon";this.model=e}renderTab(e){let t=e.title.caption;let n=this.createTabKey(e);let i=this.createTabStyle(e);let s=this.createTabClass(e);let o=this.createTabDataset(e);return p.h.li({key:n,className:s,title:t,style:i,dataset:o},this.renderIcon(e),this.renderLabel(e),this.renderCountBadge(e))}renderCountBadge(e){const t=e.title.label;const{bundles:n}=this.model;const i=this.model.getFilteredPackages((n&&t?n[t].packages:[])||[]);return p.h.label({},`${i.length}`)}}e.BundleTabRenderer=i;class s extends l.VDomRenderer{constructor(e){super(e);this.renderRow=(e,t)=>{const n=t===this.model.currentPackageIndex;const i=()=>this.model.currentPackageIndex=t;return d.createElement("tr",{key:e.name,className:n?"jp-mod-selected":"",onClick:i},d.createElement("td",null,d.createElement("input",{type:"radio",name:"show-package-license",value:t,onChange:i,checked:n})),d.createElement("th",null,e.name),d.createElement("td",null,d.createElement("code",null,e.versionInfo)),d.createElement("td",null,d.createElement("code",null,e.licenseId)))};this.addClass("jp-Licenses-Grid");this.addClass("jp-RenderedHTMLCommon")}render(){var e;const{bundles:t,currentBundleName:n,trans:i}=this.model;const s=this.model.getFilteredPackages(t&&n?((e=t[n])===null||e===void 0?void 0:e.packages)||[]:[]);if(!s.length){return d.createElement("blockquote",null,d.createElement("em",null,i.__("No Packages found")))}return d.createElement("form",null,d.createElement("table",null,d.createElement("thead",null,d.createElement("tr",null,d.createElement("td",null),d.createElement("th",null,i.__("Package")),d.createElement("th",null,i.__("Version")),d.createElement("th",null,i.__("License")))),d.createElement("tbody",null,s.map(this.renderRow))))}}e.Grid=s;class o extends l.VDomRenderer{constructor(e){super(e);this.addClass("jp-Licenses-Text");this.addClass("jp-RenderedHTMLCommon");this.addClass("jp-RenderedMarkdown")}render(){const{currentPackage:e,trans:t}=this.model;let n="";let i=t.__("No Package selected");let s="";if(e){const{name:o,versionInfo:r,licenseId:a,extractedText:l}=e;n=`${o} v${r}`;i=`${t.__("License")}: ${a||t.__("No License ID found")}`;s=l||t.__("No License Text found")}return[d.createElement("h1",{key:"h1"},n),d.createElement("blockquote",{key:"quote"},d.createElement("em",null,i)),d.createElement("code",{key:"code"},s)]}}e.FullText=o})(f||(f={}));var v;(function(e){e.open="help:open";e.about="help:about";e.activate="help:activate";e.close="help:close";e.show="help:show";e.hide="help:hide";e.jupyterForum="help:jupyter-forum";e.licenses="help:licenses";e.licenseReport="help:license-report";e.refreshLicenses="help:licenses-refresh"})(v||(v={}));const _=window.location.protocol==="https:";const b="jp-Help";const y={id:"@jupyterlab/help-extension:about",description:'Adds a "About" dialog feature.',autoStart:true,requires:[a.ITranslator],optional:[s.ICommandPalette],activate:(e,t,n)=>{const{commands:i}=e;const o=t.load("jupyterlab");const r=o.__("Help");i.addCommand(v.about,{label:o.__("About %1",e.name),execute:()=>{const t=o.__("Version %1",e.version);const n=d.createElement("span",{className:"jp-About-version-info"},d.createElement("span",{className:"jp-About-version"},t));const i=d.createElement("span",{className:"jp-About-header"},d.createElement(l.jupyterIcon.react,{margin:"7px 9.5px",height:"auto",width:"58px"}),d.createElement("div",{className:"jp-About-header-info"},d.createElement(l.jupyterlabWordmarkIcon.react,{height:"auto",width:"196px"}),n));const r="https://jupyter.org/about.html";const a="https://github.com/jupyterlab/jupyterlab/graphs/contributors";const c=d.createElement("span",{className:"jp-About-externalLinks"},d.createElement("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"jp-Button-flat"},o.__("CONTRIBUTOR LIST")),d.createElement("a",{href:r,target:"_blank",rel:"noopener noreferrer",className:"jp-Button-flat"},o.__("ABOUT PROJECT JUPYTER")));const h=d.createElement("span",{className:"jp-About-copyright"},o.__("© 2015-2023 Project Jupyter Contributors"));const u=d.createElement("div",{className:"jp-About-body"},c,h);return(0,s.showDialog)({title:i,body:u,buttons:[s.Dialog.createButton({label:o.__("Dismiss"),className:"jp-About-button jp-mod-reject jp-mod-styled"})]})}});if(n){n.addItem({command:v.about,category:r})}}};const w={id:"@jupyterlab/help-extension:jupyter-forum",description:"Adds command to open the Jupyter Forum website.",autoStart:true,requires:[a.ITranslator],optional:[s.ICommandPalette],activate:(e,t,n)=>{const{commands:i}=e;const s=t.load("jupyterlab");const o=s.__("Help");i.addCommand(v.jupyterForum,{label:s.__("Jupyter Forum"),execute:()=>{window.open("https://discourse.jupyter.org/c/jupyterlab")}});if(n){n.addItem({command:v.jupyterForum,category:o})}}};const C={id:"@jupyterlab/help-extension:resources",description:"Adds commands to Jupyter reference documentation websites.",autoStart:true,requires:[r.IMainMenu,a.ITranslator],optional:[i.ILabShell,s.ICommandPalette,i.ILayoutRestorer],activate:(e,t,n,i,r,a)=>{const c=n.load("jupyterlab");let h=0;const u=c.__("Help");const p="help-doc";const{commands:m,shell:g,serviceManager:f}=e;const y=new s.WidgetTracker({namespace:p});const w=[{text:c.__("JupyterLab Reference"),url:"https://jupyterlab.readthedocs.io/en/stable/"},{text:c.__("JupyterLab FAQ"),url:"https://jupyterlab.readthedocs.io/en/stable/getting_started/faq.html"},{text:c.__("Jupyter Reference"),url:"https://jupyter.org/documentation"},{text:c.__("Markdown Reference"),url:"https://commonmark.org/help/"}];w.sort(((e,t)=>e.text.localeCompare(t.text)));function C(e,t){const n=new l.IFrame({sandbox:["allow-scripts","allow-forms"]});n.url=e;n.addClass(b);n.title.label=t;n.id=`${p}-${++h}`;const i=new s.MainAreaWidget({content:n});i.addClass("jp-Help");return i}m.addCommand(v.open,{label:e=>{var t;return(t=e["text"])!==null&&t!==void 0?t:c.__("Open the provided `url` in a tab.")},execute:e=>{const t=e["url"];const n=e["text"];const i=e["newBrowserTab"]||false;if(i||_&&o.URLExt.parse(t).protocol!=="https:"){window.open(t);return}const s=C(t,n);void y.add(s);g.add(s,"main");return s}});if(a){void a.restore(y,{command:v.open,args:e=>({url:e.content.url,text:e.content.title.label}),name:e=>e.content.url})}const x=t.helpMenu;const S=w.map((e=>({args:e,command:v.open})));x.addGroup(S,10);const k=new Map;const j=(e,t)=>{var n;if(!t.length){return}const o=t[t.length-1];if(!o.kernel||k.has(o.kernel.name)){return}const r=f.sessions.connectTo({model:o,kernelConnectionOptions:{handleComms:false}});void((n=r.kernel)===null||n===void 0?void 0:n.info.then((e=>{var t,n;const o=r.kernel.name;if(k.has(o)){return}const a=(n=(t=f.kernelspecs)===null||t===void 0?void 0:t.specs)===null||n===void 0?void 0:n.kernelspecs[o];if(!a){return}k.set(o,e);let l=false;const h=async()=>{const e=await m.execute("helpmenu:get-kernel");l=(e===null||e===void 0?void 0:e.name)===o};h().catch((e=>{console.error("Failed to get the kernel for the current widget.",e)}));if(i){i.currentChanged.connect(h)}const u=()=>l;const p=`help-menu-${o}:banner`;const g=a.display_name;const _=a.resources["logo-svg"]||a.resources["logo-64x64"];m.addCommand(p,{label:c.__("About the %1 Kernel",g),isVisible:u,isEnabled:u,execute:()=>{const t=d.createElement("img",{src:_});const n=d.createElement("span",{className:"jp-About-header"},t,d.createElement("div",{className:"jp-About-header-info"},g));const i=d.createElement("pre",null,e.banner);const o=d.createElement("div",{className:"jp-About-body"},i);return(0,s.showDialog)({title:n,body:o,buttons:[s.Dialog.createButton({label:c.__("Dismiss"),className:"jp-About-button jp-mod-reject jp-mod-styled"})]})}});x.addGroup([{command:p}],20);const b=[];(e.help_links||[]).forEach((e=>{const t=`help-menu-${o}:${e.text}`;m.addCommand(t,{label:m.label(v.open,e),isVisible:u,isEnabled:u,execute:()=>m.execute(v.open,e)});b.push({command:t})}));x.addGroup(b,21)})).then((()=>{r.dispose()})))};for(const s of f.sessions.running()){j(f.sessions,[s])}f.sessions.runningChanged.connect(j);if(r){w.forEach((e=>{r.addItem({args:e,command:v.open,category:u})}));r.addItem({args:{reload:true},command:"apputils:reset",category:u})}}};const x={id:"@jupyterlab/help-extension:licenses",description:"Adds licenses used report tools.",autoStart:true,requires:[a.ITranslator],optional:[r.IMainMenu,s.ICommandPalette,i.ILayoutRestorer],activate:(e,t,n,i,r)=>{if(!o.PageConfig.getOption("licensesUrl")){return}const{commands:a,shell:d}=e;const c=t.load("jupyterlab");const h=c.__("Help");const u=c.__("Download All Licenses as");const p=c.__("Licenses");const m=c.__("Refresh Licenses");let g=0;const _=o.URLExt.join(o.PageConfig.getBaseUrl(),o.PageConfig.getOption("licensesUrl"))+"/";const b="help-licenses";const y=new s.WidgetTracker({namespace:b});function w(e){return f.REPORT_FORMATS[e]||f.REPORT_FORMATS[f.DEFAULT_FORMAT]}function C(t){const n=new f.Model({...t,licensesUrl:_,trans:c,serverSettings:e.serviceManager.serverSettings});const i=new f({model:n});i.id=`${b}-${++g}`;i.title.label=p;i.title.icon=l.copyrightIcon;const o=new s.MainAreaWidget({content:i,reveal:n.licensesReady});o.toolbar.addItem("refresh-licenses",new l.CommandToolbarButton({id:v.refreshLicenses,args:{noLabel:1},commands:a}));o.toolbar.addItem("spacer",l.Toolbar.createSpacerItem());for(const e of Object.keys(f.REPORT_FORMATS)){const t=new l.CommandToolbarButton({id:v.licenseReport,args:{format:e,noLabel:1},commands:a});o.toolbar.addItem(`download-${e}`,t)}return o}a.addCommand(v.licenses,{label:p,execute:e=>{const t=C(e);d.add(t,"main",{type:"Licenses"});void y.add(t);t.content.model.trackerDataChanged.connect((()=>{void y.save(t)}));return t}});a.addCommand(v.refreshLicenses,{label:e=>e.noLabel?"":m,caption:m,icon:l.refreshIcon,execute:async()=>{var e;return(e=y.currentWidget)===null||e===void 0?void 0:e.content.model.initLicenses()}});a.addCommand(v.licenseReport,{label:e=>{if(e.noLabel){return""}const t=w(`${e.format}`);return`${u} ${t.title}`},caption:e=>{const t=w(`${e.format}`);return`${u} ${t.title}`},icon:e=>{const t=w(`${e.format}`);return t.icon},execute:async e=>{var t;const n=w(`${e.format}`);return await((t=y.currentWidget)===null||t===void 0?void 0:t.content.model.download({format:n.id}))}});if(i){i.addItem({command:v.licenses,category:h})}if(n){const e=n.helpMenu;e.addGroup([{command:v.licenses}],0)}if(r){void r.restore(y,{command:v.licenses,name:e=>"licenses",args:e=>{const{currentBundleName:t,currentPackageIndex:n,packageFilter:i}=e.content.model;const s={currentBundleName:t,currentPackageIndex:n,packageFilter:i};return s}})}}};const S=[y,w,C,x];const k=S},13313:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(79536);var r=n(74518);var a=n(93379);var l=n.n(a);var d=n(7795);var c=n.n(d);var h=n(90569);var u=n.n(h);var p=n(3565);var m=n.n(p);var g=n(19216);var f=n.n(g);var v=n(44589);var _=n.n(v);var b=n(30277);var y={};y.styleTagTransform=_();y.setAttributes=m();y.insert=u().bind(null,"head");y.domAPI=c();y.insertStyleElement=f();var w=l()(b.Z,y);const C=b.Z&&b.Z.locals?b.Z.locals:undefined},39899:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>y});var i=n(74574);var s=n.n(i);var o=n(10759);var r=n.n(o);var a=n(14932);var l=n.n(a);var d=n(95811);var c=n.n(d);var h=n(6958);var u=n.n(h);var p=n(4148);var m=n.n(p);const g="@jupyterlab/htmlviewer-extension:plugin";const f="HTML Viewer";var v;(function(e){e.trustHTML="htmlviewer:trust-html"})(v||(v={}));const _={activate:b,id:g,description:"Adds HTML file viewer and provides its tracker.",provides:a.IHTMLViewerTracker,requires:[h.ITranslator],optional:[o.ICommandPalette,i.ILayoutRestorer,d.ISettingRegistry,o.IToolbarWidgetRegistry],autoStart:true};function b(e,t,n,i,s,r){let l;const d=t.load("jupyterlab");if(r){r.addFactory(f,"refresh",(e=>a.ToolbarItems.createRefreshButton(e,t)));r.addFactory(f,"trust",(e=>a.ToolbarItems.createTrustButton(e,t)));if(s){l=(0,o.createToolbarFactory)(r,s,f,_.id,t)}}const c={name:"html",contentType:"file",fileFormat:"text",displayName:d.__("HTML File"),extensions:[".html"],mimeTypes:["text/html"],icon:p.html5Icon};e.docRegistry.addFileType(c);const h=new a.HTMLViewerFactory({name:f,label:d.__("HTML Viewer"),fileTypes:["html"],defaultFor:["html"],readOnly:true,toolbarFactory:l,translator:t});const u=new o.WidgetTracker({namespace:"htmlviewer"});if(i){void i.restore(u,{command:"docmanager:open",args:e=>({path:e.context.path,factory:"HTML Viewer"}),name:e=>e.context.path})}let m=false;if(s){const t=s.load(g);const n=e=>{m=e.get("trustByDefault").composite};Promise.all([t,e.restored]).then((([e])=>{n(e);e.changed.connect((e=>{n(e)}))})).catch((e=>{console.error(e.message)}))}e.docRegistry.addWidgetFactory(h);h.widgetCreated.connect(((t,n)=>{var i,s;void u.add(n);n.context.pathChanged.connect((()=>{void u.save(n)}));n.trustedChanged.connect((()=>{e.commands.notifyCommandChanged(v.trustHTML)}));n.trusted=m;n.title.icon=c.icon;n.title.iconClass=(i=c.iconClass)!==null&&i!==void 0?i:"";n.title.iconLabel=(s=c.iconLabel)!==null&&s!==void 0?s:""}));e.commands.addCommand(v.trustHTML,{label:d.__("Trust HTML File"),caption:d.__(`Whether the HTML file is trusted.\n Trusting the file allows scripts to run in it,\n which may result in security risks.\n Only enable for files you trust.`),isEnabled:()=>!!u.currentWidget,isToggled:()=>{const e=u.currentWidget;if(!e){return false}const t=e.content.sandbox;return t.indexOf("allow-scripts")!==-1},execute:()=>{const e=u.currentWidget;if(!e){return}e.trusted=!e.trusted}});if(n){n.addItem({command:v.trustHTML,category:d.__("File Operations")})}return u}const y=_},23454:(e,t,n)=>{"use strict";var i=n(34849);var s=n(79536);var o=n(94683);var r=n(90516);var a=n(32902);var l=n(93379);var d=n.n(l);var c=n(7795);var h=n.n(c);var u=n(90569);var p=n.n(u);var m=n(3565);var g=n.n(m);var f=n(19216);var v=n.n(f);var _=n(44589);var b=n.n(_);var y=n(37468);var w={};w.styleTagTransform=b();w.setAttributes=g();w.insert=p().bind(null,"head");w.domAPI=h();w.insertStyleElement=v();var C=d()(y.Z,w);const x=y.Z&&y.Z.locals?y.Z.locals:undefined},51902:(e,t,n)=>{"use strict";n.r(t);n.d(t,{HTMLViewer:()=>m,HTMLViewerFactory:()=>g,IHTMLViewerTracker:()=>s,ToolbarItems:()=>f});var i=n(5596);const s=new i.Token("@jupyterlab/htmlviewer:IHTMLViewerTracker",`A widget tracker for rendered HTML documents.\n Use this if you want to be able to iterate over and interact with HTML documents\n viewed by the application.`);var o=n(20501);var r=n(12542);var a=n(6958);var l=n(4148);var d=n(71372);var c=n(28416);const h=1e3;const u="jp-HTMLViewer";const p=e=>``;class m extends r.DocumentWidget{constructor(e){super({...e,content:new l.IFrame({sandbox:["allow-same-origin"]})});this._renderPending=false;this._parser=new DOMParser;this._monitor=null;this._objectUrl="";this._trustedChanged=new d.Signal(this);this.translator=e.translator||a.nullTranslator;this.content.addClass(u);void this.context.ready.then((()=>{this.update();this._monitor=new o.ActivityMonitor({signal:this.context.model.contentChanged,timeout:h});this._monitor.activityStopped.connect(this.update,this)}))}get trusted(){return this.content.sandbox.indexOf("allow-scripts")!==-1}set trusted(e){if(this.trusted===e){return}if(e){this.content.sandbox=v.trusted}else{this.content.sandbox=v.untrusted}this.update();this._trustedChanged.emit(e)}get trustedChanged(){return this._trustedChanged}dispose(){if(this._objectUrl){try{URL.revokeObjectURL(this._objectUrl)}catch(e){}}super.dispose()}onUpdateRequest(){if(this._renderPending){return}this._renderPending=true;void this._renderModel().then((()=>this._renderPending=false))}async _renderModel(){let e=this.context.model.toString();e=await this._setupDocument(e);const t=new Blob([e],{type:"text/html"});const n=this._objectUrl;this._objectUrl=URL.createObjectURL(t);this.content.url=this._objectUrl;if(n){try{URL.revokeObjectURL(n)}catch(i){}}return}async _setupDocument(e){const t=this._parser.parseFromString(e,"text/html");let n=t.querySelector("base");if(!n){n=t.createElement("base");t.head.insertBefore(n,t.head.firstChild)}const i=this.context.path;const s=await this.context.urlResolver.getDownloadUrl(i);n.href=s;n.target="_self";if(!this.trusted){const e=this.translator.load("jupyterlab");const n=e.__("Action disabled as the file is not trusted.");t.body.insertAdjacentHTML("beforeend",p({warning:n}))}return t.documentElement.innerHTML}}class g extends r.ABCWidgetFactory{createNewWidget(e){return new m({context:e})}defaultToolbarFactory(e){return[{name:"refresh",widget:f.createRefreshButton(e,this.translator)},{name:"trust",widget:f.createTrustButton(e,this.translator)}]}}var f;(function(e){function t(e,t){const n=(t!==null&&t!==void 0?t:a.nullTranslator).load("jupyterlab");return new l.ToolbarButton({icon:l.refreshIcon,onClick:async()=>{if(!e.context.model.dirty){await e.context.revert();e.update()}},tooltip:n.__("Rerender HTML Document")})}e.createRefreshButton=t;function n(e,t){return l.ReactWidget.create(c.createElement(v.TrustButtonComponent,{htmlDocument:e,translator:t}))}e.createTrustButton=n})(f||(f={}));var v;(function(e){e.untrusted=[];e.trusted=["allow-scripts","allow-popups"];function t(e){const t=e.translator||a.nullTranslator;const n=t.load("jupyterlab");return c.createElement(l.UseSignal,{signal:e.htmlDocument.trustedChanged,initialSender:e.htmlDocument},(()=>c.createElement(l.ToolbarButtonComponent,{className:"",onClick:()=>e.htmlDocument.trusted=!e.htmlDocument.trusted,tooltip:n.__(`Whether the HTML file is trusted.\nTrusting the file allows opening pop-ups and running scripts\nwhich may result in security risks.\nOnly enable for files you trust.`),label:e.htmlDocument.trusted?n.__("Distrust HTML"):n.__("Trust HTML")})))}e.TrustButtonComponent=t})(v||(v={}))},10313:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CommandIDs:()=>h,default:()=>f});var i=n(74574);var s=n.n(i);var o=n(10759);var r=n.n(o);var a=n(20501);var l=n.n(a);var d=n(6958);var c=n.n(d);var h;(function(e){e.controlPanel="hub:control-panel";e.logout="hub:logout";e.restart="hub:restart"})(h||(h={}));function u(e,t,n,i){const s=n.load("jupyterlab");const o=t.urls.hubHost||"";const r=t.urls.hubPrefix||"";const l=t.urls.hubUser||"";const d=t.urls.hubServerName||"";const c=t.urls.base;if(!r){return}console.debug("hub-extension: Found configuration ",{hubHost:o,hubPrefix:r});const u=d?o+a.URLExt.join(r,"spawn",l,d):o+a.URLExt.join(r,"spawn");const{commands:p}=e;p.addCommand(h.restart,{label:s.__("Restart Server"),caption:s.__("Request that the Hub restart this server"),execute:()=>{window.open(u,"_blank")}});p.addCommand(h.controlPanel,{label:s.__("Hub Control Panel"),caption:s.__("Open the Hub control panel in a new browser tab"),execute:()=>{window.open(o+a.URLExt.join(r,"home"),"_blank")}});p.addCommand(h.logout,{label:s.__("Log Out"),caption:s.__("Log out of the Hub"),execute:()=>{window.location.href=o+a.URLExt.join(c,"logout")}});if(i){const e=s.__("Hub");i.addItem({category:e,command:h.controlPanel});i.addItem({category:e,command:h.logout})}}const p={activate:u,id:"@jupyterlab/hub-extension:plugin",description:"Registers commands related to the hub server",requires:[i.JupyterFrontEnd.IPaths,d.ITranslator],optional:[o.ICommandPalette],autoStart:true};const m={activate:()=>void 0,id:"@jupyterlab/hub-extension:menu",description:"Adds hub related commands to the menu.",autoStart:true};const g={id:"@jupyterlab/hub-extension:connectionlost",description:"Provides a service to be notified when the connection to the hub server is lost.",requires:[i.JupyterFrontEnd.IPaths,d.ITranslator],optional:[i.JupyterLab.IInfo],activate:(e,t,n,s)=>{const r=n.load("jupyterlab");const a=t.urls.hubPrefix||"";const l=t.urls.base;if(!a){return i.ConnectionLost}let d=false;const c=async(t,n)=>{if(d){return}d=true;if(s){s.isConnected=false}const i=await(0,o.showDialog)({title:r.__("Server unavailable or unreachable"),body:r.__("Your server at %1 is not running.\nWould you like to restart it?",l),buttons:[o.Dialog.okButton({label:r.__("Restart")}),o.Dialog.cancelButton({label:r.__("Dismiss")})]});if(s){s.isConnected=true}d=false;if(i.button.accept){await e.commands.execute(h.restart)}};return c},autoStart:true,provides:i.IConnectionLost};const f=[p,m,g]},34802:(e,t,n)=>{"use strict";var i=n(79536);var s=n(90516)},15453:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>_});var i=n(74574);var s=n.n(i);var o=n(10759);var r=n.n(o);var a=n(17276);var l=n.n(a);var d=n(6958);var c=n.n(d);var h;(function(e){e.resetImage="imageviewer:reset-image";e.zoomIn="imageviewer:zoom-in";e.zoomOut="imageviewer:zoom-out";e.flipHorizontal="imageviewer:flip-horizontal";e.flipVertical="imageviewer:flip-vertical";e.rotateClockwise="imageviewer:rotate-clockwise";e.rotateCounterclockwise="imageviewer:rotate-counterclockwise";e.invertColors="imageviewer:invert-colors"})(h||(h={}));const u=["png","gif","jpeg","bmp","ico","tiff"];const p="Image";const m="Image (Text)";const g=["svg","xbm"];const f=new RegExp(`[.](${g.join("|")})$`);const v={activate:b,description:"Adds image viewer and provide its tracker.",id:"@jupyterlab/imageviewer-extension:plugin",provides:a.IImageTracker,requires:[d.ITranslator],optional:[o.ICommandPalette,i.ILayoutRestorer],autoStart:true};const _=v;function b(e,t,n,i){const s=t.load("jupyterlab");const r="image-widget";function l(t,n){var i,s;n.context.pathChanged.connect((()=>{void v.save(n)}));void v.add(n);const o=e.docRegistry.getFileTypesForPath(n.context.path);if(o.length>0){n.title.icon=o[0].icon;n.title.iconClass=(i=o[0].iconClass)!==null&&i!==void 0?i:"";n.title.iconLabel=(s=o[0].iconLabel)!==null&&s!==void 0?s:""}}const d=new a.ImageViewerFactory({name:p,label:s.__("Image"),modelName:"base64",fileTypes:[...u,...g],defaultFor:u,readOnly:true});const c=new a.ImageViewerFactory({name:m,label:s.__("Image (Text)"),modelName:"text",fileTypes:g,defaultFor:g,readOnly:true});[d,c].forEach((t=>{e.docRegistry.addWidgetFactory(t);t.widgetCreated.connect(l)}));const v=new o.WidgetTracker({namespace:r});if(i){void i.restore(v,{command:"docmanager:open",args:e=>({path:e.context.path,factory:f.test(e.context.path)?m:p}),name:e=>e.context.path})}y(e,v,t);if(n){const e=s.__("Image Viewer");[h.zoomIn,h.zoomOut,h.resetImage,h.rotateClockwise,h.rotateCounterclockwise,h.flipHorizontal,h.flipVertical,h.invertColors].forEach((t=>{n.addItem({command:t,category:e})}))}return v}function y(e,t,n){const i=n.load("jupyterlab");const{commands:s,shell:o}=e;function r(){return t.currentWidget!==null&&t.currentWidget===o.currentWidget}s.addCommand("imageviewer:zoom-in",{execute:a,label:i.__("Zoom In"),isEnabled:r});s.addCommand("imageviewer:zoom-out",{execute:l,label:i.__("Zoom Out"),isEnabled:r});s.addCommand("imageviewer:reset-image",{execute:d,label:i.__("Reset Image"),isEnabled:r});s.addCommand("imageviewer:rotate-clockwise",{execute:c,label:i.__("Rotate Clockwise"),isEnabled:r});s.addCommand("imageviewer:rotate-counterclockwise",{execute:h,label:i.__("Rotate Counterclockwise"),isEnabled:r});s.addCommand("imageviewer:flip-horizontal",{execute:u,label:i.__("Flip image horizontally"),isEnabled:r});s.addCommand("imageviewer:flip-vertical",{execute:p,label:i.__("Flip image vertically"),isEnabled:r});s.addCommand("imageviewer:invert-colors",{execute:m,label:i.__("Invert Colors"),isEnabled:r});function a(){var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(n){n.scale=n.scale>1?n.scale+.5:n.scale*2}}function l(){var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(n){n.scale=n.scale>1?n.scale-.5:n.scale/2}}function d(){var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(n){n.scale=1;n.colorinversion=0;n.resetRotationFlip()}}function c(){var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(n){n.rotateClockwise()}}function h(){var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(n){n.rotateCounterclockwise()}}function u(){var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(n){n.flipHorizontal()}}function p(){var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(n){n.flipVertical()}}function m(){var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(n){n.colorinversion+=1;n.colorinversion%=2}}}},42584:(e,t,n)=>{"use strict";var i=n(79536);var s=n(94683);var o=n(90516);var r=n(32902);var a=n(93379);var l=n.n(a);var d=n(7795);var c=n.n(d);var h=n(90569);var u=n.n(h);var p=n(3565);var m=n.n(p);var g=n(19216);var f=n.n(g);var v=n(44589);var _=n.n(v);var b=n(5235);var y={};y.styleTagTransform=_();y.setAttributes=m();y.insert=u().bind(null,"head");y.domAPI=c();y.insertStyleElement=f();var w=l()(b.Z,y);const C=b.Z&&b.Z.locals?b.Z.locals:undefined},32067:(e,t,n)=>{"use strict";n.r(t);n.d(t,{IImageTracker:()=>s,ImageViewer:()=>c,ImageViewerFactory:()=>h});var i=n(5596);const s=new i.Token("@jupyterlab/imageviewer:IImageTracker",`A widget tracker for images.\n Use this if you want to be able to iterate over and interact with images\n viewed by the application.`);var o=n(20501);var r=n(10759);var a=n(12542);var l=n(85448);const d="jp-ImageViewer";class c extends l.Widget{constructor(e){super();this._scale=1;this._matrix=[1,0,0,1];this._colorinversion=0;this._ready=new i.PromiseDelegate;this.context=e;this.node.tabIndex=0;this.addClass(d);this._img=document.createElement("img");this.node.appendChild(this._img);this._onTitleChanged();e.pathChanged.connect(this._onTitleChanged,this);void e.ready.then((()=>{if(this.isDisposed){return}const t=e.contentsModel;this._mimeType=t.mimetype;this._render();e.model.contentChanged.connect(this.update,this);e.fileChanged.connect(this.update,this);this._ready.resolve(void 0)}))}[r.Printing.symbol](){return()=>r.Printing.printWidget(this)}get ready(){return this._ready.promise}get scale(){return this._scale}set scale(e){if(e===this._scale){return}this._scale=e;this._updateStyle()}get colorinversion(){return this._colorinversion}set colorinversion(e){if(e===this._colorinversion){return}this._colorinversion=e;this._updateStyle()}dispose(){if(this._img.src){URL.revokeObjectURL(this._img.src||"")}super.dispose()}resetRotationFlip(){this._matrix=[1,0,0,1];this._updateStyle()}rotateCounterclockwise(){this._matrix=u.prod(this._matrix,u.rotateCounterclockwiseMatrix);this._updateStyle()}rotateClockwise(){this._matrix=u.prod(this._matrix,u.rotateClockwiseMatrix);this._updateStyle()}flipHorizontal(){this._matrix=u.prod(this._matrix,u.flipHMatrix);this._updateStyle()}flipVertical(){this._matrix=u.prod(this._matrix,u.flipVMatrix);this._updateStyle()}onUpdateRequest(e){if(this.isDisposed||!this.context.isReady){return}this._render()}onActivateRequest(e){this.node.focus()}_onTitleChanged(){this.title.label=o.PathExt.basename(this.context.localPath)}_render(){const e=this.context;const t=e.contentsModel;if(!t){return}const n=this._img.src||"";let i=e.model.toString();if(t.format==="base64"){this._img.src=`data:${this._mimeType};base64,${i}`}else{const e=new Blob([i],{type:this._mimeType});this._img.src=URL.createObjectURL(e)}URL.revokeObjectURL(n)}_updateStyle(){const[e,t,n,i]=this._matrix;const[s,o]=u.prodVec(this._matrix,[1,1]);const r=`matrix(${e}, ${t}, ${n}, ${i}, 0, 0) translate(${s<0?-100:0}%, ${o<0?-100:0}%) `;this._img.style.transform=`scale(${this._scale}) ${r}`;this._img.style.filter=`invert(${this._colorinversion})`}}class h extends a.ABCWidgetFactory{createNewWidget(e){const t=new c(e);const n=new a.DocumentWidget({content:t,context:e});return n}}var u;(function(e){function t([e,t,n,i],[s,o,r,a]){return[e*s+t*r,e*o+t*a,n*s+i*r,n*o+i*a]}e.prod=t;function n([e,t,n,i],[s,o]){return[e*s+t*o,n*s+i*o]}e.prodVec=n;e.rotateClockwiseMatrix=[0,1,-1,0];e.rotateCounterclockwiseMatrix=[0,-1,1,0];e.flipHMatrix=[-1,0,0,1];e.flipVMatrix=[1,0,0,-1]})(u||(u={}))},77407:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>S});var i=n(74574);var s=n.n(i);var o=n(10759);var r=n.n(o);var a=n(81201);var l=n.n(a);var d=n(87611);var c=n.n(d);var h=n(97095);var u=n.n(h);var p=n(54729);var m=n.n(p);var g=n(6958);var f=n.n(g);var v=n(4148);var _=n.n(v);var b;(function(e){e.open="inspector:open";e.close="inspector:close";e.toggle="inspector:toggle"})(b||(b={}));const y={id:"@jupyterlab/inspector-extension:inspector",description:"Provides the code introspection widget.",requires:[g.ITranslator],optional:[o.ICommandPalette,h.ILauncher,i.ILayoutRestorer],provides:d.IInspector,autoStart:true,activate:(e,t,n,i,s)=>{const r=t.load("jupyterlab");const{commands:a,shell:l}=e;const c=r.__("Live updating code documentation from the active kernel");const h=r.__("Contextual Help");const u="inspector";const p="jpInspector";const m=new o.WidgetTracker({namespace:u});function g(){return _&&!_.isDisposed}let f=null;let _;function y(e){var n;if(!g()){_=new o.MainAreaWidget({content:new d.InspectorPanel({translator:t})});_.id="jp-inspector";_.title.label=h;_.title.icon=v.inspectorIcon;void m.add(_);f=f&&!f.isDisposed?f:null;_.content.source=f;(n=_.content.source)===null||n===void 0?void 0:n.onEditorChange(e)}if(!_.isAttached){l.add(_,"main",{activate:false,mode:"split-right",type:"Inspector"})}l.activateById(_.id);document.body.dataset[p]="open";return _}function w(){_.dispose();delete document.body.dataset[p]}const C=r.__("Show Contextual Help");a.addCommand(b.open,{caption:c,isEnabled:()=>!_||_.isDisposed||!_.isAttached||!_.isVisible,label:C,icon:e=>e.isLauncher?v.inspectorIcon:undefined,execute:e=>{var t;const n=e&&e.text;const i=e&&e.refresh;if(g()&&i)(t=_.content.source)===null||t===void 0?void 0:t.onEditorChange(n);else y(n)}});const x=r.__("Hide Contextual Help");a.addCommand(b.close,{caption:c,isEnabled:()=>g(),label:x,icon:e=>e.isLauncher?v.inspectorIcon:undefined,execute:()=>w()});const S=r.__("Show Contextual Help");a.addCommand(b.toggle,{caption:c,label:S,isToggled:()=>g(),execute:e=>{if(g()){w()}else{const t=e&&e.text;y(t)}}});if(i){i.add({command:b.open,args:{isLauncher:true}})}if(n){n.addItem({command:b.toggle,category:S})}if(s){void s.restore(m,{command:b.toggle,name:()=>"inspector"})}const k=Object.defineProperty({},"source",{get:()=>!_||_.isDisposed?null:_.content.source,set:e=>{f=e&&!e.isDisposed?e:null;if(_&&!_.isDisposed){_.content.source=f}}});return k}};const w={id:"@jupyterlab/inspector-extension:consoles",description:"Adds code introspection support to consoles.",requires:[d.IInspector,a.IConsoleTracker,i.ILabShell],autoStart:true,activate:(e,t,n,i,s)=>{const o={};n.widgetAdded.connect(((e,t)=>{const n=t.console.sessionContext;const i=t.console.rendermime;const s=new d.KernelConnector({sessionContext:n});const r=new d.InspectionHandler({connector:s,rendermime:i});o[t.id]=r;const a=t.console.promptCell;r.editor=a&&a.editor;t.console.promptCellCreated.connect(((e,t)=>{r.editor=t&&t.editor}));t.disposed.connect((()=>{delete o[t.id];r.dispose()}))}));const r=e=>{if(e&&n.has(e)&&o[e.id]){t.source=o[e.id]}};i.currentChanged.connect(((e,t)=>r(t.newValue)));void e.restored.then((()=>r(i.currentWidget)))}};const C={id:"@jupyterlab/inspector-extension:notebooks",description:"Adds code introspection to notebooks.",requires:[d.IInspector,p.INotebookTracker,i.ILabShell],autoStart:true,activate:(e,t,n,i)=>{const s={};n.widgetAdded.connect(((e,t)=>{const n=t.sessionContext;const i=t.content.rendermime;const o=new d.KernelConnector({sessionContext:n});const r=new d.InspectionHandler({connector:o,rendermime:i});s[t.id]=r;const a=t.content.activeCell;r.editor=a&&a.editor;t.content.activeCellChanged.connect(((e,n)=>{void(n===null||n===void 0?void 0:n.ready.then((()=>{if(n===t.content.activeCell){r.editor=n.editor}})))}));t.disposed.connect((()=>{delete s[t.id];r.dispose()}))}));const o=e=>{if(e&&n.has(e)&&s[e.id]){t.source=s[e.id]}};i.currentChanged.connect(((e,t)=>o(t.newValue)));void e.restored.then((()=>o(i.currentWidget)))}};const x=[y,w,C];const S=x},54244:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(79536);var r=n(90516);var a=n(42650);var l=n(70637);var d=n(52812);var c=n(88164)},55091:(e,t,n)=>{"use strict";n.r(t);n.d(t,{IInspector:()=>_,InspectionHandler:()=>l,InspectorPanel:()=>g,KernelConnector:()=>v});var i=n(20501);var s=n(23635);var o=n(5596);var r=n(95905);var a=n(71372);class l{constructor(e){this._cleared=new a.Signal(this);this._disposed=new a.Signal(this);this._editor=null;this._inspected=new a.Signal(this);this._isDisposed=false;this._pending=0;this._standby=true;this._lastInspectedReply=null;this._connector=e.connector;this._rendermime=e.rendermime;this._debouncer=new r.Debouncer(this.onEditorChange.bind(this),250)}get cleared(){return this._cleared}get disposed(){return this._disposed}get inspected(){return this._inspected}get editor(){return this._editor}set editor(e){if(e===this._editor){return}a.Signal.disconnectReceiver(this);const t=this._editor=e;if(t){this._cleared.emit(void 0);this.onEditorChange();t.model.selections.changed.connect(this._onChange,this);t.model.sharedModel.changed.connect(this._onChange,this)}}get standby(){return this._standby}set standby(e){this._standby=e}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this._debouncer.dispose();this._disposed.emit(void 0);a.Signal.clearData(this)}onEditorChange(e){if(this._standby){return}const t=this.editor;if(!t){return}const n=e?e:t.model.sharedModel.getSource();const r=t.getCursorPosition();const a=i.Text.jsIndexToCharIndex(t.getOffsetAt(r),n);const l={content:null};const d=++this._pending;void this._connector.fetch({offset:a,text:n}).then((e=>{if(!e||this.isDisposed||d!==this._pending){this._lastInspectedReply=null;this._inspected.emit(l);return}const{data:t}=e;if(this._lastInspectedReply&&o.JSONExt.deepEqual(this._lastInspectedReply,t)){return}const n=this._rendermime.preferredMimeType(t);if(n){const e=this._rendermime.createRenderer(n);const i=new s.MimeModel({data:t});void e.renderModel(i);l.content=e}this._lastInspectedReply=e.data;this._inspected.emit(l)})).catch((e=>{this._lastInspectedReply=null;this._inspected.emit(l)}))}_onChange(){void this._debouncer.invoke()}}var d=n(10759);var c=n(6958);var h=n(85448);const u="jp-Inspector";const p="jp-Inspector-content";const m="jp-Inspector-default-content";class g extends h.Panel{constructor(e={}){super();this._source=null;this.translator=e.translator||c.nullTranslator;this._trans=this.translator.load("jupyterlab");if(e.initialContent instanceof h.Widget){this._content=e.initialContent}else if(typeof e.initialContent==="string"){this._content=g._generateContentWidget(`

    ${e.initialContent}

    `)}else{this._content=g._generateContentWidget("

    "+this._trans.__("Click on a function to see documentation.")+"

    ")}this.addClass(u);this.layout.addWidget(this._content)}[d.Printing.symbol](){return()=>d.Printing.printWidget(this)}get source(){return this._source}set source(e){if(this._source===e){return}if(this._source){this._source.standby=true;this._source.inspected.disconnect(this.onInspectorUpdate,this);this._source.disposed.disconnect(this.onSourceDisposed,this)}if(e&&e.isDisposed){e=null}this._source=e;if(this._source){this._source.standby=false;this._source.inspected.connect(this.onInspectorUpdate,this);this._source.disposed.connect(this.onSourceDisposed,this)}}dispose(){if(this.isDisposed){return}this.source=null;super.dispose()}onInspectorUpdate(e,t){const{content:n}=t;if(!n||n===this._content){return}this._content.dispose();this._content=n;n.addClass(p);this.layout.addWidget(n)}onSourceDisposed(e,t){this.source=null}static _generateContentWidget(e){const t=new h.Widget;t.node.innerHTML=e;t.addClass(p);t.addClass(m);return t}}var f=n(22971);class v extends f.DataConnector{constructor(e){super();this._sessionContext=e.sessionContext}fetch(e){var t;const n=(t=this._sessionContext.session)===null||t===void 0?void 0:t.kernel;if(!n){return Promise.reject(new Error("Inspection fetch requires a kernel."))}const i={code:e.text,cursor_pos:e.offset,detail_level:1};return n.requestInspect(i).then((e=>{const t=e.content;if(t.status!=="ok"||!t.found){throw new Error("Inspection fetch failed to return successfully.")}return{data:t.data,metadata:t.metadata}}))}}const _=new o.Token("@jupyterlab/inspector:IInspector",`A service for adding contextual help to widgets (visible using "Show Contextual Help" from the Help menu).\n Use this to hook into the contextual help system in your extension.`)},70637:(e,t,n)=>{"use strict";var i=n(32902);var s=n(79536);var o=n(49914);var r=n(98896);var a=n(93379);var l=n.n(a);var d=n(7795);var c=n.n(d);var h=n(90569);var u=n.n(h);var p=n(3565);var m=n.n(p);var g=n(19216);var f=n.n(g);var v=n(44589);var _=n.n(v);var b=n(28279);var y={};y.styleTagTransform=_();y.setAttributes=m();y.insert=u().bind(null,"head");y.domAPI=c();y.insertStyleElement=f();var w=l()(b.Z,y);const C=b.Z&&b.Z.locals?b.Z.locals:undefined},48105:(__unused_webpack_module,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.r(__webpack_exports__);__webpack_require__.d(__webpack_exports__,{APPLICATION_JAVASCRIPT_MIMETYPE:()=>APPLICATION_JAVASCRIPT_MIMETYPE,ExperimentalRenderedJavascript:()=>ExperimentalRenderedJavascript,TEXT_JAVASCRIPT_MIMETYPE:()=>TEXT_JAVASCRIPT_MIMETYPE,default:()=>__WEBPACK_DEFAULT_EXPORT__,rendererFactory:()=>rendererFactory});var _jupyterlab_rendermime__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(23635);var _jupyterlab_rendermime__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_jupyterlab_rendermime__WEBPACK_IMPORTED_MODULE_0__);const TEXT_JAVASCRIPT_MIMETYPE="text/javascript";const APPLICATION_JAVASCRIPT_MIMETYPE="application/javascript";function evalInContext(code,element,document,window){return eval(code)}class ExperimentalRenderedJavascript extends _jupyterlab_rendermime__WEBPACK_IMPORTED_MODULE_0__.RenderedJavaScript{render(e){const t=this.translator.load("jupyterlab");const n=()=>{try{const t=e.data[this.mimeType];if(t){evalInContext(t,this.node,document,window)}return Promise.resolve()}catch(t){return Promise.reject(t)}};if(!e.trusted){const e=document.createElement("pre");e.textContent=t.__("Are you sure that you want to run arbitrary Javascript within your JupyterLab session?");const i=document.createElement("button");i.textContent=t.__("Run");this.node.appendChild(e);this.node.appendChild(i);i.onclick=e=>{this.node.textContent="";void n()};return Promise.resolve()}return n()}}const rendererFactory={safe:false,mimeTypes:[TEXT_JAVASCRIPT_MIMETYPE,APPLICATION_JAVASCRIPT_MIMETYPE],createRenderer:e=>new ExperimentalRenderedJavascript(e)};const extension={id:"@jupyterlab/javascript-extension:factory",description:"Adds renderer for JavaScript content.",rendererFactory,rank:0,dataType:"string"};const __WEBPACK_DEFAULT_EXPORT__=extension},93814:(e,t,n)=>{"use strict";var i=n(98896);var s=n(93379);var o=n.n(s);var r=n(7795);var a=n.n(r);var l=n(90569);var d=n.n(l);var c=n(3565);var h=n.n(c);var u=n(19216);var p=n.n(u);var m=n(44589);var g=n.n(m);var f=n(11096);var v={};v.styleTagTransform=g();v.setAttributes=h();v.insert=d().bind(null,"head");v.domAPI=a();v.insertStyleElement=p();var _=o()(f.Z,v);const b=f.Z&&f.Z.locals?f.Z.locals:undefined},91641:(e,t,n)=>{"use strict";n.r(t);n.d(t,{Component:()=>C});var i=n(22511);var s=n.n(i);var o=n(6958);var r=n.n(o);var a=n(4148);var l=n.n(a);var d=n(6016);var c=n.n(d);var h=n(5596);var u=n.n(h);var p=n(28416);var m=n.n(p);var g=n(59139);var f=n.n(g);var v=n(84976);var _=n.n(v);var b=n(67737);var y=n.n(b);function w(e){var t;return(t=i.jupyterHighlightStyle.style([e]))!==null&&t!==void 0?t:""}class C extends p.Component{constructor(){super(...arguments);this.state={filter:"",value:""};this.timer=0;this.handleChange=e=>{const{value:t}=e.target;this.setState({value:t});window.clearTimeout(this.timer);this.timer=window.setTimeout((()=>{this.setState({filter:t})}),300)}}componentDidMount(){b.StyleModule.mount(document,i.jupyterHighlightStyle.module)}render(){const e=this.props.translator||o.nullTranslator;const t=e.load("jupyterlab");const{data:n,metadata:i,forwardedRef:s}=this.props;const r=i&&i.root?i.root:"root";const l=this.state.filter?k(n,this.state.filter,[r]):[r];return p.createElement("div",{className:"container",ref:s},p.createElement(a.InputGroup,{className:"filter",type:"text",placeholder:t.__("Filter…"),onChange:this.handleChange,value:this.state.value,rightIcon:"ui-components:search"}),p.createElement(v.JSONTree,{data:n,collectionLimit:100,theme:{extend:x,valueLabel:w(d.tags.variableName),valueText:w(d.tags.string),nestedNodeItemString:w(d.tags.comment)},invertTheme:false,keyPath:[r],getItemString:(e,t,n,i)=>Array.isArray(t)?p.createElement("span",null,n," ",i):Object.keys(t).length===0?p.createElement("span",null,n):null,labelRenderer:([e,t])=>p.createElement("span",{className:w(d.tags.keyword)},p.createElement(f(),{searchWords:[this.state.filter],textToHighlight:`${e}`,highlightClassName:"jp-mod-selected"})),valueRenderer:e=>{let t=w(d.tags.string);if(typeof e==="number"){t=w(d.tags.number)}if(e==="true"||e==="false"){t=w(d.tags.keyword)}return p.createElement("span",{className:t},p.createElement(f(),{searchWords:[this.state.filter],textToHighlight:`${e}`,highlightClassName:"jp-mod-selected"}))},shouldExpandNodeInitially:(e,t,n)=>i&&i.expanded?true:l.join(",").includes(e.join(","))}))}}const x={scheme:"jupyter",base00:"invalid",base01:"invalid",base02:"invalid",base03:"invalid",base04:"invalid",base05:"invalid",base06:"invalid",base07:"invalid",base08:"invalid",base09:"invalid",base0A:"invalid",base0B:"invalid",base0C:"invalid",base0D:"invalid",base0E:"invalid",base0F:"invalid",author:"invalid"};function S(e,t){return JSON.stringify(e).includes(t)}function k(e,t,n=["root"]){if(h.JSONExt.isArray(e)){return e.reduce(((e,i,s)=>{if(i&&typeof i==="object"&&S(i,t)){return[...e,[s,...n].join(","),...k(i,t,[s,...n])]}return e}),[])}if(h.JSONExt.isObject(e)){return Object.keys(e).reduce(((i,s)=>{const o=e[s];if(o&&typeof o==="object"&&(s.includes(t)||S(o,t))){return[...i,[s,...n].join(","),...k(o,t,[s,...n])]}return i}),[])}return[]}},34222:(e,t,n)=>{"use strict";n.r(t);n.d(t,{MIME_TYPE:()=>p,RenderedJSON:()=>m,default:()=>v,rendererFactory:()=>g});var i=n(10759);var s=n.n(i);var o=n(6958);var r=n.n(o);var a=n(85448);var l=n.n(a);var d=n(28416);var c=n.n(d);var h=n(20745);const u="jp-RenderedJSON";const p="application/json";class m extends a.Widget{constructor(e){super();this._rootDOM=null;this.addClass(u);this.addClass("CodeMirror");this._mimeType=e.mimeType;this.translator=e.translator||o.nullTranslator}[i.Printing.symbol](){return()=>i.Printing.printWidget(this)}async renderModel(e){const{Component:t}=await Promise.all([n.e(3472),n.e(5596),n.e(4148),n.e(2511),n.e(6016),n.e(7737),n.e(5317)]).then(n.bind(n,91641));const i=e.data[this._mimeType]||{};const s=e.metadata[this._mimeType]||{};if(this._rootDOM===null){this._rootDOM=(0,h.s)(this.node)}return new Promise(((e,n)=>{this._rootDOM.render(d.createElement(t,{data:i,metadata:s,translator:this.translator,forwardedRef:()=>e()}))}))}onBeforeDetach(e){if(this._rootDOM){this._rootDOM.unmount();this._rootDOM=null}}}const g={safe:true,mimeTypes:[p],createRenderer:e=>new m(e)};const f=[{id:"@jupyterlab/json-extension:factory",description:"Adds renderer for JSON content.",rendererFactory:g,rank:0,dataType:"json",documentWidgetFactoryOptions:{name:"JSON",primaryFileType:"json",fileTypes:["json","notebook","geojson"],defaultFor:["json"]}}];const v=f},64897:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(79536);var r=n(37935);var a=n(93379);var l=n.n(a);var d=n(7795);var c=n.n(d);var h=n(90569);var u=n.n(h);var p=n(3565);var m=n.n(p);var g=n(19216);var f=n.n(g);var v=n(44589);var _=n.n(v);var b=n(2837);var y={};y.styleTagTransform=_();y.setAttributes=m();y.insert=u().bind(null,"head");y.domAPI=c();y.insertStyleElement=f();var w=l()(b.Z,y);const C=b.Z&&b.Z.locals?b.Z.locals:undefined},65392:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>b});var i=n(74574);var s=n.n(i);var o=n(10759);var r=n.n(o);var a=n(19804);var l=n.n(a);var d=n(97095);var c=n.n(d);var h=n(6958);var u=n.n(h);var p=n(4148);var m=n.n(p);var g=n(58740);var f=n.n(g);var v;(function(e){e.create="launcher:create"})(v||(v={}));const _={activate:y,id:"@jupyterlab/launcher-extension:plugin",description:"Provides the launcher tab service.",requires:[h.ITranslator],optional:[i.ILabShell,o.ICommandPalette,a.IDefaultFileBrowser,a.IFileBrowserFactory],provides:d.ILauncher,autoStart:true};const b=_;function y(e,t,n,i,s,r){const{commands:a,shell:l}=e;const c=t.load("jupyterlab");const h=new d.LauncherModel;a.addCommand(v.create,{label:c.__("New Launcher"),icon:e=>e.toolbar?p.addIcon:undefined,execute:e=>{var i,r;const u=(r=(i=e["cwd"])!==null&&i!==void 0?i:s===null||s===void 0?void 0:s.model.path)!==null&&r!==void 0?r:"";const m=`launcher-${w.id++}`;const f=e=>{if((0,g.find)(l.widgets("main"),(t=>t===e))){l.add(e,"main",{ref:m});v.dispose()}};const v=new d.Launcher({model:h,cwd:u,callback:f,commands:a,translator:t});v.model=h;v.title.icon=p.launcherIcon;v.title.label=c.__("Launcher");const _=new o.MainAreaWidget({content:v});_.title.closable=!!Array.from(l.widgets("main")).length;_.id=m;l.add(_,"main",{activate:e["activate"],ref:e["ref"]});if(n){n.layoutModified.connect((()=>{_.title.closable=Array.from(n.widgets("main")).length>1}),_)}if(s){const e=e=>{v.cwd=e.path};s.model.pathChanged.connect(e);v.disposed.connect((()=>{s.model.pathChanged.disconnect(e)}))}return _}});if(n){void Promise.all([e.restored,s===null||s===void 0?void 0:s.model.restored]).then((()=>{function e(){if(n.isEmpty("main")){void a.execute(v.create)}}n.layoutModified.connect((()=>{e()}))}))}if(i){i.addItem({command:v.create,category:c.__("Launcher")})}if(n){n.addButtonEnabled=true;n.addRequested.connect(((e,t)=>{var n;const i=((n=t.currentTitle)===null||n===void 0?void 0:n.owner.id)||t.titles[t.titles.length-1].owner.id;return a.execute(v.create,{ref:i})}))}return h}var w;(function(e){e.id=0})(w||(w={}))},94679:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(79536);var r=n(90516);var a=n(59240);var l=n(52812);var d=n(93379);var c=n.n(d);var h=n(7795);var u=n.n(h);var p=n(90569);var m=n.n(p);var g=n(3565);var f=n.n(g);var v=n(19216);var _=n.n(v);var b=n(44589);var y=n.n(b);var w=n(83602);var C={};C.styleTagTransform=y();C.setAttributes=f();C.insert=m().bind(null,"head");C.domAPI=u();C.insertStyleElement=_();var x=c()(w.Z,C);const S=w.Z&&w.Z.locals?w.Z.locals:undefined},9:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ILauncher:()=>s,Launcher:()=>g,LauncherModel:()=>m});var i=n(5596);const s=new i.Token("@jupyterlab/launcher:ILauncher",`A service for the application activity launcher.\n Use this to add your extension activities to the launcher panel.`);var o=n(10759);var r=n(6958);var a=n(4148);var l=n(58740);var d=n(26512);var c=n(75379);var h=n(85448);var u=n(28416);const p="jp-Launcher";class m extends a.VDomModel{constructor(){super(...arguments);this.itemsList=[]}add(e){const t=v.createItem(e);this.itemsList.push(t);this.stateChanged.emit(void 0);return new d.DisposableDelegate((()=>{l.ArrayExt.removeFirstOf(this.itemsList,t);this.stateChanged.emit(void 0)}))}items(){return this.itemsList[Symbol.iterator]()}}class g extends a.VDomRenderer{constructor(e){super(e.model);this._pending=false;this._cwd="";this._cwd=e.cwd;this.translator=e.translator||r.nullTranslator;this._trans=this.translator.load("jupyterlab");this._callback=e.callback;this._commands=e.commands;this.addClass(p)}get cwd(){return this._cwd}set cwd(e){this._cwd=e;this.update()}get pending(){return this._pending}set pending(e){this._pending=e}render(){if(!this.model){return null}const e=[this._trans.__("Notebook"),this._trans.__("Console"),this._trans.__("Other")];const t=[this._trans.__("Notebook"),this._trans.__("Console")];const n=Object.create(null);for(const r of this.model.items()){const e=r.category||this._trans.__("Other");if(!(e in n)){n[e]=[]}n[e].push(r)}for(const r in n){n[r]=n[r].sort(((e,t)=>v.sortCmp(e,t,this._cwd,this._commands)))}const i=[];let s;const o=[];for(const r of e){o.push(r)}for(const r in n){if(e.indexOf(r)===-1){o.push(r)}}o.forEach((e=>{if(!n[e]){return}const o=n[e][0];const r={...o.args,cwd:this.cwd};const d=t.indexOf(e)>-1;const c=this._commands.iconClass(o.command,r);const h=this._commands.icon(o.command,r);if(e in n){s=u.createElement("div",{className:"jp-Launcher-section",key:e},u.createElement("div",{className:"jp-Launcher-sectionHeader"},u.createElement(a.LabIcon.resolveReact,{icon:h,iconClass:(0,a.classes)(c,"jp-Icon-cover"),stylesheet:"launcherSection"}),u.createElement("h2",{className:"jp-Launcher-sectionTitle"},e)),u.createElement("div",{className:"jp-Launcher-cardContainer"},Array.from((0,l.map)(n[e],(e=>f(d,e,this,this._commands,this._trans,this._callback))))));i.push(s)}}));return u.createElement("div",{className:"jp-Launcher-body"},u.createElement("div",{className:"jp-Launcher-content"},u.createElement("div",{className:"jp-Launcher-cwd"},u.createElement("h3",null,this.cwd)),i))}}function f(e,t,n,i,s,r){const l=t.command;const d={...t.args,cwd:n.cwd};const c=i.caption(l,d);const p=i.label(l,d);const m=e?p:c||p;const g=()=>{if(n.pending===true){return}n.pending=true;void i.execute(l,{...t.args,cwd:n.cwd}).then((e=>{n.pending=false;if(e instanceof h.Widget){r(e)}})).catch((e=>{console.error(e);n.pending=false;void(0,o.showErrorMessage)(s._p("Error","Launcher Error"),e)}))};const f=e=>{if(e.key==="Enter"){g()}};const _=i.iconClass(l,d);const b=i.icon(l,d);return u.createElement("div",{className:"jp-LauncherCard",title:m,onClick:g,onKeyPress:f,tabIndex:0,"data-category":t.category||s.__("Other"),key:v.keyProperty.get(t)},u.createElement("div",{className:"jp-LauncherCard-icon"},e?t.kernelIconUrl?u.createElement("img",{src:t.kernelIconUrl,className:"jp-Launcher-kernelIcon"}):u.createElement("div",{className:"jp-LauncherCard-noKernelIcon"},p[0].toUpperCase()):u.createElement(a.LabIcon.resolveReact,{icon:b,iconClass:(0,a.classes)(_,"jp-Icon-cover"),stylesheet:"launcherCard"})),u.createElement("div",{className:"jp-LauncherCard-label",title:m},u.createElement("p",null,p)))}var v;(function(e){let t=0;e.keyProperty=new c.AttachedProperty({name:"key",create:()=>t++});function n(e){return{...e,category:e.category||"",rank:e.rank!==undefined?e.rank:Infinity}}e.createItem=n;function i(e,t,n,i){const s=e.rank;const o=t.rank;if(s!==o&&s!==undefined&&o!==undefined){return s{"use strict";var i=n(32902);var s=n(34849);var o=n(79536);var r=n(93379);var a=n.n(r);var l=n(7795);var d=n.n(l);var c=n(90569);var h=n.n(c);var u=n(3565);var p=n.n(u);var m=n(19216);var g=n.n(m);var f=n(44589);var v=n.n(f);var _=n(41802);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.Z,b);const w=_.Z&&_.Z.locals?_.Z.locals:undefined},54780:(e,t,n)=>{"use strict";n.r(t);n.d(t,{LogLevelSwitcher:()=>w,default:()=>C});var i=n(74574);var s=n(10759);var o=n(87294);var r=n(23635);var a=n(95811);var l=n(85176);var d=n(6958);var c=n(4148);var h=n(5596);var u=n(28416);var p=n.n(u);var m=n(71372);function g(e){const t=e.translator||d.nullTranslator;const n=t.load("jupyterlab");let i="";if(e.newMessages>0){i=n.__("%1 new messages, %2 log entries for %3",e.newMessages,e.logEntries,e.source)}else{i+=n.__("%1 log entries for %2",e.logEntries,e.source)}return p().createElement(l.GroupItem,{spacing:0,onClick:e.handleClick,title:i},p().createElement(c.listIcon.react,{top:"2px",stylesheet:"statusBar"}),e.newMessages>0?p().createElement(l.TextItem,{source:e.newMessages}):p().createElement(p().Fragment,null))}class f extends c.VDomRenderer{constructor(e){super(new f.Model(e.loggerRegistry));this.translator=e.translator||d.nullTranslator;this._handleClick=e.handleClick;this.addClass("jp-mod-highlighted");this.addClass("jp-LogConsoleStatusItem")}render(){if(this.model===null||this.model.version===0){return null}const{flashEnabled:e,messages:t,source:n,version:i,versionDisplayed:s,versionNotified:o}=this.model;if(n!==null&&e&&i>o){this._flashHighlight();this.model.sourceNotified(n,i)}else if(n!==null&&e&&i>s){this._showHighlighted()}else{this._clearHighlight()}return p().createElement(g,{handleClick:this._handleClick,logEntries:t,newMessages:i-s,source:this.model.source,translator:this.translator})}_flashHighlight(){this._showHighlighted();this.removeClass("jp-LogConsole-flash");requestAnimationFrame((()=>{this.addClass("jp-LogConsole-flash")}))}_showHighlighted(){this.addClass("jp-mod-selected")}_clearHighlight(){this.removeClass("jp-LogConsole-flash");this.removeClass("jp-mod-selected")}}(function(e){class t extends c.VDomModel{constructor(e){super();this.flashEnabledChanged=new m.Signal(this);this._flashEnabled=true;this._source=null;this._sourceVersion=new Map;this._loggerRegistry=e;this._loggerRegistry.registryChanged.connect(this._handleLogRegistryChange,this);this._handleLogRegistryChange()}get messages(){if(this._source===null){return 0}const e=this._loggerRegistry.getLogger(this._source);return e.length}get version(){if(this._source===null){return 0}const e=this._loggerRegistry.getLogger(this._source);return e.version}get source(){return this._source}set source(e){if(this._source===e){return}this._source=e;this.stateChanged.emit()}get versionDisplayed(){var e,t;if(this._source===null){return 0}return(t=(e=this._sourceVersion.get(this._source))===null||e===void 0?void 0:e.lastDisplayed)!==null&&t!==void 0?t:0}get versionNotified(){var e,t;if(this._source===null){return 0}return(t=(e=this._sourceVersion.get(this._source))===null||e===void 0?void 0:e.lastNotified)!==null&&t!==void 0?t:0}get flashEnabled(){return this._flashEnabled}set flashEnabled(e){if(this._flashEnabled===e){return}this._flashEnabled=e;this.flashEnabledChanged.emit();this.stateChanged.emit()}sourceDisplayed(e,t){if(e===null||t===null){return}const n=this._sourceVersion.get(e);let i=false;if(n.lastDisplayed"logconsole"})}const b=new f({loggerRegistry:m,handleClick:()=>{var t;if(!u){y({insertMode:"split-bottom",ref:(t=e.shell.currentWidget)===null||t===void 0?void 0:t.id})}else{e.shell.activateById(u.id)}},translator:i});const y=(n={})=>{var r,a;p=new o.LogConsolePanel(m,i);p.source=(a=(r=n.source)!==null&&r!==void 0?r:t.currentPath)!==null&&a!==void 0?a:null;u=new s.MainAreaWidget({content:p});u.addClass("jp-LogConsole");u.title.closable=true;u.title.icon=c.listIcon;u.title.label=h.__("Log Console");const l=new c.CommandToolbarButton({commands:e.commands,id:_.addCheckpoint});const d=new c.CommandToolbarButton({commands:e.commands,id:_.clear});const f=()=>{e.commands.notifyCommandChanged(_.addCheckpoint);e.commands.notifyCommandChanged(_.clear);e.commands.notifyCommandChanged(_.open);e.commands.notifyCommandChanged(_.setLevel)};u.toolbar.addItem("lab-log-console-add-checkpoint",l);u.toolbar.addItem("lab-log-console-clear",d);u.toolbar.addItem("level",new w(u.content,i));p.sourceChanged.connect((()=>{f()}));p.sourceDisplayed.connect(((e,{source:t,version:n})=>{b.model.sourceDisplayed(t,n)}));u.disposed.connect((()=>{u=null;p=null;f()}));e.shell.add(u,"down",{ref:n.ref,mode:n.insertMode,type:"Log Console"});void g.add(u);e.shell.activateById(u.id);u.update();f()};e.commands.addCommand(_.open,{label:h.__("Show Log Console"),execute:(e={})=>{if(u){u.dispose()}else{y(e)}},isToggled:()=>u!==null});e.commands.addCommand(_.addCheckpoint,{execute:()=>{var e;(e=p===null||p===void 0?void 0:p.logger)===null||e===void 0?void 0:e.checkpoint()},icon:c.addIcon,isEnabled:()=>!!p&&p.source!==null,label:h.__("Add Checkpoint")});e.commands.addCommand(_.clear,{execute:()=>{var e;(e=p===null||p===void 0?void 0:p.logger)===null||e===void 0?void 0:e.clear()},icon:c.clearIcon,isEnabled:()=>!!p&&p.source!==null,label:h.__("Clear Log")});function C(e){return e.length===0?e:e[0].toUpperCase()+e.slice(1)}e.commands.addCommand(_.setLevel,{execute:e=>{if(p===null||p===void 0?void 0:p.logger){p.logger.level=e.level}},isEnabled:()=>!!p&&p.source!==null,label:e=>e["level"]?h.__("Set Log Level to %1",C(e.level)):h.__("Set log level to `level`.")});if(r){r.addItem({command:_.open,category:h.__("Main Area")})}if(d){d.registerStatusItem("@jupyterlab/logconsole-extension:status",{item:b,align:"left",isActive:()=>{var e;return((e=b.model)===null||e===void 0?void 0:e.version)>0},activeStateChanged:b.model.stateChanged})}function x(e){if(p){p.source=e}b.model.source=e}void e.restored.then((()=>{var e;t.currentPathChanged.connect(((e,{newValue:t})=>x(t)));x((e=t.currentPath)!==null&&e!==void 0?e:null)}));if(l){const t=e=>{m.maxLength=e.get("maxLogEntries").composite;b.model.flashEnabled=e.get("flash").composite};Promise.all([l.load(v),e.restored]).then((([e])=>{t(e);e.changed.connect((e=>{t(e)}))})).catch((e=>{console.error(e.message)}))}return m}class w extends c.ReactWidget{constructor(e,t){super();this.handleChange=e=>{if(this._logConsole.logger){this._logConsole.logger.level=e.target.value}this.update()};this.handleKeyDown=e=>{if(e.keyCode===13){this._logConsole.activate()}};this._id=`level-${h.UUID.uuid4()}`;this.translator=t!==null&&t!==void 0?t:d.nullTranslator;this._trans=this.translator.load("jupyterlab");this.addClass("jp-LogConsole-toolbarLogLevel");this._logConsole=e;if(e.source){this.update()}e.sourceChanged.connect(this._updateSource,this)}_updateSource(e,{oldValue:t,newValue:n}){if(t!==null){const n=e.loggerRegistry.getLogger(t);n.stateChanged.disconnect(this.update,this)}if(n!==null){const t=e.loggerRegistry.getLogger(n);t.stateChanged.connect(this.update,this)}this.update()}render(){const e=this._logConsole.logger;return u.createElement(u.Fragment,null,u.createElement("label",{htmlFor:this._id,className:e===null?"jp-LogConsole-toolbarLogLevel-disabled":undefined},this._trans.__("Log Level:")),u.createElement(c.HTMLSelect,{id:this._id,className:"jp-LogConsole-toolbarLogLevelDropdown",onChange:this.handleChange,onKeyDown:this.handleKeyDown,value:e===null||e===void 0?void 0:e.level,"aria-label":this._trans.__("Log level"),disabled:e===null,options:e===null?[]:[[this._trans.__("Critical"),"Critical"],[this._trans.__("Error"),"Error"],[this._trans.__("Warning"),"Warning"],[this._trans.__("Info"),"Info"],[this._trans.__("Debug"),"Debug"]].map((e=>({label:e[0],value:e[1].toLowerCase()})))}))}}const C=b},92121:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(98328);var r=n(79536);var a=n(98896);var l=n(90516);var d=n(70161);var c=n(93379);var h=n.n(c);var u=n(7795);var p=n.n(u);var m=n(90569);var g=n.n(m);var f=n(3565);var v=n.n(f);var _=n(19216);var b=n.n(_);var y=n(44589);var w=n.n(y);var C=n(80392);var x={};x.styleTagTransform=w();x.setAttributes=v();x.insert=g().bind(null,"head");x.domAPI=p();x.insertStyleElement=b();var S=h()(C.Z,x);const k=C.Z&&C.Z.locals?C.Z.locals:undefined},28194:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ILoggerRegistry:()=>p,LogConsolePanel:()=>w,LogOutputModel:()=>r,Logger:()=>d,LoggerOutputAreaModel:()=>l,LoggerRegistry:()=>h,ScrollingWidget:()=>y});var i=n(48016);var s=n(23635);var o=n(71372);class r extends s.OutputModel{constructor(e){super(e);this.timestamp=new Date(e.value.timestamp);this.level=e.value.level}}class a extends i.OutputAreaModel.ContentFactory{createOutputModel(e){return new r(e)}}class l extends i.OutputAreaModel{constructor({maxLength:e,...t}){super(t);this.maxLength=e}add(e){super.add(e);this._applyMaxLength();return this.length}shouldCombine(e){const{value:t,lastModel:n}=e;const i=Math.trunc(n.timestamp.getTime()/1e3);const s=Math.trunc(t.timestamp/1e3);return i===s}get(e){return super.get(e)}get maxLength(){return this._maxLength}set maxLength(e){this._maxLength=e;this._applyMaxLength()}_applyMaxLength(){if(this.list.length>this._maxLength){this.list.removeRange(0,this.list.length-this._maxLength)}}}class d{constructor(e){this._isDisposed=false;this._contentChanged=new o.Signal(this);this._stateChanged=new o.Signal(this);this._rendermime=null;this._version=0;this._level="warning";this.source=e.source;this.outputAreaModel=new l({contentFactory:new a,maxLength:e.maxLength})}get maxLength(){return this.outputAreaModel.maxLength}set maxLength(e){this.outputAreaModel.maxLength=e}get level(){return this._level}set level(e){const t=this._level;if(t===e){return}this._level=e;this._log({output:{output_type:"display_data",data:{"text/plain":`Log level set to ${e}`}},level:"metadata"});this._stateChanged.emit({name:"level",oldValue:t,newValue:e})}get length(){return this.outputAreaModel.length}get contentChanged(){return this._contentChanged}get stateChanged(){return this._stateChanged}get rendermime(){return this._rendermime}set rendermime(e){if(e!==this._rendermime){const t=this._rendermime;const n=this._rendermime=e;this._stateChanged.emit({name:"rendermime",oldValue:t,newValue:n})}}get version(){return this._version}log(e){if(c.LogLevel[e.level]"}},level:"metadata"})}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this.clear();this._rendermime=null;o.Signal.clearData(this)}_log(e){this._version++;this.outputAreaModel.add({...e.output,timestamp:Date.now(),level:e.level});this._contentChanged.emit("append")}}var c;(function(e){let t;(function(e){e[e["debug"]=0]="debug";e[e["info"]=1]="info";e[e["warning"]=2]="warning";e[e["error"]=3]="error";e[e["critical"]=4]="critical";e[e["metadata"]=5]="metadata"})(t=e.LogLevel||(e.LogLevel={}))})(c||(c={}));class h{constructor(e){this._loggers=new Map;this._registryChanged=new o.Signal(this);this._isDisposed=false;this._defaultRendermime=e.defaultRendermime;this._maxLength=e.maxLength}getLogger(e){const t=this._loggers;let n=t.get(e);if(n){return n}n=new d({source:e,maxLength:this.maxLength});n.rendermime=this._defaultRendermime;t.set(e,n);this._registryChanged.emit("append");return n}getLoggers(){return Array.from(this._loggers.values())}get registryChanged(){return this._registryChanged}get maxLength(){return this._maxLength}set maxLength(e){this._maxLength=e;this._loggers.forEach((t=>{t.maxLength=e}))}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;this._loggers.forEach((e=>e.dispose()));o.Signal.clearData(this)}}var u=n(5596);const p=new u.Token("@jupyterlab/logconsole:ILoggerRegistry","A service providing a logger infrastructure.");var m=n(6958);var g=n(85448);function f(e){return e.length===0?e:e[0].toUpperCase()+e.slice(1)}class v extends g.Widget{constructor(){super();this._timestampNode=document.createElement("div");this.node.append(this._timestampNode)}set timestamp(e){this._timestamp=e;this._timestampNode.innerHTML=this._timestamp.toLocaleTimeString();this.update()}set level(e){this._level=e;this.node.dataset.logLevel=e;this.update()}update(){if(this._level!==undefined&&this._timestamp!==undefined){this.node.title=`${this._timestamp.toLocaleString()}; ${f(this._level)} level`}}}class _ extends i.OutputArea{createOutputItem(e){const t=super.createOutputItem(e);if(t===null){return null}const n=t.widgets[0];n.timestamp=e.timestamp;n.level=e.level;return t}onInputRequest(e,t){return}}class b extends i.OutputArea.ContentFactory{createOutputPrompt(){return new v}}class y extends g.Widget{constructor({content:e,...t}){super(t);this._observer=null;this.addClass("jp-Scrolling");const n=this.layout=new g.PanelLayout;n.addWidget(e);this._content=e;this._sentinel=document.createElement("div");this.node.appendChild(this._sentinel)}get content(){return this._content}onAfterAttach(e){super.onAfterAttach(e);requestAnimationFrame((()=>{this._sentinel.scrollIntoView();this._scrollHeight=this.node.scrollHeight}));if(typeof IntersectionObserver!=="undefined"){this._observer=new IntersectionObserver((e=>{this._handleScroll(e)}),{root:this.node,threshold:1});this._observer.observe(this._sentinel)}}onBeforeDetach(e){if(this._observer){this._observer.disconnect()}}onAfterShow(e){if(this._tracking){this._sentinel.scrollIntoView()}}_handleScroll([e]){if(e.isIntersecting){this._tracking=true}else if(this.isVisible){const e=this.node.scrollHeight;if(e===this._scrollHeight){this._tracking=false}else{this._sentinel.scrollIntoView();this._scrollHeight=e;this._tracking=true}}}}class w extends g.StackedPanel{constructor(e,t){super();this._outputAreas=new Map;this._source=null;this._sourceChanged=new o.Signal(this);this._sourceDisplayed=new o.Signal(this);this._loggersWatched=new Set;this.translator=t||m.nullTranslator;this._trans=this.translator.load("jupyterlab");this._loggerRegistry=e;this.addClass("jp-LogConsolePanel");e.registryChanged.connect(((e,t)=>{this._bindLoggerSignals()}),this);this._bindLoggerSignals();this._placeholder=new g.Widget;this._placeholder.addClass("jp-LogConsoleListPlaceholder");this.addWidget(this._placeholder)}get loggerRegistry(){return this._loggerRegistry}get logger(){if(this.source===null){return null}return this.loggerRegistry.getLogger(this.source)}get source(){return this._source}set source(e){if(e===this._source){return}const t=this._source;const n=this._source=e;this._showOutputFromSource(n);this._handlePlaceholder();this._sourceChanged.emit({oldValue:t,newValue:n,name:"source"})}get sourceVersion(){const e=this.source;return e!==null?this._loggerRegistry.getLogger(e).version:null}get sourceChanged(){return this._sourceChanged}get sourceDisplayed(){return this._sourceDisplayed}onAfterAttach(e){super.onAfterAttach(e);this._updateOutputAreas();this._showOutputFromSource(this._source);this._handlePlaceholder()}onAfterShow(e){super.onAfterShow(e);if(this.source!==null){this._sourceDisplayed.emit({source:this.source,version:this.sourceVersion})}}_bindLoggerSignals(){const e=this._loggerRegistry.getLoggers();for(const t of e){if(this._loggersWatched.has(t.source)){continue}t.contentChanged.connect(((e,t)=>{this._updateOutputAreas();this._handlePlaceholder()}),this);t.stateChanged.connect(((e,t)=>{if(t.name!=="rendermime"){return}const n=`source:${e.source}`;const i=this._outputAreas.get(n);if(i){if(t.newValue){i.rendermime=t.newValue}else{i.dispose()}}}),this);this._loggersWatched.add(t.source)}}_showOutputFromSource(e){const t=e===null?"null source":`source:${e}`;this._outputAreas.forEach(((e,n)=>{var i,s;if(e.id===t){(i=e.parent)===null||i===void 0?void 0:i.show();if(e.isVisible){this._sourceDisplayed.emit({source:this.source,version:this.sourceVersion})}}else{(s=e.parent)===null||s===void 0?void 0:s.hide()}}));const n=e===null?this._trans.__("Log Console"):this._trans.__("Log: %1",e);this.title.label=n;this.title.caption=n}_handlePlaceholder(){if(this.source===null){this._placeholder.node.textContent=this._trans.__("No source selected.");this._placeholder.show()}else if(this._loggerRegistry.getLogger(this.source).length===0){this._placeholder.node.textContent=this._trans.__("No log messages.");this._placeholder.show()}else{this._placeholder.hide();this._placeholder.node.textContent=""}}_updateOutputAreas(){const e=new Set;const t=this._loggerRegistry.getLoggers();for(const i of t){const t=i.source;const n=`source:${t}`;e.add(n);if(!this._outputAreas.has(n)){const e=new _({rendermime:i.rendermime,contentFactory:new b,model:i.outputAreaModel});e.id=n;const s=new y({content:e});this.addWidget(s);this._outputAreas.set(n,e);const o=e=>{if(this.source===t&&e.isVisible){this._sourceDisplayed.emit({source:this.source,version:this.sourceVersion})}};e.outputLengthChanged.connect(o,this);o(e)}}const n=this._outputAreas.keys();for(const i of n){if(!e.has(i)){const e=this._outputAreas.get(i);e===null||e===void 0?void 0:e.dispose();this._outputAreas.delete(i)}}}}},70161:(e,t,n)=>{"use strict";var i=n(32902);var s=n(98896);var o=n(5333);var r=n(93379);var a=n.n(r);var l=n(7795);var d=n.n(l);var c=n(90569);var h=n.n(c);var u=n(3565);var p=n.n(u);var m=n(19216);var g=n.n(m);var f=n(44589);var v=n.n(f);var _=n(27888);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.Z,b);const w=_.Z&&_.Z.locals?_.Z.locals:undefined},40711:(e,t,n)=>{"use strict";n.r(t);n.d(t,{RunningLanguageServer:()=>k,default:()=>M});var i=n(50253);var s=n(54411);var o=n(95811);var r=n(6958);var a=n(4148);var l=n(71372);var d=n(5596);var c=n(95905);var h=n(28416);var u=n.n(h);const p="languageServers";const m="configuration";function g(e){const{[m]:t,...n}=e.schema;const{[m]:i,serverName:s,...o}=e.settings;const[r,a]=(0,h.useState)(s);const l=t=>{e.updateSetting.invoke(e.serverHash,{serverName:t.target.value}).catch(console.error);a(t.target.value)};const p={};Object.entries(i).forEach((([e,t])=>{const n={property:e,type:typeof t,value:t};p[d.UUID.uuid4()]=n}));const[g,v]=(0,h.useState)(p);const _={};Object.entries(n).forEach((([e,t])=>{if(e in o){_[e]=o[e]}else{_[e]=t["default"]}}));const[b,y]=(0,h.useState)(_);const w=(t,n,i)=>{let s=n;if(i==="number"){s=parseFloat(n)}const o={...b,[t]:s};e.updateSetting.invoke(e.serverHash,o).catch(console.error);y(o)};const C=()=>{const t=d.UUID.uuid4();const n={...g,[t]:{property:"",type:"string",value:""}};const i={};Object.values(n).forEach((e=>{i[e.property]=e.value}));e.updateSetting.invoke(e.serverHash,{[m]:i}).catch(console.error);v(n)};const x=t=>{const n={};Object.entries(g).forEach((([i,s])=>{if(i!==t){n[i]=s}const o={};Object.values(n).forEach((e=>{o[e.property]=e.value}));e.updateSetting.invoke(e.serverHash,{[m]:o}).catch(console.error);v(n)}))};const S=(t,n)=>{if(t in g){const i={...g,[t]:n};const s={};Object.values(i).forEach((e=>{s[e.property]=e.value}));v(i);e.updateSetting.invoke(e.serverHash,{[m]:s}).catch(console.error)}};const k=new c.Debouncer(S);return u().createElement("div",{className:"array-item"},u().createElement("div",{className:"form-group "},u().createElement("div",{className:"jp-FormGroup-content"},u().createElement("div",{className:"jp-objectFieldWrapper"},u().createElement("fieldset",null,u().createElement("div",{className:"form-group small-field"},u().createElement("div",{className:"jp-modifiedIndicator jp-errorIndicator"}),u().createElement("div",{className:"jp-FormGroup-content"},u().createElement("h3",{className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem"},e.trans.__("Server name:")),u().createElement("div",{className:"jp-inputFieldWrapper jp-FormGroup-contentItem"},u().createElement("input",{className:"form-control",type:"text",required:true,value:r,onChange:e=>{l(e)}})),u().createElement("div",{className:"validationErrors"},u().createElement("div",null,u().createElement("ul",{className:"error-detail bs-callout bs-callout-info"},u().createElement("li",{className:"text-danger"},e.trans.__("is a required property"))))))),Object.entries(n).map((([e,t],n)=>u().createElement("div",{key:`${n}-${e}`,className:"form-group small-field"},u().createElement("div",{className:"jp-FormGroup-content"},u().createElement("h3",{className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem"},t.title),u().createElement("div",{className:"jp-inputFieldWrapper jp-FormGroup-contentItem"},u().createElement("input",{className:"form-control",placeholder:"",type:t.type,value:b[e],onChange:n=>w(e,n.target.value,t.type)})),u().createElement("div",{className:"jp-FormGroup-description"},t.description),u().createElement("div",{className:"validationErrors"}))))),u().createElement("fieldset",null,u().createElement("legend",null,t["title"]),Object.entries(g).map((([e,t])=>u().createElement(f,{key:e,hash:e,property:t,removeProperty:x,setProperty:k}))),u().createElement("span",null,t["description"])))))),u().createElement("div",{className:"jp-ArrayOperations"},u().createElement("button",{className:"jp-mod-styled jp-mod-reject",onClick:C},e.trans.__("Add property")),u().createElement("button",{className:"jp-mod-styled jp-mod-warn jp-FormGroup-removeButton",onClick:()=>e.removeSetting(e.serverHash)},e.trans.__("Remove server"))))}function f(e){const[t,n]=(0,h.useState)({...e.property});const i={string:"text",number:"number",boolean:"checkbox"};const s=()=>{e.removeProperty(e.hash)};const o=i=>{const s={...t,property:i};e.setProperty.invoke(e.hash,s).catch(console.error);n(s)};const r=(i,s)=>{let o=i;if(s==="number"){o=parseFloat(i)}const r={...t,value:o};e.setProperty.invoke(e.hash,r).catch(console.error);n(r)};const l=i=>{let s;if(i==="boolean"){s=false}else if(i==="number"){s=0}else{s=""}const o={...t,type:i,value:s};n(o);e.setProperty.invoke(e.hash,o).catch(console.error)};return u().createElement("div",{key:e.hash,className:"form-group small-field"},u().createElement("div",{className:"jp-FormGroup-content jp-LSPExtension-FormGroup-content"},u().createElement("input",{className:"form-control",type:"text",required:true,placeholder:"Property name",value:t.property,onChange:e=>{o(e.target.value)}}),u().createElement("select",{className:"form-control",value:t.type,onChange:e=>l(e.target.value)},u().createElement("option",{value:"string"},"String"),u().createElement("option",{value:"number"},"Number"),u().createElement("option",{value:"boolean"},"Boolean")),u().createElement("input",{className:"form-control",type:i[t.type],required:false,placeholder:"Property value",value:t.type!=="boolean"?t.value:undefined,checked:t.type==="boolean"?t.value:undefined,onChange:t.type!=="boolean"?e=>r(e.target.value,t.type):e=>r(e.target.checked,t.type)}),u().createElement("button",{className:"jp-mod-minimal jp-Button",onClick:s},u().createElement(a.closeIcon.react,null))))}class v extends u().Component{constructor(e){super(e);this.removeSetting=e=>{if(e in this.state.items){const t={};for(const n in this.state.items){if(n!==e){t[n]=this.state.items[n]}}this.setState((e=>({...e,items:t})),(()=>{this.saveServerSetting()}))}};this.updateSetting=(e,t)=>{if(e in this.state.items){const n={};for(const i in this.state.items){if(i===e){n[i]={...this.state.items[i],...t}}else{n[i]=this.state.items[i]}}this.setState((e=>({...e,items:n})),(()=>{this.saveServerSetting()}))}};this.addServerSetting=()=>{let e=0;let t="newKey";while(Object.values(this.state.items).map((e=>e.serverName)).includes(t)){e+=1;t=`newKey-${e}`}this.setState((e=>({...e,items:{...e.items,[d.UUID.uuid4()]:{...this._defaultSetting,serverName:t}}})),(()=>{this.saveServerSetting()}))};this.saveServerSetting=()=>{const e={};Object.values(this.state.items).forEach((t=>{const{serverName:n,...i}=t;e[n]=i}));this._setting.set(p,e).catch(console.error)};this._setting=e.formContext.settings;this._trans=e.translator.load("jupyterlab");const t=this._setting.schema["definitions"];this._defaultSetting=t["languageServer"]["default"];this._schema=t["languageServer"]["properties"];const n=e.schema.title;const i=e.schema.description;const s=e.formContext.settings;const o=s.get(p).composite;let r={};if(o){Object.entries(o).forEach((([e,t])=>{if(t){const n=d.UUID.uuid4();r[n]={serverName:e,...t}}}))}this.state={title:n,desc:i,items:r};this._debouncedUpdateSetting=new c.Debouncer(this.updateSetting.bind(this))}render(){return u().createElement("div",null,u().createElement("fieldset",null,u().createElement("legend",null,this.state.title),u().createElement("p",{className:"field-description"},this.state.desc),u().createElement("div",{className:"field field-array field-array-of-object"},Object.entries(this.state.items).map((([e,t],n)=>u().createElement(g,{key:`${n}-${e}`,trans:this._trans,removeSetting:this.removeSetting,updateSetting:this._debouncedUpdateSetting,serverHash:e,settings:t,schema:this._schema})))),u().createElement("div",null,u().createElement("button",{style:{margin:2},className:"jp-mod-styled jp-mod-reject",onClick:this.addServerSetting},this._trans.__("Add server")))))}}function _(e,t){return u().createElement(v,{...e,translator:t})}const b={activate:x,id:"@jupyterlab/lsp-extension:plugin",description:"Provides the language server connection manager.",requires:[r.ITranslator],optional:[s.IRunningSessionManagers],provides:i.ILSPDocumentConnectionManager,autoStart:true};const y={id:"@jupyterlab/lsp-extension:feature",description:"Provides the language server feature manager.",activate:()=>new i.FeatureManager,provides:i.ILSPFeatureManager,autoStart:true};const w={activate:S,id:"@jupyterlab/lsp-extension:settings",description:"Provides the language server settings.",requires:[i.ILSPDocumentConnectionManager,o.ISettingRegistry,r.ITranslator],optional:[a.IFormRendererRegistry],autoStart:true};const C={id:i.ILSPCodeExtractorsManager.name,description:"Provides the code extractor manager.",activate:e=>{const t=new i.CodeExtractorsManager;const n=new i.TextForeignCodeExtractor({language:"markdown",isStandalone:false,file_extension:"md",cellType:["markdown"]});t.register(n,null);const s=new i.TextForeignCodeExtractor({language:"text",isStandalone:false,file_extension:"txt",cellType:["raw"]});t.register(s,null);return t},provides:i.ILSPCodeExtractorsManager,autoStart:true};function x(e,t,n){const s=new i.LanguageServerManager({settings:e.serviceManager.serverSettings});const o=new i.DocumentConnectionManager({languageServerManager:s});if(n){j(n,o,t)}return o}function S(e,t,n,i,s){const o="languageServers";const r=t.languageServerManager;const a=e=>{const n=e.composite;const i=n.languageServers||{};if(n.activate==="on"&&!r.isEnabled){r.enable().catch(console.error)}else if(n.activate==="off"&&r.isEnabled){r.disable();return}t.initialConfigurations=i;t.updateConfiguration(i);t.updateServerConfigurations(i);t.updateLogging(n.logAllCommunication,n.setTrace)};n.transform(b.id,{fetch:e=>{const t=e.schema.properties;const n={};r.sessions.forEach(((e,t)=>{n[t]={rank:50,configuration:{}}}));t[o]["default"]=n;return e},compose:e=>{const t=e.schema.properties;const n=e.data.user;const i=t[o]["default"];const s=n[o];let r={...i};if(s){r={...r,...s}}const a={[o]:r};Object.entries(t).forEach((([e,t])=>{if(e!==o){if(e in n){a[e]=n[e]}else{a[e]=t.default}}}));e.data.composite=a;return e}});r.sessionsChanged.connect((async()=>{await n.load(b.id,true)}));n.load(b.id).then((e=>{a(e);e.changed.connect((()=>{a(e)}));r.disable()})).catch((e=>{console.error(e.message)}));if(s){const e={fieldRenderer:e=>_(e,i)};s.addRenderer(`${b.id}.${o}`,e)}}class k{constructor(e,t){this._connection=new WeakSet([e]);this._manager=t;this._serverIdentifier=e.serverIdentifier;this._serverLanguage=e.serverLanguage}open(){}icon(){return a.pythonIcon}label(){var e,t;return`${(e=this._serverIdentifier)!==null&&e!==void 0?e:""} (${(t=this._serverLanguage)!==null&&t!==void 0?t:""})`}shutdown(){for(const[e,t]of this._manager.connections.entries()){if(this._connection.has(t)){const{uri:t}=this._manager.documents.get(e);this._manager.unregisterDocument(t)}}this._manager.disconnect(this._serverIdentifier)}}function j(e,t,n){const i=n.load("jupyterlab");const s=new l.Signal(t);t.connected.connect((()=>s.emit(t)));t.disconnected.connect((()=>s.emit(t)));t.closed.connect((()=>s.emit(t)));t.documentsChanged.connect((()=>s.emit(t)));let o=[];e.add({name:i.__("Language servers"),running:()=>{const e=new Set([...t.connections.values()]);o=[...e].map((e=>new k(e,t)));return o},shutdownAll:()=>{o.forEach((e=>{e.shutdown()}))},refreshRunning:()=>void 0,runningChanged:s,shutdownLabel:i.__("Shut Down"),shutdownAllLabel:i.__("Shut Down All"),shutdownAllConfirmationText:i.__("Are you sure you want to permanently shut down all running language servers?")})}const M=[b,y,w,C]},83417:(e,t,n)=>{"use strict";var i=n(34849);var s=n(90516);var o=n(51734);var r=n(90088);var a=n(93379);var l=n.n(a);var d=n(7795);var c=n.n(d);var h=n(90569);var u=n.n(h);var p=n(3565);var m=n.n(p);var g=n(19216);var f=n.n(g);var v=n(44589);var _=n.n(v);var b=n(2989);var y={};y.styleTagTransform=_();y.setAttributes=m();y.insert=u().bind(null,"head");y.domAPI=c();y.insertStyleElement=f();var w=l()(b.Z,y);const C=b.Z&&b.Z.locals?b.Z.locals:undefined},6796:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CodeExtractorsManager:()=>R,DefaultMap:()=>C,DocumentConnectionManager:()=>P,FeatureManager:()=>H,ILSPCodeExtractorsManager:()=>f,ILSPDocumentConnectionManager:()=>m,ILSPFeatureManager:()=>g,ILanguageServerManager:()=>p,LanguageServerManager:()=>V,Method:()=>v,ProtocolCoordinates:()=>F,TextForeignCodeExtractor:()=>z,UpdateManager:()=>J,VirtualDocument:()=>q,VirtualDocumentInfo:()=>$,WidgetLSPAdapter:()=>c,collectDocuments:()=>K,expandDottedPaths:()=>y,expandPath:()=>w,isEqual:()=>N,isWithinRange:()=>U,offsetAtPosition:()=>B,positionAtOffset:()=>O,sleep:()=>_,untilReady:()=>b});var i=n(38554);var s=n.n(i);var o=n(10759);var r=n(6958);var a=n(71372);const l=o.Dialog.createButton;const d={"text/x-rsrc":"r","text/x-r-source":"r","text/x-ipython":"python"};class c{constructor(e,t){this.widget=e;this.options=t;this._adapterConnected=new a.Signal(this);this._activeEditorChanged=new a.Signal(this);this._editorAdded=new a.Signal(this);this._editorRemoved=new a.Signal(this);this._disposed=new a.Signal(this);this._isDisposed=false;this._virtualDocument=null;this._connectionManager=t.connectionManager;this._isConnected=false;this._trans=(t.translator||r.nullTranslator).load("jupyterlab");this.widget.context.saveState.connect(this.onSaveState,this);this.connectionManager.closed.connect(this.onConnectionClosed,this);this.widget.disposed.connect(this.dispose,this)}get isDisposed(){return this._isDisposed}get hasMultipleEditors(){return this.editors.length>1}get widgetId(){return this.widget.id}get language(){if(d.hasOwnProperty(this.mimeType)){return d[this.mimeType]}else{let e=this.mimeType.split(";")[0];let[t,n]=e.split("/");if(t==="application"||t==="text"){if(n.startsWith("x-")){return n.substring(2)}else{return n}}else{return this.mimeType}}}get adapterConnected(){return this._adapterConnected}get activeEditorChanged(){return this._activeEditorChanged}get disposed(){return this._disposed}get editorAdded(){return this._editorAdded}get editorRemoved(){return this._editorRemoved}get isConnected(){return this._isConnected}get connectionManager(){return this._connectionManager}get trans(){return this._trans}get updateFinished(){return this._updateFinished}get virtualDocument(){return this._virtualDocument}onConnectionClosed(e,{virtualDocument:t}){if(t===this.virtualDocument){this.dispose()}}dispose(){if(this._isDisposed){return}this._isDisposed=true;this.disconnect();this._virtualDocument=null;this._disposed.emit();a.Signal.clearData(this)}disconnect(){var e,t;const n=(e=this.virtualDocument)===null||e===void 0?void 0:e.uri;const{model:i}=this.widget.context;if(n){this.connectionManager.unregisterDocument(n)}i.contentChanged.disconnect(this._onContentChanged,this);for(let{ceEditor:s}of this.editors){this._editorRemoved.emit({editor:s})}(t=this.virtualDocument)===null||t===void 0?void 0:t.dispose()}updateDocuments(){if(this._isDisposed){console.warn("Cannot update documents: adapter disposed");return Promise.reject("Cannot update documents: adapter disposed")}return this.virtualDocument.updateManager.updateDocuments(this.editors)}documentChanged(e,t,n=false){if(this._isDisposed){console.warn("Cannot swap document: adapter disposed");return}let i=this.connectionManager.connections.get(e.uri);if(!(i===null||i===void 0?void 0:i.isReady)){console.log("Skipping document update signal: connection not ready");return}i.sendFullTextChange(e.value,e.documentInfo)}reloadConnection(){if(this.virtualDocument===null){return}this.disconnect();this.initVirtual();this.connectDocument(this.virtualDocument,true).catch(console.warn)}onSaveState(e,t){if(this.virtualDocument===null){return}if(t==="completed"){const e=[this.virtualDocument];for(let t of e){let n=this.connectionManager.connections.get(t.uri);if(!n){continue}n.sendSaved(t.documentInfo);for(let i of t.foreignDocuments.values()){e.push(i)}}}}async onConnected(e){let{virtualDocument:t}=e;this._adapterConnected.emit(e);this._isConnected=true;try{await this.updateDocuments()}catch(n){console.warn("Could not update documents",n);return}this.documentChanged(t,t,true);e.connection.serverNotifications["$/logTrace"].connect(((n,i)=>{console.log(e.connection.serverIdentifier,"trace",t.uri,i)}));e.connection.serverNotifications["window/logMessage"].connect(((e,t)=>{console.log(e.serverIdentifier+": "+t.message)}));e.connection.serverNotifications["window/showMessage"].connect(((e,t)=>{void(0,o.showDialog)({title:this.trans.__("Message from ")+e.serverIdentifier,body:t.message})}));e.connection.serverRequests["window/showMessageRequest"].setHandler((async t=>{const n=t.actions;const i=n?n.map((e=>l({label:e.title}))):[l({label:this.trans.__("Dismiss")})];const s=await(0,o.showDialog)({title:this.trans.__("Message from ")+e.connection.serverIdentifier,body:t.message,buttons:i});const r=i.indexOf(s.button);if(r===-1){return null}if(n){return n[r]}return null}))}async connectDocument(e,t=false){e.foreignDocumentOpened.connect(this.onForeignDocumentOpened,this);const n=await this._connect(e).catch(console.error);if(n&&n.connection){e.changed.connect(this.documentChanged,this);if(t){n.connection.sendOpenWhenReady(e.documentInfo)}}}initVirtual(){var e;const{model:t}=this.widget.context;(e=this._virtualDocument)===null||e===void 0?void 0:e.dispose();this._virtualDocument=this.createVirtualDocument();t.contentChanged.connect(this._onContentChanged,this)}async onForeignDocumentOpened(e,t){const{foreignDocument:n}=t;await this.connectDocument(n,true);n.foreignDocumentClosed.connect(this._onForeignDocumentClosed,this)}_onForeignDocumentClosed(e,t){const{foreignDocument:n}=t;n.foreignDocumentClosed.disconnect(this._onForeignDocumentClosed,this);n.foreignDocumentOpened.disconnect(this.onForeignDocumentOpened,this);n.changed.disconnect(this.documentChanged,this)}async _connect(e){let t=e.language;let n={textDocument:{synchronization:{dynamicRegistration:true,willSave:false,didSave:true,willSaveWaitUntil:false}},workspace:{didChangeConfiguration:{dynamicRegistration:true}}};n=s()(n,this.options.featureManager.clientCapabilities());let i={capabilities:n,virtualDocument:e,language:t,hasLspSupportedFile:e.hasLspSupportedFile};let o=await this.connectionManager.connect(i);if(o){await this.onConnected({virtualDocument:e,connection:o});return{connection:o,virtualDocument:e}}else{return undefined}}async _onContentChanged(e){const t=this.updateDocuments();if(!t){console.warn("Could not update documents");return}this._updateFinished=t.catch(console.warn);await this.updateFinished}}var h=n(20501);var u=n(5596);var p;(function(e){e.URL_NS="lsp"})(p||(p={}));const m=new u.Token("@jupyterlab/lsp:ILSPDocumentConnectionManager","Provides the virtual documents and language server connections service.");const g=new u.Token("@jupyterlab/lsp:ILSPFeatureManager","Provides the language server feature manager. This token is required to register new client capabilities.");const f=new u.Token("@jupyterlab/lsp:ILSPCodeExtractorsManager","Provides the code extractor manager. This token is required in your extension to register code extractor allowing the creation of multiple virtual document from an opened document.");var v;(function(e){let t;(function(e){e["PUBLISH_DIAGNOSTICS"]="textDocument/publishDiagnostics";e["SHOW_MESSAGE"]="window/showMessage";e["LOG_TRACE"]="$/logTrace";e["LOG_MESSAGE"]="window/logMessage"})(t=e.ServerNotification||(e.ServerNotification={}));let n;(function(e){e["DID_CHANGE"]="textDocument/didChange";e["DID_CHANGE_CONFIGURATION"]="workspace/didChangeConfiguration";e["DID_OPEN"]="textDocument/didOpen";e["DID_SAVE"]="textDocument/didSave";e["INITIALIZED"]="initialized";e["SET_TRACE"]="$/setTrace"})(n=e.ClientNotification||(e.ClientNotification={}));let i;(function(e){e["REGISTER_CAPABILITY"]="client/registerCapability";e["SHOW_MESSAGE_REQUEST"]="window/showMessageRequest";e["UNREGISTER_CAPABILITY"]="client/unregisterCapability";e["WORKSPACE_CONFIGURATION"]="workspace/configuration"})(i=e.ServerRequest||(e.ServerRequest={}));let s;(function(e){e["CODE_ACTION"]="textDocument/codeAction";e["COMPLETION"]="textDocument/completion";e["COMPLETION_ITEM_RESOLVE"]="completionItem/resolve";e["DEFINITION"]="textDocument/definition";e["DOCUMENT_COLOR"]="textDocument/documentColor";e["DOCUMENT_HIGHLIGHT"]="textDocument/documentHighlight";e["DOCUMENT_SYMBOL"]="textDocument/documentSymbol";e["HOVER"]="textDocument/hover";e["IMPLEMENTATION"]="textDocument/implementation";e["INITIALIZE"]="initialize";e["REFERENCES"]="textDocument/references";e["RENAME"]="textDocument/rename";e["SIGNATURE_HELP"]="textDocument/signatureHelp";e["TYPE_DEFINITION"]="textDocument/typeDefinition";e["LINKED_EDITING_RANGE"]="textDocument/linkedEditingRange";e["INLINE_VALUE"]="textDocument/inlineValue";e["INLAY_HINT"]="textDocument/inlayHint";e["WORKSPACE_SYMBOL"]="workspace/symbol";e["WORKSPACE_SYMBOL_RESOLVE"]="workspaceSymbol/resolve";e["FORMATTING"]="textDocument/formatting";e["RANGE_FORMATTING"]="textDocument/rangeFormatting"})(s=e.ClientRequest||(e.ClientRequest={}))})(v||(v={}));async function _(e){return new Promise((t=>{setTimeout((()=>{t()}),e)}))}function b(e,t=35,n=50,i=(e=>e)){return(async()=>{let s=0;while(e()!==true){s+=1;if(t!==-1&&s>t){throw Error("Too many retrials")}n=i(n);await _(n)}return e})()}function y(e){const t=[];for(let n in e){const i=w(n.split("."),e[n]);t.push(i)}return s()({},...t)}const w=(e,t)=>{const n=Object.create(null);let i=n;e.forEach(((n,s)=>{i[n]=Object.create(null);if(s===e.length-1){i[n]=t}else{i=i[n]}}));return n};class C extends Map{constructor(e,t){super(t);this.defaultFactory=e}get(e){return this.getOrCreate(e)}getOrCreate(e,...t){if(this.has(e)){return super.get(e)}else{let n=this.defaultFactory(e,...t);this.set(e,n);return n}}}function x(e,t){const n=JSON.parse(JSON.stringify(e));const{method:i,registerOptions:s}=t;const o=i.substring(13)+"Provider";if(o){if(!s){n[o]=true}else{n[o]=JSON.parse(JSON.stringify(s))}}else{console.warn("Could not register server capability.",t);return null}return n}function S(e,t){const n=JSON.parse(JSON.stringify(e));const{method:i}=t;const s=i.substring(13)+"Provider";delete n[s];return n}var k=n(97608);class j{constructor(e){this.openedUris=new Map;this._isConnected=false;this._isInitialized=false;this._disposables=[];this._disposed=new a.Signal(this);this._isDisposed=false;this._rootUri=e.rootUri}get isConnected(){return this._isConnected}get isInitialized(){return this._isInitialized}get isReady(){return this._isConnected&&this._isInitialized}get disposed(){return this._disposed}get isDisposed(){return this._isDisposed}connect(e){this.socket=e;(0,k.listen)({webSocket:this.socket,logger:new k.ConsoleLogger,onConnection:e=>{e.listen();this._isConnected=true;this.connection=e;this.sendInitialize();const t=this.connection.onRequest("client/registerCapability",(e=>{e.registrations.forEach((e=>{try{this.serverCapabilities=x(this.serverCapabilities,e)}catch(t){console.error(t)}}))}));this._disposables.push(t);const n=this.connection.onRequest("client/unregisterCapability",(e=>{e.unregisterations.forEach((e=>{this.serverCapabilities=S(this.serverCapabilities,e)}))}));this._disposables.push(n);const i=this.connection.onClose((()=>{this._isConnected=false}));this._disposables.push(i)}})}close(){if(this.connection){this.connection.dispose()}this.openedUris.clear();this.socket.close()}sendInitialize(){if(!this._isConnected){return}this.openedUris.clear();const e=this.initializeParams();this.connection.sendRequest("initialize",e).then((e=>{this.onServerInitialized(e)}),(e=>{console.warn("LSP websocket connection initialization failure",e)}))}sendOpen(e){const t={textDocument:{uri:e.uri,languageId:e.languageId,text:e.text,version:e.version}};this.connection.sendNotification("textDocument/didOpen",t).catch(console.error);this.openedUris.set(e.uri,true);this.sendChange(e)}sendChange(e){if(!this.isReady){return}if(!this.openedUris.get(e.uri)){this.sendOpen(e);return}const t={textDocument:{uri:e.uri,version:e.version},contentChanges:[{text:e.text}]};this.connection.sendNotification("textDocument/didChange",t).catch(console.error);e.version++}sendSaved(e){if(!this.isReady){return}const t={textDocument:{uri:e.uri,version:e.version},text:e.text};this.connection.sendNotification("textDocument/didSave",t).catch(console.error)}sendConfigurationChange(e){if(!this.isReady){return}this.connection.sendNotification("workspace/didChangeConfiguration",e).catch(console.error)}dispose(){if(this._isDisposed){return}this._isDisposed=true;this._disposables.forEach((e=>{e.dispose()}));this._disposed.emit();a.Signal.clearData(this)}onServerInitialized(e){this._isInitialized=true;this.serverCapabilities=e.capabilities;this.connection.sendNotification("initialized",{}).catch(console.error);this.connection.sendNotification("workspace/didChangeConfiguration",{settings:{}}).catch(console.error)}initializeParams(){return{capabilities:{},processId:null,rootUri:this._rootUri,workspaceFolders:null}}}class M{constructor(e,t,n){this.connection=e;this.method=t;this.emitter=n}request(e){this.emitter.log(D.clientRequested,{method:this.method,message:e});return this.connection.sendRequest(this.method,e).then((t=>{this.emitter.log(D.resultForClient,{method:this.method,message:e});return t}))}}class E{constructor(e,t,n){this.connection=e;this.method=t;this.emitter=n;this.connection.onRequest(t,this._handle.bind(this));this._handler=null}setHandler(e){this._handler=e}clearHandler(){this._handler=null}_handle(e){this.emitter.log(D.serverRequested,{method:this.method,message:e});if(!this._handler){return new Promise((()=>undefined))}return this._handler(e,this.emitter).then((e=>{this.emitter.log(D.responseForServer,{method:this.method,message:e});return e}))}}const I={TEXT_DOCUMENT_SYNC:"textDocumentSync",COMPLETION:"completionProvider",HOVER:"hoverProvider",SIGNATURE_HELP:"signatureHelpProvider",DECLARATION:"declarationProvider",DEFINITION:"definitionProvider",TYPE_DEFINITION:"typeDefinitionProvider",IMPLEMENTATION:"implementationProvider",REFERENCES:"referencesProvider",DOCUMENT_HIGHLIGHT:"documentHighlightProvider",DOCUMENT_SYMBOL:"documentSymbolProvider",CODE_ACTION:"codeActionProvider",CODE_LENS:"codeLensProvider",DOCUMENT_LINK:"documentLinkProvider",COLOR:"colorProvider",DOCUMENT_FORMATTING:"documentFormattingProvider",DOCUMENT_RANGE_FORMATTING:"documentRangeFormattingProvider",DOCUMENT_ON_TYPE_FORMATTING:"documentOnTypeFormattingProvider",RENAME:"renameProvider",FOLDING_RANGE:"foldingRangeProvider",EXECUTE_COMMAND:"executeCommandProvider",SELECTION_RANGE:"selectionRangeProvider",WORKSPACE_SYMBOL:"workspaceSymbolProvider",WORKSPACE:"workspace"};function T(e,t){const n={};for(let i of Object.values(e)){n[i]=t(i)}return n}var D;(function(e){e[e["clientNotifiedServer"]=0]="clientNotifiedServer";e[e["serverNotifiedClient"]=1]="serverNotifiedClient";e[e["serverRequested"]=2]="serverRequested";e[e["clientRequested"]=3]="clientRequested";e[e["resultForClient"]=4]="resultForClient";e[e["responseForServer"]=5]="responseForServer"})(D||(D={}));class L extends j{constructor(e){super(e);this._closingManually=false;this._closeSignal=new a.Signal(this);this._errorSignal=new a.Signal(this);this._serverInitialized=new a.Signal(this);this._options=e;this.logAllCommunication=false;this.serverIdentifier=e.serverIdentifier;this.serverLanguage=e.languageId;this.documentsToOpen=[];this.clientNotifications=this.constructNotificationHandlers(v.ClientNotification);this.serverNotifications=this.constructNotificationHandlers(v.ServerNotification)}get closeSignal(){return this._closeSignal}get errorSignal(){return this._errorSignal}get serverInitialized(){return this._serverInitialized}dispose(){if(this.isDisposed){return}Object.values(this.serverRequests).forEach((e=>e.clearHandler()));this.close();super.dispose()}log(e,t){if(this.logAllCommunication){console.log(e,t)}}sendOpenWhenReady(e){if(this.isReady){this.sendOpen(e)}else{this.documentsToOpen.push(e)}}sendSelectiveChange(e,t){this._sendChange([e],t)}sendFullTextChange(e,t){this._sendChange([{text:e}],t)}provides(e){return!!(this.serverCapabilities&&this.serverCapabilities[e])}close(){try{this._closingManually=true;super.close()}catch(e){this._closingManually=false}}connect(e){super.connect(e);b((()=>this.isConnected),-1).then((()=>{const e=this.connection.onClose((()=>{this._isConnected=false;this._closeSignal.emit(this._closingManually)}));this._disposables.push(e)})).catch((()=>{console.error("Could not connect onClose signal")}))}async getCompletionResolve(e){if(!this.isReady){return}return this.connection.sendRequest("completionItem/resolve",e)}constructNotificationHandlers(e){const t=()=>new a.Signal(this);return T(e,t)}constructClientRequestHandler(e){return T(e,(e=>new M(this.connection,e,this)))}constructServerRequestHandler(e){return T(e,(e=>new E(this.connection,e,this)))}initializeParams(){return{...super.initializeParams(),capabilities:this._options.capabilities,initializationOptions:null,processId:null,workspaceFolders:null}}onServerInitialized(e){this.afterInitialized();super.onServerInitialized(e);while(this.documentsToOpen.length){this.sendOpen(this.documentsToOpen.pop())}this._serverInitialized.emit(this.serverCapabilities)}afterInitialized(){const e=this.connection.onError((e=>this._errorSignal.emit(e)));this._disposables.push(e);for(const t of Object.values(v.ServerNotification)){const e=this.serverNotifications[t];const n=this.connection.onNotification(t,(n=>{this.log(D.serverNotifiedClient,{method:t,message:n});e.emit(n)}));this._disposables.push(n)}for(const t of Object.values(v.ClientNotification)){const e=this.clientNotifications[t];e.connect(((e,n)=>{this.log(D.clientNotifiedServer,{method:t,message:n});this.connection.sendNotification(t,n).catch(console.error)}))}this.clientRequests=this.constructClientRequestHandler(v.ClientRequest);this.serverRequests=this.constructServerRequestHandler(v.ServerRequest);this.serverRequests["client/registerCapability"].setHandler((async e=>{e.registrations.forEach((e=>{try{const t=x(this.serverCapabilities,e);if(t===null){console.error(`Failed to register server capability: ${e}`);return}this.serverCapabilities=t}catch(t){console.error(t)}}))}));this.serverRequests["client/unregisterCapability"].setHandler((async e=>{e.unregisterations.forEach((e=>{this.serverCapabilities=S(this.serverCapabilities,e)}))}));this.serverRequests["workspace/configuration"].setHandler((async e=>e.items.map((e=>null))))}_sendChange(e,t){if(!this.isReady){return}if(t.uri.length===0){return}if(!this.openedUris.get(t.uri)){this.sendOpen(t)}const n={textDocument:{uri:t.uri,version:t.version},contentChanges:e};this.connection.sendNotification("textDocument/didChange",n).catch(console.error);t.version++}}class P{constructor(e){this.onNewConnection=e=>{const t=(t,n)=>{console.error(n);let i=n.length&&n.length>=1?n[0]:new Error;if(i.message.indexOf("code = 1005")!==-1){console.error(`Connection failed for ${e}`);this._forEachDocumentOfConnection(e,(t=>{console.error("disconnecting "+t.uri);this._closed.emit({connection:e,virtualDocument:t});this._ignoredLanguages.add(t.language);console.error(`Cancelling further attempts to connect ${t.uri} and other documents for this language (no support from the server)`)}))}else if(i.message.indexOf("code = 1006")!==-1){console.error("Connection closed by the server")}else{console.error("Connection error:",n)}};e.errorSignal.connect(t);const n=()=>{this._forEachDocumentOfConnection(e,(t=>{this._initialized.emit({connection:e,virtualDocument:t})}));this.updateServerConfigurations(this.initialConfigurations)};e.serverInitialized.connect(n);const i=(t,n)=>{if(!n){console.error("Connection unexpectedly disconnected")}else{console.log("Connection closed");this._forEachDocumentOfConnection(e,(t=>{this._closed.emit({connection:e,virtualDocument:t})}))}};e.closeSignal.connect(i)};this._initialized=new a.Signal(this);this._connected=new a.Signal(this);this._disconnected=new a.Signal(this);this._closed=new a.Signal(this);this._documentsChanged=new a.Signal(this);this.connections=new Map;this.documents=new Map;this.adapters=new Map;this._ignoredLanguages=new Set;this.languageServerManager=e.languageServerManager;A.setLanguageServerManager(e.languageServerManager)}get initialized(){return this._initialized}get connected(){return this._connected}get disconnected(){return this._disconnected}get closed(){return this._closed}get documentsChanged(){return this._documentsChanged}get ready(){return A.getLanguageServerManager().ready}connectDocumentSignals(e){e.foreignDocumentOpened.connect(this.onForeignDocumentOpened,this);e.foreignDocumentClosed.connect(this.onForeignDocumentClosed,this);this.documents.set(e.uri,e);this._documentsChanged.emit(this.documents)}disconnectDocumentSignals(e,t=true){e.foreignDocumentOpened.disconnect(this.onForeignDocumentOpened,this);e.foreignDocumentClosed.disconnect(this.onForeignDocumentClosed,this);this.documents.delete(e.uri);for(const n of e.foreignDocuments.values()){this.disconnectDocumentSignals(n,false)}if(t){this._documentsChanged.emit(this.documents)}}onForeignDocumentOpened(e,t){}onForeignDocumentClosed(e,t){const{foreignDocument:n}=t;this.unregisterDocument(n.uri,false);this.disconnectDocumentSignals(n)}registerAdapter(e,t){this.adapters.set(e,t);t.disposed.connect((()=>{if(t.virtualDocument){this.documents.delete(t.virtualDocument.uri)}this.adapters.delete(e)}))}updateConfiguration(e){this.languageServerManager.setConfiguration(e)}updateServerConfigurations(e){let t;for(t in e){if(!e.hasOwnProperty(t)){continue}const n=e[t];const i=y(n.configuration||{});const s={settings:i};A.updateServerConfiguration(t,s)}}async retryToConnect(e,t,n=-1){let{virtualDocument:i}=e;if(this._ignoredLanguages.has(i.language)){return}let s=t*1e3;let o=false;while(n!==0&&!o){await this.connect(e).then((()=>{o=true})).catch((e=>{console.warn(e)}));console.log("will attempt to re-connect in "+s/1e3+" seconds");await _(s);s=s<5*1e3?s+500:s}}disconnect(e){A.disconnect(e)}async connect(e,t=30,n=5){let i=await this._connectSocket(e);let{virtualDocument:s}=e;if(!i){return}if(!i.isReady){try{await b((()=>i.isReady),Math.round(t*1e3/150),150)}catch(o){console.log(`Connection to ${s.uri} timed out after ${t} seconds, will continue retrying for another ${n} minutes`);try{await b((()=>i.isReady),60*n,1e3)}catch(r){console.log(`Connection to ${s.uri} timed out again after ${n} minutes, giving up`);return}}}this._connected.emit({connection:i,virtualDocument:s});return i}unregisterDocument(e,t=true){const n=this.connections.get(e);if(n){this.connections.delete(e);const i=new Set(this.connections.values());if(!i.has(n)){this.disconnect(n.serverIdentifier);n.dispose()}if(t){this._documentsChanged.emit(this.documents)}}}updateLogging(e,t){for(const n of this.connections.values()){n.logAllCommunication=e;if(t!==null){n.clientNotifications["$/setTrace"].emit({value:t})}}}async _connectSocket(e){let{language:t,capabilities:n,virtualDocument:i}=e;this.connectDocumentSignals(i);const s=P.solveUris(i,t);const o=this.languageServerManager.getMatchingServers({language:t});const r=o.length===0?null:o[0];if(!s){return}const a=await A.connection(t,r,s,this.onNewConnection,n);this.connections.set(i.uri,a);return a}_forEachDocumentOfConnection(e,t){for(const[n,i]of this.connections.entries()){if(e!==i){continue}t(this.documents.get(n))}}}(function(e){function t(e,t){var n;const i=A.getLanguageServerManager();const s=i.settings.wsUrl;const o=h.PageConfig.getOption("rootUri");const r=h.PageConfig.getOption("virtualDocumentsUri");const a={language:t};const l=i.getMatchingServers(a);const d=l.length===0?null:l[0];if(d===null){return}const c=i.getMatchingSpecs(a);const u=c.get(d);if(!u){console.warn(`Specification not available for server ${d}`)}const p=(n=u===null||u===void 0?void 0:u.requires_documents_on_disk)!==null&&n!==void 0?n:true;const m=!p;const g=e.hasLspSupportedFile||m?o:r;let f=h.URLExt.join(g,e.uri);if(!f.startsWith("file:///")&&f.startsWith("file://")){f=f.replace("file://","file:///");if(f.startsWith("file:///users/")&&g.startsWith("file:///Users/")){f=f.replace("file:///users/","file:///Users/")}}return{base:g,document:f,server:h.URLExt.join("ws://jupyter-lsp",t),socket:h.URLExt.join(s,"lsp","ws",d)}}e.solveUris=t})(P||(P={}));var A;(function(e){const t=new Map;let n;function i(){return n}e.getLanguageServerManager=i;function s(e){n=e}e.setLanguageServerManager=s;function o(e){const n=t.get(e);if(n){n.close();t.delete(e)}}e.disconnect=o;async function r(n,i,s,o,r){let a=t.get(i);if(!a){const{settings:a}=e.getLanguageServerManager();const l=new a.WebSocket(s.socket);const d=new L({languageId:n,serverUri:s.server,rootUri:s.base,serverIdentifier:i,capabilities:r});t.set(i,d);d.connect(l);o(d)}a=t.get(i);return a}e.connection=r;function a(e,n){const i=t.get(e);if(i){i.sendConfigurationChange(n)}}e.updateServerConfiguration=a})(A||(A={}));class R{constructor(){this._extractorMap=new Map;this._extractorMapAnyLanguage=new Map}getExtractors(e,t){var n,i;if(t){const i=this._extractorMap.get(e);if(!i){return[]}return(n=i.get(t))!==null&&n!==void 0?n:[]}else{return(i=this._extractorMapAnyLanguage.get(e))!==null&&i!==void 0?i:[]}}register(e,t){const n=e.cellType;if(t){n.forEach((n=>{if(!this._extractorMap.has(n)){this._extractorMap.set(n,new Map)}const i=this._extractorMap.get(n);const s=i.get(t);if(!s){i.set(t,[e])}else{s.push(e)}}))}else{n.forEach((t=>{if(!this._extractorMapAnyLanguage.has(t)){this._extractorMapAnyLanguage.set(t,[])}this._extractorMapAnyLanguage.get(t).push(e)}))}}}function N(e,t){return t&&e.line===t.line&&e.ch===t.ch}function O(e,t){let n=0;let i=0;for(let s of t){if(s.length+1<=e){e-=s.length+1;n+=1}else{i=e;break}}return{line:n,column:i}}function B(e,t,n=false){let i=n?0:1;let s=0;for(let o=0;oo){s+=n.length+i}else{s+=e.column;break}}return s}var F;(function(e){function t(e,t){const{line:n,character:i}=e;return n>=t.start.line&&n<=t.end.line&&(n!=t.start.line||i>t.start.character)&&(n!=t.end.line||i<=t.end.character)}e.isWithinRange=t})(F||(F={}));class z{constructor(e){this.language=e.language;this.standalone=e.isStandalone;this.fileExtension=e.file_extension;this.cellType=e.cellType}hasForeignCode(e,t){return this.cellType.includes(t)}extractForeignCode(e){let t=e.split("\n");let n=new Array;let i=e;let s=O(0,t);let o=O(i.length,t);n.push({hostCode:"",foreignCode:i,range:{start:s,end:o},virtualShift:null});return n}}class H{constructor(){this.features=[];this._featuresRegistered=new a.Signal(this)}get featuresRegistered(){return this._featuresRegistered}register(e){if(this.features.some((t=>t.id===e.id))){console.warn(`Feature with id ${e.id} is already registered, skipping.`)}else{this.features.push(e);this._featuresRegistered.emit(e)}}clientCapabilities(){let e={};for(const t of this.features){if(!t.capabilities){continue}e=s()(e,t.capabilities)}return e}}var W=n(96306);class V{constructor(e){this._sessions=new Map;this._specs=new Map;this._warningsEmitted=new Set;this._ready=new u.PromiseDelegate;this._sessionsChanged=new a.Signal(this);this._isDisposed=false;this._enabled=true;this._settings=e.settings||W.ServerConnection.makeSettings();this._baseUrl=e.baseUrl||h.PageConfig.getBaseUrl();this._retries=e.retries||2;this._retriesInterval=e.retriesInterval||1e4;this._statusCode=-1;this._configuration={};this.fetchSessions().catch((e=>console.log(e)))}get isEnabled(){return this._enabled}get isDisposed(){return this._isDisposed}get settings(){return this._settings}get specs(){return this._specs}get statusUrl(){return h.URLExt.join(this._baseUrl,p.URL_NS,"status")}get sessionsChanged(){return this._sessionsChanged}get sessions(){return this._sessions}get ready(){return this._ready.promise}get statusCode(){return this._statusCode}async enable(){this._enabled=true;await this.fetchSessions()}disable(){this._enabled=false;this._sessions=new Map;this._sessionsChanged.emit(void 0)}dispose(){if(this._isDisposed){return}this._isDisposed=true;a.Signal.clearData(this)}setConfiguration(e){this._configuration=e}getMatchingServers(e){if(!e.language){console.error("Cannot match server by language: language not available; ensure that kernel and specs provide language and MIME type");return[]}const t=[];for(const[n,i]of this._sessions.entries()){if(this.isMatchingSpec(e,i.spec)){t.push(n)}}return t.sort(this.compareRanks.bind(this))}getMatchingSpecs(e){const t=new Map;for(const[n,i]of this._specs.entries()){if(this.isMatchingSpec(e,i)){t.set(n,i)}}return t}async fetchSessions(){if(!this._enabled){return}let e=await W.ServerConnection.makeRequest(this.statusUrl,{method:"GET"},this._settings);this._statusCode=e.status;if(!e.ok){if(this._retries>0){this._retries-=1;setTimeout(this.fetchSessions.bind(this),this._retriesInterval)}else{this._ready.resolve(undefined);console.log("Missing jupyter_lsp server extension, skipping.")}return}let t;try{const n=await e.json();t=n.sessions;try{this.version=n.version;this._specs=new Map(Object.entries(n.specs))}catch(i){console.warn(i)}}catch(i){console.warn(i);this._ready.resolve(undefined);return}for(let s of Object.keys(t)){let e=s;if(this._sessions.has(e)){Object.assign(this._sessions.get(e)||{},t[s])}else{this._sessions.set(e,t[s])}}const n=this._sessions.keys();for(const s in n){if(!t[s]){let e=s;this._sessions.delete(e)}}this._sessionsChanged.emit(void 0);this._ready.resolve(undefined)}isMatchingSpec(e,t){const n=e.language.toLocaleLowerCase();return t.languages.some((e=>e.toLocaleLowerCase()==n))}warnOnce(e){if(!this._warningsEmitted.has(e)){this._warningsEmitted.add(e);console.warn(e)}}compareRanks(e,t){var n,i,s,o;const r=50;const a=(i=(n=this._configuration[e])===null||n===void 0?void 0:n.rank)!==null&&i!==void 0?i:r;const l=(o=(s=this._configuration[t])===null||s===void 0?void 0:s.rank)!==null&&o!==void 0?o:r;if(a==l){this.warnOnce(`Two matching servers: ${e} and ${t} have the same rank; choose which one to use by changing the rank in Advanced Settings Editor`);return e.localeCompare(t)}return l-a}}function U(e,t){if(t.start.line===t.end.line){return e.line===t.start.line&&e.column>=t.start.column&&e.column<=t.end.column}return e.line===t.start.line&&e.column>=t.start.column&&e.linet.start.line&&e.column<=t.end.column&&e.line===t.end.line||e.line>t.start.line&&e.linenew Array));this._remainingLifetime=6;this.documentInfo=new $(this);this.updateManager=new J(this);this.updateManager.updateBegan.connect(this._updateBeganSlot,this);this.updateManager.blockAdded.connect(this._blockAddedSlot,this);this.updateManager.updateFinished.connect(this._updateFinishedSlot,this);this.clear()}static ceToCm(e){return{line:e.line,ch:e.column}}get isDisposed(){return this._isDisposed}get foreignDocumentClosed(){return this._foreignDocumentClosed}get foreignDocumentOpened(){return this._foreignDocumentOpened}get changed(){return this._changed}get virtualId(){return this.standalone?this.instanceId+"("+this.language+")":this.language}get ancestry(){if(!this.parent){return[this]}return this.parent.ancestry.concat([this])}get idPath(){if(!this.parent){return this.virtualId}return this.parent.idPath+"-"+this.virtualId}get uri(){const e=encodeURI(this.path);if(!this.parent){return e}return e+"."+this.idPath+"."+this.fileExtension}get value(){let e="\n".repeat(this.blankLinesBetweenCells);return this.lineBlocks.join(e)}get lastLine(){const e=this.lineBlocks[this.lineBlocks.length-1].split("\n");return e[e.length-1]}get root(){return this.parent?this.parent.root:this}dispose(){if(this._isDisposed){return}this._isDisposed=true;this.parent=null;this.closeAllForeignDocuments();this.updateManager.dispose();this.foreignDocuments.clear();this.sourceLines.clear();this.unusedStandaloneDocuments.clear();this.virtualLines.clear();this.documentInfo=null;this.lineBlocks=null;a.Signal.clearData(this)}clear(){for(let e of this.foreignDocuments.values()){e.clear()}this.unusedStandaloneDocuments.clear();this.virtualLines.clear();this.sourceLines.clear();this.lastVirtualLine=0;this.lastSourceLine=0;this.lineBlocks=[]}documentAtSourcePosition(e){let t=this.sourceLines.get(e.line);if(!t){return this}let n={line:t.editorLine,column:e.ch};for(let[i,{virtualDocument:s}]of t.foreignDocumentsMap){if(U(n,i)){let e={line:n.line-i.start.line,ch:n.column-i.start.column};return s.documentAtSourcePosition(e)}}return this}isWithinForeign(e){let t=this.sourceLines.get(e.line);let n={line:t.editorLine,column:e.ch};for(let[i]of t.foreignDocumentsMap){if(U(n,i)){return true}}return false}transformFromEditorToRoot(e,t){if(!this._editorToSourceLine.has(e)){console.log("Editor not found in _editorToSourceLine map");return null}let n=this._editorToSourceLine.get(e);return{...t,line:t.line+n}}virtualPositionAtDocument(e){let t=this.sourceLines.get(e.line);if(t==null){throw new Error("Source line not mapped to virtual position")}let n=t.virtualLine;let i={line:t.editorLine,column:e.ch};for(let[s,o]of t.foreignDocumentsMap){const{virtualLine:e,virtualDocument:t}=o;if(U(i,s)){let n={line:i.line-s.start.line,ch:i.column-s.start.column};if(t.isWithinForeign(n)){return this.virtualPositionAtDocument(n)}else{n.line+=e;return n}}}return{ch:e.ch,line:n}}appendCodeBlock(e,t={line:0,column:0},n){let i=e.value;let s=e.ceEditor;if(this.isDisposed){console.warn("Cannot append code block: document disposed");return}let o=i.split("\n");let{lines:r,foreignDocumentsMap:a}=this.prepareCodeBlock(e,t);for(let l=0;l!e.has(t))));for(let s of i.values()){s.remainingLifetime-=1;if(s.remainingLifetime<=0){s.dispose();const e=t.get(s);for(const t of e){this.foreignDocuments.delete(t)}}}}transformSourceToEditor(e){let t=this.sourceLines.get(e.line);let n=t.editorLine;let i=t.editorShift;return{ch:e.ch+(n===0?i.column:0),line:n+i.line}}transformVirtualToEditor(e){let t=this.transformVirtualToSource(e);if(t==null){return null}return this.transformSourceToEditor(t)}transformVirtualToSource(e){const t=this.virtualLines.get(e.line).sourceLine;if(t==null){return null}return{ch:e.ch,line:t}}getEditorAtVirtualLine(e){let t=e.line;if(!this.virtualLines.has(t)){t-=1}return this.virtualLines.get(t).editor}getEditorAtSourceLine(e){return this.sourceLines.get(e.line).editor}maybeEmitChanged(){if(this.value!==this.previousValue){this._changed.emit(this)}this.previousValue=this.value;for(let e of this.foreignDocuments.values()){e.maybeEmitChanged()}}get remainingLifetime(){if(!this.parent){return Infinity}return this._remainingLifetime}set remainingLifetime(e){if(this.parent){this._remainingLifetime=e}}chooseForeignDocument(e){let t;let n=this.foreignDocuments.has(e.language);if(!e.standalone&&n){t=this.foreignDocuments.get(e.language)}else{t=this.openForeign(e.language,e.standalone,e.fileExtension)}return t}openForeign(e,t,n){let i=new q({...this.options,parent:this,standalone:t,fileExtension:n,language:e});const s={foreignDocument:i,parentHost:this};this._foreignDocumentOpened.emit(s);i.foreignDocumentClosed.connect(this.forwardClosedSignal,this);i.foreignDocumentOpened.connect(this.forwardOpenedSignal,this);this.foreignDocuments.set(i.virtualId,i);return i}forwardClosedSignal(e,t){this._foreignDocumentClosed.emit(t)}forwardOpenedSignal(e,t){this._foreignDocumentOpened.emit(t)}_updateBeganSlot(){this._editorToSourceLineNew=new Map}_blockAddedSlot(e,t){this._editorToSourceLineNew.set(t.block.ceEditor,t.virtualDocument.lastSourceLine)}_updateFinishedSlot(){this._editorToSourceLine=this._editorToSourceLineNew}}q.instancesCount=0;function K(e){let t=new Set;t.add(e);for(let n of e.foreignDocuments.values()){let e=K(n);e.forEach(t.add,t)}return t}class J{constructor(e){this.virtualDocument=e;this._isDisposed=false;this._updateDone=new Promise((e=>{e()}));this._isUpdateInProgress=false;this._updateLock=false;this._blockAdded=new a.Signal(this);this._documentUpdated=new a.Signal(this);this._updateBegan=new a.Signal(this);this._updateFinished=new a.Signal(this);this.documentUpdated.connect(this._onUpdated,this)}get updateDone(){return this._updateDone}get isDisposed(){return this._isDisposed}get blockAdded(){return this._blockAdded}get documentUpdated(){return this._documentUpdated}get updateBegan(){return this._updateBegan}get updateFinished(){return this._updateFinished}dispose(){if(this._isDisposed){return}this._isDisposed=true;this.documentUpdated.disconnect(this._onUpdated);a.Signal.clearData(this)}async withUpdateLock(e){await b((()=>this._canUpdate()),12,10).then((()=>{try{this._updateLock=true;e()}finally{this._updateLock=false}}))}async updateDocuments(e){let t=new Promise(((t,n)=>{b((()=>this._canUpdate()),10,5).then((()=>{if(this.isDisposed||!this.virtualDocument){t()}try{this._isUpdateInProgress=true;this._updateBegan.emit(e);this.virtualDocument.clear();for(let t of e){this._blockAdded.emit({block:t,virtualDocument:this.virtualDocument});this.virtualDocument.appendCodeBlock(t)}this._updateFinished.emit(e);if(this.virtualDocument){this._documentUpdated.emit(this.virtualDocument);this.virtualDocument.maybeEmitChanged()}t()}catch(i){console.warn("Documents update failed:",i);n(i)}finally{this._isUpdateInProgress=false}})).catch(console.error)}));this._updateDone=t;return t}_onUpdated(e,t){try{t.closeExpiredDocuments()}catch(n){console.warn("Failed to close expired documents")}}_canUpdate(){return!this.isDisposed&&!this._isUpdateInProgress&&!this._updateLock}}},51734:(e,t,n)=>{"use strict";var i=n(79536);var s=n(49914);var o=n(94683)},66147:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CommandIDs:()=>j,default:()=>R});var i=n(74574);var s=n.n(i);var o=n(10759);var r=n.n(o);var a=n(20501);var l=n.n(a);var d=n(66899);var c=n.n(d);var h=n(96306);var u=n.n(h);var p=n(95811);var m=n.n(p);var g=n(6958);var f=n.n(g);var v=n(4148);var _=n.n(v);var b=n(58740);var y=n.n(b);var w=n(5596);var C=n.n(w);var x=n(85448);var S=n.n(x);const k="@jupyterlab/mainmenu-extension:plugin";var j;(function(e){e.openEdit="editmenu:open";e.undo="editmenu:undo";e.redo="editmenu:redo";e.clearCurrent="editmenu:clear-current";e.clearAll="editmenu:clear-all";e.find="editmenu:find";e.goToLine="editmenu:go-to-line";e.openFile="filemenu:open";e.closeAndCleanup="filemenu:close-and-cleanup";e.createConsole="filemenu:create-console";e.shutdown="filemenu:shutdown";e.logout="filemenu:logout";e.openKernel="kernelmenu:open";e.interruptKernel="kernelmenu:interrupt";e.reconnectToKernel="kernelmenu:reconnect-to-kernel";e.restartKernel="kernelmenu:restart";e.restartKernelAndClear="kernelmenu:restart-and-clear";e.changeKernel="kernelmenu:change";e.shutdownKernel="kernelmenu:shutdown";e.shutdownAllKernels="kernelmenu:shutdownAll";e.openView="viewmenu:open";e.wordWrap="viewmenu:word-wrap";e.lineNumbering="viewmenu:line-numbering";e.matchBrackets="viewmenu:match-brackets";e.openRun="runmenu:open";e.run="runmenu:run";e.runAll="runmenu:run-all";e.restartAndRunAll="runmenu:restart-and-run-all";e.runAbove="runmenu:run-above";e.runBelow="runmenu:run-below";e.openTabs="tabsmenu:open";e.activateById="tabsmenu:activate-by-id";e.activatePreviouslyUsedTab="tabsmenu:activate-previously-used-tab";e.openSettings="settingsmenu:open";e.openHelp="helpmenu:open";e.getKernel="helpmenu:get-kernel";e.openFirst="mainmenu:open-first"})(j||(j={}));const M={id:k,description:"Adds and provides the application main menu.",requires:[i.IRouter,g.ITranslator],optional:[o.ICommandPalette,i.ILabShell,p.ISettingRegistry],provides:d.IMainMenu,activate:async(e,t,n,i,s,o)=>{const{commands:r}=e;const l=n.load("jupyterlab");const c=new d.MainMenu(r);c.id="jp-MainMenu";c.addClass("jp-scrollbar-tiny");if(o){await N.loadSettingsMenu(o,(e=>{c.addMenu(e,false,{rank:e.rank})}),(e=>d.MainMenu.generateMenu(r,e,l)),n);c.update()}const h=a.PageConfig.getOption("quitButton").toLowerCase();c.fileMenu.quitEntry=h==="true";E(e,c.editMenu,l);I(e,c.fileMenu,t,l);T(e,c.kernelMenu,l);L(e,c.runMenu,l);D(e,c.viewMenu,l);A(e,c.helpMenu,l);if(s){P(e,c.tabsMenu,s,l)}const u=e=>{c.activeMenu=e;c.openActiveMenu()};r.addCommand(j.openEdit,{label:l.__("Open Edit Menu"),execute:()=>u(c.editMenu)});r.addCommand(j.openFile,{label:l.__("Open File Menu"),execute:()=>u(c.fileMenu)});r.addCommand(j.openKernel,{label:l.__("Open Kernel Menu"),execute:()=>u(c.kernelMenu)});r.addCommand(j.openRun,{label:l.__("Open Run Menu"),execute:()=>u(c.runMenu)});r.addCommand(j.openView,{label:l.__("Open View Menu"),execute:()=>u(c.viewMenu)});r.addCommand(j.openSettings,{label:l.__("Open Settings Menu"),execute:()=>u(c.settingsMenu)});r.addCommand(j.openTabs,{label:l.__("Open Tabs Menu"),execute:()=>u(c.tabsMenu)});r.addCommand(j.openHelp,{label:l.__("Open Help Menu"),execute:()=>u(c.helpMenu)});r.addCommand(j.openFirst,{label:l.__("Open First Menu"),execute:()=>{c.activeIndex=0;c.openActiveMenu()}});if(i){i.addItem({command:j.shutdown,category:l.__("Main Area")});i.addItem({command:j.logout,category:l.__("Main Area")});i.addItem({command:j.shutdownAllKernels,category:l.__("Kernel Operations")});i.addItem({command:j.activatePreviouslyUsedTab,category:l.__("Main Area")})}e.shell.add(c,"menu",{rank:100});return c}};function E(e,t,n){const s=e.commands;s.addCommand(j.undo,(0,i.createSemanticCommand)(e,t.undoers.undo,{label:n.__("Undo")},n));s.addCommand(j.redo,(0,i.createSemanticCommand)(e,t.undoers.redo,{label:n.__("Redo")},n));s.addCommand(j.clearCurrent,(0,i.createSemanticCommand)(e,t.clearers.clearCurrent,{label:n.__("Clear")},n));s.addCommand(j.clearAll,(0,i.createSemanticCommand)(e,t.clearers.clearAll,{label:n.__("Clear All")},n));s.addCommand(j.goToLine,(0,i.createSemanticCommand)(e,t.goToLiners,{label:n.__("Go to Line…")},n))}function I(e,t,n,s){const r=e.commands;r.addCommand(j.closeAndCleanup,{...(0,i.createSemanticCommand)(e,t.closeAndCleaners,{execute:"application:close",label:s.__("Close and Shut Down"),isEnabled:true},s),isEnabled:()=>!!e.shell.currentWidget&&!!e.shell.currentWidget.title.closable});r.addCommand(j.createConsole,(0,i.createSemanticCommand)(e,t.consoleCreators,{label:s.__("New Console for Activity")},s));r.addCommand(j.shutdown,{label:s.__("Shut Down"),caption:s.__("Shut down JupyterLab"),isVisible:()=>t.quitEntry,isEnabled:()=>t.quitEntry,execute:()=>(0,o.showDialog)({title:s.__("Shutdown confirmation"),body:s.__("Please confirm you want to shut down JupyterLab."),buttons:[o.Dialog.cancelButton(),o.Dialog.warnButton({label:s.__("Shut Down")})]}).then((async t=>{if(t.button.accept){const t=h.ServerConnection.makeSettings();const i=a.URLExt.join(t.baseUrl,"api/shutdown");try{await Promise.all([e.serviceManager.sessions.shutdownAll(),e.serviceManager.terminals.shutdownAll()])}catch(n){console.log(`Failed to shutdown sessions and terminals: ${n}`)}return h.ServerConnection.makeRequest(i,{method:"POST"},t).then((e=>{if(e.ok){const e=document.createElement("div");const t=document.createElement("p");t.textContent=s.__("You have shut down the Jupyter server. You can now close this tab.");const n=document.createElement("p");n.textContent=s.__("To use JupyterLab again, you will need to relaunch it.");e.appendChild(t);e.appendChild(n);void(0,o.showDialog)({title:s.__("Server stopped"),body:new x.Widget({node:e}),buttons:[]});window.close()}else{throw new h.ServerConnection.ResponseError(e)}})).catch((e=>{throw new h.ServerConnection.NetworkError(e)}))}}))});r.addCommand(j.logout,{label:s.__("Log Out"),caption:s.__("Log out of JupyterLab"),isVisible:()=>t.quitEntry,isEnabled:()=>t.quitEntry,execute:()=>{n.navigate("/logout",{hard:true})}})}function T(e,t,n){const s=e.commands;s.addCommand(j.interruptKernel,{...(0,i.createSemanticCommand)(e,t.kernelUsers.interruptKernel,{label:n.__("Interrupt Kernel"),caption:n.__("Interrupt the kernel")},n),icon:e=>e.toolbar?v.stopIcon:undefined});s.addCommand(j.reconnectToKernel,(0,i.createSemanticCommand)(e,t.kernelUsers.reconnectToKernel,{label:n.__("Reconnect to Kernel")},n));s.addCommand(j.restartKernel,{...(0,i.createSemanticCommand)(e,t.kernelUsers.restartKernel,{label:n.__("Restart Kernel…"),caption:n.__("Restart the kernel")},n),icon:e=>e.toolbar?v.refreshIcon:undefined});s.addCommand(j.restartKernelAndClear,(0,i.createSemanticCommand)(e,[t.kernelUsers.restartKernel,t.kernelUsers.clearWidget],{label:n.__("Restart Kernel and Clear…")},n));s.addCommand(j.changeKernel,(0,i.createSemanticCommand)(e,t.kernelUsers.changeKernel,{label:n.__("Change Kernel…")},n));s.addCommand(j.shutdownKernel,(0,i.createSemanticCommand)(e,t.kernelUsers.shutdownKernel,{label:n.__("Shut Down Kernel"),caption:n.__("Shut down kernel")},n));s.addCommand(j.shutdownAllKernels,{label:n.__("Shut Down All Kernels…"),isEnabled:()=>!e.serviceManager.sessions.running().next().done,execute:()=>(0,o.showDialog)({title:n.__("Shut Down All?"),body:n.__("Shut down all kernels?"),buttons:[o.Dialog.cancelButton({label:n.__("Dismiss")}),o.Dialog.warnButton({label:n.__("Shut Down All")})]}).then((t=>{if(t.button.accept){return e.serviceManager.sessions.shutdownAll()}}))})}function D(e,t,n){const s=e.commands;s.addCommand(j.lineNumbering,(0,i.createSemanticCommand)(e,t.editorViewers.toggleLineNumbers,{label:n.__("Show Line Numbers")},n));s.addCommand(j.matchBrackets,(0,i.createSemanticCommand)(e,t.editorViewers.toggleMatchBrackets,{label:n.__("Match Brackets")},n));s.addCommand(j.wordWrap,(0,i.createSemanticCommand)(e,t.editorViewers.toggleWordWrap,{label:n.__("Wrap Words")},n))}function L(e,t,n){const s=e.commands;s.addCommand(j.run,{...(0,i.createSemanticCommand)(e,t.codeRunners.run,{label:n.__("Run Selected"),caption:n.__("Run Selected")},n),icon:e=>e.toolbar?v.runIcon:undefined});s.addCommand(j.runAll,(0,i.createSemanticCommand)(e,t.codeRunners.runAll,{label:n.__("Run All"),caption:n.__("Run All")},n));s.addCommand(j.restartAndRunAll,{...(0,i.createSemanticCommand)(e,[t.codeRunners.restart,t.codeRunners.runAll],{label:n.__("Restart Kernel and Run All"),caption:n.__("Restart Kernel and Run All")},n),icon:e=>e.toolbar?v.fastForwardIcon:undefined})}function P(e,t,n,i){const s=e.commands;const o=[];let r;s.addCommand(j.activateById,{label:t=>{if(t.id===undefined){return i.__("Activate a widget by its `id`.")}const n=t["id"]||"";const s=(0,b.find)(e.shell.widgets("main"),(e=>e.id===n));return s&&s.title.label||""},isToggled:t=>{const n=t["id"]||"";return!!e.shell.currentWidget&&e.shell.currentWidget.id===n},execute:t=>e.shell.activateById(t["id"]||"")});let a="";s.addCommand(j.activatePreviouslyUsedTab,{label:i.__("Activate Previously Used Tab"),isEnabled:()=>!!a,execute:()=>s.execute(j.activateById,{id:a})});if(n){void e.restored.then((()=>{const i=()=>{if(r&&!r.isDisposed){r.dispose()}o.length=0;let n=false;for(const t of e.shell.widgets("main")){if(t.id===a){n=true}o.push({command:j.activateById,args:{id:t.id}})}r=t.addGroup(o,1);a=n?a:""};i();n.layoutModified.connect((()=>{i()}));n.currentChanged.connect(((e,t)=>{const n=t.oldValue;if(!n){return}a=n.id}))}))}}function A(e,t,n){e.commands.addCommand(j.getKernel,(0,i.createSemanticCommand)(e,t.getKernel,{label:n.__("Get Kernel"),isVisible:false},n))}const R=M;var N;(function(e){async function t(e){const t=await(0,o.showDialog)({title:e.__("Information"),body:e.__("Menu customization has changed. You will need to reload JupyterLab to see the changes."),buttons:[o.Dialog.cancelButton(),o.Dialog.okButton({label:e.__("Reload")})]});if(t.button.accept){location.reload()}}async function n(e,n,i,s){var r;const a=s.load("jupyterlab");let l=null;let d={};function c(t){var n,i;d={};const s=Object.keys(e.plugins).map((t=>{var n,i;const s=(i=(n=e.plugins[t].schema["jupyter.lab.menus"])===null||n===void 0?void 0:n.main)!==null&&i!==void 0?i:[];d[t]=s;return s})).concat([(i=(n=t["jupyter.lab.menus"])===null||n===void 0?void 0:n.main)!==null&&i!==void 0?i:[]]).reduceRight(((e,t)=>p.SettingRegistry.reconcileMenus(e,t,true)),t.properties.menus.default);t.properties.menus.default=p.SettingRegistry.reconcileMenus(s,t.properties.menus.default,true).sort(((e,t)=>{var n,i;return((n=e.rank)!==null&&n!==void 0?n:Infinity)-((i=t.rank)!==null&&i!==void 0?i:Infinity)}))}e.transform(k,{compose:e=>{var t,n,i,s;if(!l){l=w.JSONExt.deepCopy(e.schema);c(l)}const o=(i=(n=(t=l.properties)===null||t===void 0?void 0:t.menus)===null||n===void 0?void 0:n.default)!==null&&i!==void 0?i:[];const r={...e.data.user,menus:(s=e.data.user.menus)!==null&&s!==void 0?s:[]};const a={...e.data.composite,menus:p.SettingRegistry.reconcileMenus(o,r.menus)};e.data={composite:a,user:r};return e},fetch:e=>{if(!l){l=w.JSONExt.deepCopy(e.schema);c(l)}return{data:e.data,id:e.id,raw:e.raw,schema:l,version:e.version}}});const h=await e.load(k);const u=(r=w.JSONExt.deepCopy(h.composite.menus))!==null&&r!==void 0?r:[];const m=new Array;o.MenuFactory.createMenus(u.filter((e=>!e.disabled)).map((e=>{var t;return{...e,items:p.SettingRegistry.filterDisabledItems((t=e.items)!==null&&t!==void 0?t:[])}})),i).forEach((e=>{m.push(e);n(e)}));h.changed.connect((()=>{var e;const n=(e=h.composite.menus)!==null&&e!==void 0?e:[];if(!w.JSONExt.deepEqual(u,n)){void t(a)}}));e.pluginChanged.connect((async(s,r)=>{var l,c,h;if(r!==k){const s=(l=d[r])!==null&&l!==void 0?l:[];const g=(h=(c=e.plugins[r].schema["jupyter.lab.menus"])===null||c===void 0?void 0:c.main)!==null&&h!==void 0?h:[];if(!w.JSONExt.deepEqual(s,g)){if(d[r]){await t(a)}else{d[r]=w.JSONExt.deepCopy(g);const e=p.SettingRegistry.reconcileMenus(g,u,false,false).filter((e=>!e.disabled)).map((e=>{var t;return{...e,items:p.SettingRegistry.filterDisabledItems((t=e.items)!==null&&t!==void 0?t:[])}}));o.MenuFactory.updateMenus(m,e,i).forEach((e=>{n(e)}))}}}}))}e.loadSettingsMenu=n})(N||(N={}))},83344:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(79536);var r=n(90516);var a=n(74518)},97630:(e,t,n)=>{"use strict";n.r(t);n.d(t,{EditMenu:()=>a,FileMenu:()=>l,HelpMenu:()=>d,IMainMenu:()=>_,KernelMenu:()=>c,MainMenu:()=>g,RunMenu:()=>h,SettingsMenu:()=>u,TabsMenu:()=>p,ViewMenu:()=>m});var i=n(4148);var s=n(58740);var o=n(85448);var r=n(10759);class a extends i.RankedMenu{constructor(e){super(e);this.undoers={redo:new r.SemanticCommand,undo:new r.SemanticCommand};this.clearers={clearAll:new r.SemanticCommand,clearCurrent:new r.SemanticCommand};this.goToLiners=new r.SemanticCommand}}class l extends i.RankedMenu{constructor(e){super(e);this.quitEntry=false;this.closeAndCleaners=new r.SemanticCommand;this.consoleCreators=new r.SemanticCommand}get newMenu(){var e,t;if(!this._newMenu){this._newMenu=(t=(e=(0,s.find)(this.items,(e=>{var t;return((t=e.submenu)===null||t===void 0?void 0:t.id)==="jp-mainmenu-file-new"})))===null||e===void 0?void 0:e.submenu)!==null&&t!==void 0?t:new i.RankedMenu({commands:this.commands})}return this._newMenu}dispose(){var e;(e=this._newMenu)===null||e===void 0?void 0:e.dispose();super.dispose()}}class d extends i.RankedMenu{constructor(e){super(e);this.getKernel=new r.SemanticCommand}}class c extends i.RankedMenu{constructor(e){super(e);this.kernelUsers={changeKernel:new r.SemanticCommand,clearWidget:new r.SemanticCommand,interruptKernel:new r.SemanticCommand,reconnectToKernel:new r.SemanticCommand,restartKernel:new r.SemanticCommand,shutdownKernel:new r.SemanticCommand}}}class h extends i.RankedMenu{constructor(e){super(e);this.codeRunners={restart:new r.SemanticCommand,run:new r.SemanticCommand,runAll:new r.SemanticCommand}}}class u extends i.RankedMenu{constructor(e){super(e)}}class p extends i.RankedMenu{constructor(e){super(e)}}class m extends i.RankedMenu{constructor(e){super(e);this.editorViewers={toggleLineNumbers:new r.SemanticCommand,toggleMatchBrackets:new r.SemanticCommand,toggleWordWrap:new r.SemanticCommand}}}class g extends o.MenuBar{constructor(e){let t={forceItemsPosition:{forceX:false,forceY:true}};super(t);this._items=[];this._commands=e}get editMenu(){if(!this._editMenu){this._editMenu=new a({commands:this._commands,rank:2,renderer:i.MenuSvg.defaultRenderer})}return this._editMenu}get fileMenu(){if(!this._fileMenu){this._fileMenu=new l({commands:this._commands,rank:1,renderer:i.MenuSvg.defaultRenderer})}return this._fileMenu}get helpMenu(){if(!this._helpMenu){this._helpMenu=new d({commands:this._commands,rank:1e3,renderer:i.MenuSvg.defaultRenderer})}return this._helpMenu}get kernelMenu(){if(!this._kernelMenu){this._kernelMenu=new c({commands:this._commands,rank:5,renderer:i.MenuSvg.defaultRenderer})}return this._kernelMenu}get runMenu(){if(!this._runMenu){this._runMenu=new h({commands:this._commands,rank:4,renderer:i.MenuSvg.defaultRenderer})}return this._runMenu}get settingsMenu(){if(!this._settingsMenu){this._settingsMenu=new u({commands:this._commands,rank:999,renderer:i.MenuSvg.defaultRenderer})}return this._settingsMenu}get viewMenu(){if(!this._viewMenu){this._viewMenu=new m({commands:this._commands,rank:3,renderer:i.MenuSvg.defaultRenderer})}return this._viewMenu}get tabsMenu(){if(!this._tabsMenu){this._tabsMenu=new p({commands:this._commands,rank:500,renderer:i.MenuSvg.defaultRenderer})}return this._tabsMenu}addMenu(e,t=true,n={}){if(s.ArrayExt.firstIndexOf(this.menus,e)>-1){return}i.MenuSvg.overrideDefaultRenderer(e);const o="rank"in n?n.rank:"rank"in e?e.rank:i.IRankedMenu.DEFAULT_RANK;const r={menu:e,rank:o};const g=s.ArrayExt.upperBound(this._items,r,f.itemCmp);e.disposed.connect(this._onMenuDisposed,this);s.ArrayExt.insert(this._items,g,r);this.insertMenu(g,e);switch(e.id){case"jp-mainmenu-file":if(!this._fileMenu&&e instanceof l){this._fileMenu=e}break;case"jp-mainmenu-edit":if(!this._editMenu&&e instanceof a){this._editMenu=e}break;case"jp-mainmenu-view":if(!this._viewMenu&&e instanceof m){this._viewMenu=e}break;case"jp-mainmenu-run":if(!this._runMenu&&e instanceof h){this._runMenu=e}break;case"jp-mainmenu-kernel":if(!this._kernelMenu&&e instanceof c){this._kernelMenu=e}break;case"jp-mainmenu-tabs":if(!this._tabsMenu&&e instanceof p){this._tabsMenu=e}break;case"jp-mainmenu-settings":if(!this._settingsMenu&&e instanceof u){this._settingsMenu=e}break;case"jp-mainmenu-help":if(!this._helpMenu&&e instanceof d){this._helpMenu=e}break}}dispose(){var e,t,n,i,s,o,r,a;(e=this._editMenu)===null||e===void 0?void 0:e.dispose();(t=this._fileMenu)===null||t===void 0?void 0:t.dispose();(n=this._helpMenu)===null||n===void 0?void 0:n.dispose();(i=this._kernelMenu)===null||i===void 0?void 0:i.dispose();(s=this._runMenu)===null||s===void 0?void 0:s.dispose();(o=this._settingsMenu)===null||o===void 0?void 0:o.dispose();(r=this._viewMenu)===null||r===void 0?void 0:r.dispose();(a=this._tabsMenu)===null||a===void 0?void 0:a.dispose();super.dispose()}static generateMenu(e,t,n){let s;const{id:o,label:r,rank:g}=t;switch(o){case"jp-mainmenu-file":s=new l({commands:e,rank:g,renderer:i.MenuSvg.defaultRenderer});break;case"jp-mainmenu-edit":s=new a({commands:e,rank:g,renderer:i.MenuSvg.defaultRenderer});break;case"jp-mainmenu-view":s=new m({commands:e,rank:g,renderer:i.MenuSvg.defaultRenderer});break;case"jp-mainmenu-run":s=new h({commands:e,rank:g,renderer:i.MenuSvg.defaultRenderer});break;case"jp-mainmenu-kernel":s=new c({commands:e,rank:g,renderer:i.MenuSvg.defaultRenderer});break;case"jp-mainmenu-tabs":s=new p({commands:e,rank:g,renderer:i.MenuSvg.defaultRenderer});break;case"jp-mainmenu-settings":s=new u({commands:e,rank:g,renderer:i.MenuSvg.defaultRenderer});break;case"jp-mainmenu-help":s=new d({commands:e,rank:g,renderer:i.MenuSvg.defaultRenderer});break;default:s=new i.RankedMenu({commands:e,rank:g,renderer:i.MenuSvg.defaultRenderer})}if(r){s.title.label=n._p("menu",r)}return s}_onMenuDisposed(e){this.removeMenu(e);const t=s.ArrayExt.findFirstIndex(this._items,(t=>t.menu===e));if(t!==-1){s.ArrayExt.removeAt(this._items,t)}}}var f;(function(e){function t(e,t){return e.rank-t.rank}e.itemCmp=t})(f||(f={}));var v=n(5596);const _=new v.Token("@jupyterlab/mainmenu:IMainMenu",`A service for the main menu bar for the application.\n Use this if you want to add your own menu items or provide implementations for standardized menu items for specific activities.`)},74518:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(79536)},32824:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>x});var i=n(74574);var s=n.n(i);var o=n(10759);var r=n.n(o);var a=n(20501);var l=n.n(a);var d=n(34596);var c=n.n(d);var h=n(23635);var u=n.n(h);var p=n(95811);var m=n.n(p);var g=n(17321);var f=n.n(g);var v=n(6958);var _=n.n(v);var b;(function(e){e.markdownPreview="markdownviewer:open";e.markdownEditor="markdownviewer:edit"})(b||(b={}));const y="Markdown Preview";const w={activate:C,id:"@jupyterlab/markdownviewer-extension:plugin",description:"Adds markdown file viewer and provides its tracker.",provides:d.IMarkdownViewerTracker,requires:[h.IRenderMimeRegistry,v.ITranslator],optional:[i.ILayoutRestorer,p.ISettingRegistry,g.ITableOfContentsRegistry],autoStart:true};function C(e,t,n,i,s,r){const l=n.load("jupyterlab");const{commands:c,docRegistry:u}=e;t.addFactory(h.markdownRendererFactory);const p="markdownviewer-widget";const m=new o.WidgetTracker({namespace:p});let g={...d.MarkdownViewer.defaultConfig};function f(e){Object.keys(g).forEach((t=>{var n;e.setOption(t,(n=g[t])!==null&&n!==void 0?n:null)}))}if(s){const e=e=>{g=e.composite;m.forEach((e=>{f(e.content)}))};s.load(w.id).then((t=>{t.changed.connect((()=>{e(t)}));e(t)})).catch((e=>{console.error(e.message)}))}const v=new d.MarkdownViewerFactory({rendermime:t,name:y,label:l.__("Markdown Preview"),primaryFileType:u.getFileType("markdown"),fileTypes:["markdown"],defaultRendered:["markdown"]});v.widgetCreated.connect(((e,t)=>{t.context.pathChanged.connect((()=>{void m.save(t)}));f(t.content);void m.add(t)}));u.addWidgetFactory(v);if(i){void i.restore(m,{command:"docmanager:open",args:e=>({path:e.context.path,factory:y}),name:e=>e.context.path})}c.addCommand(b.markdownPreview,{label:l.__("Markdown Preview"),execute:e=>{const t=e["path"];if(typeof t!=="string"){return}return c.execute("docmanager:open",{path:t,factory:y,options:e["options"]})}});c.addCommand(b.markdownEditor,{execute:()=>{const e=m.currentWidget;if(!e){return}const t=e.context.path;return c.execute("docmanager:open",{path:t,factory:"Editor",options:{mode:"split-right"}})},isVisible:()=>{const e=m.currentWidget;return e&&a.PathExt.extname(e.context.path)===".md"||false},label:l.__("Show Markdown Editor")});if(r){r.add(new d.MarkdownViewerTableOfContentsFactory(m,t.markdownParser))}return m}const x=w},52109:(e,t,n)=>{"use strict";var i=n(79536);var s=n(98896);var o=n(90516);var r=n(99434);var a=n(32902);var l=n(94683);var d=n(93379);var c=n.n(d);var h=n(7795);var u=n.n(h);var p=n(90569);var m=n.n(p);var g=n(3565);var f=n.n(g);var v=n(19216);var _=n.n(v);var b=n(44589);var y=n.n(b);var w=n(36964);var C={};C.styleTagTransform=y();C.setAttributes=f();C.insert=m().bind(null,"head");C.domAPI=u();C.insertStyleElement=_();var x=c()(w.Z,C);const S=w.Z&&w.Z.locals?w.Z.locals:undefined},74459:(e,t,n)=>{"use strict";n.r(t);n.d(t,{IMarkdownViewerTracker:()=>a,MarkdownDocument:()=>_,MarkdownViewer:()=>v,MarkdownViewerFactory:()=>b,MarkdownViewerTableOfContentsFactory:()=>o,MarkdownViewerTableOfContentsModel:()=>s});var i=n(17321);class s extends i.TableOfContentsModel{constructor(e,t,n){super(e,n);this.parser=t}get documentType(){return"markdown-viewer"}get isAlwaysActive(){return true}get supportedOptions(){return["maximalDepth","numberingH1","numberHeaders"]}getHeadings(){const e=this.widget.context.model.toString();const t=i.TableOfContentsUtils.filterHeadings(i.TableOfContentsUtils.Markdown.getHeadings(e),{...this.configuration,baseNumbering:1});return Promise.resolve(t)}}class o extends i.TableOfContentsFactory{constructor(e,t){super(e);this.parser=t}_createNew(e,t){const n=new s(e,this.parser,t);let o=new WeakMap;const r=(t,n)=>{if(n){const t=o.get(n);if(t){const n=e.content.node.getBoundingClientRect();const i=t.getBoundingClientRect();if(i.top>n.bottom||i.bottom{if(!this.parser){return}i.TableOfContentsUtils.clearNumbering(e.content.node);o=new WeakMap;n.headings.forEach((async t=>{var n;const s=await i.TableOfContentsUtils.Markdown.getHeadingId(this.parser,t.raw,t.level);if(!s){return}const r=`h${t.level}[id="${s}"]`;o.set(t,i.TableOfContentsUtils.addPrefix(e.content.node,r,(n=t.prefix)!==null&&n!==void 0?n:""))}))};void e.content.ready.then((()=>{a();e.content.rendered.connect(a);n.activeHeadingChanged.connect(r);n.headingsChanged.connect(a);e.disposed.connect((()=>{e.content.rendered.disconnect(a);n.activeHeadingChanged.disconnect(r);n.headingsChanged.disconnect(a)}))}));return n}}var r=n(5596);const a=new r.Token("@jupyterlab/markdownviewer:IMarkdownViewerTracker",`A widget tracker for markdown\n document viewers. Use this if you want to iterate over and interact with rendered markdown documents.`);var l=n(10759);var d=n(20501);var c=n(12542);var h=n(23635);var u=n(6958);var p=n(71372);var m=n(85448);const g="jp-MarkdownViewer";const f="text/markdown";class v extends m.Widget{constructor(e){super();this._config={...v.defaultConfig};this._fragment="";this._ready=new r.PromiseDelegate;this._isRendering=false;this._renderRequested=false;this._rendered=new p.Signal(this);this.context=e.context;this.translator=e.translator||u.nullTranslator;this._trans=this.translator.load("jupyterlab");this.renderer=e.renderer;this.node.tabIndex=0;this.addClass(g);const t=this.layout=new m.StackedLayout;t.addWidget(this.renderer);void this.context.ready.then((async()=>{await this._render();this._monitor=new d.ActivityMonitor({signal:this.context.model.contentChanged,timeout:this._config.renderTimeout});this._monitor.activityStopped.connect(this.update,this);this._ready.resolve(undefined)}))}get ready(){return this._ready.promise}get rendered(){return this._rendered}setFragment(e){this._fragment=e;this.update()}setOption(e,t){if(this._config[e]===t){return}this._config[e]=t;const{style:n}=this.renderer.node;switch(e){case"fontFamily":n.setProperty("font-family",t);break;case"fontSize":n.setProperty("font-size",t?t+"px":null);break;case"hideFrontMatter":this.update();break;case"lineHeight":n.setProperty("line-height",t?t.toString():null);break;case"lineWidth":{const e=t?`calc(50% - ${t/2}ch)`:null;n.setProperty("padding-left",e);n.setProperty("padding-right",e);break}case"renderTimeout":if(this._monitor){this._monitor.timeout=t}break;default:break}}dispose(){if(this.isDisposed){return}if(this._monitor){this._monitor.dispose()}this._monitor=null;super.dispose()}onUpdateRequest(e){if(this.context.isReady&&!this.isDisposed){void this._render();this._fragment=""}}onActivateRequest(e){this.node.focus()}async _render(){if(this.isDisposed){return}if(this._isRendering){this._renderRequested=true;return}this._renderRequested=false;const{context:e}=this;const{model:t}=e;const n=t.toString();const i={};i[f]=this._config.hideFrontMatter?y.removeFrontMatter(n):n;const s=new h.MimeModel({data:i,metadata:{fragment:this._fragment}});try{this._isRendering=true;await this.renderer.renderModel(s);this._isRendering=false;if(this._renderRequested){return this._render()}else{this._rendered.emit()}}catch(o){requestAnimationFrame((()=>{this.dispose()}));void(0,l.showErrorMessage)(this._trans.__("Renderer Failure: %1",e.path),o)}}}(function(e){e.defaultConfig={fontFamily:null,fontSize:null,lineHeight:null,lineWidth:null,hideFrontMatter:true,renderTimeout:1e3}})(v||(v={}));class _ extends c.DocumentWidget{setFragment(e){this.content.setFragment(e)}}class b extends c.ABCWidgetFactory{constructor(e){super(y.createRegistryOptions(e));this._fileType=e.primaryFileType;this._rendermime=e.rendermime}createNewWidget(e){var t,n,i,s,o;const r=this._rendermime.clone({resolver:e.urlResolver});const a=r.createRenderer(f);const l=new v({context:e,renderer:a});l.title.icon=(t=this._fileType)===null||t===void 0?void 0:t.icon;l.title.iconClass=(i=(n=this._fileType)===null||n===void 0?void 0:n.iconClass)!==null&&i!==void 0?i:"";l.title.iconLabel=(o=(s=this._fileType)===null||s===void 0?void 0:s.iconLabel)!==null&&o!==void 0?o:"";l.title.caption=this.label;const d=new _({content:l,context:e});return d}}var y;(function(e){function t(e){return{...e,readOnly:true}}e.createRegistryOptions=t;function n(e){const t=/^---\n[^]*?\n(---|...)\n/;const n=e.match(t);if(!n){return e}const{length:i}=n[0];return e.slice(i)}e.removeFrontMatter=n})(y||(y={}))},5999:(e,t,n)=>{"use strict";n.r(t);n.d(t,{createMarkdownParser:()=>d,default:()=>h});var i=n(22511);var s=n.n(i);var o=n(23635);var r=n.n(o);var a=n(96953);var l=n.n(a);function d(e){u.initializeMarked(e);return{render:e=>new Promise(((t,n)=>{(0,a.marked)(e,((e,i)=>{if(e){n(e)}else{t(i)}}))}))}}const c={id:"@jupyterlab/markedparser-extension:plugin",description:"Provides the Markdown parser.",autoStart:true,provides:o.IMarkdownParser,requires:[i.IEditorLanguageRegistry],activate:(e,t)=>d(t)};const h=c;var u;(function(e){let t=false;function n(e){if(t){return}else{t=true}a.marked.setOptions({gfm:true,sanitize:false,langPrefix:`language-`,highlight:(t,n,i)=>{const s=(e,t)=>{if(i){i(e,t)}return t};if(!n){return s(null,t)}const o=document.createElement("div");try{e.highlight(t,e.findBest(n),o).then((()=>s(null,o.innerHTML))).catch((e=>s(e,t)))}catch(r){console.error(`Failed to highlight ${n} code`,r);return s(r,t)}}})}e.initializeMarked=n})(u||(u={}))},96986:(e,t,n)=>{"use strict";var i=n(98896);var s=n(90516);var o=n(37935)},85792:(e,t,n)=>{"use strict";n.r(t);n.d(t,{MathJaxTypesetter:()=>l,default:()=>c});var i=n(5596);var s=n.n(i);var o=n(23635);var r=n.n(o);var a;(function(e){e.copy="mathjax:clipboard";e.scale="mathjax:scale"})(a||(a={}));class l{constructor(){this._initialized=false}async _ensureInitialized(){if(!this._initialized){this._mathDocument=await h.ensureMathDocument();this._initialized=true}}async mathDocument(){await this._ensureInitialized();return this._mathDocument}async typeset(e){try{await this._ensureInitialized()}catch(t){console.error(t);return}this._mathDocument.options.elements=[e];this._mathDocument.clear().render();delete this._mathDocument.options.elements}}const d={id:"@jupyterlab/mathjax-extension:plugin",description:"Provides the LaTeX mathematical expression interpreter.",provides:o.ILatexTypesetter,activate:e=>{const t=new l;e.commands.addCommand(a.copy,{execute:async()=>{const e=await t.mathDocument();const n=e.outputJax;await navigator.clipboard.writeText(n.math.math)},label:"MathJax Copy Latex"});e.commands.addCommand(a.scale,{execute:async e=>{const n=await t.mathDocument();const i=e["scale"]||1;n.outputJax.options.scale=i;n.rerender()},label:e=>"Mathjax Scale "+(e["scale"]?`x${e["scale"]}`:"Reset")});return t},autoStart:true};const c=d;var h;(function(e){let t=null;async function s(){if(!t){t=new i.PromiseDelegate;void Promise.all([n.e(3871),n.e(6686),n.e(5746)]).then(n.t.bind(n,5746,23));const[{mathjax:e},{CHTML:s},{TeX:o},{TeXFont:r},{AllPackages:a},{SafeHandler:l},{HTMLHandler:d},{browserAdaptor:c},{AssistiveMmlHandler:h}]=await Promise.all([n.e(786).then(n.bind(n,90786)),Promise.all([n.e(3871),n.e(2953),n.e(9230),n.e(7508)]).then(n.t.bind(n,37508,23)),Promise.all([n.e(3871),n.e(6686),n.e(7775),n.e(6560)]).then(n.t.bind(n,36560,23)),Promise.all([n.e(9230),n.e(6059)]).then(n.t.bind(n,59230,23)),Promise.all([n.e(3871),n.e(6686),n.e(7775),n.e(9826)]).then(n.bind(n,89826)),n.e(3724).then(n.t.bind(n,63724,23)),Promise.all([n.e(3871),n.e(2953),n.e(1448),n.e(8512)]).then(n.t.bind(n,18512,23)),n.e(3520).then(n.bind(n,53520)),Promise.all([n.e(3871),n.e(2953),n.e(1448),n.e(8678)]).then(n.t.bind(n,8678,23))]);e.handlers.register(h(l(new d(c()))));class u extends r{}u.defaultFonts={};const p=new s({font:new u});const m=new o({packages:a.concat("require"),inlineMath:[["$","$"],["\\(","\\)"]],displayMath:[["$$","$$"],["\\[","\\]"]],processEscapes:true,processEnvironments:true});const g=e.document(window.document,{InputJax:m,OutputJax:p});t.resolve(g)}return t.promise}e.ensureMathDocument=s})(h||(h={}))},63008:(e,t,n)=>{"use strict";var i=n(98896);var s=n(90516);var o=n(93379);var r=n.n(o);var a=n(7795);var l=n.n(a);var d=n(90569);var c=n.n(d);var h=n(3565);var u=n.n(h);var p=n(19216);var m=n.n(p);var g=n(44589);var f=n.n(g);var v=n(48683);var _={};_.styleTagTransform=f();_.setAttributes=u();_.insert=c().bind(null,"head");_.domAPI=l();_.insertStyleElement=m();var b=r()(v.Z,_);const y=v.Z&&v.Z.locals?v.Z.locals:undefined},3873:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>_});var i=n(54729);var s=n.n(i);var o=n(95811);var r=n.n(o);var a=n(6958);var l=n.n(a);var d=n(4148);var c=n.n(d);var h=n(5596);var u=n.n(h);var p=n(1444);var m=n.n(p);const g="@jupyterlab/metadataform-extension:metadataforms";var f;(function(e){async function t(e,t,n,i,s){var o;let r;let a={};function l(e){a={};e.properties.metadataforms.default=Object.keys(t.plugins).map((e=>{var n;const i=(n=t.plugins[e].schema["jupyter.lab.metadataforms"])!==null&&n!==void 0?n:[];i.forEach((t=>{t._origin=e}));a[e]=i;return i})).concat([e["jupyter.lab.metadataforms"]]).reduce(((e,t)=>{t.forEach((t=>{const n=e.find((e=>e.id===t.id));if(n){for(let[e,i]of Object.entries(t.metadataSchema.properties)){n.metadataSchema.properties[e]=i}if(t.metadataSchema.required){if(!n.metadataSchema.required){n.metadataSchema.required=t.metadataSchema.required}else{n.metadataSchema.required.concat(t.metadataSchema.required)}}if(t.metadataSchema.allOf){if(!n.metadataSchema.allOf){n.metadataSchema.allOf=t.metadataSchema.allOf}else{n.metadataSchema.allOf.concat(t.metadataSchema.allOf)}}if(t.uiSchema){if(!n.uiSchema)n.uiSchema={};for(let[e,i]of Object.entries(t.uiSchema)){n.uiSchema[e]=i}}if(t.metadataOptions){if(!n.metadataOptions)n.metadataOptions={};for(let[e,i]of Object.entries(t.metadataOptions)){n.metadataOptions[e]=i}}}else{e.push(t)}}));return e}),[])}t.transform(g,{compose:e=>{var t,n,i,s;if(!r){r=h.JSONExt.deepCopy(e.schema);l(r)}const o=(i=(n=(t=r.properties)===null||t===void 0?void 0:t.metadataforms)===null||n===void 0?void 0:n.default)!==null&&i!==void 0?i:[];const a={metadataforms:(s=e.data.user.metadataforms)!==null&&s!==void 0?s:[]};const d={metadataforms:o.concat(a.metadataforms)};e.data={composite:d,user:a};return e},fetch:e=>{if(!r){r=h.JSONExt.deepCopy(e.schema);l(r)}return{data:e.data,id:e.id,raw:e.raw,schema:r,version:e.version}}});r=null;const d=await t.load(g);const c=new p.MetadataFormProvider;for(let u of d.composite.metadataforms){let e={};let t=h.JSONExt.deepCopy(u.metadataSchema);let r={};if(u.uiSchema){r=h.JSONExt.deepCopy(u.uiSchema)}for(let[n,i]of Object.entries(t.properties)){if(i.default){if(!e[n])e[n]={};e[n].default=i.default}}if(u.metadataOptions){for(let[t,n]of Object.entries(u.metadataOptions)){if(n.cellTypes){if(!e[t])e[t]={};e[t].cellTypes=n.cellTypes}if(n.metadataLevel){if(!e[t])e[t]={};e[t].level=n.metadataLevel}if(n.writeDefault!==undefined){if(!e[t])e[t]={};e[t].writeDefault=n.writeDefault}if(n.customRenderer){const e=s.getRenderer(n.customRenderer);if(e!==undefined){if(!r[t])r[t]={};if(e.fieldRenderer){r[t]["ui:field"]=e.fieldRenderer}else{r[t]["ui:widget"]=e.widgetRenderer}}}}}n.addSection({sectionName:u.id,rank:u.rank,label:(o=u.label)!==null&&o!==void 0?o:u.id});const a=new p.MetadataFormWidget({metadataSchema:t,metaInformation:e,uiSchema:r,pluginId:u._origin,translator:i,showModified:u.showModified});n.addItem({section:u.id,tool:a});c.add(u.id,a)}return c}e.loadSettingsMetadataForm=t})(f||(f={}));const v={id:g,description:"Provides the metadata form registry.",autoStart:true,requires:[i.INotebookTools,a.ITranslator,d.IFormRendererRegistry,o.ISettingRegistry],provides:p.IMetadataFormProvider,activate:async(e,t,n,i,s)=>await f.loadSettingsMetadataForm(e,s,t,n,i)};const _=v},39721:(e,t,n)=>{"use strict";var i=n(34849);var s=n(90516);var o=n(88164);var r=n(66458)},82996:(e,t,n)=>{"use strict";n.r(t);n.d(t,{FormWidget:()=>d,IMetadataFormProvider:()=>_,MetadataFormProvider:()=>v,MetadataFormWidget:()=>g});var i=n(10759);var s=n(4148);var o=n(13802);var r=n.n(o);var a=n(28416);var l=n.n(a);class d extends i.ReactWidget{constructor(e){super();this.addClass("jp-FormWidget");this._props=e}render(){const e={defaultFormData:this._props.settings.default(),updateMetadata:this._props.metadataFormWidget.updateMetadata};return l().createElement(s.FormComponent,{validator:r(),schema:this._props.properties,formData:this._props.formData,formContext:e,uiSchema:this._props.uiSchema,liveValidate:true,idPrefix:`jp-MetadataForm-${this._props.pluginId}`,onChange:e=>{this._props.metadataFormWidget.updateMetadata(e.formData||{})},compact:true,showModifiedFromDefault:this._props.showModified,translator:this._props.translator})}}var c=n(54729);var h=n(95811);var u=n(6958);var p=n(5596);var m=n(85448);class g extends c.NotebookTools.Tool{constructor(e){super();this.updateMetadata=(e,t)=>{var n,i,s,o,r,a,l,d;if(this.notebookTools==undefined)return;const c=this.notebookTools.activeNotebookPanel;const h=this.notebookTools.activeCell;if(h==null)return;this._updatingMetadata=true;const u={};const p={};for(let[m,g]of Object.entries(e)){if(!this.metadataKeys.includes(m))continue;if(((n=this._metaInformation[m])===null||n===void 0?void 0:n.level)==="notebook"&&this._notebookModelNull)continue;if(((i=this._metaInformation[m])===null||i===void 0?void 0:i.cellTypes)&&!((o=(s=this._metaInformation[m])===null||s===void 0?void 0:s.cellTypes)===null||o===void 0?void 0:o.includes(h.model.type))){continue}let e;let t;if(((r=this._metaInformation[m])===null||r===void 0?void 0:r.level)==="notebook"){e=c.model.metadata;t=p}else{e=h.model.metadata;t=u}let v=m.replace(/^\/+/,"").replace(/\/+$/,"").split("/");let _=v[0];if(_==undefined)continue;let b=g!==undefined&&(((l=(a=this._metaInformation[m])===null||a===void 0?void 0:a.writeDefault)!==null&&l!==void 0?l:true)||g!==((d=this._metaInformation[m])===null||d===void 0?void 0:d.default));if(v.length==1){if(b)t[_]=g;else t[_]=undefined;continue}let y=v.slice(1,-1);let w=v[v.length-1];if(!(_ in t)){t[_]=e[_]}if(t[_]===undefined)t[_]={};let C=t[_];let x=true;for(let n of y){if(!(n in C)){if(!b){x=false;break}else C[n]={}}C=C[n]}if(x){if(!b)delete C[w];else C[w]=g}if(!b){t[_]=f.deleteEmptyNested(t[_],v.slice(1));if(!Object.keys(t[_]).length)t[_]=undefined}}for(let[m,g]of Object.entries(u)){if(g===undefined)h.model.deleteMetadata(m);else h.model.setMetadata(m,g)}if(!this._notebookModelNull){for(let[e,t]of Object.entries(p)){if(t===undefined)c.model.deleteMetadata(e);else c.model.setMetadata(e,t)}}this._updatingMetadata=false;if(t){this._update()}};this._notebookModelNull=false;this._metadataSchema=e.metadataSchema;this._metaInformation=e.metaInformation;this._uiSchema=e.uiSchema||{};this._pluginId=e.pluginId;this._showModified=e.showModified||false;this.translator=e.translator||u.nullTranslator;this._trans=this.translator.load("jupyterlab");this._updatingMetadata=false;const t=this.layout=new m.SingletonLayout;const n=document.createElement("div");const i=document.createElement("div");i.textContent=this._trans.__("No metadata.");i.className="jp-MetadataForm-placeholderContent";n.appendChild(i);this._placeholder=new m.Widget({node:n});this._placeholder.addClass("jp-MetadataForm-placeholder");t.widget=this._placeholder}get form(){return this._form}get metadataKeys(){var e;const t=[];for(let n of Object.keys(this._metadataSchema.properties)){t.push(n)}(e=this._metadataSchema.allOf)===null||e===void 0?void 0:e.forEach((e=>{if(e.then!==undefined){if(e.then.properties!==undefined){let n=e.then.properties;for(let e of Object.keys(n)){if(!t.includes(e))t.push(e)}}}if(e.else!==undefined){if(e.else.properties!==undefined){let n=e.else.properties;for(let e of Object.keys(n)){if(!t.includes(e))t.push(e)}}}}));return t}getProperties(e){return p.JSONExt.deepCopy(this._metadataSchema.properties[e])||null}setProperties(e,t){Object.entries(t).forEach((([t,n])=>{this._metadataSchema.properties[e][t]=n}))}setContent(e){const t=this.layout;if(t.widget){t.widget.removeClass("jp-MetadataForm-content");t.removeWidget(t.widget)}if(!e){e=this._placeholder}e.addClass("jp-MetadataForm-content");t.widget=e}buildWidget(e){this._form=new d(e);this._form.addClass("jp-MetadataForm");this.setContent(this._form)}onAfterShow(e){this._update()}onActiveCellChanged(e){if(this.isVisible)this._update()}onActiveCellMetadataChanged(e){if(!this._updatingMetadata&&this.isVisible)this._update()}onActiveNotebookPanelChanged(e){const t=this.notebookTools.activeNotebookPanel;this._notebookModelNull=t===null||t.model===null;if(!this._updatingMetadata&&this.isVisible)this._update()}onActiveNotebookPanelMetadataChanged(e){if(!this._updatingMetadata&&this.isVisible)this._update()}_update(){var e,t,n,i,s;const o=this.notebookTools.activeNotebookPanel;const r=this.notebookTools.activeCell;if(r==undefined)return;const a=p.JSONExt.deepCopy(this._metadataSchema);const l={};for(let d of Object.keys(this._metadataSchema.properties||p.JSONExt.emptyObject)){if(((e=this._metaInformation[d])===null||e===void 0?void 0:e.level)==="notebook"&&this._notebookModelNull){delete a.properties[d];continue}if(((t=this._metaInformation[d])===null||t===void 0?void 0:t.cellTypes)&&!((i=(n=this._metaInformation[d])===null||n===void 0?void 0:n.cellTypes)===null||i===void 0?void 0:i.includes(r.model.type))){delete a.properties[d];continue}let c;let h=d.replace(/^\/+/,"").replace(/\/+$/,"").split("/");if(((s=this._metaInformation[d])===null||s===void 0?void 0:s.level)==="notebook"){c=o.model.metadata}else{c=r.model.metadata}let u=true;for(let e of h){if(e in c)c=c[e];else{u=false;break}}if(u)l[d]=c}this.buildWidget({properties:a,settings:new h.BaseSettings({schema:this._metadataSchema}),uiSchema:this._uiSchema,translator:this.translator||null,formData:l,metadataFormWidget:this,showModified:this._showModified,pluginId:this._pluginId})}}var f;(function(e){function t(e,n){let i=n.shift();if(i!==undefined&&i in e){if(Object.keys(e[i]).length)e[i]=t(e[i],n);if(!Object.keys(e[i]).length)delete e[i]}return e}e.deleteEmptyNested=t})(f||(f={}));class v{constructor(){this._items={}}add(e,t){if(!this._items[e]){this._items[e]=t}else{console.warn(`A MetadataformWidget is already registered with id ${e}`)}}get(e){if(this._items[e]){return this._items[e]}else{console.warn(`There is no MetadataformWidget registered with id ${e}`)}}}const _=new p.Token("@jupyterlab/metadataform:IMetadataFormProvider",`A service to register new metadata editor widgets.`)},66458:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(79536);var r=n(88164);var a=n(93379);var l=n.n(a);var d=n(7795);var c=n.n(d);var h=n(90569);var u=n.n(h);var p=n(3565);var m=n.n(p);var g=n(19216);var f=n.n(g);var v=n(44589);var _=n.n(v);var b=n(71741);var y={};y.styleTagTransform=_();y.setAttributes=m();y.insert=u().bind(null,"head");y.domAPI=c();y.insertStyleElement=f();var w=l()(b.Z,y);const C=b.Z&&b.Z.locals?b.Z.locals:undefined},42302:(e,t,n)=>{"use strict";n.r(t);n.d(t,{MAJOR_VERSION:()=>o,MINOR_VERSION:()=>r,isCode:()=>c,isDisplayData:()=>u,isDisplayUpdate:()=>p,isError:()=>g,isExecuteResult:()=>h,isMarkdown:()=>d,isRaw:()=>l,isStream:()=>m,validateMimeValue:()=>a});var i=n(5596);var s=n.n(i);const o=4;const r=4;function a(e,t){const n=/^application\/.+\+json$/;const s=e==="application/json"||n.test(e);const o=e=>Object.prototype.toString.call(e)==="[object String]";if(Array.isArray(t)){if(s){return false}let e=true;t.forEach((t=>{if(!o(t)){e=false}}));return e}if(o(t)){return!s}if(!s){return false}return i.JSONExt.isObject(t)}function l(e){return e.cell_type==="raw"}function d(e){return e.cell_type==="markdown"}function c(e){return e.cell_type==="code"}function h(e){return e.output_type==="execute_result"}function u(e){return e.output_type==="display_data"}function p(e){return e.output_type==="update_display_data"}function m(e){return e.output_type==="stream"}function g(e){return e.output_type==="error"}},38091:(e,t,n)=>{"use strict";n.r(t);n.d(t,{commandEditItem:()=>ne,default:()=>ye,executionIndicator:()=>ie,exportPlugin:()=>se,notebookTrustItem:()=>oe});var i=n(74574);var s=n(10759);var o=n(28698);var r=n(7005);var a=n(20501);var l=n(22511);var d=n(62638);var c=n(25504);var h=n(40481);var u=n(20433);var p=n(19804);var m=n(97095);var g=n(50253);var f=n(66899);var v=n(1444);var _=n(54729);var b=n(87645);var y=n(23635);var w=n(95811);var C=n(22971);var x=n(85176);var S=n(17321);var k=n(6958);var j=n(4148);var M=n(58740);var E=n(5596);var I=n(26512);var T=n(28821);var D=n(85448);var L=n(87294);var P=n(96306);const A={activate:R,id:"@jupyterlab/notebook-extension:log-output",description:"Adds cell outputs log to the application logger.",requires:[_.INotebookTracker],optional:[L.ILoggerRegistry],autoStart:true};function R(e,t,n){if(!n){return}function i(e){function t(t,i,s){if(P.KernelMessage.isDisplayDataMsg(t)||P.KernelMessage.isStreamMsg(t)||P.KernelMessage.isErrorMsg(t)||P.KernelMessage.isExecuteResultMsg(t)){const o=n.getLogger(e.context.path);o.rendermime=e.content.rendermime;const r={...t.content,output_type:t.header.msg_type};let a=i;if(P.KernelMessage.isErrorMsg(t)||P.KernelMessage.isStreamMsg(t)&&t.content.name==="stderr"){a=s}o.log({type:"output",data:r,level:a})}}e.context.sessionContext.iopubMessage.connect(((e,n)=>t(n,"info","info")));e.context.sessionContext.unhandledMessage.connect(((e,n)=>t(n,"warning","error")))}t.forEach((e=>i(e)));t.widgetAdded.connect(((e,t)=>i(t)))}var N=n(28416);var O=n.n(N);var B=n(95905);const F="jp-ActiveCellTool";const z="jp-ActiveCellTool-Content";const H="jp-ActiveCellTool-CellContent";class W extends _.NotebookTools.Tool{constructor(e){super();const{languages:t}=e;this._tracker=e.tracker;this.addClass(F);this.layout=new D.PanelLayout;this._inputPrompt=new o.InputPrompt;this.layout.addWidget(this._inputPrompt);const n=document.createElement("div");n.classList.add(z);const i=n.appendChild(document.createElement("div"));const s=i.appendChild(document.createElement("pre"));i.className=H;this._editorEl=s;this.layout.addWidget(new D.Widget({node:n}));const r=async()=>{var e,n;this._editorEl.innerHTML="";if(((e=this._cellModel)===null||e===void 0?void 0:e.type)==="code"){this._inputPrompt.executionCount=`${(n=this._cellModel.executionCount)!==null&&n!==void 0?n:""}`;this._inputPrompt.show()}else{this._inputPrompt.executionCount=null;this._inputPrompt.hide()}if(this._cellModel){await t.highlight(this._cellModel.sharedModel.getSource().split("\n")[0],t.findByMIME(this._cellModel.mimeType),this._editorEl)}};this._refreshDebouncer=new B.Debouncer(r,150)}render(e){var t,n;const i=this._tracker.activeCell;if(i)this._cellModel=(i===null||i===void 0?void 0:i.model)||null;((t=this._cellModel)===null||t===void 0?void 0:t.sharedModel).changed.connect(this.refresh,this);(n=this._cellModel)===null||n===void 0?void 0:n.mimeTypeChanged.connect(this.refresh,this);this.refresh().then((()=>undefined)).catch((()=>undefined));return O().createElement("div",{ref:e=>e===null||e===void 0?void 0:e.appendChild(this.node)})}async refresh(){await this._refreshDebouncer.invoke()}}var V=n(20631);const U="jp-CellMetadataEditor";const $="jp-NotebookMetadataEditor";class q extends _.NotebookTools.MetadataEditorTool{constructor(e){super(e);this._tracker=e.tracker;this.editor.editorHostNode.addEventListener("blur",this.editor,true);this.editor.editorHostNode.addEventListener("click",this.editor,true);this.editor.headerNode.addEventListener("click",this.editor)}_onSourceChanged(){var e;if(this.editor.source){(e=this._tracker.activeCell)===null||e===void 0?void 0:e.model.sharedModel.setMetadata(this.editor.source.toJSON())}}render(e){var t;const n=this._tracker.activeCell;this.editor.source=n?new V.ObservableJSON({values:n.model.metadata}):null;(t=this.editor.source)===null||t===void 0?void 0:t.changed.connect(this._onSourceChanged,this);return O().createElement("div",{className:U},O().createElement("div",{ref:e=>e===null||e===void 0?void 0:e.appendChild(this.node)}))}}class K extends _.NotebookTools.MetadataEditorTool{constructor(e){super(e);this._tracker=e.tracker;this.editor.editorHostNode.addEventListener("blur",this.editor,true);this.editor.editorHostNode.addEventListener("click",this.editor,true);this.editor.headerNode.addEventListener("click",this.editor)}_onSourceChanged(){var e,t;if(this.editor.source){(t=(e=this._tracker.currentWidget)===null||e===void 0?void 0:e.model)===null||t===void 0?void 0:t.sharedModel.setMetadata(this.editor.source.toJSON())}}render(e){var t,n;const i=this._tracker.currentWidget;this.editor.source=i?new V.ObservableJSON({values:(t=i.model)===null||t===void 0?void 0:t.metadata}):null;(n=this.editor.source)===null||n===void 0?void 0:n.changed.connect(this._onSourceChanged,this);return O().createElement("div",{className:$},O().createElement("div",{ref:e=>e===null||e===void 0?void 0:e.appendChild(this.node)}))}}var J;(function(e){e.createNew="notebook:create-new";e.interrupt="notebook:interrupt-kernel";e.restart="notebook:restart-kernel";e.restartClear="notebook:restart-clear-output";e.restartAndRunToSelected="notebook:restart-and-run-to-selected";e.restartRunAll="notebook:restart-run-all";e.reconnectToKernel="notebook:reconnect-to-kernel";e.changeKernel="notebook:change-kernel";e.getKernel="notebook:get-kernel";e.createConsole="notebook:create-console";e.createOutputView="notebook:create-output-view";e.clearAllOutputs="notebook:clear-all-cell-outputs";e.shutdown="notebook:shutdown-kernel";e.closeAndShutdown="notebook:close-and-shutdown";e.trust="notebook:trust";e.exportToFormat="notebook:export-to-format";e.run="notebook:run-cell";e.runAndAdvance="notebook:run-cell-and-select-next";e.runAndInsert="notebook:run-cell-and-insert-below";e.runInConsole="notebook:run-in-console";e.runAll="notebook:run-all-cells";e.runAllAbove="notebook:run-all-above";e.runAllBelow="notebook:run-all-below";e.renderAllMarkdown="notebook:render-all-markdown";e.toCode="notebook:change-cell-to-code";e.toMarkdown="notebook:change-cell-to-markdown";e.toRaw="notebook:change-cell-to-raw";e.cut="notebook:cut-cell";e.copy="notebook:copy-cell";e.pasteAbove="notebook:paste-cell-above";e.pasteBelow="notebook:paste-cell-below";e.duplicateBelow="notebook:duplicate-below";e.pasteAndReplace="notebook:paste-and-replace-cell";e.moveUp="notebook:move-cell-up";e.moveDown="notebook:move-cell-down";e.clearOutputs="notebook:clear-cell-output";e.deleteCell="notebook:delete-cell";e.insertAbove="notebook:insert-cell-above";e.insertBelow="notebook:insert-cell-below";e.selectAbove="notebook:move-cursor-up";e.selectBelow="notebook:move-cursor-down";e.selectHeadingAboveOrCollapse="notebook:move-cursor-heading-above-or-collapse";e.selectHeadingBelowOrExpand="notebook:move-cursor-heading-below-or-expand";e.insertHeadingAbove="notebook:insert-heading-above";e.insertHeadingBelow="notebook:insert-heading-below";e.extendAbove="notebook:extend-marked-cells-above";e.extendTop="notebook:extend-marked-cells-top";e.extendBelow="notebook:extend-marked-cells-below";e.extendBottom="notebook:extend-marked-cells-bottom";e.selectAll="notebook:select-all";e.deselectAll="notebook:deselect-all";e.editMode="notebook:enter-edit-mode";e.merge="notebook:merge-cells";e.mergeAbove="notebook:merge-cell-above";e.mergeBelow="notebook:merge-cell-below";e.split="notebook:split-cell-at-cursor";e.commandMode="notebook:enter-command-mode";e.toggleAllLines="notebook:toggle-all-cell-line-numbers";e.undoCellAction="notebook:undo-cell-action";e.redoCellAction="notebook:redo-cell-action";e.redo="notebook:redo";e.undo="notebook:undo";e.markdown1="notebook:change-cell-to-heading-1";e.markdown2="notebook:change-cell-to-heading-2";e.markdown3="notebook:change-cell-to-heading-3";e.markdown4="notebook:change-cell-to-heading-4";e.markdown5="notebook:change-cell-to-heading-5";e.markdown6="notebook:change-cell-to-heading-6";e.hideCode="notebook:hide-cell-code";e.showCode="notebook:show-cell-code";e.hideAllCode="notebook:hide-all-cell-code";e.showAllCode="notebook:show-all-cell-code";e.hideOutput="notebook:hide-cell-outputs";e.showOutput="notebook:show-cell-outputs";e.hideAllOutputs="notebook:hide-all-cell-outputs";e.showAllOutputs="notebook:show-all-cell-outputs";e.toggleRenderSideBySideCurrentNotebook="notebook:toggle-render-side-by-side-current";e.setSideBySideRatio="notebook:set-side-by-side-ratio";e.enableOutputScrolling="notebook:enable-output-scrolling";e.disableOutputScrolling="notebook:disable-output-scrolling";e.selectLastRunCell="notebook:select-last-run-cell";e.replaceSelection="notebook:replace-selection";e.autoClosingBrackets="notebook:toggle-autoclosing-brackets";e.toggleCollapseCmd="notebook:toggle-heading-collapse";e.collapseAllCmd="notebook:collapse-all-headings";e.expandAllCmd="notebook:expand-all-headings";e.copyToClipboard="notebook:copy-to-clipboard";e.invokeCompleter="completer:invoke-notebook";e.selectCompleter="completer:select-notebook";e.tocRunCells="toc:run-cells"})(J||(J={}));const Z="Notebook";const G=["notebook","python","custom"];const Y="@jupyterlab/notebook-extension:panel";const X="jp-NotebookExtension-sideBySideMargins";const Q={id:"@jupyterlab/notebook-extension:tracker",description:"Provides the notebook widget tracker.",provides:_.INotebookTracker,requires:[_.INotebookWidgetFactory,l.IEditorExtensionRegistry],optional:[s.ICommandPalette,p.IDefaultFileBrowser,m.ILauncher,i.ILayoutRestorer,f.IMainMenu,i.IRouter,w.ISettingRegistry,s.ISessionContextDialogs,k.ITranslator,j.IFormRendererRegistry],activate:je,autoStart:true};const ee={id:"@jupyterlab/notebook-extension:factory",description:"Provides the notebook cell factory.",provides:_.NotebookPanel.IContentFactory,requires:[r.IEditorServices],autoStart:true,activate:(e,t)=>{const n=t.factoryService.newInlineEditor;return new _.NotebookPanel.ContentFactory({editorFactory:n})}};const te={activate:we,provides:_.INotebookTools,id:"@jupyterlab/notebook-extension:tools",description:"Provides the notebook tools.",autoStart:true,requires:[_.INotebookTracker,r.IEditorServices,l.IEditorLanguageRegistry,C.IStateDB,k.ITranslator],optional:[b.IPropertyInspectorProvider]};const ne={id:"@jupyterlab/notebook-extension:mode-status",description:"Adds a notebook mode status widget.",autoStart:true,requires:[_.INotebookTracker,k.ITranslator],optional:[x.IStatusBar],activate:(e,t,n,i)=>{if(!i){return}const{shell:s}=e;const o=new _.CommandEditStatus(n);t.currentChanged.connect((()=>{const e=t.currentWidget;o.model.notebook=e&&e.content}));i.registerStatusItem("@jupyterlab/notebook-extension:mode-status",{item:o,align:"right",rank:4,isActive:()=>!!s.currentWidget&&!!t.currentWidget&&s.currentWidget===t.currentWidget})}};const ie={id:"@jupyterlab/notebook-extension:execution-indicator",description:"Adds a notebook execution status widget.",autoStart:true,requires:[_.INotebookTracker,i.ILabShell,k.ITranslator],optional:[x.IStatusBar,w.ISettingRegistry],activate:(e,t,n,i,s,o)=>{let r;let a;let l;const d=e=>{var o,d;let{showOnToolBar:c,showProgress:h}=e;if(!c){if(!s){return}if(!(r===null||r===void 0?void 0:r.model)){r=new _.ExecutionIndicator(i);a=(e,n)=>{const{newValue:i}=n;if(i&&t.has(i)){const e=i;r.model.attachNotebook({content:e.content,context:e.sessionContext})}};l=s.registerStatusItem("@jupyterlab/notebook-extension:execution-indicator",{item:r,align:"left",rank:3,isActive:()=>{const e=n.currentWidget;return!!e&&t.has(e)}});r.model.attachNotebook({content:(o=t.currentWidget)===null||o===void 0?void 0:o.content,context:(d=t.currentWidget)===null||d===void 0?void 0:d.sessionContext});n.currentChanged.connect(a);r.disposed.connect((()=>{n.currentChanged.disconnect(a)}))}r.model.displayOption={showOnToolBar:c,showProgress:h}}else{if(l){n.currentChanged.disconnect(a);l.dispose()}}};if(o){const t=o.load(Q.id);Promise.all([t,e.restored]).then((([e])=>{d(_.ExecutionIndicator.getSettingValue(e));e.changed.connect((e=>d(_.ExecutionIndicator.getSettingValue(e))))})).catch((e=>{console.error(e.message)}))}}};const se={id:"@jupyterlab/notebook-extension:export",description:"Adds the export notebook commands.",autoStart:true,requires:[k.ITranslator,_.INotebookTracker],optional:[f.IMainMenu,s.ICommandPalette],activate:(e,t,n,i,s)=>{var o;const r=t.load("jupyterlab");const{commands:l,shell:d}=e;const c=e.serviceManager;const h=()=>Pe.isEnabled(d,n);l.addCommand(J.exportToFormat,{label:e=>{if(e.label===undefined){return r.__("Save and Export Notebook to the given `format`.")}const t=e["label"];return e["isPalette"]?r.__("Save and Export Notebook: %1",t):t},execute:e=>{const t=Ie(n,d,e);if(!t){return}const i=a.PageConfig.getNBConvertURL({format:e["format"],download:true,path:t.context.path});const{context:s}=t;if(s.model.dirty&&!s.model.readOnly){return s.save().then((()=>{window.open(i,"_blank","noopener")}))}return new Promise((e=>{window.open(i,"_blank","noopener");e(undefined)}))},isEnabled:h});let u;if(i){u=(o=i.fileMenu.items.find((e=>{var t;return e.type==="submenu"&&((t=e.submenu)===null||t===void 0?void 0:t.id)==="jp-mainmenu-file-notebookexport"})))===null||o===void 0?void 0:o.submenu}let p=false;const m=async()=>{if(p){return}n.widgetAdded.disconnect(m);p=true;const e=await c.nbconvert.getExportFormats(false);if(!e){return}const i=Pe.getFormatLabels(t);const o=Object.keys(e);o.forEach((function(e){const t=r.__(e[0].toUpperCase()+e.substr(1));const n=i[e]?i[e]:t;let o={format:e,label:n,isPalette:false};if(G.indexOf(e)===-1){if(u){u.addItem({command:J.exportToFormat,args:o})}if(s){o={format:e,label:n,isPalette:true};const t=r.__("Notebook Operations");s.addItem({command:J.exportToFormat,category:t,args:o})}}}))};n.widgetAdded.connect(m)}};const oe={id:"@jupyterlab/notebook-extension:trust-status",description:"Adds the notebook trusted status widget.",autoStart:true,requires:[_.INotebookTracker,k.ITranslator],optional:[x.IStatusBar],activate:(e,t,n,i)=>{if(!i){return}const{shell:s}=e;const o=new _.NotebookTrustStatus(n);t.currentChanged.connect((()=>{const e=t.currentWidget;o.model.notebook=e&&e.content}));i.registerStatusItem("@jupyterlab/notebook-extension:trust-status",{item:o,align:"right",rank:3,isActive:()=>!!s.currentWidget&&!!t.currentWidget&&s.currentWidget===t.currentWidget})}};const re={id:"@jupyterlab/notebook-extension:widget-factory",description:"Provides the notebook widget factory.",provides:_.INotebookWidgetFactory,requires:[_.NotebookPanel.IContentFactory,r.IEditorServices,y.IRenderMimeRegistry,s.IToolbarWidgetRegistry],optional:[w.ISettingRegistry,s.ISessionContextDialogs,k.ITranslator],activate:Ce,autoStart:true};const ae={id:"@jupyterlab/notebook-extension:cloned-outputs",description:"Adds the clone output feature.",requires:[c.IDocumentManager,_.INotebookTracker,k.ITranslator],optional:[i.ILayoutRestorer],activate:xe,autoStart:true};const le={id:"@jupyterlab/notebook-extension:code-console",description:"Adds the notebook code consoles features.",requires:[_.INotebookTracker,k.ITranslator],activate:Se,autoStart:true};const de={id:"@jupyterlab/notebook-extension:copy-output",description:"Adds the copy cell outputs feature.",activate:ke,requires:[k.ITranslator,_.INotebookTracker],autoStart:true};const ce={id:"@jupyterlab/notebook-extension:kernel-status",description:"Adds the notebook kernel status.",activate:(e,t,n)=>{const i=e=>{let n=null;if(e&&t.has(e)){return e.sessionContext}return n};n.addSessionProvider(i)},requires:[_.INotebookTracker,s.IKernelStatusModel],autoStart:true};const he={id:"@jupyterlab/notebook-extension:cursor-position",description:"Adds the notebook cursor position status.",activate:(e,t,n)=>{let i=null;const s=async e=>{let s=null;if(e!==i){i===null||i===void 0?void 0:i.content.activeCellChanged.disconnect(n.update);i=null;if(e&&t.has(e)){e.content.activeCellChanged.connect(n.update);const t=e.content.activeCell;s=null;if(t){await t.ready;s=t.editor}i=e}}else if(e){const t=e.content.activeCell;s=null;if(t){await t.ready;s=t.editor}}return s};n.addEditorProvider(s)},requires:[_.INotebookTracker,r.IPositionModel],autoStart:true};const ue={id:"@jupyterlab/notebook-extension:completer",description:"Adds the code completion capability to notebooks.",requires:[_.INotebookTracker],optional:[d.ICompletionProviderManager,k.ITranslator,s.ISanitizer],activate:Me,autoStart:true};const pe={id:"@jupyterlab/notebook-extension:search",description:"Adds search capability to notebooks.",requires:[u.ISearchProviderRegistry],autoStart:true,activate:(e,t)=>{t.add("jp-notebookSearchProvider",_.NotebookSearchProvider)}};const me={id:"@jupyterlab/notebook-extension:toc",description:"Adds table of content capability to the notebooks",requires:[_.INotebookTracker,S.ITableOfContentsRegistry,s.ISanitizer],optional:[y.IMarkdownParser],autoStart:true,activate:(e,t,n,i,s)=>{n.add(new _.NotebookToCFactory(t,s,i))}};const ge={id:"@jupyterlab/notebook-extension:language-server",description:"Adds language server capability to the notebooks.",requires:[_.INotebookTracker,g.ILSPDocumentConnectionManager,g.ILSPFeatureManager,g.ILSPCodeExtractorsManager],activate:Ee,autoStart:true};const fe={id:"@jupyterlab/notebook-extension:update-raw-mimetype",description:"Adds metadata form editor for raw cell mimetype.",autoStart:true,requires:[_.INotebookTracker,v.IMetadataFormProvider,k.ITranslator],activate:(e,t,n,i)=>{const s=i.load("jupyterlab");let o=false;async function r(){if(o){return}if(!n.get("commonToolsSection")){return}const a=n.get("commonToolsSection").getProperties("/raw_mimetype");if(!a){return}t.widgetAdded.disconnect(r);o=true;const l=e.serviceManager;const d=await l.nbconvert.getExportFormats(false);if(!d){return}const c=Object.keys(d);const h=Pe.getFormatLabels(i);c.forEach((function(e){var t;const n=((t=a.oneOf)===null||t===void 0?void 0:t.filter((t=>t.const===e)).length)>0;if(!n){const t=s.__(e[0].toUpperCase()+e.substr(1));const n=h[e]?h[e]:t;const i=d[e].output_mimetype;a.oneOf.push({const:i,title:n})}}));n.get("commonToolsSection").setProperties("/raw_mimetype",a)}t.widgetAdded.connect(r)}};const ve={id:"@jupyterlab/notebook-extension:metadata-editor",description:"Adds metadata form for full metadata editor.",autoStart:true,requires:[_.INotebookTracker,r.IEditorServices,j.IFormRendererRegistry],optional:[k.ITranslator],activate:(e,t,n,i,s)=>{const o=e=>n.factoryService.newInlineEditor(e);const r={fieldRenderer:e=>new q({editorFactory:o,tracker:t,label:"Cell metadata",translator:s}).render(e)};i.addRenderer("@jupyterlab/notebook-extension:metadata-editor.cell-metadata",r);const a={fieldRenderer:e=>new K({editorFactory:o,tracker:t,label:"Notebook metadata",translator:s}).render(e)};i.addRenderer("@jupyterlab/notebook-extension:metadata-editor.notebook-metadata",a)}};const _e={id:"@jupyterlab/notebook-extension:active-cell-tool",description:"Adds active cell field in the metadata editor tab.",autoStart:true,requires:[_.INotebookTracker,j.IFormRendererRegistry,l.IEditorLanguageRegistry],activate:(e,t,n,i)=>{const s={fieldRenderer:e=>new W({tracker:t,languages:i}).render(e)};n.addRenderer("@jupyterlab/notebook-extension:active-cell-tool.renderer",s)}};const be=[ee,Q,ie,se,te,ne,oe,re,A,ae,le,de,ce,he,ue,pe,me,ge,fe,ve,_e];const ye=be;function we(e,t,n,i,s,o,r){const a=o.load("jupyterlab");const l="notebook-tools";const d=new _.NotebookTools({tracker:t,translator:o});const c=(e,t)=>{switch(t.type){case"activate-request":void s.save(l,{open:true});break;case"after-hide":case"close-request":void s.remove(l);break;default:break}return true};d.title.icon=j.buildIcon;d.title.caption=a.__("Notebook Tools");d.id=l;T.MessageLoop.installMessageHook(d,c);if(r){t.widgetAdded.connect(((e,t)=>{const n=r.register(t);n.render(d)}))}return d}function Ce(e,t,n,i,o,r,l,d){const c=d!==null&&d!==void 0?d:k.nullTranslator;const u=l!==null&&l!==void 0?l:new s.SessionContextDialogs({translator:c});const p=a.PageConfig.getOption("notebookStartsKernel");const m=p===""||p.toLowerCase()==="true";const{commands:g}=e;let f;o.addFactory(Z,"save",(e=>h.ToolbarItems.createSaveButton(g,e.context.fileChanged)));o.addFactory(Z,"cellType",(e=>_.ToolbarItems.createCellTypeItem(e,c)));o.addFactory(Z,"kernelName",(e=>s.Toolbar.createKernelNameItem(e.sessionContext,u,c)));o.addFactory(Z,"executionProgress",(e=>{const t=r===null||r===void 0?void 0:r.load(Q.id);const n=_.ExecutionIndicator.createExecutionIndicatorItem(e,c,t);void(t===null||t===void 0?void 0:t.then((t=>{e.disposed.connect((()=>{t.dispose()}))})));return n}));if(r){f=(0,s.createToolbarFactory)(o,r,Z,Y,c)}const v=c.load("jupyterlab");const b=new _.NotebookWidgetFactory({name:Z,label:v.__("Notebook"),fileTypes:["notebook"],modelName:"notebook",defaultFor:["notebook"],preferKernel:m,canStartKernel:true,rendermime:i,contentFactory:t,editorConfig:_.StaticNotebook.defaultEditorConfig,notebookConfig:_.StaticNotebook.defaultNotebookConfig,mimeTypeService:n.mimeTypeService,toolbarFactory:f,translator:c});e.docRegistry.addWidgetFactory(b);return b}function xe(e,t,n,i,o){const r=i.load("jupyterlab");const a=new s.WidgetTracker({namespace:"cloned-outputs"});if(o){void o.restore(a,{command:J.createOutputView,args:e=>({path:e.content.path,index:e.content.index}),name:e=>`${e.content.path}:${e.content.index}`,when:n.restored})}const{commands:l,shell:d}=e;const c=()=>Pe.isEnabledAndSingleSelected(d,n);l.addCommand(J.createOutputView,{label:r.__("Create New View for Cell Output"),execute:async e=>{var o;let r;let l;const d=e.path;let c=e.index;if(d&&c!==undefined&&c!==null){l=t.findWidget(d,Z);if(!l){return}}else{l=n.currentWidget;if(!l){return}r=l.content.activeCell;c=l.content.activeCellIndex}const h=new Pe.ClonedOutputArea({notebook:l,cell:r,index:c,translator:i});const u=new s.MainAreaWidget({content:h});l.context.addSibling(u,{ref:l.id,mode:"split-bottom",type:"Cloned Output"});const p=()=>{void a.save(u)};l.context.pathChanged.connect(p);(o=l.context.model)===null||o===void 0?void 0:o.cells.changed.connect(p);void a.add(u);l.content.disposed.connect((()=>{var e;l.context.pathChanged.disconnect(p);(e=l.context.model)===null||e===void 0?void 0:e.cells.changed.disconnect(p);u.dispose()}))},isEnabled:c})}function Se(e,t,n){const i=n.load("jupyterlab");const{commands:s,shell:o}=e;const r=()=>Pe.isEnabled(o,t);s.addCommand(J.createConsole,{label:i.__("New Console for Notebook"),execute:e=>{const n=t.currentWidget;if(!n){return}return Pe.createConsole(s,n,e["activate"])},isEnabled:r});s.addCommand(J.runInConsole,{label:i.__("Run Selected Text or Current Line in Console"),execute:async e=>{var n,i;const o=t.currentWidget;if(!o){return}const{context:r,content:a}=o;const l=a.activeCell;const d=l===null||l===void 0?void 0:l.model.metadata;const c=r.path;if(!l||l.model.type!=="code"){return}let h;const u=l.editor;if(!u){return}const p=u.getSelection();const{start:m,end:g}=p;const f=m.column!==g.column||m.line!==g.line;if(f){const e=u.getOffsetAt(p.start);const t=u.getOffsetAt(p.end);h=u.model.sharedModel.getSource().substring(e,t)}else{const e=u.getCursorPosition();const t=u.model.sharedModel.getSource().split("\n");let s=p.start.line;while(s0;let a=0;let l=a+1;while(true){h=t.slice(a,l).join("\n");const d=await((i=(n=o.context.sessionContext.session)===null||n===void 0?void 0:n.kernel)===null||i===void 0?void 0:i.requestIsComplete({code:h+"\n\n"}));if((d===null||d===void 0?void 0:d.content.status)==="complete"){if(st.addRange(e)))}e.commands.addCommand(J.copyToClipboard,{label:i.__("Copy Output to Clipboard"),execute:e=>{var t;const i=(t=n.currentWidget)===null||t===void 0?void 0:t.content.activeCell;if(i==null){return}const o=i.outputArea.outputTracker.currentWidget;if(o==null){return}const r=o.node.getElementsByClassName("jp-OutputArea-output");if(r.length>0){const e=r[0];s(e)}}});e.contextMenu.addItem({command:J.copyToClipboard,selector:".jp-OutputArea-child",rank:0})}function je(e,t,n,i,o,r,a,l,d,c,h,u,p){const m=u!==null&&u!==void 0?u:k.nullTranslator;const g=h!==null&&h!==void 0?h:new s.SessionContextDialogs({translator:m});const f=m.load("jupyterlab");const v=e.serviceManager;const{commands:b,shell:y}=e;const w=new _.NotebookTracker({namespace:"notebook"});function C(e,t){if(t.hash&&w.currentWidget){w.currentWidget.setFragment(t.hash)}}d===null||d===void 0?void 0:d.routed.connect(C);const x=()=>Pe.isEnabled(y,w);const S=e=>document.documentElement.style.setProperty("--jp-side-by-side-output-size",`${e}fr`);const M=c?c.load(Q.id):Promise.reject(new Error(`No setting registry for ${Q.id}`));M.then((e=>{R(e);e.changed.connect((()=>{R(e)}));const t=(t,n)=>{const{newValue:i,oldValue:s}=n;const o=i.autoStartDefault;if(typeof o==="boolean"&&o!==s.autoStartDefault){if(o!==e.get("autoStartDefaultKernel").composite)e.set("autoStartDefaultKernel",o).catch((t=>{console.error(`Failed to set ${e.id}.autoStartDefaultKernel`)}))}};const i=new WeakSet;const o=e=>{const n=e.context.sessionContext;if(!n.isDisposed&&!i.has(n)){i.add(n);n.kernelPreferenceChanged.connect(t);n.disposed.connect((()=>{n.kernelPreferenceChanged.disconnect(t)}))}};w.forEach(o);w.widgetAdded.connect(((e,t)=>{o(t)}));b.addCommand(J.autoClosingBrackets,{execute:t=>{var n;const i=e.get("codeCellConfig").composite;const s=e.get("markdownCellConfig").composite;const o=e.get("rawCellConfig").composite;const r=i.autoClosingBrackets||s.autoClosingBrackets||o.autoClosingBrackets;const a=!!((n=t["force"])!==null&&n!==void 0?n:!r);[i.autoClosingBrackets,s.autoClosingBrackets,o.autoClosingBrackets]=[a,a,a];void e.set("codeCellConfig",i);void e.set("markdownCellConfig",s);void e.set("rawCellConfig",o)},label:f.__("Auto Close Brackets for All Notebook Cell Types"),isToggled:()=>["codeCellConfig","markdownCellConfig","rawCellConfig"].some((t=>{var i;return((i=e.get(t).composite.autoClosingBrackets)!==null&&i!==void 0?i:n.baseConfiguration["autoClosingBrackets"])===true}))});b.addCommand(J.setSideBySideRatio,{label:f.__("Set side-by-side ratio"),execute:t=>{s.InputDialog.getNumber({title:f.__("Width of the output in side-by-side mode"),value:e.get("sideBySideOutputRatio").composite}).then((t=>{S(t.value);if(t.value){void e.set("sideBySideOutputRatio",t.value)}})).catch(console.error)}})})).catch((e=>{console.warn(e.message);A({editorConfig:t.editorConfig,notebookConfig:t.notebookConfig,kernelShutdown:t.shutdownOnClose,autoStartDefault:t.autoStartDefault})}));if(p){const e=p.getRenderer("@jupyterlab/codemirror-extension:plugin.defaultConfig");if(e){p.addRenderer("@jupyterlab/notebook-extension:tracker.codeCellConfig",e);p.addRenderer("@jupyterlab/notebook-extension:tracker.markdownCellConfig",e);p.addRenderer("@jupyterlab/notebook-extension:tracker.rawCellConfig",e)}}if(a){void a.restore(w,{command:"docmanager:open",args:e=>({path:e.context.path,factory:Z}),name:e=>e.context.path,when:v.ready})}const T=e.docRegistry;const D=new _.NotebookModelFactory({disableDocumentWideUndoRedo:t.notebookConfig.disableDocumentWideUndoRedo,collaborative:true});T.addModelFactory(D);Te(e,w,m,g,x);if(i){De(i,m)}let L=0;const P=e.docRegistry.getFileType("notebook");t.widgetCreated.connect(((e,t)=>{var n,i;t.id=t.id||`notebook-${++L}`;t.title.icon=P===null||P===void 0?void 0:P.icon;t.title.iconClass=(n=P===null||P===void 0?void 0:P.iconClass)!==null&&n!==void 0?n:"";t.title.iconLabel=(i=P===null||P===void 0?void 0:P.iconLabel)!==null&&i!==void 0?i:"";t.context.pathChanged.connect((()=>{void w.save(t)}));void w.add(t)}));function A(e){w.forEach((t=>{t.setConfig(e)}))}function R(e){const n={..._.StaticNotebook.defaultEditorConfig.code,...e.get("codeCellConfig").composite};const i={..._.StaticNotebook.defaultEditorConfig.markdown,...e.get("markdownCellConfig").composite};const s={..._.StaticNotebook.defaultEditorConfig.raw,...e.get("rawCellConfig").composite};t.editorConfig={code:n,markdown:i,raw:s};t.notebookConfig={showHiddenCellsButton:e.get("showHiddenCellsButton").composite,scrollPastEnd:e.get("scrollPastEnd").composite,defaultCell:e.get("defaultCell").composite,recordTiming:e.get("recordTiming").composite,overscanCount:e.get("overscanCount").composite,inputHistoryScope:e.get("inputHistoryScope").composite,maxNumberOutputs:e.get("maxNumberOutputs").composite,showEditorForReadOnlyMarkdown:e.get("showEditorForReadOnlyMarkdown").composite,disableDocumentWideUndoRedo:!e.get("documentWideUndoRedo").composite,renderingLayout:e.get("renderingLayout").composite,sideBySideLeftMarginOverride:e.get("sideBySideLeftMarginOverride").composite,sideBySideRightMarginOverride:e.get("sideBySideRightMarginOverride").composite,sideBySideOutputRatio:e.get("sideBySideOutputRatio").composite,windowingMode:e.get("windowingMode").composite};S(t.notebookConfig.sideBySideOutputRatio);const o=`.jp-mod-sideBySide.jp-Notebook .jp-Notebook-cell {\n margin-left: ${t.notebookConfig.sideBySideLeftMarginOverride} !important;\n margin-right: ${t.notebookConfig.sideBySideRightMarginOverride} !important;`;const r=document.getElementById(X);if(r){r.innerText=o}else{document.head.insertAdjacentHTML("beforeend",``)}t.autoStartDefault=e.get("autoStartDefaultKernel").composite;t.shutdownOnClose=e.get("kernelShutdown").composite;D.disableDocumentWideUndoRedo=!e.get("documentWideUndoRedo").composite;A({editorConfig:t.editorConfig,notebookConfig:t.notebookConfig,kernelShutdown:t.shutdownOnClose,autoStartDefault:t.autoStartDefault})}if(l){Le(l,x)}const N=async(e,t,n)=>{const i=await b.execute("docmanager:new-untitled",{path:e,type:"notebook"});if(i!==undefined){const e=await b.execute("docmanager:open",{path:i.path,factory:Z,kernel:{id:t,name:n}});e.isUntitled=true;return e}};b.addCommand(J.createNew,{label:e=>{var t,n,i;const s=e["kernelName"]||"";if(e["isLauncher"]&&e["kernelName"]&&v.kernelspecs){return(i=(n=(t=v.kernelspecs.specs)===null||t===void 0?void 0:t.kernelspecs[s])===null||n===void 0?void 0:n.display_name)!==null&&i!==void 0?i:""}if(e["isPalette"]||e["isContextMenu"]){return f.__("New Notebook")}return f.__("Notebook")},caption:f.__("Create a new notebook"),icon:e=>e["isPalette"]?undefined:j.notebookIcon,execute:e=>{var t;const n=e["cwd"]||((t=o===null||o===void 0?void 0:o.model.path)!==null&&t!==void 0?t:"");const i=e["kernelId"]||"";const s=e["kernelName"]||"";return N(n,i,s)}});if(r){void v.ready.then((()=>{let e=null;const t=()=>{if(e){e.dispose();e=null}const t=v.kernelspecs.specs;if(!t){return}e=new I.DisposableSet;for(const n in t.kernelspecs){const i=n===t.default?0:Infinity;const s=t.kernelspecs[n];const o=s.resources["logo-svg"]||s.resources["logo-64x64"];e.add(r.add({command:J.createNew,args:{isLauncher:true,kernelName:n},category:f.__("Notebook"),rank:i,kernelIconUrl:o,metadata:{kernel:E.JSONExt.deepCopy(s.metadata||{})}}))}};t();v.kernelspecs.specsChanged.connect(t)}))}return w}function Me(e,t,n,i,o){if(!n){return}const r=(i!==null&&i!==void 0?i:k.nullTranslator).load("jupyterlab");const a=o!==null&&o!==void 0?o:new s.Sanitizer;e.commands.addCommand(J.invokeCompleter,{label:r.__("Display the completion helper."),execute:e=>{var i;const s=t.currentWidget;if(s&&((i=s.content.activeCell)===null||i===void 0?void 0:i.model.type)==="code"){n.invoke(s.id)}}});e.commands.addCommand(J.selectCompleter,{label:r.__("Select the completion suggestion."),execute:()=>{const e=t.currentWidget&&t.currentWidget.id;if(e){return n.select(e)}}});e.commands.addKeyBinding({command:J.selectCompleter,keys:["Enter"],selector:".jp-Notebook .jp-mod-completer-active"});const l=async(e,t)=>{var i,s;const o={editor:(s=(i=t.content.activeCell)===null||i===void 0?void 0:i.editor)!==null&&s!==void 0?s:null,session:t.sessionContext.session,widget:t,sanitizer:a};await n.updateCompleter(o);t.content.activeCellChanged.connect(((e,i)=>{i===null||i===void 0?void 0:i.ready.then((()=>{const e={editor:i.editor,session:t.sessionContext.session,widget:t,sanitizer:a};return n.updateCompleter(e)})).catch(console.error)}));t.sessionContext.sessionChanged.connect((()=>{var e;(e=t.content.activeCell)===null||e===void 0?void 0:e.ready.then((()=>{var e,i;const s={editor:(i=(e=t.content.activeCell)===null||e===void 0?void 0:e.editor)!==null&&i!==void 0?i:null,session:t.sessionContext.session,widget:t};return n.updateCompleter(s)})).catch(console.error)}))};t.widgetAdded.connect(l);n.activeProvidersChanged.connect((()=>{t.forEach((e=>{l(undefined,e).catch((e=>console.error(e)))}))}))}function Ee(e,t,n,i,s){t.widgetAdded.connect((async(e,t)=>{const o=new _.NotebookAdapter(t,{connectionManager:n,featureManager:i,foreignCodeExtractorsManager:s});n.registerAdapter(t.context.path,o)}))}function Ie(e,t,n){const i=e.currentWidget;const s=n["activate"]!==false;if(s&&i){t.activateById(i.id)}return i}function Te(e,t,n,i,r){const a=n.load("jupyterlab");const{commands:l,shell:d}=e;const c=()=>Pe.isEnabledAndSingleSelected(d,t);const h=e=>{var t,n;for(const i of e.widgets){if(i instanceof o.MarkdownCell&&i.headingCollapsed){_.NotebookActions.setHeadingCollapse(i,true,e)}if(i.model.id===((n=(t=e.activeCell)===null||t===void 0?void 0:t.model)===null||n===void 0?void 0:n.id)){_.NotebookActions.expandParent(i,e)}}};const u=()=>Pe.isEnabledAndHeadingSelected(d,t);t.currentChanged.connect(((e,t)=>{var n,i;if(!((i=(n=t===null||t===void 0?void 0:t.content)===null||n===void 0?void 0:n.model)===null||i===void 0?void 0:i.cells)){return}t.content.model.cells.changed.connect(((e,n)=>{h(t.content)}));t.content.activeCellChanged.connect(((e,t)=>{_.NotebookActions.expandParent(t,e)}))}));t.selectionChanged.connect((()=>{l.notifyCommandChanged(J.duplicateBelow);l.notifyCommandChanged(J.deleteCell);l.notifyCommandChanged(J.copy);l.notifyCommandChanged(J.cut);l.notifyCommandChanged(J.pasteBelow);l.notifyCommandChanged(J.pasteAbove);l.notifyCommandChanged(J.pasteAndReplace);l.notifyCommandChanged(J.moveUp);l.notifyCommandChanged(J.moveDown);l.notifyCommandChanged(J.run);l.notifyCommandChanged(J.runAll);l.notifyCommandChanged(J.runAndAdvance);l.notifyCommandChanged(J.runAndInsert)}));t.activeCellChanged.connect((()=>{l.notifyCommandChanged(J.moveUp);l.notifyCommandChanged(J.moveDown)}));l.addCommand(J.runAndAdvance,{label:e=>{var n;const i=Ie(t,d,{...e,activate:false});return a._n("Run Selected Cell","Run Selected Cells",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},caption:e=>{var n;const i=Ie(t,d,{...e,activate:false});return a._n("Run this cell and advance","Run these %1 cells and advance",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const s=Ie(t,d,e);if(s){const{context:e,content:t}=s;return _.NotebookActions.runAndAdvance(t,e.sessionContext,i,n)}},isEnabled:e=>e.toolbar?true:r(),icon:e=>e.toolbar?j.runIcon:undefined});l.addCommand(J.run,{label:e=>{var n;const i=Ie(t,d,{...e,activate:false});return a._n("Run Selected Cell and Do not Advance","Run Selected Cells and Do not Advance",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const s=Ie(t,d,e);if(s){const{context:e,content:t}=s;return _.NotebookActions.run(t,e.sessionContext,i,n)}},isEnabled:r});l.addCommand(J.runAndInsert,{label:e=>{var n;const i=Ie(t,d,{...e,activate:false});return a._n("Run Selected Cell and Insert Below","Run Selected Cells and Insert Below",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const s=Ie(t,d,e);if(s){const{context:e,content:t}=s;return _.NotebookActions.runAndInsert(t,e.sessionContext,i,n)}},isEnabled:r});l.addCommand(J.runAll,{label:a.__("Run All Cells"),caption:a.__("Run all cells"),execute:e=>{const s=Ie(t,d,e);if(s){const{context:e,content:t}=s;return _.NotebookActions.runAll(t,e.sessionContext,i,n)}},isEnabled:r});l.addCommand(J.runAllAbove,{label:a.__("Run All Above Selected Cell"),execute:e=>{const s=Ie(t,d,e);if(s){const{context:e,content:t}=s;return _.NotebookActions.runAllAbove(t,e.sessionContext,i,n)}},isEnabled:()=>c()&&t.currentWidget.content.activeCellIndex!==0});l.addCommand(J.runAllBelow,{label:a.__("Run Selected Cell and All Below"),execute:e=>{const s=Ie(t,d,e);if(s){const{context:e,content:t}=s;return _.NotebookActions.runAllBelow(t,e.sessionContext,i,n)}},isEnabled:()=>c()&&t.currentWidget.content.activeCellIndex!==t.currentWidget.content.widgets.length-1});l.addCommand(J.renderAllMarkdown,{label:a.__("Render All Markdown Cells"),execute:e=>{const n=Ie(t,d,e);if(n){const{content:e}=n;return _.NotebookActions.renderAllMarkdown(e)}},isEnabled:r});l.addCommand(J.restart,{label:a.__("Restart Kernel…"),caption:a.__("Restart the kernel"),execute:e=>{const n=Ie(t,d,e);if(n){return i.restart(n.sessionContext)}},isEnabled:e=>e.toolbar?true:r(),icon:e=>e.toolbar?j.refreshIcon:undefined});l.addCommand(J.shutdown,{label:a.__("Shut Down Kernel"),execute:e=>{const n=Ie(t,d,e);if(!n){return}return n.context.sessionContext.shutdown()},isEnabled:r});l.addCommand(J.closeAndShutdown,{label:a.__("Close and Shut Down Notebook"),execute:e=>{const n=Ie(t,d,e);if(!n){return}const i=n.title.label;return(0,s.showDialog)({title:a.__("Shut down the notebook?"),body:a.__('Are you sure you want to close "%1"?',i),buttons:[s.Dialog.cancelButton(),s.Dialog.warnButton()]}).then((e=>{if(e.button.accept){return l.execute(J.shutdown,{activate:false}).then((()=>{n.dispose()}))}}))},isEnabled:r});l.addCommand(J.trust,{label:()=>a.__("Trust Notebook"),execute:e=>{const n=Ie(t,d,e);if(n){const{context:e,content:t}=n;return _.NotebookActions.trust(t).then((()=>e.save()))}},isEnabled:r});l.addCommand(J.restartClear,{label:a.__("Restart Kernel and Clear Outputs of All Cells…"),caption:a.__("Restart the kernel and clear all outputs of all cells"),execute:async()=>{const e=await l.execute(J.restart,{activate:false});if(e){await l.execute(J.clearAllOutputs)}},isEnabled:r});l.addCommand(J.restartAndRunToSelected,{label:a.__("Restart Kernel and Run up to Selected Cell…"),execute:async()=>{const e=await l.execute(J.restart,{activate:false});if(e){const e=await l.execute(J.runAllAbove,{activate:false});if(e){return l.execute(J.run)}}},isEnabled:c});l.addCommand(J.restartRunAll,{label:a.__("Restart Kernel and Run All Cells…"),caption:a.__("Restart the kernel and run all cells"),execute:async()=>{const e=await l.execute(J.restart,{activate:false});if(e){await l.execute(J.runAll)}},isEnabled:e=>e.toolbar?true:r(),icon:e=>e.toolbar?j.fastForwardIcon:undefined});l.addCommand(J.clearAllOutputs,{label:a.__("Clear Outputs of All Cells"),caption:a.__("Clear all outputs of all cells"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.clearAllOutputs(n.content)}},isEnabled:r});l.addCommand(J.clearOutputs,{label:a.__("Clear Cell Output"),caption:a.__("Clear outputs for the selected cells"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.clearOutputs(n.content)}},isEnabled:r});l.addCommand(J.interrupt,{label:a.__("Interrupt Kernel"),caption:a.__("Interrupt the kernel"),execute:e=>{var n;const i=Ie(t,d,e);if(!i){return}const s=(n=i.context.sessionContext.session)===null||n===void 0?void 0:n.kernel;if(s){return s.interrupt()}},isEnabled:e=>e.toolbar?true:r(),icon:e=>e.toolbar?j.stopIcon:undefined});l.addCommand(J.toCode,{label:a.__("Change to Code Cell Type"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.changeCellType(n.content,"code")}},isEnabled:r});l.addCommand(J.toMarkdown,{label:a.__("Change to Markdown Cell Type"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.changeCellType(n.content,"markdown")}},isEnabled:r});l.addCommand(J.toRaw,{label:a.__("Change to Raw Cell Type"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.changeCellType(n.content,"raw")}},isEnabled:r});l.addCommand(J.cut,{label:e=>{var n;const i=Ie(t,d,{...e,activate:false});return a._n("Cut Cell","Cut Cells",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},caption:e=>{var n;const i=Ie(t,d,{...e,activate:false});return a._n("Cut this cell","Cut these %1 cells",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.cut(n.content)}},icon:e=>e.toolbar?j.cutIcon:undefined,isEnabled:e=>e.toolbar?true:r()});l.addCommand(J.copy,{label:e=>{var n;const i=Ie(t,d,{...e,activate:false});return a._n("Copy Cell","Copy Cells",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},caption:e=>{var n;const i=Ie(t,d,{...e,activate:false});return a._n("Copy this cell","Copy these %1 cells",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.copy(n.content)}},icon:e=>e.toolbar?j.copyIcon:undefined,isEnabled:e=>e.toolbar?true:r()});l.addCommand(J.pasteBelow,{label:e=>{var n;const i=Ie(t,d,{...e,activate:false});return a._n("Paste Cell Below","Paste Cells Below",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},caption:e=>{var n;const i=Ie(t,d,{...e,activate:false});return a._n("Paste this cell from the clipboard","Paste these %1 cells from the clipboard",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.paste(n.content,"below")}},icon:e=>e.toolbar?j.pasteIcon:undefined,isEnabled:e=>e.toolbar?true:r()});l.addCommand(J.pasteAbove,{label:e=>{var n;const i=Ie(t,d,{...e,activate:false});return a._n("Paste Cell Above","Paste Cells Above",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},caption:e=>{var n;const i=Ie(t,d,{...e,activate:false});return a._n("Paste this cell from the clipboard","Paste these %1 cells from the clipboard",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.paste(n.content,"above")}},isEnabled:r});l.addCommand(J.duplicateBelow,{label:e=>{var n;const i=Ie(t,d,{...e,activate:false});return a._n("Duplicate Cell Below","Duplicate Cells Below",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},caption:e=>{var n;const i=Ie(t,d,{...e,activate:false});return a._n("Create a duplicate of this cell below","Create duplicates of %1 cells below",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const n=Ie(t,d,e);if(n){_.NotebookActions.duplicate(n.content,"belowSelected")}},icon:e=>e.toolbar?j.duplicateIcon:undefined,isEnabled:e=>e.toolbar?true:r()});l.addCommand(J.pasteAndReplace,{label:e=>{var n;const i=Ie(t,d,{...e,activate:false});return a._n("Paste Cell and Replace","Paste Cells and Replace",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.paste(n.content,"replace")}},isEnabled:r});l.addCommand(J.deleteCell,{label:e=>{var n;const i=Ie(t,d,{...e,activate:false});return a._n("Delete Cell","Delete Cells",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},caption:e=>{var n;const i=Ie(t,d,{...e,activate:false});return a._n("Delete this cell","Delete these %1 cells",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.deleteCells(n.content)}},isEnabled:e=>e.toolbar?true:r()});l.addCommand(J.split,{label:a.__("Split Cell"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.splitCell(n.content)}},isEnabled:r});l.addCommand(J.merge,{label:a.__("Merge Selected Cells"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.mergeCells(n.content)}},isEnabled:r});l.addCommand(J.mergeAbove,{label:a.__("Merge Cell Above"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.mergeCells(n.content,true)}},isEnabled:r});l.addCommand(J.mergeBelow,{label:a.__("Merge Cell Below"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.mergeCells(n.content,false)}},isEnabled:r});l.addCommand(J.insertAbove,{label:a.__("Insert Cell Above"),caption:a.__("Insert a cell above"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.insertAbove(n.content)}},icon:e=>e.toolbar?j.addAboveIcon:undefined,isEnabled:e=>e.toolbar?true:r()});l.addCommand(J.insertBelow,{label:a.__("Insert Cell Below"),caption:a.__("Insert a cell below"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.insertBelow(n.content)}},icon:e=>e.toolbar?j.addBelowIcon:undefined,isEnabled:e=>e.toolbar?true:r()});l.addCommand(J.selectAbove,{label:a.__("Select Cell Above"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.selectAbove(n.content)}},isEnabled:r});l.addCommand(J.selectBelow,{label:a.__("Select Cell Below"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.selectBelow(n.content)}},isEnabled:r});l.addCommand(J.insertHeadingAbove,{label:a.__("Insert Heading Above Current Heading"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.insertSameLevelHeadingAbove(n.content)}},isEnabled:r});l.addCommand(J.insertHeadingBelow,{label:a.__("Insert Heading Below Current Heading"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.insertSameLevelHeadingBelow(n.content)}},isEnabled:r});l.addCommand(J.selectHeadingAboveOrCollapse,{label:a.__("Select Heading Above or Collapse Heading"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.selectHeadingAboveOrCollapseHeading(n.content)}},isEnabled:r});l.addCommand(J.selectHeadingBelowOrExpand,{label:a.__("Select Heading Below or Expand Heading"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.selectHeadingBelowOrExpandHeading(n.content)}},isEnabled:r});l.addCommand(J.extendAbove,{label:a.__("Extend Selection Above"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.extendSelectionAbove(n.content)}},isEnabled:r});l.addCommand(J.extendTop,{label:a.__("Extend Selection to Top"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.extendSelectionAbove(n.content,true)}},isEnabled:r});l.addCommand(J.extendBelow,{label:a.__("Extend Selection Below"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.extendSelectionBelow(n.content)}},isEnabled:r});l.addCommand(J.extendBottom,{label:a.__("Extend Selection to Bottom"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.extendSelectionBelow(n.content,true)}},isEnabled:r});l.addCommand(J.selectAll,{label:a.__("Select All Cells"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.selectAll(n.content)}},isEnabled:r});l.addCommand(J.deselectAll,{label:a.__("Deselect All Cells"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.deselectAll(n.content)}},isEnabled:r});l.addCommand(J.moveUp,{label:e=>{var n;const i=Ie(t,d,{...e,activate:false});return a._n("Move Cell Up","Move Cells Up",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},caption:e=>{var n;const i=Ie(t,d,{...e,activate:false});return a._n("Move this cell up","Move these %1 cells up",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const n=Ie(t,d,e);if(n){_.NotebookActions.moveUp(n.content);Pe.raiseSilentNotification(a.__("Notebook cell shifted up successfully"),n.node)}},isEnabled:e=>{const n=Ie(t,d,{...e,activate:false});if(!n){return false}return n.content.activeCellIndex>=1},icon:e=>e.toolbar?j.moveUpIcon:undefined});l.addCommand(J.moveDown,{label:e=>{var n;const i=Ie(t,d,{...e,activate:false});return a._n("Move Cell Down","Move Cells Down",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},caption:e=>{var n;const i=Ie(t,d,{...e,activate:false});return a._n("Move this cell down","Move these %1 cells down",(n=i===null||i===void 0?void 0:i.content.selectedCells.length)!==null&&n!==void 0?n:1)},execute:e=>{const n=Ie(t,d,e);if(n){_.NotebookActions.moveDown(n.content);Pe.raiseSilentNotification(a.__("Notebook cell shifted down successfully"),n.node)}},isEnabled:e=>{const n=Ie(t,d,{...e,activate:false});if(!n||!n.content.model){return false}const i=n.content.model.cells.length;return n.content.activeCellIndexe.toolbar?j.moveDownIcon:undefined});l.addCommand(J.toggleAllLines,{label:a.__("Show Line Numbers"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.toggleAllLineNumbers(n.content)}},isEnabled:r,isToggled:e=>{const n=Ie(t,d,{...e,activate:false});if(n){const e=n.content.editorConfig;return!!(e.code.lineNumbers&&e.markdown.lineNumbers&&e.raw.lineNumbers)}else{return false}}});l.addCommand(J.commandMode,{label:a.__("Enter Command Mode"),execute:e=>{const n=Ie(t,d,e);if(n){n.content.mode="command"}},isEnabled:r});l.addCommand(J.editMode,{label:a.__("Enter Edit Mode"),execute:e=>{const n=Ie(t,d,e);if(n){n.content.mode="edit"}},isEnabled:r});l.addCommand(J.undoCellAction,{label:a.__("Undo Cell Operation"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.undo(n.content)}},isEnabled:r});l.addCommand(J.redoCellAction,{label:a.__("Redo Cell Operation"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.redo(n.content)}},isEnabled:r});l.addCommand(J.redo,{label:a.__("Redo"),execute:e=>{var n;const i=Ie(t,d,e);if(i){const e=i.content.activeCell;if(e){e.inputHidden=false;return(n=e.editor)===null||n===void 0?void 0:n.redo()}}}});l.addCommand(J.undo,{label:a.__("Undo"),execute:e=>{var n;const i=Ie(t,d,e);if(i){const e=i.content.activeCell;if(e){e.inputHidden=false;return(n=e.editor)===null||n===void 0?void 0:n.undo()}}}});l.addCommand(J.changeKernel,{label:a.__("Change Kernel…"),execute:e=>{const n=Ie(t,d,e);if(n){return i.selectKernel(n.context.sessionContext)}},isEnabled:r});l.addCommand(J.getKernel,{label:a.__("Get Kernel"),execute:e=>{var n;const i=Ie(t,d,{activate:false,...e});if(i){return(n=i.sessionContext.session)===null||n===void 0?void 0:n.kernel}},isEnabled:r});l.addCommand(J.reconnectToKernel,{label:a.__("Reconnect to Kernel"),execute:e=>{var n;const i=Ie(t,d,e);if(!i){return}const s=(n=i.context.sessionContext.session)===null||n===void 0?void 0:n.kernel;if(s){return s.reconnect()}},isEnabled:r});l.addCommand(J.markdown1,{label:a.__("Change to Heading 1"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.setMarkdownHeader(n.content,1)}},isEnabled:r});l.addCommand(J.markdown2,{label:a.__("Change to Heading 2"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.setMarkdownHeader(n.content,2)}},isEnabled:r});l.addCommand(J.markdown3,{label:a.__("Change to Heading 3"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.setMarkdownHeader(n.content,3)}},isEnabled:r});l.addCommand(J.markdown4,{label:a.__("Change to Heading 4"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.setMarkdownHeader(n.content,4)}},isEnabled:r});l.addCommand(J.markdown5,{label:a.__("Change to Heading 5"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.setMarkdownHeader(n.content,5)}},isEnabled:r});l.addCommand(J.markdown6,{label:a.__("Change to Heading 6"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.setMarkdownHeader(n.content,6)}},isEnabled:r});l.addCommand(J.hideCode,{label:a.__("Collapse Selected Code"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.hideCode(n.content)}},isEnabled:r});l.addCommand(J.showCode,{label:a.__("Expand Selected Code"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.showCode(n.content)}},isEnabled:r});l.addCommand(J.hideAllCode,{label:a.__("Collapse All Code"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.hideAllCode(n.content)}},isEnabled:r});l.addCommand(J.showAllCode,{label:a.__("Expand All Code"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.showAllCode(n.content)}},isEnabled:r});l.addCommand(J.hideOutput,{label:a.__("Collapse Selected Outputs"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.hideOutput(n.content)}},isEnabled:r});l.addCommand(J.showOutput,{label:a.__("Expand Selected Outputs"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.showOutput(n.content)}},isEnabled:r});l.addCommand(J.hideAllOutputs,{label:a.__("Collapse All Outputs"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.hideAllOutputs(n.content)}},isEnabled:r});l.addCommand(J.toggleRenderSideBySideCurrentNotebook,{label:a.__("Render Side-by-Side"),execute:e=>{const n=Ie(t,d,e);if(n){if(n.content.renderingLayout==="side-by-side"){return _.NotebookActions.renderDefault(n.content)}return _.NotebookActions.renderSideBySide(n.content)}},isEnabled:r,isToggled:e=>{const n=Ie(t,d,{...e,activate:false});if(n){return n.content.renderingLayout==="side-by-side"}else{return false}}});l.addCommand(J.showAllOutputs,{label:a.__("Expand All Outputs"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.showAllOutputs(n.content)}},isEnabled:r});l.addCommand(J.enableOutputScrolling,{label:a.__("Enable Scrolling for Outputs"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.enableOutputScrolling(n.content)}},isEnabled:r});l.addCommand(J.disableOutputScrolling,{label:a.__("Disable Scrolling for Outputs"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.disableOutputScrolling(n.content)}},isEnabled:r});l.addCommand(J.selectLastRunCell,{label:a.__("Select current running or last run cell"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.selectLastRunCell(n.content)}},isEnabled:r});l.addCommand(J.replaceSelection,{label:a.__("Replace Selection in Notebook Cell"),execute:e=>{const n=Ie(t,d,e);const i=e["text"]||"";if(n){return _.NotebookActions.replaceSelection(n.content,i)}},isEnabled:r});l.addCommand(J.toggleCollapseCmd,{label:a.__("Toggle Collapse Notebook Heading"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.toggleCurrentHeadingCollapse(n.content)}},isEnabled:u});l.addCommand(J.collapseAllCmd,{label:a.__("Collapse All Headings"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.collapseAllHeadings(n.content)}}});l.addCommand(J.expandAllCmd,{label:a.__("Expand All Headings"),execute:e=>{const n=Ie(t,d,e);if(n){return _.NotebookActions.expandAllHeadings(n.content)}}});l.addCommand(J.tocRunCells,{label:a.__("Select and Run Cell(s) for this Heading"),execute:e=>{const s=Ie(t,d,{activate:false,...e});if(s===null){return}const r=s.content.activeCell;let a=s.content.activeCellIndex;if(r instanceof o.MarkdownCell){const e=s.content.widgets;const t=r.headingInfo.level;for(let n=s.content.activeCellIndex+1;n=0&&i.headingInfo.level<=t){break}a=n}}s.content.extendContiguousSelectionTo(a);void _.NotebookActions.run(s.content,s.sessionContext,i,n)}})}function De(e,t){const n=t.load("jupyterlab");let i=n.__("Notebook Operations");[J.interrupt,J.restart,J.restartClear,J.restartRunAll,J.runAll,J.renderAllMarkdown,J.runAllAbove,J.runAllBelow,J.restartAndRunToSelected,J.selectAll,J.deselectAll,J.clearAllOutputs,J.toggleAllLines,J.editMode,J.commandMode,J.changeKernel,J.reconnectToKernel,J.createConsole,J.closeAndShutdown,J.trust,J.toggleCollapseCmd,J.collapseAllCmd,J.expandAllCmd].forEach((t=>{e.addItem({command:t,category:i})}));e.addItem({command:J.createNew,category:i,args:{isPalette:true}});i=n.__("Notebook Cell Operations");[J.run,J.runAndAdvance,J.runAndInsert,J.runInConsole,J.clearOutputs,J.toCode,J.toMarkdown,J.toRaw,J.cut,J.copy,J.pasteBelow,J.pasteAbove,J.pasteAndReplace,J.deleteCell,J.split,J.merge,J.mergeAbove,J.mergeBelow,J.insertAbove,J.insertBelow,J.selectAbove,J.selectBelow,J.selectHeadingAboveOrCollapse,J.selectHeadingBelowOrExpand,J.insertHeadingAbove,J.insertHeadingBelow,J.extendAbove,J.extendTop,J.extendBelow,J.extendBottom,J.moveDown,J.moveUp,J.undoCellAction,J.redoCellAction,J.markdown1,J.markdown2,J.markdown3,J.markdown4,J.markdown5,J.markdown6,J.hideCode,J.showCode,J.hideAllCode,J.showAllCode,J.hideOutput,J.showOutput,J.hideAllOutputs,J.showAllOutputs,J.toggleRenderSideBySideCurrentNotebook,J.setSideBySideRatio,J.enableOutputScrolling,J.disableOutputScrolling].forEach((t=>{e.addItem({command:t,category:i})}))}function Le(e,t){e.editMenu.undoers.redo.add({id:J.redo,isEnabled:t});e.editMenu.undoers.undo.add({id:J.undo,isEnabled:t});e.editMenu.clearers.clearAll.add({id:J.clearAllOutputs,isEnabled:t});e.editMenu.clearers.clearCurrent.add({id:J.clearOutputs,isEnabled:t});e.fileMenu.consoleCreators.add({id:J.createConsole,isEnabled:t});e.fileMenu.closeAndCleaners.add({id:J.closeAndShutdown,isEnabled:t});e.kernelMenu.kernelUsers.changeKernel.add({id:J.changeKernel,isEnabled:t});e.kernelMenu.kernelUsers.clearWidget.add({id:J.clearAllOutputs,isEnabled:t});e.kernelMenu.kernelUsers.interruptKernel.add({id:J.interrupt,isEnabled:t});e.kernelMenu.kernelUsers.reconnectToKernel.add({id:J.reconnectToKernel,isEnabled:t});e.kernelMenu.kernelUsers.restartKernel.add({id:J.restart,isEnabled:t});e.kernelMenu.kernelUsers.shutdownKernel.add({id:J.shutdown,isEnabled:t});e.viewMenu.editorViewers.toggleLineNumbers.add({id:J.toggleAllLines,isEnabled:t});e.runMenu.codeRunners.restart.add({id:J.restart,isEnabled:t});e.runMenu.codeRunners.run.add({id:J.runAndAdvance,isEnabled:t});e.runMenu.codeRunners.runAll.add({id:J.runAll,isEnabled:t});e.helpMenu.getKernel.add({id:J.getKernel,isEnabled:t})}var Pe;(function(e){function t(e,t,n){const i={path:t.context.path,preferredLanguage:t.context.model.defaultKernelLanguage,activate:n,ref:t.id,insertMode:"split-bottom",type:"Linked Console"};return e.execute("console:create",i)}e.createConsole=t;function n(e,t){return t.currentWidget!==null&&t.currentWidget===e.currentWidget}e.isEnabled=n;function i(t,n){if(!e.isEnabled(t,n)){return false}const{content:i}=n.currentWidget;const s=i.activeCellIndex;for(let e=0;e{if(!this._cell){this._cell=this._notebook.content.widgets[this._index]}if(!this._cell||this._cell.model.type!=="code"){this.dispose();return}const e=this._cell.cloneOutputArea();this.addWidget(e)}))}get index(){return this._cell?M.ArrayExt.findFirstIndex(this._notebook.content.widgets,(e=>e===this._cell)):this._index}get path(){return this._notebook.context.path}}e.ClonedOutputArea=l})(Pe||(Pe={}))},55337:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(98328);var r=n(79536);var a=n(49914);var l=n(98896);var d=n(94683);var c=n(90516);var h=n(38613);var u=n(37935);var p=n(82401);var m=n(59240);var g=n(99434);var f=n(5956);var v=n(64431);var _=n(38710);var b=n(52812);var y=n(70161);var w=n(51734);var C=n(74518);var x=n(88164);var S=n(66458);var k=n(9469)},17525:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CellList:()=>f,CellTypeSwitcher:()=>w,CommandEditStatus:()=>D,ExecutionIndicator:()=>k,ExecutionIndicatorComponent:()=>S,INotebookTools:()=>Oe,INotebookTracker:()=>Be,INotebookWidgetFactory:()=>Ne,KernelError:()=>p,Notebook:()=>Se,NotebookActions:()=>m,NotebookAdapter:()=>P,NotebookModel:()=>E,NotebookModelFactory:()=>I,NotebookPanel:()=>Ie,NotebookSearchProvider:()=>De,NotebookToCFactory:()=>Ae,NotebookToCModel:()=>Pe,NotebookTools:()=>F,NotebookTracker:()=>Fe,NotebookTrustStatus:()=>Ve,NotebookViewModel:()=>Z,NotebookWidgetFactory:()=>Ue,NotebookWindowedLayout:()=>G,RunningStatus:()=>Le,StaticNotebook:()=>xe,ToolbarItems:()=>y,getIdForHeading:()=>Re});var i=n(10759);var s=n(28698);var o=n(20501);var r=n(6958);var a=n(58740);var l=n(5596);var d=n(71372);var c=n(28416);var h=n.n(c);const u="application/vnd.jupyter.cells";class p extends Error{constructor(e){const t=e;const n=t.ename;const i=t.evalue;super(`KernelReplyNotOK: ${n} ${i}`);this.errorName=n;this.errorValue=i;this.traceback=t.traceback;Object.setPrototypeOf(this,p.prototype)}}class m{static get executed(){return g.executed}static get executionScheduled(){return g.executionScheduled}static get selectionExecuted(){return g.selectionExecuted}constructor(){}}(function(e){function t(e){if(!e.model||!e.activeCell){return}const t=g.getState(e);e.mode="edit";e.deselectAll();const n=e.model;const i=e.activeCellIndex;const s=e.widgets[i];const o=s.editor;if(!o){return}const r=o.getSelections();const a=s.model.sharedModel.getSource();const l=[0];let d=-1;let c=-1;for(let p=0;p{const{cell_type:n,metadata:i}=s.model.sharedModel.toJSON();return{cell_type:n,metadata:i,source:a.slice(e,l[t+1]).replace(/^\n+/,"").replace(/\n+$/,"")}}));n.sharedModel.transact((()=>{n.sharedModel.deleteCell(i);n.sharedModel.insertCells(i,h)}));const u=d!==c?2:1;e.activeCellIndex=i+h.length-u;e.scrollToItem(e.activeCellIndex).then((()=>{var t;(t=e.activeCell)===null||t===void 0?void 0:t.editor.focus()})).catch((e=>{}));g.handleState(e,t)}e.splitCell=t;function n(e,t=false){if(!e.model||!e.activeCell){return}const n=g.getState(e);const i=[];const o=[];const r=e.model;const a=r.cells;const l=e.activeCell;const d=e.activeCellIndex;const c={};e.widgets.forEach(((t,n)=>{if(e.isSelectedOrActive(t)){i.push(t.model.sharedModel.getSource());if(n!==d){o.push(n)}const e=t.model;if((0,s.isRawCellModel)(e)||(0,s.isMarkdownCellModel)(e)){for(const t of e.attachments.keys){c[t]=e.attachments.get(t).toJSON()}}}}));if(i.length===1){if(t===true){if(d===0){return}const e=a.get(d-1);i.unshift(e.sharedModel.getSource());o.push(d-1)}else if(t===false){if(d===a.length-1){return}const e=a.get(d+1);i.push(e.sharedModel.getSource());o.push(d+1)}}e.deselectAll();const h=l.model.sharedModel;const{cell_type:u,metadata:p}=h.toJSON();if(h.cell_type==="code"){p.trusted=true}const m={cell_type:u,metadata:p,source:i.join("\n\n"),attachments:h.cell_type==="markdown"||h.cell_type==="raw"?c:undefined};r.sharedModel.transact((()=>{r.sharedModel.deleteCell(d);r.sharedModel.insertCell(d,m);o.sort(((e,t)=>t-e)).forEach((e=>{r.sharedModel.deleteCell(e)}))}));if(l instanceof s.MarkdownCell){e.activeCell.rendered=false}g.handleState(e,n)}e.mergeCells=n;function d(e){if(!e.model||!e.activeCell){return}const t=g.getState(e);g.deleteCells(e);g.handleState(e,t,true)}e.deleteCells=d;function h(e){if(!e.model){return}const t=g.getState(e);const n=e.model;const i=e.activeCell?e.activeCellIndex:0;n.sharedModel.insertCell(i,{cell_type:e.notebookConfig.defaultCell,metadata:e.notebookConfig.defaultCell==="code"?{trusted:true}:{}});e.activeCellIndex=i;e.deselectAll();g.handleState(e,t,true)}e.insertAbove=h;function p(e){if(!e.model){return}const t=g.getState(e);const n=e.model;const i=e.activeCell?e.activeCellIndex+1:0;n.sharedModel.insertCell(i,{cell_type:e.notebookConfig.defaultCell,metadata:e.notebookConfig.defaultCell==="code"?{trusted:true}:{}});e.activeCellIndex=i;e.deselectAll();g.handleState(e,t,true)}e.insertBelow=p;function m(e,t){if(!e.model||!e.activeCell){return}const n=g.getState(e);const i=e.widgets.findIndex((t=>e.isSelectedOrActive(t)));let s=e.widgets.slice(i+1).findIndex((t=>!e.isSelectedOrActive(t)));if(s>=0){s+=i+1}else{s=e.model.cells.length}if(t>0){e.moveCell(i,s,s-i)}else{e.moveCell(i,i+t,s-i)}g.handleState(e,n,true)}function f(e){m(e,1)}e.moveDown=f;function v(e){m(e,-1)}e.moveUp=v;function _(e,t){if(!e.model||!e.activeCell){return}const n=g.getState(e);g.changeCellType(e,t);g.handleState(e,n)}e.changeCellType=_;function b(e,t,n,i){if(!e.model||!e.activeCell){return Promise.resolve(false)}const s=g.getState(e);const o=g.runSelected(e,t,n,i);g.handleRunState(e,s,false);return o}e.run=b;async function y(e,t,n,i){var s;if(!e.model||!e.activeCell){return Promise.resolve(false)}const r=g.getState(e);const a=g.runSelected(e,t,n,i);const l=e.model;if(e.activeCellIndex===e.widgets.length-1){l.sharedModel.insertCell(e.widgets.length,{cell_type:e.notebookConfig.defaultCell,metadata:e.notebookConfig.defaultCell==="code"?{trusted:true}:{}});e.activeCellIndex++;if(((s=e.activeCell)===null||s===void 0?void 0:s.inViewport)===false){await(0,o.signalToPromise)(e.activeCell.inViewportChanged,200).catch((()=>{}))}e.mode="edit"}else{e.activeCellIndex++}g.handleState(e,r,true);return a}e.runAndAdvance=y;async function w(e,t,n,i){var s;if(!e.model||!e.activeCell){return Promise.resolve(false)}const r=g.getState(e);const a=g.runSelected(e,t,n,i);const l=e.model;l.sharedModel.insertCell(e.activeCellIndex+1,{cell_type:e.notebookConfig.defaultCell,metadata:e.notebookConfig.defaultCell==="code"?{trusted:true}:{}});e.activeCellIndex++;if(((s=e.activeCell)===null||s===void 0?void 0:s.inViewport)===false){await(0,o.signalToPromise)(e.activeCell.inViewportChanged,200).catch((()=>{}))}e.mode="edit";g.handleState(e,r,true);return a}e.runAndInsert=w;function C(e,t,n,i){if(!e.model||!e.activeCell){return Promise.resolve(false)}const s=g.getState(e);e.widgets.forEach((t=>{e.select(t)}));const o=g.runSelected(e,t,n,i);g.handleRunState(e,s,true);return o}e.runAll=C;function x(e){if(!e.model||!e.activeCell){return Promise.resolve(false)}const t=e.activeCellIndex;const n=g.getState(e);e.widgets.forEach(((t,n)=>{if(t.model.type==="markdown"){e.select(t);e.activeCellIndex=n}}));if(e.activeCell.model.type!=="markdown"){return Promise.resolve(true)}const i=g.runSelected(e);e.activeCellIndex=t;g.handleRunState(e,n,true);return i}e.renderAllMarkdown=x;function S(e,t,n,i){const{activeCell:s,activeCellIndex:o,model:r}=e;if(!r||!s||o<1){return Promise.resolve(false)}const a=g.getState(e);e.activeCellIndex--;e.deselectAll();for(let d=0;d=0){const t=e.widgets[n];if(!t.inputHidden&&!t.isHidden){break}n-=1}const i=g.getState(e);e.activeCellIndex=n;e.deselectAll();g.handleState(e,i,true)}e.selectAbove=M;function E(e){if(!e.model||!e.activeCell){return}let t=e.widgets.length-1;while(e.widgets[t].isHidden||e.widgets[t].inputHidden){t-=1}if(e.activeCellIndex===t){const t=e.layout.footer;t===null||t===void 0?void 0:t.node.focus();return}let n=e.activeCellIndex+1;while(n-1?t:1;let n=g.Headings.findLowerEqualLevelHeadingBelow(e.activeCell,e,true);await g.Headings.insertHeadingAboveCellIndex(n==-1?e.model.cells.length:n,t,e)}e.insertSameLevelHeadingBelow=T;function D(e){if(!e.model||!e.activeCell){return}const t=g.getState(e);let n=ge(e.activeCell);if(n.isHeading&&!n.collapsed){ue(e.activeCell,true,e)}else{let t=g.Headings.findLowerEqualLevelParentHeadingAbove(e.activeCell,e,true);if(t>-1){e.activeCellIndex=t}}e.deselectAll();g.handleState(e,t,true)}e.selectHeadingAboveOrCollapseHeading=D;function L(e){if(!e.model||!e.activeCell){return}const t=g.getState(e);let n=ge(e.activeCell);if(n.isHeading&&n.collapsed){ue(e.activeCell,false,e)}else{let t=g.Headings.findHeadingBelow(e.activeCell,e,true);if(t>-1){e.activeCellIndex=t}}e.deselectAll();g.handleState(e,t,true)}e.selectHeadingBelowOrExpandHeading=L;function P(e,t=false){if(!e.model||!e.activeCell){return}if(e.activeCellIndex===0){return}const n=g.getState(e);e.mode="command";if(t){e.extendContiguousSelectionTo(0)}else{e.extendContiguousSelectionTo(e.activeCellIndex-1)}g.handleState(e,n,true)}e.extendSelectionAbove=P;function A(e,t=false){if(!e.model||!e.activeCell){return}if(e.activeCellIndex===e.widgets.length-1){return}const n=g.getState(e);e.mode="command";if(t){e.extendContiguousSelectionTo(e.widgets.length-1)}else{e.extendContiguousSelectionTo(e.activeCellIndex+1)}g.handleState(e,n,true)}e.extendSelectionBelow=A;function R(e){if(!e.model||!e.activeCell){return}e.widgets.forEach((t=>{e.select(t)}))}e.selectAll=R;function N(e){if(!e.model||!e.activeCell){return}e.deselectAll()}e.deselectAll=N;function O(e){g.copyOrCut(e,false)}e.copy=O;function B(e){g.copyOrCut(e,true)}e.cut=B;function F(e,t="below"){const n=i.Clipboard.getInstance();if(!n.hasData(u)){return}const s=n.getData(u);H(e,t,s,true)}e.paste=F;function z(e,t="below"){const n=g.selectedCells(e);if(!n||n.length===0){return}H(e,t,n,false)}e.duplicate=z;function H(e,t="below",n,i=false){if(!e.model||!e.activeCell){return}const s=g.getState(e);const o=e.model;e.mode="command";let r=0;const a=e.activeCellIndex;o.sharedModel.transact((()=>{switch(t){case"below":r=e.activeCellIndex+1;break;case"belowSelected":e.widgets.forEach(((t,n)=>{if(e.isSelectedOrActive(t)){r=n+1}}));break;case"above":r=e.activeCellIndex;break;case"replace":{const t=[];e.widgets.forEach(((n,i)=>{const s=n.model.sharedModel.getMetadata("deletable")!==false;if(e.isSelectedOrActive(n)&&s){t.push(i)}}));if(t.length>0){t.reverse().forEach((e=>{o.sharedModel.deleteCell(e)}))}r=t[0];break}default:break}o.sharedModel.insertCells(r,n.map((t=>{t.id=t.cell_type==="code"&&e.lastClipboardInteraction==="cut"&&typeof t.id==="string"?t.id:undefined;return t})))}));e.activeCellIndex=a+n.length;e.deselectAll();if(i){e.lastClipboardInteraction="paste"}g.handleState(e,s,true)}function W(e){if(!e.model){return}const t=g.getState(e);e.mode="command";e.model.sharedModel.undo();e.deselectAll();g.handleState(e,t)}e.undo=W;function V(e){if(!e.model||!e.activeCell){return}const t=g.getState(e);e.mode="command";e.model.sharedModel.redo();e.deselectAll();g.handleState(e,t)}e.redo=V;function U(e){if(!e.model||!e.activeCell){return}const t=g.getState(e);const n=e.editorConfig;const i=!(n.code.lineNumbers&&n.markdown.lineNumbers&&n.raw.lineNumbers);const s={code:{...n.code,lineNumbers:i},markdown:{...n.markdown,lineNumbers:i},raw:{...n.raw,lineNumbers:i}};e.editorConfig=s;g.handleState(e,t)}e.toggleAllLineNumbers=U;function $(e){if(!e.model||!e.activeCell){return}const t=g.getState(e);let n=-1;for(const i of e.model.cells){const t=e.widgets[++n];if(e.isSelectedOrActive(t)&&i.type==="code"){i.sharedModel.transact((()=>{i.clearExecution();t.outputHidden=false}),false)}}g.handleState(e,t,true)}e.clearOutputs=$;function q(e){if(!e.model||!e.activeCell){return}const t=g.getState(e);let n=-1;for(const i of e.model.cells){const t=e.widgets[++n];if(i.type==="code"){i.sharedModel.transact((()=>{i.clearExecution();t.outputHidden=false}),false)}}g.handleState(e,t,true)}e.clearAllOutputs=q;function K(e){if(!e.model||!e.activeCell){return}const t=g.getState(e);e.widgets.forEach((t=>{if(e.isSelectedOrActive(t)&&t.model.type==="code"){t.inputHidden=true}}));g.handleState(e,t)}e.hideCode=K;function J(e){if(!e.model||!e.activeCell){return}const t=g.getState(e);e.widgets.forEach((t=>{if(e.isSelectedOrActive(t)&&t.model.type==="code"){t.inputHidden=false}}));g.handleState(e,t)}e.showCode=J;function Z(e){if(!e.model||!e.activeCell){return}const t=g.getState(e);e.widgets.forEach((e=>{if(e.model.type==="code"){e.inputHidden=true}}));g.handleState(e,t)}e.hideAllCode=Z;function G(e){if(!e.model||!e.activeCell){return}const t=g.getState(e);e.widgets.forEach((e=>{if(e.model.type==="code"){e.inputHidden=false}}));g.handleState(e,t)}e.showAllCode=G;function Y(e){if(!e.model||!e.activeCell){return}const t=g.getState(e);e.widgets.forEach((t=>{if(e.isSelectedOrActive(t)&&t.model.type==="code"){t.outputHidden=true}}));g.handleState(e,t,true)}e.hideOutput=Y;function X(e){if(!e.model||!e.activeCell){return}const t=g.getState(e);e.widgets.forEach((t=>{if(e.isSelectedOrActive(t)&&t.model.type==="code"){t.outputHidden=false}}));g.handleState(e,t)}e.showOutput=X;function Q(e){if(!e.model||!e.activeCell){return}const t=g.getState(e);e.widgets.forEach((e=>{if(e.model.type==="code"){e.outputHidden=true}}));g.handleState(e,t,true)}e.hideAllOutputs=Q;function ee(e){e.renderingLayout="side-by-side"}e.renderSideBySide=ee;function te(e){e.renderingLayout="default"}e.renderDefault=te;function ne(e){if(!e.model||!e.activeCell){return}const t=g.getState(e);e.widgets.forEach((e=>{if(e.model.type==="code"){e.outputHidden=false}}));g.handleState(e,t)}e.showAllOutputs=ne;function ie(e){if(!e.model||!e.activeCell){return}const t=g.getState(e);e.widgets.forEach((t=>{if(e.isSelectedOrActive(t)&&t.model.type==="code"){t.outputsScrolled=true}}));g.handleState(e,t,true)}e.enableOutputScrolling=ie;function se(e){if(!e.model||!e.activeCell){return}const t=g.getState(e);e.widgets.forEach((t=>{if(e.isSelectedOrActive(t)&&t.model.type==="code"){t.outputsScrolled=false}}));g.handleState(e,t)}e.disableOutputScrolling=se;function oe(e){let t=null;let n=null;e.widgets.forEach(((e,i)=>{if(e.model.type==="code"){const s=e.model.getMetadata("execution");if(s&&l.JSONExt.isObject(s)&&s["iopub.status.busy"]!==undefined){const e=s["iopub.status.busy"].toString();if(e){const s=new Date(e);if(!t||s>=t){t=s;n=i}}}}}));if(n!==null){e.activeCellIndex=n}}e.selectLastRunCell=oe;function re(e,t){if(!e.model||!e.activeCell){return}const n=g.getState(e);const i=e.model.cells;t=Math.min(Math.max(t,1),6);e.widgets.forEach(((n,s)=>{if(e.isSelectedOrActive(n)){g.setMarkdownHeader(i.get(s),t)}}));g.changeCellType(e,"markdown");g.handleState(e,n)}e.setMarkdownHeader=re;function ae(t){for(const n of t.widgets){if(e.getHeadingInfo(n).isHeading){e.setHeadingCollapse(n,true,t);e.setCellCollapse(n,true)}}}e.collapseAllHeadings=ae;function le(t){for(const n of t.widgets){if(e.getHeadingInfo(n).isHeading){e.setHeadingCollapse(n,false,t);e.setCellCollapse(n,false)}}}e.expandAllHeadings=le;function de(e,t){const n=(0,a.findIndex)(t.widgets,((t,n)=>e.model.id===t.model.id));if(n===-1){return}if(n>=t.widgets.length){return}let i=ge(t.widgets[n]);for(let s=n-1;s>=0;s--){if(se.model.id===t.model.id));if(n===-1){return-1}let i=ge(e);for(n=n+1;nt.model.id===e.model.id));if(o===-1){return-1}if(!i.widgets.length){return o+1}let r=e.getHeadingInfo(t);if(t.isHidden||!(t instanceof s.MarkdownCell)||!r.isHeading){return o+1}let l=false;let d=0;let c;for(c=o+1;c{}))}e.toggleCurrentHeadingCollapse=pe;function me(e,t){if(e instanceof s.MarkdownCell){e.headingCollapsed=t}else{e.setHidden(t)}}e.setCellCollapse=me;function ge(e){if(!(e instanceof s.MarkdownCell)){return{isHeading:false,headingLevel:7}}let t=e.headingInfo.level;let n=e.headingCollapsed;return{isHeading:t>0,headingLevel:t,collapsed:n}}e.getHeadingInfo=ge;function fe(e,t){t=t||r.nullTranslator;const n=t.load("jupyterlab");if(!e.model){return Promise.resolve()}const s=(0,a.every)(e.model.cells,(e=>e.trusted));const o=c.createElement("p",null,n.__("A trusted Jupyter notebook may execute hidden malicious code when you open it."),c.createElement("br",null),n.__('Selecting "Trust" will re-render this notebook in a trusted state.'),c.createElement("br",null),n.__("For more information, see")," ",c.createElement("a",{href:"https://jupyter-server.readthedocs.io/en/stable/operators/security.html",target:"_blank",rel:"noopener noreferrer"},n.__("the Jupyter security documentation")),".");if(s){return(0,i.showDialog)({body:n.__("Notebook is already trusted"),buttons:[i.Dialog.okButton()]}).then((()=>undefined))}return(0,i.showDialog)({body:o,title:n.__("Trust this notebook?"),buttons:[i.Dialog.cancelButton(),i.Dialog.warnButton({label:n.__("Trust"),ariaLabel:n.__("Confirm Trusting this notebook")})]}).then((t=>{if(t.button.accept){if(e.model){for(const t of e.model.cells){t.trusted=true}}}}))}e.trust=fe})(m||(m={}));var g;(function(e){e.executed=new d.Signal({});e.executionScheduled=new d.Signal({});e.selectionExecuted=new d.Signal({});function t(e){var t,n;return{wasFocused:e.node.contains(document.activeElement),activeCellId:(n=(t=e.activeCell)===null||t===void 0?void 0:t.model.id)!==null&&n!==void 0?n:null}}e.getState=t;function n(e,t,n=false){const{activeCell:i,activeCellIndex:s}=e;if(t.wasFocused||e.mode==="edit"){e.activate()}if(n&&i){e.scrollToItem(s,"smart",.05).catch((e=>{}))}}e.handleState=n;function l(e,t,n=false){var i;if(t.wasFocused||e.mode==="edit"){e.activate()}if(n&&t.activeCellId){const n=e.widgets.findIndex((e=>e.model.id===t.activeCellId));if((i=e.widgets[n])===null||i===void 0?void 0:i.inputArea){e.scrollToItem(n).catch((e=>{}))}}}e.handleRunState=l;function c(t,n,i,s){t.mode="command";let o=t.activeCellIndex;const r=t.widgets.filter(((e,n)=>{const i=t.isSelectedOrActive(e);if(i){o=n}return i}));t.activeCellIndex=o;t.deselectAll();return Promise.all(r.map((e=>h(t,e,n,i,s)))).then((n=>{if(t.isDisposed){return false}e.selectionExecuted.emit({notebook:t,lastCell:t.widgets[o]});t.update();return n.every((e=>e))})).catch((n=>{if(n.message.startsWith("KernelReplyNotOK")){r.map((e=>{if(e.model.type==="code"&&e.model.executionCount==null){e.setPrompt("")}}))}else{throw n}e.selectionExecuted.emit({notebook:t,lastCell:t.widgets[o]});t.update();return false}))}e.runSelected=c;async function h(t,n,o,a,l){var d,c,h;l=l||r.nullTranslator;const u=l.load("jupyterlab");switch(n.model.type){case"markdown":n.rendered=true;n.inputHidden=false;e.executed.emit({notebook:t,cell:n,success:true});break;case"code":if(o){if(o.isTerminating){await(0,i.showDialog)({title:u.__("Kernel Terminating"),body:u.__("The kernel for %1 appears to be terminating. You can not run any cell for now.",(d=o.session)===null||d===void 0?void 0:d.path),buttons:[i.Dialog.okButton()]});break}if(o.pendingInput){await(0,i.showDialog)({title:u.__("Cell not executed due to pending input"),body:u.__("The cell has not been executed to avoid kernel deadlock as there is another pending input! Submit your pending input and try again."),buttons:[i.Dialog.okButton()]});return false}if(o.hasNoKernel){const e=await o.startKernel();if(e&&a){await a.selectKernel(o)}}if(o.hasNoKernel){n.model.sharedModel.transact((()=>{n.model.clearExecution()}));return true}const r=(h=(c=t.model)===null||c===void 0?void 0:c.deletedCells)!==null&&h!==void 0?h:[];e.executionScheduled.emit({notebook:t,cell:n});let l=false;try{const e=await s.CodeCell.execute(n,o,{deletedCells:r,recordTiming:t.notebookConfig.recordTiming});r.splice(0,r.length);l=(()=>{if(n.isDisposed){return false}if(!e){return true}if(e.content.status==="ok"){const i=e.content;if(i.payload&&i.payload.length){g(i,t,n)}return true}else{throw new p(e.content)}})()}catch(m){if(n.isDisposed||m.message.startsWith("Canceled")){l=false}else{e.executed.emit({notebook:t,cell:n,success:false,error:m});throw m}}if(l){e.executed.emit({notebook:t,cell:n,success:true})}return l}n.model.sharedModel.transact((()=>{n.model.clearExecution()}),false);break;default:break}return Promise.resolve(true)}function g(e,t,n){var i;const s=(i=e.payload)===null||i===void 0?void 0:i.filter((e=>e.source==="set_next_input"))[0];if(!s){return}const o=s.text;const r=s.replace;if(r){n.model.sharedModel.setSource(o);return}const l=t.model.sharedModel;const d=t.model.cells;const c=(0,a.findIndex)(d,(e=>e===n.model));if(c===-1){l.insertCell(l.cells.length,{cell_type:"code",source:o,metadata:{trusted:false}})}else{l.insertCell(c+1,{cell_type:"code",source:o,metadata:{trusted:false}})}}function f(e){return e.widgets.filter((t=>e.isSelectedOrActive(t))).map((e=>e.model.toJSON())).map((e=>{if(e.metadata.deletable!==undefined){delete e.metadata.deletable}return e}))}e.selectedCells=f;function v(s,o){if(!s.model||!s.activeCell){return}const r=t(s);const a=i.Clipboard.getInstance();s.mode="command";a.clear();const l=e.selectedCells(s);a.setData(u,l);if(o){b(s)}else{s.deselectAll()}if(o){s.lastClipboardInteraction="cut"}else{s.lastClipboardInteraction="copy"}n(s,r)}e.copyOrCut=v;function _(e,t){const n=e.model.sharedModel;e.widgets.forEach(((i,s)=>{if(!e.isSelectedOrActive(i)){return}if(i.model.type!==t){const e=i.model.toJSON();n.transact((()=>{n.deleteCell(s);if(t==="code"){e.metadata.trusted=true}else{e.metadata.trusted=undefined}const i=n.insertCell(s,{cell_type:t,source:e.source,metadata:e.metadata});if(e.attachments&&["markdown","raw"].includes(t)){i.attachments=e.attachments}}))}if(t==="markdown"){i=e.widgets[s];i.rendered=false}}));e.deselectAll()}e.changeCellType=_;function b(e){const t=e.model;const n=t.sharedModel;const i=[];e.mode="command";e.widgets.forEach(((t,n)=>{var s;const o=t.model.getMetadata("deletable")!==false;if(e.isSelectedOrActive(t)&&o){i.push(n);(s=e.model)===null||s===void 0?void 0:s.deletedCells.push(t.model.id)}}));if(i.length>0){n.transact((()=>{i.reverse().forEach((e=>{n.deleteCell(e)}));if(n.cells.length==i.length){n.insertCell(0,{cell_type:e.notebookConfig.defaultCell,metadata:e.notebookConfig.defaultCell==="code"?{trusted:true}:{}})}}));e.activeCellIndex=i[0]-i.length+1}e.deselectAll()}e.deleteCells=b;function y(e,t){let n=e.sharedModel.getSource();const i=/^(#+\s*)|^(\s*)/;const s=Array(t+1).join("#")+" ";const o=i.exec(n);if(o){n=n.slice(o[0].length)}e.sharedModel.setSource(s+n)}e.setMarkdownHeader=y;let w;(function(t){function n(e,t,n=false,i=false){let s=t.widgets.indexOf(e)-(n?1:0);while(s>=0){let e=m.getHeadingInfo(t.widgets[s]);if(e.isHeading){return i?s:t.widgets[s]}s--}return i?-1:null}t.findParentHeading=n;function i(t,n,i=false){let s=e.Headings.determineHeadingLevel(t,n);if(s==-1){s=1}let o=n.widgets.indexOf(t)-1;while(o>=0){let e=n.widgets[o];let t=m.getHeadingInfo(e);if(t.isHeading&&t.headingLevel<=s){return i?o:e}o--}return i?-1:null}t.findLowerEqualLevelParentHeadingAbove=i;function s(t,n,i=false){let s=e.Headings.determineHeadingLevel(t,n);if(s==-1){s=1}let o=n.widgets.indexOf(t)+1;while(o{}))}i.deselectAll();e.handleState(i,r,true);i.mode="edit";i.widgets[t].setHidden(false)}t.insertHeadingAboveCellIndex=l})(w=e.Headings||(e.Headings={}))})(g||(g={}));class f{constructor(e){this.model=e;this._cellMap=new WeakMap;this._changed=new d.Signal(this);this._isDisposed=false;this._insertCells(0,this.model.cells);this.model.changed.connect(this._onSharedModelChanged,this)}get changed(){return this._changed}get isDisposed(){return this._isDisposed}get length(){return this.model.cells.length}*[Symbol.iterator](){for(const e of this.model.cells){yield this._cellMap.get(e)}}dispose(){var e;if(this._isDisposed){return}this._isDisposed=true;for(const t of this.model.cells){(e=this._cellMap.get(t))===null||e===void 0?void 0:e.dispose()}d.Signal.clearData(this)}get(e){return this._cellMap.get(this.model.cells[e])}_insertCells(e,t){t.forEach((e=>{let t;switch(e.cell_type){case"code":{t=new s.CodeCellModel({sharedModel:e});break}case"markdown":{t=new s.MarkdownCellModel({sharedModel:e});break}default:{t=new s.RawCellModel({sharedModel:e})}}this._cellMap.set(e,t);e.disposed.connect((()=>{t.dispose();this._cellMap.delete(e)}))}));return this.length}_onSharedModelChanged(e,t){var n;let i=0;const s=new Array;(n=t.cellsChange)===null||n===void 0?void 0:n.forEach((e=>{if(e.insert!=null){this._insertCells(i,e.insert);s.push({type:"add",newIndex:i,newValues:e.insert.map((e=>this._cellMap.get(e))),oldIndex:-2,oldValues:[]});i+=e.insert.length}else if(e.delete!=null){s.push({type:"remove",newIndex:-1,newValues:[],oldIndex:i,oldValues:new Array(e.delete).fill(undefined)})}else if(e.retain!=null){i+=e.retain}}));s.forEach((e=>this._changed.emit(e)))}}var v=n(4148);const _="jp-Notebook-toolbarCellType";const b="jp-Notebook-toolbarCellTypeDropdown";var y;(function(e){function t(e,t){const n=(t||r.nullTranslator).load("jupyterlab");function s(){if(e.context.model.readOnly){return(0,i.showDialog)({title:n.__("Cannot Save"),body:n.__("Document is read-only"),buttons:[i.Dialog.okButton()]})}void e.context.save().then((()=>{if(!e.isDisposed){return e.context.createCheckpoint()}}))}return(0,v.addToolbarButtonClass)(v.ReactWidget.create(c.createElement(v.UseSignal,{signal:e.context.fileChanged},(()=>c.createElement(v.ToolbarButtonComponent,{icon:v.saveIcon,onClick:s,tooltip:n.__("Save the notebook contents and create checkpoint"),enabled:!!(e&&e.context&&e.context.contentsModel&&e.context.contentsModel.writable)})))))}e.createSaveButton=t;function n(e,t){const n=(t||r.nullTranslator).load("jupyterlab");return new v.ToolbarButton({icon:v.addIcon,onClick:()=>{m.insertBelow(e.content)},tooltip:n.__("Insert a cell below")})}e.createInsertButton=n;function s(e,t){const n=(t||r.nullTranslator).load("jupyterlab");return new v.ToolbarButton({icon:v.cutIcon,onClick:()=>{m.cut(e.content)},tooltip:n.__("Cut the selected cells")})}e.createCutButton=s;function o(e,t){const n=(t||r.nullTranslator).load("jupyterlab");return new v.ToolbarButton({icon:v.copyIcon,onClick:()=>{m.copy(e.content)},tooltip:n.__("Copy the selected cells")})}e.createCopyButton=o;function a(e,t){const n=(t||r.nullTranslator).load("jupyterlab");return new v.ToolbarButton({icon:v.pasteIcon,onClick:()=>{m.paste(e.content)},tooltip:n.__("Paste cells from the clipboard")})}e.createPasteButton=a;function l(e,t,n){const i=(n!==null&&n!==void 0?n:r.nullTranslator).load("jupyterlab");return new v.ToolbarButton({icon:v.runIcon,onClick:()=>{void m.runAndAdvance(e.content,e.sessionContext,t,n)},tooltip:i.__("Run the selected cells and advance")})}e.createRunButton=l;function d(e,t,n){const s=(n!==null&&n!==void 0?n:r.nullTranslator).load("jupyterlab");return new v.ToolbarButton({icon:v.fastForwardIcon,onClick:()=>{const s=t!==null&&t!==void 0?t:new i.SessionContextDialogs({translator:n});void s.restart(e.sessionContext).then((t=>{if(t){void m.runAll(e.content,e.sessionContext,s,n)}return t}))},tooltip:s.__("Restart the kernel, then re-run the whole notebook")})}e.createRestartRunAllButton=d;function h(e,t){return new w(e.content,t)}e.createCellTypeItem=h;function u(e,r,c){return[{name:"save",widget:t(e,c)},{name:"insert",widget:n(e,c)},{name:"cut",widget:s(e,c)},{name:"copy",widget:o(e,c)},{name:"paste",widget:a(e,c)},{name:"run",widget:l(e,r,c)},{name:"interrupt",widget:i.Toolbar.createInterruptButton(e.sessionContext,c)},{name:"restart",widget:i.Toolbar.createRestartButton(e.sessionContext,r,c)},{name:"restart-and-run",widget:d(e,r,c)},{name:"cellType",widget:h(e,c)},{name:"spacer",widget:v.Toolbar.createSpacerItem()},{name:"kernelName",widget:i.Toolbar.createKernelNameItem(e.sessionContext,r,c)}]}e.getDefaultItems=u})(y||(y={}));class w extends v.ReactWidget{constructor(e,t){super();this.handleChange=e=>{if(e.target.value!=="-"){m.changeCellType(this._notebook,e.target.value);this._notebook.activate()}};this.handleKeyDown=e=>{if(e.keyCode===13){this._notebook.activate()}};this._trans=(t||r.nullTranslator).load("jupyterlab");this.addClass(_);this._notebook=e;if(e.model){this.update()}e.activeCellChanged.connect(this.update,this);e.selectionChanged.connect(this.update,this)}render(){let e="-";if(this._notebook.activeCell){e=this._notebook.activeCell.model.type}for(const t of this._notebook.widgets){if(this._notebook.isSelectedOrActive(t)){if(t.model.type!==e){e="-";break}}}return c.createElement(v.HTMLSelect,{className:b,onChange:this.handleChange,onKeyDown:this.handleKeyDown,value:e,"aria-label":this._trans.__("Cell type"),title:this._trans.__("Select the cell type")},c.createElement("option",{value:"-"},"-"),c.createElement("option",{value:"code"},this._trans.__("Code")),c.createElement("option",{value:"markdown"},this._trans.__("Markdown")),c.createElement("option",{value:"raw"},this._trans.__("Raw")))}}var C=n(85176);var x=n(96306);function S(e){const t=e.translator||r.nullTranslator;const n=(0,i.translateKernelStatuses)(t);const s=t.load("jupyterlab");const o=e.state;const a=e.displayOption.showOnToolBar;const l=e.displayOption.showProgress;const d=a?"down":"up";const c=h().createElement("div",null);if(!o){return c}const u=o.kernelStatus;const p={alignSelf:"normal",height:"24px"};const m=o.totalTime;const g=o.scheduledCellNumber||0;const f=o.scheduledCell.size||0;const _=g-f;let b=100*_/g;let y=l?"":"hidden";if(!l&&b<100){b=0}const w=e=>h().createElement(C.ProgressCircle,{progress:e,width:16,height:24,label:s.__("Kernel status")});const x=e=>s.__("Kernel status: %1",e);const S=(e,t,i)=>h().createElement("div",{className:"jp-Notebook-ExecutionIndicator",title:l?"":x(n[e]),"data-status":e},t,h().createElement("div",{className:`jp-Notebook-ExecutionIndicator-tooltip ${d} ${y}`},h().createElement("span",null," ",x(n[e])," "),i));if(o.kernelStatus==="connecting"||o.kernelStatus==="disconnected"||o.kernelStatus==="unknown"){return S(u,h().createElement(v.offlineBoltIcon.react,{...p}),[])}if(o.kernelStatus==="starting"||o.kernelStatus==="terminating"||o.kernelStatus==="restarting"||o.kernelStatus==="initializing"){return S(u,h().createElement(v.circleIcon.react,{...p}),[])}if(o.executionStatus==="busy"){return S("busy",w(b),[h().createElement("span",{key:0},s.__(`Executed ${_}/${g} cells`)),h().createElement("span",{key:1},s._n("Elapsed time: %1 second","Elapsed time: %1 seconds",m))])}else{const e=o.kernelStatus==="busy"?0:100;const t=o.kernelStatus==="busy"||m===0?[]:[h().createElement("span",{key:0},s._n("Executed %1 cell","Executed %1 cells",g)),h().createElement("span",{key:1},s._n("Elapsed time: %1 second","Elapsed time: %1 seconds",m))];return S(o.kernelStatus,w(e),t)}}class k extends v.VDomRenderer{constructor(e,t=true){super(new k.Model);this.translator=e||r.nullTranslator;this.addClass("jp-mod-highlighted")}render(){if(this.model===null||!this.model.renderFlag){return h().createElement("div",null)}else{const e=this.model.currentNotebook;if(!e){return h().createElement(S,{displayOption:this.model.displayOption,state:undefined,translator:this.translator})}return h().createElement(S,{displayOption:this.model.displayOption,state:this.model.executionState(e),translator:this.translator})}}}(function(e){class t extends v.VDomModel{constructor(){super();this._notebookExecutionProgress=new WeakMap;this._displayOption={showOnToolBar:true,showProgress:true};this._renderFlag=true}attachNotebook(e){var t,n,i,s;if(e&&e.content&&e.context){const o=e.content;const r=e.context;this._currentNotebook=o;if(!this._notebookExecutionProgress.has(o)){this._notebookExecutionProgress.set(o,{executionStatus:"idle",kernelStatus:"idle",totalTime:0,interval:0,timeout:0,scheduledCell:new Set,scheduledCellNumber:0,needReset:true});const e=this._notebookExecutionProgress.get(o);const a=t=>{if(e){e.kernelStatus=t.kernelDisplayStatus}this.stateChanged.emit(void 0)};r.statusChanged.connect(a,this);const l=t=>{if(e){e.kernelStatus=t.kernelDisplayStatus}this.stateChanged.emit(void 0)};r.connectionStatusChanged.connect(l,this);r.disposed.connect((e=>{e.connectionStatusChanged.disconnect(l,this);e.statusChanged.disconnect(a,this)}));const d=(e,t)=>{const n=t.msg;const i=n.header.msg_id;if(n.header.msg_type==="execute_request"){this._cellScheduledCallback(o,i)}else if(x.KernelMessage.isStatusMsg(n)&&n.content.execution_state==="idle"){const e=n.parent_header.msg_id;this._cellExecutedCallback(o,e)}else if(x.KernelMessage.isStatusMsg(n)&&n.content.execution_state==="restarting"){this._restartHandler(o)}else if(n.header.msg_type==="execute_input"){this._startTimer(o)}};(n=(t=r.session)===null||t===void 0?void 0:t.kernel)===null||n===void 0?void 0:n.anyMessage.connect(d);(s=(i=r.session)===null||i===void 0?void 0:i.kernel)===null||s===void 0?void 0:s.disposed.connect((e=>e.anyMessage.disconnect(d)));const c=(t,n)=>{if(e){this._resetTime(e);this.stateChanged.emit(void 0);if(n.newValue){n.newValue.anyMessage.connect(d)}}};r.kernelChanged.connect(c);r.disposed.connect((e=>e.kernelChanged.disconnect(c)))}}}get currentNotebook(){return this._currentNotebook}get displayOption(){return this._displayOption}set displayOption(e){this._displayOption=e}executionState(e){return this._notebookExecutionProgress.get(e)}_scheduleSwitchToIdle(e){window.setTimeout((()=>{e.executionStatus="idle";clearInterval(e.interval);this.stateChanged.emit(void 0)}),150);e.timeout=window.setTimeout((()=>{e.needReset=true}),1e3)}_cellExecutedCallback(e,t){const n=this._notebookExecutionProgress.get(e);if(n&&n.scheduledCell.has(t)){n.scheduledCell.delete(t);if(n.scheduledCell.size===0){this._scheduleSwitchToIdle(n)}}}_restartHandler(e){const t=this._notebookExecutionProgress.get(e);if(t){t.scheduledCell.clear();this._scheduleSwitchToIdle(t)}}_startTimer(e){const t=this._notebookExecutionProgress.get(e);if(!t){return}if(t.scheduledCell.size>0){if(t.executionStatus!=="busy"){t.executionStatus="busy";clearTimeout(t.timeout);this.stateChanged.emit(void 0);t.interval=window.setInterval((()=>{this._tick(t)}),1e3)}}else{this._resetTime(t)}}_cellScheduledCallback(e,t){const n=this._notebookExecutionProgress.get(e);if(n&&!n.scheduledCell.has(t)){if(n.needReset){this._resetTime(n)}n.scheduledCell.add(t);n.scheduledCellNumber+=1}}_tick(e){e.totalTime+=1;this.stateChanged.emit(void 0)}_resetTime(e){e.totalTime=0;e.scheduledCellNumber=0;e.executionStatus="idle";e.scheduledCell=new Set;clearTimeout(e.timeout);clearInterval(e.interval);e.needReset=false}get renderFlag(){return this._renderFlag}updateRenderOption(e){if(this.displayOption.showOnToolBar){if(!e.showOnToolBar){this._renderFlag=false}else{this._renderFlag=true}}this.displayOption.showProgress=e.showProgress;this.stateChanged.emit(void 0)}}e.Model=t;function n(t,n,s){const o=new e(n);o.model.displayOption={showOnToolBar:true,showProgress:true};o.model.attachNotebook({content:t.content,context:t.sessionContext});if(s){s.then((e=>{const t=e=>{o.model.updateRenderOption(i(e))};e.changed.connect(t);t(e);o.disposed.connect((()=>{e.changed.disconnect(t)}))})).catch((e=>{console.error(e.message)}))}return o}e.createExecutionIndicatorItem=n;function i(e){let t=true;let n=true;const i=e.get("kernelStatus").composite;if(i){t=!i.showOnStatusBar;n=i.showProgress}return{showOnToolBar:t,showProgress:n}}e.getSettingValue=i})(k||(k={}));var j=n(32832);var M=n(87519);class E{constructor(e={}){var t,n;this.standaloneModel=false;this._dirty=false;this._readOnly=false;this._contentChanged=new d.Signal(this);this._stateChanged=new d.Signal(this);this._isDisposed=false;this._metadataChanged=new d.Signal(this);this.standaloneModel=typeof e.sharedModel==="undefined";if(e.sharedModel){this.sharedModel=e.sharedModel}else{this.sharedModel=M.YNotebook.create({disableDocumentWideUndoRedo:(t=e.disableDocumentWideUndoRedo)!==null&&t!==void 0?t:true,data:{nbformat:j.MAJOR_VERSION,nbformat_minor:j.MINOR_VERSION,metadata:{kernelspec:{name:"",display_name:""},language_info:{name:(n=e.languagePreference)!==null&&n!==void 0?n:""}}}})}this._cells=new f(this.sharedModel);this._trans=(e.translator||r.nullTranslator).load("jupyterlab");this._deletedCells=[];this._collaborationEnabled=!!(e===null||e===void 0?void 0:e.collaborationEnabled);this._cells.changed.connect(this._onCellsChanged,this);this.sharedModel.changed.connect(this._onStateChanged,this);this.sharedModel.metadataChanged.connect(this._onMetadataChanged,this)}get contentChanged(){return this._contentChanged}get metadataChanged(){return this._metadataChanged}get stateChanged(){return this._stateChanged}get cells(){return this._cells}get dirty(){return this._dirty}set dirty(e){const t=this._dirty;if(e===t){return}this._dirty=e;this.triggerStateChange({name:"dirty",oldValue:t,newValue:e})}get readOnly(){return this._readOnly}set readOnly(e){if(e===this._readOnly){return}const t=this._readOnly;this._readOnly=e;this.triggerStateChange({name:"readOnly",oldValue:t,newValue:e})}get metadata(){return this.sharedModel.metadata}get nbformat(){return this.sharedModel.nbformat}get nbformatMinor(){return this.sharedModel.nbformat_minor}get defaultKernelName(){var e;const t=this.getMetadata("kernelspec");return(e=t===null||t===void 0?void 0:t.name)!==null&&e!==void 0?e:""}get deletedCells(){return this._deletedCells}get defaultKernelLanguage(){var e;const t=this.getMetadata("language_info");return(e=t===null||t===void 0?void 0:t.name)!==null&&e!==void 0?e:""}get collaborative(){return this._collaborationEnabled}dispose(){if(this.isDisposed){return}this._isDisposed=true;const e=this.cells;this._cells=null;e.dispose();if(this.standaloneModel){this.sharedModel.dispose()}d.Signal.clearData(this)}deleteMetadata(e){return this.sharedModel.deleteMetadata(e)}getMetadata(e){return this.sharedModel.getMetadata(e)}setMetadata(e,t){if(typeof t==="undefined"){this.sharedModel.deleteMetadata(e)}else{this.sharedModel.setMetadata(e,t)}}toString(){return JSON.stringify(this.toJSON())}fromString(e){this.fromJSON(JSON.parse(e))}toJSON(){this._ensureMetadata();return this.sharedModel.toJSON()}fromJSON(e){var t,n;const s=l.JSONExt.deepCopy(e);const o=e.metadata.orig_nbformat;s.nbformat=Math.max(e.nbformat,j.MAJOR_VERSION);if(s.nbformat!==e.nbformat||s.nbformat_minoro;let t;if(e){t=this._trans.__(`This notebook has been converted from an older notebook format (v%1)\nto the current notebook format (v%2).\nThe next time you save this notebook, the current notebook format (v%2) will be used.\n'Older versions of Jupyter may not be able to read the new format.' To preserve the original format version,\nclose the notebook without saving it.`,o,s.nbformat)}else{t=this._trans.__(`This notebook has been converted from an newer notebook format (v%1)\nto the current notebook format (v%2).\nThe next time you save this notebook, the current notebook format (v%2) will be used.\nSome features of the original notebook may not be available.' To preserve the original format version,\nclose the notebook without saving it.`,o,s.nbformat)}void(0,i.showDialog)({title:this._trans.__("Notebook converted"),body:t,buttons:[i.Dialog.okButton({label:this._trans.__("Ok")})]})}if(((n=(t=s.cells)===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0)===0){s["cells"]=[{cell_type:"code",source:"",metadata:{trusted:true}}]}this.sharedModel.fromJSON(s);this._ensureMetadata();this.dirty=true}_onCellsChanged(e,t){switch(t.type){case"add":t.newValues.forEach((e=>{e.contentChanged.connect(this.triggerContentChange,this)}));break;case"remove":break;case"set":t.newValues.forEach((e=>{e.contentChanged.connect(this.triggerContentChange,this)}));break;default:break}this.triggerContentChange()}_onMetadataChanged(e,t){this._metadataChanged.emit(t);this.triggerContentChange()}_onStateChanged(e,t){if(t.stateChange){t.stateChange.forEach((e=>{if(e.name==="dirty"){this.dirty=e.newValue}else if(e.oldValue!==e.newValue){this.triggerStateChange({newValue:undefined,oldValue:undefined,...e})}}))}}_ensureMetadata(e=""){if(!this.getMetadata("language_info")){this.sharedModel.setMetadata("language_info",{name:e})}if(!this.getMetadata("kernelspec")){this.sharedModel.setMetadata("kernelspec",{name:"",display_name:""})}}triggerStateChange(e){this._stateChanged.emit(e)}triggerContentChange(){this._contentChanged.emit(void 0);this.dirty=true}get isDisposed(){return this._isDisposed}}class I{constructor(e={}){var t,n;this._disposed=false;this._disableDocumentWideUndoRedo=(t=e.disableDocumentWideUndoRedo)!==null&&t!==void 0?t:true;this._collaborative=(n=e.collaborative)!==null&&n!==void 0?n:true}get disableDocumentWideUndoRedo(){return this._disableDocumentWideUndoRedo}set disableDocumentWideUndoRedo(e){this._disableDocumentWideUndoRedo=e}get name(){return"notebook"}get contentType(){return"notebook"}get fileFormat(){return"json"}get collaborative(){return this._collaborative}get isDisposed(){return this._disposed}dispose(){this._disposed=true}createNew(e={}){return new E({languagePreference:e.languagePreference,sharedModel:e.sharedModel,collaborationEnabled:e.collaborationEnabled&&this.collaborative,disableDocumentWideUndoRedo:this._disableDocumentWideUndoRedo})}preferredLanguage(e){return""}}function T(e){const t=(e.translator||r.nullTranslator).load("jupyterlab");return c.createElement(C.TextItem,{source:t.__("Mode: %1",e.modeNames[e.notebookMode])})}class D extends v.VDomRenderer{constructor(e){super(new D.Model);this.translator=e||r.nullTranslator;this._trans=this.translator.load("jupyterlab");this._modeNames={command:this._trans.__("Command"),edit:this._trans.__("Edit")}}render(){if(!this.model){return null}this.node.title=this._trans.__("Notebook is in %1 mode",this._modeNames[this.model.notebookMode]);return c.createElement(T,{notebookMode:this.model.notebookMode,translator:this.translator,modeNames:this._modeNames})}}(function(e){class t extends v.VDomModel{constructor(){super(...arguments);this._onChanged=e=>{const t=this._notebookMode;if(this._notebook){this._notebookMode=e.mode}else{this._notebookMode="command"}this._triggerChange(t,this._notebookMode)};this._notebookMode="command";this._notebook=null}get notebookMode(){return this._notebookMode}set notebook(e){const t=this._notebook;if(t!==null){t.stateChanged.disconnect(this._onChanged,this);t.activeCellChanged.disconnect(this._onChanged,this);t.modelContentChanged.disconnect(this._onChanged,this)}const n=this._notebookMode;this._notebook=e;if(this._notebook===null){this._notebookMode="command"}else{this._notebookMode=this._notebook.mode;this._notebook.stateChanged.connect(this._onChanged,this);this._notebook.activeCellChanged.connect(this._onChanged,this);this._notebook.modelContentChanged.connect(this._onChanged,this)}this._triggerChange(n,this._notebookMode)}_triggerChange(e,t){if(e!==t){this.stateChanged.emit(void 0)}}}e.Model=t})(D||(D={}));var L=n(50253);class P extends L.WidgetLSPAdapter{constructor(e,t){super(e,t);this.editorWidget=e;this.options=t;this._type="code";this._readyDelegate=new l.PromiseDelegate;this._editorToCell=new Map;this.editor=e.content;this._cellToEditor=new WeakMap;Promise.all([this.widget.context.sessionContext.ready,this.connectionManager.ready]).then((async()=>{await this.initOnceReady();this._readyDelegate.resolve()})).catch(console.error)}get documentPath(){return this.widget.context.path}get mimeType(){var e;let t;let n=this.language_info();if(!n||!n.mimetype){t=this.widget.content.codeMimetype}else{t=n.mimetype}return Array.isArray(t)?(e=t[0])!==null&&e!==void 0?e:"text/plain":t}get languageFileExtension(){let e=this.language_info();if(!e||!e.file_extension){return}return e.file_extension.replace(".","")}get wrapperElement(){return this.widget.node}get editors(){if(this.isDisposed){return[]}let e=this.widget.content;this._editorToCell.clear();if(e.isDisposed){return[]}return e.widgets.map((e=>({ceEditor:this._getCellEditor(e),type:e.model.type,value:e.model.sharedModel.getSource()})))}get activeEditor(){return this.editor.activeCell?this._getCellEditor(this.editor.activeCell):undefined}get ready(){return this._readyDelegate.promise}getEditorIndexAt(e){let t=this._getCellAt(e);let n=this.widget.content;return n.widgets.findIndex((e=>t===e))}getEditorIndex(e){let t=this._editorToCell.get(e);return this.editor.widgets.findIndex((e=>t===e))}getEditorWrapper(e){let t=this._editorToCell.get(e);return t.node}async onKernelChanged(e,t){if(!t.newValue){return}try{const e=this._languageInfo;await(0,L.untilReady)(this.isReady,-1);await this._updateLanguageInfo();const t=this._languageInfo;if((e===null||e===void 0?void 0:e.name)!=t.name||(e===null||e===void 0?void 0:e.mimetype)!=(t===null||t===void 0?void 0:t.mimetype)||(e===null||e===void 0?void 0:e.file_extension)!=(t===null||t===void 0?void 0:t.file_extension)){console.log(`Changed to ${this._languageInfo.name} kernel, reconnecting`);this.reloadConnection()}else{console.log("Keeping old LSP connection as the new kernel uses the same langauge")}}catch(n){console.warn(n);this.reloadConnection()}}dispose(){if(this.isDisposed){return}this.widget.context.sessionContext.kernelChanged.disconnect(this.onKernelChanged,this);this.widget.content.activeCellChanged.disconnect(this._activeCellChanged,this);super.dispose();this._editorToCell.clear();d.Signal.clearData(this)}isReady(){var e;return!this.widget.isDisposed&&this.widget.context.isReady&&this.widget.content.isVisible&&this.widget.content.widgets.length>0&&((e=this.widget.context.sessionContext.session)===null||e===void 0?void 0:e.kernel)!=null}async handleCellChange(e,t){let n=[];let i=[];const s=this._type;if(t.type==="set"){let e=[];let o=[];if(t.newValues.length===t.oldValues.length){for(let n=0;ne.type===s))}if(i.length||n.length||t.type==="set"||t.type==="move"||t.type==="remove"){await this.updateDocuments()}for(let o of n){let e=this.widget.content.widgets.find((e=>e.model.id===o.id));if(!e){console.warn(`Widget for added cell with ID: ${o.id} not found!`);continue}this._getCellEditor(e)}}createVirtualDocument(){return new L.VirtualDocument({language:this.language,foreignCodeExtractors:this.options.foreignCodeExtractorsManager,path:this.documentPath,fileExtension:this.languageFileExtension,standalone:false,hasLspSupportedFile:false})}language_info(){return this._languageInfo}async initOnceReady(){await(0,L.untilReady)(this.isReady.bind(this),-1);await this._updateLanguageInfo();this.initVirtual();this.connectDocument(this.virtualDocument,false).catch(console.warn);this.widget.context.sessionContext.kernelChanged.connect(this.onKernelChanged,this);this.widget.content.activeCellChanged.connect(this._activeCellChanged,this);this._connectModelSignals(this.widget);this.editor.modelChanged.connect((e=>{console.warn("Model changed, connecting cell change handler; this is not something we were expecting");this._connectModelSignals(e)}))}_connectModelSignals(e){if(e.model===null){console.warn(`Model is missing for notebook ${e}, cannot connect cell changed signal!`)}else{e.model.cells.changed.connect(this.handleCellChange,this)}}async _updateLanguageInfo(){var e,t,n,i;const s=(i=await((n=(t=(e=this.widget.context.sessionContext)===null||e===void 0?void 0:e.session)===null||t===void 0?void 0:t.kernel)===null||n===void 0?void 0:n.info))===null||i===void 0?void 0:i.language_info;if(s){this._languageInfo=s}else{throw new Error("Language info update failed (no session, kernel, or info available)")}}_activeCellChanged(e,t){if(!t||t.model.type!==this._type){return}this._activeEditorChanged.emit({editor:this._getCellEditor(t)})}_getCellAt(e){let t=this.virtualDocument.getEditorAtVirtualLine(e);return this._editorToCell.get(t)}_getCellEditor(e){if(!this._cellToEditor.has(e)){const t=Object.freeze({getEditor:()=>e.editor,ready:async()=>{await e.ready;return e.editor},reveal:async()=>{await this.editor.scrollToCell(e);return e.editor}});this._cellToEditor.set(e,t);this._editorToCell.set(t,e);e.disposed.connect((()=>{this._cellToEditor.delete(e);this._editorToCell.delete(t);this._editorRemoved.emit({editor:t})}));this._editorAdded.emit({editor:t})}return this._cellToEditor.get(e)}}var A=n(7005);var R=n(20631);var N=n(28821);var O=n(85448);class B extends O.Widget{constructor(){super();this._items=[];this.layout=new O.PanelLayout;this.addClass("jp-RankedPanel")}addWidget(e,t){const n={widget:e,rank:t};const i=a.ArrayExt.upperBound(this._items,n,z.itemCmp);a.ArrayExt.insert(this._items,i,n);const s=this.layout;s.insertWidget(i,e)}onChildRemoved(e){const t=a.ArrayExt.findFirstIndex(this._items,(t=>t.widget===e.child));if(t!==-1){a.ArrayExt.removeAt(this._items,t)}}}class F extends O.Widget{constructor(e){super();this.addClass("jp-NotebookTools");this.translator=e.translator||r.nullTranslator;this._tools=[];this.layout=new O.PanelLayout;this._tracker=e.tracker;this._tracker.currentChanged.connect(this._onActiveNotebookPanelChanged,this);this._tracker.activeCellChanged.connect(this._onActiveCellChanged,this);this._tracker.selectionChanged.connect(this._onSelectionChanged,this);this._onActiveNotebookPanelChanged();this._onActiveCellChanged();this._onSelectionChanged()}get activeCell(){return this._tracker.activeCell}get selectedCells(){const e=this._tracker.currentWidget;if(!e){return[]}const t=e.content;return t.widgets.filter((e=>t.isSelectedOrActive(e)))}get activeNotebookPanel(){return this._tracker.currentWidget}addItem(e){var t;const n=e.tool;const i=(t=e.rank)!==null&&t!==void 0?t:100;let s;const o=this._tools.find((t=>t.section===e.section));if(o)s=o.panel;else{throw new Error(`The section ${e.section} does not exist`)}n.addClass("jp-NotebookTools-tool");s.addWidget(n,i);n.notebookTools=this;N.MessageLoop.sendMessage(n,F.ActiveNotebookPanelMessage);N.MessageLoop.sendMessage(n,F.ActiveCellMessage)}addSection(e){var t;const n=e.sectionName;const i=e.label||e.sectionName;const s=e.tool;let o=(t=e.rank)!==null&&t!==void 0?t:null;const r=new B;r.title.label=i;if(s)r.addWidget(s,0);this._tools.push({section:n,panel:r,rank:o});if(o!=null)this.layout.insertWidget(o,new v.Collapser({widget:r}));else{let e=null;const t=this.layout;for(let n=0;n{const t=this.cells[e].model.sharedModel.getSource().split("\n").length;return Z.DEFAULT_EDITOR_LINE_HEIGHT*t+Z.DEFAULT_CELL_MARGIN};this.widgetRenderer=e=>this.cells[e];this._estimatedWidgetSize=Z.DEFAULT_CELL_SIZE}}Z.DEFAULT_CELL_SIZE=39;Z.DEFAULT_EDITOR_LINE_HEIGHT=17;Z.DEFAULT_CELL_MARGIN=22;class G extends v.WindowedLayout{constructor(){super(...arguments);this._header=null;this._footer=null;this._willBeRemoved=null;this._topHiddenCodeCells=-1}get header(){return this._header}set header(e){var t;if(this._header&&this._header.isAttached){O.Widget.detach(this._header)}this._header=e;if(this._header&&((t=this.parent)===null||t===void 0?void 0:t.isAttached)){O.Widget.attach(this._header,this.parent.node)}}get footer(){return this._footer}set footer(e){var t;if(this._footer&&this._footer.isAttached){O.Widget.detach(this._footer)}this._footer=e;if(this._footer&&((t=this.parent)===null||t===void 0?void 0:t.isAttached)){O.Widget.attach(this._footer,this.parent.node)}}dispose(){var e,t;if(this.isDisposed){return}(e=this._header)===null||e===void 0?void 0:e.dispose();(t=this._footer)===null||t===void 0?void 0:t.dispose();super.dispose()}removeWidget(e){const t=this.widgets.indexOf(e);if(t>=0){this.removeWidgetAt(t)}else if(e===this._willBeRemoved&&this.parent){this.detachWidget(t,e)}}attachWidget(e,t){const n=t.isPlaceholder();if(this.parent.isAttached){N.MessageLoop.sendMessage(t,O.Widget.Msg.BeforeAttach)}if(!n&&t instanceof s.CodeCell&&t.node.parentElement){t.node.style.display="";this._topHiddenCodeCells=-1}else{const e=this._findNearestChildBinarySearch(this.parent.viewportNode.childElementCount-1,0,parseInt(t.dataset.windowedListIndex,10)+1);let n=this.parent.viewportNode.children[e];this.parent.viewportNode.insertBefore(t.node,n);if(this.parent.isAttached){N.MessageLoop.sendMessage(t,O.Widget.Msg.AfterAttach)}}t.inViewport=true}detachWidget(e,t){t.inViewport=false;if(t instanceof s.CodeCell&&!t.node.classList.contains(J)&&t!==this._willBeRemoved){t.node.style.display="none";this._topHiddenCodeCells=-1}else{if(this.parent.isAttached){N.MessageLoop.sendMessage(t,O.Widget.Msg.BeforeDetach)}this.parent.viewportNode.removeChild(t.node);t.node.classList.remove(K)}if(this.parent.isAttached){N.MessageLoop.sendMessage(t,O.Widget.Msg.AfterDetach)}}moveWidget(e,t,n){if(this._topHiddenCodeCells<0){this._topHiddenCodeCells=0;for(let e=0;en){e=i-1}}if(t>0){return t}else{return 0}}}const Y="jp-Notebook-footer";const X="jpTraversable";class Q extends O.Widget{constructor(e){super({node:document.createElement("button")});this.notebook=e;this.node.dataset[X]="true";const t=e.translator.load("jupyterlab");this.addClass(Y);this.node.innerText=t.__("Click to add a cell.")}handleEvent(e){switch(e.type){case"click":this.onClick();break;case"keydown":if(e.key==="ArrowUp"){this.onArrowUp();break}}}onClick(){if(this.notebook.widgets.length>0){this.notebook.activeCellIndex=this.notebook.widgets.length-1}m.insertBelow(this.notebook)}onArrowUp(){}onAfterAttach(e){super.onAfterAttach(e);this.node.addEventListener("click",this);this.node.addEventListener("keydown",this)}onBeforeDetach(e){this.node.removeEventListener("click",this);this.node.removeEventListener("keydown",this);super.onBeforeDetach(e)}}const ee="jpKernelUser";const te="jpCodeRunner";const ne="jpUndoer";const ie="jpTraversable";const se="jp-Notebook";const oe="jp-Notebook-cell";const re="jp-mod-editMode";const ae="jp-mod-commandMode";const le="jp-mod-active";const de="jp-mod-selected";const ce="jp-mod-multiSelected";const he="jp-mod-unconfined";const ue="jp-dragImage";const pe="jp-dragImage-singlePrompt";const me="jp-dragImage-content";const ge="jp-dragImage-prompt";const fe="jp-dragImage-multipleBack";const ve="application/vnd.jupyter.cells";const _e=5;const be=50;const ye="jp-collapseHeadingButton";const we="jp-mod-showHiddenCellsButton";const Ce="jp-mod-sideBySide";if(window.requestIdleCallback===undefined){window.requestIdleCallback=function(e){let t=Date.now();return setTimeout((function(){e({didTimeout:false,timeRemaining:function(){return Math.max(0,50-(Date.now()-t))}})}),1)};window.cancelIdleCallback=function(e){clearTimeout(e)}}class xe extends v.WindowedList{constructor(e){var t,n,i,s,o;const a=new Array;super({model:new Z(a,{overscanCount:(n=(t=e.notebookConfig)===null||t===void 0?void 0:t.overscanCount)!==null&&n!==void 0?n:xe.defaultNotebookConfig.overscanCount,windowingActive:((s=(i=e.notebookConfig)===null||i===void 0?void 0:i.windowingMode)!==null&&s!==void 0?s:xe.defaultNotebookConfig.windowingMode)==="full"}),layout:new G});this._cellCollapsed=new d.Signal(this);this._cellInViewportChanged=new d.Signal(this);this._renderingLayoutChanged=new d.Signal(this);this.addClass(se);this.cellsArray=a;this._idleCallBack=null;this._editorConfig=xe.defaultEditorConfig;this._notebookConfig=xe.defaultNotebookConfig;this._mimetype="text/plain";this._notebookModel=null;this._modelChanged=new d.Signal(this);this._modelContentChanged=new d.Signal(this);this.node.dataset[ee]="true";this.node.dataset[ne]="true";this.node.dataset[te]="true";this.node.dataset[ie]="true";this.rendermime=e.rendermime;this.translator=e.translator||r.nullTranslator;this.contentFactory=e.contentFactory;this.editorConfig=e.editorConfig||xe.defaultEditorConfig;this.notebookConfig=e.notebookConfig||xe.defaultNotebookConfig;this._updateNotebookConfig();this._mimetypeService=e.mimeTypeService;this.renderingLayout=(o=e.notebookConfig)===null||o===void 0?void 0:o.renderingLayout}get cellCollapsed(){return this._cellCollapsed}get cellInViewportChanged(){return this._cellInViewportChanged}get modelChanged(){return this._modelChanged}get modelContentChanged(){return this._modelContentChanged}get renderingLayoutChanged(){return this._renderingLayoutChanged}get model(){return this._notebookModel}set model(e){var t;e=e||null;if(this._notebookModel===e){return}const n=this._notebookModel;this._notebookModel=e;this._onModelChanged(n,e);this.onModelChanged(n,e);this._modelChanged.emit(void 0);this.viewModel.itemsList=(t=e===null||e===void 0?void 0:e.cells)!==null&&t!==void 0?t:null}get codeMimetype(){return this._mimetype}get widgets(){return this.cellsArray}get editorConfig(){return this._editorConfig}set editorConfig(e){this._editorConfig=e;this._updateEditorConfig()}get notebookConfig(){return this._notebookConfig}set notebookConfig(e){this._notebookConfig=e;this._updateNotebookConfig()}get renderingLayout(){return this._renderingLayout}set renderingLayout(e){var t;this._renderingLayout=e;if(this._renderingLayout==="side-by-side"){this.node.classList.add(Ce)}else{this.node.classList.remove(Ce)}this._renderingLayoutChanged.emit((t=this._renderingLayout)!==null&&t!==void 0?t:"default")}dispose(){var e;if(this.isDisposed){return}this._notebookModel=null;(e=this.layout.header)===null||e===void 0?void 0:e.dispose();super.dispose()}moveCell(e,t,n=1){if(!this.model){return}const i=Math.min(this.model.cells.length-1,Math.max(0,t));if(i===e){return}const s=new Array(n);for(let o=0;o{this.layout.removeWidget(t)}))}}}addHeader(){const e=this.translator.load("jupyterlab");const t=new O.Widget;t.node.textContent=e.__("The notebook is empty. Click the + button on the toolbar to add a new cell.");this.layout.header=t}removeHeader(){var e;(e=this.layout.header)===null||e===void 0?void 0:e.dispose();this.layout.header=null}onModelChanged(e,t){}onModelContentChanged(e,t){this._modelContentChanged.emit(void 0)}onMetadataChanged(e,t){switch(t.key){case"language_info":this._updateMimetype();break;default:break}}onCellInserted(e,t){}onCellRemoved(e,t){}onUpdateRequest(e){if(this.notebookConfig.windowingMode==="defer"){void this._runOnIdleTime()}else{super.onUpdateRequest(e)}}_onModelChanged(e,t){var n;if(e){e.contentChanged.disconnect(this.onModelContentChanged,this);e.metadataChanged.disconnect(this.onMetadataChanged,this);e.cells.changed.disconnect(this._onCellsChanged,this);while(this.cellsArray.length){this._removeCell(0)}}if(!t){this._mimetype="text/plain";return}this._updateMimetype();const i=t.cells;const s=(n=t.collaborative)!==null&&n!==void 0?n:false;if(!s&&!i.length){t.sharedModel.insertCell(0,{cell_type:this.notebookConfig.defaultCell,metadata:this.notebookConfig.defaultCell==="code"?{trusted:true}:{}})}let o=-1;for(const r of i){this._insertCell(++o,r)}t.cells.changed.connect(this._onCellsChanged,this);t.metadataChanged.connect(this.onMetadataChanged,this);t.contentChanged.connect(this.onModelContentChanged,this)}_onCellsChanged(e,t){this.removeHeader();switch(t.type){case"add":{let e=0;e=t.newIndex;for(const n of t.newValues){this._insertCell(e++,n)}this._updateDataWindowedListIndex(t.newIndex,this.model.cells.length,t.newValues.length);break}case"remove":for(let e=t.oldValues.length;e>0;e--){this._removeCell(t.oldIndex)}this._updateDataWindowedListIndex(t.oldIndex,this.model.cells.length+t.oldValues.length,-1*t.oldValues.length);if(!e.length){const e=this.model;requestAnimationFrame((()=>{if(e&&!e.isDisposed&&!e.sharedModel.cells.length){e.sharedModel.insertCell(0,{cell_type:this.notebookConfig.defaultCell,metadata:this.notebookConfig.defaultCell==="code"?{trusted:true}:{}})}}))}break;default:return}if(!this.model.sharedModel.cells.length){this.addHeader()}this.update()}_insertCell(e,t){let n;switch(t.type){case"code":n=this._createCodeCell(t);n.model.mimeType=this._mimetype;break;case"markdown":n=this._createMarkdownCell(t);if(t.sharedModel.getSource()===""){n.rendered=false}break;default:n=this._createRawCell(t)}n.inViewportChanged.connect(this._onCellInViewportChanged,this);n.addClass(oe);a.ArrayExt.insert(this.cellsArray,e,n);this.onCellInserted(e,n);this._scheduleCellRenderOnIdle()}_createCodeCell(e){const t=this.rendermime;const n=this.contentFactory;const i=this.editorConfig.code;const s={contentFactory:n,editorConfig:i,inputHistoryScope:this.notebookConfig.inputHistoryScope,maxNumberOutputs:this.notebookConfig.maxNumberOutputs,model:e,placeholder:this._notebookConfig.windowingMode!=="none",rendermime:t,translator:this.translator};const o=this.contentFactory.createCodeCell(s);o.syncCollapse=true;o.syncEditable=true;o.syncScrolled=true;o.outputArea.inputRequested.connect((()=>{this._onInputRequested(o).catch((e=>{console.error("Failed to scroll to cell requesting input.",e)}))}));return o}_createMarkdownCell(e){const t=this.rendermime;const n=this.contentFactory;const i=this.editorConfig.markdown;const s={contentFactory:n,editorConfig:i,model:e,placeholder:this._notebookConfig.windowingMode!=="none",rendermime:t,showEditorForReadOnlyMarkdown:this._notebookConfig.showEditorForReadOnlyMarkdown};const o=this.contentFactory.createMarkdownCell(s);o.syncCollapse=true;o.syncEditable=true;o.headingCollapsedChanged.connect(this._onCellCollapsed,this);return o}_createRawCell(e){const t=this.contentFactory;const n=this.editorConfig.raw;const i={editorConfig:n,model:e,contentFactory:t,placeholder:this._notebookConfig.windowingMode!=="none"};const s=this.contentFactory.createRawCell(i);s.syncCollapse=true;s.syncEditable=true;return s}_removeCell(e){const t=this.cellsArray[e];t.parent=null;a.ArrayExt.removeAt(this.cellsArray,e);this.onCellRemoved(e,t);t.dispose()}_updateMimetype(){var e;const t=(e=this._notebookModel)===null||e===void 0?void 0:e.getMetadata("language_info");if(!t){return}this._mimetype=this._mimetypeService.getMimeTypeByLanguage(t);for(const n of this.widgets){if(n.model.type==="code"){n.model.mimeType=this._mimetype}}}_onCellCollapsed(e,t){m.setHeadingCollapse(e,t,this);this._cellCollapsed.emit(e)}_onCellInViewportChanged(e){this._cellInViewportChanged.emit(e)}async _onInputRequested(e){if(!e.inViewport){const t=this.widgets.findIndex((t=>t===e));if(t>=0){await this.scrollToItem(t);const n=e.node.querySelector(".jp-Stdin");if(n){V.ElementExt.scrollIntoViewIfNeeded(this.node,n);n.focus()}}}}_scheduleCellRenderOnIdle(){if(this.notebookConfig.windowingMode!=="none"&&!this.isDisposed){if(!this._idleCallBack){this._idleCallBack=requestIdleCallback((e=>{this._idleCallBack=null;void this._runOnIdleTime(e.didTimeout?be:e.timeRemaining())}),{timeout:3e3})}}}_updateDataWindowedListIndex(e,t,n){for(let i=0;i=e&&o]*>[^<]*<\/style[^>]*>|]*>.*?<\/script[^>]*>)/gims)){this.renderCellOutputs(t);break}}}}_updateNotebookConfig(){this.toggleClass("jp-mod-scrollPastEnd",this._notebookConfig.scrollPastEnd);this.toggleClass(we,this._notebookConfig.showHiddenCellsButton);const e=this._notebookConfig.showEditorForReadOnlyMarkdown;if(e!==undefined){for(const t of this.cellsArray){if(t.model.type==="markdown"){t.showEditorForReadOnly=e}}}this.viewModel.windowingActive=this._notebookConfig.windowingMode==="full"}}(function(e){e.defaultEditorConfig={code:{lineNumbers:false,lineWrap:false,matchBrackets:true},markdown:{lineNumbers:false,lineWrap:true,matchBrackets:false},raw:{lineNumbers:false,lineWrap:true,matchBrackets:false}};e.defaultNotebookConfig={showHiddenCellsButton:true,scrollPastEnd:true,defaultCell:"code",recordTiming:false,inputHistoryScope:"global",maxNumberOutputs:50,showEditorForReadOnlyMarkdown:true,disableDocumentWideUndoRedo:true,renderingLayout:"default",sideBySideLeftMarginOverride:"10px",sideBySideRightMarginOverride:"10px",sideBySideOutputRatio:1,overscanCount:1,windowingMode:"full"};class t extends s.Cell.ContentFactory{createCodeCell(e){return new s.CodeCell(e).initializeState()}createMarkdownCell(e){return new s.MarkdownCell(e).initializeState()}createRawCell(e){return new s.RawCell(e).initializeState()}}e.ContentFactory=t})(xe||(xe={}));class Se extends xe{constructor(e){super(e);this._activeCellIndex=-1;this._activeCell=null;this._mode="command";this._drag=null;this._dragData=null;this._mouseMode=null;this._activeCellChanged=new d.Signal(this);this._stateChanged=new d.Signal(this);this._selectionChanged=new d.Signal(this);this._checkCacheOnNextResize=false;this._lastClipboardInteraction=null;this._selectedCells=[];this.node.tabIndex=0;this.node.setAttribute("data-lm-dragscroll","true");this.activeCellChanged.connect(this._updateSelectedCells,this);this.selectionChanged.connect(this._updateSelectedCells,this);this.addFooter()}get selectedCells(){return this._selectedCells}addFooter(){const e=new Q(this);this.layout.footer=e}_onCellsChanged(e,t){var n,i;const s=(n=this.activeCell)===null||n===void 0?void 0:n.model.id;super._onCellsChanged(e,t);if(s){const e=(i=this.model)===null||i===void 0?void 0:i.sharedModel.cells.findIndex((e=>e.getId()===s));if(e!=null){this.activeCellIndex=e}}}get activeCellChanged(){return this._activeCellChanged}get stateChanged(){return this._stateChanged}get selectionChanged(){return this._selectionChanged}get mode(){return this._mode}set mode(e){const t=this.activeCell;if(!t){e="command"}if(e===this._mode){this._ensureFocus();return}this.update();const n=this._mode;this._mode=e;if(e==="edit"){for(const e of this.widgets){this.deselect(e)}if(t instanceof s.MarkdownCell){t.rendered=false}t.inputHidden=false}else{this.node.focus()}this._stateChanged.emit({name:"mode",oldValue:n,newValue:e});this._ensureFocus()}get activeCellIndex(){if(!this.model){return-1}return this.widgets.length?this._activeCellIndex:-1}set activeCellIndex(e){var t;const n=this._activeCellIndex;if(!this.model||!this.widgets.length){e=-1}else{e=Math.max(e,0);e=Math.min(e,this.widgets.length-1)}this._activeCellIndex=e;const i=(t=this.widgets[e])!==null&&t!==void 0?t:null;const o=i!==this._activeCell;if(o){this.update();this._activeCell=i}if(o||e!=n){this._activeCellChanged.emit(i)}if(this.mode==="edit"&&i instanceof s.MarkdownCell){i.rendered=false}this._ensureFocus();if(e===n){return}this._trimSelections();this._stateChanged.emit({name:"activeCellIndex",oldValue:n,newValue:e})}get activeCell(){return this._activeCell}get lastClipboardInteraction(){return this._lastClipboardInteraction}set lastClipboardInteraction(e){this._lastClipboardInteraction=e}dispose(){if(this.isDisposed){return}this._activeCell=null;super.dispose()}moveCell(e,t,n=1){const i=e<=this.activeCellIndex&&this.activeCellIndext?0:n-1):-1;const s=this.widgets.slice(e,e+n).map((e=>this.isSelected(e)));super.moveCell(e,t,n);if(i>=0){this.activeCellIndex=i}if(e>t){s.forEach(((e,n)=>{if(e){this.select(this.widgets[t+n])}}))}else{s.forEach(((e,i)=>{if(e){this.select(this.widgets[t-n+1+i])}}))}}select(e){if(ke.selectedProperty.get(e)){return}ke.selectedProperty.set(e,true);this._selectionChanged.emit(void 0);this.update()}deselect(e){if(!ke.selectedProperty.get(e)){return}ke.selectedProperty.set(e,false);this._selectionChanged.emit(void 0);this.update()}isSelected(e){return ke.selectedProperty.get(e)}isSelectedOrActive(e){if(e===this._activeCell){return true}return ke.selectedProperty.get(e)}deselectAll(){let e=false;for(const t of this.widgets){if(ke.selectedProperty.get(t)){e=true}ke.selectedProperty.set(t,false)}if(e){this._selectionChanged.emit(void 0)}this.activeCellIndex=this.activeCellIndex;this.update()}extendContiguousSelectionTo(e){let{head:t,anchor:n}=this.getContiguousSelection();let i;if(n===null||t===null){if(e===this.activeCellIndex){return}t=this.activeCellIndex;n=this.activeCellIndex}this.activeCellIndex=e;e=this.activeCellIndex;if(e===n){this.deselectAll();return}let s=false;if(tthis.isSelected(e)));if(t===-1){return{head:null,anchor:null}}const n=a.ArrayExt.findLastIndex(e,(e=>this.isSelected(e)),-1,t);for(let s=t;s<=n;s++){if(!this.isSelected(e[s])){throw new Error("Selection not contiguous")}}const i=this.activeCellIndex;if(t!==i&&n!==i){throw new Error("Active cell not at endpoint of selection")}if(t===i){return{head:t,anchor:n}}else{return{head:n,anchor:t}}}async scrollToCell(e,t="auto"){try{await this.scrollToItem(this.widgets.findIndex((t=>t===e)),t)}catch(n){}this.deselectAll();this.select(e);e.activate()}_parseFragment(e){const t=e.slice(1);if(!t){return}const n=t.split("=");if(n.length===1){return{kind:"heading",value:t}}return{kind:n[0],value:n.slice(1).join("=")}}async setFragment(e){const t=this._parseFragment(e);if(!t){return}let n;switch(t.kind){case"heading":n=await this._findHeading(t.value);break;case"cell-id":n=this._findCellById(t.value);break;default:console.warn(`Unknown target type for URI fragment ${e}, interpreting as a heading`);n=await this._findHeading(t.kind+"="+t.value);break}if(n==null){return}let{cell:i,element:s}=n;if(!i.inViewport){await this.scrollToCell(i,"center")}if(s==null){s=i.node}const o=this.node.getBoundingClientRect();const r=s.getBoundingClientRect();if(r.top>o.bottom||r.bottom1){t===null||t===void 0?void 0:t.addClass(ce)}}onCellInserted(e,t){void t.ready.then((()=>{if(!t.isDisposed){t.editor.edgeRequested.connect(this._onEdgeRequest,this)}}));this.activeCellIndex=e<=this.activeCellIndex?this.activeCellIndex+1:this.activeCellIndex}onCellRemoved(e,t){this.activeCellIndex=e<=this.activeCellIndex?this.activeCellIndex-1:this.activeCellIndex;if(this.isSelected(t)){this._selectionChanged.emit(void 0)}}onModelChanged(e,t){super.onModelChanged(e,t);this.activeCellIndex=0}_onEdgeRequest(e,t){const n=this.activeCellIndex;if(t==="top"){this.activeCellIndex--;if(this.activeCellIndexn){const e=this.activeCell.editor;if(e){e.setCursorPosition({line:0,column:0})}}}this.mode="edit"}_ensureFocus(e=false){var t,n;const i=this.activeCell;if(this.mode==="edit"&&i){if(((t=i.editor)===null||t===void 0?void 0:t.hasFocus())!==true){if(i.inViewport){(n=i.editor)===null||n===void 0?void 0:n.focus()}else{this.scrollToItem(this.activeCellIndex).then((()=>{void i.ready.then((()=>{var e;(e=i.editor)===null||e===void 0?void 0:e.focus()}))})).catch((e=>{}))}}}if(e&&!this.node.contains(document.activeElement)){this.node.focus()}}_findCell(e){let t=e;while(t&&t!==this.node){if(t.classList.contains(oe)){const e=a.ArrayExt.findFirstIndex(this.widgets,(e=>e.node===t));if(e!==-1){return e}break}t=t.parentElement}return-1}_findEventTargetAndCell(e){let t=e.target;let n=this._findCell(t);if(n===-1){t=document.elementFromPoint(e.clientX,e.clientY);n=this._findCell(t)}return[t,n]}async _findHeading(e){for(let t=0;t=_e||i>=_e){this._mouseMode=null;this._startDrag(t.index,e.clientX,e.clientY)}break}default:break}}_evtDragEnter(e){if(!e.mimeData.hasData(ve)){return}e.preventDefault();e.stopPropagation();const t=e.target;const n=this._findCell(t);if(n===-1){return}const i=this.cellsArray[n];i.node.classList.add(K)}_evtDragLeave(e){if(!e.mimeData.hasData(ve)){return}e.preventDefault();e.stopPropagation();const t=this.node.getElementsByClassName(K);if(t.length){t[0].classList.remove(K)}}_evtDragOver(e){if(!e.mimeData.hasData(ve)){return}e.preventDefault();e.stopPropagation();e.dropAction=e.proposedAction;const t=this.node.getElementsByClassName(K);if(t.length){t[0].classList.remove(K)}const n=e.target;const i=this._findCell(n);if(i===-1){return}const s=this.cellsArray[i];s.node.classList.add(K)}_evtDrop(e){if(!e.mimeData.hasData(ve)){return}e.preventDefault();e.stopPropagation();if(e.proposedAction==="none"){e.dropAction="none";return}let t=e.target;while(t&&t.parentElement){if(t.classList.contains(K)){t.classList.remove(K);break}t=t.parentElement}const n=this.model;const i=e.source;if(i===this){e.dropAction="move";const n=e.mimeData.getData("internal:cells");const o=n[n.length-1];if(o instanceof s.MarkdownCell&&o.headingCollapsed){const e=m.findNextParentHeading(o,i);if(e>0){const t=(0,a.findIndex)(i.widgets,(e=>o.model.id===e.model.id));n.push(...i.widgets.slice(t+1,e))}}let r=a.ArrayExt.firstIndexOf(this.widgets,n[0]);let l=this._findCell(t);if(l!==-1&&l>r){l-=1}else if(l===-1){l=this.widgets.length-1}if(l>=r&&le.model.sharedModel.getSource())).join("\n");this._drag.mimeData.setData("text/plain",u);document.removeEventListener("mousemove",this,true);document.removeEventListener("mouseup",this,true);this._mouseMode=null;void this._drag.start(t,n).then((e=>{if(this.isDisposed){return}this._drag=null;for(const t of r){t.removeClass(J)}}))}_evtFocusIn(e){var t;const n=e.target;const i=this._findCell(n);if(i!==-1){const e=this.widgets[i];if(e.editorWidget&&!e.editorWidget.node.contains(n)){this.mode="command"}this.activeCellIndex=i;const s=(t=e.editorWidget)===null||t===void 0?void 0:t.node;if(s===null||s===void 0?void 0:s.contains(n)){this.mode="edit"}this.activeCellIndex=i}else{this.mode="command"}}_evtFocusOut(e){var t;const n=e.relatedTarget;if(!n){return}const i=this._findCell(n);if(i!==-1){const e=this.widgets[i];if((t=e.editorWidget)===null||t===void 0?void 0:t.node.contains(n)){return}}if(this.mode!=="command"){this.mode="command";if(n){n.focus()}}}_evtDblClick(e){const t=this.model;if(!t){return}this.deselectAll();const[n,i]=this._findEventTargetAndCell(e);if(e.target.classList.contains(ye)){return}if(i===-1){return}this.activeCellIndex=i;if(t.cells.get(i).type==="markdown"){const e=this.widgets[i];e.rendered=false}else if(n.localName==="img"){n.classList.toggle(he)}}_trimSelections(){for(let e=0;ethis.isSelectedOrActive(e)))}}(function(e){class t extends xe.ContentFactory{}e.ContentFactory=t})(Se||(Se={}));var ke;(function(e){e.selectedProperty=new $.AttachedProperty({name:"selected",create:()=>false});class t extends O.PanelLayout{onUpdateRequest(e){}}e.NotebookPanelLayout=t;function n(e,t,n){if(e>1){if(t!==""){return q.VirtualDOM.realize(q.h.div(q.h.div({className:ue},q.h.span({className:ge},"["+t+"]:"),q.h.span({className:me},n)),q.h.div({className:fe},"")))}else{return q.VirtualDOM.realize(q.h.div(q.h.div({className:ue},q.h.span({className:ge}),q.h.span({className:me},n)),q.h.div({className:fe},"")))}}else{if(t!==""){return q.VirtualDOM.realize(q.h.div(q.h.div({className:`${ue} ${pe}`},q.h.span({className:ge},"["+t+"]:"),q.h.span({className:me},n))))}else{return q.VirtualDOM.realize(q.h.div(q.h.div({className:`${ue} ${pe}`},q.h.span({className:ge}),q.h.span({className:me},n))))}}}e.createDragImage=n})(ke||(ke={}));const je="jp-NotebookPanel";const Me="jp-NotebookPanel-toolbar";const Ee="jp-NotebookPanel-notebook";class Ie extends H.DocumentWidget{constructor(e){super(e);this._autorestarting=false;this.translator=e.translator||r.nullTranslator;this._trans=this.translator.load("jupyterlab");this.addClass(je);this.toolbar.addClass(Me);this.content.addClass(Ee);this.content.model=this.context.model;this.context.sessionContext.kernelChanged.connect(this._onKernelChanged,this);this.context.sessionContext.statusChanged.connect(this._onSessionStatusChanged,this);this.context.saveState.connect(this._onSave,this);void this.revealed.then((()=>{if(this.isDisposed){return}if(this.content.widgets.length===1){const e=this.content.widgets[0].model;if(e.type==="code"&&e.sharedModel.getSource()===""){this.content.mode="edit"}}}))}_onSave(e,t){if(t==="started"&&this.model){for(const e of this.model.cells){if((0,s.isMarkdownCellModel)(e)){for(const t of e.attachments.keys){if(!e.sharedModel.getSource().includes(t)){e.attachments.remove(t)}}}}}}get sessionContext(){return this.context.sessionContext}get model(){return this.content.model}setConfig(e){this.content.editorConfig=e.editorConfig;this.content.notebookConfig=e.notebookConfig;const t=this.context.sessionContext.kernelPreference;this.context.sessionContext.kernelPreference={...t,shutdownOnDispose:e.kernelShutdown,autoStartDefault:e.autoStartDefault}}setFragment(e){void this.context.ready.then((()=>{void this.content.setFragment(e)}))}dispose(){this.content.dispose();super.dispose()}[i.Printing.symbol](){return async()=>{if(this.context.model.dirty&&!this.context.model.readOnly){await this.context.save()}await i.Printing.printURL(o.PageConfig.getNBConvertURL({format:"html",download:false,path:this.context.path}))}}onBeforeHide(e){super.onBeforeHide(e);this.content.isParentHidden=true}onBeforeShow(e){this.content.isParentHidden=false;super.onBeforeShow(e)}_onKernelChanged(e,t){if(!this.model||!t.newValue){return}const{newValue:n}=t;void n.info.then((e=>{var t;if(this.model&&((t=this.context.sessionContext.session)===null||t===void 0?void 0:t.kernel)===n){this._updateLanguage(e.language_info)}}));void this._updateSpec(n)}_onSessionStatusChanged(e,t){var n;if(t==="autorestarting"&&!this._autorestarting){void(0,i.showDialog)({title:this._trans.__("Kernel Restarting"),body:this._trans.__("The kernel for %1 appears to have died. It will restart automatically.",(n=this.sessionContext.session)===null||n===void 0?void 0:n.path),buttons:[i.Dialog.okButton({label:this._trans.__("Ok")})]});this._autorestarting=true}else if(t==="restarting"){}else{this._autorestarting=false}}_updateLanguage(e){this.model.setMetadata("language_info",e)}async _updateSpec(e){const t=await e.spec;if(this.isDisposed){return}this.model.setMetadata("kernelspec",{name:e.name,display_name:t===null||t===void 0?void 0:t.display_name,language:t===null||t===void 0?void 0:t.language})}}(function(e){class t extends Se.ContentFactory{createNotebook(e){return new Se(e)}}e.ContentFactory=t;e.IContentFactory=new l.Token("@jupyterlab/notebook:IContentFactory",`A factory object that creates new notebooks.\n Use this if you want to create and host notebooks in your own UI elements.`)})(Ie||(Ie={}));var Te=n(20433);class De extends Te.SearchProvider{constructor(e,t=r.nullTranslator){super(e);this.translator=t;this._textSelection=null;this._currentProviderIndex=null;this._delayedActiveCellChangeHandler=null;this._onSelection=false;this._selectedCells=1;this._selectedLines=0;this._query=null;this._searchProviders=[];this._editorSelectionsObservable=null;this._selectionSearchMode="cells";this._selectionLock=false;this._handleHighlightsAfterActiveCellChange=this._handleHighlightsAfterActiveCellChange.bind(this);this.widget.model.cells.changed.connect(this._onCellsChanged,this);this.widget.content.activeCellChanged.connect(this._onActiveCellChanged,this);this.widget.content.selectionChanged.connect(this._onCellSelectionChanged,this);this.widget.content.stateChanged.connect(this._onNotebookStateChanged,this);this._observeActiveCell();this._filtersChanged.connect(this._setEnginesSelectionSearchMode,this)}_onNotebookStateChanged(e,t){if(t.name==="mode"){window.setTimeout((()=>{var e;if(t.newValue==="command"&&((e=document.activeElement)===null||e===void 0?void 0:e.closest(".jp-DocumentSearch-overlay"))){return}this._updateSelectionMode();this._filtersChanged.emit()}),0)}}static isApplicable(e){return e instanceof Ie}static createNew(e,t){return new De(e,t)}get currentMatchIndex(){let e=0;let t=false;for(let n=0;ne+=t.matchesCount),0)}get isReadOnly(){var e,t,n;return(n=(t=(e=this.widget)===null||e===void 0?void 0:e.content.model)===null||t===void 0?void 0:t.readOnly)!==null&&n!==void 0?n:false}get replaceOptionsSupport(){return{preserveCase:true}}dispose(){var e;if(this.isDisposed){return}this.widget.content.activeCellChanged.disconnect(this._onActiveCellChanged,this);(e=this.widget.model)===null||e===void 0?void 0:e.cells.changed.disconnect(this._onCellsChanged,this);this.widget.content.stateChanged.disconnect(this._onNotebookStateChanged,this);this.widget.content.selectionChanged.disconnect(this._onCellSelectionChanged,this);this._stopObservingLastCell();super.dispose();const t=this.widget.content.activeCellIndex;this.endQuery().then((()=>{if(!this.widget.isDisposed){this.widget.content.activeCellIndex=t}})).catch((e=>{console.error(`Fail to end search query in notebook:\n${e}`)}))}getFilters(){const e=this.translator.load("jupyterlab");return{output:{title:e.__("Search Cell Outputs"),description:e.__("Search in the cell outputs."),default:false,supportReplace:false},selection:{title:this._selectionSearchMode==="cells"?e._n("Search in %1 Selected Cell","Search in %1 Selected Cells",this._selectedCells):e._n("Search in %1 Selected Line","Search in %1 Selected Lines",this._selectedLines),description:e.__("Search only in the selected cells or text (depending on edit/command mode)."),default:false,supportReplace:true}}}_updateSelectionMode(){if(this._selectionLock){return}this._selectionSearchMode=this._selectedCells===1&&this.widget.content.mode==="edit"&&this._selectedLines!==0?"text":"cells"}getInitialQuery(){const e=this.widget.content.activeCell;const t=e===null||e===void 0?void 0:e.editor;if(!t){return""}const n=t.state.sliceDoc(t.state.selection.main.from,t.state.selection.main.to);return n}async clearHighlight(){this._selectionLock=true;if(this._currentProviderIndex!==null&&this._currentProviderIndex{const o=(0,s.createCellSearchProvider)(t);await o.setIsActive(!this._filters.selection||this.widget.content.isSelectedOrActive(t));if(this._onSelection&&this._selectionSearchMode==="text"&&n===i){if(this._textSelection){await o.setSearchSelection(this._textSelection)}}await o.startQuery(e,this._filters);return o})));this._currentProviderIndex=i;await this.highlightNext(true,{from:"selection-start",scroll:false,select:false});return Promise.resolve()}async endQuery(){await Promise.all(this._searchProviders.map((e=>e.endQuery().then((()=>{e.dispose()})))));this._searchProviders.length=0;this._currentProviderIndex=null}async replaceCurrentMatch(e,t=true,n){let i=false;const s=async(e=false)=>{var n;const i=(n=this.widget)===null||n===void 0?void 0:n.content.activeCell;if((i===null||i===void 0?void 0:i.model.type)==="markdown"&&i.rendered){i.rendered=false;if(e){await this.highlightNext(t)}}};if(this._currentProviderIndex!==null){await s();const o=this._searchProviders[this._currentProviderIndex];i=await o.replaceCurrentMatch(e,false,n);if(o.currentMatchIndex===null){await this.highlightNext(t)}}await s(true);return i}async replaceAllMatches(e,t){const n=await Promise.all(this._searchProviders.map((n=>n.replaceAllMatches(e,t))));return n.includes(true)}async validateFilter(e,t){if(e!=="output"){return t}if(t&&this.widget.content.widgets.some((e=>e instanceof s.CodeCell&&e.isPlaceholder()))){const e=this.translator.load("jupyterlab");const t=await(0,i.showDialog)({title:e.__("Confirmation"),body:e.__("Searching outputs is expensive and requires to first rendered all outputs. Are you sure you want to search in the cell outputs?"),buttons:[i.Dialog.cancelButton({label:e.__("Cancel")}),i.Dialog.okButton({label:e.__("Ok")})]});if(t.button.accept){this.widget.content.widgets.forEach(((e,t)=>{if(e instanceof s.CodeCell&&e.isPlaceholder()){this.widget.content.renderCellOutputs(t)}}))}else{return false}}return t}_addCellProvider(e){var t,n;const i=this.widget.content.widgets[e];const o=(0,s.createCellSearchProvider)(i);a.ArrayExt.insert(this._searchProviders,e,o);void o.setIsActive(!((n=(t=this._filters)===null||t===void 0?void 0:t.selection)!==null&&n!==void 0?n:false)||this.widget.content.isSelectedOrActive(i)).then((()=>{void o.startQuery(this._query,this._filters)}))}_removeCellProvider(e){const t=a.ArrayExt.removeAt(this._searchProviders,e);t===null||t===void 0?void 0:t.dispose()}async _onCellsChanged(e,t){switch(t.type){case"add":t.newValues.forEach(((e,n)=>{this._addCellProvider(t.newIndex+n)}));break;case"move":a.ArrayExt.move(this._searchProviders,t.oldIndex,t.newIndex);break;case"remove":for(let e=0;e{this._addCellProvider(t.newIndex+n);this._removeCellProvider(t.newIndex+n+1)}));break}this._stateChanged.emit()}async _stepNext(e=false,t=false,n){const i=async e=>{var t;const i=(t=n===null||n===void 0?void 0:n.scroll)!==null&&t!==void 0?t:true;if(!i){return}this._selectionLock=true;if(this.widget.content.activeCellIndex!==this._currentProviderIndex){this.widget.content.activeCellIndex=this._currentProviderIndex}if(this.widget.content.activeCellIndex===-1){console.warn("No active cell (no cells or no model), aborting search");this._selectionLock=false;return}const s=this.widget.content.activeCell;if(!s.inViewport){try{await this.widget.content.scrollToItem(this._currentProviderIndex)}catch(r){}}if(s.inputHidden){s.inputHidden=false}if(!s.inViewport){this._selectionLock=false;return}await s.ready;const o=s.editor;o.revealPosition(o.getPositionAt(e.position));this._selectionLock=false};if(this._currentProviderIndex===null){this._currentProviderIndex=this.widget.content.activeCellIndex}if(e&&this.widget.content.mode==="command"){const e=this._searchProviders[this._currentProviderIndex];const n=e.getCurrentMatch();if(!n){this._currentProviderIndex-=1}if(t){this._currentProviderIndex=(this._currentProviderIndex+this._searchProviders.length)%this._searchProviders.length}}const s=this._currentProviderIndex;do{const s=this._searchProviders[this._currentProviderIndex];const o=e?await s.highlightPrevious(false,n):await s.highlightNext(false,n);if(o){await i(o);return o}else{this._currentProviderIndex=this._currentProviderIndex+(e?-1:1);if(t){this._currentProviderIndex=(this._currentProviderIndex+this._searchProviders.length)%this._searchProviders.length}}}while(t?this._currentProviderIndex!==s:0<=this._currentProviderIndex&&this._currentProviderIndex{this.delayedActiveCellChangeHandlerReady=this._handleHighlightsAfterActiveCellChange()}),0)}this._observeActiveCell()}async _handleHighlightsAfterActiveCellChange(){if(this._onSelection){const e=this._currentProviderIndex!==null&&this._currentProviderIndex{const i=this.widget.content.activeCellIndex===n;t.setProtectSelection(i&&this._onSelection);return t.setSearchSelection(i&&e?this._textSelection:null)})))}async _onCellSelectionChanged(){if(this._delayedActiveCellChangeHandler!==null){clearTimeout(this._delayedActiveCellChangeHandler);this._delayedActiveCellChangeHandler=null}await this._updateCellSelection();if(this._currentProviderIndex===null){const e=this.widget.content.widgets.findIndex((e=>this.widget.content.isSelectedOrActive(e)));this._currentProviderIndex=e}await this._ensureCurrentMatch()}async _updateCellSelection(){const e=this.widget.content.widgets;let t=0;await Promise.all(e.map((async(e,n)=>{const i=this._searchProviders[n];const s=this.widget.content.isSelectedOrActive(e);if(s){t+=1}if(i&&this._onSelection){await i.setIsActive(s)}})));if(t!==this._selectedCells){this._selectedCells=t;this._updateSelectionMode()}this._filtersChanged.emit()}}var Le;(function(e){e[e["Idle"]=-1]="Idle";e[e["Scheduled"]=0]="Scheduled";e[e["Running"]=1]="Running"})(Le||(Le={}));class Pe extends W.TableOfContentsModel{constructor(e,t,n,i){super(e,i);this.parser=t;this.sanitizer=n;this.configMetadataMap={numberHeaders:["toc-autonumbering","toc/number_sections"],numberingH1:["!toc/skip_h1_title"],baseNumbering:["toc/base_numbering"]};this._runningCells=new Array;this._cellToHeadingIndex=new WeakMap;void e.context.ready.then((()=>{this.setConfiguration({})}));this.widget.context.model.metadataChanged.connect(this.onMetadataChanged,this);this.widget.content.activeCellChanged.connect(this.onActiveCellChanged,this);m.executionScheduled.connect(this.onExecutionScheduled,this);m.executed.connect(this.onExecuted,this);this.headingsChanged.connect(this.onHeadingsChanged,this)}get documentType(){return"notebook"}get isAlwaysActive(){return true}get supportedOptions(){return["baseNumbering","maximalDepth","numberingH1","numberHeaders","includeOutput","syncCollapseState"]}getCellHeadings(e){const t=new Array;let n=this._cellToHeadingIndex.get(e);if(n!==undefined){const e=this.headings[n];t.push(e);while(this.headings[n-1]&&this.headings[n-1].cellRef===e.cellRef){n--;t.unshift(this.headings[n])}}return t}dispose(){var e,t,n;if(this.isDisposed){return}this.headingsChanged.disconnect(this.onHeadingsChanged,this);(t=(e=this.widget.context)===null||e===void 0?void 0:e.model)===null||t===void 0?void 0:t.metadataChanged.disconnect(this.onMetadataChanged,this);(n=this.widget.content)===null||n===void 0?void 0:n.activeCellChanged.disconnect(this.onActiveCellChanged,this);m.executionScheduled.disconnect(this.onExecutionScheduled,this);m.executed.disconnect(this.onExecuted,this);this._runningCells.length=0;super.dispose()}setConfiguration(e){const t=this.loadConfigurationFromMetadata();super.setConfiguration({...this.configuration,...t,...e})}toggleCollapse(e){super.toggleCollapse(e);this.updateRunningStatus(this.headings)}getHeadings(){const e=this.widget.content.widgets;const t=[];const n=new Array;for(let i=0;i({...e,cellRef:s,collapsed:false,isRunning:Le.Idle}))))}break}case"markdown":{const e=W.TableOfContentsUtils.filterHeadings(s.headings,this.configuration,n).map(((e,t)=>({...e,cellRef:s,collapsed:false,isRunning:Le.Idle})));if(this.configuration.syncCollapseState&&s.headingCollapsed){const t=Math.min(...e.map((e=>e.level)));const n=e.find((e=>e.level===t));n.collapsed=s.headingCollapsed}t.push(...e);break}}if(t.length>0){this._cellToHeadingIndex.set(s,t.length-1)}}this.updateRunningStatus(t);return Promise.resolve(t)}loadConfigurationFromMetadata(){const e=this.widget.content.model;const t={};if(e){for(const n in this.configMetadataMap){const i=this.configMetadataMap[n];for(const s of i){let i=s;const o=i[0]==="!";if(o){i=i.slice(1)}const r=i.split("/");let a=e.getMetadata(r[0]);for(let e=1;e{if(e===t.cell){this._runningCells.splice(n,1);const t=this._cellToHeadingIndex.get(e);if(t!==undefined){const e=this.headings[t];e.isRunning=Le.Idle}}}));this.updateRunningStatus(this.headings);this.stateChanged.emit()}onExecutionScheduled(e,t){if(!this._runningCells.includes(t.cell)){this._runningCells.push(t.cell)}this.updateRunningStatus(this.headings);this.stateChanged.emit()}onMetadataChanged(){this.setConfiguration({})}updateRunningStatus(e){this._runningCells.forEach(((e,t)=>{const n=this._cellToHeadingIndex.get(e);if(n!==undefined){const e=this.headings[n];e.isRunning=Math.max(t>0?Le.Scheduled:Le.Running,e.isRunning)}}));let t=0;while(ti){t++;s=Math.max(o.isRunning,s);if(o.collapsed){s=Math.max(s,n(e,o.level));o.dataset={...o.dataset,"data-running":s.toString()}}}else{break}}return s}}}class Ae extends W.TableOfContentsFactory{constructor(e,t,n){super(e);this.parser=t;this.sanitizer=n}_createNew(e,t){const n=new Pe(e,this.parser,this.sanitizer,t);let i=new WeakMap;const o=(t,n)=>{if(n){const t=async t=>{if(!t.inViewport){return}const s=i.get(n);if(s){const t=e.content.node.getBoundingClientRect();const n=s.getBoundingClientRect();if(n.top>t.bottom||n.bottom{console.error(`Fail to scroll to cell to display the required heading (${e}).`)}))}else{e.content.scrollToItem(r).then((()=>t(s))).catch((e=>{console.error(`Fail to scroll to cell to display the required heading (${e}).`)}))}}};const r=e=>{n.getCellHeadings(e).forEach((async e=>{var t,n;const s=await Re(e,this.parser);const o=s?`h${e.level}[id="${s}"]`:`h${e.level}`;if(e.outputIndex!==undefined){i.set(e,W.TableOfContentsUtils.addPrefix(e.cellRef.outputArea.widgets[e.outputIndex].node,o,(t=e.prefix)!==null&&t!==void 0?t:""))}else{i.set(e,W.TableOfContentsUtils.addPrefix(e.cellRef.node,o,(n=e.prefix)!==null&&n!==void 0?n:""))}}))};const a=t=>{if(!this.parser){return}W.TableOfContentsUtils.clearNumbering(e.content.node);i=new WeakMap;e.content.widgets.forEach((e=>{r(e)}))};const l=(t,i)=>{var o,r,a,l;if(n.configuration.syncCollapseState){if(i!==null){const e=i.cellRef;if(e.headingCollapsed!==((o=i.collapsed)!==null&&o!==void 0?o:false)){e.headingCollapsed=(r=i.collapsed)!==null&&r!==void 0?r:false}}else{const t=(l=(a=n.headings[0])===null||a===void 0?void 0:a.collapsed)!==null&&l!==void 0?l:false;e.content.widgets.forEach((e=>{if(e instanceof s.MarkdownCell){if(e.headingInfo.level>=0){e.headingCollapsed=t}}}))}}};const d=(e,t)=>{if(n.configuration.syncCollapseState){const e=n.getCellHeadings(t)[0];if(e){n.toggleCollapse({heading:e,collapsed:t.headingCollapsed})}}};const c=(e,t)=>{if(t.inViewport){r(t)}else{W.TableOfContentsUtils.clearNumbering(t.node)}};void e.context.ready.then((()=>{a(n);n.activeHeadingChanged.connect(o);n.headingsChanged.connect(a);n.collapseChanged.connect(l);e.content.cellCollapsed.connect(d);e.content.cellInViewportChanged.connect(c);e.disposed.connect((()=>{n.activeHeadingChanged.disconnect(o);n.headingsChanged.disconnect(a);n.collapseChanged.disconnect(l);e.content.cellCollapsed.disconnect(d);e.content.cellInViewportChanged.disconnect(c)}))}));return n}}async function Re(e,t){let n=null;if(e.type===s.Cell.HeadingType.Markdown){n=await W.TableOfContentsUtils.Markdown.getHeadingId(t,e.raw,e.level)}else if(e.type===s.Cell.HeadingType.HTML){n=e.id}return n}const Ne=new l.Token("@jupyterlab/notebook:INotebookWidgetFactory","A service to create the notebook viewer.");const Oe=new l.Token("@jupyterlab/notebook:INotebookTools",`A service for the "Notebook Tools" panel in the\n right sidebar. Use this to add your own functionality to the panel.`);const Be=new l.Token("@jupyterlab/notebook:INotebookTracker",`A widget tracker for notebooks.\n Use this if you want to be able to iterate over and interact with notebooks\n created by the application.`);class Fe extends i.WidgetTracker{constructor(){super(...arguments);this._activeCell=null;this._activeCellChanged=new d.Signal(this);this._selectionChanged=new d.Signal(this)}get activeCell(){const e=this.currentWidget;if(!e){return null}return e.content.activeCell||null}get activeCellChanged(){return this._activeCellChanged}get selectionChanged(){return this._selectionChanged}add(e){const t=super.add(e);e.content.activeCellChanged.connect(this._onActiveCellChanged,this);e.content.selectionChanged.connect(this._onSelectionChanged,this);return t}dispose(){this._activeCell=null;super.dispose()}onCurrentChanged(e){const t=this.activeCell;if(t&&t===this._activeCell){return}this._activeCell=t;if(!e){return}this._activeCellChanged.emit(e.content.activeCell||null)}_onActiveCellChanged(e,t){if(this.currentWidget&&this.currentWidget.content===e){this._activeCell=t||null;this._activeCellChanged.emit(this._activeCell)}}_onSelectionChanged(e){if(this.currentWidget&&this.currentWidget.content===e){this._selectionChanged.emit(void 0)}}}const ze="jp-StatusItem-trust";function He(e,t){t=t||r.nullTranslator;const n=t.load("jupyterlab");if(e.trustedCells===e.totalCells){return n.__("Notebook trusted: %1 of %2 code cells trusted.",e.trustedCells,e.totalCells)}else if(e.activeCellTrusted){return n.__("Active cell trusted: %1 of %2 code cells trusted.",e.trustedCells,e.totalCells)}else{return n.__("Notebook not trusted: %1 of %2 code cells trusted.",e.trustedCells,e.totalCells)}}function We(e){if(e.allCellsTrusted){return h().createElement(v.trustedIcon.react,{top:"2px",stylesheet:"statusBar"})}else{return h().createElement(v.notTrustedIcon.react,{top:"2px",stylesheet:"statusBar"})}}class Ve extends v.VDomRenderer{constructor(e){super(new Ve.Model);this.translator=e||r.nullTranslator;this.node.classList.add(ze)}render(){if(!this.model){return null}const e=He(this.model,this.translator);if(e!==this.node.title){this.node.title=e}return h().createElement(We,{allCellsTrusted:this.model.trustedCells===this.model.totalCells,activeCellTrusted:this.model.activeCellTrusted,totalCells:this.model.totalCells,trustedCells:this.model.trustedCells})}}(function(e){class t extends v.VDomModel{constructor(){super(...arguments);this._trustedCells=0;this._totalCells=0;this._activeCellTrusted=false;this._notebook=null}get trustedCells(){return this._trustedCells}get totalCells(){return this._totalCells}get activeCellTrusted(){return this._activeCellTrusted}get notebook(){return this._notebook}set notebook(e){const t=this._notebook;if(t!==null){t.activeCellChanged.disconnect(this._onActiveCellChanged,this);t.modelContentChanged.disconnect(this._onModelChanged,this)}const n=this._getAllState();this._notebook=e;if(this._notebook===null){this._trustedCells=0;this._totalCells=0;this._activeCellTrusted=false}else{this._notebook.activeCellChanged.connect(this._onActiveCellChanged,this);this._notebook.modelContentChanged.connect(this._onModelChanged,this);if(this._notebook.activeCell){this._activeCellTrusted=this._notebook.activeCell.model.trusted}else{this._activeCellTrusted=false}const{total:e,trusted:t}=this._deriveCellTrustState(this._notebook.model);this._totalCells=e;this._trustedCells=t}this._triggerChange(n,this._getAllState())}_onModelChanged(e){const t=this._getAllState();const{total:n,trusted:i}=this._deriveCellTrustState(e.model);this._totalCells=n;this._trustedCells=i;this._triggerChange(t,this._getAllState())}_onActiveCellChanged(e,t){const n=this._getAllState();if(t){this._activeCellTrusted=t.model.trusted}else{this._activeCellTrusted=false}this._triggerChange(n,this._getAllState())}_deriveCellTrustState(e){if(e===null){return{total:0,trusted:0}}let t=0;let n=0;for(const i of e.cells){if(i.type!=="code"){continue}t++;if(i.trusted){n++}}return{total:t,trusted:n}}_getAllState(){return[this._trustedCells,this._totalCells,this.activeCellTrusted]}_triggerChange(e,t){if(e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]){this.stateChanged.emit(void 0)}}}e.Model=t})(Ve||(Ve={}));class Ue extends H.ABCWidgetFactory{constructor(e){super(e);this.rendermime=e.rendermime;this.contentFactory=e.contentFactory;this.mimeTypeService=e.mimeTypeService;this._editorConfig=e.editorConfig||xe.defaultEditorConfig;this._notebookConfig=e.notebookConfig||xe.defaultNotebookConfig}get editorConfig(){return this._editorConfig}set editorConfig(e){this._editorConfig=e}get notebookConfig(){return this._notebookConfig}set notebookConfig(e){this._notebookConfig=e}createNewWidget(e,t){const n=e.translator;const i={rendermime:t?t.content.rendermime:this.rendermime.clone({resolver:e.urlResolver}),contentFactory:this.contentFactory,mimeTypeService:this.mimeTypeService,editorConfig:t?t.content.editorConfig:this._editorConfig,notebookConfig:t?t.content.notebookConfig:this._notebookConfig,translator:n};const s=this.contentFactory.createNotebook(i);return new Ie({context:e,content:s})}}},88164:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(98328);var r=n(79536);var a=n(98896);var l=n(22748);var d=n(49914);var c=n(38613);var h=n(37935);var u=n(94683);var p=n(99434);var m=n(5956);var g=n(51734);var f=n(93379);var v=n.n(f);var _=n(7795);var b=n.n(_);var y=n(90569);var w=n.n(y);var C=n(3565);var x=n.n(C);var S=n(19216);var k=n.n(S);var j=n(44589);var M=n.n(j);var E=n(20059);var I={};I.styleTagTransform=M();I.setAttributes=x();I.insert=w().bind(null,"head");I.domAPI=b();I.insertStyleElement=k();var T=v()(E.Z,I);const D=E.Z&&E.Z.locals?E.Z.locals:undefined},84691:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ModelDB:()=>f,ObservableJSON:()=>d,ObservableList:()=>u,ObservableMap:()=>a,ObservableString:()=>c,ObservableUndoableList:()=>m,ObservableValue:()=>g});var i=n(5596);var s=n(26512);var o=n(71372);var r=n(28821);class a{constructor(e={}){this._map=new Map;this._changed=new o.Signal(this);this._isDisposed=false;this._itemCmp=e.itemCmp||l.itemCmp;if(e.values){for(const t in e.values){this._map.set(t,e.values[t])}}}get type(){return"Map"}get changed(){return this._changed}get isDisposed(){return this._isDisposed}get size(){return this._map.size}set(e,t){const n=this._map.get(e);if(t===undefined){throw Error("Cannot set an undefined value, use remove")}const i=this._itemCmp;if(n!==undefined&&i(n,t)){return n}this._map.set(e,t);this._changed.emit({type:n?"change":"add",key:e,oldValue:n,newValue:t});return n}get(e){return this._map.get(e)}has(e){return this._map.has(e)}keys(){const e=[];this._map.forEach(((t,n)=>{e.push(n)}));return e}values(){const e=[];this._map.forEach(((t,n)=>{e.push(t)}));return e}delete(e){const t=this._map.get(e);const n=this._map.delete(e);if(n){this._changed.emit({type:"remove",key:e,oldValue:t,newValue:undefined})}return t}clear(){const e=this.keys();for(let t=0;tt(n,e)));this.remove(n);return n}remove(e){const t=h.ArrayExt.removeAt(this._array,e);if(t===undefined){return}this._changed.emit({type:"remove",oldIndex:e,newIndex:-1,newValues:[],oldValues:[t]});return t}clear(){const e=this._array.slice();this._array.length=0;this._changed.emit({type:"remove",oldIndex:0,newIndex:0,newValues:[],oldValues:e})}move(e,t){if(this.length<=1||e===t){return}const n=[this._array[e]];h.ArrayExt.move(this._array,e,t);this._changed.emit({type:"move",oldIndex:e,newIndex:t,oldValues:n,newValues:n})}pushAll(e){const t=this.length;for(const n of e){this._array.push(n)}this._changed.emit({type:"add",oldIndex:-1,newIndex:t,oldValues:[],newValues:Array.from(e)});return this.length}insertAll(e,t){const n=e;for(const i of t){h.ArrayExt.insert(this._array,e++,i)}this._changed.emit({type:"add",oldIndex:-2,newIndex:n,oldValues:[],newValues:Array.from(t)})}removeRange(e,t){const n=this._array.slice(e,t);for(let i=e;i=0}beginCompoundOperation(e){this._inCompound=true;this._isUndoable=e!==false;this._madeCompoundChange=false}endCompoundOperation(){this._inCompound=false;this._isUndoable=true;if(this._madeCompoundChange){this._index++}}undo(){if(!this.canUndo){return}const e=this._stack[this._index];this._isUndoable=false;for(const t of e.reverse()){this._undoChange(t)}this._isUndoable=true;this._index--}redo(){if(!this.canRedo){return}this._index++;const e=this._stack[this._index];this._isUndoable=false;for(const t of e){this._redoChange(t)}this._isUndoable=true}clearUndo(){this._index=-1;this._stack=[]}_onListChanged(e,t){if(this.isDisposed||!this._isUndoable){return}if(!this._inCompound||!this._madeCompoundChange){this._stack=this._stack.slice(0,this._index+1)}const n=this._copyChange(t);if(this._stack[this._index+1]){this._stack[this._index+1].push(n)}else{this._stack.push([n])}if(!this._inCompound){this._index++}else{this._madeCompoundChange=true}}_undoChange(e){let t=0;const n=this._serializer;switch(e.type){case"add":for(let t=e.newValues.length;t>0;t--){this.remove(e.newIndex)}break;case"set":t=e.oldIndex;for(const i of e.oldValues){this.set(t++,n.fromJSON(i))}break;case"remove":t=e.oldIndex;for(const i of e.oldValues){this.insert(t++,n.fromJSON(i))}break;case"move":this.move(e.newIndex,e.oldIndex);break;default:return}}_redoChange(e){let t=0;const n=this._serializer;switch(e.type){case"add":t=e.newIndex;for(const i of e.newValues){this.insert(t++,n.fromJSON(i))}break;case"set":t=e.newIndex;for(const t of e.newValues){this.set(e.newIndex++,n.fromJSON(t))}break;case"remove":for(let t=e.oldValues.length;t>0;t--){this.remove(e.oldIndex)}break;case"move":this.move(e.oldIndex,e.newIndex);break;default:return}}_copyChange(e){const t=[];for(const i of e.oldValues){t.push(this._serializer.toJSON(i))}const n=[];for(const i of e.newValues){n.push(this._serializer.toJSON(i))}return{type:e.type,oldIndex:e.oldIndex,newIndex:e.newIndex,oldValues:t,newValues:n}}}(function(e){class t{toJSON(e){return e}fromJSON(e){return e}}e.IdentitySerializer=t})(m||(m={}));class g{constructor(e=null){this._value=null;this._changed=new o.Signal(this);this._isDisposed=false;this._value=e}get type(){return"Value"}get isDisposed(){return this._isDisposed}get changed(){return this._changed}get(){return this._value}set(e){const t=this._value;if(i.JSONExt.deepEqual(t,e)){return}this._value=e;this._changed.emit({oldValue:t,newValue:e})}dispose(){if(this._isDisposed){return}this._isDisposed=true;o.Signal.clearData(this);this._value=null}}(function(e){class t{}e.IChangedArgs=t})(g||(g={}));class f{constructor(e={}){this.isPrepopulated=false;this.isCollaborative=false;this.connected=Promise.resolve(void 0);this._toDispose=false;this._isDisposed=false;this._disposables=new s.DisposableSet;this._basePath=e.basePath||"";if(e.baseDB){this._db=e.baseDB}else{this._db=new a;this._toDispose=true}}get basePath(){return this._basePath}get isDisposed(){return this._isDisposed}get(e){return this._db.get(this._resolvePath(e))}has(e){return this._db.has(this._resolvePath(e))}createString(e){const t=new c;this._disposables.add(t);this.set(e,t);return t}createList(e){const t=new m(new m.IdentitySerializer);this._disposables.add(t);this.set(e,t);return t}createMap(e){const t=new d;this._disposables.add(t);this.set(e,t);return t}createValue(e){const t=new g;this._disposables.add(t);this.set(e,t);return t}getValue(e){const t=this.get(e);if(!t||t.type!=="Value"){throw Error("Can only call getValue for an ObservableValue")}return t.get()}setValue(e,t){const n=this.get(e);if(!n||n.type!=="Value"){throw Error("Can only call setValue on an ObservableValue")}n.set(t)}view(e){const t=new f({basePath:e,baseDB:this});this._disposables.add(t);return t}set(e,t){this._db.set(this._resolvePath(e),t)}dispose(){if(this.isDisposed){return}this._isDisposed=true;if(this._toDispose){this._db.dispose()}this._disposables.dispose()}_resolvePath(e){if(this._basePath){e=this._basePath+"."+e}return e}}},6710:(e,t,n)=>{"use strict";n.r(t);n.d(t,{OutputArea:()=>M,OutputAreaModel:()=>d,OutputPrompt:()=>I,SimplifiedOutputArea:()=>E,Stdin:()=>T});var i=n(32832);var s=n(20631);var o=n(23635);var r=n(58740);var a=n(5596);var l=n(71372);class d{constructor(e={}){this.clearNext=false;this._lastStream="";this._trusted=false;this._isDisposed=false;this._stateChanged=new l.Signal(this);this._changed=new l.Signal(this);this._trusted=!!e.trusted;this.contentFactory=e.contentFactory||d.defaultContentFactory;this.list=new s.ObservableList;if(e.values){for(const t of e.values){const e=this._add(t)-1;const n=this.list.get(e);n.changed.connect(this._onGenericChange,this)}}this.list.changed.connect(this._onListChanged,this)}get stateChanged(){return this._stateChanged}get changed(){return this._changed}get length(){return this.list?this.list.length:0}get trusted(){return this._trusted}set trusted(e){if(e===this._trusted){return}const t=this._trusted=e;for(let n=0;ne.toJSON())))}_add(e){const t=this._trusted;e=a.JSONExt.deepCopy(e);c.normalize(e);if(i.isStream(e)&&this._lastStream&&e.name===this._lastName&&this.shouldCombine({value:e,lastModel:this.list.get(this.length-1)})){this._lastStream+=e.text;this._lastStream=c.removeOverwrittenChars(this._lastStream);e.text=this._lastStream;const n=this._createItem({value:e,trusted:t});const i=this.length-1;const s=this.list.get(i);this.list.set(i,n);s.dispose();return this.length}if(i.isStream(e)){e.text=c.removeOverwrittenChars(e.text)}const n=this._createItem({value:e,trusted:t});if(i.isStream(e)){this._lastStream=e.text;this._lastName=e.name}else{this._lastStream=""}return this.list.push(n)}shouldCombine(e){return true}_createItem(e){const t=this.contentFactory;const n=t.createOutputModel(e);return n}_onListChanged(e,t){switch(t.type){case"add":t.newValues.forEach((e=>{e.changed.connect(this._onGenericChange,this)}));break;case"remove":t.oldValues.forEach((e=>{e.changed.disconnect(this._onGenericChange,this)}));break;case"set":t.newValues.forEach((e=>{e.changed.connect(this._onGenericChange,this)}));t.oldValues.forEach((e=>{e.changed.disconnect(this._onGenericChange,this)}));break}this._changed.emit(t)}_onGenericChange(e){let t;let n=null;for(t=0;t-1){const t=e.match(/^(.*)\r+/m)[1];let n=e.match(/\r+(.*)$/m)[1];n=n+t.slice(n.length,t.length);e=e.replace(/\r+.*$/m,"\r").replace(/^.*\r/m,n)}return e}function o(e){return s(n(e))}e.removeOverwrittenChars=o})(c||(c={}));var h=n(10759);var u=n(96306);var p=n(6958);var m=n(75379);var g=n(85448);const f="jp-OutputArea";const v="jp-OutputArea-child";const _="jp-OutputArea-output";const b="jp-OutputArea-prompt";const y="jp-OutputPrompt";const w="jp-OutputArea-executeResult";const C="jp-OutputArea-stdin-item";const x="jp-Stdin";const S="jp-Stdin-prompt";const k="jp-Stdin-input";const j="jp-OutputArea-promptOverlay";class M extends g.Widget{constructor(e){var t,n,i,s;super();this.outputLengthChanged=new l.Signal(this);this._onIOPub=e=>{const t=this.model;const n=e.header.msg_type;let i;const s=e.content.transient||{};const o=s["display_id"];let r;switch(n){case"execute_result":case"display_data":case"stream":case"error":i={...e.content,output_type:n};t.add(i);break;case"clear_output":{const n=e.content.wait;t.clear(n);break}case"update_display_data":i={...e.content,output_type:"display_data"};r=this._displayIdMap.get(o);if(r){for(const e of r){t.set(e,i)}}break;default:break}if(o&&n==="display_data"){r=this._displayIdMap.get(o)||[];r.push(t.length-1);this._displayIdMap.set(o,r)}};this._onExecuteReply=e=>{const t=this.model;const n=e.content;if(n.status!=="ok"){return}const i=n&&n.payload;if(!i||!i.length){return}const s=i.filter((e=>e.source==="page"));if(!s.length){return}const o=JSON.parse(JSON.stringify(s[0]));const r={output_type:"display_data",data:o.data,metadata:{}};t.add(r)};this._displayIdMap=new Map;this._minHeightTimeout=null;this._inputRequested=new l.Signal(this);this._toggleScrolling=new l.Signal(this);this._outputTracker=new h.WidgetTracker({namespace:a.UUID.uuid4()});this._inputHistoryScope="global";super.layout=new g.PanelLayout;this.addClass(f);this.contentFactory=(t=e.contentFactory)!==null&&t!==void 0?t:M.defaultContentFactory;this.rendermime=e.rendermime;this._maxNumberOutputs=(n=e.maxNumberOutputs)!==null&&n!==void 0?n:Infinity;this._translator=(i=e.translator)!==null&&i!==void 0?i:p.nullTranslator;this._inputHistoryScope=(s=e.inputHistoryScope)!==null&&s!==void 0?s:"global";const o=this.model=e.model;for(let r=0;r{if(u.KernelMessage.isInputRequestMsg(t)){this.onInputRequest(t,e)}}}get inputRequested(){return this._inputRequested}get maxNumberOutputs(){return this._maxNumberOutputs}set maxNumberOutputs(e){if(e<=0){console.warn(`OutputArea.maxNumberOutputs must be strictly positive.`);return}const t=this._maxNumberOutputs;this._maxNumberOutputs=e;if(t{this._toggleScrolling.emit()}));this.node.appendChild(e)}_moveDisplayIdIndices(e,t){this._displayIdMap.forEach((n=>{const i=e+t;const s=n.length;for(let o=s-1;o>=0;--o){const s=n[o];if(s>=e&&s=i){n[o]-=t}}}))}onStateChanged(e,t){const n=Math.min(this.model.length,this._maxNumberOutputs);if(t){if(t>=this._maxNumberOutputs){return}this._setOutput(t,this.model.get(t))}else{for(let e=0;e{if(this.isDisposed){return}this.node.style.minHeight=""}),50)}onInputRequest(e,t){const n=this.contentFactory;const i=e.content.prompt;const s=e.content.password;const o=new g.Panel;o.addClass(v);o.addClass(C);const r=n.createOutputPrompt();r.addClass(b);o.addWidget(r);const a=n.createStdin({parent_header:e.header,prompt:i,password:s,future:t,translator:this._translator,inputHistoryScope:this._inputHistoryScope});a.addClass(_);o.addWidget(a);if(this.model.length>=this.maxNumberOutputs){this.maxNumberOutputs=this.model.length}this.layout.addWidget(o);this._inputRequested.emit();void a.value.then((e=>{if(this.model.length>=this.maxNumberOutputs){this.maxNumberOutputs=this.model.length+1}this.model.add({output_type:"stream",name:"stdin",text:e+"\n"});o.dispose()}))}_setOutput(e,t){if(e>=this._maxNumberOutputs){return}const n=this.layout.widgets[e];const i=n.widgets?n.widgets[1]:n;const s=this.rendermime.preferredMimeType(t.data,t.trusted?"any":"ensure");if(D.currentPreferredMimetype.get(i)===s&&M.isIsolated(s,t.metadata)===i instanceof D.IsolatedRenderer){void i.renderModel(t)}else{this.layout.widgets[e].dispose();this._insertOutput(e,t)}}_insertOutput(e,t){if(e>this._maxNumberOutputs){return}const n=this.layout;if(e===this._maxNumberOutputs){const t=new D.TrimmedOutputs(this._maxNumberOutputs,(()=>{const e=this._maxNumberOutputs;this._maxNumberOutputs=Infinity;this._showTrimmedOutputs(e)}));n.insertWidget(e,this._wrappedOutput(t))}else{let i=this.createOutputItem(t);if(i){i.toggleClass(w,t.executionCount!==null)}else{i=new g.Widget}if(!this._outputTracker.has(i)){void this._outputTracker.add(i)}n.insertWidget(e,i)}}get outputTracker(){return this._outputTracker}_showTrimmedOutputs(e){this.widgets[e].dispose();for(let t=e;t{const t=document.createElement("pre");const i=this._translator.load("jupyterlab");t.textContent=i.__("Javascript Error: %1",e.message);n.node.appendChild(t);n.node.className="lm-Widget jp-RenderedText";n.node.setAttribute("data-mime-type","application/vnd.jupyter.stderr")}));return n}_wrappedOutput(e,t=null){const n=new D.OutputPanel;n.addClass(v);const i=this.contentFactory.createOutputPrompt();i.executionCount=t;i.addClass(b);n.addWidget(i);e.addClass(_);n.addWidget(e);return n}}class E extends M{onInputRequest(e,t){return}createOutputItem(e){const t=this.createRenderedMimetype(e);if(!t){return null}const n=new D.OutputPanel;n.addClass(v);t.addClass(_);n.addWidget(t);return n}}(function(e){async function t(e,t,n,i){var s;let o=true;if(i&&Array.isArray(i.tags)&&i.tags.indexOf("raises-exception")!==-1){o=false}const r={code:e,stop_on_error:o};const a=(s=n.session)===null||s===void 0?void 0:s.kernel;if(!a){throw new Error("Session has no kernel.")}const l=a.requestExecute(r,false,i);t.future=l;return l.done}e.execute=t;function n(e,t){const n=t[e];if(n&&n["isolated"]!==undefined){return!!n["isolated"]}else{return!!t["isolated"]}}e.isIsolated=n;class i{createOutputPrompt(){return new I}createStdin(e){return new T(e)}}e.ContentFactory=i;e.defaultContentFactory=new i})(M||(M={}));class I extends g.Widget{constructor(){super();this._executionCount=null;this.addClass(y)}get executionCount(){return this._executionCount}set executionCount(e){this._executionCount=e;if(e===null){this.node.textContent=""}else{this.node.textContent=`[${e}]:`}}}class T extends g.Widget{static _historyIx(e,t){const n=T._history.get(e);if(!n){return undefined}const i=n.length;if(t<=0){return i+t}}static _historyAt(e,t){const n=T._history.get(e);if(!n){return undefined}const i=n.length;const s=T._historyIx(e,t);if(s!==undefined&&s1e3){n.shift()}}static _historySearch(e,t,n,i=true){const s=T._history.get(e);const o=s.length;const r=T._historyIx(e,n);const a=e=>e.search(t)!==-1;if(r===undefined){return}if(i){if(r===0){return}const e=s.slice(0,r).findLastIndex(a);if(e!==-1){return e-o}}else{if(r>=o-1){return}const e=s.slice(r+1).findIndex(a);if(e!==-1){return e-o+r+1}}}constructor(e){var t;super({node:D.createInputWidgetNode(e.prompt,e.password)});this._promise=new a.PromiseDelegate;this.addClass(x);this._future=e.future;this._historyIndex=0;this._historyKey=e.inputHistoryScope==="session"?e.parent_header.session:"";this._historyPat="";this._parentHeader=e.parent_header;this._password=e.password;this._trans=((t=e.translator)!==null&&t!==void 0?t:p.nullTranslator).load("jupyterlab");this._value=e.prompt+" ";this._input=this.node.getElementsByTagName("input")[0];this._input.placeholder=this._trans.__("↑↓ for history. Search history with c-↑/c-↓");if(!T._history.has(this._historyKey)){T._history.set(this._historyKey,[])}}get value(){return this._promise.promise.then((()=>this._value))}handleEvent(e){const t=this._input;if(e.type==="keydown"){if(e.key==="Enter"){this.resetSearch();this._future.sendInputReply({status:"ok",value:t.value},this._parentHeader);if(this._password){this._value+="········"}else{this._value+=t.value;T._historyPush(this._historyKey,t.value)}this._promise.resolve(void 0)}else if(e.key==="Escape"){this.resetSearch();t.blur()}else if(e.ctrlKey&&(e.key==="ArrowUp"||e.key==="ArrowDown")){if(this._historyPat===""){this._historyPat=t.value}const n=e.key==="ArrowUp";const i=T._historySearch(this._historyKey,this._historyPat,this._historyIndex,n);if(i!==undefined){const n=T._historyAt(this._historyKey,i);if(n!==undefined){if(this._historyIndex===0){this._valueCache=t.value}this._setInputValue(n);this._historyIndex=i;e.preventDefault()}}}else if(e.key==="ArrowUp"){this.resetSearch();const n=T._historyAt(this._historyKey,this._historyIndex-1);if(n){if(this._historyIndex===0){this._valueCache=t.value}this._setInputValue(n);--this._historyIndex;e.preventDefault()}}else if(e.key==="ArrowDown"){this.resetSearch();if(this._historyIndex===0){}else if(this._historyIndex===-1){this._setInputValue(this._valueCache);++this._historyIndex}else{const e=T._historyAt(this._historyKey,this._historyIndex+1);if(e){this._setInputValue(e);++this._historyIndex}}}}}resetSearch(){this._historyPat=""}onAfterAttach(e){this._input.addEventListener("keydown",this);this._input.focus()}onBeforeDetach(e){this._input.removeEventListener("keydown",this)}_setInputValue(e){this._input.value=e;this._input.setSelectionRange(e.length,e.length)}}T._history=new Map;var D;(function(e){function t(e,t){const n=document.createElement("div");const i=document.createElement("pre");i.className=S;i.textContent=e;const s=document.createElement("input");s.className=k;if(t){s.type="password"}n.appendChild(i);i.appendChild(s);return n}e.createInputWidgetNode=t;class n extends g.Widget{constructor(e){super({node:document.createElement("iframe")});this.addClass("jp-mod-isolated");this._wrapped=e;const t=this.node;t.frameBorder="0";t.scrolling="auto";t.addEventListener("load",(()=>{t.contentDocument.open();t.contentDocument.write(this._wrapped.node.innerHTML);t.contentDocument.close();const e=t.contentDocument.body;t.style.height=`${e.scrollHeight}px`;t.heightChangeObserver=new ResizeObserver((()=>{t.style.height=`${e.scrollHeight}px`}));t.heightChangeObserver.observe(e)}))}renderModel(e){return this._wrapped.renderModel(e)}}e.IsolatedRenderer=n;e.currentPreferredMimetype=new m.AttachedProperty({name:"preferredMimetype",create:e=>""});class i extends g.Panel{constructor(e){super(e)}_onContext(e){this.node.focus()}onAfterAttach(e){super.onAfterAttach(e);this.node.addEventListener("contextmenu",this._onContext.bind(this))}onBeforeDetach(e){super.onAfterDetach(e);this.node.removeEventListener("contextmenu",this._onContext.bind(this))}}e.OutputPanel=i;class s extends g.Widget{constructor(e,t){const n=document.createElement("div");const i=`The first ${e} are displayed`;const s="Show more outputs";n.insertAdjacentHTML("afterbegin",`
    \n
    ${s}
    \n
    `);super({node:n});this._onClick=t;this.addClass("jp-TrimmedOutputs");this.addClass("jp-RenderedHTMLCommon")}handleEvent(e){if(e.type==="click"){this._onClick(e)}}onAfterAttach(e){super.onAfterAttach(e);this.node.addEventListener("click",this)}onBeforeDetach(e){super.onBeforeDetach(e);this.node.removeEventListener("click",this)}}e.TrimmedOutputs=s})(D||(D={}))},5333:(e,t,n)=>{"use strict";var i=n(32902);var s=n(79536);var o=n(98896);var r=n(93379);var a=n.n(r);var l=n(7795);var d=n.n(l);var c=n(90569);var h=n.n(c);var u=n(3565);var p=n.n(u);var m=n(19216);var g=n.n(m);var f=n(44589);var v=n.n(f);var _=n(71304);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.Z,b);const w=_.Z&&_.Z.locals?_.Z.locals:undefined},60962:(e,t,n)=>{"use strict";n.r(t);n.d(t,{RenderedPDF:()=>c,default:()=>p,rendererFactory:()=>h});var i=n(5596);var s=n.n(i);var o=n(26512);var r=n.n(o);var a=n(85448);var l=n.n(a);const d="application/pdf";class c extends a.Widget{constructor(){super();this._base64="";this._disposable=null;this._ready=new i.PromiseDelegate;this.addClass("jp-PDFContainer");const e=document.createElement("iframe");this.node.appendChild(e);e.onload=()=>{const t=e.contentWindow.document.createElement("body");t.style.margin="0px";e.contentWindow.document.body=t;this._object=e.contentWindow.document.createElement("object");if(!window.safari){this._object.type=d}this._object.width="100%";this._object.height="100%";t.appendChild(this._object);this._ready.resolve(void 0)}}async renderModel(e){await this._ready.promise;const t=e.data[d];if(!t||t.length===this._base64.length&&t===this._base64){if(e.metadata.fragment&&this._object.data){const t=this._object.data;this._object.data=`${t.split("#")[0]}${e.metadata.fragment}`}if(m.IS_FIREFOX){this._object.data=this._object.data}return Promise.resolve(void 0)}this._base64=t;const n=m.b64toBlob(t,d);if(this._disposable){this._disposable.dispose()}let i=URL.createObjectURL(n);if(e.metadata.fragment){i+=e.metadata.fragment}this._object.data=i;this._disposable=new o.DisposableDelegate((()=>{try{URL.revokeObjectURL(i)}catch(e){}}));return}onBeforeHide(){if(m.IS_FIREFOX){this._object.data=this._object.data.split("#")[0]}}dispose(){if(this._disposable){this._disposable.dispose()}super.dispose()}}const h={safe:false,mimeTypes:[d],defaultRank:100,createRenderer:e=>new c};const u=[{id:"@jupyterlab/pdf-extension:factory",description:"Adds renderer for PDF content.",rendererFactory:h,dataType:"string",documentWidgetFactoryOptions:{name:"PDF",modelName:"base64",primaryFileType:"PDF",fileTypes:["PDF"],defaultFor:["PDF"]}}];const p=u;var m;(function(e){e.IS_FIREFOX=/Firefox/.test(navigator.userAgent);function t(e,t="",n=512){const i=atob(e);const s=[];for(let o=0;o{"use strict";var i=n(32902);var s=n(93379);var o=n.n(s);var r=n(7795);var a=n.n(r);var l=n(90569);var d=n.n(l);var c=n(3565);var h=n.n(c);var u=n(19216);var p=n.n(u);var m=n(44589);var g=n.n(m);var f=n(18777);var v={};v.styleTagTransform=g();v.setAttributes=h();v.insert=d().bind(null,"head");v.domAPI=a();v.insertStyleElement=p();var _=o()(f.Z,v);const b=f.Z&&f.Z.locals?f.Z.locals:undefined},90790:(e,t,n)=>{"use strict";n.r(t);n.d(t,{IPropertyInspectorProvider:()=>l,SideBarPropertyInspectorProvider:()=>c});var i=n(6958);var s=n(4148);var o=n(71372);var r=n(85448);var a=n(5596);const l=new a.Token("@jupyterlab/property-inspector:IPropertyInspectorProvider","A service to registry new widget in the property inspector side panel.");class d extends r.Widget{constructor(){super();this._tracker=new r.FocusTracker;this._inspectors=new Map;this.addClass("jp-PropertyInspector");this._tracker=new r.FocusTracker;this._tracker.currentChanged.connect(this._onCurrentChanged,this)}register(e){if(this._inspectors.has(e)){throw new Error("Widget is already registered")}const t=new h.PropertyInspector(e);e.disposed.connect(this._onWidgetDisposed,this);this._inspectors.set(e,t);t.onAction.connect(this._onInspectorAction,this);this._tracker.add(e);return t}get currentWidget(){return this._tracker.currentWidget}refresh(){const e=this._tracker.currentWidget;if(!e){this.setContent(null);return}const t=this._inspectors.get(e);if(t){this.setContent(t.content)}}_onWidgetDisposed(e){const t=this._inspectors.get(e);if(t){t.dispose();this._inspectors.delete(e)}}_onInspectorAction(e,t){const n=e.owner;const i=this._tracker.currentWidget;switch(t){case"content":if(i===n){this.setContent(e.content)}break;case"dispose":if(n){this._tracker.remove(n);this._inspectors.delete(n)}break;case"show-panel":if(i===n){this.showPanel()}break;default:throw new Error("Unsupported inspector action")}}_onCurrentChanged(){const e=this._tracker.currentWidget;if(e){const t=this._inspectors.get(e);const n=t.content;this.setContent(n)}else{this.setContent(null)}}}class c extends d{constructor({shell:e,placeholder:t,translator:n}){super();this._labshell=e;this.translator=n||i.nullTranslator;this._trans=this.translator.load("jupyterlab");const s=this.layout=new r.SingletonLayout;if(t){this._placeholder=t}else{const e=document.createElement("div");const t=document.createElement("div");t.textContent=this._trans.__("No properties to inspect.");t.className="jp-PropertyInspector-placeholderContent";e.appendChild(t);this._placeholder=new r.Widget({node:e});this._placeholder.addClass("jp-PropertyInspector-placeholder")}s.widget=this._placeholder;this._labshell.currentChanged.connect(this._onShellCurrentChanged,this);this._onShellCurrentChanged()}setContent(e){const t=this.layout;if(t.widget){t.widget.removeClass("jp-PropertyInspector-content");t.removeWidget(t.widget)}if(!e){e=this._placeholder}e.addClass("jp-PropertyInspector-content");t.widget=e}showPanel(){this._labshell.activateById(this.id)}_onShellCurrentChanged(){const e=this.currentWidget;if(!e){this.setContent(null);return}const t=this._labshell.currentWidget;if(t===null||t===void 0?void 0:t.node.contains(e.node)){this.refresh()}else{this.setContent(null)}}}var h;(function(e){class t{constructor(e){this._isDisposed=false;this._content=null;this._owner=null;this._onAction=new o.Signal(this);this._owner=e}get owner(){return this._owner}get content(){return this._content}get isDisposed(){return this._isDisposed}get onAction(){return this._onAction}showPanel(){if(this._isDisposed){return}this._onAction.emit("show-panel")}render(e){if(this._isDisposed){return}if(e instanceof r.Widget){this._content=e}else{this._content=s.ReactWidget.create(e)}this._onAction.emit("content")}dispose(){if(this._isDisposed){return}this._isDisposed=true;this._content=null;this._owner=null;o.Signal.clearData(this)}}e.PropertyInspector=t})(h||(h={}))},9469:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(90516);var r=n(93379);var a=n.n(r);var l=n(7795);var d=n.n(l);var c=n(90569);var h=n.n(c);var u=n(3565);var p=n.n(u);var m=n(19216);var g=n.n(m);var f=n(44589);var v=n.n(f);var _=n(10633);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.Z,b);const w=_.Z&&_.Z.locals?_.Z.locals:undefined},22793:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>p});var i=n(10759);var s=n.n(i);var o=n(25504);var r=n.n(o);var a=n(23635);var l=n.n(a);var d=n(6958);var c=n.n(d);var h;(function(e){e.handleLink="rendermime:handle-local-link"})(h||(h={}));const u={id:"@jupyterlab/rendermime-extension:plugin",description:"Provides the render mime registry.",optional:[o.IDocumentManager,a.ILatexTypesetter,i.ISanitizer,a.IMarkdownParser,d.ITranslator],provides:a.IRenderMimeRegistry,activate:m,autoStart:true};const p=u;function m(e,t,n,i,s,o){const r=(o!==null&&o!==void 0?o:d.nullTranslator).load("jupyterlab");if(t){e.commands.addCommand(h.handleLink,{label:r.__("Handle Local Link"),execute:e=>{const n=e["path"];const i=e["id"];if(!n){return}return t.services.contents.get(n,{content:false}).then((()=>{const e=t.registry.defaultRenderedWidgetFactory(n);const s=t.openOrReveal(n,e.name);if(s&&i){s.setFragment(i)}}))}})}return new a.RenderMimeRegistry({initialFactories:a.standardRendererFactories,linkHandler:!t?undefined:{handleLink:(t,n,i)=>{if(t.tagName==="A"&&t.hasAttribute("download")){return}e.commandLinker.connectNode(t,h.handleLink,{path:n,id:i})}},latexTypesetter:n!==null&&n!==void 0?n:undefined,markdownParser:s!==null&&s!==void 0?s:undefined,translator:o!==null&&o!==void 0?o:undefined,sanitizer:i!==null&&i!==void 0?i:undefined})}},95528:(e,t,n)=>{"use strict";var i=n(79536);var s=n(98896);var o=n(90516);var r=n(82401)},1428:(e,t,n)=>{"use strict";n.r(t)},81845:(e,t,n)=>{"use strict";n.d(t,{g:()=>d});var i=n(20631);var s=n.n(i);var o=n(5596);var r=n.n(o);var a=n(71372);var l=n.n(a);class d{constructor(e){this.trusted=false;this._changed=new a.Signal(this);this._raw={};const t=c.getData(e.value);this._data=new i.ObservableJSON({values:t});this._rawData=t;const n=e.value;for(const i in n){switch(i){case"data":break;default:this._raw[i]=c.extract(n,i)}}}get changed(){return this._changed}dispose(){this._data.dispose();a.Signal.clearData(this)}get data(){return this._rawData}get metadata(){return{}}setData(e){if(e.data){this._updateObservable(this._data,e.data);this._rawData=e.data}this._changed.emit(void 0)}toJSON(){const e={};for(const t in this._raw){e[t]=c.extract(this._raw,t)}return e}_updateObservable(e,t){const n=e.keys();const i=Object.keys(t);for(const s of n){if(i.indexOf(s)===-1){e.delete(s)}}for(const s of i){const n=e.get(s);const i=t[s];if(n!==i){e.set(s,i)}}}}(function(e){function t(e){return c.getData(e)}e.getData=t})(d||(d={}));var c;(function(e){function t(e){return s(e)}e.getData=t;function n(e){const n=t(e.value);return{data:n}}e.getBundleOptions=n;function i(e,t){const n=e[t];if(n===undefined||o.JSONExt.isPrimitive(n)){return n}return o.JSONExt.deepCopy(n)}e.extract=i;function s(e){const t=Object.create(null);for(const n in e){t[n]=i(e,n)}return t}})(c||(c={}))},1896:(e,t,n)=>{"use strict";n.d(t,{BJ:()=>d,F:()=>l,Lz:()=>o,Nf:()=>h,hJ:()=>r,nF:()=>c,vy:()=>s,xr:()=>a});var i=n(7848);const s={safe:true,mimeTypes:["text/html"],defaultRank:50,createRenderer:e=>new i.oI(e)};const o={safe:true,mimeTypes:["image/bmp","image/png","image/jpeg","image/gif","image/webp"],defaultRank:90,createRenderer:e=>new i.UH(e)};const r={safe:true,mimeTypes:["text/latex"],defaultRank:70,createRenderer:e=>new i.FK(e)};const a={safe:true,mimeTypes:["text/markdown"],defaultRank:60,createRenderer:e=>new i.cw(e)};const l={safe:false,mimeTypes:["image/svg+xml"],defaultRank:80,createRenderer:e=>new i.zt(e)};const d={safe:true,mimeTypes:["text/plain","application/vnd.jupyter.stdout","application/vnd.jupyter.stderr"],defaultRank:120,createRenderer:e=>new i.lH(e)};const c={safe:false,mimeTypes:["text/javascript","application/javascript"],defaultRank:110,createRenderer:e=>new i.ND(e)};const h=[s,a,r,l,o,c,d]},20299:(e,t,n)=>{"use strict";n.r(t);n.d(t,{AttachmentModel:()=>r.g,ILatexTypesetter:()=>p._y,IMarkdownParser:()=>p.sc,IRenderMimeRegistry:()=>p.ZD,MimeModel:()=>d.a,OutputModel:()=>c.M,RenderMimeRegistry:()=>h.D,RenderedCommon:()=>m.pY,RenderedHTML:()=>m.oI,RenderedHTMLCommon:()=>m.BP,RenderedImage:()=>m.UH,RenderedJavaScript:()=>m.ND,RenderedLatex:()=>m.FK,RenderedMarkdown:()=>m.cw,RenderedSVG:()=>m.zt,RenderedText:()=>m.lH,htmlRendererFactory:()=>a.vy,imageRendererFactory:()=>a.Lz,javaScriptRendererFactory:()=>a.nF,latexRendererFactory:()=>a.hJ,markdownRendererFactory:()=>a.xr,removeMath:()=>l.D,renderHTML:()=>u.NN,renderImage:()=>u.co,renderLatex:()=>u.K3,renderMarkdown:()=>u.ap,renderSVG:()=>u.KB,renderText:()=>u.IY,replaceMath:()=>l.b,standardRendererFactories:()=>a.Nf,svgRendererFactory:()=>a.F,textRendererFactory:()=>a.BJ});var i=n(89368);var s=n.n(i);var o={};for(const g in i)if(g!=="default")o[g]=()=>i[g];n.d(t,o);var r=n(81845);var a=n(1896);var l=n(26408);var d=n(59376);var c=n(2132);var h=n(88960);var u=n(57687);var p=n(30273);var m=n(7848)},26408:(e,t,n)=>{"use strict";n.d(t,{D:()=>o,b:()=>r});const i="$";const s=/(\$\$?|\\(?:begin|end)\{[a-z]*\*?\}|\\[{}$]|[{}]|(?:\n\s*)+|@@\d+@@|\\\\(?:\(|\)|\[|\]))/i;function o(e){const t=[];let n=null;let o=null;let r=null;let l=0;let d;const c=e.includes("`")||e.includes("~~~");if(c){e=e.replace(/~/g,"~T").replace(/^(?`{3,}|(~T){3,})[^`\n]*\n([\s\S]*?)^\k`*$/gm,(e=>e.replace(/\$/g,"~D"))).replace(/(^|[^\\])(`+)([^\n]*?[^`\n])\2(?!`)/gm,(e=>e.replace(/\$/g,"~D")));d=e=>e.replace(/~([TD])/g,((e,t)=>t==="T"?"~":i))}else{d=e=>e}let h=e.replace(/\r\n?/g,"\n").split(s);for(let s=1,u=h.length;s{let i=t[n];if(i.substr(0,3)==="\\\\("&&i.substr(i.length-3)==="\\\\)"){i="\\("+i.substring(3,i.length-3)+"\\)"}else if(i.substr(0,3)==="\\\\["&&i.substr(i.length-3)==="\\\\]"){i="\\["+i.substring(3,i.length-3)+"\\]"}return i};return e.replace(/@@(\d+)@@/g,n)}function a(e,t,n,i,s){let o=s.slice(e,t+1).join("").replace(/&/g,"&").replace(//g,">");if(navigator&&navigator.appName==="Microsoft Internet Explorer"){o=o.replace(/(%[^\n]*)\n/g,"$1
    \n")}while(t>e){s[t]="";t--}s[e]="@@"+i.length+"@@";if(n){o=n(o)}i.push(o);return s}},59376:(e,t,n)=>{"use strict";n.d(t,{a:()=>i});class i{constructor(e={}){this.trusted=!!e.trusted;this._data=e.data||{};this._metadata=e.metadata||{};this._callback=e.callback||s.noOp}get data(){return this._data}get metadata(){return this._metadata}setData(e){this._data=e.data||this._data;this._metadata=e.metadata||this._metadata;this._callback(e)}}var s;(function(e){function t(){}e.noOp=t})(s||(s={}))},2132:(e,t,n)=>{"use strict";n.d(t,{M:()=>h});var i=n(32832);var s=n.n(i);var o=n(20631);var r=n.n(o);var a=n(5596);var l=n.n(a);var d=n(71372);var c=n.n(d);class h{constructor(e){this._changed=new d.Signal(this);this._raw={};const{data:t,metadata:n,trusted:s}=u.getBundleOptions(e);this._data=new o.ObservableJSON({values:t});this._rawData=t;this._metadata=new o.ObservableJSON({values:n});this._rawMetadata=n;this.trusted=s;const r=e.value;for(const i in r){switch(i){case"data":case"metadata":break;default:this._raw[i]=u.extract(r,i)}}this.type=r.output_type;if(i.isExecuteResult(r)){this.executionCount=r.execution_count}else{this.executionCount=null}}get changed(){return this._changed}dispose(){this._data.dispose();this._metadata.dispose();d.Signal.clearData(this)}get data(){return this._rawData}get metadata(){return this._rawMetadata}setData(e){if(e.data){this._updateObservable(this._data,e.data);this._rawData=e.data}if(e.metadata){this._updateObservable(this._metadata,e.metadata);this._rawMetadata=e.metadata}this._changed.emit()}toJSON(){const e={};for(const t in this._raw){e[t]=u.extract(this._raw,t)}switch(this.type){case"display_data":case"execute_result":case"update_display_data":e["data"]=this.data;e["metadata"]=this.metadata;break;default:break}delete e["transient"];return e}_updateObservable(e,t){const n=e.keys();const i=Object.keys(t);for(const s of n){if(i.indexOf(s)===-1){e.delete(s)}}for(const s of i){const n=e.get(s);const i=t[s];if(n!==i){e.set(s,i)}}}}(function(e){function t(e){return u.getData(e)}e.getData=t;function n(e){return u.getMetadata(e)}e.getMetadata=n})(h||(h={}));var u;(function(e){function t(e){let t={};if(i.isExecuteResult(e)||i.isDisplayData(e)||i.isDisplayUpdate(e)){t=e.data}else if(i.isStream(e)){if(e.name==="stderr"){t["application/vnd.jupyter.stderr"]=e.text}else{t["application/vnd.jupyter.stdout"]=e.text}}else if(i.isError(e)){t["application/vnd.jupyter.error"]=e;const n=e.traceback.join("\n");t["application/vnd.jupyter.stderr"]=n||`${e.ename}: ${e.evalue}`}return r(t)}e.getData=t;function n(e){const t=Object.create(null);if(i.isExecuteResult(e)||i.isDisplayData(e)){for(const n in e.metadata){t[n]=o(e.metadata,n)}}return t}e.getMetadata=n;function s(e){const i=t(e.value);const s=n(e.value);const o=!!e.trusted;return{data:i,metadata:s,trusted:o}}e.getBundleOptions=s;function o(e,t){const n=e[t];if(n===undefined||a.JSONExt.isPrimitive(n)){return n}return JSON.parse(JSON.stringify(n))}e.extract=o;function r(e){const t=Object.create(null);for(const n in e){t[n]=o(e,n)}return t}})(u||(u={}))},88960:(e,t,n)=>{"use strict";n.d(t,{D:()=>c});var i=n(10759);var s=n.n(i);var o=n(20501);var r=n.n(o);var a=n(6958);var l=n.n(a);var d=n(59376);class c{constructor(e={}){var t,n,s,o,r,l;this._id=0;this._ranks={};this._types=null;this._factories={};this.translator=(t=e.translator)!==null&&t!==void 0?t:a.nullTranslator;this.resolver=(n=e.resolver)!==null&&n!==void 0?n:null;this.linkHandler=(s=e.linkHandler)!==null&&s!==void 0?s:null;this.latexTypesetter=(o=e.latexTypesetter)!==null&&o!==void 0?o:null;this.markdownParser=(r=e.markdownParser)!==null&&r!==void 0?r:null;this.sanitizer=(l=e.sanitizer)!==null&&l!==void 0?l:new i.Sanitizer;if(e.initialFactories){for(const t of e.initialFactories){this.addFactory(t)}}}get mimeTypes(){return this._types||(this._types=h.sortedTypes(this._ranks))}preferredMimeType(e,t="ensure"){if(t==="ensure"||t==="prefer"){for(const t of this.mimeTypes){if(t in e&&this._factories[t].safe){return t}}}if(t!=="ensure"){for(const t of this.mimeTypes){if(t in e){return t}}}return undefined}createRenderer(e){if(!(e in this._factories)){throw new Error(`No factory for mime type: '${e}'`)}return this._factories[e].createRenderer({mimeType:e,resolver:this.resolver,sanitizer:this.sanitizer,linkHandler:this.linkHandler,latexTypesetter:this.latexTypesetter,markdownParser:this.markdownParser,translator:this.translator})}createModel(e={}){return new d.a(e)}clone(e={}){var t,n,i,s,o,r,a,l,d,h;const u=new c({resolver:(n=(t=e.resolver)!==null&&t!==void 0?t:this.resolver)!==null&&n!==void 0?n:undefined,sanitizer:(s=(i=e.sanitizer)!==null&&i!==void 0?i:this.sanitizer)!==null&&s!==void 0?s:undefined,linkHandler:(r=(o=e.linkHandler)!==null&&o!==void 0?o:this.linkHandler)!==null&&r!==void 0?r:undefined,latexTypesetter:(l=(a=e.latexTypesetter)!==null&&a!==void 0?a:this.latexTypesetter)!==null&&l!==void 0?l:undefined,markdownParser:(h=(d=e.markdownParser)!==null&&d!==void 0?d:this.markdownParser)!==null&&h!==void 0?h:undefined,translator:this.translator});u._factories={...this._factories};u._ranks={...this._ranks};u._id=this._id;return u}getFactory(e){return this._factories[e]}addFactory(e,t){if(t===undefined){t=e.defaultRank;if(t===undefined){t=100}}for(const n of e.mimeTypes){this._factories[n]=e;this._ranks[n]={rank:t,id:this._id++}}this._types=null}removeMimeType(e){delete this._factories[e];delete this._ranks[e];this._types=null}getRank(e){const t=this._ranks[e];return t&&t.rank}setRank(e,t){if(!this._ranks[e]){return}const n=this._id++;this._ranks[e]={rank:t,id:n};this._types=null}}(function(e){class t{constructor(e){this._path=e.path;this._contents=e.contents}get path(){return this._path}set path(e){this._path=e}async resolveUrl(e){if(this.isLocal(e)){const t=encodeURI(o.PathExt.dirname(this.path));e=o.PathExt.resolve(t,e)}return e}async getDownloadUrl(e){if(this.isLocal(e)){return this._contents.getDownloadUrl(decodeURIComponent(e))}return e}isLocal(e){if(this.isMalformed(e)){return false}return o.URLExt.isLocal(e)||!!this._contents.driveName(decodeURI(e))}isMalformed(e){try{decodeURI(e);return false}catch(t){if(t instanceof URIError){return true}throw t}}}e.UrlResolver=t})(c||(c={}));var h;(function(e){function t(e){return Object.keys(e).sort(((t,n)=>{const i=e[t];const s=e[n];if(i.rank!==s.rank){return i.rank-s.rank}return i.id-s.id}))}e.sortedTypes=t})(h||(h={}))},57687:(e,t,n)=>{"use strict";n.d(t,{IY:()=>b,K3:()=>u,KB:()=>m,NN:()=>c,ap:()=>p,co:()=>h});var i=n(20501);var s=n.n(i);var o=n(6958);var r=n.n(o);var a=n(98686);var l=n.n(a);var d=n(26408);function c(e){let{host:t,source:n,trusted:i,sanitizer:s,resolver:r,linkHandler:a,shouldTypeset:l,latexTypesetter:d,translator:c}=e;c=c||o.nullTranslator;const h=c===null||c===void 0?void 0:c.load("jupyterlab");let u=n;if(!n){t.textContent="";return Promise.resolve(undefined)}if(!i){u=`${n}`;n=s.sanitize(n)}t.innerHTML=n;if(t.getElementsByTagName("script").length>0){if(i){y.evalInnerHTMLScriptTags(t)}else{const e=document.createElement("div");const n=document.createElement("pre");n.textContent=h.__("This HTML output contains inline scripts. Are you sure that you want to run arbitrary Javascript within your JupyterLab session?");const i=document.createElement("button");i.textContent=h.__("Run");i.onclick=e=>{t.innerHTML=u;y.evalInnerHTMLScriptTags(t);if(t.firstChild){t.removeChild(t.firstChild)}};e.appendChild(n);e.appendChild(i);t.insertBefore(e,t.firstChild)}}y.handleDefaults(t,r);let p;if(r){p=y.handleUrls(t,r,a)}else{p=Promise.resolve(undefined)}return p.then((()=>{if(l&&d){d.typeset(t)}}))}function h(e){const{host:t,mimeType:n,source:i,width:s,height:o,needsBackground:r,unconfined:a}=e;t.textContent="";const l=document.createElement("img");l.src=`data:${n};base64,${i}`;if(typeof o==="number"){l.height=o}if(typeof s==="number"){l.width=s}if(r==="light"){l.classList.add("jp-needs-light-background")}else if(r==="dark"){l.classList.add("jp-needs-dark-background")}if(a===true){l.classList.add("jp-mod-unconfined")}t.appendChild(l);return Promise.resolve(undefined)}function u(e){const{host:t,source:n,shouldTypeset:i,latexTypesetter:s}=e;t.textContent=n;if(i&&s){s.typeset(t)}return Promise.resolve(undefined)}async function p(e){const{host:t,source:n,markdownParser:i,...s}=e;if(!n){t.textContent="";return}let o="";if(i){const e=(0,d.D)(n);o=await i.render(e["text"]);o=(0,d.b)(o,e["math"])}else{o=`
    ${n}
    `}await c({host:t,source:o,...s});y.headerAnchors(t)}(function(e){function t(e){var t;return((t=e.textContent)!==null&&t!==void 0?t:"").replace(/ /g,"-")}e.createHeaderId=t})(p||(p={}));function m(e){let{host:t,source:n,trusted:i,unconfined:s}=e;if(!n){t.textContent="";return Promise.resolve(undefined)}if(!i){t.textContent="Cannot display an untrusted SVG. Maybe you need to run the cell?";return Promise.resolve(undefined)}const o="]+xmlns=[^>]+svg";if(n.search(o)<0){n=n.replace("","<"].indexOf(n)!==-1;const a=r?t.length-1:t.length;const l=document.createElement("a");t=t.slice(0,a);l.href=t.startsWith("www.")?"https://"+t:t;l.rel="noopener";l.target="_blank";l.appendChild(document.createTextNode(t.slice(0,a)));i.push(l);s=o.index+a}if(s!==e.length){i.push(document.createTextNode(e.slice(s,e.length)))}return i}function f(e,t){var n,i;const s=e.cloneNode();s.textContent=(n=e.textContent)===null||n===void 0?void 0:n.slice(0,t);const o=e.cloneNode();o.textContent=(i=e.textContent)===null||i===void 0?void 0:i.slice(t);return{pre:s,post:o}}function*v(e){var t;let n=0;let i;for(let s of e){i=n+(((t=s.textContent)===null||t===void 0?void 0:t.length)||0);yield{node:s,start:n,end:i,isText:s.nodeType===Node.TEXT_NODE};n=i}}function*_(e,t){var n,i;let s=v(e);let o=v(t);let r=s.next();let a=o.next();while(!r.done&&!a.done){let e=r.value;let t=a.value;if(e.isText&&e.start<=t.start&&e.end>=t.end){yield[null,t.node];a=o.next()}else if(t.isText&&t.start<=e.start&&t.end>=e.end){yield[e.node,null];r=s.next()}else{if(e.end===t.end&&e.start===t.start){yield[e.node,t.node];r=s.next();a=o.next()}else if(e.end>t.end){let{pre:i,post:s}=f(e.node,t.end-e.start);if(t.starte.end){let{pre:n,post:o}=f(t.node,e.end-t.start);if(e.startundefined))}e.handleUrls=s;function o(e){const t=["h1","h2","h3","h4","h5","h6"];for(const n of t){const t=e.getElementsByTagName(n);for(let e=0;e{const s=decodeURIComponent(i);if(n){n.handleLink(e,s,r)}return t.getDownloadUrl(i)})).then((t=>{e.href=t+r})).catch((t=>{e.href=""}))}const d=["ansi-black","ansi-red","ansi-green","ansi-yellow","ansi-blue","ansi-magenta","ansi-cyan","ansi-white","ansi-black-intense","ansi-red-intense","ansi-green-intense","ansi-yellow-intense","ansi-blue-intense","ansi-magenta-intense","ansi-cyan-intense","ansi-white-intense"];function c(e,t,n,i,s,o,r){if(e){const a=[];const l=[];if(i&&typeof t==="number"&&0<=t&&t<8){t+=8}if(o){[t,n]=[n,t]}if(typeof t==="number"){a.push(d[t]+"-fg")}else if(t.length){l.push(`color: rgb(${t})`)}else if(o){a.push("ansi-default-inverse-fg")}if(typeof n==="number"){a.push(d[n]+"-bg")}else if(n.length){l.push(`background-color: rgb(${n})`)}else if(o){a.push("ansi-default-inverse-bg")}if(i){a.push("ansi-bold")}if(s){a.push("ansi-underline")}if(a.length||l.length){r.push("");r.push(e);r.push("
    ")}else{r.push(e)}}}function h(e){let t;let n;let i;const s=e.shift();if(s===2&&e.length>=3){t=e.shift();n=e.shift();i=e.shift();if([t,n,i].some((e=>e<0||255=1){const s=e.shift();if(s<0){throw new RangeError("Color index must be >= 0")}else if(s<16){return s}else if(s<232){t=Math.floor((s-16)/36);t=t>0?55+t*40:0;n=Math.floor((s-16)%36/6);n=n>0?55+n*40:0;i=(s-16)%6;i=i>0?55+i*40:0}else if(s<256){t=n=i=(s-232)*10+8}else{throw new RangeError("Color index must be < 256")}}else{throw new RangeError("Invalid extended color specification")}return[t,n,i]}function u(e){const t=/\x1b\[(.*?)([@-~])/g;let n=[];let i=[];let s=false;let o=false;let r=false;let a;const d=[];const u=[];let p=0;e=l()(e);e+="";while(a=t.exec(e)){if(a[2]==="m"){const e=a[1].split(";");for(let t=0;t{"use strict";n.d(t,{ZD:()=>o,_y:()=>r,sc:()=>a});var i=n(5596);var s=n.n(i);const o=new i.Token("@jupyterlab/rendermime:IRenderMimeRegistry",'A service for the rendermime registry for the application. Use this to create renderers for various mime-types in your extension. Many times it will be easier to create a "mime renderer extension" rather than using this service directly.');const r=new i.Token("@jupyterlab/rendermime:ILatexTypesetter","A service for the LaTeX typesetter for the application. Use this if you want to typeset math in your extension.");const a=new i.Token("@jupyterlab/rendermime:IMarkdownParser","A service for rendering markdown syntax as HTML content.")},7848:(e,t,n)=>{"use strict";n.d(t,{BP:()=>d,FK:()=>h,ND:()=>f,UH:()=>u,cw:()=>p,lH:()=>g,oI:()=>c,pY:()=>l,zt:()=>m});var i=n(6958);var s=n.n(i);var o=n(85448);var r=n.n(o);var a=n(57687);class l extends o.Widget{constructor(e){var t,n;super();this.mimeType=e.mimeType;this.sanitizer=e.sanitizer;this.resolver=e.resolver;this.linkHandler=e.linkHandler;this.translator=(t=e.translator)!==null&&t!==void 0?t:i.nullTranslator;this.latexTypesetter=e.latexTypesetter;this.markdownParser=(n=e.markdownParser)!==null&&n!==void 0?n:null;this.node.dataset["mimeType"]=this.mimeType}async renderModel(e,t){if(!t){while(this.node.firstChild){this.node.removeChild(this.node.firstChild)}}this.toggleClass("jp-mod-trusted",e.trusted);await this.render(e);const{fragment:n}=e.metadata;if(n){this.setFragment(n)}}setFragment(e){}}class d extends l{constructor(e){super(e);this.addClass("jp-RenderedHTMLCommon")}setFragment(e){let t;try{t=this.node.querySelector(e.startsWith("#")?`#${CSS.escape(e.slice(1))}`:e)}catch(n){console.warn("Unable to set URI fragment identifier.",n)}if(t){t.scrollIntoView()}}}class c extends d{constructor(e){super(e);this.addClass("jp-RenderedHTML")}render(e){return a.NN({host:this.node,source:String(e.data[this.mimeType]),trusted:e.trusted,resolver:this.resolver,sanitizer:this.sanitizer,linkHandler:this.linkHandler,shouldTypeset:this.isAttached,latexTypesetter:this.latexTypesetter,translator:this.translator})}onAfterAttach(e){if(this.latexTypesetter){this.latexTypesetter.typeset(this.node)}}}class h extends l{constructor(e){super(e);this.addClass("jp-RenderedLatex")}render(e){return a.K3({host:this.node,source:String(e.data[this.mimeType]),shouldTypeset:this.isAttached,latexTypesetter:this.latexTypesetter})}onAfterAttach(e){if(this.latexTypesetter){this.latexTypesetter.typeset(this.node)}}}class u extends l{constructor(e){super(e);this.addClass("jp-RenderedImage")}render(e){const t=e.metadata[this.mimeType];return a.co({host:this.node,mimeType:this.mimeType,source:String(e.data[this.mimeType]),width:t&&t.width,height:t&&t.height,needsBackground:e.metadata["needs_background"],unconfined:t&&t.unconfined})}}class p extends d{constructor(e){super(e);this.addClass("jp-RenderedMarkdown")}render(e){return a.ap({host:this.node,source:String(e.data[this.mimeType]),trusted:e.trusted,resolver:this.resolver,sanitizer:this.sanitizer,linkHandler:this.linkHandler,shouldTypeset:this.isAttached,latexTypesetter:this.latexTypesetter,markdownParser:this.markdownParser,translator:this.translator})}async renderModel(e){await super.renderModel(e,true)}onAfterAttach(e){if(this.latexTypesetter){this.latexTypesetter.typeset(this.node)}}}class m extends l{constructor(e){super(e);this.addClass("jp-RenderedSVG")}render(e){const t=e.metadata[this.mimeType];return a.KB({host:this.node,source:String(e.data[this.mimeType]),trusted:e.trusted,unconfined:t&&t.unconfined,translator:this.translator})}onAfterAttach(e){if(this.latexTypesetter){this.latexTypesetter.typeset(this.node)}}}class g extends l{constructor(e){super(e);this.addClass("jp-RenderedText")}render(e){return a.IY({host:this.node,sanitizer:this.sanitizer,source:String(e.data[this.mimeType]),translator:this.translator})}}class f extends l{constructor(e){super(e);this.addClass("jp-RenderedJavaScript")}render(e){const t=this.translator.load("jupyterlab");return a.IY({host:this.node,sanitizer:this.sanitizer,source:t.__("JavaScript output is disabled in JupyterLab"),translator:this.translator})}}},98896:(e,t,n)=>{"use strict";var i=n(32902);var s=n(79536);var o=n(93379);var r=n.n(o);var a=n(7795);var l=n.n(a);var d=n(90569);var c=n.n(d);var h=n(3565);var u=n.n(h);var p=n(19216);var m=n.n(p);var g=n(44589);var f=n.n(g);var v=n(60658);var _={};_.styleTagTransform=f();_.setAttributes=u();_.insert=c().bind(null,"head");_.domAPI=l();_.insertStyleElement=m();var b=r()(v.Z,_);const y=v.Z&&v.Z.locals?v.Z.locals:undefined},39914:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CommandIDs:()=>f,default:()=>_});var i=n(74574);var s=n(54411);var o=n(6958);var r=n(4148);var a=n(20501);var l=n(95905);var d=n(71372);const c="jp-mod-kernel";async function h(e,t,n){const{commands:i,contextMenu:s,serviceManager:o}=n;const{kernels:d,kernelspecs:h,sessions:p}=o;const{runningChanged:m,RunningKernel:g}=u;const v=new l.Throttler((()=>m.emit(undefined)),100);const _=t.load("jupyterlab");d.runningChanged.connect((()=>void v.invoke()));p.runningChanged.connect((()=>void v.invoke()));await Promise.all([d.ready,h.ready,p.ready]);e.add({name:_.__("Kernels"),running:()=>Array.from(d.running()).map((e=>{var t;return new g({commands:i,kernel:e,kernels:d,sessions:p,spec:(t=h.specs)===null||t===void 0?void 0:t.kernelspecs[e.name],trans:_})})),shutdownAll:()=>d.shutdownAll(),refreshRunning:()=>Promise.all([d.refreshRunning(),p.refreshRunning()]),runningChanged:m,shutdownLabel:_.__("Shut Down Kernel"),shutdownAllLabel:_.__("Shut Down All"),shutdownAllConfirmationText:_.__("Are you sure you want to permanently shut down all running kernels?")});const b=e=>e.classList.contains(c);i.addCommand(f.kernelNewConsole,{icon:r.consoleIcon,label:_.__("New Console for Kernel"),execute:e=>{var t;const s=n.contextMenuHitTest(b);const o=(t=e.id)!==null&&t!==void 0?t:s===null||s===void 0?void 0:s.dataset["context"];if(o){return i.execute("console:create",{kernelPreference:{id:o}})}}});i.addCommand(f.kernelNewNotebook,{icon:r.notebookIcon,label:_.__("New Notebook for Kernel"),execute:e=>{var t;const s=n.contextMenuHitTest(b);const o=(t=e.id)!==null&&t!==void 0?t:s===null||s===void 0?void 0:s.dataset["context"];if(o){return i.execute("notebook:create-new",{kernelId:o})}}});i.addCommand(f.kernelOpenSession,{icon:e=>e.type==="console"?r.consoleIcon:e.type==="notebook"?r.notebookIcon:undefined,isEnabled:({path:e,type:t})=>!!t||e!==undefined,label:({name:e,path:t})=>e||a.PathExt.basename(t||_.__("Unknown Session")),execute:({path:e,type:t})=>{if(!t||e===undefined){return}const n=t==="console"?"console:open":"docmanager:open";return i.execute(n,{path:e})}});i.addCommand(f.kernelShutDown,{icon:r.closeIcon,label:_.__("Shut Down Kernel"),execute:e=>{var t;const i=n.contextMenuHitTest(b);const s=(t=e.id)!==null&&t!==void 0?t:i===null||i===void 0?void 0:i.dataset["context"];if(s){return d.shutdown(s)}}});const y=[];s.opened.connect((async()=>{var e,t,i;const o=(t=(e=s.menu.items.find((e=>{var t;return e.type==="submenu"&&((t=e.submenu)===null||t===void 0?void 0:t.id)==="jp-contextmenu-connected-sessions"})))===null||e===void 0?void 0:e.submenu)!==null&&t!==void 0?t:null;if(!o){return}y.forEach((e=>e.dispose()));y.length=0;o.clearItems();const r=n.contextMenuHitTest(b);const a=r===null||r===void 0?void 0:r.dataset["context"];if(!a){return}const l=f.kernelOpenSession;for(const n of p.running()){if(a===((i=n.kernel)===null||i===void 0?void 0:i.id)){const{name:e,path:t,type:i}=n;y.push(o.addItem({command:l,args:{name:e,path:t,type:i}}))}}}))}var u;(function(e){class t{constructor(e){this.className=c;this.commands=e.commands;this.kernel=e.kernel;this.context=this.kernel.id;this.kernels=e.kernels;this.sessions=e.sessions;this.spec=e.spec||null;this.trans=e.trans}get children(){var e;const t=[];const n=f.kernelOpenSession;const{commands:i}=this;for(const s of this.sessions.running()){if(this.kernel.id===((e=s.kernel)===null||e===void 0?void 0:e.id)){const{name:e,path:o,type:a}=s;t.push({className:c,context:this.kernel.id,open:()=>void i.execute(n,{name:e,path:o,type:a}),icon:()=>a==="console"?r.consoleIcon:a==="notebook"?r.notebookIcon:r.jupyterIcon,label:()=>e,labelTitle:()=>o})}}return t}shutdown(){return this.kernels.shutdown(this.kernel.id)}icon(){const{spec:e}=this;if(!e||!e.resources){return r.jupyterIcon}return e.resources["logo-svg"]||e.resources["logo-64x64"]||e.resources["logo-32x32"]}label(){const{kernel:e,spec:t}=this;return(t===null||t===void 0?void 0:t.display_name)||e.name}labelTitle(){var e;const{trans:t}=this;const{id:n}=this.kernel;const i=[`${this.label()}: ${n}`];for(const s of this.sessions.running()){if(this.kernel.id===((e=s.kernel)===null||e===void 0?void 0:e.id)){const{path:e,type:n}=s;i.push(t.__(`%1\nPath: %2`,n,e))}}return i.join("\n\n")}}e.RunningKernel=t;e.runningChanged=new d.Signal({})})(u||(u={}));var p=n(12542);class m{constructor(e){this._tabsChanged=new d.Signal(this);this._widgets=[];this._labShell=e;this._labShell.layoutModified.connect(this._emitTabsChanged,this)}get tabsChanged(){return this._tabsChanged}addWidget(e){e.title.changed.connect(this._emitTabsChanged,this);this._widgets.push(e)}_emitTabsChanged(){this._widgets.forEach((e=>{e.title.changed.disconnect(this._emitTabsChanged,this)}));this._widgets=[];this._tabsChanged.emit(void 0)}}function g(e,t,n){const i=new m(n);const s=t.load("jupyterlab");e.add({name:s.__("Open Tabs"),running:()=>Array.from(n.widgets("main")).map((e=>{i.addWidget(e);return new o(e)})),shutdownAll:()=>{for(const e of n.widgets("main")){e.close()}},refreshRunning:()=>void 0,runningChanged:i.tabsChanged,shutdownLabel:s.__("Close"),shutdownAllLabel:s.__("Close All"),shutdownAllConfirmationText:s.__("Are you sure you want to close all open tabs?")});class o{constructor(e){this._widget=e}open(){n.activateById(this._widget.id)}shutdown(){this._widget.close()}icon(){const e=this._widget.title.icon;return e instanceof r.LabIcon?e:r.fileIcon}label(){return this._widget.title.label}labelTitle(){let e;if(this._widget instanceof p.DocumentWidget){e=this._widget.context.path}else{e=this._widget.title.label}return e}}}var f;(function(e){e.kernelNewConsole="running:kernel-new-console";e.kernelNewNotebook="running:kernel-new-notebook";e.kernelOpenSession="running:kernel-open-session";e.kernelShutDown="running:kernel-shut-down";e.showPanel="running:show-panel"})(f||(f={}));const v={activate:b,id:"@jupyterlab/running-extension:plugin",description:"Provides the running session managers.",provides:s.IRunningSessionManagers,requires:[o.ITranslator],optional:[i.ILayoutRestorer,i.ILabShell],autoStart:true};const _=v;function b(e,t,n,i){const o=t.load("jupyterlab");const a=new s.RunningSessionManagers;const l=new s.RunningSessions(a,t);l.id="jp-running-sessions";l.title.caption=o.__("Running Terminals and Kernels");l.title.icon=r.runningIcon;l.node.setAttribute("role","region");l.node.setAttribute("aria-label",o.__("Running Sessions section"));if(n){n.add(l,"running-sessions")}if(i){g(a,t,i)}void h(a,t,e);e.shell.add(l,"left",{rank:200,type:"Sessions and Tabs"});e.commands.addCommand(f.showPanel,{label:o.__("Sessions and Tabs"),execute:()=>{e.shell.activateById(l.id)}});return a}},3268:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(94683);var r=n(90516);var a=n(90088)},18981:(e,t,n)=>{"use strict";n.r(t);n.d(t,{IRunningSessionManagers:()=>j,RunningSessionManagers:()=>M,RunningSessions:()=>L});var i=n(10759);var s=n.n(i);var o=n(6958);var r=n.n(o);var a=n(4148);var l=n.n(a);var d=n(5596);var c=n.n(d);var h=n(26512);var u=n.n(h);var p=n(71372);var m=n.n(p);var g=n(28416);var f=n.n(g);const v="jp-RunningSessions";const _="jp-RunningSessions-section";const b="jp-RunningSessions-sectionContainer";const y="jp-RunningSessions-sectionList";const w="jp-RunningSessions-item";const C="jp-RunningSessions-itemLabel";const x="jp-RunningSessions-itemDetail";const S="jp-RunningSessions-itemShutdown";const k="jp-RunningSessions-shutdownAll";const j=new d.Token("@jupyterlab/running:IRunningSessionManagers","A service to add running session managers.");class M{constructor(){this._added=new p.Signal(this);this._managers=[]}get added(){return this._added}add(e){this._managers.push(e);this._added.emit(e);return new h.DisposableDelegate((()=>{const t=this._managers.indexOf(e);if(t>-1){this._managers.splice(t,1)}}))}items(){return this._managers}}function E(e){var t,n;const{runningItem:i}=e;const s=[w];const r=(t=i.detail)===null||t===void 0?void 0:t.call(i);const l=i.icon();const d=i.labelTitle?i.labelTitle():"";const c=e.translator||o.nullTranslator;const h=c.load("jupyterlab");let u=false;const p=e.shutdownItemIcon||a.closeIcon;const m=e.shutdownLabel||h.__("Shut Down");const f=()=>{var e;u=true;(e=i.shutdown)===null||e===void 0?void 0:e.call(i)};const[v,_]=g.useState(false);const b=!!((n=i.children)===null||n===void 0?void 0:n.length);const y=b?()=>!u&&_(!v):undefined;if(i.className){s.push(i.className)}if(e.child){s.push("jp-mod-running-child")}return g.createElement(g.Fragment,null,g.createElement("li",null,g.createElement("div",{className:s.join(" "),onClick:y,"data-context":i.context||""},b&&(v?g.createElement(a.caretRightIcon.react,{tag:"span",stylesheet:"runningItem"}):g.createElement(a.caretDownIcon.react,{tag:"span",stylesheet:"runningItem"})),typeof l==="string"?l?g.createElement("img",{src:l}):undefined:g.createElement(l.react,{tag:"span",stylesheet:"runningItem"}),g.createElement("span",{className:C,title:d,onClick:i.open&&(()=>i.open())},i.label()),r&&g.createElement("span",{className:x},r),i.shutdown&&g.createElement(a.ToolbarButtonComponent,{className:S,icon:p,onClick:f,tooltip:m})),b&&!v&&g.createElement(I,{child:true,runningItems:i.children,shutdownItemIcon:p,translator:c})))}function I(e){return g.createElement("ul",{className:y},e.runningItems.map(((t,n)=>g.createElement(E,{child:e.child,key:n,runningItem:t,shutdownLabel:e.shutdownLabel,shutdownItemIcon:e.shutdownItemIcon,translator:e.translator}))))}class T extends a.ReactWidget{constructor(e){super();this._options=e;this._update=new p.Signal(this);e.manager.runningChanged.connect(this._emitUpdate,this)}dispose(){this._options.manager.runningChanged.disconnect(this._emitUpdate,this);super.dispose()}onBeforeShow(e){super.onBeforeShow(e);this._update.emit()}render(){const e=this._options;let t=true;return g.createElement(a.UseSignal,{signal:this._update},(()=>{if(t){t=false}else{e.runningItems=e.manager.running()}return g.createElement("div",{className:b},g.createElement(I,{runningItems:e.runningItems,shutdownLabel:e.manager.shutdownLabel,shutdownAllLabel:e.shutdownAllLabel,shutdownItemIcon:e.manager.shutdownItemIcon,translator:e.translator}))}))}_isAnyHidden(){let e=this.isHidden;if(e){return e}let t=this.parent;while(t!=null){if(t.isHidden){e=true;break}t=t.parent}return e}_emitUpdate(){if(this._isAnyHidden()){return}this._update.emit()}}class D extends a.PanelWithToolbar{constructor(e){super();this._manager=e.manager;const t=e.translator||o.nullTranslator;const n=t.load("jupyterlab");const s=e.manager.shutdownAllLabel||n.__("Shut Down All");const r=`${s}?`;const l=e.manager.shutdownAllConfirmationText||`${s} ${e.manager.name}`;this.addClass(_);this.title.label=e.manager.name;function d(){void(0,i.showDialog)({title:r,body:l,buttons:[i.Dialog.cancelButton(),i.Dialog.warnButton({label:s})]}).then((t=>{if(t.button.accept){e.manager.shutdownAll()}}))}let c=e.manager.running();const h=c.length>0;this._button=new a.ToolbarButton({label:s,className:`${k} jp-mod-styled ${!h&&"jp-mod-disabled"}`,enabled:h,onClick:d});this._manager.runningChanged.connect(this._updateButton,this);this.toolbar.addItem("shutdown-all",this._button);this.addWidget(new T({runningItems:c,shutdownAllLabel:s,...e}))}dispose(){if(this.isDisposed){return}this._manager.runningChanged.disconnect(this._updateButton,this);super.dispose()}_updateButton(){var e,t;const n=this._button;n.enabled=this._manager.running().length>0;if(n.enabled){(e=n.node.querySelector("button"))===null||e===void 0?void 0:e.classList.remove("jp-mod-disabled")}else{(t=n.node.querySelector("button"))===null||t===void 0?void 0:t.classList.add("jp-mod-disabled")}}}class L extends a.SidePanel{constructor(e,t){super();this.managers=e;this.translator=t!==null&&t!==void 0?t:o.nullTranslator;const n=this.translator.load("jupyterlab");this.addClass(v);this.toolbar.addItem("refresh",new a.ToolbarButton({tooltip:n.__("Refresh List"),icon:a.refreshIcon,onClick:()=>e.items().forEach((e=>e.refreshRunning()))}));e.items().forEach((t=>this.addSection(e,t)));e.added.connect(this.addSection,this)}dispose(){if(this.isDisposed){return}this.managers.added.disconnect(this.addSection,this);super.dispose()}addSection(e,t){this.addWidget(new D({manager:t,translator:this.translator}))}}},90088:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(79536);var r=n(93379);var a=n.n(r);var l=n(7795);var d=n.n(l);var c=n(90569);var h=n.n(c);var u=n(3565);var p=n.n(u);var m=n(19216);var g=n.n(m);var f=n(44589);var v=n.n(f);var _=n(53693);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.Z,b);const w=_.Z&&_.Z.locals?_.Z.locals:undefined},50591:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BaseManager=void 0;const i=n(71372);const s=n(28477);class o{constructor(e){var t;this._isDisposed=false;this._disposed=new i.Signal(this);this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:s.ServerConnection.makeSettings()}get disposed(){return this._disposed}get isDisposed(){return this._isDisposed}get isActive(){return true}dispose(){if(this.isDisposed){return}this._disposed.emit(undefined);i.Signal.clearData(this)}}t.BaseManager=o},33227:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.BuildManager=void 0;const i=n(20501);const s=n(28477);const o="api/build";class r{constructor(e={}){var t;this._url="";this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:s.ServerConnection.makeSettings();const{baseUrl:n,appUrl:r}=this.serverSettings;this._url=i.URLExt.join(n,r,o)}get isAvailable(){return i.PageConfig.getOption("buildAvailable").toLowerCase()==="true"}get shouldCheck(){return i.PageConfig.getOption("buildCheck").toLowerCase()==="true"}getStatus(){const{_url:e,serverSettings:t}=this;const n=s.ServerConnection.makeRequest(e,{},t);return n.then((e=>{if(e.status!==200){throw new s.ServerConnection.ResponseError(e)}return e.json()})).then((e=>{if(typeof e.status!=="string"){throw new Error("Invalid data")}if(typeof e.message!=="string"){throw new Error("Invalid data")}return e}))}build(){const{_url:e,serverSettings:t}=this;const n={method:"POST"};const i=s.ServerConnection.makeRequest(e,n,t);return i.then((e=>{if(e.status===400){throw new s.ServerConnection.ResponseError(e,"Build aborted")}if(e.status!==200){const t=`Build failed with ${e.status}.\n\n If you are experiencing the build failure after installing an extension (or trying to include previously installed extension after updating JupyterLab) please check the extension repository for new installation instructions as many extensions migrated to the prebuilt extensions system which no longer requires rebuilding JupyterLab (but uses a different installation procedure, typically involving a package manager such as 'pip' or 'conda').\n\n If you specifically intended to install a source extension, please run 'jupyter lab build' on the server for full output.`;throw new s.ServerConnection.ResponseError(e,t)}}))}cancel(){const{_url:e,serverSettings:t}=this;const n={method:"DELETE"};const i=s.ServerConnection.makeRequest(e,n,t);return i.then((e=>{if(e.status!==204){throw new s.ServerConnection.ResponseError(e)}}))}}t.BuildManager=r},95077:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ConfigWithDefaults=t.ConfigSection=void 0;const i=n(20501);const s=n(76240);const o="api/config";var r;(function(e){function t(e){const t=new a(e);return t.load().then((()=>t))}e.create=t})(r=t.ConfigSection||(t.ConfigSection={}));class a{constructor(e){var t;this._url="unknown";const n=this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:s.ServerConnection.makeSettings();this._url=i.URLExt.join(n.baseUrl,o,encodeURIComponent(e.name))}get data(){return this._data}async load(){const e=await s.ServerConnection.makeRequest(this._url,{},this.serverSettings);if(e.status!==200){const t=await s.ServerConnection.ResponseError.create(e);throw t}this._data=await e.json()}async update(e){this._data={...this._data,...e};const t={method:"PATCH",body:JSON.stringify(e)};const n=await s.ServerConnection.makeRequest(this._url,t,this.serverSettings);if(n.status!==200){const e=await s.ServerConnection.ResponseError.create(n);throw e}this._data=await n.json();return this._data}}class l{constructor(e){var t,n;this._className="";this._section=e.section;this._defaults=(t=e.defaults)!==null&&t!==void 0?t:{};this._className=(n=e.className)!==null&&n!==void 0?n:""}get(e){const t=this._classData();return e in t?t[e]:this._defaults[e]}set(e,t){const n={};n[e]=t;if(this._className){const e={};e[this._className]=n;return this._section.update(e)}else{return this._section.update(n)}}_classData(){const e=this._section.data;if(this._className&&this._className in e){return e[this._className]}return e}}t.ConfigWithDefaults=l},63644:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.Drive=t.ContentsManager=t.Contents=void 0;const r=n(20501);const a=n(71372);const l=n(76240);const d=o(n(65460));const c="api/contents";const h="files";var u;(function(e){function t(e){d.validateContentsModel(e)}e.validateContentsModel=t;function n(e){d.validateCheckpointModel(e)}e.validateCheckpointModel=n})(u=t.Contents||(t.Contents={}));class p{constructor(e={}){var t,n;this._isDisposed=false;this._additionalDrives=new Map;this._fileChanged=new a.Signal(this);const i=this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:l.ServerConnection.makeSettings();this._defaultDrive=(n=e.defaultDrive)!==null&&n!==void 0?n:new m({serverSettings:i});this._defaultDrive.fileChanged.connect(this._onFileChanged,this)}get fileChanged(){return this._fileChanged}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;a.Signal.clearData(this)}addDrive(e){this._additionalDrives.set(e.name,e);e.fileChanged.connect(this._onFileChanged,this)}getSharedModelFactory(e){var t;const[n]=this._driveForPath(e);return(t=n===null||n===void 0?void 0:n.sharedModelFactory)!==null&&t!==void 0?t:null}localPath(e){const t=e.split("/");const n=t[0].split(":");if(n.length===1||!this._additionalDrives.has(n[0])){return r.PathExt.removeSlash(e)}return r.PathExt.join(n.slice(1).join(":"),...t.slice(1))}normalize(e){const t=e.split(":");if(t.length===1){return r.PathExt.normalize(e)}return`${t[0]}:${r.PathExt.normalize(t.slice(1).join(":"))}`}resolvePath(e,t){const n=this.driveName(e);const i=this.localPath(e);const s=r.PathExt.resolve("/",i,t);return n?`${n}:${s}`:s}driveName(e){const t=e.split("/");const n=t[0].split(":");if(n.length===1){return""}if(this._additionalDrives.has(n[0])){return n[0]}return""}get(e,t){const[n,i]=this._driveForPath(e);return n.get(i,t).then((e=>{const t=[];if(e.type==="directory"&&e.content){for(const i of e.content){t.push({...i,path:this._toGlobalPath(n,i.path)})}return{...e,path:this._toGlobalPath(n,i),content:t,serverPath:e.path}}else{return{...e,path:this._toGlobalPath(n,i),serverPath:e.path}}}))}getDownloadUrl(e){const[t,n]=this._driveForPath(e);return t.getDownloadUrl(n)}newUntitled(e={}){if(e.path){const t=this.normalize(e.path);const[n,i]=this._driveForPath(t);return n.newUntitled({...e,path:i}).then((e=>({...e,path:r.PathExt.join(t,e.name),serverPath:e.path})))}else{return this._defaultDrive.newUntitled(e)}}delete(e){const[t,n]=this._driveForPath(e);return t.delete(n)}rename(e,t){const[n,i]=this._driveForPath(e);const[s,o]=this._driveForPath(t);if(n!==s){throw Error("ContentsManager: renaming files must occur within a Drive")}return n.rename(i,o).then((e=>({...e,path:this._toGlobalPath(n,o),serverPath:e.path})))}save(e,t={}){const n=this.normalize(e);const[i,s]=this._driveForPath(e);return i.save(s,{...t,path:s}).then((e=>({...e,path:n,serverPath:e.path})))}copy(e,t){const[n,i]=this._driveForPath(e);const[s,o]=this._driveForPath(t);if(n===s){return n.copy(i,o).then((e=>({...e,path:this._toGlobalPath(n,e.path),serverPath:e.path})))}else{throw Error("Copying files between drives is not currently implemented")}}createCheckpoint(e){const[t,n]=this._driveForPath(e);return t.createCheckpoint(n)}listCheckpoints(e){const[t,n]=this._driveForPath(e);return t.listCheckpoints(n)}restoreCheckpoint(e,t){const[n,i]=this._driveForPath(e);return n.restoreCheckpoint(i,t)}deleteCheckpoint(e,t){const[n,i]=this._driveForPath(e);return n.deleteCheckpoint(i,t)}_toGlobalPath(e,t){if(e===this._defaultDrive){return r.PathExt.removeSlash(t)}else{return`${e.name}:${r.PathExt.removeSlash(t)}`}}_driveForPath(e){const t=this.driveName(e);const n=this.localPath(e);if(t){return[this._additionalDrives.get(t),n]}else{return[this._defaultDrive,n]}}_onFileChanged(e,t){var n,i;if(e===this._defaultDrive){this._fileChanged.emit(t)}else{let s=null;let o=null;if((n=t.newValue)===null||n===void 0?void 0:n.path){s={...t.newValue,path:this._toGlobalPath(e,t.newValue.path)}}if((i=t.oldValue)===null||i===void 0?void 0:i.path){o={...t.oldValue,path:this._toGlobalPath(e,t.oldValue.path)}}this._fileChanged.emit({type:t.type,newValue:s,oldValue:o})}}}t.ContentsManager=p;class m{constructor(e={}){var t,n,i;this._isDisposed=false;this._fileChanged=new a.Signal(this);this.name=(t=e.name)!==null&&t!==void 0?t:"Default";this._apiEndpoint=(n=e.apiEndpoint)!==null&&n!==void 0?n:c;this.serverSettings=(i=e.serverSettings)!==null&&i!==void 0?i:l.ServerConnection.makeSettings()}get fileChanged(){return this._fileChanged}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;a.Signal.clearData(this)}async get(e,t){let n=this._getUrl(e);if(t){if(t.type==="notebook"){delete t["format"]}const e=t.content?"1":"0";const i={...t,content:e};n+=r.URLExt.objectToQueryString(i)}const i=this.serverSettings;const s=await l.ServerConnection.makeRequest(n,{},i);if(s.status!==200){const e=await l.ServerConnection.ResponseError.create(s);throw e}const o=await s.json();d.validateContentsModel(o);return o}getDownloadUrl(e){const t=this.serverSettings.baseUrl;let n=r.URLExt.join(t,h,r.URLExt.encodeParts(e));const i=document.cookie.match("\\b_xsrf=([^;]*)\\b");if(i){const e=new URL(n);e.searchParams.append("_xsrf",i[1]);n=e.toString()}return Promise.resolve(n)}async newUntitled(e={}){var t;let n="{}";if(e){if(e.ext){e.ext=g.normalizeExtension(e.ext)}n=JSON.stringify(e)}const i=this.serverSettings;const s=this._getUrl((t=e.path)!==null&&t!==void 0?t:"");const o={method:"POST",body:n};const r=await l.ServerConnection.makeRequest(s,o,i);if(r.status!==201){const e=await l.ServerConnection.ResponseError.create(r);throw e}const a=await r.json();d.validateContentsModel(a);this._fileChanged.emit({type:"new",oldValue:null,newValue:a});return a}async delete(e){const t=this._getUrl(e);const n=this.serverSettings;const i={method:"DELETE"};const s=await l.ServerConnection.makeRequest(t,i,n);if(s.status!==204){const e=await l.ServerConnection.ResponseError.create(s);throw e}this._fileChanged.emit({type:"delete",oldValue:{path:e},newValue:null})}async rename(e,t){const n=this.serverSettings;const i=this._getUrl(e);const s={method:"PATCH",body:JSON.stringify({path:t})};const o=await l.ServerConnection.makeRequest(i,s,n);if(o.status!==200){const e=await l.ServerConnection.ResponseError.create(o);throw e}const r=await o.json();d.validateContentsModel(r);this._fileChanged.emit({type:"rename",oldValue:{path:e},newValue:r});return r}async save(e,t={}){const n=this.serverSettings;const i=this._getUrl(e);const s={method:"PUT",body:JSON.stringify(t)};const o=await l.ServerConnection.makeRequest(i,s,n);if(o.status!==200&&o.status!==201){const e=await l.ServerConnection.ResponseError.create(o);throw e}const r=await o.json();d.validateContentsModel(r);this._fileChanged.emit({type:"save",oldValue:null,newValue:r});return r}async copy(e,t){const n=this.serverSettings;const i=this._getUrl(t);const s={method:"POST",body:JSON.stringify({copy_from:e})};const o=await l.ServerConnection.makeRequest(i,s,n);if(o.status!==201){const e=await l.ServerConnection.ResponseError.create(o);throw e}const r=await o.json();d.validateContentsModel(r);this._fileChanged.emit({type:"new",oldValue:null,newValue:r});return r}async createCheckpoint(e){const t=this._getUrl(e,"checkpoints");const n={method:"POST"};const i=await l.ServerConnection.makeRequest(t,n,this.serverSettings);if(i.status!==201){const e=await l.ServerConnection.ResponseError.create(i);throw e}const s=await i.json();d.validateCheckpointModel(s);return s}async listCheckpoints(e){const t=this._getUrl(e,"checkpoints");const n=await l.ServerConnection.makeRequest(t,{},this.serverSettings);if(n.status!==200){const e=await l.ServerConnection.ResponseError.create(n);throw e}const i=await n.json();if(!Array.isArray(i)){throw new Error("Invalid Checkpoint list")}for(let s=0;sr.URLExt.encodeParts(e)));const n=this.serverSettings.baseUrl;return r.URLExt.join(n,this._apiEndpoint,...t)}}t.Drive=m;var g;(function(e){function t(e){if(e.length>0&&e.indexOf(".")!==0){e=`.${e}`}return e}e.normalizeExtension=t})(g||(g={}))},65460:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateCheckpointModel=t.validateContentsModel=void 0;const i=n(46901);function s(e){(0,i.validateProperty)(e,"name","string");(0,i.validateProperty)(e,"path","string");(0,i.validateProperty)(e,"type","string");(0,i.validateProperty)(e,"created","string");(0,i.validateProperty)(e,"last_modified","string");(0,i.validateProperty)(e,"mimetype","object");(0,i.validateProperty)(e,"content","object");(0,i.validateProperty)(e,"format","object")}t.validateContentsModel=s;function o(e){(0,i.validateProperty)(e,"id","string");(0,i.validateProperty)(e,"last_modified","string")}t.validateCheckpointModel=o},57316:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.EventManager=void 0;const i=n(20501);const s=n(95905);const o=n(71372);const r=n(28477);const a="api/events";class l{constructor(e={}){var t;this._socket=null;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:r.ServerConnection.makeSettings();this._poll=new s.Poll({factory:()=>this._subscribe()});this._stream=new o.Stream(this);void this._poll.start()}get isDisposed(){return this._poll.isDisposed}get stream(){return this._stream}dispose(){if(this.isDisposed){return}this._poll.dispose();const e=this._socket;if(e){this._socket=null;e.onopen=()=>undefined;e.onerror=()=>undefined;e.onmessage=()=>undefined;e.onclose=()=>undefined;e.close()}o.Signal.clearData(this);this._stream.stop()}async emit(e){const{serverSettings:t}=this;const{baseUrl:n,token:s}=t;const{makeRequest:o,ResponseError:l}=r.ServerConnection;const d=i.URLExt.join(n,a)+(s?`?token=${s}`:"");const c={body:JSON.stringify(e),method:"POST"};const h=await o(d,c,t);if(h.status!==204){throw new l(h)}}_subscribe(){return new Promise(((e,t)=>{if(this.isDisposed){return}const{token:n,WebSocket:s,wsUrl:o}=this.serverSettings;const r=i.URLExt.join(o,a,"subscribe")+(n?`?token=${encodeURIComponent(n)}`:"");const l=this._socket=new s(r);const d=this._stream;l.onclose=()=>t(new Error("EventManager socket closed"));l.onmessage=e=>e.data&&d.emit(JSON.parse(e.data))}))}}t.EventManager=l},76240:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))i(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});s(n(50591),t);s(n(95077),t);s(n(63644),t);s(n(57316),t);s(n(62604),t);s(n(12902),t);s(n(93079),t);s(n(28477),t);s(n(41874),t);s(n(92726),t);s(n(93247),t);s(n(95598),t);s(n(45399),t);s(n(4574),t)},54500:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.CommHandler=void 0;const r=n(26512);const a=o(n(75253));class l extends r.DisposableDelegate{constructor(e,t,n,i){super(i);this._target="";this._id="";this._id=t;this._target=e;this._kernel=n}get commId(){return this._id}get targetName(){return this._target}get onClose(){return this._onClose}set onClose(e){this._onClose=e}get onMsg(){return this._onMsg}set onMsg(e){this._onMsg=e}open(e,t,n=[]){if(this.isDisposed||this._kernel.isDisposed){throw new Error("Cannot open")}const i=a.createMessage({msgType:"comm_open",channel:"shell",username:this._kernel.username,session:this._kernel.clientId,content:{comm_id:this._id,target_name:this._target,data:e!==null&&e!==void 0?e:{}},metadata:t,buffers:n});return this._kernel.sendShellMessage(i,false,true)}send(e,t,n=[],i=true){if(this.isDisposed||this._kernel.isDisposed){throw new Error("Cannot send")}const s=a.createMessage({msgType:"comm_msg",channel:"shell",username:this._kernel.username,session:this._kernel.clientId,content:{comm_id:this._id,data:e},metadata:t,buffers:n});return this._kernel.sendShellMessage(s,false,i)}close(e,t,n=[]){if(this.isDisposed||this._kernel.isDisposed){throw new Error("Cannot close")}const i=a.createMessage({msgType:"comm_close",channel:"shell",username:this._kernel.username,session:this._kernel.clientId,content:{comm_id:this._id,data:e!==null&&e!==void 0?e:{}},metadata:t,buffers:n});const s=this._kernel.sendShellMessage(i,false,true);const o=this._onClose;if(o){const i=a.createMessage({msgType:"comm_close",channel:"iopub",username:this._kernel.username,session:this._kernel.clientId,content:{comm_id:this._id,data:e!==null&&e!==void 0?e:{}},metadata:t,buffers:n});void o(i)}this.dispose();return s}}t.CommHandler=l},19883:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.KernelConnection=void 0;const r=n(20501);const a=n(5596);const l=n(71372);const d=n(76240);const c=n(54500);const h=o(n(75253));const u=n(38707);const p=n(86002);const m=o(n(96512));const g=n(12902);const f=o(n(2183));const v=3e3;const _="_RESTARTING_";const b="";class y{constructor(e){var t,n,i,s;this._createSocket=(e=true)=>{this._errorIfDisposed();this._clearSocket();this._updateConnectionStatus("connecting");const t=this.serverSettings;const n=r.URLExt.join(t.wsUrl,f.KERNEL_SERVICE_URL,encodeURIComponent(this._id));const i=n.replace(/^((?:\w+:)?\/\/)(?:[^@\/]+@)/,"$1");console.debug(`Starting WebSocket: ${i}`);let s=r.URLExt.join(n,"channels?session_id="+encodeURIComponent(this._clientId));const o=t.token;if(t.appendToken&&o!==""){s=s+`&token=${encodeURIComponent(o)}`}const a=e?this._supportedProtocols:[];this._ws=new t.WebSocket(s,a);this._ws.binaryType="arraybuffer";let l=false;const c=async e=>{var n,i;if(this._isDisposed){return}this._reason="";this._model=undefined;try{const n=await f.getKernelModel(this._id,t);this._model=n;if((n===null||n===void 0?void 0:n.execution_state)==="dead"){this._updateStatus("dead")}else{this._onWSClose(e)}}catch(s){if(s instanceof d.ServerConnection.NetworkError||((n=s.response)===null||n===void 0?void 0:n.status)===503||((i=s.response)===null||i===void 0?void 0:i.status)===424){const t=w.getRandomIntInclusive(10,30)*1e3;setTimeout(c,t,e)}else{this._reason="Kernel died unexpectedly";this._updateStatus("dead")}}return};const h=async e=>{if(l){return}l=true;await c(e);return};this._ws.onmessage=this._onWSMessage;this._ws.onopen=this._onWSOpen;this._ws.onclose=h;this._ws.onerror=h};this._onWSOpen=e=>{if(this._ws.protocol!==""&&!this._supportedProtocols.includes(this._ws.protocol)){console.log("Server selected unknown kernel wire protocol:",this._ws.protocol);this._updateStatus("dead");throw new Error(`Unknown kernel wire protocol: ${this._ws.protocol}`)}this._selectedProtocol=this._ws.protocol;this._ws.onclose=this._onWSClose;this._ws.onerror=this._onWSClose;this._updateConnectionStatus("connected")};this._onWSMessage=e=>{let t;try{t=(0,p.deserialize)(e.data,this._ws.protocol);m.validateMessage(t)}catch(n){n.message=`Kernel message validation error: ${n.message}`;throw n}this._kernelSession=t.header.session;this._msgChain=this._msgChain.then((()=>this._handleMessage(t))).catch((e=>{if(e.message.startsWith("Canceled future for ")){console.error(e)}}));this._anyMessage.emit({msg:t,direction:"recv"})};this._onWSClose=e=>{if(!this.isDisposed){this._reconnect()}};this._id="";this._name="";this._status="unknown";this._connectionStatus="connecting";this._kernelSession="";this._isDisposed=false;this._ws=null;this._username="";this._reconnectLimit=7;this._reconnectAttempt=0;this._reconnectTimeout=null;this._supportedProtocols=Object.values(h.supportedKernelWebSocketProtocols);this._selectedProtocol="";this._futures=new Map;this._comms=new Map;this._targetRegistry=Object.create(null);this._info=new a.PromiseDelegate;this._pendingMessages=[];this._statusChanged=new l.Signal(this);this._connectionStatusChanged=new l.Signal(this);this._disposed=new l.Signal(this);this._iopubMessage=new l.Signal(this);this._anyMessage=new l.Signal(this);this._pendingInput=new l.Signal(this);this._unhandledMessage=new l.Signal(this);this._displayIdToParentIds=new Map;this._msgIdToDisplayIds=new Map;this._msgChain=Promise.resolve();this._hasPendingInput=false;this._reason="";this._noOp=()=>{};this._name=e.model.name;this._id=e.model.id;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:d.ServerConnection.makeSettings();this._clientId=(n=e.clientId)!==null&&n!==void 0?n:a.UUID.uuid4();this._username=(i=e.username)!==null&&i!==void 0?i:"";this.handleComms=(s=e.handleComms)!==null&&s!==void 0?s:true;this._createSocket()}get disposed(){return this._disposed}get statusChanged(){return this._statusChanged}get connectionStatusChanged(){return this._connectionStatusChanged}get iopubMessage(){return this._iopubMessage}get unhandledMessage(){return this._unhandledMessage}get model(){return this._model||{id:this.id,name:this.name,reason:this._reason}}get anyMessage(){return this._anyMessage}get pendingInput(){return this._pendingInput}get id(){return this._id}get name(){return this._name}get username(){return this._username}get clientId(){return this._clientId}get status(){return this._status}get connectionStatus(){return this._connectionStatus}get isDisposed(){return this._isDisposed}get info(){return this._info.promise}get spec(){if(this._specPromise){return this._specPromise}this._specPromise=g.KernelSpecAPI.getSpecs(this.serverSettings).then((e=>e.kernelspecs[this._name]));return this._specPromise}clone(e={}){return new y({model:this.model,username:this.username,serverSettings:this.serverSettings,handleComms:false,...e})}dispose(){if(this.isDisposed){return}this._isDisposed=true;this._disposed.emit();this._updateConnectionStatus("disconnected");this._clearKernelState();this._pendingMessages=[];this._clearSocket();l.Signal.clearData(this)}sendShellMessage(e,t=false,n=true){return this._sendKernelShellControl(u.KernelShellFutureHandler,e,t,n)}sendControlMessage(e,t=false,n=true){return this._sendKernelShellControl(u.KernelControlFutureHandler,e,t,n)}_sendKernelShellControl(e,t,n=false,i=true){this._sendMessage(t);this._anyMessage.emit({msg:t,direction:"send"});const s=new e((()=>{const e=t.header.msg_id;this._futures.delete(e);const n=this._msgIdToDisplayIds.get(e);if(!n){return}n.forEach((t=>{const n=this._displayIdToParentIds.get(t);if(n){const i=n.indexOf(e);if(i===-1){return}if(n.length===1){this._displayIdToParentIds.delete(t)}else{n.splice(i,1);this._displayIdToParentIds.set(t,n)}}}));this._msgIdToDisplayIds.delete(e)}),t,n,i,this);this._futures.set(t.header.msg_id,s);return s}_sendMessage(e,t=true){if(this.status==="dead"){throw new Error("Kernel is dead")}if((this._kernelSession===b||this._kernelSession===_)&&h.isInfoRequestMsg(e)){if(this.connectionStatus==="connected"){this._ws.send((0,p.serialize)(e,this._ws.protocol));return}else{throw new Error("Could not send message: status is not connected")}}if(t&&this._pendingMessages.length>0){this._pendingMessages.push(e);return}if(this.connectionStatus==="connected"&&this._kernelSession!==_){this._ws.send((0,p.serialize)(e,this._ws.protocol))}else if(t){this._pendingMessages.push(e)}else{throw new Error("Could not send message")}}async interrupt(){this.hasPendingInput=false;if(this.status==="dead"){throw new Error("Kernel is dead")}return f.interruptKernel(this.id,this.serverSettings)}async restart(){if(this.status==="dead"){throw new Error("Kernel is dead")}this._updateStatus("restarting");this._clearKernelState();this._kernelSession=_;await f.restartKernel(this.id,this.serverSettings);await this.reconnect();this.hasPendingInput=false}reconnect(){this._errorIfDisposed();const e=new a.PromiseDelegate;const t=(n,i)=>{if(i==="connected"){e.resolve();this.connectionStatusChanged.disconnect(t,this)}else if(i==="disconnected"){e.reject(new Error("Kernel connection disconnected"));this.connectionStatusChanged.disconnect(t,this)}};this.connectionStatusChanged.connect(t,this);this._reconnectAttempt=0;this._reconnect();return e.promise}async shutdown(){if(this.status!=="dead"){await f.shutdownKernel(this.id,this.serverSettings)}this.handleShutdown()}handleShutdown(){this._updateStatus("dead");this.dispose()}async requestKernelInfo(){const e=h.createMessage({msgType:"kernel_info_request",channel:"shell",username:this._username,session:this._clientId,content:{}});let t;try{t=await w.handleShellMessage(this,e)}catch(n){if(this.isDisposed){return}else{throw n}}this._errorIfDisposed();if(!t){return}if(t.content.status===undefined){t.content.status="ok"}if(t.content.status!=="ok"){this._info.reject("Kernel info reply errored");return t}this._info.resolve(t.content);this._kernelSession=t.header.session;return t}requestComplete(e){const t=h.createMessage({msgType:"complete_request",channel:"shell",username:this._username,session:this._clientId,content:e});return w.handleShellMessage(this,t)}requestInspect(e){const t=h.createMessage({msgType:"inspect_request",channel:"shell",username:this._username,session:this._clientId,content:e});return w.handleShellMessage(this,t)}requestHistory(e){const t=h.createMessage({msgType:"history_request",channel:"shell",username:this._username,session:this._clientId,content:e});return w.handleShellMessage(this,t)}requestExecute(e,t=true,n){const i={silent:false,store_history:true,user_expressions:{},allow_stdin:true,stop_on_error:false};const s=h.createMessage({msgType:"execute_request",channel:"shell",username:this._username,session:this._clientId,content:{...i,...e},metadata:n});return this.sendShellMessage(s,true,t)}requestDebug(e,t=true){const n=h.createMessage({msgType:"debug_request",channel:"control",username:this._username,session:this._clientId,content:e});return this.sendControlMessage(n,true,t)}requestIsComplete(e){const t=h.createMessage({msgType:"is_complete_request",channel:"shell",username:this._username,session:this._clientId,content:e});return w.handleShellMessage(this,t)}requestCommInfo(e){const t=h.createMessage({msgType:"comm_info_request",channel:"shell",username:this._username,session:this._clientId,content:e});return w.handleShellMessage(this,t)}sendInputReply(e,t){const n=h.createMessage({msgType:"input_reply",channel:"stdin",username:this._username,session:this._clientId,content:e});n.parent_header=t;this._sendMessage(n);this._anyMessage.emit({msg:n,direction:"send"});this.hasPendingInput=false}createComm(e,t=a.UUID.uuid4()){if(!this.handleComms){throw new Error("Comms are disabled on this kernel connection")}if(this._comms.has(t)){throw new Error("Comm is already created")}const n=new c.CommHandler(e,t,this,(()=>{this._unregisterComm(t)}));this._comms.set(t,n);return n}hasComm(e){return this._comms.has(e)}registerCommTarget(e,t){if(!this.handleComms){return}this._targetRegistry[e]=t}removeCommTarget(e,t){if(!this.handleComms){return}if(!this.isDisposed&&this._targetRegistry[e]===t){delete this._targetRegistry[e]}}registerMessageHook(e,t){var n;const i=(n=this._futures)===null||n===void 0?void 0:n.get(e);if(i){i.registerMessageHook(t)}}removeMessageHook(e,t){var n;const i=(n=this._futures)===null||n===void 0?void 0:n.get(e);if(i){i.removeMessageHook(t)}}removeInputGuard(){this.hasPendingInput=false}async _handleDisplayId(e,t){var n,i;const s=t.parent_header.msg_id;let o=this._displayIdToParentIds.get(e);if(o){const e={header:a.JSONExt.deepCopy(t.header),parent_header:a.JSONExt.deepCopy(t.parent_header),metadata:a.JSONExt.deepCopy(t.metadata),content:a.JSONExt.deepCopy(t.content),channel:t.channel,buffers:t.buffers?t.buffers.slice():[]};e.header.msg_type="update_display_data";await Promise.all(o.map((async t=>{const n=this._futures&&this._futures.get(t);if(n){await n.handleMsg(e)}})))}if(t.header.msg_type==="update_display_data"){return true}o=(n=this._displayIdToParentIds.get(e))!==null&&n!==void 0?n:[];if(o.indexOf(s)===-1){o.push(s)}this._displayIdToParentIds.set(e,o);const r=(i=this._msgIdToDisplayIds.get(s))!==null&&i!==void 0?i:[];if(r.indexOf(s)===-1){r.push(s)}this._msgIdToDisplayIds.set(s,r);return false}_clearSocket(){if(this._ws!==null){this._ws.onopen=this._noOp;this._ws.onclose=this._noOp;this._ws.onerror=this._noOp;this._ws.onmessage=this._noOp;this._ws.close();this._ws=null}}_updateStatus(e){if(this._status===e||this._status==="dead"){return}this._status=e;w.logKernelStatus(this);this._statusChanged.emit(e);if(e==="dead"){this.dispose()}}_sendPending(){while(this.connectionStatus==="connected"&&this._kernelSession!==_&&this._pendingMessages.length>0){this._sendMessage(this._pendingMessages[0],false);this._pendingMessages.shift()}}_clearKernelState(){this._kernelSession="";this._pendingMessages=[];this._futures.forEach((e=>{e.dispose()}));this._comms.forEach((e=>{e.dispose()}));this._msgChain=Promise.resolve();this._futures=new Map;this._comms=new Map;this._displayIdToParentIds.clear();this._msgIdToDisplayIds.clear()}_assertCurrentMessage(e){this._errorIfDisposed();if(e.header.session!==this._kernelSession){throw new Error(`Canceling handling of old message: ${e.header.msg_type}`)}}async _handleCommOpen(e){this._assertCurrentMessage(e);const t=e.content;const n=new c.CommHandler(t.target_name,t.comm_id,this,(()=>{this._unregisterComm(t.comm_id)}));this._comms.set(t.comm_id,n);try{const i=await w.loadObject(t.target_name,t.target_module,this._targetRegistry);await i(n,e)}catch(i){n.close();console.error("Exception opening new comm");throw i}}async _handleCommClose(e){this._assertCurrentMessage(e);const t=e.content;const n=this._comms.get(t.comm_id);if(!n){console.error("Comm not found for comm id "+t.comm_id);return}this._unregisterComm(n.commId);const i=n.onClose;if(i){await i(e)}n.dispose()}async _handleCommMsg(e){this._assertCurrentMessage(e);const t=e.content;const n=this._comms.get(t.comm_id);if(!n){return}const i=n.onMsg;if(i){await i(e)}}_unregisterComm(e){this._comms.delete(e)}_updateConnectionStatus(e){if(this._connectionStatus===e){return}this._connectionStatus=e;if(e!=="connecting"){this._reconnectAttempt=0;clearTimeout(this._reconnectTimeout)}if(this.status!=="dead"){if(e==="connected"){let e=this._kernelSession===_;let t=this.requestKernelInfo();let n=false;let i=()=>{if(n){return}n=true;if(e&&this._kernelSession===_){this._kernelSession=""}clearTimeout(s);if(this._pendingMessages.length>0){this._sendPending()}};void t.then(i);let s=setTimeout(i,v)}else{this._updateStatus("unknown")}}this._connectionStatusChanged.emit(e)}async _handleMessage(e){var t,n;let i=false;if(e.parent_header&&e.channel==="iopub"&&(h.isDisplayDataMsg(e)||h.isUpdateDisplayDataMsg(e)||h.isExecuteResultMsg(e))){const n=(t=e.content.transient)!==null&&t!==void 0?t:{};const s=n["display_id"];if(s){i=await this._handleDisplayId(s,e);this._assertCurrentMessage(e)}}if(!i&&e.parent_header){const t=e.parent_header;const i=(n=this._futures)===null||n===void 0?void 0:n.get(t.msg_id);if(i){await i.handleMsg(e);this._assertCurrentMessage(e)}else{const n=t.session===this.clientId;if(e.channel!=="iopub"&&n){this._unhandledMessage.emit(e)}}}if(e.channel==="iopub"){switch(e.header.msg_type){case"status":{const t=e.content.execution_state;if(t==="restarting"){void Promise.resolve().then((async()=>{this._updateStatus("autorestarting");this._clearKernelState();await this.reconnect()}))}this._updateStatus(t);break}case"comm_open":if(this.handleComms){await this._handleCommOpen(e)}break;case"comm_msg":if(this.handleComms){await this._handleCommMsg(e)}break;case"comm_close":if(this.handleComms){await this._handleCommClose(e)}break;default:break}if(!this.isDisposed){this._assertCurrentMessage(e);this._iopubMessage.emit(e)}}}_reconnect(){this._errorIfDisposed();clearTimeout(this._reconnectTimeout);if(this._reconnectAttempt{if(t){if(typeof requirejs==="undefined"){throw new Error("requirejs not found")}requirejs([t],(n=>{if(n[e]===void 0){const n=`Object '${e}' not found in module '${t}'`;s(new Error(n))}else{i(n[e])}}),s)}else{if(n===null||n===void 0?void 0:n[e]){i(n[e])}else{s(new Error(`Object '${e}' not found in registry`))}}}))}e.loadObject=i;function s(e,t){e=Math.ceil(e);t=Math.floor(t);return Math.floor(Math.random()*(t-e+1))+e}e.getRandomIntInclusive=s})(w||(w={}))},38707:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.KernelShellFutureHandler=t.KernelControlFutureHandler=t.KernelFutureHandler=void 0;const r=n(5596);const a=n(26512);const l=o(n(75253));class d extends a.DisposableDelegate{constructor(e,t,n,i,s){super(e);this._status=0;this._stdin=u.noOp;this._iopub=u.noOp;this._reply=u.noOp;this._done=new r.PromiseDelegate;this._hooks=new u.HookList;this._disposeOnDone=true;this._msg=t;if(!n){this._setFlag(u.KernelFutureFlag.GotReply)}this._disposeOnDone=i;this._kernel=s}get msg(){return this._msg}get done(){return this._done.promise}get onReply(){return this._reply}set onReply(e){this._reply=e}get onIOPub(){return this._iopub}set onIOPub(e){this._iopub=e}get onStdin(){return this._stdin}set onStdin(e){this._stdin=e}registerMessageHook(e){if(this.isDisposed){throw new Error("Kernel future is disposed")}this._hooks.add(e)}removeMessageHook(e){if(this.isDisposed){return}this._hooks.remove(e)}sendInputReply(e,t){this._kernel.sendInputReply(e,t)}dispose(){this._stdin=u.noOp;this._iopub=u.noOp;this._reply=u.noOp;this._hooks=null;if(!this._testFlag(u.KernelFutureFlag.IsDone)){this._done.promise.catch((()=>{}));this._done.reject(new Error(`Canceled future for ${this.msg.header.msg_type} message before replies were done`))}super.dispose()}async handleMsg(e){switch(e.channel){case"control":case"shell":if(e.channel===this.msg.channel&&e.parent_header.msg_id===this.msg.header.msg_id){await this._handleReply(e)}break;case"stdin":await this._handleStdin(e);break;case"iopub":await this._handleIOPub(e);break;default:break}}async _handleReply(e){const t=this._reply;if(t){await t(e)}this._replyMsg=e;this._setFlag(u.KernelFutureFlag.GotReply);if(this._testFlag(u.KernelFutureFlag.GotIdle)){this._handleDone()}}async _handleStdin(e){this._kernel.hasPendingInput=true;const t=this._stdin;if(t){await t(e)}}async _handleIOPub(e){const t=await this._hooks.process(e);const n=this._iopub;if(t&&n){await n(e)}if(l.isStatusMsg(e)&&e.content.execution_state==="idle"){this._setFlag(u.KernelFutureFlag.GotIdle);if(this._testFlag(u.KernelFutureFlag.GotReply)){this._handleDone()}}}_handleDone(){if(this._testFlag(u.KernelFutureFlag.IsDone)){return}this._setFlag(u.KernelFutureFlag.IsDone);this._done.resolve(this._replyMsg);if(this._disposeOnDone){this.dispose()}}_testFlag(e){return(this._status&e)!==0}_setFlag(e){this._status|=e}}t.KernelFutureHandler=d;class c extends d{}t.KernelControlFutureHandler=c;class h extends d{}t.KernelShellFutureHandler=h;var u;(function(e){e.noOp=()=>{};const t=(()=>{const e=typeof requestAnimationFrame==="function";return e?requestAnimationFrame:setImmediate})();class n{constructor(){this._hooks=[]}add(e){this.remove(e);this._hooks.push(e)}remove(e){const t=this._hooks.indexOf(e);if(t>=0){this._hooks[t]=null;this._scheduleCompact()}}async process(e){await this._processing;const t=new r.PromiseDelegate;this._processing=t.promise;let n;for(let s=this._hooks.length-1;s>=0;s--){const o=this._hooks[s];if(o===null){continue}try{n=await o(e)}catch(i){n=true;console.error(i)}if(n===false){t.resolve(undefined);return false}}t.resolve(undefined);return true}_scheduleCompact(){if(!this._compactScheduled){this._compactScheduled=true;t((()=>{this._processing=this._processing.then((()=>{this._compactScheduled=false;this._compact()}))}))}}_compact(){let e=0;for(let t=0,n=this._hooks.length;t{"use strict";Object.defineProperty(t,"__esModule",{value:true})},71825:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.KernelManager=void 0;const i=n(95905);const s=n(71372);const o=n(76240);const r=n(50591);const a=n(2183);const l=n(19883);class d extends r.BaseManager{constructor(e={}){var t;super(e);this._isReady=false;this._kernelConnections=new Set;this._models=new Map;this._runningChanged=new s.Signal(this);this._connectionFailure=new s.Signal(this);this._pollModels=new i.Poll({auto:false,factory:()=>this.requestRunning(),frequency:{interval:10*1e3,backoff:true,max:300*1e3},name:`@jupyterlab/services:KernelManager#models`,standby:(t=e.standby)!==null&&t!==void 0?t:"when-hidden"});this._ready=(async()=>{await this._pollModels.start();await this._pollModels.tick;this._isReady=true})()}get isReady(){return this._isReady}get ready(){return this._ready}get runningChanged(){return this._runningChanged}get connectionFailure(){return this._connectionFailure}dispose(){if(this.isDisposed){return}this._models.clear();this._kernelConnections.forEach((e=>e.dispose()));this._pollModels.dispose();super.dispose()}connectTo(e){var t;const{id:n}=e.model;let i=(t=e.handleComms)!==null&&t!==void 0?t:true;if(e.handleComms===undefined){for(const e of this._kernelConnections){if(e.id===n&&e.handleComms){i=false;break}}}const s=new l.KernelConnection({handleComms:i,...e,serverSettings:this.serverSettings});this._onStarted(s);if(!this._models.has(n)){void this.refreshRunning().catch((()=>{}))}return s}running(){return this._models.values()}async refreshRunning(){await this._pollModels.refresh();await this._pollModels.tick}async startNew(e={},t={}){const n=await(0,a.startNew)(e,this.serverSettings);return this.connectTo({...t,model:n})}async shutdown(e){await(0,a.shutdownKernel)(e,this.serverSettings);await this.refreshRunning()}async shutdownAll(){await this.refreshRunning();await Promise.all([...this._models.keys()].map((e=>(0,a.shutdownKernel)(e,this.serverSettings))));await this.refreshRunning()}async findById(e){if(this._models.has(e)){return this._models.get(e)}await this.refreshRunning();return this._models.get(e)}async requestRunning(){var e,t;let n;try{n=await(0,a.listRunning)(this.serverSettings)}catch(i){if(i instanceof o.ServerConnection.NetworkError||((e=i.response)===null||e===void 0?void 0:e.status)===503||((t=i.response)===null||t===void 0?void 0:t.status)===424){this._connectionFailure.emit(i)}throw i}if(this.isDisposed){return}if(this._models.size===n.length&&n.every((e=>{const t=this._models.get(e.id);if(!t){return false}return t.connections===e.connections&&t.execution_state===e.execution_state&&t.last_activity===e.last_activity&&t.name===e.name&&t.reason===e.reason&&t.traceback===e.traceback}))){return}this._models=new Map(n.map((e=>[e.id,e])));this._kernelConnections.forEach((e=>{if(!this._models.has(e.id)){e.handleShutdown()}}));this._runningChanged.emit(n)}_onStarted(e){this._kernelConnections.add(e);e.statusChanged.connect(this._onStatusChanged,this);e.disposed.connect(this._onDisposed,this)}_onDisposed(e){this._kernelConnections.delete(e);void this.refreshRunning().catch((()=>{}))}_onStatusChanged(e,t){if(t==="dead"){void this.refreshRunning().catch((()=>{}))}}}t.KernelManager=d;(function(e){class t extends e{constructor(){super(...arguments);this._readyPromise=new Promise((()=>{}))}get isActive(){return false}get parentReady(){return super.ready}async startNew(e={},t={}){return Promise.reject(new Error("Not implemented in no-op Kernel Manager"))}connectTo(e){throw new Error("Not implemented in no-op Kernel Manager")}async shutdown(e){return Promise.reject(new Error("Not implemented in no-op Kernel Manager"))}get ready(){return this.parentReady.then((()=>this._readyPromise))}async requestRunning(){return Promise.resolve()}}e.NoopManager=t})(d=t.KernelManager||(t.KernelManager={}))},75253:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.supportedKernelWebSocketProtocols=t.isInputReplyMsg=t.isInputRequestMsg=t.isDebugReplyMsg=t.isDebugRequestMsg=t.isExecuteReplyMsg=t.isInfoRequestMsg=t.isCommMsgMsg=t.isCommCloseMsg=t.isCommOpenMsg=t.isDebugEventMsg=t.isClearOutputMsg=t.isStatusMsg=t.isErrorMsg=t.isExecuteResultMsg=t.isExecuteInputMsg=t.isUpdateDisplayDataMsg=t.isDisplayDataMsg=t.isStreamMsg=t.createMessage=void 0;const i=n(5596);function s(e){var t,n,s,o,r;return{buffers:(t=e.buffers)!==null&&t!==void 0?t:[],channel:e.channel,content:e.content,header:{date:(new Date).toISOString(),msg_id:(n=e.msgId)!==null&&n!==void 0?n:i.UUID.uuid4(),msg_type:e.msgType,session:e.session,username:(s=e.username)!==null&&s!==void 0?s:"",version:"5.2"},metadata:(o=e.metadata)!==null&&o!==void 0?o:{},parent_header:(r=e.parentHeader)!==null&&r!==void 0?r:{}}}t.createMessage=s;function o(e){return e.header.msg_type==="stream"}t.isStreamMsg=o;function r(e){return e.header.msg_type==="display_data"}t.isDisplayDataMsg=r;function a(e){return e.header.msg_type==="update_display_data"}t.isUpdateDisplayDataMsg=a;function l(e){return e.header.msg_type==="execute_input"}t.isExecuteInputMsg=l;function d(e){return e.header.msg_type==="execute_result"}t.isExecuteResultMsg=d;function c(e){return e.header.msg_type==="error"}t.isErrorMsg=c;function h(e){return e.header.msg_type==="status"}t.isStatusMsg=h;function u(e){return e.header.msg_type==="clear_output"}t.isClearOutputMsg=u;function p(e){return e.header.msg_type==="debug_event"}t.isDebugEventMsg=p;function m(e){return e.header.msg_type==="comm_open"}t.isCommOpenMsg=m;function g(e){return e.header.msg_type==="comm_close"}t.isCommCloseMsg=g;function f(e){return e.header.msg_type==="comm_msg"}t.isCommMsgMsg=f;function v(e){return e.header.msg_type==="kernel_info_request"}t.isInfoRequestMsg=v;function _(e){return e.header.msg_type==="execute_reply"}t.isExecuteReplyMsg=_;function b(e){return e.header.msg_type==="debug_request"}t.isDebugRequestMsg=b;function y(e){return e.header.msg_type==="debug_reply"}t.isDebugReplyMsg=y;function w(e){return e.header.msg_type==="input_request"}t.isInputRequestMsg=w;function C(e){return e.header.msg_type==="input_reply"}t.isInputReplyMsg=C;var x;(function(e){e["v1KernelWebsocketJupyterOrg"]="v1.kernel.websocket.jupyter.org"})(x=t.supportedKernelWebSocketProtocols||(t.supportedKernelWebSocketProtocols={}))},2183:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getKernelModel=t.shutdownKernel=t.interruptKernel=t.restartKernel=t.startNew=t.listRunning=t.KERNEL_SERVICE_URL=void 0;const i=n(28477);const s=n(20501);const o=n(96512);t.KERNEL_SERVICE_URL="api/kernels";async function r(e=i.ServerConnection.makeSettings()){const n=s.URLExt.join(e.baseUrl,t.KERNEL_SERVICE_URL);const r=await i.ServerConnection.makeRequest(n,{},e);if(r.status!==200){const e=await i.ServerConnection.ResponseError.create(r);throw e}const a=await r.json();(0,o.validateModels)(a);return a}t.listRunning=r;async function a(e={},n=i.ServerConnection.makeSettings()){const r=s.URLExt.join(n.baseUrl,t.KERNEL_SERVICE_URL);const a={method:"POST",body:JSON.stringify(e)};const l=await i.ServerConnection.makeRequest(r,a,n);if(l.status!==201){const e=await i.ServerConnection.ResponseError.create(l);throw e}const d=await l.json();(0,o.validateModel)(d);return d}t.startNew=a;async function l(e,n=i.ServerConnection.makeSettings()){const r=s.URLExt.join(n.baseUrl,t.KERNEL_SERVICE_URL,encodeURIComponent(e),"restart");const a={method:"POST"};const l=await i.ServerConnection.makeRequest(r,a,n);if(l.status!==200){const e=await i.ServerConnection.ResponseError.create(l);throw e}const d=await l.json();(0,o.validateModel)(d)}t.restartKernel=l;async function d(e,n=i.ServerConnection.makeSettings()){const o=s.URLExt.join(n.baseUrl,t.KERNEL_SERVICE_URL,encodeURIComponent(e),"interrupt");const r={method:"POST"};const a=await i.ServerConnection.makeRequest(o,r,n);if(a.status!==204){const e=await i.ServerConnection.ResponseError.create(a);throw e}}t.interruptKernel=d;async function c(e,n=i.ServerConnection.makeSettings()){const o=s.URLExt.join(n.baseUrl,t.KERNEL_SERVICE_URL,encodeURIComponent(e));const r={method:"DELETE"};const a=await i.ServerConnection.makeRequest(o,r,n);if(a.status===404){const t=`The kernel "${e}" does not exist on the server`;console.warn(t)}else if(a.status!==204){const e=await i.ServerConnection.ResponseError.create(a);throw e}}t.shutdownKernel=c;async function h(e,n=i.ServerConnection.makeSettings()){const r=s.URLExt.join(n.baseUrl,t.KERNEL_SERVICE_URL,encodeURIComponent(e));const a=await i.ServerConnection.makeRequest(r,{},n);if(a.status===404){return undefined}else if(a.status!==200){const e=await i.ServerConnection.ResponseError.create(a);throw e}const l=await a.json();(0,o.validateModel)(l);return l}t.getKernelModel=h},86002:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.deserialize=t.serialize=void 0;const r=o(n(75253));function a(e,t=""){switch(t){case r.supportedKernelWebSocketProtocols.v1KernelWebsocketJupyterOrg:return d.serializeV1KernelWebsocketJupyterOrg(e);default:return d.serializeDefault(e)}}t.serialize=a;function l(e,t=""){switch(t){case r.supportedKernelWebSocketProtocols.v1KernelWebsocketJupyterOrg:return d.deserializeV1KernelWebsocketJupyterOrg(e);default:return d.deserializeDefault(e)}}t.deserialize=l;var d;(function(e){function t(e){let t;const n=new DataView(e);const i=Number(n.getBigUint64(0,true));let s=[];for(let u=0;u{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateModels=t.validateModel=t.validateMessage=void 0;const i=n(46901);const s=["username","version","session","msg_id","msg_type"];const o={stream:{name:"string",text:"string"},display_data:{data:"object",metadata:"object"},execute_input:{code:"string",execution_count:"number"},execute_result:{execution_count:"number",data:"object",metadata:"object"},error:{ename:"string",evalue:"string",traceback:"object"},status:{execution_state:["string",["starting","idle","busy","restarting","dead"]]},clear_output:{wait:"boolean"},comm_open:{comm_id:"string",target_name:"string",data:"object"},comm_msg:{comm_id:"string",data:"object"},comm_close:{comm_id:"string"},shutdown_reply:{restart:"boolean"}};function r(e){for(let t=0;td(e)))}t.validateModels=c},12902:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};var r=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))i(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});t.KernelSpecAPI=t.KernelSpec=void 0;const a=o(n(79453));t.KernelSpec=a;const l=o(n(33415));t.KernelSpecAPI=l;r(n(54936),t)},79453:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},54936:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};Object.defineProperty(t,"__esModule",{value:true});t.KernelSpecManager=void 0;const r=n(5596);const a=n(95905);const l=n(71372);const d=o(n(33415));const c=n(50591);class h extends c.BaseManager{constructor(e={}){var t;super(e);this._isReady=false;this._connectionFailure=new l.Signal(this);this._specs=null;this._specsChanged=new l.Signal(this);this._ready=Promise.all([this.requestSpecs()]).then((e=>undefined)).catch((e=>undefined)).then((()=>{if(this.isDisposed){return}this._isReady=true}));this._pollSpecs=new a.Poll({auto:false,factory:()=>this.requestSpecs(),frequency:{interval:61*1e3,backoff:true,max:300*1e3},name:`@jupyterlab/services:KernelSpecManager#specs`,standby:(t=e.standby)!==null&&t!==void 0?t:"when-hidden"});void this.ready.then((()=>{void this._pollSpecs.start()}))}get isReady(){return this._isReady}get ready(){return this._ready}get specs(){return this._specs}get specsChanged(){return this._specsChanged}get connectionFailure(){return this._connectionFailure}dispose(){this._pollSpecs.dispose();super.dispose()}async refreshSpecs(){await this._pollSpecs.refresh();await this._pollSpecs.tick}async requestSpecs(){const e=await d.getSpecs(this.serverSettings);if(this.isDisposed){return}if(!r.JSONExt.deepEqual(e,this._specs)){this._specs=e;this._specsChanged.emit(e)}}}t.KernelSpecManager=h},33415:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getSpecs=void 0;const i=n(28477);const s=n(73103);const o=n(20501);const r="api/kernelspecs";async function a(e=i.ServerConnection.makeSettings()){const t=o.URLExt.join(e.baseUrl,r);const n=await i.ServerConnection.makeRequest(t,{},e);if(n.status!==200){const e=await i.ServerConnection.ResponseError.create(n);throw e}const a=await n.json();return(0,s.validateSpecModels)(a)}t.getSpecs=a},73103:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateSpecModels=t.validateSpecModel=void 0;const i=n(46901);function s(e){const t=e.spec;if(!t){throw new Error("Invalid kernel spec")}(0,i.validateProperty)(e,"name","string");(0,i.validateProperty)(e,"resources","object");(0,i.validateProperty)(t,"language","string");(0,i.validateProperty)(t,"display_name","string");(0,i.validateProperty)(t,"argv","array");let n=null;if(t.hasOwnProperty("metadata")){(0,i.validateProperty)(t,"metadata","object");n=t.metadata}let s=null;if(t.hasOwnProperty("env")){(0,i.validateProperty)(t,"env","object");s=t.env}return{name:e.name,resources:e.resources,language:t.language,display_name:t.display_name,argv:t.argv,metadata:n,env:s}}t.validateSpecModel=s;function o(e){if(!e.hasOwnProperty("kernelspecs")){throw new Error("No kernelspecs found")}let t=Object.keys(e.kernelspecs);const n=Object.create(null);let i=e.default;for(let r=0;r{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.ServiceManager=void 0;const i=n(71372);const s=n(33227);const o=n(63644);const r=n(57316);const a=n(62604);const l=n(12902);const d=n(4574);const c=n(28477);const h=n(41874);const u=n(92726);const p=n(93247);const m=n(95598);const g=n(45399);class f{constructor(e={}){var t,n;this._isDisposed=false;this._connectionFailure=new i.Signal(this);this._isReady=false;const f=e.defaultDrive;const v=(t=e.serverSettings)!==null&&t!==void 0?t:c.ServerConnection.makeSettings();const _=(n=e.standby)!==null&&n!==void 0?n:"when-hidden";const b={defaultDrive:f,serverSettings:v,standby:_};this.serverSettings=v;this.contents=e.contents||new o.ContentsManager(b);this.events=e.events||new r.EventManager(b);this.kernels=e.kernels||new a.KernelManager(b);this.sessions=e.sessions||new h.SessionManager({...b,kernelManager:this.kernels});this.settings=e.settings||new u.SettingManager(b);this.terminals=e.terminals||new p.TerminalManager(b);this.builder=e.builder||new s.BuildManager(b);this.workspaces=e.workspaces||new g.WorkspaceManager(b);this.nbconvert=e.nbconvert||new d.NbConvertManager(b);this.kernelspecs=e.kernelspecs||new l.KernelSpecManager(b);this.user=e.user||new m.UserManager(b);this.kernelspecs.connectionFailure.connect(this._onConnectionFailure,this);this.sessions.connectionFailure.connect(this._onConnectionFailure,this);this.terminals.connectionFailure.connect(this._onConnectionFailure,this);const y=[this.sessions.ready,this.kernelspecs.ready];if(this.terminals.isAvailable()){y.push(this.terminals.ready)}this._readyPromise=Promise.all(y).then((()=>{this._isReady=true}))}get connectionFailure(){return this._connectionFailure}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;i.Signal.clearData(this);this.contents.dispose();this.events.dispose();this.sessions.dispose();this.terminals.dispose()}get isReady(){return this._isReady}get ready(){return this._readyPromise}_onConnectionFailure(e,t){this._connectionFailure.emit(t)}}t.ServiceManager=f},4574:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.NbConvertManager=void 0;const i=n(20501);const s=n(28477);const o=n(5596);const r="api/nbconvert";class a{constructor(e={}){var t;this._exportFormats=null;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:s.ServerConnection.makeSettings()}async fetchExportFormats(){this._requestingFormats=new o.PromiseDelegate;this._exportFormats=null;const e=this.serverSettings.baseUrl;const t=i.URLExt.join(e,r);const{serverSettings:n}=this;const a=await s.ServerConnection.makeRequest(t,{},n);if(a.status!==200){const e=await s.ServerConnection.ResponseError.create(a);throw e}const l=await a.json();const d={};const c=Object.keys(l);c.forEach((function(e){const t=l[e].output_mimetype;d[e]={output_mimetype:t}}));this._exportFormats=d;this._requestingFormats.resolve(d);return d}async getExportFormats(e=true){if(this._requestingFormats){return this._requestingFormats.promise}if(e||!this._exportFormats){return await this.fetchExportFormats()}return this._exportFormats}}t.NbConvertManager=a},28477:(e,t,n)=>{"use strict";var i=n(34155);Object.defineProperty(t,"__esModule",{value:true});t.ServerConnection=void 0;const s=n(20501);let o;if(typeof window==="undefined"){o=n(18083)}else{o=WebSocket}var r;(function(e){function t(e){return a.makeSettings(e)}e.makeSettings=t;function n(e,t,n){return a.handleRequest(e,t,n)}e.makeRequest=n;class i extends Error{static async create(e){try{const t=await e.json();const{message:n,traceback:s}=t;if(s){console.error(s)}return new i(e,n!==null&&n!==void 0?n:i._defaultMessage(e),s!==null&&s!==void 0?s:"")}catch(t){console.debug(t);return new i(e)}}constructor(e,t=i._defaultMessage(e),n=""){super(t);this.response=e;this.traceback=n}static _defaultMessage(e){return`Invalid response: ${e.status} ${e.statusText}`}}e.ResponseError=i;class s extends TypeError{constructor(e){super(e.message);this.stack=e.stack}}e.NetworkError=s})(r=t.ServerConnection||(t.ServerConnection={}));var a;(function(e){function t(e={}){var t;const n=s.PageConfig.getBaseUrl();const r=s.PageConfig.getWsUrl();const a=s.URLExt.normalize(e.baseUrl)||n;let l=e.wsUrl;if(!l&&a===n){l=r}if(!l&&a.indexOf("http")===0){l="ws"+a.slice(4)}l=l!==null&&l!==void 0?l:r;return{init:{cache:"no-store",credentials:"same-origin"},fetch,Headers,Request,WebSocket:o,token:s.PageConfig.getToken(),appUrl:s.PageConfig.getOption("appUrl"),appendToken:typeof window==="undefined"||typeof i!=="undefined"&&((t=i===null||i===void 0?void 0:i.env)===null||t===void 0?void 0:t.JEST_WORKER_ID)!==undefined||s.URLExt.getHostName(n)!==s.URLExt.getHostName(l),...e,baseUrl:a,wsUrl:l}}e.makeSettings=t;function n(e,t,n){var i;if(e.indexOf(n.baseUrl)!==0){throw new Error("Can only be used for notebook server requests")}const s=(i=t.cache)!==null&&i!==void 0?i:n.init.cache;if(s==="no-store"){e+=(/\?/.test(e)?"&":"?")+(new Date).getTime()}const o=new n.Request(e,{...n.init,...t});let l=false;if(n.token){l=true;o.headers.append("Authorization",`token ${n.token}`)}if(typeof document!=="undefined"&&(document===null||document===void 0?void 0:document.cookie)){const e=a("_xsrf");if(e!==undefined){l=true;o.headers.append("X-XSRFToken",e)}}if(!o.headers.has("Content-Type")&&l){o.headers.set("Content-Type","application/json")}return n.fetch.call(null,o).catch((e=>{throw new r.NetworkError(e)}))}e.handleRequest=n;function a(e){const t=document.cookie.match("\\b"+e+"=([^;]*)\\b");return t===null||t===void 0?void 0:t[1]}})(a||(a={}))},35410:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SessionConnection=void 0;const i=n(71372);const s=n(76240);const o=n(56807);const r=n(5596);class a{constructor(e){var t,n,o,a;this._id="";this._path="";this._name="";this._type="";this._kernel=null;this._isDisposed=false;this._disposed=new i.Signal(this);this._kernelChanged=new i.Signal(this);this._statusChanged=new i.Signal(this);this._connectionStatusChanged=new i.Signal(this);this._pendingInput=new i.Signal(this);this._iopubMessage=new i.Signal(this);this._unhandledMessage=new i.Signal(this);this._anyMessage=new i.Signal(this);this._propertyChanged=new i.Signal(this);this._id=e.model.id;this._name=e.model.name;this._path=e.model.path;this._type=e.model.type;this._username=(t=e.username)!==null&&t!==void 0?t:"";this._clientId=(n=e.clientId)!==null&&n!==void 0?n:r.UUID.uuid4();this._connectToKernel=e.connectToKernel;this._kernelConnectionOptions=(o=e.kernelConnectionOptions)!==null&&o!==void 0?o:{};this.serverSettings=(a=e.serverSettings)!==null&&a!==void 0?a:s.ServerConnection.makeSettings();this.setupKernel(e.model.kernel)}get disposed(){return this._disposed}get kernelChanged(){return this._kernelChanged}get statusChanged(){return this._statusChanged}get connectionStatusChanged(){return this._connectionStatusChanged}get pendingInput(){return this._pendingInput}get iopubMessage(){return this._iopubMessage}get unhandledMessage(){return this._unhandledMessage}get anyMessage(){return this._anyMessage}get propertyChanged(){return this._propertyChanged}get id(){return this._id}get kernel(){return this._kernel}get path(){return this._path}get type(){return this._type}get name(){return this._name}get model(){return{id:this.id,kernel:this.kernel&&{id:this.kernel.id,name:this.kernel.name},path:this._path,type:this._type,name:this._name}}get isDisposed(){return this._isDisposed}update(e){const t=this.model;this._path=e.path;this._name=e.name;this._type=e.type;if(this._kernel===null&&e.kernel!==null||this._kernel!==null&&e.kernel===null||this._kernel!==null&&e.kernel!==null&&this._kernel.id!==e.kernel.id){if(this._kernel!==null){this._kernel.dispose()}const t=this._kernel||null;this.setupKernel(e.kernel);const n=this._kernel||null;this._kernelChanged.emit({name:"kernel",oldValue:t,newValue:n})}this._handleModelChange(t)}dispose(){if(this.isDisposed){return}this._isDisposed=true;this._disposed.emit();if(this._kernel){this._kernel.dispose();const e=this._kernel;this._kernel=null;const t=this._kernel;this._kernelChanged.emit({name:"kernel",oldValue:e,newValue:t})}i.Signal.clearData(this)}async setPath(e){if(this.isDisposed){throw new Error("Session is disposed")}await this._patch({path:e})}async setName(e){if(this.isDisposed){throw new Error("Session is disposed")}await this._patch({name:e})}async setType(e){if(this.isDisposed){throw new Error("Session is disposed")}await this._patch({type:e})}async changeKernel(e){if(this.isDisposed){throw new Error("Session is disposed")}await this._patch({kernel:e});return this.kernel}async shutdown(){if(this.isDisposed){throw new Error("Session is disposed")}await(0,o.shutdownSession)(this.id,this.serverSettings);this.dispose()}setupKernel(e){if(e===null){this._kernel=null;return}const t=this._connectToKernel({...this._kernelConnectionOptions,model:e,username:this._username,clientId:this._clientId,serverSettings:this.serverSettings});this._kernel=t;t.statusChanged.connect(this.onKernelStatus,this);t.connectionStatusChanged.connect(this.onKernelConnectionStatus,this);t.pendingInput.connect(this.onPendingInput,this);t.unhandledMessage.connect(this.onUnhandledMessage,this);t.iopubMessage.connect(this.onIOPubMessage,this);t.anyMessage.connect(this.onAnyMessage,this)}onKernelStatus(e,t){this._statusChanged.emit(t)}onKernelConnectionStatus(e,t){this._connectionStatusChanged.emit(t)}onPendingInput(e,t){this._pendingInput.emit(t)}onIOPubMessage(e,t){this._iopubMessage.emit(t)}onUnhandledMessage(e,t){this._unhandledMessage.emit(t)}onAnyMessage(e,t){this._anyMessage.emit(t)}async _patch(e){const t=await(0,o.updateSession)({...e,id:this._id},this.serverSettings);this.update(t);return t}_handleModelChange(e){if(e.name!==this._name){this._propertyChanged.emit("name")}if(e.type!==this._type){this._propertyChanged.emit("type")}if(e.path!==this._path){this._propertyChanged.emit("path")}}}t.SessionConnection=a},41874:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:true,value:t})}:function(e,t){e["default"]=t});var o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n))i(t,e,n);s(t,e);return t};var r=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))i(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});t.SessionAPI=t.Session=void 0;const a=o(n(11372));t.Session=a;const l=o(n(56807));t.SessionAPI=l;r(n(57847),t)},57847:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SessionManager=void 0;const i=n(95905);const s=n(71372);const o=n(28477);const r=n(50591);const a=n(35410);const l=n(56807);class d extends r.BaseManager{constructor(e){var t;super(e);this._isReady=false;this._sessionConnections=new Set;this._models=new Map;this._runningChanged=new s.Signal(this);this._connectionFailure=new s.Signal(this);this._connectToKernel=e=>this._kernelManager.connectTo(e);this._kernelManager=e.kernelManager;this._pollModels=new i.Poll({auto:false,factory:()=>this.requestRunning(),frequency:{interval:10*1e3,backoff:true,max:300*1e3},name:`@jupyterlab/services:SessionManager#models`,standby:(t=e.standby)!==null&&t!==void 0?t:"when-hidden"});this._ready=(async()=>{await this._pollModels.start();await this._pollModels.tick;if(this._kernelManager.isActive){await this._kernelManager.ready}this._isReady=true})()}get isReady(){return this._isReady}get ready(){return this._ready}get runningChanged(){return this._runningChanged}get connectionFailure(){return this._connectionFailure}dispose(){if(this.isDisposed){return}this._models.clear();this._sessionConnections.forEach((e=>e.dispose()));this._pollModels.dispose();super.dispose()}connectTo(e){const t=new a.SessionConnection({...e,connectToKernel:this._connectToKernel,serverSettings:this.serverSettings});this._onStarted(t);if(!this._models.has(e.model.id)){void this.refreshRunning().catch((()=>{}))}return t}running(){return this._models.values()}async refreshRunning(){await this._pollModels.refresh();await this._pollModels.tick}async startNew(e,t={}){const n=await(0,l.startSession)(e,this.serverSettings);await this.refreshRunning();return this.connectTo({...t,model:n})}async shutdown(e){await(0,l.shutdownSession)(e,this.serverSettings);await this.refreshRunning()}async shutdownAll(){await this.refreshRunning();await Promise.all([...this._models.keys()].map((e=>(0,l.shutdownSession)(e,this.serverSettings))));await this.refreshRunning()}async stopIfNeeded(e){try{const t=await(0,l.listRunning)(this.serverSettings);const n=t.filter((t=>t.path===e));if(n.length===1){const e=n[0].id;await this.shutdown(e)}}catch(t){}}async findById(e){if(this._models.has(e)){return this._models.get(e)}await this.refreshRunning();return this._models.get(e)}async findByPath(e){for(const t of this._models.values()){if(t.path===e){return t}}await this.refreshRunning();for(const t of this._models.values()){if(t.path===e){return t}}return undefined}async requestRunning(){var e,t;let n;try{n=await(0,l.listRunning)(this.serverSettings)}catch(i){if(i instanceof o.ServerConnection.NetworkError||((e=i.response)===null||e===void 0?void 0:e.status)===503||((t=i.response)===null||t===void 0?void 0:t.status)===424){this._connectionFailure.emit(i)}throw i}if(this.isDisposed){return}if(this._models.size===n.length&&n.every((e=>{var t,n,i,s;const o=this._models.get(e.id);if(!o){return false}return((t=o.kernel)===null||t===void 0?void 0:t.id)===((n=e.kernel)===null||n===void 0?void 0:n.id)&&((i=o.kernel)===null||i===void 0?void 0:i.name)===((s=e.kernel)===null||s===void 0?void 0:s.name)&&o.name===e.name&&o.path===e.path&&o.type===e.type}))){return}this._models=new Map(n.map((e=>[e.id,e])));this._sessionConnections.forEach((e=>{if(this._models.has(e.id)){e.update(this._models.get(e.id))}else{e.dispose()}}));this._runningChanged.emit(n)}_onStarted(e){this._sessionConnections.add(e);e.disposed.connect(this._onDisposed,this);e.propertyChanged.connect(this._onChanged,this);e.kernelChanged.connect(this._onChanged,this)}_onDisposed(e){this._sessionConnections.delete(e);void this.refreshRunning().catch((()=>{}))}_onChanged(){void this.refreshRunning().catch((()=>{}))}}t.SessionManager=d;(function(e){class t extends e{constructor(){super(...arguments);this._readyPromise=new Promise((()=>{}))}get isActive(){return false}get parentReady(){return super.ready}async startNew(e,t={}){return Promise.reject(new Error("Not implemented in no-op Session Manager"))}connectTo(e){throw Error("Not implemented in no-op Session Manager")}get ready(){return this.parentReady.then((()=>this._readyPromise))}async shutdown(e){return Promise.reject(new Error("Not implemented in no-op Session Manager"))}async requestRunning(){return Promise.resolve()}}e.NoopManager=t})(d=t.SessionManager||(t.SessionManager={}))},56807:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.updateSession=t.startSession=t.getSessionModel=t.shutdownSession=t.getSessionUrl=t.listRunning=t.SESSION_SERVICE_URL=void 0;const i=n(28477);const s=n(20501);const o=n(29145);t.SESSION_SERVICE_URL="api/sessions";async function r(e=i.ServerConnection.makeSettings()){const n=s.URLExt.join(e.baseUrl,t.SESSION_SERVICE_URL);const r=await i.ServerConnection.makeRequest(n,{},e);if(r.status!==200){const e=await i.ServerConnection.ResponseError.create(r);throw e}const a=await r.json();if(!Array.isArray(a)){throw new Error("Invalid Session list")}a.forEach((e=>{(0,o.updateLegacySessionModel)(e);(0,o.validateModel)(e)}));return a}t.listRunning=r;function a(e,n){return s.URLExt.join(e,t.SESSION_SERVICE_URL,n)}t.getSessionUrl=a;async function l(e,t=i.ServerConnection.makeSettings()){var n;const s=a(t.baseUrl,e);const o={method:"DELETE"};const r=await i.ServerConnection.makeRequest(s,o,t);if(r.status===404){const t=await r.json();const i=(n=t.message)!==null&&n!==void 0?n:`The session "${e}"" does not exist on the server`;console.warn(i)}else if(r.status===410){throw new i.ServerConnection.ResponseError(r,"The kernel was deleted but the session was not")}else if(r.status!==204){const e=await i.ServerConnection.ResponseError.create(r);throw e}}t.shutdownSession=l;async function d(e,t=i.ServerConnection.makeSettings()){const n=a(t.baseUrl,e);const s=await i.ServerConnection.makeRequest(n,{},t);if(s.status!==200){const e=await i.ServerConnection.ResponseError.create(s);throw e}const r=await s.json();(0,o.updateLegacySessionModel)(r);(0,o.validateModel)(r);return r}t.getSessionModel=d;async function c(e,n=i.ServerConnection.makeSettings()){const r=s.URLExt.join(n.baseUrl,t.SESSION_SERVICE_URL);const a={method:"POST",body:JSON.stringify(e)};const l=await i.ServerConnection.makeRequest(r,a,n);if(l.status!==201){const e=await i.ServerConnection.ResponseError.create(l);throw e}const d=await l.json();(0,o.updateLegacySessionModel)(d);(0,o.validateModel)(d);return d}t.startSession=c;async function h(e,t=i.ServerConnection.makeSettings()){const n=a(t.baseUrl,e.id);const s={method:"PATCH",body:JSON.stringify(e)};const r=await i.ServerConnection.makeRequest(n,s,t);if(r.status!==200){const e=await i.ServerConnection.ResponseError.create(r);throw e}const l=await r.json();(0,o.updateLegacySessionModel)(l);(0,o.validateModel)(l);return l}t.updateSession=h},11372:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},29145:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateModels=t.updateLegacySessionModel=t.validateModel=void 0;const i=n(96512);const s=n(46901);function o(e){(0,s.validateProperty)(e,"id","string");(0,s.validateProperty)(e,"type","string");(0,s.validateProperty)(e,"name","string");(0,s.validateProperty)(e,"path","string");(0,s.validateProperty)(e,"kernel","object");(0,i.validateModel)(e.kernel)}t.validateModel=o;function r(e){if(e.path===undefined&&e.notebook!==undefined){e.path=e.notebook.path;e.type="notebook";e.name=""}}t.updateLegacySessionModel=r;function a(e){if(!Array.isArray(e)){throw new Error("Invalid session list")}e.forEach((e=>o(e)))}t.validateModels=a},92726:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.SettingManager=void 0;const i=n(20501);const s=n(22971);const o=n(28477);const r="api/settings";class a extends s.DataConnector{constructor(e={}){var t;super();this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:o.ServerConnection.makeSettings()}async fetch(e){if(!e){throw new Error("Plugin `id` parameter is required for settings fetch.")}const{serverSettings:t}=this;const{baseUrl:n,appUrl:i}=t;const{makeRequest:s,ResponseError:r}=o.ServerConnection;const a=n+i;const d=l.url(a,e);const c=await s(d,{},t);if(c.status!==200){const e=await r.create(c);throw e}return c.json()}async list(e){var t,n,i,s;const{serverSettings:r}=this;const{baseUrl:a,appUrl:d}=r;const{makeRequest:c,ResponseError:h}=o.ServerConnection;const u=a+d;const p=l.url(u,"",e==="ids");const m=await c(p,{},r);if(m.status!==200){throw new h(m)}const g=await m.json();const f=(n=(t=g===null||g===void 0?void 0:g["settings"])===null||t===void 0?void 0:t.map((e=>e.id)))!==null&&n!==void 0?n:[];let v=[];if(!e){v=(s=(i=g===null||g===void 0?void 0:g["settings"])===null||i===void 0?void 0:i.map((e=>{e.data={composite:{},user:{}};return e})))!==null&&s!==void 0?s:[]}return{ids:f,values:v}}async save(e,t){const{serverSettings:n}=this;const{baseUrl:i,appUrl:s}=n;const{makeRequest:r,ResponseError:a}=o.ServerConnection;const d=i+s;const c=l.url(d,e);const h={body:JSON.stringify({raw:t}),method:"PUT"};const u=await r(c,h,n);if(u.status!==204){throw new a(u)}}}t.SettingManager=a;var l;(function(e){function t(e,t,n){const s=n?i.URLExt.objectToQueryString({ids_only:true}):"";return`${i.URLExt.join(e,r,t)}${s}`}e.url=t})(l||(l={}))},71146:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TerminalConnection=void 0;const i=n(20501);const s=n(5596);const o=n(71372);const r=n(76240);const a=n(43286);class l{constructor(e){var t;this._createSocket=()=>{this._errorIfDisposed();this._clearSocket();this._updateConnectionStatus("connecting");const e=this._name;const t=this.serverSettings;let n=i.URLExt.join(t.wsUrl,"terminals","websocket",encodeURIComponent(e));const s=t.token;if(t.appendToken&&s!==""){n=n+`?token=${encodeURIComponent(s)}`}this._ws=new t.WebSocket(n);this._ws.onmessage=this._onWSMessage;this._ws.onclose=this._onWSClose;this._ws.onerror=this._onWSClose};this._onWSMessage=e=>{if(this._isDisposed){return}const t=JSON.parse(e.data);if(t[0]==="disconnect"){this.dispose()}if(this._connectionStatus==="connecting"){if(t[0]==="setup"){this._updateConnectionStatus("connected")}return}this._messageReceived.emit({type:t[0],content:t.slice(1)})};this._onWSClose=e=>{console.warn(`Terminal websocket closed: ${e.code}`);if(!this.isDisposed){this._reconnect()}};this._connectionStatus="connecting";this._connectionStatusChanged=new o.Signal(this);this._isDisposed=false;this._disposed=new o.Signal(this);this._messageReceived=new o.Signal(this);this._reconnectTimeout=null;this._ws=null;this._noOp=()=>{};this._reconnectLimit=7;this._reconnectAttempt=0;this._pendingMessages=[];this._name=e.model.name;this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:r.ServerConnection.makeSettings();this._createSocket()}get disposed(){return this._disposed}get messageReceived(){return this._messageReceived}get name(){return this._name}get model(){return{name:this._name}}get isDisposed(){return this._isDisposed}dispose(){if(this._isDisposed){return}this._isDisposed=true;this._disposed.emit();this._updateConnectionStatus("disconnected");this._clearSocket();o.Signal.clearData(this)}send(e){this._sendMessage(e)}_sendMessage(e,t=true){if(this._isDisposed||!e.content){return}if(this.connectionStatus==="connected"&&this._ws){const t=[e.type,...e.content];this._ws.send(JSON.stringify(t))}else if(t){this._pendingMessages.push(e)}else{throw new Error(`Could not send message: ${JSON.stringify(e)}`)}}_sendPending(){while(this.connectionStatus==="connected"&&this._pendingMessages.length>0){this._sendMessage(this._pendingMessages[0],false);this._pendingMessages.shift()}}reconnect(){this._errorIfDisposed();const e=new s.PromiseDelegate;const t=(n,i)=>{if(i==="connected"){e.resolve();this.connectionStatusChanged.disconnect(t,this)}else if(i==="disconnected"){e.reject(new Error("Terminal connection disconnected"));this.connectionStatusChanged.disconnect(t,this)}};this.connectionStatusChanged.connect(t,this);this._reconnectAttempt=0;this._reconnect();return e.promise}_reconnect(){this._errorIfDisposed();clearTimeout(this._reconnectTimeout);if(this._reconnectAttempt{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.TerminalManager=void 0;const i=n(95905);const s=n(71372);const o=n(76240);const r=n(50591);const a=n(43286);const l=n(71146);class d extends r.BaseManager{constructor(e={}){var t;super(e);this._isReady=false;this._names=[];this._terminalConnections=new Set;this._runningChanged=new s.Signal(this);this._connectionFailure=new s.Signal(this);if(!this.isAvailable()){this._ready=Promise.reject("Terminals unavailable");this._ready.catch((e=>undefined));return}this._pollModels=new i.Poll({auto:false,factory:()=>this.requestRunning(),frequency:{interval:10*1e3,backoff:true,max:300*1e3},name:`@jupyterlab/services:TerminalManager#models`,standby:(t=e.standby)!==null&&t!==void 0?t:"when-hidden"});this._ready=(async()=>{await this._pollModels.start();await this._pollModels.tick;this._isReady=true})()}get isReady(){return this._isReady}get ready(){return this._ready}get runningChanged(){return this._runningChanged}get connectionFailure(){return this._connectionFailure}dispose(){if(this.isDisposed){return}this._names.length=0;this._terminalConnections.forEach((e=>e.dispose()));this._pollModels.dispose();super.dispose()}isAvailable(){return(0,a.isAvailable)()}connectTo(e){const t=new l.TerminalConnection({...e,serverSettings:this.serverSettings});this._onStarted(t);if(!this._names.includes(e.model.name)){void this.refreshRunning().catch((()=>{}))}return t}running(){return this._models[Symbol.iterator]()}async refreshRunning(){await this._pollModels.refresh();await this._pollModels.tick}async startNew(e){const t=await(0,a.startNew)(this.serverSettings,e===null||e===void 0?void 0:e.name,e===null||e===void 0?void 0:e.cwd);await this.refreshRunning();return this.connectTo({model:t})}async shutdown(e){await(0,a.shutdownTerminal)(e,this.serverSettings);await this.refreshRunning()}async shutdownAll(){await this.refreshRunning();await Promise.all(this._names.map((e=>(0,a.shutdownTerminal)(e,this.serverSettings))));await this.refreshRunning()}async requestRunning(){var e,t;let n;try{n=await(0,a.listRunning)(this.serverSettings)}catch(s){if(s instanceof o.ServerConnection.NetworkError||((e=s.response)===null||e===void 0?void 0:e.status)===503||((t=s.response)===null||t===void 0?void 0:t.status)===424){this._connectionFailure.emit(s)}throw s}if(this.isDisposed){return}const i=n.map((({name:e})=>e)).sort();if(i===this._names){return}this._names=i;this._terminalConnections.forEach((e=>{if(!i.includes(e.name)){e.dispose()}}));this._runningChanged.emit(this._models)}_onStarted(e){this._terminalConnections.add(e);e.disposed.connect(this._onDisposed,this)}_onDisposed(e){this._terminalConnections.delete(e);void this.refreshRunning().catch((()=>{}))}get _models(){return this._names.map((e=>({name:e})))}}t.TerminalManager=d;(function(e){class t extends e{constructor(){super(...arguments);this._readyPromise=new Promise((()=>{}))}get isActive(){return false}get parentReady(){return super.ready}get ready(){return this.parentReady.then((()=>this._readyPromise))}async startNew(e){return Promise.reject(new Error("Not implemented in no-op Terminal Manager"))}connectTo(e){throw Error("Not implemented in no-op Terminal Manager")}async shutdown(e){return Promise.reject(new Error("Not implemented in no-op Terminal Manager"))}async requestRunning(){return Promise.resolve()}}e.NoopManager=t})(d=t.TerminalManager||(t.TerminalManager={}))},43286:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.shutdownTerminal=t.listRunning=t.startNew=t.isAvailable=t.TERMINAL_SERVICE_URL=void 0;const i=n(20501);const s=n(28477);t.TERMINAL_SERVICE_URL="api/terminals";function o(){const e=String(i.PageConfig.getOption("terminalsAvailable"));return e.toLowerCase()==="true"}t.isAvailable=o;async function r(e=s.ServerConnection.makeSettings(),n,o){d.errorIfNotAvailable();const r=i.URLExt.join(e.baseUrl,t.TERMINAL_SERVICE_URL);const a={method:"POST",body:JSON.stringify({name:n,cwd:o})};const l=await s.ServerConnection.makeRequest(r,a,e);if(l.status!==200){const e=await s.ServerConnection.ResponseError.create(l);throw e}const c=await l.json();return c}t.startNew=r;async function a(e=s.ServerConnection.makeSettings()){d.errorIfNotAvailable();const n=i.URLExt.join(e.baseUrl,t.TERMINAL_SERVICE_URL);const o=await s.ServerConnection.makeRequest(n,{},e);if(o.status!==200){const e=await s.ServerConnection.ResponseError.create(o);throw e}const r=await o.json();if(!Array.isArray(r)){throw new Error("Invalid terminal list")}return r}t.listRunning=a;async function l(e,n=s.ServerConnection.makeSettings()){var o;d.errorIfNotAvailable();const r=i.URLExt.join(n.baseUrl,t.TERMINAL_SERVICE_URL,e);const a={method:"DELETE"};const l=await s.ServerConnection.makeRequest(r,a,n);if(l.status===404){const t=await l.json();const n=(o=t.message)!==null&&o!==void 0?o:`The terminal session "${e}"" does not exist on the server`;console.warn(n)}else if(l.status!==204){const e=await s.ServerConnection.ResponseError.create(l);throw e}}t.shutdownTerminal=l;var d;(function(e){function t(){if(!o()){throw new Error("Terminals Unavailable")}}e.errorIfNotAvailable=t})(d||(d={}))},58353:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isAvailable=void 0;const i=n(43286);Object.defineProperty(t,"isAvailable",{enumerable:true,get:function(){return i.isAvailable}})},95598:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.UserManager=void 0;const i=n(20501);const s=n(5596);const o=n(95905);const r=n(71372);const a=n(28477);const l=n(50591);const d="api/me";const c="@jupyterlab/services:UserManager#user";class h extends l.BaseManager{constructor(e={}){var t;super(e);this._isReady=false;this._userChanged=new r.Signal(this);this._connectionFailure=new r.Signal(this);this._ready=this.requestUser().then((()=>{if(this.isDisposed){return}this._isReady=true})).catch((e=>new Promise((()=>{}))));this._pollSpecs=new o.Poll({auto:false,factory:()=>this.requestUser(),frequency:{interval:61*1e3,backoff:true,max:300*1e3},name:c,standby:(t=e.standby)!==null&&t!==void 0?t:"when-hidden"});void this.ready.then((()=>{void this._pollSpecs.start()}))}get isReady(){return this._isReady}get ready(){return this._ready}get identity(){return this._identity}get permissions(){return this._permissions}get userChanged(){return this._userChanged}get connectionFailure(){return this._connectionFailure}dispose(){this._pollSpecs.dispose();super.dispose()}async refreshUser(){await this._pollSpecs.refresh();await this._pollSpecs.tick}async requestUser(){if(this.isDisposed){return}const{baseUrl:e}=this.serverSettings;const{makeRequest:t,ResponseError:n}=a.ServerConnection;const o=i.URLExt.join(e,d);const r=await t(o,{},this.serverSettings);if(r.status!==200){const e=await n.create(r);throw e}const l={identity:this._identity,permissions:this._permissions};const h=await r.json();const p=h.identity;const{localStorage:m}=window;const g=m.getItem(c);if(g&&(!p.initials||!p.color)){const e=JSON.parse(g);p.initials=p.initials||e.initials||p.name.substring(0,1);p.color=p.color||e.color||u.getRandomColor()}if(!s.JSONExt.deepEqual(h,l)){this._identity=p;this._permissions=h.permissions;m.setItem(c,JSON.stringify(p));this._userChanged.emit(h)}}}t.UserManager=h;var u;(function(e){const t=["var(--jp-collaborator-color1)","var(--jp-collaborator-color2)","var(--jp-collaborator-color3)","var(--jp-collaborator-color4)","var(--jp-collaborator-color5)","var(--jp-collaborator-color6)","var(--jp-collaborator-color7)"];e.getRandomColor=()=>t[Math.floor(Math.random()*t.length)]})(u||(u={}))},46901:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validateProperty=void 0;function n(e,t,n,i=[]){if(!e.hasOwnProperty(t)){throw Error(`Missing property '${t}'`)}const s=e[t];if(n!==void 0){let e=true;switch(n){case"array":e=Array.isArray(s);break;case"object":e=typeof s!=="undefined";break;default:e=typeof s===n}if(!e){throw new Error(`Property '${t}' is not of type '${n}'`)}if(i.length>0){let e=true;switch(n){case"string":case"number":case"boolean":e=i.includes(s);break;default:e=i.findIndex((e=>e===s))>=0;break}if(!e){throw new Error(`Property '${t}' is not one of the valid values ${JSON.stringify(i)}`)}}}}t.validateProperty=n},45399:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.WorkspaceManager=void 0;const i=n(20501);const s=n(22971);const o=n(28477);const r="api/workspaces";class a extends s.DataConnector{constructor(e={}){var t;super();this.serverSettings=(t=e.serverSettings)!==null&&t!==void 0?t:o.ServerConnection.makeSettings()}async fetch(e){const{serverSettings:t}=this;const{baseUrl:n,appUrl:i}=t;const{makeRequest:s,ResponseError:r}=o.ServerConnection;const a=n+i;const d=l.url(a,e);const c=await s(d,{},t);if(c.status!==200){const e=await r.create(c);throw e}return c.json()}async list(){const{serverSettings:e}=this;const{baseUrl:t,appUrl:n}=e;const{makeRequest:i,ResponseError:s}=o.ServerConnection;const r=t+n;const a=l.url(r,"");const d=await i(a,{},e);if(d.status!==200){const e=await s.create(d);throw e}const c=await d.json();return c.workspaces}async remove(e){const{serverSettings:t}=this;const{baseUrl:n,appUrl:i}=t;const{makeRequest:s,ResponseError:r}=o.ServerConnection;const a=n+i;const d=l.url(a,e);const c={method:"DELETE"};const h=await s(d,c,t);if(h.status!==204){const e=await r.create(h);throw e}}async save(e,t){const{serverSettings:n}=this;const{baseUrl:i,appUrl:s}=n;const{makeRequest:r,ResponseError:a}=o.ServerConnection;const d=i+s;const c=l.url(d,e);const h={body:JSON.stringify(t),method:"PUT"};const u=await r(c,h,n);if(u.status!==204){const e=await a.create(u);throw e}}}t.WorkspaceManager=a;var l;(function(e){function t(e,t){return i.URLExt.join(e,r,t)}e.url=t})(l||(l={}))},80538:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>k});var i=n(74574);var s=n.n(i);var o=n(10759);var r=n.n(o);var a=n(7005);var l=n.n(a);var d=n(4148);var c=n.n(d);var h=n(23635);var u=n.n(h);var p=n(28687);var m=n(95811);var g=n.n(m);var f=n(22971);var v=n.n(f);var _=n(6958);var b=n.n(_);var y;(function(e){e.open="settingeditor:open";e.openJSON="settingeditor:open-json";e.revert="settingeditor:revert";e.save="settingeditor:save"})(y||(y={}));const w={id:"@jupyterlab/settingeditor-extension:form-ui",description:"Adds the interactive settings editor and provides its tracker.",requires:[m.ISettingRegistry,f.IStateDB,_.ITranslator,d.IFormRendererRegistry,i.ILabStatus],optional:[i.ILayoutRestorer,o.ICommandPalette,p.g],autoStart:true,provides:p.O,activate:C};function C(e,t,i,s,r,a,l,c,h){const u=s.load("jupyterlab");const{commands:p,shell:m}=e;const g="setting-editor";const f=new o.WidgetTracker({namespace:g});if(l){void l.restore(f,{command:y.open,args:e=>({}),name:e=>g})}const v=async e=>{if(f.currentWidget&&!f.currentWidget.isDisposed){if(!f.currentWidget.isAttached){m.add(f.currentWidget,"main",{type:"Settings"})}m.activateById(f.currentWidget.id);return}const l=w.id;const{SettingsEditor:c}=await n.e(977).then(n.t.bind(n,80977,23));const v=new o.MainAreaWidget({content:new c({editorRegistry:r,key:l,registry:t,state:i,commands:p,toSkip:["@jupyterlab/application-extension:context-menu","@jupyterlab/mainmenu-extension:plugin"],translator:s,status:a,query:e.query})});if(h){v.toolbar.addItem("spacer",d.Toolbar.createSpacerItem());v.toolbar.addItem("open-json-editor",new d.CommandToolbarButton({commands:p,id:y.openJSON,icon:d.launchIcon,label:u.__("JSON Settings Editor")}))}v.id=g;v.title.icon=d.settingsIcon;v.title.label=u.__("Settings");v.title.closable=true;void f.add(v);m.add(v,"main",{type:"Settings"})};p.addCommand(y.open,{execute:async e=>{var n;if(e.settingEditorType==="ui"){void p.execute(y.open,{query:(n=e.query)!==null&&n!==void 0?n:""})}else if(e.settingEditorType==="json"){void p.execute(y.openJSON)}else{void t.load(w.id).then((t=>{var n;t.get("settingEditorType").composite==="json"?void p.execute(y.openJSON):void v({query:(n=e.query)!==null&&n!==void 0?n:""})}))}},label:e=>{if(e.label){return e.label}return u.__("Settings Editor")}});if(c){c.addItem({category:u.__("Settings"),command:y.open,args:{settingEditorType:"ui"}})}return f}const x={id:"@jupyterlab/settingeditor-extension:plugin",description:"Adds the JSON settings editor and provides its tracker.",requires:[m.ISettingRegistry,a.IEditorServices,f.IStateDB,h.IRenderMimeRegistry,i.ILabStatus,_.ITranslator],optional:[i.ILayoutRestorer,o.ICommandPalette],autoStart:true,provides:p.g,activate:S};function S(e,t,i,s,r,a,l,c,h){const u=l.load("jupyterlab");const{commands:p,shell:m}=e;const g="json-setting-editor";const f=i.factoryService;const v=f.newInlineEditor;const _=new o.WidgetTracker({namespace:g});if(c){void c.restore(_,{command:y.openJSON,args:e=>({}),name:e=>g})}p.addCommand(y.openJSON,{execute:async()=>{if(_.currentWidget&&!_.currentWidget.isDisposed){if(!_.currentWidget.isAttached){m.add(_.currentWidget,"main",{type:"Advanced Settings"})}m.activateById(_.currentWidget.id);return}const i=w.id;const c=e.restored;const{JsonSettingEditor:h}=await n.e(977).then(n.t.bind(n,80977,23));const f=new h({commands:{registry:p,revert:y.revert,save:y.save},editorFactory:v,key:i,registry:t,rendermime:r,state:s,translator:l,when:c});let b=null;f.commandsChanged.connect(((e,t)=>{t.forEach((e=>{p.notifyCommandChanged(e)}));if(f.canSaveRaw){if(!b){b=a.setDirty()}}else if(b){b.dispose();b=null}f.disposed.connect((()=>{if(b){b.dispose()}}))}));const C=new o.MainAreaWidget({content:f});C.id=g;C.title.icon=d.settingsIcon;C.title.label=u.__("Advanced Settings Editor");C.title.closable=true;void _.add(C);m.add(C,"main",{type:"Advanced Settings"})},label:u.__("Advanced Settings Editor")});if(h){h.addItem({category:u.__("Settings"),command:y.openJSON})}p.addCommand(y.revert,{execute:()=>{var e;(e=_.currentWidget)===null||e===void 0?void 0:e.content.revert()},icon:d.undoIcon,label:u.__("Revert User Settings"),isEnabled:()=>{var e,t;return(t=(e=_.currentWidget)===null||e===void 0?void 0:e.content.canRevertRaw)!==null&&t!==void 0?t:false}});p.addCommand(y.save,{execute:()=>{var e;return(e=_.currentWidget)===null||e===void 0?void 0:e.content.save()},icon:d.saveIcon,label:u.__("Save User Settings"),isEnabled:()=>{var e,t;return(t=(e=_.currentWidget)===null||e===void 0?void 0:e.content.canSaveRaw)!==null&&t!==void 0?t:false}});return _}const k=[w,x]},99204:(e,t,n)=>{"use strict";var i=n(34849);var s=n(79536);var o=n(49914);var r=n(98896);var a=n(90516);var l=n(32902);var d=n(70637);var c=n(93379);var h=n.n(c);var u=n(7795);var p=n.n(u);var m=n(90569);var g=n.n(m);var f=n(3565);var v=n.n(f);var _=n(19216);var b=n.n(_);var y=n(44589);var w=n.n(y);var C=n(15622);var x={};x.styleTagTransform=w();x.setAttributes=v();x.insert=g().bind(null,"head");x.domAPI=p();x.insertStyleElement=b();var S=h()(C.Z,x);const k=C.Z&&C.Z.locals?C.Z.locals:undefined},53276:(e,t,n)=>{"use strict";n.r(t);n.d(t,{IJSONSettingEditorTracker:()=>H.g,ISettingEditorTracker:()=>H.O,JsonSettingEditor:()=>F,SettingsEditor:()=>x});var i=n(10759);var s=n(6958);var o=n(4148);var r=n(71372);var a=n(85448);var l=n(28416);var d=n.n(l);var c=n(58740);const h="jupyter.lab.setting-icon";const u="jupyter.lab.setting-icon-class";const p="jupyter.lab.setting-icon-label";class m extends i.ReactWidget{constructor(e){var t;super();this._changed=new r.Signal(this);this._handleSelectSignal=new r.Signal(this);this._updateFilterSignal=new r.Signal(this);this._allPlugins=[];this._settings={};this._scrollTop=0;this._selection="";this.registry=e.registry;this.translator=e.translator||s.nullTranslator;this.addClass("jp-PluginList");this._confirm=e.confirm;this.registry.pluginChanged.connect((()=>{this.update()}),this);this.mapPlugins=this.mapPlugins.bind(this);this.setFilter=this.setFilter.bind(this);this.setFilter(e.query?(0,o.updateFilterFunction)(e.query,false,false):null);this.setError=this.setError.bind(this);this._evtMousedown=this._evtMousedown.bind(this);this._query=(t=e.query)!==null&&t!==void 0?t:"";this._allPlugins=m.sortPlugins(this.registry).filter((t=>{var n;const{schema:i}=t;const s=i["jupyter.lab.setting-deprecated"]===true;const o=Object.keys(i.properties||{}).length>0;const r=i.additionalProperties!==false;const a=this._confirm||!this._confirm&&!((n=e.toSkip)!==null&&n!==void 0?n:[]).includes(t.id);return!s&&a&&(o||r)}));const n=async()=>{for(const e of this._allPlugins){const t=await this.registry.load(e.id);this._settings[e.id]=t}this.update()};void n();this._errors={}}get changed(){return this._changed}get scrollTop(){var e;return(e=this.node.querySelector("ul"))===null||e===void 0?void 0:e.scrollTop}get hasErrors(){for(const e in this._errors){if(this._errors[e]){return true}}return false}get filter(){return this._filter}get selection(){return this._selection}set selection(e){this._selection=e;this.update()}get updateFilterSignal(){return this._updateFilterSignal}get handleSelectSignal(){return this._handleSelectSignal}onUpdateRequest(e){const t=this.node.querySelector("ul");if(t&&this._scrollTop!==undefined){t.scrollTop=this._scrollTop}super.onUpdateRequest(e)}_evtMousedown(e){const t=e.currentTarget;const n=t.getAttribute("data-id");if(!n){return}if(this._confirm){this._confirm(n).then((()=>{this.selection=n;this._changed.emit(undefined);this.update()})).catch((()=>{}))}else{this._scrollTop=this.scrollTop;this._selection=n;this._handleSelectSignal.emit(n);this._changed.emit(undefined);this.update()}}getHint(e,t,n){let i=n.data.user[e];if(!i){i=n.data.composite[e]}if(!i){i=n.schema[e]}if(!i){const{properties:n}=t.schema;i=n&&n[e]&&n[e].default}return typeof i==="string"?i:""}getFilterString(e,t,n,i){var s;if(i&&n){i=i.replace("#/definitions/","");t=(s=n[i])!==null&&s!==void 0?s:{}}if(t.properties){t=t.properties}else if(t.items){t=t.items}else{return[]}if(t["$ref"]){return this.getFilterString(e,t,n,t["$ref"])}if(Object.keys(t).length===0){return[]}return Object.keys(t).reduce(((i,s)=>{var o,r;const a=t[s];if(!a){if(e((o=t.title)!==null&&o!==void 0?o:"")){return t.title}if(e(s)){return s}}if(e((r=a.title)!==null&&r!==void 0?r:"")){i.push(a.title)}if(e(s)){i.push(s)}i.concat(this.getFilterString(e,a,n,a["$ref"]));return i}),[])}setFilter(e,t){if(e){this._filter=t=>{var n,i;if(!e||e((n=t.schema.title)!==null&&n!==void 0?n:"")){return null}const s=this.getFilterString(e,(i=t.schema)!==null&&i!==void 0?i:{},t.schema.definitions);return s}}else{this._filter=null}this._query=t;this._updateFilterSignal.emit(this._filter);this.update()}setError(e,t){if(this._errors[e]!==t){this._errors[e]=t;this.update()}else{this._errors[e]=t}}mapPlugins(e){var t,n,i,s;const{id:r,schema:a,version:l}=e;const m=this.translator.load("jupyterlab");const g=typeof a.title==="string"?m._p("schema",a.title):r;const f=c.StringExt.matchSumOfSquares(g.toLocaleLowerCase(),(n=(t=this._query)===null||t===void 0?void 0:t.toLocaleLowerCase())!==null&&n!==void 0?n:"");const v=c.StringExt.highlight(g,(i=f===null||f===void 0?void 0:f.indices)!==null&&i!==void 0?i:[],(e=>d().createElement("mark",null,e)));const _=typeof a.description==="string"?m._p("schema",a.description):"";const b=`${_}\n${r}\n${l}`;const y=this.getHint(h,this.registry,e);const w=this.getHint(u,this.registry,e);const C=this.getHint(p,this.registry,e);const x=this._filter?(s=this._filter(e))===null||s===void 0?void 0:s.map((e=>{var t,n,i;const s=c.StringExt.matchSumOfSquares(e.toLocaleLowerCase(),(n=(t=this._query)===null||t===void 0?void 0:t.toLocaleLowerCase())!==null&&n!==void 0?n:"");const o=c.StringExt.highlight(e,(i=s===null||s===void 0?void 0:s.indices)!==null&&i!==void 0?i:[],(e=>d().createElement("mark",null,e)));return d().createElement("li",{key:`${r}-${e}`}," ",o," ")})):undefined;return d().createElement("div",{onClick:this._evtMousedown,className:`${r===this.selection?"jp-mod-selected jp-PluginList-entry":"jp-PluginList-entry"} ${this._errors[r]?"jp-ErrorPlugin":""}`,"data-id":r,key:r,title:b},d().createElement("div",{className:"jp-PluginList-entry-label",role:"tab"},d().createElement("div",{className:"jp-SelectedIndicator"}),d().createElement(o.LabIcon.resolveReact,{icon:y||(w?undefined:o.settingsIcon),iconClass:(0,o.classes)(w,"jp-Icon"),title:C,tag:"span",stylesheet:"settingsEditor"}),d().createElement("span",{className:"jp-PluginList-entry-label-text"},v)),d().createElement("ul",null,x))}render(){const e=this.translator.load("jupyterlab");const t=this._allPlugins.filter((e=>{if(!this._filter){return false}const t=this._filter(e);return t===null||t.length>0}));const n=t.filter((e=>{var t;return(t=this._settings[e.id])===null||t===void 0?void 0:t.isModified}));const i=n.map(this.mapPlugins);const s=t.filter((e=>!n.includes(e))).map(this.mapPlugins);return d().createElement("div",{className:"jp-PluginList-wrapper"},d().createElement(o.FilterBox,{updateFilter:this.setFilter,useFuzzyFilter:false,placeholder:e.__("Search…"),forceRefresh:false,caseSensitive:false,initialQuery:this._query}),i.length>0&&d().createElement("div",null,d().createElement("h1",{className:"jp-PluginList-header"},e.__("Modified")),d().createElement("ul",null,i)),s.length>0&&d().createElement("div",null,d().createElement("h1",{className:"jp-PluginList-header"},e.__("Settings")),d().createElement("ul",null,s)),i.length===0&&s.length===0&&d().createElement("p",{className:"jp-PluginList-noResults"},e.__("No items match your search.")))}}(function(e){function t(e){return Object.keys(e.plugins).map((t=>e.plugins[t])).sort(((e,t)=>(e.schema.title||e.id).localeCompare(t.schema.title||t.id)))}e.sortPlugins=t})(m||(m={}));var g=n(5596);var f=n(95905);var v=n(13802);var _=n.n(v);const b=4;class y extends d().Component{constructor(e){super(e);this.reset=async e=>{e.stopPropagation();for(const t in this.props.settings.user){await this.props.settings.remove(t)}this._formData=this.props.settings.composite;this.setState({isModified:false})};this._onChange=e=>{this.props.hasError(e.errors.length!==0);this._formData=e.formData;if(e.errors.length===0){this.props.updateDirtyState(true);void this._debouncer.invoke()}this.props.onSelect(this.props.settings.id)};const{settings:t}=e;this._formData=t.composite;this.state={isModified:t.isModified,uiSchema:{},filteredSchema:this.props.settings.schema,formContext:{defaultFormData:this.props.settings.default(),settings:this.props.settings}};this.handleChange=this.handleChange.bind(this);this._debouncer=new f.Debouncer(this.handleChange)}componentDidMount(){this._setUiSchema();this._setFilteredSchema()}componentDidUpdate(e){this._setUiSchema(e.renderers[e.settings.id]);this._setFilteredSchema(e.filteredValues);if(e.settings!==this.props.settings){this.setState({formContext:{settings:this.props.settings,defaultFormData:this.props.settings.default()}})}}componentWillUnmount(){this._debouncer.dispose()}handleChange(){if(!this.props.settings.isModified&&this._formData&&this.props.settings.isDefault(this._formData)){this.props.updateDirtyState(false);return}this.props.settings.save(JSON.stringify(this._formData,undefined,b)).then((()=>{this.props.updateDirtyState(false);this.setState({isModified:this.props.settings.isModified})})).catch((e=>{this.props.updateDirtyState(false);const t=this.props.translator.load("jupyterlab");void(0,i.showErrorMessage)(t.__("Error saving settings."),e)}))}render(){const e=this.props.translator.load("jupyterlab");return d().createElement(d().Fragment,null,d().createElement("div",{className:"jp-SettingsHeader"},d().createElement("h2",{className:"jp-SettingsHeader-title",title:this.props.settings.schema.description},this.props.settings.schema.title),d().createElement("div",{className:"jp-SettingsHeader-buttonbar"},this.state.isModified&&d().createElement(o.Button,{className:"jp-RestoreButton",onClick:this.reset},e.__("Restore to Defaults"))),d().createElement("div",{className:"jp-SettingsHeader-description"},this.props.settings.schema.description)),d().createElement(o.FormComponent,{validator:_(),schema:this.state.filteredSchema,formData:this._getFilteredFormData(this.state.filteredSchema),uiSchema:this.state.uiSchema,fields:this.props.renderers[this.props.settings.id],formContext:this.state.formContext,liveValidate:true,idPrefix:`jp-SettingsEditor-${this.props.settings.id}`,onChange:this._onChange,translator:this.props.translator}))}_setUiSchema(e){var t;const n=this.props.renderers[this.props.settings.id];if(!g.JSONExt.deepEqual(Object.keys(e!==null&&e!==void 0?e:{}).sort(),Object.keys(n!==null&&n!==void 0?n:{}).sort())){const e={};for(const n in this.props.renderers[this.props.settings.id]){if(Object.keys((t=this.props.settings.schema.properties)!==null&&t!==void 0?t:{}).includes(n)){e[n]={"ui:field":n}}}this.setState({uiSchema:e})}}_setFilteredSchema(e){var t,n,i,s;if(e===undefined||!g.JSONExt.deepEqual(e,this.props.filteredValues)){const e=g.JSONExt.deepCopy(this.props.settings.schema);if((n=(t=this.props.filteredValues)===null||t===void 0?void 0:t.length)!==null&&n!==void 0?n:0>0){for(const t in e.properties){if(!((i=this.props.filteredValues)===null||i===void 0?void 0:i.includes((s=e.properties[t].title)!==null&&s!==void 0?s:t))){delete e.properties[t]}}}this.setState({filteredSchema:e})}}_getFilteredFormData(e){if(!(e===null||e===void 0?void 0:e.properties)){return this._formData}const t=g.JSONExt.deepCopy(this._formData);for(const n in t){if(!e.properties[n]){delete t[n]}}return t}}const w=({translator:e})=>{const t=e.load("jupyterlab");return d().createElement("div",{className:"jp-SettingsEditor-placeholder"},d().createElement("div",{className:"jp-SettingsEditor-placeholderContent"},d().createElement("h3",null,t.__("No Plugin Selected")),d().createElement("p",null,t.__("Select a plugin from the list to view and edit its preferences."))))};const C=({settings:e,editorRegistry:t,onSelect:n,handleSelectSignal:i,hasError:s,updateDirtyState:o,updateFilterSignal:r,translator:a,initialFilter:c})=>{const[h,u]=(0,l.useState)(null);const[p,m]=(0,l.useState)(c?()=>c:null);const g=d().useRef(null);const f=d().useRef({});(0,l.useEffect)((()=>{var e;const t=(e,t)=>{t?m((()=>t)):m(null)};r.connect(t);const n=(e,t)=>{u(t)};(e=i===null||i===void 0?void 0:i.connect)===null||e===void 0?void 0:e.call(i,n);return()=>{var e;r.disconnect(t);(e=i===null||i===void 0?void 0:i.disconnect)===null||e===void 0?void 0:e.call(i,n)}}),[]);const v=d().useCallback(((e,t)=>{if(f.current){f.current[e]=t;for(const e in f.current){if(f.current[e]){o(true);return}}}o(false)}),[f,o]);const _=d().useMemo((()=>Object.entries(t.renderers).reduce(((e,[t,n])=>{const i=t.lastIndexOf(".");const s=t.substring(0,i);const o=t.substring(i+1);if(!e[s]){e[s]={}}if(!e[s][o]&&n.fieldRenderer){e[s][o]=n.fieldRenderer}return e}),{})),[t]);if(!h&&!p){return d().createElement(w,{translator:a})}return d().createElement("div",{className:"jp-SettingsPanel",ref:g},e.map((e=>{const t=p?p(e.plugin):null;if(h&&h!==e.id||t!==null&&t.length===0){return undefined}return d().createElement("div",{className:"jp-SettingsForm",key:`${e.id}SettingsEditor`},d().createElement(y,{filteredValues:t,settings:e,renderers:_,hasError:t=>{s(e.id,t)},updateDirtyState:t=>{v(e.id,t)},onSelect:n,translator:a}))})))};class x extends a.SplitPanel{constructor(e){super({orientation:"horizontal",renderer:a.SplitPanel.defaultRenderer,spacing:1});this._clearDirty=null;this._dirty=false;this._saveStateChange=new r.Signal(this);this.translator=e.translator||s.nullTranslator;this._status=e.status;const t=this._list=new m({registry:e.registry,toSkip:e.toSkip,translator:this.translator,query:e.query});this.addWidget(t);this.setDirtyState=this.setDirtyState.bind(this);void Promise.all(m.sortPlugins(e.registry).filter((e=>{const{schema:t}=e;const n=t["jupyter.lab.setting-deprecated"]===true;const i=Object.keys(t.properties||{}).length>0;const s=t.additionalProperties!==false;return!n&&(i||s)})).map((async t=>await e.registry.load(t.id)))).then((t=>{const n=o.ReactWidget.create(d().createElement(C,{settings:t.filter((t=>{var n;return!((n=e.toSkip)!==null&&n!==void 0?n:[]).includes(t.id)})),editorRegistry:e.editorRegistry,handleSelectSignal:this._list.handleSelectSignal,onSelect:e=>this._list.selection=e,hasError:this._list.setError,updateFilterSignal:this._list.updateFilterSignal,updateDirtyState:this.setDirtyState,translator:this.translator,initialFilter:this._list.filter}));this.addWidget(n)})).catch((e=>{console.error(`Fail to load the setting plugins:\n${e}`)}))}get saveStateChanged(){return this._saveStateChange}setDirtyState(e){this._dirty=e;if(this._dirty&&!this._clearDirty){this._clearDirty=this._status.setDirty()}else if(!this._dirty&&this._clearDirty){this._clearDirty.dispose();this._clearDirty=null}if(e){if(!this.title.className.includes("jp-mod-dirty")){this.title.className+=" jp-mod-dirty"}}else{this.title.className=this.title.className.replace("jp-mod-dirty","")}this._saveStateChange.emit(e?"started":"completed")}onCloseRequest(e){const t=this.translator.load("jupyterlab");if(this._list.hasErrors){void(0,i.showDialog)({title:t.__("Warning"),body:t.__("Unsaved changes due to validation error. Continue without saving?")}).then((t=>{if(t.button.accept){this.dispose();super.onCloseRequest(e)}}))}else if(this._dirty){void(0,i.showDialog)({title:t.__("Warning"),body:t.__("Some changes have not been saved. Continue without saving?")}).then((t=>{if(t.button.accept){this.dispose();super.onCloseRequest(e)}}))}else{this.dispose();super.onCloseRequest(e)}}}var S=n(7005);var k=n(87611);var j=n(23635);var M=n(22971);function E(e,t,n){n=n||s.nullTranslator;const i=n.load("jupyterlab");const o=new I(e,n);const r=new k.InspectorPanel({initialContent:i.__("Any errors will be listed here"),translator:n});const a=new k.InspectionHandler({connector:o,rendermime:t||new j.RenderMimeRegistry({initialFactories:j.standardRendererFactories,translator:n})});r.addClass("jp-SettingsDebug");r.source=a;a.editor=e.source;return r}class I extends M.DataConnector{constructor(e,t){super();this._current=0;this._editor=e;this._trans=(t!==null&&t!==void 0?t:s.nullTranslator).load("jupyterlab")}fetch(e){return new Promise((t=>{const n=this._current=window.setTimeout((()=>{if(n!==this._current){return t(undefined)}const i=this._validate(e.text);if(!i){return t({data:{"text/markdown":this._trans.__("No errors found")},metadata:{}})}t({data:this.render(i),metadata:{}})}),100)}))}render(e){return{"text/markdown":e.map(this.renderError.bind(this)).join("")}}renderError(e){var t;switch(e.keyword){case"additionalProperties":return`**\`[${this._trans.__("additional property error")}]\`**\n ${this._trans.__("`%1` is not a valid property",(t=e.params)===null||t===void 0?void 0:t.additionalProperty)}`;case"syntax":return`**\`[${this._trans.__("syntax error")}]\`** *${e.message}*`;case"type":return`**\`[${this._trans.__("type error")}]\`**\n \`${e.instancePath}\` ${e.message}`;default:return`**\`[${this._trans.__("error")}]\`** *${e.message}*`}}_validate(e){const t=this._editor;if(!t.settings){return null}const{id:n,schema:i,version:s}=t.settings;const o={composite:{},user:{}};const r=t.registry.validator;return r.validateData({data:o,id:n,raw:e,schema:i,version:s},false)}}const T="jp-SettingsRawEditor";const D="jp-SettingsRawEditor-user";const L="jp-mod-error";class P extends a.SplitPanel{constructor(e){super({orientation:"horizontal",renderer:a.SplitPanel.defaultRenderer,spacing:1});this._canRevert=false;this._canSave=false;this._commandsChanged=new r.Signal(this);this._settings=null;this._toolbar=new o.Toolbar;const{commands:t,editorFactory:n,registry:i,translator:l}=e;this.registry=i;this.translator=l||s.nullTranslator;this._commands=t;const d=this._defaults=new S.CodeEditorWrapper({editorOptions:{config:{readOnly:true}},model:new S.CodeEditor.Model({mimeType:"text/javascript"}),factory:n});const c=this._user=new S.CodeEditorWrapper({editorOptions:{config:{lineNumbers:true}},model:new S.CodeEditor.Model({mimeType:"text/javascript"}),factory:n});c.addClass(D);c.editor.model.sharedModel.changed.connect(this._onTextChanged,this);this._inspector=E(this,e.rendermime,this.translator);this.addClass(T);this._onSaveError=e.onSaveError;this.addWidget(A.defaultsEditor(d,this.translator));this.addWidget(A.userEditor(c,this._toolbar,this._inspector,this.translator))}get canRevert(){return this._canRevert}get canSave(){return this._canSave}get commandsChanged(){return this._commandsChanged}get isDirty(){var e,t;return(t=this._user.editor.model.sharedModel.getSource()!==((e=this._settings)===null||e===void 0?void 0:e.raw))!==null&&t!==void 0?t:""}get settings(){return this._settings}set settings(e){if(!e&&!this._settings){return}const t=e&&this._settings&&e.plugin===this._settings.plugin;if(t){return}const n=this._defaults;const i=this._user;if(this._settings){this._settings.changed.disconnect(this._onSettingsChanged,this)}if(e){this._settings=e;this._settings.changed.connect(this._onSettingsChanged,this);this._onSettingsChanged()}else{this._settings=null;n.editor.model.sharedModel.setSource("");i.editor.model.sharedModel.setSource("")}this.update()}get sizes(){return this.relativeSizes()}set sizes(e){this.setRelativeSizes(e)}get source(){return this._user.editor}dispose(){if(this.isDisposed){return}this._defaults.model.dispose();this._defaults.dispose();this._user.model.dispose();this._user.dispose();super.dispose()}revert(){var e,t;this._user.editor.model.sharedModel.setSource((t=(e=this.settings)===null||e===void 0?void 0:e.raw)!==null&&t!==void 0?t:"");this._updateToolbar(false,false)}save(){if(!this.isDirty||!this._settings){return Promise.resolve(undefined)}const e=this._settings;const t=this._user.editor.model.sharedModel.getSource();return e.save(t).then((()=>{this._updateToolbar(false,false)})).catch((e=>{this._updateToolbar(true,false);this._onSaveError(e,this.translator)}))}onAfterAttach(e){A.populateToolbar(this._commands,this._toolbar);this.update()}_onTextChanged(){const e=this._user.editor.model.sharedModel.getSource();const t=this._settings;this.removeClass(L);if(!t||t.raw===e){this._updateToolbar(false,false);return}const n=t.validate(e);if(n){this.addClass(L);this._updateToolbar(true,false);return}this._updateToolbar(true,true)}_onSettingsChanged(){var e,t;const n=this._settings;const i=this._defaults;const s=this._user;i.editor.model.sharedModel.setSource((e=n===null||n===void 0?void 0:n.annotatedDefaults())!==null&&e!==void 0?e:"");s.editor.model.sharedModel.setSource((t=n===null||n===void 0?void 0:n.raw)!==null&&t!==void 0?t:"")}_updateToolbar(e=this._canRevert,t=this._canSave){const n=this._commands;this._canRevert=e;this._canSave=t;this._commandsChanged.emit([n.revert,n.save])}}var A;(function(e){function t(e,t){t=t||s.nullTranslator;const n=t.load("jupyterlab");const i=new a.Widget;const r=i.layout=new a.BoxLayout({spacing:0});const l=new a.Widget;const d=new o.Toolbar;const c=n.__("System Defaults");l.node.innerText=c;d.insertItem(0,"banner",l);r.addWidget(d);r.addWidget(e);return i}e.defaultsEditor=t;function n(e,t){const{registry:n,revert:i,save:s}=e;t.addItem("spacer",o.Toolbar.createSpacerItem());[i,s].forEach((e=>{const i=new o.CommandToolbarButton({commands:n,id:e});t.addItem(e,i)}))}e.populateToolbar=n;function i(e,t,n,i){i=i||s.nullTranslator;const o=i.load("jupyterlab");const r=o.__("User Preferences");const l=new a.Widget;const d=l.layout=new a.BoxLayout({spacing:0});const c=new a.Widget;c.node.innerText=r;t.insertItem(0,"banner",c);d.addWidget(t);d.addWidget(e);d.addWidget(n);return l}e.userEditor=i})(A||(A={}));const R="jp-PluginEditor";class N extends a.Widget{constructor(e){super();this._settings=null;this._stateChanged=new r.Signal(this);this.addClass(R);const{commands:t,editorFactory:n,registry:i,rendermime:o,translator:l}=e;this.translator=l||s.nullTranslator;this._trans=this.translator.load("jupyterlab");const d=this.layout=new a.StackedLayout;const{onSaveError:c}=O;this.raw=this._rawEditor=new P({commands:t,editorFactory:n,onSaveError:c,registry:i,rendermime:o,translator:l});this._rawEditor.handleMoved.connect(this._onStateChanged,this);d.addWidget(this._rawEditor)}get isDirty(){return this._rawEditor.isDirty}get settings(){return this._settings}set settings(e){if(this._settings===e){return}const t=this._rawEditor;this._settings=t.settings=e;this.update()}get state(){const e=this._settings?this._settings.id:"";const{sizes:t}=this._rawEditor;return{plugin:e,sizes:t}}set state(e){if(g.JSONExt.deepEqual(this.state,e)){return}this._rawEditor.sizes=e.sizes;this.update()}get stateChanged(){return this._stateChanged}confirm(){if(this.isHidden||!this.isAttached||!this.isDirty){return Promise.resolve(undefined)}return(0,i.showDialog)({title:this._trans.__("You have unsaved changes."),body:this._trans.__("Do you want to leave without saving?"),buttons:[i.Dialog.cancelButton({label:this._trans.__("Cancel")}),i.Dialog.okButton({label:this._trans.__("Ok")})]}).then((e=>{if(!e.button.accept){throw new Error("User canceled.")}}))}dispose(){if(this.isDisposed){return}super.dispose();this._rawEditor.dispose()}onAfterAttach(e){this.update()}onUpdateRequest(e){const t=this._rawEditor;const n=this._settings;if(!n){this.hide();return}this.show();t.show()}_onStateChanged(){this.stateChanged.emit(undefined)}}var O;(function(e){function t(e,t){t=t||s.nullTranslator;const n=t.load("jupyterlab");console.error(`Saving setting editor value failed: ${e.message}`);void(0,i.showErrorMessage)(n.__("Your changes were not saved."),e)}e.onSaveError=t})(O||(O={}));const B={sizes:[1,3],container:{editor:"raw",plugin:"",sizes:[1,1]}};class F extends a.SplitPanel{constructor(e){super({orientation:"horizontal",renderer:a.SplitPanel.defaultRenderer,spacing:1});this._fetching=null;this._saving=false;this._state=g.JSONExt.deepCopy(B);this.translator=e.translator||s.nullTranslator;this.addClass("jp-SettingEditor");this.key=e.key;this.state=e.state;const{commands:t,editorFactory:n,rendermime:i}=e;const r=this.registry=e.registry;const d=this._instructions=o.ReactWidget.create(l.createElement(w,{translator:this.translator}));d.addClass("jp-SettingEditorInstructions");const c=this._editor=new N({commands:t,editorFactory:n,registry:r,rendermime:i,translator:this.translator});const h=()=>c.confirm();const u=this._list=new m({confirm:h,registry:r,translator:this.translator});const p=e.when;if(p){this._when=Array.isArray(p)?Promise.all(p):p}this.addWidget(u);this.addWidget(d);a.SplitPanel.setStretch(u,0);a.SplitPanel.setStretch(d,1);a.SplitPanel.setStretch(c,1);c.stateChanged.connect(this._onStateChanged,this);u.changed.connect(this._onStateChanged,this);this.handleMoved.connect(this._onStateChanged,this)}get canRevertRaw(){return this._editor.raw.canRevert}get canSaveRaw(){return this._editor.raw.canSave}get commandsChanged(){return this._editor.raw.commandsChanged}get settings(){return this._editor.settings}get source(){return this._editor.raw.source}dispose(){if(this.isDisposed){return}super.dispose();this._editor.dispose();this._instructions.dispose();this._list.dispose()}revert(){this._editor.raw.revert()}save(){return this._editor.raw.save()}onAfterAttach(e){super.onAfterAttach(e);this.hide();this._fetchState().then((()=>{this.show();this._setState()})).catch((e=>{console.error("Fetching setting editor state failed",e);this.show();this._setState()}))}onCloseRequest(e){this._editor.confirm().then((()=>{super.onCloseRequest(e);this.dispose()})).catch((()=>{}))}_fetchState(){if(this._fetching){return this._fetching}const{key:e,state:t}=this;const n=[t.fetch(e),this._when];return this._fetching=Promise.all(n).then((([e])=>{this._fetching=null;if(this._saving){return}this._state=z.normalizeState(e,this._state)}))}async _onStateChanged(){this._state.sizes=this.relativeSizes();this._state.container=this._editor.state;this._state.container.plugin=this._list.selection;try{await this._saveState()}catch(e){console.error("Saving setting editor state failed",e)}this._setState()}async _saveState(){const{key:e,state:t}=this;const n=this._state;this._saving=true;try{await t.save(e,n);this._saving=false}catch(i){this._saving=false;throw i}}_setLayout(){const e=this._editor;const t=this._state;e.state=t.container;requestAnimationFrame((()=>{this.setRelativeSizes(t.sizes)}))}_setState(){const e=this._editor;const t=this._list;const{container:n}=this._state;if(!n.plugin){e.settings=null;t.selection="";this._setLayout();return}if(e.settings&&e.settings.id===n.plugin){this._setLayout();return}const i=this._instructions;this.registry.load(n.plugin).then((s=>{if(i.isAttached){i.parent=null}if(!e.isAttached){this.addWidget(e)}e.settings=s;t.selection=n.plugin;this._setLayout()})).catch((i=>{console.error(`Loading ${n.plugin} settings failed.`,i);t.selection=this._state.container.plugin="";e.settings=null;this._setLayout()}))}}var z;(function(e){function t(e,t){if(!e){return g.JSONExt.deepCopy(B)}if(!("sizes"in e)||!n(e.sizes)){e.sizes=g.JSONExt.deepCopy(B.sizes)}if(!("container"in e)){e.container=g.JSONExt.deepCopy(B.container);return e}const i="container"in e&&e.container&&typeof e.container==="object"?e.container:{};e.container={plugin:typeof i.plugin==="string"?i.plugin:B.container.plugin,sizes:n(i.sizes)?i.sizes:g.JSONExt.deepCopy(B.container.sizes)};return e}e.normalizeState=t;function n(e){return Array.isArray(e)&&e.every((e=>typeof e==="number"))}})(z||(z={}));var H=n(28687)},28687:(e,t,n)=>{"use strict";n.d(t,{O:()=>o,g:()=>r});var i=n(5596);var s=n.n(i);const o=new i.Token("@jupyterlab/settingeditor:ISettingEditorTracker",`A widget tracker for the interactive setting editor.\n Use this if you want to be able to iterate over and interact with setting editors\n created by the application.`);const r=new i.Token("@jupyterlab/settingeditor:IJSONSettingEditorTracker",`A widget tracker for the JSON setting editor.\n Use this if you want to be able to iterate over and interact with setting editors\n created by the application.`)},76324:(e,t,n)=>{"use strict";n.r(t);n.d(t,{BaseSettings:()=>v,DefaultSchemaValidator:()=>g,ISettingRegistry:()=>y,SettingRegistry:()=>f,Settings:()=>_});var i=n(6682);var s=n(5596);var o=n(26512);var r=n(71372);var a=n(1581);var l=n.n(a);var d=n(11142);const c=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema","title":"JupyterLab Plugin Settings/Preferences Schema","description":"JupyterLab plugin settings/preferences schema","version":"1.0.0","type":"object","additionalProperties":true,"properties":{"jupyter.lab.internationalization":{"type":"object","properties":{"selectors":{"type":"array","items":{"type":"string","minLength":1}},"domain":{"type":"string","minLength":1}}},"jupyter.lab.menus":{"type":"object","properties":{"main":{"title":"Main menu entries","description":"List of menu items to add to the main menubar.","items":{"$ref":"#/definitions/menu"},"type":"array","default":[]},"context":{"title":"The application context menu.","description":"List of context menu items.","items":{"allOf":[{"$ref":"#/definitions/menuItem"},{"properties":{"selector":{"description":"The CSS selector for the context menu item.","type":"string"}}}]},"type":"array","default":[]}},"additionalProperties":false},"jupyter.lab.metadataforms":{"items":{"$ref":"#/definitions/metadataForm"},"type":"array","default":[]},"jupyter.lab.setting-deprecated":{"type":"boolean","default":false},"jupyter.lab.setting-icon":{"type":"string","default":""},"jupyter.lab.setting-icon-class":{"type":"string","default":""},"jupyter.lab.setting-icon-label":{"type":"string","default":"Plugin"},"jupyter.lab.shortcuts":{"items":{"$ref":"#/definitions/shortcut"},"type":"array","default":[]},"jupyter.lab.toolbars":{"properties":{"^\\\\w[\\\\w-\\\\.]*$":{"items":{"$ref":"#/definitions/toolbarItem"},"type":"array","default":[]}},"type":"object","default":{}},"jupyter.lab.transform":{"type":"boolean","default":false}},"definitions":{"menu":{"properties":{"disabled":{"description":"Whether the menu is disabled or not","type":"boolean","default":false},"icon":{"description":"Menu icon id","type":"string"},"id":{"description":"Menu unique id","oneOf":[{"type":"string","enum":["jp-menu-file","jp-menu-file-new","jp-menu-edit","jp-menu-help","jp-menu-kernel","jp-menu-run","jp-menu-settings","jp-menu-view","jp-menu-tabs"]},{"type":"string","pattern":"[a-z][a-z0-9\\\\-_]+"}]},"items":{"description":"Menu items","type":"array","items":{"$ref":"#/definitions/menuItem"}},"label":{"description":"Menu label","type":"string"},"mnemonic":{"description":"Mnemonic index for the label","type":"number","minimum":-1,"default":-1},"rank":{"description":"Menu rank","type":"number","minimum":0}},"required":["id"],"type":"object"},"menuItem":{"properties":{"args":{"description":"Command arguments","type":"object"},"command":{"description":"Command id","type":"string"},"disabled":{"description":"Whether the item is disabled or not","type":"boolean","default":false},"type":{"description":"Item type","type":"string","enum":["command","submenu","separator"],"default":"command"},"rank":{"description":"Item rank","type":"number","minimum":0},"submenu":{"oneOf":[{"$ref":"#/definitions/menu"},{"type":"null"}]}},"type":"object"},"shortcut":{"properties":{"args":{"title":"The arguments for the command","type":"object"},"command":{"title":"The command id","description":"The command executed when the binding is matched.","type":"string"},"disabled":{"description":"Whether this shortcut is disabled or not.","type":"boolean","default":false},"keys":{"title":"The key sequence for the binding","description":"The key shortcut like `Accel A` or the sequence of shortcuts to press like [`Accel A`, `B`]","items":{"type":"string"},"type":"array"},"macKeys":{"title":"The key sequence for the binding on macOS","description":"The key shortcut like `Cmd A` or the sequence of shortcuts to press like [`Cmd A`, `B`]","items":{"type":"string"},"type":"array"},"winKeys":{"title":"The key sequence for the binding on Windows","description":"The key shortcut like `Ctrl A` or the sequence of shortcuts to press like [`Ctrl A`, `B`]","items":{"type":"string"},"type":"array"},"linuxKeys":{"title":"The key sequence for the binding on Linux","description":"The key shortcut like `Ctrl A` or the sequence of shortcuts to press like [`Ctrl A`, `B`]","items":{"type":"string"},"type":"array"},"selector":{"title":"CSS selector","type":"string"}},"required":["command","keys","selector"],"type":"object"},"toolbarItem":{"properties":{"name":{"title":"Unique name","type":"string"},"args":{"title":"Command arguments","type":"object"},"command":{"title":"Command id","type":"string","default":""},"disabled":{"title":"Whether the item is ignored or not","type":"boolean","default":false},"icon":{"title":"Item icon id","description":"If defined, it will override the command icon","type":"string"},"label":{"title":"Item label","description":"If defined, it will override the command label","type":"string"},"caption":{"title":"Item caption","description":"If defined, it will override the command caption","type":"string"},"type":{"title":"Item type","type":"string","enum":["command","spacer"]},"rank":{"title":"Item rank","type":"number","minimum":0,"default":50}},"required":["name"],"additionalProperties":false,"type":"object"},"metadataForm":{"type":"object","properties":{"id":{"type":"string","description":"The section ID"},"metadataSchema":{"type":"object","items":{"$ref":"#/definitions/metadataSchema"}},"uiSchema":{"type":"object"},"metadataOptions":{"type":"object","items":{"$ref":"#/definitions/metadataOptions"}},"label":{"type":"string","description":"The section label"},"rank":{"type":"integer","description":"The rank of the section in the right panel"},"showModified":{"type":"boolean","description":"Whether to show modified values from defaults"}},"required":["id","metadataSchema"]},"metadataSchema":{"properties":{"properties":{"type":"object","description":"The property set up by extension","properties":{"title":{"type":"string"},"description":{"type":"string"},"type":{"type":"string"}}}},"type":"object","required":["properties"]},"metadataOptions":{"properties":{"customRenderer":{"type":"string"},"metadataLevel":{"type":"string","enum":["cell","notebook"],"default":"cell"},"cellTypes":{"type":"array","items":{"type":"string","enum":["code","markdown","raw"]}},"writeDefault":{"type":"boolean"}},"type":"object"}}}');const h=s.JSONExt.deepCopy;const u={strict:false};const p=1e3;const m=String.fromCharCode(30);class g{constructor(){this._composer=new(l())({useDefaults:true,...u});this._validator=new(l())({...u});this._composer.addSchema(c,"jupyterlab-plugin-schema");this._validator.addSchema(c,"jupyterlab-plugin-schema")}validateData(e,t=true){const n=this._validator.getSchema(e.id);const i=this._composer.getSchema(e.id);if(!n||!i){if(e.schema.type!=="object"){const t="schema";const n=`Setting registry schemas' root-level type must be `+`'object', rejecting type: ${e.schema.type}`;return[{instancePath:"type",keyword:t,schemaPath:"",message:n}]}const t=this._addSchema(e.id,e.schema);return t||this.validateData(e)}let s;try{s=d.parse(e.raw)}catch(r){if(r instanceof SyntaxError){return[{instancePath:"",keyword:"syntax",schemaPath:"",message:r.message}]}const{column:e,description:t}=r;const n=r.lineNumber;return[{instancePath:"",keyword:"parse",schemaPath:"",message:`${t} (line ${n} column ${e})`}]}if(!n(s)){return n.errors}const o=h(s);if(!i(o)){return i.errors}if(t){e.data={composite:o,user:s}}return null}_addSchema(e,t){const n=this._composer;const i=this._validator;const s=i.getSchema("jupyterlab-plugin-schema");if(!s(t)){return s.errors}if(!i.validateSchema(t)){return i.errors}n.removeSchema(e);i.removeSchema(e);n.addSchema(t,e);i.addSchema(t,e);return null}}class f{constructor(e){this.schema=c;this.plugins=Object.create(null);this._pluginChanged=new r.Signal(this);this._ready=Promise.resolve();this._transformers=Object.create(null);this._unloadedPlugins=new Map;this.connector=e.connector;this.validator=e.validator||new g;this._timeout=e.timeout||p;if(e.plugins){e.plugins.filter((e=>e.schema["jupyter.lab.transform"])).forEach((e=>this._unloadedPlugins.set(e.id,e)));this._ready=this._preload(e.plugins)}}get pluginChanged(){return this._pluginChanged}async get(e,t){await this._ready;const n=this.plugins;if(e in n){const{composite:i,user:s}=n[e].data;return{composite:i[t]!==undefined?h(i[t]):undefined,user:s[t]!==undefined?h(s[t]):undefined}}return this.load(e).then((()=>this.get(e,t)))}async load(e,t=false){await this._ready;const n=this.plugins;const i=this;if(e in n){if(t){n[e].data={composite:{},user:{}};await this._load(await this._transform("fetch",n[e]));this._pluginChanged.emit(e)}return new _({plugin:n[e],registry:i})}if(this._unloadedPlugins.has(e)&&e in this._transformers){await this._load(await this._transform("fetch",this._unloadedPlugins.get(e)));if(e in n){this._pluginChanged.emit(e);this._unloadedPlugins.delete(e);return new _({plugin:n[e],registry:i})}}return this.reload(e)}async reload(e){await this._ready;const t=await this.connector.fetch(e);const n=this.plugins;const i=this;if(t===undefined){throw[{instancePath:"",keyword:"id",message:`Could not fetch settings for ${e}.`,schemaPath:""}]}await this._load(await this._transform("fetch",t));this._pluginChanged.emit(e);return new _({plugin:n[e],registry:i})}async remove(e,t){await this._ready;const n=this.plugins;if(!(e in n)){return}const i=d.parse(n[e].raw);delete i[t];delete i[`// ${t}`];n[e].raw=b.annotatedPlugin(n[e],i);return this._save(e)}async set(e,t,n){await this._ready;const i=this.plugins;if(!(e in i)){return this.load(e).then((()=>this.set(e,t,n)))}const s=d.parse(i[e].raw);i[e].raw=b.annotatedPlugin(i[e],{...s,[t]:n});return this._save(e)}transform(e,t){const n=this._transformers;if(e in n){const t=new Error(`${e} already has a transformer.`);t.name="TransformError";throw t}n[e]={fetch:t.fetch||(e=>e),compose:t.compose||(e=>e)};return new o.DisposableDelegate((()=>{delete n[e]}))}async upload(e,t){await this._ready;const n=this.plugins;if(!(e in n)){return this.load(e).then((()=>this.upload(e,t)))}n[e].raw=t;return this._save(e)}async _load(e){const t=e.id;try{await this._validate(e)}catch(n){const e=[`Validating ${t} failed:`];n.forEach(((t,n)=>{const{instancePath:i,schemaPath:s,keyword:o,message:r}=t;if(i||s){e.push(`${n} - schema @ ${s}, data @ ${i}`)}e.push(`{${o}} ${r}`)}));console.warn(e.join("\n"));throw n}}async _preload(e){await Promise.all(e.map((async e=>{var t;try{await this._load(await this._transform("fetch",e))}catch(n){if(((t=n[0])===null||t===void 0?void 0:t.keyword)!=="timeout"){console.warn("Ignored setting registry preload errors.",n)}}})))}async _save(e){const t=this.plugins;if(!(e in t)){throw new Error(`${e} does not exist in setting registry.`)}try{await this._validate(t[e])}catch(i){console.warn(`${e} validation errors:`,i);throw new Error(`${e} failed to validate; check console.`)}await this.connector.save(e,t[e].raw);const n=await this.connector.fetch(e);if(n===undefined){throw[{instancePath:"",keyword:"id",message:`Could not fetch settings for ${e}.`,schemaPath:""}]}await this._load(await this._transform("fetch",n));this._pluginChanged.emit(e)}async _transform(e,t,n=(new Date).getTime()){const i=(new Date).getTime()-n;const s=t.id;const o=this._transformers;const r=this._timeout;if(!t.schema["jupyter.lab.transform"]){return t}if(s in o){const n=o[s][e].call(null,t);if(n.id!==s){throw[{instancePath:"",keyword:"id",message:"Plugin transformations cannot change plugin IDs.",schemaPath:""}]}return n}if(i{setTimeout((()=>{e()}),250)}));return this._transform(e,t,n)}throw[{instancePath:"",keyword:"timeout",message:`Transforming ${t.id} timed out.`,schemaPath:""}]}async _validate(e){const t=this.validator.validateData(e);if(t){throw t}this.plugins[e.id]=await this._transform("compose",e)}}class v{constructor(e){this._schema=e.schema}get schema(){return this._schema}isDefault(e){for(const t in this.schema.properties){const n=e[t];const i=this.default(t);if(n===undefined||i===undefined||s.JSONExt.deepEqual(n,s.JSONExt.emptyObject)||s.JSONExt.deepEqual(n,s.JSONExt.emptyArray)){continue}if(!s.JSONExt.deepEqual(n,i)){return false}}return true}default(e){return b.reifyDefault(this.schema,e)}}class _ extends v{constructor(e){super({schema:e.plugin.schema});this._changed=new r.Signal(this);this._isDisposed=false;this.id=e.plugin.id;this.registry=e.registry;this.registry.pluginChanged.connect(this._onPluginChanged,this)}get changed(){return this._changed}get composite(){return this.plugin.data.composite}get isDisposed(){return this._isDisposed}get plugin(){return this.registry.plugins[this.id]}get raw(){return this.plugin.raw}get isModified(){return!this.isDefault(this.user)}get user(){return this.plugin.data.user}get version(){return this.plugin.version}annotatedDefaults(){return b.annotatedDefaults(this.schema,this.id)}dispose(){if(this._isDisposed){return}this._isDisposed=true;r.Signal.clearData(this)}get(e){const{composite:t,user:n}=this;return{composite:t[e]!==undefined?h(t[e]):undefined,user:n[e]!==undefined?h(n[e]):undefined}}remove(e){return this.registry.remove(this.plugin.id,e)}save(e){return this.registry.upload(this.plugin.id,e)}set(e,t){return this.registry.set(this.plugin.id,e,t)}validate(e){const t={composite:{},user:{}};const{id:n,schema:i}=this.plugin;const s=this.registry.validator;const o=this.version;return s.validateData({data:t,id:n,raw:e,schema:i,version:o},false)}_onPluginChanged(e,t){if(t===this.plugin.id){this._changed.emit(undefined)}}}(function(e){function t(e,t,i=false,o=true){if(!e){return t&&o?s.JSONExt.deepCopy(t):[]}if(!t){return s.JSONExt.deepCopy(e)}const r=s.JSONExt.deepCopy(e);t.forEach((e=>{const t=r.findIndex((t=>t.id===e.id));if(t>=0){r[t]={...r[t],...e,items:n(r[t].items,e.items,i,o)}}else{if(o){r.push(e)}}}));return r}e.reconcileMenus=t;function n(e,n,i=false,o=true){if(!e){return n?s.JSONExt.deepCopy(n):undefined}if(!n){return s.JSONExt.deepCopy(e)}const r=s.JSONExt.deepCopy(e);n.forEach((e=>{var n;switch((n=e.type)!==null&&n!==void 0?n:"command"){case"separator":if(o){r.push({...e})}break;case"submenu":if(e.submenu){const n=r.findIndex((t=>{var n,i;return t.type==="submenu"&&((n=t.submenu)===null||n===void 0?void 0:n.id)===((i=e.submenu)===null||i===void 0?void 0:i.id)}));if(n<0){if(o){r.push(s.JSONExt.deepCopy(e))}}else{r[n]={...r[n],...e,submenu:t(r[n].submenu?[r[n].submenu]:null,[e.submenu],i,o)[0]}}}break;case"command":if(e.command){const t=r.findIndex((t=>{var n,i;return t.command===e.command&&t.selector===e.selector&&s.JSONExt.deepEqual((n=t.args)!==null&&n!==void 0?n:{},(i=e.args)!==null&&i!==void 0?i:{})}));if(t<0){if(o){r.push({...e})}}else{if(i){console.warn(`Menu entry for command '${e.command}' is duplicated.`)}r[t]={...r[t],...e}}}}}));return r}e.reconcileItems=n;function o(e){return e.reduce(((e,t)=>{var n;const i={...t};if(!i.disabled){if(i.type==="submenu"){const{submenu:e}=i;if(e&&!e.disabled){i.submenu={...e,items:o((n=e.items)!==null&&n!==void 0?n:[])}}}e.push(i)}return e}),[])}e.filterDisabledItems=o;function r(e,t){const n={};t=t.filter((e=>{const t=i.CommandRegistry.normalizeKeys(e).join(m);if(!t){console.warn("Skipping this shortcut because there are no actionable keys on this platform",e);return false}if(!(t in n)){n[t]={}}const{selector:s}=e;if(!(s in n[t])){n[t][s]=false;return true}console.warn("Skipping this shortcut because it collides with another shortcut.",e);return false}));e=[...e.filter((e=>!!e.disabled)),...e.filter((e=>!e.disabled))].filter((e=>{const t=i.CommandRegistry.normalizeKeys(e).join(m);if(!t){return false}if(!(t in n)){n[t]={}}const{disabled:s,selector:o}=e;if(!(o in n[t])){n[t][o]=!s;return true}if(n[t][o]){console.warn("Skipping this default shortcut because it collides with another default shortcut.",e)}return false}));return t.concat(e).filter((e=>!e.disabled)).map((e=>({args:{},...e})))}e.reconcileShortcuts=r;function a(e,t,n=false){if(!e){return t?s.JSONExt.deepCopy(t):undefined}if(!t){return s.JSONExt.deepCopy(e)}const i=s.JSONExt.deepCopy(e);t.forEach((e=>{const t=i.findIndex((t=>t.name===e.name));if(t<0){i.push({...e})}else{if(n&&s.JSONExt.deepEqual(Object.keys(e),Object.keys(i[t]))){console.warn(`Toolbar item '${e.name}' is duplicated.`)}i[t]={...i[t],...e}}}));return i}e.reconcileToolbarItems=a})(f||(f={}));var b;(function(e){const t=" ";const n="[missing schema description]";const i="[missing schema title]";function o(e,t){const{description:s,properties:o,title:r}=e;const l=o?Object.keys(o).sort(((e,t)=>e.localeCompare(t))):[];const h=Math.max((s||n).length,t.length);return["{",c(`${r||i}`),c(t),c(s||n),c("*".repeat(h)),"",d(l.map((t=>a(e,t)))),"}"].join("\n")}e.annotatedDefaults=o;function r(e,t){const{description:s,title:o}=e.schema;const r=Object.keys(t).sort(((e,t)=>e.localeCompare(t)));const a=Math.max((s||n).length,e.id.length);return["{",c(`${o||i}`),c(e.id),c(s||n),c("*".repeat(a)),"",d(r.map((n=>l(e.schema,n,t[n])))),"}"].join("\n")}e.annotatedPlugin=r;function a(e,i){const s=e.properties&&e.properties[i]||{};const o=s["type"];const r=s["description"]||n;const a=s["title"]||"";const l=h(e,i);const d=t.length;const u=l!==undefined?c(`"${i}": ${JSON.stringify(l,null,d)}`,t):c(`"${i}": ${o}`);return[c(a),c(r),u].filter((e=>e.length)).join("\n")}function l(e,s,o){const r=e.properties&&e.properties[s];const a=r&&r["description"]||n;const l=r&&r["title"]||i;const d=t.length;const h=c(`"${s}": ${JSON.stringify(o,null,d)}`,t);return[c(l),c(a),h].join("\n")}function d(e){return e.reduce(((t,n,i)=>{const s=n.split("\n");const o=s[s.length-1];const r=o.trim().indexOf("//")===0;const a=r||i===e.length-1?"":",";const l=i===e.length-1?"":"\n\n";return t+n+a+l}),"")}function c(e,n=`${t}// `){return n+e.split("\n").join(`\n${n}`)}function h(e,t,n){var i,o,r,a;n=n!==null&&n!==void 0?n:e.definitions;e=(t?(i=e.properties)===null||i===void 0?void 0:i[t]:e)||{};if(e.type==="object"){const t=s.JSONExt.deepCopy(e.default);const i=e.properties||{};for(const e in i){t[e]=h(i[e],undefined,n)}return t}else if(e.type==="array"){const t=s.JSONExt.deepCopy(e.default);let i=e.items||{};if(i["$ref"]&&n){const e=i["$ref"].replace("#/definitions/","");i=(o=n[e])!==null&&o!==void 0?o:{}}for(const e in t){const s=(r=h(i,undefined,n))!==null&&r!==void 0?r:{};for(const n in s){if((a=t[e])===null||a===void 0?void 0:a[n]){s[n]=t[e][n]}}t[e]=s}return t}else{return e.default}}e.reifyDefault=h})(b||(b={}));const y=new s.Token("@jupyterlab/coreutils:ISettingRegistry",`A service for the JupyterLab settings system.\n Use this if you want to store settings for your application.\n See "schemaDir" for more information.`)},73324:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>B});var i=n(95811);var s=n(6958);var o=n(4148);var r=n(6682);var a=n(5596);var l=n(26512);var d=n(36044);var c=n(85448);var h=n(28416);var u=n.n(h);var p=n(58740);var m=n(71720);class g{constructor(){this.commandName="";this.label="";this.keys={};this.source="";this.selector="";this.category="";this.id="";this.numberOfShortcuts=0;this.hasConflict=false}get(e){if(e==="label"){return this.label}else if(e==="selector"){return this.selector}else if(e==="category"){return this.category}else if(e==="source"){return this.source}else{return""}}}class f extends g{constructor(){super();this.takenBy=new v}}class v{constructor(e){if(e){this.takenBy=e;this.takenByKey="";this.takenByLabel=e.category+": "+e.label;this.id=e.commandName+"_"+e.selector}else{this.takenBy=new g;this.takenByKey="";this.takenByLabel="";this.id=""}}}class _ extends h.Component{constructor(e){super(e);this.handleUpdate=()=>{let e=this.state.keys;e.push(this.state.currentChain);this.setState({keys:e});this.props.handleUpdate(this.props.shortcut,this.state.keys)};this.handleOverwrite=async()=>{this.props.deleteShortcut(this.state.takenByObject.takenBy,this.state.takenByObject.takenByKey).then(this.handleUpdate())};this.handleReplace=async()=>{let e=this.state.keys;e.push(this.state.currentChain);this.props.toggleInput();await this.props.deleteShortcut(this.props.shortcut,this.props.shortcutId);this.props.handleUpdate(this.props.shortcut,e)};this.parseChaining=(e,t,n,i,s)=>{let o=m.EN_US.keyForKeydownEvent(e.nativeEvent);const r=["Shift","Control","Alt","Meta","Ctrl","Accel"];if(e.key==="Backspace"){n="";t="";i=[];s="";this.setState({value:t,userInput:n,keys:i,currentChain:s})}else if(e.key!=="CapsLock"){const t=n.substr(n.lastIndexOf(" ")+1,n.length).trim();if(r.lastIndexOf(t)===-1&&t!=""){n=n+",";i.push(s);s="";if(e.ctrlKey&&e.key!="Control"){n=(n+" Ctrl").trim();s=(s+" Ctrl").trim()}if(e.metaKey&&e.key!="Meta"){n=(n+" Accel").trim();s=(s+" Accel").trim()}if(e.altKey&&e.key!="Alt"){n=(n+" Alt").trim();s=(s+" Alt").trim()}if(e.shiftKey&&e.key!="Shift"){n=(n+" Shift").trim();s=(s+" Shift").trim()}if(r.lastIndexOf(e.key)===-1){n=(n+" "+o).trim();s=(s+" "+o).trim()}else{if(e.key==="Meta"){n=(n+" Accel").trim();s=(s+" Accel").trim()}else if(e.key==="Control"){n=(n+" Ctrl").trim();s=(s+" Ctrl").trim()}else if(e.key==="Shift"){n=(n+" Shift").trim();s=(s+" Shift").trim()}else if(e.key==="Alt"){n=(n+" Alt").trim();s=(s+" Alt").trim()}else{n=(n+" "+e.key).trim();s=(s+" "+e.key).trim()}}}else{if(e.key==="Control"){n=(n+" Ctrl").trim();s=(s+" Ctrl").trim()}else if(e.key==="Meta"){n=(n+" Accel").trim();s=(s+" Accel").trim()}else if(e.key==="Shift"){n=(n+" Shift").trim();s=(s+" Shift").trim()}else if(e.key==="Alt"){n=(n+" Alt").trim();s=(s+" Alt").trim()}else{n=(n+" "+o).trim();s=(s+" "+o).trim()}}}this.setState({keys:i,currentChain:s});return[n,i,s]};this.checkNonFunctional=e=>{const t=["Ctrl","Alt","Accel","Shift"];const n=this.state.currentChain.split(" ");const i=n[n.length-1];this.setState({isFunctional:!(t.indexOf(i)!==-1)});return t.indexOf(i)!==-1};this.checkShortcutAvailability=(e,t,n)=>{let i=Object.keys(this.props.keyBindingsUsed).indexOf(t.join(" ")+n+"_"+this.props.shortcut.selector)===-1||e==="";let s=new v;if(i){for(let e of t){if(Object.keys(this.props.keyBindingsUsed).indexOf(e+"_"+this.props.shortcut.selector)!==-1&&e!==""){i=false;s=this.props.keyBindingsUsed[e+"_"+this.props.shortcut.selector];break}}if(i&&Object.keys(this.props.keyBindingsUsed).indexOf(n+"_"+this.props.shortcut.selector)!==-1&&n!==""){i=false;s=this.props.keyBindingsUsed[n+"_"+this.props.shortcut.selector]}}else{s=this.props.keyBindingsUsed[t.join(" ")+n+"_"+this.props.shortcut.selector]}if(!i){if(s.takenBy.id===this.props.shortcut.id&&this.props.newOrReplace==="replace"){i=true;s=new v}}this.setState({isAvailable:i});return s};this.handleInput=e=>{e.preventDefault();this.setState({selected:false});const t=this.parseChaining(e,this.state.value,this.state.userInput,this.state.keys,this.state.currentChain);const n=t[0];const i=t[1];const s=t[2];const o=this.props.toSymbols(n);let r=this.checkShortcutAvailability(n,i,s);this.checkConflict(r,i);this.setState({value:o,userInput:n,takenByObject:r,keys:i,currentChain:s},(()=>this.checkNonFunctional(this.state.userInput)))};this.handleBlur=e=>{if(e.relatedTarget===null||e.relatedTarget.id!=="no-blur"&&e.relatedTarget.id!=="overwrite"){this.props.toggleInput();this.setState({value:"",userInput:""});this.props.clearConflicts()}};this.state={value:this.props.placeholder,userInput:"",isAvailable:true,isFunctional:this.props.newOrReplace==="replace",takenByObject:new v,keys:new Array,currentChain:"",selected:true}}checkConflict(e,t){if(e.id!==""&&e.takenBy.id!==this.props.shortcut.id){this.props.sortConflict(this.props.shortcut,e,e.takenByLabel,"")}else{this.props.clearConflicts()}}render(){const e=this.props.translator.load("jupyterlab");let t="jp-Shortcuts-Input";if(!this.state.isAvailable){t+=" jp-mod-unavailable-Input"}return h.createElement("div",{className:this.props.displayInput?this.props.newOrReplace==="new"?"jp-Shortcuts-InputBox jp-Shortcuts-InputBoxNew":"jp-Shortcuts-InputBox":"jp-mod-hidden",onBlur:e=>this.handleBlur(e)},h.createElement("div",{tabIndex:0,id:"no-blur",className:t,onKeyDown:this.handleInput,ref:e=>e&&e.focus()},h.createElement("p",{className:this.state.selected&&this.props.newOrReplace==="replace"?"jp-Shortcuts-InputText jp-mod-selected-InputText":this.state.value===""?"jp-Shortcuts-InputText jp-mod-waiting-InputText":"jp-Shortcuts-InputText"},this.state.value===""?e.__("press keys"):this.state.value)),h.createElement("button",{className:!this.state.isFunctional?"jp-Shortcuts-Submit jp-mod-defunc-Submit":!this.state.isAvailable?"jp-Shortcuts-Submit jp-mod-conflict-Submit":"jp-Shortcuts-Submit",id:"no-blur",disabled:!this.state.isAvailable||!this.state.isFunctional,onClick:()=>{if(this.props.newOrReplace==="new"){this.handleUpdate();this.setState({value:"",keys:[],currentChain:""});this.props.toggleInput()}else{if(this.state.selected){this.props.toggleInput();this.setState({value:"",userInput:""});this.props.clearConflicts()}else{void this.handleReplace()}}}},this.state.isAvailable?h.createElement(o.checkIcon.react,null):h.createElement(o.errorIcon.react,null)),!this.state.isAvailable&&h.createElement("button",{hidden:true,id:"overwrite",onClick:()=>{void this.handleOverwrite();this.props.clearConflicts();this.props.toggleInput()}},e.__("Overwrite")))}}var b;(function(e){e[e["Left"]=0]="Left";e[e["Right"]=1]="Right"})(b||(b={}));function y(e){return{shortcutEditLeft:{commandId:"shortcutui:EditLeft",label:e.__("Edit First"),caption:e.__("Edit existing shortcut")},shortcutEditRight:{commandId:"shortcutui:EditRight",label:e.__("Edit Second"),caption:e.__("Edit existing shortcut")},shortcutEdit:{commandId:"shortcutui:Edit",label:e.__("Edit"),caption:e.__("Edit existing shortcut")},shortcutAddNew:{commandId:"shortcutui:AddNew",label:e.__("Add"),caption:e.__("Add new shortcut")},shortcutAddAnother:{commandId:"shortcutui:AddAnother",label:e.__("Add"),caption:e.__("Add another shortcut")},shortcutReset:{commandId:"shortcutui:Reset",label:e.__("Reset"),caption:e.__("Reset shortcut back to default")}}}class w extends h.Component{constructor(e){super(e);this.toggleInputNew=()=>{this.setState({displayNewInput:!this.state.displayNewInput})};this.toggleInputReplaceLeft=()=>{this.setState({displayReplaceInputLeft:!this.state.displayReplaceInputLeft})};this.toggleInputReplaceRight=()=>{this.setState({displayReplaceInputRight:!this.state.displayReplaceInputRight})};this.addCommandIfNeeded=(e,t)=>{const n=this.props.shortcut.commandName+"_"+this.props.shortcut.selector;if(!this.props.external.hasCommand(e.commandId+n)){this.props.external.addCommand(e.commandId+n,{label:e.label,caption:e.caption,execute:t})}};this.handleRightClick=e=>{this.addCommandIfNeeded(this._commands.shortcutEdit,(()=>this.toggleInputReplaceLeft()));this.addCommandIfNeeded(this._commands.shortcutEditLeft,(()=>this.toggleInputReplaceLeft()));this.addCommandIfNeeded(this._commands.shortcutEditRight,(()=>this.toggleInputReplaceRight()));this.addCommandIfNeeded(this._commands.shortcutAddNew,(()=>this.toggleInputNew()));this.addCommandIfNeeded(this._commands.shortcutAddAnother,(()=>this.toggleInputNew()));this.addCommandIfNeeded(this._commands.shortcutReset,(()=>this.props.resetShortcut(this.props.shortcut)));const t=this.props.shortcut.commandName+"_"+this.props.shortcut.selector;this.setState({numShortcuts:Object.keys(this.props.shortcut.keys).filter((e=>this.props.shortcut.keys[e][0]!=="")).length},(()=>{let n=[];if(this.state.numShortcuts==2){n=n.concat([this._commands.shortcutEditLeft.commandId+t,this._commands.shortcutEditRight.commandId+t])}else if(this.state.numShortcuts==1){n=n.concat([this._commands.shortcutEdit.commandId+t,this._commands.shortcutAddAnother.commandId+t])}else{n=n.concat([this._commands.shortcutAddNew.commandId+t])}if(this.props.shortcut.source==="Custom"){n=n.concat([this._commands.shortcutReset.commandId+t])}this.props.contextMenu(e,n)}))};this.toSymbols=e=>e.split(" ").reduce(((e,t)=>{if(t==="Ctrl"){return(e+" ⌃").trim()}else if(t==="Alt"){return(e+" ⌥").trim()}else if(t==="Shift"){return(e+" ⇧").trim()}else if(t==="Accel"&&d.Platform.IS_MAC){return(e+" ⌘").trim()}else if(t==="Accel"){return(e+" ⌃").trim()}else{return(e+" "+t).trim()}}),"");this._commands=y(e.external.translator.load("jupyterlab"));this.state={displayNewInput:false,displayReplaceInputLeft:false,displayReplaceInputRight:false,numShortcuts:Object.keys(this.props.shortcut.keys).filter((e=>this.props.shortcut.keys[e][0]!=="")).length}}getErrorRow(){const e=this.props.external.translator.load("jupyterlab");return h.createElement("div",{className:"jp-Shortcuts-Row"},h.createElement("div",{className:"jp-Shortcuts-ConflictContainer"},h.createElement("div",{className:"jp-Shortcuts-ErrorMessage"},e.__("Shortcut already in use by %1. Overwrite it?",this.props.shortcut.takenBy.takenByLabel)),h.createElement("div",{className:"jp-Shortcuts-ErrorButton"},h.createElement("button",null,e.__("Cancel")),h.createElement("button",{id:"no-blur",onClick:()=>{var e;(e=document.getElementById("overwrite"))===null||e===void 0?void 0:e.click()}},e.__("Overwrite")))))}getCategoryCell(){return h.createElement("div",{className:"jp-Shortcuts-Cell"},this.props.shortcut.category)}getLabelCell(){return h.createElement("div",{className:"jp-Shortcuts-Cell"},h.createElement("div",{className:"jp-label"},this.props.shortcut.label))}getResetShortCutLink(){const e=this.props.external.translator.load("jupyterlab");return h.createElement("a",{className:"jp-Shortcuts-Reset",onClick:()=>this.props.resetShortcut(this.props.shortcut)},e.__("Reset"))}getSourceCell(){return h.createElement("div",{className:"jp-Shortcuts-Cell"},h.createElement("div",{className:"jp-Shortcuts-SourceCell"},this.props.shortcut.source),this.props.shortcut.source==="Custom"&&this.getResetShortCutLink())}getOptionalSelectorCell(){return this.props.showSelectors?h.createElement("div",{className:"jp-Shortcuts-Cell"},h.createElement("div",{className:"jp-selector"},this.props.shortcut.selector)):null}getClassNameForShortCuts(e){const t=["jp-Shortcuts-ShortcutCell"];switch(e.length){case 1:t.push("jp-Shortcuts-SingleCell");break;case 0:t.push("jp-Shortcuts-EmptyCell");break}return t.join(" ")}getToggleInputReplaceMethod(e){switch(e){case b.Left:return this.toggleInputReplaceLeft;case b.Right:return this.toggleInputReplaceRight}}getDisplayReplaceInput(e){switch(e){case b.Left:return this.state.displayReplaceInputLeft;case b.Right:return this.state.displayReplaceInputRight}}getOrDiplayIfNeeded(e){const t=this.props.external.translator.load("jupyterlab");return h.createElement("div",{className:e.length==2||this.state.displayNewInput?"jp-Shortcuts-OrTwo":"jp-Shortcuts-Or",id:e.length==2?"secondor":this.state.displayReplaceInputLeft?"noor":"or"},t.__("or"))}getShortCutAsInput(e,t){return h.createElement(_,{handleUpdate:this.props.handleUpdate,deleteShortcut:this.props.deleteShortcut,toggleInput:this.getToggleInputReplaceMethod(t),shortcut:this.props.shortcut,shortcutId:e,toSymbols:this.toSymbols,keyBindingsUsed:this.props.keyBindingsUsed,sortConflict:this.props.sortConflict,clearConflicts:this.props.clearConflicts,displayInput:this.getDisplayReplaceInput(t),newOrReplace:"replace",placeholder:this.toSymbols(this.props.shortcut.keys[e].join(", ")),translator:this.props.external.translator})}getShortCutForDisplayOnly(e){return this.props.shortcut.keys[e].map(((t,n)=>h.createElement("div",{className:"jp-Shortcuts-ShortcutKeysContainer",key:n},h.createElement("div",{className:"jp-Shortcuts-ShortcutKeys"},this.toSymbols(t)),n+1{this.toggleInputNew(),this.props.clearConflicts()},id:"add-link"},e.__("Add"))}getInputBoxWhenToggled(){return this.state.displayNewInput?h.createElement(_,{handleUpdate:this.props.handleUpdate,deleteShortcut:this.props.deleteShortcut,toggleInput:this.toggleInputNew,shortcut:this.props.shortcut,shortcutId:"",toSymbols:this.toSymbols,keyBindingsUsed:this.props.keyBindingsUsed,sortConflict:this.props.sortConflict,clearConflicts:this.props.clearConflicts,displayInput:this.state.displayNewInput,newOrReplace:"new",placeholder:"",translator:this.props.external.translator}):h.createElement("div",null)}getShortCutsCell(e){return h.createElement("div",{className:"jp-Shortcuts-Cell"},h.createElement("div",{className:this.getClassNameForShortCuts(e)},e.map(((t,n)=>this.getDivForKey(n,t,e))),e.length===1&&!this.state.displayNewInput&&!this.state.displayReplaceInputLeft&&this.getAddLink(),e.length===0&&!this.state.displayNewInput&&this.getAddLink(),this.getInputBoxWhenToggled()))}render(){const e=Object.keys(this.props.shortcut.keys).filter((e=>this.props.shortcut.keys[e][0]!==""));if(this.props.shortcut.id==="error_row"){return this.getErrorRow()}else{return h.createElement("div",{className:"jp-Shortcuts-Row",onContextMenu:e=>{e.persist();this.handleRightClick(e)}},this.getCategoryCell(),this.getLabelCell(),this.getShortCutsCell(e),this.getSourceCell(),this.getOptionalSelectorCell())}}}const C=115;class x extends h.Component{render(){return h.createElement("div",{className:"jp-Shortcuts-ShortcutListContainer",style:{height:`${this.props.height-C}px`},id:"shortcutListContainer"},h.createElement("div",{className:"jp-Shortcuts-ShortcutList"},this.props.shortcuts.map((e=>h.createElement(w,{key:e.commandName+"_"+e.selector,resetShortcut:this.props.resetShortcut,shortcut:e,handleUpdate:this.props.handleUpdate,deleteShortcut:this.props.deleteShortcut,showSelectors:this.props.showSelectors,keyBindingsUsed:this.props.keyBindingsUsed,sortConflict:this.props.sortConflict,clearConflicts:this.props.clearConflicts,contextMenu:this.props.contextMenu,external:this.props.external})))))}}class S extends h.Component{render(){return h.createElement("div",{className:this.props.title.toLowerCase()===this.props.active?"jp-Shortcuts-Header jp-Shortcuts-CurrentHeader":"jp-Shortcuts-Header",onClick:()=>this.props.updateSort(this.props.title.toLowerCase())},this.props.title,h.createElement(o.caretDownEmptyThinIcon.react,{className:"jp-Shortcuts-SortButton jp-ShortcutTitleItem-sortButton"}))}}var k;(function(e){e.showSelectors="shortcutui:showSelectors";e.resetAll="shortcutui:resetAll"})(k||(k={}));function j(e){return h.createElement("div",{className:"jp-Shortcuts-Symbols"},h.createElement("table",null,h.createElement("tbody",null,h.createElement("tr",null,h.createElement("td",null,h.createElement("kbd",null,"Cmd")),h.createElement("td",null,"⌘"),h.createElement("td",null,h.createElement("kbd",null,"Ctrl")),h.createElement("td",null,"⌃")),h.createElement("tr",null,h.createElement("td",null,h.createElement("kbd",null,"Alt")),h.createElement("td",null,"⌥"),h.createElement("td",null,h.createElement("kbd",null,"Shift")),h.createElement("td",null,"⇧")))))}function M(e){const t=e.translator.load("jupyterlab");return h.createElement("div",{className:"jp-Shortcuts-AdvancedOptions"},h.createElement("a",{className:"jp-Shortcuts-AdvancedOptionsLink",onClick:()=>e.toggleSelectors()},e.showSelectors?t.__("Hide Selectors"):t.__("Show Selectors")),h.createElement("a",{className:"jp-Shortcuts-AdvancedOptionsLink",onClick:()=>e.resetShortcuts()},t.__("Reset All")))}class E extends h.Component{constructor(e){super(e);this.addMenuCommands();this.menu=this.props.external.createMenu();this.menu.addItem({command:k.showSelectors});this.menu.addItem({command:k.resetAll})}addMenuCommands(){const e=this.props.external.translator.load("jupyterlab");if(!this.props.external.hasCommand(k.showSelectors)){this.props.external.addCommand(k.showSelectors,{label:e.__("Toggle Selectors"),caption:e.__("Toggle command selectors"),execute:()=>{this.props.toggleSelectors()}})}if(!this.props.external.hasCommand(k.resetAll)){this.props.external.addCommand(k.resetAll,{label:e.__("Reset All"),caption:e.__("Reset all shortcuts"),execute:()=>{this.props.resetShortcuts()}})}}getShortCutTitleItem(e){return h.createElement("div",{className:"jp-Shortcuts-Cell"},h.createElement(S,{title:e,updateSort:this.props.updateSort,active:this.props.currentSort}))}render(){const e=this.props.external.translator.load("jupyterlab");return h.createElement("div",{className:"jp-Shortcuts-Top"},h.createElement("div",{className:"jp-Shortcuts-TopNav"},h.createElement(j,null),h.createElement(o.InputGroup,{className:"jp-Shortcuts-Search",type:"text",onChange:e=>this.props.updateSearchQuery(e),placeholder:e.__("Search…"),rightIcon:"ui-components:search"}),h.createElement(M,{toggleSelectors:this.props.toggleSelectors,showSelectors:this.props.showSelectors,resetShortcuts:this.props.resetShortcuts,menu:this.menu,translator:this.props.external.translator})),h.createElement("div",{className:"jp-Shortcuts-HeaderRowContainer"},h.createElement("div",{className:"jp-Shortcuts-HeaderRow"},this.getShortCutTitleItem(e.__("Category")),this.getShortCutTitleItem(e.__("Command")),h.createElement("div",{className:"jp-Shortcuts-Cell"},h.createElement("div",{className:"title-div"},e.__("Shortcut"))),this.getShortCutTitleItem(e.__("Source")),this.props.showSelectors&&this.getShortCutTitleItem(e.__("Selectors")))))}}function I(e){return e.replace(/\s+/g,"").toLowerCase()}function T(e,t){const n=e.category.toLowerCase();const i=e["label"].toLowerCase();const s=`${n} ${i}`;let o=Infinity;let r=null;const a=/\b\w/g;while(true){const e=a.exec(s);if(!e){break}const n=p.StringExt.matchSumOfDeltas(s,t,e.index);if(!n){break}if(n&&n.score<=o){o=n.score;r=n.indices}}if(!r||o===Infinity){return null}const l=n.length+1;const d=p.ArrayExt.lowerBound(r,l,((e,t)=>e-t));const c=r.slice(0,d);const h=r.slice(d);for(let u=0,p=h.length;u{let n=t.command+"_"+t.selector;if(Object.keys(i).indexOf(n)!==-1){let e=i[n].numberOfShortcuts;i[n].keys[e]=t.keys;i[n].numberOfShortcuts++}else{let s=new g;s.commandName=t.command;let o=e.getLabel(t.command);if(!o){o=t.command.split(":")[1]}s.label=o;s.category=t.command.split(":")[0];s.keys[0]=t.keys;s.selector=t.selector;s.source="Default";s.id=n;s.numberOfShortcuts=1;i[n]=s}}));const s=t.user.shortcuts;s.forEach((e=>{const t=e.command;const n=e.selector;const s=t+"_"+n;if(i[s]){i[s].source="Custom"}}));return i}function P(e){let t={};Object.keys(e).forEach((n=>{Object.keys(e[n].keys).forEach((i=>{const s=new v(e[n]);s.takenByKey=i;t[e[n].keys[i].join(" ")+"_"+e[n].selector]=s}))}));return t}class A extends h.Component{constructor(e){super(e);this.updateSearchQuery=e=>{this.setState({searchQuery:e.target["value"]},(()=>this.setState({filteredShortcutList:this.searchFilterShortcuts(this.state.shortcutList)},(()=>{this.sortShortcuts()}))))};this.resetShortcuts=async()=>{const e=await this.props.external.getAllShortCutSettings();for(const t of Object.keys(e.user)){await this.props.external.removeShortCut(t)}await this._refreshShortcutList()};this.handleUpdate=async(e,t)=>{const n=await this.props.external.getAllShortCutSettings();const i=n.user.shortcuts;const s=[];let o=false;for(let r of i){if(r["command"]===e.commandName&&r["selector"]===e.selector){s.push({command:r["command"],selector:r["selector"],keys:t});o=true}else{s.push(r)}}if(!o){s.push({command:e.commandName,selector:e.selector,keys:t})}await n.set("shortcuts",s);await this._refreshShortcutList()};this.deleteShortcut=async(e,t)=>{await this.handleUpdate(e,[""]);await this._refreshShortcutList()};this.resetShortcut=async e=>{const t=await this.props.external.getAllShortCutSettings();const n=t.user.shortcuts;const i=[];for(let s of n){if(s["command"]!==e.commandName||s["selector"]!==e.selector){i.push(s)}}await t.set("shortcuts",i);await this._refreshShortcutList()};this.toggleSelectors=()=>{this.setState({showSelectors:!this.state.showSelectors})};this.updateSort=e=>{if(e!==this.state.currentSort){this.setState({currentSort:e},this.sortShortcuts)}};this.sortConflict=(e,t)=>{const n=this.state.filteredShortcutList;if(n.filter((e=>e.id==="error_row")).length===0){const i=new f;i.takenBy=t;i.id="error_row";n.splice(n.indexOf(e)+1,0,i);i.hasConflict=true;this.setState({filteredShortcutList:n})}};this.clearConflicts=()=>{const e=this.state.filteredShortcutList.filter((e=>e.id!=="error_row"));e.forEach((e=>{e.hasConflict=false}));this.setState({filteredShortcutList:e})};this.contextMenu=(e,t)=>{e.persist();this.setState({contextMenu:this.props.external.createMenu()},(()=>{e.preventDefault();for(let e of t){this.state.contextMenu.addItem({command:e})}this.state.contextMenu.open(e.clientX,e.clientY)}))};this.state={shortcutList:{},filteredShortcutList:new Array,shortcutsFetched:false,searchQuery:"",showSelectors:false,currentSort:"category",keyBindingsUsed:{},contextMenu:this.props.external.createMenu()}}componentDidMount(){void this._refreshShortcutList()}async _refreshShortcutList(){const e=await this.props.external.getAllShortCutSettings();const t=L(this.props.external,e);this.setState({shortcutList:t,filteredShortcutList:this.searchFilterShortcuts(t),shortcutsFetched:true},(()=>{let e=P(t);this.setState({keyBindingsUsed:e});this.sortShortcuts()}))}searchFilterShortcuts(e){const t=D(e,this.state.searchQuery).map((e=>e.item));return t}sortShortcuts(){const e=this.state.filteredShortcutList;let t=this.state.currentSort;if(t==="command"){t="label"}if(t!==""){e.sort(((e,n)=>{const i=e.get(t);const s=n.get(t);if(is){return 1}else{return e["label"]n["label"]?1:0}}))}this.setState({filteredShortcutList:e})}render(){if(!this.state.shortcutsFetched){return null}return h.createElement("div",{className:"jp-Shortcuts-ShortcutUI",id:"jp-shortcutui"},h.createElement(E,{updateSearchQuery:this.updateSearchQuery,resetShortcuts:this.resetShortcuts,toggleSelectors:this.toggleSelectors,showSelectors:this.state.showSelectors,updateSort:this.updateSort,currentSort:this.state.currentSort,width:this.props.width,external:this.props.external}),h.createElement(x,{shortcuts:this.state.filteredShortcutList,resetShortcut:this.resetShortcut,handleUpdate:this.handleUpdate,deleteShortcut:this.deleteShortcut,showSelectors:this.state.showSelectors,keyBindingsUsed:this.state.keyBindingsUsed,sortConflict:this.sortConflict,clearConflicts:this.clearConflicts,height:this.props.height,contextMenu:this.contextMenu,external:this.props.external}))}}const R=e=>u().createElement(A,{external:e.external,height:1e3,width:1e3});function N(e,t,n){const{commands:i}=t;const s="@jupyterlab/shortcuts-extension:shortcuts";return{translator:n,getAllShortCutSettings:()=>e.load(s,true),removeShortCut:t=>e.remove(s,t),createMenu:()=>new c.Menu({commands:i}),hasCommand:e=>i.hasCommand(e),addCommand:(e,t)=>i.addCommand(e,t),getLabel:e=>i.label(e)}}const O={id:"@jupyterlab/shortcuts-extension:shortcuts",description:"Adds the keyboard shortcuts editor.",requires:[i.ISettingRegistry],optional:[s.ITranslator,o.IFormRendererRegistry],activate:async(e,t,n,o)=>{const l=n!==null&&n!==void 0?n:s.nullTranslator;const c=l.load("jupyterlab");const{commands:h}=e;let u;let p={};if(o){const n={fieldRenderer:n=>R({external:N(t,e,l),...n})};o.addRenderer(`${O.id}.shortcuts`,n)}function m(n){const i=e.commands.listCommands().join("\n");p={};n.properties.shortcuts.default=Object.keys(t.plugins).map((e=>{const n=t.plugins[e].schema["jupyter.lab.shortcuts"]||[];p[e]=n;return n})).concat([n.properties.shortcuts.default]).reduce(((e,t)=>{if(d.Platform.IS_MAC){return e.concat(t)}else{return e.concat(t.filter((e=>!e.keys.some((e=>{const{cmd:t}=r.CommandRegistry.parseKeystroke(e);return t})))))}}),[]).sort(((e,t)=>e.command.localeCompare(t.command)));n.properties.shortcuts.description=c.__(`Note: To disable a system default shortcut,\ncopy it to User Preferences and add the\n"disabled" key, for example:\n{\n "command": "application:activate-next-tab",\n "keys": [\n "Ctrl Shift ]"\n ],\n "selector": "body",\n "disabled": true\n}\n\nList of commands followed by keyboard shortcuts:\n%1\n\nList of keyboard shortcuts:`,i)}t.pluginChanged.connect((async(e,n)=>{if(n!==O.id){const e=p[n];const i=t.plugins[n].schema["jupyter.lab.shortcuts"]||[];if(e===undefined||!a.JSONExt.deepEqual(e,i)){u=null;const e=t.plugins[O.id].schema;e.properties.shortcuts.default=[];await t.load(O.id,true)}}}));t.transform(O.id,{compose:e=>{var t,n,s,o;if(!u){u=a.JSONExt.deepCopy(e.schema);m(u)}const r=(s=(n=(t=u.properties)===null||t===void 0?void 0:t.shortcuts)===null||n===void 0?void 0:n.default)!==null&&s!==void 0?s:[];const l={shortcuts:(o=e.data.user.shortcuts)!==null&&o!==void 0?o:[]};const d={shortcuts:i.SettingRegistry.reconcileShortcuts(r,l.shortcuts)};e.data={composite:d,user:l};return e},fetch:e=>{if(!u){u=a.JSONExt.deepCopy(e.schema);m(u)}return{data:e.data,id:e.id,raw:e.raw,schema:u,version:e.version}}});try{u=null;const e=await t.load(O.id);F.loadShortcuts(h,e.composite);e.changed.connect((()=>{F.loadShortcuts(h,e.composite)}))}catch(g){console.error(`Loading ${O.id} failed.`,g)}},autoStart:true};const B=O;var F;(function(e){let t;function n(e,n){var s;const o=(s=n===null||n===void 0?void 0:n.shortcuts)!==null&&s!==void 0?s:[];if(t){t.dispose()}t=o.reduce(((t,n)=>{const s=i(n);if(s){t.add(e.addKeyBinding(s))}return t}),new l.DisposableSet)}e.loadShortcuts=n;function i(e){if(!e||typeof e!=="object"){return undefined}const{isArray:t}=Array;const n="command"in e&&"keys"in e&&"selector"in e&&t(e.keys);return n?e:undefined}})(F||(F={}))},38970:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(93379);var r=n.n(o);var a=n(7795);var l=n.n(a);var d=n(90569);var c=n.n(d);var h=n(3565);var u=n.n(h);var p=n(19216);var m=n.n(p);var g=n(44589);var f=n.n(g);var v=n(11333);var _={};_.styleTagTransform=f();_.setAttributes=u();_.insert=c().bind(null,"head");_.domAPI=l();_.insertStyleElement=m();var b=r()(v.Z,_);const y=v.Z&&v.Z.locals?v.Z.locals:undefined},89525:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.DataConnector=void 0;class n{async list(e){throw new Error("DataConnector#list method has not been implemented.")}async remove(e){throw new Error("DataConnector#remove method has not been implemented.")}async save(e,t){throw new Error("DataConnector#save method has not been implemented.")}}t.DataConnector=n},17266:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){if(i===undefined)i=n;var s=Object.getOwnPropertyDescriptor(t,n);if(!s||("get"in s?!t.__esModule:s.writable||s.configurable)){s={enumerable:true,get:function(){return t[n]}}}Object.defineProperty(e,i,s)}:function(e,t,n,i){if(i===undefined)i=n;e[i]=t[n]});var s=this&&this.__exportStar||function(e,t){for(var n in e)if(n!=="default"&&!Object.prototype.hasOwnProperty.call(t,n))i(t,e,n)};Object.defineProperty(t,"__esModule",{value:true});s(n(89525),t);s(n(14623),t);s(n(51156),t);s(n(64962),t);s(n(7263),t)},14623:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true})},51156:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.RestorablePool=void 0;const i=n(5596);const s=n(75379);const o=n(71372);class r{constructor(e){this._added=new o.Signal(this);this._current=null;this._currentChanged=new o.Signal(this);this._hasRestored=false;this._isDisposed=false;this._objects=new Set;this._restore=null;this._restored=new i.PromiseDelegate;this._updated=new o.Signal(this);this.namespace=e.namespace}get added(){return this._added}get current(){return this._current}set current(e){if(this._current===e){return}if(e!==null&&this._objects.has(e)){this._current=e;this._currentChanged.emit(this._current)}}get currentChanged(){return this._currentChanged}get isDisposed(){return this._isDisposed}get restored(){return this._restored.promise}get size(){return this._objects.size}get updated(){return this._updated}async add(e){var t,n;if(e.isDisposed){const t="A disposed object cannot be added.";console.warn(t,e);throw new Error(t)}if(this._objects.has(e)){const t="This object already exists in the pool.";console.warn(t,e);throw new Error(t)}this._objects.add(e);e.disposed.connect(this._onInstanceDisposed,this);if(a.injectedProperty.get(e)){return}if(this._restore){const{connector:i}=this._restore;const s=this._restore.name(e);if(s){const o=`${this.namespace}:${s}`;const r=(n=(t=this._restore).args)===null||n===void 0?void 0:n.call(t,e);a.nameProperty.set(e,o);await i.save(o,{data:r})}}this._added.emit(e)}dispose(){if(this.isDisposed){return}this._current=null;this._isDisposed=true;this._objects.clear();o.Signal.clearData(this)}find(e){const t=this._objects.values();for(const n of t){if(e(n)){return n}}return undefined}forEach(e){this._objects.forEach(e)}filter(e){const t=[];this.forEach((n=>{if(e(n)){t.push(n)}}));return t}inject(e){a.injectedProperty.set(e,true);return this.add(e)}has(e){return this._objects.has(e)}async restore(e){if(this._hasRestored){throw new Error("This pool has already been restored.")}this._hasRestored=true;const{command:t,connector:n,registry:i,when:s}=e;const o=this.namespace;const r=s?[n.list(o)].concat(s):[n.list(o)];this._restore=e;const[a]=await Promise.all(r);const l=await Promise.all(a.ids.map((async(e,s)=>{const o=a.values[s];const r=o&&o.data;if(r===undefined){return n.remove(e)}return i.execute(t,r).catch((()=>n.remove(e)))})));this._restored.resolve();return l}async save(e){var t,n;const i=a.injectedProperty.get(e);if(!this._restore||!this.has(e)||i){return}const{connector:s}=this._restore;const o=this._restore.name(e);const r=a.nameProperty.get(e);const l=o?`${this.namespace}:${o}`:"";if(r&&r!==l){await s.remove(r)}a.nameProperty.set(e,l);if(l){const i=(n=(t=this._restore).args)===null||n===void 0?void 0:n.call(t,e);await s.save(l,{data:i})}if(r!==l){this._updated.emit(e)}}_onInstanceDisposed(e){this._objects.delete(e);if(e===this._current){this._current=null;this._currentChanged.emit(this._current)}if(a.injectedProperty.get(e)){return}if(!this._restore){return}const{connector:t}=this._restore;const n=a.nameProperty.get(e);if(n){void t.remove(n)}}}t.RestorablePool=r;var a;(function(e){e.injectedProperty=new s.AttachedProperty({name:"injected",create:()=>false});e.nameProperty=new s.AttachedProperty({name:"name",create:()=>""})})(a||(a={}))},64962:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.StateDB=void 0;const i=n(71372);class s{constructor(e={}){this._changed=new i.Signal(this);const{connector:t,transform:n}=e;this._connector=t||new s.Connector;if(!n){this._ready=Promise.resolve(undefined)}else{this._ready=n.then((e=>{const{contents:t,type:n}=e;switch(n){case"cancel":return;case"clear":return this._clear();case"merge":return this._merge(t||{});case"overwrite":return this._overwrite(t||{});default:return}}))}}get changed(){return this._changed}async clear(){await this._ready;await this._clear()}async fetch(e){await this._ready;return this._fetch(e)}async list(e){await this._ready;return this._list(e)}async remove(e){await this._ready;await this._remove(e);this._changed.emit({id:e,type:"remove"})}async save(e,t){await this._ready;await this._save(e,t);this._changed.emit({id:e,type:"save"})}async toJSON(){await this._ready;const{ids:e,values:t}=await this._list();return t.reduce(((t,n,i)=>{t[e[i]]=n;return t}),{})}async _clear(){await Promise.all((await this._list()).ids.map((e=>this._remove(e))))}async _fetch(e){const t=await this._connector.fetch(e);if(t){return JSON.parse(t).v}}async _list(e=""){const{ids:t,values:n}=await this._connector.list(e);return{ids:t,values:n.map((e=>JSON.parse(e).v))}}async _merge(e){await Promise.all(Object.keys(e).map((t=>e[t]&&this._save(t,e[t]))))}async _overwrite(e){await this._clear();await this._merge(e)}async _remove(e){return this._connector.remove(e)}async _save(e,t){return this._connector.save(e,JSON.stringify({v:t}))}}t.StateDB=s;(function(e){class t{constructor(){this._storage={}}async fetch(e){return this._storage[e]}async list(e=""){return Object.keys(this._storage).reduce(((t,n)=>{if(e===""?true:e===n.split(":")[0]){t.ids.push(n);t.values.push(this._storage[n])}return t}),{ids:[],values:[]})}async remove(e){delete this._storage[e]}async save(e,t){this._storage[e]=t}}e.Connector=t})(s=t.StateDB||(t.StateDB={}))},7263:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.IStateDB=void 0;const i=n(5596);t.IStateDB=new i.Token("@jupyterlab/coreutils:IStateDB",`A service for the JupyterLab state database.\n Use this if you want to store data that will persist across page loads.\n See "state database" for more information.`)},38938:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>g});var i=n(74574);var s=n.n(i);var o=n(10759);var r=n.n(o);var a=n(95811);var l=n.n(a);var d=n(85176);var c=n.n(d);var h=n(6958);var u=n.n(h);const p="@jupyterlab/statusbar-extension:plugin";const m={id:p,description:"Provides the application status bar.",requires:[h.ITranslator],provides:d.IStatusBar,autoStart:true,activate:(e,t,n,i,s)=>{const o=t.load("jupyterlab");const r=new d.StatusBar;r.id="jp-main-statusbar";e.shell.add(r,"bottom");if(n){n.layoutModified.connect((()=>{r.update()}))}const a=o.__("Main Area");const l="statusbar:toggle";e.commands.addCommand(l,{label:o.__("Show Status Bar"),execute:()=>{r.setHidden(r.isVisible);if(i){void i.set(p,"visible",r.isVisible)}},isToggled:()=>r.isVisible});e.commands.commandExecuted.connect(((t,n)=>{if(n.id==="application:reset-layout"&&!r.isVisible){e.commands.execute(l).catch((e=>{console.error("Failed to show the status bar.",e)}))}}));if(s){s.addItem({command:l,category:a})}if(i){const t=i.load(p);const n=e=>{const t=e.get("visible").composite;r.setHidden(!t)};Promise.all([t,e.restored]).then((([e])=>{n(e);e.changed.connect((e=>{n(e)}))})).catch((e=>{console.error(e.message)}))}return r},optional:[i.ILabShell,a.ISettingRegistry,o.ICommandPalette]};const g=m},50168:(e,t,n)=>{"use strict";var i=n(98328);var s=n(79536);var o=n(90516)},93564:(e,t,n)=>{"use strict";n.r(t);n.d(t,{GroupItem:()=>o,IStatusBar:()=>b,Popup:()=>d,ProgressBar:()=>c,ProgressCircle:()=>p,StatusBar:()=>f,TextItem:()=>u,showPopup:()=>l});var i=n(28416);var s=n.n(i);function o(e){const{spacing:t,children:n,className:s,...o}=e;const r=i.Children.count(n);return i.createElement("div",{className:`jp-StatusBar-GroupItem ${s||""}`,...o},i.Children.map(n,((e,n)=>{if(n===0){return i.createElement("div",{style:{marginRight:`${t}px`}},e)}else if(n===r-1){return i.createElement("div",{style:{marginLeft:`${t}px`}},e)}else{return i.createElement("div",{style:{margin:`0px ${t}px`}},e)}})))}var r=n(4148);var a=n(85448);function l(e){const t=new d(e);if(!e.startHidden){t.launch()}return t}class d extends a.Widget{constructor(e){super();this._body=e.body;this._body.addClass("jp-StatusBar-HoverItem");this._anchor=e.anchor;this._align=e.align;if(e.hasDynamicSize){this._observer=new ResizeObserver((()=>{this.update()}))}const t=this.layout=new a.PanelLayout;t.addWidget(e.body);this._body.node.addEventListener("resize",(()=>{this.update()}))}launch(){this._setGeometry();a.Widget.attach(this,document.body);this.update();this._anchor.addClass("jp-mod-clicked");this._anchor.removeClass("jp-mod-highlight")}onUpdateRequest(e){this._setGeometry();super.onUpdateRequest(e)}onAfterAttach(e){var t;document.addEventListener("click",this,false);this.node.addEventListener("keydown",this,false);window.addEventListener("resize",this,false);(t=this._observer)===null||t===void 0?void 0:t.observe(this._body.node)}onBeforeDetach(e){var t;(t=this._observer)===null||t===void 0?void 0:t.disconnect();document.removeEventListener("click",this,false);this.node.removeEventListener("keydown",this,false);window.removeEventListener("resize",this,false)}onResize(){this.update()}dispose(){var e;(e=this._observer)===null||e===void 0?void 0:e.disconnect();super.dispose();this._anchor.removeClass("jp-mod-clicked");this._anchor.addClass("jp-mod-highlight")}handleEvent(e){switch(e.type){case"keydown":this._evtKeydown(e);break;case"click":this._evtClick(e);break;case"resize":this.onResize();break;default:break}}_evtClick(e){if(!!e.target&&!(this._body.node.contains(e.target)||this._anchor.node.contains(e.target))){this.dispose()}}_evtKeydown(e){switch(e.keyCode){case 27:e.stopPropagation();e.preventDefault();this.dispose();break;default:break}}_setGeometry(){let e=0;const t=this._anchor.node.getBoundingClientRect();const n=this._body.node.getBoundingClientRect();if(this._align==="right"){e=-(n.width-t.width)}const i=window.getComputedStyle(this._body.node);r.HoverBox.setGeometry({anchor:t,host:document.body,maxHeight:500,minHeight:20,node:this._body.node,offset:{horizontal:e},privilege:"forceAbove",style:i})}}function c(e){const{width:t,percentage:n,...s}=e;return i.createElement("div",{className:"jp-Statusbar-ProgressBar-progress-bar",role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":n},i.createElement(h,{...{percentage:n,...s},contentWidth:t}))}function h(e){return i.createElement("div",{style:{width:`${e.percentage}%`}},i.createElement("p",null,e.content))}function u(e){const{title:t,source:n,className:s,...o}=e;return i.createElement("span",{className:`jp-StatusBar-TextItem ${s}`,title:t,...o},n)}function p(e){const t=104;const n=e=>{const n=Math.max(e*3.6,.1);const i=n*Math.PI/180,s=Math.sin(i)*t,o=Math.cos(i)*-t,r=n<180?1:0,a=`M 0 0 v -${t} A ${t} ${t} 1 `+r+" 0 "+s.toFixed(4)+" "+o.toFixed(4)+" z";return a};return s().createElement("div",{className:"jp-Statusbar-ProgressCircle",role:"progressbar","aria-label":e.label||"Unlabelled progress circle","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":e.progress},s().createElement("svg",{viewBox:"0 0 250 250"},s().createElement("circle",{cx:"125",cy:"125",r:`${t}`,stroke:"var(--jp-inverse-layout-color3)",strokeWidth:"20",fill:"none"}),s().createElement("path",{transform:"translate(125,125) scale(.9)",d:n(e.progress),fill:"var(--jp-inverse-layout-color3)"})))}var m=n(58740);var g=n(26512);class f extends a.Widget{constructor(){super();this._leftRankItems=[];this._rightRankItems=[];this._statusItems={};this._disposables=new g.DisposableSet;this.addClass("jp-StatusBar-Widget");const e=this.layout=new a.PanelLayout;const t=this._leftSide=new a.Panel;const n=this._middlePanel=new a.Panel;const i=this._rightSide=new a.Panel;t.addClass("jp-StatusBar-Left");n.addClass("jp-StatusBar-Middle");i.addClass("jp-StatusBar-Right");e.addWidget(t);e.addWidget(n);e.addWidget(i)}registerStatusItem(e,t){if(e in this._statusItems){throw new Error(`Status item ${e} already registered.`)}const n={...v.statusItemDefaults,...t};const{align:i,item:s,rank:o}=n;const r=()=>{this._refreshItem(e)};if(n.activeStateChanged){n.activeStateChanged.connect(r)}const a={id:e,rank:o};n.item.addClass("jp-StatusBar-Item");this._statusItems[e]=n;if(i==="left"){const e=this._findInsertIndex(this._leftRankItems,a);if(e===-1){this._leftSide.addWidget(s);this._leftRankItems.push(a)}else{m.ArrayExt.insert(this._leftRankItems,e,a);this._leftSide.insertWidget(e,s)}}else if(i==="right"){const e=this._findInsertIndex(this._rightRankItems,a);if(e===-1){this._rightSide.addWidget(s);this._rightRankItems.push(a)}else{m.ArrayExt.insert(this._rightRankItems,e,a);this._rightSide.insertWidget(e,s)}}else{this._middlePanel.addWidget(s)}this._refreshItem(e);const l=new g.DisposableDelegate((()=>{delete this._statusItems[e];if(n.activeStateChanged){n.activeStateChanged.disconnect(r)}s.parent=null;s.dispose()}));this._disposables.add(l);return l}dispose(){this._leftRankItems.length=0;this._rightRankItems.length=0;this._disposables.dispose();super.dispose()}onUpdateRequest(e){this._refreshAll();super.onUpdateRequest(e)}_findInsertIndex(e,t){return m.ArrayExt.findFirstIndex(e,(e=>e.rank>t.rank))}_refreshItem(e){const t=this._statusItems[e];if(t.isActive()){t.item.show();t.item.update()}else{t.item.hide()}}_refreshAll(){Object.keys(this._statusItems).forEach((e=>{this._refreshItem(e)}))}}var v;(function(e){e.statusItemDefaults={align:"left",rank:0,isActive:()=>true,activeStateChanged:undefined}})(v||(v={}));var _=n(5596);const b=new _.Token("@jupyterlab/statusbar:IStatusBar","A service for the status bar on the application. Use this if you want to add new status bar items.")},98328:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(93379);var r=n.n(o);var a=n(7795);var l=n.n(a);var d=n(90569);var c=n.n(d);var h=n(3565);var u=n.n(h);var p=n(19216);var m=n.n(p);var g=n(44589);var f=n.n(g);var v=n(48065);var _={};_.styleTagTransform=f();_.setAttributes=u();_.insert=c().bind(null,"head");_.domAPI=l();_.insertStyleElement=m();var b=r()(v.Z,_);const y=v.Z&&v.Z.locals?v.Z.locals:undefined},8883:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>M});var i=n(74574);var s=n.n(i);var o=n(10759);var r=n.n(o);var a=n(97095);var l=n.n(a);var d=n(66899);var c=n.n(d);var h=n(54411);var u=n.n(h);var p=n(96306);var m=n.n(p);var g=n(95811);var f=n.n(g);var v=n(36743);var _=n.n(v);var b=n(6958);var y=n.n(b);var w=n(4148);var C=n.n(w);var x=n(85448);var S=n.n(x);var k;(function(e){e.copy="terminal:copy";e.createNew="terminal:create-new";e.open="terminal:open";e.refresh="terminal:refresh";e.increaseFont="terminal:increase-font";e.decreaseFont="terminal:decrease-font";e.paste="terminal:paste";e.setTheme="terminal:set-theme";e.shutdown="terminal:shut-down"})(k||(k={}));const j={activate:E,id:"@jupyterlab/terminal-extension:plugin",description:"Adds terminal and provides its tracker.",provides:v.ITerminalTracker,requires:[g.ISettingRegistry,b.ITranslator],optional:[o.ICommandPalette,a.ILauncher,i.ILayoutRestorer,d.IMainMenu,o.IThemeManager,h.IRunningSessionManagers],autoStart:true};const M=j;function E(e,t,n,i,s,r,a,l,d){const c=n.load("jupyterlab");const{serviceManager:h,commands:u}=e;const p=c.__("Terminal");const m="terminal";const g=new o.WidgetTracker({namespace:m});if(!h.terminals.isAvailable()){console.warn("Disabling terminals plugin because they are not available on the server");return g}if(r){void r.restore(g,{command:k.createNew,args:e=>({name:e.content.session.name}),name:e=>e.content.session.name})}const f={};function v(e){Object.keys(e.composite).forEach((t=>{f[t]=e.composite[t]}))}function _(e){const t=e.content;if(!t){return}Object.keys(f).forEach((e=>{t.setOption(e,f[e])}))}function b(){g.forEach((e=>_(e)))}t.load(j.id).then((e=>{v(e);b();e.changed.connect((()=>{v(e);b()}))})).catch(D.showErrorMessage);l===null||l===void 0?void 0:l.themeChanged.connect(((e,t)=>{g.forEach((e=>{const t=e.content;if(t.getOption("theme")==="inherit"){t.setOption("theme","inherit")}}))}));T(e,g,t,n,f);if(a){const e=new x.Menu({commands:u});e.title.label=c._p("menu","Terminal Theme");e.addItem({command:k.setTheme,args:{theme:"inherit",displayName:c.__("Inherit"),isPalette:false}});e.addItem({command:k.setTheme,args:{theme:"light",displayName:c.__("Light"),isPalette:false}});e.addItem({command:k.setTheme,args:{theme:"dark",displayName:c.__("Dark"),isPalette:false}});a.settingsMenu.addGroup([{command:k.increaseFont},{command:k.decreaseFont},{type:"submenu",submenu:e}],40);a.fileMenu.newMenu.addItem({command:k.createNew,rank:20});a.fileMenu.closeAndCleaners.add({id:k.shutdown,isEnabled:e=>g.currentWidget!==null&&g.has(e)})}if(i){[k.createNew,k.refresh,k.increaseFont,k.decreaseFont].forEach((e=>{i.addItem({command:e,category:p,args:{isPalette:true}})}));i.addItem({command:k.setTheme,category:p,args:{theme:"inherit",displayName:c.__("Inherit"),isPalette:true}});i.addItem({command:k.setTheme,category:p,args:{theme:"light",displayName:c.__("Light"),isPalette:true}});i.addItem({command:k.setTheme,category:p,args:{theme:"dark",displayName:c.__("Dark"),isPalette:true}})}if(s){s.add({command:k.createNew,category:c.__("Other"),rank:0})}if(d){I(d,e,n)}return g}function I(e,t,n){const i=n.load("jupyterlab");const s=t.serviceManager.terminals;class o{constructor(e){this._model=e}open(){void t.commands.execute("terminal:open",{name:this._model.name})}icon(){return w.terminalIcon}label(){return`terminals/${this._model.name}`}shutdown(){return s.shutdown(this._model.name)}}e.add({name:i.__("Terminals"),running:()=>Array.from(s.running()).map((e=>new o(e))),shutdownAll:()=>s.shutdownAll(),refreshRunning:()=>s.refreshRunning(),runningChanged:s.runningChanged,shutdownLabel:i.__("Shut Down"),shutdownAllLabel:i.__("Shut Down All"),shutdownAllConfirmationText:i.__("Are you sure you want to permanently shut down all running terminals?")})}function T(e,t,n,i,s){const r=i.load("jupyterlab");const{commands:a,serviceManager:l}=e;const d=()=>t.currentWidget!==null&&t.currentWidget===e.shell.currentWidget;a.addCommand(k.createNew,{label:e=>e["isPalette"]?r.__("New Terminal"):r.__("Terminal"),caption:r.__("Start a new terminal session"),icon:e=>e["isPalette"]?undefined:w.terminalIcon,execute:async n=>{const r=n["name"];const a=n["cwd"];const d=a?l.contents.localPath(a):undefined;let c;if(r){const e=await p.TerminalAPI.listRunning();if(e.map((e=>e.name)).includes(r)){c=l.terminals.connectTo({model:{name:r}})}else{c=await l.terminals.startNew({name:r,cwd:d})}}else{c=await l.terminals.startNew({cwd:d})}const h=new v.Terminal(c,s,i);h.title.icon=w.terminalIcon;h.title.label="...";const u=new o.MainAreaWidget({content:h,reveal:h.ready});e.shell.add(u,"main",{type:"Terminal"});void t.add(u);e.shell.activateById(u.id);return u}});a.addCommand(k.open,{label:r.__("Open a terminal by its `name`."),execute:n=>{const i=n["name"];const s=t.find((e=>{const t=e.content;return t.session.name===i||false}));if(s){e.shell.activateById(s.id)}else{return a.execute(k.createNew,{name:i})}}});a.addCommand(k.refresh,{label:r.__("Refresh Terminal"),caption:r.__("Refresh the current terminal session"),execute:async()=>{const n=t.currentWidget;if(!n){return}e.shell.activateById(n.id);try{await n.content.refresh();if(n){n.content.activate()}}catch(i){D.showErrorMessage(i)}},icon:e=>e["isPalette"]?undefined:w.refreshIcon.bindprops({stylesheet:"menuItem"}),isEnabled:d});a.addCommand(k.copy,{execute:()=>{var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(!n){return}const i=n.getSelection();if(i){o.Clipboard.copyToSystem(i)}},isEnabled:()=>{var e;if(!d()){return false}const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(!n){return false}return n.hasSelection()},icon:w.copyIcon.bindprops({stylesheet:"menuItem"}),label:r.__("Copy")});a.addCommand(k.paste,{execute:async()=>{var e;const n=(e=t.currentWidget)===null||e===void 0?void 0:e.content;if(!n){return}const i=window.navigator.clipboard;const s=await i.readText();if(s){n.paste(s)}},isEnabled:()=>{var e;return Boolean(d()&&((e=t.currentWidget)===null||e===void 0?void 0:e.content))},icon:w.pasteIcon.bindprops({stylesheet:"menuItem"}),label:r.__("Paste")});a.addCommand(k.shutdown,{label:r.__("Shutdown Terminal"),execute:()=>{const e=t.currentWidget;if(!e){return}return e.content.session.shutdown()},isEnabled:d});a.addCommand(k.increaseFont,{label:r.__("Increase Terminal Font Size"),execute:async()=>{const{fontSize:e}=s;if(e&&e<72){try{await n.set(j.id,"fontSize",e+1)}catch(t){D.showErrorMessage(t)}}}});a.addCommand(k.decreaseFont,{label:r.__("Decrease Terminal Font Size"),execute:async()=>{const{fontSize:e}=s;if(e&&e>9){try{await n.set(j.id,"fontSize",e-1)}catch(t){D.showErrorMessage(t)}}}});const c={inherit:r.__("Inherit"),light:r.__("Light"),dark:r.__("Dark")};a.addCommand(k.setTheme,{label:e=>{if(e.theme===undefined){return r.__("Set terminal theme to the provided `theme`.")}const t=e["theme"];const n=t in c?c[t]:r.__(t[0].toUpperCase()+t.slice(1));return e["isPalette"]?r.__("Use Terminal Theme: %1",n):n},caption:r.__("Set the terminal theme"),isToggled:e=>{const{theme:t}=s;return e["theme"]===t},execute:async e=>{const t=e["theme"];try{await n.set(j.id,"theme",t);a.notifyCommandChanged(k.setTheme)}catch(i){console.log(i);D.showErrorMessage(i)}}})}var D;(function(e){function t(e){console.error(`Failed to configure ${j.id}: ${e.message}`)}e.showErrorMessage=t})(D||(D={}))},52714:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(79536);var r=n(90516);var a=n(52812);var l=n(74518);var d=n(90088);var c=n(77502);var h=n(93379);var u=n.n(h);var p=n(7795);var m=n.n(p);var g=n(90569);var f=n.n(g);var v=n(3565);var _=n.n(v);var b=n(19216);var y=n.n(b);var w=n(44589);var C=n.n(w);var x=n(62435);var S={};S.styleTagTransform=C();S.setAttributes=_();S.insert=f().bind(null,"head");S.domAPI=m();S.insertStyleElement=y();var k=u()(x.Z,S);const j=x.Z&&x.Z.locals?x.Z.locals:undefined},89185:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ITerminal:()=>o,ITerminalTracker:()=>s,Terminal:()=>u});var i=n(5596);const s=new i.Token("@jupyterlab/terminal:ITerminalTracker",`A widget tracker for terminals.\n Use this if you want to be able to iterate over and interact with terminals\n created by the application.`);var o;(function(e){e.defaultOptions={theme:"inherit",fontFamily:'Menlo, Consolas, "DejaVu Sans Mono", monospace',fontSize:13,lineHeight:1,scrollback:1e3,shutdownOnClose:false,closeOnExit:true,cursorBlink:true,initialCommand:"",screenReaderMode:false,pasteWithCtrlV:true,autoFit:true,macOptionIsMeta:false}})(o||(o={}));var r=n(6958);var a=n(36044);var l=n(28821);var d=n(85448);const c="jp-Terminal";const h="jp-Terminal-body";class u extends d.Widget{constructor(e,t={},n){super();this._needsResize=true;this._offsetWidth=-1;this._offsetHeight=-1;this._isReady=false;this._ready=new i.PromiseDelegate;this._termOpened=false;n=n||r.nullTranslator;this._trans=n.load("jupyterlab");this.session=e;this._options={...o.defaultOptions,...t};const{theme:s,...a}=this._options;const l={theme:p.getXTermTheme(s),...a};this.addClass(c);this._setThemeAttribute(s);let d="";const h=(e,t)=>{switch(t.type){case"stdout":if(t.content){d+=t.content[0]}break;default:break}};e.messageReceived.connect(h);e.disposed.connect((()=>{if(this.getOption("closeOnExit")){this.dispose()}}),this);p.createTerminal(l).then((([t,n])=>{this._term=t;this._fitAddon=n;this._initializeTerm();this.id=`jp-Terminal-${p.id++}`;this.title.label=this._trans.__("Terminal");this._isReady=true;this._ready.resolve();if(d){this._term.write(d)}e.messageReceived.disconnect(h);e.messageReceived.connect(this._onMessage,this);if(e.connectionStatus==="connected"){this._initialConnection()}else{e.connectionStatusChanged.connect(this._initialConnection,this)}this.update()})).catch((e=>{console.error("Failed to create a terminal.\n",e);this._ready.reject(e)}))}get ready(){return this._ready.promise}getOption(e){return this._options[e]}setOption(e,t){if(e!=="theme"&&(this._options[e]===t||e==="initialCommand")){return}this._options[e]=t;switch(e){case"fontFamily":this._term.options.fontFamily=t;break;case"fontSize":this._term.options.fontSize=t;break;case"lineHeight":this._term.options.lineHeight=t;break;case"screenReaderMode":this._term.options.screenReaderMode=t;break;case"scrollback":this._term.options.scrollback=t;break;case"theme":this._term.options.theme={...p.getXTermTheme(t)};this._setThemeAttribute(t);break;case"macOptionIsMeta":this._term.options.macOptionIsMeta=t;break;default:break}this._needsResize=true;this.update()}dispose(){if(!this.session.isDisposed){if(this.getOption("shutdownOnClose")){this.session.shutdown().catch((e=>{console.error(`Terminal not shut down: ${e}`)}))}}void this.ready.then((()=>{this._term.dispose()}));super.dispose()}async refresh(){if(!this.isDisposed&&this._isReady){await this.session.reconnect();this._term.clear()}}hasSelection(){if(!this.isDisposed&&this._isReady){return this._term.hasSelection()}return false}paste(e){if(!this.isDisposed&&this._isReady){return this._term.paste(e)}}getSelection(){if(!this.isDisposed&&this._isReady){return this._term.getSelection()}return null}processMessage(e){super.processMessage(e);switch(e.type){case"fit-request":this.onFitRequest(e);break;default:break}}onAfterAttach(e){this.update()}onAfterShow(e){this.update()}onResize(e){this._offsetWidth=e.width;this._offsetHeight=e.height;this._needsResize=true;this.update()}onUpdateRequest(e){var t;if(!this.isVisible||!this.isAttached||!this._isReady){return}if(!this._termOpened){this._term.open(this.node);(t=this._term.element)===null||t===void 0?void 0:t.classList.add(h);this._termOpened=true}if(this._needsResize){this._resizeTerminal()}}onFitRequest(e){const t=d.Widget.ResizeMessage.UnknownSize;l.MessageLoop.sendMessage(this,t)}onActivateRequest(e){var t;(t=this._term)===null||t===void 0?void 0:t.focus()}_initialConnection(){if(this.isDisposed){return}if(this.session.connectionStatus!=="connected"){return}this.title.label=this._trans.__("Terminal %1",this.session.name);this._setSessionSize();if(this._options.initialCommand){this.session.send({type:"stdin",content:[this._options.initialCommand+"\r"]})}this.session.connectionStatusChanged.disconnect(this._initialConnection,this)}_initializeTerm(){const e=this._term;e.onData((e=>{if(this.isDisposed){return}this.session.send({type:"stdin",content:[e]})}));e.onTitleChange((e=>{this.title.label=e}));if(a.Platform.IS_MAC){return}e.attachCustomKeyEventHandler((t=>{if(t.ctrlKey&&t.key==="c"&&e.hasSelection()){return false}if(t.ctrlKey&&t.key==="v"&&this._options.pasteWithCtrlV){return false}return true}))}_onMessage(e,t){switch(t.type){case"stdout":if(t.content){this._term.write(t.content[0])}break;case"disconnect":this._term.write("\r\n\r\n[Finished… Term Session]\r\n");break;default:break}}_resizeTerminal(){if(this._options.autoFit){this._fitAddon.fit()}if(this._offsetWidth===-1){this._offsetWidth=this.node.offsetWidth}if(this._offsetHeight===-1){this._offsetHeight=this.node.offsetHeight}this._setSessionSize();this._needsResize=false}_setSessionSize(){const e=[this._term.rows,this._term.cols,this._offsetHeight,this._offsetWidth];if(!this.isDisposed){this.session.send({type:"set_size",content:e})}}_setThemeAttribute(e){if(this.isDisposed){return}this.node.setAttribute("data-term-theme",e?e.toLowerCase():"inherit")}}var p;(function(e){e.id=0;e.lightTheme={foreground:"#000",background:"#fff",cursor:"#616161",cursorAccent:"#F5F5F5",selectionBackground:"rgba(97, 97, 97, 0.3)",selectionInactiveBackground:"rgba(189, 189, 189, 0.3)"};e.darkTheme={foreground:"#fff",background:"#000",cursor:"#fff",cursorAccent:"#000",selectionBackground:"rgba(255, 255, 255, 0.3)",selectionInactiveBackground:"rgba(238, 238, 238, 0.3)"};e.inheritTheme=()=>({foreground:getComputedStyle(document.body).getPropertyValue("--jp-ui-font-color0").trim(),background:getComputedStyle(document.body).getPropertyValue("--jp-layout-color0").trim(),cursor:getComputedStyle(document.body).getPropertyValue("--jp-ui-font-color1").trim(),cursorAccent:getComputedStyle(document.body).getPropertyValue("--jp-ui-inverse-font-color0").trim(),selectionBackground:getComputedStyle(document.body).getPropertyValue("--jp-layout-color3").trim(),selectionInactiveBackground:getComputedStyle(document.body).getPropertyValue("--jp-layout-color2").trim()});function t(t){switch(t){case"light":return e.lightTheme;case"dark":return e.darkTheme;case"inherit":default:return e.inheritTheme()}}e.getXTermTheme=t})(p||(p={}));(function(e){let t=false;let i;let s;let o;let r;function a(){const e=document.createElement("canvas");const t=e.getContext("webgl")||e.getContext("experimental-webgl");try{return t instanceof WebGLRenderingContext}catch(n){return false}}function l(e){let n=new r;e.loadAddon(n);if(t){n.onContextLoss((t=>{console.debug("WebGL context lost - reinitialize Xtermjs renderer.");n.dispose();l(e)}))}}async function d(e){var d;if(!i){t=a();const[e,l,c,h]=await Promise.all([n.e(2320).then(n.t.bind(n,12320,23)),n.e(2617).then(n.t.bind(n,12617,23)),t?n.e(292).then(n.t.bind(n,90292,23)):n.e(9421).then(n.t.bind(n,9421,23)),n.e(7511).then(n.t.bind(n,67511,23))]);i=e.Terminal;s=l.FitAddon;r=(d=c.WebglAddon)!==null&&d!==void 0?d:c.CanvasAddon;o=h.WebLinksAddon}const c=new i(e);l(c);const h=new s;c.loadAddon(h);c.loadAddon(new o);return[c,h]}e.createTerminal=d})(p||(p={}))},37881:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>l});var i=n(10759);var s=n.n(i);var o=n(6958);var r=n.n(o);const a={id:"@jupyterlab/theme-dark-extension:plugin",description:"Adds a dark theme.",requires:[i.IThemeManager,o.ITranslator],activate:(e,t,n)=>{const i=n.load("jupyterlab");const s="@jupyterlab/theme-dark-extension/index.css";t.register({name:"JupyterLab Dark",displayName:i.__("JupyterLab Dark"),isLight:false,themeScrollbars:true,load:()=>t.loadCSS(s),unload:()=>Promise.resolve(undefined)})},autoStart:true};const l=a},44413:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>l});var i=n(10759);var s=n.n(i);var o=n(6958);var r=n.n(o);const a={id:"@jupyterlab/theme-light-extension:plugin",description:"Adds a light theme.",requires:[i.IThemeManager,o.ITranslator],activate:(e,t,n)=>{const i=n.load("jupyterlab");const s="@jupyterlab/theme-light-extension/index.css";t.register({name:"JupyterLab Light",displayName:i.__("JupyterLab Light"),isLight:true,themeScrollbars:false,load:()=>t.loadCSS(s),unload:()=>Promise.resolve(undefined)})},autoStart:true};const l=a},7223:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>v});var i=n(74574);var s=n.n(i);var o=n(95811);var r=n.n(o);var a=n(17321);var l=n.n(a);var d=n(6958);var c=n.n(d);var h=n(4148);var u=n.n(h);var p;(function(e){e.displayNumbering="toc:display-numbering";e.displayH1Numbering="toc:display-h1-numbering";e.displayOutputNumbering="toc:display-outputs-numbering";e.showPanel="toc:show-panel";e.toggleCollapse="toc:toggle-collapse"})(p||(p={}));async function m(e,t,n,i,s,o){const r=(n!==null&&n!==void 0?n:d.nullTranslator).load("jupyterlab");let l={...a.TableOfContents.defaultConfig};const c=new a.TableOfContentsPanel(n!==null&&n!==void 0?n:undefined);c.title.icon=h.tocIcon;c.title.caption=r.__("Table of Contents");c.id="table-of-contents";c.node.setAttribute("role","region");c.node.setAttribute("aria-label",r.__("Table of Contents section"));e.commands.addCommand(p.displayH1Numbering,{label:r.__("Show first-level heading number"),execute:()=>{if(c.model){c.model.setConfiguration({numberingH1:!c.model.configuration.numberingH1})}},isEnabled:()=>{var e,t;return(t=(e=c.model)===null||e===void 0?void 0:e.supportedOptions.includes("numberingH1"))!==null&&t!==void 0?t:false},isToggled:()=>{var e,t;return(t=(e=c.model)===null||e===void 0?void 0:e.configuration.numberingH1)!==null&&t!==void 0?t:false}});e.commands.addCommand(p.displayNumbering,{label:r.__("Show heading number in the document"),icon:e=>e.toolbar?h.numberingIcon:undefined,execute:()=>{if(c.model){c.model.setConfiguration({numberHeaders:!c.model.configuration.numberHeaders});e.commands.notifyCommandChanged(p.displayNumbering)}},isEnabled:()=>{var e,t;return(t=(e=c.model)===null||e===void 0?void 0:e.supportedOptions.includes("numberHeaders"))!==null&&t!==void 0?t:false},isToggled:()=>{var e,t;return(t=(e=c.model)===null||e===void 0?void 0:e.configuration.numberHeaders)!==null&&t!==void 0?t:false}});e.commands.addCommand(p.displayOutputNumbering,{label:r.__("Show output headings"),execute:()=>{if(c.model){c.model.setConfiguration({includeOutput:!c.model.configuration.includeOutput})}},isEnabled:()=>{var e,t;return(t=(e=c.model)===null||e===void 0?void 0:e.supportedOptions.includes("includeOutput"))!==null&&t!==void 0?t:false},isToggled:()=>{var e,t;return(t=(e=c.model)===null||e===void 0?void 0:e.configuration.includeOutput)!==null&&t!==void 0?t:false}});e.commands.addCommand(p.showPanel,{label:r.__("Table of Contents"),execute:()=>{e.shell.activateById(c.id)}});function u(e){return e.headings.some((e=>{var t;return!((t=e.collapsed)!==null&&t!==void 0?t:false)}))}e.commands.addCommand(p.toggleCollapse,{label:()=>c.model&&!u(c.model)?r.__("Expand All Headings"):r.__("Collapse All Headings"),icon:e=>e.toolbar?c.model&&!u(c.model)?h.expandAllIcon:h.collapseAllIcon:undefined,execute:()=>{if(c.model){if(u(c.model)){c.model.toggleCollapse({collapsed:true})}else{c.model.toggleCollapse({collapsed:false})}}},isEnabled:()=>c.model!==null});const m=new a.TableOfContentsTracker;if(i){i.add(c,"@jupyterlab/toc:plugin")}let f;if(o){try{f=await o.load(g.id);const t=t=>{const n=t.composite;for(const e of[...Object.keys(l)]){const t=n[e];if(t!==undefined){l[e]=t}}if(s){for(const e of s.widgets("main")){const t=m.get(e);if(t){t.setConfiguration(l)}}}else{if(e.shell.currentWidget){const t=m.get(e.shell.currentWidget);if(t){t.setConfiguration(l)}}}};if(f){f.changed.connect(t);t(f)}}catch(x){console.error(`Failed to load settings for the Table of Contents extension.\n\n${x}`)}}const v=new h.CommandToolbarButton({commands:e.commands,id:p.displayNumbering,args:{toolbar:true},label:""});v.addClass("jp-toc-numberingButton");c.toolbar.addItem("display-numbering",v);c.toolbar.addItem("spacer",h.Toolbar.createSpacerItem());c.toolbar.addItem("collapse-all",new h.CommandToolbarButton({commands:e.commands,id:p.toggleCollapse,args:{toolbar:true},label:""}));const _=new h.MenuSvg({commands:e.commands});_.addItem({command:p.displayH1Numbering});_.addItem({command:p.displayOutputNumbering});const b=new h.ToolbarButton({tooltip:r.__("More actions…"),icon:h.ellipsesIcon,actualOnClick:true,onClick:()=>{const e=b.node.getBoundingClientRect();_.open(e.x,e.bottom)}});c.toolbar.addItem("submenu",b);e.shell.add(c,"left",{rank:400,type:"Table of Contents"});if(s){s.currentChanged.connect(y)}void e.restored.then((()=>{y()}));return m;function y(){var n;let i=e.shell.currentWidget;if(!i){return}let s=m.get(i);if(!s){s=(n=t.getModel(i,l))!==null&&n!==void 0?n:null;if(s){m.add(i,s)}i.disposed.connect((()=>{s===null||s===void 0?void 0:s.dispose()}))}if(c.model){c.model.headingsChanged.disconnect(C);c.model.collapseChanged.disconnect(C)}c.model=s;if(c.model){c.model.headingsChanged.connect(C);c.model.collapseChanged.connect(C)}w()}function w(){e.commands.notifyCommandChanged(p.displayNumbering);e.commands.notifyCommandChanged(p.toggleCollapse)}function C(){e.commands.notifyCommandChanged(p.toggleCollapse)}}const g={id:"@jupyterlab/toc-extension:registry",description:"Provides the table of contents registry.",autoStart:true,provides:a.ITableOfContentsRegistry,activate:()=>new a.TableOfContentsRegistry};const f={id:"@jupyterlab/toc-extension:tracker",description:"Adds the table of content widget and provides its tracker.",autoStart:true,provides:a.ITableOfContentsTracker,requires:[a.ITableOfContentsRegistry],optional:[d.ITranslator,i.ILayoutRestorer,i.ILabShell,o.ISettingRegistry],activate:m};const v=[g,f]},4002:(e,t,n)=>{"use strict";var i=n(34849);var s=n(90516);var o=n(99434);var r=n(93379);var a=n.n(r);var l=n(7795);var d=n.n(l);var c=n(90569);var h=n.n(c);var u=n(3565);var p=n.n(u);var m=n(19216);var g=n.n(m);var f=n(44589);var v=n.n(f);var _=n(8147);var b={};b.styleTagTransform=v();b.setAttributes=p();b.insert=h().bind(null,"head");b.domAPI=d();b.insertStyleElement=g();var y=a()(_.Z,b);const w=_.Z&&_.Z.locals?_.Z.locals:undefined},33220:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ITableOfContentsRegistry:()=>h,ITableOfContentsTracker:()=>u,TableOfContents:()=>p,TableOfContentsFactory:()=>a,TableOfContentsItem:()=>_,TableOfContentsModel:()=>m,TableOfContentsPanel:()=>w,TableOfContentsRegistry:()=>S,TableOfContentsTracker:()=>k,TableOfContentsTree:()=>b,TableOfContentsUtils:()=>s,TableOfContentsWidget:()=>y});var i={};n.r(i);n.d(i,{getHeadingId:()=>R,getHeadings:()=>N,isMarkdown:()=>B});var s={};n.r(s);n.d(s,{Markdown:()=>i,NUMBERING_CLASS:()=>j,addPrefix:()=>T,clearNumbering:()=>P,filterHeadings:()=>M,getHTMLHeadings:()=>I,getPrefix:()=>D,isHTML:()=>E});var o=n(20501);const r=1e3;class a{constructor(e){this.tracker=e}isApplicable(e){if(!this.tracker.has(e)){return false}return true}createNew(e,t){const n=this._createNew(e,t);const i=e.context;const s=()=>{n.refresh().catch((e=>{console.error("Failed to update the table of contents.",e)}))};const a=new o.ActivityMonitor({signal:i.model.contentChanged,timeout:r});a.activityStopped.connect(s);const l=()=>{n.title=o.PathExt.basename(i.localPath)};i.pathChanged.connect(l);i.ready.then((()=>{l();s()})).catch((e=>{console.error(`Failed to initiate headings for ${i.localPath}.`)}));e.disposed.connect((()=>{a.activityStopped.disconnect(s);i.pathChanged.disconnect(l)}));return n}}var l=n(4148);var d=n(5596);var c=n(71372);const h=new d.Token("@jupyterlab/toc:ITableOfContentsRegistry","A service to register table of content factory.");const u=new d.Token("@jupyterlab/toc:ITableOfContentsTracker","A widget tracker for table of contents.");var p;(function(e){e.defaultConfig={baseNumbering:1,maximalDepth:4,numberingH1:true,numberHeaders:false,includeOutput:true,syncCollapseState:false}})(p||(p={}));class m extends l.VDomModel{constructor(e,t){super();this.widget=e;this._activeHeading=null;this._activeHeadingChanged=new c.Signal(this);this._collapseChanged=new c.Signal(this);this._configuration=t!==null&&t!==void 0?t:{...p.defaultConfig};this._headings=new Array;this._headingsChanged=new c.Signal(this);this._isActive=false;this._isRefreshing=false;this._needsRefreshing=false}get activeHeading(){return this._activeHeading}get activeHeadingChanged(){return this._activeHeadingChanged}get collapseChanged(){return this._collapseChanged}get configuration(){return this._configuration}get headings(){return this._headings}get headingsChanged(){return this._headingsChanged}get isActive(){return this._isActive}set isActive(e){this._isActive=e;if(this._isActive&&!this.isAlwaysActive){this.refresh().catch((e=>{console.error("Failed to refresh ToC model.",e)}))}}get isAlwaysActive(){return false}get supportedOptions(){return["maximalDepth"]}get title(){return this._title}set title(e){if(e!==this._title){this._title=e;this.stateChanged.emit()}}async refresh(){if(this._isRefreshing){this._needsRefreshing=true;return Promise.resolve()}this._isRefreshing=true;try{const e=await this.getHeadings();if(this._needsRefreshing){this._needsRefreshing=false;this._isRefreshing=false;return this.refresh()}if(e&&!g.areHeadingsEqual(e,this._headings)){this._headings=e;this.stateChanged.emit();this._headingsChanged.emit()}}finally{this._isRefreshing=false}}setActiveHeading(e,t=true){if(this._activeHeading!==e){this._activeHeading=e;this.stateChanged.emit();if(t){this._activeHeadingChanged.emit(e)}}}setConfiguration(e){const t={...this._configuration,...e};if(!d.JSONExt.deepEqual(this._configuration,t)){this._configuration=t;this.refresh().catch((e=>{console.error("Failed to update the table of contents.",e)}))}}toggleCollapse(e){var t,n;if(e.heading){e.heading.collapsed=(t=e.collapsed)!==null&&t!==void 0?t:!e.heading.collapsed;this.stateChanged.emit();this._collapseChanged.emit(e.heading)}else{const t=(n=e.collapsed)!==null&&n!==void 0?n:!this.headings.some((e=>{var t;return!((t=e.collapsed)!==null&&t!==void 0?t:false)}));this.headings.forEach((e=>e.collapsed=t));this.stateChanged.emit();this._collapseChanged.emit(null)}}}var g;(function(e){function t(e,t){if(e.length===t.length){for(let n=0;n{if(!e.defaultPrevented){e.preventDefault();s(n)}}},v.createElement("button",{className:"jp-tocItem-collapser",onClick:e=>{e.preventDefault();i(n)},style:{visibility:e?"visible":"hidden"}},n.collapsed?v.createElement(l.caretRightIcon.react,{tag:"span",width:"20px"}):v.createElement(l.caretDownIcon.react,{tag:"span",width:"20px"})),v.createElement("span",{className:"jp-tocItem-content",title:n.text,...n.dataset},n.prefix,n.text)),e&&!n.collapsed&&v.createElement("ol",null,e))}}class b extends v.PureComponent{render(){const{documentType:e}=this.props;return v.createElement("ol",{className:"jp-TableOfContents-content",...{"data-document-type":e}},this.buildTree())}buildTree(){if(this.props.headings.length===0){return[]}const e=t=>{const n=this.props.headings;const i=new Array;const s=n[t];let o=t+1;while(o{this.model.toggleCollapse({heading:e})},setActiveHeading:e=>{this.model.setActiveHeading(e)}})}}class w extends l.SidePanel{constructor(e){super({content:new f.Panel,translator:e});this._model=null;this.addClass("jp-TableOfContents");this._title=new C.Header(this._trans.__("Table of Contents"));this.header.addWidget(this._title);this._treeview=new y({placeholderHeadline:this._trans.__("No Headings"),placeholderText:this._trans.__("The table of contents shows headings in notebooks and supported files.")});this._treeview.addClass("jp-TableOfContents-tree");this.content.addWidget(this._treeview)}get model(){return this._model}set model(e){var t,n;if(this._model!==e){(t=this._model)===null||t===void 0?void 0:t.stateChanged.disconnect(this._onTitleChanged,this);this._model=e;if(this._model){this._model.isActive=this.isVisible}(n=this._model)===null||n===void 0?void 0:n.stateChanged.connect(this._onTitleChanged,this);this._onTitleChanged();this._treeview.model=this._model}}onAfterHide(e){super.onAfterHide(e);if(this._model){this._model.isActive=false}}onBeforeShow(e){super.onBeforeShow(e);if(this._model){this._model.isActive=true}}_onTitleChanged(){var e,t;this._title.setTitle((t=(e=this._model)===null||e===void 0?void 0:e.title)!==null&&t!==void 0?t:this._trans.__("Table of Contents"))}}var C;(function(e){class t extends f.Widget{constructor(e){const t=document.createElement("h2");t.textContent=e;t.classList.add("jp-text-truncated");super({node:t});this._title=t}setTitle(e){this._title.textContent=e}}e.Header=t})(C||(C={}));var x=n(26512);class S{constructor(){this._generators=new Map;this._idCounter=0}getModel(e,t){for(const n of this._generators.values()){if(n.isApplicable(e)){return n.createNew(e,t)}}}add(e){const t=this._idCounter++;this._generators.set(t,e);return new x.DisposableDelegate((()=>{this._generators.delete(t)}))}}class k{constructor(){this.modelMapping=new WeakMap}add(e,t){this.modelMapping.set(e,t)}get(e){const t=this.modelMapping.get(e);return!t||t.isDisposed?null:t}}const j="numbering-entry";function M(e,t,n=[]){const i={...p.defaultConfig,...t};const s=n;let o=s.length;const r=new Array;for(const a of e){if(a.skip){continue}const e=a.level;if(e>0&&e<=i.maximalDepth){const t=D(e,o,s,i);o=e;r.push({...a,prefix:t})}}return r}function E(e){return e==="text/html"}function I(e,t=true){var n;const i=document.createElement("div");i.innerHTML=e;const s=new Array;const o=i.querySelectorAll("h1, h2, h3, h4, h5, h6");for(const r of o){const e=parseInt(r.tagName[1],10);s.push({text:(n=r.textContent)!==null&&n!==void 0?n:"",level:e,id:r===null||r===void 0?void 0:r.getAttribute("id"),skip:r.classList.contains("jp-toc-ignore")||r.classList.contains("tocSkip")})}return s}function T(e,t,n){let i=e.querySelector(t);if(!i){return null}if(!i.querySelector(`span.${j}`)){L(i,n)}else{const s=e.querySelectorAll(t);for(const e of s){if(!e.querySelector(`span.${j}`)){i=e;L(e,n);break}}}return i}function D(e,t,n,i){const{baseNumbering:s,numberingH1:o,numberHeaders:r}=i;let a="";if(r){const i=o?1:2;if(e>t){for(let i=t;ie!==null&&e!==void 0?e:0)).join(".")+". "}else{if(n.length>1){a=n.slice(1).map((e=>e!==null&&e!==void 0?e:0)).join(".")+". "}}}return a}function L(e,t){e.insertAdjacentHTML("afterbegin",`${t}`)}function P(e){e===null||e===void 0?void 0:e.querySelectorAll(`span.${j}`).forEach((e=>{e.remove()}))}var A=n(23635);async function R(e,t,n){try{const i=await e.render(t);if(!i){return null}const s=document.createElement("div");s.innerHTML=i;const o=s.querySelector(`h${n}`);if(!o){return null}return A.renderMarkdown.createHeaderId(o)}catch(i){console.error("Failed to parse a heading.",i)}return null}function N(e){const t=e.split("\n");const n=new Array;let i;let s=0;if(t[s]==="---"){for(let e=s+1;e(.*)<\/h\1>/i);if(n){return{text:n[2],level:parseInt(n[1],10),skip:H.test(n[0]),raw:e}}return null}function z(e){return e.replace(/\[(.+)\]\(.+\)/g,"$1")}const H=/<\w+\s(.*?\s)?class="(.*?\s)?(jp-toc-ignore|tocSkip)(\s.*?)?"(\s.*?)?>/},99434:(e,t,n)=>{"use strict";var i=n(32902);var s=n(34849);var o=n(79536);var r=n(98896);var a=n(94683);var l=n(93379);var d=n.n(l);var c=n(7795);var h=n.n(c);var u=n(90569);var p=n.n(u);var m=n(3565);var g=n.n(m);var f=n(19216);var v=n.n(f);var _=n(44589);var b=n.n(_);var y=n(1027);var w={};w.styleTagTransform=b();w.setAttributes=g();w.insert=p().bind(null,"head");w.domAPI=h();w.insertStyleElement=v();var C=d()(y.Z,w);const x=y.Z&&y.Z.locals?y.Z.locals:undefined},3326:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>M});var i=n(81201);var s=n.n(i);var o=n(20501);var r=n.n(o);var a=n(31490);var l=n.n(a);var d=n(54729);var c=n.n(d);var h=n(23635);var u=n.n(h);var p=n(769);var m=n.n(p);var g=n(6958);var f=n.n(g);var v=n(58740);var _=n.n(v);var b=n(85448);var y=n.n(b);var w;(function(e){e.dismiss="tooltip:dismiss";e.launchConsole="tooltip:launch-console";e.launchNotebook="tooltip:launch-notebook";e.launchFile="tooltip:launch-file"})(w||(w={}));const C={id:"@jupyterlab/tooltip-extension:manager",description:"Provides the tooltip manager.",autoStart:true,optional:[g.ITranslator],provides:p.ITooltipManager,activate:(e,t)=>{const n=(t!==null&&t!==void 0?t:g.nullTranslator).load("jupyterlab");let i=null;e.commands.addCommand(w.dismiss,{label:n.__("Dismiss the tooltip"),execute:()=>{if(i){i.dispose();i=null}}});return{invoke(e){const t=0;const{anchor:n,editor:s,kernel:o,rendermime:r}=e;if(i){i.dispose();i=null}return E.fetch({detail:t,editor:s,kernel:o}).then((e=>{i=new p.Tooltip({anchor:n,bundle:e,editor:s,rendermime:r});b.Widget.attach(i,document.body)})).catch((()=>{}))}}}};const x={id:"@jupyterlab/tooltip-extension:consoles",description:"Adds the tooltip capability to consoles.",autoStart:true,optional:[g.ITranslator],requires:[p.ITooltipManager,i.IConsoleTracker],activate:(e,t,n,i)=>{const s=(i!==null&&i!==void 0?i:g.nullTranslator).load("jupyterlab");e.commands.addCommand(w.launchConsole,{label:s.__("Open the tooltip"),execute:()=>{var e,i;const s=n.currentWidget;if(!s){return}const o=s.console;const r=(e=o.promptCell)===null||e===void 0?void 0:e.editor;const a=(i=o.sessionContext.session)===null||i===void 0?void 0:i.kernel;const l=o.rendermime;if(!!r&&!!a&&!!l){return t.invoke({anchor:o,editor:r,kernel:a,rendermime:l})}}})}};const S={id:"@jupyterlab/tooltip-extension:notebooks",description:"Adds the tooltip capability to notebooks.",autoStart:true,optional:[g.ITranslator],requires:[p.ITooltipManager,d.INotebookTracker],activate:(e,t,n,i)=>{const s=(i!==null&&i!==void 0?i:g.nullTranslator).load("jupyterlab");e.commands.addCommand(w.launchNotebook,{label:s.__("Open the tooltip"),execute:()=>{var e,i;const s=n.currentWidget;if(!s){return}const o=s.content;const r=(e=o.activeCell)===null||e===void 0?void 0:e.editor;const a=(i=s.sessionContext.session)===null||i===void 0?void 0:i.kernel;const l=o.rendermime;if(!!r&&!!a&&!!l){return t.invoke({anchor:o,editor:r,kernel:a,rendermime:l})}}})}};const k={id:"@jupyterlab/tooltip-extension:files",description:"Adds the tooltip capability to file editors.",autoStart:true,optional:[g.ITranslator],requires:[p.ITooltipManager,a.IEditorTracker,h.IRenderMimeRegistry],activate:(e,t,n,i,s)=>{const o=(s!==null&&s!==void 0?s:g.nullTranslator).load("jupyterlab");const r={};const a=e.serviceManager.sessions;const l=(e,t)=>{n.forEach((e=>{const n=(0,v.find)(t,(t=>e.context.path===t.path));if(n){const t=r[e.id];if(t&&t.id===n.id){return}if(t){delete r[e.id];t.dispose()}const i=a.connectTo({model:n});r[e.id]=i}else{const t=r[e.id];if(t){t.dispose();delete r[e.id]}}}))};l(a,a.running());a.runningChanged.connect(l);n.widgetAdded.connect(((e,t)=>{t.disposed.connect((e=>{const t=r[e.id];if(t){t.dispose();delete r[e.id]}}))}));e.commands.addCommand(w.launchFile,{label:o.__("Open the tooltip"),execute:async()=>{const e=n.currentWidget;const s=e&&r[e.id]&&r[e.id].kernel;if(!s){return}const o=e.content;const a=o===null||o===void 0?void 0:o.editor;if(!!a&&!!s&&!!i){return t.invoke({anchor:o,editor:a,kernel:s,rendermime:i})}}})}};const j=[C,x,S,k];const M=j;var E;(function(e){let t=0;function n(e){const{detail:n,editor:i,kernel:s}=e;const r=i.model.sharedModel.getSource();const a=i.getCursorPosition();const l=o.Text.jsIndexToCharIndex(i.getOffsetAt(a),r);if(!r||!s){return Promise.reject(void 0)}const d={code:r,cursor_pos:l,detail_level:n||0};const c=++t;return s.requestInspect(d).then((e=>{const n=e.content;if(c!==t){return Promise.reject(void 0)}if(n.status!=="ok"||!n.found){return Promise.reject(void 0)}return Promise.resolve(n.data)}))}e.fetch=n})(E||(E={}))},57385:(e,t,n)=>{"use strict";var i=n(32902);var s=n(49914);var o=n(98896);var r=n(90516);var a=n(42650);var l=n(33379);var d=n(88164);var c=n(34849);var h=n(93379);var u=n.n(h);var p=n(7795);var m=n.n(p);var g=n(90569);var f=n.n(g);var v=n(3565);var _=n.n(v);var b=n(19216);var y=n.n(b);var w=n(44589);var C=n.n(w);var x=n(37497);var S={};S.styleTagTransform=C();S.setAttributes=_();S.insert=f().bind(null,"head");S.domAPI=m();S.insertStyleElement=y();var k=u()(x.Z,S);const j=x.Z&&x.Z.locals?x.Z.locals:undefined},43906:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ITooltipManager:()=>s,Tooltip:()=>m});var i=n(5596);const s=new i.Token("@jupyterlab/tooltip:ITooltipManager","A service for the tooltip manager for the application. Use this to allow your extension to invoke a tooltip.");var o=n(4148);var r=n(23635);var a=n(85448);const l="jp-Tooltip";const d="jp-Tooltip-content";const c="jp-mod-tooltip";const h=20;const u=250;const p=true;class m extends a.Widget{constructor(e){super();this._content=null;const t=this.layout=new a.PanelLayout;const n=new r.MimeModel({data:e.bundle});this.anchor=e.anchor;this.addClass(l);this.hide();this._editor=e.editor;this._position=e.position;this._rendermime=e.rendermime;const i=this._rendermime.preferredMimeType(e.bundle,"any");if(!i){return}this._content=this._rendermime.createRenderer(i);this._content.renderModel(n).then((()=>this._setGeometry())).catch((e=>console.error("tooltip rendering failed",e)));this._content.addClass(d);t.addWidget(this._content)}dispose(){if(this._content){this._content.dispose();this._content=null}super.dispose()}handleEvent(e){if(this.isHidden||this.isDisposed){return}const{node:t}=this;const n=e.target;switch(e.type){case"keydown":if(t.contains(n)){return}this.dispose();break;case"mousedown":if(t.contains(n)){this.activate();return}this.dispose();break;case"scroll":this._evtScroll(e);break;default:break}}onActivateRequest(e){this.node.tabIndex=0;this.node.focus()}onAfterAttach(e){document.body.classList.add(c);document.addEventListener("keydown",this,p);document.addEventListener("mousedown",this,p);this.anchor.node.addEventListener("scroll",this,p);this.update()}onBeforeDetach(e){document.body.classList.remove(c);document.removeEventListener("keydown",this,p);document.removeEventListener("mousedown",this,p);this.anchor.node.removeEventListener("scroll",this,p)}onUpdateRequest(e){if(this.isHidden){this.show()}this._setGeometry();super.onUpdateRequest(e)}_evtScroll(e){if(this.node.contains(e.target)){return}this.update()}_getTokenPosition(){const e=this._editor;const t=e.getCursorPosition();const n=e.getOffsetAt(t);const i=e.getLine(t.line);if(!i){return}const s=i.substring(0,n).split(/\W+/);const o=s[s.length-1];const r=o?n-o.length:n;return e.getPositionAt(r)}_setGeometry(){const e=this._position?this._position:this._getTokenPosition();if(!e){return}const t=this._editor;const n=t.getCoordinateForPosition(e);const i=window.getComputedStyle(this.node);const s=parseInt(i.paddingLeft,10)||0;const r=t.host.closest(".jp-MainAreaWidget > .lm-Widget")||t.host;o.HoverBox.setGeometry({anchor:n,host:r,maxHeight:u,minHeight:h,node:this.node,offset:{horizontal:-1*s},privilege:"below",outOfViewDisplay:{top:"stick-inside",bottom:"stick-inside"},style:i})}}},37556:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>v});var i=n(74574);var s=n.n(i);var o=n(10759);var r=n.n(o);var a=n(66899);var l=n.n(a);var d=n(95811);var c=n.n(d);var h=n(6958);var u=n.n(h);const p="@jupyterlab/translation-extension:plugin";const m={id:"@jupyterlab/translation:translator",description:"Provides the application translation object.",autoStart:true,requires:[i.JupyterFrontEnd.IPaths,d.ISettingRegistry],optional:[i.ILabShell],provides:h.ITranslator,activate:async(e,t,n,i)=>{const s=await n.load(p);const r=s.get("locale").composite;let a=s.get("stringsPrefix").composite;const l=s.get("displayStringsPrefix").composite;a=l?a:"";const d=e.serviceManager.serverSettings;const c=new h.TranslationManager(t.urls.translations,a,d);await c.fetch(r);if(i){i.translator=c}o.Dialog.translator=c;return c}};const g={id:p,description:"Adds translation commands and settings.",requires:[d.ISettingRegistry,h.ITranslator],optional:[a.IMainMenu,o.ICommandPalette],autoStart:true,activate:(e,t,n,i,s)=>{const r=n.load("jupyterlab");const{commands:a}=e;let l;function d(e){l=e.get("locale").composite}t.load(p).then((t=>{var n;d(t);if(l!=="default"){document.documentElement.lang=(l!==null&&l!==void 0?l:"").replace("_","-")}else{document.documentElement.lang="en-US"}t.changed.connect(d);const c=i?(n=i.settingsMenu.items.find((e=>{var t;return e.type==="submenu"&&((t=e.submenu)===null||t===void 0?void 0:t.id)==="jp-mainmenu-settings-language"})))===null||n===void 0?void 0:n.submenu:null;let u;const p=e.serviceManager.serverSettings;(0,h.requestTranslationsAPI)("","",{},p).then((e=>{for(const n in e["data"]){const i=e["data"][n];const l=i.displayName;const d=i.nativeName;const h=l===d;const p=h?`${l}`:`${l} - ${d}`;u=`jupyterlab-translation:${n}`;a.addCommand(u,{label:p,caption:p,isEnabled:()=>!h,isVisible:()=>true,isToggled:()=>h,execute:()=>(0,o.showDialog)({title:r.__("Change interface language?"),body:r.__("After changing the interface language to %1, you will need to reload JupyterLab to see the changes.",p),buttons:[o.Dialog.cancelButton({label:r.__("Cancel")}),o.Dialog.okButton({label:r.__("Change and reload")})]}).then((e=>{if(e.button.accept){t.set("locale",n).then((()=>{window.location.reload()})).catch((e=>{console.error(e)}))}}))});if(c){c.addItem({command:u,args:{}})}if(s){s.addItem({category:r.__("Display Languages"),command:u})}}})).catch((e=>{console.error(`Available locales errored!\n${e}`)}))})).catch((e=>{console.error(`The jupyterlab translation extension appears to be missing.\n${e}`)}))}};const f=[m,g];const v=f},65540:(e,t,n)=>{"use strict";var i=n(79536);var s=n(90516);var o=n(74518)},2285:(e,t,n)=>{"use strict";n.r(t);n.d(t,{Gettext:()=>s,ITranslator:()=>f,ITranslatorConnector:()=>m,TranslationManager:()=>v,TranslatorConnector:()=>g,nullTranslator:()=>a,requestTranslationsAPI:()=>p});function i(e){return e.replace("-","_")}class s{constructor(e){e=e||{};this._defaults={domain:"messages",locale:document.documentElement.getAttribute("lang")||"en",pluralFunc:function(e){return{nplurals:2,plural:e!=1?1:0}},contextDelimiter:String.fromCharCode(4),stringsPrefix:""};this._locale=(e.locale||this._defaults.locale).replace("_","-");this._domain=i(e.domain||this._defaults.domain);this._contextDelimiter=e.contextDelimiter||this._defaults.contextDelimiter;this._stringsPrefix=e.stringsPrefix||this._defaults.stringsPrefix;this._pluralFuncs={};this._dictionary={};this._pluralForms={};if(e.messages){this._dictionary[this._domain]={};this._dictionary[this._domain][this._locale]=e.messages}if(e.pluralForms){this._pluralForms[this._locale]=e.pluralForms}}setContextDelimiter(e){this._contextDelimiter=e}getContextDelimiter(){return this._contextDelimiter}setLocale(e){this._locale=e.replace("_","-")}getLocale(){return this._locale}setDomain(e){this._domain=i(e)}getDomain(){return this._domain}setStringsPrefix(e){this._stringsPrefix=e}getStringsPrefix(){return this._stringsPrefix}static strfmt(e,...t){return e.replace(/%%/g,"%% ").replace(/%(\d+)/g,(function(e,n){return t[n-1]})).replace(/%% /g,"%")}loadJSON(e,t){if(!e[""]||!e[""]["language"]||!e[""]["pluralForms"]){throw new Error(`Wrong jsonData, it must have an empty key ("") with "language" and "pluralForms" information: ${e}`)}t=i(t);let n=e[""];let s=JSON.parse(JSON.stringify(e));delete s[""];this.setMessages(t||this._defaults.domain,n["language"],s,n["pluralForms"])}__(e,...t){return this.gettext(e,...t)}_n(e,t,n,...i){return this.ngettext(e,t,n,...i)}_p(e,t,...n){return this.pgettext(e,t,...n)}_np(e,t,n,i,...s){return this.npgettext(e,t,n,i,...s)}gettext(e,...t){return this.dcnpgettext("","",e,"",0,...t)}ngettext(e,t,n,...i){return this.dcnpgettext("","",e,t,n,...i)}pgettext(e,t,...n){return this.dcnpgettext("",e,t,"",0,...n)}npgettext(e,t,n,i,...s){return this.dcnpgettext("",e,t,n,i,...s)}dcnpgettext(e,t,n,s,o,...r){e=i(e)||this._domain;let a;let l=t?t+this._contextDelimiter+n:n;let d={pluralForm:false};let c=false;let h=this._locale;let u=this.expandLocale(this._locale);for(let i in u){h=u[i];c=this._dictionary[e]&&this._dictionary[e][h]&&this._dictionary[e][h][l];if(s){c=c&&this._dictionary[e][h][l].length>1}else{c=c&&this._dictionary[e][h][l].length==1}if(c){d.locale=h;break}}if(!c){a=[n];d.pluralFunc=this._defaults.pluralFunc}else{a=this._dictionary[e][h][l]}if(!s){return this.t(a,o,d,...r)}d.pluralForm=true;let p=c?a:[n,s];return this.t(p,o,d,...r)}expandLocale(e){let t=[e];let n=e.lastIndexOf("-");while(n>0){e=e.slice(0,n);t.push(e);n=e.lastIndexOf("-")}return t}getPluralFunc(e){let t=new RegExp("^\\s*nplurals\\s*=\\s*[0-9]+\\s*;\\s*plural\\s*=\\s*(?:\\s|[-\\?\\|&=!<>+*/%:;n0-9_()])+");if(!t.test(e))throw new Error(s.strfmt('The plural form "%1" is not valid',e));return new Function("n","let plural, nplurals; "+e+" return { nplurals: nplurals, plural: (plural === true ? 1 : (plural ? plural : 0)) };")}removeContext(e){if(e.indexOf(this._contextDelimiter)!==-1){let t=e.split(this._contextDelimiter);return t[1]}return e}t(e,t,n,...i){if(!n.pluralForm)return this._stringsPrefix+s.strfmt(this.removeContext(e[0]),...i);let o;if(n.pluralFunc){o=n.pluralFunc(t)}else if(!this._pluralFuncs[n.locale||""]){this._pluralFuncs[n.locale||""]=this.getPluralFunc(this._pluralForms[n.locale||""]);o=this._pluralFuncs[n.locale||""](t)}else{o=this._pluralFuncs[n.locale||""](t)}if("undefined"===typeof!o.plural||o.plural>o.nplurals||e.length<=o.plural)o.plural=0;return this._stringsPrefix+s.strfmt(this.removeContext(e[o.plural]),...[t].concat(i))}setMessages(e,t,n,s){e=i(e);if(s)this._pluralForms[t]=s;if(!this._dictionary[e])this._dictionary[e]={};this._dictionary[e][t]=n}}class o{constructor(e){this.languageCode="en";this._languageBundle=e}load(e){return this._languageBundle}}class r{__(e,...t){return this.gettext(e,...t)}_n(e,t,n,...i){return this.ngettext(e,t,n,...i)}_p(e,t,...n){return this.pgettext(e,t,...n)}_np(e,t,n,i,...s){return this.npgettext(e,t,n,i,...s)}gettext(e,...t){return s.strfmt(e,...t)}ngettext(e,t,n,...i){return s.strfmt(n==1?e:t,...[n].concat(i))}pgettext(e,t,...n){return s.strfmt(t,...n)}npgettext(e,t,n,i,...s){return this.ngettext(t,n,i,...s)}dcnpgettext(e,t,n,i,s,...o){return this.ngettext(n,i,s,...o)}}const a=new o(new r);var l=n(22971);var d=n(5596);var c=n(20501);var h=n(96306);const u="api/translations";async function p(e="",t="",n={},i=undefined){const s=i!==null&&i!==void 0?i:h.ServerConnection.makeSettings();e=e||`${s.appUrl}/${u}`;const o=c.URLExt.join(s.baseUrl,e,t);let r;try{r=await h.ServerConnection.makeRequest(o,n,s)}catch(l){throw new h.ServerConnection.NetworkError(l)}let a=await r.text();if(a.length>0){try{a=JSON.parse(a)}catch(l){console.error("Not a JSON response body.",r)}}if(!r.ok){throw new h.ServerConnection.ResponseError(r,a.message||a)}return a}const m=new d.Token("@jupyterlab/translation:ITranslatorConnector","A service to connect to the server translation endpoint.");class g extends l.DataConnector{constructor(e="",t){super();this._translationsUrl=e;this._serverSettings=t}async fetch(e){return p(this._translationsUrl,e.language,{},this._serverSettings)}}const f=new d.Token("@jupyterlab/translation:ITranslator","A service to translate strings.");class v{constructor(e="",t,n){this._domainData={};this._translationBundles={};this._connector=new g(e,n);this._stringsPrefix=t||"";this._englishBundle=new s({stringsPrefix:this._stringsPrefix})}get languageCode(){return this._currentLocale}async fetch(e){var t,n,i,s;this._languageData=await this._connector.fetch({language:e});if(this._languageData&&e==="default"){try{for(const e of Object.values((t=this._languageData.data)!==null&&t!==void 0?t:{})){this._currentLocale=e[""]["language"].replace("_","-");break}}catch(r){this._currentLocale="en"}}else{this._currentLocale=e}this._domainData=(i=(n=this._languageData)===null||n===void 0?void 0:n.data)!==null&&i!==void 0?i:{};const o=(s=this._languageData)===null||s===void 0?void 0:s.message;if(o&&e!=="en"){console.warn(o)}}load(e){if(this._domainData){if(this._currentLocale=="en"){return this._englishBundle}else{e=i(e);if(!(e in this._translationBundles)){let t=new s({domain:e,locale:this._currentLocale,stringsPrefix:this._stringsPrefix});if(e in this._domainData){let n=this._domainData[e][""];if("plural_forms"in n){n.pluralForms=n.plural_forms;delete n.plural_forms;this._domainData[e][""]=n}t.loadJSON(this._domainData[e],e)}this._translationBundles[e]=t}return this._translationBundles[e]}}else{return this._englishBundle}}}},85907:(e,t,n)=>{"use strict";n.r(t);n.d(t,{default:()=>a});var i=n(4148);var s=n.n(i);const o={id:"@jupyterlab/ui-components-extension:labicon-manager",description:"Provides the icon manager.",provides:i.ILabIconManager,autoStart:true,activate:e=>Object.create(null)};const r={id:"@jupyterlab/ui-components-extension:form-renderer-registry",description:"Provides the settings form renderer registry.",provides:i.IFormRendererRegistry,autoStart:true,activate:e=>{const t=new i.FormRendererRegistry;return t}};const a=[o,r]},1733:(e,t,n)=>{"use strict";var i=n(34849);var s=n(90516)},70285:(e,t,n)=>{"use strict";n.r(t);n.d(t,{AddButton:()=>bi,Button:()=>c,Collapser:()=>ui,CommandPaletteSvg:()=>js,CommandToolbarButton:()=>is,CommandToolbarButtonComponent:()=>ts,ContextMenuSvg:()=>Es,DEFAULT_STYLE_CLASS:()=>ji,DEFAULT_UI_OPTIONS:()=>fi,DockPanelSvg:()=>Ds,DropButton:()=>_i,FilenameSearcher:()=>hs,FilterBox:()=>cs,FormComponent:()=>ki,FormRendererRegistry:()=>Bs,HTMLSelect:()=>Ei,HTML_SELECT_CLASS:()=>Mi,HoverBox:()=>Rs,IFormRendererRegistry:()=>Ns,IFrame:()=>Ii,ILabIconManager:()=>Os,IRankedMenu:()=>Ai,InputGroup:()=>Di,LabIcon:()=>y,MenuSvg:()=>Is,MoveButton:()=>vi,PanelWithToolbar:()=>as,RankedMenu:()=>Ri,ReactWidget:()=>Hi,ReactiveToolbar:()=>Yi,SidePanel:()=>ms,Spinner:()=>gs,Styling:()=>fs,Switch:()=>_s,TabBarSvg:()=>Ts,TabPanelSvg:()=>Ls,Toolbar:()=>Gi,ToolbarButton:()=>es,ToolbarButtonComponent:()=>Xi,UseSignal:()=>Vi,VDomModel:()=>Ui,VDomRenderer:()=>Wi,WindowedLayout:()=>xs,WindowedList:()=>Cs,WindowedListModel:()=>ws,addAboveIcon:()=>mt,addBelowIcon:()=>gt,addCommandToolbarButtonClass:()=>ns,addIcon:()=>ft,addToolbarButtonClass:()=>Qi,badIcon:()=>C,bellIcon:()=>vt,blankIcon:()=>x,bugDotIcon:()=>_t,bugIcon:()=>bt,buildIcon:()=>yt,caretDownEmptyIcon:()=>wt,caretDownEmptyThinIcon:()=>Ct,caretDownIcon:()=>xt,caretLeftIcon:()=>St,caretRightIcon:()=>kt,caretUpEmptyThinIcon:()=>jt,caretUpIcon:()=>Mt,caseSensitiveIcon:()=>Et,checkIcon:()=>It,circleEmptyIcon:()=>Tt,circleIcon:()=>Dt,classes:()=>a,classesDedupe:()=>l,clearIcon:()=>Lt,closeIcon:()=>Pt,codeCheckIcon:()=>At,codeIcon:()=>Rt,collapseAllIcon:()=>Nt,consoleIcon:()=>Ot,copyIcon:()=>Bt,copyrightIcon:()=>Ft,cutIcon:()=>zt,deleteIcon:()=>Ht,downloadIcon:()=>Wt,duplicateIcon:()=>Vt,editIcon:()=>Ut,ellipsesIcon:()=>$t,errorIcon:()=>qt,expandAllIcon:()=>Kt,extensionIcon:()=>Jt,fastForwardIcon:()=>Zt,fileIcon:()=>Gt,fileUploadIcon:()=>Yt,filterDotIcon:()=>Xt,filterIcon:()=>Qt,filterListIcon:()=>en,folderFavoriteIcon:()=>tn,folderIcon:()=>nn,fuzzySearch:()=>ls,getReactAttrs:()=>d,homeIcon:()=>sn,html5Icon:()=>on,imageIcon:()=>rn,infoIcon:()=>an,inspectorIcon:()=>ln,jsonIcon:()=>dn,juliaIcon:()=>cn,jupyterFaviconIcon:()=>hn,jupyterIcon:()=>un,jupyterlabWordmarkIcon:()=>pn,kernelIcon:()=>mn,keyboardIcon:()=>gn,launchIcon:()=>fn,launcherIcon:()=>vn,lineFormIcon:()=>_n,linkIcon:()=>bn,listIcon:()=>yn,markdownIcon:()=>wn,moveDownIcon:()=>Cn,moveUpIcon:()=>xn,newFolderIcon:()=>Sn,notTrustedIcon:()=>kn,notebookIcon:()=>jn,numberingIcon:()=>Mn,offlineBoltIcon:()=>En,paletteIcon:()=>In,pasteIcon:()=>Tn,pdfIcon:()=>Dn,pythonIcon:()=>Ln,rKernelIcon:()=>Pn,reactIcon:()=>An,redoIcon:()=>Rn,refreshIcon:()=>Nn,regexIcon:()=>On,runIcon:()=>Bn,runningIcon:()=>Fn,saveIcon:()=>zn,searchIcon:()=>Hn,settingsIcon:()=>Wn,shareIcon:()=>Vn,spreadsheetIcon:()=>Un,stopIcon:()=>$n,tabIcon:()=>qn,tableRowsIcon:()=>Kn,tagIcon:()=>Jn,terminalIcon:()=>Zn,textEditorIcon:()=>Gn,tocIcon:()=>Yn,treeViewIcon:()=>Xn,trustedIcon:()=>Qn,undoIcon:()=>ei,updateFilterFunction:()=>ds,userIcon:()=>ti,usersIcon:()=>ni,vegaIcon:()=>ii,wordIcon:()=>si,yamlIcon:()=>oi});var i=n(28416);var s=n.n(i);var o=n(20501);function r(e){return e.map((e=>e&&typeof e==="object"?Object.keys(e).map((t=>!!e[t]&&t)):typeof e==="string"?e.split(/\s+/):[])).reduce(((e,t)=>e.concat(t)),[]).filter((e=>!!e))}function a(...e){return r(e).join(" ")}function l(...e){return[...new Set(r(e))].join(" ")}function d(e,{ignore:t=[]}={}){return e.getAttributeNames().reduce(((n,i)=>{if(i==="style"||t.includes(i)){void 0}else if(i.startsWith("data")){n[i]=e.getAttribute(i)}else{n[o.Text.camelCase(i)]=e.getAttribute(i)}return n}),{})}function c(e){const{minimal:t,small:n,children:i,...o}=e;return s().createElement("button",{...o,className:a(e.className,t?"jp-mod-minimal":"",n?"jp-mod-small":"","jp-Button")},i)}var h=n(71372);var u=n(85448);var p=n(5596);var m=n(20745);const g='\n \n\n';const f='\n \n\n';const v='\n \n\n';var _=n(44570);var b;(function(e){const t={breadCrumb:{container:{$nest:{"&:first-child svg":{bottom:"1px",marginLeft:"0px",position:"relative"},"&:hover":{backgroundColor:"var(--jp-layout-color2)"},[".jp-mod-dropTarget&"]:{backgroundColor:"var(--jp-brand-color2)",opacity:.7}}},element:{borderRadius:"var(--jp-border-radius)",cursor:"pointer",margin:"0px 2px",padding:"0px 2px",height:"16px",width:"16px",verticalAlign:"middle"}},commandPaletteHeader:{container:{height:"14px",margin:"0 14px 0 auto"},element:{height:"14px",width:"14px"},options:{elementPosition:"center"}},commandPaletteItem:{element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},launcherCard:{container:{height:"52px",width:"52px"},element:{height:"52px",width:"52px"},options:{elementPosition:"center"}},launcherSection:{container:{boxSizing:"border-box",marginRight:"12px",height:"32px",width:"32px"},element:{height:"32px",width:"32px"},options:{elementPosition:"center"}},listing:{container:{flex:"0 0 20px",marginRight:"4px",position:"relative"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},listingHeaderItem:{container:{display:"inline",height:"16px",width:"16px"},element:{height:"auto",margin:"-2px 0 0 0",width:"20px"},options:{elementPosition:"center"}},mainAreaTab:{container:{$nest:{".lm-DockPanel-tabBar &":{marginRight:"4px"}}},element:{$nest:{".lm-DockPanel-tabBar &":{height:"14px",width:"14px"}}},options:{elementPosition:"center"}},menuItem:{container:{display:"inline-block",verticalAlign:"middle"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},runningItem:{container:{margin:"0px 4px 0px 4px"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},select:{container:{pointerEvents:"none"},element:{position:"absolute",height:"auto",width:"16px"}},settingsEditor:{container:{display:"flex",flex:"0 0 20px",margin:"0 3px 0 0",position:"relative",height:"20px",width:"20px"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}},sideBar:{element:{height:"auto",width:"20px"},options:{elementPosition:"center"}},splash:{container:{animation:"0.3s fade-in linear forwards",height:"100%",width:"100%",zIndex:1},element:{width:"100px"},options:{elementPosition:"center"}},statusBar:{element:{left:"0px",top:"0px",height:"18px",width:"20px",position:"relative"}},toolbarButton:{container:{display:"inline-block",verticalAlign:"middle"},element:{height:"16px",width:"16px"},options:{elementPosition:"center"}}};function n(e){return{container:{alignItems:"center",display:"flex"},element:{display:"block",...e}}}const i={center:n({margin:"0 auto",width:"100%"}),top:n({margin:"0 0 auto 0"}),right:n({margin:"0 0 0 auto"}),bottom:n({margin:"auto 0 0 0"}),left:n({margin:"0 auto 0 0"}),"top right":n({margin:"0 0 auto auto"}),"bottom right":n({margin:"auto 0 0 auto"}),"bottom left":n({margin:"auto auto 0 0"}),"top left":n({margin:"0 auto 0 auto"})};function s(e){return{element:{height:e,width:e}}}const o={small:s("14px"),normal:s("16px"),large:s("20px"),xlarge:s("24px")};function r(e){return{container:Object.assign({},...e.map((e=>e.container))),element:Object.assign({},...e.map((e=>e.element)))}}function a(e){if(!e){return[]}if(!Array.isArray(e)){e=[e]}return e.map((e=>typeof e==="string"?t[e]:e))}function l(e){const t=Object.assign({},...e.map((e=>e.options)));if(t.elementPosition){e.unshift(i[t.elementPosition])}if(t.elementSize){e.unshift(o[t.elementSize])}return r(e)}function d(e){var t;return(0,_.oB)({...e.container,$nest:{...(t=e.container)===null||t===void 0?void 0:t.$nest,["svg"]:e.element}})}const c=new Map;function h(e){if(!e||Object.keys(e).length===0){return""}let{elementPosition:t,elementSize:n,stylesheet:i,...s}=e;const o={...t&&{elementPosition:t},...n&&{elementSize:n}};const r=typeof i==="string"&&Object.keys(s).length===0;const h=r?[i,t,n].join(","):"";if(r&&c.has(h)){return c.get(h)}const u=a(i);u.push({element:s,options:o});const p=d(l(u));if(r){c.set(h,p)}return p}e.styleClass=h})(b||(b={}));class y{static remove(e){while(e.firstChild){e.firstChild.remove()}e.className="";return e}static resolve({icon:e}){if(e instanceof y){return e}if(typeof e==="string"){const t=y._instances.get(e);if(t){return t}if(y._debug){console.warn(`Lookup failed for icon, creating loading icon. icon: ${e}`)}return new y({name:e,svgstr:v,_loading:true})}return new y(e)}static resolveElement({icon:e,iconClass:t,fallback:n,...i}){if(!w.isResolvable(e)){if(!t&&n){return n.element(i)}i.className=a(t,i.className);return w.blankElement(i)}return y.resolve({icon:e}).element(i)}static resolveReact({icon:e,iconClass:t,fallback:n,...i}){if(!w.isResolvable(e)){if(!t&&n){return s().createElement(n.react,{...i})}i.className=a(t,i.className);return s().createElement(w.blankReact,{...i})}const o=y.resolve({icon:e});return s().createElement(o.react,{...i})}static resolveSvg({name:e,svgstr:t}){const n=(new DOMParser).parseFromString(w.svgstrShim(t),"image/svg+xml");const i=n.querySelector("parsererror");if(i){const n=`SVG HTML was malformed for LabIcon instance.\nname: ${e}, svgstr: ${t}`;if(y._debug){console.error(n);return i}else{console.warn(n);return null}}else{return n.documentElement}}static toggleDebug(e){y._debug=e!==null&&e!==void 0?e:!y._debug}constructor({name:e,svgstr:t,render:n,unrender:i,_loading:s=false}){this._props={};this._svgReplaced=new h.Signal(this);this._svgElement=undefined;this._svgInnerHTML=undefined;this._svgReactAttrs=undefined;if(!(e&&t)){console.error(`When defining a new LabIcon, name and svgstr must both be non-empty strings. name: ${e}, svgstr: ${t}`);return C}this._loading=s;if(y._instances.has(e)){const n=y._instances.get(e);if(this._loading){n.svgstr=t;this._loading=false;return n}else{if(y._debug){console.warn(`Redefining previously loaded icon svgstr. name: ${e}, svgstrOld: ${n.svgstr}, svgstr: ${t}`)}n.svgstr=t;return n}}this.name=e;this.react=this._initReact(e);this.svgstr=t;this._initRender({render:n,unrender:i});y._instances.set(this.name,this)}bindprops(e){const t=Object.create(this);t._props=e;t.react=t._initReact(t.name+"_bind");return t}element(e={}){var t;let{className:n,container:i,label:s,title:o,tag:r="div",...a}={...this._props,...e};const l=i===null||i===void 0?void 0:i.firstChild;if(((t=l===null||l===void 0?void 0:l.dataset)===null||t===void 0?void 0:t.iconId)===this._uuid){return l}if(!this.svgElement){return document.createElement("div")}let d=true;if(i){while(i.firstChild){i.firstChild.remove()}}else{i=document.createElement(r);d=false}if(s!=null){i.textContent=s}w.initContainer({container:i,className:n,styleProps:a,title:o});const c=this.svgElement.cloneNode(true);i.appendChild(c);return d?c:i}render(e,t){var n;let i=(n=t===null||t===void 0?void 0:t.children)===null||n===void 0?void 0:n[0];if(typeof i!=="string"){i=undefined}this.element({container:e,label:i,...t===null||t===void 0?void 0:t.props})}get svgElement(){if(this._svgElement===undefined){this._svgElement=this._initSvg({uuid:this._uuid})}return this._svgElement}get svgInnerHTML(){if(this._svgInnerHTML===undefined){if(this.svgElement===null){this._svgInnerHTML=null}else{this._svgInnerHTML=this.svgElement.innerHTML}}return this._svgInnerHTML}get svgReactAttrs(){if(this._svgReactAttrs===undefined){if(this.svgElement===null){this._svgReactAttrs=null}else{this._svgReactAttrs=d(this.svgElement,{ignore:["data-icon-id"]})}}return this._svgReactAttrs}get svgstr(){return this._svgstr}set svgstr(e){this._svgstr=e;const t=p.UUID.uuid4();const n=this._uuid;this._uuid=t;this._svgElement=undefined;this._svgInnerHTML=undefined;this._svgReactAttrs=undefined;document.querySelectorAll(`[data-icon-id="${n}"]`).forEach((e=>{if(this.svgElement){e.replaceWith(this.svgElement.cloneNode(true))}}));this._svgReplaced.emit()}_initReact(e){const t=s().forwardRef(((e={},t)=>{const{className:n,container:i,label:o,title:r,tag:l="div",...d}={...this._props,...e};const[,c]=s().useState(this._uuid);s().useEffect((()=>{const e=()=>{c(this._uuid)};this._svgReplaced.connect(e);return()=>{this._svgReplaced.disconnect(e)}}));const h=l;if(!(this.svgInnerHTML&&this.svgReactAttrs)){return s().createElement(s().Fragment,null)}const u=s().createElement("svg",{...this.svgReactAttrs,dangerouslySetInnerHTML:{__html:this.svgInnerHTML},ref:t});if(i){w.initContainer({container:i,className:n,styleProps:d,title:r});return s().createElement(s().Fragment,null,u,o)}else{return s().createElement(h,{className:n||d?a(n,b.styleClass(d)):undefined,title:r},u,o)}}));t.displayName=`LabIcon_${e}`;return t}_initRender({render:e,unrender:t}){if(e){this.render=e;if(t){this.unrender=t}}else if(t){console.warn("In _initRender, ignoring unrender arg since render is undefined")}}_initSvg({title:e,uuid:t}={}){const n=y.resolveSvg(this);if(!n){return n}if(n.tagName!=="parsererror"){n.dataset.icon=this.name;if(t){n.dataset.iconId=t}if(e){w.setTitleSvg(n,e)}}return n}}y._debug=false;y._instances=new Map;var w;(function(e){function t({className:t="",container:n,label:i,title:s,tag:o="div",...r}){if((n===null||n===void 0?void 0:n.className)===t){return n}if(n){while(n.firstChild){n.firstChild.remove()}}else{n=document.createElement(o)}if(i!=null){n.textContent=i}e.initContainer({container:n,className:t,styleProps:r,title:s});return n}e.blankElement=t;e.blankReact=s().forwardRef((({className:e="",container:t,label:i,title:o,tag:r="div",...l},d)=>{const c=r;if(t){n({container:t,className:e,styleProps:l,title:o});return s().createElement(s().Fragment,null)}else{return s().createElement(c,{className:a(e,b.styleClass(l))},d&&x.react({ref:d}),i)}}));e.blankReact.displayName="BlankReact";function n({container:e,className:t,styleProps:n,title:i}){if(i!=null){e.title=i}const s=b.styleClass(n);if(t!=null){const n=a(t,s);e.className=n;return n}else if(s){e.classList.add(s);return s}else{return""}}e.initContainer=n;function i(e){return!!(e&&(typeof e==="string"||e.name&&e.svgstr))}e.isResolvable=i;function o(e,t){const n=e.getElementsByTagName("title");if(n.length){n[0].textContent=t}else{const n=document.createElement("title");n.textContent=t;e.appendChild(n)}}e.setTitleSvg=o;function r(e,t=true){const[,n,i]=decodeURIComponent(e).replace(/>\s*\n\s*<").replace(/\s*\n\s*/g," ").match(t?/^(?:data:.*?(;base64)?,)?(.*)/:/(?:(base64).*)?({var t;const n=((t=e.translator)!==null&&t!==void 0?t:pi.nullTranslator).load("jupyterlab");let i;const o=()=>{if(e.direction==="up"){return!e.item.hasMoveUp}else{return!e.item.hasMoveDown}};if(e.buttonStyle==="icons"){const t={tag:"span",elementSize:"xlarge",elementPosition:"center"};i=e.direction==="up"?s().createElement(Mt.react,{...t}):s().createElement(xt.react,{...t})}else{i=e.direction==="up"?n.__("Move up"):n.__("Move down")}const r=e.direction==="up"?e.item.index-1:e.item.index+1;return s().createElement("button",{className:"jp-mod-styled jp-mod-reject jp-ArrayOperationsButton",onClick:e.item.onReorderClick(e.item.index,r),disabled:o()},i)};const _i=e=>{var t;const n=((t=e.translator)!==null&&t!==void 0?t:pi.nullTranslator).load("jupyterlab");let i;if(e.buttonStyle==="icons"){i=s().createElement(Pt.react,{tag:"span",elementSize:"xlarge",elementPosition:"center"})}else{i=n.__("Remove")}return s().createElement("button",{className:"jp-mod-styled jp-mod-warn jp-ArrayOperationsButton",onClick:e.item.onDropIndexClick(e.item.index)},i)};const bi=e=>{var t;const n=((t=e.translator)!==null&&t!==void 0?t:pi.nullTranslator).load("jupyterlab");let i;if(e.buttonStyle==="icons"){i=s().createElement(ft.react,{tag:"span",elementSize:"xlarge",elementPosition:"center"})}else{i=n.__("Add")}return s().createElement("button",{className:"jp-mod-styled jp-mod-reject jp-ArrayOperationsButton",onClick:e.onAddClick},i)};function yi(e){const{component:t,name:n,buttonStyle:i,compact:s,showModifiedFromDefault:o,translator:r}=e;const a=s!==null&&s!==void 0?s:false;const l=i!==null&&i!==void 0?i:a?"icons":"text";const d=e=>t({...e,buttonStyle:l,compact:a,showModifiedFromDefault:o!==null&&o!==void 0?o:true,translator:r!==null&&r!==void 0?r:pi.nullTranslator});if(n){d.displayName=n}return d}function wi(e,t){const n=(0,gi.getTemplate)("TitleFieldTemplate",e,t);const i=(0,gi.getTemplate)("DescriptionFieldTemplate",e,t);return{TitleField:n,DescriptionField:i}}const Ci=e=>yi({...e,name:"JupyterLabArrayTemplate",component:e=>{var t;const{schema:n,registry:i,uiSchema:o,required:r}=e;const a={schema:n,registry:i,uiSchema:o,required:r};const{TitleField:l,DescriptionField:d}=wi(i,o);return s().createElement("div",{className:e.className},e.compact?s().createElement("div",{className:"jp-FormGroup-compactTitle"},s().createElement("div",{className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem",id:`${e.idSchema.$id}__title`},e.title||""),s().createElement("div",{className:"jp-FormGroup-description",id:`${e.idSchema.$id}-description`},e.schema.description||"")):s().createElement(s().Fragment,null,e.title&&s().createElement(l,{...a,title:e.title,id:`${e.idSchema.$id}-title`}),s().createElement(d,{...a,id:`${e.idSchema.$id}-description`,description:(t=e.schema.description)!==null&&t!==void 0?t:""})),e.items.map((t=>s().createElement("div",{key:t.key,className:t.className},t.children,s().createElement("div",{className:"jp-ArrayOperations"},s().createElement(vi,{buttonStyle:e.buttonStyle,translator:e.translator,item:t,direction:"up"}),s().createElement(vi,{buttonStyle:e.buttonStyle,translator:e.translator,item:t,direction:"down"}),s().createElement(_i,{buttonStyle:e.buttonStyle,translator:e.translator,item:t}))))),e.canAdd&&s().createElement(bi,{onAddClick:e.onAddClick,buttonStyle:e.buttonStyle,translator:e.translator}))}});const xi=e=>yi({...e,name:"JupyterLabObjectTemplate",component:e=>{var t;const{schema:n,registry:i,uiSchema:o,required:r}=e;const a={schema:n,registry:i,uiSchema:o,required:r};const{TitleField:l,DescriptionField:d}=wi(i,o);return s().createElement("fieldset",{id:e.idSchema.$id},e.compact?s().createElement("div",{className:"jp-FormGroup-compactTitle"},s().createElement("div",{className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem",id:`${e.idSchema.$id}__title`},e.title||""),s().createElement("div",{className:"jp-FormGroup-description",id:`${e.idSchema.$id}__description`},e.schema.description||"")):s().createElement(s().Fragment,null,(e.title||(e.uiSchema||p.JSONExt.emptyObject)["ui:title"])&&s().createElement(l,{...a,id:`${e.idSchema.$id}__title`,title:e.title||`${(e.uiSchema||p.JSONExt.emptyObject)["ui:title"]}`||""}),s().createElement(d,{...a,id:`${e.idSchema.$id}__description`,description:(t=e.schema.description)!==null&&t!==void 0?t:""})),e.properties.map((e=>e.content)),(0,gi.canExpand)(e.schema,e.uiSchema,e.formData)&&s().createElement(bi,{onAddClick:e.onAddClick(e.schema),buttonStyle:e.buttonStyle,translator:e.translator}))}});const Si=e=>yi({...e,name:"JupyterLabFieldTemplate",component:e=>{var t;const n=((t=e.translator)!==null&&t!==void 0?t:pi.nullTranslator).load("jupyterlab");let i=false;let o;const{formData:r,schema:a,label:l,displayLabel:d,id:c,formContext:h,errors:u,rawErrors:m,children:g,onKeyChange:f,onDropPropertyClick:v}=e;const{defaultFormData:_}=h;const b=c.split("_");b.shift();const y=b.join(".");const w=y==="";const C=y===(e.uiSchema||p.JSONExt.emptyObject)["ui:field"];if(e.showModifiedFromDefault){o=b.reduce(((e,t)=>e===null||e===void 0?void 0:e[t]),_);i=!w&&r!==undefined&&o!==undefined&&!a.properties&&a.type!=="array"&&!p.JSONExt.deepEqual(r,o)}const x=!w&&a.type!="object"&&c!="jp-SettingsEditor-@jupyterlab/shortcuts-extension:shortcuts_shortcuts";const S=a.hasOwnProperty(gi.ADDITIONAL_PROPERTY_FLAG);const k=!(a.type==="object"||a.type==="array");return s().createElement("div",{className:`form-group ${d||a.type==="boolean"?"small-field":""}`},!C&&(m?s().createElement("div",{className:"jp-modifiedIndicator jp-errorIndicator"}):i&&s().createElement("div",{className:"jp-modifiedIndicator"})),s().createElement("div",{className:`jp-FormGroup-content ${e.compact?"jp-FormGroup-contentCompact":"jp-FormGroup-contentNormal"}`},k&&d&&!w&&l&&!S?e.compact?s().createElement("div",{className:"jp-FormGroup-compactTitle"},s().createElement("div",{className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem"},l),k&&a.description&&x&&s().createElement("div",{className:"jp-FormGroup-description"},a.description)):s().createElement("h3",{className:"jp-FormGroup-fieldLabel jp-FormGroup-contentItem"},l):s().createElement(s().Fragment,null),S&&s().createElement("input",{className:"jp-FormGroup-contentItem jp-mod-styled",type:"text",onBlur:e=>f(e.target.value),defaultValue:l}),s().createElement("div",{className:`${w?"jp-root":a.type==="object"?"jp-objectFieldWrapper":a.type==="array"?"jp-arrayFieldWrapper":"jp-inputFieldWrapper jp-FormGroup-contentItem"}`},g),S&&s().createElement("button",{className:"jp-FormGroup-contentItem jp-mod-styled jp-mod-warn jp-FormGroup-removeButton",onClick:v(l)},n.__("Remove")),!e.compact&&a.description&&x&&s().createElement("div",{className:"jp-FormGroup-description"},a.description),i&&o!==undefined&&s().createElement("div",{className:"jp-FormGroup-default"},n.__("Default: %1",o!==null?o.toLocaleString():"null")),s().createElement("div",{className:"validationErrors"},u)))}});function ki(e){const{buttonStyle:t,compact:n,showModifiedFromDefault:i,translator:o,formContext:r,...a}=e;const l={...a.uiSchema||p.JSONExt.emptyObject};l["ui:options"]={...fi,...l["ui:options"]};a.uiSchema=l;const{FieldTemplate:d,ArrayFieldTemplate:c,ObjectFieldTemplate:h}=e.templates||p.JSONExt.emptyObject;const u={buttonStyle:t,compact:n,showModifiedFromDefault:i,translator:o};const m=s().useMemo((()=>d!==null&&d!==void 0?d:Si(u)),[d,t,n,i,o]);const g=s().useMemo((()=>c!==null&&c!==void 0?c:Ci(u)),[c,t,n,i,o]);const f=s().useMemo((()=>h!==null&&h!==void 0?h:xi(u)),[h,t,n,i,o]);const v={FieldTemplate:m,ArrayFieldTemplate:g,ObjectFieldTemplate:f};return s().createElement(mi.ZP,{templates:v,formContext:r,...a})}const ji="jp-DefaultStyle";const Mi="jp-HTMLSelect";class Ei extends i.Component{render(){const{className:e,defaultStyle:t=true,disabled:n,elementRef:s,iconProps:o,icon:r=wt,options:l=[],...d}=this.props;const c=a(Mi,{[ji]:t},e);const h=l.map((e=>{const t=typeof e==="object"?e:{value:e};return i.createElement("option",{...t,key:t.value},t.label||t.value)}));return i.createElement("div",{className:c},i.createElement("select",{disabled:n,ref:s,...d,multiple:false},h,d.children),i.createElement(r.react,{...{tag:"span",stylesheet:"select",right:"7px",top:"5px",...o}}))}}class Ii extends u.Widget{constructor(e={}){super({node:Ti.createNode()});this._sandbox=[];this.addClass("jp-IFrame");this.sandbox=e.sandbox||[];this.referrerPolicy=e.referrerPolicy||"no-referrer"}get referrerPolicy(){return this._referrerPolicy}set referrerPolicy(e){if(this._referrerPolicy===e){return}this._referrerPolicy=e;const t=this.node.querySelector("iframe");t.setAttribute("referrerpolicy",e)}get sandbox(){return this._sandbox.slice()}set sandbox(e){this._sandbox=e.slice();const t=this.node.querySelector("iframe");const n=e.length?e.join(" "):"";t.setAttribute("sandbox",n)}get url(){return this.node.querySelector("iframe").getAttribute("src")||""}set url(e){this.node.querySelector("iframe").setAttribute("src",e)}}var Ti;(function(e){function t(){const e=document.createElement("div");const t=document.createElement("iframe");t.setAttribute("sandbox","");t.style.height="100%";t.style.width="100%";e.appendChild(t);return e}e.createNode=t})(Ti||(Ti={}));function Di(e){const{className:t,inputRef:n,rightIcon:i,...o}=e;return s().createElement("div",{className:a("jp-InputGroup",t)},s().createElement("input",{ref:n,...o}),i&&s().createElement("span",{className:"jp-InputGroupAction"},typeof i==="string"?s().createElement(y.resolveReact,{icon:i,elementPosition:"center",tag:"span"}):s().createElement(i.react,{elementPosition:"center",tag:"span"})))}var Li=n(58740);var Pi=n(26512);var Ai;(function(e){e.DEFAULT_RANK=100})(Ai||(Ai={}));class Ri extends u.Menu{constructor(e){var t;super(e);this._ranks=[];this._rank=e.rank;this._includeSeparators=(t=e.includeSeparators)!==null&&t!==void 0?t:true}get rank(){return this._rank}addGroup(e,t){if(e.length===0){return new Pi.DisposableDelegate((()=>void 0))}const n=t!==null&&t!==void 0?t:Ai.DEFAULT_RANK;const i=e.map((e=>{var t;return{...e,rank:(t=e.rank)!==null&&t!==void 0?t:n}})).sort(((e,t)=>e.rank-t.rank));let s=this._ranks.findIndex((e=>i[0].rankthis.insertItem(s++,e))));if(this._includeSeparators){o.push(this.insertItem(s++,{type:"separator",rank:n}))}return new Pi.DisposableDelegate((()=>{o.forEach((e=>e.dispose()))}))}addItem(e){let t=-1;if(e.rank){t=this._ranks.findIndex((t=>e.rank{e.disposed.disconnect(n,this);this.dispose()};this._menu.disposed.connect(n,this)}get isDisposed(){return this._isDisposed}get type(){return this._item.deref().type}get command(){return this._item.deref().command}get args(){return this._item.deref().args}get submenu(){return this._item.deref().submenu}get label(){return this._item.deref().label}get mnemonic(){return this._item.deref().mnemonic}get icon(){return this._item.deref().icon}get iconClass(){return this._item.deref().iconClass}get iconLabel(){return this._item.deref().iconLabel}get caption(){return this._item.deref().caption}get className(){return this._item.deref().className}get dataset(){return this._item.deref().dataset}get isEnabled(){return this._item.deref().isEnabled}get isToggled(){return this._item.deref().isToggled}get isVisible(){return this._item.deref().isVisible}get keyBinding(){return this._item.deref().keyBinding}dispose(){if(this._isDisposed){return}this._isDisposed=true;const e=this._item.deref();if(e&&!this._menu.isDisposed){this._menu.removeItem(e)}h.Signal.clearData(this)}}var Oi=n(6682);var Bi=n(28821);var Fi=n(75379);var zi=n(95905);class Hi extends u.Widget{constructor(){super();this._rootDOM=null}static create(e){return new class extends Hi{render(){return e}}}onUpdateRequest(e){this.renderPromise=this.renderDOM()}onAfterAttach(e){Bi.MessageLoop.sendMessage(this,u.Widget.Msg.UpdateRequest)}onBeforeDetach(e){if(this._rootDOM!==null){this._rootDOM.unmount();this._rootDOM=null}}renderDOM(){return new Promise((e=>{const t=this.render();if(this._rootDOM===null){this._rootDOM=(0,m.s)(this.node)}if(Array.isArray(t)){this._rootDOM.render(t);requestIdleCallback((()=>e()))}else if(t){this._rootDOM.render(t);requestIdleCallback((()=>e()))}else{this._rootDOM.unmount();this._rootDOM=null;requestIdleCallback((()=>e()))}}))}}class Wi extends Hi{constructor(e){super();this._modelChanged=new h.Signal(this);this.model=e!==null&&e!==void 0?e:null}get modelChanged(){return this._modelChanged}set model(e){if(this._model===e){return}if(this._model){this._model.stateChanged.disconnect(this.update,this)}this._model=e;if(e){e.stateChanged.connect(this.update,this)}this.update();this._modelChanged.emit(void 0)}get model(){return this._model}dispose(){if(this.isDisposed){return}this._model=null;super.dispose()}}class Vi extends i.Component{constructor(e){super(e);this.slot=(e,t)=>{if(this.props.shouldUpdate&&!this.props.shouldUpdate(e,t)){return}this.setState({value:[e,t]})};this.state={value:[this.props.initialSender,this.props.initialArgs]}}componentDidMount(){this.props.signal.connect(this.slot)}componentWillUnmount(){this.props.signal.disconnect(this.slot)}render(){return this.props.children(...this.state.value)}}class Ui{constructor(){this.stateChanged=new h.Signal(this);this._isDisposed=false}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;h.Signal.clearData(this)}}const $i="jp-Toolbar";const qi="jp-Toolbar-item";const Ki="toolbar-popup-opener";const Ji="jp-Toolbar-spacer";class Zi extends u.PanelLayout{constructor(){super(...arguments);this._dirty=false}onFitRequest(e){super.onFitRequest(e);if(this.parent.isAttached){if((0,Li.some)(this.widgets,(e=>!e.isHidden))){this.parent.node.style.minHeight="var(--jp-private-toolbar-height)";this.parent.removeClass("jp-Toolbar-micro")}else{this.parent.node.style.minHeight="";this.parent.addClass("jp-Toolbar-micro")}}this._dirty=true;if(this.parent.parent){Bi.MessageLoop.sendMessage(this.parent.parent,u.Widget.Msg.FitRequest)}if(this._dirty){Bi.MessageLoop.sendMessage(this.parent,u.Widget.Msg.UpdateRequest)}}onUpdateRequest(e){super.onUpdateRequest(e);if(this.parent.isVisible){this._dirty=false}}onChildShown(e){super.onChildShown(e);this.parent.fit()}onChildHidden(e){super.onChildHidden(e);this.parent.fit()}onBeforeAttach(e){super.onBeforeAttach(e);this.parent.fit()}attachWidget(e,t){super.attachWidget(e,t);this.parent.fit()}detachWidget(e,t){super.detachWidget(e,t);this.parent.fit()}}class Gi extends u.Widget{constructor(e={}){var t;super();this.addClass($i);this.layout=(t=e.layout)!==null&&t!==void 0?t:new Zi}names(){const e=this.layout;return(0,Li.map)(e.widgets,(e=>rs.nameProperty.get(e)))}addItem(e,t){const n=this.layout;return this.insertItem(n.widgets.length,e,t)}insertItem(e,t,n){const i=(0,Li.find)(this.names(),(e=>e===t));if(i){return false}n.addClass(qi);const s=this.layout;const o=Math.max(0,Math.min(e,s.widgets.length));s.insertWidget(o,n);rs.nameProperty.set(n,t);return true}insertAfter(e,t,n){return this._insertRelative(e,1,t,n)}insertBefore(e,t,n){return this._insertRelative(e,0,t,n)}_insertRelative(e,t,n,i){const s=(0,Li.map)(this.names(),((e,t)=>({name:e,index:t})));const o=(0,Li.find)(s,(t=>t.name===e));if(o){return this.insertItem(o.index+t,n,i)}return false}handleEvent(e){switch(e.type){case"click":this.handleClick(e);break;default:break}}handleClick(e){e.stopPropagation();if(e.target instanceof HTMLLabelElement){const t=e.target.getAttribute("for");if(t&&this.node.querySelector(`#${t}`)){return}}if(this.node.contains(document.activeElement)){return}if(this.parent){this.parent.activate()}}onAfterAttach(e){this.node.addEventListener("click",this)}onBeforeDetach(e){this.node.removeEventListener("click",this)}}class Yi extends Gi{constructor(){super();this.popupOpener=new os;this._widgetWidths={};this.insertItem(0,Ki,this.popupOpener);this.popupOpener.hide();this._resizer=new zi.Throttler(this._onResize.bind(this),500)}dispose(){if(this.isDisposed){return}if(this._resizer){this._resizer.dispose()}super.dispose()}insertAfter(e,t,n){if(e===Ki){return false}return super.insertAfter(e,t,n)}insertItem(e,t,n){if(n instanceof os){return super.insertItem(e,t,n)}else{const i=Math.max(0,Math.min(e,this.layout.widgets.length-1));return super.insertItem(i,t,n)}}onBeforeHide(e){this.popupOpener.hidePopup();super.onBeforeHide(e)}onResize(e){super.onResize(e);if(e.width>0&&this._resizer){void this._resizer.invoke()}}_onResize(){if(this.parent&&this.parent.isAttached){const e=this.node.clientWidth;const t=this.popupOpener;const n=30;const i=2;const s=this.layout;let o=t.isHidden?i:i+n;let r=0;const a=[];const l=s.widgets.length-1;while(re){o+=n}if(o>e){a.push(i)}r++}while(a.length>0){const e=a.pop();o-=this._getWidgetWidth(e);t.addWidget(e)}if(t.widgetCount()>0){const i=[];let s=0;let r=t.widgetAt(s);const a=t.widgetCount();o+=this._getWidgetWidth(r);if(a===1&&o-n<=e){o-=n}while(o0){const e=i.shift();this.addItem(rs.nameProperty.get(e),e)}}if(t.widgetCount()>0){t.updatePopup();t.show()}else{t.hide()}}}_saveWidgetWidth(e){const t=rs.nameProperty.get(e);this._widgetWidths[t]=e.hasClass(Ji)?2:e.node.clientWidth}_getWidgetWidth(e){const t=rs.nameProperty.get(e);return this._widgetWidths[t]}}(function(e){function t(){return new rs.Spacer}e.createSpacerItem=t})(Gi||(Gi={}));function Xi(e){var t,n;const s=t=>{var n;if(t.button===0){t.preventDefault();(n=e.onClick)===null||n===void 0?void 0:n.call(e)}};const o=t=>{var n;const{key:i}=t;if(i==="Enter"||i===" "){(n=e.onClick)===null||n===void 0?void 0:n.call(e)}};const r=t=>{var n;if(t.button===0){(n=e.onClick)===null||n===void 0?void 0:n.call(e)}};const l=()=>{if(e.enabled===false&&e.disabledTooltip){return e.disabledTooltip}else if(e.pressed&&e.pressedTooltip){return e.pressedTooltip}else{return e.tooltip||e.iconLabel}};return i.createElement(c,{className:e.className?e.className+" jp-ToolbarButtonComponent":"jp-ToolbarButtonComponent","aria-pressed":e.pressed,"aria-disabled":e.enabled===false,...e.dataset,disabled:e.enabled===false,onClick:((t=e.actualOnClick)!==null&&t!==void 0?t:false)?r:undefined,onMouseDown:!((n=e.actualOnClick)!==null&&n!==void 0?n:false)?s:undefined,onKeyDown:o,title:l(),minimal:true},(e.icon||e.iconClass)&&i.createElement(y.resolveReact,{icon:e.pressed?e.pressedIcon:e.icon,iconClass:a(e.iconClass,"jp-Icon"),className:"jp-ToolbarButtonComponent-icon",tag:"span",stylesheet:"toolbarButton"}),e.label&&i.createElement("span",{className:"jp-ToolbarButtonComponent-label"},e.label))}function Qi(e){e.addClass("jp-ToolbarButton");return e}class es extends Hi{constructor(e={}){var t,n;super();this.props=e;Qi(this);this._enabled=(t=e.enabled)!==null&&t!==void 0?t:true;this._pressed=this._enabled&&((n=e.pressed)!==null&&n!==void 0?n:false);this._onClick=e.onClick}set pressed(e){if(this.enabled&&e!==this._pressed){this._pressed=e;this.update()}}get pressed(){return this._pressed}set enabled(e){if(e!=this._enabled){this._enabled=e;if(!this._enabled){this._pressed=false}this.update()}}get enabled(){return this._enabled}set onClick(e){if(e!==this._onClick){this._onClick=e;this.update()}}get onClick(){return this._onClick}render(){return i.createElement(Xi,{...this.props,pressed:this.pressed,enabled:this.enabled,onClick:this.onClick})}}function ts(e){return i.createElement(Vi,{signal:e.commands.commandChanged,shouldUpdate:(t,n)=>n.id===e.id&&n.type==="changed"||n.type==="many-changed"},(()=>i.createElement(Xi,{...rs.propsFromCommand(e)})))}function ns(e){e.addClass("jp-CommandToolbarButton");return e}class is extends Hi{constructor(e){super();this.props=e;ns(this)}render(){return i.createElement(ts,{...this.props})}}class ss extends u.Widget{constructor(){super();this.width=0;this.addClass("jp-Toolbar-responsive-popup");this.layout=new u.PanelLayout;u.Widget.attach(this,document.body);this.hide()}updateWidth(e){if(e>0){this.width=e;this.node.style.width=`${e}px`}}alignTo(e){const{height:t,width:n,x:i,y:s}=e.node.getBoundingClientRect();const o=this.width;this.node.style.left=`${i+n-o+1}px`;this.node.style.top=`${s+t+1}px`}insertWidget(e,t){this.layout.insertWidget(0,t)}widgetCount(){return this.layout.widgets.length}widgetAt(e){return this.layout.widgets[e]}}class os extends es{constructor(e={}){const t=(e.translator||pi.nullTranslator).load("jupyterlab");super({icon:$t,onClick:()=>{this.handleClick()},tooltip:t.__("More commands")});this.addClass("jp-Toolbar-responsive-opener");this.popup=new ss}addWidget(e){this.popup.insertWidget(0,e)}dispose(){if(this.isDisposed){return}this.popup.dispose();super.dispose()}hide(){super.hide();this.hidePopup()}hidePopup(){this.popup.hide()}updatePopup(){this.popup.updateWidth(this.parent.node.clientWidth);this.popup.alignTo(this.parent)}widgetAt(e){return this.popup.widgetAt(e)}widgetCount(){return this.popup.widgetCount()}handleClick(){this.updatePopup();this.popup.setHidden(!this.popup.isHidden)}}var rs;(function(e){function t(e){var t,n,i;const{commands:s,id:o,args:r}=e;const a=s.iconClass(o,r);const l=s.iconLabel(o,r);const d=(t=e.icon)!==null&&t!==void 0?t:s.icon(o,r);const c=s.label(o,r);let h=s.className(o,r);if(s.isToggled(o,r)){h+=" lm-mod-toggled"}if(!s.isVisible(o,r)){h+=" lm-mod-hidden"}let u=s.caption(o,r)||e.label||c||l;const p=s.keyBindings.find((e=>e.command===o));if(p){const e=p.keys.map(Oi.CommandRegistry.formatKeystroke).join(", ");u=`${u} (${e})`}const m=()=>{void s.execute(o,r)};const g=s.isEnabled(o,r);return{className:h,dataset:{"data-command":e.id},icon:d,iconClass:a,tooltip:(n=e.caption)!==null&&n!==void 0?n:u,onClick:m,enabled:g,label:(i=e.label)!==null&&i!==void 0?i:c}}e.propsFromCommand=t;e.nameProperty=new Fi.AttachedProperty({name:"name",create:()=>""});class n extends u.Widget{constructor(){super();this.addClass(Ji)}}e.Spacer=n})(rs||(rs={}));class as extends u.Panel{constructor(e={}){super(e);this._toolbar=new Gi}get toolbar(){return this._toolbar}}function ls(e,t){let n=Infinity;let i=null;const s=/\b\w/g;let o=true;while(o){let o=s.exec(e);if(!o){break}let r=Li.StringExt.matchSumOfDeltas(e,t,o.index);if(!r){break}if(r&&r.score<=n){n=r.score;i=r.indices}}if(!i||n===Infinity){return null}return{score:n,indices:i}}const ds=(e,t,n)=>i=>{if(t){const t=e.toLowerCase();return ls(i,t)}if(!n){i=i.toLocaleLowerCase();e=e.toLocaleLowerCase()}const s=i.indexOf(e);if(s===-1){return null}return{indices:[...Array(i.length).keys()].map((e=>e+1))}};const cs=e=>{var t;const[n,o]=(0,i.useState)((t=e.initialQuery)!==null&&t!==void 0?t:"");if(e.forceRefresh){(0,i.useEffect)((()=>{e.updateFilter((e=>({})))}),[])}(0,i.useEffect)((()=>{if(e.initialQuery!==undefined){e.updateFilter(ds(e.initialQuery,e.useFuzzyFilter,e.caseSensitive),e.initialQuery)}}),[]);const r=t=>{const n=t.target;o(n.value);e.updateFilter(ds(n.value,e.useFuzzyFilter,e.caseSensitive),n.value)};return s().createElement(Di,{className:"jp-FilterBox",inputRef:e.inputRef,type:"text",disabled:e.disabled,rightIcon:"ui-components:search",placeholder:e.placeholder,onChange:r,value:n})};const hs=e=>Hi.create(s().createElement(cs,{updateFilter:e.updateFilter,useFuzzyFilter:e.useFuzzyFilter,placeholder:e.placeholder,forceRefresh:e.forceRefresh,caseSensitive:e.caseSensitive}));class us extends u.AccordionLayout{constructor(){super(...arguments);this._toolbars=new WeakMap}insertWidget(e,t){if(t.toolbar){this._toolbars.set(t,t.toolbar);t.toolbar.addClass("jp-AccordionPanel-toolbar")}super.insertWidget(e,t)}removeWidgetAt(e){const t=this.widgets[e];super.removeWidgetAt(e);if(t&&this._toolbars.has(t)){this._toolbars.delete(t)}}attachWidget(e,t){super.attachWidget(e,t);const n=this._toolbars.get(t);if(n){if(this.parent.isAttached){Bi.MessageLoop.sendMessage(n,u.Widget.Msg.BeforeAttach)}this.titles[e].appendChild(n.node);if(this.parent.isAttached){Bi.MessageLoop.sendMessage(n,u.Widget.Msg.AfterAttach)}}}detachWidget(e,t){const n=this._toolbars.get(t);if(n){if(this.parent.isAttached){Bi.MessageLoop.sendMessage(n,u.Widget.Msg.BeforeDetach)}this.titles[e].removeChild(n.node);if(this.parent.isAttached){Bi.MessageLoop.sendMessage(n,u.Widget.Msg.AfterDetach)}}super.detachWidget(e,t)}onBeforeAttach(e){this.notifyToolbars(e);super.onBeforeAttach(e)}onAfterAttach(e){super.onAfterAttach(e);this.notifyToolbars(e)}onBeforeDetach(e){this.notifyToolbars(e);super.onBeforeDetach(e)}onAfterDetach(e){super.onAfterDetach(e);this.notifyToolbars(e)}notifyToolbars(e){this.widgets.forEach((t=>{const n=this._toolbars.get(t);if(n){n.processMessage(e)}}))}}var ps;(function(e){class t extends u.AccordionPanel.Renderer{createCollapseIcon(e){const t=document.createElement("div");xt.element({container:t});return t}createSectionTitle(e){const t=super.createSectionTitle(e);t.classList.add("jp-AccordionPanel-title");return t}}e.Renderer=t;e.defaultRenderer=new t;function n(t){var n;return t.layout||new us({renderer:t.renderer||e.defaultRenderer,orientation:t.orientation,alignment:t.alignment,spacing:t.spacing,titleSpace:(n=t.titleSpace)!==null&&n!==void 0?n:29})}e.createLayout=n})(ps||(ps={}));class ms extends u.Widget{constructor(e={}){var t;super();const n=this.layout=new u.PanelLayout;this.addClass("jp-SidePanel");const i=this._trans=(e.translator||pi.nullTranslator).load("jupyterlab");if(e.header){this.addHeader(e.header)}const s=this._content=(t=e.content)!==null&&t!==void 0?t:new u.AccordionPanel({...e,layout:ps.createLayout(e)});s.node.setAttribute("role","region");s.node.setAttribute("aria-label",i.__("side panel content"));s.addClass("jp-SidePanel-content");n.addWidget(s);if(e.toolbar){this.addToolbar(e.toolbar)}}get content(){return this._content}get header(){if(!this._header){this.addHeader()}return this._header}get toolbar(){if(!this._toolbar){this.addToolbar()}return this._toolbar}get widgets(){return this.content.widgets}addWidget(e){this.content.addWidget(e)}insertWidget(e,t){this.content.insertWidget(e,t)}addHeader(e){const t=this._header=e||new u.Panel;t.addClass("jp-SidePanel-header");this.layout.insertWidget(0,t)}addToolbar(e){const t=this._toolbar=e!==null&&e!==void 0?e:new Gi;t.addClass("jp-SidePanel-toolbar");t.node.setAttribute("role","navigation");t.node.setAttribute("aria-label",this._trans.__("side panel actions"));this.layout.insertWidget(this.layout.widgets.length-1,t)}}class gs extends u.Widget{constructor(){super();this.addClass("jp-Spinner");this.node.tabIndex=-1;const e=document.createElement("div");e.className="jp-SpinnerContent";this.node.appendChild(e)}onActivateRequest(e){this.node.focus()}}var fs;(function(e){function t(e,t=""){n(e,"select",t);n(e,"textarea",t);n(e,"input",t);n(e,"button",t)}e.styleNode=t;function n(e,t,n=""){if(e.localName===t){e.classList.add("jp-mod-styled")}if(e.localName==="select"){const t=e.hasAttribute("multiple");i(e,t)}const s=e.getElementsByTagName(t);for(let o=0;o=1){if(this._overscanCount!==e){const t=this._overscanCount;this._overscanCount=e;this._stateChanged.emit({name:"overscanCount",newValue:e,oldValue:t})}}else{console.error(`Forbidden non-positive overscan count: got ${e}`)}}get scrollOffset(){return this._scrollOffset}set scrollOffset(e){this._scrollOffset=e}get widgetCount(){return this._itemsList?this._itemsList.length:this._widgetCount}set widgetCount(e){if(this.itemsList){console.error("It is not allow to change the widgets count of a windowed list if a items list is used.");return}if(e>=0){if(this._widgetCount!==e){const t=this._widgetCount;this._widgetCount=e;this._stateChanged.emit({name:"count",newValue:e,oldValue:t})}}else{console.error(`Forbidden negative widget count: got ${e}`)}}get windowingActive(){return this._windowingActive}set windowingActive(e){if(e!==this._windowingActive){const t=this._windowingActive;this._windowingActive=e;this._currentWindow=[-1,-1,-1,-1];this._lastMeasuredIndex=-1;this._widgetSizers=[];this._stateChanged.emit({name:"windowingActive",newValue:e,oldValue:t})}}get stateChanged(){return this._stateChanged}dispose(){if(this.isDisposed){return}this._isDisposed=true;h.Signal.clearData(this)}getEstimatedTotalSize(){let e=0;if(this._lastMeasuredIndex>=this.widgetCount){this._lastMeasuredIndex=this.widgetCount-1}if(this._lastMeasuredIndex>=0){const t=this._widgetSizers[this._lastMeasuredIndex];e=t.offset+t.size}const t=this.widgetCount-this._lastMeasuredIndex-1;const n=t*this._estimatedWidgetSize;return e+n}getOffsetForIndexAndAlignment(e,t="auto",n=.25){const i=t==="smart"?Math.min(Math.max(0,n),1):0;const s=this._height;const o=this._getItemMetadata(e);const r=this.getEstimatedTotalSize();const a=Math.max(0,Math.min(r-s,o.offset));const l=Math.max(0,o.offset-s+o.size);if(t==="smart"){if(this._scrollOffset>=l-s&&this._scrollOffset<=a+s){t="auto"}else{t="center"}}switch(t){case"start":return a;case"end":return l;case"center":return Math.round(l+(a-l)/2);case"auto":default:if(this._scrollOffset>=l&&this._scrollOffset<=o.offset){return this._scrollOffset}else if(this._scrollOffset=0){let t=Infinity;for(const n of e){const e=n.index;const i=n.size;if(this._widgetSizers[e].size!=i){this._widgetSizers[e].size=i;t=Math.min(t,e)}this._widgetSizers[e].measured=true}if(t!=Infinity){this._lastMeasuredIndex=Math.min(this._lastMeasuredIndex,t);return true}}return false}onListChanged(e,t){switch(t.type){case"add":this._widgetSizers.splice(t.newIndex,0,...new Array(t.newValues.length).map((()=>({offset:0,size:this._estimatedWidgetSize}))));this.resetAfterIndex(t.newIndex-1);break;case"move":Li.ArrayExt.move(this._widgetSizers,t.oldIndex,t.newIndex);this.resetAfterIndex(Math.min(t.newIndex,t.oldIndex)-1);break;case"remove":this._widgetSizers.splice(t.oldIndex,t.oldValues.length);this.resetAfterIndex(t.oldIndex-1);break;case"set":this.resetAfterIndex(t.newIndex-1);break}}_getItemMetadata(e){var t,n;if(e>this._lastMeasuredIndex){let i=0;if(this._lastMeasuredIndex>=0){const e=this._widgetSizers[this._lastMeasuredIndex];i=e.offset+e.size}for(let s=this._lastMeasuredIndex+1;s<=e;s++){let e=((t=this._widgetSizers[s])===null||t===void 0?void 0:t.measured)?this._widgetSizers[s].size:this.estimateWidgetSize(s);this._widgetSizers[s]={offset:i,size:e,measured:(n=this._widgetSizers[s])===null||n===void 0?void 0:n.measured};i+=e}this._lastMeasuredIndex=e}for(let i=0;i<=this._lastMeasuredIndex;i++){const e=this._widgetSizers[i];if(i===0){if(e.offset!==0){throw new Error("First offset is not null")}}else{const t=this._widgetSizers[i-1];if(e.offset!==t.offset+t.size){throw new Error(`Sizer ${i} has incorrect offset.`)}}}return this._widgetSizers[e]}_findNearestItem(e){const t=this._lastMeasuredIndex>0?this._widgetSizers[this._lastMeasuredIndex].offset:0;if(t>=e){return this._findNearestItemBinarySearch(this._lastMeasuredIndex,0,e)}else{return this._findNearestItemExponentialSearch(Math.max(0,this._lastMeasuredIndex),e)}}_findNearestItemBinarySearch(e,t,n){while(t<=e){const i=t+Math.floor((e-t)/2);const s=this._getItemMetadata(i).offset;if(s===n){return i}else if(sn){e=i-1}}if(t>0){return t-1}else{return 0}}_findNearestItemExponentialSearch(e,t){let n=1;while(e1){const e=Math.max(0,Math.min(i,n-t));this.viewModel.scrollOffset=e;this._scrollUpdateWasRequested=false;this.update()}}onResize(e){this.viewModel.height=e.height>=0?e.height:this.node.getBoundingClientRect().height;super.onResize(e)}onStateChanged(e,t){switch(t.name){case"windowingActive":if(this.viewModel.windowingActive){this._addListeners();this.onScroll({currentTarget:this.node});return}else{this._removeListeners()}break}this.update()}onUpdateRequest(e){if(this.viewModel.windowingActive){if(this._scrollRepaint===null){this._needsUpdate=false;this._scrollRepaint=window.requestAnimationFrame((()=>{this._scrollRepaint=null;this._update();if(this._needsUpdate){this.update()}}))}else{this._needsUpdate=true}}else{this._update()}}_addListeners(){if(!this._resizeObserver){this._resizeObserver=new ResizeObserver(this._onWidgetResize.bind(this))}for(const e of this.layout.widgets){this._resizeObserver.observe(e.node);e.disposed.connect((()=>{var t;return(t=this._resizeObserver)===null||t===void 0?void 0:t.unobserve(e.node)}))}this.node.addEventListener("scroll",this,ys);this._windowElement.style.position="absolute"}_applyNoWindowingStyles(){this._windowElement.style.position="relative";this._windowElement.style.top="0px"}_removeListeners(){var e;this.node.removeEventListener("scroll",this);(e=this._resizeObserver)===null||e===void 0?void 0:e.disconnect();this._resizeObserver=null;this._applyNoWindowingStyles()}_update(){var e;if(this.isDisposed||!this.layout){return}const t=this.viewModel.getRangeToRender();if(t!==null){const[n,i]=t;const s=[];if(i>=0){for(let e=n;e<=i;e++){const t=this.viewModel.widgetRenderer(e);t.dataset.windowedListIndex=`${e}`;s.push(t)}}const o=this.layout.widgets.length;for(let t=o-1;t>=0;t--){if(!s.includes(this.layout.widgets[t])){(e=this._resizeObserver)===null||e===void 0?void 0:e.unobserve(this.layout.widgets[t].node);this.layout.removeWidget(this.layout.widgets[t])}}for(let e=0;e{var e;return(e=this._resizeObserver)===null||e===void 0?void 0:e.unobserve(t.node)}))}this.layout.insertWidget(e,t)}if(this.viewModel.windowingActive){if(i>=0){const e=this.viewModel.getEstimatedTotalSize();this._innerElement.style.height=`${e}px`;const[t,s]=this.viewModel.getSpan(n,i);this._windowElement.style.top=`${t}px`;this._windowElement.style.minHeight=`${s}px`}else{this._innerElement.style.height=`0px`;this._windowElement.style.top=`0px`;this._windowElement.style.minHeight=`0px`}if(this._scrollUpdateWasRequested){this.node.scrollTop=this.viewModel.scrollOffset;this._scrollUpdateWasRequested=false}}}let n=-1;for(const i of this.viewportNode.children){const e=parseInt(i.dataset.windowedListIndex,10);if(e{console.log(e)}))}this.update()}}_resetScrollToItem(){if(this._resetScrollToItemTimeout){clearTimeout(this._resetScrollToItemTimeout)}if(this._scrollToItem){this._resetScrollToItemTimeout=window.setTimeout((()=>{this._scrollToItem=null;if(this._isScrolling){this._isScrolling.resolve();this._isScrolling=null}}),bs)}}}Cs.DEFAULT_WIDGET_SIZE=50;class xs extends u.PanelLayout{constructor(){super({fitPolicy:"set-no-constraint"})}get parent(){return super.parent}set parent(e){super.parent=e}attachWidget(e,t){let n=this.parent.viewportNode.children[e];if(this.parent.isAttached){Bi.MessageLoop.sendMessage(t,u.Widget.Msg.BeforeAttach)}this.parent.viewportNode.insertBefore(t.node,n);if(this.parent.isAttached){Bi.MessageLoop.sendMessage(t,u.Widget.Msg.AfterAttach)}}detachWidget(e,t){if(this.parent.isAttached){Bi.MessageLoop.sendMessage(t,u.Widget.Msg.BeforeDetach)}this.parent.viewportNode.removeChild(t.node);if(this.parent.isAttached){Bi.MessageLoop.sendMessage(t,u.Widget.Msg.AfterDetach)}}moveWidget(e,t,n){let i=this.parent.viewportNode.children[t];if(e{if(n.submenu){e.overrideDefaultRenderer(n.submenu)}return i(t,n)};for(const e of n._items){if(e.submenu){t(e.submenu)}}}e.overrideDefaultRenderer=t;class n extends u.Menu.Renderer{renderIcon(e){const t=this.createIconClass(e);if(e.item.isToggled){return Ss.h.div({className:t},It,e.item.iconLabel)}return Ss.h.div({className:t},e.item.icon,e.item.iconLabel)}createIconClass(e){let t="lm-Menu-itemIcon";if(e.item.type==="separator"){return a(e.item.iconClass,t)}else{return a(b.styleClass({stylesheet:"menuItem"}),e.item.iconClass,t)}}renderSubmenu(e){const t="lm-Menu-itemSubmenuIcon";if(e.item.type==="submenu"){return Ss.h.div({className:t},Ms)}else{return Ss.h.div({className:t})}}}e.Renderer=n;e.defaultRenderer=new n})(Is||(Is={}));class Ts extends u.TabBar{constructor(e={}){var t;super({renderer:Ts.defaultRenderer,...e});const n=((t=Ts.translator)!==null&&t!==void 0?t:pi.nullTranslator).load("jupyterlab");ft.element({container:this.addButtonNode,title:n.__("New Launcher")})}}Ts.translator=null;(function(e){class t extends u.TabBar.Renderer{renderCloseIcon(t){var n;const i=((n=e.translator)!==null&&n!==void 0?n:pi.nullTranslator).load("jupyterlab");const s=t.title.label?i.__("Close %1",t.title.label):i.__("Close tab");const o=a("jp-icon-hover lm-TabBar-tabCloseIcon",b.styleClass({elementPosition:"center",height:"16px",width:"16px"}));return(0,Ss.hpass)("div",{className:o,title:s},Pt)}}e.Renderer=t;e.defaultRenderer=new t})(Ts||(Ts={}));class Ds extends u.DockPanel{constructor(e={}){super({renderer:Ds.defaultRenderer,...e})}}(function(e){class t extends u.DockPanel.Renderer{createTabBar(){const e=new Ts;e.addClass("lm-DockPanel-tabBar");return e}}e.Renderer=t;e.defaultRenderer=new t})(Ds||(Ds={}));class Ls extends u.TabPanel{constructor(e={}){e.renderer=e.renderer||Ts.defaultRenderer;super(e)}}const Ps="jp-HoverBox";const As="-1000";var Rs;(function(e){function t(e){const{anchor:t,host:n,node:i,privilege:s,outOfViewDisplay:o}=e;const r=n.getBoundingClientRect();if(!i.classList.contains(Ps)){i.classList.add(Ps)}if(i.style.visibility){i.style.visibility=""}if(i.style.zIndex===""){i.style.zIndex=""}i.style.maxHeight="";i.style.marginTop="";const a=e.style||window.getComputedStyle(i);const l=t.top-r.top;const d=r.bottom-t.bottom;const c=parseInt(a.marginTop,10)||0;const h=parseInt(a.marginLeft,10)||0;const u=parseInt(a.minHeight,10)||e.minHeight;let p=parseInt(a.maxHeight,10)||e.maxHeight;const m=s==="forceAbove"?false:s==="forceBelow"?true:s==="above"?l=p||d>=l;if(m){p=Math.min(d-c,p)}else{p=Math.min(l,p);i.style.marginTop="0px"}i.style.maxHeight=`${p}px`;const g=p>=u&&(d>=u||l>=u);if(!g){i.style.zIndex=As;i.style.visibility="hidden";return}if(e.size){i.style.width=`${e.size.width}px`;i.style.height=`${e.size.height}px`;i.style.contain="strict"}else{i.style.contain="";i.style.width="auto";i.style.height=""}const f=e.size?e.size.height:i.getBoundingClientRect().height;const v=e.offset&&e.offset.vertical&&e.offset.vertical.above||0;const _=e.offset&&e.offset.vertical&&e.offset.vertical.below||0;let b=m?r.bottom-d+_:r.top+l-f+v;i.style.top=`${Math.floor(b)}px`;const y=e.offset&&e.offset.horizontal||0;let w=t.left+y;i.style.left=`${Math.ceil(w)}px`;let C=i.getBoundingClientRect();let x=C.right;if(x>window.innerWidth){w-=x-window.innerWidth;x=window.innerWidth;i.style.left=`${Math.ceil(w)}px`}if(wr.bottom;const O=w+hr.right;let F=false;let z=false;let H=false;if(R){switch((o===null||o===void 0?void 0:o.top)||"hidden-inside"){case"hidden-inside":if(!I){F=true}break;case"hidden-outside":if(!T){F=true}break;case"stick-inside":if(r.top>b){b=r.top;H=true}break;case"stick-outside":if(r.top>S){b=r.top-P;H=true}break}}if(N){switch((o===null||o===void 0?void 0:o.bottom)||"hidden-outside"){case"hidden-inside":if(!T){F=true}break;case"hidden-outside":if(!I){F=true}break;case"stick-inside":if(r.bottomw+h){w=r.left-h;z=true}break;case"stick-outside":if(r.left>x){w=r.left-h-A;z=true}break}}if(B){switch((o===null||o===void 0?void 0:o.right)||"hidden-outside"){case"hidden-inside":if(!L){F=true}break;case"hidden-outside":if(!D){F=true}break;case"stick-inside":if(r.right.'; got ${e}.`)}this._renderers[e]=t}get renderers(){return this._renderers}getRenderer(e){return this._renderers[e]}}},34849:(e,t,n)=>{"use strict";var i=n(32902);var s=n(93379);var o=n.n(s);var r=n(7795);var a=n.n(r);var l=n(90569);var d=n.n(l);var c=n(3565);var h=n.n(c);var u=n(19216);var p=n.n(u);var m=n(44589);var g=n.n(m);var f=n(68094);var v={};v.styleTagTransform=g();v.setAttributes=h();v.insert=d().bind(null,"head");v.domAPI=a();v.insertStyleElement=p();var _=o()(f.Z,v);const b=f.Z&&f.Z.locals?f.Z.locals:undefined},12549:(e,t,n)=>{"use strict";n.r(t);n.d(t,{RenderedVega:()=>u,VEGALITE3_MIME_TYPE:()=>d,VEGALITE4_MIME_TYPE:()=>c,VEGALITE5_MIME_TYPE:()=>h,VEGA_MIME_TYPE:()=>l,default:()=>g,rendererFactory:()=>p});var i=n(85448);var s=n.n(i);const o="jp-RenderedVegaCommon5";const r="jp-RenderedVega5";const a="jp-RenderedVegaLite";const l="application/vnd.vega.v5+json";const d="application/vnd.vegalite.v3+json";const c="application/vnd.vegalite.v4+json";const h="application/vnd.vegalite.v5+json";class u extends i.Widget{constructor(e){super();this._mimeType=e.mimeType;this._resolver=e.resolver;this.addClass(o);this.addClass(this._mimeType===l?r:a)}async renderModel(e){const t=e.data[this._mimeType];if(t===undefined){return}const n=e.metadata[this._mimeType];const i=n&&n.embed_options?n.embed_options:{};let s=document.body.dataset.jpThemeLight==="false";if(s){i.theme="dark"}const o=this._mimeType===l?"vega":"vega-lite";const r=f.vega!=null?f.vega:await f.ensureVega();const a=document.createElement("div");this.node.textContent="";this.node.appendChild(a);if(this._result){this._result.finalize()}const d=r.vega.loader({http:{credentials:"same-origin"}});const c=async(e,t)=>{const n=this._resolver;if((n===null||n===void 0?void 0:n.isLocal)&&n.isLocal(e)){const t=await n.resolveUrl(e);e=await n.getDownloadUrl(t)}return d.sanitize(e,t)};this._result=await r.default(a,t,{actions:true,defaultStyle:true,...i,mode:o,loader:{...d,sanitize:c}});if(e.data["image/png"]){return}const h=await this._result.view.toImageURL("png",typeof i.scaleFactor==="number"?i.scaleFactor:i.scaleFactor?i.scaleFactor.png:i.scaleFactor);e.setData({data:{...e.data,"image/png":h.split(",")[1]}})}dispose(){if(this._result){this._result.finalize()}super.dispose()}}const p={safe:true,mimeTypes:[l,d,c,h],createRenderer:e=>new u(e)};const m={id:"@jupyterlab/vega5-extension:factory",description:"Provides a renderer for Vega 5 and Vega-Lite 3 to 5 content.",rendererFactory:p,rank:57,dataType:"json",documentWidgetFactoryOptions:[{name:"Vega5",primaryFileType:"vega5",fileTypes:["vega5","json"],defaultFor:["vega5"]},{name:"Vega-Lite5",primaryFileType:"vega-lite5",fileTypes:["vega-lite3","vega-lite4","vega-lite5","json"],defaultFor:["vega-lite3","vega-lite4","vega-lite5"]}],fileTypes:[{mimeTypes:[l],name:"vega5",extensions:[".vg",".vg.json",".vega"],icon:"ui-components:vega"},{mimeTypes:[h],name:"vega-lite5",extensions:[".vl",".vl.json",".vegalite"],icon:"ui-components:vega"},{mimeTypes:[c],name:"vega-lite4",extensions:[],icon:"ui-components:vega"},{mimeTypes:[d],name:"vega-lite3",extensions:[],icon:"ui-components:vega"}]};const g=m;var f;(function(e){function t(){if(e.vegaReady){return e.vegaReady}e.vegaReady=n.e(5085).then(n.t.bind(n,65085,23));return e.vegaReady}e.ensureVega=t})(f||(f={}))},30124:(e,t,n)=>{"use strict";var i=n(32902);var s=n(93379);var o=n.n(s);var r=n(7795);var a=n.n(r);var l=n(90569);var d=n.n(l);var c=n(3565);var h=n.n(c);var u=n(19216);var p=n.n(u);var m=n(44589);var g=n.n(m);var f=n(90854);var v={};v.styleTagTransform=g();v.setAttributes=h();v.insert=d().bind(null,"head");v.domAPI=a();v.insertStyleElement=p();var _=o()(f.Z,v);const b=f.Z&&f.Z.locals?f.Z.locals:undefined},35259:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ArrayExt:()=>i,StringExt:()=>M,chain:()=>s,each:()=>g,empty:()=>o,enumerate:()=>r,every:()=>f,filter:()=>a,find:()=>l,findIndex:()=>d,map:()=>_,max:()=>h,min:()=>c,minmax:()=>u,once:()=>x,range:()=>b,reduce:()=>w,repeat:()=>C,retro:()=>S,some:()=>v,stride:()=>j,take:()=>E,toArray:()=>p,toObject:()=>m,topologicSort:()=>k,zip:()=>I});var i;(function(e){function t(e,t,n=0,i=-1){let s=e.length;if(s===0){return-1}if(n<0){n=Math.max(0,n+s)}else{n=Math.min(n,s-1)}if(i<0){i=Math.max(0,i+s)}else{i=Math.min(i,s-1)}let o;if(i0){let i=a>>1;let s=r+i;if(n(e[s],t)<0){r=s+1;a-=i+1}else{a=i}}return r}e.lowerBound=a;function l(e,t,n,i=0,s=-1){let o=e.length;if(o===0){return 0}if(i<0){i=Math.max(0,i+o)}else{i=Math.min(i,o-1)}if(s<0){s=Math.max(0,s+o)}else{s=Math.min(s,o-1)}let r=i;let a=s-i+1;while(a>0){let i=a>>1;let s=r+i;if(n(e[s],t)>0){a=i}else{r=s+1;a-=i+1}}return r}e.upperBound=l;function d(e,t,n){if(e===t){return true}if(e.length!==t.length){return false}for(let i=0,s=e.length;i=o){n=s<0?o-1:o}if(i===undefined){i=s<0?-1:o}else if(i<0){i=Math.max(i+o,s<0?-1:0)}else if(i>=o){i=s<0?o-1:o}let r;if(s<0&&i>=n||s>0&&n>=i){r=0}else if(s<0){r=Math.floor((i-n+1)/s+1)}else{r=Math.floor((i-n-1)/s+1)}let a=[];for(let l=0;l=i){return}let o=i-n+1;if(t>0){t=t%o}else if(t<0){t=(t%o+o)%o}if(t===0){return}let r=n+t;u(e,n,r-1);u(e,r,i);u(e,n,i)}e.rotate=p;function m(e,t,n=0,i=-1){let s=e.length;if(s===0){return}if(n<0){n=Math.max(0,n+s)}else{n=Math.min(n,s-1)}if(i<0){i=Math.max(0,i+s)}else{i=Math.min(i,s-1)}let o;if(it;--s){e[s]=e[s-1]}e[t]=n}e.insert=g;function f(e,t){let n=e.length;if(t<0){t+=n}if(t<0||t>=n){return undefined}let i=e[t];for(let s=t+1;s=n&&r<=i&&e[r]===t){o++}else if(i=n)&&e[r]===t){o++}else if(o>0){e[r-o]=e[r]}}if(o>0){e.length=s-o}return o}e.removeAllOf=b;function y(e,t,n=0,s=-1){let o;let r=i(e,t,n,s);if(r!==-1){o=f(e,r)}return{index:r,value:o}}e.removeFirstWhere=y;function w(e,t,n=-1,i=0){let o;let r=s(e,t,n,i);if(r!==-1){o=f(e,r)}return{index:r,value:o}}e.removeLastWhere=w;function C(e,t,n=0,i=-1){let s=e.length;if(s===0){return 0}if(n<0){n=Math.max(0,n+s)}else{n=Math.min(n,s-1)}if(i<0){i=Math.max(0,i+s)}else{i=Math.min(i,s-1)}let o=0;for(let r=0;r=n&&r<=i&&t(e[r],r)){o++}else if(i=n)&&t(e[r],r)){o++}else if(o>0){e[r-o]=e[r]}}if(o>0){e.length=s-o}return o}e.removeAllWhere=C})(i||(i={}));function*s(...e){for(const t of e){yield*t}}function*o(){return}function*r(e,t=0){for(const n of e){yield[t++,n]}}function*a(e,t){let n=0;for(const i of e){if(t(i,n++)){yield i}}}function l(e,t){let n=0;for(const i of e){if(t(i,n++)){return i}}return undefined}function d(e,t){let n=0;for(const i of e){if(t(i,n++)){return n-1}}return-1}function c(e,t){let n=undefined;for(const i of e){if(n===undefined){n=i;continue}if(t(i,n)<0){n=i}}return n}function h(e,t){let n=undefined;for(const i of e){if(n===undefined){n=i;continue}if(t(i,n)>0){n=i}}return n}function u(e,t){let n=true;let i;let s;for(const o of e){if(n){i=o;s=o;n=false}else if(t(o,i)<0){i=o}else if(t(o,s)>0){s=o}}return n?undefined:[i,s]}function p(e){return Array.from(e)}function m(e){const t={};for(const[n,i]of e){t[n]=i}return t}function g(e,t){let n=0;for(const i of e){if(false===t(i,n++)){return}}}function f(e,t){let n=0;for(const i of e){if(false===t(i,n++)){return false}}return true}function v(e,t){let n=0;for(const i of e){if(t(i,n++)){return true}}return false}function*_(e,t){let n=0;for(const i of e){yield t(i,n++)}}function*b(e,t,n){if(t===undefined){t=e;e=0;n=1}else if(n===undefined){n=1}const i=y.rangeLength(e,t,n);for(let s=0;st&&n>0){return 0}if(e-1;t--){yield e[t]}}}function k(e){let t=[];let n=new Set;let i=new Map;for(const r of e){s(r)}for(const[r]of i){o(r)}return t;function s(e){let[t,n]=e;let s=i.get(n);if(s){s.push(t)}else{i.set(n,[t])}}function o(e){if(n.has(e)){return}n.add(e);let s=i.get(e);if(s){for(const e of s){o(e)}}t.push(e)}}function*j(e,t){let n=0;for(const i of e){if(0===n++%t){yield i}}}var M;(function(e){function t(e,t,n=0){let i=new Array(t.length);for(let s=0,o=n,r=t.length;st?1:0}e.cmp=o})(M||(M={}));function*E(e,t){if(t<1){return}const n=e[Symbol.iterator]();let i;while(0e[Symbol.iterator]()));let n=t.map((e=>e.next()));for(;f(n,(e=>!e.done));n=t.map((e=>e.next()))){yield n.map((e=>e.value))}}},80885:(e,t,n)=>{"use strict";n.r(t);n.d(t,{Application:()=>p});var i=n(6682);var s=n.n(i);var o=n(5596);var r=n.n(o);var a=n(85448);var l=n.n(a);var d;(function(e){function t(e,t,n=0,i=-1){let s=e.length;if(s===0){return-1}if(n<0){n=Math.max(0,n+s)}else{n=Math.min(n,s-1)}if(i<0){i=Math.max(0,i+s)}else{i=Math.min(i,s-1)}let o;if(i0){let i=a>>1;let s=r+i;if(n(e[s],t)<0){r=s+1;a-=i+1}else{a=i}}return r}e.lowerBound=a;function l(e,t,n,i=0,s=-1){let o=e.length;if(o===0){return 0}if(i<0){i=Math.max(0,i+o)}else{i=Math.min(i,o-1)}if(s<0){s=Math.max(0,s+o)}else{s=Math.min(s,o-1)}let r=i;let a=s-i+1;while(a>0){let i=a>>1;let s=r+i;if(n(e[s],t)>0){a=i}else{r=s+1;a-=i+1}}return r}e.upperBound=l;function d(e,t,n){if(e===t){return true}if(e.length!==t.length){return false}for(let i=0,s=e.length;i=o){n=s<0?o-1:o}if(i===undefined){i=s<0?-1:o}else if(i<0){i=Math.max(i+o,s<0?-1:0)}else if(i>=o){i=s<0?o-1:o}let r;if(s<0&&i>=n||s>0&&n>=i){r=0}else if(s<0){r=Math.floor((i-n+1)/s+1)}else{r=Math.floor((i-n-1)/s+1)}let a=[];for(let l=0;l=i){return}let o=i-n+1;if(t>0){t=t%o}else if(t<0){t=(t%o+o)%o}if(t===0){return}let r=n+t;u(e,n,r-1);u(e,r,i);u(e,n,i)}e.rotate=p;function m(e,t,n=0,i=-1){let s=e.length;if(s===0){return}if(n<0){n=Math.max(0,n+s)}else{n=Math.min(n,s-1)}if(i<0){i=Math.max(0,i+s)}else{i=Math.min(i,s-1)}let o;if(it;--s){e[s]=e[s-1]}e[t]=n}e.insert=g;function f(e,t){let n=e.length;if(t<0){t+=n}if(t<0||t>=n){return undefined}let i=e[t];for(let s=t+1;s=n&&r<=i&&e[r]===t){o++}else if(i=n)&&e[r]===t){o++}else if(o>0){e[r-o]=e[r]}}if(o>0){e.length=s-o}return o}e.removeAllOf=b;function y(e,t,n=0,s=-1){let o;let r=i(e,t,n,s);if(r!==-1){o=f(e,r)}return{index:r,value:o}}e.removeFirstWhere=y;function w(e,t,n=-1,i=0){let o;let r=s(e,t,n,i);if(r!==-1){o=f(e,r)}return{index:r,value:o}}e.removeLastWhere=w;function C(e,t,n=0,i=-1){let s=e.length;if(s===0){return 0}if(n<0){n=Math.max(0,n+s)}else{n=Math.min(n,s-1)}if(i<0){i=Math.max(0,i+s)}else{i=Math.min(i,s-1)}let o=0;for(let r=0;r=n&&r<=i&&t(e[r],r)){o++}else if(i=n)&&t(e[r],r)){o++}else if(o>0){e[r-o]=e[r]}}if(o>0){e.length=s-o}return o}e.removeAllWhere=C})(d||(d={}));var c;(function(e){function t(e,t,n){if(n===0){return Infinity}if(e>t&&n>0){return 0}if(et?1:0}e.cmp=o})(u||(u={}));class p{constructor(e){this._delegate=new o.PromiseDelegate;this._plugins=new Map;this._services=new Map;this._started=false;this.commands=new i.CommandRegistry;this.contextMenu=new a.ContextMenu({commands:this.commands,renderer:e.contextMenuRenderer});this.shell=e.shell}get started(){return this._delegate.promise}getPluginDescription(e){var t,n;return(n=(t=this._plugins.get(e))===null||t===void 0?void 0:t.description)!==null&&n!==void 0?n:""}hasPlugin(e){return this._plugins.has(e)}isPluginActivated(e){var t,n;return(n=(t=this._plugins.get(e))===null||t===void 0?void 0:t.activated)!==null&&n!==void 0?n:false}listPlugins(){return Array.from(this._plugins.keys())}registerPlugin(e){if(this._plugins.has(e.id)){throw new TypeError(`Plugin '${e.id}' is already registered.`)}const t=m.createPluginData(e);m.ensureNoCycle(t,this._plugins,this._services);if(t.provides){this._services.set(t.provides,t.id)}this._plugins.set(t.id,t)}registerPlugins(e){for(const t of e){this.registerPlugin(t)}}deregisterPlugin(e,t){const n=this._plugins.get(e);if(!n){return}if(n.activated&&!t){throw new Error(`Plugin '${e}' is still active.`)}this._plugins.delete(e)}async activatePlugin(e){const t=this._plugins.get(e);if(!t){throw new ReferenceError(`Plugin '${e}' is not registered.`)}if(t.activated){return}if(t.promise){return t.promise}const n=t.requires.map((e=>this.resolveRequiredService(e)));const i=t.optional.map((e=>this.resolveOptionalService(e)));t.promise=Promise.all([...n,...i]).then((e=>t.activate.apply(undefined,[this,...e]))).then((e=>{t.service=e;t.activated=true;t.promise=null})).catch((e=>{t.promise=null;throw e}));return t.promise}async deactivatePlugin(e){const t=this._plugins.get(e);if(!t){throw new ReferenceError(`Plugin '${e}' is not registered.`)}if(!t.activated){return[]}if(!t.deactivate){throw new TypeError(`Plugin '${e}'#deactivate() method missing`)}const n=m.findDependents(e,this._plugins,this._services);const i=n.map((e=>this._plugins.get(e)));for(const s of i){if(!s.deactivate){throw new TypeError(`Plugin ${s.id}#deactivate() method missing (depends on ${e})`)}}for(const s of i){const e=[...s.requires,...s.optional].map((e=>{const t=this._services.get(e);return t?this._plugins.get(t).service:null}));await s.deactivate(this,...e);s.service=null;s.activated=false}n.pop();return n}async resolveRequiredService(e){const t=this._services.get(e);if(!t){throw new TypeError(`No provider for: ${e.name}.`)}const n=this._plugins.get(t);if(!n.activated){await this.activatePlugin(t)}return n.service}async resolveOptionalService(e){const t=this._services.get(e);if(!t){return null}const n=this._plugins.get(t);if(!n.activated){try{await this.activatePlugin(t)}catch(i){console.error(i);return null}}return n.service}start(e={}){if(this._started){return this._delegate.promise}this._started=true;const t=e.hostID||"";const n=m.collectStartupPlugins(this._plugins,e);const i=n.map((e=>this.activatePlugin(e).catch((t=>{console.error(`Plugin '${e}' failed to activate.`);console.error(t)}))));Promise.all(i).then((()=>{this.attachShell(t);this.addEventListeners();this._delegate.resolve()}));return this._delegate.promise}get deferredPlugins(){return Array.from(this._plugins).filter((([e,t])=>t.autoStart==="defer")).map((([e,t])=>e))}async activateDeferredPlugins(){const e=this.deferredPlugins.filter((e=>this._plugins.get(e).autoStart)).map((e=>this.activatePlugin(e)));await Promise.all(e)}handleEvent(e){switch(e.type){case"resize":this.evtResize(e);break;case"keydown":this.evtKeydown(e);break;case"contextmenu":this.evtContextMenu(e);break}}attachShell(e){a.Widget.attach(this.shell,e&&document.getElementById(e)||document.body)}addEventListeners(){document.addEventListener("contextmenu",this);document.addEventListener("keydown",this,true);window.addEventListener("resize",this)}evtKeydown(e){this.commands.processKeydownEvent(e)}evtContextMenu(e){if(e.shiftKey){return}if(this.contextMenu.open(e)){e.preventDefault();e.stopPropagation()}}evtResize(e){this.shell.update()}}var m;(function(e){function t(e){var t,n,i,s;return{id:e.id,description:(t=e.description)!==null&&t!==void 0?t:"",service:null,promise:null,activated:false,activate:e.activate,deactivate:(n=e.deactivate)!==null&&n!==void 0?n:null,provides:(i=e.provides)!==null&&i!==void 0?i:null,autoStart:(s=e.autoStart)!==null&&s!==void 0?s:false,requires:e.requires?e.requires.slice():[],optional:e.optional?e.optional.slice():[]}}e.createPluginData=t;function n(e,t,n){const i=[...e.requires,...e.optional];const s=i=>{if(i===e.provides){return true}const r=n.get(i);if(!r){return false}const a=t.get(r);const l=[...a.requires,...a.optional];if(l.length===0){return false}o.push(r);if(l.some(s)){return true}o.pop();return false};if(!e.provides||i.length===0){return}const o=[e.id];if(i.some(s)){throw new ReferenceError(`Cycle detected: ${o.join(" -> ")}.`)}}e.ensureNoCycle=n;function i(e,t,n){const i=new Array;const s=e=>{const s=t.get(e);const o=[...s.requires,...s.optional];i.push(...o.reduce(((t,i)=>{const s=n.get(i);if(s){t.push([e,s])}return t}),[]))};for(const d of t.keys()){s(d)}const o=i.filter((t=>t[1]===e));let r=0;while(o.length>r){const e=o.length;const t=new Set(o.map((e=>e[0])));for(const n of t){i.filter((e=>e[1]===n)).forEach((e=>{if(!o.includes(e)){o.push(e)}}))}r=e}const a=h(o);const l=a.findIndex((t=>t===e));if(l===-1){return[e]}return a.slice(0,l+1)}e.findDependents=i;function s(e,t){const n=new Set;for(const i of e.keys()){if(e.get(i).autoStart===true){n.add(i)}}if(t.startPlugins){for(const e of t.startPlugins){n.add(e)}}if(t.ignorePlugins){for(const e of t.ignorePlugins){n.delete(e)}}return Array.from(n)}e.collectStartupPlugins=s})(m||(m={}))},45159:(e,t,n)=>{"use strict";n.r(t);n.d(t,{CommandRegistry:()=>g});var i=n(58740);var s=n.n(i);var o=n(5596);var r=n.n(o);var a=n(26512);var l=n.n(a);var d=n(36044);var c=n.n(d);var h=n(71720);var u=n.n(h);var p=n(71372);var m=n.n(p);class g{constructor(){this._timerID=0;this._replaying=false;this._keystrokes=[];this._keydownEvents=[];this._keyBindings=[];this._exactKeyMatch=null;this._commands=new Map;this._commandChanged=new p.Signal(this);this._commandExecuted=new p.Signal(this);this._keyBindingChanged=new p.Signal(this)}get commandChanged(){return this._commandChanged}get commandExecuted(){return this._commandExecuted}get keyBindingChanged(){return this._keyBindingChanged}get keyBindings(){return this._keyBindings}listCommands(){return Array.from(this._commands.keys())}hasCommand(e){return this._commands.has(e)}addCommand(e,t){if(this._commands.has(e)){throw new Error(`Command '${e}' already registered.`)}this._commands.set(e,f.createCommand(t));this._commandChanged.emit({id:e,type:"added"});return new a.DisposableDelegate((()=>{this._commands.delete(e);this._commandChanged.emit({id:e,type:"removed"})}))}notifyCommandChanged(e){if(e!==undefined&&!this._commands.has(e)){throw new Error(`Command '${e}' is not registered.`)}this._commandChanged.emit({id:e,type:e?"changed":"many-changed"})}describedBy(e,t=o.JSONExt.emptyObject){var n;let i=this._commands.get(e);return Promise.resolve((n=i===null||i===void 0?void 0:i.describedBy.call(undefined,t))!==null&&n!==void 0?n:{args:null})}label(e,t=o.JSONExt.emptyObject){var n;let i=this._commands.get(e);return(n=i===null||i===void 0?void 0:i.label.call(undefined,t))!==null&&n!==void 0?n:""}mnemonic(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.mnemonic.call(undefined,t):-1}icon(e,t=o.JSONExt.emptyObject){var n;return(n=this._commands.get(e))===null||n===void 0?void 0:n.icon.call(undefined,t)}iconClass(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.iconClass.call(undefined,t):""}iconLabel(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.iconLabel.call(undefined,t):""}caption(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.caption.call(undefined,t):""}usage(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.usage.call(undefined,t):""}className(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.className.call(undefined,t):""}dataset(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.dataset.call(undefined,t):{}}isEnabled(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.isEnabled.call(undefined,t):false}isToggled(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.isToggled.call(undefined,t):false}isToggleable(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.isToggleable:false}isVisible(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);return n?n.isVisible.call(undefined,t):false}execute(e,t=o.JSONExt.emptyObject){let n=this._commands.get(e);if(!n){return Promise.reject(new Error(`Command '${e}' not registered.`))}let i;try{i=n.execute.call(undefined,t)}catch(r){i=Promise.reject(r)}let s=Promise.resolve(i);this._commandExecuted.emit({id:e,args:t,result:s});return s}addKeyBinding(e){let t=f.createKeyBinding(e);this._keyBindings.push(t);this._keyBindingChanged.emit({binding:t,type:"added"});return new a.DisposableDelegate((()=>{i.ArrayExt.removeFirstOf(this._keyBindings,t);this._keyBindingChanged.emit({binding:t,type:"removed"})}))}processKeydownEvent(e){if(this._replaying||g.isModifierKeyPressed(e)){return}let t=g.keystrokeForKeydownEvent(e);if(!t){this._replayKeydownEvents();this._clearPendingState();return}this._keystrokes.push(t);let{exact:n,partial:i}=f.matchKeyBinding(this._keyBindings,this._keystrokes,e);if(!n&&!i){this._replayKeydownEvents();this._clearPendingState();return}e.preventDefault();e.stopPropagation();if(n&&!i){this._executeKeyBinding(n);this._clearPendingState();return}if(n){this._exactKeyMatch=n}this._keydownEvents.push(e);this._startTimer()}_startTimer(){this._clearTimer();this._timerID=window.setTimeout((()=>{this._onPendingTimeout()}),f.CHORD_TIMEOUT)}_clearTimer(){if(this._timerID!==0){clearTimeout(this._timerID);this._timerID=0}}_replayKeydownEvents(){if(this._keydownEvents.length===0){return}this._replaying=true;this._keydownEvents.forEach(f.replayKeyEvent);this._replaying=false}_executeKeyBinding(e){let{command:t,args:n}=e;if(!this.hasCommand(t)||!this.isEnabled(t,n)){let n=this.hasCommand(t)?"enabled":"registered";let i=e.keys.join(", ");let s=`Cannot execute key binding '${i}':`;let o=`command '${t}' is not ${n}.`;console.warn(`${s} ${o}`);return}this.execute(t,n)}_clearPendingState(){this._clearTimer();this._exactKeyMatch=null;this._keystrokes.length=0;this._keydownEvents.length=0}_onPendingTimeout(){this._timerID=0;if(this._exactKeyMatch){this._executeKeyBinding(this._exactKeyMatch)}else{this._replayKeydownEvents()}this._clearPendingState()}}(function(e){function t(e){let t="";let n=false;let i=false;let s=false;let o=false;for(let r of e.split(/\s+/)){if(r==="Accel"){if(d.Platform.IS_MAC){i=true}else{s=true}}else if(r==="Alt"){n=true}else if(r==="Cmd"){i=true}else if(r==="Ctrl"){s=true}else if(r==="Shift"){o=true}else if(r.length>0){t=r}}return{cmd:i,ctrl:s,alt:n,shift:o,key:t}}e.parseKeystroke=t;function n(e){let n="";let i=t(e);if(i.ctrl){n+="Ctrl "}if(i.alt){n+="Alt "}if(i.shift){n+="Shift "}if(i.cmd&&d.Platform.IS_MAC){n+="Cmd "}return n+i.key}e.normalizeKeystroke=n;function i(e){let t;if(d.Platform.IS_WIN){t=e.winKeys||e.keys}else if(d.Platform.IS_MAC){t=e.macKeys||e.keys}else{t=e.linuxKeys||e.keys}return t.map(n)}e.normalizeKeys=i;function s(e){return typeof e==="string"?n(e):e.map(n).join(", ");function n(e){let n=[];let i=d.Platform.IS_MAC?" ":"+";let s=t(e);if(s.ctrl){n.push("Ctrl")}if(s.alt){n.push("Alt")}if(s.shift){n.push("Shift")}if(d.Platform.IS_MAC&&s.cmd){n.push("Cmd")}n.push(s.key);return n.map(f.formatKey).join(i)}}e.formatKeystroke=s;function o(e){let t=(0,h.getKeyboardLayout)();let n=t.keyForKeydownEvent(e);return t.isModifierKey(n)}e.isModifierKeyPressed=o;function r(e){let t=(0,h.getKeyboardLayout)();let n=t.keyForKeydownEvent(e);if(!n||t.isModifierKey(n)){return""}let i=[];if(e.ctrlKey){i.push("Ctrl")}if(e.altKey){i.push("Alt")}if(e.shiftKey){i.push("Shift")}if(e.metaKey&&d.Platform.IS_MAC){i.push("Cmd")}i.push(n);return i.join(" ")}e.keystrokeForKeydownEvent=r})(g||(g={}));var f;(function(e){e.CHORD_TIMEOUT=1e3;function t(e){return{execute:e.execute,describedBy:v(typeof e.describedBy==="function"?e.describedBy:{args:null,...e.describedBy},(()=>({args:null}))),label:v(e.label,c),mnemonic:v(e.mnemonic,h),icon:v(e.icon,f),iconClass:v(e.iconClass,c),iconLabel:v(e.iconLabel,c),caption:v(e.caption,c),usage:v(e.usage,c),className:v(e.className,c),dataset:v(e.dataset,m),isEnabled:e.isEnabled||u,isToggled:e.isToggled||p,isToggleable:e.isToggleable||!!e.isToggled,isVisible:e.isVisible||u}}e.createCommand=t;function n(e){return{keys:g.normalizeKeys(e),selector:_(e),command:e.command,args:e.args||o.JSONExt.emptyObject}}e.createKeyBinding=n;function i(e,t,n){let i=null;let s=false;let o=Infinity;let r=0;for(let a=0,l=e.length;ao){continue}let u=d.Selector.calculateSpecificity(l.selector);if(!i||h=r){i=l;o=h;r=u}}return{exact:i,partial:s}}e.matchKeyBinding=i;function s(e){e.target.dispatchEvent(w(e))}e.replayKeyEvent=s;function r(e){if(d.Platform.IS_MAC){return a.hasOwnProperty(e)?a[e]:e}else{return l.hasOwnProperty(e)?l[e]:e}}e.formatKey=r;const a={Backspace:"⌫",Tab:"⇥",Enter:"⏎",Shift:"⇧",Ctrl:"⌃",Alt:"⌥",Escape:"⎋",PageUp:"⇞",PageDown:"⇟",End:"↘",Home:"↖",ArrowLeft:"←",ArrowUp:"↑",ArrowRight:"→",ArrowDown:"↓",Delete:"⌦",Cmd:"⌘"};const l={Escape:"Esc",PageUp:"Page Up",PageDown:"Page Down",ArrowLeft:"Left",ArrowUp:"Up",ArrowRight:"Right",ArrowDown:"Down",Delete:"Del"};const c=()=>"";const h=()=>-1;const u=()=>true;const p=()=>false;const m=()=>({});const f=()=>undefined;function v(e,t){if(e===undefined){return t}if(typeof e==="function"){return e}return()=>e}function _(e){if(e.selector.indexOf(",")!==-1){throw new Error(`Selector cannot contain commas: ${e.selector}`)}if(!d.Selector.isValid(e.selector)){throw new Error(`Invalid selector: ${e.selector}`)}return e.selector}function b(e,t){if(e.lengtht.length){return 2}return 1}function y(e,t){let n=t.target;let i=t.currentTarget;for(let s=0;n!==null;n=n.parentElement,++s){if(n.hasAttribute("data-lm-suppress-shortcuts")){return-1}if(d.Selector.matches(n,e)){return s}if(n===i){return-1}}return-1}function w(e){let t=document.createEvent("Event");let n=e.bubbles||true;let i=e.cancelable||true;t.initEvent(e.type||"keydown",n,i);t.key=e.key||"";t.keyCode=e.keyCode||0;t.which=e.keyCode||0;t.ctrlKey=e.ctrlKey||false;t.altKey=e.altKey||false;t.shiftKey=e.shiftKey||false;t.metaKey=e.metaKey||false;t.view=e.view||window;return t}})(f||(f={}))},95082:function(e,t){(function(e,n){true?n(t):0})(this,(function(e){"use strict";e.JSONExt=void 0;(function(e){e.emptyObject=Object.freeze({});e.emptyArray=Object.freeze([]);function t(e){return e===null||typeof e==="boolean"||typeof e==="number"||typeof e==="string"}e.isPrimitive=t;function n(e){return Array.isArray(e)}e.isArray=n;function i(e){return!t(e)&&!n(e)}e.isObject=i;function s(e,i){if(e===i){return true}if(t(e)||t(i)){return false}let s=n(e);let o=n(i);if(s!==o){return false}if(s&&o){return r(e,i)}return a(e,i)}e.deepEqual=s;function o(e){if(t(e)){return e}if(n(e)){return l(e)}return d(e)}e.deepCopy=o;function r(e,t){if(e===t){return true}if(e.length!==t.length){return false}for(let n=0,i=e.length;n{this._resolve=e;this._reject=t}))}resolve(e){let t=this._resolve;t(e)}reject(e){let t=this._reject;t(e)}}class i{constructor(e,t){this.name=e;this.description=t!==null&&t!==void 0?t:"";this._tokenStructuralPropertyT=null}}function s(e){let t=0;for(let n=0,i=e.length;n>>0}e[n]=t&255;t>>>=8}}e.Random=void 0;(function(e){e.getRandomValues=(()=>{const e=typeof window!=="undefined"&&(window.crypto||window.msCrypto)||null;if(e&&typeof e.getRandomValues==="function"){return function t(n){return e.getRandomValues(n)}}return s})()})(e.Random||(e.Random={}));function o(e){const t=new Uint8Array(16);const n=new Array(256);for(let i=0;i<16;++i){n[i]="0"+i.toString(16)}for(let i=16;i<256;++i){n[i]=i.toString(16)}return function i(){e(t);t[6]=64|t[6]&15;t[8]=128|t[8]&63;return n[t[0]]+n[t[1]]+n[t[2]]+n[t[3]]+"-"+n[t[4]]+n[t[5]]+"-"+n[t[6]]+n[t[7]]+"-"+n[t[8]]+n[t[9]]+"-"+n[t[10]]+n[t[11]]+n[t[12]]+n[t[13]]+n[t[14]]+n[t[15]]}}e.UUID=void 0;(function(t){t.uuid4=o(e.Random.getRandomValues)})(e.UUID||(e.UUID={}));e.MimeData=t;e.PromiseDelegate=n;e.Token=i}))},70725:(e,t,n)=>{"use strict";n.r(t);n.d(t,{DisposableDelegate:()=>o,DisposableSet:()=>a,ObservableDisposableDelegate:()=>r,ObservableDisposableSet:()=>l});var i=n(71372);var s=n.n(i);class o{constructor(e){this._fn=e}get isDisposed(){return!this._fn}dispose(){if(!this._fn){return}let e=this._fn;this._fn=null;e()}}class r extends o{constructor(){super(...arguments);this._disposed=new i.Signal(this)}get disposed(){return this._disposed}dispose(){if(this.isDisposed){return}super.dispose();this._disposed.emit(undefined);i.Signal.clearData(this)}}class a{constructor(){this._isDisposed=false;this._items=new Set}get isDisposed(){return this._isDisposed}dispose(){if(this._isDisposed){return}this._isDisposed=true;this._items.forEach((e=>{e.dispose()}));this._items.clear()}contains(e){return this._items.has(e)}add(e){this._items.add(e)}remove(e){this._items.delete(e)}clear(){this._items.clear()}}(function(e){function t(t){let n=new e;for(const e of t){n.add(e)}return n}e.from=t})(a||(a={}));class l extends a{constructor(){super(...arguments);this._disposed=new i.Signal(this)}get disposed(){return this._disposed}dispose(){if(this.isDisposed){return}super.dispose();this._disposed.emit(undefined);i.Signal.clearData(this)}}(function(e){function t(t){let n=new e;for(const e of t){n.add(e)}return n}e.from=t})(l||(l={}))},19150:(e,t,n)=>{"use strict";n.r(t);n.d(t,{ClipboardExt:()=>i,ElementExt:()=>s,Platform:()=>o,Selector:()=>r});var i;(function(e){function t(e){const t=document.body;const n=i=>{i.preventDefault();i.stopPropagation();i.clipboardData.setData("text",e);t.removeEventListener("copy",n,true)};t.addEventListener("copy",n,true);document.execCommand("copy")}e.copyText=t})(i||(i={}));var s;(function(e){function t(e){let t=window.getComputedStyle(e);let n=parseFloat(t.borderTopWidth)||0;let i=parseFloat(t.borderLeftWidth)||0;let s=parseFloat(t.borderRightWidth)||0;let o=parseFloat(t.borderBottomWidth)||0;let r=parseFloat(t.paddingTop)||0;let a=parseFloat(t.paddingLeft)||0;let l=parseFloat(t.paddingRight)||0;let d=parseFloat(t.paddingBottom)||0;let c=i+a+l+s;let h=n+r+d+o;return{borderTop:n,borderLeft:i,borderRight:s,borderBottom:o,paddingTop:r,paddingLeft:a,paddingRight:l,paddingBottom:d,horizontalSum:c,verticalSum:h}}e.boxSizing=t;function n(e){let t=window.getComputedStyle(e);let n=parseFloat(t.minWidth)||0;let i=parseFloat(t.minHeight)||0;let s=parseFloat(t.maxWidth)||Infinity;let o=parseFloat(t.maxHeight)||Infinity;s=Math.max(n,s);o=Math.max(i,o);return{minWidth:n,minHeight:i,maxWidth:s,maxHeight:o}}e.sizeLimits=n;function i(e,t,n){let i=e.getBoundingClientRect();return t>=i.left&&t=i.top&&n=n.bottom){return}if(i.topn.bottom&&i.height>=n.height){e.scrollTop-=n.top-i.top;return}if(i.topn.height){e.scrollTop-=n.bottom-i.bottom;return}if(i.bottom>n.bottom&&i.height{let e=Element.prototype;return e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){let t=this;let n=t.ownerDocument?t.ownerDocument.querySelectorAll(e):[];return Array.prototype.indexOf.call(n,t)!==-1}})();function t(e){e=e.split(",",1)[0];let t=0;let c=0;let h=0;function u(t){let n=e.match(t);if(n===null){return false}e=e.slice(n[0].length);return true}e=e.replace(d," $1 ");while(e.length>0){if(u(n)){t++;continue}if(u(i)){c++;continue}if(u(s)){c++;continue}if(u(r)){h++;continue}if(u(a)){c++;continue}if(u(o)){h++;continue}if(u(l)){continue}return 0}t=Math.min(t,255);c=Math.min(c,255);h=Math.min(h,255);return t<<16|c<<8|h}e.calculateSingle=t;const n=/^#[^\s\+>~#\.\[:]+/;const i=/^\.[^\s\+>~#\.\[:]+/;const s=/^\[[^\]]+\]/;const o=/^[^\s\+>~#\.\[:]+/;const r=/^(::[^\s\+>~#\.\[:]+|:first-line|:first-letter|:before|:after)/;const a=/^:[^\s\+>~#\.\[:]+/;const l=/^[\s\+>~\*]+/;const d=/:not\(([^\)]+)\)/g})(a||(a={}))},17303:(e,t,n)=>{"use strict";n.r(t);n.d(t,{Drag:()=>o});var i=n(26512);var s=n.n(i);class o{constructor(e){this._onScrollFrame=()=>{if(!this._scrollTarget){return}let{element:e,edge:t,distance:n}=this._scrollTarget;let i=r.SCROLL_EDGE_SIZE-n;let s=Math.pow(i/r.SCROLL_EDGE_SIZE,2);let o=Math.max(1,Math.round(s*r.SCROLL_EDGE_SIZE));switch(t){case"top":e.scrollTop-=o;break;case"left":e.scrollLeft-=o;break;case"right":e.scrollLeft+=o;break;case"bottom":e.scrollTop+=o;break}requestAnimationFrame(this._onScrollFrame)};this._disposed=false;this._dropAction="none";this._override=null;this._currentTarget=null;this._currentElement=null;this._promise=null;this._scrollTarget=null;this._resolve=null;this.document=e.document||document;this.mimeData=e.mimeData;this.dragImage=e.dragImage||null;this.proposedAction=e.proposedAction||"copy";this.supportedActions=e.supportedActions||"all";this.source=e.source||null}dispose(){if(this._disposed){return}this._disposed=true;if(this._currentTarget){let e=new PointerEvent("pointerup",{bubbles:true,cancelable:true,clientX:-1,clientY:-1});r.dispatchDragLeave(this,this._currentTarget,null,e)}this._finalize("none")}get isDisposed(){return this._disposed}start(e,t){if(this._disposed){return Promise.resolve("none")}if(this._promise){return this._promise}this._addListeners();this._attachDragImage(e,t);this._promise=new Promise((e=>{this._resolve=e}));let n=new PointerEvent("pointermove",{bubbles:true,cancelable:true,clientX:e,clientY:t});document.dispatchEvent(n);return this._promise}handleEvent(e){switch(e.type){case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"keydown":this._evtKeyDown(e);break;default:e.preventDefault();e.stopPropagation();break}}moveDragImage(e,t){if(!this.dragImage){return}let n=this.dragImage.style;n.transform=`translate(${e}px, ${t}px)`}_evtPointerMove(e){e.preventDefault();e.stopPropagation();this._updateCurrentTarget(e);this._updateDragScroll(e);this.moveDragImage(e.clientX,e.clientY)}_evtPointerUp(e){e.preventDefault();e.stopPropagation();if(e.button!==0){return}this._updateCurrentTarget(e);if(!this._currentTarget){this._finalize("none");return}if(this._dropAction==="none"){r.dispatchDragLeave(this,this._currentTarget,null,e);this._finalize("none");return}let t=r.dispatchDrop(this,this._currentTarget,e);this._finalize(t)}_evtKeyDown(e){e.preventDefault();e.stopPropagation();if(e.keyCode===27){this.dispose()}}_addListeners(){document.addEventListener("pointerdown",this,true);document.addEventListener("pointermove",this,true);document.addEventListener("pointerup",this,true);document.addEventListener("pointerenter",this,true);document.addEventListener("pointerleave",this,true);document.addEventListener("pointerover",this,true);document.addEventListener("pointerout",this,true);document.addEventListener("keydown",this,true);document.addEventListener("keyup",this,true);document.addEventListener("keypress",this,true);document.addEventListener("contextmenu",this,true)}_removeListeners(){document.removeEventListener("pointerdown",this,true);document.removeEventListener("pointermove",this,true);document.removeEventListener("pointerup",this,true);document.removeEventListener("pointerenter",this,true);document.removeEventListener("pointerleave",this,true);document.removeEventListener("pointerover",this,true);document.removeEventListener("pointerout",this,true);document.removeEventListener("keydown",this,true);document.removeEventListener("keyup",this,true);document.removeEventListener("keypress",this,true);document.removeEventListener("contextmenu",this,true)}_updateDragScroll(e){let t=r.findScrollTarget(e);if(!this._scrollTarget&&!t){return}if(!this._scrollTarget){setTimeout(this._onScrollFrame,500)}this._scrollTarget=t}_updateCurrentTarget(e){let t=this._currentTarget;let n=this._currentTarget;let i=this._currentElement;let s=r.findElementBehidBackdrop(e,this.document);this._currentElement=s;if(s!==i&&s!==n){r.dispatchDragExit(this,n,s,e)}if(s!==i&&s!==n){n=r.dispatchDragEnter(this,s,n,e)}if(n!==t){this._currentTarget=n;r.dispatchDragLeave(this,t,n,e)}let o=r.dispatchDragOver(this,n,e);this._setDropAction(o)}_attachDragImage(e,t){if(!this.dragImage){return}this.dragImage.classList.add("lm-mod-drag-image");let n=this.dragImage.style;n.pointerEvents="none";n.position="fixed";n.transform=`translate(${e}px, ${t}px)`;const i=this.document instanceof Document?this.document.body:this.document.firstElementChild;i.appendChild(this.dragImage)}_detachDragImage(){if(!this.dragImage){return}let e=this.dragImage.parentNode;if(!e){return}e.removeChild(this.dragImage)}_setDropAction(e){e=r.validateAction(e,this.supportedActions);if(this._override&&this._dropAction===e){return}switch(e){case"none":this._dropAction=e;this._override=o.overrideCursor("no-drop",this.document);break;case"copy":this._dropAction=e;this._override=o.overrideCursor("copy",this.document);break;case"link":this._dropAction=e;this._override=o.overrideCursor("alias",this.document);break;case"move":this._dropAction=e;this._override=o.overrideCursor("move",this.document);break}}_finalize(e){let t=this._resolve;this._removeListeners();this._detachDragImage();if(this._override){this._override.dispose();this._override=null}this.mimeData.clear();this._disposed=true;this._dropAction="none";this._currentTarget=null;this._currentElement=null;this._scrollTarget=null;this._promise=null;this._resolve=null;if(t){t(e)}}}(function(e){class t extends DragEvent{constructor(e,t){super(t.type,{bubbles:true,cancelable:true,altKey:e.altKey,button:e.button,clientX:e.clientX,clientY:e.clientY,ctrlKey:e.ctrlKey,detail:0,metaKey:e.metaKey,relatedTarget:t.related,screenX:e.screenX,screenY:e.screenY,shiftKey:e.shiftKey,view:window});const{drag:n}=t;this.dropAction="none";this.mimeData=n.mimeData;this.proposedAction=n.proposedAction;this.supportedActions=n.supportedActions;this.source=n.source}}e.Event=t;function n(e,t=document){return r.overrideCursor(e,t)}e.overrideCursor=n})(o||(o={}));var r;(function(e){e.SCROLL_EDGE_SIZE=20;function t(e,t){return u[e]&p[t]?e:"none"}e.validateAction=t;function n(t,n=document){if(s&&t==s.event){return s.element}e.cursorBackdrop.style.zIndex="-1000";const i=n.elementFromPoint(t.clientX,t.clientY);e.cursorBackdrop.style.zIndex="";s={event:t,element:i};return i}e.findElementBehidBackdrop=n;let s=null;function r(t){let i=t.clientX;let s=t.clientY;let o=n(t);for(;o;o=o.parentElement){if(!o.hasAttribute("data-lm-dragscroll")){continue}let t=0;let n=0;if(o===document.body){t=window.pageXOffset;n=window.pageYOffset}let r=o.getBoundingClientRect();let a=r.top+n;let l=r.left+t;let d=l+r.width;let c=a+r.height;if(i=d||s=c){continue}let h=i-l+1;let u=s-a+1;let p=d-i;let m=c-s;let g=Math.min(h,u,p,m);if(g>e.SCROLL_EDGE_SIZE){continue}let f;switch(g){case m:f="bottom";break;case u:f="top";break;case p:f="right";break;case h:f="left";break;default:throw"unreachable"}let v=o.scrollWidth-o.clientWidth;let _=o.scrollHeight-o.clientHeight;let b;switch(f){case"top":b=_>0&&o.scrollTop>0;break;case"left":b=v>0&&o.scrollLeft>0;break;case"right":b=v>0&&o.scrollLeft0&&o.scrollTop<_;break;default:throw"unreachable"}if(!b){continue}return{element:o,edge:f,distance:g}}return null}e.findScrollTarget=r;function a(e,t,n,i){if(!t){return null}let s=new o.Event(i,{drag:e,related:n,type:"lm-dragenter"});let r=!t.dispatchEvent(s);if(r){return t}const a=e.document instanceof Document?e.document.body:e.document.firstElementChild;if(t===a){return n}s=new o.Event(i,{drag:e,related:n,type:"lm-dragenter"});a.dispatchEvent(s);return a}e.dispatchDragEnter=a;function l(e,t,n,i){if(!t){return}let s=new o.Event(i,{drag:e,related:n,type:"lm-dragexit"});t.dispatchEvent(s)}e.dispatchDragExit=l;function d(e,t,n,i){if(!t){return}let s=new o.Event(i,{drag:e,related:n,type:"lm-dragleave"});t.dispatchEvent(s)}e.dispatchDragLeave=d;function c(e,t,n){if(!t){return"none"}let i=new o.Event(n,{drag:e,related:null,type:"lm-dragover"});let s=!t.dispatchEvent(i);if(s){return i.dropAction}return"none"}e.dispatchDragOver=c;function h(e,t,n){if(!t){return"none"}let i=new o.Event(n,{drag:e,related:null,type:"lm-drop"});let s=!t.dispatchEvent(i);if(s){return i.dropAction}return"none"}e.dispatchDrop=h;const u={none:0,copy:1,link:2,move:4};const p={none:u["none"],copy:u["copy"],link:u["link"],move:u["move"],"copy-link":u["copy"]|u["link"],"copy-move":u["copy"]|u["move"],"link-move":u["link"]|u["move"],all:u["copy"]|u["link"]|u["move"]};function m(t,n=document){let s=++v;const o=n instanceof Document?n.body:n.firstElementChild;if(!e.cursorBackdrop.isConnected){e.cursorBackdrop.style.transform="scale(0)";o.appendChild(e.cursorBackdrop);document.addEventListener("pointermove",g,{capture:true,passive:true})}e.cursorBackdrop.style.cursor=t;return new i.DisposableDelegate((()=>{if(s===v&&e.cursorBackdrop.isConnected){document.removeEventListener("pointermove",g,true);o.removeChild(e.cursorBackdrop)}}))}e.overrideCursor=m;function g(t){if(!e.cursorBackdrop){return}e.cursorBackdrop.style.transform=`translate(${t.clientX}px, ${t.clientY}px)`}function f(){const e=document.createElement("div");e.classList.add("lm-cursor-backdrop");return e}let v=0;e.cursorBackdrop=f()})(r||(r={}))},22748:(e,t,n)=>{"use strict";var i=n(93379);var s=n.n(i);var o=n(7795);var r=n.n(o);var a=n(90569);var l=n.n(a);var d=n(3565);var c=n.n(d);var h=n(19216);var u=n.n(h);var p=n(44589);var m=n.n(p);var g=n(50834);var f={};f.styleTagTransform=m();f.setAttributes=c();f.insert=l().bind(null,"head");f.domAPI=r();f.insertStyleElement=u();var v=s()(g.Z,f);const _=g.Z&&g.Z.locals?g.Z.locals:undefined},27347:(e,t,n)=>{"use strict";n.r(t);n.d(t,{EN_US:()=>r,KeycodeLayout:()=>o,getKeyboardLayout:()=>i,setKeyboardLayout:()=>s});function i(){return a.keyboardLayout}function s(e){a.keyboardLayout=e}class o{constructor(e,t,n=[]){this.name=e;this._codes=t;this._keys=o.extractKeys(t);this._modifierKeys=o.convertToKeySet(n)}keys(){return Object.keys(this._keys)}isValidKey(e){return e in this._keys}isModifierKey(e){return e in this._modifierKeys}keyForKeydownEvent(e){return this._codes[e.keyCode]||""}}(function(e){function t(e){let t=Object.create(null);for(let n in e){t[e[n]]=true}return t}e.extractKeys=t;function n(e){let t=Object(null);for(let n=0,i=e.length;n{"use strict";n.r(t);n.d(t,{ConflatableMessage:()=>a,Message:()=>r,MessageLoop:()=>l});var i=n(58740);class s{constructor(){this._first=null;this._last=null;this._size=0}get isEmpty(){return this._size===0}get size(){return this._size}get length(){return this._size}get first(){return this._first?this._first.value:undefined}get last(){return this._last?this._last.value:undefined}get firstNode(){return this._first}get lastNode(){return this._last}*[Symbol.iterator](){let e=this._first;while(e){yield e.value;e=e.next}}*retro(){let e=this._last;while(e){yield e.value;e=e.prev}}*nodes(){let e=this._first;while(e){yield e;e=e.next}}*retroNodes(){let e=this._last;while(e){yield e;e=e.prev}}assign(e){this.clear();for(const t of e){this.addLast(t)}}push(e){this.addLast(e)}pop(){return this.removeLast()}shift(e){this.addFirst(e)}unshift(){return this.removeFirst()}addFirst(e){let t=new o.LinkedListNode(this,e);if(!this._first){this._first=t;this._last=t}else{t.next=this._first;this._first.prev=t;this._first=t}this._size++;return t}addLast(e){let t=new o.LinkedListNode(this,e);if(!this._last){this._first=t;this._last=t}else{t.prev=this._last;this._last.next=t;this._last=t}this._size++;return t}insertBefore(e,t){if(!t||t===this._first){return this.addFirst(e)}if(!(t instanceof o.LinkedListNode)||t.list!==this){throw new Error("Reference node is not owned by the list.")}let n=new o.LinkedListNode(this,e);let i=t;let s=i.prev;n.next=i;n.prev=s;i.prev=n;s.next=n;this._size++;return n}insertAfter(e,t){if(!t||t===this._last){return this.addLast(e)}if(!(t instanceof o.LinkedListNode)||t.list!==this){throw new Error("Reference node is not owned by the list.")}let n=new o.LinkedListNode(this,e);let i=t;let s=i.next;n.next=s;n.prev=i;i.next=n;s.prev=n;this._size++;return n}removeFirst(){let e=this._first;if(!e){return undefined}if(e===this._last){this._first=null;this._last=null}else{this._first=e.next;this._first.prev=null}e.list=null;e.next=null;e.prev=null;this._size--;return e.value}removeLast(){let e=this._last;if(!e){return undefined}if(e===this._first){this._first=null;this._last=null}else{this._last=e.prev;this._last.next=null}e.list=null;e.next=null;e.prev=null;this._size--;return e.value}removeNode(e){if(!(e instanceof o.LinkedListNode)||e.list!==this){throw new Error("Node is not owned by the list.")}let t=e;if(t===this._first&&t===this._last){this._first=null;this._last=null}else if(t===this._first){this._first=t.next;this._first.prev=null}else if(t===this._last){this._last=t.prev;this._last.next=null}else{t.next.prev=t.prev;t.prev.next=t.next}t.list=null;t.next=null;t.prev=null;this._size--}clear(){let e=this._first;while(e){let t=e.next;e.list=null;e.prev=null;e.next=null;e=t}this._first=null;this._last=null;this._size=0}}(function(e){function t(t){let n=new e;n.assign(t);return n}e.from=t})(s||(s={}));var o;(function(e){class t{constructor(e,t){this.list=null;this.next=null;this.prev=null;this.list=e;this.value=t}}e.LinkedListNode=t})(o||(o={}));class r{constructor(e){this.type=e}get isConflatable(){return false}conflate(e){return false}}class a extends r{get isConflatable(){return true}conflate(e){return true}}var l;(function(e){let t=null;const n=(e=>t=>{let n=false;e.then((()=>!n&&t()));return()=>{n=true}})(Promise.resolve());function o(e,t){let n=m.get(e);if(!n||n.length===0){b(e,t);return}let s=(0,i.every)((0,i.retro)(n),(n=>n?_(n,e,t):true));if(s){b(e,t)}}e.sendMessage=o;function r(e,t){if(!t.isConflatable){y(e,t);return}let n=(0,i.some)(p,(n=>{if(n.handler!==e){return false}if(!n.msg){return false}if(n.msg.type!==t.type){return false}if(!n.msg.isConflatable){return false}return n.msg.conflate(t)}));if(!n){y(e,t)}}e.postMessage=r;function a(e,t){let n=m.get(e);if(n&&n.indexOf(t)!==-1){return}if(!n){m.set(e,[t])}else{n.push(t)}}e.installMessageHook=a;function l(e,t){let n=m.get(e);if(!n){return}let i=n.indexOf(t);if(i===-1){return}n[i]=null;C(n)}e.removeMessageHook=l;function d(e){let t=m.get(e);if(t&&t.length>0){i.ArrayExt.fill(t,null);C(t)}for(const n of p){if(n.handler===e){n.handler=null;n.msg=null}}}e.clearData=d;function c(){if(v||t===null){return}t();t=null;v=true;w();v=false}e.flush=c;function h(){return f}e.getExceptionHandler=h;function u(e){let t=f;f=e;return t}e.setExceptionHandler=u;const p=new s;const m=new WeakMap;const g=new Set;let f=e=>{console.error(e)};let v=false;function _(e,t,n){let i=true;try{if(typeof e==="function"){i=e(t,n)}else{i=e.messageHook(t,n)}}catch(s){f(s)}return i}function b(e,t){try{e.processMessage(t)}catch(n){f(n)}}function y(e,i){p.addLast({handler:e,msg:i});if(t!==null){return}t=n(w)}function w(){t=null;if(p.isEmpty){return}let e={handler:null,msg:null};p.addLast(e);while(true){let t=p.removeFirst();if(t===e){return}if(t.handler&&t.msg){o(t.handler,t.msg)}}}function C(e){if(g.size===0){n(x)}g.add(e)}function x(){g.forEach(S);g.clear()}function S(e){i.ArrayExt.removeAllWhere(e,k)}function k(e){return e===null}})(l||(l={}))},23114:(e,t,n)=>{"use strict";n.r(t);n.d(t,{Debouncer:()=>c,Poll:()=>a,RateLimiter:()=>d,Throttler:()=>h});var i=n(5596);var s=n.n(i);var o=n(71372);var r=n.n(o);class a{constructor(e){var t;this._disposed=new o.Signal(this);this._lingered=0;this._tick=new i.PromiseDelegate;this._ticked=new o.Signal(this);this._factory=e.factory;this._linger=(t=e.linger)!==null&&t!==void 0?t:l.DEFAULT_LINGER;this._standby=e.standby||l.DEFAULT_STANDBY;this._state={...l.DEFAULT_STATE,timestamp:(new Date).getTime()};const n=e.frequency||{};const s=Math.max(n.interval||0,n.max||0,l.DEFAULT_FREQUENCY.max);this.frequency={...l.DEFAULT_FREQUENCY,...n,...{max:s}};this.name=e.name||l.DEFAULT_NAME;if("auto"in e?e.auto:true){setTimeout((()=>this.start()))}}get disposed(){return this._disposed}get frequency(){return this._frequency}set frequency(e){if(this.isDisposed||i.JSONExt.deepEqual(e,this.frequency||{})){return}let{backoff:t,interval:n,max:s}=e;n=Math.round(n);s=Math.round(s);if(typeof t==="number"&&t<1){throw new Error("Poll backoff growth factor must be at least 1")}if((n<0||n>s)&&n!==a.NEVER){throw new Error("Poll interval must be between 0 and max")}if(s>a.MAX_INTERVAL&&s!==a.NEVER){throw new Error(`Max interval must be less than ${a.MAX_INTERVAL}`)}this._frequency={backoff:t,interval:n,max:s}}get isDisposed(){return this.state.phase==="disposed"}get standby(){return this._standby}set standby(e){if(this.isDisposed||this.standby===e){return}this._standby=e}get state(){return this._state}get tick(){return this._tick.promise}get ticked(){return this._ticked}async*[Symbol.asyncIterator](){while(!this.isDisposed){yield this.state;await this.tick.catch((()=>undefined))}}dispose(){if(this.isDisposed){return}this._state={...l.DISPOSED_STATE,timestamp:(new Date).getTime()};this._tick.promise.catch((e=>undefined));this._tick.reject(new Error(`Poll (${this.name}) is disposed.`));this._disposed.emit(undefined);o.Signal.clearData(this)}refresh(){return this.schedule({cancel:({phase:e})=>e==="refreshed",interval:a.IMMEDIATE,phase:"refreshed"})}async schedule(e={}){if(this.isDisposed){return}if(e.cancel&&e.cancel(this.state)){return}const t=this._tick;const n=new i.PromiseDelegate;const s={interval:this.frequency.interval,payload:null,phase:"standby",timestamp:(new Date).getTime(),...e};this._state=s;this._tick=n;clearTimeout(this._timeout);this._ticked.emit(this.state);t.resolve(this);await t.promise;if(s.interval===a.NEVER){this._timeout=undefined;return}const o=()=>{if(this.isDisposed||this.tick!==n.promise){return}this._execute()};this._timeout=setTimeout(o,s.interval)}start(){return this.schedule({cancel:({phase:e})=>e!=="constructed"&&e!=="standby"&&e!=="stopped",interval:a.IMMEDIATE,phase:"started"})}stop(){return this.schedule({cancel:({phase:e})=>e==="stopped",interval:a.NEVER,phase:"stopped"})}get hidden(){return l.hidden}_execute(){let e=typeof this.standby==="function"?this.standby():this.standby;if(e==="never"){e=false}else if(e==="when-hidden"){if(this.hidden){e=++this._lingered>this._linger}else{this._lingered=0;e=false}}if(e){void this.schedule();return}const t=this.tick;this._factory(this.state).then((e=>{if(this.isDisposed||this.tick!==t){return}void this.schedule({payload:e,phase:this.state.phase==="rejected"?"reconnected":"resolved"})})).catch((e=>{if(this.isDisposed||this.tick!==t){return}void this.schedule({interval:l.sleep(this.frequency,this.state),payload:e,phase:"rejected"})}))}}(function(e){e.IMMEDIATE=0;e.MAX_INTERVAL=2147483647;e.NEVER=Infinity})(a||(a={}));var l;(function(e){e.DEFAULT_BACKOFF=3;e.DEFAULT_FREQUENCY={backoff:true,interval:1e3,max:30*1e3};e.DEFAULT_LINGER=1;e.DEFAULT_NAME="unknown";e.DEFAULT_STANDBY="when-hidden";e.DEFAULT_STATE={interval:a.NEVER,payload:null,phase:"constructed",timestamp:new Date(0).getTime()};e.DISPOSED_STATE={interval:a.NEVER,payload:null,phase:"disposed",timestamp:new Date(0).getTime()};function t(t,i){const{backoff:s,interval:o,max:r}=t;if(o===a.NEVER){return o}const l=s===true?e.DEFAULT_BACKOFF:s===false?1:s;const d=n(o,i.interval*l);return Math.min(r,d)}e.sleep=t;e.hidden=(()=>{if(typeof document==="undefined"){return false}document.addEventListener("visibilitychange",(()=>{e.hidden=document.visibilityState==="hidden"}));document.addEventListener("pagehide",(()=>{e.hidden=document.visibilityState==="hidden"}));return document.visibilityState==="hidden"})();function n(e,t){e=Math.ceil(e);t=Math.floor(t);return Math.floor(Math.random()*(t-e+1))+e}})(l||(l={}));class d{constructor(e,t=500){this.args=undefined;this.payload=null;this.limit=t;this.poll=new a({auto:false,factory:async()=>{const{args:t}=this;this.args=undefined;return e(...t)},frequency:{backoff:false,interval:a.NEVER,max:a.NEVER},standby:"never"});this.payload=new i.PromiseDelegate;this.poll.ticked.connect(((e,t)=>{const{payload:n}=this;if(t.phase==="resolved"){this.payload=new i.PromiseDelegate;n.resolve(t.payload);return}if(t.phase==="rejected"||t.phase==="stopped"){this.payload=new i.PromiseDelegate;n.promise.catch((e=>undefined));n.reject(t.payload);return}}),this)}get isDisposed(){return this.payload===null}dispose(){if(this.isDisposed){return}this.args=undefined;this.payload=null;this.poll.dispose()}async stop(){return this.poll.stop()}}class c extends d{invoke(...e){this.args=e;void this.poll.schedule({interval:this.limit,phase:"invoked"});return this.payload.promise}}class h extends d{constructor(e,t){super(e,typeof t==="number"?t:t&&t.limit);this._trailing=false;if(typeof t!=="number"&&t&&t.edge==="trailing"){this._trailing=true}this._interval=this._trailing?this.limit:a.IMMEDIATE}invoke(...e){const t=this.poll.state.phase!=="invoked";if(t||this._trailing){this.args=e}if(t){void this.poll.schedule({interval:this._interval,phase:"invoked"})}return this.payload.promise}}},39770:(e,t,n)=>{"use strict";n.r(t);n.d(t,{AttachedProperty:()=>i});class i{constructor(e){this._pid=s.nextPID();this.name=e.name;this._create=e.create;this._coerce=e.coerce||null;this._compare=e.compare||null;this._changed=e.changed||null}get(e){let t;let n=s.ensureMap(e);if(this._pid in n){t=n[this._pid]}else{t=n[this._pid]=this._createValue(e)}return t}set(e,t){let n;let i=s.ensureMap(e);if(this._pid in i){n=i[this._pid]}else{n=i[this._pid]=this._createValue(e)}let o=this._coerceValue(e,t);this._maybeNotify(e,n,i[this._pid]=o)}coerce(e){let t;let n=s.ensureMap(e);if(this._pid in n){t=n[this._pid]}else{t=n[this._pid]=this._createValue(e)}let i=this._coerceValue(e,t);this._maybeNotify(e,t,n[this._pid]=i)}_createValue(e){let t=this._create;return t(e)}_coerceValue(e,t){let n=this._coerce;return n?n(e,t):t}_compareValue(e,t){let n=this._compare;return n?n(e,t):e===t}_maybeNotify(e,t,n){let i=this._changed;if(i&&!this._compareValue(t,n)){i(e,t,n)}}}(function(e){function t(e){s.ownerData.delete(e)}e.clearData=t})(i||(i={}));var s;(function(e){e.ownerData=new WeakMap;e.nextPID=(()=>{let e=0;return()=>{let t=Math.random();let n=`${t}`.slice(2);return`pid-${n}-${e++}`}})();function t(t){let n=e.ownerData.get(t);if(n){return n}n=Object.create(null);e.ownerData.set(t,n);return n}e.ensureMap=t})(s||(s={}))},4016:(e,t,n)=>{"use strict";n.r(t);n.d(t,{Signal:()=>a,Stream:()=>l});var i=n(58740);var s=n.n(i);var o=n(5596);var r=n.n(o);class a{constructor(e){this.sender=e}connect(e,t){return d.connect(this,e,t)}disconnect(e,t){return d.disconnect(this,e,t)}emit(e){d.emit(this,e)}}(function(e){function t(e,t){d.disconnectBetween(e,t)}e.disconnectBetween=t;function n(e){d.disconnectSender(e)}e.disconnectSender=n;function i(e){d.disconnectReceiver(e)}e.disconnectReceiver=i;function s(e){d.disconnectAll(e)}e.disconnectAll=s;function o(e){d.disconnectAll(e)}e.clearData=o;function r(){return d.exceptionHandler}e.getExceptionHandler=r;function a(e){let t=d.exceptionHandler;d.exceptionHandler=e;return t}e.setExceptionHandler=a})(a||(a={}));class l extends a{constructor(){super(...arguments);this._pending=new o.PromiseDelegate}async*[Symbol.asyncIterator](){let e=this._pending;while(true){try{const{args:t,next:n}=await e.promise;e=n;yield t}catch(t){return}}}emit(e){const t=this._pending;const n=this._pending=new o.PromiseDelegate;t.resolve({args:e,next:n});super.emit(e)}stop(){this._pending.promise.catch((()=>undefined));this._pending.reject("stop");this._pending=new o.PromiseDelegate}}var d;(function(e){e.exceptionHandler=e=>{console.error(e)};function t(e,t,n){n=n||undefined;let i=d.get(e.sender);if(!i){i=[];d.set(e.sender,i)}if(p(i,e,t,n)){return false}let s=n||t;let o=c.get(s);if(!o){o=[];c.set(s,o)}let r={signal:e,slot:t,thisArg:n};i.push(r);o.push(r);return true}e.connect=t;function n(e,t,n){n=n||undefined;let i=d.get(e.sender);if(!i||i.length===0){return false}let s=p(i,e,t,n);if(!s){return false}let o=n||t;let r=c.get(o);s.signal=null;g(i);g(r);return true}e.disconnect=n;function s(e,t){let n=d.get(e);if(!n||n.length===0){return}let i=c.get(t);if(!i||i.length===0){return}for(const s of i){if(!s.signal){continue}if(s.signal.sender===e){s.signal=null}}g(n);g(i)}e.disconnectBetween=s;function o(e){let t=d.get(e);if(!t||t.length===0){return}for(const n of t){if(!n.signal){continue}let e=n.thisArg||n.slot;n.signal=null;g(c.get(e))}g(t)}e.disconnectSender=o;function r(e){let t=c.get(e);if(!t||t.length===0){return}for(const n of t){if(!n.signal){continue}let e=n.signal.sender;n.signal=null;g(d.get(e))}g(t)}e.disconnectReceiver=r;function a(e){o(e);r(e)}e.disconnectAll=a;function l(e,t){let n=d.get(e.sender);if(!n||n.length===0){return}for(let i=0,s=n.length;i{let e=typeof requestAnimationFrame==="function";return e?requestAnimationFrame:setImmediate})();function p(e,t,n,s){return(0,i.find)(e,(e=>e.signal===t&&e.slot===n&&e.thisArg===s))}function m(t,n){let{signal:i,slot:s,thisArg:o}=t;try{s.call(o,i.sender,n)}catch(r){e.exceptionHandler(r)}}function g(e){if(h.size===0){u(f)}h.add(e)}function f(){h.forEach(v);h.clear()}function v(e){i.ArrayExt.removeAllWhere(e,_)}function _(e){return e.signal===null}})(d||(d={}))},37135:(e,t,n)=>{"use strict";n.r(t);n.d(t,{VirtualDOM:()=>c,VirtualElement:()=>r,VirtualElementPass:()=>a,VirtualText:()=>o,h:()=>l,hpass:()=>d});var i=n(58740);var s=n.n(i);class o{constructor(e){this.type="text";this.content=e}}class r{constructor(e,t,n,i){this.type="element";this.tag=e;this.attrs=t;this.children=n;this.renderer=i}}class a extends r{constructor(e,t,n){super(e,t,[],n||undefined)}}function l(e){let t={};let n;let i=[];for(let a=1,l=arguments.length;a3){throw new Error("hpass() should be called with 1, 2, or 3 arguments")}return new a(e,t,n)}var c;(function(e){function t(e){return h.createDOMNode(e)}e.realize=t;function n(e,t){let n=h.hostMap.get(t)||[];let i=h.asContentArray(e);h.hostMap.set(t,i);h.updateContent(t,n,i)}e.render=n})(c||(c={}));var h;(function(e){e.hostMap=new WeakMap;function t(e){if(!e){return[]}if(e instanceof Array){return e}return[e]}e.asContentArray=t;function n(e){let t=arguments[1]||null;const i=arguments[2]||null;if(t){t.insertBefore(n(e),i)}else{if(e.type==="text"){return document.createTextNode(e.content)}t=document.createElement(e.tag);a(t,e.attrs);if(e.renderer){e.renderer.render(t,{attrs:e.attrs,children:e.children});return t}for(let i=0,s=e.children.length;i=d.length){n(r[o],e);continue}let t=d[o];let h=r[o];if(t===h){c=c.nextSibling;continue}if(t.type==="text"&&h.type==="text"){if(c.textContent!==h.content){c.textContent=h.content}c=c.nextSibling;continue}if(t.type==="text"||h.type==="text"){i.ArrayExt.insert(d,o,h);n(h,e,c);continue}if(!t.renderer!=!h.renderer){i.ArrayExt.insert(d,o,h);n(h,e,c);continue}let u=h.attrs.key;if(u&&u in a){let n=a[u];if(n.vNode!==t){i.ArrayExt.move(d,d.indexOf(n.vNode,o+1),o);e.insertBefore(n.element,c);t=n.vNode;c=n.element}}if(t===h){c=c.nextSibling;continue}let p=t.attrs.key;if(p&&p!==u){i.ArrayExt.insert(d,o,h);n(h,e,c);continue}if(t.tag!==h.tag){i.ArrayExt.insert(d,o,h);n(h,e,c);continue}l(c,t.attrs,h.attrs);if(h.renderer){h.renderer.render(c,{attrs:h.attrs,children:h.children})}else{s(c,t.children,h.children)}c=c.nextSibling}o(e,d,h,true)}e.updateContent=s;function o(e,t,n,i){for(let s=t.length-1;s>=n;--s){const n=t[s];const r=i?e.lastChild:e.childNodes[s];if(n.type==="text");else if(n.renderer&&n.renderer.unrender){n.renderer.unrender(r,{attrs:n.attrs,children:n.children})}else{o(r,n.children,0,false)}if(i){e.removeChild(r)}}}const r={key:true,className:true,htmlFor:true,dataset:true,style:true};function a(e,t){for(let n in t){if(n in r){continue}if(n.substr(0,2)==="on"){e[n]=t[n]}else{e.setAttribute(n,t[n])}}if(t.className!==undefined){e.setAttribute("class",t.className)}if(t.htmlFor!==undefined){e.setAttribute("for",t.htmlFor)}if(t.dataset){d(e,t.dataset)}if(t.style){h(e,t.style)}}function l(e,t,n){if(t===n){return}let i;for(i in t){if(i in r||i in n){continue}if(i.substr(0,2)==="on"){e[i]=null}else{e.removeAttribute(i)}}for(i in n){if(i in r||t[i]===n[i]){continue}if(i.substr(0,2)==="on"){e[i]=n[i]}else{e.setAttribute(i,n[i])}}if(t.className!==n.className){if(n.className!==undefined){e.setAttribute("class",n.className)}else{e.removeAttribute("class")}}if(t.htmlFor!==n.htmlFor){if(n.htmlFor!==undefined){e.setAttribute("for",n.htmlFor)}else{e.removeAttribute("for")}}if(t.dataset!==n.dataset){c(e,t.dataset||{},n.dataset||{})}if(t.style!==n.style){u(e,t.style||{},n.style||{})}}function d(e,t){for(let n in t){e.setAttribute(`data-${n}`,t[n])}}function c(e,t,n){for(let i in t){if(!(i in n)){e.removeAttribute(`data-${i}`)}}for(let i in n){if(t[i]!==n[i]){e.setAttribute(`data-${i}`,n[i])}}}function h(e,t){let n=e.style;let i;for(i in t){n[i]=t[i]}}function u(e,t,n){let i=e.style;let s;for(s in t){if(!(s in n)){i[s]=""}}for(s in n){if(t[s]!==n[s]){i[s]=n[s]}}}function p(e,t){let n=e.firstChild;let i=Object.create(null);for(let s of t){if(s.type==="element"&&s.attrs.key){i[s.attrs.key]={vNode:s,element:n}}n=n.nextSibling}return i}})(h||(h={}))},6654:(e,t,n)=>{"use strict";n.r(t);n.d(t,{AccordionLayout:()=>B,AccordionPanel:()=>U,BoxEngine:()=>j,BoxLayout:()=>q,BoxPanel:()=>J,BoxSizer:()=>k,CommandPalette:()=>G,ContextMenu:()=>ee,DockLayout:()=>oe,DockPanel:()=>ae,FocusTracker:()=>de,GridLayout:()=>ce,Layout:()=>T,LayoutItem:()=>D,Menu:()=>X,MenuBar:()=>ue,Panel:()=>z,PanelLayout:()=>P,ScrollBar:()=>me,SingletonLayout:()=>fe,SplitLayout:()=>N,SplitPanel:()=>W,StackedLayout:()=>ve,StackedPanel:()=>_e,TabBar:()=>ie,TabPanel:()=>ye,Title:()=>M,Widget:()=>E});var i=n(58740);var s=n.n(i);var o=n(5596);var r=n.n(o);var a=n(36044);var l=n.n(a);var d=n(28821);var c=n.n(d);var h=n(75379);var u=n.n(h);var p=n(71372);var m=n.n(p);var g=n(21299);var f=n.n(g);var v=n(6682);var _=n.n(v);var b=n(90502);var y=n.n(b);var w=n(26512);var C=n.n(w);var x=n(71720);var S=n.n(x);class k{constructor(){this.sizeHint=0;this.minSize=0;this.maxSize=Infinity;this.stretch=1;this.size=0;this.done=false}}var j;(function(e){function t(e,t){let n=e.length;if(n===0){return t}let i=0;let s=0;let o=0;let r=0;let a=0;for(let c=0;c0){r+=t.stretch;a++}}if(t===o){return 0}if(t<=i){for(let t=0;t=s){for(let t=0;t0&&i>l){let t=i;let s=r;for(let o=0;o0&&i>l){let t=i/d;for(let s=0;s0&&i>l){let t=i;let s=r;for(let o=0;o=n.maxSize){i-=n.maxSize-n.size;r-=n.stretch;n.size=n.maxSize;n.done=true;d--;a--}else{i-=l;n.size+=l}}}while(d>0&&i>l){let t=i/d;for(let s=0;s=n.maxSize){i-=n.maxSize-n.size;n.size=n.maxSize;n.done=true;d--}else{i-=t;n.size+=t}}}}return 0}e.calc=t;function n(e,t,n){if(e.length===0||n===0){return}if(n>0){i(e,t,n)}else{s(e,t,-n)}}e.adjust=n;function i(e,t,n){let i=0;for(let a=0;a<=t;++a){let t=e[a];i+=t.maxSize-t.size}let s=0;for(let a=t+1,l=e.length;a=0&&o>0;--a){let t=e[a];let n=t.maxSize-t.size;if(n>=o){t.sizeHint=t.size+o;o=0}else{t.sizeHint=t.size+n;o-=n}}let r=n;for(let a=t+1,l=e.length;a0;++a){let t=e[a];let n=t.size-t.minSize;if(n>=r){t.sizeHint=t.size-r;r=0}else{t.sizeHint=t.size-n;r-=n}}}function s(e,t,n){let i=0;for(let a=t+1,l=e.length;a0;++a){let t=e[a];let n=t.maxSize-t.size;if(n>=o){t.sizeHint=t.size+o;o=0}else{t.sizeHint=t.size+n;o-=n}}let r=n;for(let a=t;a>=0&&r>0;--a){let t=e[a];let n=t.size-t.minSize;if(n>=r){t.sizeHint=t.size-r;r=0}else{t.sizeHint=t.size-n;r-=n}}}})(j||(j={}));class M{constructor(e){this._label="";this._caption="";this._mnemonic=-1;this._icon=undefined;this._iconClass="";this._iconLabel="";this._className="";this._closable=false;this._changed=new p.Signal(this);this._isDisposed=false;this.owner=e.owner;if(e.label!==undefined){this._label=e.label}if(e.mnemonic!==undefined){this._mnemonic=e.mnemonic}if(e.icon!==undefined){this._icon=e.icon}if(e.iconClass!==undefined){this._iconClass=e.iconClass}if(e.iconLabel!==undefined){this._iconLabel=e.iconLabel}if(e.caption!==undefined){this._caption=e.caption}if(e.className!==undefined){this._className=e.className}if(e.closable!==undefined){this._closable=e.closable}this._dataset=e.dataset||{}}get changed(){return this._changed}get label(){return this._label}set label(e){if(this._label===e){return}this._label=e;this._changed.emit(undefined)}get mnemonic(){return this._mnemonic}set mnemonic(e){if(this._mnemonic===e){return}this._mnemonic=e;this._changed.emit(undefined)}get icon(){return this._icon}set icon(e){if(this._icon===e){return}this._icon=e;this._changed.emit(undefined)}get iconClass(){return this._iconClass}set iconClass(e){if(this._iconClass===e){return}this._iconClass=e;this._changed.emit(undefined)}get iconLabel(){return this._iconLabel}set iconLabel(e){if(this._iconLabel===e){return}this._iconLabel=e;this._changed.emit(undefined)}get caption(){return this._caption}set caption(e){if(this._caption===e){return}this._caption=e;this._changed.emit(undefined)}get className(){return this._className}set className(e){if(this._className===e){return}this._className=e;this._changed.emit(undefined)}get closable(){return this._closable}set closable(e){if(this._closable===e){return}this._closable=e;this._changed.emit(undefined)}get dataset(){return this._dataset}set dataset(e){if(this._dataset===e){return}this._dataset=e;this._changed.emit(undefined)}get isDisposed(){return this._isDisposed}dispose(){if(this.isDisposed){return}this._isDisposed=true;p.Signal.clearData(this)}}class E{constructor(e={}){this._flags=0;this._layout=null;this._parent=null;this._disposed=new p.Signal(this);this._hiddenMode=E.HiddenMode.Display;this.node=I.createNode(e);this.addClass("lm-Widget")}dispose(){if(this.isDisposed){return}this.setFlag(E.Flag.IsDisposed);this._disposed.emit(undefined);if(this.parent){this.parent=null}else if(this.isAttached){E.detach(this)}if(this._layout){this._layout.dispose();this._layout=null}this.title.dispose();p.Signal.clearData(this);d.MessageLoop.clearData(this);h.AttachedProperty.clearData(this)}get disposed(){return this._disposed}get isDisposed(){return this.testFlag(E.Flag.IsDisposed)}get isAttached(){return this.testFlag(E.Flag.IsAttached)}get isHidden(){return this.testFlag(E.Flag.IsHidden)}get isVisible(){return this.testFlag(E.Flag.IsVisible)}get title(){return I.titleProperty.get(this)}get id(){return this.node.id}set id(e){this.node.id=e}get dataset(){return this.node.dataset}get hiddenMode(){return this._hiddenMode}set hiddenMode(e){if(this._hiddenMode===e){return}if(this.isHidden){this._toggleHidden(false)}if(e==E.HiddenMode.Scale){this.node.style.willChange="transform"}else{this.node.style.willChange="auto"}this._hiddenMode=e;if(this.isHidden){this._toggleHidden(true)}}get parent(){return this._parent}set parent(e){if(this._parent===e){return}if(e&&this.contains(e)){throw new Error("Invalid parent widget.")}if(this._parent&&!this._parent.isDisposed){let e=new E.ChildMessage("child-removed",this);d.MessageLoop.sendMessage(this._parent,e)}this._parent=e;if(this._parent&&!this._parent.isDisposed){let e=new E.ChildMessage("child-added",this);d.MessageLoop.sendMessage(this._parent,e)}if(!this.isDisposed){d.MessageLoop.sendMessage(this,E.Msg.ParentChanged)}}get layout(){return this._layout}set layout(e){if(this._layout===e){return}if(this.testFlag(E.Flag.DisallowLayout)){throw new Error("Cannot set widget layout.")}if(this._layout){throw new Error("Cannot change widget layout.")}if(e.parent){throw new Error("Cannot change layout parent.")}this._layout=e;e.parent=this}*children(){if(this._layout){yield*this._layout}}contains(e){for(let t=e;t;t=t._parent){if(t===this){return true}}return false}hasClass(e){return this.node.classList.contains(e)}addClass(e){this.node.classList.add(e)}removeClass(e){this.node.classList.remove(e)}toggleClass(e,t){if(t===true){this.node.classList.add(e);return true}if(t===false){this.node.classList.remove(e);return false}return this.node.classList.toggle(e)}update(){d.MessageLoop.postMessage(this,E.Msg.UpdateRequest)}fit(){d.MessageLoop.postMessage(this,E.Msg.FitRequest)}activate(){d.MessageLoop.postMessage(this,E.Msg.ActivateRequest)}close(){d.MessageLoop.sendMessage(this,E.Msg.CloseRequest)}show(){if(!this.testFlag(E.Flag.IsHidden)){return}if(this.isAttached&&(!this.parent||this.parent.isVisible)){d.MessageLoop.sendMessage(this,E.Msg.BeforeShow)}this.clearFlag(E.Flag.IsHidden);this._toggleHidden(false);if(this.isAttached&&(!this.parent||this.parent.isVisible)){d.MessageLoop.sendMessage(this,E.Msg.AfterShow)}if(this.parent){let e=new E.ChildMessage("child-shown",this);d.MessageLoop.sendMessage(this.parent,e)}}hide(){if(this.testFlag(E.Flag.IsHidden)){return}if(this.isAttached&&(!this.parent||this.parent.isVisible)){d.MessageLoop.sendMessage(this,E.Msg.BeforeHide)}this.setFlag(E.Flag.IsHidden);this._toggleHidden(true);if(this.isAttached&&(!this.parent||this.parent.isVisible)){d.MessageLoop.sendMessage(this,E.Msg.AfterHide)}if(this.parent){let e=new E.ChildMessage("child-hidden",this);d.MessageLoop.sendMessage(this.parent,e)}}setHidden(e){if(e){this.hide()}else{this.show()}}testFlag(e){return(this._flags&e)!==0}setFlag(e){this._flags|=e}clearFlag(e){this._flags&=~e}processMessage(e){switch(e.type){case"resize":this.notifyLayout(e);this.onResize(e);break;case"update-request":this.notifyLayout(e);this.onUpdateRequest(e);break;case"fit-request":this.notifyLayout(e);this.onFitRequest(e);break;case"before-show":this.notifyLayout(e);this.onBeforeShow(e);break;case"after-show":this.setFlag(E.Flag.IsVisible);this.notifyLayout(e);this.onAfterShow(e);break;case"before-hide":this.notifyLayout(e);this.onBeforeHide(e);break;case"after-hide":this.clearFlag(E.Flag.IsVisible);this.notifyLayout(e);this.onAfterHide(e);break;case"before-attach":this.notifyLayout(e);this.onBeforeAttach(e);break;case"after-attach":if(!this.isHidden&&(!this.parent||this.parent.isVisible)){this.setFlag(E.Flag.IsVisible)}this.setFlag(E.Flag.IsAttached);this.notifyLayout(e);this.onAfterAttach(e);break;case"before-detach":this.notifyLayout(e);this.onBeforeDetach(e);break;case"after-detach":this.clearFlag(E.Flag.IsVisible);this.clearFlag(E.Flag.IsAttached);this.notifyLayout(e);this.onAfterDetach(e);break;case"activate-request":this.notifyLayout(e);this.onActivateRequest(e);break;case"close-request":this.notifyLayout(e);this.onCloseRequest(e);break;case"child-added":this.notifyLayout(e);this.onChildAdded(e);break;case"child-removed":this.notifyLayout(e);this.onChildRemoved(e);break;default:this.notifyLayout(e);break}}notifyLayout(e){if(this._layout){this._layout.processParentMessage(e)}}onCloseRequest(e){if(this.parent){this.parent=null}else if(this.isAttached){E.detach(this)}}onResize(e){}onUpdateRequest(e){}onFitRequest(e){}onActivateRequest(e){}onBeforeShow(e){}onAfterShow(e){}onBeforeHide(e){}onAfterHide(e){}onBeforeAttach(e){}onAfterAttach(e){}onBeforeDetach(e){}onAfterDetach(e){}onChildAdded(e){}onChildRemoved(e){}_toggleHidden(e){if(e){switch(this._hiddenMode){case E.HiddenMode.Display:this.addClass("lm-mod-hidden");break;case E.HiddenMode.Scale:this.node.style.transform="scale(0)";this.node.setAttribute("aria-hidden","true");break;case E.HiddenMode.ContentVisibility:this.node.style.contentVisibility="hidden";this.node.style.zIndex="-1";break}}else{switch(this._hiddenMode){case E.HiddenMode.Display:this.removeClass("lm-mod-hidden");break;case E.HiddenMode.Scale:this.node.style.transform="";this.node.removeAttribute("aria-hidden");break;case E.HiddenMode.ContentVisibility:this.node.style.contentVisibility="";this.node.style.zIndex="";break}}}}(function(e){(function(e){e[e["Display"]=0]="Display";e[e["Scale"]=1]="Scale";e[e["ContentVisibility"]=2]="ContentVisibility"})(e.HiddenMode||(e.HiddenMode={}));(function(e){e[e["IsDisposed"]=1]="IsDisposed";e[e["IsAttached"]=2]="IsAttached";e[e["IsHidden"]=4]="IsHidden";e[e["IsVisible"]=8]="IsVisible";e[e["DisallowLayout"]=16]="DisallowLayout"})(e.Flag||(e.Flag={}));(function(e){e.BeforeShow=new d.Message("before-show");e.AfterShow=new d.Message("after-show");e.BeforeHide=new d.Message("before-hide");e.AfterHide=new d.Message("after-hide");e.BeforeAttach=new d.Message("before-attach");e.AfterAttach=new d.Message("after-attach");e.BeforeDetach=new d.Message("before-detach");e.AfterDetach=new d.Message("after-detach");e.ParentChanged=new d.Message("parent-changed");e.UpdateRequest=new d.ConflatableMessage("update-request");e.FitRequest=new d.ConflatableMessage("fit-request");e.ActivateRequest=new d.ConflatableMessage("activate-request");e.CloseRequest=new d.ConflatableMessage("close-request")})(e.Msg||(e.Msg={}));class t extends d.Message{constructor(e,t){super(e);this.child=t}}e.ChildMessage=t;class n extends d.Message{constructor(e,t){super("resize");this.width=e;this.height=t}}e.ResizeMessage=n;(function(e){e.UnknownSize=new e(-1,-1)})(n=e.ResizeMessage||(e.ResizeMessage={}));function i(t,n,i=null){if(t.parent){throw new Error("Cannot attach a child widget.")}if(t.isAttached||t.node.isConnected){throw new Error("Widget is already attached.")}if(!n.isConnected){throw new Error("Host is not attached.")}d.MessageLoop.sendMessage(t,e.Msg.BeforeAttach);n.insertBefore(t.node,i);d.MessageLoop.sendMessage(t,e.Msg.AfterAttach)}e.attach=i;function s(t){if(t.parent){throw new Error("Cannot detach a child widget.")}if(!t.isAttached||!t.node.isConnected){throw new Error("Widget is not attached.")}d.MessageLoop.sendMessage(t,e.Msg.BeforeDetach);t.node.parentNode.removeChild(t.node);d.MessageLoop.sendMessage(t,e.Msg.AfterDetach)}e.detach=s})(E||(E={}));var I;(function(e){e.titleProperty=new h.AttachedProperty({name:"title",create:e=>new M({owner:e})});function t(e){return e.node||document.createElement(e.tag||"div")}e.createNode=t})(I||(I={}));class T{constructor(e={}){this._disposed=false;this._parent=null;this._fitPolicy=e.fitPolicy||"set-min-size"}dispose(){this._parent=null;this._disposed=true;p.Signal.clearData(this);h.AttachedProperty.clearData(this)}get isDisposed(){return this._disposed}get parent(){return this._parent}set parent(e){if(this._parent===e){return}if(this._parent){throw new Error("Cannot change parent widget.")}if(e.layout!==this){throw new Error("Invalid parent widget.")}this._parent=e;this.init()}get fitPolicy(){return this._fitPolicy}set fitPolicy(e){if(this._fitPolicy===e){return}this._fitPolicy=e;if(this._parent){let e=this._parent.node.style;e.minWidth="";e.minHeight="";e.maxWidth="";e.maxHeight="";this._parent.fit()}}processParentMessage(e){switch(e.type){case"resize":this.onResize(e);break;case"update-request":this.onUpdateRequest(e);break;case"fit-request":this.onFitRequest(e);break;case"before-show":this.onBeforeShow(e);break;case"after-show":this.onAfterShow(e);break;case"before-hide":this.onBeforeHide(e);break;case"after-hide":this.onAfterHide(e);break;case"before-attach":this.onBeforeAttach(e);break;case"after-attach":this.onAfterAttach(e);break;case"before-detach":this.onBeforeDetach(e);break;case"after-detach":this.onAfterDetach(e);break;case"child-removed":this.onChildRemoved(e);break;case"child-shown":this.onChildShown(e);break;case"child-hidden":this.onChildHidden(e);break}}init(){for(const e of this){e.parent=this.parent}}onResize(e){for(const t of this){d.MessageLoop.sendMessage(t,E.ResizeMessage.UnknownSize)}}onUpdateRequest(e){for(const t of this){d.MessageLoop.sendMessage(t,E.ResizeMessage.UnknownSize)}}onBeforeAttach(e){for(const t of this){d.MessageLoop.sendMessage(t,e)}}onAfterAttach(e){for(const t of this){d.MessageLoop.sendMessage(t,e)}}onBeforeDetach(e){for(const t of this){d.MessageLoop.sendMessage(t,e)}}onAfterDetach(e){for(const t of this){d.MessageLoop.sendMessage(t,e)}}onBeforeShow(e){for(const t of this){if(!t.isHidden){d.MessageLoop.sendMessage(t,e)}}}onAfterShow(e){for(const t of this){if(!t.isHidden){d.MessageLoop.sendMessage(t,e)}}}onBeforeHide(e){for(const t of this){if(!t.isHidden){d.MessageLoop.sendMessage(t,e)}}}onAfterHide(e){for(const t of this){if(!t.isHidden){d.MessageLoop.sendMessage(t,e)}}}onChildRemoved(e){this.removeWidget(e.child)}onFitRequest(e){}onChildShown(e){}onChildHidden(e){}}(function(e){function t(e){return L.horizontalAlignmentProperty.get(e)}e.getHorizontalAlignment=t;function n(e,t){L.horizontalAlignmentProperty.set(e,t)}e.setHorizontalAlignment=n;function i(e){return L.verticalAlignmentProperty.get(e)}e.getVerticalAlignment=i;function s(e,t){L.verticalAlignmentProperty.set(e,t)}e.setVerticalAlignment=s})(T||(T={}));class D{constructor(e){this._top=NaN;this._left=NaN;this._width=NaN;this._height=NaN;this._minWidth=0;this._minHeight=0;this._maxWidth=Infinity;this._maxHeight=Infinity;this._disposed=false;this.widget=e;this.widget.node.style.position="absolute";this.widget.node.style.contain="strict"}dispose(){if(this._disposed){return}this._disposed=true;let e=this.widget.node.style;e.position="";e.top="";e.left="";e.width="";e.height="";e.contain=""}get minWidth(){return this._minWidth}get minHeight(){return this._minHeight}get maxWidth(){return this._maxWidth}get maxHeight(){return this._maxHeight}get isDisposed(){return this._disposed}get isHidden(){return this.widget.isHidden}get isVisible(){return this.widget.isVisible}get isAttached(){return this.widget.isAttached}fit(){let e=a.ElementExt.sizeLimits(this.widget.node);this._minWidth=e.minWidth;this._minHeight=e.minHeight;this._maxWidth=e.maxWidth;this._maxHeight=e.maxHeight}update(e,t,n,i){let s=Math.max(this._minWidth,Math.min(n,this._maxWidth));let o=Math.max(this._minHeight,Math.min(i,this._maxHeight));if(s"center",changed:t});e.verticalAlignmentProperty=new h.AttachedProperty({name:"verticalAlignment",create:()=>"top",changed:t});function t(e){if(e.parent&&e.parent.layout){e.parent.update()}}})(L||(L={}));class P extends T{constructor(){super(...arguments);this._widgets=[]}dispose(){while(this._widgets.length>0){this._widgets.pop().dispose()}super.dispose()}get widgets(){return this._widgets}*[Symbol.iterator](){yield*this._widgets}addWidget(e){this.insertWidget(this._widgets.length,e)}insertWidget(e,t){t.parent=this.parent;let n=this._widgets.indexOf(t);let s=Math.max(0,Math.min(e,this._widgets.length));if(n===-1){i.ArrayExt.insert(this._widgets,s,t);if(this.parent){this.attachWidget(s,t)}return}if(s===this._widgets.length){s--}if(n===s){return}i.ArrayExt.move(this._widgets,n,s);if(this.parent){this.moveWidget(n,s,t)}}removeWidget(e){this.removeWidgetAt(this._widgets.indexOf(e))}removeWidgetAt(e){let t=i.ArrayExt.removeAt(this._widgets,e);if(t&&this.parent){this.detachWidget(e,t)}}init(){super.init();let e=0;for(const t of this){this.attachWidget(e++,t)}}attachWidget(e,t){let n=this.parent.node.children[e];if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.BeforeAttach)}this.parent.node.insertBefore(t.node,n);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.AfterAttach)}}moveWidget(e,t,n){if(this.parent.isAttached){d.MessageLoop.sendMessage(n,E.Msg.BeforeDetach)}this.parent.node.removeChild(n.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(n,E.Msg.AfterDetach)}let i=this.parent.node.children[t];if(this.parent.isAttached){d.MessageLoop.sendMessage(n,E.Msg.BeforeAttach)}this.parent.node.insertBefore(n.node,i);if(this.parent.isAttached){d.MessageLoop.sendMessage(n,E.Msg.AfterAttach)}}detachWidget(e,t){if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.BeforeDetach)}this.parent.node.removeChild(t.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.AfterDetach)}}}var A;(function(e){function t(e){return Math.max(0,Math.floor(e))}e.clampDimension=t})(A||(A={}));var R=A;class N extends P{constructor(e){super();this.widgetOffset=0;this._fixed=0;this._spacing=4;this._dirty=false;this._hasNormedSizes=false;this._sizers=[];this._items=[];this._handles=[];this._box=null;this._alignment="start";this._orientation="horizontal";this.renderer=e.renderer;if(e.orientation!==undefined){this._orientation=e.orientation}if(e.alignment!==undefined){this._alignment=e.alignment}if(e.spacing!==undefined){this._spacing=A.clampDimension(e.spacing)}}dispose(){for(const e of this._items){e.dispose()}this._box=null;this._items.length=0;this._sizers.length=0;this._handles.length=0;super.dispose()}get orientation(){return this._orientation}set orientation(e){if(this._orientation===e){return}this._orientation=e;if(!this.parent){return}this.parent.dataset["orientation"]=e;this.parent.fit()}get alignment(){return this._alignment}set alignment(e){if(this._alignment===e){return}this._alignment=e;if(!this.parent){return}this.parent.dataset["alignment"]=e;this.parent.update()}get spacing(){return this._spacing}set spacing(e){e=A.clampDimension(e);if(this._spacing===e){return}this._spacing=e;if(!this.parent){return}this.parent.fit()}get handles(){return this._handles}absoluteSizes(){return this._sizers.map((e=>e.size))}relativeSizes(){return O.normalize(this._sizers.map((e=>e.size)))}setRelativeSizes(e,t=true){let n=this._sizers.length;let i=e.slice(0,n);while(i.length0){s.sizeHint=s.size}}j.adjust(this._sizers,e,i);if(this.parent){this.parent.update()}}init(){this.parent.dataset["orientation"]=this.orientation;this.parent.dataset["alignment"]=this.alignment;super.init()}attachWidget(e,t){let n=new D(t);let s=O.createHandle(this.renderer);let o=O.averageSize(this._sizers);let r=O.createSizer(o);i.ArrayExt.insert(this._items,e,n);i.ArrayExt.insert(this._sizers,e,r);i.ArrayExt.insert(this._handles,e,s);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.BeforeAttach)}this.parent.node.appendChild(t.node);this.parent.node.appendChild(s);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.AfterAttach)}this.parent.fit()}moveWidget(e,t,n){i.ArrayExt.move(this._items,e,t);i.ArrayExt.move(this._sizers,e,t);i.ArrayExt.move(this._handles,e,t);this.parent.fit()}detachWidget(e,t){let n=i.ArrayExt.removeAt(this._items,e);let s=i.ArrayExt.removeAt(this._handles,e);i.ArrayExt.removeAt(this._sizers,e);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.BeforeDetach)}this.parent.node.removeChild(t.node);this.parent.node.removeChild(s);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.AfterDetach)}n.dispose();this.parent.fit()}onBeforeShow(e){super.onBeforeShow(e);this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e);this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){if(this.parent.isVisible){this._update(e.width,e.height)}}onUpdateRequest(e){if(this.parent.isVisible){this._update(-1,-1)}}onFitRequest(e){if(this.parent.isAttached){this._fit()}}updateItemPosition(e,t,n,i,s,o,r){const a=this._items[e];if(a.isHidden){return}let l=this._handles[e].style;if(t){n+=this.widgetOffset;a.update(n,i,r,s);n+=r;l.top=`${i}px`;l.left=`${n}px`;l.width=`${this._spacing}px`;l.height=`${s}px`}else{i+=this.widgetOffset;a.update(n,i,o,r);i+=r;l.top=`${i}px`;l.left=`${n}px`;l.width=`${o}px`;l.height=`${this._spacing}px`}}_fit(){let e=0;let t=-1;for(let a=0,l=this._items.length;a0){t.sizeHint=t.size}if(e.isHidden){t.minSize=0;t.maxSize=0;continue}e.fit();t.stretch=N.getStretch(e.widget);if(n){t.minSize=e.minWidth;t.maxSize=e.maxWidth;i+=e.minWidth;s=Math.max(s,e.minHeight)}else{t.minSize=e.minHeight;t.maxSize=e.maxHeight;s+=e.minHeight;i=Math.max(i,e.minWidth)}}let o=this._box=a.ElementExt.boxSizing(this.parent.node);i+=o.horizontalSum;s+=o.verticalSum;let r=this.parent.node.style;r.minWidth=`${i}px`;r.minHeight=`${s}px`;this._dirty=true;if(this.parent.parent){d.MessageLoop.sendMessage(this.parent.parent,E.Msg.FitRequest)}if(this._dirty){d.MessageLoop.sendMessage(this.parent,E.Msg.UpdateRequest)}}_update(e,t){this._dirty=false;let n=0;for(let a=0,h=this._items.length;a0){let e;if(c){e=Math.max(0,o-this._fixed)}else{e=Math.max(0,r-this._fixed)}if(this._hasNormedSizes){for(let t of this._sizers){t.sizeHint*=e}this._hasNormedSizes=false}let t=j.calc(this._sizers,e);if(t>0){switch(this._alignment){case"start":break;case"center":l=0;d=t/2;break;case"end":l=0;d=t;break;case"justify":l=t/n;d=0;break;default:throw"unreachable"}}}for(let a=0,h=this._items.length;a0,coerce:(e,t)=>Math.max(0,Math.floor(t)),changed:o});function t(e){let t=new k;t.sizeHint=Math.floor(e);return t}e.createSizer=t;function n(e){let t=e.createHandle();t.style.position="absolute";t.style.contain="style";return t}e.createHandle=n;function i(e){return e.reduce(((e,t)=>e+t.size),0)/e.length||0}e.averageSize=i;function s(e){let t=e.length;if(t===0){return[]}let n=e.reduce(((e,t)=>e+Math.abs(t)),0);return n===0?e.map((e=>1/t)):e.map((e=>e/n))}e.normalize=s;function o(e){if(e.parent&&e.parent.layout instanceof N){e.parent.fit()}}})(O||(O={}));class B extends N{constructor(e){super({...e,orientation:e.orientation||"vertical"});this._titles=[];this.titleSpace=e.titleSpace||22}get titleSpace(){return this.widgetOffset}set titleSpace(e){e=R.clampDimension(e);if(this.widgetOffset===e){return}this.widgetOffset=e;if(!this.parent){return}this.parent.fit()}get titles(){return this._titles}dispose(){if(this.isDisposed){return}this._titles.length=0;super.dispose()}updateTitle(e,t){const n=this._titles[e];const i=n.classList.contains("lm-mod-expanded");const s=F.createTitle(this.renderer,t.title,i);this._titles[e]=s;this.parent.node.replaceChild(s,n)}insertWidget(e,t){if(!t.id){t.id=`id-${o.UUID.uuid4()}`}super.insertWidget(e,t)}attachWidget(e,t){const n=F.createTitle(this.renderer,t.title);i.ArrayExt.insert(this._titles,e,n);this.parent.node.appendChild(n);t.node.setAttribute("role","region");t.node.setAttribute("aria-labelledby",n.id);super.attachWidget(e,t)}moveWidget(e,t,n){i.ArrayExt.move(this._titles,e,t);super.moveWidget(e,t,n)}detachWidget(e,t){const n=i.ArrayExt.removeAt(this._titles,e);this.parent.node.removeChild(n);super.detachWidget(e,t)}updateItemPosition(e,t,n,i,s,o,r){const a=this._titles[e].style;a.top=`${i}px`;a.left=`${n}px`;a.height=`${this.widgetOffset}px`;if(t){a.width=`${s}px`}else{a.width=`${o}px`}super.updateItemPosition(e,t,n,i,s,o,r)}}var F;(function(e){function t(e,t,n=true){const i=e.createSectionTitle(t);i.style.position="absolute";i.style.contain="strict";i.setAttribute("aria-label",`${t.label} Section`);i.setAttribute("aria-expanded",n?"true":"false");i.setAttribute("aria-controls",t.owner.id);if(n){i.classList.add("lm-mod-expanded")}return i}e.createTitle=t})(F||(F={}));class z extends E{constructor(e={}){super();this.addClass("lm-Panel");this.layout=H.createLayout(e)}get widgets(){return this.layout.widgets}addWidget(e){this.layout.addWidget(e)}insertWidget(e,t){this.layout.insertWidget(e,t)}}var H;(function(e){function t(e){return e.layout||new P}e.createLayout=t})(H||(H={}));class W extends z{constructor(e={}){super({layout:V.createLayout(e)});this._handleMoved=new p.Signal(this);this._pressData=null;this.addClass("lm-SplitPanel")}dispose(){this._releaseMouse();super.dispose()}get orientation(){return this.layout.orientation}set orientation(e){this.layout.orientation=e}get alignment(){return this.layout.alignment}set alignment(e){this.layout.alignment=e}get spacing(){return this.layout.spacing}set spacing(e){this.layout.spacing=e}get renderer(){return this.layout.renderer}get handleMoved(){return this._handleMoved}get handles(){return this.layout.handles}relativeSizes(){return this.layout.relativeSizes()}setRelativeSizes(e,t=true){this.layout.setRelativeSizes(e,t)}handleEvent(e){switch(e.type){case"pointerdown":this._evtPointerDown(e);break;case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"keydown":this._evtKeyDown(e);break;case"contextmenu":e.preventDefault();e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("pointerdown",this)}onAfterDetach(e){this.node.removeEventListener("pointerdown",this);this._releaseMouse()}onChildAdded(e){e.child.addClass("lm-SplitPanel-child");this._releaseMouse()}onChildRemoved(e){e.child.removeClass("lm-SplitPanel-child");this._releaseMouse()}_evtKeyDown(e){if(this._pressData){e.preventDefault();e.stopPropagation()}if(e.keyCode===27){this._releaseMouse()}}_evtPointerDown(e){if(e.button!==0){return}let t=this.layout;let n=i.ArrayExt.findFirstIndex(t.handles,(t=>t.contains(e.target)));if(n===-1){return}e.preventDefault();e.stopPropagation();document.addEventListener("pointerup",this,true);document.addEventListener("pointermove",this,true);document.addEventListener("keydown",this,true);document.addEventListener("contextmenu",this,true);let s;let o=t.handles[n];let r=o.getBoundingClientRect();if(t.orientation==="horizontal"){s=e.clientX-r.left}else{s=e.clientY-r.top}let a=window.getComputedStyle(o);let l=g.Drag.overrideCursor(a.cursor);this._pressData={index:n,delta:s,override:l}}_evtPointerMove(e){e.preventDefault();e.stopPropagation();let t;let n=this.layout;let i=this.node.getBoundingClientRect();if(n.orientation==="horizontal"){t=e.clientX-i.left-this._pressData.delta}else{t=e.clientY-i.top-this._pressData.delta}n.moveHandle(this._pressData.index,t)}_evtPointerUp(e){if(e.button!==0){return}e.preventDefault();e.stopPropagation();this._releaseMouse()}_releaseMouse(){if(!this._pressData){return}this._pressData.override.dispose();this._pressData=null;this._handleMoved.emit();document.removeEventListener("keydown",this,true);document.removeEventListener("pointerup",this,true);document.removeEventListener("pointermove",this,true);document.removeEventListener("contextmenu",this,true)}}(function(e){class t{createHandle(){let e=document.createElement("div");e.className="lm-SplitPanel-handle";return e}}e.Renderer=t;e.defaultRenderer=new t;function n(e){return N.getStretch(e)}e.getStretch=n;function i(e,t){N.setStretch(e,t)}e.setStretch=i})(W||(W={}));var V;(function(e){function t(e){return e.layout||new N({renderer:e.renderer||W.defaultRenderer,orientation:e.orientation,alignment:e.alignment,spacing:e.spacing})}e.createLayout=t})(V||(V={}));class U extends W{constructor(e={}){super({...e,layout:$.createLayout(e)});this._widgetSizesCache=new WeakMap;this._expansionToggled=new p.Signal(this);this.addClass("lm-AccordionPanel")}get renderer(){return this.layout.renderer}get titleSpace(){return this.layout.titleSpace}set titleSpace(e){this.layout.titleSpace=e}get titles(){return this.layout.titles}get expansionToggled(){return this._expansionToggled}addWidget(e){super.addWidget(e);e.title.changed.connect(this._onTitleChanged,this)}collapse(e){const t=this.layout.widgets[e];if(t&&!t.isHidden){this._toggleExpansion(e)}}expand(e){const t=this.layout.widgets[e];if(t&&t.isHidden){this._toggleExpansion(e)}}insertWidget(e,t){super.insertWidget(e,t);t.title.changed.connect(this._onTitleChanged,this)}handleEvent(e){super.handleEvent(e);switch(e.type){case"click":this._evtClick(e);break;case"keydown":this._eventKeyDown(e);break}}onBeforeAttach(e){this.node.addEventListener("click",this);this.node.addEventListener("keydown",this);super.onBeforeAttach(e)}onAfterDetach(e){super.onAfterDetach(e);this.node.removeEventListener("click",this);this.node.removeEventListener("keydown",this)}_onTitleChanged(e){const t=i.ArrayExt.findFirstIndex(this.widgets,(t=>t.contains(e.owner)));if(t>=0){this.layout.updateTitle(t,e.owner);this.update()}}_computeWidgetSize(e){const t=this.layout;const n=t.widgets[e];if(!n){return undefined}const i=n.isHidden;const s=t.absoluteSizes();const o=(i?-1:1)*this.spacing;const r=s.reduce(((e,t)=>e+t));let a=[...s];if(!i){const t=s[e];this._widgetSizesCache.set(n,t);a[e]=0;const i=a.map((e=>e>0)).lastIndexOf(true);if(i===-1){return undefined}a[i]=s[i]+t+o}else{const t=this._widgetSizesCache.get(n);if(!t){return undefined}a[e]+=t;const i=a.map((e=>e-t>0)).lastIndexOf(true);if(i===-1){a.forEach(((n,i)=>{if(i!==e){a[i]-=s[i]/r*(t-o)}}))}else{a[i]-=t-o}}return a.map((e=>e/(r+o)))}_evtClick(e){const t=e.target;if(t){const n=i.ArrayExt.findFirstIndex(this.titles,(e=>e.contains(t)));if(n>=0){e.preventDefault();e.stopPropagation();this._toggleExpansion(n)}}}_eventKeyDown(e){if(e.defaultPrevented){return}const t=e.target;let n=false;if(t){const s=i.ArrayExt.findFirstIndex(this.titles,(e=>e.contains(t)));if(s>=0){const i=e.keyCode.toString();if(e.key.match(/Space|Enter/)||i.match(/13|32/)){t.click();n=true}else if(this.orientation==="horizontal"?e.key.match(/ArrowLeft|ArrowRight/)||i.match(/37|39/):e.key.match(/ArrowUp|ArrowDown/)||i.match(/38|40/)){const t=e.key.match(/ArrowLeft|ArrowUp/)||i.match(/37|38/)?-1:1;const o=this.titles.length;const r=(s+o+t)%o;this.titles[r].focus();n=true}else if(e.key==="End"||i==="35"){this.titles[this.titles.length-1].focus();n=true}else if(e.key==="Home"||i==="36"){this.titles[0].focus();n=true}}if(n){e.preventDefault()}}}_toggleExpansion(e){const t=this.titles[e];const n=this.layout.widgets[e];const i=this._computeWidgetSize(e);if(i){this.setRelativeSizes(i,false)}if(n.isHidden){t.classList.add("lm-mod-expanded");t.setAttribute("aria-expanded","true");n.show()}else{t.classList.remove("lm-mod-expanded");t.setAttribute("aria-expanded","false");n.hide()}this._expansionToggled.emit(e)}}(function(e){class t extends W.Renderer{constructor(){super();this.titleClassName="lm-AccordionPanel-title";this._titleID=0;this._titleKeys=new WeakMap;this._uuid=++t._nInstance}createCollapseIcon(e){return document.createElement("span")}createSectionTitle(e){const t=document.createElement("h3");t.setAttribute("tabindex","0");t.id=this.createTitleKey(e);t.className=this.titleClassName;for(const s in e.dataset){t.dataset[s]=e.dataset[s]}const n=t.appendChild(this.createCollapseIcon(e));n.className="lm-AccordionPanel-titleCollapser";const i=t.appendChild(document.createElement("span"));i.className="lm-AccordionPanel-titleLabel";i.textContent=e.label;i.title=e.caption||e.label;return t}createTitleKey(e){let t=this._titleKeys.get(e);if(t===undefined){t=`title-key-${this._uuid}-${this._titleID++}`;this._titleKeys.set(e,t)}return t}}t._nInstance=0;e.Renderer=t;e.defaultRenderer=new t})(U||(U={}));var $;(function(e){function t(e){return e.layout||new B({renderer:e.renderer||U.defaultRenderer,orientation:e.orientation,alignment:e.alignment,spacing:e.spacing,titleSpace:e.titleSpace})}e.createLayout=t})($||($={}));class q extends P{constructor(e={}){super();this._fixed=0;this._spacing=4;this._dirty=false;this._sizers=[];this._items=[];this._box=null;this._alignment="start";this._direction="top-to-bottom";if(e.direction!==undefined){this._direction=e.direction}if(e.alignment!==undefined){this._alignment=e.alignment}if(e.spacing!==undefined){this._spacing=R.clampDimension(e.spacing)}}dispose(){for(const e of this._items){e.dispose()}this._box=null;this._items.length=0;this._sizers.length=0;super.dispose()}get direction(){return this._direction}set direction(e){if(this._direction===e){return}this._direction=e;if(!this.parent){return}this.parent.dataset["direction"]=e;this.parent.fit()}get alignment(){return this._alignment}set alignment(e){if(this._alignment===e){return}this._alignment=e;if(!this.parent){return}this.parent.dataset["alignment"]=e;this.parent.update()}get spacing(){return this._spacing}set spacing(e){e=R.clampDimension(e);if(this._spacing===e){return}this._spacing=e;if(!this.parent){return}this.parent.fit()}init(){this.parent.dataset["direction"]=this.direction;this.parent.dataset["alignment"]=this.alignment;super.init()}attachWidget(e,t){i.ArrayExt.insert(this._items,e,new D(t));i.ArrayExt.insert(this._sizers,e,new k);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.BeforeAttach)}this.parent.node.appendChild(t.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.AfterAttach)}this.parent.fit()}moveWidget(e,t,n){i.ArrayExt.move(this._items,e,t);i.ArrayExt.move(this._sizers,e,t);this.parent.update()}detachWidget(e,t){let n=i.ArrayExt.removeAt(this._items,e);i.ArrayExt.removeAt(this._sizers,e);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.BeforeDetach)}this.parent.node.removeChild(t.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.AfterDetach)}n.dispose();this.parent.fit()}onBeforeShow(e){super.onBeforeShow(e);this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e);this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){if(this.parent.isVisible){this._update(e.width,e.height)}}onUpdateRequest(e){if(this.parent.isVisible){this._update(-1,-1)}}onFitRequest(e){if(this.parent.isAttached){this._fit()}}_fit(){let e=0;for(let r=0,a=this._items.length;r0){switch(this._alignment){case"start":break;case"center":d=0;c=l/2;break;case"end":d=0;c=l;break;case"justify":d=l/n;c=0;break;default:throw"unreachable"}}for(let a=0,h=this._items.length;a0,coerce:(e,t)=>Math.max(0,Math.floor(t)),changed:i});e.sizeBasisProperty=new h.AttachedProperty({name:"sizeBasis",create:()=>0,coerce:(e,t)=>Math.max(0,Math.floor(t)),changed:i});function t(e){return e==="left-to-right"||e==="right-to-left"}e.isHorizontal=t;function n(e){return Math.max(0,Math.floor(e))}e.clampSpacing=n;function i(e){if(e.parent&&e.parent.layout instanceof q){e.parent.fit()}}})(K||(K={}));class J extends z{constructor(e={}){super({layout:Z.createLayout(e)});this.addClass("lm-BoxPanel")}get direction(){return this.layout.direction}set direction(e){this.layout.direction=e}get alignment(){return this.layout.alignment}set alignment(e){this.layout.alignment=e}get spacing(){return this.layout.spacing}set spacing(e){this.layout.spacing=e}onChildAdded(e){e.child.addClass("lm-BoxPanel-child")}onChildRemoved(e){e.child.removeClass("lm-BoxPanel-child")}}(function(e){function t(e){return q.getStretch(e)}e.getStretch=t;function n(e,t){q.setStretch(e,t)}e.setStretch=n;function i(e){return q.getSizeBasis(e)}e.getSizeBasis=i;function s(e,t){q.setSizeBasis(e,t)}e.setSizeBasis=s})(J||(J={}));var Z;(function(e){function t(e){return e.layout||new q(e)}e.createLayout=t})(Z||(Z={}));class G extends E{constructor(e){super({node:Y.createNode()});this._activeIndex=-1;this._items=[];this._results=null;this.addClass("lm-CommandPalette");this.setFlag(E.Flag.DisallowLayout);this.commands=e.commands;this.renderer=e.renderer||G.defaultRenderer;this.commands.commandChanged.connect(this._onGenericChange,this);this.commands.keyBindingChanged.connect(this._onGenericChange,this)}dispose(){this._items.length=0;this._results=null;super.dispose()}get searchNode(){return this.node.getElementsByClassName("lm-CommandPalette-search")[0]}get inputNode(){return this.node.getElementsByClassName("lm-CommandPalette-input")[0]}get contentNode(){return this.node.getElementsByClassName("lm-CommandPalette-content")[0]}get items(){return this._items}addItem(e){let t=Y.createItem(this.commands,e);this._items.push(t);this.refresh();return t}addItems(e){const t=e.map((e=>Y.createItem(this.commands,e)));t.forEach((e=>this._items.push(e)));this.refresh();return t}removeItem(e){this.removeItemAt(this._items.indexOf(e))}removeItemAt(e){let t=i.ArrayExt.removeAt(this._items,e);if(!t){return}this.refresh()}clearItems(){if(this._items.length===0){return}this._items.length=0;this.refresh()}refresh(){this._results=null;if(this.inputNode.value!==""){let e=this.node.getElementsByClassName("lm-close-icon")[0];e.style.display="inherit"}else{let e=this.node.getElementsByClassName("lm-close-icon")[0];e.style.display="none"}this.update()}handleEvent(e){switch(e.type){case"click":this._evtClick(e);break;case"keydown":this._evtKeyDown(e);break;case"input":this.refresh();break;case"focus":case"blur":this._toggleFocused();break}}onBeforeAttach(e){this.node.addEventListener("click",this);this.node.addEventListener("keydown",this);this.node.addEventListener("input",this);this.node.addEventListener("focus",this,true);this.node.addEventListener("blur",this,true)}onAfterDetach(e){this.node.removeEventListener("click",this);this.node.removeEventListener("keydown",this);this.node.removeEventListener("input",this);this.node.removeEventListener("focus",this,true);this.node.removeEventListener("blur",this,true)}onAfterShow(e){this.update();super.onAfterShow(e)}onActivateRequest(e){if(this.isAttached){let e=this.inputNode;e.focus();e.select()}}onUpdateRequest(e){if(this.isHidden){return}let t=this.inputNode.value;let n=this.contentNode;let s=this._results;if(!s){s=this._results=Y.search(this._items,t);this._activeIndex=t?i.ArrayExt.findFirstIndex(s,Y.canActivate):-1}if(!t&&s.length===0){b.VirtualDOM.render(null,n);return}if(t&&s.length===0){let e=this.renderer.renderEmptyMessage({query:t});b.VirtualDOM.render(e,n);return}let o=this.renderer;let r=this._activeIndex;let l=new Array(s.length);for(let i=0,a=s.length;i=s.length){n.scrollTop=0}else{let e=n.children[r];a.ElementExt.scrollIntoViewIfNeeded(n,e)}}_evtClick(e){if(e.button!==0){return}if(e.target.classList.contains("lm-close-icon")){this.inputNode.value="";this.refresh();return}let t=i.ArrayExt.findFirstIndex(this.contentNode.children,(t=>t.contains(e.target)));if(t===-1){return}e.preventDefault();e.stopPropagation();this._execute(t)}_evtKeyDown(e){if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey){return}switch(e.keyCode){case 13:e.preventDefault();e.stopPropagation();this._execute(this._activeIndex);break;case 38:e.preventDefault();e.stopPropagation();this._activatePreviousItem();break;case 40:e.preventDefault();e.stopPropagation();this._activateNextItem();break}}_activateNextItem(){if(!this._results||this._results.length===0){return}let e=this._activeIndex;let t=this._results.length;let n=ee-t));let h=a.slice(0,c);let u=a.slice(c);for(let i=0,p=u.length;in.command===e&&o.JSONExt.deepEqual(n.args,t)))||null}}})(Y||(Y={}));class X extends E{constructor(e){super({node:Q.createNode()});this._childIndex=-1;this._activeIndex=-1;this._openTimerID=0;this._closeTimerID=0;this._items=[];this._childMenu=null;this._parentMenu=null;this._aboutToClose=new p.Signal(this);this._menuRequested=new p.Signal(this);this.addClass("lm-Menu");this.setFlag(E.Flag.DisallowLayout);this.commands=e.commands;this.renderer=e.renderer||X.defaultRenderer}dispose(){this.close();this._items.length=0;super.dispose()}get aboutToClose(){return this._aboutToClose}get menuRequested(){return this._menuRequested}get parentMenu(){return this._parentMenu}get childMenu(){return this._childMenu}get rootMenu(){let e=this;while(e._parentMenu){e=e._parentMenu}return e}get leafMenu(){let e=this;while(e._childMenu){e=e._childMenu}return e}get contentNode(){return this.node.getElementsByClassName("lm-Menu-content")[0]}get activeItem(){return this._items[this._activeIndex]||null}set activeItem(e){this.activeIndex=e?this._items.indexOf(e):-1}get activeIndex(){return this._activeIndex}set activeIndex(e){if(e<0||e>=this._items.length){e=-1}if(e!==-1&&!Q.canActivate(this._items[e])){e=-1}if(this._activeIndex===e){return}this._activeIndex=e;if(this._activeIndex>=0&&this.contentNode.childNodes[this._activeIndex]){this.contentNode.childNodes[this._activeIndex].focus()}this.update()}get items(){return this._items}activateNextItem(){let e=this._items.length;let t=this._activeIndex;let n=t{this.activeIndex=r}})}b.VirtualDOM.render(o,this.contentNode)}onCloseRequest(e){this._cancelOpenTimer();this._cancelCloseTimer();this.activeIndex=-1;let t=this._childMenu;if(t){this._childIndex=-1;this._childMenu=null;t._parentMenu=null;t.close()}let n=this._parentMenu;if(n){this._parentMenu=null;n._childIndex=-1;n._childMenu=null;n.activate()}if(this.isAttached){this._aboutToClose.emit(undefined)}super.onCloseRequest(e)}_evtKeyDown(e){e.preventDefault();e.stopPropagation();let t=e.keyCode;if(t===13){this.triggerActiveItem();return}if(t===27){this.close();return}if(t===37){if(this._parentMenu){this.close()}else{this._menuRequested.emit("previous")}return}if(t===38){this.activatePreviousItem();return}if(t===39){let e=this.activeItem;if(e&&e.type==="submenu"){this.triggerActiveItem()}else{this.rootMenu._menuRequested.emit("next")}return}if(t===40){this.activateNextItem();return}let n=(0,x.getKeyboardLayout)().keyForKeydownEvent(e);if(!n){return}let i=this._activeIndex+1;let s=Q.findMnemonic(this._items,n,i);if(s.index!==-1&&!s.multiple){this.activeIndex=s.index;this.triggerActiveItem()}else if(s.index!==-1){this.activeIndex=s.index}else if(s.auto!==-1){this.activeIndex=s.auto}}_evtMouseUp(e){if(e.button!==0){return}e.preventDefault();e.stopPropagation();this.triggerActiveItem()}_evtMouseMove(e){let t=i.ArrayExt.findFirstIndex(this.contentNode.children,(t=>a.ElementExt.hitTest(t,e.clientX,e.clientY)));if(t===this._activeIndex){return}this.activeIndex=t;t=this.activeIndex;if(t===this._childIndex){this._cancelOpenTimer();this._cancelCloseTimer();return}if(this._childIndex!==-1){this._startCloseTimer()}this._cancelOpenTimer();let n=this.activeItem;if(!n||n.type!=="submenu"||!n.submenu){return}this._startOpenTimer()}_evtMouseEnter(e){for(let t=this._parentMenu;t;t=t._parentMenu){t._cancelOpenTimer();t._cancelCloseTimer();t.activeIndex=t._childIndex}}_evtMouseLeave(e){this._cancelOpenTimer();if(!this._childMenu){this.activeIndex=-1;return}let{clientX:t,clientY:n}=e;if(a.ElementExt.hitTest(this._childMenu.node,t,n)){this._cancelCloseTimer();return}this.activeIndex=-1;this._startCloseTimer()}_evtMouseDown(e){if(this._parentMenu){return}if(Q.hitTestMenus(this,e.clientX,e.clientY)){e.preventDefault();e.stopPropagation()}else{this.close()}}_openChildMenu(e=false){let t=this.activeItem;if(!t||t.type!=="submenu"||!t.submenu){this._closeChildMenu();return}let n=t.submenu;if(n===this._childMenu){return}X.saveWindowData();this._closeChildMenu();this._childMenu=n;this._childIndex=this._activeIndex;n._parentMenu=this;d.MessageLoop.sendMessage(this,E.Msg.UpdateRequest);let i=this.contentNode.children[this._activeIndex];Q.openSubmenu(n,i);if(e){n.activeIndex=-1;n.activateNextItem()}n.activate()}_closeChildMenu(){if(this._childMenu){this._childMenu.close()}}_startOpenTimer(){if(this._openTimerID===0){this._openTimerID=window.setTimeout((()=>{this._openTimerID=0;this._openChildMenu()}),Q.TIMER_DELAY)}}_startCloseTimer(){if(this._closeTimerID===0){this._closeTimerID=window.setTimeout((()=>{this._closeTimerID=0;this._closeChildMenu()}),Q.TIMER_DELAY)}}_cancelOpenTimer(){if(this._openTimerID!==0){clearTimeout(this._openTimerID);this._openTimerID=0}}_cancelCloseTimer(){if(this._closeTimerID!==0){clearTimeout(this._closeTimerID);this._closeTimerID=0}}static saveWindowData(){Q.saveWindowData()}}(function(e){class t{renderItem(e){let t=this.createItemClass(e);let n=this.createItemDataset(e);let i=this.createItemARIA(e);return b.h.li({className:t,dataset:n,tabindex:"0",onfocus:e.onfocus,...i},this.renderIcon(e),this.renderLabel(e),this.renderShortcut(e),this.renderSubmenu(e))}renderIcon(e){let t=this.createIconClass(e);return b.h.div({className:t},e.item.icon,e.item.iconLabel)}renderLabel(e){let t=this.formatLabel(e);return b.h.div({className:"lm-Menu-itemLabel"},t)}renderShortcut(e){let t=this.formatShortcut(e);return b.h.div({className:"lm-Menu-itemShortcut"},t)}renderSubmenu(e){return b.h.div({className:"lm-Menu-itemSubmenuIcon"})}createItemClass(e){let t="lm-Menu-item";if(!e.item.isEnabled){t+=" lm-mod-disabled"}if(e.item.isToggled){t+=" lm-mod-toggled"}if(!e.item.isVisible){t+=" lm-mod-hidden"}if(e.active){t+=" lm-mod-active"}if(e.collapsed){t+=" lm-mod-collapsed"}let n=e.item.className;if(n){t+=` ${n}`}return t}createItemDataset(e){let t;let{type:n,command:i,dataset:s}=e.item;if(n==="command"){t={...s,type:n,command:i}}else{t={...s,type:n}}return t}createIconClass(e){let t="lm-Menu-itemIcon";let n=e.item.iconClass;return n?`${t} ${n}`:t}createItemARIA(e){let t={};switch(e.item.type){case"separator":t.role="presentation";break;case"submenu":t["aria-haspopup"]="true";if(!e.item.isEnabled){t["aria-disabled"]="true"}break;default:if(!e.item.isEnabled){t["aria-disabled"]="true"}t.role="menuitem"}return t}formatLabel(e){let{label:t,mnemonic:n}=e.item;if(n<0||n>=t.length){return t}let i=t.slice(0,n);let s=t.slice(n+1);let o=t[n];let r=b.h.span({className:"lm-Menu-itemMnemonic"},o);return[i,r,s]}formatShortcut(e){let t=e.item.keyBinding;return t?v.CommandRegistry.formatKeystroke(t.keys):null}}e.Renderer=t;e.defaultRenderer=new t})(X||(X={}));var Q;(function(e){e.TIMER_DELAY=300;e.SUBMENU_OVERLAP=3;let t=null;let n=0;function s(){if(n>0){n--;return t}return m()}function r(){t=m();n++}e.saveWindowData=r;function l(){let e=document.createElement("div");let t=document.createElement("ul");t.className="lm-Menu-content";e.appendChild(t);t.setAttribute("role","menu");e.tabIndex=0;return e}e.createNode=l;function c(e){return e.type!=="separator"&&e.isEnabled&&e.isVisible}e.canActivate=c;function h(e,t){return new _(e.commands,t)}e.createItem=h;function u(e,t,n){for(let i=e;i;i=i.childMenu){if(a.ElementExt.hitTest(i.node,t,n)){return true}}return false}e.hitTestMenus=u;function p(e){let t=new Array(e.length);i.ArrayExt.fill(t,false);let n=0;let s=e.length;for(;n=0;--o){let n=e[o];if(!n.isVisible){continue}if(n.type!=="separator"){break}t[o]=true}let r=false;while(++na+c){t=a+c-g}if(!o&&n+f>l+h){if(n>l+h){n=l+h-f}else{n=n-f}}m.transform=`translate(${Math.max(0,t)}px, ${Math.max(0,n)}px`;m.opacity="1"}e.openRootMenu=g;function f(t,n){const i=s();let o=i.pageXOffset;let r=i.pageYOffset;let l=i.clientWidth;let c=i.clientHeight;d.MessageLoop.sendMessage(t,E.Msg.UpdateRequest);let h=c;let u=t.node;let p=u.style;p.opacity="0";p.maxHeight=`${h}px`;E.attach(t,document.body);let{width:m,height:g}=u.getBoundingClientRect();let f=a.ElementExt.boxSizing(t.node);let v=n.getBoundingClientRect();let _=v.right-e.SUBMENU_OVERLAP;if(_+m>o+l){_=v.left+e.SUBMENU_OVERLAP-m}let b=v.top-f.borderTop-f.paddingTop;if(b+g>r+c){b=v.bottom+f.borderBottom+f.paddingBottom-g}p.transform=`translate(${Math.max(0,_)}px, ${Math.max(0,b)}px`;p.opacity="1"}e.openSubmenu=f;function v(e,t,n){let i=-1;let s=-1;let o=false;let r=t.toUpperCase();for(let a=0,l=e.length;a=0&&un.command===e&&o.JSONExt.deepEqual(n.args,t)))||null}return null}}})(Q||(Q={}));class ee{constructor(e){this._groupByTarget=true;this._idTick=0;this._items=[];this._sortBySelector=true;const{groupByTarget:t,sortBySelector:n,...i}=e;this.menu=new X(i);this._groupByTarget=t!==false;this._sortBySelector=n!==false}addItem(e){let t=te.createItem(e,this._idTick++);this._items.push(t);return new w.DisposableDelegate((()=>{i.ArrayExt.removeFirstOf(this._items,t)}))}open(e){X.saveWindowData();this.menu.clearItems();if(this._items.length===0){return false}let t=te.matchItems(this._items,e,this._groupByTarget,this._sortBySelector);if(!t||t.length===0){return false}for(const n of t){this.menu.addItem(n)}this.menu.open(e.clientX,e.clientY);return true}}var te;(function(e){function t(e,t){let n=i(e.selector);let s=e.rank!==undefined?e.rank:Infinity;return{...e,selector:n,rank:s,id:t}}e.createItem=t;function n(e,t,n,i){let r=t.target;if(!r){return null}let l=t.currentTarget;if(!l){return null}if(!l.contains(r)){r=document.elementFromPoint(t.clientX,t.clientY);if(!r||!l.contains(r)){return null}}let d=[];let c=e.slice();while(r!==null){let e=[];for(let t=0,n=c.length;t=this._titles.length){e=-1}if(this._currentIndex===e){return}let t=this._currentIndex;let n=this._titles[t]||null;let i=e;let s=this._titles[i]||null;this._currentIndex=i;this._previousTitle=n;this.update();this._currentChanged.emit({previousIndex:t,previousTitle:n,currentIndex:i,currentTitle:s})}get name(){return this._name}set name(e){this._name=e;if(e){this.contentNode.setAttribute("aria-label",e)}else{this.contentNode.removeAttribute("aria-label")}}get orientation(){return this._orientation}set orientation(e){if(this._orientation===e){return}this._releaseMouse();this._orientation=e;this.dataset["orientation"]=e;this.contentNode.setAttribute("aria-orientation",e)}get addButtonEnabled(){return this._addButtonEnabled}set addButtonEnabled(e){if(this._addButtonEnabled===e){return}this._addButtonEnabled=e;if(e){this.addButtonNode.classList.remove("lm-mod-hidden")}else{this.addButtonNode.classList.add("lm-mod-hidden")}}get titles(){return this._titles}get contentNode(){return this.node.getElementsByClassName("lm-TabBar-content")[0]}get addButtonNode(){return this.node.getElementsByClassName("lm-TabBar-addButton")[0]}addTab(e){return this.insertTab(this._titles.length,e)}insertTab(e,t){this._releaseMouse();let n=se.asTitle(t);let s=this._titles.indexOf(n);let o=Math.max(0,Math.min(e,this._titles.length));if(s===-1){i.ArrayExt.insert(this._titles,o,n);n.changed.connect(this._onTitleChanged,this);this.update();this._adjustCurrentForInsert(o,n);return n}if(o===this._titles.length){o--}if(s===o){return n}i.ArrayExt.move(this._titles,s,o);this.update();this._adjustCurrentForMove(s,o);return n}removeTab(e){this.removeTabAt(this._titles.indexOf(e))}removeTabAt(e){this._releaseMouse();let t=i.ArrayExt.removeAt(this._titles,e);if(!t){return}t.changed.disconnect(this._onTitleChanged,this);if(t===this._previousTitle){this._previousTitle=null}this.update();this._adjustCurrentForRemove(e,t)}clearTabs(){if(this._titles.length===0){return}this._releaseMouse();for(let n of this._titles){n.changed.disconnect(this._onTitleChanged,this)}let e=this.currentIndex;let t=this.currentTitle;this._currentIndex=-1;this._previousTitle=null;this._titles.length=0;this.update();if(e===-1){return}this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:-1,currentTitle:null})}releaseMouse(){this._releaseMouse()}handleEvent(e){switch(e.type){case"pointerdown":this._evtPointerDown(e);break;case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"dblclick":this._evtDblClick(e);break;case"keydown":e.eventPhase===Event.CAPTURING_PHASE?this._evtKeyDownCapturing(e):this._evtKeyDown(e);break;case"contextmenu":e.preventDefault();e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("pointerdown",this);this.node.addEventListener("dblclick",this);this.node.addEventListener("keydown",this)}onAfterDetach(e){this.node.removeEventListener("pointerdown",this);this.node.removeEventListener("dblclick",this);this.node.removeEventListener("keydown",this);this._releaseMouse()}onUpdateRequest(e){var t;let n=this._titles;let i=this.renderer;let s=this.currentTitle;let o=new Array(n.length);const r=(t=this._getCurrentTabindex())!==null&&t!==void 0?t:this._currentIndex>-1?this._currentIndex:0;for(let a=0,l=n.length;aa.ElementExt.hitTest(t,e.clientX,e.clientY)));if(n===-1){return}let s=this.titles[n];let o=t[n].querySelector(".lm-TabBar-tabLabel");if(o&&o.contains(e.target)){let e=s.label||"";let t=o.innerHTML;o.innerHTML="";let n=document.createElement("input");n.classList.add("lm-TabBar-tabInput");n.value=e;o.appendChild(n);let i=()=>{n.removeEventListener("blur",i);o.innerHTML=t;this.node.addEventListener("keydown",this)};n.addEventListener("dblclick",(e=>e.stopPropagation()));n.addEventListener("blur",i);n.addEventListener("keydown",(e=>{if(e.key==="Enter"){if(n.value!==""){s.label=s.caption=n.value}i()}else if(e.key==="Escape"){i()}}));this.node.removeEventListener("keydown",this);n.select();n.focus();if(o.children.length>0){o.children[0].focus()}}}_evtKeyDownCapturing(e){if(e.eventPhase!==Event.CAPTURING_PHASE){return}e.preventDefault();e.stopPropagation();if(e.key==="Escape"){this._releaseMouse()}}_evtKeyDown(e){var t,n,s;if(e.key==="Tab"||e.eventPhase===Event.CAPTURING_PHASE){return}if(e.key==="Enter"||e.key==="Spacebar"||e.key===" "){const t=document.activeElement;if(this.addButtonEnabled&&this.addButtonNode.contains(t)){e.preventDefault();e.stopPropagation();this._addRequested.emit()}else{const n=i.ArrayExt.findFirstIndex(this.contentNode.children,(e=>e.contains(t)));if(n>=0){e.preventDefault();e.stopPropagation();this.currentIndex=n}}}else if(ne.includes(e.key)){const i=[...this.contentNode.children];if(this.addButtonEnabled){i.push(this.addButtonNode)}if(i.length<=1){return}e.preventDefault();e.stopPropagation();let o=i.indexOf(document.activeElement);if(o===-1){o=this._currentIndex}let r;if(e.key==="ArrowRight"&&this._orientation==="horizontal"||e.key==="ArrowDown"&&this._orientation==="vertical"){r=(t=i[o+1])!==null&&t!==void 0?t:i[0]}else if(e.key==="ArrowLeft"&&this._orientation==="horizontal"||e.key==="ArrowUp"&&this._orientation==="vertical"){r=(n=i[o-1])!==null&&n!==void 0?n:i[i.length-1]}else if(e.key==="Home"){r=i[0]}else if(e.key==="End"){r=i[i.length-1]}if(r){(s=i[o])===null||s===void 0?void 0:s.setAttribute("tabindex","-1");r===null||r===void 0?void 0:r.setAttribute("tabindex","0");r.focus()}}}_evtPointerDown(e){if(e.button!==0&&e.button!==1){return}if(this._dragData){return}if(e.target.classList.contains("lm-TabBar-tabInput")){return}let t=this.addButtonEnabled&&this.addButtonNode.contains(e.target);let n=this.contentNode.children;let s=i.ArrayExt.findFirstIndex(n,(t=>a.ElementExt.hitTest(t,e.clientX,e.clientY)));if(s===-1&&!t){return}e.preventDefault();e.stopPropagation();this._dragData={tab:n[s],index:s,pressX:e.clientX,pressY:e.clientY,tabPos:-1,tabSize:-1,tabPressPos:-1,targetIndex:-1,tabLayout:null,contentRect:null,override:null,dragActive:false,dragAborted:false,detachRequested:false};this.document.addEventListener("pointerup",this,true);if(e.button===1||t){return}let o=n[s].querySelector(this.renderer.closeIconSelector);if(o&&o.contains(e.target)){return}if(this.tabsMovable){this.document.addEventListener("pointermove",this,true);this.document.addEventListener("keydown",this,true);this.document.addEventListener("contextmenu",this,true)}if(this.allowDeselect&&this.currentIndex===s){this.currentIndex=-1}else{this.currentIndex=s}if(this.currentIndex===-1){return}this._tabActivateRequested.emit({index:this.currentIndex,title:this.currentTitle})}_evtPointerMove(e){let t=this._dragData;if(!t){return}e.preventDefault();e.stopPropagation();let n=this.contentNode.children;if(!t.dragActive&&!se.dragExceeded(t,e)){return}if(!t.dragActive){let e=t.tab.getBoundingClientRect();if(this._orientation==="horizontal"){t.tabPos=t.tab.offsetLeft;t.tabSize=e.width;t.tabPressPos=t.pressX-e.left}else{t.tabPos=t.tab.offsetTop;t.tabSize=e.height;t.tabPressPos=t.pressY-e.top}t.tabPressOffset={x:t.pressX-e.left,y:t.pressY-e.top};t.tabLayout=se.snapTabLayout(n,this._orientation);t.contentRect=this.contentNode.getBoundingClientRect();t.override=g.Drag.overrideCursor("default");t.tab.classList.add("lm-mod-dragging");this.addClass("lm-mod-dragging");t.dragActive=true}if(!t.detachRequested&&se.detachExceeded(t,e)){t.detachRequested=true;let i=t.index;let s=e.clientX;let o=e.clientY;let r=n[i];let a=this._titles[i];this._tabDetachRequested.emit({index:i,title:a,tab:r,clientX:s,clientY:o,offset:t.tabPressOffset});if(t.dragAborted){return}}se.layoutTabs(n,t,e,this._orientation)}_evtPointerUp(e){if(e.button!==0&&e.button!==1){return}const t=this._dragData;if(!t){return}e.preventDefault();e.stopPropagation();this.document.removeEventListener("pointermove",this,true);this.document.removeEventListener("pointerup",this,true);this.document.removeEventListener("keydown",this,true);this.document.removeEventListener("contextmenu",this,true);if(!t.dragActive){this._dragData=null;let n=this.addButtonEnabled&&this.addButtonNode.contains(e.target);if(n){this._addRequested.emit(undefined);return}let s=this.contentNode.children;let o=i.ArrayExt.findFirstIndex(s,(t=>a.ElementExt.hitTest(t,e.clientX,e.clientY)));if(o!==t.index){return}let r=this._titles[o];if(!r.closable){return}if(e.button===1){this._tabCloseRequested.emit({index:o,title:r});return}let l=s[o].querySelector(this.renderer.closeIconSelector);if(l&&l.contains(e.target)){this._tabCloseRequested.emit({index:o,title:r});return}return}if(e.button!==0){return}se.finalizeTabPosition(t,this._orientation);t.tab.classList.remove("lm-mod-dragging");let n=se.parseTransitionDuration(t.tab);setTimeout((()=>{if(t.dragAborted){return}this._dragData=null;se.resetTabPositions(this.contentNode.children,this._orientation);t.override.dispose();this.removeClass("lm-mod-dragging");let e=t.index;let n=t.targetIndex;if(n===-1||e===n){return}i.ArrayExt.move(this._titles,e,n);this._adjustCurrentForMove(e,n);this._tabMoved.emit({fromIndex:e,toIndex:n,title:this._titles[n]});d.MessageLoop.sendMessage(this,E.Msg.UpdateRequest)}),n)}_releaseMouse(){let e=this._dragData;if(!e){return}this._dragData=null;this.document.removeEventListener("pointermove",this,true);this.document.removeEventListener("pointerup",this,true);this.document.removeEventListener("keydown",this,true);this.document.removeEventListener("contextmenu",this,true);e.dragAborted=true;if(!e.dragActive){return}se.resetTabPositions(this.contentNode.children,this._orientation);e.override.dispose();e.tab.classList.remove("lm-mod-dragging");this.removeClass("lm-mod-dragging")}_adjustCurrentForInsert(e,t){let n=this.currentTitle;let i=this._currentIndex;let s=this.insertBehavior;if(s==="select-tab"||s==="select-tab-if-needed"&&i===-1){this._currentIndex=e;this._previousTitle=n;this._currentChanged.emit({previousIndex:i,previousTitle:n,currentIndex:e,currentTitle:t});return}if(i>=e){this._currentIndex++}}_adjustCurrentForMove(e,t){if(this._currentIndex===e){this._currentIndex=t}else if(this._currentIndex=t){this._currentIndex++}else if(this._currentIndex>e&&this._currentIndex<=t){this._currentIndex--}}_adjustCurrentForRemove(e,t){let n=this._currentIndex;let i=this.removeBehavior;if(n!==e){if(n>e){this._currentIndex--}return}if(this._titles.length===0){this._currentIndex=-1;this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:-1,currentTitle:null});return}if(i==="select-tab-after"){this._currentIndex=Math.min(e,this._titles.length-1);this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:this._currentIndex,currentTitle:this.currentTitle});return}if(i==="select-tab-before"){this._currentIndex=Math.max(0,e-1);this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:this._currentIndex,currentTitle:this.currentTitle});return}if(i==="select-previous-tab"){if(this._previousTitle){this._currentIndex=this._titles.indexOf(this._previousTitle);this._previousTitle=null}else{this._currentIndex=Math.min(e,this._titles.length-1)}this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:this._currentIndex,currentTitle:this.currentTitle});return}this._currentIndex=-1;this._currentChanged.emit({previousIndex:e,previousTitle:t,currentIndex:-1,currentTitle:null})}_onTitleChanged(e){this.update()}}(function(e){class t{constructor(){this.closeIconSelector=".lm-TabBar-tabCloseIcon";this._tabID=0;this._tabKeys=new WeakMap;this._uuid=++t._nInstance}renderTab(e){let t=e.title.caption;let n=this.createTabKey(e);let i=n;let s=this.createTabStyle(e);let o=this.createTabClass(e);let r=this.createTabDataset(e);let a=this.createTabARIA(e);if(e.title.closable){return b.h.li({id:i,key:n,className:o,title:t,style:s,dataset:r,...a},this.renderIcon(e),this.renderLabel(e),this.renderCloseIcon(e))}else{return b.h.li({id:i,key:n,className:o,title:t,style:s,dataset:r,...a},this.renderIcon(e),this.renderLabel(e))}}renderIcon(e){const{title:t}=e;let n=this.createIconClass(e);return b.h.div({className:n},t.icon,t.iconLabel)}renderLabel(e){return b.h.div({className:"lm-TabBar-tabLabel"},e.title.label)}renderCloseIcon(e){return b.h.div({className:"lm-TabBar-tabCloseIcon"})}createTabKey(e){let t=this._tabKeys.get(e.title);if(t===undefined){t=`tab-key-${this._uuid}-${this._tabID++}`;this._tabKeys.set(e.title,t)}return t}createTabStyle(e){return{zIndex:`${e.zIndex}`}}createTabClass(e){let t="lm-TabBar-tab";if(e.title.className){t+=` ${e.title.className}`}if(e.title.closable){t+=" lm-mod-closable"}if(e.current){t+=" lm-mod-current"}return t}createTabDataset(e){return e.title.dataset}createTabARIA(e){var t;return{role:"tab","aria-selected":e.current.toString(),tabindex:`${(t=e.tabIndex)!==null&&t!==void 0?t:"-1"}`}}createIconClass(e){let t="lm-TabBar-tabIcon";let n=e.title.iconClass;return n?`${t} ${n}`:t}}t._nInstance=0;e.Renderer=t;e.defaultRenderer=new t;e.addButtonSelector=".lm-TabBar-addButton"})(ie||(ie={}));var se;(function(e){e.DRAG_THRESHOLD=5;e.DETACH_THRESHOLD=20;function t(){let e=document.createElement("div");let t=document.createElement("ul");t.setAttribute("role","tablist");t.className="lm-TabBar-content";e.appendChild(t);let n=document.createElement("div");n.className="lm-TabBar-addButton lm-mod-hidden";n.setAttribute("tabindex","-1");e.appendChild(n);return e}e.createNode=t;function n(e){return e instanceof M?e:new M(e)}e.asTitle=n;function i(e){let t=window.getComputedStyle(e);return 1e3*(parseFloat(t.transitionDuration)||0)}e.parseTransitionDuration=i;function s(e,t){let n=new Array(e.length);for(let i=0,s=e.length;i=e.DRAG_THRESHOLD||s>=e.DRAG_THRESHOLD}e.dragExceeded=o;function r(t,n){let i=t.contentRect;return n.clientX=i.right+e.DETACH_THRESHOLD||n.clientY=i.bottom+e.DETACH_THRESHOLD}e.detachExceeded=r;function a(e,t,n,i){let s;let o;let r;let a;if(i==="horizontal"){s=t.pressX;o=n.clientX-t.contentRect.left;r=n.clientX;a=t.contentRect.width}else{s=t.pressY;o=n.clientY-t.contentRect.top;r=n.clientY;a=t.contentRect.height}let l=t.index;let d=o-t.tabPressPos;let c=d+t.tabSize;for(let h=0,u=e.length;h>1);if(ht.index&&c>u){n=`${-t.tabSize-o.margin}px`;l=Math.max(l,h)}else if(h===t.index){let e=r-s;let i=a-(t.tabPos+t.tabSize);n=`${Math.max(-t.tabPos,Math.min(e,i))}px`}else{n=""}if(i==="horizontal"){e[h].style.left=n}else{e[h].style.top=n}}t.targetIndex=l}e.layoutTabs=a;function l(e,t){let n;if(t==="horizontal"){n=e.contentRect.width}else{n=e.contentRect.height}let i;if(e.targetIndex===e.index){i=0}else if(e.targetIndex>e.index){let t=e.tabLayout[e.targetIndex];i=t.pos+t.size-e.tabSize-e.tabPos}else{let t=e.tabLayout[e.targetIndex];i=t.pos-e.tabPos}let s=n-(e.tabPos+e.tabSize);let o=Math.max(-e.tabPos,Math.min(i,s));if(t==="horizontal"){e.tab.style.left=`${o}px`}else{e.tab.style.top=`${o}px`}}e.finalizeTabPosition=l;function d(e,t){for(const n of e){if(t==="horizontal"){n.style.left=""}else{n.style.top=""}}}e.resetTabPositions=d})(se||(se={}));class oe extends T{constructor(e){super();this._spacing=4;this._dirty=false;this._root=null;this._box=null;this._items=new Map;this.renderer=e.renderer;if(e.spacing!==undefined){this._spacing=R.clampDimension(e.spacing)}this._document=e.document||document;this._hiddenMode=e.hiddenMode!==undefined?e.hiddenMode:E.HiddenMode.Display}dispose(){let e=this[Symbol.iterator]();this._items.forEach((e=>{e.dispose()}));this._box=null;this._root=null;this._items.clear();for(const t of e){t.dispose()}super.dispose()}get hiddenMode(){return this._hiddenMode}set hiddenMode(e){if(this._hiddenMode===e){return}this._hiddenMode=e;for(const t of this.tabBars()){if(t.titles.length>1){for(const e of t.titles){e.owner.hiddenMode=this._hiddenMode}}}}get spacing(){return this._spacing}set spacing(e){e=R.clampDimension(e);if(this._spacing===e){return}this._spacing=e;if(!this.parent){return}this.parent.fit()}get isEmpty(){return this._root===null}[Symbol.iterator](){return this._root?this._root.iterAllWidgets():(0,i.empty)()}widgets(){return this._root?this._root.iterUserWidgets():(0,i.empty)()}selectedWidgets(){return this._root?this._root.iterSelectedWidgets():(0,i.empty)()}tabBars(){return this._root?this._root.iterTabBars():(0,i.empty)()}handles(){return this._root?this._root.iterHandles():(0,i.empty)()}moveHandle(e,t,n){let i=e.classList.contains("lm-mod-hidden");if(!this._root||i){return}let s=this._root.findSplitNode(e);if(!s){return}let o;if(s.node.orientation==="horizontal"){o=t-e.offsetLeft}else{o=n-e.offsetTop}if(o===0){return}s.node.holdSizes();j.adjust(s.node.sizers,s.index,o);if(this.parent){this.parent.update()}}saveLayout(){if(!this._root){return{main:null}}this._root.holdAllSizes();return{main:this._root.createConfig()}}restoreLayout(e){let t=new Set;let n;if(e.main){n=re.normalizeAreaConfig(e.main,t)}else{n=null}let i=this.widgets();let s=this.tabBars();let o=this.handles();this._root=null;for(const r of i){if(!t.has(r)){r.parent=null}}for(const r of s){r.dispose()}for(const r of o){if(r.parentNode){r.parentNode.removeChild(r)}}for(const r of t){r.parent=this.parent}if(n){this._root=re.realizeAreaConfig(n,{createTabBar:e=>this._createTabBar(),createHandle:()=>this._createHandle()},this._document)}else{this._root=null}if(!this.parent){return}t.forEach((e=>{this.attachWidget(e)}));this.parent.fit()}addWidget(e,t={}){let n=t.ref||null;let i=t.mode||"tab-after";let s=null;if(this._root&&n){s=this._root.findTabNode(n)}if(n&&!s){throw new Error("Reference widget is not in the layout.")}e.parent=this.parent;switch(i){case"tab-after":this._insertTab(e,n,s,true);break;case"tab-before":this._insertTab(e,n,s,false);break;case"split-top":this._insertSplit(e,n,s,"vertical",false);break;case"split-left":this._insertSplit(e,n,s,"horizontal",false);break;case"split-right":this._insertSplit(e,n,s,"horizontal",true);break;case"split-bottom":this._insertSplit(e,n,s,"vertical",true);break;case"merge-top":this._insertSplit(e,n,s,"vertical",false,true);break;case"merge-left":this._insertSplit(e,n,s,"horizontal",false,true);break;case"merge-right":this._insertSplit(e,n,s,"horizontal",true,true);break;case"merge-bottom":this._insertSplit(e,n,s,"vertical",true,true);break}if(!this.parent){return}this.attachWidget(e);this.parent.fit()}removeWidget(e){this._removeWidget(e);if(!this.parent){return}this.detachWidget(e);this.parent.fit()}hitTestTabAreas(e,t){if(!this._root||!this.parent||!this.parent.isVisible){return null}if(!this._box){this._box=a.ElementExt.boxSizing(this.parent.node)}let n=this.parent.node.getBoundingClientRect();let i=e-n.left-this._box.borderLeft;let s=t-n.top-this._box.borderTop;let o=this._root.hitTestTabNodes(i,s);if(!o){return null}let{tabBar:r,top:l,left:d,width:c,height:h}=o;let u=this._box.borderLeft+this._box.borderRight;let p=this._box.borderTop+this._box.borderBottom;let m=n.width-u-(d+c);let g=n.height-p-(l+h);return{tabBar:r,x:i,y:s,top:l,left:d,right:m,bottom:g,width:c,height:h}}init(){super.init();for(const e of this){this.attachWidget(e)}for(const e of this.handles()){this.parent.node.appendChild(e)}this.parent.fit()}attachWidget(e){if(this.parent.node===e.node.parentNode){return}this._items.set(e,new D(e));if(this.parent.isAttached){d.MessageLoop.sendMessage(e,E.Msg.BeforeAttach)}this.parent.node.appendChild(e.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(e,E.Msg.AfterAttach)}}detachWidget(e){if(this.parent.node!==e.node.parentNode){return}if(this.parent.isAttached){d.MessageLoop.sendMessage(e,E.Msg.BeforeDetach)}this.parent.node.removeChild(e.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(e,E.Msg.AfterDetach)}let t=this._items.get(e);if(t){this._items.delete(e);t.dispose()}}onBeforeShow(e){super.onBeforeShow(e);this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e);this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){if(this.parent.isVisible){this._update(e.width,e.height)}}onUpdateRequest(e){if(this.parent.isVisible){this._update(-1,-1)}}onFitRequest(e){if(this.parent.isAttached){this._fit()}}_removeWidget(e){if(!this._root){return}let t=this._root.findTabNode(e);if(!t){return}re.removeAria(e);if(t.tabBar.titles.length>1){t.tabBar.removeTab(e.title);if(this._hiddenMode===E.HiddenMode.Scale&&t.tabBar.titles.length==1){const e=t.tabBar.titles[0].owner;e.hiddenMode=E.HiddenMode.Display}return}t.tabBar.dispose();if(this._root===t){this._root=null;return}this._root.holdAllSizes();let n=t.parent;t.parent=null;let s=i.ArrayExt.removeFirstOf(n.children,t);let o=i.ArrayExt.removeAt(n.handles,s);i.ArrayExt.removeAt(n.sizers,s);if(o.parentNode){o.parentNode.removeChild(o)}if(n.children.length>1){n.syncHandles();return}let r=n.parent;n.parent=null;let a=n.children[0];let l=n.handles[0];n.children.length=0;n.handles.length=0;n.sizers.length=0;if(l.parentNode){l.parentNode.removeChild(l)}if(this._root===n){a.parent=null;this._root=a;return}let d=r;let c=d.children.indexOf(n);if(a instanceof re.TabLayoutNode){a.parent=d;d.children[c]=a;return}let h=i.ArrayExt.removeAt(d.handles,c);i.ArrayExt.removeAt(d.children,c);i.ArrayExt.removeAt(d.sizers,c);if(h.parentNode){h.parentNode.removeChild(h)}for(let u=0,p=a.children.length;u=this._left+this._width){return null}if(t=this._top+this._height){return null}return this}createConfig(){let e=this.tabBar.titles.map((e=>e.owner));let t=this.tabBar.currentIndex;return{type:"tab-area",widgets:e,currentIndex:t}}holdAllSizes(){return}fit(e,t){let n=0;let i=0;let s=Infinity;let o=Infinity;let r=t.get(this.tabBar);let a=this.tabBar.currentTitle;let l=a?t.get(a.owner):undefined;let[d,c]=this.sizers;if(r){r.fit()}if(l){l.fit()}if(r&&!r.isHidden){n=Math.max(n,r.minWidth);i+=r.minHeight;d.minSize=r.minHeight;d.maxSize=r.maxHeight}else{d.minSize=0;d.maxSize=0}if(l&&!l.isHidden){n=Math.max(n,l.minWidth);i+=l.minHeight;c.minSize=l.minHeight;c.maxSize=Infinity}else{c.minSize=0;c.maxSize=Infinity}return{minWidth:n,minHeight:i,maxWidth:s,maxHeight:o}}update(e,t,n,i,s,o){this._top=t;this._left=e;this._width=n;this._height=i;let r=o.get(this.tabBar);let a=this.tabBar.currentTitle;let l=a?o.get(a.owner):undefined;j.calc(this.sizers,i);if(r&&!r.isHidden){let i=this.sizers[0].size;r.update(e,t,n,i);t+=i}if(l&&!l.isHidden){let i=this.sizers[1].size;l.update(e,t,n,i)}}}e.TabLayoutNode=s;class o{constructor(e){this.parent=null;this.normalized=false;this.children=[];this.sizers=[];this.handles=[];this.orientation=e}*iterAllWidgets(){for(const e of this.children){yield*e.iterAllWidgets()}}*iterUserWidgets(){for(const e of this.children){yield*e.iterUserWidgets()}}*iterSelectedWidgets(){for(const e of this.children){yield*e.iterSelectedWidgets()}}*iterTabBars(){for(const e of this.children){yield*e.iterTabBars()}}*iterHandles(){yield*this.handles;for(const e of this.children){yield*e.iterHandles()}}findTabNode(e){for(let t=0,n=this.children.length;te.createConfig()));return{type:"split-area",orientation:e,children:n,sizes:t}}syncHandles(){this.handles.forEach(((e,t)=>{e.setAttribute("data-orientation",this.orientation);if(t===this.handles.length-1){e.classList.add("lm-mod-hidden")}else{e.classList.remove("lm-mod-hidden")}}))}holdSizes(){for(const e of this.sizers){e.sizeHint=e.size}}holdAllSizes(){for(const e of this.children){e.holdAllSizes()}this.holdSizes()}normalizeSizes(){let e=this.sizers.length;if(e===0){return}this.holdSizes();let t=this.sizers.reduce(((e,t)=>e+t.sizeHint),0);if(t===0){for(const t of this.sizers){t.size=t.sizeHint=1/e}}else{for(const e of this.sizers){e.size=e.sizeHint/=t}}this.normalized=true}createNormalizedSizes(){let e=this.sizers.length;if(e===0){return[]}let t=this.sizers.map((e=>e.size));let n=t.reduce(((e,t)=>e+t),0);if(n===0){for(let n=t.length-1;n>-1;n--){t[n]=1/e}}else{for(let e=t.length-1;e>-1;e--){t[e]/=n}}return t}fit(e,t){let n=this.orientation==="horizontal";let i=Math.max(0,this.children.length-1)*e;let s=n?i:0;let o=n?0:i;let r=Infinity;let a=Infinity;for(let l=0,d=this.children.length;l=n.length)){i=0}return{type:"tab-area",widgets:n,currentIndex:i}}function d(e,t){let i=e.orientation;let s=[];let o=[];for(let r=0,a=e.children.length;r{let l=i(o,n,s);let d=t(e.sizes[a]);let c=n.createHandle();r.children.push(l);r.handles.push(c);r.sizers.push(d);l.parent=r}));r.syncHandles();r.normalizeSizes();return r}})(re||(re={}));class ae extends E{constructor(e={}){super();this._drag=null;this._tabsMovable=true;this._tabsConstrained=false;this._addButtonEnabled=false;this._pressData=null;this._layoutModified=new p.Signal(this);this._addRequested=new p.Signal(this);this.addClass("lm-DockPanel");this._document=e.document||document;this._mode=e.mode||"multiple-document";this._renderer=e.renderer||ae.defaultRenderer;this._edges=e.edges||le.DEFAULT_EDGES;if(e.tabsMovable!==undefined){this._tabsMovable=e.tabsMovable}if(e.tabsConstrained!==undefined){this._tabsConstrained=e.tabsConstrained}if(e.addButtonEnabled!==undefined){this._addButtonEnabled=e.addButtonEnabled}this.dataset["mode"]=this._mode;let t={createTabBar:()=>this._createTabBar(),createHandle:()=>this._createHandle()};this.layout=new oe({document:this._document,renderer:t,spacing:e.spacing,hiddenMode:e.hiddenMode});this.overlay=e.overlay||new ae.Overlay;this.node.appendChild(this.overlay.node)}dispose(){this._releaseMouse();this.overlay.hide(0);if(this._drag){this._drag.dispose()}super.dispose()}get hiddenMode(){return this.layout.hiddenMode}set hiddenMode(e){this.layout.hiddenMode=e}get layoutModified(){return this._layoutModified}get addRequested(){return this._addRequested}get renderer(){return this.layout.renderer}get spacing(){return this.layout.spacing}set spacing(e){this.layout.spacing=e}get mode(){return this._mode}set mode(e){if(this._mode===e){return}this._mode=e;this.dataset["mode"]=e;let t=this.layout;switch(e){case"multiple-document":for(const e of t.tabBars()){e.show()}break;case"single-document":t.restoreLayout(le.createSingleDocumentConfig(this));break;default:throw"unreachable"}d.MessageLoop.postMessage(this,le.LayoutModified)}get tabsMovable(){return this._tabsMovable}set tabsMovable(e){this._tabsMovable=e;for(const t of this.tabBars()){t.tabsMovable=e}}get tabsConstrained(){return this._tabsConstrained}set tabsConstrained(e){this._tabsConstrained=e}get addButtonEnabled(){return this._addButtonEnabled}set addButtonEnabled(e){this._addButtonEnabled=e;for(const t of this.tabBars()){t.addButtonEnabled=e}}get isEmpty(){return this.layout.isEmpty}*widgets(){yield*this.layout.widgets()}*selectedWidgets(){yield*this.layout.selectedWidgets()}*tabBars(){yield*this.layout.tabBars()}*handles(){yield*this.layout.handles()}selectWidget(e){let t=(0,i.find)(this.tabBars(),(t=>t.titles.indexOf(e.title)!==-1));if(!t){throw new Error("Widget is not contained in the dock panel.")}t.currentTitle=e.title}activateWidget(e){this.selectWidget(e);e.activate()}saveLayout(){return this.layout.saveLayout()}restoreLayout(e){this._mode="multiple-document";this.layout.restoreLayout(e);if(a.Platform.IS_EDGE||a.Platform.IS_IE){d.MessageLoop.flush()}d.MessageLoop.postMessage(this,le.LayoutModified)}addWidget(e,t={}){if(this._mode==="single-document"){this.layout.addWidget(e)}else{this.layout.addWidget(e,t)}d.MessageLoop.postMessage(this,le.LayoutModified)}processMessage(e){if(e.type==="layout-modified"){this._layoutModified.emit(undefined)}else{super.processMessage(e)}}handleEvent(e){switch(e.type){case"lm-dragenter":this._evtDragEnter(e);break;case"lm-dragleave":this._evtDragLeave(e);break;case"lm-dragover":this._evtDragOver(e);break;case"lm-drop":this._evtDrop(e);break;case"pointerdown":this._evtPointerDown(e);break;case"pointermove":this._evtPointerMove(e);break;case"pointerup":this._evtPointerUp(e);break;case"keydown":this._evtKeyDown(e);break;case"contextmenu":e.preventDefault();e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("lm-dragenter",this);this.node.addEventListener("lm-dragleave",this);this.node.addEventListener("lm-dragover",this);this.node.addEventListener("lm-drop",this);this.node.addEventListener("pointerdown",this)}onAfterDetach(e){this.node.removeEventListener("lm-dragenter",this);this.node.removeEventListener("lm-dragleave",this);this.node.removeEventListener("lm-dragover",this);this.node.removeEventListener("lm-drop",this);this.node.removeEventListener("pointerdown",this);this._releaseMouse()}onChildAdded(e){if(le.isGeneratedTabBarProperty.get(e.child)){return}e.child.addClass("lm-DockPanel-widget")}onChildRemoved(e){if(le.isGeneratedTabBarProperty.get(e.child)){return}e.child.removeClass("lm-DockPanel-widget");d.MessageLoop.postMessage(this,le.LayoutModified)}_evtDragEnter(e){if(e.mimeData.hasData("application/vnd.lumino.widget-factory")){e.preventDefault();e.stopPropagation()}}_evtDragLeave(e){e.preventDefault();if(this._tabsConstrained&&e.source!==this)return;e.stopPropagation();this.overlay.hide(1)}_evtDragOver(e){e.preventDefault();if(this._tabsConstrained&&e.source!==this||this._showOverlay(e.clientX,e.clientY)==="invalid"){e.dropAction="none"}else{e.stopPropagation();e.dropAction=e.proposedAction}}_evtDrop(e){e.preventDefault();this.overlay.hide(0);if(e.proposedAction==="none"){e.dropAction="none";return}let{clientX:t,clientY:n}=e;let{zone:i,target:s}=le.findDropTarget(this,t,n,this._edges);if(this._tabsConstrained&&e.source!==this||i==="invalid"){e.dropAction="none";return}let o=e.mimeData;let r=o.getData("application/vnd.lumino.widget-factory");if(typeof r!=="function"){e.dropAction="none";return}let a=r();if(!(a instanceof E)){e.dropAction="none";return}if(a.contains(this)){e.dropAction="none";return}let l=s?le.getDropRef(s.tabBar):null;switch(i){case"root-all":this.addWidget(a);break;case"root-top":this.addWidget(a,{mode:"split-top"});break;case"root-left":this.addWidget(a,{mode:"split-left"});break;case"root-right":this.addWidget(a,{mode:"split-right"});break;case"root-bottom":this.addWidget(a,{mode:"split-bottom"});break;case"widget-all":this.addWidget(a,{mode:"tab-after",ref:l});break;case"widget-top":this.addWidget(a,{mode:"split-top",ref:l});break;case"widget-left":this.addWidget(a,{mode:"split-left",ref:l});break;case"widget-right":this.addWidget(a,{mode:"split-right",ref:l});break;case"widget-bottom":this.addWidget(a,{mode:"split-bottom",ref:l});break;case"widget-tab":this.addWidget(a,{mode:"tab-after",ref:l});break;default:throw"unreachable"}e.dropAction=e.proposedAction;e.stopPropagation();this.activateWidget(a)}_evtKeyDown(e){e.preventDefault();e.stopPropagation();if(e.keyCode===27){this._releaseMouse();d.MessageLoop.postMessage(this,le.LayoutModified)}}_evtPointerDown(e){if(e.button!==0){return}let t=this.layout;let n=e.target;let s=(0,i.find)(t.handles(),(e=>e.contains(n)));if(!s){return}e.preventDefault();e.stopPropagation();this._document.addEventListener("keydown",this,true);this._document.addEventListener("pointerup",this,true);this._document.addEventListener("pointermove",this,true);this._document.addEventListener("contextmenu",this,true);let o=s.getBoundingClientRect();let r=e.clientX-o.left;let a=e.clientY-o.top;let l=window.getComputedStyle(s);let d=g.Drag.overrideCursor(l.cursor,this._document);this._pressData={handle:s,deltaX:r,deltaY:a,override:d}}_evtPointerMove(e){if(!this._pressData){return}e.preventDefault();e.stopPropagation();let t=this.node.getBoundingClientRect();let n=e.clientX-t.left-this._pressData.deltaX;let i=e.clientY-t.top-this._pressData.deltaY;let s=this.layout;s.moveHandle(this._pressData.handle,n,i)}_evtPointerUp(e){if(e.button!==0){return}e.preventDefault();e.stopPropagation();this._releaseMouse();d.MessageLoop.postMessage(this,le.LayoutModified)}_releaseMouse(){if(!this._pressData){return}this._pressData.override.dispose();this._pressData=null;this._document.removeEventListener("keydown",this,true);this._document.removeEventListener("pointerup",this,true);this._document.removeEventListener("pointermove",this,true);this._document.removeEventListener("contextmenu",this,true)}_showOverlay(e,t){let{zone:n,target:i}=le.findDropTarget(this,e,t,this._edges);if(n==="invalid"){this.overlay.hide(100);return n}let s;let o;let r;let l;let d=a.ElementExt.boxSizing(this.node);let c=this.node.getBoundingClientRect();switch(n){case"root-all":s=d.paddingTop;o=d.paddingLeft;r=d.paddingRight;l=d.paddingBottom;break;case"root-top":s=d.paddingTop;o=d.paddingLeft;r=d.paddingRight;l=c.height*le.GOLDEN_RATIO;break;case"root-left":s=d.paddingTop;o=d.paddingLeft;r=c.width*le.GOLDEN_RATIO;l=d.paddingBottom;break;case"root-right":s=d.paddingTop;o=c.width*le.GOLDEN_RATIO;r=d.paddingRight;l=d.paddingBottom;break;case"root-bottom":s=c.height*le.GOLDEN_RATIO;o=d.paddingLeft;r=d.paddingRight;l=d.paddingBottom;break;case"widget-all":s=i.top;o=i.left;r=i.right;l=i.bottom;break;case"widget-top":s=i.top;o=i.left;r=i.right;l=i.bottom+i.height/2;break;case"widget-left":s=i.top;o=i.left;r=i.right+i.width/2;l=i.bottom;break;case"widget-right":s=i.top;o=i.left+i.width/2;r=i.right;l=i.bottom;break;case"widget-bottom":s=i.top+i.height/2;o=i.left;r=i.right;l=i.bottom;break;case"widget-tab":{const e=i.tabBar.node.getBoundingClientRect().height;s=i.top;o=i.left;r=i.right;l=i.bottom+i.height-e;break}default:throw"unreachable"}this.overlay.show({top:s,left:o,right:r,bottom:l});return n}_createTabBar(){let e=this._renderer.createTabBar(this._document);le.isGeneratedTabBarProperty.set(e,true);if(this._mode==="single-document"){e.hide()}e.tabsMovable=this._tabsMovable;e.allowDeselect=false;e.addButtonEnabled=this._addButtonEnabled;e.removeBehavior="select-previous-tab";e.insertBehavior="select-tab-if-needed";e.tabMoved.connect(this._onTabMoved,this);e.currentChanged.connect(this._onCurrentChanged,this);e.tabCloseRequested.connect(this._onTabCloseRequested,this);e.tabDetachRequested.connect(this._onTabDetachRequested,this);e.tabActivateRequested.connect(this._onTabActivateRequested,this);e.addRequested.connect(this._onTabAddRequested,this);return e}_createHandle(){return this._renderer.createHandle()}_onTabMoved(){d.MessageLoop.postMessage(this,le.LayoutModified)}_onCurrentChanged(e,t){let{previousTitle:n,currentTitle:i}=t;if(n){n.owner.hide()}if(i){i.owner.show()}if(a.Platform.IS_EDGE||a.Platform.IS_IE){d.MessageLoop.flush()}d.MessageLoop.postMessage(this,le.LayoutModified)}_onTabAddRequested(e){this._addRequested.emit(e)}_onTabActivateRequested(e,t){t.title.owner.activate()}_onTabCloseRequested(e,t){t.title.owner.close()}_onTabDetachRequested(e,t){if(this._drag){return}e.releaseMouse();let{title:n,tab:i,clientX:s,clientY:r,offset:a}=t;let l=new o.MimeData;let d=()=>n.owner;l.setData("application/vnd.lumino.widget-factory",d);let c=i.cloneNode(true);if(a){c.style.top=`-${a.y}px`;c.style.left=`-${a.x}px`}this._drag=new g.Drag({document:this._document,mimeData:l,dragImage:c,proposedAction:"move",supportedActions:"move",source:this});i.classList.add("lm-mod-hidden");let h=()=>{this._drag=null;i.classList.remove("lm-mod-hidden")};this._drag.start(s,r).then(h)}}(function(e){class t{constructor(){this._timer=-1;this._hidden=true;this.node=document.createElement("div");this.node.classList.add("lm-DockPanel-overlay");this.node.classList.add("lm-mod-hidden");this.node.style.position="absolute";this.node.style.contain="strict"}show(e){let t=this.node.style;t.top=`${e.top}px`;t.left=`${e.left}px`;t.right=`${e.right}px`;t.bottom=`${e.bottom}px`;clearTimeout(this._timer);this._timer=-1;if(!this._hidden){return}this._hidden=false;this.node.classList.remove("lm-mod-hidden")}hide(e){if(this._hidden){return}if(e<=0){clearTimeout(this._timer);this._timer=-1;this._hidden=true;this.node.classList.add("lm-mod-hidden");return}if(this._timer!==-1){return}this._timer=window.setTimeout((()=>{this._timer=-1;this._hidden=true;this.node.classList.add("lm-mod-hidden")}),e)}}e.Overlay=t;class n{createTabBar(e){let t=new ie({document:e});t.addClass("lm-DockPanel-tabBar");return t}createHandle(){let e=document.createElement("div");e.className="lm-DockPanel-handle";return e}}e.Renderer=n;e.defaultRenderer=new n})(ae||(ae={}));var le;(function(e){e.GOLDEN_RATIO=.618;e.DEFAULT_EDGES={top:12,right:40,bottom:40,left:40};e.LayoutModified=new d.ConflatableMessage("layout-modified");e.isGeneratedTabBarProperty=new h.AttachedProperty({name:"isGeneratedTabBar",create:()=>false});function t(e){if(e.isEmpty){return{main:null}}let t=Array.from(e.widgets());let n=e.selectedWidgets().next().value;let i=n?t.indexOf(n):-1;return{main:{type:"tab-area",widgets:t,currentIndex:i}}}e.createSingleDocumentConfig=t;function n(e,t,n,i){if(!a.ElementExt.hitTest(e.node,t,n)){return{zone:"invalid",target:null}}let s=e.layout;if(s.isEmpty){return{zone:"root-all",target:null}}if(e.mode==="multiple-document"){let s=e.node.getBoundingClientRect();let o=t-s.left+1;let r=n-s.top+1;let a=s.right-t;let l=s.bottom-n;let d=Math.min(r,a,l,o);switch(d){case r:if(ru&&d>u&&l>p&&c>p){return{zone:"widget-all",target:o}}r/=u;l/=p;d/=u;c/=p;let m=Math.min(r,l,d,c);let g;switch(m){case r:g="widget-left";break;case l:g="widget-top";break;case d:g="widget-right";break;case c:g="widget-bottom";break;default:throw"unreachable"}return{zone:g,target:o}}e.findDropTarget=n;function i(e){if(e.titles.length===0){return null}if(e.currentTitle){return e.currentTitle.owner}return e.titles[e.titles.length-1].owner}e.getDropRef=i})(le||(le={}));class de{constructor(){this._counter=0;this._widgets=[];this._activeWidget=null;this._currentWidget=null;this._numbers=new Map;this._nodes=new Map;this._activeChanged=new p.Signal(this);this._currentChanged=new p.Signal(this)}dispose(){if(this._counter<0){return}this._counter=-1;p.Signal.clearData(this);for(const e of this._widgets){e.node.removeEventListener("focus",this,true);e.node.removeEventListener("blur",this,true)}this._activeWidget=null;this._currentWidget=null;this._nodes.clear();this._numbers.clear();this._widgets.length=0}get currentChanged(){return this._currentChanged}get activeChanged(){return this._activeChanged}get isDisposed(){return this._counter<0}get currentWidget(){return this._currentWidget}get activeWidget(){return this._activeWidget}get widgets(){return this._widgets}focusNumber(e){let t=this._numbers.get(e);return t===undefined?-1:t}has(e){return this._numbers.has(e)}add(e){if(this._numbers.has(e)){return}let t=e.node.contains(document.activeElement);let n=t?this._counter++:-1;this._widgets.push(e);this._numbers.set(e,n);this._nodes.set(e.node,e);e.node.addEventListener("focus",this,true);e.node.addEventListener("blur",this,true);e.disposed.connect(this._onWidgetDisposed,this);if(t){this._setWidgets(e,e)}}remove(e){if(!this._numbers.has(e)){return}e.disposed.disconnect(this._onWidgetDisposed,this);e.node.removeEventListener("focus",this,true);e.node.removeEventListener("blur",this,true);i.ArrayExt.removeFirstOf(this._widgets,e);this._nodes.delete(e.node);this._numbers.delete(e);if(this._currentWidget!==e){return}let t=this._widgets.filter((e=>this._numbers.get(e)!==-1));let n=(0,i.max)(t,((e,t)=>{let n=this._numbers.get(e);let i=this._numbers.get(t);return n-i}))||null;this._setWidgets(n,null)}handleEvent(e){switch(e.type){case"focus":this._evtFocus(e);break;case"blur":this._evtBlur(e);break}}_setWidgets(e,t){let n=this._currentWidget;this._currentWidget=e;let i=this._activeWidget;this._activeWidget=t;if(n!==e){this._currentChanged.emit({oldValue:n,newValue:e})}if(i!==t){this._activeChanged.emit({oldValue:i,newValue:t})}}_evtFocus(e){let t=this._nodes.get(e.currentTarget);if(t!==this._currentWidget){this._numbers.set(t,this._counter++)}this._setWidgets(t,t)}_evtBlur(e){let t=this._nodes.get(e.currentTarget);let n=e.relatedTarget;if(!n){this._setWidgets(this._currentWidget,null);return}if(t.node.contains(n)){return}if(!(0,i.find)(this._widgets,(e=>e.node.contains(n)))){this._setWidgets(this._currentWidget,null);return}}_onWidgetDisposed(e){this.remove(e)}}class ce extends T{constructor(e={}){super(e);this._dirty=false;this._rowSpacing=4;this._columnSpacing=4;this._items=[];this._rowStarts=[];this._columnStarts=[];this._rowSizers=[new k];this._columnSizers=[new k];this._box=null;if(e.rowCount!==undefined){he.reallocSizers(this._rowSizers,e.rowCount)}if(e.columnCount!==undefined){he.reallocSizers(this._columnSizers,e.columnCount)}if(e.rowSpacing!==undefined){this._rowSpacing=he.clampValue(e.rowSpacing)}if(e.columnSpacing!==undefined){this._columnSpacing=he.clampValue(e.columnSpacing)}}dispose(){for(const e of this._items){let t=e.widget;e.dispose();t.dispose()}this._box=null;this._items.length=0;this._rowStarts.length=0;this._rowSizers.length=0;this._columnStarts.length=0;this._columnSizers.length=0;super.dispose()}get rowCount(){return this._rowSizers.length}set rowCount(e){if(e===this.rowCount){return}he.reallocSizers(this._rowSizers,e);if(this.parent){this.parent.fit()}}get columnCount(){return this._columnSizers.length}set columnCount(e){if(e===this.columnCount){return}he.reallocSizers(this._columnSizers,e);if(this.parent){this.parent.fit()}}get rowSpacing(){return this._rowSpacing}set rowSpacing(e){e=he.clampValue(e);if(this._rowSpacing===e){return}this._rowSpacing=e;if(this.parent){this.parent.fit()}}get columnSpacing(){return this._columnSpacing}set columnSpacing(e){e=he.clampValue(e);if(this._columnSpacing===e){return}this._columnSpacing=e;if(this.parent){this.parent.fit()}}rowStretch(e){let t=this._rowSizers[e];return t?t.stretch:-1}setRowStretch(e,t){let n=this._rowSizers[e];if(!n){return}t=he.clampValue(t);if(n.stretch===t){return}n.stretch=t;if(this.parent){this.parent.update()}}columnStretch(e){let t=this._columnSizers[e];return t?t.stretch:-1}setColumnStretch(e,t){let n=this._columnSizers[e];if(!n){return}t=he.clampValue(t);if(n.stretch===t){return}n.stretch=t;if(this.parent){this.parent.update()}}*[Symbol.iterator](){for(const e of this._items){yield e.widget}}addWidget(e){let t=i.ArrayExt.findFirstIndex(this._items,(t=>t.widget===e));if(t!==-1){return}this._items.push(new D(e));if(this.parent){this.attachWidget(e)}}removeWidget(e){let t=i.ArrayExt.findFirstIndex(this._items,(t=>t.widget===e));if(t===-1){return}let n=i.ArrayExt.removeAt(this._items,t);if(this.parent){this.detachWidget(e)}n.dispose()}init(){super.init();for(const e of this){this.attachWidget(e)}}attachWidget(e){if(this.parent.isAttached){d.MessageLoop.sendMessage(e,E.Msg.BeforeAttach)}this.parent.node.appendChild(e.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(e,E.Msg.AfterAttach)}this.parent.fit()}detachWidget(e){if(this.parent.isAttached){d.MessageLoop.sendMessage(e,E.Msg.BeforeDetach)}this.parent.node.removeChild(e.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(e,E.Msg.AfterDetach)}this.parent.fit()}onBeforeShow(e){super.onBeforeShow(e);this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e);this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){if(this.parent.isVisible){this._update(e.width,e.height)}}onUpdateRequest(e){if(this.parent.isVisible){this._update(-1,-1)}}onFitRequest(e){if(this.parent.isAttached){this._fit()}}_fit(){for(let a=0,l=this.rowCount;a!e.isHidden));for(let a=0,l=e.length;a({row:0,column:0,rowSpan:1,columnSpan:1}),changed:a});function t(e){let t=Math.max(0,Math.floor(e.row||0));let n=Math.max(0,Math.floor(e.column||0));let i=Math.max(1,Math.floor(e.rowSpan||0));let s=Math.max(1,Math.floor(e.columnSpan||0));return{row:t,column:n,rowSpan:i,columnSpan:s}}e.normalizeConfig=t;function n(e){return Math.max(0,Math.floor(e))}e.clampValue=n;function i(t,n){let i=e.cellConfigProperty.get(t.widget);let s=e.cellConfigProperty.get(n.widget);return i.rowSpan-s.rowSpan}e.rowSpanCmp=i;function s(t,n){let i=e.cellConfigProperty.get(t.widget);let s=e.cellConfigProperty.get(n.widget);return i.columnSpan-s.columnSpan}e.columnSpanCmp=s;function o(e,t){t=Math.max(1,Math.floor(t));while(e.lengtht){e.length=t}}e.reallocSizers=o;function r(e,t,n,i){if(n=i){return}let o=(i-s)/(n-t+1);for(let r=t;r<=n;++r){e[r].minSize+=o}}e.distributeMin=r;function a(e){if(e.parent&&e.parent.layout instanceof ce){e.parent.fit()}}})(he||(he={}));class ue extends E{constructor(e={}){super({node:pe.createNode()});this._activeIndex=-1;this._tabFocusIndex=0;this._menus=[];this._childMenu=null;this._overflowMenu=null;this._menuItemSizes=[];this._overflowIndex=-1;this.addClass("lm-MenuBar");this.setFlag(E.Flag.DisallowLayout);this.renderer=e.renderer||ue.defaultRenderer;this._forceItemsPosition=e.forceItemsPosition||{forceX:true,forceY:true};this._overflowMenuOptions=e.overflowMenuOptions||{isVisible:true}}dispose(){this._closeChildMenu();this._menus.length=0;super.dispose()}get childMenu(){return this._childMenu}get overflowIndex(){return this._overflowIndex}get overflowMenu(){return this._overflowMenu}get contentNode(){return this.node.getElementsByClassName("lm-MenuBar-content")[0]}get activeMenu(){return this._menus[this._activeIndex]||null}set activeMenu(e){this.activeIndex=e?this._menus.indexOf(e):-1}get activeIndex(){return this._activeIndex}set activeIndex(e){if(e<0||e>=this._menus.length){e=-1}if(this._activeIndex===e){return}this._activeIndex=e;if(e!==-1){this._tabFocusIndex=e}if(this._activeIndex>=0&&this.contentNode.childNodes[this._activeIndex]){this.contentNode.childNodes[this._activeIndex].focus()}this.update()}get menus(){return this._menus}openActiveMenu(){if(this._activeIndex===-1){return}this._openChildMenu();if(this._childMenu){this._childMenu.activeIndex=-1;this._childMenu.activateNextItem()}}addMenu(e,t=true){this.insertMenu(this._menus.length,e,t)}insertMenu(e,t,n=true){this._closeChildMenu();let s=this._menus.indexOf(t);let o=Math.max(0,Math.min(e,this._menus.length));if(s===-1){i.ArrayExt.insert(this._menus,o,t);t.addClass("lm-MenuBar-menu");t.aboutToClose.connect(this._onMenuAboutToClose,this);t.menuRequested.connect(this._onMenuMenuRequested,this);t.title.changed.connect(this._onTitleChanged,this);if(n){this.update()}return}if(o===this._menus.length){o--}if(s===o){return}i.ArrayExt.move(this._menus,s,o);if(n){this.update()}}removeMenu(e,t=true){this.removeMenuAt(this._menus.indexOf(e),t)}removeMenuAt(e,t=true){this._closeChildMenu();let n=i.ArrayExt.removeAt(this._menus,e);if(!n){return}n.aboutToClose.disconnect(this._onMenuAboutToClose,this);n.menuRequested.disconnect(this._onMenuMenuRequested,this);n.title.changed.disconnect(this._onTitleChanged,this);n.removeClass("lm-MenuBar-menu");if(t){this.update()}}clearMenus(){if(this._menus.length===0){return}this._closeChildMenu();for(let e of this._menus){e.aboutToClose.disconnect(this._onMenuAboutToClose,this);e.menuRequested.disconnect(this._onMenuMenuRequested,this);e.title.changed.disconnect(this._onTitleChanged,this);e.removeClass("lm-MenuBar-menu")}this._menus.length=0;this.update()}handleEvent(e){switch(e.type){case"keydown":this._evtKeyDown(e);break;case"mousedown":this._evtMouseDown(e);break;case"mousemove":this._evtMouseMove(e);break;case"mouseleave":this._evtMouseLeave(e);break;case"contextmenu":e.preventDefault();e.stopPropagation();break}}onBeforeAttach(e){this.node.addEventListener("keydown",this);this.node.addEventListener("mousedown",this);this.node.addEventListener("mousemove",this);this.node.addEventListener("mouseleave",this);this.node.addEventListener("contextmenu",this)}onAfterDetach(e){this.node.removeEventListener("keydown",this);this.node.removeEventListener("mousedown",this);this.node.removeEventListener("mousemove",this);this.node.removeEventListener("mouseleave",this);this.node.removeEventListener("contextmenu",this);this._closeChildMenu()}onActivateRequest(e){if(this.isAttached){this.activeIndex=0}}onResize(e){this.update();super.onResize(e)}onUpdateRequest(e){var t;let n=this._menus;let i=this.renderer;let s=this._activeIndex;let o=this._tabFocusIndex>=0&&this._tabFocusIndex-1?this._overflowIndex:n.length;let a=0;let l=false;r=this._overflowMenu!==null?r-1:r;let d=new Array(r);for(let c=0;c{this.activeIndex=c}});a+=this._menuItemSizes[c];if(n[c].title.label===this._overflowMenuOptions.title){l=true;r--}}if(this._overflowMenuOptions.isVisible){if(this._overflowIndex>-1&&!l){if(this._overflowMenu===null){const e=(t=this._overflowMenuOptions.title)!==null&&t!==void 0?t:"...";this._overflowMenu=new X({commands:new v.CommandRegistry});this._overflowMenu.title.label=e;this._overflowMenu.title.mnemonic=0;this.addMenu(this._overflowMenu,false)}for(let e=n.length-2;e>=r;e--){const t=this.menus[e];t.title.mnemonic=0;this._overflowMenu.insertItem(0,{type:"submenu",submenu:t});this.removeMenu(t,false)}d[r]=i.renderItem({title:this._overflowMenu.title,active:r===s&&n[r].items.length!==0,tabbable:r===o,onfocus:()=>{this.activeIndex=r}});r++}else if(this._overflowMenu!==null){let e=this._overflowMenu.items;let t=this.node.offsetWidth;let s=this._overflowMenu.items.length;for(let l=0;lthis._menuItemSizes[s]){let t=e[0].submenu;this._overflowMenu.removeItemAt(0);this.insertMenu(r,t,false);d[r]=i.renderItem({title:t.title,active:false,tabbable:r===o,onfocus:()=>{this.activeIndex=r}});r++}}if(this._overflowMenu.items.length===0){this.removeMenu(this._overflowMenu,false);d.pop();this._overflowMenu=null;this._overflowIndex=-1}}}b.VirtualDOM.render(d,this.contentNode);this._updateOverflowIndex()}_updateOverflowIndex(){if(!this._overflowMenuOptions.isVisible){return}const e=this.contentNode.childNodes;let t=this.node.offsetWidth;let n=0;let i=-1;let s=e.length;if(this._menuItemSizes.length==0){for(let o=0;ot&&i===-1){i=o}}}else{for(let e=0;et){i=e;break}}}this._overflowIndex=i}_evtKeyDown(e){let t=e.keyCode;if(t===9){this.activeIndex=-1;return}e.preventDefault();e.stopPropagation();if(t===13||t===32||t===38||t===40){this.openActiveMenu();return}if(t===27){this._closeChildMenu();this.activeIndex=-1;this.node.blur();return}if(t===37){let e=this._activeIndex;let t=this._menus.length;this.activeIndex=e===0?t-1:e-1;return}if(t===39){let e=this._activeIndex;let t=this._menus.length;this.activeIndex=e===t-1?0:e+1;return}let n=(0,x.getKeyboardLayout)().keyForKeydownEvent(e);if(!n){return}let i=this._activeIndex+1;let s=pe.findMnemonic(this._menus,n,i);if(s.index!==-1&&!s.multiple){this.activeIndex=s.index;this.openActiveMenu()}else if(s.index!==-1){this.activeIndex=s.index}else if(s.auto!==-1){this.activeIndex=s.auto}}_evtMouseDown(e){if(!a.ElementExt.hitTest(this.node,e.clientX,e.clientY)){return}e.preventDefault();e.stopPropagation();e.stopImmediatePropagation();let t=i.ArrayExt.findFirstIndex(this.contentNode.children,(t=>a.ElementExt.hitTest(t,e.clientX,e.clientY)));if(t===-1){this._closeChildMenu();return}if(e.button!==0){return}if(this._childMenu){this._closeChildMenu();this.activeIndex=t}else{const e=this._positionForMenu(t);X.saveWindowData();this.activeIndex=t;this._openChildMenu(e)}}_evtMouseMove(e){let t=i.ArrayExt.findFirstIndex(this.contentNode.children,(t=>a.ElementExt.hitTest(t,e.clientX,e.clientY)));if(t===this._activeIndex){return}if(t===-1&&this._childMenu){return}const n=t>=0&&this._childMenu?this._positionForMenu(t):null;X.saveWindowData();this.activeIndex=t;if(n){this._openChildMenu(n)}}_positionForMenu(e){let t=this.contentNode.children[e];let{left:n,bottom:i}=t.getBoundingClientRect();return{top:i,left:n}}_evtMouseLeave(e){if(!this._childMenu){this.activeIndex=-1}}_openChildMenu(e={}){let t=this.activeMenu;if(!t){this._closeChildMenu();return}let n=this._childMenu;if(n===t){return}this._childMenu=t;if(n){n.close()}else{document.addEventListener("mousedown",this,true)}d.MessageLoop.sendMessage(this,E.Msg.UpdateRequest);let{left:i,top:s}=e;if(typeof i==="undefined"||typeof s==="undefined"){({left:i,top:s}=this._positionForMenu(this._activeIndex))}if(!n){this.addClass("lm-mod-active")}if(t.items.length>0){t.open(i,s,this._forceItemsPosition)}}_closeChildMenu(){if(!this._childMenu){return}this.removeClass("lm-mod-active");document.removeEventListener("mousedown",this,true);let e=this._childMenu;this._childMenu=null;e.close();this.activeIndex=-1}_onMenuAboutToClose(e){if(e!==this._childMenu){return}this.removeClass("lm-mod-active");document.removeEventListener("mousedown",this,true);this._childMenu=null;this.activeIndex=-1}_onMenuMenuRequested(e,t){if(e!==this._childMenu){return}let n=this._activeIndex;let i=this._menus.length;switch(t){case"next":this.activeIndex=n===i-1?0:n+1;break;case"previous":this.activeIndex=n===0?i-1:n-1;break}this.openActiveMenu()}_onTitleChanged(){this.update()}}(function(e){class t{renderItem(e){let t=this.createItemClass(e);let n=this.createItemDataset(e);let i=this.createItemARIA(e);return b.h.li({className:t,dataset:n,tabindex:e.tabbable?"0":"-1",onfocus:e.onfocus,...i},this.renderIcon(e),this.renderLabel(e))}renderIcon(e){let t=this.createIconClass(e);return b.h.div({className:t},e.title.icon,e.title.iconLabel)}renderLabel(e){let t=this.formatLabel(e);return b.h.div({className:"lm-MenuBar-itemLabel"},t)}createItemClass(e){let t="lm-MenuBar-item";if(e.title.className){t+=` ${e.title.className}`}if(e.active){t+=" lm-mod-active"}return t}createItemDataset(e){return e.title.dataset}createItemARIA(e){return{role:"menuitem","aria-haspopup":"true"}}createIconClass(e){let t="lm-MenuBar-itemIcon";let n=e.title.iconClass;return n?`${t} ${n}`:t}formatLabel(e){let{label:t,mnemonic:n}=e.title;if(n<0||n>=t.length){return t}let i=t.slice(0,n);let s=t.slice(n+1);let o=t[n];let r=b.h.span({className:"lm-MenuBar-itemMnemonic"},o);return[i,r,s]}}e.Renderer=t;e.defaultRenderer=new t})(ue||(ue={}));var pe;(function(e){function t(){let e=document.createElement("div");let t=document.createElement("ul");t.className="lm-MenuBar-content";e.appendChild(t);t.setAttribute("role","menubar");return e}e.createNode=t;function n(e,t,n){let i=-1;let s=-1;let o=false;let r=t.toUpperCase();for(let a=0,l=e.length;a=0&&c{this._repeatTimer=-1;if(!this._pressData){return}let e=this._pressData.part;if(e==="thumb"){return}this._repeatTimer=window.setTimeout(this._onRepeat,20);let t=this._pressData.mouseX;let n=this._pressData.mouseY;if(e==="decrement"){if(!a.ElementExt.hitTest(this.decrementNode,t,n)){return}this._stepRequested.emit("decrement");return}if(e==="increment"){if(!a.ElementExt.hitTest(this.incrementNode,t,n)){return}this._stepRequested.emit("increment");return}if(e==="track"){if(!a.ElementExt.hitTest(this.trackNode,t,n)){return}let e=this.thumbNode;if(a.ElementExt.hitTest(e,t,n)){return}let i=e.getBoundingClientRect();let s;if(this._orientation==="horizontal"){s=t1){this.widgets.forEach((e=>{e.hiddenMode=this._hiddenMode}))}}dispose(){for(const e of this._items){e.dispose()}this._box=null;this._items.length=0;super.dispose()}attachWidget(e,t){if(this._hiddenMode===E.HiddenMode.Scale&&this._items.length>0){if(this._items.length===1){this.widgets[0].hiddenMode=E.HiddenMode.Scale}t.hiddenMode=E.HiddenMode.Scale}else{t.hiddenMode=E.HiddenMode.Display}i.ArrayExt.insert(this._items,e,new D(t));if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.BeforeAttach)}this.parent.node.appendChild(t.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.AfterAttach)}this.parent.fit()}moveWidget(e,t,n){i.ArrayExt.move(this._items,e,t);this.parent.update()}detachWidget(e,t){let n=i.ArrayExt.removeAt(this._items,e);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.BeforeDetach)}this.parent.node.removeChild(t.node);if(this.parent.isAttached){d.MessageLoop.sendMessage(t,E.Msg.AfterDetach)}n.widget.node.style.zIndex="";if(this._hiddenMode===E.HiddenMode.Scale){t.hiddenMode=E.HiddenMode.Display;if(this._items.length===1){this._items[0].widget.hiddenMode=E.HiddenMode.Display}}n.dispose();this.parent.fit()}onBeforeShow(e){super.onBeforeShow(e);this.parent.update()}onBeforeAttach(e){super.onBeforeAttach(e);this.parent.fit()}onChildShown(e){this.parent.fit()}onChildHidden(e){this.parent.fit()}onResize(e){if(this.parent.isVisible){this._update(e.width,e.height)}}onUpdateRequest(e){if(this.parent.isVisible){this._update(-1,-1)}}onFitRequest(e){if(this.parent.isAttached){this._fit()}}_fit(){let e=0;let t=0;for(let s=0,o=this._items.length;s{"use strict";var i=n(93379);var s=n.n(i);var o=n(7795);var r=n.n(o);var a=n(90569);var l=n.n(a);var d=n(3565);var c=n.n(d);var h=n(19216);var u=n.n(h);var p=n(44589);var m=n.n(p);var g=n(15955);var f={};f.styleTagTransform=m();f.setAttributes=c();f.insert=l().bind(null,"head");f.domAPI=r();f.insertStyleElement=u();var v=s()(g.Z,f);const _=g.Z&&g.Z.locals?g.Z.locals:undefined},38994:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n|\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n#jp-MainLogo {\n width: calc(var(--jp-private-sidebar-tab-width) + var(--jp-border-width));\n}\n\n#jp-top-bar {\n --jp-private-toolbar-height: var(--jp-private-menu-panel-height);\n\n flex: 1 1 auto;\n padding: 0 2px;\n box-shadow: none;\n border: none;\n align-items: center;\n}\n",""]);const l=a},14362:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=n(58934);var l=n(15507);var d=n(92783);var c=n(782);var h=n(63771);var u=n(37859);var p=n(67982);var m=n(81334);var g=n(71671);var f=n(61710);var v=r()(s());v.i(a.Z);v.i(l.Z);v.i(d.Z);v.i(c.Z);v.i(h.Z);v.i(u.Z);v.i(p.Z);v.i(m.Z);v.i(g.Z);v.i(f.Z);v.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/* Sibling imports */\n",""]);const _=v},67982:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n/*-----------------------------------------------------------------------------\n| Variables\n|----------------------------------------------------------------------------*/\n\n:root {\n --jp-flat-button-height: 24px;\n --jp-flat-button-padding: 8px 12px;\n}\n\n/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\nbutton {\n border-radius: var(--jp-border-radius);\n}\n\nbutton:focus-visible {\n outline: 1px solid var(--jp-accept-color-active, var(--jp-brand-color1));\n outline-offset: -1px;\n}\n\nbutton.jp-mod-styled.jp-mod-accept {\n background: var(--jp-accept-color-normal, var(--md-blue-500));\n border: 0;\n color: white;\n}\n\nbutton.jp-mod-styled.jp-mod-accept:hover {\n background: var(--jp-accept-color-hover, var(--md-blue-600));\n}\n\nbutton.jp-mod-styled.jp-mod-accept:active {\n background: var(--jp-accept-color-active, var(--md-blue-700));\n}\n\nbutton.jp-mod-styled.jp-mod-accept:focus-visible {\n outline: 1px solid var(--jp-accept-color-active, var(--jp-brand-color1));\n}\n\nbutton.jp-mod-styled.jp-mod-reject {\n background: var(--jp-reject-color-normal, var(--md-grey-500));\n border: 0;\n color: white;\n}\n\nbutton.jp-mod-styled.jp-mod-reject:hover {\n background: var(--jp-reject-color-hover, var(--md-grey-600));\n}\n\nbutton.jp-mod-styled.jp-mod-reject:active {\n background: var(--jp-reject-color-active, var(--md-grey-700));\n}\n\nbutton.jp-mod-styled.jp-mod-reject:focus-visible {\n outline: 1px solid var(--jp-reject-color-active, var(--md-grey-700));\n}\n\nbutton.jp-mod-styled.jp-mod-warn {\n background: var(--jp-warn-color-normal, var(--jp-error-color1));\n border: 0;\n color: white;\n}\n\nbutton.jp-mod-styled.jp-mod-warn:hover {\n background: var(--jp-warn-color-hover, var(--md-red-600));\n}\n\nbutton.jp-mod-styled.jp-mod-warn:active {\n background: var(--jp-warn-color-active, var(--md-red-700));\n}\n\nbutton.jp-mod-styled.jp-mod-warn:focus-visible {\n outline: 1px solid var(--jp-warn-color-active, var(--md-red-700));\n}\n\n.jp-Button-flat {\n text-decoration: none;\n padding: var(--jp-flat-button-padding);\n font-weight: 500;\n background-color: transparent;\n height: var(--jp-private-running-shutdown-button-height);\n line-height: var(--jp-private-running-shutdown-button-height);\n transition: background-color 0.1s ease;\n border-radius: 2px;\n}\n\n.jp-Button-flat:focus {\n border: none;\n box-shadow: none;\n}\n",""]);const l=a},58934:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n:root {\n --jp-private-menu-panel-height: 27px;\n}\n\n.lm-Widget.lm-mod-hidden {\n display: none !important;\n}\n\nbody {\n font-family: var(--jp-ui-font-family);\n background: var(--jp-layout-color3);\n margin: 0;\n padding: 0;\n overflow: hidden;\n}\n\n.jp-LabShell {\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n}\n\n.jp-LabShell.jp-mod-devMode {\n border-top: 4px solid red;\n}\n\n#jp-main-dock-panel {\n padding: 5px;\n}\n\n#jp-main-dock-panel[data-mode='single-document'] {\n padding: 0;\n}\n\n#jp-main-dock-panel[data-mode='single-document'] .jp-MainAreaWidget {\n border: none;\n}\n\n#jp-top-panel {\n border-bottom: var(--jp-border-width) solid var(--jp-border-color0);\n background: var(--jp-layout-color1);\n display: flex;\n min-height: var(--jp-private-menubar-height);\n overflow: visible;\n\n /* relax lumino strict CSS contaiment to allow painting the menu bar item\n over the menu in order to create an illusion of partial border */\n contain: style size !important;\n}\n\n#jp-menu-panel {\n min-height: var(--jp-private-menu-panel-height);\n background: var(--jp-layout-color1);\n}\n\n#jp-down-stack {\n border-bottom: var(--jp-border-width) solid var(--jp-border-color1);\n}\n\n.jp-LabShell[data-shell-mode='single-document'] #jp-top-panel {\n border-bottom: none;\n}\n\n.jp-LabShell[data-shell-mode='single-document'] #jp-menu-panel {\n padding-left: calc(\n var(--jp-private-sidebar-tab-width) + var(--jp-border-width)\n );\n border-bottom: var(--jp-border-width) solid var(--jp-border-color0);\n\n /* Adjust min-height so open menus show up in the right place */\n min-height: calc(\n var(--jp-private-menu-panel-height) + var(--jp-border-width)\n );\n}\n\n#jp-bottom-panel {\n background: var(--jp-layout-color1);\n display: flex;\n}\n\n#jp-single-document-mode {\n margin: 0 8px;\n display: flex;\n align-items: center;\n}\n",""]);const l=a},15507:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.lm-DataGrid {\n min-width: 64px;\n min-height: 64px;\n border: 1px solid #a0a0a0;\n}\n\n.lm-DataGrid-scrollCorner {\n background-color: #f0f0f0;\n}\n\n.lm-DataGrid-scrollCorner::after {\n content: '';\n position: absolute;\n top: 0;\n left: 0;\n width: 1px;\n height: 1px;\n background-color: #a0a0a0;\n}\n",""]);const l=a},92783:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| Variables\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| DockPanel\n|----------------------------------------------------------------------------*/\n\n.lm-DockPanel-widget,\n.lm-TabPanel-stackedPanel {\n background: var(--jp-layout-color0);\n border-left: var(--jp-border-width) solid var(--jp-border-color1);\n border-right: var(--jp-border-width) solid var(--jp-border-color1);\n border-bottom: var(--jp-border-width) solid var(--jp-border-color1);\n}\n\n.lm-DockPanel-overlay {\n background: rgba(33, 150, 243, 0.1);\n border: var(--jp-border-width) dashed var(--jp-brand-color1);\n transition-property: top, left, right, bottom;\n transition-duration: 150ms;\n transition-timing-function: ease;\n}\n\n.lm-DockPanel-overlay.lm-mod-root-top,\n.lm-DockPanel-overlay.lm-mod-root-left,\n.lm-DockPanel-overlay.lm-mod-root-right,\n.lm-DockPanel-overlay.lm-mod-root-bottom,\n.lm-DockPanel-overlay.lm-mod-root-center {\n border-width: 2px;\n}\n",""]);const l=a},782:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| Variables\n|----------------------------------------------------------------------------*/\n\n:root {\n --jp-private-menubar-height: 28px;\n --jp-private-menu-item-height: 24px;\n}\n\n/*-----------------------------------------------------------------------------\n| MenuBar\n|----------------------------------------------------------------------------*/\n\n.lm-MenuBar {\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n font-size: var(--jp-ui-font-size1);\n}\n\n.lm-MenuBar:hover {\n overflow-x: auto;\n}\n\n.lm-MenuBar-menu {\n top: calc(-2 * var(--jp-border-width));\n}\n\n.lm-MenuBar-item {\n padding: 0 8px;\n border-left: var(--jp-border-width) solid transparent;\n border-right: var(--jp-border-width) solid transparent;\n border-top: var(--jp-border-width) solid transparent;\n line-height: calc(var(--jp-private-menubar-height) - var(--jp-border-width));\n}\n\n.lm-MenuBar-content:focus-visible {\n outline-offset: -3px; /* this value is a compromise between Firefox, Chrome,\n and Safari over this outline's visibility and discretion */\n}\n\n.lm-MenuBar:focus-visible {\n outline: 1px solid var(--jp-accept-color-active, var(--jp-brand-color1));\n outline-offset: -1px;\n}\n\n.lm-MenuBar-menu:focus-visible,\n.lm-MenuBar-item:focus-visible,\n.lm-Menu-item:focus-visible {\n outline: unset;\n outline-offset: unset;\n -moz-outline-radius: unset;\n}\n\n.lm-MenuBar-item.lm-mod-active {\n background: var(--jp-layout-color2);\n}\n\n.lm-MenuBar.lm-mod-active .lm-MenuBar-item.lm-mod-active {\n z-index: 10001;\n background: var(--jp-layout-color0);\n color: var(--jp-ui-font-color0);\n border-left: var(--jp-border-width) solid var(--jp-border-color1);\n border-right: var(--jp-border-width) solid var(--jp-border-color1);\n box-shadow: var(--jp-elevation-z6);\n}\n\n/* stylelint-disable-next-line selector-max-class */\n.jp-LabShell[data-shell-mode='single-document']\n .lm-MenuBar.lm-mod-active\n .lm-MenuBar-item.lm-mod-active {\n border-top: var(--jp-border-width) solid var(--jp-border-color1);\n}\n\n.lm-MenuBar-item.lm-mod-disabled {\n color: var(--jp-ui-font-color3);\n}\n\n.lm-MenuBar-item.lm-type-separator {\n margin: 2px;\n padding: 0;\n border: none;\n border-left: var(--jp-border-width) solid var(--jp-border-color2);\n}\n\n.lm-MenuBar-itemMnemonic {\n text-decoration: underline;\n}\n\n/*-----------------------------------------------------------------------------\n| Menu\n|----------------------------------------------------------------------------*/\n\n.lm-Menu {\n z-index: 10000;\n padding: 4px 0;\n background: var(--jp-layout-color0);\n color: var(--jp-ui-font-color0);\n border: var(--jp-border-width) solid var(--jp-border-color1);\n font-size: var(--jp-ui-font-size1);\n box-shadow: var(--jp-elevation-z6);\n}\n\n.lm-Menu-item {\n min-height: var(--jp-private-menu-item-height);\n max-height: var(--jp-private-menu-item-height);\n padding: 0;\n line-height: var(--jp-private-menu-item-height);\n}\n\n.lm-Menu-item.lm-mod-active {\n background: var(--jp-layout-color2);\n}\n\n.lm-Menu-item.lm-mod-disabled {\n color: var(--jp-ui-font-color3);\n}\n\n.lm-Menu-itemIcon {\n width: 21px;\n padding: 0 2px 0 4px;\n margin-top: -2px;\n}\n\n.lm-Menu-itemLabel {\n padding: 0 32px 0 2px;\n}\n\n.lm-Menu-itemMnemonic {\n text-decoration: underline;\n}\n\n.lm-Menu-itemShortcut {\n padding: 0;\n}\n\n.lm-Menu-itemSubmenuIcon {\n width: 18px;\n padding: 0 4px 0 0;\n}\n\n.lm-Menu-item[data-type='separator'] > div {\n padding: 0;\n height: 9px;\n}\n\n.lm-Menu-item[data-type='separator'] > div::after {\n content: '';\n display: block;\n position: relative;\n top: 4px;\n border-top: var(--jp-border-width) solid var(--jp-layout-color2);\n}\n\n/* gray out icon/caret for disabled menu items */\n.lm-Menu-item.lm-mod-disabled > .lm-Menu-itemIcon,\n.lm-Menu-item[data-type='submenu'].lm-mod-disabled > .lm-Menu-itemSubmenuIcon {\n opacity: 0.4;\n}\n",""]);const l=a},63771:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*\n * Mozilla scrollbar styling\n */\n\n/* use standard opaque scrollbars for most nodes */\n[data-jp-theme-scrollbars='true'] {\n scrollbar-color: rgb(var(--jp-scrollbar-thumb-color))\n var(--jp-scrollbar-background-color);\n}\n\n/* for code nodes, use a transparent style of scrollbar. These selectors\n * will match lower in the tree, and so will override the above */\n[data-jp-theme-scrollbars='true'] .CodeMirror-hscrollbar,\n[data-jp-theme-scrollbars='true'] .CodeMirror-vscrollbar {\n scrollbar-color: rgba(var(--jp-scrollbar-thumb-color), 0.5) transparent;\n}\n\n/* tiny scrollbar */\n\n.jp-scrollbar-tiny {\n scrollbar-color: rgba(var(--jp-scrollbar-thumb-color), 0.5) transparent;\n scrollbar-width: thin;\n}\n\n/* tiny scrollbar */\n\n.jp-scrollbar-tiny::-webkit-scrollbar,\n.jp-scrollbar-tiny::-webkit-scrollbar-corner {\n background-color: transparent;\n height: 4px;\n width: 4px;\n}\n\n.jp-scrollbar-tiny::-webkit-scrollbar-thumb {\n background: rgba(var(--jp-scrollbar-thumb-color), 0.5);\n}\n\n.jp-scrollbar-tiny::-webkit-scrollbar-track:horizontal {\n border-left: 0 solid transparent;\n border-right: 0 solid transparent;\n}\n\n.jp-scrollbar-tiny::-webkit-scrollbar-track:vertical {\n border-top: 0 solid transparent;\n border-bottom: 0 solid transparent;\n}\n\n/*\n * Lumino\n */\n\n.lm-ScrollBar[data-orientation='horizontal'] {\n min-height: 16px;\n max-height: 16px;\n min-width: 45px;\n border-top: 1px solid #a0a0a0;\n}\n\n.lm-ScrollBar[data-orientation='vertical'] {\n min-width: 16px;\n max-width: 16px;\n min-height: 45px;\n border-left: 1px solid #a0a0a0;\n}\n\n.lm-ScrollBar-button {\n background-color: #f0f0f0;\n background-position: center center;\n min-height: 15px;\n max-height: 15px;\n min-width: 15px;\n max-width: 15px;\n}\n\n.lm-ScrollBar-button:hover {\n background-color: #dadada;\n}\n\n.lm-ScrollBar-button.lm-mod-active {\n background-color: #cdcdcd;\n}\n\n.lm-ScrollBar-track {\n background: #f0f0f0;\n}\n\n.lm-ScrollBar-thumb {\n background: #cdcdcd;\n}\n\n.lm-ScrollBar-thumb:hover {\n background: #bababa;\n}\n\n.lm-ScrollBar-thumb.lm-mod-active {\n background: #a0a0a0;\n}\n\n.lm-ScrollBar[data-orientation='horizontal'] .lm-ScrollBar-thumb {\n height: 100%;\n min-width: 15px;\n border-left: 1px solid #a0a0a0;\n border-right: 1px solid #a0a0a0;\n}\n\n.lm-ScrollBar[data-orientation='vertical'] .lm-ScrollBar-thumb {\n width: 100%;\n min-height: 15px;\n border-top: 1px solid #a0a0a0;\n border-bottom: 1px solid #a0a0a0;\n}\n\n.lm-ScrollBar[data-orientation='horizontal']\n .lm-ScrollBar-button[data-action='decrement'] {\n background-image: var(--jp-icon-caret-left);\n background-size: 17px;\n}\n\n.lm-ScrollBar[data-orientation='horizontal']\n .lm-ScrollBar-button[data-action='increment'] {\n background-image: var(--jp-icon-caret-right);\n background-size: 17px;\n}\n\n.lm-ScrollBar[data-orientation='vertical']\n .lm-ScrollBar-button[data-action='decrement'] {\n background-image: var(--jp-icon-caret-up);\n background-size: 17px;\n}\n\n.lm-ScrollBar[data-orientation='vertical']\n .lm-ScrollBar-button[data-action='increment'] {\n background-image: var(--jp-icon-caret-down);\n background-size: 17px;\n}\n",""]);const l=a},81334:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| Variables\n|----------------------------------------------------------------------------*/\n\n:root {\n --jp-private-sidebar-tab-width: 32px;\n}\n\n/*-----------------------------------------------------------------------------\n| SideBar\n|----------------------------------------------------------------------------*/\n\n.jp-SideBar {\n /* This is needed so that all font sizing of children done in ems is\n * relative to this base size */\n font-size: var(--jp-ui-font-size1);\n}\n\n.jp-SideBar.lm-TabBar,\n#jp-down-stack .lm-TabBar {\n color: var(--jp-ui-font-color2);\n background: var(--jp-layout-color2);\n font-size: var(--jp-ui-font-size1);\n overflow: visible;\n}\n\n.jp-SideBar.lm-TabBar {\n min-width: calc(var(--jp-private-sidebar-tab-width) + var(--jp-border-width));\n max-width: calc(var(--jp-private-sidebar-tab-width) + var(--jp-border-width));\n display: block;\n}\n\n.jp-SideBar .lm-TabBar-content {\n margin: 0;\n padding: 0;\n display: flex;\n align-items: stretch;\n list-style-type: none;\n height: var(--jp-private-sidebar-tab-width);\n}\n\n.jp-SideBar .lm-TabBar-tab {\n padding: 16px 0;\n border: none;\n overflow: visible;\n flex-direction: column;\n position: relative;\n}\n\n.jp-SideBar .lm-TabBar-tab.lm-mod-current::after {\n /* Internal border override pseudo-element */\n position: absolute;\n content: '';\n bottom: 0;\n right: 0;\n top: 0;\n left: 0;\n border: var(--jp-border-width) solid var(--jp-layout-color1);\n}\n\n.jp-SideBar .lm-TabBar-tab:not(.lm-mod-current),\n#jp-down-stack .lm-TabBar-tab:not(.lm-mod-current) {\n background: var(--jp-layout-color2);\n}\n\n.jp-SideBar .lm-TabBar-tabIcon.jp-SideBar-tabIcon {\n min-width: 20px;\n min-height: 20px;\n background-size: 20px;\n display: inline-block;\n vertical-align: middle;\n background-repeat: no-repeat;\n background-position: center;\n}\n\n.jp-SideBar .lm-TabBar-tabLabel {\n line-height: var(--jp-private-sidebar-tab-width);\n}\n\n.jp-SideBar .lm-TabBar-tab:hover:not(.lm-mod-current),\n#jp-down-stack .lm-TabBar-tab:hover:not(.lm-mod-current) {\n background: var(--jp-layout-color1);\n}\n\n.jp-SideBar.lm-TabBar::after {\n /* Internal border pseudo-element */\n position: absolute;\n content: '';\n bottom: 0;\n right: 0;\n top: 0;\n left: 0;\n pointer-events: none;\n}\n\n/* Borders */\n\n/* stylelint-disable selector-max-class */\n\n.jp-SideBar.lm-TabBar .lm-TabBar-tab + .lm-TabBar-tab {\n border-top: var(--jp-border-width) solid var(--jp-layout-color2);\n}\n\n.jp-SideBar.lm-TabBar .lm-TabBar-tab.lm-mod-current + .lm-TabBar-tab {\n border-top: var(--jp-border-width) solid var(--jp-border-color0);\n}\n\n.jp-SideBar.lm-TabBar .lm-TabBar-tab + .lm-TabBar-tab.lm-mod-current {\n border-top: var(--jp-border-width) solid var(--jp-border-color0);\n}\n\n.jp-SideBar.lm-TabBar .lm-TabBar-tab.lm-mod-current:last-child {\n border-bottom: var(--jp-border-width) solid var(--jp-border-color0);\n}\n\n.jp-SideBar.lm-TabBar .lm-TabBar-tabLabel {\n writing-mode: vertical-rl;\n}\n\n/* Left */\n\n/* Borders */\n\n.jp-SideBar.lm-TabBar.jp-mod-left .lm-TabBar-content {\n /* Internal border spacing */\n margin-right: var(--jp-border-width);\n}\n\n.jp-SideBar.lm-TabBar.jp-mod-left .lm-TabBar-tab.lm-mod-current::after {\n /* Internal border override */\n right: calc(-1 * var(--jp-border-width));\n}\n\n.jp-SideBar.lm-TabBar.jp-mod-left::after {\n /* Internal border */\n border-right: var(--jp-border-width) solid var(--jp-border-color0);\n}\n\n/* Transforms */\n\n.jp-SideBar.lm-TabBar.jp-mod-left .lm-TabBar-tabLabel {\n transform: rotate(180deg);\n}\n\n/* Right */\n\n/* Borders */\n\n.jp-SideBar.lm-TabBar.jp-mod-right .lm-TabBar-content {\n /* Internal border spacing */\n margin-left: var(--jp-border-width);\n}\n\n.jp-SideBar.lm-TabBar.jp-mod-right .lm-TabBar-tab.lm-mod-current::after {\n /* Internal border override */\n left: calc(-1 * var(--jp-border-width));\n}\n\n.jp-SideBar.lm-TabBar.jp-mod-right::after {\n /* Internal border */\n border-left: var(--jp-border-width) solid var(--jp-border-color0);\n}\n\n/* Down */\n\n/* Borders */\n\n#jp-down-stack > .lm-TabBar {\n border-top: var(--jp-border-width) solid var(--jp-border-color0);\n border-bottom: var(--jp-border-width) solid var(--jp-border-color0);\n}\n\n#jp-down-stack > .lm-TabBar .lm-TabBar-tab {\n border-left: none;\n border-right: none;\n}\n\n#jp-down-stack > .lm-TabBar .lm-TabBar-tab.lm-mod-current {\n border: var(--jp-border-width) solid var(--jp-border-color1);\n border-bottom: none;\n transform: translateY(var(--jp-border-width));\n}\n\n#jp-down-stack > .lm-TabBar .lm-TabBar-tab.lm-mod-current:first-child {\n border: none;\n border-right: var(--jp-border-width) solid var(--jp-border-color1);\n}\n\n/* stylelint-enable selector-max-class */\n\n/* Stack panels */\n\n#jp-left-stack > .lm-Widget,\n#jp-right-stack > .lm-Widget {\n min-width: var(--jp-sidebar-min-width);\n background-color: var(--jp-layout-color1);\n}\n\n#jp-right-stack {\n border-left: var(--jp-border-width) solid var(--jp-border-color1);\n}\n\n#jp-left-stack {\n border-right: var(--jp-border-width) solid var(--jp-border-color1);\n}\n\n#jp-down-stack > .lm-TabPanel-stackedPanel {\n border: none;\n}\n",""]);const l=a},61710:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n|\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-skiplink-wrapper {\n overflow: visible;\n}\n\n.jp-skiplink {\n position: absolute;\n top: -100em;\n}\n\n.jp-skiplink:focus-within {\n position: absolute;\n z-index: 10000;\n top: 0;\n left: 46%;\n margin: 0 auto;\n padding: 1em;\n width: 15%;\n box-shadow: var(--jp-elevation-z4);\n border-radius: 4px;\n background: var(--jp-layout-color0);\n text-align: center;\n}\n\n.jp-skiplink:focus-within a {\n text-decoration: underline;\n color: var(--jp-content-link-color);\n}\n",""]);const l=a},37859:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| Variables\n|----------------------------------------------------------------------------*/\n\n:root {\n /* These need to be root because tabs get attached to the body during dragging. */\n --jp-private-horizontal-tab-height: 24px;\n --jp-private-horizontal-tab-width: 216px;\n --jp-private-horizontal-tab-active-top-border: 2px;\n}\n\n/*-----------------------------------------------------------------------------\n| Tabs in the dock panel\n|----------------------------------------------------------------------------*/\n\n.lm-DockPanel-tabBar,\n.lm-TabPanel-tabBar {\n overflow: visible;\n color: var(--jp-ui-font-color1);\n font-size: var(--jp-ui-font-size1);\n}\n\n.lm-DockPanel-tabBar[data-orientation='horizontal'],\n.lm-TabPanel-tabBar[data-orientation='horizontal'] {\n min-height: calc(\n var(--jp-private-horizontal-tab-height) + 2 * var(--jp-border-width)\n );\n}\n\n.lm-DockPanel-tabBar[data-orientation='vertical'] {\n min-width: 80px;\n}\n\n.lm-DockPanel-tabBar > .lm-TabBar-content,\n.lm-TabPanel-tabBar > .lm-TabBar-content {\n align-items: flex-end;\n min-width: 0;\n min-height: 0;\n}\n\n.lm-DockPanel-tabBar .lm-TabBar-tab,\n.lm-TabPanel-tabBar .lm-TabBar-tab {\n flex: 0 1 var(--jp-private-horizontal-tab-width);\n align-items: center;\n min-height: calc(\n var(--jp-private-horizontal-tab-height) + 2 * var(--jp-border-width)\n );\n min-width: 0;\n margin-left: calc(-1 * var(--jp-border-width));\n line-height: var(--jp-private-horizontal-tab-height);\n padding: 0 8px;\n background: var(--jp-layout-color2);\n border: var(--jp-border-width) solid var(--jp-border-color1);\n border-bottom: none;\n position: relative;\n}\n\n.lm-DockPanel-tabBar .lm-TabBar-tab:hover:not(.lm-mod-current),\n.lm-TabPanel-tabBar .lm-TabBar-tab:hover:not(.lm-mod-current) {\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n}\n\n.lm-DockPanel-tabBar .lm-TabBar-tab:not(.lm-mod-current)::after,\n.lm-DockPanel-tabBar .lm-TabBar-addButton::after {\n position: absolute;\n content: '';\n bottom: 0;\n left: calc(-1 * var(--jp-border-width));\n width: calc(100% + 2 * var(--jp-border-width));\n border-bottom: var(--jp-border-width) solid var(--jp-border-color1);\n}\n\n.lm-DockPanel-tabBar .lm-TabBar-tab:first-child,\n.lm-TabPanel-tabBar .lm-TabBar-tab:first-child {\n margin-left: 0;\n}\n\n/* This is a current tab of a tab bar in the dock panel: each tab bar has 1. */\n.lm-DockPanel-tabBar .lm-TabBar-tab.lm-mod-current {\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n}\n\n.lm-TabPanel-tabBar .lm-TabBar-tab.lm-mod-current {\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n}\n\n/* This is the main application level current tab: only 1 exists. */\n.lm-DockPanel-tabBar .lm-TabBar-tab.jp-mod-current::before {\n position: absolute;\n top: calc(-1 * var(--jp-border-width) + 1px);\n left: calc(-1 * var(--jp-border-width));\n content: '';\n height: var(--jp-private-horizontal-tab-active-top-border);\n width: calc(100% + 2 * var(--jp-border-width));\n background: var(--jp-brand-color1);\n}\n\n/* This is the left tab bar current tab: only 1 exists. */\n.lm-TabBar-tab.lm-mod-current {\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n}\n\n.lm-DockPanel-tabBar .lm-TabBar.lm-mod-left .lm-TabBar-tab,\n.lm-DockPanel-tabBar .lm-TabBar.lm-mod-right .lm-TabBar-tab {\n flex: 0 1 40px;\n margin-top: -1px;\n line-height: 40px;\n}\n\n.lm-DockPanel-tabBar .lm-TabBar.lm-mod-left .lm-TabBar-tab {\n border-right: none;\n}\n\n.lm-DockPanel-tabBar .lm-TabBar.lm-mod-right .lm-TabBar-tab {\n border-left: none;\n}\n\n.lm-DockPanel-tabBar .lm-TabBar.lm-mod-left .lm-TabBar-tab:first-child,\n.lm-DockPanel-tabBar .lm-TabBar.lm-mod-right .lm-TabBar-tab:first-child {\n margin-top: 0;\n}\n\n/* stylelint-disable selector-max-class */\n\n.lm-DockPanel-tabBar .lm-TabBar.lm-mod-left .lm-TabBar-tab.lm-mod-current,\n.lm-DockPanel-tabBar .lm-TabBar.lm-mod-right .lm-TabBar-tab.lm-mod-current {\n min-width: 80px;\n max-width: 80px;\n}\n\n.lm-DockPanel-tabBar .lm-TabBar.lm-mod-right .lm-TabBar-tab.lm-mod-current {\n transform: translateX(-1px);\n}\n\n.lm-DockPanel-tabBar .lm-TabBar-tab .lm-TabBar-tabIcon,\n.lm-TabBar-tab.lm-mod-drag-image .lm-TabBar-tabIcon,\n.lm-TabPanel-tabBar .lm-TabBar-tab .lm-TabBar-tabIcon {\n width: 14px;\n background-position: left center;\n background-repeat: no-repeat;\n background-size: 14px;\n margin-right: 4px;\n}\n\n/* stylelint-enable selector-max-class */\n\n.lm-TabBar-tab.lm-mod-drag-image {\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n border: var(--jp-border-width) solid var(--jp-border-color1);\n border-top: var(--jp-border-width) solid var(--jp-brand-color1);\n box-shadow: var(--jp-elevation-z4);\n font-size: var(--jp-ui-font-size1);\n line-height: var(--jp-private-horizontal-tab-height);\n min-height: var(--jp-private-horizontal-tab-height);\n min-width: var(--jp-private-horizontal-tab-width);\n padding: 0 10px;\n transform: translateX(-40%) translateY(-58%);\n}\n",""]);const l=a},71671:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n:root {\n --jp-private-title-panel-height: 28px;\n}\n\n#jp-title-panel {\n min-height: var(--jp-private-title-panel-height);\n width: 100%;\n display: flex;\n background: var(--jp-layout-color1);\n}\n\n#jp-title-panel-title {\n flex: 1 1 auto;\n margin-left: 8px;\n}\n\n#jp-title-panel-title input {\n background: transparent;\n margin: 0;\n height: 28px;\n width: 100%;\n box-sizing: border-box;\n border: none;\n font-size: 18px;\n font-weight: normal;\n font-family: var(--jp-ui-font-family);\n line-height: var(--jp-private-title-panel-height);\n color: var(--jp-ui-font-color0);\n outline: none;\n appearance: none;\n -webkit-appearance: none;\n -moz-appearance: none;\n}\n",""]);const l=a},70785:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=n(10139);var l=n(14715);var d=n(71279);var c=r()(s());c.i(a.Z);c.i(l.Z);c.i(d.Z);c.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) 2014-2017, Jupyter Development Team.\n|\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n",""]);const h=c},71279:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n:root {\n --jp-private-shortcuts-key-padding-horizontal: 0.47em;\n --jp-private-shortcuts-key-padding-vertical: 0.28em;\n --jp-private-shortcuts-label-padding-horizontal: 0.47em;\n}\n\n.jp-ContextualShortcut-TableRow {\n font-size: var(--jp-ui-font-size1);\n font-family: var(--jp-ui-font-family);\n}\n\n.jp-ContextualShortcut-TableItem {\n margin-left: auto;\n margin-right: auto;\n color: var(--jp-inverse-layout-color0);\n font-size: var(--jp-ui-font-size1);\n line-height: 2em;\n padding-right: var(--jp-private-shortcuts-label-padding-horizontal);\n}\n\n.jp-ContextualShortcut-TableLastRow {\n height: 2em;\n}\n\n.jp-ContextualShortcut-Key {\n font-family: var(--jp-code-font-family);\n border-width: var(--jp-border-width);\n border-radius: var(--jp-border-radius);\n border-style: solid;\n border-color: var(--jp-border-color1);\n color: var(--jp-ui-font-color1);\n background: var(--jp-layout-color1);\n padding-left: var(--jp-private-shortcuts-key-padding-horizontal);\n padding-right: var(--jp-private-shortcuts-key-padding-horizontal);\n padding-top: var(--jp-private-shortcuts-key-padding-vertical);\n padding-bottom: var(--jp-private-shortcuts-key-padding-vertical);\n}\n",""]);const l=a},10139:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=n(20688);var l=r()(s());l.i(a.Z);l.push([e.id,"/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n:root {\n --toastify-color-light: var(--jp-layout-color1);\n --toastify-color-dark: var(--jp-layout-color1);\n --toastify-color-info: var(--jp-info-color1);\n --toastify-color-success: var(--jp-success-color1);\n --toastify-color-warning: var(--jp-warn-color1);\n --toastify-color-error: var(--jp-error-color1);\n --toastify-color-transparent: rgba(255, 255, 255, 0.7);\n --toastify-icon-color-info: var(--toastify-color-info);\n --toastify-icon-color-success: var(--toastify-color-success);\n --toastify-icon-color-warning: var(--toastify-color-warning);\n --toastify-icon-color-error: var(--toastify-color-error);\n --toastify-toast-width: 25em;\n --toastify-toast-background: var(--jp-layout-color1);\n --toastify-toast-min-height: 64px;\n --toastify-toast-max-height: 800px;\n --toastify-font-family: var(--jp-ui-font-family);\n --toastify-z-index: 9999;\n --toastify-text-color-light: var(--jp-ui-font-color1);\n --toastify-text-color-dark: var(--jp-ui-font-color1);\n --toastify-text-color-info: var(--jp-ui-font-color1);\n --toastify-text-color-success: var(--jp-ui-font-color1);\n --toastify-text-color-warning: var(--jp-ui-font-color1);\n --toastify-text-color-error: var(--jp-ui-font-color1);\n --toastify-spinner-color: #616161;\n --toastify-spinner-color-empty-area: #e0e0e0;\n --toastify-color-progress-light: linear-gradient(\n to right,\n #4cd964,\n #5ac8fa,\n #007aff,\n #34aadc,\n #5856d6,\n #ff2d55\n );\n --toastify-color-progress-dark: #bb86fc;\n --toastify-color-progress-info: var(--toastify-color-info);\n --toastify-color-progress-success: var(--toastify-color-success);\n --toastify-color-progress-warning: var(--toastify-color-warning);\n --toastify-color-progress-error: var(--toastify-color-error);\n}\n\n.jp-Notification-List {\n list-style: none;\n margin: 0;\n padding: 4px;\n width: var(--toastify-toast-width);\n overflow-y: auto;\n max-height: 55vh;\n box-sizing: border-box;\n background-color: var(--jp-layout-color2);\n}\n\n.jp-Notification-Header {\n padding: 0 4px;\n margin: 0;\n align-items: center;\n user-select: none;\n}\n\n.jp-Notification-List-Item {\n padding: 2px 0;\n}\n\n.jp-Notification-List .Toastify__toast {\n margin: 0;\n}\n\n.jp-Notification-Status.jp-mod-selected {\n background-color: var(--jp-brand-color1);\n}\n\n.jp-Notification-Status.jp-mod-selected .jp-Notification-Status-Text {\n color: var(--jp-ui-inverse-font-color1);\n}\n\n.Toastify__toast {\n min-height: unset;\n padding: 4px;\n font-size: var(--jp-ui-font-size1);\n border-width: var(--jp-border-width);\n border-radius: var(--jp-border-radius);\n border-color: var(--jp-border-color1);\n box-shadow: var(--jp-elevation-z4);\n cursor: default;\n}\n\n.Toastify__toast-body {\n display: flex;\n flex-grow: 1;\n}\n\n.jp-Notification-Toast-Close {\n padding: 0;\n position: absolute;\n right: 0.1px;\n cursor: pointer;\n}\n\n.jp-Notification-Toast-Close-Margin {\n margin-right: 4px;\n}\n\n.jp-toastContainer .jp-Notification-Toast-Close:hover {\n /* The close button has its own hover style */\n background: none;\n}\n\n.Toastify__toast.jp-Notification-Toast-error {\n border-top: 5px solid var(--jp-error-color1);\n}\n\n.Toastify__toast.jp-Notification-Toast-warning {\n border-top: 5px solid var(--jp-warn-color1);\n}\n\n.Toastify__toast.jp-Notification-Toast-info {\n border-top: 5px solid var(--jp-info-color1);\n}\n\n.Toastify__toast.jp-Notification-Toast-success {\n border-top: 5px solid var(--jp-success-color1);\n}\n\n.Toastify__toast.jp-Notification-Toast-in-progress {\n border-top: 5px solid var(--jp-layout-color1);\n}\n\n.Toastify__toast-body a {\n color: var(--jp-content-link-color);\n}\n\n.Toastify__toast-body a:hover {\n color: var(--jp-content-link-color);\n text-decoration: underline;\n}\n\n.jp-toast-message {\n padding-inline-end: 16px;\n}\n\n/* p elements are added by the markdown rendering.\n * Removing its default margin allows to reduce toast size.\n */\n.Toastify__toast-body p:first-child,\n.Toastify__toast-body h1:first-child,\n.Toastify__toast-body h2:first-child,\n.Toastify__toast-body h3:first-child,\n.Toastify__toast-body h4:first-child,\n.Toastify__toast-body h5:first-child,\n.Toastify__toast-body h6:first-child,\n.Toastify__toast-body ol:first-child,\n.Toastify__toast-body ul:first-child {\n margin-top: 0;\n}\n\n.Toastify__toast-body p:last-child,\n.Toastify__toast-body h1:last-child,\n.Toastify__toast-body h2:last-child,\n.Toastify__toast-body h3:last-child,\n.Toastify__toast-body h4:last-child,\n.Toastify__toast-body h5:last-child,\n.Toastify__toast-body h6:last-child,\n.Toastify__toast-body ol:last-child,\n.Toastify__toast-body ul:last-child {\n margin-bottom: 0;\n}\n\n.jp-toast-buttonBar {\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n flex: 0 0 auto;\n padding-block-start: 8px;\n}\n\n.jp-toast-spacer {\n flex-grow: 1;\n flex-shrink: 1;\n}\n\n.jp-toast-button {\n margin-top: 1px;\n margin-bottom: 1px;\n margin-right: 0;\n margin-left: 3px;\n color: var(--jp-ui-font-color1);\n background-color: var(--jp-layout-color2);\n border: none;\n}\n\n.jp-toast-button:focus {\n outline: 1px solid var(--jp-reject-color-normal, var(--jp-layout-color2));\n outline-offset: 1px;\n -moz-outline-radius: 0;\n}\n\n.jp-toast-button:focus-visible {\n border: none;\n}\n\n.jp-toast-button:hover {\n background-color: var(--jp-layout-color3);\n}\n\n.jp-toast-button.jp-mod-accept {\n background: var(--jp-accept-color-normal, var(--jp-brand-color1));\n color: var(--jp-ui-inverse-font-color1);\n}\n\n.jp-toast-button.jp-mod-accept:focus {\n outline-color: var(--jp-accept-color-normal, var(--jp-brand-color1));\n}\n\n.jp-toast-button.jp-mod-accept:hover {\n background: var(--jp-accept-color-hover, var(--jp-brand-color0));\n}\n\n.jp-toast-button.jp-mod-warn {\n background: var(--jp-warn-color-normal, var(--jp-warn-color1));\n color: var(--jp-ui-inverse-font-color1);\n}\n\n.jp-toast-button.jp-mod-warn:focus {\n outline-color: var(--jp-warn-color-normal, var(--jp-warn-color1));\n}\n\n.jp-toast-button.jp-mod-warn:hover {\n background: var(--jp-warn-color-hover, var(--jp-warn-color0));\n}\n\n.jp-toast-button.jp-mod-link {\n color: var(--jp-content-link-color);\n text-decoration: underline;\n text-decoration-color: var(--jp-content-link-color);\n}\n",""]);const d=l},14715:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) 2014-2016, Jupyter Development Team.\n|\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n#jupyterlab-splash {\n z-index: 10;\n position: absolute;\n overflow: hidden;\n width: 100%;\n height: 100%;\n background-position: center 40%;\n background-repeat: no-repeat;\n background-size: cover;\n}\n\n#jupyterlab-splash.light {\n background-color: white;\n}\n\n#jupyterlab-splash.dark {\n background-color: var(--md-grey-900);\n}\n\n.splash-fade {\n animation: 0.5s fade-out forwards;\n}\n\n#galaxy {\n position: relative;\n width: 100%;\n height: 100%;\n}\n\n.planet {\n background-repeat: no-repeat;\n background-size: cover;\n animation-iteration-count: infinite;\n animation-name: orbit;\n}\n\n#moon1.orbit {\n opacity: 1;\n animation: orbit 2s ease;\n width: 200px;\n height: 140px;\n margin-top: -53px;\n margin-left: -54px;\n}\n\n#moon2.orbit {\n opacity: 1;\n animation: orbit 2s ease;\n width: 132px;\n height: 180px;\n margin-top: -66px;\n margin-left: -85px;\n}\n\n#moon3.orbit {\n opacity: 1;\n display: flex;\n align-items: flex-end;\n animation: orbit 2s ease;\n width: 220px;\n height: 166px;\n margin-top: -96px;\n margin-left: -50px;\n}\n\n#moon1 .planet {\n height: 12px;\n width: 12px;\n border-radius: 50%;\n}\n\n#moon2 .planet {\n height: 16px;\n width: 16px;\n border-radius: 50%;\n float: right;\n}\n\n#moon3 .planet {\n height: 20px;\n width: 20px;\n border-radius: 50%;\n}\n\n#jupyterlab-splash.light #moon1 .planet {\n background-color: #6f7070;\n}\n\n#jupyterlab-splash.light #moon2 .planet {\n background-color: #767677;\n}\n\n#jupyterlab-splash.light #moon3 .planet {\n background-color: #989798;\n}\n\n#jupyterlab-splash.dark #moon1 .planet,\n#jupyterlab-splash.dark #moon2 .planet,\n#jupyterlab-splash.dark #moon3 .planet {\n background-color: white;\n}\n\n.orbit {\n animation-iteration-count: 1;\n position: absolute;\n top: 50%;\n left: 50%;\n border-radius: 50%;\n}\n\n@keyframes orbit {\n 0% {\n transform: rotateZ(0deg);\n }\n\n 100% {\n transform: rotateZ(-720deg);\n }\n}\n\n@keyframes orbit2 {\n 0% {\n transform: rotateZ(0deg);\n }\n\n 100% {\n transform: rotateZ(720deg);\n }\n}\n\n@keyframes fade-in {\n 0% {\n opacity: 0;\n }\n\n 100% {\n opacity: 1;\n }\n}\n\n@keyframes fade-out {\n 0% {\n opacity: 1;\n }\n\n 100% {\n opacity: 0;\n }\n}\n",""]);const l=a},30399:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=n(30973);var l=n(68573);var d=n(75234);var c=n(6148);var h=n(70329);var u=r()(s());u.i(a.Z);u.i(l.Z);u.i(d.Z);u.i(c.Z);u.i(h.Z);u.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) 2014-2017, Jupyter Development Team.\n|\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n",""]);const p=u},30973:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| Variables\n|----------------------------------------------------------------------------*/\n\n:root {\n --jp-private-commandpalette-search-height: 28px;\n}\n\n/*-----------------------------------------------------------------------------\n| Overall styles\n|----------------------------------------------------------------------------*/\n\n.lm-CommandPalette {\n padding-bottom: 0;\n color: var(--jp-ui-font-color1);\n background: var(--jp-layout-color1);\n\n /* This is needed so that all font sizing of children done in ems is\n * relative to this base size */\n font-size: var(--jp-ui-font-size1);\n}\n\n/*-----------------------------------------------------------------------------\n| Modal variant\n|----------------------------------------------------------------------------*/\n\n.jp-ModalCommandPalette {\n position: absolute;\n z-index: 10000;\n top: 38px;\n left: 30%;\n margin: 0;\n padding: 4px;\n width: 40%;\n box-shadow: var(--jp-elevation-z4);\n border-radius: 4px;\n background: var(--jp-layout-color0);\n}\n\n.jp-ModalCommandPalette .lm-CommandPalette {\n max-height: 40vh;\n}\n\n.jp-ModalCommandPalette .lm-CommandPalette .lm-close-icon::after {\n display: none;\n}\n\n.jp-ModalCommandPalette .lm-CommandPalette .lm-CommandPalette-header {\n display: none;\n}\n\n.jp-ModalCommandPalette .lm-CommandPalette .lm-CommandPalette-item {\n margin-left: 4px;\n margin-right: 4px;\n}\n\n.jp-ModalCommandPalette\n .lm-CommandPalette\n .lm-CommandPalette-item.lm-mod-disabled {\n display: none;\n}\n\n/*-----------------------------------------------------------------------------\n| Search\n|----------------------------------------------------------------------------*/\n\n.lm-CommandPalette-search {\n padding: 4px;\n background-color: var(--jp-layout-color1);\n z-index: 2;\n}\n\n.lm-CommandPalette-wrapper {\n /* stylelint-disable-next-line csstree/validator */\n overflow: overlay;\n padding: 0 9px;\n background-color: var(--jp-input-active-background);\n height: 30px;\n box-shadow: inset 0 0 0 var(--jp-border-width) var(--jp-input-border-color);\n}\n\n.lm-CommandPalette.lm-mod-focused .lm-CommandPalette-wrapper {\n box-shadow:\n inset 0 0 0 1px var(--jp-input-active-box-shadow-color),\n inset 0 0 0 3px var(--jp-input-active-box-shadow-color);\n}\n\n.jp-SearchIconGroup {\n color: white;\n background-color: var(--jp-brand-color1);\n position: absolute;\n top: 4px;\n right: 4px;\n padding: 5px 5px 1px;\n}\n\n.jp-SearchIconGroup svg {\n height: 20px;\n width: 20px;\n}\n\n.jp-SearchIconGroup .jp-icon3[fill] {\n fill: var(--jp-layout-color0);\n}\n\n.lm-CommandPalette-input {\n background: transparent;\n width: calc(100% - 18px);\n float: left;\n border: none;\n outline: none;\n font-size: var(--jp-ui-font-size1);\n color: var(--jp-ui-font-color0);\n line-height: var(--jp-private-commandpalette-search-height);\n}\n\n.lm-CommandPalette-input::-webkit-input-placeholder,\n.lm-CommandPalette-input::-moz-placeholder,\n.lm-CommandPalette-input:-ms-input-placeholder {\n color: var(--jp-ui-font-color2);\n font-size: var(--jp-ui-font-size1);\n}\n\n/*-----------------------------------------------------------------------------\n| Results\n|----------------------------------------------------------------------------*/\n\n.lm-CommandPalette-header:first-child {\n margin-top: 0;\n}\n\n.lm-CommandPalette-header {\n border-bottom: solid var(--jp-border-width) var(--jp-border-color2);\n color: var(--jp-ui-font-color1);\n cursor: pointer;\n display: flex;\n font-size: var(--jp-ui-font-size0);\n font-weight: 600;\n letter-spacing: 1px;\n margin-top: 8px;\n padding: 8px 0 8px 12px;\n text-transform: uppercase;\n}\n\n.lm-CommandPalette-header.lm-mod-active {\n background: var(--jp-layout-color2);\n}\n\n.lm-CommandPalette-header > mark {\n background-color: transparent;\n font-weight: bold;\n color: var(--jp-ui-font-color1);\n}\n\n.lm-CommandPalette-item {\n padding: 4px 12px 4px 4px;\n color: var(--jp-ui-font-color1);\n font-size: var(--jp-ui-font-size1);\n font-weight: 400;\n display: flex;\n}\n\n.lm-CommandPalette-item.lm-mod-disabled {\n color: var(--jp-ui-font-color2);\n}\n\n.lm-CommandPalette-item.lm-mod-active {\n color: var(--jp-ui-inverse-font-color1);\n background: var(--jp-brand-color1);\n}\n\n.lm-CommandPalette-item.lm-mod-active .lm-CommandPalette-itemLabel > mark {\n color: var(--jp-ui-inverse-font-color0);\n}\n\n.lm-CommandPalette-item.lm-mod-active .jp-icon-selectable[fill] {\n fill: var(--jp-layout-color0);\n}\n\n.lm-CommandPalette-item.lm-mod-active:hover:not(.lm-mod-disabled) {\n color: var(--jp-ui-inverse-font-color1);\n background: var(--jp-brand-color1);\n}\n\n.lm-CommandPalette-item:hover:not(.lm-mod-active):not(.lm-mod-disabled) {\n background: var(--jp-layout-color2);\n}\n\n.lm-CommandPalette-itemContent {\n overflow: hidden;\n}\n\n.lm-CommandPalette-itemLabel > mark {\n color: var(--jp-ui-font-color0);\n background-color: transparent;\n font-weight: bold;\n}\n\n.lm-CommandPalette-item.lm-mod-disabled mark {\n color: var(--jp-ui-font-color2);\n}\n\n.lm-CommandPalette-item .lm-CommandPalette-itemIcon {\n margin: 0 4px 0 0;\n position: relative;\n width: 16px;\n top: 2px;\n flex: 0 0 auto;\n}\n\n.lm-CommandPalette-item.lm-mod-disabled .lm-CommandPalette-itemIcon {\n opacity: 0.6;\n}\n\n.lm-CommandPalette-item .lm-CommandPalette-itemShortcut {\n flex: 0 0 auto;\n}\n\n.lm-CommandPalette-itemCaption {\n display: none;\n}\n\n.lm-CommandPalette-content {\n background-color: var(--jp-layout-color1);\n}\n\n.lm-CommandPalette-content:empty::after {\n content: 'No results';\n margin: auto;\n margin-top: 20px;\n width: 100px;\n display: block;\n font-size: var(--jp-ui-font-size2);\n font-family: var(--jp-ui-font-family);\n font-weight: lighter;\n}\n\n.lm-CommandPalette-emptyMessage {\n text-align: center;\n margin-top: 24px;\n line-height: 1.32;\n padding: 0 8px;\n color: var(--jp-content-font-color3);\n}\n",""]);const l=a},68573:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) 2014-2017, Jupyter Development Team.\n|\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-Dialog {\n position: absolute;\n z-index: 10000;\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n top: 0;\n left: 0;\n margin: 0;\n padding: 0;\n width: 100%;\n height: 100%;\n background: var(--jp-dialog-background);\n}\n\n.jp-Dialog-content {\n display: flex;\n flex-direction: column;\n margin-left: auto;\n margin-right: auto;\n background: var(--jp-layout-color1);\n padding: 24px 24px 12px;\n min-width: 300px;\n min-height: 150px;\n max-width: 1000px;\n max-height: 500px;\n box-sizing: border-box;\n box-shadow: var(--jp-elevation-z20);\n word-wrap: break-word;\n border-radius: var(--jp-border-radius);\n\n /* This is needed so that all font sizing of children done in ems is\n * relative to this base size */\n font-size: var(--jp-ui-font-size1);\n color: var(--jp-ui-font-color1);\n resize: both;\n}\n\n.jp-Dialog-content.jp-Dialog-content-small {\n max-width: 500px;\n}\n\n.jp-Dialog-button {\n overflow: visible;\n}\n\nbutton.jp-Dialog-button:focus {\n outline: 1px solid var(--jp-brand-color1);\n outline-offset: 4px;\n -moz-outline-radius: 0;\n}\n\nbutton.jp-Dialog-button:focus::-moz-focus-inner {\n border: 0;\n}\n\nbutton.jp-Dialog-button.jp-mod-styled.jp-mod-accept:focus,\nbutton.jp-Dialog-button.jp-mod-styled.jp-mod-warn:focus,\nbutton.jp-Dialog-button.jp-mod-styled.jp-mod-reject:focus {\n outline-offset: 4px;\n -moz-outline-radius: 0;\n}\n\nbutton.jp-Dialog-button.jp-mod-styled.jp-mod-accept:focus {\n outline: 1px solid var(--jp-accept-color-normal, var(--jp-brand-color1));\n}\n\nbutton.jp-Dialog-button.jp-mod-styled.jp-mod-warn:focus {\n outline: 1px solid var(--jp-warn-color-normal, var(--jp-error-color1));\n}\n\nbutton.jp-Dialog-button.jp-mod-styled.jp-mod-reject:focus {\n outline: 1px solid var(--jp-reject-color-normal, var(--md-grey-600));\n}\n\nbutton.jp-Dialog-close-button {\n padding: 0;\n height: 100%;\n min-width: unset;\n min-height: unset;\n}\n\n.jp-Dialog-header {\n display: flex;\n justify-content: space-between;\n flex: 0 0 auto;\n padding-bottom: 12px;\n font-size: var(--jp-ui-font-size3);\n font-weight: 400;\n color: var(--jp-ui-font-color1);\n}\n\n.jp-Dialog-body {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n font-size: var(--jp-ui-font-size1);\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n overflow: auto;\n}\n\n.jp-Dialog-footer {\n display: flex;\n flex-direction: row;\n justify-content: flex-end;\n align-items: center;\n flex: 0 0 auto;\n margin-left: -12px;\n margin-right: -12px;\n padding: 12px;\n}\n\n.jp-Dialog-checkbox {\n padding-right: 5px;\n}\n\n.jp-Dialog-checkbox > input:focus-visible {\n outline: 1px solid var(--jp-input-active-border-color);\n outline-offset: 1px;\n}\n\n.jp-Dialog-spacer {\n flex: 1 1 auto;\n}\n\n.jp-Dialog-title {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.jp-Dialog-body > .jp-select-wrapper {\n width: 100%;\n}\n\n.jp-Dialog-body > button {\n padding: 0 16px;\n}\n\n.jp-Dialog-body > label {\n line-height: 1.4;\n color: var(--jp-ui-font-color0);\n}\n\n.jp-Dialog-button.jp-mod-styled:not(:last-child) {\n margin-right: 12px;\n}\n",""]);const l=a},75234:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n.jp-Input-Boolean-Dialog {\n flex-direction: row-reverse;\n align-items: end;\n width: 100%;\n}\n\n.jp-Input-Boolean-Dialog > label {\n flex: 1 1 auto;\n}\n",""]);const l=a},6148:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) 2014-2016, Jupyter Development Team.\n|\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-MainAreaWidget > :focus {\n outline: none;\n}\n\n.jp-MainAreaWidget .jp-MainAreaWidget-error {\n padding: 6px;\n}\n\n.jp-MainAreaWidget .jp-MainAreaWidget-error > pre {\n width: auto;\n padding: 10px;\n background: var(--jp-error-color3);\n border: var(--jp-border-width) solid var(--jp-error-color1);\n border-radius: var(--jp-border-radius);\n color: var(--jp-ui-font-color1);\n font-size: var(--jp-ui-font-size1);\n white-space: pre-wrap;\n word-wrap: break-word;\n}\n",""]);const l=a},70329:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n/**\n * google-material-color v1.2.6\n * https://github.com/danlevan/google-material-color\n */\n:root {\n --md-red-50: #ffebee;\n --md-red-100: #ffcdd2;\n --md-red-200: #ef9a9a;\n --md-red-300: #e57373;\n --md-red-400: #ef5350;\n --md-red-500: #f44336;\n --md-red-600: #e53935;\n --md-red-700: #d32f2f;\n --md-red-800: #c62828;\n --md-red-900: #b71c1c;\n --md-red-A100: #ff8a80;\n --md-red-A200: #ff5252;\n --md-red-A400: #ff1744;\n --md-red-A700: #d50000;\n --md-pink-50: #fce4ec;\n --md-pink-100: #f8bbd0;\n --md-pink-200: #f48fb1;\n --md-pink-300: #f06292;\n --md-pink-400: #ec407a;\n --md-pink-500: #e91e63;\n --md-pink-600: #d81b60;\n --md-pink-700: #c2185b;\n --md-pink-800: #ad1457;\n --md-pink-900: #880e4f;\n --md-pink-A100: #ff80ab;\n --md-pink-A200: #ff4081;\n --md-pink-A400: #f50057;\n --md-pink-A700: #c51162;\n --md-purple-50: #f3e5f5;\n --md-purple-100: #e1bee7;\n --md-purple-200: #ce93d8;\n --md-purple-300: #ba68c8;\n --md-purple-400: #ab47bc;\n --md-purple-500: #9c27b0;\n --md-purple-600: #8e24aa;\n --md-purple-700: #7b1fa2;\n --md-purple-800: #6a1b9a;\n --md-purple-900: #4a148c;\n --md-purple-A100: #ea80fc;\n --md-purple-A200: #e040fb;\n --md-purple-A400: #d500f9;\n --md-purple-A700: #a0f;\n --md-deep-purple-50: #ede7f6;\n --md-deep-purple-100: #d1c4e9;\n --md-deep-purple-200: #b39ddb;\n --md-deep-purple-300: #9575cd;\n --md-deep-purple-400: #7e57c2;\n --md-deep-purple-500: #673ab7;\n --md-deep-purple-600: #5e35b1;\n --md-deep-purple-700: #512da8;\n --md-deep-purple-800: #4527a0;\n --md-deep-purple-900: #311b92;\n --md-deep-purple-A100: #b388ff;\n --md-deep-purple-A200: #7c4dff;\n --md-deep-purple-A400: #651fff;\n --md-deep-purple-A700: #6200ea;\n --md-indigo-50: #e8eaf6;\n --md-indigo-100: #c5cae9;\n --md-indigo-200: #9fa8da;\n --md-indigo-300: #7986cb;\n --md-indigo-400: #5c6bc0;\n --md-indigo-500: #3f51b5;\n --md-indigo-600: #3949ab;\n --md-indigo-700: #303f9f;\n --md-indigo-800: #283593;\n --md-indigo-900: #1a237e;\n --md-indigo-A100: #8c9eff;\n --md-indigo-A200: #536dfe;\n --md-indigo-A400: #3d5afe;\n --md-indigo-A700: #304ffe;\n --md-blue-50: #e3f2fd;\n --md-blue-100: #bbdefb;\n --md-blue-200: #90caf9;\n --md-blue-300: #64b5f6;\n --md-blue-400: #42a5f5;\n --md-blue-500: #2196f3;\n --md-blue-600: #1e88e5;\n --md-blue-700: #1976d2;\n --md-blue-800: #1565c0;\n --md-blue-900: #0d47a1;\n --md-blue-A100: #82b1ff;\n --md-blue-A200: #448aff;\n --md-blue-A400: #2979ff;\n --md-blue-A700: #2962ff;\n --md-light-blue-50: #e1f5fe;\n --md-light-blue-100: #b3e5fc;\n --md-light-blue-200: #81d4fa;\n --md-light-blue-300: #4fc3f7;\n --md-light-blue-400: #29b6f6;\n --md-light-blue-500: #03a9f4;\n --md-light-blue-600: #039be5;\n --md-light-blue-700: #0288d1;\n --md-light-blue-800: #0277bd;\n --md-light-blue-900: #01579b;\n --md-light-blue-A100: #80d8ff;\n --md-light-blue-A200: #40c4ff;\n --md-light-blue-A400: #00b0ff;\n --md-light-blue-A700: #0091ea;\n --md-cyan-50: #e0f7fa;\n --md-cyan-100: #b2ebf2;\n --md-cyan-200: #80deea;\n --md-cyan-300: #4dd0e1;\n --md-cyan-400: #26c6da;\n --md-cyan-500: #00bcd4;\n --md-cyan-600: #00acc1;\n --md-cyan-700: #0097a7;\n --md-cyan-800: #00838f;\n --md-cyan-900: #006064;\n --md-cyan-A100: #84ffff;\n --md-cyan-A200: #18ffff;\n --md-cyan-A400: #00e5ff;\n --md-cyan-A700: #00b8d4;\n --md-teal-50: #e0f2f1;\n --md-teal-100: #b2dfdb;\n --md-teal-200: #80cbc4;\n --md-teal-300: #4db6ac;\n --md-teal-400: #26a69a;\n --md-teal-500: #009688;\n --md-teal-600: #00897b;\n --md-teal-700: #00796b;\n --md-teal-800: #00695c;\n --md-teal-900: #004d40;\n --md-teal-A100: #a7ffeb;\n --md-teal-A200: #64ffda;\n --md-teal-A400: #1de9b6;\n --md-teal-A700: #00bfa5;\n --md-green-50: #e8f5e9;\n --md-green-100: #c8e6c9;\n --md-green-200: #a5d6a7;\n --md-green-300: #81c784;\n --md-green-400: #66bb6a;\n --md-green-500: #4caf50;\n --md-green-600: #43a047;\n --md-green-700: #388e3c;\n --md-green-800: #2e7d32;\n --md-green-900: #1b5e20;\n --md-green-A100: #b9f6ca;\n --md-green-A200: #69f0ae;\n --md-green-A400: #00e676;\n --md-green-A700: #00c853;\n --md-light-green-50: #f1f8e9;\n --md-light-green-100: #dcedc8;\n --md-light-green-200: #c5e1a5;\n --md-light-green-300: #aed581;\n --md-light-green-400: #9ccc65;\n --md-light-green-500: #8bc34a;\n --md-light-green-600: #7cb342;\n --md-light-green-700: #689f38;\n --md-light-green-800: #558b2f;\n --md-light-green-900: #33691e;\n --md-light-green-A100: #ccff90;\n --md-light-green-A200: #b2ff59;\n --md-light-green-A400: #76ff03;\n --md-light-green-A700: #64dd17;\n --md-lime-50: #f9fbe7;\n --md-lime-100: #f0f4c3;\n --md-lime-200: #e6ee9c;\n --md-lime-300: #dce775;\n --md-lime-400: #d4e157;\n --md-lime-500: #cddc39;\n --md-lime-600: #c0ca33;\n --md-lime-700: #afb42b;\n --md-lime-800: #9e9d24;\n --md-lime-900: #827717;\n --md-lime-A100: #f4ff81;\n --md-lime-A200: #eeff41;\n --md-lime-A400: #c6ff00;\n --md-lime-A700: #aeea00;\n --md-yellow-50: #fffde7;\n --md-yellow-100: #fff9c4;\n --md-yellow-200: #fff59d;\n --md-yellow-300: #fff176;\n --md-yellow-400: #ffee58;\n --md-yellow-500: #ffeb3b;\n --md-yellow-600: #fdd835;\n --md-yellow-700: #fbc02d;\n --md-yellow-800: #f9a825;\n --md-yellow-900: #f57f17;\n --md-yellow-A100: #ffff8d;\n --md-yellow-A200: #ff0;\n --md-yellow-A400: #ffea00;\n --md-yellow-A700: #ffd600;\n --md-amber-50: #fff8e1;\n --md-amber-100: #ffecb3;\n --md-amber-200: #ffe082;\n --md-amber-300: #ffd54f;\n --md-amber-400: #ffca28;\n --md-amber-500: #ffc107;\n --md-amber-600: #ffb300;\n --md-amber-700: #ffa000;\n --md-amber-800: #ff8f00;\n --md-amber-900: #ff6f00;\n --md-amber-A100: #ffe57f;\n --md-amber-A200: #ffd740;\n --md-amber-A400: #ffc400;\n --md-amber-A700: #ffab00;\n --md-orange-50: #fff3e0;\n --md-orange-100: #ffe0b2;\n --md-orange-200: #ffcc80;\n --md-orange-300: #ffb74d;\n --md-orange-400: #ffa726;\n --md-orange-500: #ff9800;\n --md-orange-600: #fb8c00;\n --md-orange-700: #f57c00;\n --md-orange-800: #ef6c00;\n --md-orange-900: #e65100;\n --md-orange-A100: #ffd180;\n --md-orange-A200: #ffab40;\n --md-orange-A400: #ff9100;\n --md-orange-A700: #ff6d00;\n --md-deep-orange-50: #fbe9e7;\n --md-deep-orange-100: #ffccbc;\n --md-deep-orange-200: #ffab91;\n --md-deep-orange-300: #ff8a65;\n --md-deep-orange-400: #ff7043;\n --md-deep-orange-500: #ff5722;\n --md-deep-orange-600: #f4511e;\n --md-deep-orange-700: #e64a19;\n --md-deep-orange-800: #d84315;\n --md-deep-orange-900: #bf360c;\n --md-deep-orange-A100: #ff9e80;\n --md-deep-orange-A200: #ff6e40;\n --md-deep-orange-A400: #ff3d00;\n --md-deep-orange-A700: #dd2c00;\n --md-brown-50: #efebe9;\n --md-brown-100: #d7ccc8;\n --md-brown-200: #bcaaa4;\n --md-brown-300: #a1887f;\n --md-brown-400: #8d6e63;\n --md-brown-500: #795548;\n --md-brown-600: #6d4c41;\n --md-brown-700: #5d4037;\n --md-brown-800: #4e342e;\n --md-brown-900: #3e2723;\n --md-grey-50: #fafafa;\n --md-grey-100: #f5f5f5;\n --md-grey-200: #eee;\n --md-grey-300: #e0e0e0;\n --md-grey-400: #bdbdbd;\n --md-grey-500: #9e9e9e;\n --md-grey-600: #757575;\n --md-grey-700: #616161;\n --md-grey-800: #424242;\n --md-grey-900: #212121;\n --md-blue-grey-50: #eceff1;\n --md-blue-grey-100: #cfd8dc;\n --md-blue-grey-200: #b0bec5;\n --md-blue-grey-300: #90a4ae;\n --md-blue-grey-400: #78909c;\n --md-blue-grey-500: #607d8b;\n --md-blue-grey-600: #546e7a;\n --md-blue-grey-700: #455a64;\n --md-blue-grey-800: #37474f;\n --md-blue-grey-900: #263238;\n}\n",""]);const l=a},63775:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n.jp-cell-button .jp-icon3[fill] {\n fill: var(--jp-inverse-layout-color4);\n}\n\n.jp-cell-button:hover .jp-icon3[fill] {\n fill: var(--jp-inverse-layout-color2);\n}\n\n.jp-toolbar-overlap .jp-cell-toolbar {\n display: none;\n}\n\n.jp-cell-toolbar {\n display: flex;\n flex-direction: row;\n padding: 2px 0;\n min-height: 25px;\n z-index: 6;\n position: absolute;\n top: 5px;\n right: 8px;\n\n /* Override .jp-Toolbar */\n background-color: transparent;\n border-bottom: inherit;\n box-shadow: inherit;\n}\n\n/* Overrides for mobile view hiding cell toolbar */\n@media only screen and (width <= 760px) {\n .jp-cell-menu.jp-cell-toolbar {\n display: none;\n }\n}\n\n.jp-cell-menu {\n display: flex;\n flex-direction: row;\n}\n\n.jp-cell-menu button.jp-ToolbarButtonComponent {\n cursor: pointer;\n}\n\n.jp-cell-menu .jp-ToolbarButton button {\n display: none;\n}\n\n.jp-cell-menu .jp-ToolbarButton .jp-cell-all,\n.jp-CodeCell .jp-ToolbarButton .jp-cell-code,\n.jp-MarkdownCell .jp-ToolbarButton .jp-cell-markdown,\n.jp-RawCell .jp-ToolbarButton .jp-cell-raw {\n display: block;\n}\n\n.jp-cell-toolbar .jp-Toolbar-spacer {\n flex: 1 1 auto;\n}\n\n.jp-cell-mod-click {\n cursor: pointer;\n}\n\n/* Custom styling for rendered markdown cells so that cell toolbar is visible */\n.jp-MarkdownOutput {\n border-width: var(--jp-border-width);\n border-color: transparent;\n border-style: solid;\n}\n\n.jp-mod-active .jp-MarkdownOutput {\n border-color: var(--jp-cell-editor-border-color);\n}\n",""]);const l=a},90346:(e,t,n)=>{"use strict";n.d(t,{Z:()=>p});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=n(94459);var l=n(84946);var d=n(19982);var c=n(74271);var h=n(54652);var u=r()(s());u.i(a.Z);u.i(l.Z);u.i(d.Z);u.i(c.Z);u.i(h.Z);u.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n",""]);const p=u},94459:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,'/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-Collapser {\n flex: 0 0 var(--jp-cell-collapser-width);\n padding: 0;\n margin: 0;\n border: none;\n outline: none;\n background: transparent;\n border-radius: var(--jp-border-radius);\n opacity: 1;\n}\n\n.jp-Collapser-child {\n display: block;\n width: 100%;\n box-sizing: border-box;\n\n /* height: 100% doesn\'t work because the height of its parent is computed from content */\n position: absolute;\n top: 0;\n bottom: 0;\n}\n\n/*-----------------------------------------------------------------------------\n| Printing\n|----------------------------------------------------------------------------*/\n\n/*\nHiding collapsers in print mode.\n\nNote: input and output wrappers have "display: block" propery in print mode.\n*/\n\n@media print {\n .jp-Collapser {\n display: none;\n }\n}\n',""]);const l=a},84946:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| Header/Footer\n|----------------------------------------------------------------------------*/\n\n/* Hidden by zero height by default */\n.jp-CellHeader,\n.jp-CellFooter {\n height: 0;\n width: 100%;\n padding: 0;\n margin: 0;\n border: none;\n outline: none;\n background: transparent;\n}\n",""]);const l=a},19982:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| Input\n|----------------------------------------------------------------------------*/\n\n/* All input areas */\n.jp-InputArea {\n display: flex;\n flex-direction: row;\n width: 100%;\n overflow: hidden;\n}\n\n.jp-InputArea-editor {\n flex: 1 1 auto;\n overflow: hidden;\n\n /* This is the non-active, default styling */\n border: var(--jp-border-width) solid var(--jp-cell-editor-border-color);\n border-radius: 0;\n background: var(--jp-cell-editor-background);\n}\n\n.jp-InputPrompt {\n flex: 0 0 var(--jp-cell-prompt-width);\n width: var(--jp-cell-prompt-width);\n color: var(--jp-cell-inprompt-font-color);\n font-family: var(--jp-cell-prompt-font-family);\n padding: var(--jp-code-padding);\n letter-spacing: var(--jp-cell-prompt-letter-spacing);\n opacity: var(--jp-cell-prompt-opacity);\n line-height: var(--jp-code-line-height);\n font-size: var(--jp-code-font-size);\n border: var(--jp-border-width) solid transparent;\n\n /* Right align prompt text, don't wrap to handle large prompt numbers */\n text-align: right;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n\n /* Disable text selection */\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n/*-----------------------------------------------------------------------------\n| Print\n|----------------------------------------------------------------------------*/\n@media print {\n .jp-InputArea {\n display: table;\n table-layout: fixed;\n }\n\n .jp-InputArea-editor {\n display: table-cell;\n vertical-align: top;\n }\n\n .jp-InputPrompt {\n display: table-cell;\n vertical-align: top;\n }\n}\n\n/*-----------------------------------------------------------------------------\n| Mobile\n|----------------------------------------------------------------------------*/\n@media only screen and (width <= 760px) {\n .jp-InputArea {\n flex-direction: column;\n }\n\n .jp-InputArea-editor {\n margin-left: var(--jp-code-padding);\n }\n\n .jp-InputPrompt {\n flex: 0 0 auto;\n text-align: left;\n }\n}\n",""]);const l=a},74271:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| Placeholder\n|----------------------------------------------------------------------------*/\n\n.jp-Placeholder {\n display: flex;\n flex-direction: row;\n width: 100%;\n}\n\n.jp-Placeholder-prompt {\n flex: 0 0 var(--jp-cell-prompt-width);\n box-sizing: border-box;\n}\n\n.jp-Placeholder-content {\n flex: 1 1 auto;\n padding: 4px 6px;\n border: 1px solid transparent;\n border-radius: 0;\n background: none;\n box-sizing: border-box;\n cursor: pointer;\n}\n\n.jp-Placeholder-contentContainer {\n display: flex;\n}\n\n.jp-Placeholder-content:hover,\n.jp-InputPlaceholder > .jp-Placeholder-content:hover {\n border-color: var(--jp-layout-color3);\n}\n\n.jp-Placeholder-content .jp-MoreHorizIcon {\n width: 32px;\n height: 16px;\n border: 1px solid transparent;\n border-radius: var(--jp-border-radius);\n}\n\n.jp-Placeholder-content .jp-MoreHorizIcon:hover {\n border: 1px solid var(--jp-border-color1);\n box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.25);\n background-color: var(--jp-layout-color0);\n}\n\n.jp-PlaceholderText {\n white-space: nowrap;\n overflow-x: hidden;\n color: var(--jp-inverse-layout-color3);\n font-family: var(--jp-code-font-family);\n}\n\n.jp-InputPlaceholder > .jp-Placeholder-content {\n border-color: var(--jp-cell-editor-border-color);\n background: var(--jp-cell-editor-background);\n}\n\n/*-----------------------------------------------------------------------------\n| Print\n|----------------------------------------------------------------------------*/\n@media print {\n .jp-Placeholder {\n display: table;\n table-layout: fixed;\n }\n\n .jp-Placeholder-content {\n display: table-cell;\n }\n\n .jp-Placeholder-prompt {\n display: table-cell;\n }\n}\n",""]);const l=a},54652:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| Private CSS variables\n|----------------------------------------------------------------------------*/\n\n:root {\n --jp-private-cell-scrolling-output-offset: 5px;\n}\n\n/*-----------------------------------------------------------------------------\n| Cell\n|----------------------------------------------------------------------------*/\n\n.jp-Cell {\n padding: var(--jp-cell-padding);\n margin: 0;\n border: none;\n outline: none;\n background: transparent;\n}\n\n/*-----------------------------------------------------------------------------\n| Common input/output\n|----------------------------------------------------------------------------*/\n\n.jp-Cell-inputWrapper,\n.jp-Cell-outputWrapper {\n display: flex;\n flex-direction: row;\n padding: 0;\n margin: 0;\n\n /* Added to reveal the box-shadow on the input and output collapsers. */\n overflow: visible;\n}\n\n/* Only input/output areas inside cells */\n.jp-Cell-inputArea,\n.jp-Cell-outputArea {\n flex: 1 1 auto;\n}\n\n/*-----------------------------------------------------------------------------\n| Collapser\n|----------------------------------------------------------------------------*/\n\n/* Make the output collapser disappear when there is not output, but do so\n * in a manner that leaves it in the layout and preserves its width.\n */\n.jp-Cell.jp-mod-noOutputs .jp-Cell-outputCollapser {\n border: none !important;\n background: transparent !important;\n}\n\n.jp-Cell:not(.jp-mod-noOutputs) .jp-Cell-outputCollapser {\n min-height: var(--jp-cell-collapser-min-height);\n}\n\n/*-----------------------------------------------------------------------------\n| Output\n|----------------------------------------------------------------------------*/\n\n/* Put a space between input and output when there IS output */\n.jp-Cell:not(.jp-mod-noOutputs) .jp-Cell-outputWrapper {\n margin-top: 5px;\n}\n\n.jp-CodeCell.jp-mod-outputsScrolled .jp-Cell-outputArea {\n overflow-y: auto;\n max-height: 24em;\n margin-left: var(--jp-private-cell-scrolling-output-offset);\n resize: vertical;\n}\n\n.jp-CodeCell.jp-mod-outputsScrolled .jp-Cell-outputArea[style*='height'] {\n max-height: unset;\n}\n\n.jp-CodeCell.jp-mod-outputsScrolled .jp-Cell-outputArea::after {\n content: ' ';\n box-shadow: inset 0 0 6px 2px rgb(0 0 0 / 30%);\n width: 100%;\n height: 100%;\n position: sticky;\n bottom: 0;\n top: 0;\n margin-top: -50%;\n float: left;\n display: block;\n pointer-events: none;\n}\n\n.jp-CodeCell.jp-mod-outputsScrolled .jp-OutputArea-child {\n padding-top: 6px;\n}\n\n.jp-CodeCell.jp-mod-outputsScrolled .jp-OutputArea-prompt {\n width: calc(\n var(--jp-cell-prompt-width) - var(--jp-private-cell-scrolling-output-offset)\n );\n flex: 0 0\n calc(\n var(--jp-cell-prompt-width) -\n var(--jp-private-cell-scrolling-output-offset)\n );\n}\n\n.jp-CodeCell.jp-mod-outputsScrolled .jp-OutputArea-promptOverlay {\n left: calc(-1 * var(--jp-private-cell-scrolling-output-offset));\n}\n\n/*-----------------------------------------------------------------------------\n| CodeCell\n|----------------------------------------------------------------------------*/\n\n/*-----------------------------------------------------------------------------\n| MarkdownCell\n|----------------------------------------------------------------------------*/\n\n.jp-MarkdownOutput {\n flex: 1 1 auto;\n width: 100%;\n margin-top: 0;\n margin-bottom: 0;\n padding-left: var(--jp-code-padding);\n}\n\n.jp-MarkdownOutput.jp-RenderedHTMLCommon {\n overflow: auto;\n}\n\n/* collapseHeadingButton (show always if hiddenCellsButton is _not_ shown) */\n.jp-collapseHeadingButton {\n display: flex;\n min-height: var(--jp-cell-collapser-min-height);\n font-size: var(--jp-code-font-size);\n position: absolute;\n background-color: transparent;\n background-size: 25px;\n background-repeat: no-repeat;\n background-position-x: center;\n background-position-y: top;\n background-image: var(--jp-icon-caret-down);\n right: 0;\n top: 0;\n bottom: 0;\n}\n\n.jp-collapseHeadingButton.jp-mod-collapsed {\n background-image: var(--jp-icon-caret-right);\n}\n\n/*\n set the container font size to match that of content\n so that the nested collapse buttons have the right size\n*/\n.jp-MarkdownCell .jp-InputPrompt {\n font-size: var(--jp-content-font-size1);\n}\n\n/*\n Align collapseHeadingButton with cell top header\n The font sizes are identical to the ones in packages/rendermime/style/base.css\n*/\n.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='1'] {\n font-size: var(--jp-content-font-size5);\n background-position-y: calc(0.3 * var(--jp-content-font-size5));\n}\n\n.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='2'] {\n font-size: var(--jp-content-font-size4);\n background-position-y: calc(0.3 * var(--jp-content-font-size4));\n}\n\n.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='3'] {\n font-size: var(--jp-content-font-size3);\n background-position-y: calc(0.3 * var(--jp-content-font-size3));\n}\n\n.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='4'] {\n font-size: var(--jp-content-font-size2);\n background-position-y: calc(0.3 * var(--jp-content-font-size2));\n}\n\n.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='5'] {\n font-size: var(--jp-content-font-size1);\n background-position-y: top;\n}\n\n.jp-mod-rendered .jp-collapseHeadingButton[data-heading-level='6'] {\n font-size: var(--jp-content-font-size0);\n background-position-y: top;\n}\n\n/* collapseHeadingButton (show only on (hover,active) if hiddenCellsButton is shown) */\n.jp-Notebook.jp-mod-showHiddenCellsButton .jp-collapseHeadingButton {\n display: none;\n}\n\n.jp-Notebook.jp-mod-showHiddenCellsButton\n :is(.jp-MarkdownCell:hover, .jp-mod-active)\n .jp-collapseHeadingButton {\n display: flex;\n}\n\n/* showHiddenCellsButton (only show if jp-mod-showHiddenCellsButton is set, which\nis a consequence of the showHiddenCellsButton option in Notebook Settings)*/\n.jp-Notebook.jp-mod-showHiddenCellsButton .jp-showHiddenCellsButton {\n margin-left: calc(var(--jp-cell-prompt-width) + 2 * var(--jp-code-padding));\n margin-top: var(--jp-code-padding);\n border: 1px solid var(--jp-border-color2);\n background-color: var(--jp-border-color3) !important;\n color: var(--jp-content-font-color0) !important;\n display: flex;\n}\n\n.jp-Notebook.jp-mod-showHiddenCellsButton .jp-showHiddenCellsButton:hover {\n background-color: var(--jp-border-color2) !important;\n}\n\n.jp-showHiddenCellsButton {\n display: none;\n}\n\n/*-----------------------------------------------------------------------------\n| Printing\n|----------------------------------------------------------------------------*/\n\n/*\nUsing block instead of flex to allow the use of the break-inside CSS property for\ncell outputs.\n*/\n\n@media print {\n .jp-Cell-inputWrapper,\n .jp-Cell-outputWrapper {\n display: block;\n }\n\n .jp-MarkdownOutput {\n display: table-cell;\n }\n}\n",""]);const l=a},30289:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n:root {\n --jp-add-tag-extra-width: 8px;\n}\n\n.jp-CellTags-Tag {\n height: 20px;\n border-radius: 10px;\n margin-right: 5px;\n margin-bottom: 10px;\n padding: 0 8px;\n font-size: var(--jp-ui-font-size1);\n display: inline-flex;\n justify-content: center;\n align-items: center;\n max-width: calc(100% - 25px);\n border: 1px solid var(--jp-border-color1);\n color: var(--jp-ui-font-color1);\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -khtml-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n\n.jp-CellTags-Unapplied {\n background-color: var(--jp-layout-color2);\n}\n\n.jp-CellTags-Applied {\n background-color: var(--jp-layout-color3);\n}\n\n.jp-CellTags-Add {\n white-space: nowrap;\n overflow: hidden;\n border: none;\n outline: none;\n resize: horizontal;\n font-size: var(--jp-ui-font-size1);\n color: var(--jp-ui-font-color1);\n background: var(--jp-layout-color2);\n}\n\n.jp-CellTags-Holder {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n\n.jp-CellTags-Empty {\n width: 4em;\n}\n",""]);const l=a},46832:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=n(64773);var l=r()(s());l.i(a.Z);l.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) 2014-2016, Jupyter Development Team.\n|\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-JSONEditor {\n display: flex;\n flex-direction: column;\n width: 100%;\n}\n\n.jp-JSONEditor-host {\n flex: 1 1 auto;\n border: var(--jp-border-width) solid var(--jp-input-border-color);\n border-radius: 0;\n background: var(--jp-layout-color0);\n min-height: 50px;\n padding: 1px;\n}\n\n.jp-JSONEditor.jp-mod-error .jp-JSONEditor-host {\n border-color: red;\n outline-color: red;\n}\n\n.jp-JSONEditor-header {\n display: flex;\n flex: 1 0 auto;\n padding: 0 0 0 12px;\n}\n\n.jp-JSONEditor-header label {\n flex: 0 0 auto;\n}\n\n.jp-JSONEditor-commitButton {\n height: 16px;\n width: 16px;\n background-size: 18px;\n background-repeat: no-repeat;\n background-position: center;\n}\n\n.jp-JSONEditor-host.jp-mod-focused {\n background-color: var(--jp-input-active-background);\n border: 1px solid var(--jp-input-active-border-color);\n box-shadow: var(--jp-input-box-shadow);\n}\n\n.jp-Editor.jp-mod-dropTarget {\n border: var(--jp-border-width) solid var(--jp-input-active-border-color);\n box-shadow: var(--jp-input-box-shadow);\n}\n",""]);const d=l},64773:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*\n * Copyright (c) Jupyter Development Team.\n * Distributed under the terms of the Modified BSD License.\n */\n\n.jp-lineFormSearch {\n padding: 4px 12px;\n background-color: var(--jp-layout-color2);\n box-shadow: var(--jp-toolbar-box-shadow);\n z-index: 2;\n font-size: var(--jp-ui-font-size1);\n}\n\n.jp-lineFormCaption {\n font-size: var(--jp-ui-font-size0);\n line-height: var(--jp-ui-font-size1);\n margin-top: 4px;\n color: var(--jp-ui-font-color0);\n}\n\n.jp-baseLineForm {\n border: none;\n border-radius: 0;\n position: absolute;\n background-size: 16px;\n background-repeat: no-repeat;\n background-position: center;\n outline: none;\n}\n\n.jp-lineFormButtonContainer {\n top: 4px;\n right: 8px;\n height: 24px;\n padding: 0 12px;\n width: 12px;\n}\n\n.jp-lineFormButtonIcon {\n top: 0;\n right: 0;\n background-color: var(--jp-brand-color1);\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n padding: 4px 6px;\n}\n\n.jp-lineFormButton {\n top: 0;\n right: 0;\n background-color: transparent;\n height: 100%;\n width: 100%;\n box-sizing: border-box;\n}\n\n.jp-lineFormWrapper {\n overflow: hidden;\n padding: 0 8px;\n border: 1px solid var(--jp-border-color0);\n background-color: var(--jp-input-active-background);\n height: 22px;\n}\n\n.jp-lineFormWrapperFocusWithin {\n border: var(--jp-border-width) solid var(--md-blue-500);\n box-shadow: inset 0 0 4px var(--md-blue-300);\n}\n\n.jp-lineFormInput {\n background: transparent;\n width: 200px;\n height: 100%;\n border: none;\n outline: none;\n color: var(--jp-ui-font-color0);\n line-height: 28px;\n}\n",""]);const l=a},67657:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=n(61667);var l=n.n(a);var d=new URL(n(7413),n.b);var c=r()(s());var h=l()(d);c.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.cm-editor {\n line-height: var(--jp-code-line-height);\n font-size: var(--jp-code-font-size);\n font-family: var(--jp-code-font-family);\n border: 0;\n border-radius: 0;\n height: auto;\n\n /* Changed to auto to autogrow */\n}\n\n.cm-editor pre {\n padding: 0 var(--jp-code-padding);\n}\n\n.jp-CodeMirrorEditor[data-type='inline'] .cm-dialog {\n background-color: var(--jp-layout-color0);\n color: var(--jp-content-font-color1);\n}\n\n.jp-CodeMirrorEditor {\n cursor: text;\n}\n\n/* When zoomed out 67% and 33% on a screen of 1440 width x 900 height */\n@media screen and (width >= 2138px) and (width <= 4319px) {\n .jp-CodeMirrorEditor[data-type='inline'] .cm-cursor {\n border-left: var(--jp-code-cursor-width1) solid\n var(--jp-editor-cursor-color);\n }\n}\n\n/* When zoomed out less than 33% */\n@media screen and (width >= 4320px) {\n .jp-CodeMirrorEditor[data-type='inline'] .cm-cursor {\n border-left: var(--jp-code-cursor-width2) solid\n var(--jp-editor-cursor-color);\n }\n}\n\n.cm-editor.jp-mod-readOnly .cm-cursor {\n display: none;\n}\n\n.jp-CollaboratorCursor {\n border-left: 5px solid transparent;\n border-right: 5px solid transparent;\n border-top: none;\n border-bottom: 3px solid;\n background-clip: content-box;\n margin-left: -5px;\n margin-right: -5px;\n}\n\n.cm-searching,\n.cm-searching span {\n /* `.cm-searching span`: we need to override syntax highlighting */\n background-color: var(--jp-search-unselected-match-background-color);\n color: var(--jp-search-unselected-match-color);\n}\n\n.cm-searching::selection,\n.cm-searching span::selection {\n background-color: var(--jp-search-unselected-match-background-color);\n color: var(--jp-search-unselected-match-color);\n}\n\n.jp-current-match > .cm-searching,\n.jp-current-match > .cm-searching span,\n.cm-searching > .jp-current-match,\n.cm-searching > .jp-current-match span {\n background-color: var(--jp-search-selected-match-background-color);\n color: var(--jp-search-selected-match-color);\n}\n\n.jp-current-match > .cm-searching::selection,\n.cm-searching > .jp-current-match::selection,\n.jp-current-match > .cm-searching span::selection {\n background-color: var(--jp-search-selected-match-background-color);\n color: var(--jp-search-selected-match-color);\n}\n\n.cm-trailingspace {\n background-image: url("+h+");\n background-position: center left;\n background-repeat: repeat-x;\n}\n\n.jp-CollaboratorCursor-hover {\n position: absolute;\n z-index: 1;\n transform: translateX(-50%);\n color: white;\n border-radius: 3px;\n padding-left: 4px;\n padding-right: 4px;\n padding-top: 1px;\n padding-bottom: 1px;\n text-align: center;\n font-size: var(--jp-ui-font-size1);\n white-space: nowrap;\n}\n\n.jp-CodeMirror-ruler {\n border-left: 1px dashed var(--jp-border-color2);\n}\n\n/* Styles for shared cursors (remote cursor locations and selected ranges) */\n.jp-CodeMirrorEditor .cm-ySelectionCaret {\n position: relative;\n border-left: 1px solid black;\n margin-left: -1px;\n margin-right: -1px;\n box-sizing: border-box;\n}\n\n.jp-CodeMirrorEditor .cm-ySelectionCaret > .cm-ySelectionInfo {\n white-space: nowrap;\n position: absolute;\n top: -1.15em;\n padding-bottom: 0.05em;\n left: -1px;\n font-size: 0.95em;\n font-family: var(--jp-ui-font-family);\n font-weight: bold;\n line-height: normal;\n user-select: none;\n color: white;\n padding-left: 2px;\n padding-right: 2px;\n z-index: 101;\n transition: opacity 0.3s ease-in-out;\n}\n\n.jp-CodeMirrorEditor .cm-ySelectionInfo {\n transition-delay: 0.7s;\n opacity: 0;\n}\n\n.jp-CodeMirrorEditor .cm-ySelectionCaret:hover > .cm-ySelectionInfo {\n opacity: 1;\n transition-delay: 0s;\n}\n",""]);const u=c},62173:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) 2014-2016, Jupyter Development Team.\n|\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n:root {\n --jp-private-completer-item-height: 24px;\n\n /* Shift the baseline of the type character to align with the match text */\n --jp-private-completer-type-offset: 2px;\n}\n\n.jp-Completer {\n box-shadow: var(--jp-elevation-z6);\n background: var(--jp-layout-color1);\n color: var(--jp-content-font-color1);\n border: var(--jp-border-width) solid var(--jp-border-color1);\n padding: 0;\n display: flex;\n flex-direction: row;\n\n /* Needed to avoid scrollbar issues when using cached width. */\n box-sizing: content-box;\n\n /* Position the completer relative to the text editor, align the '.' */\n margin: 4px 0 0 -30px;\n z-index: 10001;\n}\n\n.jp-Completer-docpanel {\n border-left: var(--jp-border-width) solid var(--jp-border-color1);\n width: 400px;\n overflow-y: scroll;\n overflow-x: auto;\n padding: 8px;\n max-height: calc((10 * var(--jp-private-completer-item-height)) - 16px);\n}\n\n.jp-Completer-docpanel pre {\n border: none;\n margin: 0;\n padding: 0;\n white-space: pre-wrap;\n}\n\n.jp-Completer-list {\n margin: 0;\n padding: 0;\n list-style-type: none;\n overflow-y: scroll;\n overflow-x: auto;\n max-height: calc((10 * var(--jp-private-completer-item-height)));\n min-height: calc(var(--jp-private-completer-item-height));\n width: 100%;\n}\n\n.jp-Completer-item {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n height: var(--jp-private-completer-item-height);\n min-width: 150px;\n display: grid;\n grid-template-columns: min-content 1fr min-content;\n position: relative;\n}\n\n.jp-Completer-item .jp-Completer-match {\n box-sizing: border-box;\n margin: 0;\n padding: 0 8px 0 6px;\n height: var(--jp-private-completer-item-height);\n font-family: var(--jp-code-font-family);\n font-size: var(--jp-code-font-size);\n line-height: var(--jp-private-completer-item-height);\n}\n\n.jp-Completer-deprecated .jp-Completer-match {\n text-decoration: line-through;\n color: var(--jp-content-font-color2);\n}\n\n.jp-Completer-item .jp-Completer-type {\n box-sizing: border-box;\n height: var(--jp-private-completer-item-height);\n background: transparent;\n width: var(--jp-private-completer-item-height);\n}\n\n.jp-Completer-item .jp-Completer-icon {\n /* Normal element size from LabIconStyle.ISheetOptions */\n height: 16px;\n width: 16px;\n}\n\n.jp-Completer-item .jp-Completer-monogram {\n text-align: center;\n color: white;\n width: var(--jp-private-completer-item-height);\n font-family: var(--jp-ui-font-family);\n font-size: var(--jp-ui-font-size1);\n line-height: calc(\n var(--jp-private-completer-item-height) -\n var(--jp-private-completer-type-offset)\n );\n padding-bottom: var(--jp-private-completer-type-offset);\n}\n\n.jp-Completer-item .jp-Completer-typeExtended {\n box-sizing: border-box;\n height: var(--jp-private-completer-item-height);\n text-align: right;\n background: transparent;\n color: var(--jp-ui-font-color2);\n font-family: var(--jp-code-font-family);\n font-size: var(--jp-code-font-size);\n line-height: var(--jp-private-completer-item-height);\n padding-right: 8px;\n}\n\n.jp-Completer-item:hover {\n background: var(--jp-layout-color2);\n opacity: 0.8;\n}\n\n.jp-Completer-item.jp-mod-active {\n background: var(--jp-brand-color1);\n color: white;\n}\n\n.jp-Completer-item .jp-Completer-match mark {\n font-weight: bold;\n background: inherit;\n color: inherit;\n}\n\n.jp-Completer-type[data-color-index='0'] {\n background: transparent;\n}\n\n.jp-Completer-type[data-color-index='1'] {\n background: #1f77b4;\n}\n\n.jp-Completer-type[data-color-index='2'] {\n background: #ff7f0e;\n}\n\n.jp-Completer-type[data-color-index='3'] {\n background: #2ca02c;\n}\n\n.jp-Completer-type[data-color-index='4'] {\n background: #d62728;\n}\n\n.jp-Completer-type[data-color-index='5'] {\n background: #9467bd;\n}\n\n.jp-Completer-type[data-color-index='6'] {\n background: #8c564b;\n}\n\n.jp-Completer-type[data-color-index='7'] {\n background: #e377c2;\n}\n\n.jp-Completer-type[data-color-index='8'] {\n background: #7f7f7f;\n}\n\n.jp-Completer-type[data-color-index='9'] {\n background: #bcbd22;\n}\n\n.jp-Completer-type[data-color-index='10'] {\n background: #17becf;\n}\n\n.jp-Completer-loading-bar-container {\n height: 2px;\n width: calc(100% - var(--jp-private-completer-item-height));\n left: var(--jp-private-completer-item-height);\n position: absolute;\n overflow: hidden;\n top: 0;\n}\n\n.jp-Completer-loading-bar {\n height: 100%;\n width: 50%;\n background-color: var(--jp-accent-color2);\n position: absolute;\n left: -50%;\n animation: jp-Completer-loading 2s ease-in 0.5s infinite;\n}\n\n@keyframes jp-Completer-loading {\n 0% {\n transform: translateX(0);\n }\n\n 100% {\n transform: translateX(400%);\n }\n}\n",""]);const l=a},79937:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-ConsolePanel {\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n margin-top: -1px;\n min-width: 240px;\n min-height: 120px;\n}\n\n.jp-CodeConsole {\n height: 100%;\n padding: 0;\n display: flex;\n flex-direction: column;\n}\n\n.jp-CodeConsole .jp-Cell {\n padding: var(--jp-cell-padding);\n}\n\n/*-----------------------------------------------------------------------------\n| Content (already run cells)\n|----------------------------------------------------------------------------*/\n\n.jp-CodeConsole-content {\n background: var(--jp-layout-color0);\n flex: 1 1 auto;\n overflow: auto;\n padding: var(--jp-console-padding);\n}\n\n.jp-CodeConsole-content .jp-Cell:not(.jp-mod-active) .jp-InputPrompt {\n opacity: var(--jp-cell-prompt-not-active-opacity);\n color: var(--jp-cell-inprompt-font-color);\n cursor: move;\n}\n\n.jp-CodeConsole-content .jp-Cell:not(.jp-mod-active) .jp-OutputPrompt {\n opacity: var(--jp-cell-prompt-not-active-opacity);\n color: var(--jp-cell-outprompt-font-color);\n}\n\n/* This rule is for styling cell run by another activity in this console */\n\n/* .jp-CodeConsole-content .jp-Cell.jp-CodeConsole-foreignCell {\n} */\n\n.jp-CodeConsole-content .jp-InputArea-editor.jp-InputArea-editor {\n background: transparent;\n border: 1px solid transparent;\n}\n\n.jp-CodeConsole-content .jp-CodeConsole-banner .jp-InputPrompt {\n display: none;\n}\n\n/* collapser is hovered */\n.jp-CodeConsole-content .jp-Cell .jp-Collapser:hover {\n box-shadow: var(--jp-elevation-z2);\n background: var(--jp-brand-color1);\n opacity: var(--jp-cell-collapser-not-active-hover-opacity);\n}\n\n/*-----------------------------------------------------------------------------\n| Input/prompt cell\n|----------------------------------------------------------------------------*/\n\n.jp-CodeConsole-input {\n max-height: 80%;\n flex: 0 0 auto;\n overflow: auto;\n border-top: var(--jp-border-width) solid var(--jp-toolbar-border-color);\n padding: var(--jp-cell-padding) var(--jp-console-padding);\n\n /* This matches the box shadow on the notebook toolbar, eventually we should create\n * CSS variables for this */\n box-shadow: 0 0.4px 6px 0 rgba(0, 0, 0, 0.1);\n background: var(--jp-layout-color1);\n}\n\n.jp-CodeConsole-input .jp-CodeConsole-prompt .jp-InputArea {\n height: 100%;\n min-height: 100%;\n}\n\n.jp-CodeConsole-promptCell .jp-InputArea-editor.jp-mod-focused {\n border: var(--jp-border-width) solid var(--jp-cell-editor-active-border-color);\n box-shadow: var(--jp-input-box-shadow);\n background-color: var(--jp-cell-editor-active-background);\n}\n\n/*-----------------------------------------------------------------------------\n| Presentation Mode (.jp-mod-presentationMode)\n|----------------------------------------------------------------------------*/\n\n.jp-mod-presentationMode .jp-CodeConsole {\n --jp-content-font-size1: var(--jp-content-presentation-font-size1);\n --jp-code-font-size: var(--jp-code-presentation-font-size);\n}\n\n.jp-mod-presentationMode .jp-CodeConsole .jp-Cell .jp-InputPrompt,\n.jp-mod-presentationMode .jp-CodeConsole .jp-Cell .jp-OutputPrompt {\n flex: 0 0 110px;\n}\n",""]);const l=a},13818:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-CSVViewer {\n display: flex;\n flex-direction: column;\n outline: none;\n\n /* This is needed so that all font sizing of children done in ems is\n * relative to this base size */\n font-size: var(--jp-ui-font-size1);\n}\n\n.jp-CSVDelimiter {\n display: flex;\n flex: 0 0 auto;\n flex-direction: row;\n border: none;\n min-height: 24px;\n background: var(--jp-toolbar-background);\n z-index: 1;\n}\n\n.jp-CSVDelimiter .jp-CSVDelimiter-label {\n color: var(--jp-ui-font-color1);\n font-size: var(--jp-ui-font-size1);\n padding-left: 8px;\n padding-right: 8px;\n}\n\n.jp-CSVDelimiter .jp-CSVDelimiter-dropdown {\n flex: 0 0 auto;\n vertical-align: middle;\n border-radius: 0;\n outline: none;\n height: 20px;\n margin-top: 2px;\n margin-bottom: 2px;\n}\n\n.jp-CSVDelimiter .jp-CSVDelimiter-dropdown select.jp-mod-styled {\n color: var(--jp-ui-font-color1);\n background: var(--jp-layout-color1);\n font-size: var(--jp-ui-font-size1);\n height: 20px;\n padding-right: 20px;\n}\n\n.jp-CSVViewer-grid {\n flex: 1 1 auto;\n}\n",""]);const l=a},69324:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=n(83001);var l=n(79762);var d=n(28091);var c=n(88595);var h=n(59129);var u=n(69882);var p=n(26035);var m=n(91592);var g=r()(s());g.i(a.Z);g.i(l.Z);g.i(d.Z);g.i(c.Z);g.i(h.Z);g.i(u.Z);g.i(p.Z);g.i(m.Z);g.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-left-truncated {\n overflow: hidden;\n text-overflow: ellipsis;\n direction: rtl;\n}\n\n#jp-debugger .jp-switch-label {\n margin-right: 0;\n}\n\n.jp-DebuggerBugButton[aria-pressed='true'] path {\n fill: var(--jp-warn-color0);\n}\n",""]);const f=g},83001:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-DebuggerBreakpoints {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n padding-top: 3px;\n}\n\n.jp-DebuggerBreakpoints-body {\n padding: 10px;\n overflow: auto;\n}\n\n.jp-DebuggerBreakpoint {\n display: flex;\n align-items: center;\n}\n\n.jp-DebuggerBreakpoint:hover {\n background: var(--jp-layout-color2);\n cursor: pointer;\n}\n\n.jp-DebuggerBreakpoint-marker {\n font-size: 20px;\n padding-right: 5px;\n content: '●';\n color: var(--jp-error-color1);\n}\n\n.jp-DebuggerBreakpoint-source {\n white-space: nowrap;\n margin-right: 5px;\n}\n\n.jp-DebuggerBreakpoint-line {\n margin-left: auto;\n}\n\n.jp-DebuggerCallstackFrame {\n display: flex;\n align-items: center;\n}\n\n.jp-DebuggerCallstackFrame-name {\n white-space: nowrap;\n margin-right: 5px;\n}\n\n.jp-DebuggerCallstackFrame-location {\n margin-left: auto;\n}\n\n[data-jp-debugger='true'] .cm-breakpoint-gutter .cm-gutterElement:empty::after {\n content: '●';\n color: var(--jp-error-color1);\n opacity: 0;\n}\n\n.cm-gutter {\n cursor: default;\n}\n\n.cm-breakpoint-gutter .cm-gutterElement {\n color: var(--jp-error-color1);\n padding-left: 5px;\n font-size: 20px;\n position: relative;\n top: -5px;\n}\n\n[data-jp-debugger='true'].jp-Editor\n .cm-breakpoint-gutter\n .cm-gutterElement:empty:hover::after,\n[data-jp-debugger='true']\n .jp-Notebook\n .jp-CodeCell.jp-mod-selected\n .cm-breakpoint-gutter:empty:hover::after,\n[data-jp-debugger='true']\n .jp-Editor\n .cm-breakpoint-gutter\n .cm-gutterElement:empty:hover::after {\n opacity: 0.5;\n}\n",""]);const l=a},79762:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-DebuggerCallstack {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n padding-top: 3px;\n}\n\n.jp-DebuggerCallstack-body {\n overflow: auto;\n}\n\n.jp-DebuggerCallstack-body ul {\n list-style: none;\n margin: 0;\n padding: 0;\n background: var(--jp-layout-color1);\n color: var(--jp-ui-font-color1);\n font-size: var(--jp-ui-font-size1);\n}\n\n.jp-DebuggerCallstack-body li {\n padding: 5px;\n padding-left: 8px;\n}\n\n.jp-DebuggerCallstack-body li.selected {\n color: white;\n background: var(--jp-brand-color1);\n}\n\n.jp-DebuggerCallstack .jp-ToolbarButtonComponent-label {\n display: none;\n}\n",""]);const l=a},28091:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-DebuggerEditor-highlight {\n text-shadow: 0 0 1px var(--jp-layout-color0);\n outline: 1px solid;\n}\n\nbody[data-jp-theme-light='false'] .jp-DebuggerEditor-highlight {\n background-color: var(--md-brown-800);\n outline-color: var(--md-brown-600);\n}\n\nbody[data-jp-theme-light='true'] .jp-DebuggerEditor-highlight {\n background-color: var(--md-brown-100);\n outline-color: var(--md-brown-300);\n}\n\n.jp-DebuggerEditor-marker {\n position: absolute;\n left: -34px;\n top: -1px;\n color: var(--jp-error-color1);\n}\n",""]);const l=a},88595:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\nbutton.jp-Button.jp-mod-minimal.jp-TreeView.jp-TreeView,\nbutton.jp-Button.jp-mod-minimal.jp-TreeView.jp-TableView {\n display: flex;\n align-items: center;\n -webkit-transition: 0.4s;\n transition: 0.4s;\n width: 35px;\n}\n\n.jp-ViewModeSelected .jp-Button,\n.jp-PauseOnExceptions.lm-mod-toggled {\n background-color: var(--jp-inverse-layout-color3);\n}\n\n.jp-ViewModeSelected .jp-Button:hover,\n.jp-PauseOnExceptions.lm-mod-toggled:hover {\n background-color: var(--jp-inverse-layout-color4);\n}\n\n.jp-ViewModeSelected .jp-Button .jp-icon3[fill],\n.jp-PauseOnExceptions.lm-mod-toggled .jp-icon3[fill] {\n fill: var(--jp-layout-color1);\n}\n",""]);const l=a},59129:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-DebuggerKernelSources {\n min-height: 50px;\n margin-top: 3px;\n}\n\n[data-jp-debugger='true'].jp-Editor .jp-mod-readOnly {\n background: var(--jp-layout-color2);\n height: 100%;\n}\n\n.jp-DebuggerKernelSources-body [data-jp-debugger='true'].jp-Editor {\n height: 100%;\n}\n\n.jp-DebuggerKernelSources-body {\n height: 100%;\n overflow-y: auto;\n}\n\n.jp-DebuggerKernelSource-filterBox {\n padding: 0;\n flex: 0 0 auto;\n margin: 0;\n position: sticky;\n top: 0;\n background-color: var(--jp-layout-color1);\n}\n\n.jp-DebuggerKernelSource-filterBox-hidden {\n display: none;\n}\n",""]);const l=a},69882:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-SidePanel-header > h2 {\n /* Set font-size to override default h2 sizing but keeping default --jp-ui-font-size0 */\n font-size: 100%;\n font-weight: 600;\n margin: 0 auto 0 0;\n padding: 4px 10px;\n}\n",""]);const l=a},26035:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-DebuggerSources {\n min-height: 50px;\n margin-top: 3px;\n}\n\n[data-jp-debugger='true'].jp-Editor .jp-mod-readOnly {\n background: var(--jp-layout-color2);\n height: 100%;\n}\n\n.jp-DebuggerSources-body [data-jp-debugger='true'].jp-Editor {\n height: 100%;\n}\n\n.jp-DebuggerSources-body {\n height: 100%;\n}\n\n.jp-DebuggerSources-header-path {\n overflow: hidden;\n cursor: pointer;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: var(--jp-ui-font-size0);\n color: var(--jp-ui-font-color1);\n}\n",""]);const l=a},91592:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n.jp-DebuggerVariables {\n display: flex;\n flex-direction: column;\n min-height: 50px;\n padding-top: 3px;\n}\n\n.jp-DebuggerVariables-body {\n display: flex;\n flex-direction: column;\n flex: 1 1 auto;\n min-height: 24px;\n overflow: auto;\n\n /* For absolute positioning of jp-DebuggerVariables-buttons. */\n position: relative;\n}\n\n.jp-DebuggerVariables-branch {\n list-style: none;\n margin: 0;\n padding: 0;\n}\n\n.jp-DebuggerVariables-body\n .jp-DebuggerVariables-branch\n .jp-DebuggerVariables-branch {\n grid-area: nested;\n}\n\n.jp-DebuggerVariables-body > .jp-DebuggerVariables-branch {\n padding-top: 0.1em;\n}\n\n.jp-DebuggerVariables-branch li {\n padding: 3px 0;\n cursor: pointer;\n color: var(--jp-content-font-color1);\n display: grid;\n grid-template:\n 'collapser name detail'\n 'nested nested nested';\n grid-template-columns: max-content max-content 1fr;\n}\n\n.jp-DebuggerVariables-branch li:not(:has(li:hover)):hover {\n background: var(--jp-layout-color2);\n}\n\n.jp-DebuggerVariables-collapser {\n width: 16px;\n grid-area: collapser;\n transform: rotate(-90deg);\n transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);\n}\n\n.jp-DebuggerVariables-collapser.jp-mod-expanded {\n transform: rotate(0);\n}\n\n.jp-DebuggerVariables-buttons {\n position: absolute;\n top: 0;\n right: 8px;\n margin-top: 1px;\n}\n\n.jp-DebuggerVariables-name {\n color: var(--jp-mirror-editor-attribute-color);\n grid-area: name;\n}\n\n.jp-DebuggerVariables-name::after {\n content: ':';\n margin-right: 5px;\n}\n\n.jp-DebuggerVariables-detail {\n /* detail contains value for primitive types or name of the type otherwise */\n color: var(--jp-mirror-editor-string-color);\n}\n\n.jp-DebuggerVariables-renderVariable {\n border: none;\n background: none;\n cursor: pointer;\n transform-origin: center center;\n transition: transform 0.2s cubic-bezier(0.4, 0, 1, 1);\n}\n\n.jp-DebuggerVariables-renderVariable:active {\n transform: scale(1.35);\n}\n\n.jp-DebuggerVariables-renderVariable:hover {\n background-color: var(--jp-layout-color2);\n}\n\n.jp-DebuggerVariables-renderVariable:disabled {\n cursor: default;\n}\n\n.jp-DebuggerVariables-branch li > .jp-DebuggerVariables-branch {\n margin-left: 12px;\n}\n\n.jp-DebuggerVariables-grid {\n flex: 1 1 auto;\n}\n\n.jp-DebuggerVariables-grid .lm-DataGrid {\n border: none;\n}\n\n.jp-DebuggerVariables-colorPalette {\n visibility: hidden;\n z-index: -999;\n position: absolute;\n left: -999px;\n top: -999px;\n}\n\n.jp-DebuggerVariables-colorPalette .jp-mod-void {\n color: var(--jp-layout-color1);\n}\n\n.jp-DebuggerVariables-colorPalette .jp-mod-background {\n color: var(--jp-rendermime-table-row-background);\n}\n\n.jp-DebuggerVariables-colorPalette .jp-mod-header-background {\n color: var(--jp-layout-color2);\n}\n\n.jp-DebuggerVariables-colorPalette .jp-mod-grid-line {\n color: var(--jp-border-color3);\n}\n\n.jp-DebuggerVariables-colorPalette .jp-mod-header-grid-line {\n color: var(--jp-border-color3);\n}\n\n.jp-DebuggerVariables-colorPalette .jp-mod-selection {\n /* TODO: Fix JupyterLab light theme (alpha) so this can be a variable. */\n color: rgba(3, 169, 244, 0.2);\n}\n\n.jp-DebuggerVariables-colorPalette .jp-mod-text {\n color: var(--jp-content-font-color0);\n}\n\n.jp-VariableRendererPanel {\n overflow: auto;\n}\n\n.jp-VariableRendererPanel-renderer {\n overflow: auto;\n height: 100%;\n}\n\n.jp-VariableRenderer-TrustButton[aria-pressed='true'] {\n box-shadow: inset 0 var(--jp-border-width) 4px\n rgba(\n var(--jp-shadow-base-lightness),\n var(--jp-shadow-base-lightness),\n var(--jp-shadow-base-lightness),\n 0.6\n );\n}\n\n.jp-DebuggerRichVariable div[data-mime-type='text/plain'] > pre {\n white-space: normal;\n}\n",""]);const l=a},98491:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n\n.jp-MimeDocument {\n outline: none;\n}\n",""]);const l=a},52215:(e,t,n)=>{"use strict";n.d(t,{Z:()=>l});var i=n(8081);var s=n.n(i);var o=n(23645);var r=n.n(o);var a=r()(s());a.push([e.id,"/*-----------------------------------------------------------------------------\n| Copyright (c) Jupyter Development Team.\n| Distributed under the terms of the Modified BSD License.\n|----------------------------------------------------------------------------*/\n.jp-DocumentSearch-input {\n border: none;\n outline: none;\n color: var(--jp-ui-font-color0);\n font-size: var(--jp-ui-font-size1);\n background-color: var(--jp-layout-color0);\n font-family: var(--jp-ui-font-family);\n padding: 2px 1px;\n resize: none;\n white-space: pre;\n}\n\n.jp-DocumentSearch-overlay {\n position: absolute;\n background-color: var(--jp-toolbar-background);\n border-bottom: var(--jp-border-width) solid var(--jp-toolbar-border-color);\n border-left: var(--jp-border-width) solid var(--jp-toolbar-border-color);\n top: 0;\n right: 0;\n z-index: 7;\n min-width: 405px;\n padding: 2px;\n font-size: var(--jp-ui-font-size1);\n\n --jp-private-document-search-button-height: 20px;\n}\n\n.jp-DocumentSearch-overlay button {\n background-color: var(--jp-toolbar-background);\n outline: 0;\n}\n\n.jp-DocumentSearch-overlay button:hover {\n background-color: var(--jp-layout-color2);\n}\n\n.jp-DocumentSearch-overlay button:active {\n background-color: var(--jp-layout-color3);\n}\n\n.jp-DocumentSearch-overlay-row {\n display: flex;\n align-items: center;\n margin-bottom: 2px;\n}\n\n.jp-DocumentSearch-button-content {\n display: inline-block;\n cursor: pointer;\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n}\n\n.jp-DocumentSearch-button-content svg {\n width: 100%;\n height: 100%;\n}\n\n.jp-DocumentSearch-input-wrapper {\n border: var(--jp-border-width) solid var(--jp-border-color0);\n display: flex;\n background-color: var(--jp-layout-color0);\n margin: 2px;\n}\n\n.jp-DocumentSearch-input-wrapper:focus-within {\n border-color: var(--jp-cell-editor-active-border-color);\n}\n\n.jp-DocumentSearch-toggle-wrapper,\n.jp-DocumentSearch-button-wrapper {\n all: initial;\n overflow: hidden;\n display: inline-block;\n border: none;\n box-sizing: border-box;\n}\n\n.jp-DocumentSearch-toggle-wrapper {\n flex-shrink: 0;\n width: 14px;\n height: 14px;\n}\n\n.jp-DocumentSearch-button-wrapper {\n flex-shrink: 0;\n width: var(--jp-private-document-search-button-height);\n height: var(--jp-private-document-search-button-height);\n}\n\n.jp-DocumentSearch-toggle-wrapper:focus,\n.jp-DocumentSearch-button-wrapper:focus {\n outline: var(--jp-border-width) solid\n var(--jp-cell-editor-active-border-color);\n outline-offset: -1px;\n}\n\n.jp-DocumentSearch-toggle-wrapper,\n.jp-DocumentSearch-button-wrapper,\n.jp-DocumentSearch-button-content:focus {\n outline: none;\n}\n\n.jp-DocumentSearch-toggle-placeholder {\n width: 5px;\n}\n\n.jp-DocumentSearch-input-button::before {\n display: block;\n padding-top: 100%;\n}\n\n.jp-DocumentSearch-input-button-off {\n opacity: var(--jp-search-toggle-off-opacity);\n}\n\n.jp-DocumentSearch-input-button-off:hover {\n opacity: var(--jp-search-toggle-hover-opacity);\n}\n\n.jp-DocumentSearch-input-button-on {\n opacity: var(--jp-search-toggle-on-opacity);\n}\n\n.jp-DocumentSearch-index-counter {\n padding-left: 10px;\n padding-right: 10px;\n user-select: none;\n min-width: 35px;\n display: inline-block;\n}\n\n.jp-DocumentSearch-up-down-wrapper {\n display: inline-block;\n padding-right: 2px;\n margin-left: auto;\n white-space: nowrap;\n}\n\n.jp-DocumentSearch-spacer {\n margin-left: auto;\n}\n\n.jp-DocumentSearch-up-down-wrapper button {\n outline: 0;\n border: none;\n width: var(--jp-private-document-search-button-height);\n height: var(--jp-private-document-search-button-height);\n vertical-align: middle;\n margin: 1px 5px 2px;\n}\n\n.jp-DocumentSearch-up-down-button:hover {\n background-color: var(--jp-layout-color2);\n}\n\n.jp-DocumentSearch-up-down-button:active {\n background-color: var(--jp-layout-color3);\n}\n\n.jp-DocumentSearch-filter-button {\n border-radius: var(--jp-border-radius);\n}\n\n.jp-DocumentSearch-filter-button:hover {\n background-color: var(--jp-layout-color2);\n}\n\n.jp-DocumentSearch-filter-button-enabled {\n background-color: var(--jp-layout-color2);\n}\n\n.jp-DocumentSearch-filter-button-enabled:hover {\n background-color: var(--jp-layout-color3);\n}\n\n.jp-DocumentSearch-search-options {\n padding: 0 8px;\n margin-left: 3px;\n width: 100%;\n display: grid;\n justify-content: start;\n grid-template-columns: 1fr 1fr;\n align-items: center;\n justify-items: stretch;\n}\n\n.jp-DocumentSearch-search-filter-disabled {\n color: var(--jp-ui-font-color2);\n}\n\n.jp-DocumentSearch-search-filter {\n display: flex;\n align-items: center;\n user-select: none;\n}\n\n.jp-DocumentSearch-regex-error {\n color: var(--jp-error-color0);\n}\n\n.jp-DocumentSearch-replace-button-wrapper {\n overflow: hidden;\n display: inline-block;\n box-sizing: border-box;\n border: var(--jp-border-width) solid var(--jp-border-color0);\n margin: auto 2px;\n padding: 1px 4px;\n height: calc(var(--jp-private-document-search-button-height) + 2px);\n flex-shrink: 0;\n}\n\n.jp-DocumentSearch-replace-button-wrapper:focus {\n border: var(--jp-border-width) solid var(--jp-cell-editor-active-border-color);\n}\n\n.jp-DocumentSearch-replace-button {\n display: inline-block;\n text-align: center;\n cursor: pointer;\n box-sizing: border-box;\n color: var(--jp-ui-font-color1);\n\n /* height - 2 * (padding of wrapper) */\n line-height: calc(var(--jp-private-document-search-button-height) - 2px);\n width: 100%;\n height: 100%;\n}\n\n.jp-DocumentSearch-replace-button:focus {\n outline: none;\n}\n\n.jp-DocumentSearch-replace-wrapper-class {\n margin-left: 14px;\n display: flex;\n}\n\n.jp-DocumentSearch-replace-toggle {\n border: none;\n background-color: var(--jp-toolbar-background);\n border-radius: var(--jp-border-radius);\n}\n\n.jp-DocumentSearch-replace-toggle:hover {\n background-color: var(--jp-layout-color2);\n}\n\n/*\n The following few rules allow the search box to expand horizontally,\n as the text within it grows. This is done by using putting\n the text within a wrapper element and using that wrapper for sizing,\n as